X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/a43dbef8899766788fda9e206bf9ac59a4167088..5cb4031d8f4101d80e936a9a13839ea1820db938:/lib-src/sorted-doc.c diff --git a/lib-src/sorted-doc.c b/lib-src/sorted-doc.c index d0c160b8ad..185295a929 100644 --- a/lib-src/sorted-doc.c +++ b/lib-src/sorted-doc.c @@ -1,6 +1,6 @@ /* Give this program DOC-mm.nn.oo as standard input and it outputs to standard output a file of texinfo input containing the doc strings. - + Copyright (C) 1989, 1992, 1994, 1996, 1999, 2000, 2001 Free Software Foundation Inc. @@ -23,7 +23,10 @@ This version sorts the output by function name. */ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #ifndef HAVE_STDLIB_H /* config.h includes stdlib. */ @@ -118,7 +121,7 @@ char *states[] = { "WAITING", "BEG_NAME", "NAME_GET", "BEG_DESC", "DESC_GET" }; - + int main () { @@ -130,7 +133,7 @@ main () DOCSTR *docs; /* chain of allocated DOCSTRS */ char buf[512]; /* line buffer */ - + while (1) /* process one char at a time */ { /* this char from the DOCSTR file */ @@ -178,7 +181,7 @@ main () bp = buf; state = DESC_GET; } - + /* process gets */ if (state == NAME_GET || state == DESC_GET)