zig 0.11.0-dev.4282+0f21d3d4dにバージョンアップ
このコミットが含まれているのは:
コミット
3f420657d5
2
echo.zig
2
echo.zig
|
@ -51,7 +51,7 @@ pub fn main() !void {
|
||||||
try option.append(a);
|
try option.append(a);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const length = std.math.min(arg.len, text.len - 1);
|
const length = @min(arg.len, text.len - 1);
|
||||||
std.mem.copy(u8, text[0..length], arg[0..length]);
|
std.mem.copy(u8, text[0..length], arg[0..length]);
|
||||||
text_len = length;
|
text_len = length;
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ pub fn main() !void {
|
||||||
try option.append(a);
|
try option.append(a);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const length = std.math.min(arg.len, username.len - 1);
|
const length = @min(arg.len, username.len - 1);
|
||||||
mem.copy(u8, username[0..length], arg[0..length]);
|
mem.copy(u8, username[0..length], arg[0..length]);
|
||||||
username[length] = 0;
|
username[length] = 0;
|
||||||
}
|
}
|
||||||
|
|
2
rm.zig
2
rm.zig
|
@ -102,7 +102,7 @@ pub fn main() !void {
|
||||||
defer file.close();
|
defer file.close();
|
||||||
const stat = try file.stat();
|
const stat = try file.stat();
|
||||||
|
|
||||||
if (stat.kind != .File) {
|
if (stat.kind != .file) {
|
||||||
if (isrecur) {
|
if (isrecur) {
|
||||||
if (ischeck) {
|
if (ischeck) {
|
||||||
try stdout.print("rm: ディレクトリ '{s}' を削除しますか?\n", .{item});
|
try stdout.print("rm: ディレクトリ '{s}' を削除しますか?\n", .{item});
|
||||||
|
|
読み込み中…
新しいイシューから参照