aboutsummaryrefslogtreecommitdiff
path: root/source/main.elna
diff options
context:
space:
mode:
Diffstat (limited to 'source/main.elna')
-rw-r--r--source/main.elna8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/main.elna b/source/main.elna
index 955f313..adac5ac 100644
--- a/source/main.elna
+++ b/source/main.elna
@@ -2,7 +2,9 @@
v. 2.0. If a copy of the MPL was not distributed with this file, You can
obtain one at https://mozilla.org/MPL/2.0/. *)
-import cstdio, cstdlib, cstring, cctype, common, command_line_interface, lexer
+program(parameters)
+import
+ cstdio, cstdlib, cstring, cctype, common, command_line_interface, lexer
type
SourceFile* = record
@@ -825,10 +827,8 @@ begin
stderr := fdopen(2, "w\0".ptr)
return
-program(parameters)
begin
initialize_global_state();
-return cast(process(cast(parameters.length: Int), parameters.ptr): Word8)
-
+ exit(process(cast(parameters.length: Int), parameters.ptr))
end.