lib: cbprintf: document length modifiers
It may not be clear that the length modifiers reference native C types with specific ranks. Document the core type for each modifier. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
d12a99588b
commit
b036afba5a
1 changed files with 9 additions and 9 deletions
|
@ -54,15 +54,15 @@ typedef uint32_t uint_value_type;
|
||||||
|
|
||||||
/* The allowed types of length modifier. */
|
/* The allowed types of length modifier. */
|
||||||
enum length_mod_enum {
|
enum length_mod_enum {
|
||||||
LENGTH_NONE,
|
LENGTH_NONE, /* int */
|
||||||
LENGTH_HH,
|
LENGTH_HH, /* char */
|
||||||
LENGTH_H,
|
LENGTH_H, /* short */
|
||||||
LENGTH_L,
|
LENGTH_L, /* long */
|
||||||
LENGTH_LL,
|
LENGTH_LL, /* long long */
|
||||||
LENGTH_J,
|
LENGTH_J, /* intmax */
|
||||||
LENGTH_Z,
|
LENGTH_Z, /* size_t */
|
||||||
LENGTH_T,
|
LENGTH_T, /* ptrdiff_t */
|
||||||
LENGTH_UPPER_L,
|
LENGTH_UPPER_L, /* long double */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Categories of conversion specifiers. */
|
/* Categories of conversion specifiers. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue