Mercurial > hg > xemacs-beta
comparison src/event-msw.c @ 1726:a8d8f419b459
[xemacs-hg @ 2003-09-30 15:26:34 by james]
Add type information to xfree to avoid alias creation.
author | james |
---|---|
date | Tue, 30 Sep 2003 15:27:01 +0000 |
parents | a4b5e2effaff |
children | 04bc9d2f42c7 |
comparison
equal
deleted
inserted
replaced
1725:7ff8f4d70aec | 1726:a8d8f419b459 |
---|---|
822 if (str->pending_p) | 822 if (str->pending_p) |
823 WaitForSingleObject (str->ov.hEvent, INFINITE); | 823 WaitForSingleObject (str->ov.hEvent, INFINITE); |
824 | 824 |
825 if (str->buffer) | 825 if (str->buffer) |
826 { | 826 { |
827 xfree (str->buffer); | 827 xfree (str->buffer, void *); |
828 str->buffer = 0; | 828 str->buffer = 0; |
829 } | 829 } |
830 | 830 |
831 CloseHandle (str->ov.hEvent); | 831 CloseHandle (str->ov.hEvent); |
832 return 0; | 832 return 0; |
2107 file:///C:/foo/bar/ (less portably) | 2107 file:///C:/foo/bar/ (less portably) |
2108 | 2108 |
2109 they don't allow relative paths at all! this is way bogus. */ | 2109 they don't allow relative paths at all! this is way bogus. */ |
2110 cmd = urlify_filename (cmd); | 2110 cmd = urlify_filename (cmd); |
2111 l_dndlist = build_intstring (cmd); | 2111 l_dndlist = build_intstring (cmd); |
2112 xfree (cmd); | 2112 xfree (cmd, Ibyte *); |
2113 } | 2113 } |
2114 GCPRO2 (emacs_event, l_dndlist); | 2114 GCPRO2 (emacs_event, l_dndlist); |
2115 | 2115 |
2116 /* Find a mswindows frame */ | 2116 /* Find a mswindows frame */ |
2117 event->channel = Qnil; | 2117 event->channel = Qnil; |
2736 /* See intl-win32.c for an explanation of | 2736 /* See intl-win32.c for an explanation of |
2737 the following */ | 2737 the following */ |
2738 ((LCID) GetKeyboardLayout (0) & 0xFFFF), | 2738 ((LCID) GetKeyboardLayout (0) & 0xFFFF), |
2739 NULL)); | 2739 NULL)); |
2740 ch = itext_ichar (intchar); | 2740 ch = itext_ichar (intchar); |
2741 xfree (intchar); | 2741 xfree (intchar, Ibyte *); |
2742 } | 2742 } |
2743 | 2743 |
2744 #ifdef DEBUG_XEMACS | 2744 #ifdef DEBUG_XEMACS |
2745 if (debug_mswindows_events) | 2745 if (debug_mswindows_events) |
2746 { | 2746 { |
2882 mswindows_locale_to_code_page (lcid), | 2882 mswindows_locale_to_code_page (lcid), |
2883 NULL); | 2883 NULL); |
2884 | 2884 |
2885 XSET_EVENT_KEY_ALT_KEYCHARS | 2885 XSET_EVENT_KEY_ALT_KEYCHARS |
2886 (lastev, i, itext_ichar (intchar)); | 2886 (lastev, i, itext_ichar (intchar)); |
2887 xfree (intchar); | 2887 xfree (intchar, Ibyte *); |
2888 } | 2888 } |
2889 } | 2889 } |
2890 } | 2890 } |
2891 else | 2891 else |
2892 { | 2892 { |
3403 /* Reset so we do not get here again. The SetWindowPos | 3403 /* Reset so we do not get here again. The SetWindowPos |
3404 * call in mswindows_size_frame_internal can cause | 3404 * call in mswindows_size_frame_internal can cause |
3405 * recursion here. */ | 3405 * recursion here. */ |
3406 if (FRAME_MSWINDOWS_TARGET_RECT (frame)) | 3406 if (FRAME_MSWINDOWS_TARGET_RECT (frame)) |
3407 { | 3407 { |
3408 xfree (FRAME_MSWINDOWS_TARGET_RECT (frame)); | 3408 xfree (FRAME_MSWINDOWS_TARGET_RECT (frame), |
3409 XEMACS_RECT_WH *); | |
3409 FRAME_MSWINDOWS_TARGET_RECT (frame) = 0; | 3410 FRAME_MSWINDOWS_TARGET_RECT (frame) = 0; |
3410 } | 3411 } |
3411 } | 3412 } |
3412 else | 3413 else |
3413 { | 3414 { |
3862 } | 3863 } |
3863 #endif /* !defined (NO_CYGWIN_COM_SUPPORT) */ | 3864 #endif /* !defined (NO_CYGWIN_COM_SUPPORT) */ |
3864 { | 3865 { |
3865 fname = urlify_filename (fname); | 3866 fname = urlify_filename (fname); |
3866 l_item = build_intstring (fname); | 3867 l_item = build_intstring (fname); |
3867 xfree (fname); | 3868 xfree (fname, Ibyte *); |
3868 l_dndlist = Fcons (l_item, l_dndlist); | 3869 l_dndlist = Fcons (l_item, l_dndlist); |
3869 } | 3870 } |
3870 } | 3871 } |
3871 | 3872 |
3872 DragFinish ((HDROP) wParam); | 3873 DragFinish ((HDROP) wParam); |