From 458112efd3bbea957dffa0963902a35970bd9940 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Mon, 2 Sep 2024 14:15:44 -0400 Subject: [PATCH 1/3] demo: Add time.h to overview.c This adds the `time.h` include to the top of overview.c so that the renders don't need to include it manually. --- demo/common/overview.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demo/common/overview.c b/demo/common/overview.c index 5ce339f..f4c936a 100644 --- a/demo/common/overview.c +++ b/demo/common/overview.c @@ -1,3 +1,5 @@ +#include + static int overview(struct nk_context *ctx) { From cb9dc9635a829e1e54b141aff74f38662a54d7f8 Mon Sep 17 00:00:00 2001 From: PROP 65 <132837123+PROP65@users.noreply.github.com> Date: Tue, 3 Sep 2024 03:39:49 +0000 Subject: [PATCH 2/3] Update nuklear_util.c --- src/nuklear_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nuklear_util.c b/src/nuklear_util.c index 50e6d61..364753b 100644 --- a/src/nuklear_util.c +++ b/src/nuklear_util.c @@ -141,7 +141,7 @@ nk_strlen(const char *str) return siz; } NK_API int -nk_strtoi(const char *str, const char **endptr) +nk_strtoi(const char *str, char **endptr) { int neg = 1; const char *p = str; @@ -165,7 +165,7 @@ nk_strtoi(const char *str, const char **endptr) return neg*value; } NK_API double -nk_strtod(const char *str, const char **endptr) +nk_strtod(const char *str, char **endptr) { double m; double neg = 1.0; @@ -222,7 +222,7 @@ nk_strtod(const char *str, const char **endptr) return number; } NK_API float -nk_strtof(const char *str, const char **endptr) +nk_strtof(const char *str, char **endptr) { float float_value; double double_value; From 19bb57b893c6b4431950a5e58ff495107ec58915 Mon Sep 17 00:00:00 2001 From: PROP 65 <132837123+PROP65@users.noreply.github.com> Date: Tue, 3 Sep 2024 03:46:11 +0000 Subject: [PATCH 3/3] Update nuklear.h --- src/nuklear.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nuklear.h b/src/nuklear.h index a2babc8..6a30b39 100644 --- a/src/nuklear.h +++ b/src/nuklear.h @@ -3612,11 +3612,11 @@ NK_API struct nk_vec2 nk_rect_size(struct nk_rect); NK_API int nk_strlen(const char *str); NK_API int nk_stricmp(const char *s1, const char *s2); NK_API int nk_stricmpn(const char *s1, const char *s2, int n); -NK_API int nk_strtoi(const char *str, const char **endptr); -NK_API float nk_strtof(const char *str, const char **endptr); +NK_API int nk_strtoi(const char *str, char **endptr); +NK_API float nk_strtof(const char *str, char **endptr); #ifndef NK_STRTOD #define NK_STRTOD nk_strtod -NK_API double nk_strtod(const char *str, const char **endptr); +NK_API double nk_strtod(const char *str, char **endptr); #endif NK_API int nk_strfilter(const char *text, const char *regexp); NK_API int nk_strmatch_fuzzy_string(char const *str, char const *pattern, int *out_score);