From 768a9780ca26166b4481c06e87bc6d090be71b64 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 5 Sep 2016 17:01:54 -0400 Subject: [PATCH] rename compileErr builtin to compileError --- src/codegen.cpp | 2 +- std/bootstrap.zig | 2 +- std/io.zig | 14 +++++++------- std/os.zig | 4 ++-- std/rand.zig | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/codegen.cpp b/src/codegen.cpp index 9b0e61fdaf..b7233fc63d 100644 --- 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 index a1d277917c..2a2d1148dd 100644 --- 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 index 45b354ca6f..d68a259878 100644 --- 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 index 869054e012..13cfe7257f 100644 --- 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 index bdb099e98f..205be6bf45 100644 --- 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); }