diff options
| author | Tyge Løvset <[email protected]> | 2021-03-19 13:08:17 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-03-19 13:08:17 +0100 |
| commit | 1d18ffb5e0ddaf7430b62bfc02aa5b4da5695d26 (patch) | |
| tree | c80e8504f3f9d5f7bdf7994f7d8e6d57e2f2efdb | |
| parent | 60786d8b27e9c622c43ddc8e77575c0853728014 (diff) | |
| parent | c2329977f9def5e8a23d77b648b8585fc49f7592 (diff) | |
| download | STC-modified-1d18ffb5e0ddaf7430b62bfc02aa5b4da5695d26.tar.gz STC-modified-1d18ffb5e0ddaf7430b62bfc02aa5b4da5695d26.zip | |
Merge branch 'master' of https://github.com/tylo-work/C99Containers into master
| -rw-r--r-- | stc/csmap.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/stc/csmap.h b/stc/csmap.h index b6598f19..81d4d63c 100644 --- a/stc/csmap.h +++ b/stc/csmap.h @@ -28,15 +28,16 @@ #include <stdio.h>
#include <stc/csmap.h>
using_csset(i, int); // Set of int
-using_csmap(ic, int, char); // Map of int -> char
int main(void) {
- csset_sx s = csset_sx_init();
- csset_sx_insert(&s, 5);
- csset_sx_insert(&s, 8);
- c_foreach (i, csset_sx, s)
- printf("set %d\n", *i.ref);
- csset_sx_del(&s);
+ csset_i s = csset_i_init();
+ csset_i_insert(&s, 5);
+ csset_i_insert(&s, 8);
+ csset_i_insert(&s, 3);
+ csset_i_insert(&s, 5);
+ c_foreach (k, csset_i, s)
+ printf("set %d\n", *k.ref);
+ csset_i_del(&s);
}
*/
#include "ccommon.h"
|
