Commit graph

2021 commits

Author SHA1 Message Date
John Wiegley
17cbb9d210 If Python is not in use, global includes session 2009-03-05 16:55:46 -04:00
John Wiegley
5f3e5f5b7c Restored Makefile.am ordering to be top-down 2009-03-05 04:14:11 -04:00
John Wiegley
c11d325712 Reduced the #include dependency tree to a minimum 2009-03-04 23:53:43 -04:00
John Wiegley
9a47298d81 Don't run autogen from acprep unless necessary 2009-03-04 14:14:59 -04:00
John Wiegley
32911da939 Don't build a gprof version in tools/proof 2009-03-04 14:06:38 -04:00
John Wiegley
1a1f11a683 In the pre-commit hook, run acprep, not myacprep 2009-03-04 04:35:37 -04:00
John Wiegley
55b2fef58c Don't warn about old-style casts (e.g., Python.h) 2009-03-04 04:34:38 -04:00
John Wiegley
9d4e888ef5 Cured several harmless compiler warnings 2009-03-04 04:31:34 -04:00
John Wiegley
2d63c9364a Changed many assert() calls to VERIFY() 2009-03-04 04:29:10 -04:00
John Wiegley
dcac306467 Corrected a build error if Python support missing 2009-03-03 22:13:36 -04:00
John Wiegley
1540ccec01 Gather account details in a details_t structure 2009-03-03 20:28:09 -04:00
John Wiegley
eb45a0a4f4 Normalized how account totals are calculated 2009-03-03 17:08:11 -04:00
John Wiegley
cf2548c29c Several corrections to the man page 2009-03-03 17:03:00 -04:00
John Wiegley
9ae28a160a Added a new "account_amount" valexpr function
At the moment, it's only useful during parsing.
2009-03-03 16:29:59 -04:00
John Wiegley
c305db937c If a posting has an integer amount, convert it 2009-03-03 16:28:20 -04:00
John Wiegley
e2c30cf6e4 Added ; as a sequencing operator in valexprs 2009-03-03 16:05:04 -04:00
John Wiegley
098e3b0043 Fixed parsing of '(1, 2, (3, 4))' 2009-03-03 16:02:34 -04:00
John Wiegley
4af1bfdde3 Allow special %{} formatting sequence
Although %(amount) inserts an item's amount, it only does exactly that.
There is no special consideration like stripping of lot details, or
reduction to the base commodity, etc.  For those things, and to make
sure it was display in red if negative, the canonical form would be:

  %(ansify_if(justify(scrub(amount), 12, -1, true), red if amount < 0))

You can now use the special %{} form as an alternate to this:

  %12{amount, red if amount < 0}

The two expand to the same underlying expression.
2009-03-03 15:06:15 -04:00
John Wiegley
de3bafc0d7 Made all the ANSI color names into valexpr names 2009-03-03 14:59:56 -04:00
John Wiegley
27c0de0da3 Using ./acprep now builds statically by default 2009-03-03 14:54:42 -04:00
John Wiegley
67a45a0e3c Made error reporting while parsing more resilient 2009-03-03 14:42:46 -04:00
John Wiegley
ba9efa3ab9 Removed python/interp.py, for "ledger python" 2009-03-03 14:40:36 -04:00
John Wiegley
edf1ccd6ab Added a "python" command, which invokes Py_Main 2009-03-03 14:39:07 -04:00
John Wiegley
8da771e331 Added missing reference to LedgerHarness.py 2009-03-03 14:08:45 -04:00
John Wiegley
79acfc1647 Moved fn_false to be a non-member function 2009-03-03 13:53:12 -04:00
John Wiegley
478998b4e9 Added a "null" value for value expressions 2009-03-03 13:36:23 -04:00
John Wiegley
0f9d919367 Added Python-style if/else expression keywords 2009-03-03 13:26:27 -04:00
John Wiegley
d7b9f9e068 Refactored test/RegressTests.py 2009-03-03 03:02:51 -04:00
John Wiegley
710e4792d1 Added a "show" report query term
Everything beyond the show modifies the --display predicate, and
everything before modifies the --limit predicate.
2009-03-02 22:33:43 -04:00
John Wiegley
31d6430c78 Fixed another time-sensitive unit test 2009-03-02 21:38:13 -04:00
John Wiegley
1c7de0f9e4 Added "fixated commodity pricing"
If you put '=' before an annotated commodity's price, it will cause any
future market valuation of that commodity to use that price, and ignore
whatever changes may have happened since in the market price.  This can
be useful if you are tracking gas expenses based on a standard rate
which, although it changes over time, should not adjust the historical
valuation of how much the gas cost at the time it was purchased:

    2009/01/01 Payee
        Expenses:Gas                100 GAL {=$2}
        Liabilities:MasterCard        $-200
2009-03-02 16:39:26 -04:00
John Wiegley
c10c01e5a5 Removed tools/push from version control 2009-03-02 05:03:48 -04:00
John Wiegley
ea0e14ae74 The entry command now implies --actual 2009-03-02 05:01:04 -04:00
John Wiegley
25f106d299 The entry command always creates uncleared items 2009-03-02 04:56:18 -04:00
John Wiegley
ce206a392a The entry command no longer handles effective dates 2009-03-02 04:54:00 -04:00
John Wiegley
8e43a27211 The optimized build could not run 'make fullcheck' 2009-03-02 04:51:55 -04:00
John Wiegley
1937394db8 Failing RegressTests weren't reporting failure 2009-03-02 04:50:21 -04:00
John Wiegley
a2ed6bc95d Patched some date-sensitive tests 2009-03-02 04:49:03 -04:00
John Wiegley
5d214e515f Refactored tools/proof 2009-03-02 04:43:49 -04:00
John Wiegley
67b9c917e6 Fixed a broken Makefile dependency 2009-03-01 22:43:51 -04:00
John Wiegley
ad42447475 Changed how comments are output to be more logical 2009-03-01 05:40:44 -04:00
John Wiegley
9a23b73491 Move tools/autogen.sh to root of distribution 2009-03-01 01:07:16 -04:00
John Wiegley
33fa4a0be6 Pass CC/LD/CXX to CppUnit build in lib/Makefile 2009-02-28 06:25:23 -04:00
John Wiegley
e60791dc46 Filter debug info output by GuardMalloc 2009-02-28 06:21:21 -04:00
John Wiegley
41092ee072 Created test/input/wow.dat 2009-02-28 06:18:48 -04:00
John Wiegley
30c2252b05 Removed a license file that's no longer relevant 2009-02-28 06:18:39 -04:00
John Wiegley
5afc4c3770 Reorganized some files in tools/ and test/ 2009-02-28 06:18:21 -04:00
John Wiegley
19cfd9e23b Fixed the printing of O_CONS nodes 2009-02-28 06:13:49 -04:00
John Wiegley
c87aa9c2ea Use g++-4.3 on OS X, if available 2009-02-28 05:58:38 -04:00
John Wiegley
4d632903c1 Added LedgerHarness.py, to simplify test creation 2009-02-28 05:37:49 -04:00