Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[games.git] / gnu / usr.bin / as / frags.h
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, 675 Mass Ave, Cambridge, MA 02139, USA.  */
20 /*
21  * $FreeBSD: src/gnu/usr.bin/as/frags.h,v 1.6 1999/08/27 23:34:16 peter Exp $
22  * $DragonFly: src/gnu/usr.bin/as/Attic/frags.h,v 1.2 2003/06/17 04:25:44 dillon Exp $
23  */
24
25
26 extern struct obstack   frags;
27 /* Frags ONLY live in this obstack. */
28 /* We use obstack_next_free() macro */
29 /* so please don't put any other objects */
30 /* on this stack! */
31
32 /*
33  * A macro to speed up appending exactly 1 char
34  * to current frag.
35  */
36 /* JF changed < 1 to <= 1 to avoid a race conditon */
37 #define FRAG_APPEND_1_CHAR(datum)       \
38 {                                       \
39                                             if (obstack_room( &frags ) <= 1) {\
40                                                                                   frag_wane (frag_now); \
41                                                                                       frag_new (0);             \
42                                                                                   }                             \
43                                                                                       obstack_1grow( &frags, datum );   \
44                                                                                   }
45
46
47 #if __STDC__ == 1
48
49 char *frag_more(int nchars);
50 void frag_align(int alignment, int fill_character);
51 void frag_new(int old_frags_var_max_size);
52 void frag_wane(fragS *fragP);
53
54 char *frag_variant(relax_stateT type,
55                    int max_chars,
56                    int var,
57                    relax_substateT subtype,
58                    symbolS *symbol,
59                    long offset,
60                    char *opcode,
61                    int pcrel_adjust,
62                    int bsr);
63
64 char *frag_var(relax_stateT type,
65                int max_chars,
66                int var,
67                relax_substateT subtype,
68                symbolS *symbol,
69                long offset,
70                char *opcode);
71
72 #else /* not __STDC__ */
73
74 char *frag_more();
75 char *frag_var();
76 char *frag_variant();
77 void frag_align();
78 void frag_new();
79 void frag_wane();
80
81 #endif /* not __STDC__ */
82
83 /*
84  * Local Variables:
85  * comment-column: 0
86  * fill-column: 131
87  * End:
88  */
89
90 /* end of frags.h */