Remove duplicate import

This commit is contained in:
Jeroen van Rijn
2025-10-30 17:54:02 +01:00
parent 91a9875077
commit 338733d9ef
2 changed files with 1 additions and 10 deletions
-3
View File
@@ -25,9 +25,6 @@ _stderr_write :: proc "contextless" (data: []byte) -> (int, _OS_Errno) {
return int(ret), 0
}
foreign import libc "system:c"
_exit :: proc "contextless" (code: int) -> ! {
@(default_calling_convention="c")
foreign libc {
+1 -7
View File
@@ -2902,13 +2902,7 @@ gb_internal lbProcedure *lb_create_main_procedure(lbModule *m, lbProcedure *star
lbValue exit_runner = {};
{
AstPackage *pkg = try_get_core_package(m->info, str_lit("os"));
if (pkg == nullptr) {
pkg = try_get_core_package(m->info, str_lit("os2"));
}
if (pkg == nullptr) {
pkg = get_core_package(m->info, str_lit("os2"));
}
AstPackage *pkg = get_runtime_package(m->info);
String name = str_lit("exit");
Entity *e = scope_lookup_current(pkg->scope, name);