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

version» Context lines:

pike.git/src/post_modules/Shuffler/d_source_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: d_source_pikestream.c,v 1.5 2002/11/06 23:08:19 nilsson Exp $ + || $Id: d_source_pikestream.c,v 1.6 2003/03/14 15:57:49 grubba 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/d_source_pikestream.c:180:       res->len = len;    res->skip = start;       res->s.get_data = get_data;    res->s.free_source = free_source;    res->s.set_callback = set_callback;    res->s.setup_callbacks = setup_callbacks;    res->s.remove_callbacks = remove_callbacks;    res->obj = s->u.object; -  res->obj->refs++; +  add_ref(res->obj);       res->cb_obj = clone_object( callback_program, 0 );    ((struct callback_prog *)res->cb_obj->storage)->s = res;       return (struct source *)res;   }      void source_pikestream_exit( )   {    free_program( callback_program );   }      void source_pikestream_init( )   {    start_new_program();    ADD_STORAGE( struct callback_prog );    add_function("`()", f_got_data, "function(int,string:void)",0);    callback_program = end_program();   }