[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH] lib/nolibc: fix fprintf/fscanf macros
Reviewed-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx> On 27.07.2018 14:54, Florian Schmidt wrote: The macros for signed integers are PRIdN and PRIiN, and SCNdN and SCNiN, respectively. The d and i versions are effectively the same, so they can both point to the same underlying signed type. Signed-off-by: Florian Schmidt <florian.schmidt@xxxxxxxxx> --- lib/nolibc/include/inttypes.h | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/lib/nolibc/include/inttypes.h b/lib/nolibc/include/inttypes.h index 10f5f09..ba9ea81 100644 --- a/lib/nolibc/include/inttypes.h +++ b/lib/nolibc/include/inttypes.h @@ -43,10 +43,14 @@ extern "C" { #endif-#define PRIs8 __PRIs8-#define PRIs16 __PRIs16 -#define PRIs32 __PRIs32 -#define PRIs64 __PRIs64 +#define PRId8 __PRIs8 +#define PRId16 __PRIs16 +#define PRId32 __PRIs32 +#define PRId64 __PRIs64 +#define PRIi8 __PRIs8 +#define PRIi16 __PRIs16 +#define PRIi32 __PRIs32 +#define PRIi64 __PRIs64 #define PRIu8 __PRIu8 #define PRIu16 __PRIu16 #define PRIu32 __PRIu32 @@ -56,10 +60,14 @@ extern "C" { #define PRIx32 __PRIx32 #define PRIx64 __PRIx64-#define SCNs8 __SCNs8-#define SCNs16 __SCNs16 -#define SCNs32 __SCNs32 -#define SCNs64 __SCNs64 +#define SCNd8 __SCNs8 +#define SCNd16 __SCNs16 +#define SCNd32 __SCNs32 +#define SCNd64 __SCNs64 +#define SCNi8 __SCNs8 +#define SCNi16 __SCNs16 +#define SCNi32 __SCNs32 +#define SCNi64 __SCNs64 #define SCNu8 __SCNu8 #define SCNu16 __SCNu16 #define SCNu32 __SCNu32 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |