Skip to content

Commit 5980b21

Browse files
Sync stuff
1 parent 1c4f989 commit 5980b21

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

faster.regex.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ sub dispatch_file_scope_stm {
2020
}
2121

2222
sub register_taggable {
23-
push_decl($lastpos_dispatch, $+{tagtype} . " " . $+{identtag})
23+
push_decl($lastcurpos, $+{tagtype} . " " . $+{identtag})
2424
}
2525

2626
sub register_normal_decl {
@@ -29,5 +29,5 @@ sub register_normal_decl {
2929
$matches[-1]{'ident'} = $ident;
3030
#CORE::print ("registering " . $ident . " " . $matches[-1]{typedefkey} . "\n");
3131
register_decl($matches[-1]);
32-
push_decl($lastpos_dispatch, $ident)
32+
push_decl($lastcurpos, $ident)
3333
}

parse.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ sub findnearest {
576576

577577
sub getidtostor {
578578
my $ident = $_[0];
579-
my $currpos = $currexecinitialpos;
579+
my $currpos = pos();
580580
my $lastid = -1;
581581

582582
{
@@ -646,7 +646,7 @@ sub waitforid {
646646
foreach my $ind (@{$identstoidmap->{$ident}}) {
647647
lock @{$ind};
648648
#CORE::print ("check map $ind \n");
649-
last if(not ($ind->[0] < $currpos));
649+
last if($ind->[0] >= $currpos);
650650
$areallset = $areallset && $ind->[1];
651651
last if (not $areallset);
652652
++$nset;

0 commit comments

Comments
 (0)