Codebase list libb-cow-perl / 83c297f
Update upstream source from tag 'upstream/0.004' Update to upstream version '0.004' with Debian dir 70e8f71873e439c341588c5ab76ce4bece3be61e gregor herrmann 4 years ago
8 changed file(s) with 47 addition(s) and 37 deletion(s). Raw diff Collapse all Expand all
1414
1515 #define MIN_PERL_VERSION_FOR_COW 20
1616
17 #if PERL_REVISION >= 5 && PERL_VERSION >= MIN_PERL_VERSION_FOR_COW
17 #if defined(SV_COW_REFCNT_MAX)
1818 # define B_CAN_COW 1
1919 #else
2020 # define B_CAN_COW 0
2121 #endif
22
23 /* CowREFCNT is incorrect on Perl < 5.32 */
24 #define myCowREFCNT(sv) ((SvLEN(sv)>0) ? CowREFCNT(sv) : 0)
2225
2326 MODULE = B__COW PACKAGE = B::COW
2427
5962 #if !B_CAN_COW
6063 XSRETURN_UNDEF;
6164 #else
62 if ( SvIsCOW(sv) ) XSRETURN_IV( CowREFCNT(sv) );
65 if ( SvIsCOW(sv) ) XSRETURN_IV( myCowREFCNT(sv) );
6366 #endif
6467 XSRETURN_UNDEF;
6568 }
00 Revision history for B-COW
1
2 0.004 2020-04-23 14:41:21-06:00 America/Denver
3
4 fix CowREFCNT issues on big endian
5
6 0.003 2020-04-20 09:59:34-06:00 America/Denver
7
8 support for Perl compiled without COW
19
210 0.002 2020-01-29 12:13:52-07:00 America/Denver
311
5151 "provides" : {
5252 "B::COW" : {
5353 "file" : "lib/B/COW.pm",
54 "version" : "0.002"
54 "version" : "0.004"
5555 }
5656 },
5757 "release_status" : "stable",
6565 "web" : "https://github.com/atoomic/B-COW.git"
6666 }
6767 },
68 "version" : "0.002",
68 "version" : "0.004",
6969 "x_Dist_Zilla" : {
7070 "perl" : {
71 "version" : "5.026002"
71 "version" : "5.030001"
7272 },
7373 "plugins" : [
7474 {
269269 "meta_noindex" : 1
270270 },
271271 "Dist::Zilla::Role::ModuleMetadata" : {
272 "Module::Metadata" : "1.000033",
272 "Module::Metadata" : "1.000036",
273273 "version" : "0.006"
274274 }
275275 },
292292 "remotes_must_exist" : 1
293293 },
294294 "Dist::Zilla::Role::Git::Repo" : {
295 "git_version" : "2.21.1 (Apple Git-122.3)",
295 "git_version" : "2.24.2 (Apple Git-127)",
296296 "repo_root" : "."
297297 }
298298 },
341341 "changelog" : "Changes"
342342 },
343343 "Dist::Zilla::Role::Git::Repo" : {
344 "git_version" : "2.21.1 (Apple Git-122.3)",
344 "git_version" : "2.24.2 (Apple Git-127)",
345345 "repo_root" : "."
346346 }
347347 },
369369 "changelog" : "Changes"
370370 },
371371 "Dist::Zilla::Role::Git::Repo" : {
372 "git_version" : "2.21.1 (Apple Git-122.3)",
372 "git_version" : "2.24.2 (Apple Git-127)",
373373 "repo_root" : "."
374374 },
375375 "Dist::Zilla::Role::Git::StringFormatter" : {
386386 "branch" : null,
387387 "changelog" : "Changes",
388388 "signed" : 0,
389 "tag" : "v0.002",
389 "tag" : "v0.004",
390390 "tag_format" : "v%V",
391391 "tag_message" : "v%V"
392392 },
393393 "Dist::Zilla::Role::Git::Repo" : {
394 "git_version" : "2.21.1 (Apple Git-122.3)",
394 "git_version" : "2.24.2 (Apple Git-127)",
395395 "repo_root" : "."
396396 },
397397 "Dist::Zilla::Role::Git::StringFormatter" : {
412412 "remotes_must_exist" : 1
413413 },
414414 "Dist::Zilla::Role::Git::Repo" : {
415 "git_version" : "2.21.1 (Apple Git-122.3)",
415 "git_version" : "2.24.2 (Apple Git-127)",
416416 "repo_root" : "."
417417 }
418418 },
456456 "version_regexp" : "(?^:^v(.+)$)"
457457 },
458458 "Dist::Zilla::Role::Git::Repo" : {
459 "git_version" : "2.21.1 (Apple Git-122.3)",
459 "git_version" : "2.24.2 (Apple Git-127)",
460460 "repo_root" : "."
461461 }
462462 },
640640 "version" : "6.012"
641641 }
642642 },
643 "x_generated_by_perl" : "v5.26.2",
644 "x_serialization_backend" : "Cpanel::JSON::XS version 4.06"
643 "x_generated_by_perl" : "v5.30.1",
644 "x_serialization_backend" : "Cpanel::JSON::XS version 4.19"
645645 }
646646
1818 provides:
1919 B::COW:
2020 file: lib/B/COW.pm
21 version: '0.002'
21 version: '0.004'
2222 requires:
2323 perl: '5.008'
2424 resources:
2525 bugtracker: https://github.com/atoomic/B-COW/issues
2626 repository: https://github.com/atoomic/B-COW.git
27 version: '0.002'
27 version: '0.004'
2828 x_Dist_Zilla:
2929 perl:
30 version: '5.026002'
30 version: '5.030001'
3131 plugins:
3232 -
3333 class: Dist::Zilla::Plugin::OurPkgVersion
183183 inherit_version: '1'
184184 meta_noindex: '1'
185185 Dist::Zilla::Role::ModuleMetadata:
186 Module::Metadata: '1.000033'
186 Module::Metadata: '1.000036'
187187 version: '0.006'
188188 name: MetaProvides::Package
189189 version: '2.004003'
200200 - 'gh HEAD:refs/heads/released'
201201 remotes_must_exist: 1
202202 Dist::Zilla::Role::Git::Repo:
203 git_version: '2.21.1 (Apple Git-122.3)'
203 git_version: '2.24.2 (Apple Git-127)'
204204 repo_root: .
205205 name: Git::Push
206206 version: '2.046'
236236 allow_dirty_match: []
237237 changelog: Changes
238238 Dist::Zilla::Role::Git::Repo:
239 git_version: '2.21.1 (Apple Git-122.3)'
239 git_version: '2.24.2 (Apple Git-127)'
240240 repo_root: .
241241 name: '@Git/Check'
242242 version: '2.046'
257257 allow_dirty_match: []
258258 changelog: Changes
259259 Dist::Zilla::Role::Git::Repo:
260 git_version: '2.21.1 (Apple Git-122.3)'
260 git_version: '2.24.2 (Apple Git-127)'
261261 repo_root: .
262262 Dist::Zilla::Role::Git::StringFormatter:
263263 time_zone: local
270270 branch: ~
271271 changelog: Changes
272272 signed: 0
273 tag: v0.002
273 tag: v0.004
274274 tag_format: v%V
275275 tag_message: v%V
276276 Dist::Zilla::Role::Git::Repo:
277 git_version: '2.21.1 (Apple Git-122.3)'
277 git_version: '2.24.2 (Apple Git-127)'
278278 repo_root: .
279279 Dist::Zilla::Role::Git::StringFormatter:
280280 time_zone: local
289289 - 'gh HEAD:refs/heads/released'
290290 remotes_must_exist: 1
291291 Dist::Zilla::Role::Git::Repo:
292 git_version: '2.21.1 (Apple Git-122.3)'
292 git_version: '2.24.2 (Apple Git-127)'
293293 repo_root: .
294294 name: '@Git/Push'
295295 version: '2.046'
322322 version_by_branch: 0
323323 version_regexp: (?^:^v(.+)$)
324324 Dist::Zilla::Role::Git::Repo:
325 git_version: '2.21.1 (Apple Git-122.3)'
325 git_version: '2.24.2 (Apple Git-127)'
326326 repo_root: .
327327 name: Git::NextVersion
328328 version: '2.046'
463463 config:
464464 is_trial: '0'
465465 version: '6.012'
466 x_generated_by_perl: v5.26.2
466 x_generated_by_perl: v5.30.1
467467 x_serialization_backend: 'YAML::Tiny version 1.73'
2222 "File::Spec" => 0,
2323 "Test::More" => 0
2424 },
25 "VERSION" => "0.002",
25 "VERSION" => "0.004",
2626 "test" => {
2727 "TESTS" => "t/*.t"
2828 }
00 This archive contains the distribution B-COW,
1 version 0.002:
1 version 0.004:
22
33 B::COW additional B helpers to check COW status
44
66
77 use base 'Exporter';
88
9 our $VERSION = '0.002'; # VERSION: generated by DZP::OurPkgVersion
9 our $VERSION = '0.004'; # VERSION: generated by DZP::OurPkgVersion
1010
1111 use XSLoader;
1212
3737
3838 =head1 VERSION
3939
40 version 0.002
40 version 0.004
4141
4242 =head1 SYNOPSIS
4343
77
88 use B::COW qw{:all};
99
10 if ( $] >= 5.020 ) {
10 if ( can_cow() ) {
1111 ok can_cow(), "can cow with Perl $]";
1212
1313 ok !is_cow(undef), "!is_cow(undef)";
5151 }
5252
5353 {
54 my %h = ( 'a'..'d' );
55 foreach my $k ( sort keys %h ) {
56 ok is_cow( $k ), "key $k is cowed";
57 is cowrefcnt( $k ), 0, "hash key $k cowrefcnt is 0" or Dump($k);
58 }
54 my %h = ( 'my_hash_key' => 'value' );
55 my @keys = keys %h;
56 ok is_cow( $keys[0] ), "hash key is cowed";
57 is cowrefcnt( $keys[0] ), 0, "hash key cowrefcnt is 0" or die Dump($keys[0]);
5958 }
6059
6160 } else {