Some bugfixes/added errors, convert most to not use simple_passthrough

This commit is contained in:
Nathan Braswell
2016-04-30 15:38:28 -04:00
parent d126cbf24b
commit 7aa1d9983b
77 changed files with 260 additions and 600 deletions

View File

@@ -7,22 +7,7 @@ fun system(call_string: string):int {
delete(c_call_string)
return result
}
fun system(call_string: *char): int {
__if_comp__ __C__ {
simple_passthrough(call_string::) """
return system(call_string);
"""
}
}
ext fun system(call_string: *char): int
ext fun exit(code: int):void
fun exit() exit(0);
fun exit(code: int) {
__if_comp__ __C__ {
simple_passthrough(code::) """
exit(code);
"""
}
}