From 7f00523e2e1938fc3558164521fe3ecefd9e1747 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Tue, 1 Feb 2011 23:55:17 +0100 Subject: [PATCH] Reorder increasingly VT_* constants in tcc.h --- tcc-doc.texi | 24 ++++++++++++------------ tcc.h | 24 ++++++++++++------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/tcc-doc.texi b/tcc-doc.texi index 4ba4f465..9b61795c 100644 --- a/tcc-doc.texi +++ b/tcc-doc.texi @@ -929,11 +929,11 @@ be the best solution. #define VT_BTYPE 0x000f /* mask for basic type */ #define VT_UNSIGNED 0x0010 /* unsigned type */ #define VT_ARRAY 0x0020 /* array type (also has VT_PTR) */ -#define VT_VLA 0x10000 /* VLA type (also has VT_PTR and VT_ARRAY) */ -#define VT_BITFIELD 0x0040 /* bitfield modifier */ -#define VT_CONSTANT 0x0800 /* const modifier */ -#define VT_VOLATILE 0x1000 /* volatile modifier */ -#define VT_SIGNED 0x2000 /* signed type */ +#define VT_VLA 0x0040 /* VLA type (also has VT_PTR and VT_ARRAY) */ +#define VT_BITFIELD 0x0080 /* bitfield modifier */ +#define VT_CONSTANT 0x0100 /* const modifier */ +#define VT_VOLATILE 0x0200 /* volatile modifier */ +#define VT_SIGNED 0x0400 /* signed type */ #define VT_STRUCT_SHIFT 16 /* structure/enum name shift (16 bits left) */ @end example @@ -960,13 +960,13 @@ During parsing, the storage of an object is also stored in the type integer: @example -#define VT_EXTERN 0x00000080 /* extern definition */ -#define VT_STATIC 0x00000100 /* static variable */ -#define VT_TYPEDEF 0x00000200 /* typedef definition */ -#define VT_INLINE 0x00000400 /* inline definition */ -#define VT_IMPORT 0x00004000 /* win32: extern data imported from dll */ -#define VT_EXPORT 0x00008000 /* win32: data exported from dll */ -#define VT_WEAK 0x00010000 /* win32: data exported from dll */ +#define VT_EXTERN 0x00000800 /* extern definition */ +#define VT_STATIC 0x00001000 /* static variable */ +#define VT_TYPEDEF 0x00002000 /* typedef definition */ +#define VT_INLINE 0x00004000 /* inline definition */ +#define VT_IMPORT 0x00008000 /* win32: extern data imported from dll */ +#define VT_EXPORT 0x00010000 /* win32: data exported from dll */ +#define VT_WEAK 0x00020000 /* win32: data exported from dll */ @end example @section Symbols diff --git a/tcc.h b/tcc.h index 22d79f09..2b5aa2b6 100644 --- a/tcc.h +++ b/tcc.h @@ -617,20 +617,20 @@ struct TCCState { #define VT_BTYPE 0x000f /* mask for basic type */ #define VT_UNSIGNED 0x0010 /* unsigned type */ #define VT_ARRAY 0x0020 /* array type (also has VT_PTR) */ -#define VT_VLA 0x10000 /* VLA type (also has VT_PTR and VT_ARRAY) */ -#define VT_BITFIELD 0x0040 /* bitfield modifier */ -#define VT_CONSTANT 0x0800 /* const modifier */ -#define VT_VOLATILE 0x1000 /* volatile modifier */ -#define VT_SIGNED 0x2000 /* signed type */ +#define VT_VLA 0x0040 /* VLA type (also has VT_PTR and VT_ARRAY) */ +#define VT_BITFIELD 0x0080 /* bitfield modifier */ +#define VT_CONSTANT 0x0100 /* const modifier */ +#define VT_VOLATILE 0x0200 /* volatile modifier */ +#define VT_SIGNED 0x0400 /* signed type */ /* storage */ -#define VT_EXTERN 0x00000080 /* extern definition */ -#define VT_STATIC 0x00000100 /* static variable */ -#define VT_TYPEDEF 0x00000200 /* typedef definition */ -#define VT_INLINE 0x00000400 /* inline definition */ -#define VT_IMPORT 0x00004000 /* win32: extern data imported from dll */ -#define VT_EXPORT 0x00008000 /* win32: data exported from dll */ -#define VT_WEAK 0x00010000 /* win32: data exported from dll */ +#define VT_EXTERN 0x00000800 /* extern definition */ +#define VT_STATIC 0x00001000 /* static variable */ +#define VT_TYPEDEF 0x00002000 /* typedef definition */ +#define VT_INLINE 0x00004000 /* inline definition */ +#define VT_IMPORT 0x00008000 /* win32: extern data imported from dll */ +#define VT_EXPORT 0x00010000 /* win32: data exported from dll */ +#define VT_WEAK 0x00020000 /* win32: data exported from dll */ #define VT_STRUCT_SHIFT 17 /* shift for bitfield shift values */ -- 2.11.4.GIT