Branch: Tag:

2014-12-04

2014-12-04 19:23:37 by Tobias S. Josefowitz <tobij@tobij.de>

Let Inotify and dumpmaster.pike know about the file -> _Stdio move

8:      array encoded=({});    - private function werror = _static_modules.files()->_stderr->write; + private function werror = _static_modules._Stdio()->_stderr->write;      mapping get_default_module()   {
41:      string read_file(string s)   { -  return _static_modules.files()->Fd(fakeroot(s),"r")->read(); +  return _static_modules._Stdio()->Fd(fakeroot(s),"r")->read();   }      program compile_file(string file)
64:    switch(x)    {   #define CONST(X) case X: return #X -  CONST(_static_modules.files.Stat); +  CONST(_static_modules._Stdio.Stat);    CONST(_static_modules.Builtin.__backend);    }    encoded+=({x});
79:       program p=compile_file(argv[-1]);    string s=encode_value(p, Codec()); -  _static_modules.files()->Fd(fakeroot(argv[-1]) + ".o","wct")->write(s); +  _static_modules._Stdio()->Fd(fakeroot(argv[-1]) + ".o","wct")->write(s);    exit(0);   }      mixed resolv() { return UNDEFINED; }