]> git.eshelyaron.com Git - emacs.git/commitdiff
(scan_c_file): Warn about missing `usage' info.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 15 Jul 2002 20:00:03 +0000 (20:00 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 15 Jul 2002 20:00:03 +0000 (20:00 +0000)
lib-src/ChangeLog
lib-src/make-docfile.c

index 63495b841d655abe999b638dba7920a5d83c4f40..6eb5966c01b66f61ea035874b04cf02b33706436 100644 (file)
@@ -1,3 +1,7 @@
+2002-07-15  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * make-docfile.c (scan_c_file): Warn about missing `usage' info.
+
 2002-07-05  Jonathan Kamens <jik@kamens.brookline.ma.us>
 
        * b2m.pl: Obey the rmail file and use the unpruned header
index 99da7b851864114e8f48cae92ad7c118400533f7..124572cb89938a5530346525c24eef11229b22ac 100644 (file)
@@ -722,6 +722,9 @@ scan_c_file (filename, mode)
              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: