summaryrefslogtreecommitdiffstats
path: root/src/misc/vec/vecInt.h
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2011-04-10 12:55:57 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2011-04-10 12:55:57 -0700
commit302f41e90887fe7544e89f8884f83003f8e6d309 (patch)
treed4b5b3cacefd101a33b858cdcad1119944ee4ecd /src/misc/vec/vecInt.h
parent93fef036d59f3c4e961e3a3b7cc32bb735f3a5c2 (diff)
downloadabc-302f41e90887fe7544e89f8884f83003f8e6d309.tar.gz
abc-302f41e90887fe7544e89f8884f83003f8e6d309.tar.bz2
abc-302f41e90887fe7544e89f8884f83003f8e6d309.zip
Added procedure to vector package and manager template file.
Diffstat (limited to 'src/misc/vec/vecInt.h')
-rw-r--r--src/misc/vec/vecInt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h
index 318afd35..d222bafd 100644
--- a/src/misc/vec/vecInt.h
+++ b/src/misc/vec/vecInt.h
@@ -61,6 +61,8 @@ struct Vec_Int_t_
for ( i = Start; (i < Stop) && (((Entry) = Vec_IntEntry(vVec, i)), 1); i++ )
#define Vec_IntForEachEntryReverse( vVec, pEntry, i ) \
for ( i = Vec_IntSize(vVec) - 1; (i >= 0) && (((pEntry) = Vec_IntEntry(vVec, i)), 1); i-- )
+#define Vec_IntForEachEntryTwo( vVec1, vVec2, Entry1, Entry2, i ) \
+ for ( i = 0; (i < Vec_IntSize(vVec1)) && (((Entry1) = Vec_IntEntry(vVec1, i)), 1) && (((Entry2) = Vec_IntEntry(vVec2, i)), 1); i++ )
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///