diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 07361746eb4..bcbfa97a2be 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,5 +1,8 @@ 2018-10-31 Nathan Sidwell + * include/cpplib.h (HT_NODE): Don't cast NODE. + (NODE_LEN, NODE_NAME): Use HT_NODE. + * directives.c (DIRECTIVE_TABLE): Drop historical frequency comments. * files.c (_cpp_stack_file): Fix indentation. diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h index a9b4fb3973c..345155b210a 100644 --- a/libcpp/include/cpplib.h +++ b/libcpp/include/cpplib.h @@ -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