Home | History | Annotate | Download | only in lib

Lines Matching refs:obstack

0 /* obstack.h - object stack macros
37 them before using any obstack macros.
39 Each independent stack is represented by a 'struct obstack'.
40 Each of the obstack macros expects a pointer to such a structure
57 With obstacks, you can work differently. Use one obstack for all symbol
58 names. As you read a symbol, grow the name in the obstack gradually.
93 Exactly one object is growing in an obstack at any one time.
94 You can run one obstack per control block.
96 Because of the way we do it, you can "unwind" an obstack
150 struct obstack /* control current object in current chunk */
179 /* Declare the external functions we use; they are in obstack.c. */
181 extern void _obstack_newchunk (struct obstack *, int);
182 extern int _obstack_begin (struct obstack *, int, int,
184 extern int _obstack_begin_1 (struct obstack *, int, int,
187 extern int _obstack_memory_used (struct obstack *);
194 extern void __obstack_free (struct obstack *obstack, void *block);
273 # define obstack_object_size(OBSTACK) \
275 ({ struct obstack const *__o = (OBSTACK); \
278 # define obstack_room(OBSTACK) \
280 ({ struct obstack const *__o = (OBSTACK); \
283 # define obstack_make_room(OBSTACK,length) \
285 ({ struct obstack *__o = (OBSTACK); \
291 # define obstack_empty_p(OBSTACK) \
293 ({ struct obstack const *__o = (OBSTACK); \
299 # define obstack_grow(OBSTACK,where,length) \
301 ({ struct obstack *__o = (OBSTACK); \
309 # define obstack_grow0(OBSTACK,where,length) \
311 ({ struct obstack *__o = (OBSTACK); \
320 # define obstack_1grow(OBSTACK,datum) \
322 ({ struct obstack *__o = (OBSTACK); \
328 /* These assume that the obstack alignment is good enough for pointers
332 # define obstack_ptr_grow(OBSTACK,datum) \
334 ({ struct obstack *__o = (OBSTACK); \
339 # define obstack_int_grow(OBSTACK,datum) \
341 ({ struct obstack *__o = (OBSTACK); \
346 # define obstack_ptr_grow_fast(OBSTACK,aptr) \
348 ({ struct obstack *__o1 = (OBSTACK); \
353 # define obstack_int_grow_fast(OBSTACK,aint) \
355 ({ struct obstack *__o1 = (OBSTACK); \
360 # define obstack_blank(OBSTACK,length) \
362 ({ struct obstack *__o = (OBSTACK); \
369 # define obstack_alloc(OBSTACK,length) \
371 ({ struct obstack *__h = (OBSTACK); \
375 # define obstack_copy(OBSTACK,where,length) \
377 ({ struct obstack *__h = (OBSTACK); \
381 # define obstack_copy0(OBSTACK,where,length) \
383 ({ struct obstack *__h = (OBSTACK); \
389 # define obstack_finish(OBSTACK) \
391 ({ struct obstack *__o1 = (OBSTACK); \
404 # define obstack_free(OBSTACK, OBJ) \
406 ({ struct obstack *__o = (OBSTACK); \
517 #endif /* obstack.h */