obstack.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. /* obstack.h - object stack macros
  2. Copyright (C) 1988-2015 Free Software Foundation, Inc.
  3. NOTE: The canonical source of this file is maintained with the GNU C Library.
  4. Bugs can be reported to bug-glibc@gnu.org.
  5. This program is free software; you can redistribute it and/or modify it
  6. under the terms of the GNU General Public License as published by the
  7. Free Software Foundation; either version 2, or (at your option) any
  8. later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301,
  16. USA. */
  17. /* Summary:
  18. All the apparent functions defined here are macros. The idea
  19. is that you would use these pre-tested macros to solve a
  20. very specific set of problems, and they would run fast.
  21. Caution: no side-effects in arguments please!! They may be
  22. evaluated MANY times!!
  23. These macros operate a stack of objects. Each object starts life
  24. small, and may grow to maturity. (Consider building a word syllable
  25. by syllable.) An object can move while it is growing. Once it has
  26. been "finished" it never changes address again. So the "top of the
  27. stack" is typically an immature growing object, while the rest of the
  28. stack is of mature, fixed size and fixed address objects.
  29. These routines grab large chunks of memory, using a function you
  30. supply, called `obstack_chunk_alloc'. On occasion, they free chunks,
  31. by calling `obstack_chunk_free'. You must define them and declare
  32. them before using any obstack macros.
  33. Each independent stack is represented by a `struct obstack'.
  34. Each of the obstack macros expects a pointer to such a structure
  35. as the first argument.
  36. One motivation for this package is the problem of growing char strings
  37. in symbol tables. Unless you are "fascist pig with a read-only mind"
  38. --Gosper's immortal quote from HAKMEM item 154, out of context--you
  39. would not like to put any arbitrary upper limit on the length of your
  40. symbols.
  41. In practice this often means you will build many short symbols and a
  42. few long symbols. At the time you are reading a symbol you don't know
  43. how long it is. One traditional method is to read a symbol into a
  44. buffer, realloc()ating the buffer every time you try to read a symbol
  45. that is longer than the buffer. This is beaut, but you still will
  46. want to copy the symbol from the buffer to a more permanent
  47. symbol-table entry say about half the time.
  48. With obstacks, you can work differently. Use one obstack for all symbol
  49. names. As you read a symbol, grow the name in the obstack gradually.
  50. When the name is complete, finalize it. Then, if the symbol exists already,
  51. free the newly read name.
  52. The way we do this is to take a large chunk, allocating memory from
  53. low addresses. When you want to build a symbol in the chunk you just
  54. add chars above the current "high water mark" in the chunk. When you
  55. have finished adding chars, because you got to the end of the symbol,
  56. you know how long the chars are, and you can create a new object.
  57. Mostly the chars will not burst over the highest address of the chunk,
  58. because you would typically expect a chunk to be (say) 100 times as
  59. long as an average object.
  60. In case that isn't clear, when we have enough chars to make up
  61. the object, THEY ARE ALREADY CONTIGUOUS IN THE CHUNK (guaranteed)
  62. so we just point to it where it lies. No moving of chars is
  63. needed and this is the second win: potentially long strings need
  64. never be explicitly shuffled. Once an object is formed, it does not
  65. change its address during its lifetime.
  66. When the chars burst over a chunk boundary, we allocate a larger
  67. chunk, and then copy the partly formed object from the end of the old
  68. chunk to the beginning of the new larger chunk. We then carry on
  69. accreting characters to the end of the object as we normally would.
  70. A special macro is provided to add a single char at a time to a
  71. growing object. This allows the use of register variables, which
  72. break the ordinary 'growth' macro.
  73. Summary:
  74. We allocate large chunks.
  75. We carve out one object at a time from the current chunk.
  76. Once carved, an object never moves.
  77. We are free to append data of any size to the currently
  78. growing object.
  79. Exactly one object is growing in an obstack at any one time.
  80. You can run one obstack per control block.
  81. You may have as many control blocks as you dare.
  82. Because of the way we do it, you can `unwind' an obstack
  83. back to a previous state. (You may remove objects much
  84. as you would with a stack.)
  85. */
  86. /* Don't do the contents of this file more than once. */
  87. #ifndef _OBSTACK_H
  88. #define _OBSTACK_H 1
  89. #ifdef __cplusplus
  90. extern "C" {
  91. #endif
  92. /* We use subtraction of (char *) 0 instead of casting to int
  93. because on word-addressable machines a simple cast to int
  94. may ignore the byte-within-word field of the pointer. */
  95. #ifndef __PTR_TO_INT
  96. # define __PTR_TO_INT(P) ((P) - (char *) 0)
  97. #endif
  98. #ifndef __INT_TO_PTR
  99. # define __INT_TO_PTR(P) ((P) + (char *) 0)
  100. #endif
  101. /* We need the type of the resulting object. If __PTRDIFF_TYPE__ is
  102. defined, as with GNU C, use that; that way we don't pollute the
  103. namespace with <stddef.h>'s symbols. Otherwise, if <stddef.h> is
  104. available, include it and use ptrdiff_t. In traditional C, long is
  105. the best that we can do. */
  106. #ifdef __PTRDIFF_TYPE__
  107. # define PTR_INT_TYPE __PTRDIFF_TYPE__
  108. #else
  109. # ifdef HAVE_STDDEF_H
  110. # include <stddef.h>
  111. # define PTR_INT_TYPE ptrdiff_t
  112. # else
  113. # define PTR_INT_TYPE long
  114. # endif
  115. #endif
  116. #if defined _LIBC || defined HAVE_STRING_H
  117. # include <string.h>
  118. # define _obstack_memcpy(To, From, N) memcpy ((To), (From), (N))
  119. #else
  120. # ifdef memcpy
  121. # define _obstack_memcpy(To, From, N) memcpy ((To), (char *)(From), (N))
  122. # else
  123. # define _obstack_memcpy(To, From, N) bcopy ((char *)(From), (To), (N))
  124. # endif
  125. #endif
  126. struct _obstack_chunk /* Lives at front of each chunk. */
  127. {
  128. char *limit; /* 1 past end of this chunk */
  129. struct _obstack_chunk *prev; /* address of prior chunk or NULL */
  130. char contents[4]; /* objects begin here */
  131. };
  132. struct obstack /* control current object in current chunk */
  133. {
  134. long chunk_size; /* preferred size to allocate chunks in */
  135. struct _obstack_chunk *chunk; /* address of current struct obstack_chunk */
  136. char *object_base; /* address of object we are building */
  137. char *next_free; /* where to add next char to current object */
  138. char *chunk_limit; /* address of char after current chunk */
  139. PTR_INT_TYPE temp; /* Temporary for some macros. */
  140. int alignment_mask; /* Mask of alignment for each object. */
  141. /* These prototypes vary based on `use_extra_arg', and we use
  142. casts to the prototypeless function type in all assignments,
  143. but having prototypes here quiets -Wstrict-prototypes. */
  144. struct _obstack_chunk *(*chunkfun) (void *, long);
  145. void (*freefun) (void *, struct _obstack_chunk *);
  146. void *extra_arg; /* first arg for chunk alloc/dealloc funcs */
  147. unsigned use_extra_arg:1; /* chunk alloc/dealloc funcs take extra arg */
  148. unsigned maybe_empty_object:1;/* There is a possibility that the current
  149. chunk contains a zero-length object. This
  150. prevents freeing the chunk if we allocate
  151. a bigger chunk to replace it. */
  152. unsigned alloc_failed:1; /* No longer used, as we now call the failed
  153. handler on error, but retained for binary
  154. compatibility. */
  155. };
  156. /* Declare the external functions we use; they are in obstack.c. */
  157. extern void _obstack_newchunk (struct obstack *, int);
  158. extern void _obstack_free (struct obstack *, void *);
  159. extern int _obstack_begin (struct obstack *, int, int,
  160. void *(*) (long), void (*) (void *));
  161. extern int _obstack_begin_1 (struct obstack *, int, int,
  162. void *(*) (void *, long),
  163. void (*) (void *, void *), void *);
  164. extern int _obstack_memory_used (struct obstack *);
  165. /* Do the function-declarations after the structs
  166. but before defining the macros. */
  167. void obstack_init (struct obstack *obstack);
  168. void * obstack_alloc (struct obstack *obstack, int size);
  169. void * obstack_copy (struct obstack *obstack, void *address, int size);
  170. void * obstack_copy0 (struct obstack *obstack, void *address, int size);
  171. void obstack_free (struct obstack *obstack, void *block);
  172. void obstack_blank (struct obstack *obstack, int size);
  173. void obstack_grow (struct obstack *obstack, void *data, int size);
  174. void obstack_grow0 (struct obstack *obstack, void *data, int size);
  175. void obstack_1grow (struct obstack *obstack, int data_char);
  176. void obstack_ptr_grow (struct obstack *obstack, void *data);
  177. void obstack_int_grow (struct obstack *obstack, int data);
  178. void * obstack_finish (struct obstack *obstack);
  179. int obstack_object_size (struct obstack *obstack);
  180. int obstack_room (struct obstack *obstack);
  181. void obstack_make_room (struct obstack *obstack, int size);
  182. void obstack_1grow_fast (struct obstack *obstack, int data_char);
  183. void obstack_ptr_grow_fast (struct obstack *obstack, void *data);
  184. void obstack_int_grow_fast (struct obstack *obstack, int data);
  185. void obstack_blank_fast (struct obstack *obstack, int size);
  186. void * obstack_base (struct obstack *obstack);
  187. void * obstack_next_free (struct obstack *obstack);
  188. int obstack_alignment_mask (struct obstack *obstack);
  189. int obstack_chunk_size (struct obstack *obstack);
  190. int obstack_memory_used (struct obstack *obstack);
  191. /* Error handler called when `obstack_chunk_alloc' failed to allocate
  192. more memory. This can be set to a user defined function. The
  193. default action is to print a message and abort. */
  194. extern void (*obstack_alloc_failed_handler) (void);
  195. /* Exit value used when `print_and_abort' is used. */
  196. extern int obstack_exit_failure;
  197. /* Pointer to beginning of object being allocated or to be allocated next.
  198. Note that this might not be the final address of the object
  199. because a new chunk might be needed to hold the final size. */
  200. #define obstack_base(h) ((h)->object_base)
  201. /* Size for allocating ordinary chunks. */
  202. #define obstack_chunk_size(h) ((h)->chunk_size)
  203. /* Pointer to next byte not yet allocated in current chunk. */
  204. #define obstack_next_free(h) ((h)->next_free)
  205. /* Mask specifying low bits that should be clear in address of an object. */
  206. #define obstack_alignment_mask(h) ((h)->alignment_mask)
  207. /* To prevent prototype warnings provide complete argument list in
  208. standard C version. */
  209. # define obstack_init(h) \
  210. _obstack_begin ((h), 0, 0, \
  211. (void *(*) (long)) obstack_chunk_alloc, (void (*) (void *)) obstack_chunk_free)
  212. # define obstack_begin(h, size) \
  213. _obstack_begin ((h), (size), 0, \
  214. (void *(*) (long)) obstack_chunk_alloc, (void (*) (void *)) obstack_chunk_free)
  215. # define obstack_specify_allocation(h, size, alignment, chunkfun, freefun) \
  216. _obstack_begin ((h), (size), (alignment), \
  217. (void *(*) (long)) (chunkfun), (void (*) (void *)) (freefun))
  218. # define obstack_specify_allocation_with_arg(h, size, alignment, chunkfun, freefun, arg) \
  219. _obstack_begin_1 ((h), (size), (alignment), \
  220. (void *(*) (void *, long)) (chunkfun), \
  221. (void (*) (void *, void *)) (freefun), (arg))
  222. # define obstack_chunkfun(h, newchunkfun) \
  223. ((h) -> chunkfun = (struct _obstack_chunk *(*)(void *, long)) (newchunkfun))
  224. # define obstack_freefun(h, newfreefun) \
  225. ((h) -> freefun = (void (*)(void *, struct _obstack_chunk *)) (newfreefun))
  226. #define obstack_1grow_fast(h,achar) (*((h)->next_free)++ = (achar))
  227. #define obstack_blank_fast(h,n) ((h)->next_free += (n))
  228. #define obstack_memory_used(h) _obstack_memory_used (h)
  229. #if defined __GNUC__ && defined __STDC__ && __STDC__
  230. /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
  231. does not implement __extension__. But that compiler doesn't define
  232. __GNUC_MINOR__. */
  233. # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
  234. # define __extension__
  235. # endif
  236. /* For GNU C, if not -traditional,
  237. we can define these macros to compute all args only once
  238. without using a global variable.
  239. Also, we can avoid using the `temp' slot, to make faster code. */
  240. # define obstack_object_size(OBSTACK) \
  241. __extension__ \
  242. ({ struct obstack *__o = (OBSTACK); \
  243. (unsigned) (__o->next_free - __o->object_base); })
  244. # define obstack_room(OBSTACK) \
  245. __extension__ \
  246. ({ struct obstack *__o = (OBSTACK); \
  247. (unsigned) (__o->chunk_limit - __o->next_free); })
  248. # define obstack_make_room(OBSTACK,length) \
  249. __extension__ \
  250. ({ struct obstack *__o = (OBSTACK); \
  251. int __len = (length); \
  252. if (__o->chunk_limit - __o->next_free < __len) \
  253. _obstack_newchunk (__o, __len); \
  254. (void) 0; })
  255. # define obstack_empty_p(OBSTACK) \
  256. __extension__ \
  257. ({ struct obstack *__o = (OBSTACK); \
  258. (__o->chunk->prev == 0 && __o->next_free - __o->chunk->contents == 0); })
  259. # define obstack_grow(OBSTACK,where,length) \
  260. __extension__ \
  261. ({ struct obstack *__o = (OBSTACK); \
  262. int __len = (length); \
  263. if (__o->next_free + __len > __o->chunk_limit) \
  264. _obstack_newchunk (__o, __len); \
  265. _obstack_memcpy (__o->next_free, (where), __len); \
  266. __o->next_free += __len; \
  267. (void) 0; })
  268. # define obstack_grow0(OBSTACK,where,length) \
  269. __extension__ \
  270. ({ struct obstack *__o = (OBSTACK); \
  271. int __len = (length); \
  272. if (__o->next_free + __len + 1 > __o->chunk_limit) \
  273. _obstack_newchunk (__o, __len + 1); \
  274. _obstack_memcpy (__o->next_free, (where), __len); \
  275. __o->next_free += __len; \
  276. *(__o->next_free)++ = 0; \
  277. (void) 0; })
  278. # define obstack_1grow(OBSTACK,datum) \
  279. __extension__ \
  280. ({ struct obstack *__o = (OBSTACK); \
  281. if (__o->next_free + 1 > __o->chunk_limit) \
  282. _obstack_newchunk (__o, 1); \
  283. obstack_1grow_fast (__o, datum); \
  284. (void) 0; })
  285. /* These assume that the obstack alignment is good enough for pointers or ints,
  286. and that the data added so far to the current object
  287. shares that much alignment. */
  288. # define obstack_ptr_grow(OBSTACK,datum) \
  289. __extension__ \
  290. ({ struct obstack *__o = (OBSTACK); \
  291. if (__o->next_free + sizeof (void *) > __o->chunk_limit) \
  292. _obstack_newchunk (__o, sizeof (void *)); \
  293. obstack_ptr_grow_fast (__o, datum); })
  294. # define obstack_int_grow(OBSTACK,datum) \
  295. __extension__ \
  296. ({ struct obstack *__o = (OBSTACK); \
  297. if (__o->next_free + sizeof (int) > __o->chunk_limit) \
  298. _obstack_newchunk (__o, sizeof (int)); \
  299. obstack_int_grow_fast (__o, datum); })
  300. # define obstack_ptr_grow_fast(OBSTACK,aptr) \
  301. __extension__ \
  302. ({ struct obstack *__o1 = (OBSTACK); \
  303. *(const void **) __o1->next_free = (aptr); \
  304. __o1->next_free += sizeof (const void *); \
  305. (void) 0; })
  306. # define obstack_int_grow_fast(OBSTACK,aint) \
  307. __extension__ \
  308. ({ struct obstack *__o1 = (OBSTACK); \
  309. *(int *) __o1->next_free = (aint); \
  310. __o1->next_free += sizeof (int); \
  311. (void) 0; })
  312. # define obstack_blank(OBSTACK,length) \
  313. __extension__ \
  314. ({ struct obstack *__o = (OBSTACK); \
  315. int __len = (length); \
  316. if (__o->chunk_limit - __o->next_free < __len) \
  317. _obstack_newchunk (__o, __len); \
  318. obstack_blank_fast (__o, __len); \
  319. (void) 0; })
  320. # define obstack_alloc(OBSTACK,length) \
  321. __extension__ \
  322. ({ struct obstack *__h = (OBSTACK); \
  323. obstack_blank (__h, (length)); \
  324. obstack_finish (__h); })
  325. # define obstack_copy(OBSTACK,where,length) \
  326. __extension__ \
  327. ({ struct obstack *__h = (OBSTACK); \
  328. obstack_grow (__h, (where), (length)); \
  329. obstack_finish (__h); })
  330. # define obstack_copy0(OBSTACK,where,length) \
  331. __extension__ \
  332. ({ struct obstack *__h = (OBSTACK); \
  333. obstack_grow0 (__h, (where), (length)); \
  334. obstack_finish (__h); })
  335. /* The local variable is named __o1 to avoid a name conflict
  336. when obstack_blank is called. */
  337. # define obstack_finish(OBSTACK) \
  338. __extension__ \
  339. ({ struct obstack *__o1 = (OBSTACK); \
  340. void *value; \
  341. value = (void *) __o1->object_base; \
  342. if (__o1->next_free == value) \
  343. __o1->maybe_empty_object = 1; \
  344. __o1->next_free \
  345. = __INT_TO_PTR ((__PTR_TO_INT (__o1->next_free)+__o1->alignment_mask)\
  346. & ~ (__o1->alignment_mask)); \
  347. if (__o1->next_free - (char *)__o1->chunk \
  348. > __o1->chunk_limit - (char *)__o1->chunk) \
  349. __o1->next_free = __o1->chunk_limit; \
  350. __o1->object_base = __o1->next_free; \
  351. value; })
  352. # define obstack_free(OBSTACK, OBJ) \
  353. __extension__ \
  354. ({ struct obstack *__o = (OBSTACK); \
  355. void *__obj = (void *) (OBJ); \
  356. if (__obj > (void *)__o->chunk && __obj < (void *)__o->chunk_limit) \
  357. __o->next_free = __o->object_base = (char *) __obj; \
  358. else (obstack_free) (__o, __obj); })
  359. #else /* not __GNUC__ or not __STDC__ */
  360. # define obstack_object_size(h) \
  361. (unsigned) ((h)->next_free - (h)->object_base)
  362. # define obstack_room(h) \
  363. (unsigned) ((h)->chunk_limit - (h)->next_free)
  364. # define obstack_empty_p(h) \
  365. ((h)->chunk->prev == 0 && (h)->next_free - (h)->chunk->contents == 0)
  366. /* Note that the call to _obstack_newchunk is enclosed in (..., 0)
  367. so that we can avoid having void expressions
  368. in the arms of the conditional expression.
  369. Casting the third operand to void was tried before,
  370. but some compilers won't accept it. */
  371. # define obstack_make_room(h,length) \
  372. ( (h)->temp = (length), \
  373. (((h)->next_free + (h)->temp > (h)->chunk_limit) \
  374. ? (_obstack_newchunk ((h), (h)->temp), 0) : 0))
  375. # define obstack_grow(h,where,length) \
  376. ( (h)->temp = (length), \
  377. (((h)->next_free + (h)->temp > (h)->chunk_limit) \
  378. ? (_obstack_newchunk ((h), (h)->temp), 0) : 0), \
  379. _obstack_memcpy ((h)->next_free, (where), (h)->temp), \
  380. (h)->next_free += (h)->temp)
  381. # define obstack_grow0(h,where,length) \
  382. ( (h)->temp = (length), \
  383. (((h)->next_free + (h)->temp + 1 > (h)->chunk_limit) \
  384. ? (_obstack_newchunk ((h), (h)->temp + 1), 0) : 0), \
  385. _obstack_memcpy ((h)->next_free, (where), (h)->temp), \
  386. (h)->next_free += (h)->temp, \
  387. *((h)->next_free)++ = 0)
  388. # define obstack_1grow(h,datum) \
  389. ( (((h)->next_free + 1 > (h)->chunk_limit) \
  390. ? (_obstack_newchunk ((h), 1), 0) : 0), \
  391. obstack_1grow_fast (h, datum))
  392. # define obstack_ptr_grow(h,datum) \
  393. ( (((h)->next_free + sizeof (char *) > (h)->chunk_limit) \
  394. ? (_obstack_newchunk ((h), sizeof (char *)), 0) : 0), \
  395. obstack_ptr_grow_fast (h, datum))
  396. # define obstack_int_grow(h,datum) \
  397. ( (((h)->next_free + sizeof (int) > (h)->chunk_limit) \
  398. ? (_obstack_newchunk ((h), sizeof (int)), 0) : 0), \
  399. obstack_int_grow_fast (h, datum))
  400. # define obstack_ptr_grow_fast(h,aptr) \
  401. (((const void **) ((h)->next_free += sizeof (void *)))[-1] = (aptr))
  402. # define obstack_int_grow_fast(h,aint) \
  403. (((int *) ((h)->next_free += sizeof (int)))[-1] = (aptr))
  404. # define obstack_blank(h,length) \
  405. ( (h)->temp = (length), \
  406. (((h)->chunk_limit - (h)->next_free < (h)->temp) \
  407. ? (_obstack_newchunk ((h), (h)->temp), 0) : 0), \
  408. obstack_blank_fast (h, (h)->temp))
  409. # define obstack_alloc(h,length) \
  410. (obstack_blank ((h), (length)), obstack_finish ((h)))
  411. # define obstack_copy(h,where,length) \
  412. (obstack_grow ((h), (where), (length)), obstack_finish ((h)))
  413. # define obstack_copy0(h,where,length) \
  414. (obstack_grow0 ((h), (where), (length)), obstack_finish ((h)))
  415. # define obstack_finish(h) \
  416. ( ((h)->next_free == (h)->object_base \
  417. ? (((h)->maybe_empty_object = 1), 0) \
  418. : 0), \
  419. (h)->temp = __PTR_TO_INT ((h)->object_base), \
  420. (h)->next_free \
  421. = __INT_TO_PTR ((__PTR_TO_INT ((h)->next_free)+(h)->alignment_mask) \
  422. & ~ ((h)->alignment_mask)), \
  423. (((h)->next_free - (char *) (h)->chunk \
  424. > (h)->chunk_limit - (char *) (h)->chunk) \
  425. ? ((h)->next_free = (h)->chunk_limit) : 0), \
  426. (h)->object_base = (h)->next_free, \
  427. (void *) __INT_TO_PTR ((h)->temp))
  428. # define obstack_free(h,obj) \
  429. ( (h)->temp = (char *) (obj) - (char *) (h)->chunk, \
  430. (((h)->temp > 0 && (h)->temp < (h)->chunk_limit - (char *) (h)->chunk)\
  431. ? (((h)->next_free = (h)->object_base \
  432. = (h)->temp + (char *) (h)->chunk), 0) \
  433. : ((obstack_free) ((h), (h)->temp + (char *) (h)->chunk), 0)))
  434. #endif /* not __GNUC__ or not __STDC__ */
  435. #ifdef __cplusplus
  436. } /* C++ */
  437. #endif
  438. #endif /* obstack.h */