2 #define IDENT(n) __IDENT(n## _ident, #n, 0)
3 #define IDENT_RESERVED(n) __IDENT(n## _ident, #n, 1)
5 /* Basic C reserved words.. */
6 IDENT_RESERVED(sizeof);
9 IDENT_RESERVED(return);
10 IDENT_RESERVED(switch);
12 IDENT_RESERVED(default);
13 IDENT_RESERVED(break);
14 IDENT_RESERVED(continue);
16 IDENT_RESERVED(while);
20 /* C typenames. They get marked as reserved when initialized */
30 /* Extended gcc identifiers */
33 IDENT_RESERVED(__asm__
);
34 IDENT_RESERVED(__asm
);
35 IDENT_RESERVED(__alignof
);
36 IDENT_RESERVED(__alignof__
);
37 IDENT_RESERVED(__sizeof_ptr__
);
40 IDENT(defined
); IDENT(packed
); IDENT(__packed__
);
41 IDENT(aligned
); IDENT(__aligned__
); IDENT(nocast
);
42 IDENT(noderef
); IDENT(safe
); IDENT(force
);
43 IDENT(address_space
); IDENT(context
); IDENT(mode
);
44 IDENT(__mode__
); IDENT(__QI__
); IDENT(QI
);
45 IDENT(__HI__
); IDENT(HI
); IDENT(__SI__
);
46 IDENT(SI
); IDENT(__DI__
); IDENT(DI
);
47 IDENT(__word__
); IDENT(word
); IDENT(format
);
48 IDENT(__format__
); IDENT(section
); IDENT(__section__
);
49 IDENT(unused
); IDENT(__unused__
); IDENT(const);
51 IDENT(warn_unused_result
);
54 IDENT(__const
); IDENT(__const__
); IDENT(noreturn
);
55 IDENT(__noreturn__
); IDENT(regparm
); IDENT(weak
); IDENT(__weak__
);
56 IDENT(alias
); IDENT(pure
); IDENT(always_inline
);
57 IDENT(syscall_linkage
); IDENT(visibility
);
58 IDENT(bitwise
); IDENT(__bitwise__
);
59 IDENT(model
); IDENT(__model__
);
60 IDENT(__format_arg__
);
61 IDENT(nothrow
); IDENT(__nothrow
); IDENT(__nothrow__
);
62 IDENT(__transparent_union__
);
65 IDENT(nonnull
); IDENT(__nonnull
); IDENT(__nonnull__
);
66 IDENT(__deprecated__
);
67 IDENT(__warn_unused_result__
);
69 /* Preprocessor idents */
70 __IDENT(pragma_ident
, "__pragma__", 0);
71 __IDENT(__VA_ARGS___ident
, "__VA_ARGS__", 0);
72 __IDENT(__LINE___ident
, "__LINE__", 0);
73 __IDENT(__FILE___ident
, "__FILE__", 0);
74 __IDENT(__func___ident
, "__func__", 0);
75 __IDENT(__FUNCTION___ident
, "__FUNCTION__", 0);
76 __IDENT(__PRETTY_FUNCTION___ident
, "__PRETTY_FUNCTION__", 0);
79 IDENT_RESERVED(__context__
);
80 IDENT_RESERVED(__range__
);
82 /* Magic function names we recognize */
83 IDENT(memset
); IDENT(memcpy
);
84 IDENT(copy_to_user
); IDENT(copy_from_user
);