diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-24 04:50:39 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-24 04:50:39 -0400 |
commit | 05b3562a13ffccaa56729ecfd1992d615c7867a7 (patch) | |
tree | 1630b4fd7336cf84e9587e8c6b034da82c9b6906 /src/times.h | |
parent | cbc41ca47a9b23a7b3acfb1a8d6c325280ce9aef (diff) | |
download | fork-ledger-05b3562a13ffccaa56729ecfd1992d615c7867a7.tar.gz fork-ledger-05b3562a13ffccaa56729ecfd1992d615c7867a7.tar.bz2 fork-ledger-05b3562a13ffccaa56729ecfd1992d615c7867a7.zip |
Changed order of some functions, to guard against self-referencing.
Diffstat (limited to 'src/times.h')
-rw-r--r-- | src/times.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/times.h b/src/times.h index 20cca0e5..494a1489 100644 --- a/src/times.h +++ b/src/times.h @@ -57,15 +57,17 @@ extern int current_year; extern optional<string> input_date_format; extern string output_date_format; +datetime_t parse_datetime(const char * str); + inline datetime_t parse_datetime(const string& str) { return parse_datetime(str.c_str()); } -datetime_t parse_datetime(const char * str); + +date_t parse_date(const char * str); inline date_t parse_date(const string& str) { return parse_date(str.c_str()); } -date_t parse_date(const char * str); inline std::time_t to_time_t(const ptime& t) { |