FANDOM


このページを編集する際は,編集に関する方針に従ってください. 編集

概要 編集

実装 編集

 40 /* Reserved identifiers.  This is the union of all the keywords for C,
 41    C++, and Objective-C.  All the type modifiers have to be in one
 42    block at the beginning, because they are used as mask bits.  There
 43    are 27 type modifiers; if we add many more we will have to redesign
 44    the mask mechanism.  */
 45 
 46 enum rid
 47 {
 48   /* Modifiers: */
 49   /* C, in empirical order of frequency.  */
 50   RID_STATIC = 0,
 51   RID_UNSIGNED, RID_LONG,    RID_CONST, RID_EXTERN,
 52   RID_REGISTER, RID_TYPEDEF, RID_SHORT, RID_INLINE,
 53   RID_VOLATILE, RID_SIGNED,  RID_AUTO,  RID_RESTRICT,
 54 
 55   /* C extensions */
 56   RID_COMPLEX, RID_THREAD,
 57 
 58   /* C++ */
 59   RID_FRIEND, RID_VIRTUAL, RID_EXPLICIT, RID_EXPORT, RID_MUTABLE,
 60 
 61   /* ObjC */
 62   RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF, RID_ONEWAY,
 63 
 64   /* C */
 65   RID_INT,     RID_CHAR,   RID_FLOAT,    RID_DOUBLE, RID_VOID,
 66   RID_ENUM,    RID_STRUCT, RID_UNION,    RID_IF,     RID_ELSE,
 67   RID_WHILE,   RID_DO,     RID_FOR,      RID_SWITCH, RID_CASE,
 68   RID_DEFAULT, RID_BREAK,  RID_CONTINUE, RID_RETURN, RID_GOTO,
 69   RID_SIZEOF,
 70 
 71   /* C extensions */
 72   RID_ASM,       RID_TYPEOF,   RID_ALIGNOF,  RID_ATTRIBUTE,  RID_VA_ARG,
 73   RID_EXTENSION, RID_IMAGPART, RID_REALPART, RID_LABEL,      RID_CHOOSE_EXPR,
 74   RID_TYPES_COMPATIBLE_P,
 75 
 76   /* Too many ways of getting the name of a function as a string */
 77   RID_FUNCTION_NAME, RID_PRETTY_FUNCTION_NAME, RID_C99_FUNCTION_NAME,
 78 
 79   /* C++ */
 80   RID_BOOL,     RID_WCHAR,    RID_CLASS,
 81   RID_PUBLIC,   RID_PRIVATE,  RID_PROTECTED,
 82   RID_TEMPLATE, RID_NULL,     RID_CATCH,
 83   RID_DELETE,   RID_FALSE,    RID_NAMESPACE,
 84   RID_NEW,      RID_OFFSETOF, RID_OPERATOR, 
 85   RID_THIS,     RID_THROW,    RID_TRUE,     
 86   RID_TRY,      RID_TYPENAME, RID_TYPEID,   
 87   RID_USING,
 88 
 89   /* casts */
 90   RID_CONSTCAST, RID_DYNCAST, RID_REINTCAST, RID_STATCAST,
 91 
 92   /* Objective-C */
 93   RID_AT_ENCODE,   RID_AT_END,
 94   RID_AT_CLASS,    RID_AT_ALIAS,     RID_AT_DEFS,
 95   RID_AT_PRIVATE,  RID_AT_PROTECTED, RID_AT_PUBLIC,
 96   RID_AT_PROTOCOL, RID_AT_SELECTOR,  
 97   RID_AT_THROW,    RID_AT_TRY,       RID_AT_CATCH,
 98   RID_AT_FINALLY,  RID_AT_SYNCHRONIZED,
 99   RID_AT_INTERFACE,
100   RID_AT_IMPLEMENTATION,
101 
102   RID_MAX,
103 
104   RID_FIRST_MODIFIER = RID_STATIC,
105   RID_LAST_MODIFIER = RID_ONEWAY,
106 
107   RID_FIRST_AT = RID_AT_ENCODE,
108   RID_LAST_AT = RID_AT_IMPLEMENTATION,
109   RID_FIRST_PQ = RID_IN,
110   RID_LAST_PQ = RID_ONEWAY
111 };



リンク元