pike.git / src / dumpmaster.pike

version» Context lines:

pike.git/src/dumpmaster.pike:33:    return _static_modules.files()->Fd(fakeroot(s),"r")->read();   }      program compile_file(string file)   {    return compile(cpp(read_file(file),file));   }      class Codec   { -  string nameof(string x) +  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); +  }    encoded+=({x});    return UNDEFINED;    }   }   void _main(string *argv, string *env)   {    foreach(argv[1..sizeof(argv)-2], string f)    sscanf(f,"--fakeroot=%s",fr);       program p=compile_file(argv[-1]);    string s=encode_value(p, Codec());    _static_modules.files()->Fd(fakeroot(argv[-1]) + ".o","wct")->write(s);    exit(0);   }         mixed resolv() { return ([])[0]; }