File tree 3 files changed +6
-11
lines changed
3 files changed +6
-11
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -80,8 +80,6 @@ pub const comptime_string_map = @import("comptime_string_map.zig");
80
80
/// Cryptography.
81
81
pub const crypto = @import ("crypto.zig" );
82
82
83
- pub const cstr = @import ("cstr.zig" );
84
-
85
83
/// Debug printing, allocation and other debug helpers.
86
84
pub const debug = @import ("debug.zig" );
87
85
Original file line number Diff line number Diff line change @@ -2109,14 +2109,14 @@ test "zig fmt: multiline string parameter in fn call with trailing comma" {
2109
2109
try testCanonical (
2110
2110
\\fn foo() void {
2111
2111
\\ 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 }
2115
2115
\\ \\
2116
2116
\\ ,
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 ),
2120
2120
\\ );
2121
2121
\\}
2122
2122
\\
You can’t perform that action at this time.
0 commit comments