1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00
serenity/Userland/Libraries/LibGfx/Font
Ben Wiederhake 6b7ce19161 Everywhere: Remove unused includes of LibC/stdlib.h
These instances were detected by searching for files that include
stdlib.h, but don't match the regex:

\\b(_abort|abort|abs|aligned_alloc|arc4random|arc4random_buf|arc4random_
uniform|atexit|atof|atoi|atol|atoll|bsearch|calloc|clearenv|div|div_t|ex
it|_Exit|EXIT_FAILURE|EXIT_SUCCESS|free|getenv|getprogname|grantpt|labs|
ldiv|ldiv_t|llabs|lldiv|lldiv_t|malloc|malloc_good_size|malloc_size|mble
n|mbstowcs|mbtowc|mkdtemp|mkstemp|mkstemps|mktemp|posix_memalign|posix_o
penpt|ptsname|ptsname_r|putenv|qsort|qsort_r|rand|RAND_MAX|random|reallo
c|realpath|secure_getenv|serenity_dump_malloc_stats|serenity_setenv|sete
nv|setprogname|srand|srandom|strtod|strtof|strtol|strtold|strtoll|strtou
l|strtoull|system|unlockpt|unsetenv|wcstombs|wctomb)\\b

(Without the linebreaks.)

This regex is pessimistic, so there might be more files that don't
actually use anything from the stdlib.

In theory, one might use LibCPP to detect things like this
automatically, but let's do this one step after another.
2023-01-02 20:27:20 -05:00
..
OpenType LibGfx/OpenType: Read "glyf" table header using a C++ struct 2022-12-21 08:44:22 +01:00
WOFF LibGfx: Rename TTF/TrueType to OpenType 2022-12-21 08:44:22 +01:00
BitmapFont.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
BitmapFont.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Emoji.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Emoji.h LibGfx: Change Emoji::emoji_for_code_points to accept const code points 2022-09-16 15:20:59 +02:00
Font.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
FontDatabase.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
FontDatabase.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
FontStyleMapping.h Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
PathRasterizer.cpp LibGfx: Move TTF::Rasterizer to its own files 2022-11-19 11:04:34 +01:00
PathRasterizer.h LibGfx: Move TTF::Rasterizer to its own files 2022-11-19 11:04:34 +01:00
ScaledFont.cpp LibGfx: Use float when calculating text width in ScaledFont 2022-07-09 22:16:18 +02:00
ScaledFont.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Typeface.cpp LibGfx: Migrate Typeface from TTF::Font to Gfx::VectorFont 2022-04-09 23:48:18 +02:00
Typeface.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
VectorFont.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00