aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/make-docfile.c
diff options
context:
space:
mode:
authorStefan Monnier2010-09-13 16:40:48 +0200
committerStefan Monnier2010-09-13 16:40:48 +0200
commitcc390e46c7ba95b76ea133d98fd386214cd01709 (patch)
treeead4400d22bd07214b782ff7e46e79d473fac419 /lib-src/make-docfile.c
parentc566235d981eba73c88bbff00b6a1d88360b6e9f (diff)
parentc5fe4acb5fb456d6e8e147d8bc7981ce56c5c03d (diff)
downloademacs-cc390e46c7ba95b76ea133d98fd386214cd01709.tar.gz
emacs-cc390e46c7ba95b76ea133d98fd386214cd01709.zip
Merge from trunk
Diffstat (limited to 'lib-src/make-docfile.c')
-rw-r--r--lib-src/make-docfile.c20
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
70int scan_file (char *filename); 70int scan_file (char *filename);
71int scan_lisp_file (char *filename, char *mode); 71int scan_lisp_file (const char *filename, const char *mode);
72int scan_c_file (char *filename, char *mode); 72int scan_c_file (char *filename, const char *mode);
73void fatal (char *s1, char *s2) NO_RETURN; 73void 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 */
94void 94void
95error (char *s1, char *s2) 95error (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 */
105void 105void
106fatal (char *s1, char *s2) 106fatal (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
523int 523int
524scan_c_file (char *filename, char *mode) 524scan_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
836int 836int
837scan_lisp_file (char *filename, char *mode) 837scan_lisp_file (const char *filename, const char *mode)
838{ 838{
839 FILE *infile; 839 FILE *infile;
840 register int c; 840 register int c;