Skip to content

Commit b19dbc1

Browse files
committed
Merge branch 'master' into target-pbc
2 parents 2d6a387 + c6832d5 commit b19dbc1

File tree

7 files changed

+24
-17
lines changed

7 files changed

+24
-17
lines changed

src/NQP/Actions.pm

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,11 @@ class NQP::Actions is HLL::Actions {
225225
# this in the setting as Regex depends on the setting).
226226
unless %*COMPILING<%?OPTIONS><setting> eq 'NULL' {
227227
import_HOW_exports($SETTING);
228-
if %*COMPILING<%?OPTIONS><old-regex-lib> {
229-
$*W.load_module('NQPRegex', $*GLOBALish);
230-
}
231228
unless %*COMPILING<%?OPTIONS><no-regex-lib> {
232-
$*W.load_module('QRegex', $*GLOBALish);
233-
unless %*COMPILING<%?OPTIONS><old-regex-lib> {
229+
if %*COMPILING<%?OPTIONS><custom-regex-lib> -> $lib {
230+
$*W.load_module($lib, $*GLOBALish);
231+
}
232+
else {
234233
$*W.load_module('NQPP6QRegex', $*GLOBALish);
235234
}
236235
}

src/NQP/Compiler.pm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ my @clo := $nqpcomp.commandline_options();
1616
@clo.push('module-path=s');
1717
@clo.push('vmlibs=s');
1818
@clo.push('no-regex-lib');
19-
@clo.push('old-regex-lib');
2019
@clo.push('dynext=s');
2120
@clo.push('stable-sc');
2221

src/QAST/Stmt.nqp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,7 @@ class QAST::Stmt is QAST::Node {
2424
}
2525
$result
2626
}
27+
method dump_extra_node_info() {
28+
nqp::defined($!resultchild) ?? ":resultchild($!resultchild))" !! ''
29+
}
2730
}

src/QAST/Stmts.nqp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,8 @@ class QAST::Stmts is QAST::Node {
2424
}
2525
$result
2626
}
27+
28+
method dump_extra_node_info() {
29+
nqp::defined($!resultchild) ?? ":resultchild($!resultchild))" !! ''
30+
}
2731
}

src/QAST/Var.nqp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class QAST::Var is QAST::Node {
2020
}
2121

2222
method dump_extra_node_info() {
23-
"$!scope $!name";
23+
$!decl
24+
?? "$!scope $!name :decl"
25+
!! "$!scope $!name";
2426
}
2527
}

tools/build/Makefile.in

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
PARROT_ARGS = -L. -X.
55

66
# values from parrot_config
7-
PARROT_BIN_DIR = "@bindir@"
8-
PARROT_LIB_SHARED = "@libparrot_shared@"
9-
PARROT_VERSION = "@versiondir@"
10-
PARROT_INCLUDE_DIR = "@includedir@$(PARROT_VERSION)"
11-
PARROT_LIB_DIR = "@libdir@$(PARROT_VERSION)"
12-
PARROT_SRC_DIR = "@srcdir@$(PARROT_VERSION)"
7+
PARROT_BIN_DIR = @bindir@
8+
PARROT_LIB_SHARED = @libparrot_shared@
9+
PARROT_VERSION = @versiondir@
10+
PARROT_INCLUDE_DIR = @includedir@$(PARROT_VERSION)
11+
PARROT_LIB_DIR = @libdir@$(PARROT_VERSION)
12+
PARROT_SRC_DIR = @srcdir@$(PARROT_VERSION)
1313
PARROT_LIBRARY_DIR = $(PARROT_LIB_DIR)/library
1414
NQP_LANG_DIR = $(PARROT_LIB_DIR)/languages/nqp
1515
HAS_ICU = @has_icu@
@@ -24,7 +24,7 @@ LIBPARROT = @inst_libparrot_ldflags@
2424
O = @o@
2525
A = @a@
2626
LOAD_EXT = @load_ext@
27-
PERL = "@perl@"
27+
PERL = @perl@
2828
CP = @cp@
2929
MV = @mv@
3030
RM_F = @rm_f@

tools/lib/NQP/Configure.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ sub read_config {
8383
my %config = ();
8484
for my $file (@config_src) {
8585
no warnings;
86-
if (open my $CONFIG, '-|', qq["$file" --show-config]) {
86+
if (open my $CONFIG, '-|', "$file --show-config") {
8787
while (<$CONFIG>) {
8888
if (/^([\w:]+)=(.*)/) { $config{$1} = $2 }
8989
}
@@ -132,7 +132,7 @@ END
132132
}
133133
close($PARROT_CONFIG) or die $!;
134134
}
135-
elsif (open my $PARROT, '-|', qq["$file" parrot-config.pir]) {
135+
elsif (open my $PARROT, '-|', "$file parrot-config.pir") {
136136
while (<$PARROT>) {
137137
if (/^([\w:]+)=(.*)/) { $config{$1} = $2 }
138138
}
@@ -290,7 +290,7 @@ sub gen_nqp {
290290
return $nqp_exe;
291291
}
292292

293-
my @cmd = ($^X, 'Configure.pl', qq[--with-parrot="$with_parrot"],
293+
my @cmd = ($^X, 'Configure.pl', "--with-parrot=$with_parrot",
294294
"--make-install");
295295
print "Building NQP ...\n";
296296
chdir("$startdir/nqp");

0 commit comments

Comments
 (0)