diff options
| author | Andreas Schwab | 1998-04-14 12:25:56 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1998-04-14 12:25:56 +0000 |
| commit | dfcf069d565c347abf3cb7cec80e6ed8432037ba (patch) | |
| tree | cd9620f10084ffa69d7d6ae26284ffd69d4c07a5 /src/buffer.c | |
| parent | 0f94f94657ad7a6a68e64c612285a5e06152def2 (diff) | |
| download | emacs-dfcf069d565c347abf3cb7cec80e6ed8432037ba.tar.gz emacs-dfcf069d565c347abf3cb7cec80e6ed8432037ba.zip | |
Fix -Wimplicit warnings.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index 1733fd5e882..5d805590294 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -33,6 +33,12 @@ extern int errno; | |||
| 33 | #endif /* not MAXPATHLEN */ | 33 | #endif /* not MAXPATHLEN */ |
| 34 | 34 | ||
| 35 | #include <config.h> | 35 | #include <config.h> |
| 36 | #ifdef STDC_HEADERS | ||
| 37 | #include <stdlib.h> | ||
| 38 | #endif | ||
| 39 | #ifdef HAVE_UNISTD_H | ||
| 40 | #include <unistd.h> | ||
| 41 | #endif | ||
| 36 | #include "lisp.h" | 42 | #include "lisp.h" |
| 37 | #include "intervals.h" | 43 | #include "intervals.h" |
| 38 | #include "window.h" | 44 | #include "window.h" |
| @@ -2230,9 +2236,11 @@ struct sortvec | |||
| 2230 | }; | 2236 | }; |
| 2231 | 2237 | ||
| 2232 | static int | 2238 | static int |
| 2233 | compare_overlays (s1, s2) | 2239 | compare_overlays (v1, v2) |
| 2234 | struct sortvec *s1, *s2; | 2240 | const void *v1, *v2; |
| 2235 | { | 2241 | { |
| 2242 | const struct sortvec *s1 = (const struct sortvec *) v1; | ||
| 2243 | const struct sortvec *s2 = (const struct sortvec *) v2; | ||
| 2236 | if (s1->priority != s2->priority) | 2244 | if (s1->priority != s2->priority) |
| 2237 | return s1->priority - s2->priority; | 2245 | return s1->priority - s2->priority; |
| 2238 | if (s1->beg != s2->beg) | 2246 | if (s1->beg != s2->beg) |
| @@ -3773,6 +3781,7 @@ buffer_slot_type_mismatch (offset) | |||
| 3773 | type_name, XSYMBOL (sym)->name->data); | 3781 | type_name, XSYMBOL (sym)->name->data); |
| 3774 | } | 3782 | } |
| 3775 | 3783 | ||
| 3784 | void | ||
| 3776 | init_buffer_once () | 3785 | init_buffer_once () |
| 3777 | { | 3786 | { |
| 3778 | register Lisp_Object tem; | 3787 | register Lisp_Object tem; |
| @@ -3914,6 +3923,7 @@ init_buffer_once () | |||
| 3914 | Fset_buffer (Fget_buffer_create (build_string ("*scratch*"))); | 3923 | Fset_buffer (Fget_buffer_create (build_string ("*scratch*"))); |
| 3915 | } | 3924 | } |
| 3916 | 3925 | ||
| 3926 | void | ||
| 3917 | init_buffer () | 3927 | init_buffer () |
| 3918 | { | 3928 | { |
| 3919 | char buf[MAXPATHLEN+1]; | 3929 | char buf[MAXPATHLEN+1]; |
| @@ -3973,6 +3983,7 @@ init_buffer () | |||
| 3973 | } | 3983 | } |
| 3974 | 3984 | ||
| 3975 | /* initialize the buffer routines */ | 3985 | /* initialize the buffer routines */ |
| 3986 | void | ||
| 3976 | syms_of_buffer () | 3987 | syms_of_buffer () |
| 3977 | { | 3988 | { |
| 3978 | extern Lisp_Object Qdisabled; | 3989 | extern Lisp_Object Qdisabled; |
| @@ -4553,6 +4564,7 @@ is a member of the list."); | |||
| 4553 | defsubr (&Soverlay_put); | 4564 | defsubr (&Soverlay_put); |
| 4554 | } | 4565 | } |
| 4555 | 4566 | ||
| 4567 | void | ||
| 4556 | keys_of_buffer () | 4568 | keys_of_buffer () |
| 4557 | { | 4569 | { |
| 4558 | initial_define_key (control_x_map, 'b', "switch-to-buffer"); | 4570 | initial_define_key (control_x_map, 'b', "switch-to-buffer"); |