diff options
author | David J. MacKenzie <djm@gnu.org> | 1994-10-12 20:21:51 +0000 |
---|---|---|
committer | David J. MacKenzie <djm@gnu.org> | 1994-10-12 20:21:51 +0000 |
commit | 340ff9deaea2a7258d3ee1eca65487b4cd8dd305 (patch) | |
tree | 48728b1b42696e296b41072130301fc3ea627440 /lib-src/make-docfile.c | |
parent | e2f9d9afabe51c8be7e6f4327197670b941789f2 (diff) | |
download | emacs-340ff9deaea2a7258d3ee1eca65487b4cd8dd305.tar.gz |
Eliminate some -Wall warnings.
Diffstat (limited to 'lib-src/make-docfile.c')
-rw-r--r-- | lib-src/make-docfile.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 58062efeee1..72be211f868 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c @@ -44,8 +44,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define READ_BINARY "r" #endif /* not MSDOS */ +int scan_file (); +int scan_lisp_file (); +int scan_c_file (); + FILE *outfile; +int main (argc, argv) int argc; char **argv; @@ -83,11 +88,13 @@ main (argc, argv) #ifndef VMS exit (err_count); /* see below - shane */ #endif /* VMS */ + return err_count; } /* Read file FILENAME and output its doc strings to outfile. */ /* Return 1 if file is not found, 0 if it is found. */ +int scan_file (filename) char *filename; { @@ -109,6 +116,7 @@ char buf[128]; Convert escape sequences \n and \t to newline and tab; discard \ followed by newline. */ +int read_c_string (infile, printflag) FILE *infile; int printflag; @@ -156,6 +164,7 @@ read_c_string (infile, printflag) /* Write to file OUT the argument names of function FUNC, whose text is in BUF. MINARGS and MAXARGS are the minimum and maximum number of arguments. */ +void write_c_args (out, func, buf, minargs, maxargs) FILE *out; char *func, *buf; @@ -240,6 +249,7 @@ write_c_args (out, func, buf, minargs, maxargs) Looks for DEFUN constructs such as are defined in ../src/lisp.h. Accepts any word starting DEF... so it finds DEFSIMPLE and DEFPRED. */ +int scan_c_file (filename, mode) char *filename, *mode; { @@ -486,7 +496,7 @@ read_lisp_symbol (infile, buffer) skip_white (infile); } - +int scan_lisp_file (filename, mode) char *filename, *mode; { @@ -504,7 +514,6 @@ scan_lisp_file (filename, mode) while (!feof (infile)) { char buffer [BUFSIZ]; - char *fillp = buffer; char type; if (c != '\n') |