Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
1f672596
Commit
1f672596
authored
Jun 27, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a few spelling mistakes in messages
SVN=125108
parent
0f99bec4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
dcl.c
src/cmd/gc/dcl.c
+4
-4
go.h
src/cmd/gc/go.h
+1
-1
go.y
src/cmd/gc/go.y
+1
-1
No files found.
src/cmd/gc/dcl.c
View file @
1f672596
...
@@ -317,14 +317,14 @@ funchdr(Node *n)
...
@@ -317,14 +317,14 @@ funchdr(Node *n)
if
(
on
!=
N
)
{
if
(
on
!=
N
)
{
if
(
eqtype
(
n
->
type
,
on
->
type
,
0
))
{
if
(
eqtype
(
n
->
type
,
on
->
type
,
0
))
{
if
(
!
eqargs
(
n
->
type
,
on
->
type
))
if
(
!
eqargs
(
n
->
type
,
on
->
type
))
yyerror
(
"for
e
ward declarations not the same: %S"
,
s
);
yyerror
(
"forward declarations not the same: %S"
,
s
);
}
else
{
}
else
{
yyerror
(
"redeclare of function: %S"
,
s
);
yyerror
(
"redeclare of function: %S"
,
s
);
on
=
N
;
on
=
N
;
}
}
}
}
// check for for
e
ward declaration
// check for forward declaration
if
(
on
==
N
)
{
if
(
on
==
N
)
{
// initial declaration or redeclaration
// initial declaration or redeclaration
// declare fun name, argument types and argument names
// declare fun name, argument types and argument names
...
@@ -533,7 +533,7 @@ popdcl(char *why)
...
@@ -533,7 +533,7 @@ popdcl(char *why)
if
(
d
==
S
)
if
(
d
==
S
)
fatal
(
"popdcl: no mark"
);
fatal
(
"popdcl: no mark"
);
if
(
strcmp
(
why
,
d
->
package
)
!=
0
)
if
(
strcmp
(
why
,
d
->
package
)
!=
0
)
fatal
(
"popdcl: pushed as %s poped as %s"
,
d
->
package
,
why
);
fatal
(
"popdcl: pushed as %s pop
p
ed as %s"
,
d
->
package
,
why
);
dclstack
=
d
->
link
;
dclstack
=
d
->
link
;
block
=
d
->
vblock
;
block
=
d
->
vblock
;
}
}
...
@@ -718,7 +718,7 @@ addtyp(Type *n, Type *t, int ctxt)
...
@@ -718,7 +718,7 @@ addtyp(Type *n, Type *t, int ctxt)
for
(
f
=
s
->
forwtype
;
f
!=
T
;
f
=
f
->
nforw
)
{
for
(
f
=
s
->
forwtype
;
f
!=
T
;
f
=
f
->
nforw
)
{
if
(
!
isptr
[
f
->
etype
])
if
(
!
isptr
[
f
->
etype
])
fatal
(
"addtyp: for
e
ward"
);
fatal
(
"addtyp: forward"
);
f
->
type
=
t
;
f
->
type
=
t
;
}
}
s
->
forwtype
=
T
;
s
->
forwtype
=
T
;
...
...
src/cmd/gc/go.h
View file @
1f672596
...
@@ -164,7 +164,7 @@ struct Sym
...
@@ -164,7 +164,7 @@ struct Sym
Node
*
oname
;
// ONAME node if a var
Node
*
oname
;
// ONAME node if a var
Type
*
otype
;
// TYPE node if a type
Type
*
otype
;
// TYPE node if a type
Node
*
oconst
;
// OLITERAL node if a const
Node
*
oconst
;
// OLITERAL node if a const
Type
*
forwtype
;
// TPTR iff for
e
ward declared
Type
*
forwtype
;
// TPTR iff forward declared
void
*
label
;
// pointer to Prog* of label
void
*
label
;
// pointer to Prog* of label
vlong
offset
;
// stack location if automatic
vlong
offset
;
// stack location if automatic
long
lexical
;
long
lexical
;
...
...
src/cmd/gc/go.y
View file @
1f672596
...
@@ -877,7 +877,7 @@ Btype:
...
@@ -877,7 +877,7 @@ Btype:
{
{
//
dont
know
if
this
is
an
error
or
not
//
dont
know
if
this
is
an
error
or
not
if
(
dclcontext
!= PEXTERN)
if
(
dclcontext
!= PEXTERN)
yyerror
(
"for
e
ward type in function body %s"
,
$
2
->
name
);
yyerror
(
"forward type in function body %s"
,
$
2
->
name
);
$$
=
forwdcl
($
2
);
$$
=
forwdcl
($
2
);
}
}
...
...
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