refactoring
[rrq/rrqmisc.git] / vector / Tuple.h
index fb6bbd6582df49326f9ceecfcca7f9c88a06d343..ea439c5dbe3ea9955fbb52565bcc26f722b48916 100644 (file)
@@ -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