pike.git / src / post_modules / Shuffler / a_source_pikestring.c

version» Context lines:

pike.git/src/post_modules/Shuffler/a_source_pikestring.c:1:   #include "global.h"   #include "stralloc.h"   #include "bignum.h"   #include "interpret.h"      #include "shuffler.h" - /* $Id: a_source_pikestring.c,v 1.3 2002/05/29 07:39:51 per Exp $ */ + /* $Id: a_source_pikestring.c,v 1.4 2002/05/29 09:33:13 per Exp $ */      /* Source: String    * Argument: 8-bit string    */      struct ps_source   {    struct source s;       struct pike_string *str;
pike.git/src/post_modules/Shuffler/a_source_pikestring.c:50:    INT64 start, INT64 len )   {    struct ps_source *res;       if( s->type != PIKE_T_STRING ) return 0;    if( s->u.string->size_shift ) return 0;       res = malloc( sizeof( struct ps_source ) );    MEMSET( res, 0, sizeof( struct ps_source ) );    -  res->s.free = free_source; +  res->s.free_source = free_source;    res->s.get_data = get_data;       res->str = s->u.string;    res->str->refs++;    res->offset = start;       if( len != -1 )    {    if( len > res->str->len-start )    {