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.67 2004/10/07 22:49:56 nilsson Exp $
+ || $Id: zlibmod.c,v 1.68 2005/10/19 14:21:12 nilsson Exp $
*/
#include "global.h"
#include "zlib_machine.h"
#include "module.h"
#if !defined(HAVE_LIBZ) && !defined(HAVE_LIBGZ)
#undef HAVE_ZLIB_H
#endif
pike.git/src/modules/Gz/zlibmod.c:20:
#include "stralloc.h"
#include "array.h"
#include "pike_macros.h"
#include "program.h"
#include "stralloc.h"
#include "object.h"
#include "pike_types.h"
#include "threads.h"
#include "dynamic_buffer.h"
#include "operators.h"
+ #include "module_support.h"
#include <zlib.h>
#define sp Pike_sp
struct zipper
{
int level;
int state;
pike.git/src/modules/Gz/zlibmod.c:670: Inside #if defined(HAVE_ZLIB_H)
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);
/* function(string,void|int:int) */
ADD_FUNCTION("crc32",gz_crc32,tFunc(tStr tOr(tVoid,tInt),tInt),
OPT_TRY_OPTIMIZE);
+ PIKE_MODULE_EXPORT(Gz, crc32);
#endif
}
#if defined(HAVE___VTBL__9TYPE_INFO) || defined(HAVE___T_9__NOTHROW)
/* Super-special kluge for IRIX 6.3 */
#ifdef HAVE___VTBL__9TYPE_INFO
extern void __vtbl__9type_info(void);
#endif /* HAVE___VTBL__9TYPE_INFO */
#ifdef HAVE___T_9__NOTHROW
extern void __T_9__nothrow(void);