Mercurial > dwindows
changeset 2400:5e454dfab0db
iOS: More thread safety, remove some debug code.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 26 Mar 2021 00:22:26 +0000 |
parents | 1cbc316292c1 |
children | 010ae32a5067 |
files | ios/dw.m |
diffstat | 1 files changed, 20 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ios/dw.m Thu Mar 25 23:38:40 2021 +0000 +++ b/ios/dw.m Fri Mar 26 00:22:26 2021 +0000 @@ -6697,7 +6697,10 @@ * handle: The handle to the calendar returned by dw_calendar_new(). * year... */ -void dw_calendar_set_date(HWND handle, unsigned int year, unsigned int month, unsigned int day) +DW_FUNCTION_DEFINITION(dw_calendar_set_date, void, HWND handle, unsigned int year, unsigned int month, unsigned int day) +DW_FUNCTION_ADD_PARAM4(handle, year, month, day) +DW_FUNCTION_NO_RETURN(dw_calendar_set_date) +DW_FUNCTION_RESTORE_PARAM4(handle, HWND, year, unsigned int, month, unsigned int, day, unsigned int) { DWCalendar *calendar = handle; NSDate *date; @@ -6713,6 +6716,7 @@ [calendar setDate:date]; [date release]; DW_LOCAL_POOL_OUT; + DW_FUNCTION_RETURN_NOTHING; } /* @@ -6720,7 +6724,10 @@ * Parameters: * handle: The handle to the calendar returned by dw_calendar_new(). */ -void dw_calendar_get_date(HWND handle, unsigned int *year, unsigned int *month, unsigned int *day) +DW_FUNCTION_DEFINITION(dw_calendar_get_date, void, HWND handle, unsigned int *year, unsigned int *month, unsigned int *day) +DW_FUNCTION_ADD_PARAM4(handle, year, month, day) +DW_FUNCTION_NO_RETURN(dw_calendar_get_date) +DW_FUNCTION_RESTORE_PARAM4(handle, HWND, year, unsigned int *, month, unsigned int *, day, unsigned int *) { DWCalendar *calendar = handle; DW_LOCAL_POOL_IN; @@ -6732,6 +6739,7 @@ *year = (unsigned int)[components year]; [mycalendar release]; DW_LOCAL_POOL_OUT; + DW_FUNCTION_RETURN_NOTHING; } /* @@ -7567,11 +7575,15 @@ * Remarks: * This is for use after showing the window/dialog. */ -void API dw_window_set_focus(HWND handle) +DW_FUNCTION_DEFINITION(dw_window_set_focus, void, HWND handle) +DW_FUNCTION_ADD_PARAM1(handle) +DW_FUNCTION_NO_RETURN(dw_window_set_focus) +DW_FUNCTION_RESTORE_PARAM1(handle, HWND) { id object = handle; [object becomeFirstResponder]; + DW_FUNCTION_RETURN_NOTHING; } /* @@ -7582,7 +7594,10 @@ * Remarks: * This is for use before showing the window/dialog. */ -void API dw_window_default(HWND handle, HWND defaultitem) +DW_FUNCTION_DEFINITION(dw_window_default, void, HWND handle, HWND defaultitem) +DW_FUNCTION_ADD_PARAM2(handle, defaultitem) +DW_FUNCTION_NO_RETURN(dw_window_default) +DW_FUNCTION_RESTORE_PARAM2(handle, HWND, defaultitem, HWND) { DWWindow *window = handle; id object = defaultitem; @@ -7591,6 +7606,7 @@ { [object becomeFirstResponder]; } + DW_FUNCTION_RETURN_NOTHING; } /* @@ -9658,7 +9674,6 @@ DWApp = [UIApplication sharedApplication]; } dw_event_reset(DWMainEvent); - dw_debug("SharedApplication is valid!\n"); } /*