pike.git / src / modules / Pipe / pipe.c

version» Context lines:

pike.git/src/modules/Pipe/pipe.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: pipe.c,v 1.54 2003/03/29 17:58:33 nilsson Exp $ + || $Id: pipe.c,v 1.55 2003/04/02 20:30:46 nilsson Exp $   */      #include "global.h"   #include "config.h"   #include "machine.h"   #include "module.h"      #include <sys/types.h>   #include <sys/stat.h>   
pike.git/src/modules/Pipe/pipe.c:31:   #endif   #endif   #endif      #ifdef HAVE_SYS_ID_H   #include <sys/id.h>   #endif /* HAVE_SYS_ID_H */      #include <fcntl.h>    - RCSID("$Id: pipe.c,v 1.54 2003/03/29 17:58:33 nilsson Exp $"); + RCSID("$Id: pipe.c,v 1.55 2003/04/02 20:30:46 nilsson Exp $");      #include "threads.h"   #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "pike_error.h"   #include "builtin_functions.h"
pike.git/src/modules/Pipe/pipe.c:1295:    push_int(DO_NOT_WARN(nbuffers));    push_int(DO_NOT_WARN(sbuffers));    f_aggregate(7);   }      PIKE_MODULE_INIT   {    start_new_program();    ADD_STORAGE(struct pipe);    -  /* function(:array) */ -  ADD_FUNCTION("_pipe_debug", f__pipe_debug,tFunc(tNone,tArray), 0); +     /* function(object:void) */    ADD_FUNCTION("input",pipe_input,tFunc(tObj,tVoid),0);    /* function(object,void|int:void) */    ADD_FUNCTION("output",pipe_output,tFunc(tObj tOr(tVoid,tInt),tVoid),0);    /* function(string:void) */    ADD_FUNCTION("write",pipe_write,tFunc(tStr,tVoid),0);       /* function(:void) */    ADD_FUNCTION("start",pipe_start,tFunc(tNone,tVoid),0);    /* function(:void) */
pike.git/src/modules/Pipe/pipe.c:1351:    offset_input_read_callback=find_identifier("_input_read_callback",    pipe_program);          start_new_program();    ADD_STORAGE(struct output);    set_init_callback(init_output_struct);    set_exit_callback(exit_output_struct);    output_program=end_program();    add_program_constant("__output",output_program, 0); +  +  /* function(:array) */ +  ADD_FUNCTION("_pipe_debug", f__pipe_debug,tFunc(tNone,tArray), 0);   }      PIKE_MODULE_EXIT   {    if(pipe_program) free_program(pipe_program);    pipe_program=0;    if(output_program) free_program(output_program);    output_program=0;   }