ladybird/Userland/Libraries/LibLine
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
..
CMakeLists.txt Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
Editor.cpp LibLine: Convert strings to time_t using signed conversion methods 2022-12-16 10:06:26 +01:00
Editor.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
InternalFunctions.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
KeyCallbackMachine.cpp LibLine: Correct spelling mistake in variable name 2021-07-21 14:15:24 +02:00
KeyCallbackMachine.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Span.h LibLine: Ignore empty spans when stylizing 2022-07-17 00:51:31 +00:00
StringMetrics.h LibLine: Support wrapping lines in actual_rendered_string_metrics 2022-11-10 12:34:21 +03:30
Style.h Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
SuggestionDisplay.h Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
SuggestionManager.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
SuggestionManager.h Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
VT.h LibLine: Switch all files to use east-const 2021-12-16 03:26:59 +03:30
XtermSuggestionDisplay.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00