aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/make-docfile.c
diff options
context:
space:
mode:
authorDan Nicolaescu2010-07-02 17:50:23 -0700
committerDan Nicolaescu2010-07-02 17:50:23 -0700
commit873fbd0b84997863af25e3ddae23b6c078a3e6f5 (patch)
treec128a27ee29666a3d1acb584bc5eab96a047e067 /lib-src/make-docfile.c
parenta6ed0e289873ac982d7a9b0215d17a4626375b43 (diff)
downloademacs-873fbd0b84997863af25e3ddae23b6c078a3e6f5.tar.gz
emacs-873fbd0b84997863af25e3ddae23b6c078a3e6f5.zip
Convert function definitions to standard C.
* lib-src/update-game-score.c: Convert function definitions to standard C. * lib-src/sorted-doc.c: * lib-src/profile.c: * lib-src/pop.c: * lib-src/movemail.c: * lib-src/make-docfile.c: * lib-src/hexl.c: * lib-src/fakemail.c: * lib-src/etags.c: * lib-src/ebrowse.c: * lib-src/digest-doc.c: * lib-src/b2m.c: Likewise.
Diffstat (limited to 'lib-src/make-docfile.c')
-rw-r--r--lib-src/make-docfile.c51
1 files changed, 14 insertions, 37 deletions
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c
index 973c7e31f70..b3b6b190e48 100644
--- a/lib-src/make-docfile.c
+++ b/lib-src/make-docfile.c
@@ -91,8 +91,7 @@ char *progname;
91 91
92/* VARARGS1 */ 92/* VARARGS1 */
93void 93void
94error (s1, s2) 94error (char *s1, char *s2)
95 char *s1, *s2;
96{ 95{
97 fprintf (stderr, "%s: ", progname); 96 fprintf (stderr, "%s: ", progname);
98 fprintf (stderr, s1, s2); 97 fprintf (stderr, s1, s2);
@@ -103,8 +102,7 @@ error (s1, s2)
103 102
104/* VARARGS1 */ 103/* VARARGS1 */
105void 104void
106fatal (s1, s2) 105fatal (char *s1, char *s2)
107 char *s1, *s2;
108{ 106{
109 error (s1, s2); 107 error (s1, s2);
110 exit (EXIT_FAILURE); 108 exit (EXIT_FAILURE);
@@ -113,8 +111,7 @@ fatal (s1, s2)
113/* Like malloc but get fatal error if memory is exhausted. */ 111/* Like malloc but get fatal error if memory is exhausted. */
114 112
115void * 113void *
116xmalloc (size) 114xmalloc (unsigned int size)
117 unsigned int size;
118{ 115{
119 void *result = (void *) malloc (size); 116 void *result = (void *) malloc (size);
120 if (result == NULL) 117 if (result == NULL)
@@ -123,9 +120,7 @@ xmalloc (size)
123} 120}
124 121
125int 122int
126main (argc, argv) 123main (int argc, char **argv)
127 int argc;
128 char **argv;
129{ 124{
130 int i; 125 int i;
131 int err_count = 0; 126 int err_count = 0;
@@ -187,8 +182,7 @@ main (argc, argv)
187 182
188/* Add a source file name boundary marker in the output file. */ 183/* Add a source file name boundary marker in the output file. */
189void 184void
190put_filename (filename) 185put_filename (char *filename)
191 char *filename;
192{ 186{
193 char *tmp; 187 char *tmp;
194 188
@@ -207,8 +201,7 @@ put_filename (filename)
207/* Return 1 if file is not found, 0 if it is found. */ 201/* Return 1 if file is not found, 0 if it is found. */
208 202
209int 203int
210scan_file (filename) 204scan_file (char *filename)
211 char *filename;
212{ 205{
213 int len = strlen (filename); 206 int len = strlen (filename);
214 207
@@ -251,9 +244,7 @@ struct rcsoc_state
251 spaces are output first. */ 244 spaces are output first. */
252 245
253static INLINE void 246static INLINE void
254put_char (ch, state) 247put_char (int ch, struct rcsoc_state *state)
255 int ch;
256 struct rcsoc_state *state;
257{ 248{
258 int out_ch; 249 int out_ch;
259 do 250 do
@@ -286,9 +277,7 @@ put_char (ch, state)
286 keyword, but were in fact not. */ 277 keyword, but were in fact not. */
287 278
288static void 279static void
289scan_keyword_or_put_char (ch, state) 280scan_keyword_or_put_char (int ch, struct rcsoc_state *state)
290 int ch;
291 struct rcsoc_state *state;
292{ 281{
293 if (state->keyword 282 if (state->keyword
294 && *state->cur_keyword_ptr == ch 283 && *state->cur_keyword_ptr == ch
@@ -359,11 +348,7 @@ scan_keyword_or_put_char (ch, state)
359 true if any were encountered. */ 348 true if any were encountered. */
360 349
361int 350int
362read_c_string_or_comment (infile, printflag, comment, saw_usage) 351read_c_string_or_comment (FILE *infile, int printflag, int comment, int *saw_usage)
363 FILE *infile;
364 int printflag;
365 int *saw_usage;
366 int comment;
367{ 352{
368 register int c; 353 register int c;
369 struct rcsoc_state state; 354 struct rcsoc_state state;
@@ -451,10 +436,7 @@ read_c_string_or_comment (infile, printflag, comment, saw_usage)
451 MINARGS and MAXARGS are the minimum and maximum number of arguments. */ 436 MINARGS and MAXARGS are the minimum and maximum number of arguments. */
452 437
453void 438void
454write_c_args (out, func, buf, minargs, maxargs) 439write_c_args (FILE *out, char *func, char *buf, int minargs, int maxargs)
455 FILE *out;
456 char *func, *buf;
457 int minargs, maxargs;
458{ 440{
459 register char *p; 441 register char *p;
460 int in_ident = 0; 442 int in_ident = 0;
@@ -538,8 +520,7 @@ write_c_args (out, func, buf, minargs, maxargs)
538 Accepts any word starting DEF... so it finds DEFSIMPLE and DEFPRED. */ 520 Accepts any word starting DEF... so it finds DEFSIMPLE and DEFPRED. */
539 521
540int 522int
541scan_c_file (filename, mode) 523scan_c_file (char *filename, char *mode)
542 char *filename, *mode;
543{ 524{
544 FILE *infile; 525 FILE *infile;
545 register int c; 526 register int c;
@@ -815,8 +796,7 @@ scan_c_file (filename, mode)
815 */ 796 */
816 797
817void 798void
818skip_white (infile) 799skip_white (FILE *infile)
819 FILE *infile;
820{ 800{
821 char c = ' '; 801 char c = ' ';
822 while (c == ' ' || c == '\t' || c == '\n' || c == '\r') 802 while (c == ' ' || c == '\t' || c == '\n' || c == '\r')
@@ -825,9 +805,7 @@ skip_white (infile)
825} 805}
826 806
827void 807void
828read_lisp_symbol (infile, buffer) 808read_lisp_symbol (FILE *infile, char *buffer)
829 FILE *infile;
830 char *buffer;
831{ 809{
832 char c; 810 char c;
833 char *fillp = buffer; 811 char *fillp = buffer;
@@ -855,8 +833,7 @@ read_lisp_symbol (infile, buffer)
855} 833}
856 834
857int 835int
858scan_lisp_file (filename, mode) 836scan_lisp_file (char *filename, char *mode)
859 char *filename, *mode;
860{ 837{
861 FILE *infile; 838 FILE *infile;
862 register int c; 839 register int c;