diff options
author | Rob Pike <r@golang.org> | 2009-08-25 15:54:25 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2009-08-25 15:54:25 -0700 |
commit | a399c977c938c97082e61a01725cfe6d9db34867 (patch) | |
tree | f3913b178bfbc73429efbd39df31e880769d1c3d /src/pkg/runtime/hashmap.c | |
parent | 5475005371c17da4fb7ef23ccd8ee050aa91807b (diff) | |
download | golang-a399c977c938c97082e61a01725cfe6d9db34867.tar.gz |
rename runtime internals to have modern names (array->slice etc)
R=rsc
DELTA=444 (179 added, 177 deleted, 88 changed)
OCL=33847
CL=33849
Diffstat (limited to 'src/pkg/runtime/hashmap.c')
-rw-r--r-- | src/pkg/runtime/hashmap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pkg/runtime/hashmap.c b/src/pkg/runtime/hashmap.c index 91be38443..8c642d9d4 100644 --- a/src/pkg/runtime/hashmap.c +++ b/src/pkg/runtime/hashmap.c @@ -664,7 +664,7 @@ donothing(uint32 s, void *a, void *b) static int32 debug = 0; -// newmap(keysize uint32, valsize uint32, +// makemap(keysize uint32, valsize uint32, // keyalg uint32, valalg uint32, // hint uint32) (hmap *map[any]any); Hmap* @@ -675,12 +675,12 @@ makemap(uint32 keysize, uint32 valsize, if(keyalg >= nelem(algarray) || algarray[keyalg].hash == nohash) { printf("map(keyalg=%d)\n", keyalg); - throw("sys·newmap: unsupported map key type"); + throw("sys·makemap: unsupported map key type"); } if(valalg >= nelem(algarray)) { printf("map(valalg=%d)\n", valalg); - throw("sys·newmap: unsupported map value type"); + throw("sys·makemap: unsupported map value type"); } h = mal(sizeof(*h)); @@ -720,18 +720,18 @@ makemap(uint32 keysize, uint32 valsize, h->po2 = rnd(h->vo2+valsize, 1); if(debug) { - printf("newmap: map=%p; keysize=%d; valsize=%d; keyalg=%d; valalg=%d; offsets=%d,%d; %d,%d,%d; %d,%d,%d\n", + printf("makemap: map=%p; keysize=%d; valsize=%d; keyalg=%d; valalg=%d; offsets=%d,%d; %d,%d,%d; %d,%d,%d\n", h, keysize, valsize, keyalg, valalg, h->ko0, h->vo0, h->ko1, h->vo1, h->po1, h->ko2, h->vo2, h->po2); } return h; } -// newmap(keysize uint32, valsize uint32, +// makemap(keysize uint32, valsize uint32, // keyalg uint32, valalg uint32, // hint uint32) (hmap *map[any]any); void -sys·newmap(uint32 keysize, uint32 valsize, +sys·makemap(uint32 keysize, uint32 valsize, uint32 keyalg, uint32 valalg, uint32 hint, Hmap *ret) { |