c6efbdb34deb350d0af1e8ac455ca03460b6ca50
[deliverable/binutils-gdb.git] / gas / symbols.h
1 /* symbols.h -
2 Copyright (C) 1987, 90, 92, 93, 94, 95, 1997 Free Software Foundation, Inc.
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 the Free
18 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, 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 symbolS *symbol_rootP; /* all the symbol nodes */
27 extern symbolS *symbol_lastP; /* last struct symbol we made, or NULL */
28
29 extern symbolS abs_symbol;
30
31 extern int symbol_table_frozen;
32
33 /* This is non-zero if symbols are case sensitive, which is the
34 default. */
35 extern int symbols_case_sensitive;
36
37 char *decode_local_label_name PARAMS ((char *s));
38 symbolS *symbol_find PARAMS ((CONST char *name));
39 symbolS *symbol_find_base PARAMS ((CONST char *name, int strip_underscore));
40 symbolS *symbol_find_or_make PARAMS ((const char *name));
41 symbolS *symbol_make PARAMS ((CONST char *name));
42 symbolS *symbol_new PARAMS ((CONST char *name, segT segment, valueT value,
43 fragS * frag));
44 symbolS *symbol_create PARAMS ((CONST char *name, segT segment, valueT value,
45 fragS * frag));
46 symbolS *colon PARAMS ((const char *sym_name));
47 void local_colon PARAMS ((int n));
48 void symbol_begin PARAMS ((void));
49 void symbol_print_statistics PARAMS ((FILE *));
50 void symbol_table_insert PARAMS ((symbolS * symbolP));
51 valueT resolve_symbol_value PARAMS ((symbolS *, int));
52
53 void print_symbol_value PARAMS ((symbolS *));
54 void print_expr PARAMS ((expressionS *));
55 void print_expr_1 PARAMS ((FILE *, expressionS *));
56 void print_symbol_value_1 PARAMS ((FILE *, symbolS *));
57
58 int dollar_label_defined PARAMS ((long l));
59 void dollar_label_clear PARAMS ((void));
60 void define_dollar_label PARAMS ((long l));
61 char *dollar_label_name PARAMS ((long l, int augend));
62
63 void fb_label_instance_inc PARAMS ((long label));
64 char *fb_label_name PARAMS ((long n, long augend));
65
66 extern void copy_symbol_attributes PARAMS ((symbolS *, symbolS *));
67
68 /* Get and set the values of symbols. These used to be macros. */
69 extern valueT S_GET_VALUE PARAMS ((symbolS *));
70 extern void S_SET_VALUE PARAMS ((symbolS *, valueT));
71
72 #ifdef BFD_ASSEMBLER
73 extern int S_IS_EXTERNAL PARAMS ((symbolS *));
74 extern int S_IS_WEAK PARAMS ((symbolS *));
75 extern int S_IS_COMMON PARAMS ((symbolS *));
76 extern int S_IS_DEFINED PARAMS ((symbolS *));
77 extern int S_IS_DEBUG PARAMS ((symbolS *));
78 extern int S_IS_LOCAL PARAMS ((symbolS *));
79 extern int S_IS_EXTERN PARAMS ((symbolS *));
80 extern int S_IS_STABD PARAMS ((symbolS *));
81 extern CONST char *S_GET_NAME PARAMS ((symbolS *));
82 extern segT S_GET_SEGMENT PARAMS ((symbolS *));
83 extern void S_SET_SEGMENT PARAMS ((symbolS *, segT));
84 extern void S_SET_EXTERNAL PARAMS ((symbolS *));
85 extern void S_SET_NAME PARAMS ((symbolS *, char *));
86 extern void S_CLEAR_EXTERNAL PARAMS ((symbolS *));
87 extern void S_SET_WEAK PARAMS ((symbolS *));
88 #endif
89
90 /* end of symbols.h */
This page took 0.03266 seconds and 4 git commands to generate.