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
b7df1bcc
Commit
b7df1bcc
authored
25 years ago
by
Fredrik Hübinette (Hubbe)
Browse files
Options
Downloads
Patches
Plain Diff
some bugfixes..
Rev: bin/export.pike:1.31 Rev: bin/install.pike:1.50 Rev: bin/test_pike.pike:1.40
parent
9a1a7e74
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/export.pike
+2
-2
2 additions, 2 deletions
bin/export.pike
bin/install.pike
+13
-3
13 additions, 3 deletions
bin/install.pike
bin/test_pike.pike
+12
-2
12 additions, 2 deletions
bin/test_pike.pike
with
27 additions
and
7 deletions
bin/export.pike
+
2
−
2
View file @
b7df1bcc
#!/usr/local/bin/pike
#!/usr/local/bin/pike
/* $Id: export.pike,v 1.3
0
2000/03/27
0
0:
45:2
5 hubbe Exp $ */
/* $Id: export.pike,v 1.3
1
2000/03/27
2
0:
29:4
5 hubbe Exp $ */
#include <simulate.h>
#include <simulate.h>
import Stdio;
import Stdio;
...
@@ -205,7 +205,7 @@ int main(int argc, string *argv)
...
@@ -205,7 +205,7 @@ int main(int argc, string *argv)
object o=Stdio.File();
object o=Stdio.File();
int first=1;
int first=1;
foreach(files/50,files)
foreach(files/50
.0
,files)
{
{
if(Process.create_process(({"tar",
if(Process.create_process(({"tar",
first?"cvf":"rvf",
first?"cvf":"rvf",
...
...
This diff is collapsed.
Click to expand it.
bin/install.pike
+
13
−
3
View file @
b7df1bcc
...
@@ -24,7 +24,17 @@ int istty()
...
@@ -24,7 +24,17 @@ int istty()
if(!istty_cache)
if(!istty_cache)
{
{
istty_cache=!!Stdio.stdin->tcgetattr();
istty_cache=!!Stdio.stdin->tcgetattr();
if(!istty_cache) istty_cache=-1;
if(!istty_cache)
{
istty_cache=-1;
}else{
switch(getenv("TERM"))
{
case "dumb":
case "emacs":
istty_cache=-1;
}
}
}
}
return istty_cache>0;
return istty_cache>0;
#endif
#endif
...
@@ -514,7 +524,7 @@ done
...
@@ -514,7 +524,7 @@ done
string tmpmsg=".";
string tmpmsg=".";
string tararg="cf";
string tararg="cf";
foreach(to_export/50, array files_to_tar)
foreach(to_export/50
.0
, array files_to_tar)
{
{
status("Creating",tmpname+".tar",tmpmsg);
status("Creating",tmpname+".tar",tmpmsg);
tmpmsg+=".";
tmpmsg+=".";
...
@@ -1127,7 +1137,7 @@ void do_install()
...
@@ -1127,7 +1137,7 @@ void do_install()
foreach(to_dump, string mod) rm(mod+".o");
foreach(to_dump, string mod) rm(mod+".o");
/* Dump 50 modules at a time */
/* Dump 50 modules at a time */
write("\n");
write("\n");
foreach(to_dump/50,to_dump)
foreach(to_dump/50
.0
,to_dump)
{
{
write(" ");
write(" ");
Process.create_process( ({pike,
Process.create_process( ({pike,
...
...
This diff is collapsed.
Click to expand it.
bin/test_pike.pike
+
12
−
2
View file @
b7df1bcc
#!/usr/local/bin/pike
#!/usr/local/bin/pike
/* $Id: test_pike.pike,v 1.
39
2000/03/2
5
2
2:45:59
hubbe Exp $ */
/* $Id: test_pike.pike,v 1.
40
2000/03/2
7
2
0:29:45
hubbe Exp $ */
import Stdio;
import Stdio;
...
@@ -27,7 +27,17 @@ int istty()
...
@@ -27,7 +27,17 @@ int istty()
if(!istty_cache)
if(!istty_cache)
{
{
istty_cache=!!Stdio.stdin->tcgetattr();
istty_cache=!!Stdio.stdin->tcgetattr();
if(!istty_cache) istty_cache=-1;
if(!istty_cache)
{
istty_cache=-1;
}else{
switch(getenv("TERM"))
{
case "dumb":
case "emacs":
istty_cache=-1;
}
}
}
}
return istty_cache>0;
return istty_cache>0;
#endif
#endif
...
...
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