about summary refs log tree commit diff stats
path: root/shell/gap-buffer.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-05-06 21:24:34 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-05-06 21:38:02 -0700
commita1cfadc749e91abde00e56859b3d5122205a6ca4 (patch)
treedc8267cfc041b0ba5c4823ba79c3243a87630538 /shell/gap-buffer.mu
parentf882130c863d7ed05483a7ecc5e31a399aca241b (diff)
downloadmu-a1cfadc749e91abde00e56859b3d5122205a6ca4.tar.gz
first passing test for macroexpand
In the process I spent a long time tracking down a stray TODO in 108write.subx
that I thought would abort but didn't since the switch to baremetal.

Then after I reintroduced that assertion I had to go track down a bunch
of buffer sizes. Stream sizes continue to be a huge mess.
Diffstat (limited to 'shell/gap-buffer.mu')
-rw-r--r--shell/gap-buffer.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/gap-buffer.mu b/shell/gap-buffer.mu
index fe6569d9..8dada84a 100644
--- a/shell/gap-buffer.mu
+++ b/shell/gap-buffer.mu
@@ -35,8 +35,8 @@ fn gap-buffer-capacity _gap: (addr gap-buffer) -> _/ecx: int {
 
 # just for tests
 fn initialize-gap-buffer-with self: (addr gap-buffer), s: (addr array byte) {
-  initialize-gap-buffer self, 0x10/capacity
-  var stream-storage: (stream byte 0x10/capacity)
+  initialize-gap-buffer self, 0x40/capacity
+  var stream-storage: (stream byte 0x40/capacity)
   var stream/ecx: (addr stream byte) <- address stream-storage
   write stream, s
   {