diff options
| author | Stefan Monnier | 2002-08-19 21:47:38 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-08-19 21:47:38 +0000 |
| commit | 56cf51620561b430135896cb65e0523bed5870a8 (patch) | |
| tree | 9c3bf4142d9cc192b3031ad893b29d0d52369f79 /lib-src | |
| parent | f63f0981b6bfb035621a108f6bcadccce1e76613 (diff) | |
| download | emacs-56cf51620561b430135896cb65e0523bed5870a8.tar.gz emacs-56cf51620561b430135896cb65e0523bed5870a8.zip | |
(scan_keyword_or_put_char, write_c_args): Use `fn'
for the function name in the usage info.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/make-docfile.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 124572cb899..a4828d53361 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c | |||
| @@ -290,7 +290,17 @@ scan_keyword_or_put_char (ch, state) | |||
| 290 | ch = getc (state->in_file); | 290 | ch = getc (state->in_file); |
| 291 | while (ch == ' ' || ch == '\n'); | 291 | while (ch == ' ' || ch == '\n'); |
| 292 | 292 | ||
| 293 | /* Put back the non-whitespace character. */ | 293 | /* Output the open-paren we just read. */ |
| 294 | put_char (ch, state); | ||
| 295 | |||
| 296 | /* Skip the function name and replace it with `fn'. */ | ||
| 297 | do | ||
| 298 | ch = getc (state->in_file); | ||
| 299 | while (ch != ' ' && ch != ')'); | ||
| 300 | put_char ('f', state); | ||
| 301 | put_char ('n', state); | ||
| 302 | |||
| 303 | /* Put back the last character. */ | ||
| 294 | ungetc (ch, state->in_file); | 304 | ungetc (ch, state->in_file); |
| 295 | } | 305 | } |
| 296 | } | 306 | } |
| @@ -425,7 +435,7 @@ write_c_args (out, func, buf, minargs, maxargs) | |||
| 425 | int just_spaced = 0; | 435 | int just_spaced = 0; |
| 426 | int need_space = 1; | 436 | int need_space = 1; |
| 427 | 437 | ||
| 428 | fprintf (out, "(%s", func); | 438 | fprintf (out, "(fn"); |
| 429 | 439 | ||
| 430 | if (*buf == '(') | 440 | if (*buf == '(') |
| 431 | ++buf; | 441 | ++buf; |