]> Cypherpunks repositories - gostls13.git/commitdiff
update sysimport.c for unsafe.Offset and Sizeof
authorRob Pike <r@golang.org>
Sat, 7 Feb 2009 22:48:32 +0000 (14:48 -0800)
committerRob Pike <r@golang.org>
Sat, 7 Feb 2009 22:48:32 +0000 (14:48 -0800)
R=ken
DELTA=2  (2 added, 0 deleted, 0 changed)
OCL=24643
CL=24643

src/cmd/gc/sysimport.c

index da12b6361ab1f32828c67858078a459df2f3a6bd..4d682d675d0e2a053bfc8e57b5a8762fcdbddf5f 100644 (file)
@@ -65,5 +65,7 @@ char *sysimport =
 char *unsafeimport =
        "package unsafe\n"
        "type unsafe.Pointer *any\n"
+       "func unsafe.Offsetof (? any) (? int)\n"
+       "func unsafe.Sizeof (? any) (? int)\n"
        "\n"
        "$$\n";