pike.git / src / dumpmaster.pike

version» Context lines:

pike.git/src/dumpmaster.pike: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: dumpmaster.pike,v 1.14 2004/07/04 17:23:02 srb Exp $ + || $Id: dumpmaster.pike,v 1.15 2006/03/17 18:36:44 grubba Exp $   */      string fr;      array encoded=({});      private function werror = _static_modules.files()->_stderr->write;      void handle_error(mixed err)   {
pike.git/src/dumpmaster.pike:40:    return _static_modules.files()->Fd(fakeroot(s),"r")->read();   }      program compile_file(string file)   {    return compile(cpp(read_file(file),file));   }      class Codec   { +  mixed encode_object(object o) +  { +  if (o->_encode) return o->_encode(); +  werror("Can't encode object %O without _encode function.\n", o); +  throw(({ "No _encode().\n", backtrace() })); +  } +     string nameof(mixed x)    {    if(mixed tmp=search(all_constants(),x)) return tmp;    switch(x)    {   #define CONST(X) case X: return #X    CONST(_static_modules.files.Stat);    CONST(_static_modules.Builtin.__backend);    }    encoded+=({x});