diff options
| author | Juanma Barranquero | 2010-07-25 02:20:51 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-07-25 02:20:51 +0200 |
| commit | 361358ea12271d5d747773a2d1ba743ee9516745 (patch) | |
| tree | cee5bc68721bbe0be71359d7368439aa3df092b6 /src | |
| parent | 12a251254bbeb759a7e717ce0f68038a0bd03723 (diff) | |
| download | emacs-361358ea12271d5d747773a2d1ba743ee9516745.tar.gz emacs-361358ea12271d5d747773a2d1ba743ee9516745.zip | |
Make building under stricter warning flags somewhat cleaner.
Flags used: -Wold-style-declaration -Wunused-function -Wstrict-prototypes
* lib-src/emacsclient.c (getcwd, w32_getenv):
* lib-src/ntlib.h (getlogin, getuid, getegid, getgid): Fix prototypes.
* nt/runemacs.c (set_user_model_id): Fix prototype.
* src/callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
* src/dired.c (opendir, readdir): Fix prototypes.
* src/editfns.c (w32_get_internal_run_time): Fix prototypes.
* src/keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
* src/ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
(telldir): Remove declaration.
* src/ralloc.c (real_morecore, __morecore): Fix prototypes.
* src/sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
* src/syssignal.h (strsignal): Fix prototype.
* src/term.c (tparam): Fix prototype.
(term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
(term_get_fkeys): Set inside "#ifndef DOS_NT".
* src/vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
and __morecore.
* src/w32gui.h (XParseGeometry): Fix prototype.
* src/w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
* src/w32term.c (my_set_focus): Declare inside #if 0.
* src/w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
(w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
(drain_message_queue, get_next_msg, post_msg, parse_button)
(ClipboardSequence_Proc): Fix prototypes.
(wait_for_sync): Remove declaration.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 25 | ||||
| -rw-r--r-- | src/callproc.c | 10 | ||||
| -rw-r--r-- | src/dired.c | 4 | ||||
| -rw-r--r-- | src/editfns.c | 2 | ||||
| -rw-r--r-- | src/keyboard.c | 4 | ||||
| -rw-r--r-- | src/ndir.h | 9 | ||||
| -rw-r--r-- | src/ralloc.c | 4 | ||||
| -rw-r--r-- | src/sound.c | 2 | ||||
| -rw-r--r-- | src/syssignal.h | 2 | ||||
| -rw-r--r-- | src/term.c | 4 | ||||
| -rw-r--r-- | src/vm-limit.c | 4 | ||||
| -rw-r--r-- | src/w32gui.h | 2 | ||||
| -rw-r--r-- | src/w32heap.h | 6 | ||||
| -rw-r--r-- | src/w32term.c | 2 | ||||
| -rw-r--r-- | src/w32term.h | 32 |
15 files changed, 75 insertions, 37 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7234b4f843e..339e7b2beb2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,28 @@ | |||
| 1 | 2010-07-25 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT. | ||
| 4 | * dired.c (opendir, readdir): Fix prototypes. | ||
| 5 | * editfns.c (w32_get_internal_run_time): Fix prototypes. | ||
| 6 | * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO. | ||
| 7 | * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes. | ||
| 8 | (telldir): Remove declaration. | ||
| 9 | * ralloc.c (real_morecore, __morecore): Fix prototypes. | ||
| 10 | * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA. | ||
| 11 | * syssignal.h (strsignal): Fix prototype. | ||
| 12 | * term.c (tparam): Fix prototype. | ||
| 13 | (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1) | ||
| 14 | (term_get_fkeys): Set inside "#ifndef DOS_NT". | ||
| 15 | * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore | ||
| 16 | and __morecore. | ||
| 17 | * w32gui.h (XParseGeometry): Fix prototype. | ||
| 18 | * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes. | ||
| 19 | * w32term.c (my_set_focus): Declare inside #if 0. | ||
| 20 | * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init) | ||
| 21 | (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit) | ||
| 22 | (drain_message_queue, get_next_msg, post_msg, parse_button) | ||
| 23 | (ClipboardSequence_Proc): Fix prototypes. | ||
| 24 | (wait_for_sync): Remove declaration. | ||
| 25 | |||
| 1 | 2010-07-24 Juanma Barranquero <lekktu@gmail.com> | 26 | 2010-07-24 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 27 | ||
| 3 | * w32fns.c (w32_to_x_color): Remove, unused. | 28 | * w32fns.c (w32_to_x_color): Remove, unused. |
diff --git a/src/callproc.c b/src/callproc.c index 4286ab1ae29..7f72df86ece 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -984,7 +984,9 @@ usage: (call-process-region START END PROGRAM &optional DELETE BUFFER DISPLAY &r | |||
| 984 | RETURN_UNGCPRO (unbind_to (count, Fcall_process (nargs, args))); | 984 | RETURN_UNGCPRO (unbind_to (count, Fcall_process (nargs, args))); |
| 985 | } | 985 | } |
| 986 | 986 | ||
| 987 | #ifndef WINDOWSNT | ||
| 987 | static int relocate_fd (int fd, int minfd); | 988 | static int relocate_fd (int fd, int minfd); |
| 989 | #endif | ||
| 988 | 990 | ||
| 989 | static char ** | 991 | static char ** |
| 990 | add_env (char **env, char **new_env, char *string) | 992 | add_env (char **env, char **new_env, char *string) |
| @@ -1113,7 +1115,7 @@ child_setup (int in, int out, int err, register char **new_argv, int set_pgrp, L | |||
| 1113 | char **p, **q; | 1115 | char **p, **q; |
| 1114 | register int new_length; | 1116 | register int new_length; |
| 1115 | Lisp_Object display = Qnil; | 1117 | Lisp_Object display = Qnil; |
| 1116 | 1118 | ||
| 1117 | new_length = 0; | 1119 | new_length = 0; |
| 1118 | 1120 | ||
| 1119 | for (tem = Vprocess_environment; | 1121 | for (tem = Vprocess_environment; |
| @@ -1149,7 +1151,7 @@ child_setup (int in, int out, int err, register char **new_argv, int set_pgrp, L | |||
| 1149 | but with corrected value. */ | 1151 | but with corrected value. */ |
| 1150 | if (egetenv ("PWD")) | 1152 | if (egetenv ("PWD")) |
| 1151 | *new_env++ = pwd_var; | 1153 | *new_env++ = pwd_var; |
| 1152 | 1154 | ||
| 1153 | if (STRINGP (display)) | 1155 | if (STRINGP (display)) |
| 1154 | { | 1156 | { |
| 1155 | int vlen = strlen ("DISPLAY=") + strlen (SDATA (display)) + 1; | 1157 | int vlen = strlen ("DISPLAY=") + strlen (SDATA (display)) + 1; |
| @@ -1179,7 +1181,7 @@ child_setup (int in, int out, int err, register char **new_argv, int set_pgrp, L | |||
| 1179 | } | 1181 | } |
| 1180 | } | 1182 | } |
| 1181 | 1183 | ||
| 1182 | 1184 | ||
| 1183 | #ifdef WINDOWSNT | 1185 | #ifdef WINDOWSNT |
| 1184 | prepare_standard_handles (in, out, err, handles); | 1186 | prepare_standard_handles (in, out, err, handles); |
| 1185 | set_process_dir (SDATA (current_dir)); | 1187 | set_process_dir (SDATA (current_dir)); |
| @@ -1265,6 +1267,7 @@ child_setup (int in, int out, int err, register char **new_argv, int set_pgrp, L | |||
| 1265 | #endif /* not MSDOS */ | 1267 | #endif /* not MSDOS */ |
| 1266 | } | 1268 | } |
| 1267 | 1269 | ||
| 1270 | #ifndef WINDOWSNT | ||
| 1268 | /* Move the file descriptor FD so that its number is not less than MINFD. | 1271 | /* Move the file descriptor FD so that its number is not less than MINFD. |
| 1269 | If the file descriptor is moved at all, the original is freed. */ | 1272 | If the file descriptor is moved at all, the original is freed. */ |
| 1270 | static int | 1273 | static int |
| @@ -1298,6 +1301,7 @@ relocate_fd (int fd, int minfd) | |||
| 1298 | return new; | 1301 | return new; |
| 1299 | } | 1302 | } |
| 1300 | } | 1303 | } |
| 1304 | #endif /* not WINDOWSNT */ | ||
| 1301 | 1305 | ||
| 1302 | static int | 1306 | static int |
| 1303 | getenv_internal_1 (const char *var, int varlen, char **value, int *valuelen, | 1307 | getenv_internal_1 (const char *var, int varlen, char **value, int *valuelen, |
diff --git a/src/dired.c b/src/dired.c index cdb4545e81c..8f360e8879f 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -66,8 +66,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 66 | #ifndef MSDOS | 66 | #ifndef MSDOS |
| 67 | #define DIRENTRY struct direct | 67 | #define DIRENTRY struct direct |
| 68 | 68 | ||
| 69 | extern DIR *opendir (); | 69 | extern DIR *opendir (char *); |
| 70 | extern struct direct *readdir (); | 70 | extern struct direct *readdir (DIR *); |
| 71 | 71 | ||
| 72 | #endif /* not MSDOS */ | 72 | #endif /* not MSDOS */ |
| 73 | #endif /* not SYSV_SYSTEM_DIR */ | 73 | #endif /* not SYSV_SYSTEM_DIR */ |
diff --git a/src/editfns.c b/src/editfns.c index 805dba60446..96ae1766e04 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -90,7 +90,7 @@ extern size_t emacs_strftimeu (char *, size_t, const char *, | |||
| 90 | const struct tm *, int); | 90 | const struct tm *, int); |
| 91 | 91 | ||
| 92 | #ifdef WINDOWSNT | 92 | #ifdef WINDOWSNT |
| 93 | extern Lisp_Object w32_get_internal_run_time (); | 93 | extern Lisp_Object w32_get_internal_run_time (void); |
| 94 | #endif | 94 | #endif |
| 95 | 95 | ||
| 96 | static int tm_diff (struct tm *, struct tm *); | 96 | static int tm_diff (struct tm *, struct tm *); |
diff --git a/src/keyboard.c b/src/keyboard.c index c2f010cf4e7..1cc24f95bdc 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -635,7 +635,9 @@ static Lisp_Object apply_modifiers (int, Lisp_Object); | |||
| 635 | static void clear_event (struct input_event *); | 635 | static void clear_event (struct input_event *); |
| 636 | static Lisp_Object restore_kboard_configuration (Lisp_Object); | 636 | static Lisp_Object restore_kboard_configuration (Lisp_Object); |
| 637 | static SIGTYPE interrupt_signal (int signalnum); | 637 | static SIGTYPE interrupt_signal (int signalnum); |
| 638 | #ifdef SIGIO | ||
| 638 | static SIGTYPE input_available_signal (int signo); | 639 | static SIGTYPE input_available_signal (int signo); |
| 640 | #endif | ||
| 639 | static void handle_interrupt (void); | 641 | static void handle_interrupt (void); |
| 640 | static void timer_start_idle (void); | 642 | static void timer_start_idle (void); |
| 641 | static void timer_stop_idle (void); | 643 | static void timer_stop_idle (void); |
| @@ -3895,7 +3897,7 @@ kbd_buffer_get_event (KBOARD **kbp, | |||
| 3895 | { | 3897 | { |
| 3896 | register int c; | 3898 | register int c; |
| 3897 | Lisp_Object obj; | 3899 | Lisp_Object obj; |
| 3898 | 3900 | ||
| 3899 | if (kbd_on_hold_p () && kbd_buffer_nr_stored () < KBD_BUFFER_SIZE/4) | 3901 | if (kbd_on_hold_p () && kbd_buffer_nr_stored () < KBD_BUFFER_SIZE/4) |
| 3900 | { | 3902 | { |
| 3901 | /* Start reading input again, we have processed enough so we can | 3903 | /* Start reading input again, we have processed enough so we can |
diff --git a/src/ndir.h b/src/ndir.h index d7bac9d3fae..92d198334b7 100644 --- a/src/ndir.h +++ b/src/ndir.h | |||
| @@ -32,11 +32,10 @@ typedef struct | |||
| 32 | char dd_buf[DIRBLKSIZ]; /* directory block */ | 32 | char dd_buf[DIRBLKSIZ]; /* directory block */ |
| 33 | } DIR; /* stream data from opendir() */ | 33 | } DIR; /* stream data from opendir() */ |
| 34 | 34 | ||
| 35 | extern DIR *opendir(); | 35 | extern DIR *opendir (char *); |
| 36 | extern struct direct *readdir(); | 36 | extern struct direct *readdir (DIR *); |
| 37 | extern long telldir(); | 37 | extern void seekdir (DIR *, long); |
| 38 | extern void seekdir(); | 38 | extern void closedir (DIR *); |
| 39 | extern void closedir(); | ||
| 40 | 39 | ||
| 41 | #define rewinddir( dirp ) seekdir( dirp, 0L ) | 40 | #define rewinddir( dirp ) seekdir( dirp, 0L ) |
| 42 | 41 | ||
diff --git a/src/ralloc.c b/src/ralloc.c index f0299873f54..5f2b52fcc4b 100644 --- a/src/ralloc.c +++ b/src/ralloc.c | |||
| @@ -79,7 +79,7 @@ static void r_alloc_init (void); | |||
| 79 | /* Declarations for working with the malloc, ralloc, and system breaks. */ | 79 | /* Declarations for working with the malloc, ralloc, and system breaks. */ |
| 80 | 80 | ||
| 81 | /* Function to set the real break value. */ | 81 | /* Function to set the real break value. */ |
| 82 | POINTER (*real_morecore) (); | 82 | POINTER (*real_morecore) (long int); |
| 83 | 83 | ||
| 84 | /* The break value, as seen by malloc. */ | 84 | /* The break value, as seen by malloc. */ |
| 85 | static POINTER virtual_break_value; | 85 | static POINTER virtual_break_value; |
| @@ -111,7 +111,7 @@ static int extra_bytes; | |||
| 111 | from the system. */ | 111 | from the system. */ |
| 112 | 112 | ||
| 113 | #ifndef SYSTEM_MALLOC | 113 | #ifndef SYSTEM_MALLOC |
| 114 | extern POINTER (*__morecore) (); | 114 | extern POINTER (*__morecore) (long int); |
| 115 | #endif | 115 | #endif |
| 116 | 116 | ||
| 117 | 117 | ||
diff --git a/src/sound.c b/src/sound.c index e0ebd565151..4e3d583ccf0 100644 --- a/src/sound.c +++ b/src/sound.c | |||
| @@ -115,7 +115,9 @@ enum sound_attr | |||
| 115 | SOUND_ATTR_SENTINEL | 115 | SOUND_ATTR_SENTINEL |
| 116 | }; | 116 | }; |
| 117 | 117 | ||
| 118 | #ifdef HAVE_ALSA | ||
| 118 | static void alsa_sound_perror (char *, int) NO_RETURN; | 119 | static void alsa_sound_perror (char *, int) NO_RETURN; |
| 120 | #endif | ||
| 119 | static void sound_perror (char *) NO_RETURN; | 121 | static void sound_perror (char *) NO_RETURN; |
| 120 | static void sound_warning (char *); | 122 | static void sound_warning (char *); |
| 121 | static int parse_sound (Lisp_Object, Lisp_Object *); | 123 | static int parse_sound (Lisp_Object, Lisp_Object *); |
diff --git a/src/syssignal.h b/src/syssignal.h index e3765add425..f034e9e0761 100644 --- a/src/syssignal.h +++ b/src/syssignal.h | |||
| @@ -160,7 +160,7 @@ sigset_t sys_sigsetmask (sigset_t new_mask); | |||
| 160 | 160 | ||
| 161 | #ifndef HAVE_STRSIGNAL | 161 | #ifndef HAVE_STRSIGNAL |
| 162 | /* strsignal is in sysdep.c */ | 162 | /* strsignal is in sysdep.c */ |
| 163 | char *strsignal (); | 163 | char *strsignal (int); |
| 164 | #endif | 164 | #endif |
| 165 | 165 | ||
| 166 | #ifdef FORWARD_SIGNAL_TO_MAIN_THREAD | 166 | #ifdef FORWARD_SIGNAL_TO_MAIN_THREAD |
diff --git a/src/term.c b/src/term.c index 3233db84cf7..25501370cdf 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -183,7 +183,7 @@ static int no_controlling_tty; | |||
| 183 | 183 | ||
| 184 | static int system_uses_terminfo; | 184 | static int system_uses_terminfo; |
| 185 | 185 | ||
| 186 | char *tparam (); | 186 | char *tparam (char *, char *, int, int, ...); |
| 187 | 187 | ||
| 188 | extern char *tgetstr (char *, char **); | 188 | extern char *tgetstr (char *, char **); |
| 189 | 189 | ||
| @@ -1363,6 +1363,7 @@ static struct fkey_table keys[] = | |||
| 1363 | {"!3", "S-undo"} /*shifted undo key*/ | 1363 | {"!3", "S-undo"} /*shifted undo key*/ |
| 1364 | }; | 1364 | }; |
| 1365 | 1365 | ||
| 1366 | #ifndef DOS_NT | ||
| 1366 | static char **term_get_fkeys_address; | 1367 | static char **term_get_fkeys_address; |
| 1367 | static KBOARD *term_get_fkeys_kboard; | 1368 | static KBOARD *term_get_fkeys_kboard; |
| 1368 | static Lisp_Object term_get_fkeys_1 (void); | 1369 | static Lisp_Object term_get_fkeys_1 (void); |
| @@ -1500,6 +1501,7 @@ term_get_fkeys_1 (void) | |||
| 1500 | 1501 | ||
| 1501 | return Qnil; | 1502 | return Qnil; |
| 1502 | } | 1503 | } |
| 1504 | #endif /* not DOS_NT */ | ||
| 1503 | 1505 | ||
| 1504 | 1506 | ||
| 1505 | /*********************************************************************** | 1507 | /*********************************************************************** |
diff --git a/src/vm-limit.c b/src/vm-limit.c index b288276f394..06801db1a90 100644 --- a/src/vm-limit.c +++ b/src/vm-limit.c | |||
| @@ -173,9 +173,9 @@ static void | |||
| 173 | check_memory_limits (void) | 173 | check_memory_limits (void) |
| 174 | { | 174 | { |
| 175 | #ifdef REL_ALLOC | 175 | #ifdef REL_ALLOC |
| 176 | extern POINTER (*real_morecore) (); | 176 | extern POINTER (*real_morecore) (SIZE); |
| 177 | #endif | 177 | #endif |
| 178 | extern POINTER (*__morecore) (); | 178 | extern POINTER (*__morecore) (SIZE); |
| 179 | 179 | ||
| 180 | register POINTER cp; | 180 | register POINTER cp; |
| 181 | unsigned long five_percent; | 181 | unsigned long five_percent; |
diff --git a/src/w32gui.h b/src/w32gui.h index 07a6fed0b47..9cad4f21f21 100644 --- a/src/w32gui.h +++ b/src/w32gui.h | |||
| @@ -118,7 +118,7 @@ extern int nCmdShow; | |||
| 118 | #define PBaseSize (1L << 8) /* program specified base for incrementing */ | 118 | #define PBaseSize (1L << 8) /* program specified base for incrementing */ |
| 119 | #define PWinGravity (1L << 9) /* program specified window gravity */ | 119 | #define PWinGravity (1L << 9) /* program specified window gravity */ |
| 120 | 120 | ||
| 121 | extern int XParseGeometry (); | 121 | extern int XParseGeometry (char *, int *, int *, unsigned *, unsigned *); |
| 122 | 122 | ||
| 123 | 123 | ||
| 124 | typedef struct { | 124 | typedef struct { |
diff --git a/src/w32heap.h b/src/w32heap.h index cbd7f7ae96d..20a49a4e0ac 100644 --- a/src/w32heap.h +++ b/src/w32heap.h | |||
| @@ -41,8 +41,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | |||
| 41 | #define get_w32_major_version() w32_major_version | 41 | #define get_w32_major_version() w32_major_version |
| 42 | #define get_w32_minor_version() w32_minor_version | 42 | #define get_w32_minor_version() w32_minor_version |
| 43 | 43 | ||
| 44 | extern unsigned char *get_data_start(); | 44 | extern unsigned char *get_data_start (void); |
| 45 | extern unsigned char *get_data_end(); | 45 | extern unsigned char *get_data_end (void); |
| 46 | extern unsigned long reserved_heap_size; | 46 | extern unsigned long reserved_heap_size; |
| 47 | extern SYSTEM_INFO sysinfo_cache; | 47 | extern SYSTEM_INFO sysinfo_cache; |
| 48 | extern OSVERSIONINFO osinfo_cache; | 48 | extern OSVERSIONINFO osinfo_cache; |
| @@ -62,7 +62,7 @@ extern int os_subtype; | |||
| 62 | extern void *sbrk (unsigned long size); | 62 | extern void *sbrk (unsigned long size); |
| 63 | 63 | ||
| 64 | /* Initialize heap structures for sbrk on startup. */ | 64 | /* Initialize heap structures for sbrk on startup. */ |
| 65 | extern void init_heap (); | 65 | extern void init_heap (void); |
| 66 | 66 | ||
| 67 | /* Round the heap to this size. */ | 67 | /* Round the heap to this size. */ |
| 68 | extern void round_heap (unsigned long size); | 68 | extern void round_heap (unsigned long size); |
diff --git a/src/w32term.c b/src/w32term.c index abd7843c2ef..fc03034b14b 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -268,7 +268,9 @@ static void x_draw_bar_cursor (struct window *, struct glyph_row *, int, | |||
| 268 | static void w32_clip_to_row (struct window *, struct glyph_row *, int, HDC); | 268 | static void w32_clip_to_row (struct window *, struct glyph_row *, int, HDC); |
| 269 | static BOOL my_show_window (struct frame *, HWND, int); | 269 | static BOOL my_show_window (struct frame *, HWND, int); |
| 270 | static void my_set_window_pos (HWND, HWND, int, int, int, int, UINT); | 270 | static void my_set_window_pos (HWND, HWND, int, int, int, int, UINT); |
| 271 | #if 0 | ||
| 271 | static void my_set_focus (struct frame *, HWND); | 272 | static void my_set_focus (struct frame *, HWND); |
| 273 | #endif | ||
| 272 | static void my_set_foreground_window (HWND); | 274 | static void my_set_foreground_window (HWND); |
| 273 | static void my_destroy_window (struct frame *, HWND); | 275 | static void my_destroy_window (struct frame *, HWND); |
| 274 | 276 | ||
diff --git a/src/w32term.h b/src/w32term.h index b5b3d4451f2..ea245144ac3 100644 --- a/src/w32term.h +++ b/src/w32term.h | |||
| @@ -48,8 +48,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 48 | extern MSG CurMsg; | 48 | extern MSG CurMsg; |
| 49 | extern BOOL bUseDflt; | 49 | extern BOOL bUseDflt; |
| 50 | 50 | ||
| 51 | extern struct frame *x_window_to_frame (); | ||
| 52 | |||
| 53 | /* Structure recording bitmaps and reference count. | 51 | /* Structure recording bitmaps and reference count. |
| 54 | If REFCOUNT is 0 then this record is free to be reused. */ | 52 | If REFCOUNT is 0 then this record is free to be reused. */ |
| 55 | 53 | ||
| @@ -226,13 +224,16 @@ extern Lisp_Object w32_display_name_list; | |||
| 226 | /* Regexp matching a font name whose width is the same as `PIXEL_SIZE'. */ | 224 | /* Regexp matching a font name whose width is the same as `PIXEL_SIZE'. */ |
| 227 | extern Lisp_Object Vx_pixel_size_width_font_regexp; | 225 | extern Lisp_Object Vx_pixel_size_width_font_regexp; |
| 228 | 226 | ||
| 229 | struct w32_display_info *x_display_info_for_name (); | 227 | extern struct frame *x_window_to_frame (struct w32_display_info *, HWND); |
| 228 | |||
| 229 | struct w32_display_info *x_display_info_for_name (Lisp_Object); | ||
| 230 | 230 | ||
| 231 | Lisp_Object display_x_get_resource (struct w32_display_info *, | 231 | Lisp_Object display_x_get_resource (struct w32_display_info *, |
| 232 | Lisp_Object, Lisp_Object, | 232 | Lisp_Object, Lisp_Object, |
| 233 | Lisp_Object, Lisp_Object); | 233 | Lisp_Object, Lisp_Object); |
| 234 | 234 | ||
| 235 | extern struct w32_display_info *w32_term_init (); | 235 | extern struct w32_display_info *w32_term_init (Lisp_Object, |
| 236 | char *, char *); | ||
| 236 | 237 | ||
| 237 | extern int x_display_pixel_height (struct w32_display_info *); | 238 | extern int x_display_pixel_height (struct w32_display_info *); |
| 238 | extern int x_display_pixel_width (struct w32_display_info *); | 239 | extern int x_display_pixel_width (struct w32_display_info *); |
| @@ -544,8 +545,10 @@ struct scroll_bar { | |||
| 544 | #define VERTICAL_SCROLL_BAR_WIDTH_TRIM (0) | 545 | #define VERTICAL_SCROLL_BAR_WIDTH_TRIM (0) |
| 545 | 546 | ||
| 546 | 547 | ||
| 547 | extern void w32_fill_rect (); | 548 | struct frame; /* from frame.h */ |
| 548 | extern void w32_clear_window (); | 549 | |
| 550 | extern void w32_fill_rect (struct frame *, HDC, COLORREF, RECT *); | ||
| 551 | extern void w32_clear_window (struct frame *); | ||
| 549 | 552 | ||
| 550 | #define w32_fill_area(f,hdc,pix,x,y,nx,ny) \ | 553 | #define w32_fill_area(f,hdc,pix,x,y,nx,ny) \ |
| 551 | do { \ | 554 | do { \ |
| @@ -645,10 +648,10 @@ typedef struct deferred_msg | |||
| 645 | 648 | ||
| 646 | extern CRITICAL_SECTION critsect; | 649 | extern CRITICAL_SECTION critsect; |
| 647 | 650 | ||
| 648 | extern void init_crit (); | 651 | extern void init_crit (void); |
| 649 | extern void delete_crit (); | 652 | extern void delete_crit (void); |
| 650 | 653 | ||
| 651 | extern void signal_quit (); | 654 | extern void signal_quit (void); |
| 652 | 655 | ||
| 653 | #define enter_crit() EnterCriticalSection (&critsect) | 656 | #define enter_crit() EnterCriticalSection (&critsect) |
| 654 | #define leave_crit() LeaveCriticalSection (&critsect) | 657 | #define leave_crit() LeaveCriticalSection (&critsect) |
| @@ -658,14 +661,13 @@ extern void deselect_palette (struct frame * f, HDC hdc); | |||
| 658 | extern HDC get_frame_dc (struct frame * f); | 661 | extern HDC get_frame_dc (struct frame * f); |
| 659 | extern int release_frame_dc (struct frame * f, HDC hDC); | 662 | extern int release_frame_dc (struct frame * f, HDC hDC); |
| 660 | 663 | ||
| 661 | extern void drain_message_queue (); | 664 | extern void drain_message_queue (void); |
| 662 | 665 | ||
| 663 | extern BOOL get_next_msg (); | 666 | extern BOOL get_next_msg (W32Msg *, BOOL); |
| 664 | extern BOOL post_msg (); | 667 | extern BOOL post_msg (W32Msg *); |
| 665 | extern void complete_deferred_msg (HWND hwnd, UINT msg, LRESULT result); | 668 | extern void complete_deferred_msg (HWND hwnd, UINT msg, LRESULT result); |
| 666 | extern void wait_for_sync (); | ||
| 667 | 669 | ||
| 668 | extern BOOL parse_button (); | 670 | extern BOOL parse_button (int, int, int *, int *); |
| 669 | 671 | ||
| 670 | extern void w32_sys_ring_bell (struct frame *f); | 672 | extern void w32_sys_ring_bell (struct frame *f); |
| 671 | extern void x_delete_display (struct w32_display_info *dpyinfo); | 673 | extern void x_delete_display (struct w32_display_info *dpyinfo); |
| @@ -725,7 +727,7 @@ struct frame * check_x_frame (Lisp_Object); | |||
| 725 | EXFUN (Fx_display_color_p, 1); | 727 | EXFUN (Fx_display_color_p, 1); |
| 726 | EXFUN (Fx_display_grayscale_p, 1); | 728 | EXFUN (Fx_display_grayscale_p, 1); |
| 727 | 729 | ||
| 728 | typedef DWORD (WINAPI * ClipboardSequence_Proc) (); | 730 | typedef DWORD (WINAPI * ClipboardSequence_Proc) (void); |
| 729 | typedef BOOL (WINAPI * AppendMenuW_Proc) ( | 731 | typedef BOOL (WINAPI * AppendMenuW_Proc) ( |
| 730 | IN HMENU, | 732 | IN HMENU, |
| 731 | IN UINT, | 733 | IN UINT, |