Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-03 20:31:46 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-03 20:31:46 +0400
commita2c182e9233333fc3b8ff40d352113ec95e7e30c (patch)
tree37a9e08f4e6c4bf794aa0c8c15af875299db4a1b /source/blender/editors/util/editmode_undo.c
parent86cec98f9e1523ed41b67ef998174289dbae9b83 (diff)
style cleanup - use aligned * prefixed blocks for descriptive comments (was already used a lot and part of proposed style guide).
Diffstat (limited to 'source/blender/editors/util/editmode_undo.c')
-rw-r--r--source/blender/editors/util/editmode_undo.c36
1 files changed, 17 insertions, 19 deletions
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) {