osprey/kgccfe/gnu/varray.c File Reference

#include "config.h"
#include "errors.h"
#include "system.h"
#include "varray.h"
#include "ggc.h"

Include dependency graph for varray.c:

Go to the source code of this file.

Defines

#define VARRAY_HDR_SIZE   (sizeof (struct varray_head_tag) - sizeof (varray_data))

Functions/Subroutines

varray_type varray_init (size_t num_elements, enum varray_data_enum element_kind, const char *name)
varray_type varray_grow (varray_type va, size_t n)
void varray_clear (varray_type va)

Variables

static const size_t element_size [NUM_VARRAY_DATA]
static const int uses_ggc [NUM_VARRAY_DATA]


Define Documentation

#define VARRAY_HDR_SIZE   (sizeof (struct varray_head_tag) - sizeof (varray_data))

Definition at line 28 of file varray.c.


Function Documentation

void varray_clear ( varray_type  va  ) 

Definition at line 111 of file varray.c.

References data_size, element_size, and memset.

varray_type varray_grow ( varray_type  va,
size_t  n 
)

Definition at line 85 of file varray.c.

References data_size, element_size, ggc_realloc, memset, uses_ggc, VARRAY_HDR_SIZE, varray_type, and xrealloc().

varray_type varray_init ( size_t  num_elements,
enum varray_data_enum  element_kind,
const char *  name 
)


Variable Documentation

const size_t element_size[NUM_VARRAY_DATA] [static]

Initial value:

 {
  sizeof (char),
  sizeof (unsigned char),
  sizeof (short),
  sizeof (unsigned short),
  sizeof (int),
  sizeof (unsigned int),
  sizeof (long),
  sizeof (unsigned long),
  sizeof (HOST_WIDE_INT),
  sizeof (unsigned HOST_WIDE_INT),
  sizeof (PTR),
  sizeof (char *),
  sizeof (struct rtx_def *),
  sizeof (struct rtvec_def *),
  sizeof (union tree_node *),
  sizeof (struct bitmap_head_def *),
  sizeof (struct reg_info_def *),
  sizeof (struct const_equiv_data),
  sizeof (struct basic_block_def *),
  sizeof (struct elt_list *)
}

Definition at line 30 of file varray.c.

const int uses_ggc[NUM_VARRAY_DATA] [static]

Initial value:

 {
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
  1, 
  1, 1, 1, 1, 1, 
  0, 0, 0, 1
}

Definition at line 53 of file varray.c.


Generated on Wed Apr 8 15:48:08 2009 for Open64 by  doxygen 1.5.6