zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 768a9780ca26166b4481c06e87bc6d090be71b64 (tree)
parent f2a5fe443c5e0178c448d0737d0be037a100e469
Author: Andrew Kelley <superjoe30@gmail.com>
Date:   Mon,  5 Sep 2016 17:01:54 -0400

rename compileErr builtin to compileError

Diffstat:
Msrc/codegen.cpp | 2+-
Mstd/bootstrap.zig | 2+-
Mstd/io.zig | 14+++++++-------
Mstd/os.zig | 4++--
Mstd/rand.zig | 2+-
5 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/codegen.cpp b/src/codegen.cpp @@ -4849,7 +4849,7 @@ static void define_builtin_fns(CodeGen *g) { create_builtin_fn_with_arg_count(g, BuiltinFnIdFence, "fence", 1); create_builtin_fn_with_arg_count(g, BuiltinFnIdDivExact, "divExact", 2); create_builtin_fn_with_arg_count(g, BuiltinFnIdTruncate, "truncate", 2); - create_builtin_fn_with_arg_count(g, BuiltinFnIdCompileErr, "compileErr", 1); + create_builtin_fn_with_arg_count(g, BuiltinFnIdCompileErr, "compileError", 1); create_builtin_fn_with_arg_count(g, BuiltinFnIdIntType, "intType", 2); } diff --git a/std/bootstrap.zig b/std/bootstrap.zig @@ -25,7 +25,7 @@ export fn _start() -> unreachable { argc = asm("mov (%%esp), %[argc]": [argc] "=r" (-> usize)); argv = asm("lea 0x4(%%esp), %[argv]": [argv] "=r" (-> &&u8)); }, - else => @compileErr("unsupported arch"), + else => @compileError("unsupported arch"), } callMainAndExit() } diff --git a/std/io.zig b/std/io.zig @@ -187,7 +187,7 @@ pub struct InStream { return; } }, - else => @compileErr("unsupported OS"), + else => @compileError("unsupported OS"), } } @@ -208,7 +208,7 @@ pub struct InStream { } } }, - else => @compileErr("unsupported OS"), + else => @compileError("unsupported OS"), } } @@ -237,7 +237,7 @@ pub struct InStream { } return index; }, - else => @compileErr("unsupported OS"), + else => @compileError("unsupported OS"), } } @@ -298,7 +298,7 @@ pub struct InStream { }; } }, - else => @compileErr("unsupported OS"), + else => @compileError("unsupported OS"), } } @@ -318,7 +318,7 @@ pub struct InStream { }; } }, - else => @compileErr("unsupported OS"), + else => @compileError("unsupported OS"), } } @@ -339,7 +339,7 @@ pub struct InStream { } return result; }, - else => @compileErr("unsupported OS"), + else => @compileError("unsupported OS"), } } @@ -433,6 +433,6 @@ pub fn openSelfExe(stream: &InStream) -> %void { linux => { %return stream.open("/proc/self/exe"); }, - else => @compileErr("unsupported os"), + else => @compileError("unsupported os"), } } diff --git a/std/os.zig b/std/os.zig @@ -18,7 +18,7 @@ pub fn getRandomBytes(buf: []u8) -> %void { } } }, - else => @compileErr("unsupported os"), + else => @compileError("unsupported os"), } } @@ -30,6 +30,6 @@ pub fn abort() -> unreachable { linux.raise(linux.SIGKILL); while (true) {} }, - else => @compileErr("unsupported os"), + else => @compileError("unsupported os"), } } diff --git a/std/rand.zig b/std/rand.zig @@ -87,7 +87,7 @@ pub struct Rand { } else if (T == f64) { 9007199254740992 } else { - @compileErr("unknown floating point type" ++ @typeName(T)) + @compileError("unknown floating point type" ++ @typeName(T)) }; return T(r.rangeUnsigned(int_type, 0, precision)) / T(precision); }