summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-11-12 19:12:13 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-11-12 19:12:13 +0200
commitcc04afb329cea035d0d9b67cd3b677e06b2f3996 (patch)
tree3622f3f241d75079bcafd24651a4952e357a9c09 /node.c
parent9a31c12053ef715ccb732f456de00b4afc38d888 (diff)
downloadgawk-feature/nocopy.tar.gz
Further code improvements and doc changes as diff until merge.feature/nocopy
Diffstat (limited to 'node.c')
-rw-r--r--node.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/node.c b/node.c
index 491ba3bd..cef6acbe 100644
--- a/node.c
+++ b/node.c
@@ -67,9 +67,9 @@ r_force_number(NODE *n)
return n;
/*
- * We should always set NUMCUR. If MAYBE_NUM is set and it's a
+ * We should always set NUMCUR. If USER_INPUT is set and it's a
* numeric string, we clear STRING and enable NUMBER, but if it's not
- * numeric, we disable MAYBE_NUM.
+ * numeric, we disable USER_INPUT.
*/
/* All the conditionals are an attempt to avoid the expensive strtod */
@@ -159,12 +159,12 @@ r_force_number(NODE *n)
/* fall through to badnum */
}
badnum:
- n->flags &= ~MAYBE_NUM;
+ n->flags &= ~USER_INPUT;
return n;
goodnum:
- if ((n->flags & MAYBE_NUM) != 0) {
- /* leave MAYBE_NUM enabled to indicate that this is a strnum */
+ if ((n->flags & USER_INPUT) != 0) {
+ /* leave USER_INPUT enabled to indicate that this is a strnum */
n->flags &= ~STRING;
n->flags |= NUMBER;
}