Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
faef52c2
Commit
faef52c2
authored
Jun 09, 2013
by
Shenghou Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all: fix typos
R=golang-dev, bradfitz, khr, r CC=golang-dev
https://golang.org/cl/7461046
parent
822da408
Changes
30
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
36 additions
and
36 deletions
+36
-36
src/cmd/5c/peep.c
src/cmd/5c/peep.c
+1
-1
src/cmd/5g/gsubr.c
src/cmd/5g/gsubr.c
+1
-1
src/cmd/5g/peep.c
src/cmd/5g/peep.c
+3
-3
src/cmd/5g/reg.c
src/cmd/5g/reg.c
+1
-1
src/cmd/5l/pass.c
src/cmd/5l/pass.c
+2
-2
src/cmd/6c/peep.c
src/cmd/6c/peep.c
+1
-1
src/cmd/6c/txt.c
src/cmd/6c/txt.c
+1
-1
src/cmd/6g/cgen.c
src/cmd/6g/cgen.c
+1
-1
src/cmd/6g/gsubr.c
src/cmd/6g/gsubr.c
+2
-2
src/cmd/6g/peep.c
src/cmd/6g/peep.c
+1
-1
src/cmd/8c/peep.c
src/cmd/8c/peep.c
+1
-1
src/cmd/8c/txt.c
src/cmd/8c/txt.c
+1
-1
src/cmd/8g/cgen.c
src/cmd/8g/cgen.c
+1
-1
src/cmd/8g/peep.c
src/cmd/8g/peep.c
+1
-1
src/cmd/8g/reg.c
src/cmd/8g/reg.c
+1
-1
src/cmd/cc/funct.c
src/cmd/cc/funct.c
+1
-1
src/cmd/cc/lexbody
src/cmd/cc/lexbody
+1
-1
src/cmd/cc/pgen.c
src/cmd/cc/pgen.c
+1
-1
src/cmd/cc/pswt.c
src/cmd/cc/pswt.c
+1
-1
src/cmd/dist/plan9.c
src/cmd/dist/plan9.c
+1
-1
src/cmd/dist/unix.c
src/cmd/dist/unix.c
+1
-1
src/cmd/gc/obj.c
src/cmd/gc/obj.c
+1
-1
src/cmd/gc/swt.c
src/cmd/gc/swt.c
+1
-1
src/cmd/go/test.bash
src/cmd/go/test.bash
+1
-1
src/cmd/ld/data.c
src/cmd/ld/data.c
+1
-1
src/cmd/ld/dwarf.c
src/cmd/ld/dwarf.c
+3
-3
src/cmd/yacc/units.txt
src/cmd/yacc/units.txt
+1
-1
src/libmach/6obj.c
src/libmach/6obj.c
+1
-1
src/libmach/8obj.c
src/libmach/8obj.c
+1
-1
test/chan/doubleselect.go
test/chan/doubleselect.go
+1
-1
No files found.
src/cmd/5c/peep.c
View file @
faef52c2
...
...
@@ -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
;
...
...
src/cmd/5g/gsubr.c
View file @
faef52c2
...
...
@@ -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
);
}
...
...
src/cmd/5g/peep.c
View file @
faef52c2
...
...
@@ -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
;
}
...
...
src/cmd/5g/reg.c
View file @
faef52c2
...
...
@@ -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:
...
...
src/cmd/5l/pass.c
View file @
faef52c2
...
...
@@ -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
;
}
}
...
...
src/cmd/6c/peep.c
View file @
faef52c2
...
...
@@ -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
;
...
...
src/cmd/6c/txt.c
View file @
faef52c2
...
...
@@ -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
;
...
...
src/cmd/6g/cgen.c
View file @
faef52c2
...
...
@@ -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
)
...
...
src/cmd/6g/gsubr.c
View file @
faef52c2
...
...
@@ -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
);
}
...
...
src/cmd/6g/peep.c
View file @
faef52c2
...
...
@@ -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
;
...
...
src/cmd/8c/peep.c
View file @
faef52c2
...
...
@@ -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
;
...
...
src/cmd/8c/txt.c
View file @
faef52c2
...
...
@@ -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
;
...
...
src/cmd/8g/cgen.c
View file @
faef52c2
...
...
@@ -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
)
...
...
src/cmd/8g/peep.c
View file @
faef52c2
...
...
@@ -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
;
...
...
src/cmd/8g/reg.c
View file @
faef52c2
...
...
@@ -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 occur
r
ences.
int
i
;
Prog
*
p
,
*
p2
;
uint32
h
;
...
...
src/cmd/cc/funct.c
View file @
faef52c2
...
...
@@ -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
;
...
...
src/cmd/cc/lexbody
View file @
faef52c2
...
...
@@ -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;
...
...
src/cmd/cc/pgen.c
View file @
faef52c2
...
...
@@ -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
)
...
...
src/cmd/cc/pswt.c
View file @
faef52c2
...
...
@@ -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
;
...
...
src/cmd/dist/plan9.c
View file @
faef52c2
...
...
@@ -578,7 +578,7 @@ hassuffix(char *p, char *suffix)
return
np
>=
ns
&&
strcmp
(
p
+
np
-
ns
,
suffix
)
==
0
;
}
// hasprefix reports whether p begins w
ti
h prefix.
// hasprefix reports whether p begins w
it
h prefix.
bool
hasprefix
(
char
*
p
,
char
*
prefix
)
{
...
...
src/cmd/dist/unix.c
View file @
faef52c2
...
...
@@ -548,7 +548,7 @@ hassuffix(char *p, char *suffix)
return
np
>=
ns
&&
strcmp
(
p
+
np
-
ns
,
suffix
)
==
0
;
}
// hasprefix reports whether p begins w
ti
h prefix.
// hasprefix reports whether p begins w
it
h prefix.
bool
hasprefix
(
char
*
p
,
char
*
prefix
)
{
...
...
src/cmd/gc/obj.c
View file @
faef52c2
...
...
@@ -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
;
...
...
src/cmd/gc/swt.c
View file @
faef52c2
...
...
@@ -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
)
{
...
...
src/cmd/go/test.bash
View file @
faef52c2
...
...
@@ -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 unsuc
c
essful 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
...
...
src/cmd/ld/data.c
View file @
faef52c2
...
...
@@ -367,7 +367,7 @@ dynreloc(void)
{
Sym
*
s
;
// -d supresses dynamic loader format, so we may as well not
// -d sup
p
resses dynamic loader format, so we may as well not
// compute these sections or mark their symbols as reachable.
if
(
debug
[
'd'
]
&&
HEADTYPE
!=
Hwindows
)
return
;
...
...
src/cmd/ld/dwarf.c
View file @
faef52c2
...
...
@@ -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 at
t
ributes 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 nec
ce
sary.
* Generate short opcodes when possible, long ones when nec
es
sary.
* 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
...
...
src/cmd/yacc/units.txt
View file @
faef52c2
...
...
@@ -481,7 +481,7 @@ mgd megagal/day
mh millihenry
mhz 1e+6/sec
mil 1e-3 in
millenium 1000 year
millen
n
ium 1000 year
minersinch 1.5 ft³/min
minim 1|60 fldr
mo month
...
...
src/libmach/6obj.c
View file @
faef52c2
...
...
@@ -52,7 +52,7 @@ _is6(char *t)
{
uchar
*
s
=
(
uchar
*
)
t
;
return
s
[
0
]
==
(
ANAME
&
0xff
)
/* a
sl
o = ANAME */
return
s
[
0
]
==
(
ANAME
&
0xff
)
/* a
ls
o = ANAME */
&&
s
[
1
]
==
((
ANAME
>>
8
)
&
0xff
)
&&
s
[
2
]
==
D_FILE
/* type */
&&
s
[
3
]
==
1
/* sym */
...
...
src/libmach/8obj.c
View file @
faef52c2
...
...
@@ -52,7 +52,7 @@ _is8(char *t)
{
uchar
*
s
=
(
uchar
*
)
t
;
return
s
[
0
]
==
(
ANAME
&
0xff
)
/* a
sl
o = ANAME */
return
s
[
0
]
==
(
ANAME
&
0xff
)
/* a
ls
o = ANAME */
&&
s
[
1
]
==
((
ANAME
>>
8
)
&
0xff
)
&&
s
[
2
]
==
D_FILE
/* type */
&&
s
[
3
]
==
1
/* sym */
...
...
test/chan/doubleselect.go
View file @
faef52c2
...
...
@@ -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 simpl
i
er 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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment