aboutsummaryrefslogtreecommitdiffstats
path: root/src/doc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc.c')
-rw-r--r--src/doc.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/doc.c b/src/doc.c
index b0820d15933..d9d79ee4072 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -71,8 +71,7 @@ Lisp_Object Fsnarf_documentation (Lisp_Object);
71 If UNREADFLAG is 1, we unread a byte. */ 71 If UNREADFLAG is 1, we unread a byte. */
72 72
73int 73int
74read_bytecode_char (unreadflag) 74read_bytecode_char (int unreadflag)
75 int unreadflag;
76{ 75{
77 if (unreadflag) 76 if (unreadflag)
78 { 77 {
@@ -102,9 +101,7 @@ read_bytecode_char (unreadflag)
102 and return a cons cell. */ 101 and return a cons cell. */
103 102
104Lisp_Object 103Lisp_Object
105get_doc_string (filepos, unibyte, definition) 104get_doc_string (Lisp_Object filepos, int unibyte, int definition)
106 Lisp_Object filepos;
107 int unibyte, definition;
108{ 105{
109 char *from, *to; 106 char *from, *to;
110 register int fd; 107 register int fd;
@@ -311,15 +308,13 @@ get_doc_string (filepos, unibyte, definition)
311 of a compiled function from the .elc file. */ 308 of a compiled function from the .elc file. */
312 309
313Lisp_Object 310Lisp_Object
314read_doc_string (filepos) 311read_doc_string (Lisp_Object filepos)
315 Lisp_Object filepos;
316{ 312{
317 return get_doc_string (filepos, 0, 1); 313 return get_doc_string (filepos, 0, 1);
318} 314}
319 315
320static int 316static int
321reread_doc_file (file) 317reread_doc_file (Lisp_Object file)
322 Lisp_Object file;
323{ 318{
324#if 0 319#if 0
325 Lisp_Object reply, prompt[3]; 320 Lisp_Object reply, prompt[3];
@@ -515,10 +510,10 @@ aren't strings. */)
515/* Scanning the DOC files and placing docstring offsets into functions. */ 510/* Scanning the DOC files and placing docstring offsets into functions. */
516 511
517static void 512static void
518store_function_docstring (fun, offset) 513store_function_docstring (Lisp_Object fun, EMACS_INT offset)
519 Lisp_Object fun; 514
520 /* Use EMACS_INT because we get this from pointer subtraction. */ 515 /* Use EMACS_INT because we get this from pointer subtraction. */
521 EMACS_INT offset; 516
522{ 517{
523 fun = indirect_function (fun); 518 fun = indirect_function (fun);
524 519
@@ -951,7 +946,7 @@ a new string, without any text properties, is returned. */)
951} 946}
952 947
953void 948void
954syms_of_doc () 949syms_of_doc (void)
955{ 950{
956 Qfunction_documentation = intern_c_string ("function-documentation"); 951 Qfunction_documentation = intern_c_string ("function-documentation");
957 staticpro (&Qfunction_documentation); 952 staticpro (&Qfunction_documentation);