aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-08-12 11:54:57 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-08-12 11:54:57 +0300
commit5ce09ba3867f5c9d3c3dc0c00c155c0ba0c224f6 (patch)
tree0571bf013fdad4264c4cea139969fb57697af539 /awk.h
parent6783818342eab9c372c5eb1e9187ab1ae9dd37b5 (diff)
parent1e83ff34fa8a4a80e486169f24519864480320f4 (diff)
downloadegawk-5ce09ba3867f5c9d3c3dc0c00c155c0ba0c224f6.tar.gz
egawk-5ce09ba3867f5c9d3c3dc0c00c155c0ba0c224f6.tar.bz2
egawk-5ce09ba3867f5c9d3c3dc0c00c155c0ba0c224f6.zip
Merge branch 'gawk-4.1-stable'
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 ba572d32..5587cbc3 100644
--- a/awk.h
+++ b/awk.h
@@ -423,6 +423,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 STRING 0x0002 /* assigned as string */