From d321f9b35e4fc752f8b28346b7e489e6df7c8e10 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Wed, 10 Jul 2024 16:18:05 +0200 Subject: Fixes --- any_ini.h | 2 +- any_log.h | 2 +- any_sexp.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/any_ini.h b/any_ini.h index ba89f99..f05b579 100644 --- a/any_ini.h +++ b/any_ini.h @@ -22,6 +22,7 @@ #include #include +#include // String parser (provided by any_ini_t) @@ -411,7 +412,6 @@ static void any_ini_stream_skip(any_ini_stream_t *ini, bool comment) } } - static char *any_ini_stream_until(any_ini_stream_t *ini, size_t start, char c) { char *tmp, *value = NULL; diff --git a/any_log.h b/any_log.h index c4f143c..1cb298a 100644 --- a/any_log.h +++ b/any_log.h @@ -398,7 +398,7 @@ const char **any_log_colors = any_log_colors_default; #define ANY_LOG_PANIC_COLOR "\x1b[1;91m" #endif #ifndef ANY_LOG_ERROR_COLOR -#define ANY_LOG_ERROR_COLOR "\x1b[31m" +#define ANY_LOG_ERROR_COLOR "\x1b[1;31m" #endif #ifndef ANY_LOG_WARN_COLOR #define ANY_LOG_WARN_COLOR "\x1b[1;33m" diff --git a/any_sexp.h b/any_sexp.h index ee7c1e7..c8a394d 100644 --- a/any_sexp.h +++ b/any_sexp.h @@ -335,7 +335,7 @@ any_sexp_t any_sexp_read(any_sexp_reader_t *reader) buffer[length] = '\0'; - if (number) { + if (number && !(length == 1 && buffer[0] == '-')) { intptr_t value = strtol(buffer, NULL, 10); return any_sexp_number(value); } -- cgit v1.2.3