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

version» Context lines:

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.56 2002/10/15 12:43:07 jhs Exp $ + || $Id: zlibmod.c,v 1.57 2002/10/21 17:06:13 marcus Exp $   */      #include "global.h" - RCSID("$Id: zlibmod.c,v 1.56 2002/10/15 12:43:07 jhs Exp $"); + RCSID("$Id: zlibmod.c,v 1.57 2002/10/21 17:06:13 marcus Exp $");      #include "zlib_machine.h" -  + #include "module.h"      #if !defined(HAVE_LIBZ) && !defined(HAVE_LIBGZ)   #undef HAVE_ZLIB_H   #endif      #ifdef HAVE_ZLIB_H      #include "interpret.h"   #include "svalue.h"   #include "stralloc.h"
pike.git/src/modules/Gz/zlibmod.c:23:   #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 <zlib.h>    - #endif /* HAVE_ZLIB_H */ +     - /* This must be included last! */ - #include "module_magic.h" -  - #ifdef HAVE_ZLIB_H -  +    #define sp Pike_sp      struct zipper   {    int level;    int state;    struct z_stream_s gz;    gzFile gzfile;   #ifdef _REENTRANT    DEFINE_MUTEX(lock);
pike.git/src/modules/Gz/zlibmod.c:832:    mt_destroy( & THIS->lock );   }      /*! @endclass    */      /*! @endmodule    */   #endif    - void pike_module_exit(void) {} + PIKE_MODULE_EXIT {}    - void pike_module_init(void) + PIKE_MODULE_INIT   {   #ifdef HAVE_ZLIB_H    start_new_program();    ADD_STORAGE(struct zipper);       /* function(int|void:void) */    ADD_FUNCTION("create",gz_deflate_create,tFunc(tOr(tInt,tVoid),tVoid),0);    /* function(string,int|void:string) */    ADD_FUNCTION("deflate",gz_deflate,tFunc(tStr tOr(tInt,tVoid),tStr),0);