diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2018-10-09 05:33:34 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2018-10-09 05:33:34 +0300 |
commit | d8234e1784bfbfd4d72dccc1412b962d38fec549 (patch) | |
tree | 374efa4ab8243e80c7d23a3c2c81234e49921901 /awk.h | |
parent | a6c1a66946657f06b1bae08c9ea596befed5be2f (diff) | |
download | egawk-d8234e1784bfbfd4d72dccc1412b962d38fec549.tar.gz egawk-d8234e1784bfbfd4d72dccc1412b962d38fec549.tar.bz2 egawk-d8234e1784bfbfd4d72dccc1412b962d38fec549.zip |
Continued improvements in comment refactoring.
Diffstat (limited to 'awk.h')
-rw-r--r-- | awk.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 { |