Patrick Pelissier
d548117538
Make M*LIB stricter for INIT_MOVE operator:
...
* either the default INIT_MOVE operator works ('=')
* either an INIT_MOVE method is defined
* or it is disabled.
As a consequence, fix usage of testobj_t and mpz_t in the repository
The emulation layer of INIT_MOVE using INIT_SET+CLEAR is removed:
it wasn't working correctly with the local memory context
(INIT_MOVE doesn't need any local memory context to work,
whereas INIT_SET/CLEAR does)
Remove macro M_DO_INIT_MOVE as it is now useless and uses M_CALL_INIT_MOVE.
The INIT_MOVE default method no longer sets the old 'src' to '0':
it was useless (it doesn't catch any error) and complicates compiler parsing.
Fix POD & A1 & CSTR & classic oplists definition (missing INIT_MOVE operators).
2025-05-07 21:02:24 +02:00
Patrick Pelissier
6d621703eb
Copyright go to 2025 year
2025-03-01 11:03:38 +01:00
Patrick Pelissier
52b58c5a51
Happy new year 2024
2024-01-19 21:37:47 +01:00
Patrick Pelissier
f858aa2cb5
Improve coverage of the test suite.
2023-04-05 23:07:52 +02:00
Patrick Pelissier
352d7cf725
Improve coverage of the test suite
2023-04-05 22:22:49 +02:00
Patrick Pelissier
d02de75487
Add control that all initialized testobj are properly cleared at the end of the test suite
2023-03-12 20:29:58 +01:00
Patrick Pelissier
a2ae209992
Happy new year
2023-01-02 12:57:41 +01:00
Patrick Pelissier
f5bbc0a7fb
Implement multiple kind of workarounds for GCC 12
...
as it produces more false warnings
Include missing header in C++ mode
2022-12-22 20:42:20 +01:00
Patrick Pelissier
e854bc8fc9
Remove warning in C++ mode for using C++ class
2022-05-12 00:00:10 +02:00
Patrick Pelissier
5f73eb7788
Add test for support C++ class in M*LIB
2022-05-06 23:08:27 +02:00
Patrick Pelissier
c6f71fddc7
Add test for stable_sort
2022-04-26 21:35:51 +02:00
Patrick Pelissier
8e0d17e85c
Add test for emplace string_t from const char *
2022-04-21 23:11:24 +02:00
Patrick Pelissier
85f6ff34aa
Add test cases for generated emplace functions
2022-04-20 22:43:12 +02:00
Patrick Pelissier
e1abf0528c
Rename M_DEFAULT_OPLIST in M_BASIC_OPLIST (cleaner name)
2022-04-08 22:54:29 +02:00
Patrick Pelissier
19b01b404d
Migrate to 2022
2022-03-12 20:25:45 +01:00
Patrick Pelissier
51d4e930f5
Rename the suffix _get_at to the _safe_get suffix
...
(Better & clearer naming of the function)
2021-10-30 00:04:07 +02:00
Patrick Pelissier
f172bbaad2
Rename ARRAY _clean in _reset to avoid confusing _clean & _clear functions. See #97
2021-10-28 17:32:02 +02:00
Patrick Pelissier
22e8133f95
Test for corrected issue of IT_INSERT (Wrong behavior if IT==END)
2021-09-29 23:30:20 +02:00
Patrick Pelissier
39eeb3aec7
Fix buffer overflow in ARRAY _pop_at function (reported by tyrone718)
2021-09-18 09:52:33 +02:00
Patrick Pelissier
f8b4f44105
Add ARRAY_INIT_VALUE
2021-08-15 21:44:36 +02:00
Patrick Pelissier
25fe26deaa
Happy new year
2021-01-13 20:18:01 +01:00
Patrick Pelissier
e04b120d41
Add new macros _DEF_AS so that
...
user can define its own name for the generated types.
2020-10-03 14:07:14 +02:00
Patrick Pelissier
779c15ec08
Update tests as per new semantics
2020-07-19 01:11:15 +02:00
Patrick Pelissier
01d390c3e9
Test array without INIT_SET & SET
2020-06-25 22:49:36 +02:00
Patrick Pelissier
70de571dc8
Fix warnings in test suite.
2020-06-22 00:14:55 +02:00
Patrick Pelissier
d27c448a94
Fix some warnings with MSVS
...
for the test suite.
2020-06-21 23:52:12 +02:00
Patrick Pelissier
4ab3a3605b
Fix -Wsign-conversion warnings in tests.
2020-06-13 19:43:52 +02:00
Patrick Pelissier
8c44362f74
More test case.
2020-06-13 18:41:06 +02:00
Patrick Pelissier
4f7b0b9455
Happy new year 2020
2020-01-04 15:41:06 +01:00
Patrick Pelissier
8b3a4a802c
Happy new year!
2019-01-02 18:12:07 +01:00
Patrick Pelissier
2416c2e466
Fix bug of overflow of 'alloc-num' if alloc < num (case where the service is called with a big number to insert
2018-12-05 17:52:02 +01:00
Patrick Pelissier
6672becdd5
Add _erase for array
2018-10-27 23:30:21 +02:00
Patrick Pelissier
2174c28aa2
Make INIT operator optionnal for ARRAY & LIST.
2018-09-08 08:21:13 +02:00
Patrick Pelissier
d1f2b62f66
Replace _set_at2 by _get_at for array.
...
(Break API)
2018-07-01 22:35:05 +02:00
Patrick Pelissier
d0fe7f3e25
Add method _push_move & _pop_move.
...
Add assertion on _pop_back to check that the container is not empty.
2018-05-19 11:21:57 +02:00
Patrick Pelissier
e9f603fa30
Rename internal calls to my_mpz* to testobj*
2018-05-08 10:40:29 +02:00
Patrick Pelissier
1a064e033b
Rename mympz.h --> test-obj.h
...
as it is used only for testing purpose.
2018-05-08 10:29:51 +02:00
Patrick Pelissier
73f8baf464
Add method _parse_str for array.
2018-05-03 17:29:10 +02:00
Patrick Pelissier
12b15e0037
Add function array_splice just like function list_splice
...
as it can be done faster at low level.
2018-04-15 11:41:32 +02:00
Patrick Pelissier
20d549b5e1
Rename MYMPZ_OPLIST into MY_MPZ_OPLIST
2018-04-14 08:11:14 +02:00
Patrick Pelissier
bc83fe43e5
Remove dependency on GMP, so that it is easier to run the bench suite.
2018-03-29 20:01:45 +02:00
Patrick Pelissier
ff3964e2eb
Factorization of the mympz type
2018-02-21 22:06:45 +01:00
Patrick Pelissier
2e96a00fde
Improve coverage.
2018-02-05 21:25:11 +01:00
Patrick Pelissier
210e05f7fc
Update copyright to 2018
2018-01-29 20:28:30 +01:00
Patrick Pelissier
a07d71274a
Fix issue with massive parallele check
2017-10-25 21:46:54 +02:00
Patrick Pelissier
c0a86e9470
Improve test suite.
2017-08-14 19:51:52 +02:00
Patrick Pelissier
34943e5b2a
Remove array_ prefix from ARRAY_DEF
...
See commit on shared pointers.
2017-07-27 22:16:15 +02:00
Patrick Pelissier
ae2ac8be2a
Add new test
2017-07-11 09:32:37 +02:00
Patrick Pelissier
672c2d509d
Update the way of working of the coverage so that it produces
...
more useful information about the line coveraged, and avoid
expanding low level macros.
2017-07-10 17:35:16 +02:00
Patrick Pelissier
64f3fc380e
Update _insert prototype of array to match list _insert.
2017-07-07 22:53:42 +02:00