Complete changed the way format strings are handled. They are now compiled first, which is far more efficient than what was being done before. Also, there is now a global ledger::commodity_t::commodities map, which saves me from having to pass the current journal around to a zillion different functions, for the sole purpose of making sure that all commodity symbols that are parsed refer to the same commodity object.
21 lines
463 B
C++
21 lines
463 B
C++
#ifndef _BINARY_H
|
|
#define _BINARY_H
|
|
|
|
#include "ledger.h"
|
|
|
|
namespace ledger {
|
|
|
|
extern unsigned long magic_number;
|
|
|
|
extern unsigned int read_binary_ledger(std::istream& in,
|
|
const std::string& leader,
|
|
ledger_t * journal,
|
|
account_t * master = NULL);
|
|
|
|
extern void write_binary_ledger(std::ostream& out,
|
|
ledger_t * ledger,
|
|
const std::string& leader);
|
|
|
|
} // namespace ledger
|
|
|
|
#endif // _BINARY_H
|