pike.git / src / modules / Gz / zlibmod.c

version» Context lines:

pike.git/src/modules/Gz/zlibmod.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: zlibmod.c,v 1.21 1998/05/07 23:51:43 hubbe Exp $"); + RCSID("$Id: zlibmod.c,v 1.22 1999/02/01 02:42:32 hubbe Exp $");      #include "zlib_machine.h"      #if !defined(HAVE_LIBZ) && !defined(HAVE_LIBGZ)   #undef HAVE_ZLIB_H   #endif      #ifdef HAVE_ZLIB_H      #include "interpret.h"
pike.git/src/modules/Gz/zlibmod.c:370:         #endif      void pike_module_exit(void) {}      void pike_module_init(void)   {   #ifdef HAVE_ZLIB_H    start_new_program(); -  add_storage(sizeof(struct zipper)); +  ADD_STORAGE(struct zipper);       add_function("create",gz_deflate_create,"function(int|void:void)",0);    add_function("deflate",gz_deflate,"function(string,int|void:string)",0);       add_integer_constant("NO_FLUSH",Z_NO_FLUSH,0);    add_integer_constant("PARTIAL_FLUSH",Z_PARTIAL_FLUSH,0);    add_integer_constant("SYNC_FLUSH",Z_SYNC_FLUSH,0);    add_integer_constant("FINISH",Z_FINISH,0);       set_init_callback(init_gz_deflate);    set_exit_callback(exit_gz_deflate);       end_class("deflate",0);       start_new_program(); -  add_storage(sizeof(struct zipper)); +  ADD_STORAGE(struct zipper);       add_function("create",gz_inflate_create,"function(int|void:void)",0);    add_function("inflate",gz_inflate,"function(string:string)",0);       add_integer_constant("NO_FLUSH",Z_NO_FLUSH,0);    add_integer_constant("PARTIAL_FLUSH",Z_PARTIAL_FLUSH,0);    add_integer_constant("SYNC_FLUSH",Z_SYNC_FLUSH,0);    add_integer_constant("FINISH",Z_FINISH,0);       set_init_callback(init_gz_inflate);