home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / binutils-2.7-src.tgz / tar.out / fsf / binutils / gas / symbols.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  3KB  |  85 lines

  1. /* symbols.h -
  2.    Copyright (C) 1987, 1990, 1992, 1993, 1994 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
  18.    the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  19.  
  20. extern struct obstack notes;    /* eg FixS live here. */
  21.  
  22. extern struct obstack cond_obstack;    /* this is where we track .ifdef/.endif
  23.                        (if we do that at all).  */
  24.  
  25. extern symbolS *symbol_rootP;    /* all the symbol nodes */
  26. extern symbolS *symbol_lastP;    /* last struct symbol we made, or NULL */
  27.  
  28. extern symbolS abs_symbol;
  29.  
  30. extern int symbol_table_frozen;
  31.  
  32. /* This is non-zero if symbols are case sensitive, which is the
  33.    default.  */
  34. extern int symbols_case_sensitive;
  35.  
  36. char *decode_local_label_name PARAMS ((char *s));
  37. symbolS *symbol_find PARAMS ((CONST char *name));
  38. symbolS *symbol_find_base PARAMS ((CONST char *name, int strip_underscore));
  39. symbolS *symbol_find_or_make PARAMS ((const char *name));
  40. symbolS *symbol_make PARAMS ((CONST char *name));
  41. symbolS *symbol_new PARAMS ((CONST char *name, segT segment, valueT value,
  42.                  fragS * frag));
  43. symbolS *symbol_create PARAMS ((CONST char *name, segT segment, valueT value,
  44.                 fragS * frag));
  45. symbolS *colon PARAMS ((const char *sym_name));
  46. void local_colon PARAMS ((int n));
  47. void symbol_begin PARAMS ((void));
  48. void symbol_print_statistics PARAMS ((FILE *));
  49. void symbol_table_insert PARAMS ((symbolS * symbolP));
  50. void resolve_symbol_value PARAMS ((symbolS *));
  51.  
  52. int dollar_label_defined PARAMS ((long l));
  53. void dollar_label_clear PARAMS ((void));
  54. void define_dollar_label PARAMS ((long l));
  55. char *dollar_label_name PARAMS ((long l, int augend));
  56.  
  57. void fb_label_instance_inc PARAMS ((long label));
  58. char *fb_label_name PARAMS ((long n, long augend));
  59.  
  60. extern void copy_symbol_attributes PARAMS ((symbolS *, symbolS *));
  61.  
  62. /* Get and set the values of symbols.  These used to be macros.  */
  63. extern valueT S_GET_VALUE PARAMS ((symbolS *));
  64. extern void S_SET_VALUE PARAMS ((symbolS *, valueT));
  65.  
  66. #ifdef BFD_ASSEMBLER
  67. extern int S_IS_EXTERNAL PARAMS ((symbolS *));
  68. extern int S_IS_WEAK PARAMS ((symbolS *));
  69. extern int S_IS_COMMON PARAMS ((symbolS *));
  70. extern int S_IS_DEFINED PARAMS ((symbolS *));
  71. extern int S_IS_DEBUG PARAMS ((symbolS *));
  72. extern int S_IS_LOCAL PARAMS ((symbolS *));
  73. extern int S_IS_EXTERN PARAMS ((symbolS *));
  74. extern int S_IS_STABD PARAMS ((symbolS *));
  75. extern CONST char *S_GET_NAME PARAMS ((symbolS *));
  76. extern segT S_GET_SEGMENT PARAMS ((symbolS *));
  77. extern void S_SET_SEGMENT PARAMS ((symbolS *, segT));
  78. extern void S_SET_EXTERNAL PARAMS ((symbolS *));
  79. extern void S_SET_NAME PARAMS ((symbolS *, char *));
  80. extern void S_CLEAR_EXTERNAL PARAMS ((symbolS *));
  81. extern void S_SET_WEAK PARAMS ((symbolS *));
  82. #endif
  83.  
  84. /* end of symbols.h */
  85.