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