From caeb3361764ce8f642251c3778f842bf1b330a73 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 15 Feb 2009 19:53:38 -0400 Subject: The format code %C is now equal to %(fmt_C) --- src/format.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/format.h') diff --git a/src/format.h b/src/format.h index f5d665c6..939d6a7e 100644 --- a/src/format.h +++ b/src/format.h @@ -150,6 +150,12 @@ public: const int account_abbrev_length = -1); }; +#define FMT_PREFIX "fmt_" +#define FMT_PREFIX_LEN 4 + +#define WANT_FMT() \ + (std::strncmp(p, FMT_PREFIX, FMT_PREFIX_LEN) == 0) + } // namespace ledger #endif // _FORMAT_H -- cgit v1.2.3