]> ocean-lang.org Git - ocean/commitdiff
oceani: remove some stray white-space
authorNeilBrown <neil@brown.name>
Fri, 12 Nov 2021 23:04:16 +0000 (10:04 +1100)
committerNeilBrown <neil@brown.name>
Sat, 13 Nov 2021 22:50:58 +0000 (09:50 +1100)
Don't want no extra white space.

Signed-off-by: NeilBrown <neil@brown.name>
csrc/oceani-tests.mdc
csrc/oceani.mdc

index 78b458b3a455adf33dae58958dccea7e15fe40b1..8f10b89324aa7d7dbee42bdfeff3dac4664ba3bf 100644 (file)
@@ -823,7 +823,6 @@ various places that `type_err()` are called.
                print c.foo
                print bar.c
                print bar.b + 42
                print c.foo
                print bar.c
                print bar.b + 42
-               
 
                // trigger 'labels not permitted' error message
                while 1 if True else False:
 
                // 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: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
        oceani: type error in program - not running.
 
 ###### test: type_err4
index 19c9471cec06bb1bc331f26a3e3cb4fecd1864c1..beb4fc9830f41e25f4fbe65e54bb4195a3abde18 100644 (file)
@@ -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) {
                               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
 
 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
 `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)
                        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
                                          type->structure.fields[i].init,
                                          v);
                        else
@@ -2480,7 +2480,6 @@ further detailed when Expression Lists are introduced.
                        }
                } }$
 
                        }
                } }$
 
-
        $*binode
        Args -> ArgsLine NEWLINE ${ $0 = $<AL; }$
                | Args ArgsLine NEWLINE ${ {
        $*binode
        Args -> ArgsLine NEWLINE ${ $0 = $<AL; }$
                | Args ArgsLine NEWLINE ${ {
@@ -4013,7 +4012,7 @@ function.
        Use,
 
 ###### expr precedence
        Use,
 
 ###### expr precedence
-       $TERM use       
+       $TERM use
 
 ###### SimpleStatement Grammar
        | use Expression ${
 
 ###### SimpleStatement Grammar
        | use Expression ${
@@ -4713,7 +4712,6 @@ The code in an Ocean program is all stored in function declarations.
 One of the functions must be named `main` and it must accept an array of
 strings as a parameter - the command line arguments.
 
 One of the functions must be named `main` and it must accept an array of
 strings as a parameter - the command line arguments.
 
-
 As this is the top level, several things are handled a bit
 differently.
 The function is not interpreted by `interp_exec` as that isn't
 As this is the top level, several things are handled a bit
 differently.
 The function is not interpreted by `interp_exec` as that isn't
@@ -4882,7 +4880,6 @@ analysis is a bit more interesting at this level.
                                array_init(v->var->type, vl);
                                for (i = 0; i < argc; i++) {
                                        struct value *vl2 = vl->array + i * v->var->type->array.member->size;
                                array_init(v->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]);
 
                                        arg.str.txt = argv[i];
                                        arg.str.len = strlen(argv[i]);