Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
22c94f9d
Commit
22c94f9d
authored
12 years ago
by
Tobias S. Josefowitz
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/dumpmaster.pike
+4
-4
4 additions, 4 deletions
src/dumpmaster.pike
src/modules/Inotify/inotify.cmod
+1
-1
1 addition, 1 deletion
src/modules/Inotify/inotify.cmod
with
5 additions
and
5 deletions
src/dumpmaster.pike
+
4
−
4
View file @
22c94f9d
...
@@ -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);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/modules/Inotify/inotify.cmod
+
1
−
1
View file @
22c94f9d
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment