mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Remove duplicate import
This commit is contained in:
@@ -25,9 +25,6 @@ _stderr_write :: proc "contextless" (data: []byte) -> (int, _OS_Errno) {
|
|||||||
return int(ret), 0
|
return int(ret), 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
foreign import libc "system:c"
|
|
||||||
|
|
||||||
_exit :: proc "contextless" (code: int) -> ! {
|
_exit :: proc "contextless" (code: int) -> ! {
|
||||||
@(default_calling_convention="c")
|
@(default_calling_convention="c")
|
||||||
foreign libc {
|
foreign libc {
|
||||||
|
|||||||
@@ -2902,13 +2902,7 @@ gb_internal lbProcedure *lb_create_main_procedure(lbModule *m, lbProcedure *star
|
|||||||
|
|
||||||
lbValue exit_runner = {};
|
lbValue exit_runner = {};
|
||||||
{
|
{
|
||||||
AstPackage *pkg = try_get_core_package(m->info, str_lit("os"));
|
AstPackage *pkg = get_runtime_package(m->info);
|
||||||
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"));
|
|
||||||
}
|
|
||||||
|
|
||||||
String name = str_lit("exit");
|
String name = str_lit("exit");
|
||||||
Entity *e = scope_lookup_current(pkg->scope, name);
|
Entity *e = scope_lookup_current(pkg->scope, name);
|
||||||
|
|||||||
Reference in New Issue
Block a user