summaryrefslogtreecommitdiff
path: root/win32/dl_win32.xs
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2001-08-31 20:58:38 +0000
committerGurusamy Sarathy <gsar@cpan.org>2001-08-31 20:58:38 +0000
commitacfe0abcedaf592fb4b9cb69ce3468308ae99d91 (patch)
treea2ca08c77d2b63d1777d0b228ff53362895c1624 /win32/dl_win32.xs
parent25f58aea15b072f74afcee1b9074d33e8e7348b5 (diff)
downloadperl-acfe0abcedaf592fb4b9cb69ce3468308ae99d91.tar.gz
remove deprecated PERL_OBJECT cruft, it has long since stopped
working in 5.7.x p4raw-id: //depot/perl@11803
Diffstat (limited to 'win32/dl_win32.xs')
-rw-r--r--win32/dl_win32.xs22
1 files changed, 9 insertions, 13 deletions
diff --git a/win32/dl_win32.xs b/win32/dl_win32.xs
index d959fbdae6..fb3e3321f8 100644
--- a/win32/dl_win32.xs
+++ b/win32/dl_win32.xs
@@ -30,16 +30,12 @@ calls.
#include "perl.h"
#include "win32.h"
-#ifdef PERL_OBJECT
-#define NO_XSLOCKS
-#endif /* PERL_OBJECT */
-
#include "XSUB.h"
static SV *error_sv;
static char *
-OS_Error_String(pTHXo)
+OS_Error_String(pTHX)
{
DWORD err = GetLastError();
STRLEN len;
@@ -52,9 +48,9 @@ OS_Error_String(pTHXo)
#include "dlutils.c" /* SaveError() etc */
static void
-dl_private_init(pTHXo)
+dl_private_init(pTHX)
{
- (void)dl_generic_private_init(aTHXo);
+ (void)dl_generic_private_init(aTHX);
}
/*
@@ -96,7 +92,7 @@ dl_static_linked(char *filename)
MODULE = DynaLoader PACKAGE = DynaLoader
BOOT:
- (void)dl_private_init(aTHXo);
+ (void)dl_private_init(aTHX);
void *
dl_load_file(filename,flags=0)
@@ -114,8 +110,8 @@ dl_load_file(filename,flags=0)
DLDEBUG(2,PerlIO_printf(Perl_debug_log," libref=%x\n", RETVAL));
ST(0) = sv_newmortal() ;
if (RETVAL == NULL)
- SaveError(aTHXo_ "load_file:%s",
- OS_Error_String(aTHXo)) ;
+ SaveError(aTHX_ "load_file:%s",
+ OS_Error_String(aTHX)) ;
else
sv_setiv( ST(0), (IV)RETVAL);
}
@@ -131,8 +127,8 @@ dl_find_symbol(libhandle, symbolname)
DLDEBUG(2,PerlIO_printf(Perl_debug_log," symbolref = %x\n", RETVAL));
ST(0) = sv_newmortal() ;
if (RETVAL == NULL)
- SaveError(aTHXo_ "find_symbol:%s",
- OS_Error_String(aTHXo)) ;
+ SaveError(aTHX_ "find_symbol:%s",
+ OS_Error_String(aTHX)) ;
else
sv_setiv( ST(0), (IV)RETVAL);
@@ -154,7 +150,7 @@ dl_install_xsub(perl_name, symref, filename="$Package")
DLDEBUG(2,PerlIO_printf(Perl_debug_log,"dl_install_xsub(name=%s, symref=%x)\n",
perl_name, symref));
ST(0) = sv_2mortal(newRV((SV*)newXS(perl_name,
- (void(*)(pTHXo_ CV *))symref,
+ (void(*)(pTHX_ CV *))symref,
filename)));