Add more instantiation of the containter

This commit is contained in:
Patrick Pelissier committed 2018-04-14 08:27:26 +02:00
1 parent 40747a463b
commit 1cd7446013
2 files changed
+6 -2

No files matched your search

+4 -2
View File
@@ -20,12 +20,12 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <limits.h>
#include <time.h>
#include <stdint.h> #include <stdint.h>
#include <assert.h>
#include "m-dict.h" #include "m-dict.h"
#include "m-array.h" #include "m-array.h"
#include "m-string.h" #include "m-string.h"
#include "mympz.h"
static inline bool oor_equal_p(int k, unsigned char n) static inline bool oor_equal_p(int k, unsigned char n)
{ {
@@ -44,6 +44,8 @@ END_COVERAGE
DICT_STOREHASH_DEF2(dict_str2, string_t, STRING_OPLIST, string_t, STRING_OPLIST) DICT_STOREHASH_DEF2(dict_str2, string_t, STRING_OPLIST, string_t, STRING_OPLIST)
DICT_SET_DEF2(dict_setstr, string_t, STRING_OPLIST) DICT_SET_DEF2(dict_setstr, string_t, STRING_OPLIST)
DICT_DEF2(dict_int, int, M_DEFAULT_OPLIST, int, M_DEFAULT_OPLIST)
DICT_DEF2(dict_mpz, string_t, STRING_OPLIST, my_mpz_t, MY_MPZ_OPLIST)
/* Helper structure */ /* Helper structure */
ARRAY_DEF(array_string, string_t, STRING_OPLIST) ARRAY_DEF(array_string, string_t, STRING_OPLIST)
+2
View File
@@ -22,12 +22,14 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include "mympz.h"
#include "m-prioqueue.h" #include "m-prioqueue.h"
#include "coverage.h" #include "coverage.h"
START_COVERAGE START_COVERAGE
PRIOQUEUE_DEF(int_pqueue, int) PRIOQUEUE_DEF(int_pqueue, int)
END_COVERAGE END_COVERAGE
PRIOQUEUE_DEF(mpz_pqueue, my_mpz_t, MY_MPZ_OPLIST)
static void test1(void) static void test1(void)
{ {