diff options
Diffstat (limited to 'lib/roken/parse_time.h')
| -rw-r--r-- | lib/roken/parse_time.h | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/lib/roken/parse_time.h b/lib/roken/parse_time.h index dabcefd81a7e..c0f08f956670 100644 --- a/lib/roken/parse_time.h +++ b/lib/roken/parse_time.h @@ -36,24 +36,35 @@ #ifndef __PARSE_TIME_H__ #define __PARSE_TIME_H__ -#ifndef ROKEN_LIB_FUNCTION -#ifdef _WIN32 -#define ROKEN_LIB_FUNCTION -#define ROKEN_LIB_CALL __cdecl -#else -#define ROKEN_LIB_FUNCTION -#define ROKEN_LIB_CALL -#endif -#endif - -ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL +#include <roken.h> + +ROKEN_LIB_FUNCTION int64_t ROKEN_LIB_CALL +parse_time (const char *s, const char *def_unit); + +ROKEN_LIB_FUNCTION size_t ROKEN_LIB_CALL +unparse_time(int64_t t, char *s, size_t len); + +ROKEN_LIB_FUNCTION size_t ROKEN_LIB_CALL +unparse_time_approx(int64_t t, char *s, size_t len); + +ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL +print_time_table (FILE *f); + +/* And again, but renamed */ + +#define parse_time rk_parse_time +#define unparse_time rk_unparse_time +#define unparse_time_approx rk_unparse_time_approx +#define print_time_table rk_print_time_table + +ROKEN_LIB_FUNCTION int64_t ROKEN_LIB_CALL parse_time (const char *s, const char *def_unit); ROKEN_LIB_FUNCTION size_t ROKEN_LIB_CALL -unparse_time (int t, char *s, size_t len); +unparse_time(int64_t t, char *s, size_t len); ROKEN_LIB_FUNCTION size_t ROKEN_LIB_CALL -unparse_time_approx (int t, char *s, size_t len); +unparse_time_approx(int64_t t, char *s, size_t len); ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL print_time_table (FILE *f); |
