Initial import from FreeBSD RELENG_4:
[games.git] / gnu / usr.bin / as / symbols.h
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  * $FreeBSD: src/gnu/usr.bin/as/symbols.h,v 1.6 1999/08/27 23:34:22 peter Exp $
22  */
23
24
25 extern struct obstack   notes; /* eg FixS live here. */
26
27 extern struct obstack cond_obstack; /* this is where we track .ifdef/.endif
28                                        (if we do that at all).  */
29
30 extern unsigned int local_bss_counter; /* Zeroed before a pass. */
31 /* Only used by .lcomm directive. */
32
33 extern symbolS *symbol_rootP;   /* all the symbol nodes */
34 extern symbolS *symbol_lastP;   /* last struct symbol we made, or NULL */
35
36 extern symbolS abs_symbol;
37
38 extern symbolS *dot_text_symbol;
39 extern symbolS *dot_data_symbol;
40 extern symbolS *dot_bss_symbol;
41
42 #if __STDC__ == 1
43
44 char *decode_local_label_name(char *s);
45 char *local_label_name(int n, int augend);
46 symbolS *symbol_find(char *name);
47 symbolS *symbol_find_base(char *name, int strip_underscore);
48 symbolS *symbol_find_or_make(char *name);
49 symbolS *symbol_make(char *name);
50 symbolS *symbol_new(char *name, segT segment, long value, fragS *frag);
51 void colon(char *sym_name);
52 void local_colon(int n);
53 void symbol_begin(void);
54 void symbol_table_insert(symbolS *symbolP);
55 void verify_symbol_chain(symbolS *rootP, symbolS *lastP);
56
57 #else /* not __STDC__ */
58
59 char *decode_local_label_name();
60 char *local_label_name();
61 symbolS *symbol_find();
62 symbolS *symbol_find_base();
63 symbolS *symbol_find_or_make();
64 symbolS *symbol_make();
65 symbolS *symbol_new();
66 void colon();
67 void local_colon();
68 void symbol_begin();
69 void symbol_table_insert();
70 void verify_symbol_chain();
71
72 #endif /* not __STDC__ */
73
74
75 /*
76  * Local Variables:
77  * comment-column: 0
78  * fill-column: 131
79  * End:
80  */
81
82 /* end of symbols.h */