diff options
| author | Tyge Lovset <[email protected]> | 2022-04-18 12:12:01 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2022-04-18 12:12:01 +0200 |
| commit | b0d60c33a073782fe0bb08c835ca9db0b94145d0 (patch) | |
| tree | 1683369ec66467720502b3d904bf9ab11343076e /examples/rawptr_elements.c | |
| parent | 00804d9ff488f63468a0bb528c7b807aea7c3ea3 (diff) | |
| download | STC-modified-b0d60c33a073782fe0bb08c835ca9db0b94145d0.tar.gz STC-modified-b0d60c33a073782fe0bb08c835ca9db0b94145d0.zip | |
Removed i_drop and i_from template specifiers to reduce redundancies and add clarity (error given if used): use i_valdrop/i_valfrom and i_keydrop/i_keyfrom instead.
Added missing at_mut() function to cdeq.
Diffstat (limited to 'examples/rawptr_elements.c')
| -rw-r--r-- | examples/rawptr_elements.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rawptr_elements.c b/examples/rawptr_elements.c index 8f7dd4de..b0878941 100644 --- a/examples/rawptr_elements.c +++ b/examples/rawptr_elements.c @@ -16,8 +16,8 @@ struct { double x, y; } typedef Point; // Map of int64 pointers: For fun, define valraw as int64_t for easy emplace call!
typedef int64_t inttype;
#define i_key_str
-#define i_valraw inttype
#define i_val inttype*
+#define i_valraw inttype
#define i_valdrop(x) c_free(*(x))
#define i_valfrom(raw) c_new(inttype, raw)
#define i_valto(x) **(x)
|
