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

version» Context lines:

pike.git/src/post_modules/Shuffler/e_source_block_pikestream.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: e_source_block_pikestream.c,v 1.5 2004/10/16 07:27:29 agehall Exp $ + || $Id: e_source_block_pikestream.c,v 1.6 2007/11/10 21:23:14 nilsson Exp $   */      #include "global.h"   #include "bignum.h"   #include "object.h"   #include "interpret.h"      #include "fdlib.h"   #include "fd_control.h"   
pike.git/src/post_modules/Shuffler/e_source_block_pikestream.c:28:    struct source s;       struct object *obj;    INT64 len, skip;   };         static struct data get_data( struct source *_s, off_t len )   {    struct pf_source *s = (struct pf_source *)_s; -  struct data res; +  struct data res = { 0, 0, 0, NULL };    -  res.len = 0; -  res.off = 0; -  res.do_free = 0; -  +     if( s->len>0 && len > s->len ) {    len = s->len;    s->s.eof = 1;    }       do {    struct pike_string *st;       push_int( len );    apply( s->obj, "read", 1 );