mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07: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
|
||||
}
|
||||
|
||||
|
||||
foreign import libc "system:c"
|
||||
|
||||
_exit :: proc "contextless" (code: int) -> ! {
|
||||
@(default_calling_convention="c")
|
||||
foreign libc {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user