Branch: Tag:

2002-07-05

2002-07-05 09:55:32 by Per Hedbor <ph@opera.com>

Sprinkled debug_malloc_touch all over the place

Rev: src/post_modules/Shuffler/Shuffler.cmod:1.12
Rev: src/post_modules/Shuffler/a_source_pikestring.c:1.5
Rev: src/post_modules/Shuffler/d_source_pikestream.c:1.2

12:   #include "shuffler.h"      #define CHUNK 8192 - /* $Id: d_source_pikestream.c,v 1.1 2002/05/30 03:55:49 per Exp $ */ + /* $Id: d_source_pikestream.c,v 1.2 2002/07/05 09:55:32 per Exp $ */         /* Source: Pike-Stream
77:    len = s->str->len;    if( s->skip )    { -  if( s->skip >= s->str->len ) +  if( s->skip >= (size_t)s->str->len )    { -  s->skip -= s->str->len; -  return; +  s->skip -= (size_t)s->str->len; +  res.do_free = 0; +  res.data = 0; +  res.len = -2; +  res.off = 0; +  return res;    } -  buffer = malloc( len = s->str->len - s->skip ); +  len -= s->skip; +  buffer = malloc( len );    MEMCPY( buffer, s->str->str+s->skip, len);    }    else    {    if( s->len > 0 )    { -  if( s->len < len ) +  if( s->len < (size_t)len )    len = s->len;    s->len -= len;    if( !s->len )