Commit graph

215 commits

Author SHA1 Message Date
John Wiegley
673f7f7173 Fixed bad parameter name. 2009-02-02 16:36:44 -04:00
John Wiegley
c1cb06e009 Updated some internal documentation. 2009-02-02 15:54:28 -04:00
John Wiegley
bd9ffed9db Calculate the right-hand side O_MATCH, now that masks are values. 2009-02-02 15:17:02 -04:00
John Wiegley
46b35a015b Don't allow implicit matching of strings against masks, =~ is needed. 2009-02-02 15:16:40 -04:00
John Wiegley
cf9b4a3873 Removed report_error() function and reordered context for parsing errors. 2009-02-02 15:16:18 -04:00
John Wiegley
b18214372e Use > quoting characters when excerpting from the user's data file. 2009-02-02 00:28:12 -04:00
John Wiegley
42bed9c001 Added a missing brace. 2009-02-02 00:24:56 -04:00
John Wiegley
9540406af1 Simplified error context handling. 2009-02-02 00:24:26 -04:00
John Wiegley
5d9015a3c1 Moved error code into error.h. 2009-02-02 00:23:02 -04:00
John Wiegley
fb5428ce85 Added support for metadata and tagging, and made regexs a first-class type. 2009-02-01 22:10:32 -04:00
John Wiegley
7128fdb637 Added a missing throw() in the formatter. 2009-02-01 22:09:27 -04:00
John Wiegley
38c1b0feb0 Updated binary cache version. 2009-02-01 22:09:15 -04:00
John Wiegley
cadb02c257 Fixed a display problem when dumping O_MATCH expressions. 2009-02-01 18:36:40 -04:00
John Wiegley
ae65e8ae05 Moved the pre-commands to their own file, and created new "args" command. 2009-02-01 18:36:28 -04:00
John Wiegley
66b097bda7 Moved the args_to_predicate function to predicate.cc. 2009-02-01 18:35:44 -04:00
John Wiegley
59a080cdb6 Changed many uses of "unsigned long" to std::size_t. 2009-02-01 18:33:46 -04:00
John Wiegley
e61696a91b Moved chain_xact_handlers into its own file, chain.h and chain.cc. 2009-02-01 18:29:30 -04:00
John Wiegley
9f8997f1b5 Values can now be streamed to XML, and all the types they refer to. 2009-02-01 01:48:07 -04:00
John Wiegley
cac7d02dd8 Added a streaming object for outputting XML strings (convenience wrapper). 2009-02-01 01:47:54 -04:00
John Wiegley
307a933180 When outputting a calculated value expression with "parse", show XML too. 2009-02-01 01:47:36 -04:00
John Wiegley
e4b1359959 Restored the --pager option. 2009-02-01 01:47:21 -04:00
John Wiegley
559a76ac2b Fixed the way the pager process was being handled. 2009-02-01 01:47:06 -04:00
John Wiegley
9d267fa133 Inspired by Omari Norman, I've rewritten main.cc so it's easy to approach. 2009-01-31 18:52:34 -04:00
John Wiegley
75daee6a5d Documentation update. 2009-01-31 16:12:03 -04:00
John Wiegley
b027961b96 Removed unnecessary #ifdef block. pyinterp.h now guards itself. 2009-01-31 16:04:21 -04:00
John Wiegley
88a54b6c0b Fixed the list of includes in ledger.h. 2009-01-31 15:43:10 -04:00
John Wiegley
90404e85fa Corrected the way that thousands markers are output. 2009-01-31 15:42:40 -04:00
John Wiegley
1ece3f8b1c Added documentation stubs for all include files and classes. 2009-01-31 15:28:23 -04:00
John Wiegley
e1ce024546 Added some missing break statements. 2009-01-31 14:51:30 -04:00
John Wiegley
f749a1bb1e Made output_stream_t noncopyable. 2009-01-31 05:58:23 -04:00
John Wiegley
0934612436 Stubbed out the new definition for token_t::rewind(), which was failing. 2009-01-31 05:57:48 -04:00
John Wiegley
2ec8cc6b9b Removed an erroneous call to TRACE_CTOR. 2009-01-31 05:48:31 -04:00
John Wiegley
6b5d006575 Fixed some entry balancing problems relating to the new rational code. 2009-01-31 05:44:02 -04:00
John Wiegley
6b81bb8005 Moved a comment. 2009-01-31 05:43:42 -04:00
John Wiegley
5c19bb48e0 Added a copy constructor for basic_flags_t. 2009-01-31 05:43:32 -04:00
John Wiegley
dd9775508a amount_t::is_zero() wasn't checking for '-'. 2009-01-31 05:43:23 -04:00
John Wiegley
ec6a3e8081 Made amount_t::is_zero() slightly more efficient. 2009-01-31 05:00:49 -04:00
John Wiegley
cce65b8dd2 Added a more efficient amount_t::operator==, which changed semantics slightly. 2009-01-31 04:58:16 -04:00
John Wiegley
5a44784817 Removed the special "one" variable, and added amount_t::inverted(). 2009-01-31 04:57:24 -04:00
John Wiegley
e9ff5caa13 Rationals based math is now passing the unit tests. 2009-01-31 04:25:05 -04:00
John Wiegley
c96ab6cb0f Include sha1.h, not SHA1.h. 2009-01-31 02:22:45 -04:00
John Wiegley
5ec98f3ed3 Several corrections to the way rationals are handled. 2009-01-31 01:25:29 -04:00
John Wiegley
02ac444374 Don't parse reserved word (such as "and" or "true") as commodity names. 2009-01-31 01:22:04 -04:00
John Wiegley
6423e44c11 Pre-commands (like "parse") now correctly recognized. 2009-01-31 01:21:46 -04:00
John Wiegley
6983e6a38a Fixed error context output. 2009-01-31 01:21:30 -04:00
John Wiegley
c5795c66c9 "div", or "//", is now the operator of division. 2009-01-31 01:21:14 -04:00
John Wiegley
e0dd2cd0a4 Changed to using rational numbers instead of integer approximations.
As a result, dependency on the gdtoa was dropped, and dependency on mpfr was
added.
2009-01-30 19:30:16 -04:00
John Wiegley
6213dc5af8 Whitespace fix. 2009-01-30 19:28:53 -04:00
John Wiegley
676e7bcf4f Added debug code under the category "entry.extend". 2009-01-30 19:28:07 -04:00
John Wiegley
040255a52b There is no need to round a balance before calling is_zero(). 2009-01-30 19:27:55 -04:00