Commit Graph

8191 Commits

Author SHA1 Message Date
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
Linas Vepstas
a6e0c9f03b changes to make doxygen documentation build
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10110 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-27 05:02:12 +00:00
Linas Vepstas
d7682c257d add qofmath128.c -- for now, treat it as an inlinable header file, for now.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10109 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-27 04:12:31 +00:00
Linas Vepstas
d98f9573cf strip out the 128-bit math to its own stand-alone file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10108 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-27 04:07:11 +00:00
Linas Vepstas
c24d87eeb3 initial checkin of 18-bit integer math lib
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10107 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-27 04:05:07 +00:00
Linas Vepstas
fab4674a0e finish folding in the now-obsolete texinfo documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10106 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-27 03:57:25 +00:00
Linas Vepstas
d204341674 deprecate the gnc_numeric documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10105 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-27 03:56:11 +00:00
Linas Vepstas
b61d55a9c6 partially completedd merger of texinfo documentation into teh header
file


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10104 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-27 02:26:28 +00:00
Linas Vepstas
323c9afa3f add clarifying documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10103 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 23:40:01 +00:00
Linas Vepstas
3ebf899792 fix the test case; it really is an overflow on division,
there's a bunch of huge prime numbers involved.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10102 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 23:10:39 +00:00
Linas Vepstas
2a966c502c -- finish work on add128
-- make subtract a special case of add (instead of copying code)
-- improve overflow characteristics of divide


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10101 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 23:01:38 +00:00
Linas Vepstas
a01fad7d5b -- fix the least-common-denominator algorithm
-- try to avoid certain types of denominator overflows in addition
-- start implemented an add128 routine (not done)
-- white-space changes


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10100 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 19:08:13 +00:00
Derek Atkins
27f6709d33 Add another test to test-numeric to show a division overflow.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10099 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 18:06:20 +00:00
Linas Vepstas
d5668d57df remove 32-bit limits that show up in division calculations
(could cause overflow during certain pricing calculations)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10098 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 16:16:56 +00:00
Linas Vepstas
dacfb55687 rename carry flag to the 'isbig' flag;
fix a cuple of places that should have used it.
Fix a hole in the division algo


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10097 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 15:36:38 +00:00