From 21cc7e37292e196e64a3fc7cb4a1a4ec02946bbd Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 19 Jun 2023 01:00:05 +0200 Subject: [PATCH] libluna: Rename parse_length() to parse_type() in Format.cpp --- libluna/src/Format.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libluna/src/Format.cpp b/libluna/src/Format.cpp index 70ecc794..1754942c 100644 --- a/libluna/src/Format.cpp +++ b/libluna/src/Format.cpp @@ -150,7 +150,7 @@ static usize parse_precision(const char** format, flags_t& flags, va_list ap) 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) switch (**format) @@ -415,7 +415,7 @@ Result cstyle_format(const char* format, callback_t callback, void* arg, flags_t flags = parse_flags(&format); const usize width = parse_width(&format, flags, ap); usize precision = parse_precision(&format, flags, ap); - parse_length(&format, flags); + parse_type(&format, flags); conv_state vstate = { flags, width, precision };