summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-05-26 13:39:14 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-05-26 13:39:14 +0000
commit873ef191be9d12eed8116e23926efe319c6ed859 (patch)
tree88d2e70ffc2b1d49d8556a53ae1709fb84e6e6b6 /doio.c
parentcedea190b107621491e9374674b8382221691335 (diff)
downloadperl-873ef191be9d12eed8116e23926efe319c6ed859.tar.gz
[asperl] tweaks to make it build with the Borland compiler. Won't run
testsuite because @INC intuition from location of perlcore.dll seems to be broken. Also, system() and qx// seem broken as well. p4raw-id: //depot/asperl@1033
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/doio.c b/doio.c
index f6362b1c12..61c21b5c1c 100644
--- a/doio.c
+++ b/doio.c
@@ -741,7 +741,7 @@ do_binmode(PerlIO *fp, int iotype, int flag)
* document this anywhere). GSAR 97-5-24
*/
PerlIO_seek(fp,0L,0);
- fp->flags |= _F_BIN;
+ ((FILE*)fp)->flags |= _F_BIN;
#endif
return 1;
}
@@ -1085,7 +1085,9 @@ apply(I32 type, register SV **mark, register SV **sp)
SV **oldmark = mark;
#define APPLY_TAINT_PROPER() \
- if (!(tainting && tainted)) {} else { goto taint_proper; }
+ STMT_START { \
+ if (tainting && tainted) { goto taint_proper_label; } \
+ } STMT_END
/* This is a first heuristic; it doesn't catch tainting magic. */
if (tainting) {
@@ -1265,7 +1267,7 @@ apply(I32 type, register SV **mark, register SV **sp)
}
return tot;
- taint_proper:
+ taint_proper_label:
TAINT_PROPER(what);
return 0; /* this should never happen */