diff options
| author | Russ Cox <rsc@golang.org> | 2009-07-02 21:25:46 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-07-02 21:25:46 -0700 |
| commit | 29aa3ffbf628d2322e6b82ffed240aa78bf34900 (patch) | |
| tree | ee224f802c50160614823b64d1a316a075cf55ca /src/pkg/runtime | |
| parent | 265674fa57ca17c81144c8742f6ba0232da4cf7c (diff) | |
| download | go-29aa3ffbf628d2322e6b82ffed240aa78bf34900.tar.xz | |
move Structrnd to runtime.h
R=ken
OCL=31125
CL=31125
Diffstat (limited to 'src/pkg/runtime')
| -rw-r--r-- | src/pkg/runtime/chan.c | 4 | ||||
| -rw-r--r-- | src/pkg/runtime/hashmap.c | 4 | ||||
| -rw-r--r-- | src/pkg/runtime/runtime.h | 5 |
3 files changed, 5 insertions, 8 deletions
diff --git a/src/pkg/runtime/chan.c b/src/pkg/runtime/chan.c index de58c40e49..82167ffff2 100644 --- a/src/pkg/runtime/chan.c +++ b/src/pkg/runtime/chan.c @@ -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, diff --git a/src/pkg/runtime/hashmap.c b/src/pkg/runtime/hashmap.c index 49448ba780..1c8dd09cce 100644 --- a/src/pkg/runtime/hashmap.c +++ b/src/pkg/runtime/hashmap.c @@ -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); diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index b02844dc96..8f1cfa73b8 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -258,6 +258,11 @@ enum Amax }; + +enum { + Structrnd = sizeof(uintptr) +}; + /* * deferred subroutine calls */ |
