Commit graph

1486 commits

Author SHA1 Message Date
John Wiegley
54d5d8ada4 Removed the now unused pushvar.h file. 2009-02-06 13:45:26 -04:00
John Wiegley
cf6babcf90 Restored all the option handlers from 2.6.2, but not the options themselves. 2009-02-06 03:31:41 -04:00
John Wiegley
ecc5a1aab5 Whitespace fix. 2009-02-06 03:30:53 -04:00
John Wiegley
a085f8e9ad Only initialize the amount_t module if it hasn't been already. 2009-02-06 03:30:45 -04:00
John Wiegley
b4662911cc Added note about the dependency on graphviz for building docs. 2009-02-06 00:46:50 -04:00
John Wiegley
6aedbf4743 Removed use of sudo in the Makefile. 2009-02-06 00:46:41 -04:00
John Wiegley
d853a58f5f Moved --pager handler back into report_t. 2009-02-05 21:54:46 -04:00
John Wiegley
408b819c6e Greatly simplified the way option and command handlers are defined. 2009-02-05 21:20:09 -04:00
John Wiegley
7b24e8f8e3 Moved some files around. 2009-02-05 21:18:25 -04:00
John Wiegley
29814cfa7c Removed debugging code from the Makefile. 2009-02-05 04:36:26 -04:00
John Wiegley
edb9cff4a2 Moved work.cc and global_scope_t into a new global.cc file. 2009-02-05 04:20:49 -04:00
John Wiegley
87cfef221a Quiet down the python module build. 2009-02-05 04:20:31 -04:00
John Wiegley
0e2a3a9c00 Moved much of the main.cc code into a new global_scope_t class. 2009-02-05 04:06:58 -04:00
John Wiegley
37006741d6 Support using Ledger as a script interpretor.
The file must begin with '#!/usr/bin/env ledger --script'.  You can add a -f
option to the options, but it must come before --script.
2009-02-05 03:49:49 -04:00
John Wiegley
327fdca8f4 Display value booleans as 0 and 1. 2009-02-05 03:49:14 -04:00
John Wiegley
7f5f53de82 Quiet the make output when rebuilding TAGS. 2009-02-05 03:48:56 -04:00
John Wiegley
d029990209 Create bound scopes for locating the total expr. 2009-02-05 02:45:29 -04:00
John Wiegley
4854cead4f When recompiled an expr_t, forget old definitions. 2009-02-05 02:45:29 -04:00
John Wiegley
b7632e7475 Removed an unnused member. 2009-02-05 02:45:29 -04:00
John Wiegley
c58cd88299 Reworked how the REPL is handled. 2009-02-05 02:45:26 -04:00
John Wiegley
4f174014b9 When copying an expr_t object, don't copy the compiled state. 2009-02-05 02:45:26 -04:00
John Wiegley
de816e8307 Whitespace fix. 2009-02-05 02:45:24 -04:00
John Wiegley
db52ad86d5 Don't give an error if the init file cannot be found. 2009-02-05 02:16:43 -04:00
John Wiegley
3f960be96c Removed all references to the old binary cache. 2009-02-04 20:57:14 -04:00
John Wiegley
066aef6090 Added a repl.sh sample script to the contrib/ directory. 2009-02-04 20:52:40 -04:00
John Wiegley
f8ba4165fe Clear the master account totals after a report is done. 2009-02-04 20:46:56 -04:00
John Wiegley
7d628d88ff Moved the --pager option to the session object, rather than the report object. 2009-02-04 20:46:45 -04:00
John Wiegley
863b5d8144 Added proper handling of SIGINT (C-c) and SIGPIPE (pager quits). 2009-02-04 20:46:08 -04:00
John Wiegley
04ac5ffcb4 Whitespace fix. 2009-02-04 20:45:43 -04:00
John Wiegley
b6d83f3c23 Fixed a long-standing g++ warning. 2009-02-04 20:45:34 -04:00
John Wiegley
8029fa4fd4 Updated the README to mention libedit. 2009-02-04 20:13:41 -04:00
John Wiegley
1c1f2c63de Don't give the user an error if libedit is not installed. 2009-02-04 20:12:23 -04:00
John Wiegley
796feb2634 Added code to quit more gracefully. Ctrl-C still needs work. 2009-02-04 20:11:27 -04:00
John Wiegley
ea1e898eec Minor fixes to the REPL when using libedit. 2009-02-04 19:58:56 -04:00
John Wiegley
2d941730b1 Largely removed all of Ledger's use of global variables, for the REPL's sake. 2009-02-04 19:55:27 -04:00
John Wiegley
73cf3b01fb Added structural support in main() for using a REPL. 2009-02-04 19:55:08 -04:00
John Wiegley
b9603a1512 Moved ptristream into its own file. 2009-02-04 03:54:29 -04:00
John Wiegley
1cc33531ea Simplified the textual parser, and improved metadata support. 2009-02-04 03:34:37 -04:00
John Wiegley
28da097fc2 Several improvement to transaction parsing. 2009-02-04 00:52:52 -04:00
John Wiegley
24ef163ba5 Removed unneeded member variables. 2009-02-04 00:35:02 -04:00
John Wiegley
e874e580cf Added blank lines to acprep for clarity. 2009-02-04 00:34:28 -04:00
John Wiegley
2e9c14ef30 Don't store the amount expression object in transactions.
This is unnecessary since binary caching is no longer being used.
2009-02-03 19:06:56 -04:00
John Wiegley
bee8e50166 Removed serialization tests from the amount_t unit tests. 2009-02-03 19:06:56 -04:00
John Wiegley
c6d3cce6d5 Added __str__ and __repr__ methods for ledger.Value. 2009-02-03 19:06:56 -04:00
John Wiegley
71642d98de Deleted unused source files: gnucash, ofx, qif. 2009-02-03 19:06:56 -04:00
John Wiegley
2ce7ae376c Removed used of src_idx. 2009-02-03 19:06:53 -04:00
John Wiegley
8948e161cd A little code rearranging. 2009-02-03 18:31:52 -04:00
John Wiegley
f49dfce302 Fixed the processing of O_NOT operations. 2009-02-03 18:11:59 -04:00
John Wiegley
918f76b263 Don't allow boolean operations to be applied to masks. 2009-02-03 17:47:14 -04:00
John Wiegley
6bd82c6bcd Implemented a text parsing optimization.
Amounts, costs and assigned amounts are now parsed as regular amounts.  To
have a full value expression at any of those positions, surround it with
parentheses.  The reason for this is that the amount parser is far simpler and
quicker -- and by far the common case -- compared to the full expression
parser.
2009-02-03 17:47:02 -04:00