From 9a14d6322ca1b1651ba31f997c1f719c1d8612e3 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 11 Oct 2003 21:39:09 +0000 Subject: *** empty log message *** --- ledger.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'ledger.h') diff --git a/ledger.h b/ledger.h index 83ca9693..b7fe5e06 100644 --- a/ledger.h +++ b/ledger.h @@ -1,5 +1,5 @@ #ifndef _LEDGER_H -#define _LEDGER_H "$Revision: 1.24 $" +#define _LEDGER_H "$Revision: 1.25 $" ////////////////////////////////////////////////////////////////////// // @@ -294,6 +294,20 @@ inline commodity::commodity(const std::string& sym, bool pre, bool sep, assert(result.second); } +// Parsing routines + +extern book * parse_ledger(std::istream& in, regexps_map& regexps, + bool compute_balances); +#ifdef READ_GNUCASH +extern book * parse_gnucash(std::istream& in, bool compute_balances); +#endif + +extern bool parse_date_mask(const char * date_str, + struct std::tm * result); +extern bool parse_date(const char * date_str, std::time_t * result, + const int year = -1); +extern void parse_price_setting(const std::string& setting); + } // namespace ledger #endif // _LEDGER_H -- cgit v1.2.3