Home | History | Annotate | Download | only in lib

Lines Matching defs:obstack

0 /* obstack.h - object stack macros
38 them before using any obstack macros.
40 Each independent stack is represented by a `struct obstack'.
41 Each of the obstack macros expects a pointer to such a structure
58 With obstacks, you can work differently. Use one obstack for all symbol
59 names. As you read a symbol, grow the name in the obstack gradually.
94 Exactly one object is growing in an obstack at any one time.
95 You can run one obstack per control block.
97 Because of the way we do it, you can `unwind' an obstack
151 struct obstack /* control current object in current chunk */
180 /* Declare the external functions we use; they are in obstack.c. */
182 extern void _obstack_newchunk (struct obstack *, int);
183 extern int _obstack_begin (struct obstack *, int, int,
185 extern int _obstack_begin_1 (struct obstack *, int, int,
188 extern int _obstack_memory_used (struct obstack *);
190 void obstack_free (struct obstack *obstack, void *block);
269 # define obstack_object_size(OBSTACK) \
271 ({ struct obstack const *__o = (OBSTACK); \
274 # define obstack_room(OBSTACK) \
276 ({ struct obstack const *__o = (OBSTACK); \
279 # define obstack_make_room(OBSTACK,length) \
281 ({ struct obstack *__o = (OBSTACK); \
287 # define obstack_empty_p(OBSTACK) \
289 ({ struct obstack const *__o = (OBSTACK); \
295 # define obstack_grow(OBSTACK,where,length) \
297 ({ struct obstack *__o = (OBSTACK); \
305 # define obstack_grow0(OBSTACK,where,length) \
307 ({ struct obstack *__o = (OBSTACK); \
316 # define obstack_1grow(OBSTACK,datum) \
318 ({ struct obstack *__o = (OBSTACK); \
324 /* These assume that the obstack alignment is good enough for pointers
328 # define obstack_ptr_grow(OBSTACK,datum) \
330 ({ struct obstack *__o = (OBSTACK); \
335 # define obstack_int_grow(OBSTACK,datum) \
337 ({ struct obstack *__o = (OBSTACK); \
342 # define obstack_ptr_grow_fast(OBSTACK,aptr) \
344 ({ struct obstack *__o1 = (OBSTACK); \
349 # define obstack_int_grow_fast(OBSTACK,aint) \
351 ({ struct obstack *__o1 = (OBSTACK); \
356 # define obstack_blank(OBSTACK,length) \
358 ({ struct obstack *__o = (OBSTACK); \
365 # define obstack_alloc(OBSTACK,length) \
367 ({ struct obstack *__h = (OBSTACK); \
371 # define obstack_copy(OBSTACK,where,length) \
373 ({ struct obstack *__h = (OBSTACK); \
377 # define obstack_copy0(OBSTACK,where,length) \
379 ({ struct obstack *__h = (OBSTACK); \
385 # define obstack_finish(OBSTACK) \
387 ({ struct obstack *__o1 = (OBSTACK); \
400 # define obstack_free(OBSTACK, OBJ) \
402 ({ struct obstack *__o = (OBSTACK); \
513 #endif /* obstack.h */