shithub: mc

Download patch

ref: 199e8c38edcfd24d13a5209dced69cf0c9b496d0
parent: 53712aa0fc95a84fa36b4960aeef98ceee6859bc
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Feb 14 07:56:24 EST 2015

Use the correct inputs for usefiles.

    Get the sys.foo through 'use sys', and not through 'use "sys.use".
    Also, make sure all .myr files are in the bldfile.

--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@
 include config.mk
 
 check: all
+	$(MAKE) -C libstd check
 	$(MAKE) -C test check
 
 bench: all
--- a/libstd/Makefile
+++ b/libstd/Makefile
@@ -129,5 +129,10 @@
 	rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr/libstd.a)
 	rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr/std)
 
+check: test
+
+test:
+	mbld test
+
 ../6/6m:
 	cd ..; $(MAKE)
--- a/libstd/blat.myr
+++ b/libstd/blat.myr
@@ -9,7 +9,7 @@
 const blat = {path, buf
 	var fd
 
-	fd = openmode(path, Ocreat|Owronly, 0o777)
+	fd = openmode(path, Ocreat|Owronly, 0o666)
 	if fd < 0
 		-> false
 	;;
--- a/libstd/bldfile
+++ b/libstd/bldfile
@@ -25,6 +25,7 @@
 	chartype.myr
         clear.myr
 	cmp.myr
+	cstrconv.myr
 	dial.myr
 	die.myr
 	endian.myr
--- a/libstd/chartype.myr
+++ b/libstd/chartype.myr
@@ -1,5 +1,4 @@
 use "die.use"
-use "sys.use"
 use "types.use"
 
 /* 
--- a/libstd/dial+posixy.myr
+++ b/libstd/dial+posixy.myr
@@ -1,3 +1,5 @@
+use sys
+
 use "alloc.use"
 use "chartype.use"
 use "die.use"
@@ -11,7 +13,6 @@
 use "result.use"
 use "sleq.use"
 use "strfind.use"
-use "sys.use"
 use "syswrap.use"
 use "utf.use"
 
--- a/libstd/errno.myr
+++ b/libstd/errno.myr
@@ -1,4 +1,4 @@
-use "syserrno.use"
+use sys
 
 pkg std =
 	type errno = int
--- a/libstd/strsplit.myr
+++ b/libstd/strsplit.myr
@@ -5,7 +5,6 @@
 use "option.use"
 use "slpush.use"
 use "strfind.use"
-use "sys.use"
 use "types.use"
 
 pkg std =
--- a/libstd/utf.myr
+++ b/libstd/utf.myr
@@ -1,5 +1,4 @@
 use "die.use"
-use "sys.use"
 use "types.use"
 
 pkg std =