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:
parent
ce48de9845
commit
c0462c65cf
40 changed files with 184 additions and 18 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue