Mercurial > dwindows
diff ios/dw.m @ 2626:401a3b9f21ba
Massive continuation of code style standardization.
Only tested on Mac and iOS, may require follow up commits to get things
building again as I test on various platforms.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 01 Aug 2021 12:17:07 +0000 |
parents | 07c504257e42 |
children | 3ec675648cf5 |
line wrap: on
line diff
--- a/ios/dw.m Tue Jul 27 23:09:52 2021 +0000 +++ b/ios/dw.m Sun Aug 01 12:17:07 2021 +0000 @@ -248,9 +248,9 @@ pthread_setspecific(_dw_bg_color_key, NULL); } -typedef struct _sighandler -{ - struct _sighandler *next; +typedef struct _dwsighandler +{ + struct _dwsighandler *next; ULONG message; HWND window; int id; @@ -258,9 +258,9 @@ void *discfunction; void *data; -} SignalHandler; - -static SignalHandler *DWRoot = NULL; +} DWSignalHandler; + +static DWSignalHandler *DWRoot = NULL; /* Some internal prototypes */ static void _dw_do_resize(Box *thisbox, int x, int y); @@ -286,9 +286,9 @@ } } -SignalHandler *_dw_get_handler(HWND window, int messageid) -{ - SignalHandler *tmp = DWRoot; +DWSignalHandler *_dw_get_handler(HWND window, int messageid) +{ + DWSignalHandler *tmp = DWRoot; /* Find any callbacks for this function */ while(tmp) @@ -336,7 +336,7 @@ int _dw_event_handler1(id object, id event, int message) { - SignalHandler *handler = _dw_get_handler(object, message); + DWSignalHandler *handler = _dw_get_handler(object, message); /* NSLog(@"Event handler - type %d\n", message); */ if(handler) @@ -2739,7 +2739,7 @@ */ void _dw_new_signal(ULONG message, HWND window, int msgid, void *signalfunction, void *discfunc, void *data) { - SignalHandler *new = malloc(sizeof(SignalHandler)); + DWSignalHandler *new = malloc(sizeof(DWSignalHandler)); new->message = message; new->window = window; @@ -2753,7 +2753,7 @@ DWRoot = new; else { - SignalHandler *prev = NULL, *tmp = DWRoot; + DWSignalHandler *prev = NULL, *tmp = DWRoot; while(tmp) { if(tmp->message == message && @@ -9495,7 +9495,7 @@ DW_FUNCTION_NO_RETURN(dw_timer_disconnect) DW_FUNCTION_RESTORE_PARAM1(timerid, HTIMER) { - SignalHandler *prev = NULL, *tmp = DWRoot; + DWSignalHandler *prev = NULL, *tmp = DWRoot; /* 0 is an invalid timer ID */ if(timerid) @@ -9579,7 +9579,7 @@ */ void API dw_signal_disconnect_by_name(HWND window, const char *signame) { - SignalHandler *prev = NULL, *tmp = DWRoot; + DWSignalHandler *prev = NULL, *tmp = DWRoot; ULONG message; if(!window || !signame || (message = _dw_findsigmessage(signame)) == 0) @@ -9624,7 +9624,7 @@ */ void API dw_signal_disconnect_by_window(HWND window) { - SignalHandler *prev = NULL, *tmp = DWRoot; + DWSignalHandler *prev = NULL, *tmp = DWRoot; while(tmp) { @@ -9666,7 +9666,7 @@ */ void API dw_signal_disconnect_by_data(HWND window, void *data) { - SignalHandler *prev = NULL, *tmp = DWRoot; + DWSignalHandler *prev = NULL, *tmp = DWRoot; while(tmp) {