Commit 768a9780ca

Andrew Kelley <superjoe30@gmail.com>
2016-09-05 23:01:54
rename compileErr builtin to compileError
1 parent f2a5fe4
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);
 }
 
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()
 }
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"),
     }
 }
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"),
     }
 }
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);
     }