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

version» Context lines:

pike.git/src/modules/zlibmod/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.2 1996/11/23 00:09:58 hubbe Exp $"); + RCSID("$Id: zlibmod.c,v 1.3 1997/02/07 00:46:53 hubbe Exp $");      #include "zlib_machine.h"   #include "types.h"      #if !defined(HAVE_LIBZ) && !defined(HAVE_LIBGZ)   #undef HAVE_ZLIB_H   #endif      #ifdef HAVE_ZLIB_H   
pike.git/src/modules/zlibmod/zlibmod.c:325:      static void exit_gz_inflate(struct object *o)   {    mt_lock(& THIS->lock);    inflateEnd(& THIS->gz);    mt_unlock(& THIS->lock);   }      #endif    - void init_zlibmod_efuns(void) {} - void exit_zlibmod(void) { } + void pike_module_exit(void) {}    - void init_zlibmod_programs(void) + void pike_module_init(void)   {   #ifdef HAVE_ZLIB_H    start_new_program();    add_storage(sizeof(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_c_program("/precompiled/gz_deflate"); +  end_class("deflate");       start_new_program();    add_storage(sizeof(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);    set_exit_callback(exit_gz_inflate);    -  end_c_program("/precompiled/gz_inflate"); +  end_class("inflate");   #endif   }