diff options
author | Jim Blandy <jimb@redhat.com> | 1991-01-26 03:29:36 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1991-01-26 03:29:36 +0000 |
commit | 772e20092207b1a013239ad4ab61efffdafbefb5 (patch) | |
tree | 4f9ce3583a845e80b8f552cb93a41083283eeeb9 /lib-src | |
parent | c11e5bbd2c17b7eb77eeb35434503cfa618bf755 (diff) | |
download | emacs-772e20092207b1a013239ad4ab61efffdafbefb5.tar.gz |
*** empty log message ***
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/make-docfile.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 1ccb84dc290..1af038027e0 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c @@ -147,7 +147,7 @@ write_c_args (out, buf, minargs, maxargs) register char *p = buf; int space = 0; - fprintf (out, "arguments:"); + fprintf (out, "arguments: "); while (*p) { @@ -300,8 +300,13 @@ scan_c_file (filename) putc (037, outfile); putc (defvarflag ? 'V' : 'F', outfile); fprintf (outfile, "%s\n", buf); - read_c_string (infile, 1); - if (defunflag) + c = read_c_string (infile, 1); + + /* If this is a defun, find the arguments and print them. If + this function takes MANY or UNEVALLED args, then the C source + won't give the names of the arguments, so we shouldn't bother + trying to find them. */ + if (defunflag && maxargs != -1) { char argbuf[1024], *p = argbuf; while (c != ')') |