line |
true |
false |
branch |
167
|
0 |
0 |
if (trace) std::cout << "DateRecipe01a::update()\n"; |
178
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::DateRecipe01a"; } |
185
|
0 |
0 |
if (trace) std::cout << "DateRecipe01b::update()\n"; |
196
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::DateRecipe01b"; } |
204
|
0 |
0 |
if (items != 1) |
217
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
218
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
223
|
0 |
0 |
}); } |
230
|
0 |
0 |
if (items != 1) |
235
|
0 |
0 |
DateRecipe01a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe01a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe01a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
243
|
0 |
0 |
}); } |
250
|
0 |
0 |
if (items != 1) |
254
|
0 |
0 |
DateRecipe01a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe01a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe01a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe01a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
262
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
263
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
268
|
0 |
0 |
}); } |
275
|
0 |
0 |
if (items != 1) |
280
|
0 |
0 |
DateRecipe01a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe01a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe01a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe01a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
289
|
0 |
0 |
}); } |
296
|
0 |
0 |
if (items != 1) |
309
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
310
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
315
|
0 |
0 |
}); } |
322
|
0 |
0 |
if (items != 1) |
327
|
0 |
0 |
DateRecipe01b* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe01b* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe01b* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
335
|
0 |
0 |
}); } |
342
|
0 |
0 |
if (items != 1) |
346
|
0 |
0 |
DateRecipe01b* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe01b* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe01b* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe01b* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
354
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
355
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
360
|
0 |
0 |
}); } |
381
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::DateRecipe02a"; } |
395
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::DateRecipe02b"; } |
403
|
0 |
0 |
if (items != 1) |
416
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
417
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
422
|
0 |
0 |
}); } |
429
|
0 |
0 |
if (items != 1) |
434
|
0 |
0 |
DateRecipe02a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe02a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe02a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
442
|
0 |
0 |
}); } |
449
|
0 |
0 |
if (items != 1) |
453
|
0 |
0 |
DateRecipe02a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe02a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe02a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe02a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
461
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
462
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
467
|
0 |
0 |
}); } |
474
|
0 |
0 |
if (items != 1) |
479
|
0 |
0 |
DateRecipe02a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe02a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe02a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe02a* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
487
|
0 |
0 |
}); } |
494
|
0 |
0 |
if (items != 1) |
507
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
508
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
513
|
0 |
0 |
}); } |
520
|
0 |
0 |
if (items != 1) |
525
|
0 |
0 |
DateRecipe02b* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe02b* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe02b* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
533
|
0 |
0 |
}); } |
540
|
0 |
0 |
if (items != 1) |
544
|
0 |
0 |
DateRecipe02b* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe02b* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe02b* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe02b* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
552
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
553
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
558
|
0 |
0 |
}); } |
569
|
0 |
0 |
static TimezoneRecipe03* instance = new TimezoneRecipe03(); |
|
0 |
0 |
static TimezoneRecipe03* instance = new TimezoneRecipe03(); |
|
0 |
0 |
static TimezoneRecipe03* instance = new TimezoneRecipe03(); |
|
0 |
0 |
static TimezoneRecipe03* instance = new TimezoneRecipe03(); |
579
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::TimezoneRecipe03"; } |
587
|
0 |
0 |
if (items != 1) |
591
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
592
|
0 |
0 |
const TimezoneRecipe03* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
const TimezoneRecipe03* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
const TimezoneRecipe03* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
const TimezoneRecipe03* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
597
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
600
|
0 |
0 |
}); } |
607
|
0 |
0 |
if (items != 0) |
617
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
618
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
623
|
0 |
0 |
}); } |
638
|
0 |
0 |
TimezoneRecipe04(const char* name_): name{name_} { } |
647
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::TimezoneRecipe04"; } |
664
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::DateRecipe04"; } |
672
|
0 |
0 |
if (items != 1) |
676
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
677
|
0 |
0 |
TimezoneRecipe04SP tz = xs::in(ST(0)); |
682
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
685
|
0 |
0 |
}); } |
692
|
0 |
0 |
if (items != 1) |
696
|
0 |
0 |
const char* name = (const char *)SvPV_nolen(ST(0)) |
|
0 |
0 |
const char* name = (const char *)SvPV_nolen(ST(0)) |
704
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
705
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
710
|
0 |
0 |
}); } |
717
|
0 |
0 |
if (items != 1) |
730
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
731
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
736
|
0 |
0 |
}); } |
743
|
0 |
0 |
if (items != 1) |
748
|
0 |
0 |
DateRecipe04* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe04* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe04* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
756
|
0 |
0 |
}); } |
763
|
0 |
0 |
if (items != 1) |
767
|
0 |
0 |
DateRecipe04* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe04* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe04* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe04* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
775
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
776
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
781
|
0 |
0 |
}); } |
788
|
0 |
0 |
if (items != 1) |
792
|
0 |
0 |
DateRecipe04* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe04* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe04* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe04* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
800
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
801
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
806
|
0 |
0 |
}); } |
813
|
0 |
0 |
if (items != 2) |
818
|
0 |
0 |
DateRecipe04* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe04* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe04* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe04* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
820
|
0 |
0 |
TimezoneRecipe04SP tz = xs::in(ST(1)); |
828
|
0 |
0 |
}); } |
839
|
0 |
0 |
TimezoneRecipe05(const char* name_): name{name_} { } |
840
|
0 |
0 |
~TimezoneRecipe05() { std::cout << "~TimezoneRecipe05()\n"; } |
859
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::TimezoneRecipe05"; } |
865
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::DateRecipe05"; } |
873
|
0 |
0 |
if (items != 1) |
877
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
878
|
0 |
0 |
TimezoneRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
TimezoneRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
TimezoneRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
TimezoneRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
883
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
886
|
0 |
0 |
}); } |
893
|
0 |
0 |
if (items != 1) |
897
|
0 |
0 |
const char* name = (const char *)SvPV_nolen(ST(0)) |
|
0 |
0 |
const char* name = (const char *)SvPV_nolen(ST(0)) |
905
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
906
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
911
|
0 |
0 |
}); } |
918
|
0 |
0 |
if (items != 1) |
931
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
932
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
937
|
0 |
0 |
}); } |
944
|
0 |
0 |
if (items != 1) |
949
|
0 |
0 |
DateRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
957
|
0 |
0 |
}); } |
964
|
0 |
0 |
if (items != 1) |
968
|
0 |
0 |
DateRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
976
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
977
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
982
|
0 |
0 |
}); } |
989
|
0 |
0 |
if (items != 1) |
993
|
0 |
0 |
DateRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1001
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1002
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
1007
|
0 |
0 |
}); } |
1014
|
0 |
0 |
if (items != 2) |
1019
|
0 |
0 |
DateRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe05* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1021
|
0 |
0 |
TimezoneRecipe05SP tz = xs::in(ST(1)); |
1029
|
0 |
0 |
}); } |
1039
|
0 |
0 |
virtual ~Base06() { } |
1041
|
0 |
0 |
struct Derived06A: public Base06 { |
1045
|
0 |
0 |
struct Derived06B: public Base06 { |
1052
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::Base04"; } |
1056
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::Derived06A"; } |
1060
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::Derived06B"; } |
1068
|
0 |
0 |
if (items != 1) |
1072
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
1073
|
0 |
0 |
Base06* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Base06* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Base06* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Base06* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1078
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
1081
|
0 |
0 |
}); } |
1088
|
0 |
0 |
if (items != 1) |
1101
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1102
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
1107
|
0 |
0 |
}); } |
1114
|
0 |
0 |
if (items != 1) |
1127
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1128
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
1133
|
0 |
0 |
}); } |
1140
|
0 |
0 |
if (items != 1) |
1144
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
1145
|
0 |
0 |
Derived06A* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Derived06A* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Derived06A* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Derived06A* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1150
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
1153
|
0 |
0 |
}); } |
1160
|
0 |
0 |
if (items != 1) |
1173
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1174
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
1179
|
0 |
0 |
}); } |
1186
|
0 |
0 |
if (items != 1) |
1190
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
1191
|
0 |
0 |
Derived06B* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Derived06B* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Derived06B* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Derived06B* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1196
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
1199
|
0 |
0 |
}); } |
1224
|
0 |
0 |
if (c->status == Status07::AUTHORIZED) c->welcome(); |
1225
|
0 |
0 |
if (c->status == Status07::NOT_AUTHORIZED) c->disconnect(); |
1233
|
0 |
0 |
c->status = (c->id < 0) ? Status07::NOT_AUTHORIZED : Status07::AUTHORIZED; |
1239
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::Client07"; } |
1244
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::ServerBase07"; } |
1249
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::LoggerPlugin07"; } |
1254
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::AuthorizerPlugin07"; } |
1262
|
0 |
0 |
if (items != 1) |
1267
|
0 |
0 |
Client07* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Client07* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Client07* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1275
|
0 |
0 |
}); } |
1282
|
0 |
0 |
if (items != 1) |
1287
|
0 |
0 |
Client07* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Client07* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Client07* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1295
|
0 |
0 |
}); } |
1302
|
0 |
0 |
if (items != 2) |
1308
|
0 |
0 |
int id = (int)SvIV(ST(1)) |
|
0 |
0 |
int id = (int)SvIV(ST(1)) |
1317
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1318
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
1323
|
0 |
0 |
}); } |
1330
|
0 |
0 |
if (items != 2) |
1335
|
0 |
0 |
ServerBase07* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
ServerBase07* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
ServerBase07* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1345
|
0 |
0 |
}); } |
1352
|
0 |
0 |
if (items != 1) |
1365
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1366
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
1371
|
0 |
0 |
}); } |
1378
|
0 |
0 |
if (items != 2) |
1383
|
0 |
0 |
LoggerPlugin07* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
LoggerPlugin07* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
LoggerPlugin07* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1395
|
0 |
0 |
}); } |
1402
|
0 |
0 |
if (items < 1) |
1417
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1418
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
1419
|
0 |
0 |
ST(0) = RETVALSV; |
1423
|
0 |
0 |
}); } |
1430
|
0 |
0 |
if (items != 2) |
1435
|
0 |
0 |
AuthorizerPlugin07* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
AuthorizerPlugin07* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
AuthorizerPlugin07* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1446
|
0 |
0 |
}); } |
1453
|
0 |
0 |
if (items < 1) |
1468
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1469
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
1470
|
0 |
0 |
ST(0) = RETVALSV; |
1474
|
0 |
0 |
}); } |
1503
|
0 |
0 |
std::string result = "wav-player is playing "; |
1504
|
0 |
0 |
result += file->name(); |
1505
|
0 |
0 |
result += " with bitrate "; |
1506
|
0 |
0 |
result += std::to_string(preferred_bitrate_); |
|
0 |
0 |
result += std::to_string(preferred_bitrate_); |
1518
|
0 |
0 |
std::string result = "player is playing "; |
1519
|
0 |
0 |
result += file->name(); |
1520
|
0 |
0 |
result += " ("; |
1521
|
0 |
0 |
result += file->format(); |
1522
|
0 |
0 |
result += ")"; |
1523
|
0 |
0 |
result += " with quality "; |
1524
|
0 |
0 |
result += std::to_string(quality_); |
|
0 |
0 |
result += std::to_string(quality_); |
1535
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::WAVFile"; } |
1540
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::MultimediaFile"; } |
1545
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::WAVPlayer"; } |
1550
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::MultimediaPlayer"; } |
1558
|
0 |
0 |
if (items != 1) |
1563
|
0 |
0 |
WAVFile* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
WAVFile* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
WAVFile* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1571
|
0 |
0 |
}); } |
1578
|
0 |
0 |
if (items != 2) |
1584
|
0 |
0 |
const char* name = (const char *)SvPV_nolen(ST(1)) |
|
0 |
0 |
const char* name = (const char *)SvPV_nolen(ST(1)) |
1593
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1594
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
1599
|
0 |
0 |
}); } |
1606
|
0 |
0 |
if (items != 1) |
1611
|
0 |
0 |
MultimediaFile* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
MultimediaFile* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
MultimediaFile* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1619
|
0 |
0 |
}); } |
1626
|
0 |
0 |
if (items != 1) |
1631
|
0 |
0 |
MultimediaFile* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
MultimediaFile* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
MultimediaFile* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1639
|
0 |
0 |
}); } |
1646
|
0 |
0 |
if (items != 3) |
1652
|
0 |
0 |
const char* name = (const char *)SvPV_nolen(ST(1)) |
|
0 |
0 |
const char* name = (const char *)SvPV_nolen(ST(1)) |
1654
|
0 |
0 |
const char* format = (const char *)SvPV_nolen(ST(2)) |
|
0 |
0 |
const char* format = (const char *)SvPV_nolen(ST(2)) |
1663
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1664
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
1669
|
0 |
0 |
}); } |
1676
|
0 |
0 |
if (items != 2) |
1680
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
1681
|
0 |
0 |
WAVPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
WAVPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
WAVPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
WAVPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1683
|
0 |
0 |
WAVFile* file = xs::in(ST(1)); |
1688
|
0 |
0 |
XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length()); |
|
0 |
0 |
XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length()); |
|
0 |
0 |
XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length()); |
1691
|
0 |
0 |
}); } |
1698
|
0 |
0 |
if (items != 1) |
1702
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
1703
|
0 |
0 |
WAVPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
WAVPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
WAVPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
WAVPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1708
|
0 |
0 |
XSprePUSH; PUSHn((double)RETVAL); |
|
0 |
0 |
XSprePUSH; PUSHn((double)RETVAL); |
1711
|
0 |
0 |
}); } |
1718
|
0 |
0 |
if (items != 1) |
1722
|
0 |
0 |
WAVPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
WAVPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
WAVPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
WAVPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1732
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1733
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
1738
|
0 |
0 |
}); } |
1745
|
0 |
0 |
if (items != 2) |
1751
|
0 |
0 |
double preferred_bitrate = (double)SvNV(ST(1)) |
|
0 |
0 |
double preferred_bitrate = (double)SvNV(ST(1)) |
1760
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1761
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
1766
|
0 |
0 |
}); } |
1773
|
0 |
0 |
if (items != 3) |
1779
|
0 |
0 |
double preferred_bitrate = (double)SvNV(ST(1)) |
|
0 |
0 |
double preferred_bitrate = (double)SvNV(ST(1)) |
1781
|
0 |
0 |
int quality = (int)SvIV(ST(2)) |
|
0 |
0 |
int quality = (int)SvIV(ST(2)) |
1793
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1794
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
1795
|
0 |
0 |
ST(0) = RETVALSV; |
1799
|
0 |
0 |
}); } |
1806
|
0 |
0 |
if (items != 2) |
1810
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
1811
|
0 |
0 |
MultimediaPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
MultimediaPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
MultimediaPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
MultimediaPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1813
|
0 |
0 |
MultimediaFile* file = xs::in(ST(1)); |
1818
|
0 |
0 |
XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length()); |
|
0 |
0 |
XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length()); |
|
0 |
0 |
XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length()); |
1821
|
0 |
0 |
}); } |
1828
|
0 |
0 |
if (items != 1) |
1832
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
1833
|
0 |
0 |
MultimediaPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
MultimediaPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
MultimediaPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
MultimediaPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1838
|
0 |
0 |
XSprePUSH; PUSHi((IV)RETVAL); |
|
0 |
0 |
XSprePUSH; PUSHi((IV)RETVAL); |
1841
|
0 |
0 |
}); } |
1848
|
0 |
0 |
if (items != 1) |
1852
|
0 |
0 |
MultimediaPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
MultimediaPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
MultimediaPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
MultimediaPlayer* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1862
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1863
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
1868
|
0 |
0 |
}); } |
1890
|
0 |
0 |
Sv label = maybe_label ? Sv{maybe_label} : Sv::undef; |
|
0 |
0 |
Sv label = maybe_label ? Sv{maybe_label} : Sv::undef; |
1891
|
0 |
0 |
labels.push_back(Ref::create(maybe_label)); |
|
0 |
0 |
labels.push_back(Ref::create(maybe_label)); |
1900
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::Point"; } |
1905
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::ShapeA"; } |
1910
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::ShapeB"; } |
1920
|
0 |
0 |
if (items < 1 || items > 2) |
|
0 |
0 |
if (items < 1 || items > 2) |
1924
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
1925
|
0 |
0 |
Point* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Point* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Point* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Point* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1929
|
0 |
0 |
if (items < 2) |
1946
|
0 |
0 |
XSprePUSH; PUSHn((double)RETVAL); |
|
0 |
0 |
XSprePUSH; PUSHn((double)RETVAL); |
1949
|
0 |
0 |
}); } |
1956
|
0 |
0 |
if (items < 1 || items > 3) |
|
0 |
0 |
if (items < 1 || items > 3) |
1965
|
0 |
0 |
if (items < 2) |
1969
|
0 |
0 |
; |
|
0 |
0 |
; |
1972
|
0 |
0 |
if (items < 3) |
1976
|
0 |
0 |
; |
|
0 |
0 |
; |
1985
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1986
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
1991
|
0 |
0 |
}); } |
1998
|
0 |
0 |
if (items != 1) |
2002
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
2003
|
0 |
0 |
ShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
ShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
ShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
ShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2008
|
0 |
0 |
XSprePUSH; PUSHu((UV)RETVAL); |
|
0 |
0 |
XSprePUSH; PUSHu((UV)RETVAL); |
2011
|
0 |
0 |
}); } |
2018
|
0 |
0 |
if (items != 2) |
2023
|
0 |
0 |
ShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
ShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
ShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
ShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2025
|
0 |
0 |
size_t idx = (size_t)SvUV(ST(1)) |
|
0 |
0 |
size_t idx = (size_t)SvUV(ST(1)) |
2045
|
0 |
0 |
}); } |
2052
|
0 |
0 |
if (items < 2 || items > 3) |
|
0 |
0 |
if (items < 2 || items > 3) |
2057
|
0 |
0 |
ShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
ShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
ShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
ShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2059
|
0 |
0 |
Point* pt = xs::in(ST(1)); |
2063
|
0 |
0 |
if (items < 3) |
2080
|
0 |
0 |
}); } |
2087
|
0 |
0 |
if (items != 1) |
2103
|
0 |
0 |
if (!RETVAL) XSRETURN_UNDEF; |
2104
|
0 |
0 |
if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
|
0 |
0 |
if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2106
|
0 |
0 |
case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get()).push_on_stack(MARK)); |
|
0 |
0 |
case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get()).push_on_stack(MARK)); |
2107
|
0 |
0 |
case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get()).push_on_stack(MARK)); |
|
0 |
0 |
case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get()).push_on_stack(MARK)); |
2110
|
0 |
0 |
RETVALSV = newRV_noinc(RETVAL.detach()); |
2114
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
2115
|
0 |
0 |
ST(0) = RETVALSV; |
2119
|
0 |
0 |
}); } |
2126
|
0 |
0 |
if (items != 1) |
2139
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2140
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
2145
|
0 |
0 |
}); } |
2152
|
0 |
0 |
if (items < 2 || items > 3) |
|
0 |
0 |
if (items < 2 || items > 3) |
2157
|
0 |
0 |
XSShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
XSShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
XSShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2163
|
0 |
0 |
if (items < 3) |
2176
|
0 |
0 |
}); } |
2183
|
0 |
0 |
if (items != 2) |
2188
|
0 |
0 |
XSShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
XSShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
XSShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
XSShapeA* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2190
|
0 |
0 |
size_t idx = (size_t)SvUV(ST(1)) |
|
0 |
0 |
size_t idx = (size_t)SvUV(ST(1)) |
2205
|
0 |
0 |
}); } |
2218
|
0 |
0 |
TimezoneRecipe10(const char* name_): name{name_} { } |
2236
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::DateRecipe10"; } |
2241
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::TimezoneRecipe10"; } |
2250
|
0 |
0 |
if (items != 1) |
2254
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
2255
|
0 |
0 |
TimezoneRecipe10* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
TimezoneRecipe10* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
TimezoneRecipe10* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
TimezoneRecipe10* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2260
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
2263
|
0 |
0 |
}); } |
2270
|
0 |
0 |
if (items != 2) |
2276
|
0 |
0 |
const char* name = (const char *)SvPV_nolen(ST(1)) |
|
0 |
0 |
const char* name = (const char *)SvPV_nolen(ST(1)) |
2285
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2286
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
2291
|
0 |
0 |
}); } |
2298
|
0 |
0 |
if (items != 1) |
2303
|
0 |
0 |
DateRecipe10* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe10* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe10* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2311
|
0 |
0 |
}); } |
2318
|
0 |
0 |
if (items != 1) |
2322
|
0 |
0 |
DateRecipe10* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe10* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe10* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe10* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2330
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2331
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
2336
|
0 |
0 |
}); } |
2343
|
0 |
0 |
if (items != 1) |
2347
|
0 |
0 |
DateRecipe10* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe10* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe10* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe10* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2359
|
0 |
0 |
if (!RETVAL) XSRETURN_UNDEF; |
2360
|
0 |
0 |
if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
|
0 |
0 |
if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2362
|
0 |
0 |
case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get()).push_on_stack(MARK)); |
|
0 |
0 |
case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get()).push_on_stack(MARK)); |
2363
|
0 |
0 |
case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get()).push_on_stack(MARK)); |
|
0 |
0 |
case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get()).push_on_stack(MARK)); |
2366
|
0 |
0 |
RETVALSV = newRV_noinc(RETVAL.detach()); |
2370
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
2371
|
0 |
0 |
ST(0) = RETVALSV; |
2375
|
0 |
0 |
}); } |
2384
|
0 |
0 |
struct TimezoneRecipe11: public panda::Refcnt { |
2387
|
0 |
0 |
TimezoneRecipe11(const char* name_): name{name_} { } |
2392
|
0 |
0 |
struct DateRecipe11: public panda::Refcnt { |
2393
|
0 |
0 |
DateRecipe11(const char* tz_ = "Europe/Minsk"): tz(new TimezoneRecipe11(tz_)) { update(); } |
|
0 |
0 |
DateRecipe11(const char* tz_ = "Europe/Minsk"): tz(new TimezoneRecipe11(tz_)) { update(); } |
2405
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::DateRecipe11"; } |
2410
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::TimezoneRecipe11"; } |
2418
|
0 |
0 |
if (items != 1) |
2422
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
2423
|
0 |
0 |
TimezoneRecipe11* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
TimezoneRecipe11* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
TimezoneRecipe11* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
TimezoneRecipe11* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2428
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
|
0 |
0 |
sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; |
2431
|
0 |
0 |
}); } |
2438
|
0 |
0 |
if (items != 2) |
2444
|
0 |
0 |
const char* name = (const char *)SvPV_nolen(ST(1)) |
|
0 |
0 |
const char* name = (const char *)SvPV_nolen(ST(1)) |
2453
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2454
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
2459
|
0 |
0 |
}); } |
2466
|
0 |
0 |
if (items != 1) |
2471
|
0 |
0 |
DateRecipe11* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe11* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe11* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2479
|
0 |
0 |
}); } |
2486
|
0 |
0 |
if (items != 1) |
2490
|
0 |
0 |
DateRecipe11* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe11* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe11* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe11* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2498
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2499
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
2504
|
0 |
0 |
}); } |
2511
|
0 |
0 |
if (items != 1) |
2515
|
0 |
0 |
DateRecipe11* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe11* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe11* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
DateRecipe11* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2523
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2524
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
2529
|
0 |
0 |
}); } |
2550
|
0 |
0 |
if(points.empty()) throw std::runtime_error("points cannot be empty"); |
|
0 |
0 |
if(points.empty()) throw std::runtime_error("points cannot be empty"); |
2554
|
0 |
0 |
return select([](const double& prev_dist, const double& new_dist) { return new_dist < prev_dist; } ); |
2558
|
0 |
0 |
return select([](const double& prev_dist, const double& new_dist) { return new_dist > prev_dist; } ); |
2564
|
0 |
0 |
auto best_distance = distance(interest, *pt); |
|
0 |
0 |
auto best_distance = distance(interest, *pt); |
2565
|
0 |
0 |
for(auto it = points.cbegin() + 1; it != points.cend(); ++it) { |
|
0 |
0 |
for(auto it = points.cbegin() + 1; it != points.cend(); ++it) { |
2566
|
0 |
0 |
auto new_distance = distance(interest, *it); |
|
0 |
0 |
auto new_distance = distance(interest, *it); |
2567
|
0 |
0 |
if(fn(best_distance, new_distance)) { |
|
0 |
0 |
if(fn(best_distance, new_distance)) { |
2581
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::PointRecipe12"; } |
2587
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::StatisticsRecipe12"; } |
2597
|
0 |
0 |
if (mg->mg_virtual == &payload_marker_12) { |
2599
|
0 |
0 |
delete payload; |
2609
|
0 |
0 |
if (items < 1 || items > 2) |
|
0 |
0 |
if (items < 1 || items > 2) |
2613
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
2614
|
0 |
0 |
PointRecipe12* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
PointRecipe12* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
PointRecipe12* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
PointRecipe12* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2618
|
0 |
0 |
if (items < 2) |
2635
|
0 |
0 |
XSprePUSH; PUSHn((double)RETVAL); |
|
0 |
0 |
XSprePUSH; PUSHn((double)RETVAL); |
2638
|
0 |
0 |
}); } |
2645
|
0 |
0 |
if (items < 1 || items > 3) |
|
0 |
0 |
if (items < 1 || items > 3) |
2654
|
0 |
0 |
if (items < 2) |
2658
|
0 |
0 |
; |
|
0 |
0 |
; |
2661
|
0 |
0 |
if (items < 3) |
2665
|
0 |
0 |
; |
|
0 |
0 |
; |
2674
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2675
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
2680
|
0 |
0 |
}); } |
2687
|
0 |
0 |
if (items != 1) |
2691
|
0 |
0 |
StatisticsRecipe12* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
StatisticsRecipe12* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
StatisticsRecipe12* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
StatisticsRecipe12* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2699
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2700
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
2705
|
0 |
0 |
}); } |
2712
|
0 |
0 |
if (items != 1) |
2716
|
0 |
0 |
StatisticsRecipe12* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
StatisticsRecipe12* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
StatisticsRecipe12* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
StatisticsRecipe12* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2724
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2725
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
2730
|
0 |
0 |
}); } |
2737
|
0 |
0 |
if (items != 3) |
2743
|
0 |
0 |
PointRecipe12* interest = xs::in(ST(1)); |
2745
|
0 |
0 |
Array pts = ST(2); |
|
0 |
0 |
Array pts = ST(2); |
2746
|
0 |
0 |
if (!pts && SvOK(ST(2))) throw "arg is not a 'Array' reference" |
|
0 |
0 |
if (!pts && SvOK(ST(2))) throw "arg is not a 'Array' reference" |
|
0 |
0 |
if (!pts && SvOK(ST(2))) throw "arg is not a 'Array' reference" |
|
0 |
0 |
if (!pts && SvOK(ST(2))) throw "arg is not a 'Array' reference" |
|
0 |
0 |
if (!pts && SvOK(ST(2))) throw "arg is not a 'Array' reference" |
2772
|
0 |
0 |
if (!RETVAL) XSRETURN_UNDEF; |
2773
|
0 |
0 |
if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
|
0 |
0 |
if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2775
|
0 |
0 |
case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get()).push_on_stack(MARK)); |
|
0 |
0 |
case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get()).push_on_stack(MARK)); |
2776
|
0 |
0 |
case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get()).push_on_stack(MARK)); |
|
0 |
0 |
case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get()).push_on_stack(MARK)); |
2779
|
0 |
0 |
RETVALSV = newRV_noinc(RETVAL.detach()); |
2783
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
2784
|
0 |
0 |
ST(0) = RETVALSV; |
2788
|
0 |
0 |
}); } |
2798
|
0 |
0 |
struct PointRecipe13: public panda::Refcnt { |
2804
|
0 |
0 |
struct Shape13: public panda::Refcnt { |
2814
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::PointRecipe13"; } |
2819
|
0 |
0 |
static std::string package () { return "MyTest::Cookbook::Shape13"; } |
2828
|
0 |
0 |
if (items < 1 || items > 2) |
|
0 |
0 |
if (items < 1 || items > 2) |
2832
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
2833
|
0 |
0 |
PointRecipe13* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
PointRecipe13* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
PointRecipe13* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
PointRecipe13* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2837
|
0 |
0 |
if (items < 2) |
2854
|
0 |
0 |
XSprePUSH; PUSHn((double)RETVAL); |
|
0 |
0 |
XSprePUSH; PUSHn((double)RETVAL); |
2857
|
0 |
0 |
}); } |
2864
|
0 |
0 |
if (items < 1 || items > 3) |
|
0 |
0 |
if (items < 1 || items > 3) |
2873
|
0 |
0 |
if (items < 2) |
2877
|
0 |
0 |
; |
|
0 |
0 |
; |
2880
|
0 |
0 |
if (items < 3) |
2884
|
0 |
0 |
; |
|
0 |
0 |
; |
2894
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2895
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
2900
|
0 |
0 |
}); } |
2907
|
0 |
0 |
if (items != 1) |
2911
|
0 |
0 |
dXSTARG; |
|
0 |
0 |
dXSTARG; |
2912
|
0 |
0 |
Shape13* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Shape13* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Shape13* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Shape13* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2917
|
0 |
0 |
XSprePUSH; PUSHu((UV)RETVAL); |
|
0 |
0 |
XSprePUSH; PUSHu((UV)RETVAL); |
2920
|
0 |
0 |
}); } |
2927
|
0 |
0 |
if (items != 2) |
2932
|
0 |
0 |
Shape13* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Shape13* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Shape13* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Shape13* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2934
|
0 |
0 |
PointRecipe13SP pt = xs::in(ST(1)); |
2942
|
0 |
0 |
}); } |
2949
|
0 |
0 |
if (items != 2) |
2953
|
0 |
0 |
Shape13* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Shape13* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Shape13* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
|
0 |
0 |
Shape13* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2955
|
0 |
0 |
size_t idx = (size_t)SvUV(ST(1)) |
|
0 |
0 |
size_t idx = (size_t)SvUV(ST(1)) |
2963
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2964
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
2969
|
0 |
0 |
}); } |
2976
|
0 |
0 |
if (items < 1) |
2989
|
0 |
0 |
RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2990
|
0 |
0 |
RETVALSV = sv_2mortal(RETVALSV); |
2995
|
0 |
0 |
}); } |
3009
|
0 |
34 |
dVAR; dXSBOOTARGSXSAPIVERCHK; |
|
0 |
34 |
dVAR; dXSBOOTARGSXSAPIVERCHK; |
3191
|
34 |
0 |
}); } |
|
34 |
0 |
}); } |
|
34 |
0 |
}); } |