diff options
Diffstat (limited to 'src/runtime/runtime.c')
| -rw-r--r-- | src/runtime/runtime.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c index afb9cce172..57e2570905 100644 --- a/src/runtime/runtime.c +++ b/src/runtime/runtime.c @@ -363,7 +363,7 @@ static void interprint(uint32 s, Iface *a) { USED(s); - sys·printinter(*a); + sys·printiface(*a); } static uint32 @@ -373,6 +373,27 @@ interequal(uint32 s, Iface *a, Iface *b) return ifaceeq(*a, *b); } +static uint64 +nilinterhash(uint32 s, Eface *a) +{ + USED(s); + return efacehash(*a); +} + +static void +nilinterprint(uint32 s, Eface *a) +{ + USED(s); + sys·printeface(*a); +} + +static uint32 +nilinterequal(uint32 s, Eface *a, Eface *b) +{ + USED(s); + return efaceeq(*a, *b); +} + uint64 nohash(uint32 s, void *a) { @@ -416,6 +437,7 @@ algarray[] = [ANOEQ] { nohash, noequal, memprint, memcopy }, [ASTRING] { strhash, strequal, strprint, memcopy }, [AINTER] { interhash, interequal, interprint, memcopy }, +[ANILINTER] { nilinterhash, nilinterequal, nilinterprint, memcopy }, [AFAKE] { nohash, noequal, noprint, nocopy }, }; |
