Move string type to runtime in separate file

This commit is contained in:
Ayke van Laethem
2018-08-29 20:55:09 +02:00
parent bf160d096b
commit 8f7db8661b
3 changed files with 23 additions and 19 deletions
-12
View File
@@ -21,18 +21,6 @@ func GOMAXPROCS(n int) int {
return 1
}
func stringequal(x, y string) bool {
if len(x) != len(y) {
return false
}
for i := 0; i < len(x); i++ {
if x[i] != y[i] {
return false
}
}
return true
}
// Copy size bytes from src to dst. The memory areas must not overlap.
func memcpy(dst, src unsafe.Pointer, size uintptr) {
for i := uintptr(0); i < size; i++ {