| 1 | /* symbols.h - |
| 2 | |
| 3 | Copyright (C) 1987, 1990, 1992 Free Software Foundation, Inc. |
| 4 | |
| 5 | This file is part of GAS, the GNU Assembler. |
| 6 | |
| 7 | GAS is free software; you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by |
| 9 | the Free Software Foundation; either version 2, or (at your option) |
| 10 | any later version. |
| 11 | |
| 12 | GAS is distributed in the hope that it will be useful, |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | GNU General Public License for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU General Public License |
| 18 | along with GAS; see the file COPYING. If not, write to |
| 19 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ |
| 20 | |
| 21 | extern struct obstack notes; /* eg FixS live here. */ |
| 22 | |
| 23 | extern struct obstack cond_obstack; /* this is where we track .ifdef/.endif |
| 24 | (if we do that at all). */ |
| 25 | |
| 26 | extern unsigned int local_bss_counter; /* Zeroed before a pass. */ |
| 27 | /* Only used by .lcomm directive. */ |
| 28 | |
| 29 | extern symbolS *symbol_rootP; /* all the symbol nodes */ |
| 30 | extern symbolS *symbol_lastP; /* last struct symbol we made, or NULL */ |
| 31 | |
| 32 | extern symbolS abs_symbol; |
| 33 | |
| 34 | extern symbolS *dot_text_symbol; |
| 35 | extern symbolS *dot_data_symbol; |
| 36 | extern symbolS *dot_bss_symbol; |
| 37 | |
| 38 | #if __STDC__ == 1 |
| 39 | |
| 40 | char *decode_local_label_name (char *s); |
| 41 | symbolS *symbol_find (char *name); |
| 42 | symbolS *symbol_find_base (char *name, int strip_underscore); |
| 43 | symbolS *symbol_find_or_make (char *name); |
| 44 | symbolS *symbol_make (char *name); |
| 45 | symbolS *symbol_new (char *name, segT segment, long value, fragS * frag); |
| 46 | void colon (char *sym_name); |
| 47 | void local_colon (int n); |
| 48 | void symbol_begin (void); |
| 49 | void symbol_table_insert (symbolS * symbolP); |
| 50 | void verify_symbol_chain (symbolS * rootP, symbolS * lastP); |
| 51 | |
| 52 | #ifdef LOCAL_LABELS_DOLLAR |
| 53 | int dollar_label_defined (long l); |
| 54 | void dollar_label_clear (void); |
| 55 | void define_dollar_label (long l); |
| 56 | char *dollar_label_name (long l, int augend); |
| 57 | #endif /* LOCAL_LABELS_DOLLAR */ |
| 58 | |
| 59 | #ifdef LOCAL_LABELS_FB |
| 60 | void fb_label_instance_inc (long label); |
| 61 | char *fb_label_name (long n, long augend); |
| 62 | #endif /* LOCAL_LABELS_FB */ |
| 63 | |
| 64 | #else /* not __STDC__ */ |
| 65 | |
| 66 | char *decode_local_label_name (); |
| 67 | char *fb_label_name (); |
| 68 | symbolS *symbol_find (); |
| 69 | symbolS *symbol_find_base (); |
| 70 | symbolS *symbol_find_or_make (); |
| 71 | symbolS *symbol_make (); |
| 72 | symbolS *symbol_new (); |
| 73 | void colon (); |
| 74 | void local_colon (); |
| 75 | void symbol_begin (); |
| 76 | void symbol_table_insert (); |
| 77 | void verify_symbol_chain (); |
| 78 | |
| 79 | #ifdef LOCAL_LABELS_DOLLAR |
| 80 | int dollar_label_defined (); |
| 81 | void dollar_label_clear (); |
| 82 | void define_dollar_label (); |
| 83 | char *dollar_label_name (); |
| 84 | #endif /* LOCAL_LABELS_DOLLAR */ |
| 85 | |
| 86 | #ifdef LOCAL_LABELS_FB |
| 87 | void fb_label_instance_inc (); |
| 88 | char *fb_label_name (); |
| 89 | #endif /* LOCAL_LABELS_FB */ |
| 90 | |
| 91 | #endif /* not __STDC__ */ |
| 92 | |
| 93 | |
| 94 | /* |
| 95 | * Local Variables: |
| 96 | * comment-column: 0 |
| 97 | * fill-column: 131 |
| 98 | * End: |
| 99 | */ |
| 100 | |
| 101 | /* end of symbols.h */ |