pike.git
/
src
/
post_modules
/
Shuffler
/
a_source_pikestring.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/post_modules/Shuffler/a_source_pikestring.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_pikestring.c,v 1.
9
2004/
08
/
28
12
:
45
:
07
nilsson
Exp $
+
|| $Id: a_source_pikestring.c,v 1.
10
2004/
10
/
16
07
:
27
:
29
agehall
Exp $
*/ #include "global.h" #include "stralloc.h" #include "bignum.h" #include "interpret.h" #include "shuffler.h"
pike.git/src/post_modules/Shuffler/a_source_pikestring.c:18:
*/ struct ps_source { struct source s; struct pike_string *str; int offset, len; };
-
static struct data get_data( struct source *_s,
int
len )
+
static struct data get_data( struct source *_s,
off_t
len )
{ struct ps_source *s = (struct ps_source *)_s; struct data res; res.do_free = 0; res.off = 0; res.data = s->str->str + s->offset; if( len > s->len ) {