aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/make-docfile.c
diff options
context:
space:
mode:
authorJim Blandy1991-01-26 03:29:36 +0000
committerJim Blandy1991-01-26 03:29:36 +0000
commit772e20092207b1a013239ad4ab61efffdafbefb5 (patch)
tree4f9ce3583a845e80b8f552cb93a41083283eeeb9 /lib-src/make-docfile.c
parentc11e5bbd2c17b7eb77eeb35434503cfa618bf755 (diff)
downloademacs-772e20092207b1a013239ad4ab61efffdafbefb5.tar.gz
emacs-772e20092207b1a013239ad4ab61efffdafbefb5.zip
*** empty log message ***
Diffstat (limited to 'lib-src/make-docfile.c')
-rw-r--r--lib-src/make-docfile.c11
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)
147 register char *p = buf; 147 register char *p = buf;
148 int space = 0; 148 int space = 0;
149 149
150 fprintf (out, "arguments:"); 150 fprintf (out, "arguments: ");
151 151
152 while (*p) 152 while (*p)
153 { 153 {
@@ -300,8 +300,13 @@ scan_c_file (filename)
300 putc (037, outfile); 300 putc (037, outfile);
301 putc (defvarflag ? 'V' : 'F', outfile); 301 putc (defvarflag ? 'V' : 'F', outfile);
302 fprintf (outfile, "%s\n", buf); 302 fprintf (outfile, "%s\n", buf);
303 read_c_string (infile, 1); 303 c = read_c_string (infile, 1);
304 if (defunflag) 304
305 /* If this is a defun, find the arguments and print them. If
306 this function takes MANY or UNEVALLED args, then the C source
307 won't give the names of the arguments, so we shouldn't bother
308 trying to find them. */
309 if (defunflag && maxargs != -1)
305 { 310 {
306 char argbuf[1024], *p = argbuf; 311 char argbuf[1024], *p = argbuf;
307 while (c != ')') 312 while (c != ')')