Lines Matching refs:h

206 #define obstack_base(h) ((void *) (h)->object_base)  argument
210 #define obstack_chunk_size(h) ((h)->chunk_size) argument
214 #define obstack_next_free(h) ((h)->next_free) argument
218 #define obstack_alignment_mask(h) ((h)->alignment_mask) argument
221 #define obstack_init(h) \ argument
222 _obstack_begin ((h), 0, 0, \
226 #define obstack_begin(h, size) \ argument
227 _obstack_begin ((h), (size), 0, \
231 #define obstack_specify_allocation(h, size, alignment, chunkfun, freefun) \ argument
232 _obstack_begin ((h), (size), (alignment), \
236 #define obstack_specify_allocation_with_arg(h, size, alignment, chunkfun, freefun, arg) \ argument
237 _obstack_begin_1 ((h), (size), (alignment), \
241 #define obstack_chunkfun(h, newchunkfun) \ argument
242 ((h) -> chunkfun = (struct _obstack_chunk *(*)(void *, long)) (newchunkfun))
244 #define obstack_freefun(h, newfreefun) \ argument
245 ((h) -> freefun = (void (*)(void *, struct _obstack_chunk *)) (newfreefun))
247 #define obstack_1grow_fast(h,achar) (*((h)->next_free)++ = (achar)) argument
249 #define obstack_blank_fast(h,n) ((h)->next_free += (n)) argument
251 #define obstack_memory_used(h) _obstack_memory_used (h) argument
407 # define obstack_object_size(h) \ argument
408 (unsigned) ((h)->next_free - (h)->object_base)
410 # define obstack_room(h) \ argument
411 (unsigned) ((h)->chunk_limit - (h)->next_free)
413 # define obstack_empty_p(h) \ argument
414 ((h)->chunk->prev == 0 \
415 && (h)->next_free == __PTR_ALIGN ((char *) (h)->chunk, \
416 (h)->chunk->contents, \
417 (h)->alignment_mask))
425 # define obstack_make_room(h,length) \ argument
426 ( (h)->temp.tempint = (length), \
427 (((h)->next_free + (h)->temp.tempint > (h)->chunk_limit) \
428 ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0))
430 # define obstack_grow(h,where,length) \ argument
431 ( (h)->temp.tempint = (length), \
432 (((h)->next_free + (h)->temp.tempint > (h)->chunk_limit) \
433 ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0), \
434 memcpy ((h)->next_free, where, (h)->temp.tempint), \
435 (h)->next_free += (h)->temp.tempint)
437 # define obstack_grow0(h,where,length) \ argument
438 ( (h)->temp.tempint = (length), \
439 (((h)->next_free + (h)->temp.tempint + 1 > (h)->chunk_limit) \
440 ? (_obstack_newchunk ((h), (h)->temp.tempint + 1), 0) : 0), \
441 memcpy ((h)->next_free, where, (h)->temp.tempint), \
442 (h)->next_free += (h)->temp.tempint, \
443 *((h)->next_free)++ = 0)
445 # define obstack_1grow(h,datum) \ argument
446 ( (((h)->next_free + 1 > (h)->chunk_limit) \
447 ? (_obstack_newchunk ((h), 1), 0) : 0), \
448 obstack_1grow_fast (h, datum))
450 # define obstack_ptr_grow(h,datum) \ argument
451 ( (((h)->next_free + sizeof (char *) > (h)->chunk_limit) \
452 ? (_obstack_newchunk ((h), sizeof (char *)), 0) : 0), \
453 obstack_ptr_grow_fast (h, datum))
455 # define obstack_int_grow(h,datum) \ argument
456 ( (((h)->next_free + sizeof (int) > (h)->chunk_limit) \
457 ? (_obstack_newchunk ((h), sizeof (int)), 0) : 0), \
458 obstack_int_grow_fast (h, datum))
460 # define obstack_ptr_grow_fast(h,aptr) \ argument
461 (((const void **) ((h)->next_free += sizeof (void *)))[-1] = (aptr))
463 # define obstack_int_grow_fast(h,aint) \ argument
464 (((int *) ((h)->next_free += sizeof (int)))[-1] = (aint))
466 # define obstack_blank(h,length) \ argument
467 ( (h)->temp.tempint = (length), \
468 (((h)->chunk_limit - (h)->next_free < (h)->temp.tempint) \
469 ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0), \
470 obstack_blank_fast (h, (h)->temp.tempint))
472 # define obstack_alloc(h,length) \ argument
473 (obstack_blank ((h), (length)), obstack_finish ((h)))
475 # define obstack_copy(h,where,length) \ argument
476 (obstack_grow ((h), (where), (length)), obstack_finish ((h)))
478 # define obstack_copy0(h,where,length) \ argument
479 (obstack_grow0 ((h), (where), (length)), obstack_finish ((h)))
481 # define obstack_finish(h) \ argument
482 ( ((h)->next_free == (h)->object_base \
483 ? (((h)->maybe_empty_object = 1), 0) \
485 (h)->temp.tempptr = (h)->object_base, \
486 (h)->next_free \
487 = __PTR_ALIGN ((h)->object_base, (h)->next_free, \
488 (h)->alignment_mask), \
489 (((h)->next_free - (char *) (h)->chunk \
490 > (h)->chunk_limit - (char *) (h)->chunk) \
491 ? ((h)->next_free = (h)->chunk_limit) : 0), \
492 (h)->object_base = (h)->next_free, \
493 (h)->temp.tempptr)
495 # define obstack_free(h,obj) \ argument
496 ( (h)->temp.tempint = (char *) (obj) - (char *) (h)->chunk, \
497 ((((h)->temp.tempint > 0 \
498 && (h)->temp.tempint < (h)->chunk_limit - (char *) (h)->chunk)) \
499 ? (int) ((h)->next_free = (h)->object_base \
500 = (h)->temp.tempint + (char *) (h)->chunk) \
501 : (((obstack_free) ((h), (h)->temp.tempint + (char *) (h)->chunk), 0), 0)))