27 #ifndef IMPORT_PARSE_H
28 #define IMPORT_PARSE_H
37 GNCIF_NUM_PERIOD = (1 << 1),
38 GNCIF_NUM_COMMA = (1 << 2),
41 GNCIF_DATE_MDY = (1 << 8),
42 GNCIF_DATE_DMY = (1 << 9),
43 GNCIF_DATE_YMD = (1 << 10),
44 GNCIF_DATE_YDM = (1 << 11)
48 GncImportFormat gnc_import_test_numeric(
const char* str, GncImportFormat fmts);
49 GncImportFormat gnc_import_test_date(
const char* str, GncImportFormat fmts);
52 GncImportFormat gnc_import_choose_fmt(
const char* msg, GncImportFormat fmts,
55 gboolean gnc_import_parse_numeric(
const char* str, GncImportFormat fmt,
57 gboolean gnc_import_parse_date(
const char *date, GncImportFormat fmt,
61 #define import_set_flag(i,f) (i |= f)
62 #define import_clear_flag(i,f) (i &= ~f)
Use a 64-bit unsigned int timespec.