Skip to content

Commit 1572977

Browse files
committed
a few simple pir:: to nqp:: changes, and remove trailing whitespace
1 parent 5a7d782 commit 1572977

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/HLL/Compiler.pm

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class HLL::Compiler {
6262
}
6363

6464
my sub value_type($value) {
65-
pir::isa($value, 'NameSpace')
65+
pir::isa($value, 'NameSpace')
6666
?? 'namespace'
6767
!! (pir::isa($value, 'Sub') ?? 'sub' !! 'var')
6868
}
@@ -139,7 +139,7 @@ class HLL::Compiler {
139139
}
140140

141141
method autoprint($value) {
142-
pir::say(~$value)
142+
nqp::say(~$value)
143143
unless (pir::getinterp__P()).stdout_handle().tell() > $*AUTOPRINTPOS;
144144
}
145145

@@ -163,7 +163,7 @@ class HLL::Compiler {
163163

164164
last if pir::isnull($code);
165165
unless pir::defined($code) {
166-
pir::print("\n");
166+
nqp::print("\n");
167167
last;
168168
}
169169

@@ -178,7 +178,7 @@ class HLL::Compiler {
178178
{
179179
$output := self.eval($code, :outer_ctx($save_ctx), |%adverbs);
180180
CATCH {
181-
pir::print(~$! ~ "\n");
181+
nqp::print(~$! ~ "\n");
182182
next;
183183
}
184184
};
@@ -195,7 +195,7 @@ class HLL::Compiler {
195195
if !$target {
196196
self.autoprint($output);
197197
} elsif $target eq 'pir' {
198-
pir::say($output);
198+
nqp::say($output);
199199
} else {
200200
self.dumper($output, $target, |%adverbs);
201201
}
@@ -420,7 +420,7 @@ class HLL::Compiler {
420420
try {
421421
$res := $p.parse(@args);
422422
CATCH {
423-
pir::say($_);
423+
nqp::say($_);
424424
self.usage;
425425
pir::exit(1);
426426
}
@@ -575,24 +575,24 @@ class HLL::Compiler {
575575
if $name {
576576
say($name);
577577
}
578-
pir::say($!usage);
578+
nqp::say($!usage);
579579
pir::exit__vi(0);
580580
}
581581

582582
method version() {
583583
my $version := %!config<version>;
584584
my $parver := %parrot_config<VERSION>;
585585
my $parrev := %parrot_config<git_describe> // '(unknown)';
586-
pir::say("This is $!language version $version built on parrot $parver revision $parrev");
586+
nqp::say("This is $!language version $version built on parrot $parver revision $parrev");
587587
pir::exit__vi(0);
588588
}
589589

590590
method show-config() {
591591
for %parrot_config {
592-
pir::say('parrot::' ~ $_.key ~ '=' ~ $_.value);
592+
nqp::say('parrot::' ~ $_.key ~ '=' ~ $_.value);
593593
}
594594
for %!config {
595-
pir::say($!language ~ '::' ~ $_.key ~ '=' ~ $_.value);
595+
nqp::say($!language ~ '::' ~ $_.key ~ '=' ~ $_.value);
596596
}
597597
pir::exit__vi(0);
598598
}

src/core/IO.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ sub spew($filename, $contents) {
4949

5050
sub print(*@args) {
5151
for @args {
52-
pir::print($_);
52+
nqp::print($_);
5353
}
5454
1;
5555
}

0 commit comments

Comments
 (0)