Skip to content
Snippets Groups Projects
Commit ef94d132 authored by deuce's avatar deuce
Browse files

Make autotype a more logical 0.

parent 4a52031a
No related branches found
No related tags found
No related merge requests found
......@@ -2,26 +2,26 @@
#define _XPPRINTF_H_
/* Supported printf argument types */
#define XP_PRINTF_TYPE_INT 0
#define XP_PRINTF_TYPE_UINT 1
#define XP_PRINTF_TYPE_AUTO 0
#define XP_PRINTF_TYPE_INT 1
#define XP_PRINTF_TYPE_UINT 2
#define XP_PRINTF_TYPE_CHAR XP_PRINTF_TYPE_INT /* Assumes a signed char */
#define XP_PRINTF_TYPE_SCHAR XP_PRINTF_TYPE_INT
#define XP_PRINTF_TYPE_UCHAR XP_PRINTF_TYPE_UINT
#define XP_PRINTF_TYPE_SHORT XP_PRINTF_TYPE_INT
#define XP_PRINTF_TYPE_USHORT XP_PRINTF_TYPE_UINT
#define XP_PRINTF_TYPE_LONG 2
#define XP_PRINTF_TYPE_ULONG 3
#define XP_PRINTF_TYPE_LONGLONG 4
#define XP_PRINTF_TYPE_ULONGLONG 5
#define XP_PRINTF_TYPE_CHARP 6
#define XP_PRINTF_TYPE_DOUBLE 7
#define XP_PRINTF_TYPE_LONG 3
#define XP_PRINTF_TYPE_ULONG 4
#define XP_PRINTF_TYPE_LONGLONG 5
#define XP_PRINTF_TYPE_ULONGLONG 6
#define XP_PRINTF_TYPE_CHARP 7
#define XP_PRINTF_TYPE_DOUBLE 8
#define XP_PRINTF_TYPE_FLOAT XP_PRINTF_TYPE_DOUBLE /* Floats are promoted to doubles */
#define XP_PRINTF_TYPE_LONGDOUBLE 8
#define XP_PRINTF_TYPE_VOIDP 9
#define XP_PRINTF_TYPE_INTMAX 10 /* Not currently implemented */
#define XP_PRINTF_TYPE_PTRDIFF 11 /* Not currently implemented */
#define XP_PRINTF_TYPE_SIZET 12
#define XP_PRINTF_TYPE_AUTO 13
#define XP_PRINTF_TYPE_LONGDOUBLE 9
#define XP_PRINTF_TYPE_VOIDP 10
#define XP_PRINTF_TYPE_INTMAX 11 /* Not currently implemented */
#define XP_PRINTF_TYPE_PTRDIFF 12 /* Not currently implemented */
#define XP_PRINTF_TYPE_SIZET 13
#if defined(__cplusplus)
extern "C" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment