From 2e781ef2c6956d9b4e11f08bdd23477c3b34ee2f Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sun, 10 Apr 2022 20:06:14 +0200 Subject: 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. --- examples/mapmap.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'examples') 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 #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 +#include void add(Departments* deps, const char* name, const char* email, const char* dep) { -- cgit v1.2.3