Home
last modified time | relevance | path

Searched refs:nsub (Results 1 – 14 of 14) sorted by relevance

/openbsd/usr.bin/dig/lib/dns/rdata/generic/
H A Dnaptr_35.c34 unsigned int nsub = 0; in txt_valid_regex() local
97 case '1': if (nsub < 1) nsub = 1; break; in txt_valid_regex()
98 case '2': if (nsub < 2) nsub = 2; break; in txt_valid_regex()
99 case '3': if (nsub < 3) nsub = 3; break; in txt_valid_regex()
100 case '4': if (nsub < 4) nsub = 4; break; in txt_valid_regex()
101 case '5': if (nsub < 5) nsub = 5; break; in txt_valid_regex()
102 case '6': if (nsub < 6) nsub = 6; break; in txt_valid_regex()
103 case '7': if (nsub < 7) nsub = 7; break; in txt_valid_regex()
104 case '8': if (nsub < 8) nsub = 8; break; in txt_valid_regex()
105 case '9': if (nsub < 9) nsub = 9; break; in txt_valid_regex()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Test2-Suite/t/modules/
H A DMock.t449 nsub => sub { my $x = ''; sub { $x . 'nsub' } },
452 can_ok('Fake13', qw/new foo bar baz DATA reader writer rsub nsub/);
497 ok($i->nsub != $i->nsub, "nsub returns a new ref each time");
498 is($i->nsub->(), 'nsub', "ran nsub");
511 for qw/new foo bar baz DATA reader writer rsub nsub/;
521 ok(!Fake13->can($_), "Removed sub $_") for qw/new foo bar baz DATA reader writer rsub nsub/;
552 sub nsub { 'old' }
591 nsub => sub { my $x = ''; sub { $x . 'nsub' } },
637 ok($i->nsub != $i->nsub, "nsub returns a new ref each time");
638 is($i->nsub->(), 'nsub', "ran nsub");
[all …]
/openbsd/usr.bin/make/
H A Dvarmodifiers.c126 int nsub; member
617 xrv = regexec(&pat->re, wp, pat->nsub, pat->matches, 0); in VarRESubstitute()
653 if (n >= pat->nsub) { in VarRESubstitute()
1058 p2.nsub = p2.re.re_nsub + 1; in do_regex()
1061 if (p2.nsub < 1) in do_regex()
1062 p2.nsub = 1; in do_regex()
1063 if (p2.nsub > 10) in do_regex()
1064 p2.nsub = 10; in do_regex()
1065 p2.matches = ereallocarray(NULL, p2.nsub, sizeof(regmatch_t)); in do_regex()
/openbsd/lib/libc/regex/
H A Dengine.c212 m->pmatch = reallocarray(NULL, m->g->nsub + 1, in matcher()
218 for (i = 1; i <= m->g->nsub; i++) in matcher()
250 for (i = 1; i <= m->g->nsub; i++) { in matcher()
277 if (i <= m->g->nsub) in matcher()
455 assert(0 < i && i <= m->g->nsub); in dissect()
460 assert(0 < i && i <= m->g->nsub); in dissect()
576 assert(0 < i && i <= m->g->nsub); in backref()
639 assert(0 < i && i <= m->g->nsub); in backref()
650 assert(0 < i && i <= m->g->nsub); in backref()
H A Dregcomp.c197 g->nsub = 0; in regcomp()
217 preg->re_nsub = g->nsub; in regcomp()
295 p->g->nsub++; in p_ere_exp()
296 subno = p->g->nsub; in p_ere_exp()
504 p->g->nsub++; in p_simp_re()
505 subno = p->g->nsub; in p_simp_re()
535 assert(i <= p->g->nsub); in p_simp_re()
H A Dregex2.h154 size_t nsub; /* copy of re_nsub */ member
/openbsd/regress/lib/libc/regex/
H A Ddebug.c39 if (g->nsub > 0)
40 fprintf(d, ", nsub=%ld", (long)g->nsub);
/openbsd/sys/dev/sdmmc/
H A Dif_bwfm_sdio.c1209 int nsub; in bwfm_sdio_rx_frames() local
1297 nsub = flen / sizeof(uint16_t); in bwfm_sdio_rx_frames()
1298 sublen = mallocarray(nsub, sizeof(uint16_t), in bwfm_sdio_rx_frames()
1300 memcpy(sublen, data, nsub * sizeof(uint16_t)); in bwfm_sdio_rx_frames()
1301 bwfm_sdio_rx_glom(sc, sublen, nsub, &nextlen, &ml); in bwfm_sdio_rx_frames()
1302 free(sublen, M_DEVBUF, nsub * sizeof(uint16_t)); in bwfm_sdio_rx_frames()
1314 bwfm_sdio_rx_glom(struct bwfm_sdio_softc *sc, uint16_t *sublen, int nsub, in bwfm_sdio_rx_glom() argument
1328 if (nsub == 0) in bwfm_sdio_rx_glom()
1331 for (i = 0; i < nsub; i++) { in bwfm_sdio_rx_glom()
/openbsd/gnu/llvm/llvm/lib/Support/
H A Dregcomp.c350 g->nsub = 0; in llvm_regcomp()
374 preg->re_nsub = g->nsub; in llvm_regcomp()
453 p->g->nsub++; in p_ere_exp()
454 subno = p->g->nsub; in p_ere_exp()
525 assert(backrefnum <= p->g->nsub); in p_ere_exp()
693 p->g->nsub++; in p_simp_re()
694 subno = p->g->nsub; in p_simp_re()
724 assert(i <= p->g->nsub); in p_simp_re()
H A Dregex2.h154 size_t nsub; /* copy of re_nsub */ member
H A Dregengine.inc76 llvm_regmatch_t *pmatch; /* [nsub+1] (0 element unused) */
213 m->pmatch = (llvm_regmatch_t *)malloc((m->g->nsub + 1) *
219 for (i = 1; i <= m->g->nsub; i++)
251 for (i = 1; i <= m->g->nsub; i++) {
278 if (i <= m->g->nsub)
502 assert(0 < i && i <= m->g->nsub);
507 assert(0 < i && i <= m->g->nsub);
627 assert(0 < i && i <= m->g->nsub);
690 assert(0 < i && i <= m->g->nsub);
701 assert(0 < i && i <= m->g->nsub);
/openbsd/gnu/usr.bin/perl/cpan/CPAN-Meta-YAML/t/
H A D86_fail.t28 "# Perl sub:\nsub foo{}\n",
/openbsd/usr.bin/awk/
H A Drun.c493 size_t nsub = p->nnext ? seplen : 0; in makearraystring() local
495 size_t tlen = blen + slen + nsub; in makearraystring()
502 if (nsub) { in makearraystring()
503 memcpy(buf + blen + slen, *SUBSEP, nsub); in makearraystring()
/openbsd/usr.bin/tmux/
H A Dformat.c4431 u_int i, count, nsub = 0; in format_replace() local
4461 sub = xreallocarray(sub, nsub + 1, sizeof *sub); in format_replace()
4462 sub[nsub++] = fm; in format_replace()
4766 for (i = 0; i < nsub; i++) { in format_replace()