From: Stefan Monnier Date: Mon, 15 Jul 2002 20:00:03 +0000 (+0000) Subject: (scan_c_file): Warn about missing `usage' info. X-Git-Tag: ttn-vms-21-2-B4~14117 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1e04216025b16253599680a9a6bed239a1844cef;p=emacs.git (scan_c_file): Warn about missing `usage' info. --- diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 63495b841d6..6eb5966c01b 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,7 @@ +2002-07-15 Stefan Monnier + + * make-docfile.c (scan_c_file): Warn about missing `usage' info. + 2002-07-05 Jonathan Kamens * b2m.pl: Obey the rmail file and use the unpruned header diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 99da7b85186..124572cb899 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c @@ -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: