`new` implies some allocation. Since guid_new was actually constructing
a guid in place rather than allocating it, it makes much more sense to
call it guid_replace (or guid_construct). We went with guid_replace.
Since we're maintaining a C api, the implementation is sometimes less than
intuitive from either a C or C++ perspective. I am trying to use as much
boost as possible while making all the guarantees that the C code makes.
One function was declared deprecated because it "wasn't thread safe". This
was straightforward to repair, and is no longer marked deprecated, and there
are now two ways to convert GUID to String: passing your own character
buffer, and having one returned to you that you need to free.
This is a minimal change to get LibQOF and only LibQOF to compile as C++.
There are no functional changes, just casts to satisfy the rather pickier
C++ compiler and wrapping declarations with extern "C" { } to maintain C
mangling so that the libgncmod_qof will work with the rest of the program.
A note about renaming gnc-numeric.c to gnc-numeric.cpp: Dunno if it's a
clang bug, but it wouldn't link test-math with the -xc++ flag; renaming
the one file got around the problem. We'll likely have to do the same for
other test programs and for gnucash-bin.c.
Note that only the type was renamed, but not any enums or function names.
Hence, the scheme wrappers should be unchanged completely (hopefully).
Discussed at http://lists.gnucash.org/pipermail/gnucash-devel/2010-March/027679.html
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18969 57a11ea4-9604-0410-9ed3-97b8803252fd
This does not concern the typedef name, only the internal union name,
so it doesn't harm us.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18772 57a11ea4-9604-0410-9ed3-97b8803252fd
This also strips trailing whitespaces from lines where they existed.
This re-indentation was done using astyle-1.23 using the following options:
astyle --indent=spaces=4 --brackets=break --pad-oper
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18319 57a11ea4-9604-0410-9ed3-97b8803252fd