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
10511051 #define IS_ENUM_VAL(t) ((t & VT_STRUCT_MASK) == VT_ENUM_VAL)
10521052 #define IS_UNION(t) ((t & (VT_STRUCT_MASK|VT_BTYPE)) == VT_UNION)
10531053
1054+#define VT_ATOMIC VT_VOLATILE
1055+#define VT_MEMMODEL (VT_STATIC | VT_ENUM_VAL | VT_TYPEDEF)
1056+
10541057 /* type mask (except storage) */
10551058 #define VT_STORAGE (VT_EXTERN | VT_STATIC | VT_TYPEDEF | VT_INLINE)
10561059 #define VT_TYPE (~(VT_STORAGE|VT_STRUCT_MASK))
@@ -1418,6 +1421,7 @@ ST_FUNC void tccpp_delete(TCCState *s); · 361 unmodified lines
14181421 ST_FUNC int tcc_preprocess(TCCState *s1);
14191422 ST_FUNC void skip(int c);
14201423 ST_FUNC NORETURN void expect(const char *msg);
1424+ST_FUNC NORETURN void expect_arg(const char *msg, size_t arg);
14211425
14221426 /* space excluding newline */
14231427 static 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