diff options
| author | Juanma Barranquero | 2010-07-06 16:22:29 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-07-06 16:22:29 +0200 |
| commit | b56ceb92bf4d470af2e9172d1fcd4d85232c40a6 (patch) | |
| tree | 50ab60b4715be45ed671c386c5b9336b45443539 /src/w32fns.c | |
| parent | 7af07b967171736a35e0af8b6ecf6feb072184dc (diff) | |
| download | emacs-b56ceb92bf4d470af2e9172d1fcd4d85232c40a6.tar.gz emacs-b56ceb92bf4d470af2e9172d1fcd4d85232c40a6.zip | |
src/w32*.c: Convert function definitions to standard C.
Diffstat (limited to 'src/w32fns.c')
| -rw-r--r-- | src/w32fns.c | 265 |
1 files changed, 84 insertions, 181 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index f371bd36fa5..ddb8e76d7fc 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -69,11 +69,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 69 | #define FOF_NO_CONNECTED_ELEMENTS 0x2000 | 69 | #define FOF_NO_CONNECTED_ELEMENTS 0x2000 |
| 70 | #endif | 70 | #endif |
| 71 | 71 | ||
| 72 | void syms_of_w32fns (); | 72 | void syms_of_w32fns (void); |
| 73 | void globals_of_w32fns (); | 73 | void globals_of_w32fns (void); |
| 74 | 74 | ||
| 75 | extern void free_frame_menubar (); | 75 | extern void free_frame_menubar (struct frame *); |
| 76 | extern double atof (); | 76 | extern double atof (const char *); |
| 77 | extern int w32_console_toggle_lock_key (int, Lisp_Object); | 77 | extern int w32_console_toggle_lock_key (int, Lisp_Object); |
| 78 | extern void w32_menu_display_help (HWND, HMENU, UINT, UINT); | 78 | extern void w32_menu_display_help (HWND, HMENU, UINT, UINT); |
| 79 | extern void w32_free_menu_strings (HWND); | 79 | extern void w32_free_menu_strings (HWND); |
| @@ -316,7 +316,7 @@ extern HMENU current_popup_menu; | |||
| 316 | static int menubar_in_use = 0; | 316 | static int menubar_in_use = 0; |
| 317 | 317 | ||
| 318 | /* From w32uniscribe.c */ | 318 | /* From w32uniscribe.c */ |
| 319 | extern void syms_of_w32uniscribe (); | 319 | extern void syms_of_w32uniscribe (void); |
| 320 | extern int uniscribe_available; | 320 | extern int uniscribe_available; |
| 321 | 321 | ||
| 322 | /* Function prototypes for hourglass support. */ | 322 | /* Function prototypes for hourglass support. */ |
| @@ -327,7 +327,7 @@ static void w32_hide_hourglass (void); | |||
| 327 | 327 | ||
| 328 | /* Error if we are not connected to MS-Windows. */ | 328 | /* Error if we are not connected to MS-Windows. */ |
| 329 | void | 329 | void |
| 330 | check_w32 () | 330 | check_w32 (void) |
| 331 | { | 331 | { |
| 332 | if (! w32_in_use) | 332 | if (! w32_in_use) |
| 333 | error ("MS-Windows not in use or not initialized"); | 333 | error ("MS-Windows not in use or not initialized"); |
| @@ -337,7 +337,7 @@ check_w32 () | |||
| 337 | You should not call this unless HAVE_MENUS is defined. */ | 337 | You should not call this unless HAVE_MENUS is defined. */ |
| 338 | 338 | ||
| 339 | int | 339 | int |
| 340 | have_menus_p () | 340 | have_menus_p (void) |
| 341 | { | 341 | { |
| 342 | return w32_in_use; | 342 | return w32_in_use; |
| 343 | } | 343 | } |
| @@ -346,8 +346,7 @@ have_menus_p () | |||
| 346 | and checking validity for W32. */ | 346 | and checking validity for W32. */ |
| 347 | 347 | ||
| 348 | FRAME_PTR | 348 | FRAME_PTR |
| 349 | check_x_frame (frame) | 349 | check_x_frame (Lisp_Object frame) |
| 350 | Lisp_Object frame; | ||
| 351 | { | 350 | { |
| 352 | FRAME_PTR f; | 351 | FRAME_PTR f; |
| 353 | 352 | ||
| @@ -365,8 +364,7 @@ check_x_frame (frame) | |||
| 365 | the first display on the list. */ | 364 | the first display on the list. */ |
| 366 | 365 | ||
| 367 | struct w32_display_info * | 366 | struct w32_display_info * |
| 368 | check_x_display_info (frame) | 367 | check_x_display_info (Lisp_Object frame) |
| 369 | Lisp_Object frame; | ||
| 370 | { | 368 | { |
| 371 | if (NILP (frame)) | 369 | if (NILP (frame)) |
| 372 | { | 370 | { |
| @@ -397,9 +395,7 @@ check_x_display_info (frame) | |||
| 397 | /* This function can be called during GC, so use GC_xxx type test macros. */ | 395 | /* This function can be called during GC, so use GC_xxx type test macros. */ |
| 398 | 396 | ||
| 399 | struct frame * | 397 | struct frame * |
| 400 | x_window_to_frame (dpyinfo, wdesc) | 398 | x_window_to_frame (struct w32_display_info *dpyinfo, HWND wdesc) |
| 401 | struct w32_display_info *dpyinfo; | ||
| 402 | HWND wdesc; | ||
| 403 | { | 399 | { |
| 404 | Lisp_Object tail, frame; | 400 | Lisp_Object tail, frame; |
| 405 | struct frame *f; | 401 | struct frame *f; |
| @@ -449,9 +445,7 @@ static void x_edge_detection (struct frame *, struct image *, Lisp_Object, | |||
| 449 | not Emacs's own window. */ | 445 | not Emacs's own window. */ |
| 450 | 446 | ||
| 451 | void | 447 | void |
| 452 | x_real_positions (f, xptr, yptr) | 448 | x_real_positions (FRAME_PTR f, int *xptr, int *yptr) |
| 453 | FRAME_PTR f; | ||
| 454 | int *xptr, *yptr; | ||
| 455 | { | 449 | { |
| 456 | POINT pt; | 450 | POINT pt; |
| 457 | RECT rect; | 451 | RECT rect; |
| @@ -790,8 +784,7 @@ DEFUN ("w32-default-color-map", Fw32_default_color_map, Sw32_default_color_map, | |||
| 790 | } | 784 | } |
| 791 | 785 | ||
| 792 | static Lisp_Object | 786 | static Lisp_Object |
| 793 | w32_to_x_color (rgb) | 787 | w32_to_x_color (Lisp_Object rgb) |
| 794 | Lisp_Object rgb; | ||
| 795 | { | 788 | { |
| 796 | Lisp_Object color; | 789 | Lisp_Object color; |
| 797 | 790 | ||
| @@ -810,8 +803,7 @@ w32_to_x_color (rgb) | |||
| 810 | } | 803 | } |
| 811 | 804 | ||
| 812 | static Lisp_Object | 805 | static Lisp_Object |
| 813 | w32_color_map_lookup (colorname) | 806 | w32_color_map_lookup (char *colorname) |
| 814 | char *colorname; | ||
| 815 | { | 807 | { |
| 816 | Lisp_Object tail, ret = Qnil; | 808 | Lisp_Object tail, ret = Qnil; |
| 817 | 809 | ||
| @@ -843,8 +835,7 @@ w32_color_map_lookup (colorname) | |||
| 843 | 835 | ||
| 844 | 836 | ||
| 845 | static void | 837 | static void |
| 846 | add_system_logical_colors_to_map (system_colors) | 838 | add_system_logical_colors_to_map (Lisp_Object *system_colors) |
| 847 | Lisp_Object *system_colors; | ||
| 848 | { | 839 | { |
| 849 | HKEY colors_key; | 840 | HKEY colors_key; |
| 850 | 841 | ||
| @@ -892,8 +883,7 @@ add_system_logical_colors_to_map (system_colors) | |||
| 892 | 883 | ||
| 893 | 884 | ||
| 894 | static Lisp_Object | 885 | static Lisp_Object |
| 895 | x_to_w32_color (colorname) | 886 | x_to_w32_color (char * colorname) |
| 896 | char * colorname; | ||
| 897 | { | 887 | { |
| 898 | register Lisp_Object ret = Qnil; | 888 | register Lisp_Object ret = Qnil; |
| 899 | 889 | ||
| @@ -1204,9 +1194,7 @@ w32_unmap_color (FRAME_PTR f, COLORREF color) | |||
| 1204 | /* Gamma-correct COLOR on frame F. */ | 1194 | /* Gamma-correct COLOR on frame F. */ |
| 1205 | 1195 | ||
| 1206 | void | 1196 | void |
| 1207 | gamma_correct (f, color) | 1197 | gamma_correct (struct frame *f, COLORREF *color) |
| 1208 | struct frame *f; | ||
| 1209 | COLORREF *color; | ||
| 1210 | { | 1198 | { |
| 1211 | if (f->gamma) | 1199 | if (f->gamma) |
| 1212 | { | 1200 | { |
| @@ -1223,11 +1211,7 @@ gamma_correct (f, color) | |||
| 1223 | If ALLOC is nonzero, allocate a new colormap cell. */ | 1211 | If ALLOC is nonzero, allocate a new colormap cell. */ |
| 1224 | 1212 | ||
| 1225 | int | 1213 | int |
| 1226 | w32_defined_color (f, color, color_def, alloc) | 1214 | w32_defined_color (FRAME_PTR f, char *color, XColor *color_def, int alloc) |
| 1227 | FRAME_PTR f; | ||
| 1228 | char *color; | ||
| 1229 | XColor *color_def; | ||
| 1230 | int alloc; | ||
| 1231 | { | 1215 | { |
| 1232 | register Lisp_Object tem; | 1216 | register Lisp_Object tem; |
| 1233 | COLORREF w32_color_ref; | 1217 | COLORREF w32_color_ref; |
| @@ -1299,10 +1283,7 @@ w32_defined_color (f, color, color_def, alloc) | |||
| 1299 | ARG says. */ | 1283 | ARG says. */ |
| 1300 | 1284 | ||
| 1301 | int | 1285 | int |
| 1302 | x_decode_color (f, arg, def) | 1286 | x_decode_color (FRAME_PTR f, Lisp_Object arg, int def) |
| 1303 | FRAME_PTR f; | ||
| 1304 | Lisp_Object arg; | ||
| 1305 | int def; | ||
| 1306 | { | 1287 | { |
| 1307 | XColor cdef; | 1288 | XColor cdef; |
| 1308 | 1289 | ||
| @@ -1336,9 +1317,7 @@ x_decode_color (f, arg, def) | |||
| 1336 | in the standard place; do not attempt to change the window. */ | 1317 | in the standard place; do not attempt to change the window. */ |
| 1337 | 1318 | ||
| 1338 | void | 1319 | void |
| 1339 | x_set_foreground_color (f, arg, oldval) | 1320 | x_set_foreground_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) |
| 1340 | struct frame *f; | ||
| 1341 | Lisp_Object arg, oldval; | ||
| 1342 | { | 1321 | { |
| 1343 | struct w32_output *x = f->output_data.w32; | 1322 | struct w32_output *x = f->output_data.w32; |
| 1344 | PIX_TYPE fg, old_fg; | 1323 | PIX_TYPE fg, old_fg; |
| @@ -1359,9 +1338,7 @@ x_set_foreground_color (f, arg, oldval) | |||
| 1359 | } | 1338 | } |
| 1360 | 1339 | ||
| 1361 | void | 1340 | void |
| 1362 | x_set_background_color (f, arg, oldval) | 1341 | x_set_background_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) |
| 1363 | struct frame *f; | ||
| 1364 | Lisp_Object arg, oldval; | ||
| 1365 | { | 1342 | { |
| 1366 | FRAME_BACKGROUND_PIXEL (f) | 1343 | FRAME_BACKGROUND_PIXEL (f) |
| 1367 | = x_decode_color (f, arg, WHITE_PIX_DEFAULT (f)); | 1344 | = x_decode_color (f, arg, WHITE_PIX_DEFAULT (f)); |
| @@ -1379,9 +1356,7 @@ x_set_background_color (f, arg, oldval) | |||
| 1379 | } | 1356 | } |
| 1380 | 1357 | ||
| 1381 | void | 1358 | void |
| 1382 | x_set_mouse_color (f, arg, oldval) | 1359 | x_set_mouse_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) |
| 1383 | struct frame *f; | ||
| 1384 | Lisp_Object arg, oldval; | ||
| 1385 | { | 1360 | { |
| 1386 | Cursor cursor, nontext_cursor, mode_cursor, hand_cursor; | 1361 | Cursor cursor, nontext_cursor, mode_cursor, hand_cursor; |
| 1387 | int count; | 1362 | int count; |
| @@ -1528,9 +1503,7 @@ x_set_mouse_color (f, arg, oldval) | |||
| 1528 | } | 1503 | } |
| 1529 | 1504 | ||
| 1530 | void | 1505 | void |
| 1531 | x_set_cursor_color (f, arg, oldval) | 1506 | x_set_cursor_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) |
| 1532 | struct frame *f; | ||
| 1533 | Lisp_Object arg, oldval; | ||
| 1534 | { | 1507 | { |
| 1535 | unsigned long fore_pixel, pixel; | 1508 | unsigned long fore_pixel, pixel; |
| 1536 | 1509 | ||
| @@ -1577,9 +1550,7 @@ x_set_cursor_color (f, arg, oldval) | |||
| 1577 | F has a window. */ | 1550 | F has a window. */ |
| 1578 | 1551 | ||
| 1579 | void | 1552 | void |
| 1580 | x_set_border_pixel (f, pix) | 1553 | x_set_border_pixel (struct frame *f, int pix) |
| 1581 | struct frame *f; | ||
| 1582 | int pix; | ||
| 1583 | { | 1554 | { |
| 1584 | 1555 | ||
| 1585 | f->output_data.w32->border_pixel = pix; | 1556 | f->output_data.w32->border_pixel = pix; |
| @@ -1598,9 +1569,7 @@ x_set_border_pixel (f, pix) | |||
| 1598 | F has a window; it must be redone when the window is created. */ | 1569 | F has a window; it must be redone when the window is created. */ |
| 1599 | 1570 | ||
| 1600 | void | 1571 | void |
| 1601 | x_set_border_color (f, arg, oldval) | 1572 | x_set_border_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) |
| 1602 | struct frame *f; | ||
| 1603 | Lisp_Object arg, oldval; | ||
| 1604 | { | 1573 | { |
| 1605 | int pix; | 1574 | int pix; |
| 1606 | 1575 | ||
| @@ -1612,9 +1581,7 @@ x_set_border_color (f, arg, oldval) | |||
| 1612 | 1581 | ||
| 1613 | 1582 | ||
| 1614 | void | 1583 | void |
| 1615 | x_set_cursor_type (f, arg, oldval) | 1584 | x_set_cursor_type (FRAME_PTR f, Lisp_Object arg, Lisp_Object oldval) |
| 1616 | FRAME_PTR f; | ||
| 1617 | Lisp_Object arg, oldval; | ||
| 1618 | { | 1585 | { |
| 1619 | set_frame_cursor_types (f, arg); | 1586 | set_frame_cursor_types (f, arg); |
| 1620 | 1587 | ||
| @@ -1623,9 +1590,7 @@ x_set_cursor_type (f, arg, oldval) | |||
| 1623 | } | 1590 | } |
| 1624 | 1591 | ||
| 1625 | void | 1592 | void |
| 1626 | x_set_icon_type (f, arg, oldval) | 1593 | x_set_icon_type (struct frame *f, Lisp_Object arg, Lisp_Object oldval) |
| 1627 | struct frame *f; | ||
| 1628 | Lisp_Object arg, oldval; | ||
| 1629 | { | 1594 | { |
| 1630 | int result; | 1595 | int result; |
| 1631 | 1596 | ||
| @@ -1652,9 +1617,7 @@ x_set_icon_type (f, arg, oldval) | |||
| 1652 | } | 1617 | } |
| 1653 | 1618 | ||
| 1654 | void | 1619 | void |
| 1655 | x_set_icon_name (f, arg, oldval) | 1620 | x_set_icon_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval) |
| 1656 | struct frame *f; | ||
| 1657 | Lisp_Object arg, oldval; | ||
| 1658 | { | 1621 | { |
| 1659 | if (STRINGP (arg)) | 1622 | if (STRINGP (arg)) |
| 1660 | { | 1623 | { |
| @@ -1702,9 +1665,7 @@ x_set_icon_name (f, arg, oldval) | |||
| 1702 | 1665 | ||
| 1703 | 1666 | ||
| 1704 | void | 1667 | void |
| 1705 | x_set_menu_bar_lines (f, value, oldval) | 1668 | x_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) |
| 1706 | struct frame *f; | ||
| 1707 | Lisp_Object value, oldval; | ||
| 1708 | { | 1669 | { |
| 1709 | int nlines; | 1670 | int nlines; |
| 1710 | int olines = FRAME_MENU_BAR_LINES (f); | 1671 | int olines = FRAME_MENU_BAR_LINES (f); |
| @@ -1747,9 +1708,7 @@ x_set_menu_bar_lines (f, value, oldval) | |||
| 1747 | The frame's height doesn't change. */ | 1708 | The frame's height doesn't change. */ |
| 1748 | 1709 | ||
| 1749 | void | 1710 | void |
| 1750 | x_set_tool_bar_lines (f, value, oldval) | 1711 | x_set_tool_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) |
| 1751 | struct frame *f; | ||
| 1752 | Lisp_Object value, oldval; | ||
| 1753 | { | 1712 | { |
| 1754 | int delta, nlines, root_height; | 1713 | int delta, nlines, root_height; |
| 1755 | Lisp_Object root_window; | 1714 | Lisp_Object root_window; |
| @@ -1829,10 +1788,7 @@ x_set_tool_bar_lines (f, value, oldval) | |||
| 1829 | F->explicit_name is set, ignore the new name; otherwise, set it. */ | 1788 | F->explicit_name is set, ignore the new name; otherwise, set it. */ |
| 1830 | 1789 | ||
| 1831 | void | 1790 | void |
| 1832 | x_set_name (f, name, explicit) | 1791 | x_set_name (struct frame *f, Lisp_Object name, int explicit) |
| 1833 | struct frame *f; | ||
| 1834 | Lisp_Object name; | ||
| 1835 | int explicit; | ||
| 1836 | { | 1792 | { |
| 1837 | /* Make sure that requests from lisp code override requests from | 1793 | /* Make sure that requests from lisp code override requests from |
| 1838 | Emacs redisplay code. */ | 1794 | Emacs redisplay code. */ |
| @@ -1887,9 +1843,7 @@ x_set_name (f, name, explicit) | |||
| 1887 | specified a name for the frame; the name will override any set by the | 1843 | specified a name for the frame; the name will override any set by the |
| 1888 | redisplay code. */ | 1844 | redisplay code. */ |
| 1889 | void | 1845 | void |
| 1890 | x_explicitly_set_name (f, arg, oldval) | 1846 | x_explicitly_set_name (FRAME_PTR f, Lisp_Object arg, Lisp_Object oldval) |
| 1891 | FRAME_PTR f; | ||
| 1892 | Lisp_Object arg, oldval; | ||
| 1893 | { | 1847 | { |
| 1894 | x_set_name (f, arg, 1); | 1848 | x_set_name (f, arg, 1); |
| 1895 | } | 1849 | } |
| @@ -1898,9 +1852,7 @@ x_explicitly_set_name (f, arg, oldval) | |||
| 1898 | name; names set this way will never override names set by the user's | 1852 | name; names set this way will never override names set by the user's |
| 1899 | lisp code. */ | 1853 | lisp code. */ |
| 1900 | void | 1854 | void |
| 1901 | x_implicitly_set_name (f, arg, oldval) | 1855 | x_implicitly_set_name (FRAME_PTR f, Lisp_Object arg, Lisp_Object oldval) |
| 1902 | FRAME_PTR f; | ||
| 1903 | Lisp_Object arg, oldval; | ||
| 1904 | { | 1856 | { |
| 1905 | x_set_name (f, arg, 0); | 1857 | x_set_name (f, arg, 0); |
| 1906 | } | 1858 | } |
| @@ -1909,9 +1861,7 @@ x_implicitly_set_name (f, arg, oldval) | |||
| 1909 | If NAME is nil, use the frame name as the title. */ | 1861 | If NAME is nil, use the frame name as the title. */ |
| 1910 | 1862 | ||
| 1911 | void | 1863 | void |
| 1912 | x_set_title (f, name, old_name) | 1864 | x_set_title (struct frame *f, Lisp_Object name, Lisp_Object old_name) |
| 1913 | struct frame *f; | ||
| 1914 | Lisp_Object name, old_name; | ||
| 1915 | { | 1865 | { |
| 1916 | /* Don't change the title if it's already NAME. */ | 1866 | /* Don't change the title if it's already NAME. */ |
| 1917 | if (EQ (name, f->title)) | 1867 | if (EQ (name, f->title)) |
| @@ -1936,8 +1886,8 @@ x_set_title (f, name, old_name) | |||
| 1936 | } | 1886 | } |
| 1937 | 1887 | ||
| 1938 | 1888 | ||
| 1939 | void x_set_scroll_bar_default_width (f) | 1889 | void |
| 1940 | struct frame *f; | 1890 | x_set_scroll_bar_default_width (struct frame *f) |
| 1941 | { | 1891 | { |
| 1942 | int wid = FRAME_COLUMN_WIDTH (f); | 1892 | int wid = FRAME_COLUMN_WIDTH (f); |
| 1943 | 1893 | ||
| @@ -1965,11 +1915,10 @@ w32_load_cursor (LPCTSTR name) | |||
| 1965 | return cursor; | 1915 | return cursor; |
| 1966 | } | 1916 | } |
| 1967 | 1917 | ||
| 1968 | extern LRESULT CALLBACK w32_wnd_proc (); | 1918 | extern LRESULT CALLBACK w32_wnd_proc (HWND, UINT, WPARAM, LPARAM); |
| 1969 | 1919 | ||
| 1970 | static BOOL | 1920 | static BOOL |
| 1971 | w32_init_class (hinst) | 1921 | w32_init_class (HINSTANCE hinst) |
| 1972 | HINSTANCE hinst; | ||
| 1973 | { | 1922 | { |
| 1974 | WNDCLASS wc; | 1923 | WNDCLASS wc; |
| 1975 | 1924 | ||
| @@ -1988,9 +1937,7 @@ w32_init_class (hinst) | |||
| 1988 | } | 1937 | } |
| 1989 | 1938 | ||
| 1990 | static HWND | 1939 | static HWND |
| 1991 | w32_createscrollbar (f, bar) | 1940 | w32_createscrollbar (struct frame *f, struct scroll_bar * bar) |
| 1992 | struct frame *f; | ||
| 1993 | struct scroll_bar * bar; | ||
| 1994 | { | 1941 | { |
| 1995 | return (CreateWindow ("SCROLLBAR", "", SBS_VERT | WS_CHILD | WS_VISIBLE, | 1942 | return (CreateWindow ("SCROLLBAR", "", SBS_VERT | WS_CHILD | WS_VISIBLE, |
| 1996 | /* Position and size of scroll bar. */ | 1943 | /* Position and size of scroll bar. */ |
| @@ -2005,8 +1952,7 @@ w32_createscrollbar (f, bar) | |||
| 2005 | } | 1952 | } |
| 2006 | 1953 | ||
| 2007 | static void | 1954 | static void |
| 2008 | w32_createwindow (f) | 1955 | w32_createwindow (struct frame *f) |
| 2009 | struct frame *f; | ||
| 2010 | { | 1956 | { |
| 2011 | HWND hwnd; | 1957 | HWND hwnd; |
| 2012 | RECT rect; | 1958 | RECT rect; |
| @@ -2076,12 +2022,7 @@ w32_createwindow (f) | |||
| 2076 | } | 2022 | } |
| 2077 | 2023 | ||
| 2078 | static void | 2024 | static void |
| 2079 | my_post_msg (wmsg, hwnd, msg, wParam, lParam) | 2025 | my_post_msg (W32Msg * wmsg, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |
| 2080 | W32Msg * wmsg; | ||
| 2081 | HWND hwnd; | ||
| 2082 | UINT msg; | ||
| 2083 | WPARAM wParam; | ||
| 2084 | LPARAM lParam; | ||
| 2085 | { | 2026 | { |
| 2086 | wmsg->msg.hwnd = hwnd; | 2027 | wmsg->msg.hwnd = hwnd; |
| 2087 | wmsg->msg.message = msg; | 2028 | wmsg->msg.message = msg; |
| @@ -2175,7 +2116,7 @@ record_keyup (unsigned int wparam, unsigned int lparam) | |||
| 2175 | it regains focus, be conservative and clear all modifiers since | 2116 | it regains focus, be conservative and clear all modifiers since |
| 2176 | we cannot reconstruct the left and right modifier state. */ | 2117 | we cannot reconstruct the left and right modifier state. */ |
| 2177 | static void | 2118 | static void |
| 2178 | reset_modifiers () | 2119 | reset_modifiers (void) |
| 2179 | { | 2120 | { |
| 2180 | SHORT ctrl, alt; | 2121 | SHORT ctrl, alt; |
| 2181 | 2122 | ||
| @@ -2222,7 +2163,7 @@ reset_modifiers () | |||
| 2222 | modifier keys, we know that, if no modifiers are set, then neither | 2163 | modifier keys, we know that, if no modifiers are set, then neither |
| 2223 | the left or right modifier should be set. */ | 2164 | the left or right modifier should be set. */ |
| 2224 | static void | 2165 | static void |
| 2225 | sync_modifiers () | 2166 | sync_modifiers (void) |
| 2226 | { | 2167 | { |
| 2227 | if (!modifiers_recorded) | 2168 | if (!modifiers_recorded) |
| 2228 | return; | 2169 | return; |
| @@ -2308,7 +2249,7 @@ w32_key_to_modifier (int key) | |||
| 2308 | } | 2249 | } |
| 2309 | 2250 | ||
| 2310 | static unsigned int | 2251 | static unsigned int |
| 2311 | w32_get_modifiers () | 2252 | w32_get_modifiers (void) |
| 2312 | { | 2253 | { |
| 2313 | return ((modifier_set (VK_SHIFT) ? shift_modifier : 0) | | 2254 | return ((modifier_set (VK_SHIFT) ? shift_modifier : 0) | |
| 2314 | (modifier_set (VK_CONTROL) ? ctrl_modifier : 0) | | 2255 | (modifier_set (VK_CONTROL) ? ctrl_modifier : 0) | |
| @@ -2325,7 +2266,7 @@ w32_get_modifiers () | |||
| 2325 | and window input. */ | 2266 | and window input. */ |
| 2326 | 2267 | ||
| 2327 | static int | 2268 | static int |
| 2328 | construct_console_modifiers () | 2269 | construct_console_modifiers (void) |
| 2329 | { | 2270 | { |
| 2330 | int mods; | 2271 | int mods; |
| 2331 | 2272 | ||
| @@ -2397,8 +2338,7 @@ static Lisp_Object w32_grabbed_keys; | |||
| 2397 | combinations like Alt-Tab which are used by the system. */ | 2338 | combinations like Alt-Tab which are used by the system. */ |
| 2398 | 2339 | ||
| 2399 | static void | 2340 | static void |
| 2400 | register_hot_keys (hwnd) | 2341 | register_hot_keys (HWND hwnd) |
| 2401 | HWND hwnd; | ||
| 2402 | { | 2342 | { |
| 2403 | Lisp_Object keylist; | 2343 | Lisp_Object keylist; |
| 2404 | 2344 | ||
| @@ -2417,8 +2357,7 @@ register_hot_keys (hwnd) | |||
| 2417 | } | 2357 | } |
| 2418 | 2358 | ||
| 2419 | static void | 2359 | static void |
| 2420 | unregister_hot_keys (hwnd) | 2360 | unregister_hot_keys (HWND hwnd) |
| 2421 | HWND hwnd; | ||
| 2422 | { | 2361 | { |
| 2423 | Lisp_Object keylist; | 2362 | Lisp_Object keylist; |
| 2424 | 2363 | ||
| @@ -2624,7 +2563,7 @@ complete_deferred_msg (HWND hwnd, UINT msg, LRESULT result) | |||
| 2624 | } | 2563 | } |
| 2625 | 2564 | ||
| 2626 | static void | 2565 | static void |
| 2627 | cancel_all_deferred_msgs () | 2566 | cancel_all_deferred_msgs (void) |
| 2628 | { | 2567 | { |
| 2629 | deferred_msg * item; | 2568 | deferred_msg * item; |
| 2630 | 2569 | ||
| @@ -2669,7 +2608,7 @@ w32_msg_worker (void *arg) | |||
| 2669 | } | 2608 | } |
| 2670 | 2609 | ||
| 2671 | static void | 2610 | static void |
| 2672 | signal_user_input () | 2611 | signal_user_input (void) |
| 2673 | { | 2612 | { |
| 2674 | /* Interrupt any lisp that wants to be interrupted by input. */ | 2613 | /* Interrupt any lisp that wants to be interrupted by input. */ |
| 2675 | if (!NILP (Vthrow_on_input)) | 2614 | if (!NILP (Vthrow_on_input)) |
| @@ -2687,13 +2626,9 @@ signal_user_input () | |||
| 2687 | 2626 | ||
| 2688 | 2627 | ||
| 2689 | static void | 2628 | static void |
| 2690 | post_character_message (hwnd, msg, wParam, lParam, modifiers) | 2629 | post_character_message (HWND hwnd, UINT msg, |
| 2691 | HWND hwnd; | 2630 | WPARAM wParam, LPARAM lParam, |
| 2692 | UINT msg; | 2631 | DWORD modifiers) |
| 2693 | WPARAM wParam; | ||
| 2694 | LPARAM lParam; | ||
| 2695 | DWORD modifiers; | ||
| 2696 | |||
| 2697 | { | 2632 | { |
| 2698 | W32Msg wmsg; | 2633 | W32Msg wmsg; |
| 2699 | 2634 | ||
| @@ -2753,11 +2688,7 @@ post_character_message (hwnd, msg, wParam, lParam, modifiers) | |||
| 2753 | /* Main window procedure */ | 2688 | /* Main window procedure */ |
| 2754 | 2689 | ||
| 2755 | LRESULT CALLBACK | 2690 | LRESULT CALLBACK |
| 2756 | w32_wnd_proc (hwnd, msg, wParam, lParam) | 2691 | w32_wnd_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |
| 2757 | HWND hwnd; | ||
| 2758 | UINT msg; | ||
| 2759 | WPARAM wParam; | ||
| 2760 | LPARAM lParam; | ||
| 2761 | { | 2692 | { |
| 2762 | struct frame *f; | 2693 | struct frame *f; |
| 2763 | struct w32_display_info *dpyinfo = &one_w32_display_info; | 2694 | struct w32_display_info *dpyinfo = &one_w32_display_info; |
| @@ -4007,8 +3938,7 @@ w32_wnd_proc (hwnd, msg, wParam, lParam) | |||
| 4007 | } | 3938 | } |
| 4008 | 3939 | ||
| 4009 | static void | 3940 | static void |
| 4010 | my_create_window (f) | 3941 | my_create_window (struct frame * f) |
| 4011 | struct frame * f; | ||
| 4012 | { | 3942 | { |
| 4013 | MSG msg; | 3943 | MSG msg; |
| 4014 | 3944 | ||
| @@ -4023,8 +3953,7 @@ my_create_window (f) | |||
| 4023 | messages for the tooltip. Creating tooltips indirectly also creates | 3953 | messages for the tooltip. Creating tooltips indirectly also creates |
| 4024 | deadlocks when tooltips are created for menu items. */ | 3954 | deadlocks when tooltips are created for menu items. */ |
| 4025 | static void | 3955 | static void |
| 4026 | my_create_tip_window (f) | 3956 | my_create_tip_window (struct frame *f) |
| 4027 | struct frame *f; | ||
| 4028 | { | 3957 | { |
| 4029 | RECT rect; | 3958 | RECT rect; |
| 4030 | 3959 | ||
| @@ -4067,10 +3996,7 @@ my_create_tip_window (f) | |||
| 4067 | /* Create and set up the w32 window for frame F. */ | 3996 | /* Create and set up the w32 window for frame F. */ |
| 4068 | 3997 | ||
| 4069 | static void | 3998 | static void |
| 4070 | w32_window (f, window_prompting, minibuffer_only) | 3999 | w32_window (struct frame *f, long window_prompting, int minibuffer_only) |
| 4071 | struct frame *f; | ||
| 4072 | long window_prompting; | ||
| 4073 | int minibuffer_only; | ||
| 4074 | { | 4000 | { |
| 4075 | BLOCK_INPUT; | 4001 | BLOCK_INPUT; |
| 4076 | 4002 | ||
| @@ -4118,9 +4044,7 @@ w32_window (f, window_prompting, minibuffer_only) | |||
| 4118 | well. */ | 4044 | well. */ |
| 4119 | 4045 | ||
| 4120 | static void | 4046 | static void |
| 4121 | x_icon (f, parms) | 4047 | x_icon (struct frame *f, Lisp_Object parms) |
| 4122 | struct frame *f; | ||
| 4123 | Lisp_Object parms; | ||
| 4124 | { | 4048 | { |
| 4125 | Lisp_Object icon_x, icon_y; | 4049 | Lisp_Object icon_x, icon_y; |
| 4126 | struct w32_display_info *dpyinfo = &one_w32_display_info; | 4050 | struct w32_display_info *dpyinfo = &one_w32_display_info; |
| @@ -4159,8 +4083,7 @@ x_icon (f, parms) | |||
| 4159 | 4083 | ||
| 4160 | 4084 | ||
| 4161 | static void | 4085 | static void |
| 4162 | x_make_gc (f) | 4086 | x_make_gc (struct frame *f) |
| 4163 | struct frame *f; | ||
| 4164 | { | 4087 | { |
| 4165 | XGCValues gc_values; | 4088 | XGCValues gc_values; |
| 4166 | 4089 | ||
| @@ -4193,8 +4116,7 @@ x_make_gc (f) | |||
| 4193 | constructed. */ | 4116 | constructed. */ |
| 4194 | 4117 | ||
| 4195 | static Lisp_Object | 4118 | static Lisp_Object |
| 4196 | unwind_create_frame (frame) | 4119 | unwind_create_frame (Lisp_Object frame) |
| 4197 | Lisp_Object frame; | ||
| 4198 | { | 4120 | { |
| 4199 | struct frame *f = XFRAME (frame); | 4121 | struct frame *f = XFRAME (frame); |
| 4200 | 4122 | ||
| @@ -4219,9 +4141,7 @@ unwind_create_frame (frame) | |||
| 4219 | } | 4141 | } |
| 4220 | 4142 | ||
| 4221 | static void | 4143 | static void |
| 4222 | x_default_font_parameter (f, parms) | 4144 | x_default_font_parameter (struct frame *f, Lisp_Object parms) |
| 4223 | struct frame *f; | ||
| 4224 | Lisp_Object parms; | ||
| 4225 | { | 4145 | { |
| 4226 | struct w32_display_info *dpyinfo = FRAME_W32_DISPLAY_INFO (f); | 4146 | struct w32_display_info *dpyinfo = FRAME_W32_DISPLAY_INFO (f); |
| 4227 | Lisp_Object font_param = x_get_arg (dpyinfo, parms, Qfont, NULL, NULL, | 4147 | Lisp_Object font_param = x_get_arg (dpyinfo, parms, Qfont, NULL, NULL, |
| @@ -4587,8 +4507,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4587 | display info directly because we're called from frame.c, which doesn't | 4507 | display info directly because we're called from frame.c, which doesn't |
| 4588 | know about that structure. */ | 4508 | know about that structure. */ |
| 4589 | Lisp_Object | 4509 | Lisp_Object |
| 4590 | x_get_focus_frame (frame) | 4510 | x_get_focus_frame (struct frame *frame) |
| 4591 | struct frame *frame; | ||
| 4592 | { | 4511 | { |
| 4593 | struct w32_display_info *dpyinfo = FRAME_W32_DISPLAY_INFO (frame); | 4512 | struct w32_display_info *dpyinfo = FRAME_W32_DISPLAY_INFO (frame); |
| 4594 | Lisp_Object xfocus; | 4513 | Lisp_Object xfocus; |
| @@ -4899,36 +4818,31 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 4899 | } | 4818 | } |
| 4900 | 4819 | ||
| 4901 | int | 4820 | int |
| 4902 | x_pixel_width (f) | 4821 | x_pixel_width (register struct frame *f) |
| 4903 | register struct frame *f; | ||
| 4904 | { | 4822 | { |
| 4905 | return FRAME_PIXEL_WIDTH (f); | 4823 | return FRAME_PIXEL_WIDTH (f); |
| 4906 | } | 4824 | } |
| 4907 | 4825 | ||
| 4908 | int | 4826 | int |
| 4909 | x_pixel_height (f) | 4827 | x_pixel_height (register struct frame *f) |
| 4910 | register struct frame *f; | ||
| 4911 | { | 4828 | { |
| 4912 | return FRAME_PIXEL_HEIGHT (f); | 4829 | return FRAME_PIXEL_HEIGHT (f); |
| 4913 | } | 4830 | } |
| 4914 | 4831 | ||
| 4915 | int | 4832 | int |
| 4916 | x_char_width (f) | 4833 | x_char_width (register struct frame *f) |
| 4917 | register struct frame *f; | ||
| 4918 | { | 4834 | { |
| 4919 | return FRAME_COLUMN_WIDTH (f); | 4835 | return FRAME_COLUMN_WIDTH (f); |
| 4920 | } | 4836 | } |
| 4921 | 4837 | ||
| 4922 | int | 4838 | int |
| 4923 | x_char_height (f) | 4839 | x_char_height (register struct frame *f) |
| 4924 | register struct frame *f; | ||
| 4925 | { | 4840 | { |
| 4926 | return FRAME_LINE_HEIGHT (f); | 4841 | return FRAME_LINE_HEIGHT (f); |
| 4927 | } | 4842 | } |
| 4928 | 4843 | ||
| 4929 | int | 4844 | int |
| 4930 | x_screen_planes (f) | 4845 | x_screen_planes (register struct frame *f) |
| 4931 | register struct frame *f; | ||
| 4932 | { | 4846 | { |
| 4933 | return FRAME_W32_DISPLAY_INFO (f)->n_planes; | 4847 | return FRAME_W32_DISPLAY_INFO (f)->n_planes; |
| 4934 | } | 4848 | } |
| @@ -4937,8 +4851,7 @@ x_screen_planes (f) | |||
| 4937 | Open a new connection if necessary. */ | 4851 | Open a new connection if necessary. */ |
| 4938 | 4852 | ||
| 4939 | struct w32_display_info * | 4853 | struct w32_display_info * |
| 4940 | x_display_info_for_name (name) | 4854 | x_display_info_for_name (Lisp_Object name) |
| 4941 | Lisp_Object name; | ||
| 4942 | { | 4855 | { |
| 4943 | Lisp_Object names; | 4856 | Lisp_Object names; |
| 4944 | struct w32_display_info *dpyinfo; | 4857 | struct w32_display_info *dpyinfo; |
| @@ -5253,7 +5166,7 @@ extern Lisp_Object Vhourglass_delay; | |||
| 5253 | xdisp.c could be used. */ | 5166 | xdisp.c could be used. */ |
| 5254 | 5167 | ||
| 5255 | int | 5168 | int |
| 5256 | hourglass_started () | 5169 | hourglass_started (void) |
| 5257 | { | 5170 | { |
| 5258 | return hourglass_shown_p || hourglass_timer; | 5171 | return hourglass_shown_p || hourglass_timer; |
| 5259 | } | 5172 | } |
| @@ -5261,7 +5174,7 @@ hourglass_started () | |||
| 5261 | /* Cancel a currently active hourglass timer, and start a new one. */ | 5174 | /* Cancel a currently active hourglass timer, and start a new one. */ |
| 5262 | 5175 | ||
| 5263 | void | 5176 | void |
| 5264 | start_hourglass () | 5177 | start_hourglass (void) |
| 5265 | { | 5178 | { |
| 5266 | DWORD delay; | 5179 | DWORD delay; |
| 5267 | int secs, msecs = 0; | 5180 | int secs, msecs = 0; |
| @@ -5297,7 +5210,7 @@ start_hourglass () | |||
| 5297 | cursor if shown. */ | 5210 | cursor if shown. */ |
| 5298 | 5211 | ||
| 5299 | void | 5212 | void |
| 5300 | cancel_hourglass () | 5213 | cancel_hourglass (void) |
| 5301 | { | 5214 | { |
| 5302 | if (hourglass_timer) | 5215 | if (hourglass_timer) |
| 5303 | { | 5216 | { |
| @@ -5316,8 +5229,7 @@ cancel_hourglass () | |||
| 5316 | to indicate that an hourglass cursor is shown. */ | 5229 | to indicate that an hourglass cursor is shown. */ |
| 5317 | 5230 | ||
| 5318 | static void | 5231 | static void |
| 5319 | w32_show_hourglass (f) | 5232 | w32_show_hourglass (struct frame *f) |
| 5320 | struct frame *f; | ||
| 5321 | { | 5233 | { |
| 5322 | if (!hourglass_shown_p) | 5234 | if (!hourglass_shown_p) |
| 5323 | { | 5235 | { |
| @@ -5332,7 +5244,7 @@ w32_show_hourglass (f) | |||
| 5332 | /* Hide the hourglass cursor on all frames, if it is currently shown. */ | 5244 | /* Hide the hourglass cursor on all frames, if it is currently shown. */ |
| 5333 | 5245 | ||
| 5334 | static void | 5246 | static void |
| 5335 | w32_hide_hourglass () | 5247 | w32_hide_hourglass (void) |
| 5336 | { | 5248 | { |
| 5337 | if (hourglass_shown_p) | 5249 | if (hourglass_shown_p) |
| 5338 | { | 5250 | { |
| @@ -5386,8 +5298,7 @@ Lisp_Object Vx_max_tooltip_size; | |||
| 5386 | 5298 | ||
| 5387 | 5299 | ||
| 5388 | static Lisp_Object | 5300 | static Lisp_Object |
| 5389 | unwind_create_tip_frame (frame) | 5301 | unwind_create_tip_frame (Lisp_Object frame) |
| 5390 | Lisp_Object frame; | ||
| 5391 | { | 5302 | { |
| 5392 | Lisp_Object deleted; | 5303 | Lisp_Object deleted; |
| 5393 | 5304 | ||
| @@ -5412,9 +5323,8 @@ unwind_create_tip_frame (frame) | |||
| 5412 | when this happens. */ | 5323 | when this happens. */ |
| 5413 | 5324 | ||
| 5414 | static Lisp_Object | 5325 | static Lisp_Object |
| 5415 | x_create_tip_frame (dpyinfo, parms, text) | 5326 | x_create_tip_frame (struct w32_display_info *dpyinfo, |
| 5416 | struct w32_display_info *dpyinfo; | 5327 | Lisp_Object parms, Lisp_Object text) |
| 5417 | Lisp_Object parms, text; | ||
| 5418 | { | 5328 | { |
| 5419 | struct frame *f; | 5329 | struct frame *f; |
| 5420 | Lisp_Object frame, tem; | 5330 | Lisp_Object frame, tem; |
| @@ -5654,11 +5564,9 @@ x_create_tip_frame (dpyinfo, parms, text) | |||
| 5654 | the display in *ROOT_X, and *ROOT_Y. */ | 5564 | the display in *ROOT_X, and *ROOT_Y. */ |
| 5655 | 5565 | ||
| 5656 | static void | 5566 | static void |
| 5657 | compute_tip_xy (f, parms, dx, dy, width, height, root_x, root_y) | 5567 | compute_tip_xy (struct frame *f, |
| 5658 | struct frame *f; | 5568 | Lisp_Object parms, Lisp_Object dx, Lisp_Object dy, |
| 5659 | Lisp_Object parms, dx, dy; | 5569 | int width, int height, int *root_x, int *root_y) |
| 5660 | int width, height; | ||
| 5661 | int *root_x, *root_y; | ||
| 5662 | { | 5570 | { |
| 5663 | Lisp_Object left, top; | 5571 | Lisp_Object left, top; |
| 5664 | int min_x, min_y, max_x, max_y; | 5572 | int min_x, min_y, max_x, max_y; |
| @@ -6037,11 +5945,7 @@ extern Lisp_Object Qfile_name_history; | |||
| 6037 | allows us to work around the fact that the standard Open File | 5945 | allows us to work around the fact that the standard Open File |
| 6038 | dialog does not support directories. */ | 5946 | dialog does not support directories. */ |
| 6039 | UINT CALLBACK | 5947 | UINT CALLBACK |
| 6040 | file_dialog_callback (hwnd, msg, wParam, lParam) | 5948 | file_dialog_callback (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |
| 6041 | HWND hwnd; | ||
| 6042 | UINT msg; | ||
| 6043 | WPARAM wParam; | ||
| 6044 | LPARAM lParam; | ||
| 6045 | { | 5949 | { |
| 6046 | if (msg == WM_NOTIFY) | 5950 | if (msg == WM_NOTIFY) |
| 6047 | { | 5951 | { |
| @@ -6395,8 +6299,7 @@ lookup_vk_code (char *key) | |||
| 6395 | /* Convert a one-element vector style key sequence to a hot key | 6299 | /* Convert a one-element vector style key sequence to a hot key |
| 6396 | definition. */ | 6300 | definition. */ |
| 6397 | static Lisp_Object | 6301 | static Lisp_Object |
| 6398 | w32_parse_hot_key (key) | 6302 | w32_parse_hot_key (Lisp_Object key) |
| 6399 | Lisp_Object key; | ||
| 6400 | { | 6303 | { |
| 6401 | /* Copied from Fdefine_key and store_in_keymap. */ | 6304 | /* Copied from Fdefine_key and store_in_keymap. */ |
| 6402 | register Lisp_Object c; | 6305 | register Lisp_Object c; |
| @@ -6625,7 +6528,7 @@ DEFUN ("w32-window-exists-p", Fw32_window_exists_p, Sw32_window_exists_p, | |||
| 6625 | 6528 | ||
| 6626 | This is a direct interface to the Windows API FindWindow function. */) | 6529 | This is a direct interface to the Windows API FindWindow function. */) |
| 6627 | (class, name) | 6530 | (class, name) |
| 6628 | Lisp_Object class, name; | 6531 | Lisp_Object class, name; |
| 6629 | { | 6532 | { |
| 6630 | HWND hnd; | 6533 | HWND hnd; |
| 6631 | 6534 | ||
| @@ -6963,7 +6866,7 @@ frame_parm_handler w32_frame_parm_handlers[] = | |||
| 6963 | }; | 6866 | }; |
| 6964 | 6867 | ||
| 6965 | void | 6868 | void |
| 6966 | syms_of_w32fns () | 6869 | syms_of_w32fns (void) |
| 6967 | { | 6870 | { |
| 6968 | globals_of_w32fns (); | 6871 | globals_of_w32fns (); |
| 6969 | /* This is zero if not using MS-Windows. */ | 6872 | /* This is zero if not using MS-Windows. */ |
| @@ -7320,7 +7223,7 @@ only be necessary if the default setting causes problems. */); | |||
| 7320 | is non zero. | 7223 | is non zero. |
| 7321 | */ | 7224 | */ |
| 7322 | void | 7225 | void |
| 7323 | globals_of_w32fns () | 7226 | globals_of_w32fns (void) |
| 7324 | { | 7227 | { |
| 7325 | HMODULE user32_lib = GetModuleHandle ("user32.dll"); | 7228 | HMODULE user32_lib = GetModuleHandle ("user32.dll"); |
| 7326 | /* | 7229 | /* |
| @@ -7363,7 +7266,7 @@ globals_of_w32fns () | |||
| 7363 | #undef abort | 7266 | #undef abort |
| 7364 | 7267 | ||
| 7365 | void | 7268 | void |
| 7366 | w32_abort () | 7269 | w32_abort (void) |
| 7367 | { | 7270 | { |
| 7368 | int button; | 7271 | int button; |
| 7369 | button = MessageBox (NULL, | 7272 | button = MessageBox (NULL, |
| @@ -7391,7 +7294,7 @@ w32_abort () | |||
| 7391 | 7294 | ||
| 7392 | /* For convenience when debugging. */ | 7295 | /* For convenience when debugging. */ |
| 7393 | int | 7296 | int |
| 7394 | w32_last_error () | 7297 | w32_last_error (void) |
| 7395 | { | 7298 | { |
| 7396 | return GetLastError (); | 7299 | return GetLastError (); |
| 7397 | } | 7300 | } |