mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-26 08:00:09 +08:00
update VT_STRUCT_SHIFT for new VT_VLA
This commit is contained in:
parent
2775173d4d
commit
b0c50fbd4d
@ -935,7 +935,7 @@ be the best solution.
|
|||||||
#define VT_VOLATILE 0x0200 /* volatile modifier */
|
#define VT_VOLATILE 0x0200 /* volatile modifier */
|
||||||
#define VT_SIGNED 0x0400 /* signed type */
|
#define VT_SIGNED 0x0400 /* signed type */
|
||||||
|
|
||||||
#define VT_STRUCT_SHIFT 16 /* structure/enum name shift (16 bits left) */
|
#define VT_STRUCT_SHIFT 18 /* structure/enum name shift (14 bits left) */
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
When a reference to another type is needed (for pointers, functions and
|
When a reference to another type is needed (for pointers, functions and
|
||||||
|
2
tcc.h
2
tcc.h
@ -632,7 +632,7 @@ struct TCCState {
|
|||||||
#define VT_EXPORT 0x00010000 /* win32: data exported from dll */
|
#define VT_EXPORT 0x00010000 /* win32: data exported from dll */
|
||||||
#define VT_WEAK 0x00020000 /* win32: data exported from dll */
|
#define VT_WEAK 0x00020000 /* win32: data exported from dll */
|
||||||
|
|
||||||
#define VT_STRUCT_SHIFT 17 /* shift for bitfield shift values */
|
#define VT_STRUCT_SHIFT 18 /* shift for bitfield shift values */
|
||||||
|
|
||||||
/* type mask (except storage) */
|
/* type mask (except storage) */
|
||||||
#define VT_STORAGE (VT_EXTERN | VT_STATIC | VT_TYPEDEF | VT_INLINE | VT_IMPORT | VT_EXPORT | VT_WEAK)
|
#define VT_STORAGE (VT_EXTERN | VT_STATIC | VT_TYPEDEF | VT_INLINE | VT_IMPORT | VT_EXPORT | VT_WEAK)
|
||||||
|
Loading…
Reference in New Issue
Block a user