diff options
| author | Juanma Barranquero | 2011-03-14 18:07:53 +0100 |
|---|---|---|
| committer | Juanma Barranquero | 2011-03-14 18:07:53 +0100 |
| commit | 7684e57b24092dbfbbe7fc62a1a544e40e2ce88a (patch) | |
| tree | fee092544c95e422483f41079d1bfd9dfdd6248f /src | |
| parent | e756ec02a4415f054cac4887a1b03ae4d7ed6ccb (diff) | |
| download | emacs-7684e57b24092dbfbbe7fc62a1a544e40e2ce88a.tar.gz emacs-7684e57b24092dbfbbe7fc62a1a544e40e2ce88a.zip | |
src/w32*.c: Clean up extern declarations.
* w32select.c: Don't #include "keyboard.h".
(run_protected): Add extern declaration for waiting_for_input.
* lisp.h (VWindow_system, Qfile_name_history):
* keyboard.h (lispy_function_keys) [WINDOWSNT]:
* w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
(w32_system_caret_x, w32_system_caret_y): Declare extern.
* w32.c (Qlocal, noninteractive1, inhibit_window_system):
* w32console.c (detect_input_pending, read_input_pending)
(encode_terminal_code):
* w32fns.c (quit_char, lispy_function_keys, Qtooltip)
(w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
(w32_system_caret_y, Qfile_name_history):
* w32font.c (w32font_driver, QCantialias, QCotf, QClang):
* w32inevt.c (reinvoke_input_signal, lispy_function_keys):
* w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
(Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
* w32proc.c (Qlocal, report_file_error):
* w32term.c (Vwindow_system, updating_frame):
* w32uniscribe.c (initialized, uniscribe_font_driver):
Remove unneeded extern declarations.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 25 | ||||
| -rw-r--r-- | src/keyboard.h | 9 | ||||
| -rw-r--r-- | src/lisp.h | 2 | ||||
| -rw-r--r-- | src/w32.c | 5 | ||||
| -rw-r--r-- | src/w32console.c | 9 | ||||
| -rw-r--r-- | src/w32fns.c | 15 | ||||
| -rw-r--r-- | src/w32font.c | 3 | ||||
| -rw-r--r-- | src/w32inevt.c | 9 | ||||
| -rw-r--r-- | src/w32menu.c | 8 | ||||
| -rw-r--r-- | src/w32proc.c | 8 | ||||
| -rw-r--r-- | src/w32select.c | 2 | ||||
| -rw-r--r-- | src/w32term.c | 14 | ||||
| -rw-r--r-- | src/w32term.h | 6 | ||||
| -rw-r--r-- | src/w32uniscribe.c | 4 |
14 files changed, 46 insertions, 73 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8e5c9564f55..09413b26483 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,28 @@ | |||
| 1 | 2011-03-14 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * lisp.h (VWindow_system, Qfile_name_history): | ||
| 4 | * keyboard.h (lispy_function_keys) [WINDOWSNT]: | ||
| 5 | * w32term.h (w32_system_caret_hwnd, w32_system_caret_height) | ||
| 6 | (w32_system_caret_x, w32_system_caret_y): Declare extern. | ||
| 7 | |||
| 8 | * w32select.c: Don't #include "keyboard.h". | ||
| 9 | (run_protected): Add extern declaration for waiting_for_input. | ||
| 10 | |||
| 11 | * w32.c (Qlocal, noninteractive1, inhibit_window_system): | ||
| 12 | * w32console.c (detect_input_pending, read_input_pending) | ||
| 13 | (encode_terminal_code): | ||
| 14 | * w32fns.c (quit_char, lispy_function_keys, Qtooltip) | ||
| 15 | (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x) | ||
| 16 | (w32_system_caret_y, Qfile_name_history): | ||
| 17 | * w32font.c (w32font_driver, QCantialias, QCotf, QClang): | ||
| 18 | * w32inevt.c (reinvoke_input_signal, lispy_function_keys): | ||
| 19 | * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map) | ||
| 20 | (Qoverriding_terminal_local_map, Qmenu_bar_update_hook): | ||
| 21 | * w32proc.c (Qlocal, report_file_error): | ||
| 22 | * w32term.c (Vwindow_system, updating_frame): | ||
| 23 | * w32uniscribe.c (initialized, uniscribe_font_driver): | ||
| 24 | Remove unneeded extern declarations. | ||
| 25 | |||
| 1 | 2011-03-14 Chong Yidong <cyd@stupidchicken.com> | 26 | 2011-03-14 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 27 | ||
| 3 | * buffer.c (Fmake_indirect_buffer): Fix incorrect assertion. | 28 | * buffer.c (Fmake_indirect_buffer): Fix incorrect assertion. |
diff --git a/src/keyboard.h b/src/keyboard.h index 10bf16d5c5c..f2000a44643 100644 --- a/src/keyboard.h +++ b/src/keyboard.h | |||
| @@ -90,7 +90,7 @@ struct kboard | |||
| 90 | 90 | ||
| 91 | /* User-supplied table to translate input characters through. */ | 91 | /* User-supplied table to translate input characters through. */ |
| 92 | Lisp_Object KBOARD_INTERNAL_FIELD (Vkeyboard_translate_table); | 92 | Lisp_Object KBOARD_INTERNAL_FIELD (Vkeyboard_translate_table); |
| 93 | 93 | ||
| 94 | /* Last command that may be repeated by `repeat'. */ | 94 | /* Last command that may be repeated by `repeat'. */ |
| 95 | Lisp_Object KBOARD_INTERNAL_FIELD (Vlast_repeatable_command); | 95 | Lisp_Object KBOARD_INTERNAL_FIELD (Vlast_repeatable_command); |
| 96 | 96 | ||
| @@ -140,12 +140,12 @@ struct kboard | |||
| 140 | /* Keymap mapping keys to alternative preferred forms. | 140 | /* Keymap mapping keys to alternative preferred forms. |
| 141 | See the DEFVAR for more documentation. */ | 141 | See the DEFVAR for more documentation. */ |
| 142 | Lisp_Object KBOARD_INTERNAL_FIELD (Vlocal_function_key_map); | 142 | Lisp_Object KBOARD_INTERNAL_FIELD (Vlocal_function_key_map); |
| 143 | 143 | ||
| 144 | /* Keymap mapping ASCII function key sequences onto their preferred | 144 | /* Keymap mapping ASCII function key sequences onto their preferred |
| 145 | forms. Initialized by the terminal-specific lisp files. See the | 145 | forms. Initialized by the terminal-specific lisp files. See the |
| 146 | DEFVAR for more documentation. */ | 146 | DEFVAR for more documentation. */ |
| 147 | Lisp_Object KBOARD_INTERNAL_FIELD (Vinput_decode_map); | 147 | Lisp_Object KBOARD_INTERNAL_FIELD (Vinput_decode_map); |
| 148 | 148 | ||
| 149 | /* Minibufferless frames on this display use this frame's minibuffer. */ | 149 | /* Minibufferless frames on this display use this frame's minibuffer. */ |
| 150 | Lisp_Object KBOARD_INTERNAL_FIELD (Vdefault_minibuffer_frame); | 150 | Lisp_Object KBOARD_INTERNAL_FIELD (Vdefault_minibuffer_frame); |
| 151 | 151 | ||
| @@ -518,3 +518,6 @@ extern int tty_read_avail_input (struct terminal *, int, | |||
| 518 | struct input_event *); | 518 | struct input_event *); |
| 519 | extern EMACS_TIME timer_check (int); | 519 | extern EMACS_TIME timer_check (int); |
| 520 | 520 | ||
| 521 | #ifdef WINDOWSNT | ||
| 522 | extern const char *const lispy_function_keys[]; | ||
| 523 | #endif | ||
diff --git a/src/lisp.h b/src/lisp.h index 113585320af..0f55da317ca 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -2607,6 +2607,7 @@ extern void syms_of_insdel (void); | |||
| 2607 | 2607 | ||
| 2608 | /* Defined in dispnew.c */ | 2608 | /* Defined in dispnew.c */ |
| 2609 | extern Lisp_Object selected_frame; | 2609 | extern Lisp_Object selected_frame; |
| 2610 | extern Lisp_Object Vwindow_system; | ||
| 2610 | EXFUN (Fding, 1); | 2611 | EXFUN (Fding, 1); |
| 2611 | EXFUN (Fredraw_frame, 1); | 2612 | EXFUN (Fredraw_frame, 1); |
| 2612 | EXFUN (Fsleep_for, 2); | 2613 | EXFUN (Fsleep_for, 2); |
| @@ -3009,6 +3010,7 @@ extern Lisp_Object Qfile_error; | |||
| 3009 | extern Lisp_Object Qfile_exists_p; | 3010 | extern Lisp_Object Qfile_exists_p; |
| 3010 | extern Lisp_Object Qfile_directory_p; | 3011 | extern Lisp_Object Qfile_directory_p; |
| 3011 | extern Lisp_Object Qinsert_file_contents; | 3012 | extern Lisp_Object Qinsert_file_contents; |
| 3013 | extern Lisp_Object Qfile_name_history; | ||
| 3012 | EXFUN (Ffind_file_name_handler, 2); | 3014 | EXFUN (Ffind_file_name_handler, 2); |
| 3013 | EXFUN (Ffile_name_as_directory, 1); | 3015 | EXFUN (Ffile_name_as_directory, 1); |
| 3014 | EXFUN (Fexpand_file_name, 2); | 3016 | EXFUN (Fexpand_file_name, 2); |
| @@ -147,9 +147,6 @@ typedef HRESULT (WINAPI * ShGetFolderPath_fn) | |||
| 147 | void globals_of_w32 (void); | 147 | void globals_of_w32 (void); |
| 148 | static DWORD get_rid (PSID); | 148 | static DWORD get_rid (PSID); |
| 149 | 149 | ||
| 150 | /* Defined in process.c for its own purpose. */ | ||
| 151 | extern Lisp_Object Qlocal; | ||
| 152 | |||
| 153 | 150 | ||
| 154 | /* Initialization states. | 151 | /* Initialization states. |
| 155 | 152 | ||
| @@ -5666,8 +5663,6 @@ sys_write (int fd, const void * buffer, unsigned int count) | |||
| 5666 | static void | 5663 | static void |
| 5667 | check_windows_init_file (void) | 5664 | check_windows_init_file (void) |
| 5668 | { | 5665 | { |
| 5669 | extern int noninteractive, inhibit_window_system; | ||
| 5670 | |||
| 5671 | /* A common indication that Emacs is not installed properly is when | 5666 | /* A common indication that Emacs is not installed properly is when |
| 5672 | it cannot find the Windows installation file. If this file does | 5667 | it cannot find the Windows installation file. If this file does |
| 5673 | not exist in the expected place, tell the user. */ | 5668 | not exist in the expected place, tell the user. */ |
diff --git a/src/w32console.c b/src/w32console.c index 31c4a7c4e5a..3c200405cb5 100644 --- a/src/w32console.c +++ b/src/w32console.c | |||
| @@ -41,12 +41,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 41 | /* from window.c */ | 41 | /* from window.c */ |
| 42 | extern Lisp_Object Frecenter (Lisp_Object); | 42 | extern Lisp_Object Frecenter (Lisp_Object); |
| 43 | 43 | ||
| 44 | /* from keyboard.c */ | ||
| 45 | extern int detect_input_pending (void); | ||
| 46 | |||
| 47 | /* from sysdep.c */ | ||
| 48 | extern int read_input_pending (void); | ||
| 49 | |||
| 50 | static void w32con_move_cursor (struct frame *f, int row, int col); | 44 | static void w32con_move_cursor (struct frame *f, int row, int col); |
| 51 | static void w32con_clear_to_end (struct frame *f); | 45 | static void w32con_clear_to_end (struct frame *f); |
| 52 | static void w32con_clear_frame (struct frame *f); | 46 | static void w32con_clear_frame (struct frame *f); |
| @@ -277,9 +271,6 @@ w32con_insert_glyphs (struct frame *f, register struct glyph *start, | |||
| 277 | } | 271 | } |
| 278 | } | 272 | } |
| 279 | 273 | ||
| 280 | extern unsigned char *encode_terminal_code (struct glyph *, int, | ||
| 281 | struct coding_system *); | ||
| 282 | |||
| 283 | static void | 274 | static void |
| 284 | w32con_write_glyphs (struct frame *f, register struct glyph *string, | 275 | w32con_write_glyphs (struct frame *f, register struct glyph *string, |
| 285 | register int len) | 276 | register int len) |
diff --git a/src/w32fns.c b/src/w32fns.c index 09442d41e14..0c899cdceff 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -80,10 +80,6 @@ extern void w32_menu_display_help (HWND, HMENU, UINT, UINT); | |||
| 80 | extern void w32_free_menu_strings (HWND); | 80 | extern void w32_free_menu_strings (HWND); |
| 81 | extern const char *map_w32_filename (const char *, const char **); | 81 | extern const char *map_w32_filename (const char *, const char **); |
| 82 | 82 | ||
| 83 | extern int quit_char; | ||
| 84 | |||
| 85 | extern const char *const lispy_function_keys[]; | ||
| 86 | |||
| 87 | /* If non-zero, a w32 timer that, when it expires, displays an | 83 | /* If non-zero, a w32 timer that, when it expires, displays an |
| 88 | hourglass cursor on all frames. */ | 84 | hourglass cursor on all frames. */ |
| 89 | static unsigned hourglass_timer = 0; | 85 | static unsigned hourglass_timer = 0; |
| @@ -187,18 +183,10 @@ unsigned int msh_mousewheel = 0; | |||
| 187 | #define MENU_FREE_DELAY 1000 | 183 | #define MENU_FREE_DELAY 1000 |
| 188 | static unsigned menu_free_timer = 0; | 184 | static unsigned menu_free_timer = 0; |
| 189 | 185 | ||
| 190 | extern Lisp_Object Qtooltip; | ||
| 191 | |||
| 192 | #ifdef GLYPH_DEBUG | 186 | #ifdef GLYPH_DEBUG |
| 193 | int image_cache_refcount, dpyinfo_refcount; | 187 | int image_cache_refcount, dpyinfo_refcount; |
| 194 | #endif | 188 | #endif |
| 195 | 189 | ||
| 196 | |||
| 197 | extern HWND w32_system_caret_hwnd; | ||
| 198 | |||
| 199 | extern int w32_system_caret_height; | ||
| 200 | extern int w32_system_caret_x; | ||
| 201 | extern int w32_system_caret_y; | ||
| 202 | static HWND w32_visible_system_caret_hwnd; | 190 | static HWND w32_visible_system_caret_hwnd; |
| 203 | 191 | ||
| 204 | /* From w32menu.c */ | 192 | /* From w32menu.c */ |
| @@ -5851,7 +5839,6 @@ Value is t if tooltip was open, nil otherwise. */) | |||
| 5851 | /*********************************************************************** | 5839 | /*********************************************************************** |
| 5852 | File selection dialog | 5840 | File selection dialog |
| 5853 | ***********************************************************************/ | 5841 | ***********************************************************************/ |
| 5854 | extern Lisp_Object Qfile_name_history; | ||
| 5855 | 5842 | ||
| 5856 | /* Callback for altering the behavior of the Open File dialog. | 5843 | /* Callback for altering the behavior of the Open File dialog. |
| 5857 | Makes the Filename text field contain "Current Directory" and be | 5844 | Makes the Filename text field contain "Current Directory" and be |
| @@ -5899,7 +5886,7 @@ file_dialog_callback (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) | |||
| 5899 | no man's land and the user will be unable to tab through the | 5886 | no man's land and the user will be unable to tab through the |
| 5900 | dialog box (pressing tab will only result in a beep). | 5887 | dialog box (pressing tab will only result in a beep). |
| 5901 | Avoid that problem by setting focus to the list here. */ | 5888 | Avoid that problem by setting focus to the list here. */ |
| 5902 | if (CDN_INITDONE == notify->hdr.code) | 5889 | if (notify->hdr.code == CDN_INITDONE) |
| 5903 | SetFocus (list); | 5890 | SetFocus (list); |
| 5904 | } | 5891 | } |
| 5905 | else | 5892 | else |
diff --git a/src/w32font.c b/src/w32font.c index aef62f61a3a..40ff0782b88 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -54,8 +54,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 54 | #define JOHAB_CHARSET 130 | 54 | #define JOHAB_CHARSET 130 |
| 55 | #endif | 55 | #endif |
| 56 | 56 | ||
| 57 | extern struct font_driver w32font_driver; | ||
| 58 | |||
| 59 | Lisp_Object Qgdi; | 57 | Lisp_Object Qgdi; |
| 60 | Lisp_Object Quniscribe; | 58 | Lisp_Object Quniscribe; |
| 61 | static Lisp_Object QCformat; | 59 | static Lisp_Object QCformat; |
| @@ -64,7 +62,6 @@ static Lisp_Object Qserif, Qscript, Qdecorative; | |||
| 64 | static Lisp_Object Qraster, Qoutline, Qunknown; | 62 | static Lisp_Object Qraster, Qoutline, Qunknown; |
| 65 | 63 | ||
| 66 | /* antialiasing */ | 64 | /* antialiasing */ |
| 67 | extern Lisp_Object QCantialias, QCotf, QClang; /* defined in font.c */ | ||
| 68 | extern Lisp_Object Qnone; /* reuse from w32fns.c */ | 65 | extern Lisp_Object Qnone; /* reuse from w32fns.c */ |
| 69 | static Lisp_Object Qstandard, Qsubpixel, Qnatural; | 66 | static Lisp_Object Qstandard, Qsubpixel, Qnatural; |
| 70 | 67 | ||
diff --git a/src/w32inevt.c b/src/w32inevt.c index d0b097100fd..c4858dea908 100644 --- a/src/w32inevt.c +++ b/src/w32inevt.c | |||
| @@ -40,18 +40,15 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 40 | #include "w32heap.h" | 40 | #include "w32heap.h" |
| 41 | #include "w32term.h" | 41 | #include "w32term.h" |
| 42 | 42 | ||
| 43 | /* stdin, from ntterm */ | 43 | /* stdin, from w32console.c */ |
| 44 | extern HANDLE keyboard_handle; | 44 | extern HANDLE keyboard_handle; |
| 45 | 45 | ||
| 46 | /* Info for last mouse motion */ | 46 | /* Info for last mouse motion */ |
| 47 | static COORD movement_pos; | 47 | static COORD movement_pos; |
| 48 | static DWORD movement_time; | 48 | static DWORD movement_time; |
| 49 | 49 | ||
| 50 | /* from keyboard.c */ | 50 | /* from w32fns.c */ |
| 51 | extern void reinvoke_input_signal (void); | ||
| 52 | |||
| 53 | extern unsigned int map_keypad_keys (unsigned int, unsigned int); | 51 | extern unsigned int map_keypad_keys (unsigned int, unsigned int); |
| 54 | |||
| 55 | extern unsigned int w32_key_to_modifier (int key); | 52 | extern unsigned int w32_key_to_modifier (int key); |
| 56 | 53 | ||
| 57 | /* Event queue */ | 54 | /* Event queue */ |
| @@ -261,8 +258,6 @@ w32_kbd_patch_key (KEY_EVENT_RECORD *event) | |||
| 261 | } | 258 | } |
| 262 | 259 | ||
| 263 | 260 | ||
| 264 | extern const char *const lispy_function_keys[]; | ||
| 265 | |||
| 266 | static int faked_key = 0; | 261 | static int faked_key = 0; |
| 267 | 262 | ||
| 268 | /* return code -1 means that event_queue_ptr won't be incremented. | 263 | /* return code -1 means that event_queue_ptr won't be incremented. |
diff --git a/src/w32menu.c b/src/w32menu.c index 92447eb9fae..a2e62f24f6a 100644 --- a/src/w32menu.c +++ b/src/w32menu.c | |||
| @@ -84,14 +84,6 @@ MessageBoxW_Proc unicode_message_box = NULL; | |||
| 84 | 84 | ||
| 85 | Lisp_Object Qdebug_on_next_call; | 85 | Lisp_Object Qdebug_on_next_call; |
| 86 | 86 | ||
| 87 | extern Lisp_Object Qmenu_bar; | ||
| 88 | |||
| 89 | extern Lisp_Object QCtoggle, QCradio; | ||
| 90 | |||
| 91 | extern Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map; | ||
| 92 | |||
| 93 | extern Lisp_Object Qmenu_bar_update_hook; | ||
| 94 | |||
| 95 | void set_frame_menubar (FRAME_PTR, int, int); | 87 | void set_frame_menubar (FRAME_PTR, int, int); |
| 96 | 88 | ||
| 97 | #ifdef HAVE_DIALOGS | 89 | #ifdef HAVE_DIALOGS |
diff --git a/src/w32proc.c b/src/w32proc.c index bb8b428ffe4..e94d9aa3254 100644 --- a/src/w32proc.c +++ b/src/w32proc.c | |||
| @@ -67,8 +67,6 @@ extern BOOL WINAPI IsValidLocale (LCID, DWORD); | |||
| 67 | + ((DWORD)(var) - (section)->VirtualAddress) \ | 67 | + ((DWORD)(var) - (section)->VirtualAddress) \ |
| 68 | + (filedata).file_base)) | 68 | + (filedata).file_base)) |
| 69 | 69 | ||
| 70 | extern Lisp_Object Qlocal; | ||
| 71 | |||
| 72 | Lisp_Object Qhigh, Qlow; | 70 | Lisp_Object Qhigh, Qlow; |
| 73 | 71 | ||
| 74 | #ifdef EMACSDEBUG | 72 | #ifdef EMACSDEBUG |
| @@ -1053,7 +1051,7 @@ sys_spawnve (int mode, char *cmdname, char **argv, char **envp) | |||
| 1053 | detect that we were woken up by C-g, we return -1 with errno set to | 1051 | detect that we were woken up by C-g, we return -1 with errno set to |
| 1054 | EINTR as on Unix. */ | 1052 | EINTR as on Unix. */ |
| 1055 | 1053 | ||
| 1056 | /* From ntterm.c */ | 1054 | /* From w32console.c */ |
| 1057 | extern HANDLE keyboard_handle; | 1055 | extern HANDLE keyboard_handle; |
| 1058 | 1056 | ||
| 1059 | /* From w32xfns.c */ | 1057 | /* From w32xfns.c */ |
| @@ -1559,8 +1557,6 @@ sys_kill (int pid, int sig) | |||
| 1559 | return rc; | 1557 | return rc; |
| 1560 | } | 1558 | } |
| 1561 | 1559 | ||
| 1562 | /* extern int report_file_error (char *, Lisp_Object); */ | ||
| 1563 | |||
| 1564 | /* The following two routines are used to manipulate stdin, stdout, and | 1560 | /* The following two routines are used to manipulate stdin, stdout, and |
| 1565 | stderr of our child processes. | 1561 | stderr of our child processes. |
| 1566 | 1562 | ||
| @@ -1660,7 +1656,7 @@ set_process_dir (char * dir) | |||
| 1660 | dial-up users to only be connected when they actually need to use | 1656 | dial-up users to only be connected when they actually need to use |
| 1661 | socket services. */ | 1657 | socket services. */ |
| 1662 | 1658 | ||
| 1663 | /* From nt.c */ | 1659 | /* From w32.c */ |
| 1664 | extern HANDLE winsock_lib; | 1660 | extern HANDLE winsock_lib; |
| 1665 | extern BOOL term_winsock (void); | 1661 | extern BOOL term_winsock (void); |
| 1666 | extern BOOL init_winsock (int load_now); | 1662 | extern BOOL init_winsock (int load_now); |
diff --git a/src/w32select.c b/src/w32select.c index 23d5fb68c77..ef0cb3adc24 100644 --- a/src/w32select.c +++ b/src/w32select.c | |||
| @@ -78,7 +78,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 78 | #include "w32term.h" /* for all of the w32 includes */ | 78 | #include "w32term.h" /* for all of the w32 includes */ |
| 79 | #include "w32heap.h" /* os_subtype */ | 79 | #include "w32heap.h" /* os_subtype */ |
| 80 | #include "blockinput.h" | 80 | #include "blockinput.h" |
| 81 | #include "keyboard.h" /* cmd_error_internal() */ | ||
| 82 | #include "charset.h" | 81 | #include "charset.h" |
| 83 | #include "coding.h" | 82 | #include "coding.h" |
| 84 | #include "character.h" | 83 | #include "character.h" |
| @@ -391,6 +390,7 @@ run_protected (Lisp_Object (*code) (Lisp_Object), Lisp_Object arg) | |||
| 391 | with global variables and calling strange looking functions. Is | 390 | with global variables and calling strange looking functions. Is |
| 392 | this really the right way to run Lisp callbacks? */ | 391 | this really the right way to run Lisp callbacks? */ |
| 393 | 392 | ||
| 393 | extern int waiting_for_input; /* from keyboard.c */ | ||
| 394 | int owfi; | 394 | int owfi; |
| 395 | 395 | ||
| 396 | BLOCK_INPUT; | 396 | BLOCK_INPUT; |
diff --git a/src/w32term.c b/src/w32term.c index 67e853f21f0..f31c4e90e77 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -88,8 +88,6 @@ extern void free_frame_menubar (struct frame *); | |||
| 88 | extern int w32_codepage_for_font (char *fontname); | 88 | extern int w32_codepage_for_font (char *fontname); |
| 89 | extern Cursor w32_load_cursor (LPCTSTR name); | 89 | extern Cursor w32_load_cursor (LPCTSTR name); |
| 90 | 90 | ||
| 91 | extern Lisp_Object Vwindow_system; | ||
| 92 | |||
| 93 | #define x_any_window_to_frame x_window_to_frame | 91 | #define x_any_window_to_frame x_window_to_frame |
| 94 | #define x_top_window_to_frame x_window_to_frame | 92 | #define x_top_window_to_frame x_window_to_frame |
| 95 | 93 | ||
| @@ -138,13 +136,6 @@ BOOL (WINAPI *pfnSetLayeredWindowAttributes) (HWND, COLORREF, BYTE, DWORD); | |||
| 138 | #define WS_EX_LAYERED 0x80000 | 136 | #define WS_EX_LAYERED 0x80000 |
| 139 | #endif | 137 | #endif |
| 140 | 138 | ||
| 141 | /* Frame being updated by update_frame. This is declared in term.c. | ||
| 142 | This is set by update_begin and looked at by all the | ||
| 143 | w32 functions. It is zero while not inside an update. | ||
| 144 | In that case, the w32 functions assume that `SELECTED_FRAME ()' | ||
| 145 | is the frame to apply to. */ | ||
| 146 | extern struct frame *updating_frame; | ||
| 147 | |||
| 148 | /* This is a frame waiting to be autoraised, within w32_read_socket. */ | 139 | /* This is a frame waiting to be autoraised, within w32_read_socket. */ |
| 149 | struct frame *pending_autoraise_frame; | 140 | struct frame *pending_autoraise_frame; |
| 150 | 141 | ||
| @@ -2536,8 +2527,7 @@ x_delete_glyphs (struct frame *f, register int n) | |||
| 2536 | } | 2527 | } |
| 2537 | 2528 | ||
| 2538 | 2529 | ||
| 2539 | /* Clear entire frame. If updating_frame is non-null, clear that | 2530 | /* Clear entire frame. */ |
| 2540 | frame. Otherwise clear the selected frame. */ | ||
| 2541 | 2531 | ||
| 2542 | static void | 2532 | static void |
| 2543 | x_clear_frame (struct frame *f) | 2533 | x_clear_frame (struct frame *f) |
| @@ -6060,7 +6050,7 @@ w32_create_terminal (struct w32_display_info *dpyinfo) | |||
| 6060 | terminal->mouse_position_hook = w32_mouse_position; | 6050 | terminal->mouse_position_hook = w32_mouse_position; |
| 6061 | terminal->frame_rehighlight_hook = w32_frame_rehighlight; | 6051 | terminal->frame_rehighlight_hook = w32_frame_rehighlight; |
| 6062 | terminal->frame_raise_lower_hook = w32_frame_raise_lower; | 6052 | terminal->frame_raise_lower_hook = w32_frame_raise_lower; |
| 6063 | // terminal->fullscreen_hook = XTfullscreen_hook; | 6053 | /* terminal->fullscreen_hook = XTfullscreen_hook; */ |
| 6064 | terminal->set_vertical_scroll_bar_hook = w32_set_vertical_scroll_bar; | 6054 | terminal->set_vertical_scroll_bar_hook = w32_set_vertical_scroll_bar; |
| 6065 | terminal->condemn_scroll_bars_hook = w32_condemn_scroll_bars; | 6055 | terminal->condemn_scroll_bars_hook = w32_condemn_scroll_bars; |
| 6066 | terminal->redeem_scroll_bar_hook = w32_redeem_scroll_bar; | 6056 | terminal->redeem_scroll_bar_hook = w32_redeem_scroll_bar; |
diff --git a/src/w32term.h b/src/w32term.h index c79352a8db8..cf6751b7d63 100644 --- a/src/w32term.h +++ b/src/w32term.h | |||
| @@ -547,7 +547,7 @@ do { \ | |||
| 547 | #define WM_APPCOMMAND 0x319 | 547 | #define WM_APPCOMMAND 0x319 |
| 548 | #define GET_APPCOMMAND_LPARAM(lParam) (HIWORD(lParam) & 0x7fff) | 548 | #define GET_APPCOMMAND_LPARAM(lParam) (HIWORD(lParam) & 0x7fff) |
| 549 | #endif | 549 | #endif |
| 550 | #ifndef WM_UNICHAR | 550 | #ifndef WM_UNICHAR |
| 551 | #define WM_UNICHAR 0x109 | 551 | #define WM_UNICHAR 0x109 |
| 552 | #endif | 552 | #endif |
| 553 | #ifndef UNICODE_NOCHAR | 553 | #ifndef UNICODE_NOCHAR |
| @@ -697,3 +697,7 @@ typedef BOOL (WINAPI * AppendMenuW_Proc) ( | |||
| 697 | IN UINT_PTR, | 697 | IN UINT_PTR, |
| 698 | IN LPCWSTR); | 698 | IN LPCWSTR); |
| 699 | 699 | ||
| 700 | extern HWND w32_system_caret_hwnd; | ||
| 701 | extern int w32_system_caret_height; | ||
| 702 | extern int w32_system_caret_x; | ||
| 703 | extern int w32_system_caret_y; | ||
diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c index 319f934e3bb..39d1ee5c851 100644 --- a/src/w32uniscribe.c +++ b/src/w32uniscribe.c | |||
| @@ -52,10 +52,6 @@ int uniscribe_available = 0; | |||
| 52 | extern Lisp_Object Quniscribe; | 52 | extern Lisp_Object Quniscribe; |
| 53 | extern Lisp_Object Qopentype; | 53 | extern Lisp_Object Qopentype; |
| 54 | 54 | ||
| 55 | extern int initialized; | ||
| 56 | |||
| 57 | extern struct font_driver uniscribe_font_driver; | ||
| 58 | |||
| 59 | /* EnumFontFamiliesEx callback. */ | 55 | /* EnumFontFamiliesEx callback. */ |
| 60 | static int CALLBACK add_opentype_font_name_to_list (ENUMLOGFONTEX *, | 56 | static int CALLBACK add_opentype_font_name_to_list (ENUMLOGFONTEX *, |
| 61 | NEWTEXTMETRICEX *, | 57 | NEWTEXTMETRICEX *, |