Branch: Tag:

2008-06-28

2008-06-28 17:18:37 by Martin Nilsson <mani@lysator.liu.se>

static -> protected

Rev: lib/0.6/modules/__default.pmod:1.11
Rev: lib/0.6/modules/readline.pmod:1.2
Rev: lib/7.0/modules/Calendar.pmod/ISO.pmod:1.3
Rev: lib/7.0/modules/Calendar.pmod/Stardate.pmod:1.5
Rev: lib/7.0/modules/__default.pmod:1.10
Rev: lib/7.2/modules/LR.pmod/Grammar_parser.pmod:1.3
Rev: lib/7.2/modules/LR.pmod/parser.pike:1.5
Rev: lib/7.2/modules/Parser.pmod/XML.pmod/module.pmod:1.3
Rev: lib/7.2/modules/String.pmod:1.5
Rev: lib/7.2/modules/__default.pmod:1.23
Rev: lib/7.4/modules/Crypto.pmod/cbc.pike:1.6
Rev: lib/7.4/modules/Crypto.pmod/crypto.pike:1.7
Rev: lib/7.4/modules/Crypto.pmod/hmac.pike:1.3
Rev: lib/7.4/modules/Crypto.pmod/pipe.pike:1.5
Rev: lib/7.4/modules/Crypto.pmod/randomness.pmod:1.6
Rev: lib/7.4/modules/Locale.pmod/Charset.pmod:1.4
Rev: lib/7.4/modules/SSL.pmod/cipher.pike:1.4
Rev: lib/7.4/modules/SSL.pmod/sslfile.pike:1.3
Rev: lib/7.4/modules/Stdio.pmod/module.pmod:1.6
Rev: lib/7.4/modules/__default.pmod:1.23
Rev: lib/7.6/modules/Calendar.pmod/Gregorian.pmod:1.3
Rev: lib/7.6/modules/Calendar.pmod/ISO.pmod:1.3
Rev: lib/7.6/modules/Calendar.pmod/YMD.pike:1.3
Rev: lib/7.6/modules/Calendar.pmod/module.pmod:1.2
Rev: lib/7.6/modules/Image.pmod/module.pmod:1.2
Rev: lib/7.6/modules/Parser.pmod/XML.pmod/module.pmod:1.2
Rev: lib/7.6/modules/Protocols.pmod/LDAP.pmod/client.pike:1.5
Rev: lib/7.6/modules/Sql.pmod/Sql.pike:1.4
Rev: lib/7.6/modules/__default.pmod:1.13
Rev: lib/master.pike.in:1.446
Rev: src/modules/Gz/module.pmod.in:1.17
Rev: src/modules/Java/module.pmod.in:1.4
Rev: src/modules/Oracle/module.pmod.in:1.14
Rev: src/modules/Regexp/module.pmod.in:1.11
Rev: src/modules/_Regexp_PCRE/module.pmod.in:1.12
Rev: src/testsuite.in:1.833

1: - // $Id: module.pmod.in,v 1.16 2005/04/02 19:10:23 nilsson Exp $ + // $Id: module.pmod.in,v 1.17 2008/06/28 17:07:19 nilsson Exp $   #pike __REAL_VERSION__      inherit @module@;
8:   //! Low-level implementation of read/write support for GZip files   class _file {    -  static private Stdio.Stream f; -  static private inflate inf; -  static private deflate def; -  static private int level, strategy; -  static private string read_buf; -  static private int file_pos, crc, write_mode, at_eof; +  protected private Stdio.Stream f; +  protected private inflate inf; +  protected private deflate def; +  protected private int level, strategy; +  protected private string read_buf; +  protected private int file_pos, crc, write_mode, at_eof;       constant SEEK_SET = 0;    constant SEEK_CUR = 1;    constant SEEK_END = 2;    -  static int check_header(string|void buf) +  protected int check_header(string|void buf)    {    int magic1, magic2, method, flags, len;   
72:    return 1;    }    -  static int make_header() +  protected int make_header()    {    return f->write(sprintf("%1c%1c%1c%1c%4c%1c%1c",    0x1f, 0x8b, 8, 0, 0, 0, 3)) == 10;
123:    }       //! Opens a gzip file for reading. -  static void create(void|string|Stdio.Stream gzFile, void|string mode) +  protected void create(void|string|Stdio.Stream gzFile, void|string mode)    {    if(!zero_type(gzFile) && !open(gzFile, mode))    error("Failed to open file.\n");
149:    return !oldf || oldf->close();    }    -  static int fill_read_buffer(string|void data) +  protected int fill_read_buffer(string|void data)    {    if(at_eof)    return 0;
329:    //! mode for the file. Defaults to "rb".    //! @seealso    //! @[open] @[Stdio.File] -  static void create(mixed ... args) { +  protected void create(mixed ... args) {    ::create(@args);       if(sizeof(args)) {
337:    }    }    -  static string _sprintf(int t) +  protected string _sprintf(int t)    {    switch(t) {    case 'O':
355:    return ::close();    }    -  static void destroy() { +  protected void destroy() {    close();    }