Branch: Tag:

1999-02-10

1999-02-10 22:03:31 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

lots of minor optimizations..

Rev: src/builtin_functions.c:1.148
Rev: src/constants.c:1.14
Rev: src/constants.h:1.8
Rev: src/cpp.c:1.33
Rev: src/dynamic_load.c:1.34
Rev: src/module.c:1.10
Rev: src/modules/Gdbm/gdbmmod.c:1.7
Rev: src/modules/Gmp/mpz_glue.c:1.39
Rev: src/modules/Gz/zlibmod.c:1.23
Rev: src/modules/Image/colors.c:1.9
Rev: src/modules/Image/colortable.c:1.48
Rev: src/modules/Image/font.c:1.43
Rev: src/modules/Image/image.c:1.112
Rev: src/modules/Msql/msqlmod.c:1.10
Rev: src/modules/Mysql/mysql.c:1.26
Rev: src/modules/Mysql/result.c:1.15
Rev: src/modules/Odbc/odbc.c:1.14
Rev: src/modules/Odbc/odbc_result.c:1.17
Rev: src/modules/Oracle/oracle.c:1.16
Rev: src/modules/Perl/perlmod.c:1.6
Rev: src/modules/Pipe/pipe.c:1.30
Rev: src/modules/Postgres/pgresult.c:1.10
Rev: src/modules/Postgres/postgres.c:1.12
Rev: src/modules/Regexp/glue.c:1.14
Rev: src/modules/Ssleay/ssleay.c:1.11
Rev: src/modules/Yp/yp.c:1.16
Rev: src/modules/_Charset/charsetmod.c:1.9
Rev: src/modules/_Charset/iso2022.c:1.4
Rev: src/modules/_Crypto/cast.c:1.6
Rev: src/modules/_Crypto/cbc.c:1.14
Rev: src/modules/_Crypto/crypto.c:1.27
Rev: src/modules/_Crypto/des.c:1.13
Rev: src/modules/_Crypto/idea.c:1.13
Rev: src/modules/_Crypto/invert.c:1.8
Rev: src/modules/_Crypto/md2.c:1.6
Rev: src/modules/_Crypto/md5.c:1.12
Rev: src/modules/_Crypto/pipe.c:1.14
Rev: src/modules/_Crypto/rc4.c:1.9
Rev: src/modules/_Crypto/sha.c:1.15
Rev: src/modules/_Image_JPEG/image_jpeg.c:1.20
Rev: src/modules/_Image_TTF/image_ttf.c:1.11
Rev: src/modules/_Image_XFace/image_xface.c:1.6
Rev: src/modules/call_out/call_out.c:1.25
Rev: src/modules/files/efuns.c:1.64
Rev: src/modules/files/socket.c:1.42
Rev: src/modules/math/math.c:1.17
Rev: src/modules/spider/accesseddb.c:1.18
Rev: src/modules/spider/dumudp.c:1.43
Rev: src/modules/spider/spider.c:1.78
Rev: src/modules/spider/xml.c:1.7
Rev: src/modules/sprintf/sprintf.c:1.32
Rev: src/modules/system/nt.c:1.8
Rev: src/modules/system/passwords.c:1.24
Rev: src/modules/system/system.c:1.62
Rev: src/object.c:1.57
Rev: src/operators.c:1.47
Rev: src/pike_macros.h:1.12
Rev: src/pike_types.c:1.50
Rev: src/pike_types.h:1.17
Rev: src/program.c:1.110
Rev: src/program.h:1.51
Rev: src/security.c:1.11
Rev: src/signal_handler.c:1.106
Rev: src/stralloc.h:1.29
Rev: src/svalue.h:1.21
Rev: src/threads.c:1.89

26:      #include <fcntl.h>    - RCSID("$Id: pipe.c,v 1.29 1999/02/01 02:44:43 hubbe Exp $"); + RCSID("$Id: pipe.c,v 1.30 1999/02/10 21:50:35 hubbe Exp $");      #include "threads.h"   #include "stralloc.h"
1242:   {    start_new_program();    ADD_STORAGE(struct pipe); -  add_efun("_pipe_debug", f__pipe_debug, "function(:array)", 0); -  add_function("input",pipe_input,"function(object:void)",0); -  add_function("output",pipe_output,"function(object:void)",0); -  add_function("write",pipe_write,"function(string:void)",0); +     -  add_function("start",pipe_start,"function(:void)",0); -  add_function("finish",pipe_finish,"function(:void)",0); + /* function(:array) */ +  ADD_EFUN("_pipe_debug", f__pipe_debug,tFunc(,tArray), 0); +  /* function(object:void) */ +  ADD_FUNCTION("input",pipe_input,tFunc(tObj,tVoid),0); +  /* function(object:void) */ +  ADD_FUNCTION("output",pipe_output,tFunc(tObj,tVoid),0); +  /* function(string:void) */ +  ADD_FUNCTION("write",pipe_write,tFunc(tStr,tVoid),0);    -  add_function("set_output_closed_callback",pipe_set_output_closed_callback, -  "function(void|function(mixed,object:mixed),void|mixed:void)",0); -  add_function("set_done_callback",pipe_set_done_callback, -  "function(void|function(mixed:mixed),void|mixed:void)",0); +  /* function(:void) */ +  ADD_FUNCTION("start",pipe_start,tFunc(,tVoid),0); +  /* function(:void) */ +  ADD_FUNCTION("finish",pipe_finish,tFunc(,tVoid),0);    -  add_function("_output_close_callback",pipe_close_output_callback, -  "function(int:void)",0); -  add_function("_input_close_callback",pipe_close_input_callback, -  "function(int:void)",0); -  add_function("_output_write_callback",pipe_write_output_callback, -  "function(int:void)",0); -  add_function("_input_read_callback",pipe_read_input_callback, -  "function(int,string:void)",0); +  /* function(void|function(mixed,object:mixed),void|mixed:void) */ +  ADD_FUNCTION("set_output_closed_callback",pipe_set_output_closed_callback,tFunc(tOr(tVoid,tFunc(tMix tObj,tMix)) tOr(tVoid,tMix),tVoid),0); +  /* function(void|function(mixed:mixed),void|mixed:void) */ +  ADD_FUNCTION("set_done_callback",pipe_set_done_callback,tFunc(tOr(tVoid,tFunc(tMix,tMix)) tOr(tVoid,tMix),tVoid),0);    -  add_function("version",pipe_version,"function(:string)",0); +  /* function(int:void) */ +  ADD_FUNCTION("_output_close_callback",pipe_close_output_callback,tFunc(tInt,tVoid),0); +  /* function(int:void) */ +  ADD_FUNCTION("_input_close_callback",pipe_close_input_callback,tFunc(tInt,tVoid),0); +  /* function(int:void) */ +  ADD_FUNCTION("_output_write_callback",pipe_write_output_callback,tFunc(tInt,tVoid),0); +  /* function(int,string:void) */ +  ADD_FUNCTION("_input_read_callback",pipe_read_input_callback,tFunc(tInt tStr,tVoid),0);    -  add_function("bytes_sent",f_bytes_sent,"function(:int)",0); +  /* function(:string) */ +  ADD_FUNCTION("version",pipe_version,tFunc(,tStr),0);    -  +  /* function(:int) */ +  ADD_FUNCTION("bytes_sent",f_bytes_sent,tFunc(,tInt),0); +     set_init_callback(init_pipe_struct);    set_exit_callback(exit_pipe_struct);