19990502 sourceware import
[deliverable/binutils-gdb.git] / gas / symbols.h
CommitLineData
252b5132
RH
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
21extern struct obstack notes; /* eg FixS live here. */
22
23extern struct obstack cond_obstack; /* this is where we track .ifdef/.endif
24 (if we do that at all). */
25
26extern symbolS *symbol_rootP; /* all the symbol nodes */
27extern symbolS *symbol_lastP; /* last struct symbol we made, or NULL */
28
29extern symbolS abs_symbol;
30
31extern int symbol_table_frozen;
32
33/* This is non-zero if symbols are case sensitive, which is the
34 default. */
35extern int symbols_case_sensitive;
36
37char *decode_local_label_name PARAMS ((char *s));
38symbolS *symbol_find PARAMS ((CONST char *name));
39symbolS *symbol_find_base PARAMS ((CONST char *name, int strip_underscore));
40symbolS *symbol_find_or_make PARAMS ((const char *name));
41symbolS *symbol_make PARAMS ((CONST char *name));
42symbolS *symbol_new PARAMS ((CONST char *name, segT segment, valueT value,
43 fragS * frag));
44symbolS *symbol_create PARAMS ((CONST char *name, segT segment, valueT value,
45 fragS * frag));
46symbolS *colon PARAMS ((const char *sym_name));
47void local_colon PARAMS ((int n));
48void symbol_begin PARAMS ((void));
49void symbol_print_statistics PARAMS ((FILE *));
50void symbol_table_insert PARAMS ((symbolS * symbolP));
51valueT resolve_symbol_value PARAMS ((symbolS *, int));
52
53void print_symbol_value PARAMS ((symbolS *));
54void print_expr PARAMS ((expressionS *));
55void print_expr_1 PARAMS ((FILE *, expressionS *));
56void print_symbol_value_1 PARAMS ((FILE *, symbolS *));
57
58int dollar_label_defined PARAMS ((long l));
59void dollar_label_clear PARAMS ((void));
60void define_dollar_label PARAMS ((long l));
61char *dollar_label_name PARAMS ((long l, int augend));
62
63void fb_label_instance_inc PARAMS ((long label));
64char *fb_label_name PARAMS ((long n, long augend));
65
66extern void copy_symbol_attributes PARAMS ((symbolS *, symbolS *));
67
68/* Get and set the values of symbols. These used to be macros. */
69extern valueT S_GET_VALUE PARAMS ((symbolS *));
70extern void S_SET_VALUE PARAMS ((symbolS *, valueT));
71
72#ifdef BFD_ASSEMBLER
73extern int S_IS_EXTERNAL PARAMS ((symbolS *));
74extern int S_IS_WEAK PARAMS ((symbolS *));
75extern int S_IS_COMMON PARAMS ((symbolS *));
76extern int S_IS_DEFINED PARAMS ((symbolS *));
77extern int S_IS_DEBUG PARAMS ((symbolS *));
78extern int S_IS_LOCAL PARAMS ((symbolS *));
79extern int S_IS_EXTERN PARAMS ((symbolS *));
80extern int S_IS_STABD PARAMS ((symbolS *));
81extern CONST char *S_GET_NAME PARAMS ((symbolS *));
82extern segT S_GET_SEGMENT PARAMS ((symbolS *));
83extern void S_SET_SEGMENT PARAMS ((symbolS *, segT));
84extern void S_SET_EXTERNAL PARAMS ((symbolS *));
85extern void S_SET_NAME PARAMS ((symbolS *, char *));
86extern void S_CLEAR_EXTERNAL PARAMS ((symbolS *));
87extern void S_SET_WEAK PARAMS ((symbolS *));
88#endif
89
90/* end of symbols.h */
This page took 0.025577 seconds and 4 git commands to generate.