Commit graph

45 commits

Author SHA1 Message Date
thdox
e422b41600 Library GMP is not yet ready for GCC 4.9, as described at bottom of page
http://gcc.gnu.org/gcc-4.9/porting_to.html

See extract below:

The <cstddef> header was updated for C++11 support and this breaks some
libraries which misuse macros meant for internal use by GCC only. For
instance with GMP versions up to 5.1.3, you may see:

/usr/include/c++/4.9.0/cstddef:51:11: error: ‘::max_align_t’ has not been declared
   using ::max_align_t;
           ^

Another possible error is:

someheader.h:99:13: error: ‘ptrdiff_t’ does not name a type

A workaround until libraries get updated is to include <cstddef> or
<stddef.h> before any headers from that library.
2014-05-11 11:14:49 +02:00
John Wiegley
7be70aab59 Require the use of C++11 2014-04-17 14:34:36 -05:00
David Bremner
0ef8256409 Replace sha1.cc with boost::uuid::details::sha1
sha1.cc is not redistributable by Debian because the license doesn't
permit redistribution of modified versions.

This isn't ideal since the ::details namespace is subject to change,
but it avoids adding a dependency to ledger.
2014-04-17 14:27:21 -05:00
Alexis Hildebrandt
2b9208e850 Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
Johann Klähn
a875940a93 fix ledger xml output, remove ledger json command
As the format used by property trees to represent valid JSON
and that for valid XML is too different and given that there are
more requests for valid XML output I decided to pursue a quick fix
and remove the json command in favor of a working xml command.

See bug #782, #909, recent discussion on mailing list.

JSON support is postponed until I or someone else finds time to work on
this or the python bindings are more stable.
2013-03-08 22:56:01 +01:00
John Wiegley
0951bcebef Bump copyright information to 2013 2013-02-18 06:51:21 -06:00
John Wiegley
05d1704eb8 Removed an unnecessary #define 2012-05-20 16:06:43 -05:00
John Wiegley
1b1c7cd4ac A few more CMake-related fixes 2012-05-20 15:23:52 -05:00
John Wiegley
f579e6ddac Work around inclusion ordering bug with Xpressive 2012-05-20 15:15:54 -05:00
John Wiegley
a9bdcc3301 Work around collision between Format's put & Graph 2012-05-20 15:03:22 -05:00
John Wiegley
4681e58d7f Converted the Ledger build system to use CMake 2012-05-20 04:48:05 -05:00
John Wiegley
a38ed141c1 Switched to Boost.PropertyTree for XML generation 2012-05-18 01:31:01 -06:00
John Wiegley
f4f3058b8c Switch to using Boost.Format 2012-05-14 21:44:00 -06:00
John Wiegley
08f65eeadc Allow serialization to be enabled again 2012-03-29 15:35:20 -05:00
John Wiegley
2df8edc71c Improved the behavior of -X 2012-03-09 20:02:53 -06:00
John Wiegley
628875b33c Use Boost.Tuple 2012-03-09 03:19:25 -06:00
John Wiegley
5d8cb30774 Implemented first cut at price conversion logic 2012-03-05 05:03:52 -06:00
John Wiegley
48ab6ad1db Switched to using Boost.Graph for commodity pricing 2012-03-05 05:03:52 -06:00
John Wiegley
9ec9cdf41e Started writing Python unit tests 2012-03-01 05:50:07 -06:00
John Wiegley
e2afc783db Increased file copyrights to 2012 2012-02-29 22:32:23 -06:00
John Wiegley
9d1daa27e2 Remove unneeded guard macros from system.hh.in 2012-02-11 16:53:31 -10:00
John Wiegley
f0791bbd72 Cleanup whitespace 2011-08-18 14:48:38 -04:00
John Wiegley
cf35984971 Use Boost iterator_facade to create new iterators 2011-07-19 23:29:41 -05:00
John Wiegley
986afb43d0 Define BOOST_IOSTREAMS_USE_DEPRECATED 2011-02-04 23:07:39 -05:00
John Wiegley
0f8e0251f4 Fixed a bug preventing g++ 4.6 from working 2011-02-04 22:53:22 -05:00
John Wiegley
2208ac1226 Fixes for compilation as C++0x code 2011-02-04 22:39:41 -05:00
John Wiegley
9fcf484826 Moved up to Boost 1.44 2010-08-24 00:03:52 -04:00
John Wiegley
4a44218da1 For value_t, use boost::any to refer to objects 2010-06-13 03:55:08 -04:00
John Wiegley
1a60c9e82c Include serialize_ptr_deque, for Boost.Serialization 2010-06-12 00:51:36 -04:00
John Wiegley
92d2eb9574 Use ptr_deque for value_t::sequence_t
This is to work around undefined behavior according to the Standard,
[lib.res.on.functions]/2:

"In particular, the effects are undefined in the following cases: [..]
- if an incomplete type (3.9) is used as a template argument when
instantiating a template component."
2010-06-10 16:32:24 -04:00
John Wiegley
fe95280492 Added some preliminary code for convert CSV to Ledger 2010-03-05 22:14:14 -05:00
John Wiegley
ab416f759f Updated copyrights to 2003-2010 2010-03-05 22:14:10 -05:00
John Wiegley
f0f1b0cdfa Value.to_sequence returns a valid Python sequence 2009-11-11 04:46:38 -05:00
John Wiegley
a345f9edb7 Python Unicode objects are now handled 2009-11-10 14:20:00 -05:00
John Wiegley
c8641a6de6 Added support for Boost.Regex w/ ICU
This allows for correct searching of UTF-8 encoded strings, such as
lower-case versions of Russian words to find mixed-case words.
2009-11-07 08:34:13 -05:00
John Wiegley
8bd16b2e8e Simplified usage of Boost.Python in several cases 2009-11-05 02:27:42 -05:00
John Wiegley
40a430139e Transactions, etc., are now accessed by iterators 2009-11-05 02:22:17 -05:00
John Wiegley
2149a8e773 Create a --cache option, for using a binary cache 2009-10-31 00:09:57 -04:00
John Wiegley
a757b19f51 Added serialization methods for most type
This allows journal_t objects to be completed serialized to disk and
deserialized.
2009-10-30 18:06:37 -04:00
John Wiegley
7ca80112fc Change the value_t::POINTER type to value_t::SCOPE
scope_t pointers are the only kind that are ever stored in value
objects, so there was no need to make it generic and use boost::any.
2009-10-30 17:57:29 -04:00
John Wiegley
588f2ef2f5 Fixed many compiler warnings from g++ 4.4 2009-10-25 05:01:39 -04:00
John Wiegley
48d24e2a4c Use boost::iostreams::file_descriptor_sink
This is instead of the custom fdstream.hpp file I was distributing.
2009-10-25 04:28:49 -04:00
John Wiegley
f161aea8ce Removed reliance on strptime/strftime
The code now uses Boost's input and output facets for times and dates.
This ensures completely consistency regarding timezones and times, and
fixes the regression test that was broken while I was away coding in
London (where it was GMT-0 and I didn't notice the difference between
local and GMT).
2009-10-11 05:19:01 -04:00
John Wiegley
542e2950af Normalized some #ifdef's to #if defined 2009-03-10 04:46:40 -04:00
John Wiegley
e0473e207b Rewrote acprep in Python and improved the build 2009-03-09 21:51:02 -04:00
Renamed from src/system.hh (Browse further)