osprey/cygnus/include/obstack.h File Reference

Go to the source code of this file.

Data Types

type  _obstack_chunk
type  obstack

Defines

#define _OBSTACK_H   1
#define __PTR_TO_INT(P)   ((P) - (char *) 0)
#define __INT_TO_PTR(P)   ((P) + (char *) 0)
#define PTR_INT_TYPE   long
#define _obstack_memcpy(To, From, N)   bcopy ((char *)(From), (To), (N))
#define obstack_base(h)   ((h)->object_base)
#define obstack_chunk_size(h)   ((h)->chunk_size)
#define obstack_next_free(h)   ((h)->next_free)
#define obstack_alignment_mask(h)   ((h)->alignment_mask)
#define obstack_init(h)
#define obstack_begin(h, size)
#define obstack_specify_allocation(h, size, alignment, chunkfun, freefun)
#define obstack_specify_allocation_with_arg(h, size, alignment, chunkfun, freefun, arg)
#define obstack_chunkfun(h, newchunkfun)   ((h) -> chunkfun = (struct _obstack_chunk *(*)()) (newchunkfun))
#define obstack_freefun(h, newfreefun)   ((h) -> freefun = (void (*)()) (newfreefun))
#define obstack_1grow_fast(h, achar)   (*((h)->next_free)++ = (achar))
#define obstack_blank_fast(h, n)   ((h)->next_free += (n))
#define obstack_memory_used(h)   _obstack_memory_used (h)
#define obstack_object_size(h)   (unsigned) ((h)->next_free - (h)->object_base)
#define obstack_room(h)   (unsigned) ((h)->chunk_limit - (h)->next_free)
#define obstack_empty_p(h)   ((h)->chunk->prev == 0 && (h)->next_free - (h)->chunk->contents == 0)
#define obstack_make_room(h, length)
#define obstack_grow(h, where, length)
#define obstack_grow0(h, where, length)
#define obstack_1grow(h, datum)
#define obstack_ptr_grow(h, datum)
#define obstack_int_grow(h, datum)
#define obstack_ptr_grow_fast(h, aptr)   (((const void **) ((h)->next_free += sizeof (void *)))[-1] = (aptr))
#define obstack_int_grow_fast(h, aint)   (((int *) ((h)->next_free += sizeof (int)))[-1] = (aptr))
#define obstack_blank(h, length)
#define obstack_alloc(h, length)   (obstack_blank ((h), (length)), obstack_finish ((h)))
#define obstack_copy(h, where, length)   (obstack_grow ((h), (where), (length)), obstack_finish ((h)))
#define obstack_copy0(h, where, length)   (obstack_grow0 ((h), (where), (length)), obstack_finish ((h)))
#define obstack_finish(h)
#define obstack_free(h, obj)

Functions/Subroutines

void _obstack_newchunk ()
void _obstack_free ()
int _obstack_begin ()
int _obstack_begin_1 ()
int _obstack_memory_used ()

Variables

void(* obstack_alloc_failed_handler )()
int obstack_exit_failure


Define Documentation

#define __INT_TO_PTR ( P   )     ((P) + (char *) 0)

Definition at line 130 of file obstack.h.

#define __PTR_TO_INT ( P   )     ((P) - (char *) 0)

Definition at line 126 of file obstack.h.

#define _OBSTACK_H   1

Definition at line 115 of file obstack.h.

#define _obstack_memcpy ( To,
From,
 )     bcopy ((char *)(From), (To), (N))

Definition at line 161 of file obstack.h.

#define obstack_1grow ( h,
datum   ) 

#define obstack_1grow_fast ( h,
achar   )     (*((h)->next_free)++ = (achar))

Definition at line 350 of file obstack.h.

#define obstack_alignment_mask ( h   )     ((h)->alignment_mask)

Definition at line 295 of file obstack.h.

Referenced by ht_create().

#define obstack_alloc ( h,
length   )     (obstack_blank ((h), (length)), obstack_finish ((h)))

#define obstack_base ( h   )     ((h)->object_base)

#define obstack_begin ( h,
size   ) 

Value:

_obstack_begin ((h), (size), 0, \
      (void *(*) ()) obstack_chunk_alloc, (void (*) ()) obstack_chunk_free)

Definition at line 330 of file obstack.h.

Referenced by hash_table_init_n(), lang_init(), lang_map(), main(), and tlink_init().

#define obstack_blank ( h,
length   ) 

Value:

( (h)->temp = (length),             \
  (((h)->chunk_limit - (h)->next_free < (h)->temp)      \
   ? (_obstack_newchunk ((h), (h)->temp), 0) : 0),      \
  obstack_blank_fast (h, (h)->temp))

Definition at line 564 of file obstack.h.

Referenced by alloc_empty_reserv_sets(), create_node(), get_str_vect(), initiate_excl_sets(), initiate_presence_absence_pattern_sets(), initiate_presence_absence_sets(), push_token(), scan_tokens(), shift_token(), store_alt_unit_usage(), and VEC().

#define obstack_blank_fast ( h,
n   )     ((h)->next_free += (n))

Definition at line 352 of file obstack.h.

Referenced by finish_regexp_representation(), and mangle_class_name_for_template().

#define obstack_chunk_size ( h   )     ((h)->chunk_size)

Definition at line 287 of file obstack.h.

#define obstack_chunkfun ( h,
newchunkfun   )     ((h) -> chunkfun = (struct _obstack_chunk *(*)()) (newchunkfun))

Definition at line 342 of file obstack.h.

#define obstack_copy ( h,
where,
length   )     (obstack_grow ((h), (where), (length)), obstack_finish ((h)))

Definition at line 573 of file obstack.h.

#define obstack_copy0 ( h,
where,
length   )     (obstack_grow0 ((h), (where), (length)), obstack_finish ((h)))

#define obstack_empty_p ( h   )     ((h)->chunk->prev == 0 && (h)->next_free - (h)->chunk->contents == 0)

Definition at line 514 of file obstack.h.

#define obstack_finish ( h   ) 

#define obstack_free ( h,
obj   ) 

Value:

( (h)->temp = (char *) (obj) - (char *) (h)->chunk,     \
  (((h)->temp > 0 && (h)->temp < (h)->chunk_limit - (char *) (h)->chunk)\
   ? (int) ((h)->next_free = (h)->object_base       \
      = (h)->temp + (char *) (h)->chunk)        \
   : (_obstack_free ((h), (h)->temp + (char *) (h)->chunk), 0)))

Definition at line 601 of file obstack.h.

Referenced by _cpp_destroy_hashtable(), _cpp_pop_buffer(), arm_reorg(), bitmap_obstack_release(), bitmap_release_memory(), build_conditional_expr(), build_encode_expr(), build_ivar_list_initializer(), build_java_argument_signature(), build_java_signature(), build_new_function_call(), build_new_method_call(), build_new_op(), build_object_call(), bypass_jumps(), c_parser_translation_unit(), calculate_needs_all_insns(), can_convert_arg(), can_convert_arg_bad(), check_regexp_units_distribution(), conflict_graph_delete(), consume_token(), cp_parser_declaration(), cp_parser_declaration_statement(), cp_parser_string_literal(), df_free(), do_endif(), dump_file(), eliminate_partially_redundant_load(), encode_method_def(), encode_method_prototype(), end_input(), file_pop(), finish_mangling(), free_all_mem(), free_aux_for_blocks(), free_aux_for_edges(), free_mem(), free_reg_set_mem(), gcse_main(), gmalloc(), hash_table_free(), ht_destroy(), ht_lookup(), ht_lookup_with_hash(), init_flow(), init_repo(), initialize_reference(), insert_expr_in_table(), instantiate_element(), java_lex(), layout_class(), lookup_expr_in_table(), main(), mangle_class_name_for_template(), migrate_btr_defs(), output_clear_message_text(), perform_direct_initialization_if_possible(), perform_implicit_conversion(), pop_stack_level(), pp_base_clear_output_area(), pp_base_output_formatted_text(), read_repo_file(), read_rtx(), read_rtx_1(), recompile_files(), regrename_optimize(), release_jcf_state(), reload(), reset_opr_set_tables(), save_partially_mangled_name(), scan_linker_output(), start_mangling(), symbol_pop(), tree_sra(), verify_sequence_points(), and write_automata().

#define obstack_freefun ( h,
newfreefun   )     ((h) -> freefun = (void (*)()) (newfreefun))

Definition at line 345 of file obstack.h.

#define obstack_grow ( h,
where,
length   ) 

#define obstack_grow0 ( h,
where,
length   ) 

Value:

( (h)->temp = (length),             \
  (((h)->next_free + (h)->temp + 1 > (h)->chunk_limit)      \
   ? (_obstack_newchunk ((h), (h)->temp + 1), 0) : 0),      \
  _obstack_memcpy ((h)->next_free, (where), (h)->temp),     \
  (h)->next_free += (h)->temp,            \
  *((h)->next_free)++ = 0)

Definition at line 535 of file obstack.h.

Referenced by build_java_signature(), ggc_alloc_string(), init_spec(), java_get_line_col(), main(), and mode_attr_index().

#define obstack_init ( h   ) 

#define obstack_int_grow ( h,
datum   ) 

Value:

( (((h)->next_free + sizeof (int) > (h)->chunk_limit)     \
   ? (_obstack_newchunk ((h), sizeof (int)), 0) : 0),     \
  obstack_int_grow_fast (h, datum))

Definition at line 553 of file obstack.h.

#define obstack_int_grow_fast ( h,
aint   )     (((int *) ((h)->next_free += sizeof (int)))[-1] = (aptr))

Definition at line 561 of file obstack.h.

#define obstack_make_room ( h,
length   ) 

Value:

( (h)->temp = (length),             \
  (((h)->next_free + (h)->temp > (h)->chunk_limit)      \
   ? (_obstack_newchunk ((h), (h)->temp), 0) : 0))

Definition at line 523 of file obstack.h.

#define obstack_memory_used ( h   )     _obstack_memory_used (h)

Definition at line 354 of file obstack.h.

Referenced by ht_dump_statistics().

#define obstack_next_free ( h   )     ((h)->next_free)

#define obstack_object_size ( h   )     (unsigned) ((h)->next_free - (h)->object_base)

#define obstack_ptr_grow ( h,
datum   ) 

Value:

( (((h)->next_free + sizeof (char *) > (h)->chunk_limit)    \
   ? (_obstack_newchunk ((h), sizeof (char *)), 0) : 0),    \
  obstack_ptr_grow_fast (h, datum))

Definition at line 548 of file obstack.h.

Referenced by join_c_conditions(), read_rtx(), read_rtx_1(), and recompile_files().

#define obstack_ptr_grow_fast ( h,
aptr   )     (((const void **) ((h)->next_free += sizeof (void *)))[-1] = (aptr))

Definition at line 558 of file obstack.h.

#define obstack_room ( h   )     (unsigned) ((h)->chunk_limit - (h)->next_free)

Definition at line 511 of file obstack.h.

Referenced by push_stack_level().

#define obstack_specify_allocation ( h,
size,
alignment,
chunkfun,
freefun   ) 

Value:

_obstack_begin ((h), (size), (alignment), \
        (void *(*) ()) (chunkfun), (void (*) ()) (freefun))

Definition at line 334 of file obstack.h.

Referenced by bitmap_element_allocate(), and bitmap_obstack_initialize().

#define obstack_specify_allocation_with_arg ( h,
size,
alignment,
chunkfun,
freefun,
arg   ) 

Value:

_obstack_begin_1 ((h), (size), (alignment), \
        (void *(*) ()) (chunkfun), (void (*) ()) (freefun), (arg))

Definition at line 338 of file obstack.h.

#define PTR_INT_TYPE   long

Definition at line 146 of file obstack.h.


Function Documentation

int _obstack_begin (  ) 

int _obstack_begin_1 (  ) 

void _obstack_free (  ) 

int _obstack_memory_used (  ) 

void _obstack_newchunk (  ) 


Variable Documentation

Definition at line 99 of file obstack.c.

Referenced by print_and_abort().


Generated on Wed Apr 8 15:01:00 2009 for Open64 by  doxygen 1.5.6