fixed strlen - added __FUNCTION__
[tinycc.git] / tcctok.h
blob9861162fe2a3d1ccee8b7604ea4e5e738f79f2a2
1 DEF(TOK___LINE__, "__LINE__")
2 DEF(TOK___FILE__, "__FILE__")
3 DEF(TOK___DATE__, "__DATE__")
4 DEF(TOK___TIME__, "__TIME__")
5 DEF(TOK___FUNCTION__, "__FUNCTION__")
6 DEF(TOK___VA_ARGS__, "__VA_ARGS__")
8 /* special identifiers */
9 DEF(TOK___FUNC__, "__func__")
11 /* attribute identifiers */
12 DEF(TOK_SECTION, "section")
13 DEF(TOK___SECTION__, "__section__")
14 DEF(TOK_ALIGNED, "aligned")
15 DEF(TOK___ALIGNED__, "__aligned__")
16 DEF(TOK_UNUSED, "unused")
17 DEF(TOK___UNUSED__, "__unused__")
18 DEF(TOK_CDECL, "cdecl")
19 DEF(TOK___CDECL, "__cdecl")
20 DEF(TOK___CDECL__, "__cdecl__")
21 DEF(TOK_STDCALL, "stdcall")
22 DEF(TOK___STDCALL, "__stdcall")
23 DEF(TOK___STDCALL__, "__stdcall__")
24 DEF(TOK_NORETURN, "noreturn")
25 DEF(TOK___NORETURN__, "__noreturn__")
27 /* builtin functions or variables */
28 DEF(TOK_memcpy, "memcpy")
29 DEF(TOK_memset, "memset")
30 DEF(TOK___divdi3, "__divdi3")
31 DEF(TOK___moddi3, "__moddi3")
32 DEF(TOK___udivdi3, "__udivdi3")
33 DEF(TOK___umoddi3, "__umoddi3")
34 DEF(TOK___sardi3, "__sardi3")
35 DEF(TOK___shrdi3, "__shrdi3")
36 DEF(TOK___shldi3, "__shldi3")
37 DEF(TOK___tcc_int_fpu_control, "__tcc_int_fpu_control")
38 DEF(TOK___tcc_fpu_control, "__tcc_fpu_control")
39 DEF(TOK___ulltof, "__ulltof")
40 DEF(TOK___ulltod, "__ulltod")
41 DEF(TOK___ulltold, "__ulltold")
42 DEF(TOK___fixunssfdi, "__fixunssfdi")
43 DEF(TOK___fixunsdfdi, "__fixunsdfdi")
44 DEF(TOK___fixunsxfdi, "__fixunsxfdi")
46 /* bound checking symbols */
47 #ifdef CONFIG_TCC_BCHECK
48 DEF(TOK___bound_ptr_add, "__bound_ptr_add")
49 DEF(TOK___bound_ptr_indir1, "__bound_ptr_indir1")
50 DEF(TOK___bound_ptr_indir2, "__bound_ptr_indir2")
51 DEF(TOK___bound_ptr_indir4, "__bound_ptr_indir4")
52 DEF(TOK___bound_ptr_indir8, "__bound_ptr_indir8")
53 DEF(TOK___bound_ptr_indir12, "__bound_ptr_indir12")
54 DEF(TOK___bound_ptr_indir16, "__bound_ptr_indir16")
55 DEF(TOK___bound_local_new, "__bound_local_new")
56 DEF(TOK___bound_local_delete, "__bound_local_delete")
57 DEF(TOK_malloc, "malloc")
58 DEF(TOK_free, "free")
59 DEF(TOK_realloc, "realloc")
60 DEF(TOK_memalign, "memalign")
61 DEF(TOK_calloc, "calloc")
62 DEF(TOK_memmove, "memmove")
63 DEF(TOK_strlen, "strlen")
64 DEF(TOK_strcpy, "strcpy")
65 #endif