Changeset 851406 in git


Ignore:
Timestamp:
Aug 9, 2001, 3:10:32 PM (23 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
891438c7813df48556c4efdb0148577dddef063b
Parents:
86c1f00ac7423a6cb67b950155c7809798a70e49
Message:
*hannes: syntax


git-svn-id: file:///usr/local/Singular/svn/trunk@5578 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
omalloc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • omalloc/omDebug.c

    r86c1f0 r851406  
    44 *  Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
    55 *  Created: 7/00
    6  *  Version: $Id: omDebug.c,v 1.15 2001-04-30 09:02:03 Singular Exp $
     6 *  Version: $Id: omDebug.c,v 1.16 2001-08-09 13:10:32 Singular Exp $
    77 *******************************************************************/
    88#include <mylimits.h>
     
    232232char* _omDebugStrDup(const char* addr, OM_TFL_DECL)
    233233{
    234   unsigned long size, i=0;
     234#if 0
     235  unsigned long size;
     236#endif
     237  unsigned long i=0;
    235238  char* ret;
    236239  OM_R_DEF;
     
    251254  }
    252255  else
    253 #endif
    254256  {
    255257    size = ULONG_MAX;
    256258  }
    257   while (addr[i] != '\0' && i < size) i++;
     259#endif
     260  while ((addr[i] != '\0') /* && (i < size)*/) i++;
    258261// there seems to be no way to check if it is really a string
    259262#if 0
  • omalloc/omDebugTrack.c

    r86c1f0 r851406  
    44 *  Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
    55 *  Created: 11/99
    6  *  Version: $Id: omDebugTrack.c,v 1.14 2001-04-30 09:02:04 Singular Exp $
     6 *  Version: $Id: omDebugTrack.c,v 1.15 2001-08-09 13:10:32 Singular Exp $
    77 *******************************************************************/
    88#include <mylimits.h>
     
    322322
    323323#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);
    325325#endif
    326326
     
    542542#endif
    543543#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));
    545546#endif
    546547    }
     
    606607
    607608  fprintf(fd, " allocated at ");
    608   if (! _omPrintBackTrace(OM_ALLOC_FRAMES(d_addr),
     609  if (! _omPrintBackTrace((void **)OM_ALLOC_FRAMES(d_addr),
    609610                          (d_addr->track > 1 ? max_frames : 0),
    610611                          fd,
Note: See TracChangeset for help on using the changeset viewer.