Commit Graph
100 Commits
Author SHA1 Message Date
Linas Vepstas 4b57fb2451 careful printing null string
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10252 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:54:08 +00:00
Linas Vepstas b155f5d09c make sure that uninitialized value is not accidentally used.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10251 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:51:05 +00:00
Linas Vepstas ab685928b4 fix indentation problems
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10250 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:46:37 +00:00
Linas Vepstas 5ee3f168db fix null-pointer deref
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10249 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:42:08 +00:00
Linas Vepstas ad5b28c8c9 fix possible NULL-pointer deref
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10248 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:30:27 +00:00
Linas Vepstas f8f1a31b9b remove wacky loop that can be executed only once
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10247 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:28:34 +00:00
Linas Vepstas 2a28f52f84 fix null-pointer deref; fix more bad indentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10246 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:23:18 +00:00
Linas Vepstas 3efa30588b fix possible null-pointer deref
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10245 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:20:59 +00:00
Linas Vepstas 5689a952e8 fix usage of uninitialized variable (by initializing it)
and also some more wacky indentation fixes


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10244 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:19:41 +00:00
Linas Vepstas 7c24c9b18b fix indentation problems
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10243 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:15:55 +00:00
Linas Vepstas d2d1df7052 fix memory leak
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10242 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:15:18 +00:00
Linas Vepstas 8394ae7a3b make sure return values are completely initialized
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10241 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:07:10 +00:00
Linas Vepstas 13841d9390 fix indentation problems
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10240 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 21:59:39 +00:00
Linas Vepstas 1e37023609 fix a seriously nasty junk-memory reference.
This particular nasty could actually mangle-ify QIF import
in a bad way, and goof people up.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10239 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 21:58:34 +00:00
Linas Vepstas b3078d3234 remove old-fashioned block style
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10238 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 21:46:59 +00:00
Linas Vepstas f5b37208cd clarify fall-through condition; fix indentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10237 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 21:42:41 +00:00
Linas Vepstas 824bac37ed replace insane algorithm (which always returned last iterm in array)
with something real.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10236 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 21:37:20 +00:00
Linas Vepstas 8926814468 fix potential null-pointer deref; fix indentation problems
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10235 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 21:23:23 +00:00
Linas Vepstas 2efc2f1f60 make sure that function doesn't return while structure is
holding pointer to a stack variable.  Also, simplify logic.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10234 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 21:17:54 +00:00
Linas Vepstas dc020bfec8 remove null-pointer deref
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10233 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 21:10:16 +00:00
Linas Vepstas 07c7d35d31 fix bad indentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10232 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 19:02:39 +00:00
Linas Vepstas da37f28375 fix divide by zero
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10231 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 18:52:31 +00:00
Linas Vepstas fc4e7fec9e fix null-pointer deref/memory leak
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10230 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 18:49:44 +00:00
Linas Vepstas 8113c9ccaf fix null pointer deref
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10229 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 18:46:44 +00:00
Linas Vepstas a0c11f2f12 add some to-do notes for later
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10210 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-26 22:44:10 +00:00
Linas Vepstas 3eaaeffd24 documentation cleanup; merge from qof sources
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10209 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-26 22:10:19 +00:00
Linas Vepstas 48df8b8884 Apply patch from Neil Williams <linux@codehelp.co.uk>
Extended the QofSetterFunc to business objects, for those set_fcn 's that
exist.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10207 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-26 12:41:43 +00:00
Linas Vepstas 43765025d7 Apply patch from Neil Williams <linux@codehelp.co.uk>
Added QofSetterFunc to Account, Transaction and gnc_pricedb to aid
gncBookMerge and SQL backend


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10206 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-25 15:12:50 +00:00
Linas Vepstas 8c83c4fb0f raw data for number of lines of code in gnucash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10202 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-17 04:06:22 +00:00
Linas Vepstas abcabc7436 small gnuplot script to graph the total number of lines of code in
gnucash (historical data)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10201 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-17 03:52:30 +00:00
Linas Vepstas fb8273bc80 add overview, cut and pasted from recently revised texinfo docs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10193 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-10 15:20:57 +00:00
Linas Vepstas ae31849309 Tweaks - Derek, can you upgrade the version of doxygen on cvs.gnucash.org?
doxygen --version 1.3.6 seems to handle grouping of functions correctly,
whereas version 1.3.4 does not.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10192 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-10 15:17:28 +00:00
Linas Vepstas af15b1bfd8 edit/corect old and incorrect statements about how transactions work.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10191 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-10 14:57:59 +00:00
Linas Vepstas d184068f27 copy and edit transaction overview from the texinfo documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10190 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-10 14:56:53 +00:00
Linas Vepstas 0d5411a571 sync with German Wiki (I'm copying the description I wrote there to here).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10189 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-10 14:33:09 +00:00
Linas Vepstas 667f1becce sync overview notes with German wiki
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10188 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-10 14:22:51 +00:00
Linas Vepstas b3cea34b4b too many price-dbs are being created ... causing tests to fail
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10186 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-09 03:22:21 +00:00
Linas Vepstas 4515ea6514 tweak messages
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10185 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-09 03:13:52 +00:00
Linas Vepstas 52c40919ff get rid of the srand
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10184 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-09 03:13:33 +00:00
Linas Vepstas 465828827a style tweak
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10183 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-09 03:11:32 +00:00
Linas Vepstas 656e03fb96 add check for null pointer
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10182 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-09 03:09:32 +00:00
Linas Vepstas e1807cad13 port over to new typenames.
Make sure that accounts are properly anchored in a book.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10181 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-09 03:07:34 +00:00
Linas Vepstas caf2017cfd re-order division so as to handle the failure of a special case
(this fixes the test-query bug)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10180 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-07 06:20:44 +00:00
Linas Vepstas 9208d7ce8e add the failing test-query test as a special case
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10179 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-07 06:17:49 +00:00
Linas Vepstas 6ce3b3c2fc fix test case failure by re-ordering block of code that checks for LCD
flag.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10178 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-07 05:38:24 +00:00
Linas Vepstas 922d18d706 add code to make sure that split amount and value are valid numbers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10174 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-07 02:59:28 +00:00
Linas Vepstas 8ac1f54b9f add code to create intentionally borked transactions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10173 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-07 02:42:44 +00:00
Linas Vepstas c56e1cf90b improve debug printing
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10172 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-06 14:41:02 +00:00
Linas Vepstas 441046b19e add check -- cap gains not possible is value and amount are in the same
currency


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10171 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-06 14:39:19 +00:00
Linas Vepstas 60f2797947 shuffle big blocks of code around; no actual changes to function
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10170 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-06 14:24:09 +00:00
Linas Vepstas 763b1ea012 handle yet another overflow case in numeric multiplication.
Turns out there were common factors between two fractions;
by eliminating these first, significant rounding errors can
be avoided.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10169 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-06 13:42:39 +00:00
Linas Vepstas bc2faba5ff add to-do notes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10168 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-06 03:46:41 +00:00
Linas Vepstas a069fe265f clean up test generator to produce self-consistent data.
I make these changes with some trepidation, since this puts
a whole lot less stress on the 'scrub' infrastructure.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10167 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-06 03:40:57 +00:00
Linas Vepstas 5ac7a28aa8 improve debug printing
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10166 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-06 03:38:25 +00:00
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
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
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
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
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
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