X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=vector%2FTuple.h;h=ea439c5dbe3ea9955fbb52565bcc26f722b48916;hb=48cdb87442b7b3f1cdde9c1710ed90ec773dce97;hp=fb6bbd6582df49326f9ceecfcca7f9c88a06d343;hpb=813cf9d12ff1b1c58e508485c977d33caaf89a86;p=rrq%2Frrqmisc.git diff --git a/vector/Tuple.h b/vector/Tuple.h index fb6bbd6..ea439c5 100644 --- a/vector/Tuple.h +++ b/vector/Tuple.h @@ -9,7 +9,14 @@ typedef struct TupleSchema TupleSchema; * A Tuple is a "self typed" array of elements. */ typedef struct { - TupleSchema *types; + /** + * The number of elements. + */ + unsigned long size; + /** + * Base address for element pointers, which thus follow this + * struct in memory. + */ void *elements[]; } Tuple; @@ -25,13 +32,13 @@ extern Tuple *Tuple_create(int arity,...); * * \related Tuple */ -extern Tuple *Tuple_calloc(int arity); +extern Tuple *Tuple_calloc(unsigned long arity); /** * \brief Create a tuple as a clone of a given tuple. * * \related Tuple */ -extern Tuple *Tuple_clone(int arity,Tuple *t); +extern Tuple *Tuple_clone(Tuple *t); #endif