Update of /cvsroot/pure-data/externals/grill/flext/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7283/source
Modified Files: flsupport.cpp Log Message: ""
Index: flsupport.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/source/flsupport.cpp,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** flsupport.cpp 6 Mar 2004 03:25:48 -0000 1.32 --- flsupport.cpp 23 Mar 2004 03:22:38 -0000 1.33 *************** *** 158,161 **** --- 158,163 ---- }
+ FLEXT_ASSERT(blk); + *(size_t *)blk = bytes; return blk+sizeof(size_t); *************** *** 164,167 **** --- 166,171 ---- void flext_root::operator delete(void *blk) { + FLEXT_ASSERT(blk); + char *ori = (char *)blk-sizeof(size_t); size_t bytes = *(size_t *)ori; *************** *** 214,217 **** --- 218,222 ---- SYSUNLOCK(); } + FLEXT_ASSERT(blk);
char *ablk = reinterpret_cast<char *>((reinterpret_cast<unsigned long>(blk)+ovh+alignovh) & ~alignovh); *************** *** 223,226 **** --- 228,233 ---- void flext_root::FreeAligned(void *blk) { + FLEXT_ASSERT(blk); + char *ori = *(char **)((char *)blk-sizeof(size_t)-sizeof(char *)); size_t bytes = *(size_t *)((char *)blk-sizeof(size_t));