obstack.c 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631
  1. /* obstack.c - subroutines used implicitly by object stack macros
  2. Copyright (C) 1988-1994,96,97,98,99,2000,2001 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library. Its master source is NOT part of
  4. the C library, however. The master source lives in /gd/gnu/lib.
  5. The GNU C Library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public
  7. License as published by the Free Software Foundation; either
  8. version 2.1 of the License, or (at your option) any later version.
  9. The GNU C Library 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 GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with the GNU C Library; if not, write to the Free
  15. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  16. 02111-1307 USA. */
  17. /* Make uClibc lie about being glibc. */
  18. #define __FORCE_GLIBC 1
  19. #include <locale.h>
  20. #ifdef HAVE_CONFIG_H
  21. # include <config.h>
  22. #endif
  23. #include <obstack.h>
  24. /* NOTE BEFORE MODIFYING THIS FILE: This version number must be
  25. incremented whenever callers compiled using an old obstack.h can no
  26. longer properly call the functions in this obstack.c. */
  27. #define OBSTACK_INTERFACE_VERSION 1
  28. /* Comment out all this code if we are using the GNU C Library, and are not
  29. actually compiling the library itself, and the installed library
  30. supports the same library interface we do. This code is part of the GNU
  31. C Library, but also included in many other GNU distributions. Compiling
  32. and linking in this code is a waste when using the GNU C library
  33. (especially if it is a shared library). Rather than having every GNU
  34. program understand `configure --with-gnu-libc' and omit the object
  35. files, it is simpler to just do this in the source for each such file. */
  36. #include <stdio.h> /* Random thing to get __GNU_LIBRARY__. */
  37. #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
  38. # include <gnu-versions.h>
  39. # if _GNU_OBSTACK_INTERFACE_VERSION == OBSTACK_INTERFACE_VERSION
  40. # define ELIDE_CODE
  41. # endif
  42. #endif
  43. #if (defined _LIBC && defined USE_IN_LIBIO) || defined __UCLIBC_HAS_WCHAR__
  44. # include <wchar.h>
  45. #endif
  46. #ifndef ELIDE_CODE
  47. # if defined __STDC__ && __STDC__
  48. # define POINTER void *
  49. # else
  50. # define POINTER char *
  51. # endif
  52. /* Determine default alignment. */
  53. struct fooalign {char x; double d;};
  54. # define DEFAULT_ALIGNMENT \
  55. ((PTR_INT_TYPE) ((char *) &((struct fooalign *) 0)->d - (char *) 0))
  56. /* If malloc were really smart, it would round addresses to DEFAULT_ALIGNMENT.
  57. But in fact it might be less smart and round addresses to as much as
  58. DEFAULT_ROUNDING. So we prepare for it to do that. */
  59. union fooround {long x; double d;};
  60. # define DEFAULT_ROUNDING (sizeof (union fooround))
  61. /* When we copy a long block of data, this is the unit to do it with.
  62. On some machines, copying successive ints does not work;
  63. in such a case, redefine COPYING_UNIT to `long' (if that works)
  64. or `char' as a last resort. */
  65. # ifndef COPYING_UNIT
  66. # define COPYING_UNIT int
  67. # endif
  68. /* The functions allocating more room by calling `obstack_chunk_alloc'
  69. jump to the handler pointed to by `obstack_alloc_failed_handler'.
  70. This can be set to a user defined function which should either
  71. abort gracefully or use longjump - but shouldn't return. This
  72. variable by default points to the internal function
  73. `print_and_abort'. */
  74. # if defined __STDC__ && __STDC__
  75. static void print_and_abort (void);
  76. void (*obstack_alloc_failed_handler) (void) = print_and_abort;
  77. # else
  78. static void print_and_abort ();
  79. void (*obstack_alloc_failed_handler) () = print_and_abort;
  80. # endif
  81. /* Exit value used when `print_and_abort' is used. */
  82. # if defined __GNU_LIBRARY__ || defined HAVE_STDLIB_H
  83. # include <stdlib.h>
  84. # endif
  85. # ifndef EXIT_FAILURE
  86. # define EXIT_FAILURE 1
  87. # endif
  88. libc_hidden_proto(fprintf)
  89. libc_hidden_proto(abort)
  90. libc_hidden_proto(exit)
  91. #ifdef __UCLIBC_HAS_WCHAR__
  92. libc_hidden_proto(fwprintf)
  93. #endif
  94. int obstack_exit_failure = EXIT_FAILURE;
  95. /* The non-GNU-C macros copy the obstack into this global variable
  96. to avoid multiple evaluation. */
  97. struct obstack *_obstack;
  98. /* Define a macro that either calls functions with the traditional malloc/free
  99. calling interface, or calls functions with the mmalloc/mfree interface
  100. (that adds an extra first argument), based on the state of use_extra_arg.
  101. For free, do not use ?:, since some compilers, like the MIPS compilers,
  102. do not allow (expr) ? void : void. */
  103. # if defined __STDC__ && __STDC__
  104. # define CALL_CHUNKFUN(h, size) \
  105. (((h) -> use_extra_arg) \
  106. ? (*(h)->chunkfun) ((h)->extra_arg, (size)) \
  107. : (*(struct _obstack_chunk *(*) (long)) (h)->chunkfun) ((size)))
  108. # define CALL_FREEFUN(h, old_chunk) \
  109. do { \
  110. if ((h) -> use_extra_arg) \
  111. (*(h)->freefun) ((h)->extra_arg, (old_chunk)); \
  112. else \
  113. (*(void (*) (void *)) (h)->freefun) ((old_chunk)); \
  114. } while (0)
  115. # else
  116. # define CALL_CHUNKFUN(h, size) \
  117. (((h) -> use_extra_arg) \
  118. ? (*(h)->chunkfun) ((h)->extra_arg, (size)) \
  119. : (*(struct _obstack_chunk *(*) ()) (h)->chunkfun) ((size)))
  120. # define CALL_FREEFUN(h, old_chunk) \
  121. do { \
  122. if ((h) -> use_extra_arg) \
  123. (*(h)->freefun) ((h)->extra_arg, (old_chunk)); \
  124. else \
  125. (*(void (*) ()) (h)->freefun) ((old_chunk)); \
  126. } while (0)
  127. # endif
  128. /* Initialize an obstack H for use. Specify chunk size SIZE (0 means default).
  129. Objects start on multiples of ALIGNMENT (0 means use default).
  130. CHUNKFUN is the function to use to allocate chunks,
  131. and FREEFUN the function to free them.
  132. Return nonzero if successful, calls obstack_alloc_failed_handler if
  133. allocation fails. */
  134. int
  135. _obstack_begin (h, size, alignment, chunkfun, freefun)
  136. struct obstack *h;
  137. int size;
  138. int alignment;
  139. # if defined __STDC__ && __STDC__
  140. POINTER (*chunkfun) (long);
  141. void (*freefun) (void *);
  142. # else
  143. POINTER (*chunkfun) ();
  144. void (*freefun) ();
  145. # endif
  146. {
  147. register struct _obstack_chunk *chunk; /* points to new chunk */
  148. if (alignment == 0)
  149. alignment = (int) DEFAULT_ALIGNMENT;
  150. if (size == 0)
  151. /* Default size is what GNU malloc can fit in a 4096-byte block. */
  152. {
  153. /* 12 is sizeof (mhead) and 4 is EXTRA from GNU malloc.
  154. Use the values for range checking, because if range checking is off,
  155. the extra bytes won't be missed terribly, but if range checking is on
  156. and we used a larger request, a whole extra 4096 bytes would be
  157. allocated.
  158. These number are irrelevant to the new GNU malloc. I suspect it is
  159. less sensitive to the size of the request. */
  160. int extra = ((((12 + DEFAULT_ROUNDING - 1) & ~(DEFAULT_ROUNDING - 1))
  161. + 4 + DEFAULT_ROUNDING - 1)
  162. & ~(DEFAULT_ROUNDING - 1));
  163. size = 4096 - extra;
  164. }
  165. # if defined __STDC__ && __STDC__
  166. h->chunkfun = (struct _obstack_chunk * (*)(void *, long)) chunkfun;
  167. h->freefun = (void (*) (void *, struct _obstack_chunk *)) freefun;
  168. # else
  169. h->chunkfun = (struct _obstack_chunk * (*)()) chunkfun;
  170. h->freefun = freefun;
  171. # endif
  172. h->chunk_size = size;
  173. h->alignment_mask = alignment - 1;
  174. h->use_extra_arg = 0;
  175. chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size);
  176. if (!chunk)
  177. (*obstack_alloc_failed_handler) ();
  178. h->next_free = h->object_base = chunk->contents;
  179. h->chunk_limit = chunk->limit
  180. = (char *) chunk + h->chunk_size;
  181. chunk->prev = 0;
  182. /* The initial chunk now contains no empty object. */
  183. h->maybe_empty_object = 0;
  184. h->alloc_failed = 0;
  185. return 1;
  186. }
  187. int
  188. _obstack_begin_1 (h, size, alignment, chunkfun, freefun, arg)
  189. struct obstack *h;
  190. int size;
  191. int alignment;
  192. # if defined __STDC__ && __STDC__
  193. POINTER (*chunkfun) (POINTER, long);
  194. void (*freefun) (POINTER, POINTER);
  195. # else
  196. POINTER (*chunkfun) ();
  197. void (*freefun) ();
  198. # endif
  199. POINTER arg;
  200. {
  201. register struct _obstack_chunk *chunk; /* points to new chunk */
  202. if (alignment == 0)
  203. alignment = (int) DEFAULT_ALIGNMENT;
  204. if (size == 0)
  205. /* Default size is what GNU malloc can fit in a 4096-byte block. */
  206. {
  207. /* 12 is sizeof (mhead) and 4 is EXTRA from GNU malloc.
  208. Use the values for range checking, because if range checking is off,
  209. the extra bytes won't be missed terribly, but if range checking is on
  210. and we used a larger request, a whole extra 4096 bytes would be
  211. allocated.
  212. These number are irrelevant to the new GNU malloc. I suspect it is
  213. less sensitive to the size of the request. */
  214. int extra = ((((12 + DEFAULT_ROUNDING - 1) & ~(DEFAULT_ROUNDING - 1))
  215. + 4 + DEFAULT_ROUNDING - 1)
  216. & ~(DEFAULT_ROUNDING - 1));
  217. size = 4096 - extra;
  218. }
  219. # if defined __STDC__ && __STDC__
  220. h->chunkfun = (struct _obstack_chunk * (*)(void *,long)) chunkfun;
  221. h->freefun = (void (*) (void *, struct _obstack_chunk *)) freefun;
  222. # else
  223. h->chunkfun = (struct _obstack_chunk * (*)()) chunkfun;
  224. h->freefun = freefun;
  225. # endif
  226. h->chunk_size = size;
  227. h->alignment_mask = alignment - 1;
  228. h->extra_arg = arg;
  229. h->use_extra_arg = 1;
  230. chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size);
  231. if (!chunk)
  232. (*obstack_alloc_failed_handler) ();
  233. h->next_free = h->object_base = chunk->contents;
  234. h->chunk_limit = chunk->limit
  235. = (char *) chunk + h->chunk_size;
  236. chunk->prev = 0;
  237. /* The initial chunk now contains no empty object. */
  238. h->maybe_empty_object = 0;
  239. h->alloc_failed = 0;
  240. return 1;
  241. }
  242. /* Allocate a new current chunk for the obstack *H
  243. on the assumption that LENGTH bytes need to be added
  244. to the current object, or a new object of length LENGTH allocated.
  245. Copies any partial object from the end of the old chunk
  246. to the beginning of the new one. */
  247. void
  248. _obstack_newchunk (h, length)
  249. struct obstack *h;
  250. int length;
  251. {
  252. register struct _obstack_chunk *old_chunk = h->chunk;
  253. register struct _obstack_chunk *new_chunk;
  254. register long new_size;
  255. register long obj_size = h->next_free - h->object_base;
  256. register long i;
  257. long already;
  258. char *object_base;
  259. /* Compute size for new chunk. */
  260. new_size = (obj_size + length) + (obj_size >> 3) + h->alignment_mask + 100;
  261. if (new_size < h->chunk_size)
  262. new_size = h->chunk_size;
  263. /* Allocate and initialize the new chunk. */
  264. new_chunk = CALL_CHUNKFUN (h, new_size);
  265. if (!new_chunk)
  266. (*obstack_alloc_failed_handler) ();
  267. h->chunk = new_chunk;
  268. new_chunk->prev = old_chunk;
  269. new_chunk->limit = h->chunk_limit = (char *) new_chunk + new_size;
  270. /* Compute an aligned object_base in the new chunk */
  271. object_base =
  272. __INT_TO_PTR ((__PTR_TO_INT (new_chunk->contents) + h->alignment_mask)
  273. & ~ (h->alignment_mask));
  274. /* Move the existing object to the new chunk.
  275. Word at a time is fast and is safe if the object
  276. is sufficiently aligned. */
  277. if (h->alignment_mask + 1 >= DEFAULT_ALIGNMENT)
  278. {
  279. for (i = obj_size / sizeof (COPYING_UNIT) - 1;
  280. i >= 0; i--)
  281. ((COPYING_UNIT *)object_base)[i]
  282. = ((COPYING_UNIT *)h->object_base)[i];
  283. /* We used to copy the odd few remaining bytes as one extra COPYING_UNIT,
  284. but that can cross a page boundary on a machine
  285. which does not do strict alignment for COPYING_UNITS. */
  286. already = obj_size / sizeof (COPYING_UNIT) * sizeof (COPYING_UNIT);
  287. }
  288. else
  289. already = 0;
  290. /* Copy remaining bytes one by one. */
  291. for (i = already; i < obj_size; i++)
  292. object_base[i] = h->object_base[i];
  293. /* If the object just copied was the only data in OLD_CHUNK,
  294. free that chunk and remove it from the chain.
  295. But not if that chunk might contain an empty object. */
  296. if (h->object_base == old_chunk->contents && ! h->maybe_empty_object)
  297. {
  298. new_chunk->prev = old_chunk->prev;
  299. CALL_FREEFUN (h, old_chunk);
  300. }
  301. h->object_base = object_base;
  302. h->next_free = h->object_base + obj_size;
  303. /* The new chunk certainly contains no empty object yet. */
  304. h->maybe_empty_object = 0;
  305. }
  306. /* Return nonzero if object OBJ has been allocated from obstack H.
  307. This is here for debugging.
  308. If you use it in a program, you are probably losing. */
  309. # if defined __STDC__ && __STDC__
  310. /* Suppress -Wmissing-prototypes warning. We don't want to declare this in
  311. obstack.h because it is just for debugging. */
  312. int _obstack_allocated_p (struct obstack *h, POINTER obj);
  313. # endif
  314. int
  315. _obstack_allocated_p (h, obj)
  316. struct obstack *h;
  317. POINTER obj;
  318. {
  319. register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
  320. register struct _obstack_chunk *plp; /* point to previous chunk if any */
  321. lp = (h)->chunk;
  322. /* We use >= rather than > since the object cannot be exactly at
  323. the beginning of the chunk but might be an empty object exactly
  324. at the end of an adjacent chunk. */
  325. while (lp != 0 && ((POINTER) lp >= obj || (POINTER) (lp)->limit < obj))
  326. {
  327. plp = lp->prev;
  328. lp = plp;
  329. }
  330. return lp != 0;
  331. }
  332. /* Free objects in obstack H, including OBJ and everything allocate
  333. more recently than OBJ. If OBJ is zero, free everything in H. */
  334. # undef obstack_free
  335. /* This function has two names with identical definitions.
  336. This is the first one, called from non-ANSI code. */
  337. void
  338. _obstack_free (h, obj)
  339. struct obstack *h;
  340. POINTER obj;
  341. {
  342. register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
  343. register struct _obstack_chunk *plp; /* point to previous chunk if any */
  344. lp = h->chunk;
  345. /* We use >= because there cannot be an object at the beginning of a chunk.
  346. But there can be an empty object at that address
  347. at the end of another chunk. */
  348. while (lp != 0 && ((POINTER) lp >= obj || (POINTER) (lp)->limit < obj))
  349. {
  350. plp = lp->prev;
  351. CALL_FREEFUN (h, lp);
  352. lp = plp;
  353. /* If we switch chunks, we can't tell whether the new current
  354. chunk contains an empty object, so assume that it may. */
  355. h->maybe_empty_object = 1;
  356. }
  357. if (lp)
  358. {
  359. h->object_base = h->next_free = (char *) (obj);
  360. h->chunk_limit = lp->limit;
  361. h->chunk = lp;
  362. }
  363. else if (obj != 0)
  364. /* obj is not in any of the chunks! */
  365. abort ();
  366. }
  367. /* This function is used from ANSI code. */
  368. void
  369. obstack_free (h, obj)
  370. struct obstack *h;
  371. POINTER obj;
  372. {
  373. register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
  374. register struct _obstack_chunk *plp; /* point to previous chunk if any */
  375. lp = h->chunk;
  376. /* We use >= because there cannot be an object at the beginning of a chunk.
  377. But there can be an empty object at that address
  378. at the end of another chunk. */
  379. while (lp != 0 && ((POINTER) lp >= obj || (POINTER) (lp)->limit < obj))
  380. {
  381. plp = lp->prev;
  382. CALL_FREEFUN (h, lp);
  383. lp = plp;
  384. /* If we switch chunks, we can't tell whether the new current
  385. chunk contains an empty object, so assume that it may. */
  386. h->maybe_empty_object = 1;
  387. }
  388. if (lp)
  389. {
  390. h->object_base = h->next_free = (char *) (obj);
  391. h->chunk_limit = lp->limit;
  392. h->chunk = lp;
  393. }
  394. else if (obj != 0)
  395. /* obj is not in any of the chunks! */
  396. abort ();
  397. }
  398. int
  399. _obstack_memory_used (h)
  400. struct obstack *h;
  401. {
  402. register struct _obstack_chunk* lp;
  403. register int nbytes = 0;
  404. for (lp = h->chunk; lp != 0; lp = lp->prev)
  405. {
  406. nbytes += lp->limit - (char *) lp;
  407. }
  408. return nbytes;
  409. }
  410. /* Define the error handler. */
  411. # ifndef _
  412. /* # if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC */
  413. # ifdef __UCLIBC_HAS_GETTEXT_AWARENESS__
  414. # include <libintl.h>
  415. # ifndef _
  416. # define _(Str) __dcgettext (NULL, Str, LC_MESSAGES)
  417. # endif
  418. # else
  419. # define _(Str) (Str)
  420. # endif
  421. # endif
  422. # if defined _LIBC && defined USE_IN_LIBIO
  423. # include <libio/iolibio.h>
  424. # define fputs(s, f) _IO_fputs (s, f)
  425. # endif
  426. static void
  427. attribute_noreturn
  428. print_and_abort ()
  429. {
  430. /* Don't change any of these strings. Yes, it would be possible to add
  431. the newline to the string and use fputs or so. But this must not
  432. happen because the "memory exhausted" message appears in other places
  433. like this and the translation should be reused instead of creating
  434. a very similar string which requires a separate translation. */
  435. # if defined _LIBC && defined USE_IN_LIBIO
  436. if (_IO_fwide (stderr, 0) > 0)
  437. fwprintf (stderr, L"%s\n", _("memory exhausted"));
  438. else
  439. # endif
  440. fprintf (stderr, "%s\n", _("memory exhausted"));
  441. exit (obstack_exit_failure);
  442. }
  443. # if 0
  444. /* These are now turned off because the applications do not use it
  445. and it uses bcopy via obstack_grow, which causes trouble on sysV. */
  446. /* Now define the functional versions of the obstack macros.
  447. Define them to simply use the corresponding macros to do the job. */
  448. # if defined __STDC__ && __STDC__
  449. /* These function definitions do not work with non-ANSI preprocessors;
  450. they won't pass through the macro names in parentheses. */
  451. /* The function names appear in parentheses in order to prevent
  452. the macro-definitions of the names from being expanded there. */
  453. POINTER (obstack_base) (obstack)
  454. struct obstack *obstack;
  455. {
  456. return obstack_base (obstack);
  457. }
  458. POINTER (obstack_next_free) (obstack)
  459. struct obstack *obstack;
  460. {
  461. return obstack_next_free (obstack);
  462. }
  463. int (obstack_object_size) (obstack)
  464. struct obstack *obstack;
  465. {
  466. return obstack_object_size (obstack);
  467. }
  468. int (obstack_room) (obstack)
  469. struct obstack *obstack;
  470. {
  471. return obstack_room (obstack);
  472. }
  473. int (obstack_make_room) (obstack, length)
  474. struct obstack *obstack;
  475. int length;
  476. {
  477. return obstack_make_room (obstack, length);
  478. }
  479. void (obstack_grow) (obstack, data, length)
  480. struct obstack *obstack;
  481. const POINTER data;
  482. int length;
  483. {
  484. obstack_grow (obstack, data, length);
  485. }
  486. void (obstack_grow0) (obstack, data, length)
  487. struct obstack *obstack;
  488. const POINTER data;
  489. int length;
  490. {
  491. obstack_grow0 (obstack, data, length);
  492. }
  493. void (obstack_1grow) (obstack, character)
  494. struct obstack *obstack;
  495. int character;
  496. {
  497. obstack_1grow (obstack, character);
  498. }
  499. void (obstack_blank) (obstack, length)
  500. struct obstack *obstack;
  501. int length;
  502. {
  503. obstack_blank (obstack, length);
  504. }
  505. void (obstack_1grow_fast) (obstack, character)
  506. struct obstack *obstack;
  507. int character;
  508. {
  509. obstack_1grow_fast (obstack, character);
  510. }
  511. void (obstack_blank_fast) (obstack, length)
  512. struct obstack *obstack;
  513. int length;
  514. {
  515. obstack_blank_fast (obstack, length);
  516. }
  517. POINTER (obstack_finish) (obstack)
  518. struct obstack *obstack;
  519. {
  520. return obstack_finish (obstack);
  521. }
  522. POINTER (obstack_alloc) (obstack, length)
  523. struct obstack *obstack;
  524. int length;
  525. {
  526. return obstack_alloc (obstack, length);
  527. }
  528. POINTER (obstack_copy) (obstack, address, length)
  529. struct obstack *obstack;
  530. const POINTER address;
  531. int length;
  532. {
  533. return obstack_copy (obstack, address, length);
  534. }
  535. POINTER (obstack_copy0) (obstack, address, length)
  536. struct obstack *obstack;
  537. const POINTER address;
  538. int length;
  539. {
  540. return obstack_copy0 (obstack, address, length);
  541. }
  542. # endif /* __STDC__ */
  543. # endif /* 0 */
  544. #endif /* !ELIDE_CODE */