diff options
| author | Tyge Løvset <[email protected]> | 2022-04-10 20:06:14 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-04-10 20:06:14 +0200 |
| commit | 2e781ef2c6956d9b4e11f08bdd23477c3b34ee2f (patch) | |
| tree | f0298c2301594991a398fbab692bc8f1d5832ad5 /examples/mapmap.c | |
| parent | 0500c38d693c9157e522dd7198982b9c7aeb8651 (diff) | |
| download | STC-modified-2e781ef2c6956d9b4e11f08bdd23477c3b34ee2f.tar.gz STC-modified-2e781ef2c6956d9b4e11f08bdd23477c3b34ee2f.zip | |
Fixed regression bug: cqueue_pop() did pop_back(), fixed to do pop_front().
Removed pop() functions in clist and cdeq as they are no standard. push() will push_back() for both.
Diffstat (limited to 'examples/mapmap.c')
| -rw-r--r-- | examples/mapmap.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/mapmap.c b/examples/mapmap.c index 2d681d23..0d6d2843 100644 --- a/examples/mapmap.c +++ b/examples/mapmap.c @@ -3,7 +3,7 @@ #define i_type People
#define i_key_str
#define i_val_str
-#define i_keydrop(p) (printf("kdrop: %s\n", (p)->str), cstr_drop(p))
+#define i_keydrop(p) (printf("kdrop: %s\n", p->str), cstr_drop(p))
#include <stc/csmap.h>
#define i_type Departments
@@ -13,10 +13,12 @@ #define i_type Stack
#define i_val_bind People_value
-#define i_opt c_no_cmp
+// Shorthand for:
+//#define i_val People_value
+//#define i_cmp People_value_cmp
//#define i_from People_value_clone
//#define i_drop People_value_drop
-#include <stc/cstack.h>
+#include <stc/cvec.h>
void add(Departments* deps, const char* name, const char* email, const char* dep)
{
|
