feisty meow concerns codebase  2.140
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.

Macros

#define MAKEDEPEND
 

Functions

char * translate_cygwin (char *fname)
 
int main (int argc, char **argv)
 
struct 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 []
 
struct inclist inc_list [MAXFILES]
 
struct inclistinclistp = inc_list
 
struct 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
 
struct sigaction sig_act
 

Macro Definition Documentation

◆ MAKEDEPEND

#define MAKEDEPEND

Definition at line 96 of file makedep.cpp.

Function Documentation

◆ base_name()

char* base_name ( register char *  file)

Definition at line 653 of file makedep.cpp.

References copy().

Referenced by configuration::application_configuration::make_logfile_name().

◆ copy()

char* copy ( register char *  str)

◆ fatalerr()

void fatalerr ( char *  msg,
x1  ,
x2  ,
x3  ,
x4  ,
x5  ,
x6  ,
x7  ,
x8  ,
x9   
)

Definition at line 749 of file makedep.cpp.

References ProgramName.

Referenced by add_include(), define2(), getfile(), getline(), issymbolic(), main(), newinclude(), and redirect().

◆ freefile()

void freefile ( struct filepointer fp)

Definition at line 547 of file makedep.cpp.

References filepointer::f_base, and filepointer::f_name.

Referenced by add_include().

◆ getfile()

◆ getline()

char* getline ( register struct filepointer filep)

no count, since we'll see it again. lineno++;

Definition at line 576 of file makedep.cpp.

References filepointer::f_end, filepointer::f_line, filepointer::f_p, and fatalerr().

◆ main()

int main ( int  argc,
char **  argv 
)

◆ match()

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

Definition at line 562 of file makedep.cpp.

Referenced by deftype(), and org.feistymeow.textual.WordBreakFinder::main().

◆ redirect()

void redirect ( char *  line,
char *  makefile 
)

Definition at line 678 of file makedep.cpp.

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

Referenced by main().

◆ translate_cygwin()

char* translate_cygwin ( char *  fname)

Definition at line 143 of file makedep.cpp.

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

◆ warning()

void warning ( const char *  msg,
x1  ,
x2  ,
x3  ,
x4  ,
x5  ,
x6  ,
x7  ,
x8  ,
x9   
)

Definition at line 770 of file makedep.cpp.

References ProgramName.

Referenced by add_include(), find_includes(), getfile(), gobble(), included_by(), main(), and redirect().

◆ warning1()

void warning1 ( const char *  msg,
x1  ,
x2  ,
x3  ,
x4  ,
x5  ,
x6  ,
x7  ,
x8  ,
x9   
)

Definition at line 790 of file makedep.cpp.

Referenced by add_include(), find_includes(), inc_path(), and included_by().

Variable Documentation

◆ append

bool append = false

Definition at line 110 of file makedep.cpp.

Referenced by main(), and redirect().

◆ directives

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

◆ excludedirs

char* excludedirs[MAXDIRS+1]

Definition at line 104 of file makedep.cpp.

Referenced by inc_path(), and main().

◆ filelist

◆ inc_list

struct inclist inc_list[MAXFILES]

Definition at line 76 of file makedep.cpp.

Referenced by inc_clean(), inc_path(), and newinclude().

◆ inclistp

struct inclist * inclistp = inc_list

Definition at line 100 of file makedep.cpp.

◆ includedirs

char* includedirs[MAXDIRS+1]

Definition at line 103 of file makedep.cpp.

Referenced by inc_path(), and main().

◆ maininclist

struct inclist maininclist

Definition at line 100 of file makedep.cpp.

Referenced by isdefined(), and main().

◆ notdotdot

char* notdotdot[MAXDIRS]

Definition at line 105 of file makedep.cpp.

Referenced by issymbolic().

◆ objprefix

char* objprefix = (char *)""

Definition at line 106 of file makedep.cpp.

Referenced by main(), and pr().

◆ objsuffix

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

Definition at line 107 of file makedep.cpp.

Referenced by main(), and pr().

◆ printed

bool printed = false

Definition at line 111 of file makedep.cpp.

Referenced by pr().

◆ ProgramName

char* ProgramName

Definition at line 74 of file makedep.cpp.

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

◆ show_where_not

bool show_where_not = false

Definition at line 113 of file makedep.cpp.

Referenced by add_include(), and inc_path().

◆ sig_act

struct sigaction sig_act

Definition at line 122 of file makedep.cpp.

◆ startat

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

Definition at line 108 of file makedep.cpp.

Referenced by main().

◆ verbose

◆ warn_multiple

bool warn_multiple = false

Definition at line 114 of file makedep.cpp.

Referenced by included_by(), and main().

◆ width

int width = 78

Definition at line 109 of file makedep.cpp.

Referenced by main(), org.feistymeow.windowing.WindowUtilities::openInJFrame(), and pr().