aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-08-14 21:12:45 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-08-14 21:12:45 +0300
commit0bdf798b8f9d018b4d11f63dddde683248d65a39 (patch)
tree9247911e64755b056f9b91c93c9c7ea9e5357f77 /awk.h
parentf591d307d9af95bfa0ccda4d5eb76a674447ba39 (diff)
parent0703039505200ca5126e11d905a6fa40c602d1b9 (diff)
downloadegawk-0bdf798b8f9d018b4d11f63dddde683248d65a39.tar.gz
egawk-0bdf798b8f9d018b4d11f63dddde683248d65a39.tar.bz2
egawk-0bdf798b8f9d018b4d11f63dddde683248d65a39.zip
Merge branch 'master' into feature/typed-regex
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 b286a9a9..f11105ba 100644
--- a/awk.h
+++ b/awk.h
@@ -424,6 +424,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 */