mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
std.cstr: remove deprecated namespace
Followup to 0a868dacdd31b7d5c529a332da718683477a2505 . Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
This commit is contained in:
parent
3a47bc7154
commit
1f6d82ec01
@ -1,3 +0,0 @@
|
|||||||
pub const line_sep = @compileError("deprecated; choose correct end-of-line sequence of characters by yourself instead");
|
|
||||||
pub const cmp = @compileError("deprecated; use `std.mem.orderZ` instead");
|
|
||||||
pub const addNullByte = @compileError("deprecated; use `allocator.dupeZ(u8, stuff)` instead");
|
|
||||||
@ -80,8 +80,6 @@ pub const comptime_string_map = @import("comptime_string_map.zig");
|
|||||||
/// Cryptography.
|
/// Cryptography.
|
||||||
pub const crypto = @import("crypto.zig");
|
pub const crypto = @import("crypto.zig");
|
||||||
|
|
||||||
pub const cstr = @import("cstr.zig");
|
|
||||||
|
|
||||||
/// Debug printing, allocation and other debug helpers.
|
/// Debug printing, allocation and other debug helpers.
|
||||||
pub const debug = @import("debug.zig");
|
pub const debug = @import("debug.zig");
|
||||||
|
|
||||||
|
|||||||
@ -2109,14 +2109,14 @@ test "zig fmt: multiline string parameter in fn call with trailing comma" {
|
|||||||
try testCanonical(
|
try testCanonical(
|
||||||
\\fn foo() void {
|
\\fn foo() void {
|
||||||
\\ try stdout.print(
|
\\ try stdout.print(
|
||||||
\\ \\ZIG_CMAKE_BINARY_DIR {}
|
\\ \\ZIG_CMAKE_BINARY_DIR {s}
|
||||||
\\ \\ZIG_C_HEADER_FILES {}
|
\\ \\ZIG_C_HEADER_FILES {s}
|
||||||
\\ \\ZIG_DIA_GUIDS_LIB {}
|
\\ \\ZIG_DIA_GUIDS_LIB {s}
|
||||||
\\ \\
|
\\ \\
|
||||||
\\ ,
|
\\ ,
|
||||||
\\ std.cstr.toSliceConst(c.ZIG_CMAKE_BINARY_DIR),
|
\\ std.mem.sliceTo(c.ZIG_CMAKE_BINARY_DIR, 0),
|
||||||
\\ std.cstr.toSliceConst(c.ZIG_CXX_COMPILER),
|
\\ std.mem.sliceTo(c.ZIG_CXX_COMPILER, 0),
|
||||||
\\ std.cstr.toSliceConst(c.ZIG_DIA_GUIDS_LIB),
|
\\ std.mem.sliceTo(c.ZIG_DIA_GUIDS_LIB, 0),
|
||||||
\\ );
|
\\ );
|
||||||
\\}
|
\\}
|
||||||
\\
|
\\
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user