diff options
| author | Stefan Monnier | 2010-09-13 16:40:48 +0200 |
|---|---|---|
| committer | Stefan Monnier | 2010-09-13 16:40:48 +0200 |
| commit | cc390e46c7ba95b76ea133d98fd386214cd01709 (patch) | |
| tree | ead4400d22bd07214b782ff7e46e79d473fac419 /lib-src/make-docfile.c | |
| parent | c566235d981eba73c88bbff00b6a1d88360b6e9f (diff) | |
| parent | c5fe4acb5fb456d6e8e147d8bc7981ce56c5c03d (diff) | |
| download | emacs-cc390e46c7ba95b76ea133d98fd386214cd01709.tar.gz emacs-cc390e46c7ba95b76ea133d98fd386214cd01709.zip | |
Merge from trunk
Diffstat (limited to 'lib-src/make-docfile.c')
| -rw-r--r-- | lib-src/make-docfile.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 7fe63bed506..4824731672b 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c | |||
| @@ -68,9 +68,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 68 | #endif | 68 | #endif |
| 69 | 69 | ||
| 70 | int scan_file (char *filename); | 70 | int scan_file (char *filename); |
| 71 | int scan_lisp_file (char *filename, char *mode); | 71 | int scan_lisp_file (const char *filename, const char *mode); |
| 72 | int scan_c_file (char *filename, char *mode); | 72 | int scan_c_file (char *filename, const char *mode); |
| 73 | void fatal (char *s1, char *s2) NO_RETURN; | 73 | void fatal (const char *s1, const char *s2) NO_RETURN; |
| 74 | 74 | ||
| 75 | #ifdef MSDOS | 75 | #ifdef MSDOS |
| 76 | /* s/msdos.h defines this as sys_chdir, but we're not linking with the | 76 | /* s/msdos.h defines this as sys_chdir, but we're not linking with the |
| @@ -92,7 +92,7 @@ char *progname; | |||
| 92 | 92 | ||
| 93 | /* VARARGS1 */ | 93 | /* VARARGS1 */ |
| 94 | void | 94 | void |
| 95 | error (char *s1, char *s2) | 95 | error (const char *s1, const char *s2) |
| 96 | { | 96 | { |
| 97 | fprintf (stderr, "%s: ", progname); | 97 | fprintf (stderr, "%s: ", progname); |
| 98 | fprintf (stderr, s1, s2); | 98 | fprintf (stderr, s1, s2); |
| @@ -103,7 +103,7 @@ error (char *s1, char *s2) | |||
| 103 | 103 | ||
| 104 | /* VARARGS1 */ | 104 | /* VARARGS1 */ |
| 105 | void | 105 | void |
| 106 | fatal (char *s1, char *s2) | 106 | fatal (const char *s1, const char *s2) |
| 107 | { | 107 | { |
| 108 | error (s1, s2); | 108 | error (s1, s2); |
| 109 | exit (EXIT_FAILURE); | 109 | exit (EXIT_FAILURE); |
| @@ -233,10 +233,10 @@ struct rcsoc_state | |||
| 233 | 233 | ||
| 234 | /* A keyword we look for at the beginning of lines. If found, it is | 234 | /* A keyword we look for at the beginning of lines. If found, it is |
| 235 | not copied, and SAW_KEYWORD is set to true. */ | 235 | not copied, and SAW_KEYWORD is set to true. */ |
| 236 | char *keyword; | 236 | const char *keyword; |
| 237 | /* The current point we've reached in an occurrence of KEYWORD in | 237 | /* The current point we've reached in an occurrence of KEYWORD in |
| 238 | the input stream. */ | 238 | the input stream. */ |
| 239 | char *cur_keyword_ptr; | 239 | const char *cur_keyword_ptr; |
| 240 | /* Set to true if we saw an occurrence of KEYWORD. */ | 240 | /* Set to true if we saw an occurrence of KEYWORD. */ |
| 241 | int saw_keyword; | 241 | int saw_keyword; |
| 242 | }; | 242 | }; |
| @@ -326,7 +326,7 @@ scan_keyword_or_put_char (int ch, struct rcsoc_state *state) | |||
| 326 | keyword, but it was a false alarm. Output the | 326 | keyword, but it was a false alarm. Output the |
| 327 | part we scanned. */ | 327 | part we scanned. */ |
| 328 | { | 328 | { |
| 329 | char *p; | 329 | const char *p; |
| 330 | 330 | ||
| 331 | for (p = state->keyword; p < state->cur_keyword_ptr; p++) | 331 | for (p = state->keyword; p < state->cur_keyword_ptr; p++) |
| 332 | put_char (*p, state); | 332 | put_char (*p, state); |
| @@ -521,7 +521,7 @@ write_c_args (FILE *out, char *func, char *buf, int minargs, int maxargs) | |||
| 521 | Accepts any word starting DEF... so it finds DEFSIMPLE and DEFPRED. */ | 521 | Accepts any word starting DEF... so it finds DEFSIMPLE and DEFPRED. */ |
| 522 | 522 | ||
| 523 | int | 523 | int |
| 524 | scan_c_file (char *filename, char *mode) | 524 | scan_c_file (char *filename, const char *mode) |
| 525 | { | 525 | { |
| 526 | FILE *infile; | 526 | FILE *infile; |
| 527 | register int c; | 527 | register int c; |
| @@ -834,7 +834,7 @@ read_lisp_symbol (FILE *infile, char *buffer) | |||
| 834 | } | 834 | } |
| 835 | 835 | ||
| 836 | int | 836 | int |
| 837 | scan_lisp_file (char *filename, char *mode) | 837 | scan_lisp_file (const char *filename, const char *mode) |
| 838 | { | 838 | { |
| 839 | FILE *infile; | 839 | FILE *infile; |
| 840 | register int c; | 840 | register int c; |