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

Commit

Permalink
refactor with the opcode load_language
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Sep 6, 2009
1 parent a99bd85 commit 7809a4f
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions config/makefiles/root.in
Expand Up @@ -73,7 +73,7 @@ GEN_PIR := \
build: \
$(WMLSCRIPT_OPS) \
$(WMLSCRIPT_GROUP) \
library/WMLScript.pbc \
wmlscript/wmlscript.pbc \
$(PBCS)

all: build wmlsi@exe@ wmlsd@exe@ installable
Expand All @@ -96,9 +96,9 @@ wmlsd.pbc: wmlsd.pir
wmlsd@exe@: wmlsd.pbc
$(PBC_TO_EXE) wmlsd.pbc

library/WMLScript.pbc: src/WMLScript.pir \
wmlscript/wmlscript.pbc: src/WMLScript.pir \
src/script.pir src/wmlsstdlibs.pir $(GEN_PIR)
$(PARROT) -o library/WMLScript.pbc src/WMLScript.pir
$(PARROT) -o wmlscript/wmlscript.pbc src/WMLScript.pir

src/opcode.pir: src/translation.rules build/translator.pl \
build/SRM/Stack.pm build/SRM/Register.pm
Expand Down
2 changes: 1 addition & 1 deletion src/script.pir
Expand Up @@ -102,7 +102,7 @@

$P0 = get_hll_global '@stdlibs'
unless null $P0 goto L1
load_bytecode 'library/WMLScript.pbc'
load_language 'wmlscript'
L1:
PIRCODE

Expand Down
2 changes: 1 addition & 1 deletion wmls2pbc.pir
Expand Up @@ -21,7 +21,7 @@ wmlsd, wmls2pir, wmlsi

.sub 'main' :main
.param pmc argv
load_bytecode 'library/WMLScript.pbc'
load_language 'wmlscript'
.local int argc
.local string progname
.local string filename
Expand Down
2 changes: 1 addition & 1 deletion wmls2pir.pir
Expand Up @@ -21,7 +21,7 @@ wmlsd, wmls2pbc, wmlsi

.sub 'main' :main
.param pmc argv
load_bytecode 'library/WMLScript.pbc'
load_language 'wmlscript'
.local int argc
.local string progname
.local string filename
Expand Down
2 changes: 2 additions & 0 deletions wmlscript/.gitignore
@@ -0,0 +1,2 @@

*.pbc
2 changes: 1 addition & 1 deletion wmlsd.pir
Expand Up @@ -21,7 +21,7 @@ parrot-wmlsi

.sub 'main' :main
.param pmc argv
load_bytecode 'library/WMLScript.pbc'
load_language 'wmlscript'
.local int argc
.local string progname
.local string filename
Expand Down
2 changes: 1 addition & 1 deletion wmlsi.pir
Expand Up @@ -22,7 +22,7 @@ parrot-wmlsd

.sub 'main' :main
.param pmc argv
load_bytecode 'library/WMLScript.pbc'
load_language 'wmlscript'
.local int argc
.local string progname
.local string filename
Expand Down

0 comments on commit 7809a4f

Please sign in to comment.