Skip to content
Snippets Groups Projects
Commit 22c94f9d authored by Tobias S. Josefowitz's avatar Tobias S. Josefowitz
Browse files

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

parent 29f9a9f3
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ string fr; ...@@ -8,7 +8,7 @@ string fr;
array encoded=({}); array encoded=({});
private function werror = _static_modules.files()->_stderr->write; private function werror = _static_modules._Stdio()->_stderr->write;
mapping get_default_module() mapping get_default_module()
{ {
...@@ -41,7 +41,7 @@ string fakeroot(string s) ...@@ -41,7 +41,7 @@ string fakeroot(string s)
string read_file(string s) 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) program compile_file(string file)
...@@ -64,7 +64,7 @@ class Codec ...@@ -64,7 +64,7 @@ class Codec
switch(x) switch(x)
{ {
#define CONST(X) case X: return #X #define CONST(X) case X: return #X
CONST(_static_modules.files.Stat); CONST(_static_modules._Stdio.Stat);
CONST(_static_modules.Builtin.__backend); CONST(_static_modules.Builtin.__backend);
} }
encoded+=({x}); encoded+=({x});
...@@ -79,7 +79,7 @@ void _main(array(string) argv, array(string) env) ...@@ -79,7 +79,7 @@ void _main(array(string) argv, array(string) env)
program p=compile_file(argv[-1]); program p=compile_file(argv[-1]);
string s=encode_value(p, Codec()); 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); exit(0);
} }
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "fdlib.h" #include "fdlib.h"
#include "pike_threadlib.h" #include "pike_threadlib.h"
#include "modules/files/file.h" #include "modules/_Stdio/file.h"
#ifdef HAVE_SYS_INOTIFY_H #ifdef HAVE_SYS_INOTIFY_H
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment