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.84 2009/03/12 22:39:30 nilsson Exp $ + || $Id: zlibmod.c,v 1.85 2009/04/26 18:33:18 peter 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:783:   /*! @class inflate    */      /*! @decl string inflate(string data)    *!    *! This function performs gzip style decompression. It can inflate    *! a whole file at once or in blocks.    *!    *! @example    *! // whole file -  *! write(Gz_inflate()->inflate(stdin->read(0x7fffffff)); +  *! write(Gz.inflate()->inflate(stdin->read(0x7fffffff));    *!    *! // streaming (blocks) -  *! function inflate=Gz_inflate()->inflate; +  *! function inflate=Gz.inflate()->inflate;    *! while(string s=stdin->read(8192))    *! write(inflate(s));    *!    *! @seealso    *! @[Gz.deflate->deflate()]    */   static void gz_inflate(INT32 args)   {    struct pike_string *data;    int fail;