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
c084264e
Commit
c084264e
authored
25 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Indexing of a joinnode can return a program too.
Rev: lib/master.pike.in:1.97
parent
d032417b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/master.pike.in
+7
-7
7 additions, 7 deletions
lib/master.pike.in
with
7 additions
and
7 deletions
lib/master.pike.in
+
7
−
7
View file @
c084264e
/* -*- Pike -*-
/* -*- Pike -*-
*
*
* $Id: master.pike.in,v 1.9
6
2000/0
1/27 23:07:27 h
ubb
e
Exp $
* $Id: master.pike.in,v 1.9
7
2000/0
2/04 11:27:21 gr
ubb
a
Exp $
*
*
* Master-file for Pike.
* Master-file for Pike.
*
*
...
@@ -650,7 +650,7 @@ class joinnode
...
@@ -650,7 +650,7 @@ class joinnode
joined_modules = _joined_modules;
joined_modules = _joined_modules;
}
}
static object|mapping ind(string index)
static object|mapping
|program
ind(string index)
{
{
array(mixed) res = ({});
array(mixed) res = ({});
foreach(joined_modules, object|mapping o)
foreach(joined_modules, object|mapping o)
...
@@ -678,9 +678,9 @@ class joinnode
...
@@ -678,9 +678,9 @@ class joinnode
return UNDEFINED;
return UNDEFINED;
}
}
object|mapping `[](string index)
object|mapping
|program
`[](string index)
{
{
object|mapping ret;
object|mapping
|program
ret;
if (!zero_type(ret = cache[index])) {
if (!zero_type(ret = cache[index])) {
if (ret != ZERO_TYPE) {
if (ret != ZERO_TYPE) {
return ret;
return ret;
...
@@ -705,7 +705,7 @@ class joinnode
...
@@ -705,7 +705,7 @@ class joinnode
if (_cache_full) {
if (_cache_full) {
return;
return;
}
}
foreach(joined_modules, object|mapping o) {
foreach(joined_modules, object|mapping
|program
o) {
foreach(indices(o), string index) {
foreach(indices(o), string index) {
if (zero_type(cache[index])) {
if (zero_type(cache[index])) {
`[](index);
`[](index);
...
@@ -1101,7 +1101,7 @@ string trim_file_name(string s)
...
@@ -1101,7 +1101,7 @@ string trim_file_name(string s)
}
}
/*
/*
* This function is called whenever a compiling error occurs
,
* This function is called whenever a compiling error occurs
.
* Nothing strange about it.
* Nothing strange about it.
* Note that previous_object cannot be trusted in ths function, because
* Note that previous_object cannot be trusted in ths function, because
* the compiler calls this function.
* the compiler calls this function.
...
@@ -1131,7 +1131,7 @@ void compile_error(string file,int line,string err)
...
@@ -1131,7 +1131,7 @@ void compile_error(string file,int line,string err)
}
}
/*
/*
* This function is called whenever a compiling
error
occurs
,
* This function is called whenever a compiling
warning
occurs
.
* Nothing strange about it.
* Nothing strange about it.
* Note that previous_object cannot be trusted in ths function, because
* Note that previous_object cannot be trusted in ths function, because
* the compiler calls this function.
* the compiler calls this function.
...
...
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