From bc126aadf03e4e64710f2ad7d76d1247090219d5 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Sat, 13 Nov 2021 10:04:16 +1100 Subject: [PATCH] oceani: remove some stray white-space Don't want no extra white space. Signed-off-by: NeilBrown --- csrc/oceani-tests.mdc | 3 +-- csrc/oceani.mdc | 11 ++++------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/csrc/oceani-tests.mdc b/csrc/oceani-tests.mdc index 78b458b..8f10b89 100644 --- a/csrc/oceani-tests.mdc +++ b/csrc/oceani-tests.mdc @@ -823,7 +823,6 @@ various places that `type_err()` are called. print c.foo print bar.c print bar.b + 42 - // trigger 'labels not permitted' error message while 1 if True else False: @@ -860,7 +859,7 @@ various places that `type_err()` are called. .tmp.code:33:14: error: field reference attempted on string, not a struct .tmp.code:34:14: error: cannot find requested field in foo .tmp.code:35:17: error: have string but need number - .tmp.code:39:29: error: expected number (labels not permitted) found Boolean + .tmp.code:38:29: error: expected number (labels not permitted) found Boolean oceani: type error in program - not running. ###### test: type_err4 diff --git a/csrc/oceani.mdc b/csrc/oceani.mdc index 19c9471..beb4fc9 100644 --- a/csrc/oceani.mdc +++ b/csrc/oceani.mdc @@ -691,7 +691,7 @@ A separate function encoding these cases will simplify some code later. } } - static void _dup_value(struct type *type, + static void _dup_value(struct type *type, struct value *vold, struct value *vnew) { switch (type->vtype) { @@ -1031,7 +1031,7 @@ list of in_scope names. The storage of the value of a variable will be described later. For now we just need to know that when a variable goes out of scope, it might -need to be freed. For this we need to be able to find it, so assume that +need to be freed. For this we need to be able to find it, so assume that `var_value()` will provide that. ###### variable fields @@ -2061,7 +2061,7 @@ function will be needed. struct value *v; v = (void*) val->ptr + type->structure.fields[i].offset; if (type->structure.fields[i].init) - dup_value(type->structure.fields[i].type, + dup_value(type->structure.fields[i].type, type->structure.fields[i].init, v); else @@ -2480,7 +2480,6 @@ further detailed when Expression Lists are introduced. } } }$ - $*binode Args -> ArgsLine NEWLINE ${ $0 = $var->type, vl); for (i = 0; i < argc; i++) { struct value *vl2 = vl->array + i * v->var->type->array.member->size; - arg.str.txt = argv[i]; arg.str.len = strlen(argv[i]); -- 2.43.0