diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-08-13 12:45:21 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-08-13 12:45:21 +0000 |
commit | cd1ee231f67664d7a2f2d53512a707d2736dbb0e (patch) | |
tree | 26d3be9ce06d827160183cf5272c57670329c2cb /objXSUB.h | |
parent | f3faeb53b75c95d2773d14d859d4fa9ca1594daa (diff) | |
download | perl-cd1ee231f67664d7a2f2d53512a707d2736dbb0e.tar.gz |
[PATHC] sharedsv.[c|h]
From: "Artur Bergman" <artur@contiller.se>
Date: Mon, 13 Aug 2001 14:38:41 +0200
Message-ID: <005401c123f4$e1f53360$21000a0a@vogw2kdev>
Subject: [PATCH] embed.pl
From: Arthur Bergman <arthur@contiller.se>
Date: Mon, 13 Aug 2001 14:38:14 +0200
Message-ID: <B79D96D6.3088%arthur@contiller.se>
Subject: [PATCH] sharedsv cleanups
From: "Arthur Bergman" <arthur@contiller.se>
Date: Mon, 13 Aug 2001 15:14:25 +0200
Message-ID: <005a01c123f9$dfe525d0$21000a0a@vogw2kdev>
Plus few tweaks: _init needs to be Adp, the prototypes
should not be revealed unless using ithreads, #endif FOO
must be #endif /* FOO */, adding (parentheses) around
do { } while doesn't work too well.
p4raw-id: //depot/perl@11659
Diffstat (limited to 'objXSUB.h')
-rw-r--r-- | objXSUB.h | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -2392,6 +2392,36 @@ #endif #if defined(PERL_IN_SCOPE_C) || defined(PERL_DECL_PROT) #endif +#if defined(USE_ITHREADS) && (defined(PERL_IN_SHAREDSV_C) || defined(PERL_DECL_PROT)) +#undef Perl_sharedsv_init +#define Perl_sharedsv_init pPerl->Perl_sharedsv_init +#undef sharedsv_init +#define sharedsv_init Perl_sharedsv_init +#undef Perl_sharedsv_new +#define Perl_sharedsv_new pPerl->Perl_sharedsv_new +#undef sharedsv_new +#define sharedsv_new Perl_sharedsv_new +#undef Perl_sharedsv_find +#define Perl_sharedsv_find pPerl->Perl_sharedsv_find +#undef sharedsv_find +#define sharedsv_find Perl_sharedsv_find +#undef Perl_sharedsv_lock +#define Perl_sharedsv_lock pPerl->Perl_sharedsv_lock +#undef sharedsv_lock +#define sharedsv_lock Perl_sharedsv_lock +#undef Perl_sharedsv_unlock +#define Perl_sharedsv_unlock pPerl->Perl_sharedsv_unlock +#undef sharedsv_unlock +#define sharedsv_unlock Perl_sharedsv_unlock +#undef Perl_sharedsv_thrcnt_inc +#define Perl_sharedsv_thrcnt_inc pPerl->Perl_sharedsv_thrcnt_inc +#undef sharedsv_thrcnt_inc +#define sharedsv_thrcnt_inc Perl_sharedsv_thrcnt_inc +#undef Perl_sharedsv_thrcnt_dec +#define Perl_sharedsv_thrcnt_dec pPerl->Perl_sharedsv_thrcnt_dec +#undef sharedsv_thrcnt_dec +#define sharedsv_thrcnt_dec Perl_sharedsv_thrcnt_dec +#endif #if defined(PERL_IN_SV_C) || defined(PERL_DECL_PROT) # ifdef DEBUGGING # endif |