br903 / libredo Goto Github PK
View Code? Open in Web Editor NEWA library for managing undo and redo commands
Home Page: http://www.muppetlabs.com/~breadbox/software/libredo.html
License: GNU General Public License v2.0
A library for managing undo and redo commands
Home Page: http://www.muppetlabs.com/~breadbox/software/libredo.html
License: GNU General Public License v2.0
REDO LIBRARY libredo is a simple library that makes it easy to add powerful undo and redo commands to a logic puzzle game (or similar type of program). Many such programs that provide undo and redo commands will remember undone states only while a user is using these two commands. Once the user uses some other command that changes state in a new way, all of the undone states are forgotten. This limited functionality is common, if not ubiquitous. I would like to see more programs offer something better: that is what this library is provided for. INSTALLATION The libredo package provides the usual facility for building and installing via: ./configure make make install The redo library is very simple. It consists of one C file and one header file, and requires no unusual support from the compiler. Thus, an alternative to installing the library is just to copy redo.[ch] into your own project and use it directly. DOCUMENTATION The file libredo.html describes the library's API and how it is used. (The same document is also made available as a man page, and a plain text file.) In addition, the header file comments also provide brief descriptions of each function call. There is also an example program included (sokoban-example) which provides a practical demonstration of the full API. COPYRIGHT AND LICENSE Copyright (C) 2013-2021 Brian Raiter. These programs are free software; you can redistribute them and/or modify them under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. These programs are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License, included in this distribution in the file COPYING, for more details. FURTHER RESOURCES The home page for libredo is located at: http://www.muppetlabs.com/~breadbox/software/libredo.html Bug reports and general feedback should be directed to the author at the address below. If you use this library in your own code, consider dropping me a line to let me know. (You should also let me know if you tried to use this library in your code, but it didn't do what you needed.) Happy coding. Brian Raiter <[email protected]>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.