makedep.cpp File Reference

#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)
filepointergetfile (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]
inclistinclistp = 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 Documentation

#define MAKEDEPEND

Definition at line 96 of file makedep.cpp.


Function Documentation

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  ) 

Definition at line 559 of file makedep.cpp.

References fatalerr(), and NULL.

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 
)

Definition at line 545 of file makedep.cpp.

Referenced by deftype().

void redirect ( char *  line,
char *  makefile 
)

Definition at line 661 of file makedep.cpp.

References append, chmod, fatalerr(), fileno, NULL, stat, unlink, verbose, and warning().

Referenced by main().

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


Variable Documentation

bool append = false

Definition at line 110 of file makedep.cpp.

Referenced by main(), and redirect().

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.

Referenced by deftype(), and gobble().

char* excludedirs[MAXDIRS+1]

Definition at line 104 of file makedep.cpp.

Referenced by main().

char* filelist[MAXFILES]

Definition at line 102 of file makedep.cpp.

Referenced by main().

struct inclist inc_list[MAXFILES]

Definition at line 100 of file makedep.cpp.

struct inclist * inclistp = inc_list

Definition at line 100 of file makedep.cpp.

char* includedirs[MAXDIRS+1]

Definition at line 103 of file makedep.cpp.

Referenced by main().

struct inclist maininclist

Definition at line 100 of file makedep.cpp.

Referenced by isdefined(), and main().

char* notdotdot[MAXDIRS]

Definition at line 105 of file makedep.cpp.

Referenced by issymbolic().

char* objprefix = (char *)""

Definition at line 106 of file makedep.cpp.

Referenced by main(), and pr().

char* objsuffix = (char *)".obj"

Definition at line 107 of file makedep.cpp.

Referenced by main(), and pr().

bool printed = false

Definition at line 111 of file makedep.cpp.

Referenced by portable::itoa(), main(), and pr().

char* ProgramName

Definition at line 74 of file makedep.cpp.

Referenced by fatalerr(), main(), and warning().

bool show_where_not = false

Definition at line 113 of file makedep.cpp.

struct sigaction sig_act

Definition at line 139 of file makedep.cpp.

Referenced by main().

char* startat = (char *)"# DO NOT DELETE"

Definition at line 108 of file makedep.cpp.

Referenced by main().

bool verbose = false

Definition at line 112 of file makedep.cpp.

Referenced by main(), pr(), and redirect().

bool warn_multiple = false

Definition at line 114 of file makedep.cpp.

Referenced by included_by(), and main().

int width = 78

Definition at line 109 of file makedep.cpp.

Referenced by main(), static_bitmap::paint(), and pr().


Generated on Fri Nov 28 04:29:41 2008 for HOOPLE Libraries by  doxygen 1.5.1