#include "def.h"#include <unistd.h>#include <stdio.h>#include <string.h>#include <signal.h>#include "imakemdep.h"Include dependency graph for makedep.cpp:

Go to the source code of this file.
Defines | |
| #define | MAKEDEPEND |
Functions | |
| int | main (int argc, char **argv) |
| filepointer * | getfile (char *file) |
| void | freefile (struct filepointer *fp) |
| char * | copy (register char *str) |
| int | match (register const char *str, register const char **list) |
| char * | getline (register struct filepointer *filep) |
| char * | base_name (register char *file) |
| void | redirect (char *line, char *makefile) |
| void | fatalerr (char *msg, x1, x2, x3, x4, x5, x6, x7, x8, x9) |
| void | warning (const char *msg, x1, x2, x3, x4, x5, x6, x7, x8, x9) |
| void | warning1 (const char *msg, x1, x2, x3, x4, x5, x6, x7, x8, x9) |
Variables | |
| char * | ProgramName |
| const char * | directives [] |
| inclist | inc_list [MAXFILES] |
| inclist * | inclistp = inc_list |
| inclist | maininclist |
| char * | filelist [MAXFILES] |
| char * | includedirs [MAXDIRS+1] |
| char * | excludedirs [MAXDIRS+1] |
| char * | notdotdot [MAXDIRS] |
| char * | objprefix = (char *)"" |
| char * | objsuffix = (char *)".obj" |
| char * | startat = (char *)"# DO NOT DELETE" |
| int | width = 78 |
| bool | append = false |
| bool | printed = false |
| bool | verbose = false |
| bool | show_where_not = false |
| bool | warn_multiple = false |
| sigaction | sig_act |
| #define MAKEDEPEND |
Definition at line 96 of file makedep.cpp.
| char* base_name | ( | register char * | file | ) |
Definition at line 636 of file makedep.cpp.
References copy().
Referenced by main(), and path_configuration::make_logfile_name().
| char* copy | ( | register char * | str | ) |
Definition at line 537 of file makedep.cpp.
Referenced by base_name(), recursive_file_copy::copy_hierarchy(), define2(), cromp_transaction::flatten(), issymbolic(), and newinclude().
| void fatalerr | ( | char * | msg, | |
| x1 | , | |||
| x2 | , | |||
| x3 | , | |||
| x4 | , | |||
| x5 | , | |||
| x6 | , | |||
| x7 | , | |||
| x8 | , | |||
| x9 | ||||
| ) |
Definition at line 732 of file makedep.cpp.
References ProgramName.
Referenced by add_include(), define2(), getfile(), getline(), issymbolic(), main(), newinclude(), and redirect().
| void freefile | ( | struct filepointer * | fp | ) |
Definition at line 530 of file makedep.cpp.
References filepointer::f_base, and filepointer::f_name.
Referenced by add_include(), and main().
| struct filepointer* getfile | ( | char * | file | ) |
Definition at line 501 of file makedep.cpp.
References close, filepointer::f_name, fatalerr(), fstat, NULL, O_RDONLY, open, read, stat, and warning().
Referenced by add_include(), and main().
| char* getline | ( | register struct filepointer * | filep | ) |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 163 of file makedep.cpp.
References append, base_name(), close, define(), define2(), excludedirs, fatalerr(), filelist, find_includes(), freefile(), fstat, getfile(), inclist::i_file, inc_clean(), includedirs, maininclist, MAXDIRS, newinclude(), NULL, O_RDONLY, objprefix, objsuffix, open, printed, ProgramName, read, recursive_pr_include(), redirect(), symtab::s_name, symtab::s_value, sig_act, startat, stat, verbose, warn_multiple, warning(), and width.
| int match | ( | register const char * | str, | |
| register const char ** | list | |||
| ) |
| void redirect | ( | char * | line, | |
| char * | makefile | |||
| ) |
| void warning | ( | const char * | msg, | |
| x1 | , | |||
| x2 | , | |||
| x3 | , | |||
| x4 | , | |||
| x5 | , | |||
| x6 | , | |||
| x7 | , | |||
| x8 | , | |||
| x9 | ||||
| ) |
Definition at line 753 of file makedep.cpp.
References ProgramName.
Referenced by add_include(), find_includes(), getfile(), gobble(), included_by(), main(), and redirect().
| void warning1 | ( | const char * | msg, | |
| x1 | , | |||
| x2 | , | |||
| x3 | , | |||
| x4 | , | |||
| x5 | , | |||
| x6 | , | |||
| x7 | , | |||
| x8 | , | |||
| x9 | ||||
| ) |
Definition at line 773 of file makedep.cpp.
Referenced by add_include(), find_includes(), and included_by().
| bool append = false |
| const char* directives[] |
Initial value:
{
"if",
"ifdef",
"ifndef",
"else",
"endif",
"define",
"undef",
"include",
"line",
"pragma",
"error",
"ident",
"sccs",
"elif",
"eject",
"import",
NULL
}
Definition at line 76 of file makedep.cpp.
| char* excludedirs[MAXDIRS+1] |
| char* filelist[MAXFILES] |
Definition at line 100 of file makedep.cpp.
Definition at line 100 of file makedep.cpp.
| char* includedirs[MAXDIRS+1] |
| struct inclist maininclist |
| char* notdotdot[MAXDIRS] |
| char* objprefix = (char *)"" |
| char* objsuffix = (char *)".obj" |
| bool printed = false |
| char* ProgramName |
| bool show_where_not = false |
Definition at line 113 of file makedep.cpp.
| struct sigaction sig_act |
| char* startat = (char *)"# DO NOT DELETE" |
| bool verbose = false |
| bool warn_multiple = false |
| int width = 78 |
1.5.1