diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-18 22:39:56 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-18 22:39:56 +0100 |
commit | 33fa5b5d0c512c72c1d50b9420a36431cd10eb5d (patch) | |
tree | 6642ec876ecd15ce62f83075d7f9d261050fe3a6 /pair.inc.h | |
parent | Start rework of guile interface. (diff) | |
download | calp-33fa5b5d0c512c72c1d50b9420a36431cd10eb5d.tar.gz calp-33fa5b5d0c512c72c1d50b9420a36431cd10eb5d.tar.xz |
Made to compile as C++.
Diffstat (limited to '')
-rw-r--r-- | pair.inc.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -3,15 +3,15 @@ #else INIT_F(PAIR(T, V)) { - INIT(T, &this->key); - INIT(V, &this->val); + INIT(T, &self->key); + INIT(V, &self->val); return 0; } FREE_F(PAIR(T, V)) { - FREE(T)(&this->key); - FREE(V)(&this->val); + FREE(T)(&self->key); + FREE(V)(&self->val); return 0; } @@ -19,8 +19,8 @@ FREE_F(PAIR(T, V)) { FMT_F(PAIR(T, V)) { char lbuf[0x100]; char rbuf[0x1000]; - FMT(T)(&this->key, lbuf); - FMT(V)(&this->val, rbuf); + FMT(T)(&self->key, lbuf); + FMT(V)(&self->val, rbuf); return sprintf(buf, "<%s, %s>", lbuf, rbuf); } |