From c32777e86e5fedf56da95a48d180443e47ce504f Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sun, 3 Nov 2024 11:15:11 -0800 Subject: [PATCH] Remove unused macro from json_utf8.h The macro for unicode not character was unused. Although not a functional change in the utf8 code the version was still updated. --- CHANGES.md | 8 ++++++++ json_utf8.h | 8 +------- version.h | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 0bdea50..89c3358 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,13 @@ # Significant changes in the JSON parser repo +## Release 2.0.2 2024-11-03 + +Remove unused macro from `json_utf8.h`. Updated `JPARSE_UTF8_VERSION`. + +Fixed and improved some comments in `json_parse.c` and `jparse.l` and +`jparse.y`. + + ## Release 2.0.1 2024-11-01 Remove blockage of certain UTF-8 codepoints like non-characters as it appears diff --git a/json_utf8.h b/json_utf8.h index 75bbae7..0beb5e0 100644 --- a/json_utf8.h +++ b/json_utf8.h @@ -36,7 +36,7 @@ /* * official jparse UTF-8 version */ -#define JPARSE_UTF8_VERSION "2.0.1 2024-11-01" /* format: major.minor YYYY-MM-DD */ +#define JPARSE_UTF8_VERSION "2.0.2 2024-11-03" /* format: major.minor YYYY-MM-DD */ extern size_t utf8len(const char *str, int32_t surrogate); @@ -107,12 +107,6 @@ extern unsigned int utf8decode(const char *str); * which was greater than UNICODE_MAXIMUM or UNICODE_UTF8_4 into UTF-8 bytes. */ #define UNICODE_TOO_BIG -7 -/* - * This return value indicates that the Unicode code-point ended with either - * 0xFFFF or 0xFFFE, meaning it cannot be used as a character code point, or it - * was in the disallowed range FDD0 to FDEF. - */ -#define UNICODE_NOT_CHARACTER -8 extern int32_t surrogates_to_unicode (int32_t hi, int32_t lo); diff --git a/version.h b/version.h index 413f006..4b87b24 100644 --- a/version.h +++ b/version.h @@ -30,7 +30,7 @@ * * NOTE: this should match the latest Release string in CHANGES.md */ -#define JPARSE_REPO_VERSION "2.0.1 2024-11-01" /* format: major.minor YYYY-MM-DD */ +#define JPARSE_REPO_VERSION "2.0.2 2024-11-03" /* format: major.minor YYYY-MM-DD */ /* * official jparse version