parse.c File Reference

#include "def.h"

Go to the source code of this file.

Functions

int deftype (char *line, struct filepointer *filep, struct inclist *file_red, struct inclist *file, int parse_it)
int match (char *str, char **list)
int zero_value (char *exp, struct filepointer *filep, struct inclist *file_red)
int merge2defines (struct inclist *file1, struct inclist *file2)
int cppsetup (char *line, struct filepointer *filep, struct inclist *inc)
void add_include (struct filepointer *filep, struct inclist *file, struct inclist *file_red, char *include, boolean dot, boolean failOK)
int gobble (struct filepointer *filep, struct inclist *file, struct inclist *file_red)
static void inplace_strcpy (char *to, const char *from)
symtab ** fdefined (char *symbol, struct inclist *file, struct inclist **srcfile)
symtab ** isdefined (char *symbol, struct inclist *file, struct inclist **srcfile)
void define2 (char *name, char *val, struct inclist *file)
void define (char *def, struct inclist *file)
symtab ** slookup (char *symbol, struct inclist *file)
void undefine (char *symbol, struct inclist *file)
void undefine_all (struct inclist *file)
int find_includes (struct filepointer *filep, struct inclist *file, struct inclist *file_red, int recursion, boolean failOK)

Variables

char * directives []
inclist maininclist


Function Documentation

void add_include ( struct filepointer filep,
struct inclist file,
struct inclist file_red,
char *  include,
boolean  dot,
boolean  failOK 
)

Definition at line 50 of file pr.c.

References FALSE, find_includes(), freefile(), getfile(), inclist::i_file, inclist::i_flags, inc_path(), inclist, included_by(), NULL, SEARCHED, show_where_not, TRUE, warning(), and warning1().

Referenced by find_includes().

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().

void define ( char *  def,
struct inclist file 
)

Definition at line 398 of file parse.c.

References define2(), and val.

Referenced by check_unicode_subranges(), color2alpha_asimage(), decode_asscanline_ximage(), find_includes(), main_orig(), start_pass(), and validate_script().

void define2 ( char *  name,
char *  val,
struct inclist file 
)

Definition at line 322 of file parse.c.

References copy(), fatalerr(), free(), inclist::i_defs, inclist::i_ndefs, malloc(), NULL, realloc(), s1, s2, symtab::s_name, symtab::s_value, and SYMTABINC.

Referenced by define(), and main_orig().

int deftype ( char *  line,
struct filepointer filep,
struct inclist file_red,
struct inclist file,
int  parse_it 
)

Definition at line 113 of file parse.c.

References debug, DEFINE, directives, EJECT, ELIF, ELIFFALSE, ELIFGUESSFALSE, ELSE, ENDIF, ERROR, IDENT, IF, IFDEF, IFFALSE, IFNDEF, INCLUDE, INCLUDED_SYM, INCLUDEDOT, inplace_strcpy(), isdefined(), match(), NULL, p, PRAGMA, symtab::s_name, symtab::s_value, SCCS, UNDEF, WARNING, and zero_value().

Referenced by find_includes(), and gobble().

struct symtab** fdefined ( char *  symbol,
struct inclist file,
struct inclist **  srcfile 
)

Definition at line 254 of file parse.c.

References debug, DEFCHECKED, FALSE, fdefined(), FINISHED, i, inclist::i_file, inclist::i_flags, inclist::i_list, inclist::i_merged, merge2defines(), NULL, slookup(), TRUE, and val.

int find_includes ( struct filepointer filep,
struct inclist file,
struct inclist file_red,
int  recursion,
boolean  failOK 
)

Definition at line 532 of file parse.c.

References add_include(), debug, DEFINE, define(), deftype(), EJECT, ELIF, ELIFFALSE, ELIFGUESSFALSE, ELSE, ENDIF, ERROR, FALSE, find_includes(), FINISHED, gobble(), inclist::i_file, inclist::i_flags, IDENT, IF, IFDEF, IFFALSE, IFGUESSFALSE, IFNDEF, INCLUDE, INCLUDEDOT, isdefined(), line, PRAGMA, rgetline(), SCCS, TRUE, type, UNDEF, undefine(), warning(), WARNING, and warning1().

int gobble ( struct filepointer filep,
struct inclist file,
struct inclist file_red 
)

Definition at line 51 of file parse.c.

References debug, DEFINE, deftype(), directives, EJECT, ELIF, ELIFFALSE, ELIFGUESSFALSE, ELSE, ENDIF, ERROR, FALSE, inclist::i_file, IDENT, IF, IFDEF, IFFALSE, IFGUESSFALSE, IFNDEF, INCLUDE, INCLUDEDOT, line, PRAGMA, rgetline(), SCCS, type, UNDEF, void, warning(), and WARNING.

Referenced by find_includes().

static void inplace_strcpy ( char *  to,
const char *  from 
) [static]

Definition at line 103 of file parse.c.

Referenced by deftype().

struct symtab** isdefined ( char *  symbol,
struct inclist file,
struct inclist **  srcfile 
)

Definition at line 288 of file parse.c.

References debug, fdefined(), inclist::i_file, maininclist, NULL, slookup(), and val.

Referenced by deftype(), find_includes(), lookup_variable(), and undefine().

int match ( char *  str,
char **  list 
)

Definition at line 580 of file main.c.

Referenced by RooMsgService::activeStream(), XrdSecProtocolpwd::CheckCreds(), TTabCom::Complete(), deftype(), TFormulaPrimitive::FindFormula(), G__G__RooFitCore2_473_0_6(), G__G__RooFitCore2_476_0_5(), G__G__RooFitCore3_362_0_3(), G__G__RooFitCore3_362_0_4(), XrdSutCache::Get(), longest_match(), longest_match_fast(), main(), TEvePolygonSetProjected::MakePolygonsFromBS(), TGGCPool::MatchGC(), pcregrep(), TGLSAViewer::ProcessFrameMessage(), R__longest_match(), XrdSutPFile::ReadEntry(), XrdSutPFile::SearchEntries(), and RooAICRegistry::store().

int merge2defines ( struct inclist file1,
struct inclist file2 
)

Definition at line 454 of file parse.c.

References free(), inclist::i_defs, inclist::i_ndefs, malloc(), NULL, s1, s2, symtab::s_name, and SYMTABINC.

Referenced by fdefined().

struct symtab** slookup ( char *  symbol,
struct inclist file 
)

Definition at line 418 of file parse.c.

References NULL, s1, and s2.

Referenced by fdefined(), and isdefined().

void undefine ( char *  symbol,
struct inclist file 
)

Definition at line 506 of file parse.c.

References inclist::i_defs, inclist::i_ndefs, isdefined(), NULL, and ptr.

Referenced by find_includes(), and main_orig().

void undefine_all ( struct inclist file  ) 

Definition at line 520 of file parse.c.

References ptr.

Referenced by inc_clean().

int zero_value ( char *  exp,
struct filepointer filep,
struct inclist file_red 
)

Definition at line 310 of file parse.c.

References cppsetup(), IF, and IFFALSE.

Referenced by deftype().


Variable Documentation

char* directives[]

Definition at line 78 of file main.c.

Referenced by deftype(), and gobble().

struct inclist maininclist

Definition at line 103 of file main.c.

Referenced by isdefined(), and main_orig().


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