Lines Matching refs:h
209 #define obstack_base(h) ((void *) (h)->object_base) argument
213 #define obstack_chunk_size(h) ((h)->chunk_size) argument
217 #define obstack_next_free(h) ((h)->next_free) argument
221 #define obstack_alignment_mask(h) ((h)->alignment_mask) argument
224 #define obstack_init(h) \ argument
225 _obstack_begin ((h), 0, 0, \
229 #define obstack_begin(h, size) \ argument
230 _obstack_begin ((h), (size), 0, \
234 #define obstack_specify_allocation(h, size, alignment, chunkfun, freefun) \ argument
235 _obstack_begin ((h), (size), (alignment), \
239 #define obstack_specify_allocation_with_arg(h, size, alignment, chunkfun, freefun, arg) \ argument
240 _obstack_begin_1 ((h), (size), (alignment), \
244 #define obstack_chunkfun(h, newchunkfun) \ argument
245 ((h) -> chunkfun = (struct _obstack_chunk *(*)(void *, long)) (newchunkfun))
247 #define obstack_freefun(h, newfreefun) \ argument
248 ((h) -> freefun = (void (*)(void *, struct _obstack_chunk *)) (newfreefun))
250 #define obstack_1grow_fast(h,achar) (*((h)->next_free)++ = (achar)) argument
252 #define obstack_blank_fast(h,n) ((h)->next_free += (n)) argument
254 #define obstack_memory_used(h) _obstack_memory_used (h) argument
410 # define obstack_object_size(h) \ argument
411 (unsigned) ((h)->next_free - (h)->object_base)
413 # define obstack_room(h) \ argument
414 (unsigned) ((h)->chunk_limit - (h)->next_free)
416 # define obstack_empty_p(h) \ argument
417 ((h)->chunk->prev == 0 \
418 && (h)->next_free == __PTR_ALIGN ((char *) (h)->chunk, \
419 (h)->chunk->contents, \
420 (h)->alignment_mask))
428 # define obstack_make_room(h,length) \ argument
429 ( (h)->temp.tempint = (length), \
430 (((h)->next_free + (h)->temp.tempint > (h)->chunk_limit) \
431 ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0))
433 # define obstack_grow(h,where,length) \ argument
434 ( (h)->temp.tempint = (length), \
435 (((h)->next_free + (h)->temp.tempint > (h)->chunk_limit) \
436 ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0), \
437 memcpy ((h)->next_free, where, (h)->temp.tempint), \
438 (h)->next_free += (h)->temp.tempint)
440 # define obstack_grow0(h,where,length) \ argument
441 ( (h)->temp.tempint = (length), \
442 (((h)->next_free + (h)->temp.tempint + 1 > (h)->chunk_limit) \
443 ? (_obstack_newchunk ((h), (h)->temp.tempint + 1), 0) : 0), \
444 memcpy ((h)->next_free, where, (h)->temp.tempint), \
445 (h)->next_free += (h)->temp.tempint, \
446 *((h)->next_free)++ = 0)
448 # define obstack_1grow(h,datum) \ argument
449 ( (((h)->next_free + 1 > (h)->chunk_limit) \
450 ? (_obstack_newchunk ((h), 1), 0) : 0), \
451 obstack_1grow_fast (h, datum))
453 # define obstack_ptr_grow(h,datum) \ argument
454 ( (((h)->next_free + sizeof (char *) > (h)->chunk_limit) \
455 ? (_obstack_newchunk ((h), sizeof (char *)), 0) : 0), \
456 obstack_ptr_grow_fast (h, datum))
458 # define obstack_int_grow(h,datum) \ argument
459 ( (((h)->next_free + sizeof (int) > (h)->chunk_limit) \
460 ? (_obstack_newchunk ((h), sizeof (int)), 0) : 0), \
461 obstack_int_grow_fast (h, datum))
463 # define obstack_ptr_grow_fast(h,aptr) \ argument
464 (((const void **) ((h)->next_free += sizeof (void *)))[-1] = (aptr))
466 # define obstack_int_grow_fast(h,aint) \ argument
467 (((int *) ((h)->next_free += sizeof (int)))[-1] = (aint))
469 # define obstack_blank(h,length) \ argument
470 ( (h)->temp.tempint = (length), \
471 (((h)->chunk_limit - (h)->next_free < (h)->temp.tempint) \
472 ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0), \
473 obstack_blank_fast (h, (h)->temp.tempint))
475 # define obstack_alloc(h,length) \ argument
476 (obstack_blank ((h), (length)), obstack_finish ((h)))
478 # define obstack_copy(h,where,length) \ argument
479 (obstack_grow ((h), (where), (length)), obstack_finish ((h)))
481 # define obstack_copy0(h,where,length) \ argument
482 (obstack_grow0 ((h), (where), (length)), obstack_finish ((h)))
484 # define obstack_finish(h) \ argument
485 ( ((h)->next_free == (h)->object_base \
486 ? (((h)->maybe_empty_object = 1), 0) \
488 (h)->temp.tempptr = (h)->object_base, \
489 (h)->next_free \
490 = __PTR_ALIGN ((h)->object_base, (h)->next_free, \
491 (h)->alignment_mask), \
492 (((h)->next_free - (char *) (h)->chunk \
493 > (h)->chunk_limit - (char *) (h)->chunk) \
494 ? ((h)->next_free = (h)->chunk_limit) : 0), \
495 (h)->object_base = (h)->next_free, \
496 (h)->temp.tempptr)
498 # define obstack_free(h,obj) \ argument
499 ( (h)->temp.tempint = (char *) (obj) - (char *) (h)->chunk, \
500 ((((h)->temp.tempint > 0 \
501 && (h)->temp.tempint < (h)->chunk_limit - (char *) (h)->chunk)) \
502 ? (int) ((h)->next_free = (h)->object_base \
503 = (h)->temp.tempint + (char *) (h)->chunk) \
504 : (((__obstack_free) ((h), (h)->temp.tempint + (char *) (h)->chunk), 0), 0)))