libluna: Rename parse_length() to parse_type() in Format.cpp
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
55d147841f
commit
21cc7e3729
@ -150,7 +150,7 @@ static usize parse_precision(const char** format, flags_t& flags, va_list ap)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void parse_length(const char** format, flags_t& flags)
|
static void parse_type(const char** format, flags_t& flags)
|
||||||
{
|
{
|
||||||
// FIXME: Support %j (intmax_t/uintmax_t)
|
// FIXME: Support %j (intmax_t/uintmax_t)
|
||||||
switch (**format)
|
switch (**format)
|
||||||
@ -415,7 +415,7 @@ Result<usize> cstyle_format(const char* format, callback_t callback, void* arg,
|
|||||||
flags_t flags = parse_flags(&format);
|
flags_t flags = parse_flags(&format);
|
||||||
const usize width = parse_width(&format, flags, ap);
|
const usize width = parse_width(&format, flags, ap);
|
||||||
usize precision = parse_precision(&format, flags, ap);
|
usize precision = parse_precision(&format, flags, ap);
|
||||||
parse_length(&format, flags);
|
parse_type(&format, flags);
|
||||||
|
|
||||||
conv_state vstate = { flags, width, precision };
|
conv_state vstate = { flags, width, precision };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user