]> Cypherpunks repositories - gostls13.git/commitdiff
fix a few spelling mistakes in messages
authorRob Pike <r@golang.org>
Fri, 27 Jun 2008 17:29:02 +0000 (10:29 -0700)
committerRob Pike <r@golang.org>
Fri, 27 Jun 2008 17:29:02 +0000 (10:29 -0700)
SVN=125108

src/cmd/gc/dcl.c
src/cmd/gc/go.h
src/cmd/gc/go.y

index 6320120aabd2602f4e173ea71cdfc81ca4155b85..65563f3b7c78762b20a4555462e50cef3b683119 100644 (file)
@@ -317,14 +317,14 @@ funchdr(Node *n)
        if(on != N) {
                if(eqtype(n->type, on->type, 0)) {
                        if(!eqargs(n->type, on->type))
-                               yyerror("foreward declarations not the same: %S", s);
+                               yyerror("forward declarations not the same: %S", s);
                } else {
                        yyerror("redeclare of function: %S", s);
                        on = N;
                }
        }
 
-       // check for foreward declaration
+       // check for forward declaration
        if(on == N) {
                // initial declaration or redeclaration
                // declare fun name, argument types and argument names
@@ -533,7 +533,7 @@ popdcl(char *why)
        if(d == S)
                fatal("popdcl: no mark");
        if(strcmp(why, d->package) != 0)
-               fatal("popdcl: pushed as %s poped as %s", d->package, why);
+               fatal("popdcl: pushed as %s popped as %s", d->package, why);
        dclstack = d->link;
        block = d->vblock;
 }
@@ -718,7 +718,7 @@ addtyp(Type *n, Type *t, int ctxt)
 
        for(f=s->forwtype; f!=T; f=f->nforw) {
                if(!isptr[f->etype])
-                       fatal("addtyp: foreward");
+                       fatal("addtyp: forward");
                f->type = t;
        }
        s->forwtype = T;
index 12d57ec9b1320d55bc78e516f964a0a23fe1d013..42285550af3b6af243bd732e1289c60c4e4c11e7 100644 (file)
@@ -164,7 +164,7 @@ struct      Sym
        Node*   oname;          // ONAME node if a var
        Type*   otype;          // TYPE node if a type
        Node*   oconst;         // OLITERAL node if a const
-       Type*   forwtype;       // TPTR iff foreward declared
+       Type*   forwtype;       // TPTR iff forward declared
        void*   label;          // pointer to Prog* of label
        vlong   offset;         // stack location if automatic
        long    lexical;
index 55418991cd836663c6717934d5a45cee0d2a06d6..587486003b7d9372a141043121511b381ce343b8 100644 (file)
@@ -877,7 +877,7 @@ Btype:
        {
                // dont know if this is an error or not
                if(dclcontext != PEXTERN)
-                       yyerror("foreward type in function body %s", $2->name);
+                       yyerror("forward type in function body %s", $2->name);
                $$ = forwdcl($2);
        }