Chris Shoemaker
f0d64c1185
Avoid SIGFPE due to modulo-by-zero is the requested number of significant
...
figures is greater than log10(2^63).
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14512 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Derek Atkins
63dfe823fd
QOF should load its own backend libraries.
...
It shouldn't depend on apps to load QOF libraries.
Make sure app-defined backends are used first.
Fix a memory leak in qofsession.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14208 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
97062a3b81
Merge 'misc-backend' -r 14160:14184 into trunk.
...
This includes the now semi-functional postgres backend.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14198 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
882d453105
Consistently pad date formats with zeros instead of spaces.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14180 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
998edefcc8
Fix Bug#342546 by using the pref date format instead of locale.
...
Also prefix-pad fixed-width date formats with '0'.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14158 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Derek Atkins
dfc22ebcb9
revert r14081 because we always have localtime_r.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14083 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Christian Stimming
b33f376ad2
Use localtime_r only when HAVE_LOCALTIME_R is defined. Might be undefined on some weird systems out there, e.g. windows/mingw32.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14081 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Joshua Sled
845932adda
Convert `localtime` to `localtime_r`, after seeing localtime fail (strange as it is...).
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14079 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Derek Atkins
504f781c19
Fix the documentation of qof_query_merge for degenerate cases.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14042 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Derek Atkins
953d77f0ef
Disable the use of external QOF and make sure we can co-exist.
...
* lib/libqof/qof/Makefile.am:
change the name of our qof library
* lib/libqof/backend/file/Makefile.am:
change the name of our qsf library
* lib/libqof/qof/qof.h:
point to the newly named qsf library
* configure.in:
Error out if the user calls --enable-qof
Change the name of the internal qof library and directories
so that our qof can co-exist with a "native" qof
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14032 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
b49877472e
Factor out #define _GNU_SOURCE from various .c files into an AC_GNU_SOURCE
...
check in configure.in.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14002 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
de0c1edcb5
Add a flag, 'infant', to QofInstance to note that the instance has been
...
committed at least once in its lifecycle. Then, we can mark the collection
dirty whenever an object is committed, except for the special case of an
QofInstance that has never been committed before and is now being deleted.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13957 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
6b925724e7
Fix off-by-one error when checking editlevel in qof_commit_edit() (and
...
macro version), in case we ever want qof_commit_edit() to actually do
something with a backend.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13956 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
57636f50e4
Make qof_commit_edit() (and macro version) call qof_backend_run_commit()
...
instead of qof_backend_run_begin().
Minor cleanups of qof_commit_edit() and qof_begin_edit().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13955 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
fad343b4e2
Add support for directly marking the book dirty, for recording the
...
time that the book transitioned from clean to dirty, and for calling
back a registered function when the book transitions from clean to
dirty.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13931 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
9323c1405d
Add an alternate mode for handling the dirty state of instances and
...
collections. In this mode, marking an instance as dirty does not
immediately mark the collection as dirty. The collection is only
dirtied when a dirty instance is actually committed to the collection.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13926 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
76f16c91d2
Avoid buffer overrun in qoflog.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13825 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
227f515afc
Revert r13797 so that it can be recommited as logical, documented changes.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13811 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Neil Williams
293e60d88f
Final changes for QOF 0.6.4 - Improvements in map handling.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13797 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
dc28af130f
The kvp_frame_get_string() function returns a pointer to an internal
...
string. Mark it 'const' to prevent callers from trying to free it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13786 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Andreas Köhler
14ce276877
Initial support to decode old, ambiguous data files, missing an encoding declaration, with the help of the user.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13781 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Andreas Köhler
8b4f3a1570
Fix leakage of old books.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13769 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Derek Atkins
dd321449ce
* lib/libqof/qof/qofbookmerge.c: fix a few memory leaks.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13768 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Derek Atkins
f9d1f3e42f
Create a QOF_SCANF_LLD (because we cannot use the printf version).
...
Keep the deprecated GNC_SCANF_LLD defined in terms of the new
QOF_SCANF_LLD.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13764 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Neil Williams
ed58ab94a7
typo - erroneous &
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13757 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Derek Atkins
aaa13ff290
* lib/libqof/qof/qof.h: QOF requires <glib.h>
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13753 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Neil Williams
68ac06b219
Standardise on gint and gchar. libqof 0.6.4 release.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13747 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Neil Williams
960e545a8f
Replace gnc-engine-util with qofutil
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13745 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Andreas Köhler
3e41f8d965
Add a call to gnc_tm_set_day_end to correct initial ending balance in reconcile windows. Tiny comment typo in qof/gnc-date.h.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13641 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Neil Williams
41671fe8a9
Synchronise with QOF 0.6.3. Correct map handling to allow reverse operations and iteration over hierarchical objects. Improving debug messages and preventing a crash when loading a map directly. Standardise QSF backend on gint and gchar. Add new map file.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13621 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Christian Stimming
0b79b4ea3d
Add include/linker flags for using the lib/libc substitutions
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13584 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
d331aa8f18
Finish removing deprecated QOF functions.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13573 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Neil Williams
91642e8fb7
Doxygen tweak
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13569 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Neil Williams
26d6675b26
Update status; this
...
file will not exist in libqof2
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13568 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Neil Williams
abb2bd5473
Move qof_book_merge to new naming convention and deprecate old code
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13567 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Christian Stimming
47c9948cd3
Clean up unused gettimeofday argument
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13562 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Christian Stimming
df1f9b6306
Add substitution code for unavailable functions gettimeofday and gmtime_r.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13560 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
59056ce619
Remove more functions to be deprecated in libqof2. (Pass Three - more
...
trivial substitutions and simple translations.)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13550 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
4b04137e7d
Never include "config.h" from a header file. Doing so makes it nigh
...
impossible to override configuration settings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13549 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
61a12b2715
Remove more functions to be deprecated in libqof2. (Pass Two - more
...
trivial substitutions, some simple translations.)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13547 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Derek Atkins
db890792bb
Fix the definition of QOF_EVENT_BASE; use QOF_EVENT__LAST for tests.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13546 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Andreas Köhler
e278c02ea0
Add configure test for sys/times.h and corrected guid.c to check for that.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13527 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Christian Stimming
3006050069
Make seed collection parts that depend on particular functions
...
#ifdef'd on that to enable easier windows/mingw32 porting.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13525 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Christian Stimming
0651fed036
Minor header include cleanups to enable easier windows/mingw32 porting
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13523 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Neil Williams
9dd917ecf3
simplify creation of new application events
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13397 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Neil Williams
8fffaf8c7a
using new events with object argument
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13396 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Neil Williams
082212a7eb
replacing the macro to restore programme flow
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13394 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
dd8ce0e090
Keep track of exactly how many bytes we've sent to md5_process_bytes().
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13391 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
6a8404df1d
Implement QOF_COMMIT_EDIT_PART2 as a function instead of a macro.
...
Any of the callbacks passed to this function may be NULL to decline the
use of that callback. Also, the three callbacks are now called in three
mutually exclusive cases, corresponding to:
1) a failed commit, ('on_error')
2) a successful commit where the object remains valid, ('on_done'), and
3) a successful commit where the object has been destroyed, ('on_free').
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13390 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Joshua Sled
81bf512533
Fix "default limit" QOF eventing stuff; thanks Andi.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13352 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago