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

version» Context lines:

pike.git/src/post_modules/Shuffler/a_source_pikestring.c:51:   static void free_source( struct source *src )   {    free_string(((struct ps_source *)src)->str);   }      struct source *source_pikestring_make( struct svalue *s,    INT64 start, INT64 len )   {    struct ps_source *res;    -  if( s->type != PIKE_T_STRING ) return 0; +  if( TYPEOF(*s) != PIKE_T_STRING ) return 0;    if( s->u.string->size_shift ) return 0;       res = malloc( sizeof( struct ps_source ) );    debug_malloc_touch( res );    debug_malloc_touch( s );    MEMSET( res, 0, sizeof( struct ps_source ) );       res->s.free_source = free_source;    res->s.get_data = get_data;