pike.git / src / modules / Gz / module.pmod.in

version» Context lines:

pike.git/src/modules/Gz/module.pmod.in:1: - // $Id: module.pmod.in,v 1.15 2003/04/23 11:41:22 nilsson Exp $ + // $Id: module.pmod.in,v 1.16 2005/04/02 19:10:23 nilsson Exp $   #pike __REAL_VERSION__      inherit @module@;      #if constant(@module@.inflate)      //! Low-level implementation of read/write support for GZip files   class _file {       static private Stdio.Stream f;
pike.git/src/modules/Gz/module.pmod.in:323:       //! @decl void create(void|string|int|Stdio.Stream file, void|string mode)    //! @param file    //! Filename or filedescriptor of the gzip file to open, or an already    //! open Stream.    //! @param mode    //! mode for the file. Defaults to "rb".    //! @seealso    //! @[open] @[Stdio.File]    static void create(mixed ... args) { -  ::create(); +  ::create(@args);       if(sizeof(args)) { -  open(@args); +  is_open = 1;    }    }       static string _sprintf(int t)    {    switch(t) {    case 'O':    return sprintf("Gz.File(/*%s open */)", is_open ? "" : " not");    case 't':    return "Gz.File";