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
dbc6d91d
Commit
dbc6d91d
authored
Jul 07, 2009
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typestring.c is no longer needed.
R=rsc DELTA=35 (0 added, 34 deleted, 1 changed) OCL=31301 CL=31303
parent
61824ff3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
39 deletions
+1
-39
Makefile
src/pkg/reflect/Makefile
+1
-2
typestring.c
src/pkg/reflect/typestring.c
+0
-37
No files found.
src/pkg/reflect/Makefile
View file @
dbc6d91d
...
@@ -33,7 +33,6 @@ coverage: packages
...
@@ -33,7 +33,6 @@ coverage: packages
O1
=
\
O1
=
\
type.
$O
\
type.
$O
\
typestring.
$O
\
O2
=
\
O2
=
\
value.
$O
\
value.
$O
\
...
@@ -47,7 +46,7 @@ phases: a1 a2 a3
...
@@ -47,7 +46,7 @@ phases: a1 a2 a3
_obj$D/reflect.a
:
phases
_obj$D/reflect.a
:
phases
a1
:
$(O1)
a1
:
$(O1)
$(AR)
grc _obj
$D
/reflect.a type.
$O
typestring.
$O
$(AR)
grc _obj
$D
/reflect.a type.
$O
rm
-f
$(O1)
rm
-f
$(O1)
a2
:
$(O2)
a2
:
$(O2)
...
...
src/pkg/reflect/typestring.c
deleted
100644 → 0
View file @
61824ff3
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
extern
char
gotypestrings
[];
// 4-byte count followed by byte[count]
void
FLUSH
(
void
*
);
typedef
struct
String
String
;
struct
String
{
char
*
str
;
char
len
[
4
];
char
cap
[
4
];
};
void
reflect
·
typestrings
(
String
str
)
{
char
*
s
;
int
i
;
s
=
gotypestrings
;
// repeat the count twice
// once for len, once for cap
for
(
i
=
0
;
i
<
4
;
i
++
)
{
str
.
len
[
i
]
=
s
[
i
];
str
.
cap
[
i
]
=
s
[
i
];
}
// and the pointer
str
.
str
=
s
+
4
;
FLUSH
(
&
str
);
}
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