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
30aa83ca
Commit
30aa83ca
authored
Sep 03, 2008
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- adjusted my submitted code to work with latest compiler changes
R=r OCL=14734 CL=14734
parent
0ffacfd9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
import.go
usr/gri/gosrc/import.go
+1
-1
parser.go
usr/gri/gosrc/parser.go
+2
-2
No files found.
usr/gri/gosrc/import.go
View file @
30aa83ca
...
...
@@ -41,7 +41,7 @@ func (I *Importer) ReadByte() byte {
func
(
I
*
Importer
)
ReadInt
()
int
{
x
:=
0
;
s
:=
0
;
// TODO eventually Go will require this to be a uint!
s
:=
uint
(
0
);
b
:=
I
.
ReadByte
();
for
b
<
128
{
x
|=
int
(
b
)
<<
s
;
...
...
usr/gri/gosrc/parser.go
View file @
30aa83ca
...
...
@@ -533,7 +533,7 @@ func (P *Parser) ParseAnonymousSignature() *Globals.Type {
if
P
.
tok
==
Scanner
.
PERIOD
{
p0
=
sig
.
entries
.
len_
;
if
P
.
semantic_checks
&&
p0
!=
1
{
P
.
Error
(
recv_pos
,
"must have exactly one receiver"
)
P
.
Error
(
recv_pos
,
"must have exactly one receiver"
)
;
panic
(
"UNIMPLEMENTED (ParseAnonymousSignature)"
);
// TODO do something useful here
}
...
...
@@ -574,7 +574,7 @@ func (P *Parser) ParseNamedSignature() (pos int, ident string, typ *Globals.Type
p0
=
sig
.
entries
.
len_
;
if
P
.
semantic_checks
&&
p0
!=
1
{
print
(
"p0 = "
,
p0
,
"
\n
"
);
P
.
Error
(
recv_pos
,
"must have exactly one receiver"
)
P
.
Error
(
recv_pos
,
"must have exactly one receiver"
)
;
panic
(
"UNIMPLEMENTED (ParseNamedSignature)"
);
// TODO do something useful here
}
...
...
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