ref: 7b45d388ae914b853e330a1ce35881e4f7910fdf
parent: 8c7bac5ae4b0611bebf0e5c88ee483e406bece86
author: Ori Bernstein <[email protected]>
date: Wed May 14 06:50:02 EDT 2014
Rename files to match function names. slinsert.myr contained slput(). Rename so that it matches the function.
--- a/libstd/Makefile
+++ b/libstd/Makefile
@@ -32,9 +32,9 @@
sldup.myr \
sleq.myr \
slfill.myr \
- slinsert.myr \
sljoin.myr \
slpush.myr \
+ slput.myr \
slurp.myr \
sort.myr \
strfind.myr \
--- a/libstd/slinsert.myr
+++ /dev/null
@@ -1,21 +1,0 @@
-use "types.use"
-use "alloc.use"
-use "die.use"
-use "fmt.use"
-
-pkg std =
- generic slput : (sl : @a[:], idx : size, elt : @a -> @a[:])
-;;
-
-generic slput = {sl, idx, elt
- var i
- var len
-
- len = sl.len
- sl = slgrow(sl, sl.len + 1)
- for i = len - 1; i >= idx; i--
- sl[i + 1] = sl[i]
- ;;
- sl[idx] = elt
- -> sl
-}
--- /dev/null
+++ b/libstd/slput.myr
@@ -1,0 +1,21 @@
+use "types.use"
+use "alloc.use"
+use "die.use"
+use "fmt.use"
+
+pkg std =
+ generic slput : (sl : @a[:], idx : size, elt : @a -> @a[:])
+;;
+
+generic slput = {sl, idx, elt
+ var i
+ var len
+
+ len = sl.len
+ sl = slgrow(sl, sl.len + 1)
+ for i = len - 1; i >= idx; i--
+ sl[i + 1] = sl[i]
+ ;;
+ sl[idx] = elt
+ -> sl
+}