| 1 |
|
| #include <xs/date.h> |
| 2 |
|
| #include <xs/export.h> |
| 3 |
|
| #include <panda/endian.h> |
| 4 |
|
| #include "private.h" |
| 5 |
|
| |
| 6 |
|
| using namespace xs; |
| 7 |
|
| using namespace xs::date; |
| 8 |
|
| using namespace panda::time; |
| 9 |
|
| using panda::string; |
| 10 |
|
| using panda::string_view; |
| 11 |
|
| |
| 12 |
|
| MODULE = Date PACKAGE = Date |
| 13 |
|
| PROTOTYPES: DISABLE |
| 14 |
|
| |
| 15 |
|
| BOOT { |
| 16 |
48 |
| XS_BOOT(Date__Date); |
| 17 |
|
| } |
| 18 |
|
| |
| 19 |
|
| MODULE = Date PACKAGE = Date::strict |
| 20 |
|
| PROTOTYPES: DISABLE |
| 21 |
|
| |
| 22 |
|
| void import (SV*) { |
| 23 |
5 |
▶ | Scope::Hints::set(strict_hint_name, Simple(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| Scope::Hints::set(strict_hint_name, Simple(1)); |
5 |
0 |
5 |
| Scope::Hints::set(strict_hint_name, Simple(1)); |
5 |
0 |
5 |
|
| 24 |
|
| } |
| 25 |
|
| |
| 26 |
|
| void unimport (SV*) { |
| 27 |
1 |
| Scope::Hints::remove(strict_hint_name); |
| 28 |
|
| } |
| 29 |
|
| |
| 30 |
|
| INCLUDE: DateRel.xsi |
| 31 |
|
| |
| 32 |
|
| INCLUDE: serialize.xsi |
| 33 |
|
| |
| 34 |
|
| INCLUDE: Timezone.xsi |