pike.git
/
src
/
modules
/
zlibmod
/
zlibmod.c
version
»
Context lines:
10
20
40
80
file
none
3
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 }