From 37d167f6e0e26e8dc57950cb0fa1bfa630036521 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 16 Aug 2016 22:42:50 -0700 Subject: std: conform to style guidelines --- std/debug.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'std/debug.zig') diff --git a/std/debug.zig b/std/debug.zig index 77213b593e..d1d52f677a 100644 --- a/std/debug.zig +++ b/std/debug.zig @@ -6,10 +6,10 @@ pub fn assert(b: bool) { } pub fn printStackTrace() { - var maybe_fp: ?&const u8 = @frame_address(); + var maybe_fp: ?&const u8 = @frameAddress(); while (true) { const fp = maybe_fp ?? break; - const return_address = *(&const usize)(usize(fp) + @sizeof(usize)); + const return_address = *(&const usize)(usize(fp) + @sizeOf(usize)); %%io.stderr.print_u64(return_address); %%io.stderr.printf("\n"); maybe_fp = *(&const ?&const u8)(fp); @@ -17,9 +17,9 @@ pub fn printStackTrace() { } pub var global_allocator = Allocator { - .alloc_fn = globalAlloc, - .realloc_fn = globalRealloc, - .free_fn = globalFree, + .allocFn = globalAlloc, + .reallocFn = globalRealloc, + .freeFn = globalFree, .context = null, }; -- cgit v1.2.3