Re: [PATCH for _66] Makefile.SH problem on dos/djgpp
[p5sagit/p5-mst-13.2.git] / globals.c
index 320b8df..1daf4f1 100644 (file)
--- a/globals.c
+++ b/globals.c
@@ -1438,19 +1438,15 @@ CPerlObj::operator new(size_t nSize, IPerlMem *pvtbl)
 int&
 CPerlObj::ErrorNo(void)
 {
-    return error_no;
+    return errno;
 }
 
 void
 CPerlObj::Init(void)
 {
-#ifdef WIN32
-    New(2904, environ, 1, char*);
-    *environ = NULL;
-#endif
 }
 
-#ifdef WIN32
+#ifdef WIN32           /* XXX why are these needed? */
 bool
 do_exec(char *cmd)
 {
@@ -1464,14 +1460,4 @@ do_aspawn(void *vreally, void **vmark, void **vsp)
 }
 #endif  /* WIN32 */
 
-#ifndef DEBUGGING
-/* create a matching set of virtual entries for the non debugging version */
-void   CPerlObj::deb_place_holder _((const char* pat,...)) {};
-void   CPerlObj::deb_growlevel_place_holder _((void)) {};
-void   CPerlObj::debprofdump_place_holder _((void)) {};
-I32    CPerlObj::debop_place_holder _((OP* o)) { return 0; };
-I32    CPerlObj::debstack_place_holder _((void)) { return 0; };
-I32    CPerlObj::debstackptrs_place_holder _((void)) { return 0; };
-#endif
-
 #endif   /* PERL_OBJECT */