aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/make-docfile.c
diff options
context:
space:
mode:
authorDavid J. MacKenzie1994-10-12 20:21:51 +0000
committerDavid J. MacKenzie1994-10-12 20:21:51 +0000
commit340ff9deaea2a7258d3ee1eca65487b4cd8dd305 (patch)
tree48728b1b42696e296b41072130301fc3ea627440 /lib-src/make-docfile.c
parente2f9d9afabe51c8be7e6f4327197670b941789f2 (diff)
downloademacs-340ff9deaea2a7258d3ee1eca65487b4cd8dd305.tar.gz
emacs-340ff9deaea2a7258d3ee1eca65487b4cd8dd305.zip
Eliminate some -Wall warnings.
Diffstat (limited to 'lib-src/make-docfile.c')
-rw-r--r--lib-src/make-docfile.c13
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. */
44#define READ_BINARY "r" 44#define READ_BINARY "r"
45#endif /* not MSDOS */ 45#endif /* not MSDOS */
46 46
47int scan_file ();
48int scan_lisp_file ();
49int scan_c_file ();
50
47FILE *outfile; 51FILE *outfile;
48 52
53int
49main (argc, argv) 54main (argc, argv)
50 int argc; 55 int argc;
51 char **argv; 56 char **argv;
@@ -83,11 +88,13 @@ main (argc, argv)
83#ifndef VMS 88#ifndef VMS
84 exit (err_count); /* see below - shane */ 89 exit (err_count); /* see below - shane */
85#endif /* VMS */ 90#endif /* VMS */
91 return err_count;
86} 92}
87 93
88/* Read file FILENAME and output its doc strings to outfile. */ 94/* Read file FILENAME and output its doc strings to outfile. */
89/* Return 1 if file is not found, 0 if it is found. */ 95/* Return 1 if file is not found, 0 if it is found. */
90 96
97int
91scan_file (filename) 98scan_file (filename)
92 char *filename; 99 char *filename;
93{ 100{
@@ -109,6 +116,7 @@ char buf[128];
109 Convert escape sequences \n and \t to newline and tab; 116 Convert escape sequences \n and \t to newline and tab;
110 discard \ followed by newline. */ 117 discard \ followed by newline. */
111 118
119int
112read_c_string (infile, printflag) 120read_c_string (infile, printflag)
113 FILE *infile; 121 FILE *infile;
114 int printflag; 122 int printflag;
@@ -156,6 +164,7 @@ read_c_string (infile, printflag)
156/* Write to file OUT the argument names of function FUNC, whose text is in BUF. 164/* Write to file OUT the argument names of function FUNC, whose text is in BUF.
157 MINARGS and MAXARGS are the minimum and maximum number of arguments. */ 165 MINARGS and MAXARGS are the minimum and maximum number of arguments. */
158 166
167void
159write_c_args (out, func, buf, minargs, maxargs) 168write_c_args (out, func, buf, minargs, maxargs)
160 FILE *out; 169 FILE *out;
161 char *func, *buf; 170 char *func, *buf;
@@ -240,6 +249,7 @@ write_c_args (out, func, buf, minargs, maxargs)
240 Looks for DEFUN constructs such as are defined in ../src/lisp.h. 249 Looks for DEFUN constructs such as are defined in ../src/lisp.h.
241 Accepts any word starting DEF... so it finds DEFSIMPLE and DEFPRED. */ 250 Accepts any word starting DEF... so it finds DEFSIMPLE and DEFPRED. */
242 251
252int
243scan_c_file (filename, mode) 253scan_c_file (filename, mode)
244 char *filename, *mode; 254 char *filename, *mode;
245{ 255{
@@ -486,7 +496,7 @@ read_lisp_symbol (infile, buffer)
486 skip_white (infile); 496 skip_white (infile);
487} 497}
488 498
489 499int
490scan_lisp_file (filename, mode) 500scan_lisp_file (filename, mode)
491 char *filename, *mode; 501 char *filename, *mode;
492{ 502{
@@ -504,7 +514,6 @@ scan_lisp_file (filename, mode)
504 while (!feof (infile)) 514 while (!feof (infile))
505 { 515 {
506 char buffer [BUFSIZ]; 516 char buffer [BUFSIZ];
507 char *fillp = buffer;
508 char type; 517 char type;
509 518
510 if (c != '\n') 519 if (c != '\n')