diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2006-06-26 23:45:31 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2006-06-26 23:45:31 +0000 |
commit | adf64277b966ebaaf4e03f2e0a57886d98e85eb0 (patch) | |
tree | 5adc05d27fe40c84caa30e905b1c73d5c44387c3 /externals/grill/vasp/source | |
parent | 201312033476f6fe791d921d42b1578914613c27 (diff) |
fixed break condition for some loop constructs
resurrected help message functionality
preparing RIP release
svn path=/trunk/; revision=5302
Diffstat (limited to 'externals/grill/vasp/source')
-rwxr-xr-x | externals/grill/vasp/source/oploop.h | 17 |
1 files changed, 5 insertions, 12 deletions
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()) { \ |