diff lib-src/make-docfile.c @ 46394:1dd68094031a

(scan_c_file): Warn about missing `usage' info.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 15 Jul 2002 19:59:53 +0000
parents 6c1d733d1794
children d7669c85c9cb
line wrap: on
line diff
--- a/lib-src/make-docfile.c	Mon Jul 15 16:17:01 2002 +0000
+++ b/lib-src/make-docfile.c	Mon Jul 15 19:59:53 2002 +0000
@@ -722,6 +722,9 @@
 	      fprintf (outfile, "\n\n");
 	      write_c_args (outfile, buf, argbuf, minargs, maxargs);
 	    }
+	  else if (defunflag && maxargs == -1 && !saw_usage)
+	    /* The DOC should provide the usage form.  */
+	    fprintf (stderr, "Missing `usage' for function `%s'.\n", buf);
 	}
     }
  eof: