]> granicus.if.org Git - json-c/commit
Rearrange the json_tokener_state_escape_unicode case in json_tokener to simplify...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 21 Jun 2020 03:10:55 +0000 (03:10 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 21 Jun 2020 03:10:55 +0000 (03:10 +0000)
commit36118b681ea3b8e99735beee73cbd25a63e942cd
tree53219dabd2000c615aa8dc9215a084b4762928ca
parent50179fb09f5d317e7192c781ca4a6b039d7818ae
Rearrange the json_tokener_state_escape_unicode case in json_tokener to simplify the code slightly and make it a bit easier to understand.
While here, drop the utf8_replacement_char that is unnecesarily added if we run out of input in the middle of a unicode escape.  No other functional changes (yet).
json_tokener.c
json_tokener.h