[2/7] Preprocessor node access
https://gcc.gnu.org/ml/gcc-patches/2018-10/msg02038.html * include/cpplib.h (HT_NODE): Don't cast NODE. (NODE_LEN, NODE_NAME): Use HT_NODE. From-SVN: r265687
This commit is contained in:
parent
c788734738
commit
43af5ef1ce
2 changed files with 6 additions and 3 deletions
|
@ -844,9 +844,9 @@ enum cpp_builtin_type
|
|||
};
|
||||
|
||||
#define CPP_HASHNODE(HNODE) ((cpp_hashnode *) (HNODE))
|
||||
#define HT_NODE(NODE) ((ht_identifier *) (NODE))
|
||||
#define NODE_LEN(NODE) HT_LEN (&(NODE)->ident)
|
||||
#define NODE_NAME(NODE) HT_STR (&(NODE)->ident)
|
||||
#define HT_NODE(NODE) (&(NODE)->ident)
|
||||
#define NODE_LEN(NODE) HT_LEN (HT_NODE (NODE))
|
||||
#define NODE_NAME(NODE) HT_STR (HT_NODE (NODE))
|
||||
|
||||
/* The common part of an identifier node shared amongst all 3 C front
|
||||
ends. Also used to store CPP identifiers, which are a superset of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue