about summary refs log tree commit diff stats
path: root/subx/038---literal_strings.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-05-09 09:25:01 -0700
committerKartik Agaram <vc@akkartik.com>2019-05-09 09:25:01 -0700
commitfbc21293299f1d5b2d108e3ee98ea4e9083965b5 (patch)
tree31c5b683cbdeee9e4b32f402a3ec3b76e769aafa /subx/038---literal_strings.cc
parent3ae1fd0048cb0745f570df0263a828a30315a00b (diff)
downloadmu-fbc21293299f1d5b2d108e3ee98ea4e9083965b5.tar.gz
5148
Snapshot of incomplete work to have the memory allocator use `mmap` rather
than `brk`. C tests pass, but the SubX layers are still broken.
Diffstat (limited to 'subx/038---literal_strings.cc')
-rw-r--r--subx/038---literal_strings.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/subx/038---literal_strings.cc b/subx/038---literal_strings.cc
index 65a7740b..9b2c3902 100644
--- a/subx/038---literal_strings.cc
+++ b/subx/038---literal_strings.cc
@@ -184,6 +184,13 @@ void skip_comment(istream& in) {
   }
 }
 
+line label(string s) {
+  line result;
+  result.words.push_back(word());
+  result.words.back().data = (s+":");
+  return result;
+}
+
 // helper for tests
 void parse_instruction_character_by_character(const string& line_data) {
   vector<line> out;