Commit Graph

8012 Commits

Author SHA1 Message Date
Linas Vepstas
894da26df6 whoops
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9975 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 18:29:27 +00:00
Linas Vepstas
94c46181df update documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9974 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 18:22:53 +00:00
Linas Vepstas
e10faa04b5 partial fix for http://bugzilla.gnome.org/show_bug.cgi?id=139677
requires that all splits in lot share a common transaction currency.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9973 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 18:04:40 +00:00
Derek Atkins
a9bbb453e7 Fix memory corruption: add book_closing and use it.
* src/engine/Transaction.c:
	  Don't recompute balances or write to the translog when we're
	  shutting down.  Destroy the parent transaction from xaccSplitDestroy()
	  if we're shutting down.
	* src/engine/qofbook-p.h:
	* src/engine/qofbook.h:
	* src/engine/qofbook.c:
	  add "shutting_down" parameter and getter-method, so that
	  objects can detect when the book is shutting down and
	  ignore non-necessary reprocessing.  Fixes a memory corruption
	  bug during book-closing.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9972 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 17:45:56 +00:00
Linas Vepstas
b83705a471 whitespace fixes (convert tabs to spaces)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9971 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-28 14:01:11 +00:00
Derek Atkins
eed3dfed9f A few more QOF_QUERY_PARAM_GUID -> QOF_PARAM_GUID conversions.
* src/gnome-search/dialog-search.c:
	* src/gnome-search/gnc-general-search.c:
	* src/gnome-utils/gnc-query-list.c:
	  Linas missed a few QOF_QUERY_PARAM_GUID -> QOF_PARAM_GUID
	  conversions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9969 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-24 21:12:25 +00:00
Derek Atkins
8ab475610b Vasil's patch to add "export" option to txn report.
* src/report/standard-reports/transaction.cm: applied Vasil's
	  patch to improve the transaction report for HTML export
	  purposes.  Fixes bug #142942.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9968 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-24 16:55:59 +00:00
Linas Vepstas
ce63311484 -- Rename QOF_QUERY_PARAM_XX to QOF_PARAM_XX
-- Add 'new' callback to QofObject.  This allows QofObject to act
   as an 'object factory', creating a new instance of something,
   given only the type name.  Plan to use this in the new SQL
   backend, when restoring objects from SQL tables.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9965 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-23 17:31:40 +00:00
Linas Vepstas
2bddf219fa bug fix, book getter should have been returning book
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9964 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-23 16:52:55 +00:00
Derek Atkins
7854068fa8 Guile-1.6 doesn't allow string->symbol on a symbol (bug #131201).
* src/report/locale-specific/us/taxtxf.scm: guile-1.6 complains
	  about string->symbol when passed a symbol.  Fixes #131201
	  Also add some code to handle accounts that are expected to
	  have parents but do not (also described in #131201).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9963 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-17 18:55:16 +00:00
Derek Atkins
bc21c87cd8 automake-1.8.x is more pedantic about m4 quoting.
* Luigi Ballabio's automake patch to gnucash.m4


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9960 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-15 16:13:29 +00:00
Christian Stimming
70b125d138 For gcc3.4.x, add -Wdeclaration-after-statement warning switch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9958 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-08 10:00:52 +00:00
Christian Stimming
524f98c9d3 (gnc_imap_add_account_bayes): Skip the case when a token is the empty string.
2004-05-08  Christian Stimming  <stimming@tuhh.de>

	* src/import-export/import-match-map.c
	(gnc_imap_add_account_bayes): Skip the case when a token is the
	empty string. This caused many warnings about a NULL kvp_frame
	lookup.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9956 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-08 09:32:36 +00:00
David Hampton
e752fa5714 Added quote sources for Indian Mutual Funds.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9954 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-08 05:27:26 +00:00
David Hampton
f63c016e0a Needs to include config.h.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9953 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-08 05:26:43 +00:00
Linas Vepstas
6f27b18d37 Changes to get rid of most of the remaining usages of deprecated
guile gh_* routines.  The file engine-helpers.c also has whitespace
changes where tabs were expanded to 8 spaces (I have set ts=3, so
mixed tab/space indentation looks terrible). I beleive that the
changes are all good, but if you suspect the worst, you can revert by
fishing out the cvs tag 'pre-gh-deprecate'.

Some of the gnome files weren't converted, mostly because the
conversions really should be done in the gnome2 branch not this
branch.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9950 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-08 03:53:51 +00:00
Derek Atkins
0fa3a1904d Remove gncOrder.h from doxygen (I hope this works correctly)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9948 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 13:40:55 +00:00
Linas Vepstas
4f1297bc75 just a couple more documentation tweaks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9947 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 05:20:15 +00:00
Linas Vepstas
1471882a35 add markup to get these files to appear in the Doxygen documentation
system


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9946 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 05:11:49 +00:00
Linas Vepstas
23124f665b more doxygen docuemtnation updates
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9945 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 04:54:21 +00:00
Linas Vepstas
d4fbf9c7f9 changes to make the documentation format nicely with Doxygen
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9944 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 04:47:03 +00:00
Linas Vepstas
27b3b9bec6 Working on the doxygen documentation:
fix some typos, add a missed file,


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9943 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 04:44:40 +00:00
Linas Vepstas
0861fb9d02 Changes to make the documentation display nicely with Doxygen
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9942 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 04:14:54 +00:00
Linas Vepstas
5bc213ae4d changes to make the documentation format nicely with docygen
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9941 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 03:26:31 +00:00
Linas Vepstas
06fae54699 Round one of changes to make doxygen generat nice docs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9940 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 02:36:40 +00:00
Linas Vepstas
d9b43bf908 update documentation structure so that doxygen generates nice output
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9939 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-06 14:42:00 +00:00
Derek Atkins
31dd073300 Fix another slib3 issue.
* src/engine/iso-currencies-to-c: don't automatically try to
	  (require 'format), so gnucash will build on an slib-3 system.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9935 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-05 15:52:09 +00:00
Linas Vepstas
9d0d967734 twaks to make doxygen run more nicely
also, fold in old/obsolete query docuemntation


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9933 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-05 15:42:34 +00:00
Linas Vepstas
82395f51df remove deleted file 'query-api.txt' from the dist list
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9932 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-05 14:45:07 +00:00
Linas Vepstas
af44cbb6cc The contents of this document have now been merged into the
QOF header files (which should show up in src/engine in the enxt update).
This file is now dead


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9931 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-05 14:43:49 +00:00
Linas Vepstas
0dc2890708 fix doxygen warnings by running doxygen -u
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9930 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-04 15:18:50 +00:00
David Hampton
6216b1f167 Work around problems with libltdl3.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9921 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-03 05:21:26 +00:00
Linas Vepstas
fb68f770c5 add more tests spanning more decades
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9919 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-03 04:11:01 +00:00
Linas Vepstas
17924792ef whoops
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9918 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-03 03:36:42 +00:00
Linas Vepstas
9a1cfd5246 Changes:
Synchronize with QOF cvs tree.

gnc-engine-util.h:
-- add string utility to remove whitespace
-- add string utility that recognizess booleans 'TRUE', 'true' etc

guid.h:
kvp_frame.h:
-- doc clarification

qofclass.c:
qofclass.h:
-- fix core dump
-- add qof_class_is_registered() inquiry

qofgobj.c:
-- fix whitespace/bad indentation

qofquery.c:
-- fix query printing
-- fix buglet when mergeing two queries, and one is empty

qofquerycore.c:
-- some subroutine arguments should be const
-- add a handy-dandy qof_query_kvp_predicate_path() convenience routine

qofquerycore.h:
-- fix whitespace/bad indentation

qofsql.c:
qofsql.h:
-- add support for KVP in SQL queries
-- fix problems with GUID's in sql queries
-- separate query parse step from the query execute step

qofquery-serialize.c
qofquery-serialize.h
qofquery-deserial.c
qofquery-deserial.h:
-- Add new functions to turn a query into XML and back.
   (Oh, don't ask why, needed for a gnomevfs integration stunt)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9917 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-03 03:33:15 +00:00
Linas Vepstas
69a9ad0d4f fix the documentation surrounding the gnc_iso8601_to_timespec routine().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9916 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-02 22:04:07 +00:00
Linas Vepstas
44ba8cf418 change usage of iso8601_to_timespec_local to ..._gmt(). The old
routine returned the GMT time. The new routine will return the GMT time.
Thus, this change is a no-op


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9914 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-02 21:37:46 +00:00
Linas Vepstas
9df12db62f the olc is8601_to_timespec_local was returning GMT. The new
iso8601_to_gmt is going to return GMT.  So this net
result should be no change


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9913 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-02 20:52:34 +00:00
Linas Vepstas
9a5a234b02 The old gnc_iso8601_to_timespec_local() was actually returning the
GMT time.  The new gnc_iso8601_to_timespec_gmt() is going to return
the GMT time.  Thus, the net result of this change will be a no-op.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9912 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-02 20:49:37 +00:00
Linas Vepstas
ef0e3ff946 The old gmc_iso8601_to_timespec_local was actually
returning the GMT time.  The new gmc_iso8601_to_timespec_gmt()
is going to return GMT.  So after these changes, there will be
no function change to this routine.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9911 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-02 20:41:48 +00:00
Linas Vepstas
b05ba5a9bb Time conversion test case was broken;
thus incorrect time conversion test was passing
due to broken test case :-(

Add additional checks to make sure that zero-hour GMT really does
convert to zero-seconds.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9909 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-02 18:41:22 +00:00
David Hampton
5574f58727 Eliminate compiler warnings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9907 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-01 22:20:19 +00:00
Derek Atkins
2bb7cee7a6 'sed' out of ${srcdir}
* src/scm/Makefile.am: look in ${srcdir} for build-config.scm.in
	  Fixes #141129


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9906 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-04-26 15:31:15 +00:00
Derek Atkins
558dedd887 Fix a broken recursion problem in html-utilities.
* src/report/report-system/html-utilities.scm:
	  Fix a broken recursion problem.  Don't call show-acct? from
	  use-acct? so we don't recurse ad flictum.  This recursive
	  call isn't necessary, just have use-acct? recurse unto itself.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9904 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-04-20 14:21:49 +00:00
Derek Atkins
c44b5a1a45 Fabien COELHO's zero-balance patch.
* src/report/standard-reports/balance-sheet.scm:
	* src/report/standard-reports/pnl.scm:
	  Fabien COELHO's zero-balance patch to remove accounts of
	  zero balance from the report.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9901 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-04-20 03:48:09 +00:00
Linas Vepstas
d636f3a798 This time, I'm going to say 'cvs commit' in the correct directory.
Same set of patches as before:  replace naked function call pointers
for working with object parameters by 'clothed' paramters.
make clean; make; make install is required to get a functional system,
because these changes change structure sizes and offsets in the engine
libraries.  If you don't make clean; you will probably get weird,
impossible-to-find crashes.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9900 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-04-19 15:45:46 +00:00
Linas Vepstas
f450305ca2 QOF to GObject glue code. Not currently built or used by
GnuCash; checked in here to keep gnucash in sync with qof files.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9899 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-04-19 03:35:52 +00:00
Derek Atkins
44969cd944 Revert Linas' broken changes to qof.
* src/engine/Transaction.c: fix a comment to better explain why
	  we have no-op functions for some parameters.
	* src/engine/qof*:  Revert Linas' patch from last night which
	  is broken is way too many ways to count.  First, the code didn't
	  compile.  Second it was calling functions that took one argument
	  with two due to broken casting.  Third, it had repurcusions in
	  other sections of the code that Linas needs to take into account.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9898 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-04-18 20:04:07 +00:00
Linas Vepstas
8d2400433e Change all occurances of QofAccessFunc function pointers
to QofParam, so that the access func can be passed a type.
Time like these, I wish the C programming language had 'lambda'.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9896 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-04-18 06:25:11 +00:00
Derek Atkins
f207abc0d2 Add more warnings to autogen.
* src/macros/autogen.sh: Add MORE warnings around gettext because
	  some users STILL don't "get it".


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9894 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-04-16 17:04:50 +00:00