pike.git/src/modules/Gz/zlibmod.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: zlibmod.c,v 1.71 2006/07/26 17:57:46 nilsson Exp $
+ || $Id: zlibmod.c,v 1.72 2006/07/26 18:02:30 nilsson Exp $
*/
#include "global.h"
#include "zlib_machine.h"
#include "module.h"
#include "program.h"
#include "module_support.h"
#if !defined(HAVE_LIBZ) && !defined(HAVE_LIBGZ)
#undef HAVE_ZLIB_H
pike.git/src/modules/Gz/zlibmod.c:640: Inside #if defined(HAVE_ZLIB_H)
/* function(string,int|void:string) */
ADD_FUNCTION("deflate",gz_deflate,tFunc(tStr tOr(tInt,tVoid),tStr),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);
add_integer_constant("DEFAULT_STRATEGY", Z_DEFAULT_STRATEGY,0);
add_integer_constant("FILTERED", Z_FILTERED,0);
add_integer_constant("HUFFMAN_ONLY", Z_HUFFMAN_ONLY,0);
+ #ifdef Z_RLE
+ add_integer_constant("RLE", Z_RLE,0);
+ #endif
+ #ifdef Z_FIXED
+ add_integer_constant("FIXED", Z_FIXED,0);
+ #endif
set_init_callback(init_gz_deflate);
set_exit_callback(exit_gz_deflate);
end_class("deflate",0);
start_new_program();
ADD_STORAGE(struct zipper);
/* function(int|void:void) */
ADD_FUNCTION("create",gz_inflate_create,tFunc(tOr(tInt,tVoid),tVoid),0);
/* function(string:string) */
ADD_FUNCTION("inflate",gz_inflate,tFunc(tStr,tStr),0);
/* function(:string) */
ADD_FUNCTION("end_of_stream",gz_end_of_stream,tFunc(tNone,tStr),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);
- #ifdef Z_RLE
- add_integer_constant("RLE", Z_RLE,0);
- #endif
- #ifdef Z_FIXED
- add_integer_constant("FIXED", Z_FIXED,0);
- #endif
+
set_init_callback(init_gz_inflate);
set_exit_callback(exit_gz_inflate);
end_class("inflate",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);