aboutsummaryrefslogtreecommitdiff
path: root/std/debug.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-08-16 22:42:50 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-08-16 22:42:50 -0700
commit37d167f6e0e26e8dc57950cb0fa1bfa630036521 (patch)
tree8b947d065ef12b189cb7a4c880c0009e7a6cd2b8 /std/debug.zig
parent0ae9023832584e256aa3b6df0f0829026141d21a (diff)
downloadzig-37d167f6e0e26e8dc57950cb0fa1bfa630036521.tar.gz
zig-37d167f6e0e26e8dc57950cb0fa1bfa630036521.zip
std: conform to style guidelines
Diffstat (limited to 'std/debug.zig')
-rw-r--r--std/debug.zig10
1 files changed, 5 insertions, 5 deletions
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,
};