@@ -54,6 +54,7 @@ class Lib {
default : return function(_1) { throw e; };
}
+ return null;
public static function rethrow(inExp:Dynamic) { throw inExp; }
@@ -64,7 +64,7 @@ class FileInput extends haxe.io.Input {
public function seek( p : Int, pos : FileSeek ) {
- file_seek(__f,p,switch( pos ) { case SeekBegin: 0; case SeekCur: 1; case SeekEnd: 2; });
+ file_seek(__f,p,pos==SeekBegin ? 0 : pos==SeekCur ? 1 : 2 );
public function tell() : Int {
@@ -54,7 +54,7 @@ class FileOutput extends haxe.io.Output {
+ file_seek(__f,p, pos == SeekBegin ? 0 : pos == SeekCur ? 1 : 2);
@@ -50,6 +50,7 @@ private class Stdin extends haxe.io.Output {
} catch( e : Dynamic ) {
throw new haxe.io.Eof();
+ return 0;
static var _stdin_write = cpp.Lib.load("std","process_stdin_write",4);