Skip to content

Commit

Permalink
update simpleini to lateset version
Browse files Browse the repository at this point in the history
  • Loading branch information
jtothebell committed Apr 17, 2024
1 parent e037313 commit e52bc1b
Show file tree
Hide file tree
Showing 3 changed files with 384 additions and 139 deletions.
2 changes: 1 addition & 1 deletion libs/simpleini/ConvertUTF.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080
* Once the bits are split out into bytes of UTF-8, this is a mask OR-ed
* into the first byte, depending on how many bytes follow. There are
* as many entries in this table as there are UTF-8 sequence types.
* (I.e., one byte sequence, two byte... etc.). Remember that sequencs
* (I.e., one byte sequence, two byte... etc.). Remember that sequences
* for *legal* UTF-8 will be 4 or fewer bytes total.
*/
static const UTF8 firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
Expand Down
4 changes: 2 additions & 2 deletions libs/simpleini/ConvertUTF.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
Conversions between UTF32, UTF-16, and UTF-8. Header file.
Several funtions are included here, forming a complete set of
Several functions are included here, forming a complete set of
conversions between the three formats. UTF-7 is not included
here, but is handled in a separate source file.
Expand Down Expand Up @@ -102,7 +102,7 @@ typedef unsigned char Boolean; /* 0 or 1 */
typedef enum {
conversionOK, /* conversion successful */
sourceExhausted, /* partial character in source, but hit end */
targetExhausted, /* insuff. room in target for conversion */
targetExhausted, /* insufficient room in target for conversion */
sourceIllegal /* source sequence is illegal/malformed */
} ConversionResult;

Expand Down
Loading

0 comments on commit e52bc1b

Please sign in to comment.