diff options
| author | Tyge Løvset <[email protected]> | 2021-12-02 14:39:42 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-12-02 14:39:42 +0100 |
| commit | 323f21d57aaf30ffd43d6b67146bc887ad206298 (patch) | |
| tree | 3e4045251b0a0d0fb55e152ce728da6b5a3e875b /examples/mapmap.c | |
| parent | f857d8215a266673e25356779f740100fe362025 (diff) | |
| download | STC-modified-323f21d57aaf30ffd43d6b67146bc887ad206298.tar.gz STC-modified-323f21d57aaf30ffd43d6b67146bc887ad206298.zip | |
Breaking changes for i_fwd and i_cmp_none:
- Removed: i_cmp_none and i_fwd (replaced by c_no_compare and c_is_fwd args to i_opt).
- Added compile-time disabling of clonable and comparable container elements, controlled by i_opt (c_no_clone | c_no_compare)
- Added i_opt: can define multiple compile-time options: c_no_compare, c_no_clone, c_no_atomic, c_is_fwd: may be combined with | separator.
- Except for csptr, when i_del / i_valdel / i_keydel is defined, also i_from / i_keyfrom / i_valfrom must be defined or i_opt c_no_clone.
- For struct elements, either i_cmp must be defined (as before), or define i_opt c_no_compare for non-associative containers.
Diffstat (limited to 'examples/mapmap.c')
| -rw-r--r-- | examples/mapmap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/mapmap.c b/examples/mapmap.c index 73a00861..e22a4f7b 100644 --- a/examples/mapmap.c +++ b/examples/mapmap.c @@ -3,13 +3,14 @@ #define i_key_str
#define i_val_str
#define i_tag sect
-#include <stc/csmap.h>
+#include <stc/csmap.h> // csmap_sect
#define i_key_str
#define i_val csmap_sect
#define i_valdel csmap_sect_del
+#define i_valfrom csmap_sect_clone
#define i_tag conf
-#include <stc/csmap.h>
+#include <stc/csmap.h> // csmap_conf
void add(csmap_conf* map, const char* section, const char* entry, const char* value)
{
|
