summaryrefslogtreecommitdiffhomepage
path: root/include/stc/extend.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-05-18 23:00:42 +0200
committerTyge Løvset <[email protected]>2023-05-18 23:00:42 +0200
commitc94e7b91d552a05d49e1cc3859f80e9f20406b48 (patch)
tree8b95af9c4537031ab8435e7be43473c50eaa72dc /include/stc/extend.h
parentc54da07eb171455ad182d61a1fb5c4e4520aebbb (diff)
downloadSTC-modified-c94e7b91d552a05d49e1cc3859f80e9f20406b48.tar.gz
STC-modified-c94e7b91d552a05d49e1cc3859f80e9f20406b48.zip
Renamed template param i_con => i_base in stc/extend.h. Also the macro c_getcon(self) => c_extend(self).
Diffstat (limited to 'include/stc/extend.h')
-rw-r--r--include/stc/extend.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/stc/extend.h b/include/stc/extend.h
index 66b3ebd1..f697d2b3 100644
--- a/include/stc/extend.h
+++ b/include/stc/extend.h
@@ -44,9 +44,9 @@
#endif
#ifdef _i_key
- c_PASTE(forward_, i_con)(i_type, _i_key, _i_val);
+ c_PASTE(forward_, i_base)(i_type, _i_key, _i_val);
#else
- c_PASTE(forward_, i_con)(i_type, _i_val);
+ c_PASTE(forward_, i_base)(i_type, _i_val);
#endif
typedef struct {
@@ -54,13 +54,13 @@ typedef struct {
i_type get;
} c_PASTE(i_type, _ext);
-#define c_getcon(cptr) c_container_of(cptr, _cx_memb(_ext), get)
+#define c_extend(self) c_container_of(self, _cx_memb(_ext), get)
#define i_is_forward
-#define _i_inc <stc/i_con.h>
+#define _i_inc <stc/i_base.h>
#include _i_inc
#undef _i_inc
#undef _i_key
#undef _i_val
-#undef i_con
+#undef i_base
#undef i_extend