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

Commit

Permalink
explicit load stdlibs after load_language
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Sep 6, 2009
1 parent 9f8e27f commit 5a856f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/script.pir
Expand Up @@ -103,6 +103,7 @@
$P0 = get_hll_global '@stdlibs'
unless null $P0 goto L1
load_language 'wmlscript'
load_stdlibs()
L1:
PIRCODE

Expand Down
3 changes: 1 addition & 2 deletions src/wmlsstdlibs.pir
Expand Up @@ -21,8 +21,7 @@ See "WMLScript Standard Libraries Specification".

=cut

.sub '__onload' :load :anon
# print "__onload (wmlsstdlibs.pir)\n"
.sub 'load_stdlibs'
load_bytecode 'library/wmlslang.pbc'
load_bytecode 'library/wmlsfloat.pbc'
load_bytecode 'library/wmlsstring.pbc'
Expand Down
1 change: 1 addition & 0 deletions wmlsi.pir
Expand Up @@ -23,6 +23,7 @@ parrot-wmlsd
.sub 'main' :main
.param pmc argv
load_language 'wmlscript'
load_stdlibs()
.local int argc
.local string progname
.local string filename
Expand Down

0 comments on commit 5a856f7

Please sign in to comment.