Ver código fonte

allow run with any mode

Aurel Bílý 6 anos atrás
pai
commit
3fded3b734
2 arquivos alterados com 3 adições e 5 exclusões
  1. 0 2
      libs/uv/uv_stubs.c
  2. 3 3
      src/macro/eval/evalStdLib.ml

+ 0 - 2
libs/uv/uv_stubs.c

@@ -788,9 +788,7 @@ static void handle_udp_cb_recv(uv_udp_t *handle, long int nread, const uv_buf_t
 		Store_field(message, 1, message_addr);
 		Store_field(res, 0, message);
 	}
-	printf("here?\n"); fflush(stdout);
 	caml_callback(cb, res);
-	printf("after?\n"); fflush(stdout);
 	CAMLreturn0;
 }
 

+ 3 - 3
src/macro/eval/evalStdLib.ml

@@ -3758,9 +3758,9 @@ module StdUv = struct
 		vnull
 	)
 
-	let run = vfun1 (fun singleTick ->
-		let singleTick = decode_bool singleTick in
-		let res = (wrap_sync (Uv.run (loop ()) (if singleTick then 1 else 0))) in
+	let run = vfun1 (fun mode ->
+		let mode = decode_int mode in
+		let res = (wrap_sync (Uv.run (loop ()) mode)) in
 		vbool res
 	)