Mercurial > emacs
comparison lib-src/make-docfile.c @ 53269:957afba80853
(main): For return code, no longer special-case VMS.
Instead, use `EXIT_SUCCESS' and `EXIT_FAILURE' from stdlib.h.
author | Thien-Thi Nguyen <ttn@gnuvola.org> |
---|---|
date | Wed, 24 Dec 2003 06:49:23 +0000 |
parents | 695cf19ef79e |
children | effb507b5258 |
comparison
equal
deleted
inserted
replaced
53268:0e78d4abf53a | 53269:957afba80853 |
---|---|
21 | 21 |
22 /* The arguments given to this program are all the C and Lisp source files | 22 /* The arguments given to this program are all the C and Lisp source files |
23 of GNU Emacs. .elc and .el and .c files are allowed. | 23 of GNU Emacs. .elc and .el and .c files are allowed. |
24 A .o file can also be specified; the .c file it was made from is used. | 24 A .o file can also be specified; the .c file it was made from is used. |
25 This helps the makefile pass the correct list of files. | 25 This helps the makefile pass the correct list of files. |
26 Option -d DIR means change to DIR before looking for files. | |
26 | 27 |
27 The results, which go to standard output or to a file | 28 The results, which go to standard output or to a file |
28 specified with -a or -o (-a to append, -o to start from nothing), | 29 specified with -a or -o (-a to append, -o to start from nothing), |
29 are entries containing function or variable names and their documentation. | 30 are entries containing function or variable names and their documentation. |
30 Each entry starts with a ^_ character. | 31 Each entry starts with a ^_ character. |
172 if (! strcmp (argv[i], argv[j])) | 173 if (! strcmp (argv[i], argv[j])) |
173 break; | 174 break; |
174 if (j == i) | 175 if (j == i) |
175 err_count += scan_file (argv[i]); | 176 err_count += scan_file (argv[i]); |
176 } | 177 } |
177 #ifndef VMS | 178 return (err_count > 0 ? EXIT_FAILURE : EXIT_SUCCESS); |
178 exit (err_count > 0); | |
179 #endif /* VMS */ | |
180 return err_count > 0; | |
181 } | 179 } |
182 | 180 |
183 /* Read file FILENAME and output its doc strings to outfile. */ | 181 /* Read file FILENAME and output its doc strings to outfile. */ |
184 /* Return 1 if file is not found, 0 if it is found. */ | 182 /* Return 1 if file is not found, 0 if it is found. */ |
185 | 183 |