summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Konovalov <vkonovalov@lucent.com>2001-02-06 12:23:20 +0300
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-02-06 20:21:40 +0000
commitaa832f4288d752b7d495a7b95b97bfa9a50532a8 (patch)
tree540c4f21862ffde2e768ddda5f7e66df9ac8d218
parent74078192d18adfe8716fde09af21dde48fda1204 (diff)
downloadperl-aa832f4288d752b7d495a7b95b97bfa9a50532a8.tar.gz
RE: some win32 fixes
Message-ID: <402099F49BEED211999700805FC7359F9CAF49@ru0028exch01.spb.lucent.com> p4raw-id: //depot/perl@8706
-rw-r--r--toke.c4
-rw-r--r--win32/Makefile9
-rw-r--r--win32/config.bc2
-rw-r--r--win32/config.gc2
-rw-r--r--win32/config.vc2
-rw-r--r--win32/config_H.bc2
-rw-r--r--win32/makefile.mk11
7 files changed, 21 insertions, 11 deletions
diff --git a/toke.c b/toke.c
index a1f521d1ed..3c9c5f3ed7 100644
--- a/toke.c
+++ b/toke.c
@@ -4170,10 +4170,6 @@ Perl_yylex(pTHX)
(void)PerlIO_seek(PL_rsfp, 0L, 0);
}
if (PerlLIO_setmode(PerlIO_fileno(PL_rsfp), O_TEXT) != -1) {
-#if defined(__BORLANDC__)
- /* XXX see note in do_binmode() */
- ((FILE*)PL_rsfp)->flags |= _F_BIN;
-#endif
if (loc > 0)
PerlIO_seek(PL_rsfp, loc, 0);
}
diff --git a/win32/Makefile b/win32/Makefile
index 20512cd59c..abd3b14163 100644
--- a/win32/Makefile
+++ b/win32/Makefile
@@ -66,9 +66,7 @@ USE_IMP_SYS = define
#
# uncomment to enable the experimental PerlIO I/O subsystem.
-# This is currently incompatible with USE_MULTI, USE_ITHREADS,
-# and USE_IMP_SYS
-#USE_PERLIO = define
+USE_PERLIO = define
#
# WARNING! This option is deprecated and will eventually go away (enable
@@ -247,6 +245,10 @@ USE_ITHREADS = undef
USE_IMP_SYS = undef
!ENDIF
+!IF "$(USE_PERLIO)" == ""
+USE_PERLIO = undef
+!ENDIF
+
!IF "$(USE_PERLCRT)" == ""
USE_PERLCRT = undef
!ENDIF
@@ -729,6 +731,7 @@ CFG_VARS = \
"useithreads=$(USE_ITHREADS)" \
"usethreads=$(USE_5005THREADS)" \
"usemultiplicity=$(USE_MULTI)" \
+ "useperlio=$(USE_PERLIO)" \
"LINK_FLAGS=$(LINK_FLAGS:"=\")" \
"optimize=$(OPTIMIZE:"=\")"
diff --git a/win32/config.bc b/win32/config.bc
index ec4a09ec01..bc7b1da981 100644
--- a/win32/config.bc
+++ b/win32/config.bc
@@ -770,7 +770,7 @@ usemultiplicity='undef'
usemymalloc='n'
usenm='false'
useopcode='true'
-useperlio='undef'
+useperlio='~USE_PERLIO~'
useposix='true'
usesfio='false'
useshrplib='yes'
diff --git a/win32/config.gc b/win32/config.gc
index c62ea710a1..196b22c905 100644
--- a/win32/config.gc
+++ b/win32/config.gc
@@ -770,7 +770,7 @@ usemultiplicity='undef'
usemymalloc='n'
usenm='false'
useopcode='true'
-useperlio='define'
+useperlio='~USE_PERLIO~'
useposix='true'
usesfio='false'
useshrplib='yes'
diff --git a/win32/config.vc b/win32/config.vc
index e770921556..9cb3a77a87 100644
--- a/win32/config.vc
+++ b/win32/config.vc
@@ -770,7 +770,7 @@ usemultiplicity='undef'
usemymalloc='n'
usenm='false'
useopcode='true'
-useperlio='define'
+useperlio='~USE_PERLIO~'
useposix='true'
usesfio='false'
useshrplib='yes'
diff --git a/win32/config_H.bc b/win32/config_H.bc
index b932d3cdda..04768a981a 100644
--- a/win32/config_H.bc
+++ b/win32/config_H.bc
@@ -3123,7 +3123,7 @@
* used in a fully backward compatible manner.
*/
#ifndef USE_PERLIO
-/*#define USE_PERLIO /**/
+#define USE_PERLIO /**/
#endif
/* USE_SOCKS:
diff --git a/win32/makefile.mk b/win32/makefile.mk
index ce11be4fb4..9b1e3e7cf8 100644
--- a/win32/makefile.mk
+++ b/win32/makefile.mk
@@ -67,6 +67,10 @@ USE_ITHREADS *= define
USE_IMP_SYS *= define
#
+# uncomment to enable the experimental PerlIO I/O subsystem.
+USE_PERLIO = define
+
+#
# WARNING! This option is deprecated and will eventually go away (enable
# USE_ITHREADS instead).
#
@@ -248,6 +252,7 @@ USE_MULTI *= undef
USE_OBJECT *= undef
USE_ITHREADS *= undef
USE_IMP_SYS *= undef
+USE_PERLIO *= undef
USE_PERLCRT *= undef
.IF "$(USE_IMP_SYS)$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" == "defineundefundefundef"
@@ -278,6 +283,11 @@ ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-thread
.ELIF "$(USE_MULTI)" == "define"
ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-multi
.ELSE
+.IF "$(USE_PERLIO)" == "define"
+ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-perlio
+.ELSE
+ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)
+.ENDIF
ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)
.ENDIF
@@ -862,6 +872,7 @@ CFG_VARS = \
useithreads=$(USE_ITHREADS) ~ \
usethreads=$(USE_5005THREADS) ~ \
usemultiplicity=$(USE_MULTI) ~ \
+ useperlio=$(USE_PERLIO) ~ \
LINK_FLAGS=$(LINK_FLAGS:s/\/\\/) ~ \
optimize=$(OPTIMIZE)