| /openbsd-src/gnu/usr.bin/perl/lib/Getopt/ |
| H A D | Std.pm | 103 my ($first, $rest); 108 ($first, $rest) = ($1, $2); 114 if ($rest ne '') { 119 $rest = shift(@ARGV); 122 $$hash{$first} = $rest; 126 ${"opt_$first"} = $rest; 139 if ($rest ne '') { 140 $ARGV[0] = "-$rest"; 195 my (@rest) = ($args =~ /([^\s:])(?!\s*:)/g); 201 if (@rest) { [all...] |
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_symbolizer_test.cpp | 21 const char *rest; in TEST() local 23 rest = ExtractToken("a;b;c", ";", &token); in TEST() 25 EXPECT_STREQ("b;c", rest); in TEST() 28 rest = ExtractToken("aaa-bbb.ccc", ";.-*", &token); in TEST() 30 EXPECT_STREQ("bbb.ccc", rest); in TEST() 36 const char *rest = ExtractInt("123,456;789", ";,", &token); in TEST() local 38 EXPECT_STREQ("456;789", rest); in TEST() 43 const char *rest = ExtractUptr("123,456;789", ";,", &token); in TEST() local 45 EXPECT_STREQ("456;789", rest); in TEST() 50 const char *rest = in TEST() local [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Pod-Perldoc/lib/Pod/Perldoc/ |
| H A D | GetOptsOO.pm | 33 my($first,$rest) = ($1,$2); 38 if ($first eq '-' and $rest) { # GNU style long param names 39 ($first, $rest) = split '=', $rest, 2; 43 if($rest eq '') { # like -f bar 46 $rest = shift @$args; 51 DEBUG > 3 and print " $method => $rest\n"; 52 $target->$method( $rest ); 76 if($rest eq '') { # like -f 79 DEBUG > 2 and print " Setting args->[0] to \"-$rest\"\n"; 80 $args->[0] = "-$rest";
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_symbolizer_mac.cpp | 118 const char *rest = trim; in ParseCommandOutput() local 120 rest = ExtractTokenUpToDelimiter(rest, " (in ", &symbol_name); in ParseCommandOutput() 121 if (rest[0] == '\0') { in ParseCommandOutput() 131 rest = ExtractTokenUpToDelimiter(rest, ") ", out_module); in ParseCommandOutput() 133 if (rest[0] == '(') { in ParseCommandOutput() 135 rest++; in ParseCommandOutput() 136 rest = ExtractTokenUpToDelimiter(rest, ":", out_file); in ParseCommandOutput() 138 rest = ExtractTokenUpToDelimiter(rest, ")", &extracted_line_number); in ParseCommandOutput() 142 } else if (rest[0] == '+') { in ParseCommandOutput() 143 rest += 2; in ParseCommandOutput() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Getopt-Long/lib/Getopt/ |
| H A D | Long.pm | 842 # Process all names. First is canonical, the rest are aliases. 894 my $rest; # remainder from unbundling 928 $rest = length ($tryopt) > 0 ? substr ($tryopt, 1) : ''; 932 "$starter$tryopt$rest\n") if $debug; 934 $optarg = $rest eq '' ? undef : $rest; 935 $rest = undef; 938 # Split off a single letter and leave the rest for 943 $rest = length ($tryopt) > 0 ? substr ($tryopt, 1) : ''; 947 "$starter$tryopt$rest\ [all...] |
| /openbsd-src/regress/bin/ksh/ |
| H A D | th | 419 local($type, $perm, $rest, $c, $len, $name); 426 ($type, $perm, $rest) = 428 $c = substr($rest, 0, 1); 429 $len = index($rest, $c, 1) - 1; 430 $name = substr($rest, 1, $len); 431 $rest = substr($rest, 2 + $len); 434 return undef if !&write_file($name, $rest); 448 local($ret) = symlink($rest, $name); 915 local($type, $perm, $rest, $c, $len, $name); 924 ($type, $perm, $rest) = ($1, $2, $3); [all …]
|
| /openbsd-src/lib/libcrypto/bio/ |
| H A D | bss_bio.c | 178 size_t rest; in bio_read() local 219 rest = size; in bio_read() 221 assert(rest > 0); in bio_read() 226 assert(rest <= peer_b->len); in bio_read() 227 if (peer_b->offset + rest <= peer_b->size) in bio_read() 228 chunk = rest; in bio_read() 245 assert(chunk == rest); in bio_read() 248 rest -= chunk; in bio_read() 249 } while (rest); in bio_read() 258 size_t rest; in bio_write() local [all …]
|
| /openbsd-src/gnu/usr.bin/perl/ext/Pod-Html/lib/Pod/Html/ |
| H A D | Util.pm | 215 my $rest = $_[0]; 216 $rest =~ s/&/&/g; 217 $rest =~ s/</</g; 218 $rest =~ s/>/>/g; 219 $rest =~ s/"/"/g; 220 $rest =~ s/([[:^print:]])/sprintf("&#x%x;", ord($1))/aeg; 221 return $rest;
|
| /openbsd-src/usr.bin/rdist/ |
| H A D | common.c | 579 char *pw_dir, *rest; in exptilde() local 591 rest = NULL; in exptilde() 593 rest = file; in exptilde() 595 rest = file; in exptilde() 596 while (*rest && *rest != '/') in exptilde() 597 rest++; in exptilde() 598 if (*rest == '/') in exptilde() 599 *rest = CNULL; in exptilde() 601 rest = NULL; in exptilde() 606 if (rest != NULL) in exptilde() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/ext/XS-APItest/t/ |
| H A D | subsignature.t | 16 push @t, (subsignature @rest); 17 push @t, (subsignature %rest); 24 ['nextstate:6', 'argcheck:0:0:@', 'argelem:@rest'], 25 ['nextstate:7', 'argcheck:0:0:%', 'argelem:%rest'],
|
| H A D | my_strtod.t | 8 my ($nv, $rest); 11 ($nv, $rest) = my_strtod('17.265625x'); 14 is($rest, 'x', 'my_strtod("17.265625x", &e) sets e to "x"');
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/cpp/ |
| H A D | macsyntx.c | 60 #define rest(x, y...) x ## y /* { dg-warning "ISO C" } */ macro 61 rest(ichi,) /* OK. */ 62 rest(ichi) /* { dg-warning "rest arguments to be used" } */ 63 #if 23 != rest(2, 3) /* OK, no warning. */
|
| H A D | 20000209-2.c | 6 #define NO_PAREN(rest...) rest argument
|
| /openbsd-src/gnu/usr.bin/texinfo/info/ |
| H A D | info-utils.c | 107 char *rest = string + i; in info_parse_node() local 110 if (*rest) in info_parse_node() 111 rest++; in info_parse_node() 116 while (whitespace(*rest)) in info_parse_node() 117 rest++; in info_parse_node() 118 if (*rest == '\n') in info_parse_node() 120 rest++; in info_parse_node() 121 while (whitespace(*rest)) in info_parse_node() 122 rest++; in info_parse_node() 127 if (strncmp (rest, "(line ", strlen ("(line ")) == 0) in info_parse_node() [all …]
|
| /openbsd-src/lib/libc/regex/ |
| H A D | engine.c | 303 const char *rest; /* start of rest of string */ in dissect() local 355 rest = slow(m, sp, stp, ss, es); in dissect() 356 assert(rest != NULL); /* it did match */ in dissect() 358 tail = slow(m, rest, stop, es, stopst); in dissect() 362 stp = rest - 1; in dissect() 368 if (slow(m, sp, rest, ssub, esub) != NULL) { in dissect() 369 dp = dissect(m, sp, rest, ssub, esub); in dissect() 370 assert(dp == rest); in dissect() 372 assert(sp == rest); in dissect() 373 sp = rest; in dissect() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/IO-Compress/t/compress/ |
| H A D | zlib-generic.pl | 142 my $rest; 143 is $k->read($rest, length($hello)), length($hello) 145 ok $rest eq $hello ; 185 my $rest; 186 is $k->read($rest, length($hello) + length($goodbye)), 189 ok $rest eq $goodbye, " got expected output" ;
|
| H A D | prime.pl | 60 my $rest = substr($compressed, $i); 64 $start = \$rest ; 68 writeFile($name, $rest);
|
| /openbsd-src/gnu/usr.bin/perl/regen/ |
| H A D | warnings.pl | 221 my ($ver, $rest, $rest2) = @{ $v } ; 222 my $ref = ref $rest ? $rest : $rest2; 282 my ($ver, $rest, $rest2) = @{ $v } ; 283 my $ref = ref $rest ? $rest : $rest2; 284 if (!ref $rest and $rest == DEFAULT_ON) 352 my ($ver, $rest, $rest2) = @{ $v } ; 353 my $ref = ref $rest [all...] |
| H A D | HeaderParser.pm | 170 # 0, and 2 * ($level - 1) + 1 spaces for the rest. (1,3,5, etc) 918 # take a condition, split into $type and $rest 924 my ($self, $type, $rest)= @_; 936 if ($rest =~ s!(if\s+)!!) { 939 if ($rest =~ s!(\s*/\*.*?\*/)\s*\z!! || $rest =~ s!(\s*\*/\s*)\z!!) { 942 if ($rest) { 943 $rest= $self->tidy_cond($rest); 944 $rest [all...] |
| /openbsd-src/sys/dev/isa/ |
| H A D | spkr.c | 79 static void rest(int); 93 rest(int ms) in rest() function 104 tsleep_nsec(rest, SPKRPRI | PCATCH, "rest", MSEC_TO_NSEC(ms)); in rest() 190 rest(whole * snum / (value * sdenom)); in playtone() 205 rest(silence); in playtone() 487 rest(tp->duration); in spkrioctl() 503 rest(ttp.duration); in spkrioctl()
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/cli/ |
| H A D | cli-logging.c | 111 char *rest = args; in set_logging_on() local 112 if (rest && *rest) in set_logging_on() 115 logging_filename = xstrdup (rest); in set_logging_on()
|
| /openbsd-src/gnu/usr.bin/cvs/contrib/ |
| H A D | rcs2log.sh | 420 quoted = quoted substr(rest, 1, p-1) "\\" substr(rest, p, 1) 421 rest = substr(rest, p+1) 424 printf "fullname[\"%s\"] = \"%s%s\"\n", $1, quoted, rest
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | regengine.inc | 344 const char *rest; /* start of rest of string */ 345 const char *tail; /* string unmatched by rest of RE */ 395 rest = slow(m, sp, stp, ss, es); 396 assert(rest != NULL); /* it did match */ 397 /* could the rest match the rest? */ 398 tail = slow(m, rest, stop, es, stopst); 402 stp = step_back(m->g, sp, rest, es, stopst); 408 if (slow(m, sp, rest, ssub, esub) != NULL) { 409 const char *dp = dissect(m, sp, rest, ssub, esub); 411 assert(dp == rest); [all …]
|
| /openbsd-src/gnu/usr.bin/perl/t/op/ |
| H A D | each.t | 208 my $rest=0; 209 while (each(%foo)) {$rest++}; 213 is($rest,3,"Got the expected number of keys - my"); 227 my $rest=0; 228 while (each(%foo)) {$rest++}; 232 is($rest,3,"Got the expected number of keys - our");
|
| /openbsd-src/gnu/usr.bin/perl/ext/POSIX/t/ |
| H A D | mb.t | 51 my ($major, $minor, $rest) = $Config{osvers} =~ / (\d+) \. (\d+) .* /x; 95 my ($major, $minor, $rest) = $Config{osvers} =~ / (\d+) \. (\d+) .* /x; 138 my ($major, $minor, $rest) = $Config{osvers} =~ / (\d+) \. (\d+) .* /x;
|