aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib-src/ChangeLog4
-rw-r--r--lib-src/make-docfile.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 63495b841d..6eb5966c01 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,7 @@
+2002-07-15 Stefan Monnier <[email protected]>
+
+ * make-docfile.c (scan_c_file): Warn about missing `usage' info.
+
2002-07-05 Jonathan Kamens <[email protected]>
* 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 99da7b8518..124572cb89 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: