1 /* frags.h - Header file for the frag concept.
3 Copyright (C) 1987, 1992 Free Software Foundation, Inc.
5 This file is part of GAS, the GNU Assembler.
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)
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.
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. */
25 extern struct obstack frags;
26 /* Frags ONLY live in this obstack. */
27 /* We use obstack_next_free() macro */
28 /* so please don't put any other objects */
32 * A macro to speed up appending exactly 1 char
35 /* JF changed < 1 to <= 1 to avoid a race conditon */
36 #define FRAG_APPEND_1_CHAR(datum) \
38 if (obstack_room( &frags ) <= 1) {\
39 frag_wane (frag_now); \
42 obstack_1grow( &frags, datum ); \
48 char *frag_more(int nchars);
49 void frag_align(int alignment, int fill_character);
50 void frag_new(int old_frags_var_max_size);
51 void frag_wane(fragS *fragP);
53 char *frag_variant(relax_stateT type,
56 relax_substateT subtype,
63 char *frag_var(relax_stateT type,
66 relax_substateT subtype,
71 #else /* not __STDC__ */
80 #endif /* not __STDC__ */