OLD | NEW |
1 /* | 1 /* |
2 * GAS-compatible parser | 2 * GAS-compatible parser |
3 * | 3 * |
4 * Copyright (C) 2005-2007 Peter Johnson | 4 * Copyright (C) 2005-2007 Peter Johnson |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 10 matching lines...) Expand all Loading... |
21 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS BE | 21 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS BE |
22 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | 22 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | 23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
28 * POSSIBILITY OF SUCH DAMAGE. | 28 * POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 #include <util.h> | 30 #include <util.h> |
31 /*@unused@*/ RCSID("$Id: gas-parser.c 2279 2010-01-19 07:57:43Z peter $"); | |
32 | 31 |
33 #include <libyasm.h> | 32 #include <libyasm.h> |
34 | 33 |
35 #include "gas-parser.h" | 34 #include "gas-parser.h" |
36 | 35 |
37 | 36 |
38 static void | 37 static void |
39 gas_parser_do_parse(yasm_object *object, yasm_preproc *pp, | 38 gas_parser_do_parse(yasm_object *object, yasm_preproc *pp, |
40 int save_input, yasm_linemap *linemap, | 39 int save_input, yasm_linemap *linemap, |
41 yasm_errwarns *errwarns) | 40 yasm_errwarns *errwarns) |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 gas_parser_do_parse | 124 gas_parser_do_parse |
126 }; | 125 }; |
127 yasm_parser_module yasm_gnu_LTX_parser = { | 126 yasm_parser_module yasm_gnu_LTX_parser = { |
128 "GNU AS (GAS)-compatible parser", | 127 "GNU AS (GAS)-compatible parser", |
129 "gnu", | 128 "gnu", |
130 gas_parser_preproc_keywords, | 129 gas_parser_preproc_keywords, |
131 "gas", | 130 "gas", |
132 NULL, /* No standard macros */ | 131 NULL, /* No standard macros */ |
133 gas_parser_do_parse | 132 gas_parser_do_parse |
134 }; | 133 }; |
OLD | NEW |