Skip to content

Commit

Permalink
Remove unused macro from json_utf8.h
Browse files Browse the repository at this point in the history
The macro for unicode not character was unused.

Although not a functional change in the utf8 code the version was still
updated.
  • Loading branch information
xexyl committed Nov 3, 2024
1 parent b3f4fc0 commit c32777e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 8 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 1 addition & 7 deletions json_utf8.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c32777e

Please sign in to comment.