History

stdatomic: atomic builtins parsing support

Dmitry Selyutin committed 5 years ago

Commit a1102871 parent 557b4a14 files · +184 −0Browse files

Showing the changes to tcc.h (1 of 4 files). Show all

Unified · Split

tcc.h+4−0
@@ -1051,6 +1051,9 @@ struct filespec { · 1050 unmodified lines
1051#define IS_ENUM_VAL(t) ((t & VT_STRUCT_MASK) == VT_ENUM_VAL)1051#define IS_ENUM_VAL(t) ((t & VT_STRUCT_MASK) == VT_ENUM_VAL)
1052#define IS_UNION(t) ((t & (VT_STRUCT_MASK|VT_BTYPE)) == VT_UNION)1052#define IS_UNION(t) ((t & (VT_STRUCT_MASK|VT_BTYPE)) == VT_UNION)
1053 1053
1054#define VT_ATOMIC VT_VOLATILE
1055#define VT_MEMMODEL (VT_STATIC | VT_ENUM_VAL | VT_TYPEDEF)
1056
1054/* type mask (except storage) */1057/* type mask (except storage) */
1055#define VT_STORAGE (VT_EXTERN | VT_STATIC | VT_TYPEDEF | VT_INLINE)1058#define VT_STORAGE (VT_EXTERN | VT_STATIC | VT_TYPEDEF | VT_INLINE)
1056#define VT_TYPE (~(VT_STORAGE|VT_STRUCT_MASK))1059#define VT_TYPE (~(VT_STORAGE|VT_STRUCT_MASK))
@@ -1418,6 +1421,7 @@ ST_FUNC void tccpp_delete(TCCState *s); · 361 unmodified lines
1418ST_FUNC int tcc_preprocess(TCCState *s1);1421ST_FUNC int tcc_preprocess(TCCState *s1);
1419ST_FUNC void skip(int c);1422ST_FUNC void skip(int c);
1420ST_FUNC NORETURN void expect(const char *msg);1423ST_FUNC NORETURN void expect(const char *msg);
1424ST_FUNC NORETURN void expect_arg(const char *msg, size_t arg);
1421 1425
1422/* space excluding newline */1426/* space excluding newline */
1423static inline int is_space(int ch) {1427static inline int is_space(int ch) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t