Skip to content

Commit b4da0ee

Browse files
refactor: update variable name to be more unambiguous
- update BUFFER_SIZE to PROCESS_BUFFER_SIZE - change var as global var
1 parent cb396ad commit b4da0ee

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/util.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ const BUILTIN = @import("builtin");
55

66
pub const NATIVE_OS = BUILTIN.target.os.tag;
77

8+
pub const PROCESS_BUFFER_SIZE = 1 << 16;
9+
810
/// tree node
911
///
1012
/// examples
@@ -256,8 +258,6 @@ pub fn runSubProcess(
256258
move_process_output_to: *STD.ArrayList(u8),
257259
},
258260
) !void {
259-
const BUFFER_SIZE = comptime 1 << 16;
260-
261261
var process_args: STD.ArrayList([]const u8) = .empty;
262262
defer process_args.deinit(allocator);
263263

@@ -286,7 +286,7 @@ pub fn runSubProcess(
286286
});
287287
};
288288

289-
try process.collectOutput(allocator, &process_stdout_buffer, &process_stderr_buffer, BUFFER_SIZE);
289+
try process.collectOutput(allocator, &process_stdout_buffer, &process_stderr_buffer, PROCESS_BUFFER_SIZE);
290290

291291
if (extra_options.is_debug_enabled) {
292292
STD.debug.print("STDERR ->\n{s}\n", .{process_stderr_buffer.items});

0 commit comments

Comments
 (0)