C Cross Referencing & Documentation tool. Version 1.6e.
Collects the pre-processing instruction stuff.
Control the output of debugging information for this file.
When in a header file, this is set to 1, to allow most of the stuff to be skipped.
The file that is currently being processed.
extern File CurFile
| Defined in: | cxref.c |
The name of the include directories specified on the command line.
extern char** option_incdirs
| Defined in: | cxref.c |
The number of include directories on the command line.
extern int option_nincdirs
| Defined in: | cxref.c |
The current #include we are looking at.
| Used in: | ResetPreProcAnalyser() | |
| SeenFileChange() | ||
| SeenInclude() | ||
| SeenIncludeComment() |
The current #define we are looking at.
| Used in: | ResetPreProcAnalyser() | |
| SeenDefine() | ||
| SeenDefineComment() | ||
| SeenDefineFuncArgComment() | ||
| SeenDefineFunctionArg() | ||
| SeenDefineValue() |
The depth of includes.
| Used in: | ResetPreProcAnalyser() | |
| SeenFileChange() | ||
| SeenInclude() |
The type of include at this depth.
| Used in: | ResetPreProcAnalyser() | |
| SeenFileChange() | ||
| SeenInclude() |
The name of the include file at this depth.
| Used in: | ResetPreProcAnalyser() | |
| SeenFileChange() |
The working directory.
| Used in: | ResetPreProcAnalyser() | |
| SeenFileChange() |
Delete the specified Define type.
void DeleteDefineType ( Define def )
| Prototyped in: | cxref.h | |
| Calls: | DeleteStringList2() | slist.c |
| SafeFree() | memory.c | |
| Called by: | DeleteFile() | file.c |
| SeenFileChange() | preproc.c | |
Delete the specified Include type.
void DeleteIncludeType ( Include inc )
| Prototyped in: | cxref.h | |
| Calls: | DeleteIncludeType() | preproc.c |
| SafeFree() | memory.c | |
| Called by: | DeleteFile() | file.c |
| DeleteIncludeType() | preproc.c | |
| SeenFileChange() | preproc.c | |
Tidy up all of the local variables in case of a problem and abnormal parser termination.
void ResetPreProcAnalyser ( void )
| Prototyped in: | cxref.h | |
| Calls: | SafeFree() | memory.c |
| Called by: | main() | cxref.c |
| References Variables: | cur_def | preproc.c |
| cur_inc | preproc.c | |
| cwd | preproc.c | |
| in_header | preproc.c | |
| inc_depth | preproc.c | |
| inc_name | preproc.c | |
| inc_type | preproc.c | |
Function that is called when a #define is seen in the current file.
void SeenDefine ( char* name )
| Prototyped in: | cxref.h | |
| Calls: | GetCurrentComment() | comment.c |
| NewDefineType() | preproc.c | |
| SafeMallocString() | memory.c | |
| Called by: | yylex() | parse-lex.c |
| References Variables: | CurFile | cxref.c |
| cur_def | preproc.c | |
| parse_line | parse-lex.c | |
Function that is called when a comment is seen in a #define definition.
void SeenDefineComment ( void )
| Prototyped in: | cxref.h | |
| Calls: | GetCurrentComment() | comment.c |
| SafeMallocString() | memory.c | |
| Called by: | yylex() | parse-lex.c |
| References Variables: | cur_def | preproc.c |
Function that is called when a comment is seen in a #define function definition.
void SeenDefineFuncArgComment ( void )
| Prototyped in: | cxref.h | |
| Calls: | GetCurrentComment() | comment.c |
| SafeMallocString() | memory.c | |
| Called by: | yylex() | parse-lex.c |
| References Variables: | cur_def | preproc.c |
Function that is called when a #define function argument is seen in the current definition.
void SeenDefineFunctionArg ( char* name )
| Prototyped in: | cxref.h | |
| Calls: | AddToStringList2() | slist.c |
| SplitComment() | comment.c | |
| Called by: | yylex() | parse-lex.c |
| References Variables: | cur_def | preproc.c |
Function that is called when a #define value is seen in the current file.
void SeenDefineValue ( char* value )
| Prototyped in: | cxref.h | |
| Calls: | SafeMallocString() | memory.c |
| Called by: | yylex() | parse-lex.c |
| References Variables: | cur_def | preproc.c |
Function that is called when a change in current file is seen.
char* SeenFileChange ( char* name, int flag )
| Prototyped in: | cxref.h | |
| Calls: | CanonicaliseName() | cxref.c |
| ConcatStrings() | memory.c | |
| CopyString() | memory.c | |
| DeleteDefineType() | preproc.c | |
| DeleteIncludeType() | preproc.c | |
| SafeFree() | memory.c | |
| SafeMalloc() | memory.c | |
| SafeMallocString() | memory.c | |
| SafeRealloc() | memory.c | |
| SeenInclude() | preproc.c | |
| SetCurrentComment() | comment.c | |
| getcwd(), strcmp(), strlen(), strncmp() | ||
| Called by: | yylex() | parse-lex.c |
| References Variables: | CurFile | cxref.c |
| cur_inc | preproc.c | |
| cwd | preproc.c | |
| in_header | preproc.c | |
| inc_depth | preproc.c | |
| inc_name | preproc.c | |
| inc_type | preproc.c | |
Function that is called when an included file is seen in the current file.
void SeenInclude ( char* name )
| Prototyped in: | cxref.h | |
| Calls: | CanonicaliseName() | cxref.c |
| ConcatStrings() | memory.c | |
| GetCurrentComment() | comment.c | |
| NewIncludeType() | preproc.c | |
| SafeMallocString() | memory.c | |
| lstat(), strlen() | ||
| Called by: | SeenFileChange() | preproc.c |
| yylex() | parse-lex.c | |
| References Variables: | CurFile | cxref.c |
| cur_inc | preproc.c | |
| inc_depth | preproc.c | |
| inc_type | preproc.c | |
| option_incdirs | cxref.c | |
| option_nincdirs | cxref.c | |
Function that is called when a comment is seen following a #include.
void SeenIncludeComment ( void )
| Prototyped in: | cxref.h | |
| Calls: | GetCurrentComment() | comment.c |
| SafeMallocString() | memory.c | |
| Called by: | yylex() | parse-lex.c |
| References Variables: | cur_inc | preproc.c |
Create a new Define datatype.
static Define NewDefineType ( char* name )
| Prototyped in: | preproc.c | |
| Calls: | NewStringList2() | slist.c |
| SafeCalloc() | memory.c | |
| SafeMallocString() | memory.c | |
| Called by: | SeenDefine() | preproc.c |
Create a new Include datatype.
static Include NewIncludeType ( char* name )
| Prototyped in: | preproc.c | |
| Calls: | SafeCalloc() | memory.c |
| SafeMallocString() | memory.c | |
| Called by: | SeenInclude() | preproc.c |