mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 17:44:56 +09:00
sort: Port to LibMain
This commit is contained in:
parent
176de579f2
commit
395d9a2702
Notes:
sideshowbarker
2024-07-17 20:20:26 +09:00
Author: https://github.com/mhermier
Commit: 395d9a2702
Pull-request: https://github.com/SerenityOS/serenity/pull/12088
Reviewed-by: https://github.com/kennethmyhra
2 changed files with 5 additions and 5 deletions
|
@ -149,6 +149,7 @@ target_link_libraries(run-tests LibRegex)
|
||||||
target_link_libraries(shot LibGUI)
|
target_link_libraries(shot LibGUI)
|
||||||
target_link_libraries(shuf LibMain)
|
target_link_libraries(shuf LibMain)
|
||||||
target_link_libraries(sql LibLine LibSQL LibIPC)
|
target_link_libraries(sql LibLine LibSQL LibIPC)
|
||||||
|
target_link_libraries(sort LibMain)
|
||||||
target_link_libraries(stat LibMain)
|
target_link_libraries(stat LibMain)
|
||||||
target_link_libraries(strace LibMain)
|
target_link_libraries(strace LibMain)
|
||||||
target_link_libraries(tac LibMain)
|
target_link_libraries(tac LibMain)
|
||||||
|
|
|
@ -7,18 +7,17 @@
|
||||||
#include <AK/QuickSort.h>
|
#include <AK/QuickSort.h>
|
||||||
#include <AK/String.h>
|
#include <AK/String.h>
|
||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
|
#include <LibCore/System.h>
|
||||||
|
#include <LibMain/Main.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
int main([[maybe_unused]] int argc, [[maybe_unused]] char** argv)
|
ErrorOr<int> serenity_main([[maybe_unused]] Main::Arguments arguments)
|
||||||
{
|
{
|
||||||
if (pledge("stdio", nullptr) > 0) {
|
TRY(Core::System::pledge("stdio"sv));
|
||||||
perror("pledge");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
Vector<String> lines;
|
Vector<String> lines;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue