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");
8080/// Cryptography.
8181pub const crypto = @import("crypto.zig");
8282
83pub const cstr = @import("cstr.zig");
84
8583/// Debug printing, allocation and other debug helpers.
8684pub 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" {
21092109 try testCanonical(
21102110 \\fn foo() void {
21112111 \\ try stdout.print(
2112 \\ \\ZIG_CMAKE_BINARY_DIR {}
2113 \\ \\ZIG_C_HEADER_FILES {}
2114 \\ \\ZIG_DIA_GUIDS_LIB {}
2112 \\ \\ZIG_CMAKE_BINARY_DIR {s}
2113 \\ \\ZIG_C_HEADER_FILES {s}
2114 \\ \\ZIG_DIA_GUIDS_LIB {s}
21152115 \\ \\
21162116 \\ ,
2117 \\ std.cstr.toSliceConst(c.ZIG_CMAKE_BINARY_DIR),
2118 \\ std.cstr.toSliceConst(c.ZIG_CXX_COMPILER),
2119 \\ std.cstr.toSliceConst(c.ZIG_DIA_GUIDS_LIB),
2117 \\ std.mem.sliceTo(c.ZIG_CMAKE_BINARY_DIR, 0),
2118 \\ std.mem.sliceTo(c.ZIG_CXX_COMPILER, 0),
2119 \\ std.mem.sliceTo(c.ZIG_DIA_GUIDS_LIB, 0),
21202120 \\ );
21212121 \\}
21222122 \\