diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-12 19:13:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-12 19:13:06 +0400 |
commit | bddc7dfc20919105e02181340d54b2faf52c95ac (patch) | |
tree | 1000cce34ce4cd97c87862fcd576d32f0711a0fa /source/blender/blenlib/intern/callbacks.c | |
parent | 2f2b15bbb2a30ee312d65c627d54a12445f4b987 (diff) |
style cleanup: remaining BLI files.
Diffstat (limited to 'source/blender/blenlib/intern/callbacks.c')
-rw-r--r-- | source/blender/blenlib/intern/callbacks.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/blenlib/intern/callbacks.c b/source/blender/blenlib/intern/callbacks.c index 876599f7480..614a9a63d90 100644 --- a/source/blender/blenlib/intern/callbacks.c +++ b/source/blender/blenlib/intern/callbacks.c @@ -26,21 +26,21 @@ #include "MEM_guardedalloc.h" -static ListBase callback_slots[BLI_CB_EVT_TOT]= {{NULL}}; +static ListBase callback_slots[BLI_CB_EVT_TOT] = {{NULL}}; void BLI_callback_exec(struct Main *main, struct ID *self, eCbEvent evt) { - ListBase *lb= &callback_slots[evt]; + ListBase *lb = &callback_slots[evt]; bCallbackFuncStore *funcstore; - for (funcstore= (bCallbackFuncStore *)lb->first; funcstore; funcstore= (bCallbackFuncStore *)funcstore->next) { + for (funcstore = (bCallbackFuncStore *)lb->first; funcstore; funcstore = (bCallbackFuncStore *)funcstore->next) { funcstore->func(main, self, funcstore->arg); } } void BLI_callback_add(bCallbackFuncStore *funcstore, eCbEvent evt) { - ListBase *lb= &callback_slots[evt]; + ListBase *lb = &callback_slots[evt]; BLI_addtail(lb, funcstore); } @@ -53,12 +53,12 @@ void BLI_callback_global_init(void) void BLI_callback_global_finalize(void) { eCbEvent evt; - for (evt= 0; evt < BLI_CB_EVT_TOT; evt++) { - ListBase *lb= &callback_slots[evt]; + for (evt = 0; evt < BLI_CB_EVT_TOT; evt++) { + ListBase *lb = &callback_slots[evt]; bCallbackFuncStore *funcstore; bCallbackFuncStore *funcstore_next; - for (funcstore= (bCallbackFuncStore *)lb->first; funcstore; funcstore= funcstore_next) { - funcstore_next= (bCallbackFuncStore *)funcstore->next; + for (funcstore = (bCallbackFuncStore *)lb->first; funcstore; funcstore = funcstore_next) { + funcstore_next = (bCallbackFuncStore *)funcstore->next; BLI_remlink(lb, funcstore); if (funcstore->alloc) { MEM_freeN(funcstore); |