Mercurial > emacs
view lib-src/digest-doc.c @ 27003:f6f431fc901b
(change-log-version-number-regexp-list)
(change-log-version-info-enabled): Change :version to 21.1.
(toplevel): Require CL when compiling.
(change-log-version-number-regexp-list): Added tag
:version 20.6
(change-log-version-info-enabled): Added tag :version 20.6
More general version number search with
user-configurable regexp list.
(change-log-version-number-regexp-list): New user variable.
(change-log-find-version): Rewritten. Use user-configurable
version numbering regexp list
change-log-version-number-regexp-list.
(change-log-find-version): Renamed to
change-log-version-number-search
(add-log-file-name-function): New.
(change-log-search-vc-number): Added END paramaeter. Added doc
string to function.
(change-log-version-rcs): Renamed. Was
change-log-search-vc-number.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 27 Dec 1999 12:24:56 +0000 |
parents | dd3b83e4ceb0 |
children | c8fb06423da0 |
line wrap: on
line source
/* Give this program DOCSTR.mm.nn as standard input and it outputs to standard output a file of nroff output containing the doc strings. See also sorted-doc.c, which produces similar output but in texinfo format and sorted by function/variable name. */ #include <stdio.h> int main () { register int ch; register int notfirst = 0; printf (".TL\n"); printf ("Command Summary for GNU Emacs\n"); printf (".AU\nRichard M. Stallman\n"); while ((ch = getchar ()) != EOF) { if (ch == '\037') { if (notfirst) printf ("\n.DE"); else notfirst = 1; printf ("\n.SH\n"); ch = getchar (); printf (ch == 'F' ? "Function " : "Variable "); while ((ch = getchar ()) != '\n') /* Changed this line */ { if (ch != EOF) putchar (ch); else { ungetc (ch, stdin); break; } } printf ("\n.DS L\n"); } else putchar (ch); } return 0; }