aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-09-02 19:35:49 +0000
committerGerd Moellmann2000-09-02 19:35:49 +0000
commit8892f40bde07b11c5e2c24719acbcf7239f42de3 (patch)
tree433299881b5afea3f22dce1a37c6ad7d5c334ae7 /src
parentdaaf40c7dabd004635454864b859b8fbd0a7c1da (diff)
downloademacs-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/ChangeLog4
-rw-r--r--src/callint.c8
-rw-r--r--src/doc.c8
-rw-r--r--src/editfns.c12
-rw-r--r--src/emacs.c11
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 @@
12000-09-02 Gerd Moellmann <gerd@gnu.org> 12000-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> 31extern char *index P_ ((const char *, int));
32#endif
33
34#ifdef HAVE_STRINGS_H
35#include <strings.h>
36#endif 32#endif
37 33
38extern Lisp_Object Qcursor_in_echo_area; 34extern Lisp_Object Qcursor_in_echo_area;
diff --git a/src/doc.c b/src/doc.c
index 52545c1f3fc..ee0a28d1621 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -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> 45extern char *index P_ ((const char *, int));
46#endif
47
48#ifdef HAVE_STRINGS_H
49#include <strings.h>
50#endif 46#endif
51 47
52Lisp_Object Vdoc_file_name, Vhelp_manyarg_func_alist; 48Lisp_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));
79static Lisp_Object subst_char_in_region_unwind_1 P_ ((Lisp_Object)); 71static Lisp_Object subst_char_in_region_unwind_1 P_ ((Lisp_Object));
80static void transpose_markers P_ ((int, int, int, int, int, int, int, int)); 72static void transpose_markers P_ ((int, int, int, int, int, int, int, int));
81 73
74#ifdef HAVE_INDEX
75extern char *index P_ ((const char *, int));
76#endif
77
82Lisp_Object Vbuffer_access_fontify_functions; 78Lisp_Object Vbuffer_access_fontify_functions;
83Lisp_Object Qbuffer_access_fontify_functions; 79Lisp_Object Qbuffer_access_fontify_functions;
84Lisp_Object Vbuffer_access_fontified_property; 80Lisp_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
82extern void malloc_warning P_ ((char *)); 74extern void malloc_warning P_ ((char *));
83extern void set_time_zone_rule P_ ((char *)); 75extern void set_time_zone_rule P_ ((char *));
76#ifdef HAVE_INDEX
77extern 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