libluna: Fix flag shenanigans in cstyle_format
Finally, zero-pad and left-align work properly!
This commit is contained in:
parent
5911b052dc
commit
38541e22e9
@ -8,16 +8,16 @@
|
|||||||
extern "C" usize strlen(const char*);
|
extern "C" usize strlen(const char*);
|
||||||
|
|
||||||
typedef int flags_t;
|
typedef int flags_t;
|
||||||
#define FLAG_ZERO_PAD 1 << 0
|
#define FLAG_ZERO_PAD (1 << 0)
|
||||||
#define FLAG_LEFT_ALIGN 1 << 1
|
#define FLAG_LEFT_ALIGN (1 << 1)
|
||||||
#define FLAG_BLANK_SIGNED 1 << 2
|
#define FLAG_BLANK_SIGNED (1 << 2)
|
||||||
#define FLAG_ALTERNATE 1 << 3
|
#define FLAG_ALTERNATE (1 << 3)
|
||||||
#define FLAG_SIGN 1 << 4
|
#define FLAG_SIGN (1 << 4)
|
||||||
#define FLAG_USE_PRECISION 1 << 5
|
#define FLAG_USE_PRECISION (1 << 5)
|
||||||
#define FLAG_LONG 1 << 6
|
#define FLAG_LONG (1 << 6)
|
||||||
#define FLAG_LONG_LONG 1 << 7
|
#define FLAG_LONG_LONG (1 << 7)
|
||||||
#define FLAG_SHORT 1 << 8
|
#define FLAG_SHORT (1 << 8)
|
||||||
#define FLAG_CHAR 1 << 9
|
#define FLAG_CHAR (1 << 9)
|
||||||
|
|
||||||
struct format_state
|
struct format_state
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user