Skip to content

Commit

Permalink
Switch some current "get_hll_globals" into "find_contextual".
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Sep 4, 2009
1 parent a6a4f57 commit 9f2b09c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/builtins/eval.pir
Expand Up @@ -79,7 +79,7 @@ itself can be found in src/builtins/control.pir.
have_name:
## see if we loaded this already
.local pmc inc_hash
inc_hash = get_hll_global '%INC'
inc_hash = '!find_contextual'('%*INC')
$I0 = exists inc_hash[name]
unless $I0 goto require_name
$I0 = defined inc_hash[name]
Expand All @@ -88,7 +88,7 @@ itself can be found in src/builtins/control.pir.
require_name:
## loop through @INC
.local pmc inc_it
$P0 = get_hll_global '@INC'
$P0 = '!find_contextual'('@*INC')
inc_it = iter $P0
inc_loop:
unless inc_it goto inc_end
Expand Down
2 changes: 1 addition & 1 deletion src/builtins/io.pir
Expand Up @@ -21,7 +21,7 @@ Parses a format string and prints formatted output according to it.
.sub 'printf'
.param pmc args :slurpy
.local pmc it, out
out = get_hll_global '$OUT'
out = '!find_contextual'('$*OUT')
$S0 = 'sprintf'(args :flat)
out.'print'($S0)
.return (1)
Expand Down

0 comments on commit 9f2b09c

Please sign in to comment.