aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-08-12 11:55:37 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-08-12 11:55:37 +0300
commit06d8f4cf720f5399ae32828de8182b34459df664 (patch)
tree330da19c46a732601ea93ca0689ca67c330d2459 /awk.h
parentc4dee818eaee376cd19cb56d69d066e29c6eee2b (diff)
parent5ce09ba3867f5c9d3c3dc0c00c155c0ba0c224f6 (diff)
downloadegawk-06d8f4cf720f5399ae32828de8182b34459df664.tar.gz
egawk-06d8f4cf720f5399ae32828de8182b34459df664.tar.bz2
egawk-06d8f4cf720f5399ae32828de8182b34459df664.zip
Merge branch 'master' into feature/nocopy
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/awk.h b/awk.h
index c56332f5..15336c05 100644
--- a/awk.h
+++ b/awk.h
@@ -422,6 +422,14 @@ typedef struct exp_node {
* and add WSTRCUR to the flags so that we don't have to do the
* conversion more than once.
*
+ * The NUMINT flag may be used with a value of any type -- NUMBER,
+ * STRING, or STRNUM. It indicates that the string representation
+ * equals the result of sprintf("%ld", <numeric value>). So, for
+ * example, NUMINT should NOT be set if it's a strnum or string value
+ * where the string is " 1" or "01" or "+1" or "1.0" or "0.1E1". This
+ * is a hint to indicate that an integer array optimization may be
+ * used when this value appears as a subscript.
+ *
* We hope that the rest of the flags are self-explanatory. :-)
*/
# define MALLOC 0x0001 /* stptr can be free'd, i.e. not a field node pointing into a shared buffer */