aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-10-09 05:33:34 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-10-09 05:33:34 +0300
commitd8234e1784bfbfd4d72dccc1412b962d38fec549 (patch)
tree374efa4ab8243e80c7d23a3c2c81234e49921901 /awk.h
parenta6c1a66946657f06b1bae08c9ea596befed5be2f (diff)
downloadegawk-d8234e1784bfbfd4d72dccc1412b962d38fec549.tar.gz
egawk-d8234e1784bfbfd4d72dccc1412b962d38fec549.tar.bz2
egawk-d8234e1784bfbfd4d72dccc1412b962d38fec549.zip
Continued improvements in comment refactoring.
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/awk.h b/awk.h
index 0a34c258..bc9ff9dc 100644
--- a/awk.h
+++ b/awk.h
@@ -296,6 +296,11 @@ typedef union bucket_item {
} hi;
} BUCKET;
+enum commenttype {
+ EOL_COMMENT = 1,
+ BLOCK_COMMENT
+};
+
/* string hash table */
#define ahnext hs.next
#define ahname hs.name /* a string index node */
@@ -368,6 +373,7 @@ typedef struct exp_node {
wchar_t *wsp;
size_t wslen;
struct exp_node *typre;
+ enum commenttype comtype;
} val;
} sub;
NODETYPE type;
@@ -565,9 +571,7 @@ typedef struct exp_node {
#define alevel sub.nodep.x.xl
/* Op_comment */
-#define comment_type sub.val.idx
-#define EOL_COMMENT 1
-#define FULL_COMMENT 2
+#define comment_type sub.val.comtype
/* --------------------------------lint warning types----------------------------*/
typedef enum lintvals {