From adf64277b966ebaaf4e03f2e0a57886d98e85eb0 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Mon, 26 Jun 2006 23:45:31 +0000 Subject: fixed break condition for some loop constructs resurrected help message functionality preparing RIP release svn path=/trunk/; revision=5302 --- externals/grill/vasp/source/oploop.h | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'externals/grill/vasp/source/oploop.h') diff --git a/externals/grill/vasp/source/oploop.h b/externals/grill/vasp/source/oploop.h index 9518edf1..ec805c13 100755 --- a/externals/grill/vasp/source/oploop.h +++ b/externals/grill/vasp/source/oploop.h @@ -2,7 +2,7 @@ VASP modular - vector assembling signal processor / objects for Max/MSP and PD -Copyright (c) 2002 Thomas Grill (xovo@gmx.net) +Copyright (c) 2002-2006 Thomas Grill (gr@grrrr.org) For information on usage and redistribution, and for a DISCLAIMER OF ALL WARRANTIES, see the file, "license.txt," in this distribution. @@ -16,20 +16,13 @@ WARRANTIES, see the file, "license.txt," in this distribution. #define _D_MIN(a,b) ((a) < (b)?(a):(b)) #ifdef FLEXT_THREADS -/* - #define _D_LOOP(VAR,LEN) { \ - register I __i__; \ - for(__i__ = 0; __i__ < LEN; flext_base::ThrYield()) { \ - I __m__ = _D_MIN(LEN,__i__+_D_BLOCK); for(; (VAR = __i__) < __m__; ++__i__) { - #define _E_LOOP } if(__i__ < __m__) break; }} -*/ #define _D_LOOP(VAR,LEN) { \ - for(VAR = 0; VAR < LEN; flext_base::ThrYield()) { \ - register const I __m__ = _D_MIN(LEN,VAR+_D_BLOCK); \ - for(; VAR < __m__; ++VAR) { + for(register int __i__ = 0; __i__ < LEN; flext_base::ThrYield()) { \ + register const I __m__ = _D_MIN(LEN,__i__+_D_BLOCK); \ + for(; __i__ < __m__; ++__i__) { VAR = __i__; - #define _E_LOOP }}} + #define _E_LOOP } if(__i__ < __m__) break; }} #define _D_WHILE(COND) { \ for(; (COND) ; flext_base::ThrYield()) { \ -- cgit v1.2.1