]> Cypherpunks repositories - gostls13.git/commitdiff
move Structrnd to runtime.h
authorRuss Cox <rsc@golang.org>
Fri, 3 Jul 2009 04:25:46 +0000 (21:25 -0700)
committerRuss Cox <rsc@golang.org>
Fri, 3 Jul 2009 04:25:46 +0000 (21:25 -0700)
R=ken
OCL=31125
CL=31125

src/pkg/runtime/chan.c
src/pkg/runtime/hashmap.c
src/pkg/runtime/runtime.h

index de58c40e49e8ff4d1e19d4c1154489a0c68ff9c4..82167ffff27fb43dbfb24e2f7063651625a56db6 100644 (file)
@@ -88,10 +88,6 @@ static       uint32  gcd(uint32, uint32);
 static uint32  fastrand1(void);
 static uint32  fastrand2(void);
 
-enum {
-       Structrnd = sizeof(uintptr)
-};
-
 // newchan(elemsize uint32, elemalg uint32, hint uint32) (hchan *chan any);
 void
 sys·newchan(uint32 elemsize, uint32 elemalg, uint32 hint,
index 49448ba780927e921e0e8b1269e02c0589d94699..1c8dd09cce19800632774e5808c7a8233e647dd4 100644 (file)
@@ -665,10 +665,6 @@ donothing(uint32 s, void *a, void *b)
 typedef        struct  hash    Hmap;
 static int32   debug   = 0;
 
-enum {
-       Structrnd = sizeof(uintptr)
-};
-
 // newmap(keysize uint32, valsize uint32,
 //     keyalg uint32, valalg uint32,
 //     hint uint32) (hmap *map[any]any);
index b02844dc96556e52eff770417b18552218d95361..8f1cfa73b878803148b1a5f27798c175d3b2c762 100644 (file)
@@ -258,6 +258,11 @@ enum
        Amax
 };
 
+
+enum {
+       Structrnd = sizeof(uintptr)
+};
+
 /*
  * deferred subroutine calls
  */