Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf0da1db

Browse files
committed
fix missing iteration
1 parent26b5b25 commitf0da1db

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

‎pike.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ int re_pikevm(rcode *prog, const char *s, const char **subp, int nsubp)
601601
}
602602
matched=nsub;
603603
}
604-
if (sp==_sp||nlistidx==1) {
604+
if ((sp==_sp||nlistidx==1)&&matched->sub[nsubp/2]) {
605605
for (i=0,j=i;i<nsubp;i+=2,j++) {
606606
subp[i]=matched->sub[j];
607607
subp[i+1]=matched->sub[nsubp /2+j];
@@ -656,9 +656,6 @@ int main(int argc, char *argv[])
656656
printf("Done in %f seconds\n",elapsed_time);
657657
if (!sz)
658658
{printf("-nomatch-\n");continue; }
659-
for (intk=sub_els;k>0;k--)
660-
if (sub[k-1])
661-
break;
662659
for (intl=0;l<sub_els;l+=2) {
663660
printf("(");
664661
if (sub[l]==NULL||sub[l+1]==NULL)

‎test.sh‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@ aaaaa(aa)aa(aa(a)a)?aa
155155
\\\\\\\\<
156156
\\\\\\\\\\\\\\\\<
157157
[^a]*b
158+
^(.+):([0-9]+):(.+)
159+
^(.+):([0-9]+):(.+)
160+
^(.+):([0-9]+):(.+)
161+
^(.+):([0-9]+):(.+)(.+)
162+
(.*):([0-9]*):(.*)
163+
(.*):([0-9]*)( ):((.*)+)
164+
(((aaa+)+)bb*)(.*):([0-9]*):(.+)
165+
^(.+):([0-9]+):(.{8})+
166+
^(.+):([0-9]+):((aaaa)|(.+))\"
158167
"
159168
input="\
160169
abcdef
@@ -311,6 +320,15 @@ xabcx
311320
\\<
312321
\\\\\\\\<
313322
hhagbdbdbjsjjjda..b
323+
userspace-api/media/v4l/vbi_625.svg:98: :34bstroke-linejoin:m;stroke-miteit:10;stroke-day:n;se-ty:1\"
324+
h:98: :3234434butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1\"
325+
h:98: :3234utt;strokeliin:miter;stroke-mirlimit:10;stroke-dasharray:none;stroke-opacity:1n\"
326+
h:98: :3234utt;strokeliin:miter;stroke-mirlimit:10;stroke-dasharray:none;stroke-opacity:1n\"
327+
h:98: :3234utt;strokeliin:miter;stroke-mirlimit:10;stroke-dasharray:none;stroke-opacity:1n\"
328+
h:98: :3234utt;strokeliin:miter;stroke-mirlimit:10;stroke-dasharray:none;stroke-opacity:1n\"
329+
aaaaabb grt:123:....
330+
h:98: :3234utt;strokeliin:miter;stroke-mirlimit:10;stroke-dasharray:none;stroke-opacity:1n\"
331+
h:98: :3234utt;strokeliin:miter;stroke-mirlimit:10;stroke-dasharray:none;stroke-opacity:1n\"
314332
"
315333
expect="\
316334
(0,3)
@@ -467,6 +485,15 @@ expect="\
467485
(0,2)
468486
(2,5)
469487
(3,9)
488+
(0,102)(0,35)(36,38)(39,102)
489+
(0,103)(0,1)(2,4)(5,103)
490+
(0,93)(0,1)(2,4)(5,93)
491+
(0,93)(0,1)(2,4)(5,92)(92,93)
492+
(0,93)(0,1)(2,4)(5,93)
493+
(0,93)(0,4)(5,5)(5,8)(9,93)(9,93)
494+
(0,20)(0,7)(0,5)(0,5)(7,11)(12,15)(16,20)
495+
(0,93)(0,1)(2,4)(85,93)
496+
(0,93)(0,1)(2,4)(5,92)(?,?)(5,92)
470497
(0,0)
471498
"
472499

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp