Home | History | Annotate | Download | only in lib

Lines Matching refs:obstack

1 /*	$NetBSD: obstack.c,v 1.3 2018/06/14 10:14:39 kamil Exp $	*/
3 /* obstack.c - subroutines used implicitly by object stack macros
28 #include "obstack.h"
31 incremented whenever callers compiled using an old obstack.h can no
32 longer properly call the functions in this obstack.c. */
103 /* The non-GNU-C macros copy the obstack into this global variable
106 struct obstack *_obstack;
144 /* Initialize an obstack H for use. Specify chunk size SIZE (0 means default).
154 struct obstack *h;
212 struct obstack *h;
270 /* Allocate a new current chunk for the obstack *H
278 struct obstack *h;
336 /* Return nonzero if object OBJ has been allocated from obstack H.
342 obstack.h because it is just for debugging. */
343 int _obstack_allocated_p (struct obstack *h, POINTER obj);
348 struct obstack *h;
367 /* Free objects in obstack H, including OBJ and everything allocate
377 struct obstack *h;
411 struct obstack *h;
444 struct obstack *h;
486 /* Now define the functional versions of the obstack macros.
496 POINTER (obstack_base) (obstack)
497 struct obstack *obstack;
499 return obstack_base (obstack);
502 POINTER (obstack_next_free) (obstack)
503 struct obstack *obstack;
505 return obstack_next_free (obstack);
508 int (obstack_object_size) (obstack)
509 struct obstack *obstack;
511 return obstack_object_size (obstack);
514 obstack)
515 struct obstack *obstack;
517 return obstack_room (obstack);
520 int (obstack_make_room) (obstack, length)
521 struct obstack *obstack;
524 return obstack_make_room (obstack, length);
527 void (obstack_grow) (obstack, pointer, length)
528 struct obstack *obstack;
532 obstack_grow (obstack, pointer, length);
535 void (obstack_grow0) (obstack, pointer, length)
536 struct obstack *obstack;
540 obstack_grow0 (obstack, pointer, length);
543 void (obstack_1grow) (obstack, character)
544 struct obstack *obstack;
547 obstack_1grow (obstack, character);
550 void (obstack_blank) (obstack, length)
551 struct obstack *obstack;
554 obstack_blank (obstack, length);
557 void (obstack_1grow_fast) (obstack, character)
558 struct obstack *obstack;
561 obstack_1grow_fast (obstack, character);
564 void (obstack_blank_fast) (obstack, length)
565 struct obstack *obstack;
568 obstack_blank_fast (obstack, length);
571 POINTER (obstack_finish) (obstack)
572 struct obstack *obstack;
574 return obstack_finish (obstack);
577 POINTER (obstack_alloc) (obstack, length)
578 struct obstack *obstack;
581 return obstack_alloc (obstack, length);
584 POINTER (obstack_copy) (obstack, pointer, length)
585 struct obstack *obstack;
589 return obstack_copy (obstack, pointer, length);
592 POINTER (obstack_copy0) (obstack, pointer, length)
593 struct obstack *obstack;
597 return obstack_copy0 (obstack, pointer, length);