Patrick Pelissier
8ce59c2e9d
Maintenance:
...
* update comments
* simplify code.
2021-08-07 00:34:18 +02:00
Patrick Pelissier
85a363d325
Update definition of returned iterator of _it_from of RB tree
...
from the greatest element of 'rbtree' lower of equal than 'data'
to the lowest element of the tree 'rbtree' greater or equal than 'data'
It is more logical and natural:
if you have a tree of elements between [2, 4], and you want
to iterate all elements from 0 to 10, the old definition doesn't allow
you to iterate easily over this subset.
2021-07-16 22:46:44 +02:00
Patrick Pelissier
983d90b731
* Complete tests on iterators to be more exhaustive.
...
* Add tests on _it_from/_it_until_p/_it_while_p.
2021-07-16 21:46:57 +02:00
Patrick Pelissier
7924798e7a
Update names of contract macros as per macro renaming
2021-07-16 21:41:59 +02:00
Patrick Pelissier
a79cd9da97
Fix issue for RB Tree _it_equal_p method
...
if both iterators are equal and are associated
to a RB tree without any element.
2021-07-05 22:44:58 +02:00
Patrick Pelissier
7f79abec3f
Fix issue with INIT_WITH of array/list/....
...
combined with tuple:
_push_back_raw was used within an expanded macro
and as a consequence was expanded multiple times,
resulting in adding a new term in the sequence
for each field of the tuple.
2021-07-04 00:01:00 +02:00
Patrick Pelissier
a3827cc384
Add tests for new constructs
...
allowed in M_LET for tuples
2021-07-01 22:12:15 +02:00
Patrick Pelissier
3d3eb6f1d2
Update tests to new syntax of M_LET.
2021-07-01 22:12:15 +02:00
Patrick Pelissier
ca65d81b60
* Fix conflict between M_MAP2 /M_MAP2B
...
(this arises through M_LET & M_GET_METHOD)
* Rename M_GET_OPPROPERTY into M_GET_PROPERTY
* M_LET can be configured to always use INIT_WITH for special kind of objects.
2021-07-01 22:12:15 +02:00
Patrick Pelissier
23624a1d73
Remove M_EVAL from M_LET as it is not needed anymore.
2021-07-01 22:12:15 +02:00
Patrick Pelissier
3ac08b0395
Add test with a lot of different kind of M_LET with list of strings.
2021-07-01 22:12:15 +02:00
Patrick Pelissier
80582ac5ce
Update as the minimum level of recursion is decreased
2021-07-01 22:12:15 +02:00
Patrick Pelissier
8e6af3bfeb
Add note
2021-07-01 22:12:15 +02:00
Patrick Pelissier
aa3ad973d0
Add another recussive M_LET test
2021-07-01 22:12:15 +02:00
Patrick Pelissier
a19a010d1e
Add WIP version for a M_LET recursive
2021-07-01 22:12:14 +02:00
Patrick Pelissier
36003b6bb3
* Add support for extented variable for M_[F]PRINT
...
* Update documentation
* Add test.
2021-07-01 00:13:31 +02:00
Patrick Pelissier
3c83e4088c
Add internal macro M_MERGE_ARGLIST
2021-06-20 11:06:19 +02:00
Patrick Pelissier
7e234cba65
Add test of M_FPRINT using string_t.
2021-06-19 22:46:58 +02:00
Patrick Pelissier
e688f0b1df
Add internal method M_GET_OPPROPERTY to get the subproperty of an oplist
...
Add test for such macro
Rename operator CLASS into PROPERTIES
2021-06-17 00:20:35 +02:00
Patrick Pelissier
d3be5dba96
Reduce number of created threads, as sometimes it hits the limits
2021-05-22 18:11:09 +02:00
Patrick Pelissier
e514d74f43
Update test to be more pertinent
2021-04-04 22:28:32 +02:00
Patrick Pelissier
2e0fc21878
Fix _push_move of SPSC. It shall take a pointer to the object, not the object itself as argument, just like the other _push_move
2021-03-28 11:48:58 +02:00
Patrick Pelissier
3d7e9e7c03
Add _get_at method for B+TREE
2021-03-28 09:29:04 +02:00
Patrick Pelissier
9b5b15e8cb
Update comment
2021-03-16 21:43:09 +01:00
Patrick Pelissier
e4d1167274
Improve test suite to be more representative
2021-03-14 23:42:05 +01:00
Patrick Pelissier
a044fadec8
Fix minor warning in some compiler options
2021-03-14 11:00:05 +01:00
Patrick Pelissier
26252fedf5
Add test for JSON serialization over string
2021-03-09 22:12:29 +01:00
Patrick Pelissier
07db846f3b
Rename internal string functions to be compliant with new scheme. Not sure if this scheme will remain however (still searching for a better naming that fits all criteria).
2021-03-01 22:18:32 +01:00
Patrick Pelissier
3b6907b743
Add more test cases.
2021-02-23 16:24:46 +01:00
Patrick Pelissier
8e9aa9cac4
Fix _min & _max for B+Tree
...
Make code match the documentation if there is no element in the tree.
2021-02-23 15:59:45 +01:00
Patrick Pelissier
a98ce5ea91
Remove unused test file
2021-02-22 18:59:49 +01:00
Patrick Pelissier
7b2e242c94
Add function bitset_popcount
2021-02-22 12:06:46 +01:00
Patrick Pelissier
5fd6352a4e
Add more tests for bitset_resize
2021-02-22 11:40:29 +01:00
Patrick Pelissier
3377acd9e6
Test another bit for _pop_at
2021-02-22 11:30:59 +01:00
Patrick Pelissier
709168652a
Reformat and specify clz for bitset size = 0
2021-02-21 21:41:51 +01:00
Patrick Pelissier
165ec09061
Rename user customizable macros
...
to be compliant with other
and clearer that they can be customized.
2021-02-20 00:10:26 +01:00
Patrick Pelissier
333047fc4c
Make assertions more robust.
...
Fix read out of bound (with test cases).
2021-02-14 00:15:43 +01:00
Patrick Pelissier
6636800c5b
Remove obsolete / deprecated function/macros.
2021-02-13 11:45:16 +01:00
Patrick Pelissier
c4d339cb62
Rename internal interface.
2021-02-13 11:45:16 +01:00
Patrick Pelissier
517da1b999
Rename generated internal functions
...
to avoid "poluting" userspace naming.
2021-02-13 11:45:05 +01:00
Patrick Pelissier
25497bd96f
Factorize code so that _DEF macros use _DEF_AS ones
2021-02-07 23:04:59 +01:00
Patrick Pelissier
0515cfd068
Add macro M_GREATER_THAN_P & M_LESS_OR_EQUAL_P (src, tests, doc)
2021-02-07 09:53:13 +01:00
Patrick Pelissier
d85df43329
Replace UNERDLOW/OVERFLOW by M_UNDERFLOW/M_OVERFLOW as some systems (Windows/MacOS) perform '#define UNDERFLOW value' in their headers, preventing the detection at preprocessing time.
2021-02-07 09:36:00 +01:00
Patrick Pelissier
16e2e07d41
* Fix M_REVERSE as per the doc (don't add parenthesis on the returned arglist). * Update usage to take this into account.
2021-02-07 00:50:10 +01:00
Patrick Pelissier
6e006d216b
Add macro M_GREATER_OR_EQUAL_P (src, test, doc)
2021-02-07 00:25:47 +01:00
Patrick Pelissier
da613ad188
* Add macro M_LESS_THAN_P (src, test, doc). * Robustify M_INC & M_DEC so that overflow & underflow keeps returning overflow & underflow
2021-02-07 00:10:55 +01:00
Patrick Pelissier
480a791f4c
Update tests
2021-02-06 23:41:04 +01:00
Patrick Pelissier
f2d5de252b
Add M_FILTER and M_FILTER_C macros (src, tests, doc)
2021-02-06 23:24:55 +01:00
Patrick Pelissier
0cb1a8054f
Add M_REPLICATE & M_REPLICATE_C (src, test, doc)
2021-02-06 22:32:38 +01:00
Patrick Pelissier
9eba30648d
Rename M_INVERT into M_REVERSE to be more coherent with REVERSE operator
2021-02-06 21:58:45 +01:00