John Wiegley
c28d828d8e
Renamed date_interval_t::end to finish
2009-11-17 21:51:51 -05:00
John Wiegley
4bc830a2c5
Some reformatting in query.h
2009-11-17 21:29:33 -05:00
John Wiegley
b06df8533b
Added ledger::string(Iter, Iter) constructor
2009-11-17 21:28:56 -05:00
John Wiegley
b2ba07b90c
Fixed several time and date duration type uses
2009-11-17 21:28:43 -05:00
John Wiegley
6b557f810e
Merge branch 'next'
2009-11-16 00:15:25 -05:00
John Wiegley
b2c426abae
Fixed one of the ExprTests
2009-11-15 22:13:53 -05:00
John Wiegley
9448bd6fa9
If tools/proof succeeds, move proof.log into /tmp
2009-11-15 05:50:55 -05:00
John Wiegley
21a9fe108e
Made the account and tag directives more rational
...
Now you must specify "account / end account", and "tag / end tag". For
backwards compatability, plain "end" is the same as "end account".
2009-11-15 05:49:54 -05:00
John Wiegley
2a411b5c1d
Corrected parsing of the 'expr' report query term
2009-11-15 05:49:54 -05:00
John Wiegley
38e165a994
Made the transaction date parser a bit more strict
2009-11-15 05:49:52 -05:00
John Wiegley
41212cd4c1
Build the opt variant for uploading to FTP
2009-11-15 04:16:47 -05:00
John Wiegley
badbeb545b
Merge branch 'next'
2009-11-14 20:43:28 -05:00
John Wiegley
8d698e5ccb
Don't use GLIBCXX_DEBUG only for opt builds
2009-11-14 17:43:19 -05:00
John Wiegley
cc7d51f154
Untabified tools/configure.ac
2009-11-14 16:19:18 -05:00
John Wiegley
24fc856664
Added README notes about building on OS X
2009-11-14 16:19:07 -05:00
John Wiegley
ca43dcbd1f
Don't configure doxygen or dot when building CppUnit
2009-11-14 16:19:00 -05:00
John Wiegley
9b614cdd0d
Use -fast for building optimized Ledger on OS X
2009-11-14 16:18:45 -05:00
John Wiegley
ff484fb27b
Fixes to the ways OS X libraries are located
2009-11-14 16:18:31 -05:00
John Wiegley
0f975df36b
Improved some of the dependencies targets
2009-11-14 16:17:48 -05:00
John Wiegley
ce96e61bf8
Removed ARCHFLAGS from the acprep file
2009-11-14 16:17:34 -05:00
John Wiegley
20c725df93
Made the amount_t::bigint_t refcount holder 32-bits
...
It was overflowing on a full register report of just 3M of data.
2009-11-14 06:25:27 -05:00
John Wiegley
d1faa1e505
Use the static Python libs when building statically
2009-11-14 06:13:06 -05:00
John Wiegley
cb9991093d
Changed a use of balance_error to amount_error
2009-11-14 06:12:10 -05:00
John Wiegley
aa3bade050
Added another catch handler for Python exceptions
2009-11-14 06:11:58 -05:00
John Wiegley
3bec708e38
Fixed an internal reference issue with Python
2009-11-14 06:11:45 -05:00
John Wiegley
d12c7e08c6
Removed post_t::xdata_t::ptr, which is not used
2009-11-14 06:11:18 -05:00
John Wiegley
d89c60f49c
Memoize results from the fast predicate matcher
...
This gains another 15% for the parser, again with a very simple change
that has no impact if the fast predicate matcher fails to work.
2009-11-14 04:29:53 -05:00
John Wiegley
e3064b9520
Spot optimization for simple automated xact exprs
...
This reduces parsing time in the optimized build by 25%, and was a safe,
easy patch. If the "quick predicate evaluator" fails, we disable it
from that point on go back to what the standard code does.
2009-11-14 03:45:18 -05:00
John Wiegley
d71f0867f9
Removed the virtual marker on several filter methods
2009-11-14 03:16:44 -05:00
John Wiegley
ac0fe8c248
Move .dmg files after uploading in tools/push
2009-11-14 03:12:09 -05:00
John Wiegley
a461e17eee
Added historical support for single-letter valexprs
2009-11-14 03:11:48 -05:00
John Wiegley
7a44791221
Optimization in the formatting of string values
2009-11-14 02:49:38 -05:00
John Wiegley
2d58224001
Break up multiple commodities in equity report
2009-11-14 02:32:49 -05:00
John Wiegley
ee93b5c740
Added baseline test for reg -n
2009-11-14 02:32:18 -05:00
John Wiegley
d76a6a82dc
Don't bold the payee for virtual or temporary xacts
2009-11-13 19:00:45 -05:00
John Wiegley
d098b116e8
Moved a usage of Ar in the man page
2009-11-13 14:37:54 -05:00
John Wiegley
73baf9cd72
Merge branch 'next'
2009-11-13 13:41:54 -05:00
John Wiegley
2986bc779e
Stylistic change: assert(0) -> assert(false)
2009-11-13 01:48:32 -05:00
John Wiegley
f50ea971ef
Fixed some debug output
2009-11-13 01:48:13 -05:00
John Wiegley
55317174dd
Python support is now off by default
2009-11-13 01:48:02 -05:00
John Wiegley
e35394a70d
--data shouldn't modify the underlying item
2009-11-12 18:23:22 -05:00
John Wiegley
ef3adb5fe0
Move a typedef in utils.h
2009-11-12 15:43:58 -05:00
John Wiegley
bfd9ecf2af
Merge branch 'next'
2009-11-12 14:29:08 -05:00
John Wiegley
49a356f2d2
Added a Journal.collect method to Python
...
This lets you run standard report queries against a Ledger journal and
get back a collection of postings, for example:
import ledger
journal = ledger.Journal("sample.dat")
posts = journal.collect("-M assets")
for post in posts:
print post.account
However, this code is not really working yet for a large variety of
reasons, having to do with object life-time, shallow copying, and lack
of reference counting where it should be. For instance, calling
ledger.Journal().collect() fails because the temporary journal object is
destroyed and the collection now has a host of bad pointers. Using "for
post in journal.collect()" fails too with other bad pointers. And the
whole lot of it crashes on exit at the moment.
2009-11-12 05:26:06 -05:00
John Wiegley
65ba928a59
Removed unnecessary code
2009-11-12 05:11:09 -05:00
John Wiegley
f217e50ab6
Set call policies for accessing post.xdata.account
2009-11-12 05:11:09 -05:00
John Wiegley
86daa41a90
Added a collect_posts handler
2009-11-12 05:11:09 -05:00
John Wiegley
cd0a040778
Reordered the export_ calls in pyinterp.cc
2009-11-12 05:11:09 -05:00
John Wiegley
9858b4957f
Reorganized a bit of the reporting code
2009-11-12 05:11:09 -05:00
John Wiegley
48dc654eda
Added has_xdata() methods for journal_t and xact_t
2009-11-12 05:11:06 -05:00