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
8af96b0a
Commit
8af96b0a
authored
27 years ago
by
Fredrik Hübinette (Hubbe)
Browse files
Options
Downloads
Patches
Plain Diff
did some fixes to make replace_master easier
Rev: lib/master.pike:1.50
parent
f8663d6c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/master.pike
+10
-6
10 additions, 6 deletions
lib/master.pike
with
10 additions
and
6 deletions
lib/master.pike
+
10
−
6
View file @
8af96b0a
/* $Id: master.pike,v 1.
49
1997/09/
09 03:40:28
hubbe Exp $
/* $Id: master.pike,v 1.
50
1997/09/
16 00:30:15
hubbe Exp $
*
* Master-file for Pike.
*/
...
...
@@ -253,18 +253,22 @@ object cast_to_object(string oname, string current_file)
class dirnode
{
string dirname;
object tm;
mapping cache=([]);
void create(string name) { dirname=name; }
void create(string name, object the_master)
{
dirname=name;
tm=the_master;
}
object|program ind(string index)
{
object m=((object)"/master");
if(mixed o=m->findmodule(dirname+"/module"))
if(mixed o=tm->findmodule(dirname+"/module"))
{
if(mixed tmp=o->_module_value) o=tmp;
if(o=o[index]) return o;
}
index = dirname+"/"+index;
if(object o=
((object)"/master")
->findmodule(index))
if(object o=
tm
->findmodule(index))
{
if(mixed tmp=o->_module_value) o=tmp;
return o;
...
...
@@ -298,7 +302,7 @@ object findmodule(string fullname)
if(mixed *stat=file_stat(fullname+".pmod"))
{
if(stat[1]==-2)
return fc[fullname]=dirnode(fullname+".pmod");
return fc[fullname]=dirnode(fullname+".pmod"
,this_object()
);
}
if(o=low_cast_to_object(fullname+".pmod","/."))
...
...
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