summaryrefslogtreecommitdiff
path: root/src/times.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-24 04:50:39 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-24 04:50:39 -0400
commit05b3562a13ffccaa56729ecfd1992d615c7867a7 (patch)
tree1630b4fd7336cf84e9587e8c6b034da82c9b6906 /src/times.h
parentcbc41ca47a9b23a7b3acfb1a8d6c325280ce9aef (diff)
downloadfork-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.h6
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)
{