summaryrefslogtreecommitdiff
path: root/fluid/undo.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-01 18:03:10 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-06 20:28:20 +0200
commitf09e17c3c564e8310125a10c03397cbf473ff643 (patch)
tree8d0fd4a28e3686c33aaa140d07ddba26ab28bdc2 /fluid/undo.cxx
parentb0e0c355edaa2e23148cb0260ada907aec930f05 (diff)
Remove $Id$ tags, update URL's, and more
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
Diffstat (limited to 'fluid/undo.cxx')
-rw-r--r--fluid/undo.cxx33
1 files changed, 13 insertions, 20 deletions
diff --git a/fluid/undo.cxx b/fluid/undo.cxx
index 1ffb41e8a..40b0f045b 100644
--- a/fluid/undo.cxx
+++ b/fluid/undo.cxx
@@ -1,6 +1,4 @@
//
-// "$Id$"
-//
// FLUID undo support for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2017 by Bill Spitzak and others.
@@ -9,11 +7,11 @@
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
//
-// http://www.fltk.org/COPYING.php
+// https://www.fltk.org/COPYING.php
//
-// Please report all bugs and problems on the following page:
+// Please see the following page on how to report bugs and issues:
//
-// http://www.fltk.org/str.php
+// https://www.fltk.org/bugs.php
//
#include <FL/Fl.H>
@@ -32,9 +30,9 @@
#endif // _WIN32 && !__CYGWIN__
-extern Fl_Preferences fluid_prefs; // FLUID preferences
-extern Fl_Menu_Item Main_Menu[]; // Main menu
-extern Fl_Menu_Bar *main_menubar; // Main menubar
+extern Fl_Preferences fluid_prefs; // FLUID preferences
+extern Fl_Menu_Item Main_Menu[]; // Main menu
+extern Fl_Menu_Bar *main_menubar; // Main menubar
@@ -46,11 +44,11 @@ extern Fl_Menu_Bar *main_menubar; // Main menubar
//
-int undo_current = 0; // Current undo level in buffer
-int undo_last = 0; // Last undo level in buffer
-int undo_max = 0; // Maximum undo level used
-int undo_save = -1; // Last undo level that was saved
-static int undo_paused = 0; // Undo checkpointing paused?
+int undo_current = 0; // Current undo level in buffer
+int undo_last = 0; // Last undo level in buffer
+int undo_max = 0; // Maximum undo level used
+int undo_save = -1; // Last undo level that was saved
+static int undo_paused = 0; // Undo checkpointing paused?
// Return the undo filename.
@@ -68,8 +66,8 @@ static char *undo_filename(int level) {
// append filename: "undo_PID_LEVEL.fl"
snprintf(undo_path + undo_path_len,
- sizeof(undo_path) - undo_path_len - 1,
- "undo_%d_%d.fl", getpid(), level);
+ sizeof(undo_path) - undo_path_len - 1,
+ "undo_%d_%d.fl", getpid(), level);
return undo_path;
}
@@ -187,8 +185,3 @@ void undo_resume() {
void undo_suspend() {
undo_paused = 1;
}
-
-
-//
-// End of "$Id$".
-//