Commit Graph

8012 Commits

Author SHA1 Message Date
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
Derek Atkins
9c655449a6 print out more info when trying to print/parse numerics. There's
an overflow condition in the function being tested that needs to be fixed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10096 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 15:30:50 +00:00
Derek Atkins
abef3b8364 fix a deprecated guile function (use re-export)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10095 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 15:30:04 +00:00
Derek Atkins
154966f513 Fix a bunch of GUILE_WARN_DEPRECATED warnings.
* src/gnc-module/gnc-module.scm: create (and export) a re-export macro
	  is guile doesn't already provide one.  Then re-export the symbols
	  instead of exporting them.  Fixes some deprecated guile warnings.
	* src/guile-mappings.h: convert scm_gc_{un,}protect_object() back
	  to its pre-1.6 type for earlier guiles, but upconvert to the new
	  type to fix a deprecated warning.  Note that g-wrap is still
	  outputting deprecated code.
	* lots of other files:
	  convert scm_{un,}protect_object -> scm_gc_{un,}protect_object because
	  the former is now deprecated in guile.  Fixes a bunch of
	  GUILE_WARN_DEPRECATED warnings (but probably not all of them).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10094 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 14:52:12 +00:00
Linas Vepstas
456c1de89d Pull dereks carry aptch into the division routines too
-- without it, the division tests fail
Also, cut out duplicated test code


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10093 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 06:41:10 +00:00
Linas Vepstas
68b43e3be6 add random division checks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10092 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 06:39:38 +00:00
Linas Vepstas
d58064d16a add double-precision tests,
add tests of multiplication of random numbers


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10091 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 06:12:09 +00:00
Linas Vepstas
7cee0ad628 tweak division
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10090 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 05:06:43 +00:00
Linas Vepstas
2ee74e3411 more tests for the lcd
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10089 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 05:03:07 +00:00
Linas Vepstas
84f24c27b5 work on the rounding tests
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10088 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 04:49:16 +00:00
Linas Vepstas
e9e28e3dd3 add divide tests, fix equality test
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10087 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 04:28:56 +00:00
Linas Vepstas
2b7a6ddb51 expanded equality checks, begine multiply checks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10086 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 03:32:29 +00:00
Linas Vepstas
8511347e6e tweak the equality tests to avoid aliasing effects for large-number compares.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10085 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 00:18:17 +00:00
Linas Vepstas
4e29f2f0c0 add more equality tests
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10084 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 00:16:50 +00:00
Linas Vepstas
7ef1bd4d71 add more equivalence checks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10083 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-25 23:36:39 +00:00
Linas Vepstas
c6ce7100a7 add random-addition tests
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10082 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-25 22:52:36 +00:00
Linas Vepstas
e784e61127 initial checkin -- automated numeric test
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10081 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-25 22:15:56 +00:00
Derek Atkins
753a7cff62 Better "carry" flag to not overrun a signed 64-bit int (#114980).
* src/engine/gnc-numeric.c: small change to the 128-bit math
	  routines to actually mark a 'carry bit' to denote numbers
	  >= 2^63 to fix bug #144980.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10080 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-25 16:15:40 +00:00
Derek Atkins
e65f9814e6 Add another test for Linas to fix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10079 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-25 00:10:03 +00:00
Derek Atkins
f6b1637e25 David Montenegro's Balance Sheet + Equity Statement patch (#144243).
* Makefile.am: be sure to rebuild make-gnucash-patch and
	  make-gnucash-potfiles when the Makefile changes (which means the
	  PERL paths might have changed).
	* src/scm/paths.scm: change the default config file to 1.9, so we
	  don't screw up users of 1.8.

	* src/report/report-system/html-acct-table.scm:
	  Added file implementing gnc:html-acct-table utility
	  object for easier creation of HTML reports.

        * src/report/standard-reports/balance-sheet.scm:
	  Updated to use the new gnc:html-acct-table object.
	  Added many new options, including report/account
	  form option.

        * src/report/standard-reports/equity-statement.scm:
	  Created Statement of Owner's Equity.
	  (Unsure if correct exchange-fn's are being used.)

        * src/report/report-system/commodity-utilities.scm:
	* src/report/report-system/html-table.scm:
	* src/report/report-system/html-utilities.scm:
	* src/report/report-system/report-system.scm:
	* src/report/report-system/report-utilities.scm:
	  miscellaneous small additions and/or fixes
	Fixes #144243.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10078 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-24 22:11:26 +00:00
Derek Atkins
ef88252b7c Add information about using cvs to create a patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10076 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-24 14:09:51 +00:00
Christian Stimming
3bdddcdf64 Add saving of reports.
2004-06-18  Christian Stimming  <stimming@tuhh.de>

	* src/scm/main-window.scm, src/scm/main.scm: Added example Menu
	item "File -> Save all reports" that will call the new report
	saving function for all reports. Reports are appended to
	~/.gnucash/saved-reports-1.8 . This would need more work so that
	not all reports are saved but only the currently selected one --
	any volunteer may feel free to add that.

	* src/report/report-system/report.scm, report-system.scm: Added
	gnc:report-generate-saved-forms that will generate the scheme code
	necessary to create a new report from the saved options of an old
	report (merged from 1-8-branch).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10074 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-21 20:25:12 +00:00
Linas Vepstas
77ca4e7afa add a foreach function to itereate over all registered classes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10071 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-20 16:03:43 +00:00
Linas Vepstas
4999b0b966 add a parameter for-each function per request from Niel Williams
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10070 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-20 15:48:39 +00:00
Linas Vepstas
9d453b6680 sync with qof sources
- add documentation/commentary


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10069 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-20 15:17:36 +00:00
Derek Atkins
2b072e23c8 Auto-load a new "saved reports" config file.
* src/scm/paths.scm: create gnc:current-saved-reports, as
	  the file to store saved reports from cstim.  Autoload the
	  saved-reports file at startup (after config.user/config.auto
	  is loaded).
	* src/scm/main.scm: export gnc:current-saved-reports


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10066 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-18 16:45:10 +00:00
Linas Vepstas
2f265559ed -- add loader for the dwi backend
-- get rid of dorky, pointless subroutine call


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10065 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-14 01:05:58 +00:00
Linas Vepstas
a3a3210b27 add version param
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10064 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-13 20:47:31 +00:00
Linas Vepstas
17531066a1 Remove the file-path utilities from qofsession.c and move them into
a temp file 'gnc-filepath-utils.c' which is used by both the
file backend and by the app-file GUI routines.  Some of the file-resolution
logic was oved to the file backend.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10063 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-13 20:01:29 +00:00
Linas Vepstas
c69fa356d0 move the file-path utilities out of qofsession.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10058 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-13 17:23:26 +00:00