further development on Teapot, a three-dimensional, function-oriented spreadsheet with iterative updates, written by Michael Haardt and Jörg Walter, from V 2.3.0 posted 2012 Feb 6.
08b42bf424
In the end it turned out that the cause of the phantom values was short-cutting in getvalue() when the contents of a cell were empty, preventing the update of the internal cache of the value of the cell. However, tracking this down (and getting the associated memory management correct) necessitated implementing a debugging mode in which I could dump the internal states of cells and print various other stuff to standard output. It also involved understanding the meaning of various pointers in the code, in the process of which I renamed some commonly used macros, particularly the former SHEET(s,x,y,z) which was not returning a Sheet at all but rather a pointer to a Cell. So this macro is now called CELL_AT. I also replaced several very repeatedly used patterns of checking the validity of locations and pointers with macros, now defined in sheet.h. Therefore, unfortunately the (relatively small in the end) bugfix for this major issue is entangled with numerous textual changes to the code made in tracking it down. Fixes #18. Closes #19. |
||
---|---|---|
doc | ||
examples | ||
.gitignore | ||
CMakeLists.txt | ||
complete.c | ||
complete.h | ||
config.h | ||
config.h.in | ||
context.c | ||
context.h | ||
COPYING | ||
csv.c | ||
csv.h | ||
default.h | ||
display.c | ||
display.h | ||
eval.c | ||
eval.h | ||
fteapot.fl | ||
func.c | ||
func.h | ||
graph.c | ||
htmlio.c | ||
htmlio.h | ||
INSTALL | ||
latex.c | ||
latex.h | ||
LICENSE | ||
main.c | ||
main.h | ||
misc.c | ||
misc.h | ||
NEWS | ||
parser.c | ||
parser.h | ||
README.md | ||
sc.c | ||
sc.h | ||
scanner.c | ||
scanner.h | ||
sheet.c | ||
sheet.h | ||
teapot.1 | ||
utf8.c | ||
utf8.h | ||
wk1.c | ||
wk1.h | ||
xdr.c | ||
xdr.h |
teapot-spreadsheet
This project represents further development on Teapot, a three-dimensional, function-oriented spreadsheet with iterative updates, written by Michael Haardt and Jörg Walter, from V 2.3.0 posted 2012 Feb 6.
This is a development version following release 2.3.0 of teapot (Table Editor And Planner, Or: Teapot), a spread sheet program for UNIX.
Copyright (C) 1995-2006 Michael Haardt
Copyright (C) 2009-2012 Joerg Walter
Copyright (C) 2019 Glen Whitney
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it 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 for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
The current release has the following features:
- curses based user interface with easy to understand menus
- FLTK 1.3 based GUI following common user interface conventions
- Cross-platform compatibility
- UTF-8 support
- portable sheet file format uses XDR or ASCII format
- tbl, LaTeX, HTML, CSV or formatted text files can be generated and simple SC and WK1 sheets can be imported
- typed expression evaluator with the types int, float, string, error, pointer to cell and empty
- iterative expressions
- powerful cell addressing
- three-dimensional sheets
- new expression evaluator functions can be added very easy
- a user guide, available as PDF and HTML
- It is still a small and simple program!
teapot should work on any system which supports the following:
- ANSI C
- An XDR library (included in the GNU C library, otherwise use http://people.redhat.com/~rjones/portablexdr/ )
- For the text interface: SYSV curses or ncurses library
- For UTF-8 in the text interface: libncursesw and a UTF-8 locale
- For the FLTK interface: C++
- For the FLTK interface: FLTK 1.3
A GNU zipped tar file of the prior release V 2.3.0 is available from:
http://www.syntax-k.de/projekte/teapot/
This development version is hosted at https://code.studioinfinity.org/glen/teapot-spreadsheet.
For more information, read the included manual in HTML or PDF format.