shithub: mc

Download patch

ref: 48187205a5ff0d20c6d4af6e3deaa44e9881fc97
parent: fafd156dc3e294ae0952cbff110c2cf79587db02
author: Ori Bernstein <[email protected]>
date: Fri Jul 20 22:42:20 EDT 2012

Strings are now byte[,], not char[,]

--- a/alloc.myr
+++ b/alloc.myr
@@ -1,3 +1,4 @@
+use "die.use"
 use "sys.use"
 use "types.use"
 
--- a/bld.sh
+++ b/bld.sh
@@ -30,9 +30,11 @@
 
 use sys.myr
 use types.myr 
+use die.myr 
 assem syscall.s
 build sys.myr
 build hello.myr
 build alloc.myr
+build die.myr
 
 $CC -m32 -o hello sys.o hello.o syscall.o
--- a/sys.myr
+++ b/sys.myr
@@ -73,11 +73,11 @@
 	const exit	: (status:int -> int)
 	const getpid	: ( -> int)
 	const kill	: (pid:int, sig:int -> int)
-	const open	: (path:char[,], opts:fdopt -> int)
+	const open	: (path:byte[,], opts:fdopt -> int)
 	const close	: (fd:int -> int)
-	const creat	: (path:char[,], mode:int -> int)
-	const read	: (fd:int, buf:char[,] -> int)
-	const write	: (fd:int, buf:char[,] -> int)
+	const creat	: (path:byte[,], mode:int -> int)
+	const read	: (fd:int, buf:byte[,] -> int)
+	const write	: (fd:int, buf:byte[,] -> int)
 	const lseek	: (fd:int, off:uint, whence:int -> int)
 	const fstat	: (fd:int, sb:statbuf* -> int)
 	const munmap	: (addr:byte*, len:uint -> int)