mirror of
https://github.com/golang/go
synced 2024-11-25 18:57:56 -07:00
- adjusted my submitted code to work with latest compiler changes
R=r OCL=14734 CL=14734
This commit is contained in:
parent
0ffacfd995
commit
30aa83ca6e
@ -41,7 +41,7 @@ func (I *Importer) ReadByte() byte {
|
|||||||
|
|
||||||
func (I *Importer) ReadInt() int {
|
func (I *Importer) ReadInt() int {
|
||||||
x := 0;
|
x := 0;
|
||||||
s := 0; // TODO eventually Go will require this to be a uint!
|
s := uint(0);
|
||||||
b := I.ReadByte();
|
b := I.ReadByte();
|
||||||
for b < 128 {
|
for b < 128 {
|
||||||
x |= int(b) << s;
|
x |= int(b) << s;
|
||||||
|
@ -533,7 +533,7 @@ func (P *Parser) ParseAnonymousSignature() *Globals.Type {
|
|||||||
if P.tok == Scanner.PERIOD {
|
if P.tok == Scanner.PERIOD {
|
||||||
p0 = sig.entries.len_;
|
p0 = sig.entries.len_;
|
||||||
if P.semantic_checks && p0 != 1 {
|
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)");
|
panic("UNIMPLEMENTED (ParseAnonymousSignature)");
|
||||||
// TODO do something useful here
|
// TODO do something useful here
|
||||||
}
|
}
|
||||||
@ -574,7 +574,7 @@ func (P *Parser) ParseNamedSignature() (pos int, ident string, typ *Globals.Type
|
|||||||
p0 = sig.entries.len_;
|
p0 = sig.entries.len_;
|
||||||
if P.semantic_checks && p0 != 1 {
|
if P.semantic_checks && p0 != 1 {
|
||||||
print("p0 = ", p0, "\n");
|
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)");
|
panic("UNIMPLEMENTED (ParseNamedSignature)");
|
||||||
// TODO do something useful here
|
// TODO do something useful here
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user