chiark / gitweb /
@@@ tvec and tty mess
[mLib] / test / tvec.h
index 8a185393e8b84c3ec03cfb79b87fa0583509147f..3d483b91b4db1c7c36742a3d18661ebf633562b0 100644 (file)
 #  include "macros.h"
 #endif
 
+#ifndef MLIB_POOL_H
+#  include "pool.h"
+#endif
+
 /*----- Miscellaneous values ----------------------------------------------*/
 
 /* These are attached to structures which represent extension points, as a
@@ -483,6 +487,7 @@ struct tvec_state {
 
   /* Memory allocation.  Read-only for all callers. */
   arena *a;
+  pool *p_session, *p_group, *p_test;  /* allocation pools */
 
   /* Test configuration.  Read-only for all callers. */
   struct tvec_config cfg;              /* test configuration */
@@ -508,7 +513,7 @@ struct tvec_state {
 
   /* Adhoc testing state.  Private. */
   struct tvec_test adhoc_test;
-  const struct tvec_test *adhoc_tests[];
+  const struct tvec_test *adhoc_tests[2];
 };
 
 /* @TVEC_REG(tv, vec, i)@