Skip to content

Commit

Permalink
Regards mpaland#77: MISRA-C:2012 Rule 20.1: #include directives sho…
Browse files Browse the repository at this point in the history
…uld only be preceded by other preprocessor directives or comments.
  • Loading branch information
sander.hagendoorn authored and eyalroz committed Feb 21, 2022
1 parent 346a22b commit 6a34f05
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/printf/printf.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,6 @@
#define PRINTF_SUPPORT_LONG_LONG 1
#endif

#if PRINTF_SUPPORT_LONG_LONG
typedef unsigned long long printf_unsigned_value_t;
typedef long long printf_signed_value_t;
#else
typedef unsigned long printf_unsigned_value_t;
typedef long printf_signed_value_t;
#endif

#define PRINTF_PREFER_DECIMAL false
#define PRINTF_PREFER_EXPONENTIAL true

Expand Down Expand Up @@ -146,6 +138,14 @@ typedef long printf_signed_value_t;
#define BASE_DECIMAL 10
#define BASE_HEX 16

#if PRINTF_SUPPORT_LONG_LONG
typedef unsigned long long printf_unsigned_value_t;
typedef long long printf_signed_value_t;
#else
typedef unsigned long printf_unsigned_value_t;
typedef long printf_signed_value_t;
#endif

typedef uint8_t numeric_base_t;

#if (PRINTF_SUPPORT_DECIMAL_SPECIFIERS || PRINTF_SUPPORT_EXPONENTIAL_SPECIFIERS)
Expand Down

0 comments on commit 6a34f05

Please sign in to comment.