From a2c182e9233333fc3b8ff40d352113ec95e7e30c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 3 Mar 2012 16:31:46 +0000 Subject: style cleanup - use aligned * prefixed blocks for descriptive comments (was already used a lot and part of proposed style guide). --- source/blender/editors/util/editmode_undo.c | 36 ++++++++++++++--------------- 1 file changed, 17 insertions(+), 19 deletions(-) (limited to 'source/blender/editors/util/editmode_undo.c') diff --git a/source/blender/editors/util/editmode_undo.c b/source/blender/editors/util/editmode_undo.c index 4776cf0af53..a06dcb10200 100644 --- a/source/blender/editors/util/editmode_undo.c +++ b/source/blender/editors/util/editmode_undo.c @@ -59,25 +59,23 @@ /* ***************** generic editmode undo system ********************* */ /* + * Add this in your local code: + * + * void undo_editmode_push(bContext *C, const char *name, + * void * (*getdata)(bContext *C), // use context to retrieve current editdata + * void (*freedata)(void *), // pointer to function freeing data + * void (*to_editmode)(void *, void *), // data to editmode conversion + * void * (*from_editmode)(void *)) // editmode to data conversion + * int (*validate_undo)(void *, void *)) // check if undo data is still valid + * + * + * Further exported for UI is: + * + * void undo_editmode_step(bContext *C, int step); // undo and redo + * void undo_editmode_clear(void) // free & clear all data + * void undo_editmode_menu(void) // history menu + */ -Add this in your local code: - -void undo_editmode_push(bContext *C, const char *name, - void * (*getdata)(bContext *C), // use context to retrieve current editdata - void (*freedata)(void *), // pointer to function freeing data - void (*to_editmode)(void *, void *), // data to editmode conversion - void * (*from_editmode)(void *)) // editmode to data conversion - int (*validate_undo)(void *, void *)) // check if undo data is still valid - - -Further exported for UI is: - -void undo_editmode_step(bContext *C, int step); // undo and redo -void undo_editmode_clear(void) // free & clear all data -void undo_editmode_menu(void) // history menu - - -*/ /* ********************************************************************* */ /* ****** XXX ***** */ @@ -129,7 +127,7 @@ void undo_editmode_push(bContext *C, const char *name, uintptr_t memused, totmem, maxmem; /* at first here was code to prevent an "original" key to be insterted twice - this was giving conflicts for example when mesh changed due to keys or apply */ + * this was giving conflicts for example when mesh changed due to keys or apply */ /* remove all undos after (also when curundo==NULL) */ while(undobase.last != curundo) { -- cgit v1.2.3