diff options
| author | Paul Eggert | 2011-02-21 11:37:54 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-21 11:37:54 -0800 |
| commit | 4df52042a5a9489d8974d7c1d0c7b862a7ca1703 (patch) | |
| tree | ac39ded48af0e38cb17c32c14ffacf225aadb04f /lib-src | |
| parent | 3870e8f9b973b1b9dd220c05345de7ed9dd7ff20 (diff) | |
| download | emacs-4df52042a5a9489d8974d7c1d0c7b862a7ca1703.tar.gz emacs-4df52042a5a9489d8974d7c1d0c7b862a7ca1703.zip | |
* make-docfile.c (input_buffer): Rename variables to avoid shadowing.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 2 | ||||
| -rw-r--r-- | lib-src/make-docfile.c | 17 |
2 files changed, 11 insertions, 8 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 042982aecbf..d865754cb40 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2011-02-21 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-02-21 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * make-docfile.c (input_buffer): Rename variables to avoid shadowing. | ||
| 4 | |||
| 3 | * movemail.c (main, pop_retr): Rename locals to avoid shadowing. | 5 | * movemail.c (main, pop_retr): Rename locals to avoid shadowing. |
| 4 | (progname, sfi, sfo, ibuffer, obuffer): Remove unused vars. | 6 | (progname, sfi, sfo, ibuffer, obuffer): Remove unused vars. |
| 5 | (DIRECTORY_SEP, IS_DIRECTORY_SEP, DONE, IS_FROM_LINE): | 7 | (DIRECTORY_SEP, IS_DIRECTORY_SEP, DONE, IS_FROM_LINE): |
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 956e85f163a..f0aa222986a 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c | |||
| @@ -255,7 +255,7 @@ start_globals (void) | |||
| 255 | fprintf (outfile, "struct emacs_globals {\n"); | 255 | fprintf (outfile, "struct emacs_globals {\n"); |
| 256 | } | 256 | } |
| 257 | 257 | ||
| 258 | static char buf[128]; | 258 | static char input_buffer[128]; |
| 259 | 259 | ||
| 260 | /* Some state during the execution of `read_c_string_or_comment'. */ | 260 | /* Some state during the execution of `read_c_string_or_comment'. */ |
| 261 | struct rcsoc_state | 261 | struct rcsoc_state |
| @@ -395,7 +395,7 @@ read_c_string_or_comment (FILE *infile, int printflag, int comment, int *saw_usa | |||
| 395 | struct rcsoc_state state; | 395 | struct rcsoc_state state; |
| 396 | 396 | ||
| 397 | state.in_file = infile; | 397 | state.in_file = infile; |
| 398 | state.buf_ptr = (printflag < 0 ? buf : 0); | 398 | state.buf_ptr = (printflag < 0 ? input_buffer : 0); |
| 399 | state.out_file = (printflag > 0 ? outfile : 0); | 399 | state.out_file = (printflag > 0 ? outfile : 0); |
| 400 | state.pending_spaces = 0; | 400 | state.pending_spaces = 0; |
| 401 | state.pending_newlines = 0; | 401 | state.pending_newlines = 0; |
| @@ -795,15 +795,15 @@ scan_c_file (char *filename, const char *mode) | |||
| 795 | /* Read in the identifier. */ | 795 | /* Read in the identifier. */ |
| 796 | do | 796 | do |
| 797 | { | 797 | { |
| 798 | buf[i++] = c; | 798 | input_buffer[i++] = c; |
| 799 | c = getc (infile); | 799 | c = getc (infile); |
| 800 | } | 800 | } |
| 801 | while (! (c == ',' || c == ' ' || c == '\t' || | 801 | while (! (c == ',' || c == ' ' || c == '\t' || |
| 802 | c == '\n' || c == '\r')); | 802 | c == '\n' || c == '\r')); |
| 803 | buf[i] = '\0'; | 803 | input_buffer[i] = '\0'; |
| 804 | 804 | ||
| 805 | name = xmalloc (i + 1); | 805 | name = xmalloc (i + 1); |
| 806 | memcpy (name, buf, i + 1); | 806 | memcpy (name, input_buffer, i + 1); |
| 807 | add_global (type, name); | 807 | add_global (type, name); |
| 808 | continue; | 808 | continue; |
| 809 | } | 809 | } |
| @@ -888,7 +888,7 @@ scan_c_file (char *filename, const char *mode) | |||
| 888 | 888 | ||
| 889 | putc (037, outfile); | 889 | putc (037, outfile); |
| 890 | putc (defvarflag ? 'V' : 'F', outfile); | 890 | putc (defvarflag ? 'V' : 'F', outfile); |
| 891 | fprintf (outfile, "%s\n", buf); | 891 | fprintf (outfile, "%s\n", input_buffer); |
| 892 | 892 | ||
| 893 | if (comment) | 893 | if (comment) |
| 894 | getc (infile); /* Skip past `*' */ | 894 | getc (infile); /* Skip past `*' */ |
| @@ -931,11 +931,12 @@ scan_c_file (char *filename, const char *mode) | |||
| 931 | *p = '\0'; | 931 | *p = '\0'; |
| 932 | /* Output them. */ | 932 | /* Output them. */ |
| 933 | fprintf (outfile, "\n\n"); | 933 | fprintf (outfile, "\n\n"); |
| 934 | write_c_args (outfile, buf, argbuf, minargs, maxargs); | 934 | write_c_args (outfile, input_buffer, argbuf, minargs, maxargs); |
| 935 | } | 935 | } |
| 936 | else if (defunflag && maxargs == -1 && !saw_usage) | 936 | else if (defunflag && maxargs == -1 && !saw_usage) |
| 937 | /* The DOC should provide the usage form. */ | 937 | /* The DOC should provide the usage form. */ |
| 938 | fprintf (stderr, "Missing `usage' for function `%s'.\n", buf); | 938 | fprintf (stderr, "Missing `usage' for function `%s'.\n", |
| 939 | input_buffer); | ||
| 939 | } | 940 | } |
| 940 | } | 941 | } |
| 941 | eof: | 942 | eof: |