Changeset 851406 in git
- Timestamp:
- Aug 9, 2001, 3:10:32 PM (22 years ago)
- Branches:
- (u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
- Children:
- 891438c7813df48556c4efdb0148577dddef063b
- Parents:
- 86c1f00ac7423a6cb67b950155c7809798a70e49
- Location:
- omalloc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
omalloc/omDebug.c
r86c1f0 r851406 4 4 * Author: obachman@mathematik.uni-kl.de (Olaf Bachmann) 5 5 * Created: 7/00 6 * Version: $Id: omDebug.c,v 1.1 5 2001-04-30 09:02:03Singular Exp $6 * Version: $Id: omDebug.c,v 1.16 2001-08-09 13:10:32 Singular Exp $ 7 7 *******************************************************************/ 8 8 #include <mylimits.h> … … 232 232 char* _omDebugStrDup(const char* addr, OM_TFL_DECL) 233 233 { 234 unsigned long size, i=0; 234 #if 0 235 unsigned long size; 236 #endif 237 unsigned long i=0; 235 238 char* ret; 236 239 OM_R_DEF; … … 251 254 } 252 255 else 253 #endif254 256 { 255 257 size = ULONG_MAX; 256 258 } 257 while (addr[i] != '\0' && i < size) i++; 259 #endif 260 while ((addr[i] != '\0') /* && (i < size)*/) i++; 258 261 // there seems to be no way to check if it is really a string 259 262 #if 0 -
omalloc/omDebugTrack.c
r86c1f0 r851406 4 4 * Author: obachman@mathematik.uni-kl.de (Olaf Bachmann) 5 5 * Created: 11/99 6 * Version: $Id: omDebugTrack.c,v 1.1 4 2001-04-30 09:02:04Singular Exp $6 * Version: $Id: omDebugTrack.c,v 1.15 2001-08-09 13:10:32 Singular Exp $ 7 7 *******************************************************************/ 8 8 #include <mylimits.h> … … 322 322 323 323 #ifdef OM_TRACK_BACKTRACE 324 omGetBackTrace( d_addr->alloc_frames, FROM_FRAMES, OM_MAX_KEPT_FRAMES);324 omGetBackTrace((void **)d_addr->alloc_frames, FROM_FRAMES, OM_MAX_KEPT_FRAMES); 325 325 #endif 326 326 … … 542 542 #endif 543 543 #ifdef OM_TRACK_RETURN 544 omAddrCheckReturnCorrupted(d_addr->flags & OM_FUSED && d_addr->free_r != (void*) -1); 544 omAddrCheckReturnCorrupted((d_addr->flags & OM_FUSED) 545 && (d_addr->free_r != (void*) -1)); 545 546 #endif 546 547 } … … 606 607 607 608 fprintf(fd, " allocated at "); 608 if (! _omPrintBackTrace( OM_ALLOC_FRAMES(d_addr),609 if (! _omPrintBackTrace((void **)OM_ALLOC_FRAMES(d_addr), 609 610 (d_addr->track > 1 ? max_frames : 0), 610 611 fd,
Note: See TracChangeset
for help on using the changeset viewer.