Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/crunch/crunchgen/crunchgen.c
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | typedef struct prog { | ||||
strlst_t *libs; | strlst_t *libs; | ||||
strlst_t *libs_so; | strlst_t *libs_so; | ||||
int goterror; | int goterror; | ||||
} prog_t; | } prog_t; | ||||
/* global state */ | /* global state */ | ||||
strlst_t *buildopts = NULL; | static strlst_t *buildopts = NULL; | ||||
strlst_t *srcdirs = NULL; | static strlst_t *srcdirs = NULL; | ||||
strlst_t *libs = NULL; | static strlst_t *libs = NULL; | ||||
strlst_t *libs_so = NULL; | static strlst_t *libs_so = NULL; | ||||
prog_t *progs = NULL; | static prog_t *progs = NULL; | ||||
char confname[MAXPATHLEN], infilename[MAXPATHLEN]; | static char confname[MAXPATHLEN], infilename[MAXPATHLEN]; | ||||
char outmkname[MAXPATHLEN], outcfname[MAXPATHLEN], execfname[MAXPATHLEN]; | static char outmkname[MAXPATHLEN], outcfname[MAXPATHLEN], execfname[MAXPATHLEN]; | ||||
char tempfname[MAXPATHLEN], cachename[MAXPATHLEN], curfilename[MAXPATHLEN]; | static char tempfname[MAXPATHLEN], cachename[MAXPATHLEN]; | ||||
bool tempfname_initialized = false; | static char curfilename[MAXPATHLEN]; | ||||
char outhdrname[MAXPATHLEN] ; /* user-supplied header for *.mk */ | static bool tempfname_initialized = false; | ||||
const char *objprefix; /* where are the objects ? */ | static char outhdrname[MAXPATHLEN] ; /* user-supplied header for *.mk */ | ||||
const char *path_make; | static const char *objprefix; /* where are the objects ? */ | ||||
int linenum = -1; | static const char *path_make; | ||||
int goterror = 0; | static int linenum = -1; | ||||
static int goterror = 0; | |||||
int verbose, readcache; /* options */ | static int verbose, readcache; /* options */ | ||||
int reading_cache; | static int reading_cache; | ||||
int makeobj = 0; /* add 'make obj' rules to the makefile */ | static int makeobj = 0; /* add 'make obj' rules to the makefile */ | ||||
int list_mode; | static int list_mode; | ||||
/* general library routines */ | /* general library routines */ | ||||
void status(const char *str); | void status(const char *str); | ||||
void out_of_memory(void); | void out_of_memory(void); | ||||
void add_string(strlst_t **listp, char *str); | void add_string(strlst_t **listp, char *str); | ||||
int is_dir(const char *pathname); | int is_dir(const char *pathname); | ||||
int is_nonempty_file(const char *pathname); | int is_nonempty_file(const char *pathname); | ||||
▲ Show 20 Lines • Show All 1,146 Lines • Show Last 20 Lines |