Commit Graph
41 Commits
Author SHA1 Message Date
Patrick Pelissier 75cb61fd36 Fix issue of deque's _init_move. 2018-07-31 23:11:43 +02:00
Patrick Pelissier fdada9661f Update comment. 2018-07-30 22:45:24 +02:00
Patrick Pelissier d13849c173 Update formatting. 2018-07-30 22:42:09 +02:00
Patrick Pelissier d8a0e73899 Update comment. 2018-07-30 22:24:03 +02:00
Patrick Pelissier 96202aa78f Do not use reserved identifiers of the C standard (See 7.1.3 Reserved identifiers) 2018-07-14 14:35:14 +02:00
Patrick Pelissier 0fda117ffe Add push/pop_front/back_move methods. 2018-06-27 20:10:42 +02:00
Patrick Pelissier 0221e555fe Fix bug in deque: _clean doesn't call CLEAR on all created objects. 2018-05-22 05:46:37 +02:00
Patrick Pelissier dc1445e0d6 Remove TODO comment. 2018-05-10 23:12:38 +02:00
Patrick Pelissier 7d08a7ba1a Fix issue in _parse_str 2018-05-09 21:48:32 +02:00
Patrick Pelissier 7b0f71cc99 Add method _parse_str for deque
(missing tests for in, out, get_str & parse_str).
2018-05-03 17:34:17 +02:00
Patrick Pelissier d269c23948 Remove warning with C++.
It'll will increase the size of the type a little bit.
TODO: Check compatibility between code using C def and code using C++ def
2018-03-16 23:00:46 +01:00
Patrick Pelissier 2ed95bfe16 Fix generic issue for deque
(was totaly broken before).
2018-02-21 22:05:51 +01:00
Patrick Pelissier 39fca33958 Reuse memory node in case of pop from the opposite side
if there is at least one free node in the opposite side.
This reduce the memory consumption ***a lot*** for FIFO queues
usage.
2018-02-21 21:50:40 +01:00
Patrick Pelissier eb4cbe863e Add some TODO 2018-02-20 23:10:47 +01:00
Patrick Pelissier 210e05f7fc Update copyright to 2018 2018-01-29 20:28:30 +01:00
Patrick Pelissier 2089af8fd3 Fix broken code due to previous commits. 2018-01-24 22:26:46 +01:00
Patrick Pelissier c0ccaf574d Add assertion missing raised by scan-build. 2017-09-26 22:41:48 +02:00
Patrick Pelissier 0b44a55b6a Replace method EXPECTED_SIZE by INC_ALLOC so that all the way of increasing
the size in case of reallocation can be configured and not only the minimum
size.
2017-09-16 18:46:22 +02:00
Patrick Pelissier 95f467f4be Fix potential bug in case of ill-formed serialized container. 2017-09-16 13:30:09 +02:00
Patrick Pelissier 2e564088b0 Simplify the inclusion of headers. 2017-09-16 10:14:45 +02:00
Patrick Pelissier 1930bdeac1 _DEF macros checks if a global oplist is register if there is no one
given in the macro call. If it founds one, it will be it instead
of M_DEFAULT_OPLIST.
2017-09-16 08:31:22 +02:00
Patrick Pelissier d08e2bba95 Add I/O for deque 2017-09-06 21:05:57 +02:00
Patrick Pelissier ca08c62244 Fix bug. 2017-08-20 21:41:19 +02:00
Patrick Pelissier 07ddf39707 Fix bug. 2017-08-19 20:16:14 +02:00
Patrick Pelissier 65a6889552 Fix bug. 2017-08-19 18:40:47 +02:00
Patrick Pelissier 752d5215b3 Fix bug. 2017-08-19 18:01:40 +02:00
Patrick Pelissier 42964a8ba2 Fix potential overflow on the computed size. 2017-08-19 16:41:55 +02:00
Patrick Pelissier 56bb67fbb1 Add oplist 2017-08-17 22:05:39 +02:00
Patrick Pelissier 7e819989c1 Add _hash, _equal_p & _swap_at 2017-08-17 21:37:34 +02:00
Patrick Pelissier 72f083c346 Add _get, _cget & _set 2017-08-17 21:11:35 +02:00
Patrick Pelissier de4de4565c Add _push_back_new _push_front_new
Add _set
2017-08-17 21:01:43 +02:00
Patrick Pelissier c926456bcd Add _push_back_raw & _push_front_raw 2017-08-17 20:58:02 +02:00
Patrick Pelissier abd91945bc Add multiple functions. 2017-08-14 17:06:25 +02:00
Patrick Pelissier b701fe8228 Fix bug 2017-08-12 18:40:00 +02:00
Patrick Pelissier a4b1a82ae0 Add new functions to deque 2017-08-12 18:20:37 +02:00
Patrick Pelissier 0c5dd89778 Add iterators for deque 2017-08-10 22:23:19 +02:00
Patrick Pelissier b9015c85db Update comments. Make cast compatible with C++. 2017-08-08 22:57:33 +02:00
Patrick Pelissier ccf9bd3ebb Add more assertions 2017-08-06 11:50:11 +02:00
Patrick Pelissier 17a901faa2 Minor fixes 2017-08-06 11:48:15 +02:00
Patrick Pelissier 1415589c6d Fix issue with deque 2017-08-05 18:21:41 +02:00
Patrick Pelissier ec4aa2a93a Add first version of m-deque 2017-08-05 18:05:44 +02:00