Home
last modified time | relevance | path

Searched refs:method (Results 1 – 25 of 1089) sorted by relevance

12345678910>>...44

/openbsd/src/gnu/usr.bin/perl/cpan/Math-BigInt/t/
Dround.t50 my ($x, $method, $A, $result) = @_;
52 is($x->copy->$method($A), $result, "$method($A)");
53 is($x->copy->$method($A.'.1'), $result, "$method(${A}.1)");
54 is($x->copy->$method($A.'.5'), $result, "$method(${A}.5)");
55 is($x->copy->$method($A.'.6'), $result, "$method(${A}.6)");
56 is($x->copy->$method($A.'.9'), $result, "$method(${A}.9)");
60 my ($x, $method, $P, $result) = @_;
62 is($x->copy->$method(undef, $P), $result, "$method(undef, $P)");
63 is($x->copy->$method(undef, $P.'.1'), $result, "$method(undef, ${P}.1)");
64 is($x->copy->$method(undef, $P.'.5'), $result, "$method(undef.${P}.5)");
[all …]
Dbigrat.t32 foreach my $method (qw/ new bnorm /) {
33 $x = $mbr->$method(1234);
34 is($x, 1234, qq|\$x = $mbr->$method(1234)|);
36 $x = $mbr->$method("1234/1");
37 is($x, 1234, qq|\$x = $mbr->$method("1234/1")|);
39 $x = $mbr->$method("1234/2");
40 is($x, 617, qq|\$x = $mbr->$method("1234/2")|);
42 $x = $mbr->$method("100/1.0");
43 is($x, 100, qq|\$x = $mbr->$method("100/1.0")|);
45 $x = $mbr->$method("10.0/1.0");
[all …]
Dbigfltpm.t19 # bug #17447: Can't call method Math::BigFloat->bsub, not a valid method
34 # bgcd() as function, class method and instance method.
41 isa_ok($gcd1, "Math::BigFloat", "bgcd() as class method");
42 is($gcd1, 3, "bgcd() as class method");
46 isa_ok($gcd2, "Math::BigFloat", "bgcd() as instance method");
47 is($gcd2, 3, "bgcd() as instance method");
51 # blcm() as function, class method and instance method.
58 isa_ok($lcm1, "Math::BigFloat", "blcm() as class method");
59 is($lcm1, 108, "blcm() as class method");
63 isa_ok($lcm2, "Math::BigFloat", "blcm() as instance method");
[all …]
/openbsd/src/gnu/usr.bin/perl/cpan/version/t/
Dcoretests.pm20 my ($CLASS, $method, $qv_declare) = @_;
28 $version = $CLASS->$method(5.005_03);
30 $version = $CLASS->$method(1.23);
34 $version = $CLASS->$method(23);
38 $version = $CLASS->$method("5.005_03");
40 $version = $CLASS->$method("v1.23");
44 $version = $CLASS->$method("5.005");
46 $version = $CLASS->$method("5.006.001");
49 $version = $CLASS->$method("v1.2.3_4");
53 eval {my $version = $CLASS->$method("1.2_3_4")};
[all …]
/openbsd/src/regress/lib/libssl/unit/
Dssl_methods.c23 const SSL_METHOD *(*method)(void); member
31 .method = SSLv23_method,
37 .method = SSLv23_server_method,
43 .method = SSLv23_client_method,
50 .method = TLSv1_method,
56 .method = TLSv1_server_method,
62 .method = TLSv1_client_method,
69 .method = TLSv1_1_method,
75 .method = TLSv1_1_server_method,
81 .method = TLSv1_1_client_method,
[all …]
/openbsd/src/gnu/usr.bin/perl/t/op/
Dconst-optree.t47 method => 0,
65 method => 0,
75 method => 0,
85 method => 0,
95 method => 0,
105 method => 0,
116 method => 0,
127 method => 0,
146 method => 0,
161 method => 0,
[all …]
Dmethod.t159 my $method = $BB::AUTOLOAD;
160 my $msg = "B: In $method, $c";
161 eval "sub $method { \$msg }";
162 goto &$method;
166 my $method = $C::AUTOLOAD;
167 my $msg = "C: In $method, $c";
168 eval "sub $method { \$msg }";
169 goto &$method;
191 my $method = $::AUTOLOAD;
193 *$::AUTOLOAD = sub { "new B: In $method, $c" };
[all …]
/openbsd/src/gnu/usr.bin/perl/cpan/Test-Harness/lib/App/Prove/State/Result/
DTest.pm32 name => { method => 'name' },
33 elapsed => { method => 'elapsed', default => 0 },
34 gen => { method => 'generation', default => 1 },
35 last_pass_time => { method => 'last_pass_time', default => undef },
36 last_fail_time => { method => 'last_fail_time', default => undef },
37 last_result => { method => 'result', default => 0 },
38 last_run_time => { method => 'run_time', default => undef },
39 last_todo => { method => 'num_todo', default => 0 },
40 mtime => { method => 'mtime', default => undef },
41 seq => { method => 'sequence', default => 1 },
[all …]
/openbsd/src/lib/libcrypto/ui/
Dui_lib.c79 UI_new_method(const UI_METHOD *method) in UI_new_method() argument
87 if ((ret->meth = method) == NULL) in UI_new_method()
536 UI_set_default_method(const UI_METHOD *method) in UI_set_default_method() argument
538 default_UI_meth = method; in UI_set_default_method()
560 UI_set_method(UI *ui, const UI_METHOD *method) in UI_set_method() argument
562 ui->meth = method; in UI_set_method()
571 UI_METHOD *method = NULL; in UI_create_method() local
573 if ((method = calloc(1, sizeof(UI_METHOD))) == NULL) in UI_create_method()
577 if ((method->name = strdup(name)) == NULL) in UI_create_method()
581 return method; in UI_create_method()
[all …]
Dui.h86 UI *UI_new_method(const UI_METHOD *method);
326 int UI_method_set_opener(UI_METHOD *method, int (*opener)(UI *ui));
327 int UI_method_set_writer(UI_METHOD *method,
329 int UI_method_set_flusher(UI_METHOD *method, int (*flusher)(UI *ui));
330 int UI_method_set_reader(UI_METHOD *method,
332 int UI_method_set_closer(UI_METHOD *method, int (*closer)(UI *ui));
333 int UI_method_set_prompt_constructor(UI_METHOD *method,
336 int (*UI_method_get_opener(const UI_METHOD *method))(UI *);
337 int (*UI_method_get_writer(const UI_METHOD *method))(UI *, UI_STRING *);
338 int (*UI_method_get_flusher(const UI_METHOD *method))(UI *);
[all …]
/openbsd/src/lib/libcrypto/x509/
Dx509_prn.c112 const X509V3_EXT_METHOD *method; in X509V3_EXT_print() local
116 if (!(method = X509V3_EXT_get(ext))) in X509V3_EXT_print()
119 if (method->it) in X509V3_EXT_print()
121 method->it); in X509V3_EXT_print()
123 ext_str = method->d2i(NULL, &p, ext->value->length); in X509V3_EXT_print()
128 if (method->i2s) { in X509V3_EXT_print()
129 if (!(value = method->i2s(method, ext_str))) { in X509V3_EXT_print()
134 } else if (method->i2v) { in X509V3_EXT_print()
135 if (!(nval = method->i2v(method, ext_str, NULL))) { in X509V3_EXT_print()
140 method->ext_flags & X509V3_EXT_MULTILINE); in X509V3_EXT_print()
[all …]
Dx509_conf.c78 static X509_EXTENSION *do_ext_i2d(const X509V3_EXT_METHOD *method, int nid,
120 const X509V3_EXT_METHOD *method; in do_ext_nconf() local
128 if (!(method = X509V3_EXT_get_nid(nid))) { in do_ext_nconf()
133 if (method->v2i) { in do_ext_nconf()
148 ext_struct = method->v2i(method, ctx, nval); in do_ext_nconf()
151 } else if (method->s2i) { in do_ext_nconf()
152 ext_struct = method->s2i(method, ctx, value); in do_ext_nconf()
153 } else if (method->r2i) { in do_ext_nconf()
158 ext_struct = method->r2i(method, ctx, value); in do_ext_nconf()
167 ext = do_ext_i2d(method, nid, crit, ext_struct); in do_ext_nconf()
[all …]
/openbsd/src/gnu/usr.bin/binutils/gdb/testsuite/gdb.cp/
Dvirtfunc.exp55 { method public "int fvb();" }
56 { method public "virtual int vvb();" }
67 { method public "int f();" }
68 { method public "virtual int vv();" }
79 { method public "virtual int f();" }
89 { method public "virtual int f();" }
107 { method public "virtual int vg();" }
118 { method public "static void s();" }
119 { method public "virtual int vg();" }
120 { method public "virtual int vd();" }
[all …]
Dderivation.exp76 { method public "A();" }
77 { method public "int afoo();" }
78 { method public "int foo();" }
97 { method public "D();" }
98 { method public "int dfoo();" }
99 { method public "int foo();" }
122 { method public "E();" }
123 { method public "int efoo();" }
124 { method public "int foo();" }
147 { method public "F();" }
[all …]
/openbsd/src/gnu/usr.bin/perl/cpan/Test-Simple/t/Legacy/Builder/
Dreset_outputs.t24 for my $method (qw(output failure_output todo_output)) {
25 $original_outputs{$method} = $tb->$method();
26 $tb->$method($fh);
27 is $tb->$method(), $fh;
32 for my $method (qw(output failure_output todo_output)) {
33 is $tb->$method(), $original_outputs{$method}, "reset_outputs() resets $method";
/openbsd/src/usr.bin/ssh/
Dauth2.c263 char *user = NULL, *service = NULL, *method = NULL, *style = NULL; in input_userauth_request() local
272 (r = sshpkt_get_cstring(ssh, &method, NULL)) != 0) in input_userauth_request()
274 debug("userauth-request for user %s service %s method %s", user, service, method); in input_userauth_request()
326 m = authmethod_lookup(authctxt, method); in input_userauth_request()
328 debug2("input_userauth_request: try method %s", method); in input_userauth_request()
329 authenticated = m->userauth(ssh, method); in input_userauth_request()
331 if (!authctxt->authenticated && strcmp(method, "none") != 0) in input_userauth_request()
334 userauth_finish(ssh, authenticated, method, NULL); in input_userauth_request()
339 free(method); in input_userauth_request()
349 const char *method = packet_method; in userauth_finish() local
[all …]
/openbsd/src/gnu/usr.bin/perl/cpan/NEXT/t/
Dnext.t10 sub A::method { return ( 3, $_[0]->NEXT::method() ) }
26 sub D::method { return ( 2, $_[0]->NEXT::method() ) }
29 sub D::oops { $_[0]->NEXT::method() }
34 sub E::method { return ( 4, $_[0]->NEXT::method(), $_[0]->NEXT::method() ) }
40 sub F::method { return ( 5 ) }
45 sub G::method { return ( 6 ) }
56 @vals = $obj->method();
60 @vals = $obj->method();
75 local *C::AUTOLOAD = sub { $_[0]->NEXT::method() };
83 *C::method = sub{ $_[0]->NEXT::AUTOLOAD() };
[all …]
/openbsd/src/gnu/usr.bin/cvs/src/
Droot.c310 newroot->method = null_method; in new_cvsroot_t()
378 char *method = ++cvsroot_copy; local
389 if (! (p = strchr (method, ':')))
400 if (strcmp (method, "local") == 0)
401 newroot->method = local_method;
402 else if (strcmp (method, "pserver") == 0)
403 newroot->method = pserver_method;
404 else if (strcmp (method, "kserver") == 0)
405 newroot->method = kserver_method;
406 else if (strcmp (method, "gserver") == 0)
[all …]
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.law/
Dcasts2.C7 typedef boolean (VObject::*method)(); typedef
11 #define methodOf(o,m) (method)(&o::m)
16 boolean perform(method );
17 boolean perform(method , long);
18 void affectMethod(method );
23 boolean VObject::perform(method m) in perform()
30 boolean VObject::perform(method m, long param) in perform()
36 void VObject::affectMethod(method m) in affectMethod()
/openbsd/src/gnu/usr.bin/perl/ext/mro/
Dmro.pm29 sub method { subroutine
30 my $method = mro::_nextcan($_[0], 1);
31 goto &$method;
37 sub method { subroutine
38 my $method = mro::_nextcan($_[0], 0);
39 goto &$method if defined $method;
/openbsd/src/gnu/usr.bin/perl/ext/B/
DB.pm168 my($op, $method, $level) = @_;
172 $op->$method($level) if $op->can($method);
177 walkoptree_slow($kid, $method, $level + 1);
187 walkoptree_slow($op->pmreplroot, $method, $level + 1);
221 my ($op, $method, $level) = @_;
232 $op->$method($level);
238 walkoptree_exec($op->other, $method, $level + 1);
244 walkoptree_exec($pmreplstart, $method, $level + 1);
249 walkoptree_exec($op->other->pmreplstart, $method, $level + 1);
254 walkoptree_exec($op->redoop, $method, $level + 1);
[all …]
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/objc/execute/
Dclass_self-1.m4 /* Test calling a class method when there is an instance method
8 method might get picked up and used instead of the class method of
19 - (struct d) method; method
23 - (struct d) method
38 + (int) method; class
44 if ([self method] != 4)
50 + (int) method
/openbsd/src/gnu/usr.bin/perl/ext/XS-APItest/t/
Dgv_autoload4.t10 my $method = 0;
21 ok my $glob = XS::APItest::gv_autoload_type(\%::, $sub, 1, $method);
26 …is $glob = XS::APItest::gv_autoload_type(\%::, $sub, $type, $method), "*main::AUTOLOAD", "*main::A…
32 ok $glob = XS::APItest::gv_autoload_type(\%::, $sub, 0, $method);
35 ok $glob = XS::APItest::gv_autoload_type(\%::, $sub, 1, $method);
38 ok $glob = XS::APItest::gv_autoload_type(\%::, $sub, 2, $method);
41 ok $glob = XS::APItest::gv_autoload_type(\%::, $sub, 3, $method);
57 ::ok $glob = XS::APItest::gv_autoload_type(\%main::, $sub = "method", $type, $method);
59 ::ok $glob = XS::APItest::gv_autoload_type(\%main::, $sub = "method", $type, $method);
/openbsd/src/usr.bin/compress/
Dmain.c174 const struct compressor *method; in main() local
187 method = M_DEFLATE; in main()
192 method = M_DEFLATE; in main()
194 method = M_COMPRESS; in main()
197 optstr = method->opts; in main()
217 strlcpy(suffix, method->suffix, sizeof(suffix)); in main()
219 if (method == M_DEFLATE && (p = getenv("GZIP")) != NULL) { in main()
257 method = M_DEFLATE; in main()
258 strlcpy(suffix, method->suffix, sizeof(suffix)); in main()
284 method = M_DEFLATE; in main()
[all …]
/openbsd/src/lib/libcrypto/bio/
Dbio_cb.c93 snprintf(p, p_maxlen, "Free - %s\n", bio->method->name); in BIO_debug_callback()
96 if (bio->method->type & BIO_TYPE_DESCRIPTOR) in BIO_debug_callback()
100 bio->method->name, bio->num); in BIO_debug_callback()
103 bio->num, (unsigned long)argi, bio->method->name); in BIO_debug_callback()
106 if (bio->method->type & BIO_TYPE_DESCRIPTOR) in BIO_debug_callback()
110 bio->method->name, bio->num); in BIO_debug_callback()
113 bio->num, (unsigned long)argi, bio->method->name); in BIO_debug_callback()
117 "puts() - %s\n", bio->method->name); in BIO_debug_callback()
121 (unsigned long)argi, bio->method->name); in BIO_debug_callback()
125 (unsigned long)argi, bio->method->name); in BIO_debug_callback()

12345678910>>...44