Linas Vepstas
27726dde38
cleanup debug printing
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10165 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-06 03:37:31 +00:00
Linas Vepstas
b406054128
replace the algo in xaccTransGetImbalance() with a higher-performance version
...
also, clean up some debug outp[ut printing
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10164 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-06 03:36:47 +00:00
Linas Vepstas
ae2ea54415
the error log wasn't being initialized
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10162 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-05 17:22:30 +00:00
Derek Atkins
2168045b6f
Improved checks for scanf %lld and %qd as per gc-devel mail.
...
* acinclude.m4: create a SCANF_QD_CHECK and make sure both
that and SCANF_LLD_CHECK are "long long" constant-safe
* configure.in: use the new SCANF_QD_CHECK and use it
earlier in the configuration.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10161 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-05 03:24:04 +00:00
Linas Vepstas
f732926232
remove really dorky memory leak during debug printing
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10160 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-04 17:26:50 +00:00
Derek Atkins
abc0dfff51
Get test-lots to die consistently.
...
- Set the rng to a known seed.
- Loop the test so it fails.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10159 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-04 17:24:08 +00:00
Linas Vepstas
454a48e325
fix really trite memory leak
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10158 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-04 17:21:15 +00:00
Linas Vepstas
fe8ecadbdc
fix null-pointer deref that results in core dump.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10157 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-04 17:18:43 +00:00
Derek Atkins
2291561fbf
get test-query to fail consistently.
...
PERR() when xaccTransGetSharePrice() overflows.
Loop test-query, and start the rng to fail consistently.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10156 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-04 17:10:38 +00:00
Linas Vepstas
ae6b1c475e
fix minor memory leak, the numeric_to-string returnes alloced memory
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10155 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-04 15:01:05 +00:00
Linas Vepstas
1a66b7b8d4
improved diagnostic messages
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10154 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-04 04:26:01 +00:00
Linas Vepstas
f76b3ad534
fix yet another intermediate-math overflow bug.
...
comparing two numbers gave incorrect results because
intermediate calculation overflowed
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10153 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-04 03:56:40 +00:00
Linas Vepstas
5ff6c419d6
add function to compare (order) two numbers
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10152 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-04 03:55:16 +00:00
Linas Vepstas
2e0ea64b27
ignore test case binaries
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10151 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-03 22:12:33 +00:00
Linas Vepstas
17dcfe61f6
style tweaks
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10150 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-03 22:11:52 +00:00
Linas Vepstas
6445a80a08
whitespace fixes
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10149 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-03 21:11:47 +00:00
Linas Vepstas
b601364047
change fifo/lifo policy to not serve up splits with a zero amount
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10148 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-03 19:03:45 +00:00
Linas Vepstas
cc663f2098
-- reject voided transactions in cap-gains caluclations;
...
-- improve diagnostic error messages
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10147 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-03 18:57:31 +00:00
Linas Vepstas
75fbd13b64
-- do not add voided transsactions to lots.
...
-- improve dagnostic prints for certain errors
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10146 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-03 18:54:48 +00:00
Linas Vepstas
bf408cb3c3
bugfix: failed to update list of frames correctly when the
...
first item in the list was delected. This could lead to
infinite loops.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10145 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-03 18:38:37 +00:00
Linas Vepstas
492ed743ae
re-order the way that random data is created,
...
making it slightly more random.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10144 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-03 15:29:39 +00:00
Linas Vepstas
16ef1b0e22
remove commented out cruddy code
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10143 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-03 15:19:19 +00:00
Derek Atkins
8fe7398fb4
Add TD Efunds ( #145297 ).
...
* src/engine/gnc-commodity.c:
Apply David Grant's patch to add TD Efunds. Fixes #145297 .
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10142 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-03 02:20:33 +00:00
Derek Atkins
c2e3dee382
Apply David Reiser's patch for Quicken(tm) cheques with stub.
...
* src/gnome/dialog-print-check.c:
* src/gnome/glade/print.glade:
* src/scm/printing/print-check.scm:
Apply David Reiser's patch for Quicken(tm) cheques with stub.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10140 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-03 02:11:51 +00:00
Linas Vepstas
c1f9d93c9c
tweak yet another possible overflow path
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10138 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-03 01:49:22 +00:00
Linas Vepstas
3e14e8c3d3
That's not all, there's even more!
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10137 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-03 01:47:30 +00:00
Linas Vepstas
0e0482c2c8
test driver tweaks
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10136 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-03 01:24:01 +00:00
Linas Vepstas
0a68dbc6d8
fix what I beleive is the last of the overflow bugs.
...
If rounding is allowed, then multiplication should (never?) overflow.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10135 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-03 01:19:51 +00:00
Linas Vepstas
7c48896b8d
Last of the Mohicans
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10134 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-03 01:17:26 +00:00
Linas Vepstas
4ffa9fff32
make the debug print statements more informational
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10133 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-02 04:06:12 +00:00
Linas Vepstas
7a7fee132e
re-order math to make overflow less likely
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10132 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-02 04:05:25 +00:00
Linas Vepstas
fdbd2da2ab
-- improve debug printing messages.
...
-- re-order math to make overflow less like to occur
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10131 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-02 04:03:59 +00:00
Linas Vepstas
f440c3ac8d
bug-fix -- adding negative num to zero used to give a positive result.
...
(this bug was introduced only recently, about a week ago, with the changes
to 128-bit intermediate calculations, and does not/should not affect any
actual users).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10130 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-02 03:13:43 +00:00
Linas Vepstas
56059a5a22
add more tests involving negative quantities
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10129 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-02 03:11:09 +00:00
Linas Vepstas
0ccd82473b
adding a negative number to zero flips its sign! Oops!!
...
Add a test to make sure it never happens again.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10128 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-02 03:00:02 +00:00
Christian Stimming
063e545fc0
Add toolbar element for saving the current report.
...
2004-06-30 Christian Stimming <stimming@tuhh.de>
* src/report/report-gnome/window-report.c: Add toolbar element for
saving the current report.
* src/report/report-system/report.scm, report-system.scm: Add
function for saving one particular report to the
~/.gnucash/saved-reports-1.8 file. Add extra menu only for
customized reports.
* src/scm/main-window.scm, src/scm/main.scm: Remove the previous
function for saving all reports since it is no longer necessary.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10127 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-30 20:08:15 +00:00
Linas Vepstas
5a101b3354
check for overflows in the remainder calculations ...
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10124 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-30 02:37:05 +00:00
Linas Vepstas
812fbb094f
bug fix -- the RND_NEVER flag was being ignored
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10123 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-30 02:21:55 +00:00
Linas Vepstas
4088394502
final form of test case
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10122 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-30 02:17:42 +00:00
Linas Vepstas
a9755831a4
add new/improved rounding/overflow test
...
replace 'old' GNC_RND tokens with new GNC_HOW_RND
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10121 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-29 14:44:41 +00:00
Linas Vepstas
d4f0340520
remove debug printf's move reduce routine out of 128-bit math lib
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10120 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-29 03:50:59 +00:00
Linas Vepstas
d53ae73969
128-bit division algorithm was badly broken,
...
replace it with standard grade-school long division
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10119 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-29 03:45:08 +00:00
Linas Vepstas
061aabdaa3
bug-fix for how large-number division is done
...
bug fix for large-number conversion
-- (there are still some bugs, and some print statements, which I'll
remove shortly)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10118 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-27 22:35:29 +00:00
Linas Vepstas
5870f0d581
add some debug statements,
...
audit the math usage,
tweak the scrub routines to get rid of the no-root error message
(some debugging printfs remain, which I'll remove later)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10117 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-27 22:32:59 +00:00
Linas Vepstas
afd64bc58f
whoops, mised a flag
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10116 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-27 20:54:03 +00:00
Linas Vepstas
24055b8c49
add a shift-right (divide by two) function
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10115 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-27 20:06:36 +00:00
Linas Vepstas
ecbd743dbb
Audit use of gnc_numeric functions
...
whitespace changes (looked wacked if tabstops != 8)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10114 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-27 17:57:43 +00:00
Linas Vepstas
b29c0fe21d
Audit use of gnc_numeric rounding and denom specification.
...
Change GNC_RND to GNC_HOW_RND
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10113 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-27 17:56:02 +00:00
Linas Vepstas
1d7e3f3384
make random-numeric code more human-readable
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10112 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-27 17:39:24 +00:00
Linas Vepstas
ba5e91cf96
tweaks to make the doxygen docs build correctly
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10111 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-27 05:17:13 +00:00