diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-02-11 01:34:40 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-15 20:03:43 +0100 |
commit | 60c7d789ce21cb77bdf9dd2c8cb22e86232d903f (patch) | |
tree | 45a2995340c1f2c2891369eb3ec5e2c6aae7b87c /vector.h | |
parent | Replace key_val type with templatized PAIR(T, V). (diff) | |
download | calp-60c7d789ce21cb77bdf9dd2c8cb22e86232d903f.tar.gz calp-60c7d789ce21cb77bdf9dd2c8cb22e86232d903f.tar.xz |
Rewrote content_line, and how parameters are stored.
Diffstat (limited to 'vector.h')
-rw-r--r-- | vector.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 */ |