| 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 RCSID("$Id: gas-parse.c 2279 2010-01-19 07:57:43Z peter $"); | |
| 32 | 31 |
| 33 #include <libyasm.h> | 32 #include <libyasm.h> |
| 34 | 33 |
| 35 #include <ctype.h> | 34 #include <ctype.h> |
| 36 #include <limits.h> | 35 #include <limits.h> |
| 37 #include <math.h> | 36 #include <math.h> |
| 38 | 37 |
| 39 #include "modules/parsers/gas/gas-parser.h" | 38 #include "modules/parsers/gas/gas-parser.h" |
| 40 | 39 |
| 41 typedef struct dir_lookup { | 40 typedef struct dir_lookup { |
| (...skipping 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1760 if (parser_gas->save_input) | 1759 if (parser_gas->save_input) |
| 1761 yasm_linemap_add_source(parser_gas->linemap, | 1760 yasm_linemap_add_source(parser_gas->linemap, |
| 1762 temp_bc, | 1761 temp_bc, |
| 1763 (char *)parser_gas->save_line[parser_gas->save_last ^ 1]); | 1762 (char *)parser_gas->save_line[parser_gas->save_last ^ 1]); |
| 1764 yasm_linemap_goto_next(parser_gas->linemap); | 1763 yasm_linemap_goto_next(parser_gas->linemap); |
| 1765 parser_gas->dir_line++; /* keep track for .line followed by .file */ | 1764 parser_gas->dir_line++; /* keep track for .line followed by .file */ |
| 1766 } | 1765 } |
| 1767 | 1766 |
| 1768 HAMT_destroy(parser_gas->dirs, no_delete); | 1767 HAMT_destroy(parser_gas->dirs, no_delete); |
| 1769 } | 1768 } |
| OLD | NEW |