Commit Graph
69 Commits
Author SHA1 Message Date
Patrick Pelissier 958a79ad73 Add another example 2019-03-07 19:25:39 +01:00
Patrick Pelissier 5ecf4f37c0 Change deprecated functions. 2018-10-29 11:06:29 +01:00
Patrick Pelissier 13f3dab23a Update with more examples. 2018-10-27 11:12:55 +02:00
Patrick Pelissier 1047d842d0 Add OPLIST for buffer & an example. Still a WIP for the constness of the BUFFER source. 2018-10-26 23:30:04 +02:00
Patrick Pelissier a7d8ff208f Fix. 2018-09-15 19:42:54 +02:00
Patrick Pelissier 1046f3e220 Add more structure in example. 2018-09-15 19:38:18 +02:00
Patrick Pelissier 6a1b2a3964 Add new example. 2018-09-15 15:46:22 +02:00
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 001272820c Update example to latests API. 2018-07-15 23:11:00 +02:00
Patrick Pelissier 95dbbf6e75 Simplification of the example. 2018-07-15 02:53:35 +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 d1f2b62f66 Replace _set_at2 by _get_at for array.
(Break API)
2018-07-01 22:35:05 +02:00
Patrick Pelissier feb4011f57 Add new example. 2018-06-29 19:41:55 +02:00
Patrick Pelissier 8e042435e5 Update comment and use of a different hash function. 2018-06-23 13:26:46 +02:00
Patrick Pelissier cddf8712e4 Update comment. 2018-06-23 13:12:28 +02:00
Patrick Pelissier 88fd96e022 Add a more complete example of use. 2018-06-23 13:10:33 +02:00
Patrick Pelissier 3d43bb260a Update 2018-04-30 13:32:24 +02:00
Patrick Pelissier 3be27aefa3 Fix the format for size_t 2018-04-19 22:13:27 +02:00
Patrick Pelissier d19ec5bf49 Fix format of _size 2018-03-21 20:11:31 +01:00
Patrick Pelissier 38fe24085f Improve comments. 2018-01-05 23:26:27 +01:00
Patrick Pelissier af3d5cb273 Proper semantic 2018-01-05 20:46:28 +01:00
Patrick Pelissier 602cc63c96 Update assert 2017-12-24 22:36:34 +01:00
Patrick Pelissier 691653c13e Remove some unused interface. 2017-12-24 22:30:07 +01:00
Patrick Pelissier 6e88c54244 Simplify the interface 2017-12-24 22:29:32 +01:00
Patrick Pelissier 840d5122b5 Move to lower case for booleans 2017-12-24 22:24:07 +01:00
Patrick Pelissier 4b37ab93b7 Add some comments to better explain the source. 2017-12-23 00:03:34 +01:00
Patrick Pelissier 8914d336a0 dict_ref & dict_cref returns a pointer to struct pair_s instead of pair_t (which
is an array of struct pair_s).
This will break API compatibility. However:
it makes the user code cleaner as a level of indirection is removed.
it uniformizes with the OA dict version
2017-10-18 23:25:39 +02:00
Patrick Pelissier 81dbe7dd2e Renaming of the variables used for the example. 2017-10-02 07:49:54 +02:00
Patrick Pelissier 11e0d1618a Simplify the Makefile and make it compatible with parallel invocation. 2017-09-25 23:05:01 +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 d7c4ca1de5 Add support for global oplist.
Global oplists are global macro defined as M_OPL_##type

Add support of global oplist for macro M_EACH & M_LET.
Partial fix #9
2017-09-10 10:04:39 +02:00
Patrick Pelissier 76b4e15bb0 Fix issue with printf formatting. 2017-08-11 19:56:24 +02:00
Patrick Pelissier 010f397349 Rename string_get_length into string_size
<== Uniformisation with the other containers.
2017-08-09 23:44:27 +02:00
Patrick Pelissier 80c273e6e2 Remove dict_ prefix for dictionnary.
See commit on shared-pointer.
2017-07-29 13:01:38 +02:00
Patrick Pelissier 34943e5b2a Remove array_ prefix from ARRAY_DEF
See commit on shared pointers.
2017-07-27 22:16:15 +02:00
Patrick Pelissier 4cb92a92b8 Remove list_ prefix from all lists.
See commit on shared-pointers.
Rename the iteration type to be prefix by name list_it_name_t ==> name_it_t
2017-07-27 21:40:35 +02:00
Patrick Pelissier 7d2848e16a Remove rbtree_prefix from Red Black Tree.
(See commit on shared-pointer).

Rename rbntree_name_it_t into name_it_t.

Update tests, documentation, bench in accordance.
2017-07-26 22:56:25 +02:00
Patrick Pelissier a69c67e850 Remove buffer prefix from buffers.
See commit on shared pointer.
2017-07-25 22:52:19 +02:00
Patrick Pelissier e8c952def8 Remove prefix shared_ from all definition of the functions / types of shared pointer.
This make the name shorter, give the user full control over the prefix,
give the user full power over the name,
allow more flexibility over the kind of container (allowing switch quickly),
and uniformize with variant_, tuple_ & algo_.
This is better than the current situation and all containers will switch.

==> Break API compatibility:
To fix this quickly, just add shared_ before the name into the
macro SHARED_PTR_DEF & SHARED_OPLIST.
This will generate the same name than before.
2017-07-25 22:19:08 +02:00
Patrick Pelissier 1abf575c1c Update example with new constraints on map/reduce prototype. 2017-07-16 11:32:08 +02:00
Patrick Pelissier ec4c12eab5 Update comments. 2017-07-08 12:57:28 +02:00
Patrick Pelissier 172df98c0d Add new example based on set and word counts. 2017-07-06 11:49:07 +02:00
Patrick Pelissier 75f0c94a59 Add seed example. 2017-07-05 21:58:03 +02:00
Patrick Pelissier 1dbc71c2a2 Update example 2017-07-05 18:04:15 +02:00
Patrick Pelissier af62fc7f5c Update example 2017-07-05 17:42:42 +02:00
Patrick Pelissier c464d62011 Add new example 2017-07-05 16:16:05 +02:00
Patrick Pelissier 515650da65 Rename examples. 2017-05-01 21:06:33 +02:00
Patrick Pelissier cb10fa9871 Add new example for Red-Black Tree 2017-05-01 19:02:14 +02:00