Mercurial > emacs
view lib-src/digest-doc.c @ 3431:bb9b906aa772
(MOTOROLA_DELTA): Defined.
(HAVE_SYSVIPC, BAT68K, BAT_ALLOCA): Deleted--obsolete.
(STACK_DIRECTION, HAVE_X_WINDOWS): Deleted--configure knows.
(C_SWITCH_MACHINE): Set to -ga if using the Green Hills compiler.
(LIB_STANDARD, LIB_MATH): Defined to the 68881 versions.
(LIBS_SYSTEM): -lbsd brings sigblock and sigsetmask.
(sigsetmask): Undefined--it is in -lbsd.
(LDAV_SYMBOL): Undefined--we have no such thing.
(KERNEL_FILE): Defined to "/sysV68".
(BSTRING, HAVE_SELECT, HAVE_UNISTD_H, HAVE_TIMEVAL): Defined.
(SIGNALS_VIA_CHARACTERS): Defined.
(memmove): Defined as memcpy--we have no memmove.
(SIGIO, INTERRUPT_INPUT): Undefined--not yet tested.
(SHORT_FILE_NAMES, CLASH_DETECTION): Defined.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 02 Jun 1993 18:37:28 +0000 |
parents | bba832d91c66 |
children | dd3b83e4ceb0 |
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> 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; }