[libc][NFC] reorganize structs in printf
authorMichael Jones <michaelrj@google.com>
Fri, 3 Feb 2023 21:13:23 +0000 (13:13 -0800)
committerMichael Jones <michaelrj@google.com>
Thu, 9 Feb 2023 21:45:42 +0000 (13:45 -0800)
commit848c700b66f569adc893518c37d500f80a5412e2
treefc7fc44b71a3dbd08e1f13e0514a16a837de8b8a
parent7fb9bbe5f0c850ae9480e7a35b7e92e721c26039
[libc][NFC] reorganize structs in printf

Previously the type description structs were defined in the parser. For
the fuzzing targets we'll need to use those, so I've moved them into
core_structs.h. Additionally I've renamed the function for determining
the TypeDesc from a given type. Previously it shared its name with
get_type_desc which is a related but separate function that is a part of
the parser.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D143595
libc/src/stdio/printf_core/core_structs.h
libc/src/stdio/printf_core/parser.cpp
libc/src/stdio/printf_core/parser.h