compile flags don't need true
compilation flags are defined as true by default. rearrange them. Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
This commit is contained in:
parent
dcc93c0ba6
commit
310002d3e0
21
numericx.c
21
numericx.c
|
@ -4,24 +4,26 @@
|
|||
#include <stdbool.h>
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef DEBUG
|
||||
#define DEBUG true
|
||||
#else
|
||||
#ifndef DEBUG
|
||||
#define DEBUG false
|
||||
#endif
|
||||
|
||||
#ifdef TO_UNITS_ON_THE_END
|
||||
#define TO_UNITS_ON_THE_END true
|
||||
#else
|
||||
#ifndef TO_UNITS_ON_THE_END
|
||||
#define TO_UNITS_ON_THE_END false
|
||||
#endif
|
||||
|
||||
#ifdef FROM_UNITS_ON_THE_END
|
||||
#define FROM_UNITS_ON_THE_END true
|
||||
#else
|
||||
#ifndef FROM_UNITS_ON_THE_END
|
||||
#define FROM_UNITS_ON_THE_END false
|
||||
#endif
|
||||
|
||||
#ifndef TO_FIRST_NUMBER_VOID
|
||||
#define TO_FIRST_NUMBER_VOID false
|
||||
#endif
|
||||
|
||||
#ifndef FROM_FIRST_NUMBER_VOID
|
||||
#define FROM_FIRST_NUMBER_VOID false
|
||||
#endif
|
||||
|
||||
typedef struct NumeralPtr
|
||||
{
|
||||
char const* symbol;
|
||||
|
@ -182,6 +184,7 @@ main(int argc, char* argv[])
|
|||
|
||||
if(DEBUG)
|
||||
print_numeral(counting);
|
||||
|
||||
increment(counting, from_first, from_last);
|
||||
}
|
||||
if(DEBUG)
|
||||
|
|
Loading…
Reference in New Issue