[Plib-cvs] plib/src/ssg ssgLoadFLT.cxx,1.33,1.34
Brought to you by:
sjbaker
From: M?rten Str?m. <str...@us...> - 2002-09-09 09:01:32
|
Update of /cvsroot/plib/plib/src/ssg In directory usw-pr-cvs1:/tmp/cvs-serv2530 Modified Files: ssgLoadFLT.cxx Log Message: more switch support + minor fixes + removed alloca Index: ssgLoadFLT.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadFLT.cxx,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- ssgLoadFLT.cxx 2 Sep 2002 06:05:48 -0000 1.33 +++ ssgLoadFLT.cxx 9 Sep 2002 09:01:29 -0000 1.34 @@ -99,17 +99,12 @@ # endif #endif -#define USE_ALLOCA - #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <stdio.h> #ifdef __sgi # include <sys/endian.h> [...236 lines suppressed...] -#else - ssgEntity *kids[n]; -#endif + ssgEntity *kids[32]; for (i = n; i--;) { kids[i] = grp->getKid(i); kids[i]->ref(); grp->removeKid(i); kids[i]->deRef(); @@ -2914,11 +2953,7 @@ return Flatten(kid, mat); } else { -#ifdef USE_ALLOCA - ssgEntity **kids = (ssgEntity **)alloca(sizeof(ssgEntity *) * n); -#else - ssgEntity *kids[n]; -#endif + ssgEntity *kids[32]; for (i = n; i--;) { kids[i] = grp->getKid(i); kids[i]->ref(); grp->removeKid(i); kids[i]->deRef(); |