Skip to content
Snippets Groups Projects
Commit 1242e3c2 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

minor cleanup

Rev: src/dumpmodule.pike:1.12
parent fcd5323c
No related branches found
No related tags found
No related merge requests found
#!/usr/local/bin/pike #!/usr/local/bin/pike
program p; int quiet=0;
program p; /* program being dumped */
#ifdef PIKE_FAKEROOT #ifdef PIKE_FAKEROOT
string fakeroot(string s) string fakeroot(string s)
...@@ -141,14 +142,6 @@ class Codec ...@@ -141,14 +142,6 @@ class Codec
} }
} }
int quiet=0;
constant progress_width = 45;
int progress_bar = 0;
int progress_offset = 0;
int progress_max = 0;
Stdio.File logfile; Stdio.File logfile;
class Handler class Handler
...@@ -238,6 +231,12 @@ void dumpit(string file) ...@@ -238,6 +231,12 @@ void dumpit(string file)
} }
} }
constant progress_width = 45;
int progress_bar = 0;
int progress_offset = 0;
int progress_max = 0;
void update_progress(string name, int cur, int max) void update_progress(string name, int cur, int max)
{ {
float ratio = (float)cur/(float)max; float ratio = (float)cur/(float)max;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment