diff src/doc.c @ 20:859a2309aef8 r19-15b93

Import from CVS: tag r19-15b93
author cvs
date Mon, 13 Aug 2007 08:50:05 +0200
parents 9ee227acff29
children 441bb1e64a06
line wrap: on
line diff
--- a/src/doc.c	Mon Aug 13 08:49:44 2007 +0200
+++ b/src/doc.c	Mon Aug 13 08:50:05 2007 +0200
@@ -286,13 +286,12 @@
   return Fread (string);
 }
 
-DEFUN ("documentation", Fdocumentation, Sdocumentation, 1, 2, 0 /*
+DEFUN ("documentation", Fdocumentation, 1, 2, 0, /*
 Return the documentation string of FUNCTION.
 Unless a non-nil second argument is given, the
 string is passed through `substitute-command-keys'.
-*/ )
-  (function, raw)
-     Lisp_Object function, raw;
+*/
+       (function, raw))
 {
   /* This function can GC */
   Lisp_Object fun;
@@ -384,16 +383,14 @@
   return doc;
 }
 
-DEFUN ("documentation-property", Fdocumentation_property, 
-       Sdocumentation_property, 2, 3, 0 /*
+DEFUN ("documentation-property", Fdocumentation_property, 2, 3, 0, /*
 Return the documentation string that is SYMBOL's PROP property.
 This is like `get', but it can refer to strings stored in the
 `doc-directory/DOC' file; and if the value is a string, it is passed
 through `substitute-command-keys'.  A non-nil third argument avoids this
 translation.
-*/ )
-  (sym, prop, raw)
-     Lisp_Object sym, prop, raw;
+*/
+       (sym, prop, raw))
 {
   /* This function can GC */
   REGISTER Lisp_Object doc;
@@ -432,17 +429,15 @@
 }
 
 
-DEFUN ("Snarf-documentation", Fsnarf_documentation, Ssnarf_documentation,
-  1, 1, 0 /*
+DEFUN ("Snarf-documentation", Fsnarf_documentation, 1, 1, 0, /*
 Used during Emacs initialization, before dumping runnable Emacs,
 to find pointers to doc strings stored in `.../lib-src/DOC' and
 record them in function definitions.
 One arg, FILENAME, a string which does not include a directory.
 The file is written to `../lib-src', and later found in `exec-directory'
 when doc strings are referred to in the dumped Emacs.
-*/ )
-  (filename)
-     Lisp_Object filename;
+*/
+       (filename))
 {
   /* !!#### This function has not been Mule-ized */
   int fd;
@@ -736,12 +731,11 @@
     }
 }
 
-DEFUN ("Verify-documentation", Fverify_documentation, Sverify_documentation,
-       0, 0, 0 /*
+DEFUN ("Verify-documentation", Fverify_documentation, 0, 0, 0, /*
 Used to make sure everything went well with Snarf-documentation.
 Writes to stderr if not.
-*/ )
-     ()
+*/
+       ())
 {
   Lisp_Object closure = Fcons (Qnil, Qnil);
   struct gcpro gcpro1;
@@ -756,8 +750,7 @@
 }
 
 
-DEFUN ("substitute-command-keys", Fsubstitute_command_keys,
-  Ssubstitute_command_keys, 1, 1, 0 /*
+DEFUN ("substitute-command-keys", Fsubstitute_command_keys, 1, 1, 0, /*
 Substitute key descriptions for command names in STRING.
 Return a new string which is STRING with substrings of the form \\=\\[COMMAND]
 replaced by either:  a keystroke sequence that will invoke COMMAND,
@@ -768,9 +761,8 @@
 as the keymap for future \\=\\[COMMAND] substrings.
 \\=\\= quotes the following character and is discarded;
 thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ into the output.
-*/ )
-  (str)
-     Lisp_Object str;
+*/
+       (str))
 {
   /* This function can GC */
   Bufbyte *buf;
@@ -1001,11 +993,11 @@
 void
 syms_of_doc (void)
 {
-  defsubr (&Sdocumentation);
-  defsubr (&Sdocumentation_property);
-  defsubr (&Ssnarf_documentation);
-  defsubr (&Sverify_documentation);
-  defsubr (&Ssubstitute_command_keys);
+  DEFSUBR (Fdocumentation);
+  DEFSUBR (Fdocumentation_property);
+  DEFSUBR (Fsnarf_documentation);
+  DEFSUBR (Fverify_documentation);
+  DEFSUBR (Fsubstitute_command_keys);
 }
 
 void