diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-15 19:53:38 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-15 19:53:38 -0400 |
commit | caeb3361764ce8f642251c3778f842bf1b330a73 (patch) | |
tree | 2805b4cd532d0a8bd5170f1646d7ed40fc380c51 /src/format.h | |
parent | 5516a7ddb55e538ff0b0be296008fa28eeb80dae (diff) | |
download | fork-ledger-caeb3361764ce8f642251c3778f842bf1b330a73.tar.gz fork-ledger-caeb3361764ce8f642251c3778f842bf1b330a73.tar.bz2 fork-ledger-caeb3361764ce8f642251c3778f842bf1b330a73.zip |
The format code %C is now equal to %(fmt_C)
Diffstat (limited to 'src/format.h')
-rw-r--r-- | src/format.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |