diff options
-rw-r--r-- | 011load.cc | 2 | ||||
-rw-r--r-- | 020run.cc | 2 | ||||
-rw-r--r-- | 036refcount.cc | 8 | ||||
-rw-r--r-- | 040brace.cc | 4 | ||||
-rw-r--r-- | 043space.cc | 12 | ||||
-rw-r--r-- | 059to_text.mu | 4 | ||||
-rw-r--r-- | 073wait.cc | 2 | ||||
-rw-r--r-- | 082scenario_screen.cc | 4 | ||||
-rw-r--r-- | 092socket.mu | 2 |
9 files changed, 21 insertions, 19 deletions
diff --git a/011load.cc b/011load.cc index b89d18fe..8eec19a0 100644 --- a/011load.cc +++ b/011load.cc @@ -163,7 +163,7 @@ bool next_instruction(istream& in, instruction* curr) { return true; } -// can return empty string -- only if `in` has no more data +// can return empty string -- only if 'in' has no more data string next_word(istream& in) { skip_whitespace_but_not_newline(in); // End next_word Special-cases diff --git a/020run.cc b/020run.cc index d70577ea..c4df88bd 100644 --- a/020run.cc +++ b/020run.cc @@ -451,7 +451,7 @@ bool Run_profiler = false; // name of a recipe. // // One drawback: if you're clearing recipes your profile will be inaccurate. -// So far that happens in tests, and in `run-sandboxed` in a later layer. +// So far that happens in tests, and in 'run-sandboxed' in a later layer. map<recipe_ordinal, int> Instructions_running; :(before "End Commandline Options(*arg)") else if (is_equal(*arg, "--profile")) { diff --git a/036refcount.cc b/036refcount.cc index a4cece49..477dc011 100644 --- a/036refcount.cc +++ b/036refcount.cc @@ -228,10 +228,10 @@ struct address_element_info { int offset; // All the information we need to compute sizes of items inside an address - // inside a container. `payload_type` Doesn't need to be a full-scale - // reagent, since an address inside a container can never be an array, and - // arrays are the only type that need to know their location to compute their - // size. + // inside a container. 'payload_type' doesn't need to be a full-scale + // reagent because an address inside a container can never be an array, and + // because arrays are the only type that need to know their location to + // compute their size. const type_tree* payload_type; address_element_info(int o, const type_tree* p); diff --git a/040brace.cc b/040brace.cc index 7cb0a11d..c69c4ef1 100644 --- a/040brace.cc +++ b/040brace.cc @@ -384,7 +384,7 @@ def test1 [ +mem: storing 34 in location 1 :(before "End Rewrite Instruction(curr, recipe result)") -// rewrite `return-if a, b, c, ...` to +// rewrite 'return-if a, b, c, ...' to // ``` // { // break-unless a @@ -400,7 +400,7 @@ if (curr.name == "return-if" || curr.name == "reply-if") { raise << "'" << curr.name << "' never yields any products\n" << end(); } } -// rewrite `return-unless a, b, c, ...` to +// rewrite 'return-unless a, b, c, ...' to // ``` // { // break-if a diff --git a/043space.cc b/043space.cc index 90bb3350..647176c4 100644 --- a/043space.cc +++ b/043space.cc @@ -154,8 +154,8 @@ def main [ :(before "Read element" following "case INDEX:") element.properties.push_back(pair<string, string_tree*>("raw", NULL)); -//:: convenience operation to automatically deduce the amount of space to -//:: allocate in a default space with names +//:: 'new-default-space' is a convenience operation to automatically deduce +//:: the amount of space to allocate in a default space with names :(scenario new_default_space) def main [ @@ -173,9 +173,11 @@ if (x.name == "number-of-locals") if (s == "number-of-locals") return true; :(before "End Rewrite Instruction(curr, recipe result)") -// rewrite `new-default-space` to -// `default-space:space <- new location:type, number-of-locals:literal` -// where N is Name[recipe][""] +// rewrite 'new-default-space' to +// ``` +// default-space:space <- new location:type, number-of-locals:literal +// ``` +// where number-of-locals is Name[recipe][""] if (curr.name == "new-default-space") { rewrite_default_space_instruction(curr); } diff --git a/059to_text.mu b/059to_text.mu index 66cced73..520fab33 100644 --- a/059to_text.mu +++ b/059to_text.mu @@ -1,8 +1,8 @@ -# A couple of variants of `to-text` that we'll use implicitly in stashes (see +# A couple of variants of 'to-text' that we'll use implicitly in stashes (see # later layers). # # Mu code might specialize them to be smarter, but I don't anticipate any need -# beyond specializing `to-text` itself. +# beyond specializing 'to-text' itself. # 'shorter' variant of to-text, when you want to enable some sort of trimming # define it to be identical to 'to-text' by default diff --git a/073wait.cc b/073wait.cc index a223e7bd..b52f3273 100644 --- a/073wait.cc +++ b/073wait.cc @@ -403,7 +403,7 @@ def f2 [ //: //: Managing arbitrary scenarios requires the ability to: //: a) check if a routine is blocked -//: b) restart a blocked routine (`restart`) +//: b) restart a blocked routine ('restart') //: //: A routine is blocked either if it's waiting or if it explicitly signals //: that it's blocked (even as it periodically wakes up and polls for some diff --git a/082scenario_screen.cc b/082scenario_screen.cc index ee90819e..ad61d379 100644 --- a/082scenario_screen.cc +++ b/082scenario_screen.cc @@ -156,8 +156,8 @@ Name[r]["screen"] = SCREEN; if (s == "screen") return true; :(before "End Rewrite Instruction(curr, recipe result)") -// rewrite `assume-screen width, height` to -// `screen:&:screen <- new-fake-screen width, height` +// rewrite 'assume-screen width, height' to +// 'screen:&:screen <- new-fake-screen width, height' if (curr.name == "assume-screen") { curr.name = "new-fake-screen"; if (!curr.products.empty()) { diff --git a/092socket.mu b/092socket.mu index e9955f4a..1cf6930a 100644 --- a/092socket.mu +++ b/092socket.mu @@ -29,7 +29,7 @@ def example-handler query:text -> response:text [ return [abc] ] -# To test client operations, use `assume-resources` with a filename that +# To test client operations, use 'assume-resources' with a filename that # begins with a hostname. (Filenames starting with '/' are assumed to be # local.) scenario example-client-test [ |