diff options
| author | Gerd Moellmann | 2000-09-02 19:35:49 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-09-02 19:35:49 +0000 |
| commit | 8892f40bde07b11c5e2c24719acbcf7239f42de3 (patch) | |
| tree | 433299881b5afea3f22dce1a37c6ad7d5c334ae7 /src | |
| parent | daaf40c7dabd004635454864b859b8fbd0a7c1da (diff) | |
| download | emacs-8892f40bde07b11c5e2c24719acbcf7239f42de3.tar.gz emacs-8892f40bde07b11c5e2c24719acbcf7239f42de3.zip | |
Remove includes of
string.h and strings.h.
(index) [HAVE_INDEX]: Add prototype.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/callint.c | 8 | ||||
| -rw-r--r-- | src/doc.c | 8 | ||||
| -rw-r--r-- | src/editfns.c | 12 | ||||
| -rw-r--r-- | src/emacs.c | 11 |
5 files changed, 15 insertions, 28 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ff6af32b1c6..09108b858f6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2000-09-02 Gerd Moellmann <gerd@gnu.org> | 1 | 2000-09-02 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * emacs.c, callint.c, doc.c, editfns.c: Remove includes of | ||
| 4 | string.h and strings.h. | ||
| 5 | (index) [HAVE_INDEX]: Add prototype. | ||
| 6 | |||
| 3 | * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define. | 7 | * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define. |
| 4 | (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define. | 8 | (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define. |
| 5 | 9 | ||
diff --git a/src/callint.c b/src/callint.c index 88743b83980..5289bfa3853 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -27,12 +27,8 @@ Boston, MA 02111-1307, USA. */ | |||
| 27 | #include "window.h" | 27 | #include "window.h" |
| 28 | #include "mocklisp.h" | 28 | #include "mocklisp.h" |
| 29 | 29 | ||
| 30 | #ifdef HAVE_STRING_H | 30 | #ifdef HAVE_INDEX |
| 31 | #include <string.h> | 31 | extern char *index P_ ((const char *, int)); |
| 32 | #endif | ||
| 33 | |||
| 34 | #ifdef HAVE_STRINGS_H | ||
| 35 | #include <strings.h> | ||
| 36 | #endif | 32 | #endif |
| 37 | 33 | ||
| 38 | extern Lisp_Object Qcursor_in_echo_area; | 34 | extern Lisp_Object Qcursor_in_echo_area; |
| @@ -41,12 +41,8 @@ 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 | 44 | #ifdef HAVE_INDEX |
| 45 | #include <string.h> | 45 | extern char *index P_ ((const char *, int)); |
| 46 | #endif | ||
| 47 | |||
| 48 | #ifdef HAVE_STRINGS_H | ||
| 49 | #include <strings.h> | ||
| 50 | #endif | 46 | #endif |
| 51 | 47 | ||
| 52 | Lisp_Object Vdoc_file_name, Vhelp_manyarg_func_alist; | 48 | Lisp_Object Vdoc_file_name, Vhelp_manyarg_func_alist; |
diff --git a/src/editfns.c b/src/editfns.c index c8011c8eb3e..7b5264385a2 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -42,14 +42,6 @@ Boston, MA 02111-1307, USA. */ | |||
| 42 | 42 | ||
| 43 | #include "systime.h" | 43 | #include "systime.h" |
| 44 | 44 | ||
| 45 | #ifdef HAVE_STRING_H | ||
| 46 | #include <string.h> | ||
| 47 | #endif | ||
| 48 | |||
| 49 | #ifdef HAVE_STRINGS_H | ||
| 50 | #include <strings.h> | ||
| 51 | #endif | ||
| 52 | |||
| 53 | #define min(a, b) ((a) < (b) ? (a) : (b)) | 45 | #define min(a, b) ((a) < (b) ? (a) : (b)) |
| 54 | #define max(a, b) ((a) > (b) ? (a) : (b)) | 46 | #define max(a, b) ((a) > (b) ? (a) : (b)) |
| 55 | 47 | ||
| @@ -79,6 +71,10 @@ static Lisp_Object subst_char_in_region_unwind P_ ((Lisp_Object)); | |||
| 79 | static Lisp_Object subst_char_in_region_unwind_1 P_ ((Lisp_Object)); | 71 | static Lisp_Object subst_char_in_region_unwind_1 P_ ((Lisp_Object)); |
| 80 | static void transpose_markers P_ ((int, int, int, int, int, int, int, int)); | 72 | static void transpose_markers P_ ((int, int, int, int, int, int, int, int)); |
| 81 | 73 | ||
| 74 | #ifdef HAVE_INDEX | ||
| 75 | extern char *index P_ ((const char *, int)); | ||
| 76 | #endif | ||
| 77 | |||
| 82 | Lisp_Object Vbuffer_access_fontify_functions; | 78 | Lisp_Object Vbuffer_access_fontify_functions; |
| 83 | Lisp_Object Qbuffer_access_fontify_functions; | 79 | Lisp_Object Qbuffer_access_fontify_functions; |
| 84 | Lisp_Object Vbuffer_access_fontified_property; | 80 | Lisp_Object Vbuffer_access_fontified_property; |
diff --git a/src/emacs.c b/src/emacs.c index e91fca2eb01..ef28352d3d4 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -60,14 +60,6 @@ Boston, MA 02111-1307, USA. */ | |||
| 60 | #include <sys/resource.h> | 60 | #include <sys/resource.h> |
| 61 | #endif | 61 | #endif |
| 62 | 62 | ||
| 63 | #ifdef HAVE_STRING_H | ||
| 64 | #include <string.h> | ||
| 65 | #endif | ||
| 66 | |||
| 67 | #ifdef HAVE_STRINGS_H | ||
| 68 | #include <strings.h> | ||
| 69 | #endif | ||
| 70 | |||
| 71 | #ifndef O_RDWR | 63 | #ifndef O_RDWR |
| 72 | #define O_RDWR 2 | 64 | #define O_RDWR 2 |
| 73 | #endif | 65 | #endif |
| @@ -81,6 +73,9 @@ Boston, MA 02111-1307, USA. */ | |||
| 81 | 73 | ||
| 82 | extern void malloc_warning P_ ((char *)); | 74 | extern void malloc_warning P_ ((char *)); |
| 83 | extern void set_time_zone_rule P_ ((char *)); | 75 | extern void set_time_zone_rule P_ ((char *)); |
| 76 | #ifdef HAVE_INDEX | ||
| 77 | extern char *index P_ ((const char *, int)); | ||
| 78 | #endif | ||
| 84 | 79 | ||
| 85 | /* Make these values available in GDB, which doesn't see macros. */ | 80 | /* Make these values available in GDB, which doesn't see macros. */ |
| 86 | 81 | ||