{
return pSortPerl->sortcv(a, b);
}
-static int SortCmp(const void *a, const void *b)
-{
- return pSortPerl->sortcmp(a, b);
-}
-static int SortCmpLocale(const void *a, const void *b)
-{
- return pSortPerl->sortcmp_locale(a, b);
-}
#endif
PP(pp_sort)
if (max > 1) {
MEXTEND(SP, 20); /* Can't afford stack realloc on signal. */
#ifdef PERL_OBJECT
+ /* XXX sort_mutex is probably not needed since qsort is now
+ * internal GSAR */
MUTEX_LOCK(&sort_mutex);
pSortPerl = this;
qsortsv(ORIGMARK+1, max,
VIRTUAL int magic_setuvar _((SV* sv, MAGIC* mg));
VIRTUAL int magic_setvec _((SV* sv, MAGIC* mg));
VIRTUAL int magic_set_all_env _((SV* sv, MAGIC* mg));
+VIRTUAL U32 magic_sizepack _((SV* sv, MAGIC* mg));
VIRTUAL int magic_wipepack _((SV* sv, MAGIC* mg));
VIRTUAL void magicname _((char* sym, char* name, I32 namlen));
int main _((int argc, char** argv, char** env));
VIRTUAL U32 mg_len _((SV* sv));
VIRTUAL void mg_magical _((SV* sv));
VIRTUAL int mg_set _((SV* sv));
+VIRTUAL I32 mg_size _((SV* sv));
VIRTUAL OP* mod _((OP* o, I32 type));
VIRTUAL char* moreswitches _((char* s));
VIRTUAL OP* my _((OP* o));
VIRTUAL OP* newPMOP _((I32 type, I32 flags));
VIRTUAL OP* newPVOP _((I32 type, I32 flags, char* pv));
VIRTUAL SV* newRV _((SV* ref));
+#if !defined(__GNUC__) && (defined(CRIPPLED_CC) || defined(USE_THREADS))
VIRTUAL SV* newRV_noinc _((SV *));
+#endif
#ifdef LEAKTEST
VIRTUAL SV* newSV _((I32 x, STRLEN len));
#else
#CCTYPE *= GCC
#
+# uncomment next line if you want to use the perl object
+#OBJECT *= -DPERL_OBJECT
+
+#
# uncomment next line if you want debug version of perl (big,slow)
#CFG *= Debug
RUNTIME = -D_RTLDLL
INCLUDES = -I.\include -I. -I.. -I$(CCINCDIR)
#PCHFLAGS = -H -H$(INTDIR)\bcmoduls.pch
-DEFINES = -DWIN32 $(BUILDOPT) $(CRYPT_FLAG)
+DEFINES = -DWIN32 $(BUILDOPT) $(CRYPT_FLAG) $(OBJECT)
LOCDEFS = -DPERLDLL -DPERL_CORE
SUBSYS = console
LIBC = cw32mti.lib
LINK_DBG =
.ENDIF
+.IF "$(OBJECT)" == "-DPERL_OBJECT"
+CFLAGS = -w -d -tWM -tWD -P $(INCLUDES) $(DEFINES) $(LOCDEFS) $(PCHFLAGS) $(OPTIMIZE)
+.ELSE
CFLAGS = -w -d -tWM -tWD $(INCLUDES) $(DEFINES) $(LOCDEFS) $(PCHFLAGS) $(OPTIMIZE)
+.ENDIF
LINK_FLAGS = $(LINK_DBG) -L$(CCLIBDIR)
OBJOUT_FLAG = -o
EXEOUT_FLAG = -e
#
RUNTIME =
INCLUDES = -I.\include -I. -I..
-DEFINES = -DWIN32 $(BUILDOPT) $(CRYPT_FLAG)
+DEFINES = -DWIN32 $(BUILDOPT) $(CRYPT_FLAG) $(OBJECT)
LOCDEFS = -DPERLDLL -DPERL_CORE
SUBSYS = console
LIBC = -lcrtdll
LINK_DBG =
.ENDIF
+.IF "$(OBJECT)" == "-DPERL_OBJECT"
CFLAGS = $(INCLUDES) $(DEFINES) $(LOCDEFS) $(OPTIMIZE)
+.ELSE
+CFLAGS = $(INCLUDES) $(DEFINES) $(LOCDEFS) $(OPTIMIZE)
+.ENDIF
LINK_FLAGS = $(LINK_DBG) -L$(CCLIBDIR)
OBJOUT_FLAG = -o
EXEOUT_FLAG = -o
.ENDIF
INCLUDES = -I.\include -I. -I..
#PCHFLAGS = -Fp$(INTDIR)\vcmoduls.pch -YX
-DEFINES = -DWIN32 -D_CONSOLE $(BUILDOPT) $(CRYPT_FLAG)
+DEFINES = -DWIN32 -D_CONSOLE $(BUILDOPT) $(CRYPT_FLAG) $(OBJECT)
LOCDEFS = -DPERLDLL -DPERL_CORE
SUBSYS = console
oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib \
version.lib odbc32.lib odbccp32.lib
+.IF "$(OBJECT)" == "-DPERL_OBJECT"
+CFLAGS = -nologo -Gf -W3 -TP $(INCLUDES) $(DEFINES) $(LOCDEFS) $(PCHFLAGS) $(OPTIMIZE)
+.ELSE
CFLAGS = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOCDEFS) $(PCHFLAGS) $(OPTIMIZE)
+.ENDIF
LINK_FLAGS = -nologo $(LINK_DBG) -machine:$(PROCESSOR_ARCHITECTURE)
OBJOUT_FLAG = -Fo
EXEOUT_FLAG = -Fe