add sleep() function and improve Windows support
I could only test Windows support by compiling with gcc MinGW-w64 and running with Wine.
This commit is contained in:
1 parent
dd67a1bf5d
commit
b4c369e1d9
5 files changed
+46
-6
No files matched your search
@@ -41,7 +41,7 @@ Value eval_binary(IRInstr instr, const Value *lhs, const Value *rhs) {
|
||||
}
|
||||
case IREq:
|
||||
case IRLt:
|
||||
case IRLe:
|
||||
case IRLe: {
|
||||
bool res;
|
||||
if (lhs->type.kind == TypeInt && rhs->type.kind == TypeInt) {
|
||||
switch (instr) {
|
||||
@@ -65,6 +65,7 @@ Value eval_binary(IRInstr instr, const Value *lhs, const Value *rhs) {
|
||||
.type.kind = TypeBool,
|
||||
.Bool = res,
|
||||
};
|
||||
}
|
||||
case IRAnd:
|
||||
return (Value){
|
||||
.type.kind = TypeBool,
|
||||
|
||||
Reference in new issue
Block a user