Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
refactor without printerr
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Jun 14, 2010
1 parent 83982a0 commit fd67126
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
5 changes: 3 additions & 2 deletions wmls2pbc.pir
Expand Up @@ -18,7 +18,6 @@ wmlsd, wmls2pir, wmlsi
=cut

.HLL 'wmlscript'
.loadlib 'io_ops'

.sub 'main' :main
.param pmc argv
Expand Down Expand Up @@ -50,7 +49,9 @@ wmlsd, wmls2pir, wmlsi
L1:
end
USAGE:
printerr "Usage: parrot wmls2pbc.pir filename\n"
.local pmc stderr
stderr = getstderr
print stderr, "Usage: parrot wmls2pbc.pir filename\n"
exit -1
_handler:
.local pmc e
Expand Down
5 changes: 3 additions & 2 deletions wmls2pir.pir
Expand Up @@ -18,7 +18,6 @@ wmlsd, wmls2pbc, wmlsi
=cut

.HLL 'wmlscript'
.loadlib 'io_ops'

.sub 'main' :main
.param pmc argv
Expand Down Expand Up @@ -46,7 +45,9 @@ wmlsd, wmls2pbc, wmlsi
L1:
end
USAGE:
printerr "Usage: parrot wmls2pir.pir filename\n"
.local pmc stderr
stderr = getstderr
print stderr, "Usage: parrot wmls2pir.pir filename\n"
exit -1
_handler:
.local pmc e
Expand Down
1 change: 0 additions & 1 deletion wmlscript/WMLScript.pir
Expand Up @@ -2,7 +2,6 @@
# $Id$

.HLL 'wmlscript'
.loadlib 'io_ops'
.loadlib 'wmls_group'
.loadlib 'wmls_ops'

Expand Down
1 change: 0 additions & 1 deletion wmlscript/library/wmlsfloat.pir
Expand Up @@ -15,7 +15,6 @@ See "WMLScript Standard Libraries Specification", section 8 "Float".
=cut

.HLL 'wmlscript'
.loadlib 'io_ops'
.loadlib 'wmls_group'
.loadlib 'wmls_ops'
.loadlib 'trans_ops'
Expand Down
4 changes: 3 additions & 1 deletion wmlscript/wmlsstdlibs.pir
Expand Up @@ -138,7 +138,9 @@ helper for CALL_URL* opcodes.
$S1 = err
$S0 .= $S1
$S0 .= ")\n"
printerr $S0
.local pmc stderr
stderr = getstderr
print stderr, $S0
.return ('')
.end

Expand Down
5 changes: 3 additions & 2 deletions wmlsd.pir
Expand Up @@ -18,7 +18,6 @@ parrot-wmlsi
=cut

.HLL 'wmlscript'
.loadlib 'io_ops'

.sub 'main' :main
.param pmc argv
Expand All @@ -44,7 +43,9 @@ parrot-wmlsi
L1:
end
USAGE:
printerr "Usage: parrot wmlsd.pbc filename\n"
.local pmc stderr
stderr = getstderr
print stderr, "Usage: parrot wmlsd.pbc filename\n"
exit -1
_handler:
.local pmc e
Expand Down
5 changes: 3 additions & 2 deletions wmlsi.pir
Expand Up @@ -19,7 +19,6 @@ parrot-wmlsd
=cut

.HLL 'wmlscript'
.loadlib 'io_ops'

.sub 'main' :main
.param pmc argv
Expand Down Expand Up @@ -75,7 +74,9 @@ parrot-wmlsd
L1:
end
USAGE:
printerr "Usage: parrot wmlsi.pbc filename entry\n"
.local pmc stderr
stderr = getstderr
print stderr, "Usage: parrot wmlsi.pbc filename entry\n"
exit -1
_handler:
.local pmc e
Expand Down

0 comments on commit fd67126

Please sign in to comment.