Patrick Pelissier
35718ae551
Rename type as internal types
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
5f9feb833c
Replace TAB by SPACE
2020-07-25 19:17:25 +02:00
Patrick Pelissier
56d2a74818
Fix some warnings
2020-07-09 23:38:34 +02:00
Patrick Pelissier
8a36b5ff15
Workaround to avoid CLANG unused function warnings
2020-07-09 22:14:00 +02:00
Patrick Pelissier
f2a06ede62
Add mechanism to disable temporary compiler warnings in a sequence of code.
2020-07-01 11:47:55 +02:00
Patrick Pelissier
dfbf34daf6
Remove a warning with some compiler by encoding 0 as UINT_MAX+1
2020-06-26 23:48:59 +02:00
Patrick Pelissier
9784a16d47
Get ride of modular arithmetic
2020-06-26 00:25:15 +02:00
Patrick Pelissier
68788a6fb8
Add M_ENUM_OPLIST
2020-06-24 21:13:13 +02:00
Patrick Pelissier
cc6da8941c
* Fix wanings for reduce precision on integers.
...
* Add wrapper for strncat
2020-06-22 00:14:37 +02:00
Patrick Pelissier
4f4605befb
Use of Annex K for MSVS to reduce warnings.
2020-06-21 23:36:34 +02:00
Patrick Pelissier
3f84f54d65
Add casts to avoid some compiler warnings
...
if the compiler is not able to detect the cast if safe.
2020-06-21 23:03:40 +02:00
Patrick Pelissier
dd5c9ac8ad
Fix corner case of string_fget_word when it doesn't end with a separator
2020-06-19 21:11:05 +02:00
Patrick Pelissier
ef74f8eb55
Fix other warnings about conversion but in C++
2020-06-14 01:10:37 +02:00
Patrick Pelissier
b0d2557ea1
string_fgets:
...
Fix buffer overflow for very big string
2020-06-14 00:17:09 +02:00
Patrick Pelissier
17950c5fe5
Fix corner cases for string_reserve
2020-06-13 18:57:53 +02:00
Patrick Pelissier
9a41faf40a
Fix -Wsign-conversion warning for strings.
2020-06-13 18:41:23 +02:00
Patrick Pelissier
cb4b43e2e8
* Add length param for seralization write_string
...
to increase a little bit the performance for big strings.
* Change the format of storing strings for serial-bin.
2020-06-13 17:26:07 +02:00
Patrick Pelissier
89b6e1aac0
Adding serialization for bounded string
2020-06-13 11:30:52 +02:00
Patrick Pelissier
3f2904ab0d
* Add comment
2020-05-21 12:32:20 +02:00
Patrick Pelissier
933b495ed1
* Optimization for M_LET for a string_t in case of constant non formatted string
...
* Support for string_t in M_LET for string_t in C11 mode.
* Adding associate test
2020-05-21 12:19:17 +02:00
Patrick Pelissier
8be06cadb3
Add comments on description.
2020-05-20 23:21:27 +02:00
Patrick Pelissier
f4c24f07af
Update comment description of macros and functions
2020-05-20 22:36:36 +02:00
Patrick Pelissier
f1f41ef320
* Add missing iterator functions * Export iterators in oplist so that it is usable in algorithm
2020-03-25 11:43:55 +01:00
Patrick Pelissier
4f7b0b9455
Happy new year 2020
2020-01-04 15:41:06 +01:00
Patrick Pelissier
90f248fbe8
Rename interface field of serial object into m_interface (WINDOWS compatibility as it defines a macro called interface)
2019-12-06 21:13:37 +01:00
Tobias Boege
3ea063d1e0
Fix string_clear_get_str when stack allocated
...
If a string_t is stack-allocated, string_clear_get_str would still try
to copy it from the NULL heap pointer, resulting in a failed assertion.
Copy from the stack instead. Also add a test for this.
2019-09-26 05:39:49 +02:00
Patrick Pelissier
1882148a7c
Add more assertions
2019-06-08 10:45:24 +02:00
Patrick Pelissier
50cc8689bb
Add serial methods for string_t
2019-05-18 11:17:13 +02:00
Patrick Pelissier
481009d18b
Add function _end_with for strings.
2019-05-07 16:12:43 +02:00
Patrick Pelissier
f2eb5014ac
Fix regression on 32 bits for strings.
2019-04-21 23:50:42 +02:00
Patrick Pelissier
46d41a8882
Fix bad merge
2019-04-20 12:33:09 +02:00
Patrick Pelissier
c18cd81dde
Add more assumes needed for static analysis.
2019-04-20 12:33:08 +02:00
Patrick Pelissier
eaf5a26157
Minor speed up
2019-04-20 12:33:08 +02:00
Patrick Pelissier
547c67b676
Modify string_t so that it can still be trivially movable once again.
2019-04-20 12:33:08 +02:00
Patrick Pelissier
a54041c340
Minor fix
2019-04-20 12:33:08 +02:00
Patrick Pelissier
352e0972cd
Comment code
2019-04-20 12:33:08 +02:00
Patrick Pelissier
91ebd7cc9f
Cleanup code
2019-04-20 12:33:08 +02:00
Patrick Pelissier
d8854c276b
Cleanup code
2019-04-20 12:33:08 +02:00
Patrick Pelissier
cc61840ae8
Refactor code
2019-04-20 12:33:08 +02:00
Patrick Pelissier
67a7a4762a
Refactor code
2019-04-20 12:33:08 +02:00
Patrick Pelissier
c28597014f
Add more hypothesis
2019-04-20 12:33:08 +02:00
Patrick Pelissier
d00f29bf26
Fix bug
2019-04-20 12:33:08 +02:00
Patrick Pelissier
1432fbabca
Update buffer to have proper alignement so that we can perform hash computation properly.
2019-04-20 12:33:08 +02:00
Patrick Pelissier
f3b6ee0190
Continue porting to new format.
2019-04-20 12:33:08 +02:00
Patrick Pelissier
229d21ef72
Add assume
2019-04-20 12:33:08 +02:00
Patrick Pelissier
00f1b1fc4f
Update comment
2019-04-20 12:33:08 +02:00
Patrick Pelissier
277d8b37af
Continue porting to new format.
2019-04-20 12:33:08 +02:00
Patrick Pelissier
7b83761ef4
Update
2019-04-20 12:33:08 +02:00
Patrick Pelissier
a96e9c7e11
Update string contract
2019-04-20 12:33:08 +02:00