/* Generate doc-string file for GNU Emacs from source files.
- Copyright (C) 1985, 1986, 92, 93, 94, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1985, 86, 92, 93, 94, 97, 1999 Free Software Foundation, Inc.
This file is part of GNU Emacs.
#include <unistd.h>
#endif
-#ifdef STDC_HEADERS
-#include <stdlib.h>
-#endif
-
/* Stdio stream for output to the DOC file. */
FILE *outfile;
Looks for
(defun NAME ARGS DOCSTRING ...)
(defmacro NAME ARGS DOCSTRING ...)
+ (defsubst NAME ARGS DOCSTRING ...)
(autoload (quote NAME) FILE DOCSTRING ...)
(defvar NAME VALUE DOCSTRING)
(defconst NAME VALUE DOCSTRING)
continue;
}
/* Skip the line break. */
- while (c == '\n' || c != '\r')
+ while (c == '\n' || c == '\r')
c = getc (infile);
/* Detect a dynamic doc string and save it for the next expression. */
if (c == '#')
read_lisp_symbol (infile, buffer);
if (! strcmp (buffer, "defun")
- || ! strcmp (buffer, "defmacro"))
+ || ! strcmp (buffer, "defmacro")
+ || ! strcmp (buffer, "defsubst"))
{
type = 'F';
read_lisp_symbol (infile, buffer);