Patrick Pelissier
a29682ca29
Create M_ASSERT macro to encapsulate assert within M*LIB
...
The goal is to enable the user to override this macro if needed so that it can enable or disable the M*LIB witout impacting its own assertions.
2020-10-29 22:46:17 +01:00
Patrick Pelissier
f5afd6e275
Update comments.
2020-10-25 21:16:43 +01:00
Patrick Pelissier
7b5fd14bcf
Update comment.
2020-10-24 23:29:02 +02:00
Patrick Pelissier
22ce001f03
Remove incorrect use of M_ASSUME by assert
2020-10-24 23:14:14 +02:00
Patrick Pelissier
6f761091cc
Update comment.
2020-10-24 23:07:29 +02:00
Patrick Pelissier
bb9e0e4f6e
Adding test for M_LET for bounded string
2020-10-24 14:03:31 +02:00
Patrick Pelissier
5e658a81fe
Adding INIT_WITH support for bounded string within M_LET
2020-10-24 14:03:27 +02:00
Patrick Pelissier
ddc722bf78
Add FIXME
2020-10-23 21:50:57 +02:00
Patrick Pelissier
0818d0ac7c
Fix macro formatting.
2020-10-23 21:46:34 +02:00
Patrick Pelissier
2f315793cd
Use of M_ASSERT_INDEX for deque
2020-10-23 21:45:37 +02:00
Patrick Pelissier
067a034bc9
Use of M_ASSERT_INDEX for list.
2020-10-23 21:39:33 +02:00
Patrick Pelissier
201cc45fd8
Use of M_ASSERT_INDEX for bitset.
2020-10-23 21:37:44 +02:00
Patrick Pelissier
7a270ffacb
Update documentation
2020-10-23 21:32:06 +02:00
Patrick Pelissier
27bb62533a
Use of M_ASSERT_INDEX
...
to validate user input.
2020-10-21 23:57:52 +02:00
Patrick Pelissier
032388b790
Update message
2020-10-21 23:57:24 +02:00
Patrick Pelissier
f1e2f81e79
Improve formating of macros:
...
if the line is too long
and can be reduced,
reduce it.
2020-10-21 23:56:55 +02:00
Patrick Pelissier
54d4b80368
Reformat macro to 80 characters
2020-10-21 23:23:40 +02:00
Patrick Pelissier
8a0a556604
Add utility to reformat automatically
...
macro to 80 characters.
2020-10-21 23:23:16 +02:00
Patrick Pelissier
895f362628
Fix a majorant stack usage of B+TREE
2020-10-17 22:46:43 +02:00
Patrick Pelissier
d24b52586d
Put a type within internal namespaces.
2020-10-17 22:25:22 +02:00
Patrick Pelissier
d76585cb0e
Update test as per latest changes.
2020-10-17 22:25:05 +02:00
Patrick Pelissier
fb44be6efe
Remove argument itret_t from *SET_DEF_AS
...
as it is useless
(Return type IS the key type for a set).
2020-10-17 22:24:53 +02:00
Patrick Pelissier
0b6a5aaa97
Port to last API version of CMC
2020-10-17 20:14:06 +02:00
Patrick Pelissier
c00fdc65a2
Change installation directory
...
so that all M*LIB headers are in one directory.
2020-10-17 13:22:17 +02:00
Patrick Pelissier
ab7490eb8a
Fix list of distributed files.
2020-10-17 13:17:47 +02:00
Patrick Pelissier
1a46c0cd3f
Clarify should usage in the documentation.
2020-10-17 13:07:41 +02:00
Patrick Pelissier
22f595c015
Update comment
2020-10-17 12:39:09 +02:00
Patrick Pelissier
68c76ad146
Update example with latest changes.
2020-10-16 21:59:53 +02:00
Patrick Pelissier
0b18792b96
Document _DEF_AS macros
...
Fix #60
2020-10-16 21:56:42 +02:00
Patrick Pelissier
464e8e5f8f
Clean usage of 'shall' within the documentation.
2020-10-16 21:33:01 +02:00
Patrick Pelissier
45410f3f0c
Update README.
2020-10-16 21:04:07 +02:00
Patrick Pelissier
556e706343
Update doc as per last rename
2020-10-16 21:01:41 +02:00
Patrick Pelissier
1e534bd307
Rename derefence type of an iterator of a dict or a B+Treee into _ittref_t.
2020-10-16 21:01:29 +02:00
Patrick Pelissier
7a517ee3ae
Upate comments.
2020-10-16 20:53:34 +02:00
Patrick Pelissier
9bb1957afa
Rename internal types.
2020-10-16 20:51:24 +02:00
Patrick Pelissier
86f942ee5f
Fix forgotten external type in internal function.
2020-10-15 22:15:01 +02:00
Patrick Pelissier
a23df528e4
Add DICT_*_AS macros.
2020-10-15 22:05:18 +02:00
Patrick Pelissier
0e9af6dfac
Prepare user name integration for OA dictionnaries.
2020-10-15 21:53:11 +02:00
Patrick Pelissier
99a8db1111
Prepare integration for custom names for dict.
2020-10-15 21:41:53 +02:00
Patrick Pelissier
24cdf1ca5c
Use of internal types within the code
...
instead of external ones.
2020-10-03 16:07:32 +02:00
Patrick Pelissier
f1b794b239
Use of external documented type
...
instead of internal type.
2020-10-03 16:07:14 +02:00
Patrick Pelissier
b4fdcbc547
Factorization of the it_deref name for overloading
2020-10-03 15:48:44 +02:00
Patrick Pelissier
ce9986f6d8
Factorization of common pattern for bucket dictionnaries.
2020-10-03 14:47:47 +02:00
Patrick Pelissier
ad4dcae1db
Add macro VARIANT_DEF2_AS
2020-10-03 14:07:14 +02:00
Patrick Pelissier
b3fa63c971
Factorization of name usage
2020-10-03 14:07:14 +02:00
Patrick Pelissier
364101592b
Remove unused file
2020-10-03 14:07:14 +02:00
Patrick Pelissier
5b89196cd7
Add macro TUPLE_DEF2_AS
2020-10-03 14:07:14 +02:00
Patrick Pelissier
feb8b30048
Factorization of M_C(name, _t)
2020-10-03 14:07:14 +02:00
Patrick Pelissier
8340cf70fb
Add macros
...
FUNC_OBJ_ITF_DEF_AS
FUNC_OBJ_INS_DEF_AS
2020-10-03 14:07:14 +02:00
Patrick Pelissier
affb3778a0
Rename internal types to _ct
2020-10-03 14:07:14 +02:00
Patrick Pelissier
c039f07f2d
Add macros
...
BPTREE_DEF2_AS
BPTREE_DEF_AS
BPTREE_MULTI_DEF2_AS
BPTREE_MULTI_DEF_AS
2020-10-03 14:07:14 +02:00
Patrick Pelissier
c180981768
Add macros
...
CONCURRENT_DEF_AS
CONCURRENT_RP_DEF_AS
2020-10-03 14:07:14 +02:00
Patrick Pelissier
2cfac5c332
Fix build issue in C11 for new macros.
2020-10-03 14:07:14 +02:00
Patrick Pelissier
8ba489eef3
Add macros
...
SNAPSHOT_SPSC_DEF_AS
SNAPSHOT_SPMC_DEF_AS
SNAPSHOT_MPMC_DEF_AS
2020-10-03 14:07:14 +02:00
Patrick Pelissier
a4cb6e3681
Add macros SHARED_PTR_DEF_AS, SHARED_PTR_RELAXED_DEF_AS, SHARED_RESOURCE_DEF_AS
2020-10-03 14:07:14 +02:00
Patrick Pelissier
379e0be211
Use of new macro to define internal types not exported.
2020-10-03 14:07:14 +02:00
Patrick Pelissier
acb886c391
Add macro RBTREE_DEF_AS
2020-10-03 14:07:14 +02:00
Patrick Pelissier
7f26ef0f1c
Add new macros to define container
...
with the full given name.
2020-10-03 14:07:14 +02:00
Patrick Pelissier
1d8e541205
Add macros BUFFER_DEF_AS, QUEUE_MPMC_DEF_AS, QUEUE_SPSC_DEF_AS
2020-10-03 14:07:14 +02:00
Patrick Pelissier
a4fa70a478
Add macro DEQUE_DEF_AS
2020-10-03 14:07:14 +02:00
Patrick Pelissier
3d3a473716
Add macro ILIST_DEF_AS
2020-10-03 14:07:14 +02: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
63eee6bba3
Update comments
2020-10-03 14:07:14 +02:00
Patrick Pelissier
b396b42808
Update comments
2020-10-03 14:07:14 +02:00
Patrick Pelissier
eb8b106f48
Update comments.
2020-10-03 14:07:14 +02:00
Patrick Pelissier
5d144991cb
Reformat & add more assertions.
2020-10-03 14:07:14 +02:00
Patrick Pelissier
35718ae551
Rename type as internal types
2020-10-03 14:07:14 +02:00
Patrick Pelissier
1dd9aff402
Factorize the name of the object at top level.
2020-10-03 14:07:14 +02:00
Patrick Pelissier
6d47074457
Rename internal types of m-core
2020-10-03 14:07:14 +02:00
Patrick Pelissier
1943650ca3
Factorization of the name of the object
...
at the top level to be able to create
new high level macros that enables
to select the full name of the type.
2020-10-03 14:07:14 +02:00
Patrick Pelissier
5722f19939
Update comments
2020-10-03 14:07:14 +02:00
Patrick Pelissier
7cf14b5d8a
Update formatting
2020-10-03 14:07:14 +02:00
Patrick Pelissier
b3a1a75f6f
Rename internal types:
...
a suffix ending with _ct means confidential type
ans is reserved for M*LIB internal usage.
OPLIST doesn't use the external types
but rather the internal types.
It enables to be independent of the real names
of the external types.
Such external names are planned to be fully customizable
(i.e. the user may define a name that suits its coding style)
2020-10-03 14:07:14 +02:00
Patrick Pelissier
eb7556f88f
Replace abort by assert for static analyszer
2020-08-22 18:58:48 +02:00
Patrick Pelissier
805c747c60
Add more assertions (help static analyzer)
2020-08-22 18:54:51 +02:00
Patrick Pelissier
5f9feb833c
Replace TAB by SPACE
2020-07-25 19:17:25 +02:00
Patrick Pelissier
efef35c1e1
Reformat
2020-07-25 18:20:17 +02:00
Patrick Pelissier
b1b32f565d
Transform TAB into SPACE.
2020-07-25 18:15:57 +02:00
Patrick Pelissier
f4cd8eaff9
Rename internal macro to TUPLEI_
2020-07-25 18:01:34 +02:00
Patrick Pelissier
2cd5258f89
Add comments
...
Replace TAB by SPACE.
2020-07-25 17:54:01 +02:00
Patrick Pelissier
1b206931df
Transform TAB into SPACE
2020-07-22 20:51:45 +02:00
Patrick Pelissier
f68840ef8c
Update doc
2020-07-19 01:12:12 +02:00
Patrick Pelissier
779c15ec08
Update tests as per new semantics
2020-07-19 01:11:15 +02:00
Patrick Pelissier
29bcc00202
Update format
2020-07-19 01:06:48 +02:00
Patrick Pelissier
1ff0d9fac0
Add test for _sort_intersect
2020-07-19 01:01:53 +02:00
Patrick Pelissier
4488853642
Factorization of _sort_union
2020-07-19 00:59:11 +02:00
Patrick Pelissier
d5dc5d083d
Fix _sort_union bug
2020-07-19 00:55:51 +02:00
Patrick Pelissier
784c42d850
Update _insert functions to update
...
iterators as per new specification.
2020-07-19 00:55:35 +02:00
Patrick Pelissier
8c1eb1fcb5
Add tests for _sort_union
2020-07-19 00:53:58 +02:00
Patrick Pelissier
49180bfbe5
Add documentation on IT_INSERT operator
2020-07-19 00:53:43 +02:00
Patrick Pelissier
a3116dd813
Update comments
2020-07-18 09:54:12 +02:00
Patrick Pelissier
23df465401
Update comments
2020-07-14 14:44:10 +02:00
Patrick Pelissier
966170452f
Improve test representativity by simulating various speeds for readers and writers
2020-07-14 14:43:14 +02:00
Patrick Pelissier
eaf7ae7dee
Fix spelling
2020-07-14 00:47:25 +02:00
Patrick Pelissier
8a6652646a
Fix formatting (Replace TAB with SPACE)
2020-07-14 00:34:59 +02:00
Patrick Pelissier
2063bf879d
Formatting: replace TAB by SPACE.
2020-07-14 00:26:26 +02:00
Patrick Pelissier
2529d4ae49
Update comments & remove warning about _Atomic
2020-07-12 22:52:36 +02:00
Patrick Pelissier
439bc06423
Fix unused value warning
2020-07-12 00:32:09 +02:00
Patrick Pelissier
ab6c90f42f
Fix issue with a warning that it triggers now but now before, whereas the code has not changed. Another random warning
2020-07-11 20:39:27 +02:00
Patrick Pelissier
ac9e9a83b9
Fix issue with warnings on MacOS
2020-07-11 20:38:51 +02:00