aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorjohn haque <j.eh@mchsi.com>2012-04-02 06:11:59 -0500
committerjohn haque <j.eh@mchsi.com>2012-04-02 06:11:59 -0500
commitcb86918d50c3758d9cd2f4d75c73ff590cc75b04 (patch)
tree6b0b5505dbb262a24a4d3babb8603cd3564008c9 /io.c
parenta11e3c290c877c3ffc11e886edb95199a31fac2b (diff)
downloadegawk-cb86918d50c3758d9cd2f4d75c73ff590cc75b04.tar.gz
egawk-cb86918d50c3758d9cd2f4d75c73ff590cc75b04.tar.bz2
egawk-cb86918d50c3758d9cd2f4d75c73ff590cc75b04.zip
MPFR related documentation updates and code cleanups.
Diffstat (limited to 'io.c')
-rw-r--r--io.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/io.c b/io.c
index 78cf70a2..e5ceedba 100644
--- a/io.c
+++ b/io.c
@@ -134,10 +134,10 @@
#ifdef HAVE_MPFR
/* increment NR or FNR */
-#define INCREMENT_R(X) (do_mpfr && X == (LONG_MAX - 1)) ? \
+#define INCREMENT_REC(X) (do_mpfr && X == (LONG_MAX - 1)) ? \
(mpz_add_ui(M##X, M##X, 1), X = 0) : X++
#else
-#define INCREMENT_R(X) X++
+#define INCREMENT_REC(X) X++
#endif
typedef enum { CLOSE_ALL, CLOSE_TO, CLOSE_FROM } two_way_close_type;
@@ -494,8 +494,8 @@ inrec(IOBUF *iop, int *errcode)
if (*errcode > 0)
update_ERRNO_saved(*errcode);
} else {
- INCREMENT_R(NR);
- INCREMENT_R(FNR);
+ INCREMENT_REC(NR);
+ INCREMENT_REC(FNR);
set_record(begin, cnt);
}
@@ -2326,8 +2326,8 @@ do_getline(int intovar, IOBUF *iop)
if (cnt == EOF)
return NULL; /* try next file */
- INCREMENT_R(NR);
- INCREMENT_R(FNR);
+ INCREMENT_REC(NR);
+ INCREMENT_REC(FNR);
if (! intovar) /* no optional var. */
set_record(s, cnt);