diff --git a/src/os.c b/deprecated/os.c similarity index 100% rename from src/os.c rename to deprecated/os.c diff --git a/src/os.h b/deprecated/os.h similarity index 100% rename from src/os.h rename to deprecated/os.h diff --git a/src/strstream.c b/src/strstream.c index 2ddc40d..dec6f0f 100644 --- a/src/strstream.c +++ b/src/strstream.c @@ -9,6 +9,12 @@ #include // HUGE_VALF #include "tracelog.h" +#if defined(_WIN32) && defined(__TINYC__) +#define strtoull _strtoui64 +#define strtoll _strtoi64 +#define strtof strtod +#endif + /* == INPUT STREAM ============================================ */ str_istream_t istrInit(const char *str) { @@ -22,17 +28,6 @@ str_istream_t istrInitLen(const char *str, usize len) { return res; } -void istrScanf(str_istream_t *ctx, const char *fmt, ...) { - va_list va; - va_start(va, fmt); - istrScanfV(ctx, fmt, va); - va_end(va); -} - -void istrScanfV(str_istream_t *ctx, const char *fmt, va_list args) { - vsscanf(ctx->cur, fmt, args); -} - char istrGet(str_istream_t *ctx) { return *ctx->cur++; } diff --git a/src/strstream.h b/src/strstream.h index b754780..55aa041 100644 --- a/src/strstream.h +++ b/src/strstream.h @@ -23,9 +23,6 @@ typedef struct { str_istream_t istrInit(const char *str); str_istream_t istrInitLen(const char *str, usize len); -void istrScanf(str_istream_t *ctx, const char *fmt, ...); -void istrScanfV(str_istream_t *ctx, const char *fmt, va_list args); - // get the current character and advance char istrGet(str_istream_t *ctx); // get the current character but don't advance