|
|
|
|
|
|
|
[Original]
[Print]
[Top]
|
我想往c++ frontend 加几个新的关键字,不过好像新加的RID_XXX 导致c++ compiler会产生错误,好像跟下面一段注释有关(在c-common.h中), 原因好像是下面是RID_LAST_MODIFIER超过限制了,有谁知道下面注释中所说的mask bits是设计的啊?
CONSTRAINT(ridbits_fit, RID_LAST_MODIFIER < sizeof(unsigned long) * CHAR_BIT);
/* Reserved identifiers. This is the union of all the keywords for C,
C++, and Objective-C. All the type modifiers have to be in one
block at the beginning, because they are used as mask bits. There
are 27 type modifiers; if we add many more we will have to redesign
the mask mechanism. */
|
|
|
[Original]
[Print]
[Top]
|
|
|