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

version» Context lines:

pike.git/src/post_modules/Shuffler/a_source_system_memory.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: a_source_system_memory.c,v 1.7 2002/10/11 01:39:59 nilsson Exp $ + || $Id: a_source_system_memory.c,v 1.8 2002/10/17 16:59:21 manual Exp $   */      #include "global.h"   #include "bignum.h"   #include "object.h"   #include "interpret.h"      #include <shuffler.h>      
pike.git/src/post_modules/Shuffler/a_source_system_memory.c:26:    struct {    unsigned char *data;    size_t len;    } *mem;       int offset, len;   };      static struct data get_data( struct source *_s, int len )   { -  struct sm_source *s = (struct sm_source *)s; +  struct sm_source *s = (struct sm_source *)_s;    struct data res;       res.do_free = 0;    res.off = 0;    res.data = s->mem->data + s->offset;       if( len > s->len )    {    len = s->len;    s->s.eof = 1; /* next read will be done from the next source */