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
b5c57fea
Commit
b5c57fea
authored
Aug 12, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete forward type declarations
R=r DELTA=163 (1 added, 149 deleted, 13 changed) OCL=33106 CL=33111
parent
ff5618e2
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
13 additions
and
61 deletions
+13
-61
src/pkg/datafmt/datafmt.go
src/pkg/datafmt/datafmt.go
+0
-2
src/pkg/flag/flag.go
src/pkg/flag/flag.go
+0
-9
src/pkg/go/ast/ast.go
src/pkg/go/ast/ast.go
+11
-25
src/pkg/gob/decode.go
src/pkg/gob/decode.go
+0
-1
src/pkg/gob/encode.go
src/pkg/gob/encode.go
+0
-1
src/pkg/http/server.go
src/pkg/http/server.go
+0
-2
src/pkg/reflect/type.go
src/pkg/reflect/type.go
+0
-2
src/pkg/runtime/type.go
src/pkg/runtime/type.go
+0
-2
src/run.bash
src/run.bash
+2
-2
test/fixedbugs/bug066.go
test/fixedbugs/bug066.go
+0
-5
test/interface/fail.go
test/interface/fail.go
+0
-2
test/interface/recursive.go
test/interface/recursive.go
+0
-2
test/ken/rob2.go
test/ken/rob2.go
+0
-6
No files found.
src/pkg/datafmt/datafmt.go
View file @
b5c57fea
...
@@ -218,8 +218,6 @@ import (
...
@@ -218,8 +218,6 @@ import (
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// Format representation
// Format representation
type
State
struct
// Custom formatters implement the Formatter function type.
// Custom formatters implement the Formatter function type.
// A formatter is invoked with the current formatting state, the
// A formatter is invoked with the current formatting state, the
// value to format, and the rule name under which the formatter
// value to format, and the rule name under which the formatter
...
...
src/pkg/flag/flag.go
View file @
b5c57fea
...
@@ -59,15 +59,6 @@ func atob(str string) (value bool, ok bool) {
...
@@ -59,15 +59,6 @@ func atob(str string) (value bool, ok bool) {
return
false
,
false
return
false
,
false
}
}
type
(
boolValue
struct
;
intValue
struct
;
int64Value
struct
;
uintValue
struct
;
uint64Value
struct
;
stringValue
struct
;
)
// -- Bool Value
// -- Bool Value
type
boolValue
struct
{
type
boolValue
struct
{
p
*
bool
;
p
*
bool
;
...
...
src/pkg/go/ast/ast.go
View file @
b5c57fea
...
@@ -36,13 +36,6 @@ import (
...
@@ -36,13 +36,6 @@ import (
// node sizes a bit.
// node sizes a bit.
type
(
ExprVisitor
interface
;
StmtVisitor
interface
;
DeclVisitor
interface
;
)
// All expression nodes implement the Expr interface.
// All expression nodes implement the Expr interface.
type
Expr
interface
{
type
Expr
interface
{
// For a (dynamic) node type X, calling Visit with an expression
// For a (dynamic) node type X, calling Visit with an expression
...
@@ -101,24 +94,17 @@ type CommentGroup struct {
...
@@ -101,24 +94,17 @@ type CommentGroup struct {
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// Expressions and types
// Expressions and types
// Support types.
// A Field represents a Field declaration list in a struct type,
type
(
// a method in an interface type, or a parameter/result declaration
Ident
struct
;
// in a signature.
StringLit
struct
;
//
FuncType
struct
;
type
Field
struct
{
BlockStmt
struct
;
// A Field represents a Field declaration list in a struct type,
// a method in an interface type, or a parameter/result declaration
// in a signature.
Field
struct
{
Doc
*
CommentGroup
;
// associated documentation; or nil
Doc
*
CommentGroup
;
// associated documentation; or nil
Names
[]
*
Ident
;
// field/method/parameter names; nil if anonymous field
Names
[]
*
Ident
;
// field/method/parameter names; nil if anonymous field
Type
Expr
;
// field/method/parameter type
Type
Expr
;
// field/method/parameter type
Tag
[]
*
StringLit
;
// field tag; or nil
Tag
[]
*
StringLit
;
// field tag; or nil
Comment
*
CommentGroup
;
// line comments; or nil
Comment
*
CommentGroup
;
// line comments; or nil
};
};
)
// An expression is represented by a tree consisting of one
// An expression is represented by a tree consisting of one
...
...
src/pkg/gob/decode.go
View file @
b5c57fea
...
@@ -116,7 +116,6 @@ func decodeInt(state *decodeState) int64 {
...
@@ -116,7 +116,6 @@ func decodeInt(state *decodeState) int64 {
return
int64
(
x
>>
1
)
return
int64
(
x
>>
1
)
}
}
type
decInstr
struct
type
decOp
func
(
i
*
decInstr
,
state
*
decodeState
,
p
unsafe
.
Pointer
);
type
decOp
func
(
i
*
decInstr
,
state
*
decodeState
,
p
unsafe
.
Pointer
);
// The 'instructions' of the decoding machine
// The 'instructions' of the decoding machine
...
...
src/pkg/gob/encode.go
View file @
b5c57fea
...
@@ -66,7 +66,6 @@ func encodeInt(state *encoderState, i int64){
...
@@ -66,7 +66,6 @@ func encodeInt(state *encoderState, i int64){
encodeUint
(
state
,
uint64
(
x
))
encodeUint
(
state
,
uint64
(
x
))
}
}
type
encInstr
struct
type
encOp
func
(
i
*
encInstr
,
state
*
encoderState
,
p
unsafe
.
Pointer
)
type
encOp
func
(
i
*
encInstr
,
state
*
encoderState
,
p
unsafe
.
Pointer
)
// The 'instructions' of the encoding machine
// The 'instructions' of the encoding machine
...
...
src/pkg/http/server.go
View file @
b5c57fea
...
@@ -29,8 +29,6 @@ var (
...
@@ -29,8 +29,6 @@ var (
ErrHijacked
=
os
.
NewError
(
"Conn has been hijacked"
);
ErrHijacked
=
os
.
NewError
(
"Conn has been hijacked"
);
)
)
type
Conn
struct
// Objects implemeting the Handler interface can be
// Objects implemeting the Handler interface can be
// registered to serve a particular path or subtree
// registered to serve a particular path or subtree
// in the HTTP server.
// in the HTTP server.
...
...
src/pkg/reflect/type.go
View file @
b5c57fea
...
@@ -24,8 +24,6 @@ import (
...
@@ -24,8 +24,6 @@ import (
* copy in order to access the private fields.
* copy in order to access the private fields.
*/
*/
type
uncommonType
struct
type
commonType
struct
{
type
commonType
struct
{
size
uintptr
;
size
uintptr
;
hash
uint32
;
hash
uint32
;
...
...
src/pkg/runtime/type.go
View file @
b5c57fea
...
@@ -23,8 +23,6 @@ import "unsafe"
...
@@ -23,8 +23,6 @@ import "unsafe"
// so that the compiler can lay out references as data.
// so that the compiler can lay out references as data.
type
Type
interface
{
}
type
Type
interface
{
}
type
uncommonType
struct
// All types begin with a few common fields needed for
// All types begin with a few common fields needed for
// the interface runtime.
// the interface runtime.
type
commonType
struct
{
type
commonType
struct
{
...
...
src/run.bash
View file @
b5c57fea
...
@@ -16,8 +16,8 @@ maketest() {
...
@@ -16,8 +16,8 @@ maketest() {
do
do
(
(
xcd
$i
xcd
$i
#
make clean
make clean
#
time make
time
make
make
install
make
install
make
test
make
test
)
||
exit
$?
)
||
exit
$?
...
...
test/fixedbugs/bug066.go
View file @
b5c57fea
...
@@ -6,11 +6,6 @@
...
@@ -6,11 +6,6 @@
package
main
package
main
type
(
Type
struct
;
Object
struct
;
)
type
Scope
struct
{
type
Scope
struct
{
entries
map
[
string
]
*
Object
;
entries
map
[
string
]
*
Object
;
}
}
...
...
test/interface/fail.go
View file @
b5c57fea
...
@@ -8,8 +8,6 @@
...
@@ -8,8 +8,6 @@
package
main
package
main
type
S
struct
type
I
interface
{
type
I
interface
{
Foo
()
Foo
()
}
}
...
...
test/interface/recursive.go
View file @
b5c57fea
...
@@ -8,8 +8,6 @@
...
@@ -8,8 +8,6 @@
package
main
package
main
type
I2
interface
type
I1
interface
{
type
I1
interface
{
foo
()
I2
foo
()
I2
}
}
...
...
test/ken/rob2.go
View file @
b5c57fea
...
@@ -9,12 +9,6 @@ package main
...
@@ -9,12 +9,6 @@ package main
const
nilchar
=
0
;
const
nilchar
=
0
;
type
(
Atom
struct
;
List
struct
;
Slist
struct
;
)
type
Atom
struct
{
type
Atom
struct
{
str
string
;
str
string
;
integer
int
;
integer
int
;
...
...
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