Patrick Pelissier
e95d13adb1
Add support for multiple M_LET on the same line
...
without warning about shadow variables.
2018-08-04 08:34:35 +02:00
Patrick Pelissier
92d7009804
Fis issue if given type is a T * = TYPE:
...
token pasting created const T *, which is not the same as
const TYPE = T * const
2018-08-03 20:35:37 +02:00
Patrick Pelissier
354327e40b
Fix issue for string_strim if string was empty and not allocated.
2018-08-03 20:23:24 +02:00
Patrick Pelissier
34d56c54c8
Test strim with an empty string.
...
(Shall do nothing).
2018-08-03 20:22:32 +02:00
Patrick Pelissier
143a5fdf4f
Fix issue if given type is a T * = TYPE:
...
token pasting created const T *, which is not the same as
const TYPE = T * const
2018-08-03 20:20:57 +02:00
Patrick Pelissier
030510613c
Add more assertions.
2018-08-03 19:57:38 +02:00
Patrick Pelissier
984b8e7da0
Fix const cast issue for 'void *' pointer.
2018-08-03 18:55:01 +02:00
Patrick Pelissier
aba1ac1646
Fix issue in 64 bits with overwriting enabled for buffer.
2018-08-02 23:31:48 +02:00
Patrick Pelissier
6b93d7644a
Proper constant definition for unicode error.
2018-08-02 23:31:17 +02:00
Patrick Pelissier
68c737dcef
Clean up interface if (internal) genint:
...
it returns at most an 2048, so an unsigned int is more enought
(and internally it was already used!).
So transform the interface to take as input unsigned int.
Fix maximum size supported by the genint package.
Add proper constant used for error, and use it in the code.
2018-08-02 23:19:05 +02:00
Patrick Pelissier
b8f8ffe0a2
Perform same optimization than previous commit for
...
M_GLOBAL_OPLIST_OR_DEF
2018-08-02 22:48:28 +02:00
Patrick Pelissier
02e8681f76
M_GLOBAL_OPLIST:
...
More robust implementation that delays the evaluation of the concatenation
2018-08-02 20:02:15 +02:00
Patrick Pelissier
603fb9db62
Replace some size displayed with '%lu' as unsigned long
...
with proper '%zu' as size_t.
2018-08-02 19:34:10 +02:00
Patrick Pelissier
b01459d1ef
Add out_str for CSTR_OPLIST
2018-08-01 23:36:04 +02:00
Patrick Pelissier
667f1f5951
Update documentation.
2018-08-01 23:28:01 +02:00
Patrick Pelissier
660c5a2db4
Add M_GET_STRING to transform a standard numerical C type into a string_t
...
(with a method compatible with the operator GET_STR).
2018-08-01 23:26:58 +02:00
Patrick Pelissier
8a4d013354
Fix issues (normal contract where used for I/O whereas they could be used
...
with OA Dict)
2018-08-01 22:55:54 +02:00
Patrick Pelissier
faedca81d1
Add M_CORE_VERSION_* macros.
2018-08-01 22:28:50 +02:00
Patrick Pelissier
166d408f5e
Add support for out_str for the default C types if C11 is enabled.
2018-08-01 20:12:24 +02:00
Patrick Pelissier
017f25d9d5
M_PRINT_ARG & M_FPRINT_ARG don't put a final semicolon at the end
...
of their expansion anymore (cleaner and no longer needed with the
new available tools).
2018-08-01 19:59:57 +02:00
Patrick Pelissier
6a70eba83f
Document some missing methods for priority queues.
2018-08-01 19:35:54 +02:00
Patrick Pelissier
ef13ab6938
Add rapidstring
2018-08-01 00:31:58 +02:00
Patrick Pelissier
75cb61fd36
Fix issue of deque's _init_move.
2018-07-31 23:11:43 +02:00
Patrick Pelissier
9c31f8aa92
Complete test to show failure of _init_move for deque.
2018-07-31 23:11:26 +02:00
Patrick Pelissier
27a08da430
Add node contract check.
2018-07-31 08:19:45 +02:00
Patrick Pelissier
fdada9661f
Update comment.
2018-07-30 22:45:24 +02:00
Patrick Pelissier
f1a52439bb
Add more tests.
2018-07-30 22:42:33 +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
b6a3387f8a
User are able to customize the number of elements of a mempool globaly.
2018-07-30 22:02:46 +02:00
Patrick Pelissier
04dd708941
Delayed the inclusion of the common headers, so that the backend may properly
...
set up additional parameters for the headers.
2018-07-29 19:40:37 +02:00
Patrick Pelissier
39ffe1c95a
Fix issue for 32 bits build due to previous modification of limb size to 64 bits.
2018-07-29 19:40:08 +02:00
Patrick Pelissier
7b5ae3c15b
Update API so that the worker_t parameter is given on creating the sync bloc.
...
(API breakage), more RAII like.
2018-07-28 19:09:07 +02:00
Patrick Pelissier
7678625071
Review:
...
* add comments
* change error code from assertion to proper memory failure
* add new assertions
2018-07-28 13:48:30 +02:00
Patrick Pelissier
dbe8817d95
Add bitset_clz
2018-07-27 06:19:54 +02:00
Patrick Pelissier
09e117cd57
Update comments.
...
Update _new_node: it shall never return NULL.
2018-07-24 00:34:35 +02:00
Patrick Pelissier
4b8779d8d3
Update formula for increasing the size.
2018-07-24 00:24:50 +02:00
Patrick Pelissier
79158dabbc
Rename _map into _for_each.
2018-07-22 21:32:46 +02:00
Patrick Pelissier
f962bc8da5
Avoid overflow in case of huge computations.
...
Add more comments.
2018-07-22 21:32:19 +02:00
Patrick Pelissier
28e8dde06d
Make target uninstall PHONY
2018-07-21 12:12:50 +02:00
Patrick Pelissier
6c3d41a124
Add target uninstall
2018-07-21 12:12:19 +02:00
Patrick Pelissier
9c2967f8df
Cleanup install target with proper use of COMMAND VARIABLES.
2018-07-19 22:55:56 +02:00
Patrick Pelissier
99311364e7
Regenerate the dependency graph.
2018-07-18 22:35:25 +02:00
Patrick Pelissier
16e86b8291
Don't regenerate depend.png everytime but only if the headers have been updated.
...
Optimize the generation of the PNG.
2018-07-18 22:34:52 +02:00
Patrick Pelissier
5741af8fd3
Add 'dist' target in the Makefile.
2018-07-18 22:31:53 +02:00
Patrick Pelissier
6bdd47a557
Don't remove depend with a make clean
...
otherwise you'll get a regeneration of the dependency file for each clean command
which is useless.
make distclean shall be used to remove the dependency file.
2018-07-18 22:28:19 +02:00
Patrick Pelissier
750ba93c14
Add note.
2018-07-18 21:43:27 +02:00
Patrick Pelissier
18be930507
Fix bug in case of error returned by vsnprintf:
...
the buffer may have been corrupted in case of error.
Clean it before returning.
2018-07-18 21:41:52 +02:00
Patrick Pelissier
be26176828
Add one more test case.
2018-07-18 21:41:14 +02:00
Patrick Pelissier
540e01f1fe
Fix prototype of the callback to InitOnceExecuteOnce: Missing CALLBACK.
...
(Some version of the compilers for windows produced warnings)
2018-07-18 21:21:35 +02:00
Patrick Pelissier
7cfb6b16e4
Update cross compilation information.
2018-07-18 01:01:13 +02:00
Patrick Pelissier
d5a8b9648f
Simplify
2018-07-18 01:01:04 +02:00
Patrick Pelissier
1657d7af7d
Support of LOG_COMPILER for cross-compilation test.
2018-07-18 00:28:35 +02:00
Patrick Pelissier
318f1a2818
Update/Add comments.
2018-07-17 23:03:45 +02:00
Patrick Pelissier
8b0b115709
Update comment.
2018-07-17 23:03:33 +02:00
Patrick Pelissier
7d2494b7f9
Fix bug of SPMC / MPMC snapshots: not all items in buffers
...
were properly cleared.
2018-07-17 21:10:14 +02:00
Patrick Pelissier
3b642ffeb3
Update after internal review.
2018-07-17 21:00:55 +02:00
Patrick Pelissier
815bf5f0e0
Include proper header and do not depend on other headers to include it.
2018-07-16 21:45:28 +02:00
Patrick Pelissier
4af48724ce
Update after internal review.
2018-07-16 21:43:17 +02:00
Patrick Pelissier
001272820c
Update example to latests API.
2018-07-15 23:11:00 +02:00
Patrick Pelissier
4aca0664ef
Add methods _find_again, _find_again_if, _mismatch_again and _mismatch_again_if
2018-07-15 23:06:22 +02:00
Patrick Pelissier
6721a86768
Add method _mismatch and _mismatch_if
2018-07-15 22:34:29 +02:00
Patrick Pelissier
5025b3690d
Add test.
2018-07-15 22:26:59 +02:00
Patrick Pelissier
42b37a718f
Add test.
2018-07-15 22:26:21 +02:00
Patrick Pelissier
fcdfd836ec
Add method _count_if
2018-07-15 11:05:58 +02:00
Patrick Pelissier
b2f005239b
API breakage:
...
rename _constains into _contain_p
to be more uniform with other predicate functions,
and to use infinitive form for the method.
2018-07-15 10:54:38 +02:00
Patrick Pelissier
bc3fa890bd
Add method _find_if.
2018-07-15 10:48:22 +02:00
Patrick Pelissier
95dbbf6e75
Simplification of the example.
2018-07-15 02:53:35 +02:00
Patrick Pelissier
22f2ae7341
Add methods _all_of_p, _any_of_p and _none_of_p.
2018-07-14 18:21:46 +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
cef8a13cc2
Add a new test.
2018-07-14 14:18:25 +02:00
Patrick Pelissier
54271231a0
Update doc.
2018-07-14 14:13:18 +02:00
Patrick Pelissier
d1bb651596
Update doc.
2018-07-14 14:03:17 +02:00
Patrick Pelissier
10b7f65437
Update DEV.
2018-07-13 10:54:41 +02:00
Patrick Pelissier
3a70324d43
Fix spelling.
2018-07-13 10:42:26 +02:00
Patrick Pelissier
21b72cd174
Update
2018-07-13 10:40:45 +02:00
Patrick Pelissier
ce8656f1b2
Update
2018-07-13 10:40:40 +02:00
Patrick Pelissier
9277dc967b
Update
2018-07-11 00:04:45 +02:00
Patrick Pelissier
67b1e65d97
Update comment
2018-07-08 00:33:18 +02:00
Patrick Pelissier
79fe9da2da
Update
2018-07-05 12:21:02 +02:00
Patrick Pelissier
3164e2698d
Improve comments.
2018-07-05 12:12:16 +02:00
Patrick Pelissier
ffae33e6f7
Update
2018-07-05 12:12:09 +02:00
Patrick Pelissier
8dafe3b7a6
Add macro M_GET_AT.
2018-07-04 17:39:03 +02:00
Patrick Pelissier
e23616169b
Improve comments.
2018-07-04 17:38:48 +02:00
Patrick Pelissier
9d7fc942f7
Rename DICT_SET_DEF2 into DICT_SET_DEF
2018-07-03 15:50:14 +02:00
Patrick Pelissier
982d8cf19d
DICT_*_DEF* doesn't require anymore oplists for defining the function:
...
it can get them from global oplists or default oplits.
2018-07-03 15:44:40 +02:00
Patrick Pelissier
aae460623d
Replace _set_at by _push
2018-07-03 15:07:36 +02:00
Patrick Pelissier
df14e5bcb6
Update
2018-07-03 10:42:51 +02:00
Patrick Pelissier
15d5a83c16
Update doc
2018-07-03 10:42:11 +02:00
Patrick Pelissier
4b0f7543ee
Rename _set_at to _push method for SET dictionnary.
...
Add proper _splice method for SET dictionnary.
2018-07-03 10:40:26 +02:00
Patrick Pelissier
362c64aa9c
Fix URL to show preview.
2018-07-03 10:11:40 +02:00
Patrick Pelissier
56c497cf2c
Add ref card.
2018-07-03 10:08:16 +02:00
Patrick Pelissier
e0dc2da80a
Add synthesis of the API.
2018-07-03 09:35:35 +02:00
Patrick Pelissier
41362f12ea
Add comment about _hash for dict.
2018-07-01 22:54:19 +02:00
Patrick Pelissier
3765c0b0fb
Add _equal_p method for OA dictionary.
2018-07-01 22:44:56 +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
26b8c1d0a2
Add method _move & _init_move.
2018-07-01 17:16:36 +02:00
Patrick Pelissier
aa195f9f6f
Add methods _cget.
2018-07-01 17:16:25 +02:00
Patrick Pelissier
cd1d59264e
Fix build issue with C++
2018-06-29 22:50:41 +02:00
Patrick Pelissier
923e009fd3
Fix issue for new method _get_at for OA dict.
2018-06-29 22:32:10 +02:00