hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 4e0a175113326b809045337a7b8fe438331aed74
parent b3894bea7c53bd79d36c28408c020b1ea372722d
Author: Sebastian <sebastian@sebsite.pw>
Date:   Tue, 17 Oct 2023 21:08:43 -0400

cmd::hare::build: unexport job

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mcmd/hare/build/queue.ha | 9+++++++++
Mcmd/hare/build/types.ha | 9---------
2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/cmd/hare/build/queue.ha b/cmd/hare/build/queue.ha @@ -19,6 +19,15 @@ use sort; use strings; use unix::tty; +// a command which is currently running +type job = struct { + pid: exec::process, + task: *task, + // fd to be closed once the job has finished, in order to release the + // [[io::lock]] on it + lock: io::file, +}; + export fn execute(ctx: *context) (str | error) = { let q: []*task = []; defer free(q); diff --git a/cmd/hare/build/types.ha b/cmd/hare/build/types.ha @@ -44,15 +44,6 @@ export fn free_task(t: *task) void = { free(t); }; -// a command which is currently running -export type job = struct { - pid: exec::process, - task: *task, - // fd to be closed once the job has finished, in order to release the - // [[io::lock]] on it - lock: io::file, -}; - export type output = enum { DEFAULT, SILENT,