aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-05-01 15:54:23 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-05-01 15:54:23 +0300
commite5b52db52bdf2a8d04e6025946fa692a10187e00 (patch)
tree7283c8a3be752adff126d73dc8413d2ac7744122 /awk.h
parentd5491215cec13204eacfa517d81f5696c765c29c (diff)
parenta3be85eec86d00c12e7f4b41a9e27794fbb479a6 (diff)
downloadegawk-e5b52db52bdf2a8d04e6025946fa692a10187e00.tar.gz
egawk-e5b52db52bdf2a8d04e6025946fa692a10187e00.tar.bz2
egawk-e5b52db52bdf2a8d04e6025946fa692a10187e00.zip
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/gawk
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/awk.h b/awk.h
index 23552469..ab84c58b 100644
--- a/awk.h
+++ b/awk.h
@@ -374,6 +374,7 @@ typedef struct exp_node {
#endif
char *sp;
size_t slen;
+ long sref;
int idx;
wchar_t *wsp;
size_t wslen;
@@ -383,10 +384,6 @@ typedef struct exp_node {
NODETYPE type;
unsigned int flags;
- // We access valref for both Node_val and Node_regex values,
- // so it needs to be outside the union.
- long valref;
-
/* type = Node_val */
/*
* STRING and NUMBER are mutually exclusive, except for the special
@@ -494,6 +491,7 @@ typedef struct exp_node {
*/
#define stptr sub.val.sp
#define stlen sub.val.slen
+#define valref sub.val.sref
#define stfmt sub.val.idx
#define wstptr sub.val.wsp
#define wstlen sub.val.wslen