authorgravatar for bratishkaerik@getgoogleoff.meEric Joldasov <bratishkaerik@getgoogleoff.me> 2023-10-09 22:50:10+06:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-10-10 02:08:03+03:00
log1f6d82ec01b09b7a8a6285810dd4c68624621df3
tree899c0b8478f032d680d87c0e0a4da096af35fb52
parent3a47bc715404752e7f4156177bfb7975cfa06aec

std.cstr: remove deprecated namespace

Followup to 0a868dacdd31b7d5c529a332da718683477a2505 . Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>

3 files changed, 6 insertions(+), 11 deletions(-)

lib/std/cstr.zig deleted-3
...@@ -1,3 +0,0 @@
1pub const line_sep = @compileError("deprecated; choose correct end-of-line sequence of characters by yourself instead");
2pub const cmp = @compileError("deprecated; use `std.mem.orderZ` instead");
3pub const addNullByte = @compileError("deprecated; use `allocator.dupeZ(u8, stuff)` instead");
lib/std/std.zig-2
...@@ -80,8 +80,6 @@ pub const comptime_string_map = @import("comptime_string_map.zig");...@@ -80,8 +80,6 @@ pub const comptime_string_map = @import("comptime_string_map.zig");
80/// Cryptography.80/// Cryptography.
81pub const crypto = @import("crypto.zig");81pub const crypto = @import("crypto.zig");
8282
83pub const cstr = @import("cstr.zig");
84
85/// Debug printing, allocation and other debug helpers.83/// Debug printing, allocation and other debug helpers.
86pub const debug = @import("debug.zig");84pub const debug = @import("debug.zig");
8785
lib/std/zig/parser_test.zig+6-6
...@@ -2109,14 +2109,14 @@ test "zig fmt: multiline string parameter in fn call with trailing comma" {...@@ -2109,14 +2109,14 @@ test "zig fmt: multiline string parameter in fn call with trailing comma" {
2109 try testCanonical(2109 try testCanonical(
2110 \\fn foo() void {2110 \\fn foo() void {
2111 \\ try stdout.print(2111 \\ try stdout.print(
2112 \\ \\ZIG_CMAKE_BINARY_DIR {}2112 \\ \\ZIG_CMAKE_BINARY_DIR {s}
2113 \\ \\ZIG_C_HEADER_FILES {}2113 \\ \\ZIG_C_HEADER_FILES {s}
2114 \\ \\ZIG_DIA_GUIDS_LIB {}2114 \\ \\ZIG_DIA_GUIDS_LIB {s}
2115 \\ \\2115 \\ \\
2116 \\ ,2116 \\ ,
2117 \\ std.cstr.toSliceConst(c.ZIG_CMAKE_BINARY_DIR),2117 \\ std.mem.sliceTo(c.ZIG_CMAKE_BINARY_DIR, 0),
2118 \\ std.cstr.toSliceConst(c.ZIG_CXX_COMPILER),2118 \\ std.mem.sliceTo(c.ZIG_CXX_COMPILER, 0),
2119 \\ std.cstr.toSliceConst(c.ZIG_DIA_GUIDS_LIB),2119 \\ std.mem.sliceTo(c.ZIG_DIA_GUIDS_LIB, 0),
2120 \\ );2120 \\ );
2121 \\}2121 \\}
2122 \\2122 \\