diff options
| author | Gerd Moellmann | 2000-08-28 15:03:29 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-08-28 15:03:29 +0000 |
| commit | a847af86f51bca4cc75993a6c7c3fbee952391a9 (patch) | |
| tree | 6283a1520131661766bf5b9b843361d31d9fda46 /src/doc.c | |
| parent | db2144080c0b08b93ffaa2579fe7b66863688eff (diff) | |
| download | emacs-a847af86f51bca4cc75993a6c7c3fbee952391a9.tar.gz emacs-a847af86f51bca4cc75993a6c7c3fbee952391a9.zip | |
(toplevel) [HAVE_STRING_H]: Include string.h.
(toplevel) [HAVE_STRINGS_H]: Include strings.h.
(index): Remove prototypes which might conflict with non-standard
definitions of index/strchr.
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 17 |
1 files changed, 11 insertions, 6 deletions
| @@ -41,12 +41,18 @@ Boston, MA 02111-1307, USA. */ | |||
| 41 | #include "keyboard.h" | 41 | #include "keyboard.h" |
| 42 | #include "charset.h" | 42 | #include "charset.h" |
| 43 | 43 | ||
| 44 | #ifdef HAVE_STRING_H | ||
| 45 | #include <string.h> | ||
| 46 | #endif | ||
| 47 | |||
| 48 | #ifdef HAVE_STRINGS_H | ||
| 49 | #include <strings.h> | ||
| 50 | #endif | ||
| 51 | |||
| 44 | Lisp_Object Vdoc_file_name, Vhelp_manyarg_func_alist; | 52 | Lisp_Object Vdoc_file_name, Vhelp_manyarg_func_alist; |
| 45 | 53 | ||
| 46 | Lisp_Object Qfunction_documentation; | 54 | Lisp_Object Qfunction_documentation; |
| 47 | 55 | ||
| 48 | extern char *index (); | ||
| 49 | |||
| 50 | extern Lisp_Object Voverriding_local_map; | 56 | extern Lisp_Object Voverriding_local_map; |
| 51 | 57 | ||
| 52 | /* For VMS versions with limited file name syntax, | 58 | /* For VMS versions with limited file name syntax, |
| @@ -228,9 +234,9 @@ get_doc_string (filepos, unibyte, definition) | |||
| 228 | if (!nread) | 234 | if (!nread) |
| 229 | break; | 235 | break; |
| 230 | if (p == get_doc_string_buffer) | 236 | if (p == get_doc_string_buffer) |
| 231 | p1 = index (p + offset, '\037'); | 237 | p1 = (char *) index (p + offset, '\037'); |
| 232 | else | 238 | else |
| 233 | p1 = index (p, '\037'); | 239 | p1 = (char *) index (p, '\037'); |
| 234 | if (p1) | 240 | if (p1) |
| 235 | { | 241 | { |
| 236 | *p1 = 0; | 242 | *p1 = 0; |
| @@ -475,7 +481,6 @@ when doc strings are referred to later in the dumped Emacs.") | |||
| 475 | register char *p, *end; | 481 | register char *p, *end; |
| 476 | Lisp_Object sym, fun, tem; | 482 | Lisp_Object sym, fun, tem; |
| 477 | char *name; | 483 | char *name; |
| 478 | extern char *index (); | ||
| 479 | 484 | ||
| 480 | #ifndef CANNOT_DUMP | 485 | #ifndef CANNOT_DUMP |
| 481 | if (NILP (Vpurify_flag)) | 486 | if (NILP (Vpurify_flag)) |
| @@ -532,7 +537,7 @@ when doc strings are referred to later in the dumped Emacs.") | |||
| 532 | /* p points to ^_Ffunctionname\n or ^_Vvarname\n. */ | 537 | /* p points to ^_Ffunctionname\n or ^_Vvarname\n. */ |
| 533 | if (p != end) | 538 | if (p != end) |
| 534 | { | 539 | { |
| 535 | end = index (p, '\n'); | 540 | end = (char *) index (p, '\n'); |
| 536 | sym = oblookup (Vobarray, p + 2, | 541 | sym = oblookup (Vobarray, p + 2, |
| 537 | multibyte_chars_in_text (p + 2, end - p - 2), | 542 | multibyte_chars_in_text (p + 2, end - p - 2), |
| 538 | end - p - 2); | 543 | end - p - 2); |