]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: fix typos
authorShenghou Ma <minux.ma@gmail.com>
Sun, 9 Jun 2013 13:50:24 +0000 (21:50 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Sun, 9 Jun 2013 13:50:24 +0000 (21:50 +0800)
R=golang-dev, bradfitz, khr, r
CC=golang-dev
https://golang.org/cl/7461046

30 files changed:
src/cmd/5c/peep.c
src/cmd/5g/gsubr.c
src/cmd/5g/peep.c
src/cmd/5g/reg.c
src/cmd/5l/pass.c
src/cmd/6c/peep.c
src/cmd/6c/txt.c
src/cmd/6g/cgen.c
src/cmd/6g/gsubr.c
src/cmd/6g/peep.c
src/cmd/8c/peep.c
src/cmd/8c/txt.c
src/cmd/8g/cgen.c
src/cmd/8g/peep.c
src/cmd/8g/reg.c
src/cmd/cc/funct.c
src/cmd/cc/lexbody
src/cmd/cc/pgen.c
src/cmd/cc/pswt.c
src/cmd/dist/plan9.c
src/cmd/dist/unix.c
src/cmd/gc/obj.c
src/cmd/gc/swt.c
src/cmd/go/test.bash
src/cmd/ld/data.c
src/cmd/ld/dwarf.c
src/cmd/yacc/units.txt
src/libmach/6obj.c
src/libmach/8obj.c
test/chan/doubleselect.go

index 2f902e02a2cf1f112630160986a62ee1e86c1d31..31c132275730844764cb018d1823a12929e4f238 100644 (file)
@@ -462,7 +462,7 @@ copy1(Adr *v1, Adr *v2, Reg *r, int f)
                }
                t = copyu(p, v2, A);
                switch(t) {
-               case 2: /* rar, cant split */
+               case 2: /* rar, can't split */
                        if(debug['P'])
                                print("; %Drar; return 0\n", v2);
                        return 0;
index 815d6fab23e25c6516d8348ef5285a83cc038f98..f89124269cf08830fb7a599160e8717ffdd5cb00 100644 (file)
@@ -1905,7 +1905,7 @@ odot:
 
        for(i=1; i<o; i++) {
                if(oary[i] >= 0)
-                       fatal("cant happen");
+                       fatal("can't happen");
                gins(AMOVW, &n1, reg);
                n1.xoffset = -(oary[i]+1);
        }
index 9600d8c9c6c01aa3d40bc9df61022caf5736f681..01d4a1bbf2b719b3f8ec5480734b2d85d543bf3a 100644 (file)
@@ -496,7 +496,7 @@ copy1(Adr *v1, Adr *v2, Reg *r, int f)
                }
                t = copyu(p, v2, A);
                switch(t) {
-               case 2: /* rar, cant split */
+               case 2: /* rar, can't split */
                        if(debug['P'])
                                print("; %Drar; return 0\n", v2);
                        return 0;
@@ -973,7 +973,7 @@ copyu(Prog *p, Adr *v, Adr *s)
        switch(p->as) {
 
        default:
-               print("copyu: cant find %A\n", p->as);
+               print("copyu: can't find %A\n", p->as);
                return 2;
 
        case AMOVM:
@@ -1288,7 +1288,7 @@ copyau1(Prog *p, Adr *v)
                                return 1;
                        return 0;
                }
-               print("copyau1: cant tell %P\n", p);
+               print("copyau1: can't tell %P\n", p);
        }
        return 0;
 }
index c675c7d984a2db1397a2f72a56983b91febb3805..e0875995c79a6333d5b03244787f8c81389368c5 100644 (file)
@@ -816,7 +816,7 @@ addmove(Reg *r, int bn, int rn, int f)
                a->type = D_CONST;
 
        if(v->addr)
-               fatal("addmove: shouldnt be doing this %A\n", a);
+               fatal("addmove: shouldn't be doing this %A\n", a);
 
        switch(v->etype) {
        default:
index c22b86085823f95e410df759fa6350d06b409966..a7e776845cda76f2adb6c54515cdb5536f44f684 100644 (file)
@@ -130,7 +130,7 @@ loop:
                                r = prg();
                                *r = *p;
                                if(!(r->mark&FOLL))
-                                       print("cant happen 1\n");
+                                       print("can't happen 1\n");
                                r->mark |= FOLL;
                                if(p != q) {
                                        p = p->link;
@@ -150,7 +150,7 @@ loop:
                                if(!(r->link->mark&FOLL))
                                        xfol(r->link, last);
                                if(!(r->cond->mark&FOLL))
-                                       print("cant happen 2\n");
+                                       print("can't happen 2\n");
                                return;
                        }
                }
index c648d8c0056114fbf1773470c1431c944e5b8fbb..0a3bd84bc7be45806a31584ef6ce1ac1f13d23e9 100644 (file)
@@ -483,7 +483,7 @@ copy1(Adr *v1, Adr *v2, Reg *r, int f)
                }
                t = copyu(p, v2, A);
                switch(t) {
-               case 2: /* rar, cant split */
+               case 2: /* rar, can't split */
                        if(debug['P'])
                                print("; %D rar; return 0\n", v2);
                        return 0;
index 54b1cf54cb84062f95915361f1bf3633e3532740..b91e22b399bd63fe32fac56a7d83d597871657a3 100644 (file)
@@ -1188,7 +1188,7 @@ print("botch in doindex\n");
        else if(n->left->op == OREGISTER)
                idx.ptr = n->left->reg;
        else if(n->left->op != OADDR) {
-               reg[D_BP]++;    // cant be used as a base
+               reg[D_BP]++;    // can't be used as a base
                regalloc(&nod1, &qregnode, Z);
                cgen(n->left, &nod1);
                idx.ptr = nod1.reg;
index 2eae865f330f27aeaa356aec84a714dde2d05a12..884ccff063cec30c346a395e2b207265d1cd81a7 100644 (file)
@@ -1480,7 +1480,7 @@ cadable(Node *n)
  * Small structs or arrays with elements of basic type are
  * also supported.
  * nr is N when assigning a zero value.
- * return 1 if can do, 0 if cant.
+ * return 1 if can do, 0 if can't.
  */
 int
 componentgen(Node *nr, Node *nl)
index 55864c34edc9bdc43f5be350d7df03bfb5f95e3b..5408435fddfa692ccb167484e149b04595b3d342 100644 (file)
@@ -494,7 +494,7 @@ fp:
                break;
 
        case 2:         // offset output arg
-fatal("shouldnt be used");
+fatal("shouldn't be used");
                n->op = OINDREG;
                n->val.u.reg = D_SP;
                n->xoffset += types[tptr]->width;
@@ -2038,7 +2038,7 @@ odot:
 
        for(i=1; i<o; i++) {
                if(oary[i] >= 0)
-                       fatal("cant happen");
+                       fatal("can't happen");
                gins(AMOVQ, &n1, reg);
                n1.xoffset = -(oary[i]+1);
        }
index f9249e80943a6d1daf8843c28e3942e0ace26488..e77d65e873473c6f2c564dfe2ef797a61e9a843b 100644 (file)
@@ -843,7 +843,7 @@ copy1(Adr *v1, Adr *v2, Reg *r, int f)
                }
                t = copyu(p, v2, A);
                switch(t) {
-               case 2: /* rar, cant split */
+               case 2: /* rar, can't split */
                        if(debug['P'])
                                print("; %D rar; return 0\n", v2);
                        return 0;
index 9c3e9a5af295bac4454e81847cf62cfd611b357f..da0127d118cf1eb597b9e1ed1318900d5c2ae7d0 100644 (file)
@@ -403,7 +403,7 @@ copy1(Adr *v1, Adr *v2, Reg *r, int f)
                }
                t = copyu(p, v2, A);
                switch(t) {
-               case 2: /* rar, cant split */
+               case 2: /* rar, can't split */
                        if(debug['P'])
                                print("; %D rar; return 0\n", v2);
                        return 0;
index 7f953879550e533e9e3424282810e33676594c4f..721322a531e6fc9fd705fcb04d2d81c777c4465d 100644 (file)
@@ -963,7 +963,7 @@ print("botch in doindex\n");
        else if(n->left->op == OREGISTER)
                idx.ptr = n->left->reg;
        else if(n->left->op != OADDR) {
-               reg[D_BP]++;    // cant be used as a base
+               reg[D_BP]++;    // can't be used as a base
                regalloc(&nod1, &regnode, Z);
                cgen(n->left, &nod1);
                idx.ptr = nod1.reg;
index d54db7e62930e9550dcc20283eba25c1625afb98..0294a4299b79d65f2a29bc2dcce9aa3d636d7cd4 100644 (file)
@@ -1319,7 +1319,7 @@ cadable(Node *n)
  * copy a composite value by moving its individual components.
  * Slices, strings and interfaces are supported.
  * nr is N when assigning a zero value.
- * return 1 if can do, 0 if cant.
+ * return 1 if can do, 0 if can't.
  */
 int
 componentgen(Node *nr, Node *nl)
index d21be759e196f0349b159fb8f92920ca5f24d294..6b7e4363d87eb9da8be47f036cd43d6e047c9686 100644 (file)
@@ -608,7 +608,7 @@ copy1(Adr *v1, Adr *v2, Reg *r, int f)
                }
                t = copyu(p, v2, A);
                switch(t) {
-               case 2: /* rar, cant split */
+               case 2: /* rar, can't split */
                        if(debug['P'])
                                print("; %D rar; return 0\n", v2);
                        return 0;
index 005f68da30d1c5b04ca9201e71a33379a90474c3..4a0bf91fbc7591d00797d384f767370a6e9f647d 100644 (file)
@@ -1824,7 +1824,7 @@ hash32to16(uint32 h)
 static void
 fixtemp(Prog *firstp)
 {
-       static uint8 counts[1<<16]; // A hash table to count variable occurences.
+       static uint8 counts[1<<16]; // A hash table to count variable occurrences.
        int i;
        Prog *p, *p2;
        uint32 h;
index 7921277b42978c7e525cf4c641b0a6be6fe09c38..92c067db874f9caefaadec9dbe4058ff71bae508 100644 (file)
@@ -235,7 +235,7 @@ no:
        return 0;
 
 bad:
-       diag(n, "cant rewrite typestr for op %O\n", o);
+       diag(n, "can't rewrite typestr for op %O\n", o);
        prtree(n, "isfunct");
        n->type = T;
        return 1;
index f4a69739c86aa61232bdf9fbc0b64c52a071af5c..c5d51b8fb69bf5f349529033ad0c682a036d3682 100644 (file)
@@ -762,7 +762,7 @@ ieeedtod(Ieee *ieee, double native)
                return;
        }
        fr = frexp(native, &exp);
-       f = 2097152L;           /* shouldnt use fp constants here */
+       f = 2097152L;           /* shouldn't use fp constants here */
        fr = modf(fr*f, &ho);
        ieee->h = ho;
        ieee->h &= 0xfffffL;
index b06aa996d2d7c664c92cc4aa296fe9ee9e806e7c..d5849dc3157bec817d0dd1e8bb1f28a24b92bcc0 100644 (file)
@@ -75,7 +75,7 @@ codgen(Node *n, Node *nn)
         */
        for(n1 = nn;; n1 = n1->left) {
                if(n1 == Z) {
-                       diag(nn, "cant find function name");
+                       diag(nn, "can't find function name");
                        return;
                }
                if(n1->op == ONAME)
index 19b8476dcdd49467f4fa44d265e45d35db02c19a..cc9c227637e6bbea48fca9264687782d488203fe 100644 (file)
@@ -156,7 +156,7 @@ ieeedtod(Ieee *ieee, double native)
                return;
        }
        fr = frexp(native, &exp);
-       f = 2097152L;           /* shouldnt use fp constants here */
+       f = 2097152L;           /* shouldn't use fp constants here */
        fr = modf(fr*f, &ho);
        ieee->h = ho;
        ieee->h &= 0xfffffL;
index 8a7c0ab1c3d23679c1ef37b734768a8f6fc36f6a..d954cb35a2c81d0990ca1db12d65de067d605c1a 100644 (file)
@@ -578,7 +578,7 @@ hassuffix(char *p, char *suffix)
        return np >= ns && strcmp(p+np-ns, suffix) == 0;
 }
 
-// hasprefix reports whether p begins wtih prefix.
+// hasprefix reports whether p begins with prefix.
 bool
 hasprefix(char *p, char *prefix)
 {
index f2ea48974b1321f0991f87e6b0fe82bcb3ea3619..86948b0b2bd0edb225803abdf6be489fab0c187d 100644 (file)
@@ -548,7 +548,7 @@ hassuffix(char *p, char *suffix)
        return np >= ns && strcmp(p+np-ns, suffix) == 0;
 }
 
-// hasprefix reports whether p begins wtih prefix.
+// hasprefix reports whether p begins with prefix.
 bool
 hasprefix(char *p, char *prefix)
 {
index e4bcd11703d80c9ac1ba9ba657a70077590e59e2..f06b7ad451bec88fd67be183e0836173482c9391 100644 (file)
@@ -235,7 +235,7 @@ ieeedtod(uint64 *ieee, double native)
                return;
        }
        fr = frexp(native, &exp);
-       f = 2097152L;           /* shouldnt use fp constants here */
+       f = 2097152L;           /* shouldn't use fp constants here */
        fr = modf(fr*f, &ho);
        h = ho;
        h &= 0xfffffL;
index 3ad5f02a5f3944211f18d94c723be844ab7abc57..c5cb49170d37e25552b1c617f615fcaabc568d7a 100644 (file)
@@ -315,7 +315,7 @@ casebody(Node *sw, Node *typeswvar)
                }
                stat = concat(stat, n->nbody);
 
-               // botch - shouldnt fall thru declaration
+               // botch - shouldn't fall thru declaration
                last = stat->end->n;
                if(last->op == OXFALL) {
                        if(typeswvar) {
index e2264a46e7000b8774cb5265de835512be2d797a..3c8a83d1b24196ef413f5e3f65c3e963e5b08f3c 100755 (executable)
@@ -151,7 +151,7 @@ if ! ./testgo list std | cmp -s test_std.list - ; then
 fi
 rm -f test_std.list
 
-# issue 4096. Validate the output of unsucessful go install foo/quxx 
+# issue 4096. Validate the output of unsuccessful go install foo/quxx 
 if [ $(./testgo install 'foo/quxx' 2>&1 | grep -c 'cannot find package "foo/quxx" in any of') -ne 1 ] ; then
        echo 'go install foo/quxx expected error: .*cannot find package "foo/quxx" in any of'
        ok=false
index 93718ad1d16da82fa9843a82ae82d5f2e94e27c4..547494866e8b941e9bd27ac9c6d8065b83eb2501 100644 (file)
@@ -367,7 +367,7 @@ dynreloc(void)
 {
        Sym *s;
 
-       // -d supresses dynamic loader format, so we may as well not
+       // -d suppresses dynamic loader format, so we may as well not
        // compute these sections or mark their symbols as reachable.
        if(debug['d'] && HEADTYPE != Hwindows)
                return;
index 98b03f1c381d9c6ce608b8343ca04957b4d76753..32967d5f6bde8176afe35a5128b754d2de8d1d7e 100644 (file)
@@ -133,7 +133,7 @@ sleb128put(vlong v)
 /*
  * Defining Abbrevs.  This is hardcoded, and there will be
  * only a handful of them.  The DWARF spec places no restriction on
- * the ordering of atributes in the Abbrevs and DIEs, and we will
+ * the ordering of attributes in the Abbrevs and DIEs, and we will
  * always write them out in the order of declaration in the abbrev.
  * This implementation relies on tag, attr < 127, so they serialize as
  * a char.  Higher numbered user-defined tags or attributes can be used
@@ -1646,7 +1646,7 @@ guesslang(char *s)
 }
 
 /*
- * Generate short opcodes when possible, long ones when neccesary.
+ * Generate short opcodes when possible, long ones when necessary.
  * See section 6.2.5
  */
 
@@ -1938,7 +1938,7 @@ enum
 {
        CIERESERVE = 16,
        DATAALIGNMENTFACTOR = -4,       // TODO -PtrSize?
-       FAKERETURNCOLUMN = 16           // TODO gdb6 doesnt like > 15?
+       FAKERETURNCOLUMN = 16           // TODO gdb6 doesn't like > 15?
 };
 
 static void
index df8f567d931a6a587295acb4b0bded9403808d4a..7df23717ef6adba52790d103276585223459ed24 100644 (file)
@@ -481,7 +481,7 @@ mgd                 megagal/day
 mh                     millihenry
 mhz                    1e+6/sec
 mil                    1e-3 in
-millenium              1000 year
+millennium             1000 year
 minersinch             1.5 ft³/min
 minim                  1|60 fldr
 mo                     month
index 578ae2b5ec8e818307edc31de6dd0cb0dc260489..bade9479c782e6037c298d2f1449738515a3f52b 100644 (file)
@@ -52,7 +52,7 @@ _is6(char *t)
 {
        uchar *s = (uchar*)t;
 
-       return  s[0] == (ANAME&0xff)                    /* aslo = ANAME */
+       return  s[0] == (ANAME&0xff)                    /* also = ANAME */
                && s[1] == ((ANAME>>8)&0xff)
                && s[2] == D_FILE                       /* type */
                && s[3] == 1                            /* sym */
index af4ebc877e5b6e1e64c1074726e856ae2e3df2b3..9933dc0a53226d64e7f5d2c9fb3b083653d70d5a 100644 (file)
@@ -52,7 +52,7 @@ _is8(char *t)
 {
        uchar *s = (uchar*)t;
 
-       return  s[0] == (ANAME&0xff)                    /* aslo = ANAME */
+       return  s[0] == (ANAME&0xff)                    /* also = ANAME */
                && s[1] == ((ANAME>>8)&0xff)
                && s[2] == D_FILE                       /* type */
                && s[3] == 1                            /* sym */
index ac559302d9bfef215aa33b430ada0adc1c010b2c..6be3faf55a940a30d5e5f6cc0447f52da1fdba88 100644 (file)
@@ -36,7 +36,7 @@ func sender(n int, c1, c2, c3, c4 chan<- int) {
 }
 
 // mux receives the values from sender and forwards them onto another channel.
-// It would be simplier to just have sender's four cases all be the same
+// It would be simpler to just have sender's four cases all be the same
 // channel, but this doesn't actually trigger the bug.
 func mux(out chan<- int, in <-chan int, done chan<- bool) {
        for v := range in {