Skip to content

Commit

Permalink
remove deprecated PERL_OBJECT cruft, it has long since stopped
Browse files Browse the repository at this point in the history
working in 5.7.x

p4raw-id: //depot/perl@11803
  • Loading branch information
Gurusamy Sarathy committed Aug 31, 2001
1 parent 25f58ae commit acfe0ab
Show file tree
Hide file tree
Showing 84 changed files with 1,637 additions and 13,369 deletions.
2 changes: 1 addition & 1 deletion EXTERN.h
Expand Up @@ -27,7 +27,7 @@
# define EXTCONST globalref
# define dEXTCONST globaldef {"$GLOBAL_RO_VARS"} readonly
#else
# if defined(WIN32) && !defined(PERL_STATIC_SYMS) && !defined(PERL_OBJECT)
# if defined(WIN32) && !defined(PERL_STATIC_SYMS)
# ifdef PERLDLL
# define EXT extern __declspec(dllexport)
# define dEXT
Expand Down
3 changes: 1 addition & 2 deletions MANIFEST
Expand Up @@ -42,7 +42,7 @@ emacs/cperl-mode.el An alternate perl-mode
emacs/e2ctags.pl etags to ctags converter
emacs/ptags Creates smart TAGS file
embed.h Maps symbols to safer names
embed.pl Produces {embed,embedvar,objXSUB,proto}.h, global.sym
embed.pl Produces {embed,embedvar,proto}.h, global.sym
embedvar.h C namespace management
epoc/config.sh EPOC port config.sh template
epoc/createpkg.pl EPOC port generate PKG file
Expand Down Expand Up @@ -1606,7 +1606,6 @@ NetWare/testnlm/type/type.c Netware port
NetWare/win32ish.h Netware port
nostdio.h Cause compile error on stdio calls
numeric.c Miscellaneous numeric conversion routines
objXSUB.h Scoping macros for Perl Object in extensions
op.c Opcode syntax tree code
op.h Opcode syntax tree header
opcode.h Automatically generated opcode header
Expand Down
4 changes: 2 additions & 2 deletions Makefile.SH
Expand Up @@ -773,7 +773,7 @@ CHMOD_W = chmod +w
# keywords.pl: keywords.h
# opcode.pl: opcode.h opnames.h pp_proto.h pp.sym
# [* embed.pl needs pp.sym generated by opcode.pl! *]
# embed.pl: proto.h embed.h embedvar.h global.sym objXSUB.h
# embed.pl: proto.h embed.h embedvar.h global.sym
# perlapi.h perlapi.c pod/perlintern.pod
# pod/perlapi.pod
# bytecode.pl: ext/ByteLoader/byterun.h ext/ByteLoader/byterun.c
Expand All @@ -788,7 +788,7 @@ CHMOD_W = chmod +w
AUTOGEN_FILES = keywords.h opcode.h opnames.h pp_proto.h pp.sym proto.h \
embed.h embedvar.h global.sym \
pod/perlintern.pod pod/perlapi.pod \
objXSUB.h perlapi.h perlapi.c ext/ByteLoader/byterun.h \
perlapi.h perlapi.c ext/ByteLoader/byterun.h \
ext/ByteLoader/byterun.c ext/B/B/Asmdata.pm regnodes.h \
warnings.h lib/warnings.pm
Expand Down
2 changes: 1 addition & 1 deletion Makefile.micro
Expand Up @@ -122,7 +122,7 @@ ulocale$(_O): $(HE) locale.c
unumeric$(_O): $(HE) numeric.c
$(CC) -c -o $@ $(CFLAGS) numeric.c

uuniversal$(_O): $(HE) universal.c objXSUB.h XSUB.h
uuniversal$(_O): $(HE) universal.c XSUB.h
$(CC) -c -o $@ $(CFLAGS) universal.c

uutf8$(_O): $(HE) utf8.c
Expand Down
41 changes: 4 additions & 37 deletions NetWare/Makefile
Expand Up @@ -463,17 +463,6 @@ USE_IMP_SYS = define
#
#USE_5005THREADS= define

#
# WARNING! This option is deprecated and will eventually go away (enable
# USE_MULTI instead).
#
# uncomment next line if you want to use the PERL_OBJECT build option.
# DO NOT ENABLE unless you have legacy code that relies on the C++
# CPerlObj class that was available in 5.005. This cannot be enabled
# if you ask for USE_5005THREADS above.
#
#USE_OBJECT = define

# For now let this be here
#
#CRYPT_SRC = fcrypt.c
Expand Down Expand Up @@ -510,13 +499,6 @@ D_CRYPT = define
CRYPT_FLAG = -DHAVE_DES_FCRYPT
!ENDIF

!IF "$(USE_OBJECT)" == "define"
PERL_MALLOC = undef
USE_5005THREADS = undef
USE_MULTI = undef
USE_IMP_SYS = define
!ENDIF

!IF "$(PERL_MALLOC)" == ""
PERL_MALLOC = undef
!ENDIF
Expand All @@ -537,10 +519,6 @@ PERL_MALLOC = undef
USE_MULTI = undef
!ENDIF

!IF "$(USE_OBJECT)" == ""
USE_OBJECT = undef
!ENDIF

!IF "$(USE_ITHREADS)" == ""
USE_ITHREADS = undef
!ENDIF
Expand All @@ -553,16 +531,16 @@ USE_IMP_SYS = undef
USE_PERLCRT = undef
!ENDIF

!IF "$(USE_IMP_SYS)$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" == "defineundefundefundef"
!IF "$(USE_IMP_SYS)$(USE_MULTI)$(USE_5005THREADS)" == "defineundefundef"
USE_MULTI = define
!ENDIF

!IF "$(USE_ITHREADS)$(USE_MULTI)$(USE_OBJECT)" == "defineundefundef"
!IF "$(USE_ITHREADS)$(USE_MULTI)" == "defineundef"
USE_MULTI = define
USE_5005THREADS = undef
!ENDIF

!IF "$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" != "undefundefundef"
!IF "$(USE_MULTI)$(USE_5005THREADS)" != "undefundef"
BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
!ENDIF

Expand All @@ -574,9 +552,6 @@ BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
PROCESSOR_ARCHITECTURE = x86
!ENDIF

!IF "$(USE_OBJECT)" == "define"
ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)-object
!ELSE
!IF "$(USE_5005THREADS)" == "define"
ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)-thread
!ELSE
Expand All @@ -586,9 +561,8 @@ ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)-multi
ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)
!ENDIF
!ENDIF
!ENDIF

!IF "$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" != "undefundefundef"
!IF "$(USE_MULTI)$(USE_5005THREADS)" != "undefundef"
ADD_BUILDOPT = $(ADD_BUILDOPT) -DPERL_IMPLICIT_CONTEXT
!ENDIF

Expand Down Expand Up @@ -630,11 +604,6 @@ INST_HTML = $(INST_POD)\html
# Options
#

!IF "$(USE_OBJECT)" == "define"
OPTIMIZE = $(OPTIMIZE) $(CXX_FLAG)
BUILDOPT = $(BUILDOPT) -DPERL_OBJECT
!ENDIF

OBJOUT_FLAG = -Fo
EXEOUT_FLAG = -Fe

Expand Down Expand Up @@ -736,9 +705,7 @@ MICROCORE_SRC = \
EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
!ENDIF

#!IF "$(USE_OBJECT)" != "define"
#EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
#!ENDIF

!IF "$(CRYPT_SRC)" != ""
NW_SRC = $(NW_SRC) .\$(CRYPT_SRC)
Expand Down
3 changes: 1 addition & 2 deletions NetWare/config_h.PL
Expand Up @@ -2,7 +2,6 @@
use Config;
use File::Compare qw(compare);
use File::Copy qw(copy);
my $OBJ = 1 if $Config{'ccflags'} =~ /PERL_OBJECT/i;
my $name = $0;
$name =~ s#^(.*)\.PL$#../$1.SH#;
my %opt;
Expand Down Expand Up @@ -78,7 +77,7 @@ chmod(0666,"../lib/CORE/config.h");
copy("$file.new","../lib/CORE/config.h") || die "Cannot copy:$!";
chmod(0444,"../lib/CORE/config.h");

if (!$OBJ && compare("$file.new",$file))
if (compare("$file.new",$file))
{
warn "$file has changed\n";
chmod(0666,$file);
Expand Down
20 changes: 8 additions & 12 deletions NetWare/dl_netware.xs
Expand Up @@ -27,23 +27,19 @@ NetWare related modifications done on dl_win32.xs file created by Wei-Yuen Tan t
//function pointer for UCSInitialize
typedef void (*PFUCSINITIALIZE) ();

#ifdef PERL_OBJECT

#endif /* PERL_OBJECT */

#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);
}


MODULE = DynaLoader PACKAGE = DynaLoader

BOOT:
(void)dl_private_init(aTHXo);
(void)dl_private_init(aTHX);


void *
Expand Down Expand Up @@ -130,8 +126,8 @@ dl_load_file(filename,flags=0)
DLDEBUG(2,PerlIO_printf(Perl_debug_log," libref=%x\n", nlmHandle));
ST(0) = sv_newmortal() ;
if (nlmHandle == NULL)
//SaveError(aTHXo_ "load_file:%s",
// OS_Error_String(aTHXo)) ;
//SaveError(aTHX_ "load_file:%s",
// OS_Error_String(aTHX)) ;
ConsolePrintf("load_file error : %s\n", mod_name8);
else
sv_setiv( ST(0), (IV)nlmHandle);
Expand All @@ -156,8 +152,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)) ;
ConsolePrintf("find_symbol error \n");
else
sv_setiv( ST(0), (IV)RETVAL);
Expand All @@ -178,7 +174,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)));


Expand Down
20 changes: 2 additions & 18 deletions NetWare/interface.c
Expand Up @@ -24,7 +24,7 @@ static void xs_init(pTHX);

EXTERN_C int RunPerl(int argc, char **argv, char **env);
EXTERN_C void Perl_nw5_init(int *argcp, char ***argvp);
EXTERN_C void boot_DynaLoader (pTHXo_ CV* cv);
EXTERN_C void boot_DynaLoader (pTHX_ CV* cv);


ClsPerlHost::ClsPerlHost()
Expand Down Expand Up @@ -141,23 +141,7 @@ int RunPerl(int argc, char **argv, char **env)
if(exitstatus == 0)
{
#if defined(TOP_CLONE) && defined(USE_ITHREADS) // XXXXXX testing
# ifdef PERL_OBJECT
CPerlHost *h = new CPerlHost();
new_perl = perl_clone_using(my_perl, 1,
h->m_pHostperlMem,
h->m_pHostperlMemShared,
h->m_pHostperlMemParse,
h->m_pHostperlEnv,
h->m_pHostperlStdIO,
h->m_pHostperlLIO,
h->m_pHostperlDir,
h->m_pHostperlSock,
h->m_pHostperlProc
);
CPerlObj *pPerl = (CPerlObj*)new_perl;
# else
new_perl = perl_clone(my_perl, 1);
# endif
new_perl = perl_clone(my_perl, 1);

exitstatus = perl_run(new_perl); // Run Perl.
PERL_SET_THX(my_perl);
Expand Down
10 changes: 5 additions & 5 deletions NetWare/nw5.c
Expand Up @@ -17,7 +17,7 @@



#include <perl.h> // For dTHXo, etc.
#include <perl.h> // For dTHX, etc.
#include "nwpipe.h"


Expand Down Expand Up @@ -211,7 +211,7 @@ nw_stdout()
long
nw_telldir(DIR *dirp)
{
dTHXo;
dTHX;
Perl_croak(aTHX_ "telldir function is not implemented");
return 0l;
}
Expand Down Expand Up @@ -292,7 +292,7 @@ nw_write(int fd, const void *buf, unsigned int cnt)
char *
nw_crypt(const char *txt, const char *salt)
{
dTHXo;
dTHX;

#ifdef HAVE_DES_FCRYPT
dTHR;
Expand Down Expand Up @@ -752,7 +752,7 @@ nw_rename(const char *oname, const char *newname)
void
nw_rewinddir(DIR *dirp)
{
dTHXo;
dTHX;
Perl_croak(aTHX_ "rewinddir function is not implemented");
}

Expand All @@ -766,7 +766,7 @@ nw_rewind(FILE *pf)
void
nw_seekdir(DIR *dirp, long loc)
{
dTHXo;
dTHX;
Perl_croak(aTHX_ "seekdir function is not implemented");
}

Expand Down
5 changes: 0 additions & 5 deletions NetWare/nw5sck.c
Expand Up @@ -20,11 +20,6 @@
#include "EXTERN.h"
#include "perl.h"

#if defined(PERL_OBJECT)
#define NO_XSLOCKS
#include "XSUB.h"
#endif

#include "nw5iop.h"
#include "nw5sck.h"
#include <fcntl.h>
Expand Down
6 changes: 0 additions & 6 deletions NetWare/nw5thread.c
Expand Up @@ -20,12 +20,6 @@
#include "EXTERN.h"
#include "perl.h"

#if defined(PERL_OBJECT)
#define NO_XSLOCKS
extern CPerlObj* pPerl;
#include "XSUB.h"
#endif

//For Thread Local Storage
#include "win32ish.h" // For "BOOL", "TRUE" and "FALSE"
#include "nwtinfo.h"
Expand Down
10 changes: 0 additions & 10 deletions NetWare/nwperlsys.c
Expand Up @@ -20,10 +20,6 @@
#include "perl.h"


#ifdef PERL_OBJECT
#define NO_XSLOCKS
#endif

//CHKSGP
//Including this is giving premature end-of-file error during compilation
//#include "XSUB.h"
Expand Down Expand Up @@ -102,9 +98,6 @@ perl_alloc(void)
&perlSock,
&perlProc);
if (my_perl) {
#ifdef PERL_OBJECT
CPerlObj* pPerl = (CPerlObj*)my_perl;
#endif
//nw5_internal_host = m_allocList;
}
return my_perl;
Expand Down Expand Up @@ -188,9 +181,6 @@ perl_alloc_override(struct IPerlMem** ppMem, struct IPerlMem** ppMemShared,
lpProc);

if (my_perl) {
#ifdef PERL_OBJECT
CPerlObj* pPerl = (CPerlObj*)my_perl;
#endif
//nw5_internal_host = pHost;
}
return my_perl;
Expand Down

0 comments on commit acfe0ab

Please sign in to comment.