Commit Graph

58 Commits

Author SHA1 Message Date
Glen Whitney
d24b8c5ead Add arithmetic for locations
Nearly all of the basic operations in eval.c have been implemented for values
  of type LOCATION. The behavior is generally modeled after typical vector
  arithmetic. For "<", as a particular case, every component must be less
  than or equal the corresponding component, and at least one must be strictly
  less (<= drops the latter condition, of course). Note "<" returns the number
  of strictly less coordinates, but 0 (false) if any coordinate is greater.

  Also implements a mechanism (string array Type_Names) for printing type
  information and slightly enhanced the error message for type mismatch in +

  Closes #16.
2019-07-25 06:10:05 -07:00
Glen Whitney
08b42bf424 Prevent phantom values when clocking, resetting, and clocking again
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.
2019-07-24 10:47:39 -07:00
Glen Whitney
c072cb9af4 Add more clock/reset keys and update docs
Provides additional keys to clock and reset the spreadsheet in GUI mode.
  Updated LyX manual to include GUI mode keys, including the new ones, to
  include some of the more recent features like bold and highlight, and
  also improved some phrasing throughout.
  Fixes #4.
2019-07-23 12:42:19 -07:00
Glen Whitney
eefc54818c Restore build of fteapot (on OpenSUSE Tumbleweed)
Changes to CMakeLists.txt to allow the system fltk to be found. These may
  have interfered with static linking, as now the command lines for static
  and dynamic linking look identical.

  A small change to fteapot.fl so that the resulting code will compile.

  Some additions to the INSTALL file to help point to prerequisites.

  Fixes #1.
2019-07-22 17:13:24 -07:00
Glen Whitney
06fab6dba1 Restore compilation of curses teapot on OpenSUSE Tumbleweed
The XDR library is no longer in the Gnu standard library, but it can be
  supplied in Tumbleweed via the tirpc library, so look for that as an
  option.
  Also renamed README to README.md in the packaging, to reflect prior change.
2019-07-22 15:02:18 -07:00
Glen Whitney
4451032ab9 Merge readme files 2019-07-22 13:44:57 -07:00
Glen Whitney
f8a60447d6 Import exactly the files of the teapot-2.3.0 distribution 2019-07-22 13:32:33 -07:00
Glen Whitney
360b88936b Initial commit 2019-07-22 20:26:15 +00:00