summaryrefslogtreecommitdiff
path: root/binary.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-21 03:23:17 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-21 03:23:17 -0400
commitfb91d6f21e341f12d80e95195322837cbda78cf3 (patch)
tree957c901ee876bae7c174a003b7d552c34776d135 /binary.h
parent06ac87ab208210bef6a30cf71e116847080d2383 (diff)
downloadfork-ledger-fb91d6f21e341f12d80e95195322837cbda78cf3.tar.gz
fork-ledger-fb91d6f21e341f12d80e95195322837cbda78cf3.tar.bz2
fork-ledger-fb91d6f21e341f12d80e95195322837cbda78cf3.zip
add copy-on-write semantics to amount.cc; cuts object creation by 5x
Diffstat (limited to 'binary.h')
-rw-r--r--binary.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/binary.h b/binary.h
index 4b502df5..a1ab60c2 100644
--- a/binary.h
+++ b/binary.h
@@ -3,6 +3,8 @@
#include "parser.h"
+#include <deque>
+
namespace ledger {
class binary_parser_t : public parser_t
@@ -16,6 +18,8 @@ class binary_parser_t : public parser_t
const std::string * original_file = NULL);
};
+extern std::deque<amount_t::bigint_t *> bigints;
+
void write_binary_journal(std::ostream& out,
journal_t * journal,
strings_list * files = NULL);