obstack.c 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  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
  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. int obstack_exit_failure = EXIT_FAILURE;
  89. /* The non-GNU-C macros copy the obstack into this global variable
  90. to avoid multiple evaluation. */
  91. struct obstack *_obstack;
  92. /* Define a macro that either calls functions with the traditional malloc/free
  93. calling interface, or calls functions with the mmalloc/mfree interface
  94. (that adds an extra first argument), based on the state of use_extra_arg.
  95. For free, do not use ?:, since some compilers, like the MIPS compilers,
  96. do not allow (expr) ? void : void. */
  97. # if defined __STDC__ && __STDC__
  98. # define CALL_CHUNKFUN(h, size) \
  99. (((h) -> use_extra_arg) \
  100. ? (*(h)->chunkfun) ((h)->extra_arg, (size)) \
  101. : (*(struct _obstack_chunk *(*) (long)) (h)->chunkfun) ((size)))
  102. # define CALL_FREEFUN(h, old_chunk) \
  103. do { \
  104. if ((h) -> use_extra_arg) \
  105. (*(h)->freefun) ((h)->extra_arg, (old_chunk)); \
  106. else \
  107. (*(void (*) (void *)) (h)->freefun) ((old_chunk)); \
  108. } while (0)
  109. # else
  110. # define CALL_CHUNKFUN(h, size) \
  111. (((h) -> use_extra_arg) \
  112. ? (*(h)->chunkfun) ((h)->extra_arg, (size)) \
  113. : (*(struct _obstack_chunk *(*) ()) (h)->chunkfun) ((size)))
  114. # define CALL_FREEFUN(h, old_chunk) \
  115. do { \
  116. if ((h) -> use_extra_arg) \
  117. (*(h)->freefun) ((h)->extra_arg, (old_chunk)); \
  118. else \
  119. (*(void (*) ()) (h)->freefun) ((old_chunk)); \
  120. } while (0)
  121. # endif
  122. /* Initialize an obstack H for use. Specify chunk size SIZE (0 means default).
  123. Objects start on multiples of ALIGNMENT (0 means use default).
  124. CHUNKFUN is the function to use to allocate chunks,
  125. and FREEFUN the function to free them.
  126. Return nonzero if successful, calls obstack_alloc_failed_handler if
  127. allocation fails. */
  128. int
  129. _obstack_begin (h, size, alignment, chunkfun, freefun)
  130. struct obstack *h;
  131. int size;
  132. int alignment;
  133. # if defined __STDC__ && __STDC__
  134. POINTER (*chunkfun) (long);
  135. void (*freefun) (void *);
  136. # else
  137. POINTER (*chunkfun) ();
  138. void (*freefun) ();
  139. # endif
  140. {
  141. register struct _obstack_chunk *chunk; /* points to new chunk */
  142. if (alignment == 0)
  143. alignment = (int) DEFAULT_ALIGNMENT;
  144. if (size == 0)
  145. /* Default size is what GNU malloc can fit in a 4096-byte block. */
  146. {
  147. /* 12 is sizeof (mhead) and 4 is EXTRA from GNU malloc.
  148. Use the values for range checking, because if range checking is off,
  149. the extra bytes won't be missed terribly, but if range checking is on
  150. and we used a larger request, a whole extra 4096 bytes would be
  151. allocated.
  152. These number are irrelevant to the new GNU malloc. I suspect it is
  153. less sensitive to the size of the request. */
  154. int extra = ((((12 + DEFAULT_ROUNDING - 1) & ~(DEFAULT_ROUNDING - 1))
  155. + 4 + DEFAULT_ROUNDING - 1)
  156. & ~(DEFAULT_ROUNDING - 1));
  157. size = 4096 - extra;
  158. }
  159. # if defined __STDC__ && __STDC__
  160. h->chunkfun = (struct _obstack_chunk * (*)(void *, long)) chunkfun;
  161. h->freefun = (void (*) (void *, struct _obstack_chunk *)) freefun;
  162. # else
  163. h->chunkfun = (struct _obstack_chunk * (*)()) chunkfun;
  164. h->freefun = freefun;
  165. # endif
  166. h->chunk_size = size;
  167. h->alignment_mask = alignment - 1;
  168. h->use_extra_arg = 0;
  169. chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size);
  170. if (!chunk)
  171. (*obstack_alloc_failed_handler) ();
  172. h->next_free = h->object_base = chunk->contents;
  173. h->chunk_limit = chunk->limit
  174. = (char *) chunk + h->chunk_size;
  175. chunk->prev = 0;
  176. /* The initial chunk now contains no empty object. */
  177. h->maybe_empty_object = 0;
  178. h->alloc_failed = 0;
  179. return 1;
  180. }
  181. int
  182. _obstack_begin_1 (h, size, alignment, chunkfun, freefun, arg)
  183. struct obstack *h;
  184. int size;
  185. int alignment;
  186. # if defined __STDC__ && __STDC__
  187. POINTER (*chunkfun) (POINTER, long);
  188. void (*freefun) (POINTER, POINTER);
  189. # else
  190. POINTER (*chunkfun) ();
  191. void (*freefun) ();
  192. # endif
  193. POINTER arg;
  194. {
  195. register struct _obstack_chunk *chunk; /* points to new chunk */
  196. if (alignment == 0)
  197. alignment = (int) DEFAULT_ALIGNMENT;
  198. if (size == 0)
  199. /* Default size is what GNU malloc can fit in a 4096-byte block. */
  200. {
  201. /* 12 is sizeof (mhead) and 4 is EXTRA from GNU malloc.
  202. Use the values for range checking, because if range checking is off,
  203. the extra bytes won't be missed terribly, but if range checking is on
  204. and we used a larger request, a whole extra 4096 bytes would be
  205. allocated.
  206. These number are irrelevant to the new GNU malloc. I suspect it is
  207. less sensitive to the size of the request. */
  208. int extra = ((((12 + DEFAULT_ROUNDING - 1) & ~(DEFAULT_ROUNDING - 1))
  209. + 4 + DEFAULT_ROUNDING - 1)
  210. & ~(DEFAULT_ROUNDING - 1));
  211. size = 4096 - extra;
  212. }
  213. # if defined __STDC__ && __STDC__
  214. h->chunkfun = (struct _obstack_chunk * (*)(void *,long)) chunkfun;
  215. h->freefun = (void (*) (void *, struct _obstack_chunk *)) freefun;
  216. # else
  217. h->chunkfun = (struct _obstack_chunk * (*)()) chunkfun;
  218. h->freefun = freefun;
  219. # endif
  220. h->chunk_size = size;
  221. h->alignment_mask = alignment - 1;
  222. h->extra_arg = arg;
  223. h->use_extra_arg = 1;
  224. chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size);
  225. if (!chunk)
  226. (*obstack_alloc_failed_handler) ();
  227. h->next_free = h->object_base = chunk->contents;
  228. h->chunk_limit = chunk->limit
  229. = (char *) chunk + h->chunk_size;
  230. chunk->prev = 0;
  231. /* The initial chunk now contains no empty object. */
  232. h->maybe_empty_object = 0;
  233. h->alloc_failed = 0;
  234. return 1;
  235. }
  236. /* Allocate a new current chunk for the obstack *H
  237. on the assumption that LENGTH bytes need to be added
  238. to the current object, or a new object of length LENGTH allocated.
  239. Copies any partial object from the end of the old chunk
  240. to the beginning of the new one. */
  241. void
  242. _obstack_newchunk (h, length)
  243. struct obstack *h;
  244. int length;
  245. {
  246. register struct _obstack_chunk *old_chunk = h->chunk;
  247. register struct _obstack_chunk *new_chunk;
  248. register long new_size;
  249. register long obj_size = h->next_free - h->object_base;
  250. register long i;
  251. long already;
  252. char *object_base;
  253. /* Compute size for new chunk. */
  254. new_size = (obj_size + length) + (obj_size >> 3) + h->alignment_mask + 100;
  255. if (new_size < h->chunk_size)
  256. new_size = h->chunk_size;
  257. /* Allocate and initialize the new chunk. */
  258. new_chunk = CALL_CHUNKFUN (h, new_size);
  259. if (!new_chunk)
  260. (*obstack_alloc_failed_handler) ();
  261. h->chunk = new_chunk;
  262. new_chunk->prev = old_chunk;
  263. new_chunk->limit = h->chunk_limit = (char *) new_chunk + new_size;
  264. /* Compute an aligned object_base in the new chunk */
  265. object_base =
  266. __INT_TO_PTR ((__PTR_TO_INT (new_chunk->contents) + h->alignment_mask)
  267. & ~ (h->alignment_mask));
  268. /* Move the existing object to the new chunk.
  269. Word at a time is fast and is safe if the object
  270. is sufficiently aligned. */
  271. if (h->alignment_mask + 1 >= DEFAULT_ALIGNMENT)
  272. {
  273. for (i = obj_size / sizeof (COPYING_UNIT) - 1;
  274. i >= 0; i--)
  275. ((COPYING_UNIT *)object_base)[i]
  276. = ((COPYING_UNIT *)h->object_base)[i];
  277. /* We used to copy the odd few remaining bytes as one extra COPYING_UNIT,
  278. but that can cross a page boundary on a machine
  279. which does not do strict alignment for COPYING_UNITS. */
  280. already = obj_size / sizeof (COPYING_UNIT) * sizeof (COPYING_UNIT);
  281. }
  282. else
  283. already = 0;
  284. /* Copy remaining bytes one by one. */
  285. for (i = already; i < obj_size; i++)
  286. object_base[i] = h->object_base[i];
  287. /* If the object just copied was the only data in OLD_CHUNK,
  288. free that chunk and remove it from the chain.
  289. But not if that chunk might contain an empty object. */
  290. if (h->object_base == old_chunk->contents && ! h->maybe_empty_object)
  291. {
  292. new_chunk->prev = old_chunk->prev;
  293. CALL_FREEFUN (h, old_chunk);
  294. }
  295. h->object_base = object_base;
  296. h->next_free = h->object_base + obj_size;
  297. /* The new chunk certainly contains no empty object yet. */
  298. h->maybe_empty_object = 0;
  299. }
  300. /* Return nonzero if object OBJ has been allocated from obstack H.
  301. This is here for debugging.
  302. If you use it in a program, you are probably losing. */
  303. # if defined __STDC__ && __STDC__
  304. /* Suppress -Wmissing-prototypes warning. We don't want to declare this in
  305. obstack.h because it is just for debugging. */
  306. int _obstack_allocated_p (struct obstack *h, POINTER obj);
  307. # endif
  308. int
  309. _obstack_allocated_p (h, obj)
  310. struct obstack *h;
  311. POINTER obj;
  312. {
  313. register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
  314. register struct _obstack_chunk *plp; /* point to previous chunk if any */
  315. lp = (h)->chunk;
  316. /* We use >= rather than > since the object cannot be exactly at
  317. the beginning of the chunk but might be an empty object exactly
  318. at the end of an adjacent chunk. */
  319. while (lp != 0 && ((POINTER) lp >= obj || (POINTER) (lp)->limit < obj))
  320. {
  321. plp = lp->prev;
  322. lp = plp;
  323. }
  324. return lp != 0;
  325. }
  326. /* Free objects in obstack H, including OBJ and everything allocate
  327. more recently than OBJ. If OBJ is zero, free everything in H. */
  328. # undef obstack_free
  329. /* This function has two names with identical definitions.
  330. This is the first one, called from non-ANSI code. */
  331. void
  332. _obstack_free (h, obj)
  333. struct obstack *h;
  334. POINTER obj;
  335. {
  336. register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
  337. register struct _obstack_chunk *plp; /* point to previous chunk if any */
  338. lp = h->chunk;
  339. /* We use >= because there cannot be an object at the beginning of a chunk.
  340. But there can be an empty object at that address
  341. at the end of another chunk. */
  342. while (lp != 0 && ((POINTER) lp >= obj || (POINTER) (lp)->limit < obj))
  343. {
  344. plp = lp->prev;
  345. CALL_FREEFUN (h, lp);
  346. lp = plp;
  347. /* If we switch chunks, we can't tell whether the new current
  348. chunk contains an empty object, so assume that it may. */
  349. h->maybe_empty_object = 1;
  350. }
  351. if (lp)
  352. {
  353. h->object_base = h->next_free = (char *) (obj);
  354. h->chunk_limit = lp->limit;
  355. h->chunk = lp;
  356. }
  357. else if (obj != 0)
  358. /* obj is not in any of the chunks! */
  359. abort ();
  360. }
  361. /* This function is used from ANSI code. */
  362. void
  363. obstack_free (h, obj)
  364. struct obstack *h;
  365. POINTER obj;
  366. {
  367. register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
  368. register struct _obstack_chunk *plp; /* point to previous chunk if any */
  369. lp = h->chunk;
  370. /* We use >= because there cannot be an object at the beginning of a chunk.
  371. But there can be an empty object at that address
  372. at the end of another chunk. */
  373. while (lp != 0 && ((POINTER) lp >= obj || (POINTER) (lp)->limit < obj))
  374. {
  375. plp = lp->prev;
  376. CALL_FREEFUN (h, lp);
  377. lp = plp;
  378. /* If we switch chunks, we can't tell whether the new current
  379. chunk contains an empty object, so assume that it may. */
  380. h->maybe_empty_object = 1;
  381. }
  382. if (lp)
  383. {
  384. h->object_base = h->next_free = (char *) (obj);
  385. h->chunk_limit = lp->limit;
  386. h->chunk = lp;
  387. }
  388. else if (obj != 0)
  389. /* obj is not in any of the chunks! */
  390. abort ();
  391. }
  392. int
  393. _obstack_memory_used (h)
  394. struct obstack *h;
  395. {
  396. register struct _obstack_chunk* lp;
  397. register int nbytes = 0;
  398. for (lp = h->chunk; lp != 0; lp = lp->prev)
  399. {
  400. nbytes += lp->limit - (char *) lp;
  401. }
  402. return nbytes;
  403. }
  404. /* Define the error handler. */
  405. # ifndef _
  406. /* # if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC */
  407. # ifdef __UCLIBC_HAS_GETTEXT_AWARENESS__
  408. # include <libintl.h>
  409. # ifndef _
  410. # define _(Str) __dcgettext (NULL, Str, LC_MESSAGES)
  411. # endif
  412. # else
  413. # define _(Str) (Str)
  414. # endif
  415. # endif
  416. # if defined _LIBC && defined USE_IN_LIBIO
  417. # include <libio/iolibio.h>
  418. # define fputs(s, f) _IO_fputs (s, f)
  419. # endif
  420. # ifndef __attribute__
  421. /* This feature is available in gcc versions 2.5 and later. */
  422. # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
  423. # define __attribute__(Spec) /* empty */
  424. # endif
  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 */