about summary refs log tree commit diff stats
path: root/subx/apps/subx-common.subx
diff options
context:
space:
mode:
Diffstat (limited to 'subx/apps/subx-common.subx')
-rw-r--r--subx/apps/subx-common.subx6
1 files changed, 3 insertions, 3 deletions
diff --git a/subx/apps/subx-common.subx b/subx/apps/subx-common.subx
index 0807b210..cba1e9cc 100644
--- a/subx/apps/subx-common.subx
+++ b/subx/apps/subx-common.subx
@@ -7,7 +7,7 @@
 
 # write an entire stream's contents to a buffered-file
 # ways to do this:
-#   - construct a 'maximal slice' and pass it to write-slice
+#   - construct a 'maximal slice' and pass it to write-slice-buffered
 #   - flush the buffered-file and pass the stream directly to its fd (disabling buffering)
 # we'll go with the first way for now
 write-stream-data:  # f : (address buffered-file), s : (address stream) -> <void>
@@ -30,12 +30,12 @@ write-stream-data:  # f : (address buffered-file), s : (address stream) -> <void
     50/push-EAX
     # . ECX = ESP
     89/copy                         3/mod/direct    1/rm32/ECX    .           .             .           4/r32/ESP   .               .                 # copy ESP to ECX
-    # write-slice(f, slice)
+    # write-slice-buffered(f, slice)
     # . . push args
     51/push-ECX
     ff          6/subop/push        1/mod/*+disp8   5/rm32/EBP    .           .             .           .           8/disp8         .                 # push *(EBP+8)
     # . . call
-    e8/call  write-slice/disp32
+    e8/call  write-slice-buffered/disp32
     # . . discard args
     81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
 $write-stream-data:end: