changeset 168:e0ec73426aea

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Sat, 26 Jan 1991 03:29:36 +0000
parents 63d9c60bad2d
children 06f1b7eaba47
files lib-src/make-docfile.c
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/make-docfile.c	Fri Jan 25 22:33:45 1991 +0000
+++ b/lib-src/make-docfile.c	Sat Jan 26 03:29:36 1991 +0000
@@ -147,7 +147,7 @@
   register char *p = buf;
   int space = 0;
 
-  fprintf (out, "arguments:");
+  fprintf (out, "arguments: ");
 
   while (*p)
     {
@@ -300,8 +300,13 @@
 	  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 != ')')