libluna: Rename parse_length() to parse_type() in Format.cpp
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-06-19 01:00:05 +02:00
parent 55d147841f
commit 21cc7e3729
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -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 };