mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-26 21:08:45 +08:00
✨ finish subprocess::create/terminate
This commit is contained in:
@@ -4,16 +4,29 @@
|
||||
#include "nasal_gc.h"
|
||||
#include "natives/builtin.h"
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifndef WIN32
|
||||
#include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
namespace nasal {
|
||||
|
||||
void subprocess_destructor(void*);
|
||||
struct subprocess_descriptor {
|
||||
#ifndef WIN32
|
||||
pid_t pid;
|
||||
#else
|
||||
STARTUPINFOW si;
|
||||
PROCESS_INFORMATION pi;
|
||||
#endif
|
||||
};
|
||||
|
||||
var builtin_subprocess_popen(context*, gc*);
|
||||
var builtin_subprocess_pclose(context*, gc*);
|
||||
var builtin_subprocess_read_stdout(context*, gc*);
|
||||
void subprocess_desc_dtor(void*);
|
||||
|
||||
var builtin_subprocess_fork(context*, gc*);
|
||||
var builtin_subprocess_kill(context*, gc*);
|
||||
var builtin_subprocess_create(context*, gc*);
|
||||
var builtin_subprocess_terminate(context*, gc*);
|
||||
extern nasal_builtin_table subprocess_native[];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user