From c255e8882448c2f1349f69a3b7f68f7778923e56 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Wed, 13 Mar 2024 22:43:19 +0100 Subject: csv file import --- src/export.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/export.cpp') diff --git a/src/export.cpp b/src/export.cpp index 5bd29b4..6991c94 100644 --- a/src/export.cpp +++ b/src/export.cpp @@ -5,7 +5,7 @@ #ifndef _WIN32 #include -static int fopen_s(FILE **f, const char *name, const char *mode) { +int fopen_s(FILE **f, const char *name, const char *mode) { int ret = 0; assert(f); *f = fopen(name, mode); @@ -16,7 +16,7 @@ static int fopen_s(FILE **f, const char *name, const char *mode) { } #endif -static bool _str_has_extension(const utf8_int8_t *str, const utf8_int8_t *suffix) +bool ts_str_has_extension(const utf8_int8_t *str, const utf8_int8_t *suffix) { if (!str || !suffix) return 0; @@ -245,13 +245,13 @@ struct t_export_thread_args { static void* _ts_export_thread(void* args) { struct t_export_thread_args* arg = (struct t_export_thread_args*)args; - if (_str_has_extension(arg->path, ".json")) { + if (ts_str_has_extension(arg->path, ".json")) { _ts_export_json(arg->result, arg->path); } - if (_str_has_extension(arg->path, ".csv")) { + if (ts_str_has_extension(arg->path, ".csv")) { _ts_export_csv(arg->result, arg->path); } - if (_str_has_extension(arg->path, ".xml")) { + if (ts_str_has_extension(arg->path, ".xml")) { _ts_export_xml(arg->result, arg->path); } -- cgit v1.2.3-70-g09d2