* language.h (PRINT_LITERAL_FORM): New macro that takes character
[deliverable/binutils-gdb.git] / gas / frags.h
CommitLineData
fecd2382
RP
1/* frags.h - Header file for the frag concept.
2 Copyright (C) 1987 Free Software Foundation, Inc.
a39116f1
RP
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, 675 Mass Ave, Cambridge, MA 02139, USA. */
fecd2382
RP
19
20extern struct obstack frags;
a39116f1
RP
21/* Frags ONLY live in this obstack. */
22/* We use obstack_next_free() macro */
23/* so please don't put any other objects */
24/* on this stack! */
fecd2382
RP
25
26/*
27 * A macro to speed up appending exactly 1 char
28 * to current frag.
29 */
30/* JF changed < 1 to <= 1 to avoid a race conditon */
31#define FRAG_APPEND_1_CHAR(datum) \
32{ \
a39116f1
RP
33 if (obstack_room( &frags ) <= 1) {\
34 frag_wane (frag_now); \
35 frag_new (0); \
36 } \
37 obstack_1grow( &frags, datum ); \
38 }
39
fecd2382
RP
40
41#ifdef __STDC__
42
43char *frag_more(int nchars);
44void frag_align(int alignment, int fill_character);
45void frag_new(int old_frags_var_max_size);
46void frag_wane(fragS *fragP);
47
48char *frag_variant(relax_stateT type,
49 int max_chars,
50 int var,
51 relax_substateT subtype,
52 symbolS *symbol,
53 long offset,
54 char *opcode,
55 int pcrel_adjust,
56 int bsr);
57
58char *frag_var(relax_stateT type,
59 int max_chars,
60 int var,
61 relax_substateT subtype,
62 symbolS *symbol,
63 long offset,
64 char *opcode);
65
66#else /* __STDC__ */
67
68char *frag_more();
69char *frag_var();
70char *frag_variant();
71void frag_align();
72void frag_new();
73void frag_wane();
74
75#endif /* __STDC__ */
76
77/*
78 * Local Variables:
79 * comment-column: 0
80 * fill-column: 131
81 * End:
82 */
83
8b228fe9 84/* end of frags.h */
This page took 0.06245 seconds and 4 git commands to generate.