RCS Header: /home/amb/CVS/cxref/src/cxref.c,v 1.68 2006-03-11 14:39:23 amb Exp
C Cross Referencing & Documentation tool. Version 1.6e.
The default value of the CPP command.
#define CPP_COMMAND "gcc -E -C -dD -dI"
The name of the file to read the configuration from.
#define CXREF_CONFIG_FILE ".cxref"
The command line switch that sets the format of the output, use all comments.
Visible in: | cxref.c | |
parse-lex.c | ||
Used in: | ParseOptions() | cxref.c |
yylex() | parse-lex.c |
The command line switch that sets the format of the output, insert the comments verbatim into the output.
The command line switch that sets the format of the output, remove the leading block comment marker.
Visible in: | cxref.c | |
parse-lex.c | ||
Used in: | ParseOptions() | cxref.c |
yylex() | parse-lex.c |
The command line switch that sets the format of the output, ignore all comments.
Visible in: | cxref.c | |
parse-lex.c | ||
Used in: | ParseOptions() | cxref.c |
yylex() | parse-lex.c |
The command line switch that sets the format of the output, do cross referencing.
The command line switch that sets the format of the output, produce warnings.
The command line switch that sets the format of the output, produce an index.
Visible in: | cxref.c | |
warn-raw.c | ||
xref.c | ||
Used in: | CreateAppendix() | xref.c |
ParseOptions() | cxref.c | |
WriteWarnRawAppendix() | warn-raw.c | |
main() | cxref.c |
The command line switch that sets the format of the output, produce raw output.
The command line switch that sets the format of the output, produce LaTeX output.
Visible in: | cxref.c | |
Used in: | ParseOptions() | cxref.c |
main() | cxref.c |
The command line switch that sets the format of the output, produce HTML output.
The command line switch that sets the format of the output, produce RTF output.
Visible in: | cxref.c | |
Used in: | ParseOptions() | cxref.c |
main() | cxref.c |
The command line switch that sets the format of the output, produce SGML output.
Visible in: | cxref.c | |
Used in: | ParseOptions() | cxref.c |
main() | cxref.c |
The command line switch for the output name, the directory to use.
The command line switch for the output name, the base part of the name.
The command line switch for the output name, the source tree root directory.
Visible in: | cxref.c | |
Used in: | ParseOptions() | cxref.c |
main() | cxref.c |
The name of the include directories specified on the command line.
Visible in: | cxref.c | |
preproc.c | ||
Used in: | ParseOptions() | cxref.c |
SeenInclude() | preproc.c | |
main() | cxref.c |
The information about the cxref run, the command line options.
The information about the cxref run, the cpp command and options.
Visible in: | cxref.c | |
html.c | ||
latex.c | ||
rtf.c | ||
sgml.c | ||
Used in: | WriteHTMLPreamble() | html.c |
WriteLatexFile() | latex.c | |
WriteRTFPreamble() | rtf.c | |
WriteSGMLPreamble() | sgml.c | |
main() | cxref.c |
The number of include directories on the command line.
Visible in: | cxref.c | |
preproc.c | ||
Used in: | ParseOptions() | cxref.c |
SeenInclude() | preproc.c | |
main() | cxref.c |
The current file that is being processed.
The actual cpp command that is built up, adding -D, -U and -I options.
Used in: | DocumentTheFile() | |
ParseOptions() | ||
main() |
The number of arguments to the cpp command.
Used in: | DocumentTheFile() | |
ParseOptions() | ||
main() |
The number of arguments to the -CPP argument.
Used in: | ParseOptions() | |
main() |
The option to control the mode of operation.
Used in: | ParseOptions() | |
main() |
The names of the files to process.
Used in: | ParseConfigFile() | |
ParseOptions() | ||
main() |
The number of files to process.
Used in: | ParseConfigFile() | |
ParseOptions() | ||
main() |
The process id of the pre-processor.
Used in: | pclose_execvp() | |
popen_execvp() |
Canonicalise a file name by removing '/../', '/./' and '//' references.
char* CanonicaliseName ( char* name )
The same function is used in WWWOFFLE and cxref with changes for files or URLs.
Prototyped in: | cxref.h | |
Calls: | strcmp(), strlen(), strncmp(), strstr() | |
Called by: | SeenFileChange() | preproc.c |
SeenInclude() | preproc.c | |
main() | cxref.c |
The main function that calls the parser.
int main ( int argc, char** argv )
Calls CPP for the file to get all of the needed information.
static int DocumentTheFile ( char* name )
The CPP is started as a sub-process, (using popen to return a FILE* for lex to use).
Prototyped in: | cxref.c | |
Calls: | pclose_execvp() | cxref.c |
popen_execvp() | cxref.c | |
yyparse() | parse-yacc.c | |
yyrestart() | parse-lex.c | |
exit(), fprintf(), stat() | ||
Called by: | main() | cxref.c |
References Variables: | cpp_command | cxref.c |
cpp_command_num | cxref.c | |
yydebug | parse-yacc.c | |
yyin | parse-lex.c |
Read in the options from the configuration file.
static int ParseConfigFile ( void )
Prototyped in: | cxref.c | |
Calls: | CopyString() | memory.c |
ParseOptions() | cxref.c | |
SafeFree() | memory.c | |
SafeMalloc() | memory.c | |
SafeRealloc() | memory.c | |
fclose(), fgets(), fopen(), fprintf(), strlen(), strncmp() | ||
Called by: | main() | cxref.c |
References Variables: | option_files | cxref.c |
option_nfiles | cxref.c |
Parse the options from the command line or from the .cxref file.
static int ParseOptions ( int nargs, char** args, int fromfile )
Print out the usage instructions.
static void Usage ( int verbose )
Prototyped in: | cxref.c | |
Calls: | exit(), fputs() | |
Called by: | main() | cxref.c |
Close the file to the to the preprocessor
static int pclose_execvp ( FILE* f )
Prototyped in: | cxref.c | |
Calls: | fclose(), waitpid() | |
Called by: | DocumentTheFile() | cxref.c |
References Variables: | popen_pid | cxref.c |
A popen function that takes a list of arguments not a string.
static FILE* popen_execvp ( char** command )
Prototyped in: | cxref.c | |
Calls: | close(), dup(), execvp(), exit(), fdopen(), fork(), fprintf(), pipe() | |
Called by: | DocumentTheFile() | cxref.c |
References Variables: | popen_pid | cxref.c |