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 / frags.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  2KB  |  68 lines

  1. /* frags.h - Header file for the frag concept.
  2.  
  3.    Copyright (C) 1987, 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, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  20.  
  21. #if 0
  22. /*
  23.  * A macro to speed up appending exactly 1 char
  24.  * to current frag.
  25.  */
  26. /* JF changed < 1 to <= 1 to avoid a race conditon */
  27. #define FRAG_APPEND_1_CHAR(datum)    \
  28. {                    \
  29.   if (obstack_room( &frags ) <= 1) {\
  30.     frag_wane (frag_now);    \
  31.     frag_new (0);        \
  32.   }                \
  33.   obstack_1grow( &frags, datum );    \
  34. }
  35. #else
  36. extern void frag_append_1_char PARAMS ((int));
  37. #define FRAG_APPEND_1_CHAR(X) frag_append_1_char (X)
  38. #endif
  39.  
  40.  
  41. void frag_init PARAMS ((void));
  42. void frag_grow PARAMS ((unsigned int nchars));
  43. char *frag_more PARAMS ((int nchars));
  44. void frag_align PARAMS ((int alignment, int fill_character));
  45. void frag_align_pattern PARAMS ((int alignment,
  46.                  const char *fill_pattern,
  47.                  int n_fill));
  48. void frag_new PARAMS ((int old_frags_var_max_size));
  49. void frag_wane PARAMS ((fragS * fragP));
  50.  
  51. char *frag_variant PARAMS ((relax_stateT type,
  52.                 int max_chars,
  53.                 int var,
  54.                 relax_substateT subtype,
  55.                 symbolS * symbol,
  56.                 long offset,
  57.                 char *opcode));
  58.  
  59. char *frag_var PARAMS ((relax_stateT type,
  60.             int max_chars,
  61.             int var,
  62.             relax_substateT subtype,
  63.             symbolS * symbol,
  64.             long offset,
  65.             char *opcode));
  66.  
  67. /* end of frags.h */
  68.