From 2228509751b9ece6a97661a9d7e0a015e8370666 Mon Sep 17 00:00:00 2001 From: xolatile Date: Sat, 18 Nov 2023 17:33:07 -0500 Subject: [PATCH] Added boolean stuff sadly... --- xtandard.c | 2 +- xtandard.h | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/xtandard.c b/xtandard.c index 2445e18..abdf8d7 100644 --- a/xtandard.c +++ b/xtandard.c @@ -576,7 +576,7 @@ int character_compare_array (char character, char * character_array) { int character_count (char * string, char this, int from, int to, char stop) { int count; - for (count = 0; (from != to) && (string [from] != stop); from += (int) ((to < from) ? -1 : 1)) { + for (count = 0; (from != to) && (string [from] != stop); from += ((to < from) ? -1 : 1)) { count += (int) ((string [from] == this) || (this == '\0')); } diff --git a/xtandard.h b/xtandard.h index 8018703..f442427 100644 --- a/xtandard.h +++ b/xtandard.h @@ -21,6 +21,11 @@ It is distributed in the hope that it will be useful or harmful, it really depen #define SIGNAL_SYSTEM (0X8000000) enum { + FALSE, + TRUE +}; + +enum { LOG_SUCCESS, LOG_WARNING, LOG_FAILURE, LOG_COMMENT, LOG_COUNT }; @@ -126,7 +131,7 @@ extern int character_compare_array (char character, char * character_array); extern int character_count (char * string, char this, int from, int to, char stop); -extern int string_length (char * string); +extern int string_length (char * string); extern char * string_reverse_limit (char * string, int limit); extern char * string_reverse (char * string);