shithub: mc

Download patch

ref: 9a8ac636f97d0da01fe0d7283082bc7b9315e44e
parent: 5f8ce4d91c5ae77dad2eb17b7a005723b2b8a90f
author: Ori Bernstein <[email protected]>
date: Fri Oct 18 09:41:55 EDT 2013

Rename 'consts.myr' to 'units.myr'.

    Prevents it from being a useless grab-bag of constants.

--- a/libstd/Makefile
+++ b/libstd/Makefile
@@ -3,7 +3,6 @@
     alloc.myr \
     blat.myr \
     chartype.myr \
-    consts.myr \
     die.myr \
     env.myr \
     error.myr \
@@ -22,6 +21,7 @@
     strcmp.myr \
     sys.myr \
     types.myr \
+    units.myr \
     utf.myr \
     varargs.myr \
 
--- a/libstd/alloc.myr
+++ b/libstd/alloc.myr
@@ -1,8 +1,8 @@
-use "consts.use"
 use "die.use"
 use "extremum.use"
 use "sys.use"
 use "types.use"
+use "units.use"
 
 /*
 The allocator implementation here is based on Bonwick's slab allocator.
--- a/libstd/consts.myr
+++ /dev/null
@@ -1,11 +1,0 @@
-pkg std =
-	/* JEDEC 100B.1 memory sizes */
-	generic KiB	: @a::(tcint,tcnum,tctest)	= 1024 
-	generic MiB	: @a::(tcint,tcnum,tctest)	= KiB*1024
-	generic GiB	: @a::(tcint,tcnum,tctest)	= MiB*1024
-	generic TiB	: @a::(tcint,tcnum,tctest)	= GiB*1024
-	generic PiB	: @a::(tcint,tcnum,tctest)	= TiB*1024
-	generic EiB	: @a::(tcint,tcnum,tctest)	= PiB*1024
-	generic ZiB	: @a::(tcint,tcnum,tctest)	= EiB*1024
-	generic YiB	: @a::(tcint,tcnum,tctest)	= ZiB*1024
-;;
--- /dev/null
+++ b/libstd/units.myr
@@ -1,0 +1,11 @@
+pkg std =
+	/* JEDEC 100B.1 memory sizes */
+	generic KiB	: @a::(tcint,tcnum,tctest)	= 1024 
+	generic MiB	: @a::(tcint,tcnum,tctest)	= KiB*1024
+	generic GiB	: @a::(tcint,tcnum,tctest)	= MiB*1024
+	generic TiB	: @a::(tcint,tcnum,tctest)	= GiB*1024
+	generic PiB	: @a::(tcint,tcnum,tctest)	= TiB*1024
+	generic EiB	: @a::(tcint,tcnum,tctest)	= PiB*1024
+	generic ZiB	: @a::(tcint,tcnum,tctest)	= EiB*1024
+	generic YiB	: @a::(tcint,tcnum,tctest)	= ZiB*1024
+;;