このページを編集する際は,編集に関する方針に従ってください.[]
概要[]
3114 /* Return the (unique) IDENTIFIER_NODE node for a given name. 3115 The name is supplied as a char *. */
引数[]
- const char*
- 名前
実装[]
tree.h
3117 extern tree get_identifier (const char *);
3118
3119 #if GCC_VERSION >= 3000
3120 #define get_identifier(str) \
3121 (__builtin_constant_p (str) \
3122 ? get_identifier_with_length ((str), strlen (str)) \
3123 : get_identifier (str))
3124 #endif
stringpool.h
101 /* Return an IDENTIFIER_NODE whose name is TEXT (a null-terminated string).
102 If an identifier with that name has previously been referred to,
103 the same node is returned this time. */
104
105 #undef get_identifier
106
107 tree
108 get_identifier (const char *text)
109 {
110 hashnode ht_node = ht_lookup (ident_hash,
111 (const unsigned char *) text,
112 strlen (text), HT_ALLOC);
113
114 /* ht_node can't be NULL here. */
115 return HT_IDENT_TO_GCC_IDENT (ht_node);
116 }