From 08e5223a8528b971b4471b7221166ff3212af428 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Wed, 1 May 2002 02:39:32 +0000 Subject: [PATCH] Try #2 of getting rid of bincompat5005. p4raw-id: //depot/perl@16293 --- Configure | 45 +-------------------------------------------- NetWare/config_H.wc | 12 ++---------- Porting/Glossary | 2 +- Porting/config.sh | 22 +++++++++++----------- Porting/config_H | 16 ++++------------ config_h.SH | 8 -------- embed.h | 38 +------------------------------------- embed.pl | 38 +------------------------------------- vos/config.alpha.h | 12 ++---------- vos/config.ga.h | 12 ++---------- win32/config_H.bc | 12 ++---------- win32/config_H.gc | 12 ++---------- win32/config_H.vc | 8 -------- win32/config_H.vc64 | 12 ++---------- wince/config.h | 12 ++---------- wince/config_H.ce | 14 +++----------- 16 files changed, 36 insertions(+), 239 deletions(-) diff --git a/Configure b/Configure index c9d7651..e32cc75 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Wed May 1 05:49:09 EET DST 2002 [metaconfig 3.0 PL70] +# Generated on Wed May 1 06:26:42 EET DST 2002 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un #define BIN "$bin" /**/ #define BIN_EXP "$binexp" /**/ -/* PERL_BINCOMPAT_5005: - * This symbol, if defined, indicates that this version of Perl should be - * binary-compatible with Perl 5.005. This is impossible for builds - * that use features like threads and multiplicity it is always $undef - * for those versions. - */ -#$d_bincompat5005 PERL_BINCOMPAT_5005 /**/ - /* BYTEORDER: * This symbol holds the hexadecimal constant defined in byteorder, * in a UV, i.e. 0x1234 or 0x4321 or 0x12345678, etc... diff --git a/embed.h b/embed.h index 3fa08a9..805fd0d 100644 --- a/embed.h +++ b/embed.h @@ -15,42 +15,6 @@ /* NO_EMBED is no longer supported. i.e. EMBED is always active. */ -/* provide binary compatible (but inconsistent) names */ -#if defined(PERL_BINCOMPAT_5005) -# define Perl_call_atexit perl_atexit -# define Perl_eval_sv perl_eval_sv -# define Perl_eval_pv perl_eval_pv -# define Perl_call_argv perl_call_argv -# define Perl_call_method perl_call_method -# define Perl_call_pv perl_call_pv -# define Perl_call_sv perl_call_sv -# define Perl_get_av perl_get_av -# define Perl_get_cv perl_get_cv -# define Perl_get_hv perl_get_hv -# define Perl_get_sv perl_get_sv -# define Perl_init_i18nl10n perl_init_i18nl10n -# define Perl_init_i18nl14n perl_init_i18nl14n -# define Perl_new_collate perl_new_collate -# define Perl_new_ctype perl_new_ctype -# define Perl_new_numeric perl_new_numeric -# define Perl_require_pv perl_require_pv -# define Perl_safesyscalloc Perl_safecalloc -# define Perl_safesysfree Perl_safefree -# define Perl_safesysmalloc Perl_safemalloc -# define Perl_safesysrealloc Perl_saferealloc -# define Perl_set_numeric_local perl_set_numeric_local -# define Perl_set_numeric_standard perl_set_numeric_standard -/* malloc() pollution was the default in earlier versions, so enable - * it for bincompat; but not for systems that used to do prevent that, - * or when they ask for {HIDE,EMBED}MYMALLOC */ -# if !defined(EMBEDMYMALLOC) && !defined(HIDEMYMALLOC) -# if !defined(NeXT) && !defined(__NeXT) && !defined(__MACHTEN__) && \ - !defined(__QNX__) -# define PERL_POLLUTE_MALLOC -# endif -# endif -#endif - /* Hide global symbols */ #if !defined(PERL_IMPLICIT_CONTEXT) @@ -3203,7 +3167,7 @@ # define sv_setptrref(rv,ptr) sv_setref_iv(rv,Nullch,PTR2IV(ptr)) #endif -#if !defined(PERL_CORE) && !defined(PERL_NOCOMPAT) && !defined(PERL_BINCOMPAT_5005) +#if !defined(PERL_CORE) && !defined(PERL_NOCOMPAT) /* Compatibility for various misnamed functions. All functions in the API that begin with "perl_" (not "Perl_") take an explicit diff --git a/embed.pl b/embed.pl index 073cdf3..219fad3 100755 --- a/embed.pl +++ b/embed.pl @@ -318,42 +318,6 @@ print EM <<'END'; /* NO_EMBED is no longer supported. i.e. EMBED is always active. */ -/* provide binary compatible (but inconsistent) names */ -#if defined(PERL_BINCOMPAT_5005) -# define Perl_call_atexit perl_atexit -# define Perl_eval_sv perl_eval_sv -# define Perl_eval_pv perl_eval_pv -# define Perl_call_argv perl_call_argv -# define Perl_call_method perl_call_method -# define Perl_call_pv perl_call_pv -# define Perl_call_sv perl_call_sv -# define Perl_get_av perl_get_av -# define Perl_get_cv perl_get_cv -# define Perl_get_hv perl_get_hv -# define Perl_get_sv perl_get_sv -# define Perl_init_i18nl10n perl_init_i18nl10n -# define Perl_init_i18nl14n perl_init_i18nl14n -# define Perl_new_collate perl_new_collate -# define Perl_new_ctype perl_new_ctype -# define Perl_new_numeric perl_new_numeric -# define Perl_require_pv perl_require_pv -# define Perl_safesyscalloc Perl_safecalloc -# define Perl_safesysfree Perl_safefree -# define Perl_safesysmalloc Perl_safemalloc -# define Perl_safesysrealloc Perl_saferealloc -# define Perl_set_numeric_local perl_set_numeric_local -# define Perl_set_numeric_standard perl_set_numeric_standard -/* malloc() pollution was the default in earlier versions, so enable - * it for bincompat; but not for systems that used to do prevent that, - * or when they ask for {HIDE,EMBED}MYMALLOC */ -# if !defined(EMBEDMYMALLOC) && !defined(HIDEMYMALLOC) -# if !defined(NeXT) && !defined(__NeXT) && !defined(__MACHTEN__) && \ - !defined(__QNX__) -# define PERL_POLLUTE_MALLOC -# endif -# endif -#endif - /* Hide global symbols */ #if !defined(PERL_IMPLICIT_CONTEXT) @@ -463,7 +427,7 @@ print EM <<'END'; # define sv_setptrref(rv,ptr) sv_setref_iv(rv,Nullch,PTR2IV(ptr)) #endif -#if !defined(PERL_CORE) && !defined(PERL_NOCOMPAT) && !defined(PERL_BINCOMPAT_5005) +#if !defined(PERL_CORE) && !defined(PERL_NOCOMPAT) /* Compatibility for various misnamed functions. All functions in the API that begin with "perl_" (not "Perl_") take an explicit diff --git a/vos/config.alpha.h b/vos/config.alpha.h index d4d1ed7..916e99c 100644 --- a/vos/config.alpha.h +++ b/vos/config.alpha.h @@ -1014,14 +1014,6 @@ #define BIN "/system/ported/command_library" /**/ #define BIN_EXP "/system/ported/command_library" /**/ -/* PERL_BINCOMPAT_5005: - * This symbol, if defined, indicates that this version of Perl should be - * binary-compatible with Perl 5.005. This is impossible for builds - * that use features like threads and multiplicity it is always $undef - * for those versions. - */ -/*#define PERL_BINCOMPAT_5005 /**/ - /* BYTEORDER: * This symbol holds the hexadecimal constant defined in byteorder, * i.e. 0x1234 or 0x4321, etc... @@ -3580,8 +3572,8 @@ * See INSTALL for how this works. * The versioned site_perl directory was introduced in 5.005, * so that is the lowest possible value. - * Since this can depend on compile time options (such as - * bincompat) it is set by Configure. Other non-default sources + * Since this can depend on compile time options + * it is set by Configure. Other non-default sources * of potential incompatibility, such as multiplicity, threads, * debugging, 64bits, sfio, etc., are not checked for currently, * though in principle we could go snooping around in old diff --git a/vos/config.ga.h b/vos/config.ga.h index 923f44e..c1993c2 100644 --- a/vos/config.ga.h +++ b/vos/config.ga.h @@ -1014,14 +1014,6 @@ #define BIN "/system/gnu_library/bin" /**/ #define BIN_EXP "/system/gnu_library/bin" /**/ -/* PERL_BINCOMPAT_5005: - * This symbol, if defined, indicates that this version of Perl should be - * binary-compatible with Perl 5.005. This is impossible for builds - * that use features like threads and multiplicity it is always $undef - * for those versions. - */ -/*#define PERL_BINCOMPAT_5005 /**/ - /* BYTEORDER: * This symbol holds the hexadecimal constant defined in byteorder, * i.e. 0x1234 or 0x4321, etc... @@ -3580,8 +3572,8 @@ * See INSTALL for how this works. * The versioned site_perl directory was introduced in 5.005, * so that is the lowest possible value. - * Since this can depend on compile time options (such as - * bincompat) it is set by Configure. Other non-default sources + * Since this can depend on compile time options + * it is set by Configure. Other non-default sources * of potential incompatibility, such as multiplicity, threads, * debugging, 64bits, sfio, etc., are not checked for currently, * though in principle we could go snooping around in old diff --git a/win32/config_H.bc b/win32/config_H.bc index 631e06d..5ccd4e8 100644 --- a/win32/config_H.bc +++ b/win32/config_H.bc @@ -1014,14 +1014,6 @@ #define BIN "c:\\perl\\5.7.3\\bin\\MSWin32-x86-multi-thread" /**/ #define BIN_EXP "c:\\perl\\5.7.3\\bin\\MSWin32-x86-multi-thread" /**/ -/* PERL_BINCOMPAT_5005: - * This symbol, if defined, indicates that this version of Perl should be - * binary-compatible with Perl 5.005. This is impossible for builds - * that use features like threads and multiplicity it is always undef - * for those versions. - */ -/*#define PERL_BINCOMPAT_5005 /**/ - /* BYTEORDER: * This symbol holds the hexadecimal constant defined in byteorder, * i.e. 0x1234 or 0x4321, etc... @@ -3331,8 +3323,8 @@ * See INSTALL for how this works. * The versioned site_perl directory was introduced in 5.005, * so that is the lowest possible value. - * Since this can depend on compile time options (such as - * bincompat) it is set by Configure. Other non-default sources + * Since this can depend on compile time options + * it is set by Configure. Other non-default sources * of potential incompatibility, such as multiplicity, threads, * debugging, 64bits, sfio, etc., are not checked for currently, * though in principle we could go snooping around in old diff --git a/win32/config_H.gc b/win32/config_H.gc index 2c39f80..a4fb0aa 100644 --- a/win32/config_H.gc +++ b/win32/config_H.gc @@ -1014,14 +1014,6 @@ #define BIN "c:\\perl\\5.7.3\\bin\\MSWin32-x86-multi-thread" /**/ #define BIN_EXP "c:\\perl\\5.7.3\\bin\\MSWin32-x86-multi-thread" /**/ -/* PERL_BINCOMPAT_5005: - * This symbol, if defined, indicates that this version of Perl should be - * binary-compatible with Perl 5.005. This is impossible for builds - * that use features like threads and multiplicity it is always undef - * for those versions. - */ -/*#define PERL_BINCOMPAT_5005 /**/ - /* BYTEORDER: * This symbol holds the hexadecimal constant defined in byteorder, * i.e. 0x1234 or 0x4321, etc... @@ -3331,8 +3323,8 @@ * See INSTALL for how this works. * The versioned site_perl directory was introduced in 5.005, * so that is the lowest possible value. - * Since this can depend on compile time options (such as - * bincompat) it is set by Configure. Other non-default sources + * Since this can depend on compile time options + * it is set by Configure. Other non-default sources * of potential incompatibility, such as multiplicity, threads, * debugging, 64bits, sfio, etc., are not checked for currently, * though in principle we could go snooping around in old diff --git a/win32/config_H.vc b/win32/config_H.vc index e378f5a..9c9a214 100644 --- a/win32/config_H.vc +++ b/win32/config_H.vc @@ -1014,14 +1014,6 @@ #define BIN "c:\\perl\\5.7.3\\bin\\MSWin32-x86-multi-thread" /**/ #define BIN_EXP "c:\\perl\\5.7.3\\bin\\MSWin32-x86-multi-thread" /**/ -/* PERL_BINCOMPAT_5005: - * This symbol, if defined, indicates that this version of Perl should be - * binary-compatible with Perl 5.005. This is impossible for builds - * that use features like threads and multiplicity it is always undef - * for those versions. - */ -/*#define PERL_BINCOMPAT_5005 /**/ - /* BYTEORDER: * This symbol holds the hexadecimal constant defined in byteorder, * i.e. 0x1234 or 0x4321, etc... diff --git a/win32/config_H.vc64 b/win32/config_H.vc64 index f78e51e..2771c63 100644 --- a/win32/config_H.vc64 +++ b/win32/config_H.vc64 @@ -1014,14 +1014,6 @@ #define BIN "c:\\perl\\5.7.3\\bin\\MSWin32-x86-multi-thread" /**/ #define BIN_EXP "c:\\perl\\5.7.3\\bin\\MSWin32-x86-multi-thread" /**/ -/* PERL_BINCOMPAT_5005: - * This symbol, if defined, indicates that this version of Perl should be - * binary-compatible with Perl 5.005. This is impossible for builds - * that use features like threads and multiplicity it is always undef - * for those versions. - */ -/*#define PERL_BINCOMPAT_5005 /**/ - /* BYTEORDER: * This symbol holds the hexadecimal constant defined in byteorder, * i.e. 0x1234 or 0x4321, etc... @@ -3331,8 +3323,8 @@ * See INSTALL for how this works. * The versioned site_perl directory was introduced in 5.005, * so that is the lowest possible value. - * Since this can depend on compile time options (such as - * bincompat) it is set by Configure. Other non-default sources + * Since this can depend on compile time options + * it is set by Configure. Other non-default sources * of potential incompatibility, such as multiplicity, threads, * debugging, 64bits, sfio, etc., are not checked for currently, * though in principle we could go snooping around in old diff --git a/wince/config.h b/wince/config.h index 4962af7..53ed69c 100644 --- a/wince/config.h +++ b/wince/config.h @@ -1055,14 +1055,6 @@ #define BIN "5.7.3\\bin" /**/ #define BIN_EXP "5.7.3\\bin" /**/ -/* PERL_BINCOMPAT_5005: - * This symbol, if defined, indicates that this version of Perl should be - * binary-compatible with Perl 5.005. This is impossible for builds - * that use features like threads and multiplicity it is always undef - * for those versions. - */ -/*#define PERL_BINCOMPAT_5005 /**/ - /* BYTEORDER: * This symbol holds the hexadecimal constant defined in byteorder, * i.e. 0x1234 or 0x4321, etc... @@ -3266,8 +3258,8 @@ * See INSTALL for how this works. * The versioned site_perl directory was introduced in 5.005, * so that is the lowest possible value. - * Since this can depend on compile time options (such as - * bincompat) it is set by Configure. Other non-default sources + * Since this can depend on compile time options + * it is set by Configure. Other non-default sources * of potential incompatibility, such as multiplicity, threads, * debugging, 64bits, sfio, etc., are not checked for currently, * though in principle we could go snooping around in old diff --git a/wince/config_H.ce b/wince/config_H.ce index da05692..9102e89 100644 --- a/wince/config_H.ce +++ b/wince/config_H.ce @@ -1118,14 +1118,6 @@ #define BIN "c:\\perl\\5.6.0\\bin\\MSWin32-x86" /**/ #define BIN_EXP "c:\\perl\\5.6.0\\bin\\MSWin32-x86" /**/ -/* PERL_BINCOMPAT_5005: - * This symbol, if defined, indicates that this version of Perl should be - * binary-compatible with Perl 5.005. This is impossible for builds - * that use features like threads and multiplicity it is always undef - * for those versions. - */ -/*#define PERL_BINCOMPAT_5005 /**/ - /* BYTEORDER: * This symbol holds the hexadecimal constant defined in byteorder, * i.e. 0x1234 or 0x4321, etc... @@ -2935,7 +2927,7 @@ * used in a fully backward compatible manner. */ #ifndef USE_PERLIO -/*#define USE_PERLIO /**/ +#define USE_PERLIO /**/ #endif /* USE_SOCKS: @@ -3030,8 +3022,8 @@ * See INSTALL for how this works. * The versioned site_perl directory was introduced in 5.005, * so that is the lowest possible value. - * Since this can depend on compile time options (such as - * bincompat) it is set by Configure. Other non-default sources + * Since this can depend on compile time options + * it is set by Configure. Other non-default sources * of potential incompatibility, such as multiplicity, threads, * debugging, 64bits, sfio, etc., are not checked for currently, * though in principle we could go snooping around in old -- 1.8.3.1