#define mod Perl_mod
#define moreswitches Perl_moreswitches
#define my Perl_my
-#ifdef USE_LOCALE_NUMERIC
#define my_atof Perl_my_atof
-#endif
#if !defined(HAS_BCOPY) || !defined(HAS_SAFE_BCOPY)
#define my_bcopy Perl_my_bcopy
#endif
#define mod(a,b) Perl_mod(aTHX_ a,b)
#define moreswitches(a) Perl_moreswitches(aTHX_ a)
#define my(a) Perl_my(aTHX_ a)
-#ifdef USE_LOCALE_NUMERIC
#define my_atof(a) Perl_my_atof(aTHX_ a)
-#endif
#if !defined(HAS_BCOPY) || !defined(HAS_SAFE_BCOPY)
#define my_bcopy(a,b,c) Perl_my_bcopy(aTHX_ a,b,c)
#endif
#define moreswitches Perl_moreswitches
#define Perl_my CPerlObj::Perl_my
#define my Perl_my
-#ifdef USE_LOCALE_NUMERIC
#define Perl_my_atof CPerlObj::Perl_my_atof
#define my_atof Perl_my_atof
-#endif
#if !defined(HAS_BCOPY) || !defined(HAS_SAFE_BCOPY)
#define Perl_my_bcopy CPerlObj::Perl_my_bcopy
#define my_bcopy Perl_my_bcopy
p |OP* |mod |OP* o|I32 type
p |char* |moreswitches |char* s
p |OP* |my |OP* o
-#ifdef USE_LOCALE_NUMERIC
p |double |my_atof |const char *s
-#endif
#if !defined(HAS_BCOPY) || !defined(HAS_SAFE_BCOPY)
p |char* |my_bcopy |const char* from|char* to|I32 len
#endif
/* ARGSUSED */
void *dlopen(char *path, int mode)
{
+ dTHX;
register ModulePtr mp;
static int inited; /* XXX threadead */
*/
static int readExports(ModulePtr mp)
{
+ dTHX;
LDFILE *ldp = NULL;
SCNHDR sh;
LDHDR *lhp;
static void TranslateError
(const char *path, enum dyldErrorSource type, int number)
{
+ dTHX;
char *error;
unsigned int index;
static char *OFIErrorStrings[] =
static void TranslateError
(const char *path, enum dyldErrorSource type, int number)
{
+ dTHX;
char *error;
unsigned int index;
static char *OFIErrorStrings[] =
char * filespec
int flags
PREINIT:
+ DTHX;
char vmsspec[NAM$C_MAXRSS];
SV *reqSV, **reqSVhndl;
STRLEN deflen;
# symbol: boot_$(EXP) can it be auto-generated?
case "$osvers" in
3*)
- lddlflags="$lddlflags -H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -e _nostart"
+ lddlflags="$lddlflags -H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -e _nostart -lc"
;;
*)
- lddlflags="$lddlflags -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry"
+ lddlflags="$lddlflags -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc"
;;
esac
done
-lddllibc="-lc"
-
# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.
cat > UU/usethreads.cbu <<'EOCBU'
;;
esac
- # Add the POSIX threads library and the re-entrant libc.
-
- lddllibc="-lpthreads -lc_r"
+ # Add the POSIX threads library and the re-entrant libc to lddflags.
+ set `echo X "$lddlflags"| sed -e 's/ -lc$/ -lpthreads -lc_r/'`
+ shift
+ lddlflags="$*"
- # Add the c_r library to the list of wanted libraries.
+ # Add the POSIX threads library and the re-entrant libc to libswanted.
# Make sure the c_r library is before the c library or
# make will fail.
set `echo X "$libswanted "| sed -e 's/ c / pthreads c_r /'`
libswanted="$*"
;;
esac
-
EOCBU
-lddlflags="$lddlflags $lddllibc"
-
# This script UU/use64bits.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use 64 bits.
cat > UU/use64bits.cbu <<'EOCBU'
;;
esac
EOCBU
+
+# EOF
#define Perl_my pPerl->Perl_my
#undef my
#define my Perl_my
-#ifdef USE_LOCALE_NUMERIC
#undef Perl_my_atof
#define Perl_my_atof pPerl->Perl_my_atof
#undef my_atof
#define my_atof Perl_my_atof
-#endif
#if !defined(HAS_BCOPY) || !defined(HAS_SAFE_BCOPY)
#undef Perl_my_bcopy
#define Perl_my_bcopy pPerl->Perl_my_bcopy
#define RESTORE_NUMERIC_LOCAL() if ((PL_hints & HINT_LOCALE) && PL_numeric_standard) SET_NUMERIC_LOCAL()
#define RESTORE_NUMERIC_STANDARD() if ((PL_hints & HINT_LOCALE) && PL_numeric_local) SET_NUMERIC_STANDARD()
-#define Atof(s) Perl_my_atof(s)
+#define Atof my_atof
#else /* !USE_LOCALE_NUMERIC */
#define IS_NUMERIC_RADIX(c) (0)
#define RESTORE_NUMERIC_LOCAL() /**/
#define RESTORE_NUMERIC_STANDARD() /**/
-#define Atof(s) atof(s)
+#define Atof atof
#endif /* !USE_LOCALE_NUMERIC */
#cat >>perl.exp <<END
#END
+case "$usemymalloc" in
+true|[yY]*) usemymalloc=define ;;
+esac
+
# Remove mymalloc if needed.
case "$usemymalloc$d_mymalloc" in
-ydefine) ;;
+definedefine) ;;
*)
egrep -v '^(Perl_(calloc|malloc|malloced_size|mfree|realloc|safexcalloc|safexfree|safexmalloc|safexrealloc)|^PL_malloc_mutex)$' < perl.exp > perl.exp$$
mv -f perl.exp$$ perl.exp
egrep -v '^(Perl_my_(bcopy|bzero|chsize|htonl|memcmp|memset|ntohl|swap))$' < perl.exp > perl.exp$$
mv -f perl.exp$$ perl.exp
+case "$usethreads" in
+true|[yY]*) usethreads=define ;;
+esac
+
# Remove thread symbols if needed.
case "$usethreads" in
-y) ;;
+define) ;;
*)
egrep -v '^(Perl_(condpair_magic|find_threadsv|magic_mutexfree|new_struct_thread|unlock_condpair)|^PL_((eval|nthreads)_cond|curthr|eval_owner|(cred|eval|strtab|sv|svref|threads|malloc|vtbl)_mutex|nthreads|threadnum|threadsv_names|thr_key|thrsv))$' < perl.exp > perl.exp$$
mv -f perl.exp$$ perl.exp
VIRTUAL OP* Perl_mod(pTHX_ OP* o, I32 type);
VIRTUAL char* Perl_moreswitches(pTHX_ char* s);
VIRTUAL OP* Perl_my(pTHX_ OP* o);
-#ifdef USE_LOCALE_NUMERIC
VIRTUAL double Perl_my_atof(pTHX_ const char *s);
-#endif
#if !defined(HAS_BCOPY) || !defined(HAS_SAFE_BCOPY)
VIRTUAL char* Perl_my_bcopy(pTHX_ const char* from, char* to, I32 len);
#endif
OP *o;
va_list args;
va_start(args, pat);
- o = do_die(aTHX_ pat, &args);
+ o = do_die(pat, &args);
va_end(args);
return o;
}
OP *o;
va_list args;
va_start(args, pat);
- o = do_die(aTHX_ pat, &args);
+ o = do_die(pat, &args);
va_end(args);
return o;
}
}
double
-Perl_my_atof(const char* s) {
+Perl_my_atof(pTHX_ const char* s) {
#ifdef USE_LOCALE_NUMERIC
if ((PL_hints & HINT_LOCALE) && PL_numeric_local) {
double x, y;