C:/Users/Dennis/src/lang/bertrand/BERTRAND/bertrand/util.c File Reference

#include "def.h"

Go to the source code of this file.

Defines

#define NUM_ST   50

Functions

OPprimitive (char *name, short arity, OP *super, OP **oplist, short eval)
NODEinit ()
SNODEst_get ()
void st_free (SNODE *p)
void st_mem_free ()
char * char_copy (char *s)
void char_free (char *s)
void error (char *s)
void fl ()

Variables

static SNODEst_mem = NULL
static SNODEall_st_mem = NULL


Define Documentation

#define NUM_ST   50

Definition at line 93 of file util.c.

Referenced by st_get().


Function Documentation

char* char_copy ( char *  s  ) 

Definition at line 189 of file util.c.

References error().

Referenced by exp_parse(), file_push(), and name_put().

void char_free ( char *  s  ) 

Definition at line 212 of file util.c.

void error ( char *  s  ) 

Definition at line 228 of file util.c.

References charno, infilename, and lineno.

void fl (  ) 

Definition at line 245 of file util.c.

NODE* init (  ) 

Definition at line 39 of file util.c.

References charno, namenode::child, FALSE, global_names, namenode::interest, termnode::label, termnode::left, lineno, name_op, namenode::next, node_new(), NULL, NULLARY, termnode::op, namenode::op, op_mem_free(), op_new(), namenode::parent, primitive(), primitive_init(), namenode::pval, namenode::refs, termnode::right, undeclared_prim, and verbose.

Referenced by main().

OP* primitive ( char *  name,
short  arity,
OP super,
OP **  oplist,
short  eval 
)

Definition at line 12 of file util.c.

References op::arity, op::eval, op_new(), op_put(), op::pname, and op::super.

Referenced by init(), and primitive_init().

void st_free ( SNODE p  ) 

Definition at line 145 of file util.c.

Referenced by exp_parse(), reduce(), and walk().

SNODE* st_get (  ) 

Definition at line 105 of file util.c.

References error(), snode::next, NULL, and NUM_ST.

Referenced by shift(), and walk().

void st_mem_free (  ) 

Definition at line 159 of file util.c.

References NULL.

Referenced by main(), and parse().


Variable Documentation

SNODE* all_st_mem = NULL [static]

Definition at line 95 of file util.c.

SNODE* st_mem = NULL [static]

Definition at line 94 of file util.c.


Generated on Fri Jan 25 09:58:43 2008 for Bertrand by  doxygen 1.5.4