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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
b5116ece
Commit
b5116ece
authored
May 31, 2002
by
Martin Nilsson
Browse files
Options
Downloads
Patches
Plain Diff
Makes better get_text output.
Rev: lib/modules/Tools.pmod/Legal.pmod/License.pmod/module.pmod:1.2
parent
f4dd7289
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/modules/Tools.pmod/Legal.pmod/License.pmod/module.pmod
+8
-4
8 additions, 4 deletions
lib/modules/Tools.pmod/Legal.pmod/License.pmod/module.pmod
with
8 additions
and
4 deletions
lib/modules/Tools.pmod/Legal.pmod/License.pmod/module.pmod
+
8
−
4
View file @
b5116ece
#pike __REAL_VERSION__
#pike __REAL_VERSION__
// $Id: module.pmod,v 1.
1
2002/05/31
16:20:18
nilsson Exp $
// $Id: module.pmod,v 1.
2
2002/05/31
22:24:27
nilsson Exp $
//! Returns all the licenses as a string, suitable for
//! Returns all the licenses as a string, suitable for
//! saving as a file.
//! saving as a file.
string get_text() {
string get_text() {
array licenses = sort(indices(Tools.Legal.License)) -
array licenses = sort(indices(Tools.Legal.License)) -
({ "get_text", "module" });
({ "get_text", "module" });
string ret = sprintf("%-=80s\n\n",
array list = map(licenses,
lambda(string lic) {
return lic + " (" + Tools.Legal.License[lic]->get_name() + ")";
});
string ret = sprintf("%-=80s\n",
"The Pike source is distributed under " +
"The Pike source is distributed under " +
String.implode_nicely(li
cense
s) + ". "
String.implode_nicely(lis
t
) + ". "
"These licenses are listed in order below.");
"These licenses are listed in order below.");
foreach(licenses, string license)
foreach(licenses, string license)
ret += "\n\
f
" + Tools.Legal.License[license]->get_text();
ret += "\n\
n\f\n
" + Tools.Legal.License[license]->get_text();
return ret;
return ret;
}
}
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