add inttyes.h,stdint.h to 05 stdlib, musl instructions in readme
This commit is contained in:
parent
3384d69133
commit
113d03741a
10 changed files with 480 additions and 13 deletions
|
@ -2,6 +2,6 @@
|
|||
#define CONFIG_TCC_STATIC 1
|
||||
#define TCC_TARGET_X86_64 1
|
||||
#define ONE_SOURCE 1
|
||||
//#define CONFIG_LDDIR "lib/x86_64-linux-gnu"
|
||||
#define CONFIG_TCCDIR "../tcc-bootstrap"
|
||||
#define CONFIG_LDDIR "lib/x86_64-linux-gnu"
|
||||
#define inline
|
||||
|
|
153
05/tcc-0.9.27/inttypes.h
Normal file
153
05/tcc-0.9.27/inttypes.h
Normal file
|
@ -0,0 +1,153 @@
|
|||
#ifndef _INTTYPES_H
|
||||
#define _INTTYPES_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifndef PRIu32
|
||||
|
||||
#define PRId8 "d"
|
||||
#define PRIdLEAST8 "d"
|
||||
#define PRIdFAST8 "d"
|
||||
#define PRIi8 "i"
|
||||
#define PRIiLEAST8 "i"
|
||||
#define PRIiFAST8 "i"
|
||||
#define PRIo8 "o"
|
||||
#define PRIoLEAST8 "o"
|
||||
#define PRIoFAST8 "o"
|
||||
#define PRIu8 "u"
|
||||
#define PRIuLEAST8 "u"
|
||||
#define PRIuFAST8 "u"
|
||||
#define PRIx8 "x"
|
||||
#define PRIxLEAST8 "x"
|
||||
#define PRIxFAST8 "x"
|
||||
#define PRIX8 "X"
|
||||
#define PRIXLEAST8 "X"
|
||||
#define PRIXFAST8 "X"
|
||||
|
||||
#define PRId16 "d"
|
||||
#define PRIdLEAST16 "d"
|
||||
#define PRIdFAST16 "d"
|
||||
#define PRIi16 "i"
|
||||
#define PRIiLEAST16 "i"
|
||||
#define PRIiFAST16 "i"
|
||||
#define PRIo16 "o"
|
||||
#define PRIoLEAST16 "o"
|
||||
#define PRIoFAST16 "o"
|
||||
#define PRIu16 "u"
|
||||
#define PRIuLEAST16 "u"
|
||||
#define PRIuFAST16 "u"
|
||||
#define PRIx16 "x"
|
||||
#define PRIxLEAST16 "x"
|
||||
#define PRIxFAST16 "x"
|
||||
#define PRIX16 "X"
|
||||
#define PRIXLEAST16 "X"
|
||||
#define PRIXFAST16 "X"
|
||||
|
||||
#define PRId32 "d"
|
||||
#define PRIdLEAST32 "d"
|
||||
#define PRIdFAST32 "d"
|
||||
#define PRIi32 "i"
|
||||
#define PRIiLEAST32 "i"
|
||||
#define PRIiFAST32 "i"
|
||||
#define PRIo32 "o"
|
||||
#define PRIoLEAST32 "o"
|
||||
#define PRIoFAST32 "o"
|
||||
#define PRIu32 "u"
|
||||
#define PRIuLEAST32 "u"
|
||||
#define PRIuFAST32 "u"
|
||||
#define PRIx32 "x"
|
||||
#define PRIxLEAST32 "x"
|
||||
#define PRIxFAST32 "x"
|
||||
#define PRIX32 "X"
|
||||
#define PRIXLEAST32 "X"
|
||||
#define PRIXFAST32 "X"
|
||||
|
||||
#define PRId64 "ld"
|
||||
#define PRIdLEAST64 "ld"
|
||||
#define PRIdFAST64 "ld"
|
||||
#define PRIi64 "li"
|
||||
#define PRIiLEAST64 "li"
|
||||
#define PRIiFAST64 "li"
|
||||
#define PRIo64 "lo"
|
||||
#define PRIoLEAST64 "lo"
|
||||
#define PRIoFAST64 "lo"
|
||||
#define PRIu64 "lu"
|
||||
#define PRIuLEAST64 "lu"
|
||||
#define PRIuFAST64 "lu"
|
||||
#define PRIx64 "lx"
|
||||
#define PRIxLEAST64 "lx"
|
||||
#define PRIxFAST64 "lx"
|
||||
#define PRIX64 "lX"
|
||||
#define PRIXLEAST64 "lX"
|
||||
#define PRIXFAST64 "lX"
|
||||
|
||||
#define SCNd8 "hhd"
|
||||
#define SCNdLEAST8 "hhd"
|
||||
#define SCNdFAST8 "hhd"
|
||||
#define SCNi8 "hhi"
|
||||
#define SCNiLEAST8 "hhi"
|
||||
#define SCNiFAST8 "hhi"
|
||||
#define SCNo8 "hho"
|
||||
#define SCNoLEAST8 "hho"
|
||||
#define SCNoFAST8 "hho"
|
||||
#define SCNu8 "hhu"
|
||||
#define SCNuLEAST8 "hhu"
|
||||
#define SCNuFAST8 "hhu"
|
||||
#define SCNx8 "hhx"
|
||||
#define SCNxLEAST8 "hhx"
|
||||
#define SCNxFAST8 "hhx"
|
||||
|
||||
#define SCNd16 "hd"
|
||||
#define SCNdLEAST16 "hd"
|
||||
#define SCNdFAST16 "hd"
|
||||
#define SCNi16 "hi"
|
||||
#define SCNiLEAST16 "hi"
|
||||
#define SCNiFAST16 "hi"
|
||||
#define SCNo16 "ho"
|
||||
#define SCNoLEAST16 "ho"
|
||||
#define SCNoFAST16 "ho"
|
||||
#define SCNu16 "hu"
|
||||
#define SCNuLEAST16 "hu"
|
||||
#define SCNuFAST16 "hu"
|
||||
#define SCNx16 "hx"
|
||||
#define SCNxLEAST16 "hx"
|
||||
#define SCNxFAST16 "hx"
|
||||
|
||||
#define SCNd32 "d"
|
||||
#define SCNdLEAST32 "d"
|
||||
#define SCNdFAST32 "d"
|
||||
#define SCNi32 "i"
|
||||
#define SCNiLEAST32 "i"
|
||||
#define SCNiFAST32 "i"
|
||||
#define SCNo32 "o"
|
||||
#define SCNoLEAST32 "o"
|
||||
#define SCNoFAST32 "o"
|
||||
#define SCNu32 "u"
|
||||
#define SCNuLEAST32 "u"
|
||||
#define SCNuFAST32 "u"
|
||||
#define SCNx32 "x"
|
||||
#define SCNxLEAST32 "x"
|
||||
#define SCNxFAST32 "x"
|
||||
|
||||
#define SCNd64 "ld"
|
||||
#define SCNdLEAST64 "ld"
|
||||
#define SCNdFAST64 "ld"
|
||||
#define SCNi64 "li"
|
||||
#define SCNiLEAST64 "li"
|
||||
#define SCNiFAST64 "li"
|
||||
#define SCNo64 "lo"
|
||||
#define SCNoLEAST64 "lo"
|
||||
#define SCNoFAST64 "lo"
|
||||
#define SCNu64 "lu"
|
||||
#define SCNuLEAST64 "lu"
|
||||
#define SCNuFAST64 "lu"
|
||||
#define SCNx64 "lx"
|
||||
#define SCNxLEAST64 "lx"
|
||||
#define SCNxFAST64 "lx"
|
||||
#define SCNX64 "lX"
|
||||
#define SCNXLEAST64 "lX"
|
||||
#define SCNXFAST64 "lX"
|
||||
|
||||
#endif // PRIu32
|
||||
|
||||
#endif // _INTTYPES_H
|
64
05/tcc-0.9.27/stdint.h
Normal file
64
05/tcc-0.9.27/stdint.h
Normal file
|
@ -0,0 +1,64 @@
|
|||
#ifndef _STDINT_H
|
||||
#define _STDINT_H
|
||||
|
||||
#include <stdc_common.h>
|
||||
|
||||
typedef uint8_t uint_least8_t;
|
||||
typedef uint16_t uint_least16_t;
|
||||
typedef uint32_t uint_least32_t;
|
||||
typedef uint64_t uint_least64_t;
|
||||
|
||||
typedef uint8_t uint_fast8_t;
|
||||
typedef uint16_t uint_fast16_t;
|
||||
typedef uint32_t uint_fast32_t;
|
||||
typedef uint64_t uint_fast64_t;
|
||||
|
||||
typedef int8_t int_least8_t;
|
||||
typedef int16_t int_least16_t;
|
||||
typedef int32_t int_least32_t;
|
||||
typedef int64_t int_least64_t;
|
||||
|
||||
typedef int8_t int_fast8_t;
|
||||
typedef int16_t int_fast16_t;
|
||||
typedef int32_t int_fast32_t;
|
||||
typedef int64_t int_fast64_t;
|
||||
|
||||
typedef long intmax_t;
|
||||
typedef unsigned long uintmax_t;
|
||||
|
||||
|
||||
#define INT_LEAST8_MIN INT8_MIN
|
||||
#define INT_LEAST16_MIN INT16_MIN
|
||||
#define INT_LEAST32_MIN INT32_MIN
|
||||
#define INT_LEAST64_MIN INT64_MIN
|
||||
|
||||
#define INT_LEAST8_MAX INT8_MAX
|
||||
#define INT_LEAST16_MAX INT16_MAX
|
||||
#define INT_LEAST32_MAX INT32_MAX
|
||||
#define INT_LEAST64_MAX INT64_MAX
|
||||
|
||||
#define UINT_LEAST8_MAX UINT8_MAX
|
||||
#define UINT_LEAST16_MAX UINT16_MAX
|
||||
#define UINT_LEAST32_MAX UINT32_MAX
|
||||
#define UINT_LEAST64_MAX UINT64_MAX
|
||||
|
||||
#define INT_FAST8_MIN INT8_MIN
|
||||
#define INT_FAST16_MIN INT16_MIN
|
||||
#define INT_FAST32_MIN INT32_MIN
|
||||
#define INT_FAST64_MIN INT64_MIN
|
||||
|
||||
#define INT_FAST8_MAX INT8_MAX
|
||||
#define INT_FAST16_MAX INT16_MAX
|
||||
#define INT_FAST32_MAX INT32_MAX
|
||||
#define INT_FAST64_MAX INT64_MAX
|
||||
|
||||
#define UINT_FAST8_MAX UINT8_MAX
|
||||
#define UINT_FAST16_MAX UINT16_MAX
|
||||
#define UINT_FAST32_MAX UINT32_MAX
|
||||
#define UINT_FAST64_MAX UINT64_MAX
|
||||
|
||||
#define INTMAX_MIN INT64_MIN
|
||||
#define INTMAX_MAX INT64_MAX
|
||||
#define UINTMAX_MAX UINT64_MAX
|
||||
|
||||
#endif // _STDINT_H
|
Loading…
Add table
Add a link
Reference in a new issue