1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:08:10 +00:00

HackStudio: Move everything into the HackStudio namespace

This commit is contained in:
Andreas Kling 2020-08-17 15:22:30 +02:00
parent ce48de9845
commit c0462c65cf
40 changed files with 184 additions and 18 deletions

View file

@ -80,6 +80,10 @@
#include <sys/wait.h>
#include <unistd.h>
using namespace HackStudio;
namespace HackStudio {
NonnullRefPtrVector<EditorWrapper> g_all_editor_wrappers;
RefPtr<EditorWrapper> g_current_editor_wrapper;
Function<void(String)> g_open_file;
@ -172,7 +176,7 @@ static String get_project_executable_path()
return g_project->path().substring(0, g_project->path().index_of(".").value());
}
int main(int argc, char** argv)
int main_impl(int argc, char** argv)
{
if (pledge("stdio tty accept rpath cpath wpath shared_buffer proc exec unix fattr thread", nullptr) < 0) {
perror("pledge");
@ -820,3 +824,10 @@ bool make_is_available()
posix_spawn_file_actions_destroy(&action);
return WEXITSTATUS(wstatus) == 0;
}
}
int main(int argc, char** argv)
{
return main_impl(argc, argv);
}