aboutsummaryrefslogtreecommitdiff
path: root/vector.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-02-11 01:34:40 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-15 20:03:43 +0100
commit60c7d789ce21cb77bdf9dd2c8cb22e86232d903f (patch)
tree45a2995340c1f2c2891369eb3ec5e2c6aae7b87c /vector.h
parentReplace key_val type with templatized PAIR(T, V). (diff)
downloadcalp-60c7d789ce21cb77bdf9dd2c8cb22e86232d903f.tar.gz
calp-60c7d789ce21cb77bdf9dd2c8cb22e86232d903f.tar.xz
Rewrote content_line, and how parameters are stored.
Diffstat (limited to 'vector.h')
-rw-r--r--vector.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/vector.h b/vector.h
index f6acd66a..7dea4d58 100644
--- a/vector.h
+++ b/vector.h
@@ -24,4 +24,13 @@ TYPE* GET(VECT(TYPE))(VECT(TYPE)*, unsigned int idx);
int EMPTY(VECT(TYPE))(VECT(TYPE)*);
unsigned int SIZE(VECT(TYPE))(VECT(TYPE)*);
+#define __BEG_VECT(i, set) unsigned int i = 0
+#define BEG_VECT(T) __BEG_VECT
+
+#define __END_VECT(i, set) (set) > i
+#define END_VECT(T) SIZE(VECT(T)) __END_VECT
+
+#define __NXT_VECT(l, set) i++
+#define NXT_VECT(T) __NXT_VECT
+
#endif /* TYPE */