mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
debug: correct dump_hex and dump_hex_fallible casing (#19296)
#1097 is closed.
This commit is contained in:
parent
42d9017feb
commit
600e96f450
1 changed files with 4 additions and 4 deletions
|
|
@ -115,14 +115,14 @@ pub fn getSelfDebugInfo() !*DebugInfo {
|
|||
|
||||
/// Tries to print a hexadecimal view of the bytes, unbuffered, and ignores any error returned.
|
||||
/// Obtains the stderr mutex while dumping.
|
||||
pub fn dump_hex(bytes: []const u8) void {
|
||||
pub fn dumpHex(bytes: []const u8) void {
|
||||
lockStdErr();
|
||||
defer unlockStdErr();
|
||||
dump_hex_fallible(bytes) catch {};
|
||||
dumpHexFallible(bytes) catch {};
|
||||
}
|
||||
|
||||
/// Prints a hexadecimal view of the bytes, unbuffered, returning any error that occurs.
|
||||
pub fn dump_hex_fallible(bytes: []const u8) !void {
|
||||
pub fn dumpHexFallible(bytes: []const u8) !void {
|
||||
const stderr = std.io.getStdErr();
|
||||
const ttyconf = std.io.tty.detectConfig(stderr);
|
||||
const writer = stderr.writer();
|
||||
|
|
@ -2950,5 +2950,5 @@ pub inline fn inValgrind() bool {
|
|||
}
|
||||
|
||||
test {
|
||||
_ = &dump_hex;
|
||||
_ = &dumpHex;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue