ref: b86eca27aa6778359fcf2e1671c1cd86429b8bed
parent: e51bd5951d76f015665a8c6a7ff060c1063d9df4
author: Ori Bernstein <[email protected]>
date: Mon Aug 26 16:21:46 EDT 2013
Fix getenv. Had a half baked implementation; Deleted for now.
--- a/libstd/env.myr
+++ b/libstd/env.myr
@@ -1,14 +1,7 @@
use "sleq.use"
pkg std =
+ extern var _environment : byte[:][:]
const getenv : (name : byte[:] -> option(byte[:]))
;;
-extern var _environment : byte[:][:]
-
-const getenv = {
- var i
- var env
-
- for i = 0; i < _environment.len; i++
- if !sleq(