diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 1998-12-15 12:20:27 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 1998-12-15 12:20:27 +0000 |
commit | 88c4d11dc7f484f0e4c653dd375fef9eb741b3e1 (patch) | |
tree | 8f5572c36c5c930f2d2cd6e170e3a2404fe3b48f /usr.bin | |
parent | c03ddf207475b260088ff0fbd215132dd0243994 (diff) | |
download | src-88c4d11dc7f484f0e4c653dd375fef9eb741b3e1.tar.gz src-88c4d11dc7f484f0e4c653dd375fef9eb741b3e1.zip |
Generate a prototype for initialize_XXXX_error_table() when the language
is set to C.
Notes
Notes:
svn path=/head/; revision=41819
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/compile_et/compile_et.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/compile_et/compile_et.c b/usr.bin/compile_et/compile_et.c index 055a9b6e611f..6250d4aa4fba 100644 --- a/usr.bin/compile_et/compile_et.c +++ b/usr.bin/compile_et/compile_et.c @@ -26,7 +26,7 @@ static const char copyright[] = "Copyright 1987,1988 by MIT Student Information Processing Board"; static const char rcsid_compile_et_c[] = - "$Header: /home/ncvs/src/usr.bin/compile_et/compile_et.c,v 1.3 1996/07/12 19:05:17 jkh Exp $"; + "$Header: /home/ncvs/src/usr.bin/compile_et/compile_et.c,v 1.4 1997/06/30 06:42:41 charnier Exp $"; #endif extern char *gensym(); @@ -252,8 +252,8 @@ int main (argc, argv) int argc; char **argv; { fputs("}\n", cfile); fclose(cfile); - fprintf (hfile, "extern void initialize_%s_error_table ();\n", - table_name); + fprintf (hfile, "extern void initialize_%s_error_table (%s);\n", + table_name, (language == lang_C) ? "void" : ""); fprintf (hfile, "#define ERROR_TABLE_BASE_%s (%dL)\n", table_name, table_number); /* compatibility... */ |