Rename MYMPZ_OPLIST into MY_MPZ_OPLIST
This commit is contained in:
1 parent
e09fa89781
commit
20d549b5e1
5 files changed
+9
-9
No files matched your search
+2
-2
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "m-string.h"
|
#include "m-string.h"
|
||||||
|
|
||||||
/* This is a trivial encapsulation of an opquae structure.
|
/* This is a trivial encapsulation of an opaque structure.
|
||||||
Used for test purpose only.*/
|
Used for test purpose only.*/
|
||||||
typedef struct my_mpz_s {
|
typedef struct my_mpz_s {
|
||||||
unsigned int n;
|
unsigned int n;
|
||||||
@@ -97,7 +97,7 @@ static void my_mpz_str(string_t str, const my_mpz_t z, bool append)
|
|||||||
else string_printf (str, "%u", z->ptr[0]);
|
else string_printf (str, "%u", z->ptr[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define MYMPZ_OPLIST \
|
#define MY_MPZ_OPLIST \
|
||||||
(INIT(my_mpz_init), INIT_SET(my_mpz_init_set), SET(my_mpz_set), CLEAR(my_mpz_clear), \
|
(INIT(my_mpz_init), INIT_SET(my_mpz_init_set), SET(my_mpz_set), CLEAR(my_mpz_clear), \
|
||||||
OUT_STR(my_mpz_out_str), IN_STR(my_mpz_in_str), EQUAL(my_mpz_equal_p), \
|
OUT_STR(my_mpz_out_str), IN_STR(my_mpz_in_str), EQUAL(my_mpz_equal_p), \
|
||||||
GET_STR(my_mpz_str) )
|
GET_STR(my_mpz_str) )
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
START_COVERAGE
|
START_COVERAGE
|
||||||
ARRAY_DEF(array_uint, unsigned int)
|
ARRAY_DEF(array_uint, unsigned int)
|
||||||
ARRAY_DEF(array_mpz, my_mpz_t, MYMPZ_OPLIST)
|
ARRAY_DEF(array_mpz, my_mpz_t, MY_MPZ_OPLIST)
|
||||||
END_COVERAGE
|
END_COVERAGE
|
||||||
#define ARRAY_UINT_OPLIST ARRAY_OPLIST(array_uint)
|
#define ARRAY_UINT_OPLIST ARRAY_OPLIST(array_uint)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@
|
|||||||
START_COVERAGE
|
START_COVERAGE
|
||||||
DEQUE_DEF(deque, int)
|
DEQUE_DEF(deque, int)
|
||||||
END_COVERAGE
|
END_COVERAGE
|
||||||
DEQUE_DEF(deque_mpz, my_mpz_t, MYMPZ_OPLIST)
|
DEQUE_DEF(deque_mpz, my_mpz_t, MY_MPZ_OPLIST)
|
||||||
|
|
||||||
#define OPL DEQUE_OPLIST(deque)
|
#define OPL DEQUE_OPLIST(deque)
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -28,10 +28,10 @@
|
|||||||
#include "coverage.h"
|
#include "coverage.h"
|
||||||
START_COVERAGE
|
START_COVERAGE
|
||||||
LIST_DEF(list_uint, unsigned int)
|
LIST_DEF(list_uint, unsigned int)
|
||||||
LIST_DEF(list_mpz, my_mpz_t, MYMPZ_OPLIST)
|
LIST_DEF(list_mpz, my_mpz_t, MY_MPZ_OPLIST)
|
||||||
LIST_DUAL_PUSH_DEF(list2_double, double)
|
LIST_DUAL_PUSH_DEF(list2_double, double)
|
||||||
END_COVERAGE
|
END_COVERAGE
|
||||||
LIST_DUAL_PUSH_DEF(list2_mpz, my_mpz_t, MYMPZ_OPLIST)
|
LIST_DUAL_PUSH_DEF(list2_mpz, my_mpz_t, MY_MPZ_OPLIST)
|
||||||
#define LIST_UINT_OPLIST LIST_OPLIST(list_uint)
|
#define LIST_UINT_OPLIST LIST_OPLIST(list_uint)
|
||||||
|
|
||||||
static void test_uint(void)
|
static void test_uint(void)
|
||||||
|
|||||||
+3
-3
@@ -30,19 +30,19 @@
|
|||||||
START_COVERAGE
|
START_COVERAGE
|
||||||
TUPLE_DEF2(pair,
|
TUPLE_DEF2(pair,
|
||||||
(key, string_t, (INIT(string_init), INIT_SET(string_init_set), SET(string_set), CLEAR(string_clear))),
|
(key, string_t, (INIT(string_init), INIT_SET(string_init_set), SET(string_set), CLEAR(string_clear))),
|
||||||
(value, my_mpz_t, MYMPZ_OPLIST) )
|
(value, my_mpz_t, MY_MPZ_OPLIST) )
|
||||||
END_COVERAGE
|
END_COVERAGE
|
||||||
|
|
||||||
// No cmp defined
|
// No cmp defined
|
||||||
TUPLE_DEF2(triple,
|
TUPLE_DEF2(triple,
|
||||||
(key, string_t, (INIT(string_init), INIT_SET(string_init_set), SET(string_set), CLEAR(string_clear), CMP(string_cmp))),
|
(key, string_t, (INIT(string_init), INIT_SET(string_init_set), SET(string_set), CLEAR(string_clear), CMP(string_cmp))),
|
||||||
(value, my_mpz_t, MYMPZ_OPLIST ),
|
(value, my_mpz_t, MY_MPZ_OPLIST ),
|
||||||
(data, const char *, ()))
|
(data, const char *, ()))
|
||||||
|
|
||||||
// cmp shall be defined
|
// cmp shall be defined
|
||||||
TUPLE_DEF2(pair3,
|
TUPLE_DEF2(pair3,
|
||||||
(key, string_t, (INIT(string_init), INIT_SET(string_init_set), SET(string_set), CLEAR(string_clear), CMP(string_cmp), HASH(string_hash), EQUAL(string_equal_p))),
|
(key, string_t, (INIT(string_init), INIT_SET(string_init_set), SET(string_set), CLEAR(string_clear), CMP(string_cmp), HASH(string_hash), EQUAL(string_equal_p))),
|
||||||
(value, my_mpz_t, M_OPEXTEND( MYMPZ_OPLIST, CMP(my_mpz_cmp)) ) )
|
(value, my_mpz_t, M_OPEXTEND( MY_MPZ_OPLIST, CMP(my_mpz_cmp)) ) )
|
||||||
|
|
||||||
TUPLE_DEF2(pair_str,
|
TUPLE_DEF2(pair_str,
|
||||||
(vala, string_t, STRING_OPLIST),
|
(vala, string_t, STRING_OPLIST),
|
||||||
|
|||||||
Reference in new issue
Block a user