The actual change to configure.ac (at line 1106) to enable -Wunused -- or rather to un-disable it -- is not included in order to not break the build for folks with buggy versions of swig.
(For example, https://sourceforge.net/tracker/?func=detail&aid=3530021&group_id=1645&atid=101645)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22203 57a11ea4-9604-0410-9ed3-97b8803252fd
One can't link a library created with -module on OSX, but one can dload
a library compiled with -shared on both OSX and Linux.
Also cleaned out the old "make check" files from test/Makefile.am
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22200 57a11ea4-9604-0410-9ed3-97b8803252fd
Return value of g_build_filename() needs to be freed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22199 57a11ea4-9604-0410-9ed3-97b8803252fd
Configure gets confused by some gcc builtins on Win7: Disable them so that configure finds the right settings.
[BP]
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22197 57a11ea4-9604-0410-9ed3-97b8803252fd
In the new string cache (split out from qofutil.c/.h), the GHashTable has the
string as key and a small heap-allocated guint refcount as data. The value is
allocated rather than being used by value because there is no way to just
modify the data field of an existing key. The key would need to be changed at
the same time, which would free the old key value and invalidate all gchar
pointers of objects which have refs to the key.
Unit tests added as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22190 57a11ea4-9604-0410-9ed3-97b8803252fd
Special-cases dbi_result_get_datetime returning -1 to work around a bug in MinGW's implementation of gmtime().
[BP]
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22188 57a11ea4-9604-0410-9ed3-97b8803252fd
This allows to quickly create a canceling credit note for an invoice.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22176 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Jamie Campbell, with minimal correction to match the new ApplyPayment functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22175 57a11ea4-9604-0410-9ed3-97b8803252fd
Most payment use cases don't need to know the internal lot juggling mechanism behind it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22174 57a11ea4-9604-0410-9ed3-97b8803252fd
This is done to get a more consistent owner interface and simplifies the python bindings
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22173 57a11ea4-9604-0410-9ed3-97b8803252fd
Wizard and SQL Backend
This addresses the crash reported on Ubuntu with Postgres by Krzysiek.
The stack trace he posted showed the crash was the result of
dereferencing a NULL GDate*, and this change protects against that. It
still doesn't address the more basic problem of why on Win32 and with
mysql and pgsql (but not SQLite3) the mortgage wizard is writing corrupt
dates.
[BP]
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22171 57a11ea4-9604-0410-9ed3-97b8803252fd
With these changes install-fq-mods.cmd will automatically download and install
Strawberry perl if now perl version if found on the system.
Patches by Dave Roberts
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22169 57a11ea4-9604-0410-9ed3-97b8803252fd
a) added usage information
b) put most everything into exception handling to prevent lock linger when a
problem occurs
Patch by Jamie Campbell
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22166 57a11ea4-9604-0410-9ed3-97b8803252fd
a) added usage information when not enough arguments added
b) put the majority of code into an exception handling block so that if
something goes wrong the session is closed. Prior to this change a problem
would result in a lingering lock.
Patch by Jamie Campbell
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22165 57a11ea4-9604-0410-9ed3-97b8803252fd
1) Fixed typo for "new book" session creation in_new=True -> is_new=True
2) Added usage information echo when script is invoked without correct number
of parameters
3) Put most of the operations into an exception handling block. When an
exception occurs, sessions which were opened are closed. Prior to this, any
error would result in a lingering lock.
Patch by Jamie Campbell
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22164 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch alters packaging/win32/libbonoboui-2.24.2.patch to not look for glade and not
build libbonoboui-2.24.2/glade
Patch by Mark Jenkins.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22156 57a11ea4-9604-0410-9ed3-97b8803252fd
budget
Never assume a pointer is NULL unless you set it to NULL!
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22154 57a11ea4-9604-0410-9ed3-97b8803252fd
Which rearranged the ApplyPayments code so that it's done from the
GncInvoice object instead of explicitly by the owner (or in this case,
GncCustomer).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22151 57a11ea4-9604-0410-9ed3-97b8803252fd