about summary refs log tree commit diff stats
path: root/038new_text.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-08-26 13:47:39 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-08-26 13:47:39 -0700
commit2efceef6c1626698984ee725ff733c2e0860a79e (patch)
treebca37265ed71fd1ca1436d91e534f77f193e990e /038new_text.cc
parent7fd010710c0a34ff103bec3fb271f0c207bfcc53 (diff)
downloadmu-2efceef6c1626698984ee725ff733c2e0860a79e.tar.gz
3260
array length = number of elements
array size = in locations
Diffstat (limited to '038new_text.cc')
-rw-r--r--038new_text.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/038new_text.cc b/038new_text.cc
index ad0bb99a..46e4db7c 100644
--- a/038new_text.cc
+++ b/038new_text.cc
@@ -36,7 +36,7 @@ int new_mu_string(const string& contents) {
   int string_length = unicode_length(contents);
 //?   Total_alloc += string_length+1;
 //?   ++Num_alloc;
-  int result = allocate(string_length+/*array size*/1);
+  int result = allocate(string_length+/*array length*/1);
   trace(9999, "mem") << "storing string refcount 0 in location " << result << end();
   put(Memory, result, 0);
   int curr_address = result+/*skip refcount*/1;
@@ -103,7 +103,7 @@ if (!canonize_type(x)) return false;
 % Initial_memory_per_routine = 3;
 def main [
   1:address:number/raw <- new number:type
-  2:address:array:character/raw <- new [a]  # not enough room in initial page, if you take the refcount and array size into account
+  2:address:array:character/raw <- new [a]  # not enough room in initial page, if you take the refcount and array length into account
 ]
 +new: routine allocated memory from 1000 to 1003
 +new: routine allocated memory from 1003 to 1006