Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

obstack.c File Reference

#include "obstack.h"
#include <stdio.h>

Include dependency graph for obstack.c:

Include dependency graph

Classes

struct  fooalign
union  fooround

Defines

#define POINTER   char *
#define DEFAULT_ALIGNMENT   ((PTR_INT_TYPE) ((char *)&((struct fooalign *) 0)->d - (char *)0))
#define DEFAULT_ROUNDING   (sizeof (union fooround))
#define COPYING_UNIT   int
#define CALL_CHUNKFUN(h, size)
#define CALL_FREEFUN(h, old_chunk)

Functions

int _obstack_begin (struct obstack *h, int size, int alignment, POINTER(*chunkfun)(int), void(*freefun)(void *))
int _obstack_begin_1 (struct obstack *h, int size, int alignment, POINTER(*chunkfun)(int), void(*freefun)(void *), POINTER arg)
void _obstack_newchunk (struct obstack *h, int length)
int _obstack_allocated_p (struct obstack *h, POINTER obj)
void _obstack_free (struct obstack *h, POINTER obj)
void obstack_free (struct obstack *h, POINTER obj)
int _obstack_memory_used (struct obstack *h)

Variables

obstack_obstack

Define Documentation

#define CALL_CHUNKFUN h,
size   ) 
 

Value:

(((h) -> use_extra_arg) \
   ? (*(h)->chunkfun) (/*(h)->extra_arg,*/ (size)) \
   : (*(h)->chunkfun) ((size)))

#define CALL_FREEFUN h,
old_chunk   ) 
 

Value:

do { \
    if ((h) -> use_extra_arg) \
      (*(h)->freefun) (/*(h)->extra_arg,*/ (old_chunk)); \
    else \
      (*(h)->freefun) ((old_chunk)); \
  } while (0)

#define COPYING_UNIT   int
 

#define DEFAULT_ALIGNMENT   ((PTR_INT_TYPE) ((char *)&((struct fooalign *) 0)->d - (char *)0))
 

#define DEFAULT_ROUNDING   (sizeof (union fooround))
 

#define POINTER   char *
 


Function Documentation

int _obstack_allocated_p struct obstack h,
POINTER  obj
 

int _obstack_begin struct obstack h,
int  size,
int  alignment,
POINTER(*  chunkfun)(int),
void(*  freefun)(void *)
 

int _obstack_begin_1 struct obstack h,
int  size,
int  alignment,
POINTER(*  chunkfun)(int),
void(*  freefun)(void *),
POINTER  arg
 

void _obstack_free struct obstack h,
POINTER  obj
 

int _obstack_memory_used struct obstack h  ) 
 

void _obstack_newchunk struct obstack h,
int  length
 

void obstack_free struct obstack h,
POINTER  obj
 


Variable Documentation

struct obstack* _obstack
 


Generated on Sat Sep 17 10:29:25 2005 for XconqKernel by doxygen 1.3.6