sxatcpp.c File Reference

#include "sxversion.h"
#include "sxunix.h"
Include dependency graph for sxatcpp.c:

Go to the source code of this file.

Data Structures

struct  tree_node_stack
struct  sxatcpp_area

Defines

#define allocate_node()   (node == area_end ? allocate_area () : ++node)
#define NEW_AREA_SIZE   (area_size = NBNODES)
#define cons_com(c1, c2)   (c1==NULL?c2:(c2==NULL?c1:string_cat(c1,c2)))

Functions

static struct sxnode_pp * allocate_area (void)
static SXVOID free_areas (void)
static charstring_cat (char *s1, char *s2)
static SXVOID initialize (void)
static SXVOID finalize (void)
static SXVOID action (void)
static SXVOID error (void)
SXVOID sxatcpp (SXINT sxatcpp_what, struct sxtables *arg)

Variables

char WHAT_SXATCPP [] = "@(#)SYNTAX - $Id: sxatcpp.c 1711 2009-03-11 14:56:21Z sagot $" WHAT_DEBUG
static SXINT stack_size
static struct tree_node_stacktree_node_stack
static long area_size
static struct sxatcpp_areaarea
static struct sxnode_pp * area_end
static struct sxnode_pp * node
static struct sxnode_pp * father_ptr
static struct sxnode_pp * prv_ptr
static charcom_ref

Define Documentation

 
#define allocate_node (  )     (node == area_end ? allocate_area () : ++node)

Definition at line 43 of file sxatcpp.c.

#define cons_com ( c1,
c2   )     (c1==NULL?c2:(c2==NULL?c1:string_cat(c1,c2)))

Definition at line 99 of file sxatcpp.c.

Referenced by action(), and finalize().

#define NEW_AREA_SIZE   (area_size = NBNODES)

Definition at line 54 of file sxatcpp.c.


Function Documentation

static SXVOID action ( void   )  [static]
static struct sxnode_pp* allocate_area ( void   )  [static, read]

Definition at line 67 of file sxatcpp.c.

References area_end, area_size, NEW_AREA_SIZE, and sxatcpp_area::next.

static SXVOID error ( void   )  [static]

Definition at line 214 of file sxatcpp.c.

References allocate_node, father_ptr, tree_node_stack::head, and tree_node_stack::tail.

Referenced by sxatcpp().

static SXVOID finalize ( void   )  [static]

Definition at line 131 of file sxatcpp.c.

References area_end, area_size, cons_com, father_ptr, sxsvar, and sxatcpp_area::zone.

Referenced by sxatcpp().

static SXVOID free_areas ( void   )  [static]

Definition at line 80 of file sxatcpp.c.

References sxatcpp_area::next, and prev.

Referenced by sxatcpp().

static SXVOID initialize ( void   )  [static]

Definition at line 119 of file sxatcpp.c.

References area_end, area_size, father_ptr, and stack_size.

Referenced by sxatcpp().

static char* string_cat ( char s1,
char s2 
) [static]

Definition at line 101 of file sxatcpp.c.

References char.

Referenced by finalize().

SXVOID sxatcpp ( SXINT  sxatcpp_what,
struct sxtables arg 
)

Variable Documentation

struct sxatcpp_area* area [static]

Definition at line 62 of file sxatcpp.c.

Referenced by dfa_minimize(), and sxdfa_minimize().

struct sxnode_pp* area_end [static]

Definition at line 63 of file sxatcpp.c.

Referenced by allocate_area(), finalize(), and initialize().

long area_size [static]

Definition at line 61 of file sxatcpp.c.

Referenced by allocate_area(), finalize(), and initialize().

char* com_ref [static]

Definition at line 94 of file sxatcpp.c.

Referenced by action().

struct sxnode_pp* father_ptr [static]

Definition at line 93 of file sxatcpp.c.

Referenced by action(), error(), finalize(), initialize(), and sxatcpp().

struct sxnode_pp * node [static]

Definition at line 63 of file sxatcpp.c.

struct sxnode_pp * prv_ptr [static]

Definition at line 93 of file sxatcpp.c.

Referenced by action().

SXINT stack_size [static]

Definition at line 37 of file sxatcpp.c.

Referenced by action(), and initialize().

struct tree_node_stack* tree_node_stack [static]

Definition at line 41 of file sxatcpp.c.

char WHAT_SXATCPP[] = "@(#)SYNTAX - $Id: sxatcpp.c 1711 2009-03-11 14:56:21Z sagot $" WHAT_DEBUG

Definition at line 33 of file sxatcpp.c.


Generated on Wed Apr 21 16:39:36 2010 for syntax-6.0b7 by  doxygen 1.6.1