COMP: Do not use ANSI function prototypes to pacify HP.

This commit is contained in:
Brad King 2006-04-13 15:28:57 -04:00
parent cae4e6b37a
commit 58d0c5e176
1 changed files with 3 additions and 3 deletions

View File

@ -8,11 +8,11 @@ int main(int argc, char *argv[])
return 1;
}
FILE *fp = fopen(argv[1],"w");
fprintf(fp,"extern int wrapped_help(void);\n");
fprintf(fp,"int wrapped(void) { return wrapped_help(); }\n");
fprintf(fp,"extern int wrapped_help();\n");
fprintf(fp,"int wrapped() { return wrapped_help(); }\n");
fclose(fp);
fp = fopen(argv[2],"w");
fprintf(fp,"int wrapped_help(void) { return 5; }\n");
fprintf(fp,"int wrapped_help() { return 5; }\n");
fclose(fp);
return 0;
}