Patrick Pelissier
e8ae66371a
Fix issue detected by new test.
2017-07-11 22:39:46 +02:00
Patrick Pelissier
7ffe20bea7
Add test
2017-07-11 22:39:40 +02:00
Patrick Pelissier
2716ad425c
Wrong parameter given for extra dict OA
2017-07-11 22:35:57 +02:00
Patrick Pelissier
8f2f5013aa
Lisibility
2017-07-11 22:35:45 +02:00
Patrick Pelissier
9b13a0e925
Remove TODO
2017-07-11 22:30:28 +02:00
Patrick Pelissier
6b90342297
Fix forgotten assertion.
...
Replace fprintf by fputc (faster)
2017-07-11 14:55:23 +02:00
Patrick Pelissier
273247a4bb
Add ALIGN method
2017-07-11 10:21:59 +02:00
Patrick Pelissier
7441d422e1
Update TODO
2017-07-11 10:02:06 +02:00
Patrick Pelissier
f08685b097
Fix issue with reserve for array.
2017-07-11 09:32:44 +02:00
Patrick Pelissier
ae2ac8be2a
Add new test
2017-07-11 09:32:37 +02:00
Patrick Pelissier
3fe97a02a8
Add new function string_capacity
...
Update string_reserve to free memory if string is null and it has to
reserve 0 or 1 bytes.
2017-07-11 09:28:01 +02:00
Patrick Pelissier
cb99eb4ce9
Add new test
2017-07-11 09:27:52 +02:00
Patrick Pelissier
e0aa57b845
Replace string_shrink2fit by string_reserve (More generic).
2017-07-11 09:21:03 +02:00
Patrick Pelissier
f9a6a82af3
Update README
2017-07-10 22:25:04 +02:00
Patrick Pelissier
57ac0d8ae4
Add implementation of atomic based on mutex.
2017-07-10 20:50:52 +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
fc323a5feb
Improve coverage.
2017-07-10 17:35:00 +02:00
Patrick Pelissier
25abbbc98a
Improve coverage.
2017-07-10 16:18:14 +02:00
Patrick Pelissier
82bed274ec
Fix issue with sanitizer
2017-07-10 16:03:47 +02:00
Patrick Pelissier
70980046ed
Add more tests.
2017-07-10 14:07:23 +02:00
Patrick Pelissier
08112a3a6d
Fix issue detected by scan-build
2017-07-10 13:47:34 +02:00
Patrick Pelissier
c19c88deb8
Add test for string_get_word
2017-07-10 12:59:23 +02:00
Patrick Pelissier
c34027e2ce
Add missing exit(0)
2017-07-09 19:31:25 +02:00
Patrick Pelissier
ee22399bab
Add new assertion.
2017-07-09 19:28:57 +02:00
Patrick Pelissier
69177b6b69
Add missing exit(0)
2017-07-09 19:24:15 +02:00
Patrick Pelissier
5da62a898d
Code factorisation.
2017-07-08 17:21:56 +02:00
Patrick Pelissier
de45d61966
Add bench of map over string.
2017-07-08 17:13:02 +02:00
Patrick Pelissier
e583625c78
Renumber the tests.
2017-07-08 15:33:10 +02:00
Patrick Pelissier
30484f4291
Factorisation.
2017-07-08 15:14:01 +02:00
Patrick Pelissier
f8ff180b94
Prepare for conditionnal use of m-string by m-bitset.
2017-07-08 13:00:47 +02:00
Patrick Pelissier
ec4c12eab5
Update comments.
2017-07-08 12:57:28 +02:00
Patrick Pelissier
5be073b9bd
Fix comment.
2017-07-08 12:57:21 +02:00
Patrick Pelissier
2ef2dd1231
Add const to function definition.
2017-07-08 12:57:06 +02:00
Patrick Pelissier
138d3fe4eb
Add const to function definition.
2017-07-08 12:56:57 +02:00
Patrick Pelissier
e8781e2860
Add new possible const due to const added to array functions.
2017-07-07 23:03:43 +02:00
Patrick Pelissier
7d00caac83
Add const to iterators:
...
in fact, a const array for an iterator just means that it
can't modify the order of the container (And that's what we want).
It can still modify the pointed object.
2017-07-07 22:57:13 +02:00
Patrick Pelissier
64f3fc380e
Update _insert prototype of array to match list _insert.
2017-07-07 22:53:42 +02:00
Patrick Pelissier
f25a59c43c
Update doc
2017-07-07 11:07:39 +02:00
Patrick Pelissier
d3038cc758
Add _out_str, _in_str & _get_str to OA dict.
2017-07-06 23:14:26 +02:00
Patrick Pelissier
172df98c0d
Add new example based on set and word counts.
2017-07-06 11:49:07 +02:00
Patrick Pelissier
ac79b462fb
Add missing contracts.
2017-07-06 11:48:52 +02:00
Patrick Pelissier
9e5e0a8a51
Add string_fget_word function.
2017-07-06 11:48:02 +02:00
Patrick Pelissier
ffe164c09e
Comment
2017-07-06 11:00:07 +02:00
Patrick Pelissier
987d50eba6
Improve prototype of fgets so that it handles better EOL.
...
Return true in case of something has been read.
2017-07-06 10:57:34 +02:00
Patrick Pelissier
2155df7d6f
Fix bug detected by previous test.
2017-07-06 10:26:14 +02:00
Patrick Pelissier
4e55aca639
Add new test
2017-07-06 10:26:07 +02:00
Patrick Pelissier
93ff9c79b9
Rewrite comment (bis)
2017-07-06 10:20:13 +02:00
Patrick Pelissier
8bfb57cdb6
Rewrite comment
2017-07-06 10:19:57 +02:00
Patrick Pelissier
c3114c439b
Remove a contract from _clear since it has not to be true.
...
Add const to a proto.
2017-07-06 10:19:08 +02:00
Patrick Pelissier
5fae797e41
Do not increase size in _fgets if we reach the EOF.
2017-07-05 23:31:33 +02:00