cppsetup.c File Reference

#include "def.h"
#include "ifparser.h"

Go to the source code of this file.

Classes

struct  _parse_data

Defines

#define MAXNAMELEN   256
#define isvarfirstletter(ccc)   (isalpha(ccc) || (ccc) == '_')

Functions

static const char * my_if_errors (IfParser *ip, const char *cp, const char *expecting)
static struct symtab ** lookup_variable (IfParser *ip, const char *var, int len)
static int my_eval_defined (IfParser *ip, const char *var, int len)
static long my_eval_variable (IfParser *ip, const char *var, int len)
int cppsetup (char *line, struct filepointer *filep, struct inclist *inc)


Define Documentation

#define isvarfirstletter ( ccc   )     (isalpha(ccc) || (ccc) == '_')

Definition at line 198 of file cppsetup.c.

Referenced by my_eval_variable(), parse_value(), and parse_variable().

#define MAXNAMELEN   256

Definition at line 166 of file cppsetup.c.

Referenced by lookup_variable(), XrdSysLogger::ReBind(), and XrdSysLogger::Trim().


Function Documentation

int cppsetup ( char *  line,
struct filepointer filep,
struct inclist inc 
)

Definition at line 222 of file cppsetup.c.

References _if_parser::data, _if_parser::eval_defined, _if_parser::eval_variable, _if_parser::funcs, _if_parser::handle_error, IF, IFFALSE, my_eval_defined(), my_eval_variable(), my_if_errors(), ParseIfExpression(), pd, val, and void.

Referenced by zero_value().

static struct symtab** lookup_variable ( IfParser ip,
const char *  var,
int  len 
) [static]

Definition at line 169 of file cppsetup.c.

References if(), isdefined(), MAXNAMELEN, NULL, and pd.

Referenced by my_eval_defined(), and my_eval_variable().

static int my_eval_defined ( IfParser ip,
const char *  var,
int  len 
) [static]

Definition at line 187 of file cppsetup.c.

References lookup_variable().

Referenced by cppsetup().

static long my_eval_variable ( IfParser ip,
const char *  var,
int  len 
) [static]

Definition at line 201 of file cppsetup.c.

References isvarfirstletter, lookup_variable(), NULL, s, and strtol().

Referenced by cppsetup().

static const char* my_if_errors ( IfParser ip,
const char *  cp,
const char *  expecting 
) [static]

Definition at line 137 of file cppsetup.c.

References fprintf(), free(), i, malloc(), NULL, pd, prefix, and sprintf().

Referenced by cppsetup().


Generated on Tue Jul 5 15:56:10 2011 for ROOT_528-00b_version by  doxygen 1.5.1