1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-23 17:37:34 +00:00
serenity/Userland/Libraries/LibRegex
Gunnar Beutner d476144565 Userland: Allow building SerenityOS with -funsigned-char
Some of the code assumed that chars were always signed while that is
not the case on ARM hosts.

Also, some of the code tried to use EOF (-1) in a way similar to what
fgetc() does, however instead of storing the characters in an int
variable a char was used.

While this seemed to work it also meant that character 0xFF would be
incorrectly seen as an end-of-file.

Careful reading of fgetc() reveals that fgetc() stores character
data in an int where valid characters are in the range of 0-255 and
the EOF value is explicitly outside of that range (usually -1).
2021-06-13 18:52:58 +02:00
..
C Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CMakeLists.txt Tests: Move LibRegex tests to Tests/LibRegex 2021-05-06 17:54:28 +02:00
Forward.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Regex.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
RegexByteCode.cpp Everywhere: Replace ctype.h to avoid narrowing conversions 2021-06-03 13:31:46 +02:00
RegexByteCode.h AK: Rename Vector::append(Vector) => Vector::extend(Vector) 2021-06-12 13:24:45 +02:00
RegexDebug.h LibRegex: Replace fprintf()/printf() with warnln()/outln()/dbgln() 2021-05-31 17:43:54 +01:00
RegexError.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
RegexLexer.cpp Userland: Allow building SerenityOS with -funsigned-char 2021-06-13 18:52:58 +02:00
RegexLexer.h Userland: Allow building SerenityOS with -funsigned-char 2021-06-13 18:52:58 +02:00
RegexMatch.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
RegexMatcher.cpp LibRegex: Replace fprintf()/printf() with warnln()/outln()/dbgln() 2021-05-31 17:43:54 +01:00
RegexMatcher.h Revert "Userland: static vs non-static constexpr variables" 2021-05-21 10:30:52 +01:00
RegexOptions.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
RegexParser.cpp AK: Rename Vector::append(Vector) => Vector::extend(Vector) 2021-06-12 13:24:45 +02:00
RegexParser.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00