]> Cypherpunks repositories - gostls13.git/commitdiff
typestring.c is no longer needed.
authorIan Lance Taylor <iant@golang.org>
Tue, 7 Jul 2009 21:50:39 +0000 (14:50 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 7 Jul 2009 21:50:39 +0000 (14:50 -0700)
R=rsc
DELTA=35  (0 added, 34 deleted, 1 changed)
OCL=31301
CL=31303

src/pkg/reflect/Makefile
src/pkg/reflect/typestring.c [deleted file]

index d622ffd51e64011c6c3b1a92f7cc60bc05e3769e..deaa49e2a0c8aff76d6e9f42bbbae72cafd500db 100644 (file)
@@ -33,7 +33,6 @@ coverage: packages
 
 O1=\
        type.$O\
-       typestring.$O\
 
 O2=\
        value.$O\
@@ -47,7 +46,7 @@ phases: a1 a2 a3
 _obj$D/reflect.a: phases
 
 a1: $(O1)
-       $(AR) grc _obj$D/reflect.a type.$O typestring.$O
+       $(AR) grc _obj$D/reflect.a type.$O
        rm -f $(O1)
 
 a2: $(O2)
diff --git a/src/pkg/reflect/typestring.c b/src/pkg/reflect/typestring.c
deleted file mode 100644 (file)
index 667037b..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-// 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);
-}