diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-10-06 13:35:14 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-10-06 13:35:14 +0200 |
commit | 71e7b5fc4f28bcccd5fd9e27617b0ca2d13fc179 (patch) | |
tree | 4b5e54f60d706cf3ae2a43f403ecd4a690facbb8 /src/pair.inc.h | |
parent | Documentation of stream behavior. (diff) | |
download | calp-71e7b5fc4f28bcccd5fd9e27617b0ca2d13fc179.tar.gz calp-71e7b5fc4f28bcccd5fd9e27617b0ca2d13fc179.tar.xz |
Remove old C code.
Diffstat (limited to 'src/pair.inc.h')
-rw-r--r-- | src/pair.inc.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/pair.inc.h b/src/pair.inc.h deleted file mode 100644 index c42b2dfd..00000000 --- a/src/pair.inc.h +++ /dev/null @@ -1,34 +0,0 @@ -#if ! (defined(T) && defined(V)) -#error "Both T and V must be defiend here" -#else - -INIT_F(PAIR(T, V)) { - INIT(T, &self->key); - INIT(V, &self->val); - - return 0; -} - -FREE_F(PAIR(T, V)) { - FREE(T)(&self->key); - FREE(V)(&self->val); - - return 0; -} - -FMT_F(PAIR(T, V)) { - char lbuf[0x100]; - char rbuf[0x1000]; - FMT(T)(&self->key, lbuf); - FMT(V)(&self->val, rbuf); - - return sprintf(buf, "<%s, %s>", lbuf, rbuf); -} - -int DEEP_COPY(PAIR(T, V)) (PAIR(T, V)* dest, PAIR(T, V)* src) { - DEEP_COPY(T)(&dest->key, &src->key); - DEEP_COPY(V)(&dest->val, &src->val); - return 0; -} - -#endif /* T & V */ |