29 #pragma warning(disable : 4996)
45 inclist *file_red,
char *include,
bool dot,
bool failOK)
47 register struct inclist *newfile;
54 if (newfile == NULL) {
58 warning(
"%s (reading %s, line %d): ",
62 warning1(
"cannot find include file \"%s\"\n", include);
63 fatalerr(
"cannot find include file \"%s\"\n", include);
88 if (head->
i_file != file) {
90 if ((strlen(file) >= 3) && !strcmp(file + strlen(file) - 3,
".rc"))
92 pr(head, file, base, rc_file);
98 void pr(
register struct inclist *ip,
char *file,
char *base,
bool rc_file)
100 static char *lastfile;
101 static int current_len;
106 len = int(strlen(ip->
i_file)+1);
107 if (current_len + len >
width || file != lastfile) {
110 if (rc_file) temp_suff = (
char *)
".res";
112 len = current_len = int(strlen(buf));
117 char tmp[2] = {
' ',
'\0' };
123 fwrite(buf, len, 1, stdout);
130 printf(
"\n# %s includes:", ip->
i_file);
int find_includes(filepointer *filep, inclist *file, inclist *file_red, int recursion, bool failOK)
void freefile(filepointer *fp)
inclist * inc_path(register char *file, register char *include, bool dot, bool &failure_okay)
filepointer * getfile(char *file)
void included_by(register inclist *ip, register inclist *newfile)
void warning1(const char *msg, x1, x2, x3, x4, x5, x6, x7, x8, x9)
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 add_include(filepointer *filep, inclist *file, inclist *file_red, char *include, bool dot, bool failOK)
void recursive_pr_include(register struct inclist *head, register char *file, register char *base)
void pr(register struct inclist *ip, char *file, char *base, bool rc_file)