On Saturday 13 October 2007 18:18:30 chromatic wrote:

> However, the node member of a Hash isn't an array:
>
> typedef struct Node {
>     PMC *key;
>     PMC *val;
>     struct Node *next;  /* for chaining */
> } Node;
>
> typedef struct Hash {
>     Node *node;
>     int size;
>     Node *firstfree;  /* this position is free; all positions after it are
> full */
>     PMC *container;
> } Hash;

Of course, if it uses the same array/buckets approach that Parrot's hash 
implementation does, that Node *node might ought to be Node **node 
instead....

-- c

Reply via email to