aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
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 e59b8ba8..eb90be67 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