threads-shared 1.05
Jerry D. Hedden [Wed, 25 Oct 2006 11:27:15 +0000 (04:27 -0700)]
From: "Jerry D. Hedden" <jdhedden@yahoo.com>
Message-ID: <20061025182715.561.qmail@web30211.mail.mud.yahoo.com>

p4raw-id: //depot/perl@29110

ext/threads/shared/Changes
ext/threads/shared/Makefile.PL
ext/threads/shared/README
ext/threads/shared/shared.pm
ext/threads/shared/shared.xs

index 97d7f97..006232f 100644 (file)
@@ -1,7 +1,15 @@
 Revision history for Perl extension threads::shared.
 
+1.05 Wed Oct 25 14:22:23 EDT 2006
+       - Makefile.PL changes for CORE
+       - g++ build fixes
+
+1.04 Thu Oct 12 10:40:18 EDT 2006
+       - Added example script
+       - Added POD tests
+
 1.03 Fri Sep 15 15:09:26 EDT 2006
-       - Fix memory leak caused blessed shared objects
+       - Fix memory leak caused by blessed shared objects
        - Upgraded ppport.h to Devel::PPPort 3.10
 
 1.02 Fri Jul 14 08:56:03 EDT 2006
index beccf25..ac35f2a 100755 (executable)
@@ -58,17 +58,21 @@ if (grep { $_ eq 'PERL_CORE=1' } @ARGV) {
         die("No 'C' compiler found to build 'threads'\n");
     }
 
-    push(@conditional_params, 'DEFINE' => '-DHAS_PPPORT_H');
+    push(@conditional_params, 'DEFINE' => '-DHAS_PPPORT_H',
+                              'PREREQ_PM' => {
+                                    'strict'            => 0,
+                                    'warnings'          => 0,
+                                    'threads'           => 0,
+                                    'Config'            => 0,
+                                    'Carp'              => 0,
+                                    'XSLoader'          => 0,
+
+                                    'Test'              => 0,
+                                    'Test::More'        => 0,
+                                    'ExtUtils::testlib' => 0,
+                              });
 }
 
-my $prereqs;
-
-if(!$ENV{PERL_CORE}) {
-    $prereqs = {
-        'threads'  => 0,
-        'XSLoader' => 0,
-    };
-}
 
 # Create Makefile
 WriteMakefile(
@@ -79,7 +83,6 @@ WriteMakefile(
     'PM' => {
         'shared.pm'     => '$(INST_LIBDIR)/shared.pm',
     },
-    'PREREQ_PM'         => $prereqs,
     'INSTALLDIRS'       => 'perl',
 
     ((ExtUtils::MakeMaker->VERSION() lt '6.25') ?
index 0f703d1..e5aead4 100644 (file)
@@ -1,4 +1,4 @@
-threads::shared version 1.03
+threads::shared version 1.05
 ============================
 
 This module needs Perl 5.8.0 or later compiled with USEITHREADS.
index c2595f2..d4a0eeb 100644 (file)
@@ -5,7 +5,7 @@ use 5.008;
 use strict;
 use warnings;
 
-our $VERSION = '1.04';
+our $VERSION = '1.05';
 my $XS_VERSION = $VERSION;
 $VERSION = eval $VERSION;
 
@@ -73,7 +73,7 @@ threads::shared - Perl extension for sharing data structures between threads
 
 =head1 VERSION
 
-This document describes threads::shared version 1.04
+This document describes threads::shared version 1.05
 
 =head1 SYNOPSIS
 
@@ -368,7 +368,7 @@ L<threads::shared> Discussion Forum on CPAN:
 L<http://www.cpanforum.com/dist/threads-shared>
 
 Annotated POD for L<threads::shared>:
-L<http://annocpan.org/~JDHEDDEN/threads-shared-1.04/shared.pm>
+L<http://annocpan.org/~JDHEDDEN/threads-shared-1.05/shared.pm>
 
 L<threads>, L<perlthrtut>
 
index 25fdec6..88d1e5c 100644 (file)
@@ -318,10 +318,11 @@ MGVTBL sharedsv_userlock_vtbl = {
    the shared thing.
  */
 
-extern MGVTBL sharedsv_scalar_vtbl; /* Scalars have this vtable */
-extern MGVTBL sharedsv_array_vtbl;  /* Hashes and arrays have this - like 'tie' */
-extern MGVTBL sharedsv_elem_vtbl;   /* Elements of hashes and arrays have this
-                                _AS WELL AS_ the scalar magic:
+extern MGVTBL sharedsv_scalar_vtbl;    /* Scalars have this vtable */
+extern MGVTBL sharedsv_array_vtbl;     /* Hashes and arrays have this
+                                            - like 'tie' */
+extern MGVTBL sharedsv_elem_vtbl;      /* Elements of hashes and arrays have
+                                          this _AS WELL AS_ the scalar magic:
    The sharedsv_elem_vtbl associates the element with the array/hash and
    the sharedsv_scalar_vtbl associates it with the value
  */