diff options
author | Akshay Chipkar | 2019-03-18 13:02:50 +0530 |
---|---|---|
committer | GitHub | 2019-03-18 13:02:50 +0530 |
commit | 7cb2c053c6e68616230bd5c645977c90ccaa6056 (patch) | |
tree | dbdce755481abdbe999fdd83be9408c002401a71 /ldmicro/undoredo.cpp | |
parent | a962c0a7965f6c0d80c867ba9f3fbe797ac14de7 (diff) | |
parent | 08ca539a8d6624e979bf4e85a61ff00567575667 (diff) | |
download | LDmicroQt-7cb2c053c6e68616230bd5c645977c90ccaa6056.tar.gz LDmicroQt-7cb2c053c6e68616230bd5c645977c90ccaa6056.tar.bz2 LDmicroQt-7cb2c053c6e68616230bd5c645977c90ccaa6056.zip |
Merge pull request #1 from akshay-c/Akshay
Cursor update and basic screen drawing
Diffstat (limited to 'ldmicro/undoredo.cpp')
-rw-r--r-- | ldmicro/undoredo.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ldmicro/undoredo.cpp b/ldmicro/undoredo.cpp index 915aaa4..8bcfcc8 100644 --- a/ldmicro/undoredo.cpp +++ b/ldmicro/undoredo.cpp @@ -55,7 +55,7 @@ static struct { // whenever we change it, for undo purposes. Fast enough that we shouldn't // need to be smart. //----------------------------------------------------------------------------- -/*static void *DeepCopy(int which, void *any) +static void *DeepCopy(int which, void *any) { switch(which) { CASE_LEAF { @@ -93,7 +93,7 @@ static struct { break; } } -*/ + //----------------------------------------------------------------------------- // Empty out a ProgramStack data structure, either .undo or .redo: set the // count to zero and free all the program copies in it. @@ -112,7 +112,7 @@ static void EmptyProgramStack(ProgramStack *ps) } } } -/* + //----------------------------------------------------------------------------- // Push the current program onto a program stack. Can either make a deep or // a shallow copy of the linked data structures. @@ -228,7 +228,7 @@ void UndoRedo(void) RefreshScrollbars(); InvalidateRect(MainWindow, NULL, FALSE); } -*/ + //----------------------------------------------------------------------------- // Empty out our undo history entirely, as when loading a new file. //----------------------------------------------------------------------------- @@ -245,8 +245,8 @@ void UndoFlush(void) // notices that easily is the display code, which will respond by undoing // the last operation, presumably the one that added the long line. //----------------------------------------------------------------------------- -/*BOOL CanUndo(void) +BOOL CanUndo(void) { return (Undo.undo.count > 0); -}*/ +} |