diff options
| author | Tyge Løvset <[email protected]> | 2021-01-30 23:05:36 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-01-30 23:05:36 +0100 |
| commit | b3d9e68fa2c2ec9ebe7e3f08045d01db5b720eea (patch) | |
| tree | 100c3d8b5a2df433efd9cf148d3c66506f1d288b /examples/mapmap.c | |
| parent | 5c196be3cfa172ca521ced0cf5d9b7d0acec5b83 (diff) | |
| download | STC-modified-b3d9e68fa2c2ec9ebe7e3f08045d01db5b720eea.tar.gz STC-modified-b3d9e68fa2c2ec9ebe7e3f08045d01db5b720eea.zip | |
Internal changes: removed use of cmap_inits and set_inits. Use cmap_x_init() and cset_X_init(). Minor changes in cvec, csmap, cstr, crandom.
Diffstat (limited to 'examples/mapmap.c')
| -rw-r--r-- | examples/mapmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/mapmap.c b/examples/mapmap.c index a56a30db..7782f5bf 100644 --- a/examples/mapmap.c +++ b/examples/mapmap.c @@ -7,8 +7,8 @@ using_cmap_str(); using_cmap_strkey(cfg, cmap_str, cmap_str_del, cmap_str_clone);
int main(void) {
- cmap_cfg config = cmap_inits;
- cmap_str init = cmap_inits;
+ cmap_cfg config = cmap_cfg_init();
+ cmap_str init = cmap_str_init();
cmap_str_put(&cmap_cfg_emplace(&config, "user", init).first->second, "name", "Joe");
cmap_str_put(&cmap_cfg_emplace(&config, "user", init).first->second, "groups", "proj1,proj3");
cmap_str_put(&cmap_cfg_emplace(&config, "group", init).first->second, "proj1", "Energy");
|
