summaryrefslogtreecommitdiff
path: root/uconfig.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2000-10-23 16:39:32 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-24 18:59:48 +0000
commita7ffa9b9a1a8caeff31a83d25b70b5aca6ba0d12 (patch)
tree43180689a571f5dc8ed050ed33678a7d835c73b6 /uconfig.h
parent1724fb8e7df982f0fd79fb192e0146e474675132 (diff)
downloadperl-a7ffa9b9a1a8caeff31a83d25b70b5aca6ba0d12.tar.gz
Check if stdio supports tweaking lval and cnt simultaneously.
Subject: PATCH (Re: PerlIO - Configure tweak for Linux/glibc?) Message-ID: <20001023153932.A10786@plum.flirble.org> p4raw-id: //depot/perl@7427
Diffstat (limited to 'uconfig.h')
-rw-r--r--uconfig.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/uconfig.h b/uconfig.h
index 96d3264618..67cc252e2b 100644
--- a/uconfig.h
+++ b/uconfig.h
@@ -2024,12 +2024,23 @@
* This symbol is defined if the FILE_cnt macro can be used as an
* lvalue.
*/
+/* STDIO_PTR_LVAL_SETS_CNT:
+ * This symbol is defined if using the FILE_ptr macro as an lvalue
+ * to increase the pointer by n has the side effect of decreasing the
+ * value of File_cnt(fp) by n.
+ */
+/* STDIO_PTR_LVAL_NOCHANGE_CNT:
+ * This symbol is defined if using the FILE_ptr macro as an lvalue
+ * to increase the pointer by n leaves File_cnt(fp) unchanged.
+ */
/*#define USE_STDIO_PTR / **/
#ifdef USE_STDIO_PTR
#define FILE_ptr(fp) ((fp)->_IO_read_ptr)
-/*#define STDIO_PTR_LVALUE / **/
+# STDIO_PTR_LVALUE /**/
#define FILE_cnt(fp) ((fp)->_IO_read_end - (fp)->_IO_read_ptr)
/*#define STDIO_CNT_LVALUE / **/
+/*#define STDIO_PTR_LVAL_SETS_CNT / **/
+/*#define STDIO_PTR_LVAL_NOCHANGE_CNT / **/
#endif
/* USE_STDIO_BASE: