aboutsummaryrefslogtreecommitdiff
path: root/pair.inc.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-18 22:39:56 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-18 22:39:56 +0100
commit33fa5b5d0c512c72c1d50b9420a36431cd10eb5d (patch)
tree6642ec876ecd15ce62f83075d7f9d261050fe3a6 /pair.inc.h
parentStart rework of guile interface. (diff)
downloadcalp-33fa5b5d0c512c72c1d50b9420a36431cd10eb5d.tar.gz
calp-33fa5b5d0c512c72c1d50b9420a36431cd10eb5d.tar.xz
Made to compile as C++.
Diffstat (limited to 'pair.inc.h')
-rw-r--r--pair.inc.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/pair.inc.h b/pair.inc.h
index 5f746f1b..c42b2dfd 100644
--- a/pair.inc.h
+++ b/pair.inc.h
@@ -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);
}