remove DEBUG
* remove debug message printing and the DEBUG variable Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
This commit is contained in:
parent
c4bc0ae725
commit
2775a1670c
27
numericx.c
27
numericx.c
|
@ -22,15 +22,6 @@
|
|||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param bool
|
||||
*
|
||||
* Show debug message of the step by step incrementation of the number.
|
||||
*/
|
||||
#ifndef DEBUG
|
||||
#define DEBUG false
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @param bool
|
||||
*
|
||||
|
@ -468,33 +459,15 @@ main(int argc, char* argv[])
|
|||
/* increments until it finishes */
|
||||
while( !is_the_same(counting, number) )
|
||||
{
|
||||
if(DEBUG)
|
||||
print_numeral(result);
|
||||
|
||||
if( TO_INFINITE_BASE )
|
||||
increment(result, to_first, to_last, to_second);
|
||||
else
|
||||
increment(result, to_first, to_last, to_first);
|
||||
|
||||
if(DEBUG)
|
||||
{
|
||||
printf(" | ");
|
||||
print_numeral(counting);
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
increment(counting, from_first, from_last, from_first);
|
||||
}
|
||||
|
||||
/* print */
|
||||
if(DEBUG)
|
||||
{
|
||||
print_numeral(result);
|
||||
printf(" | ");
|
||||
print_numeral(counting);
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
print_numeral(result);
|
||||
printf("\n");
|
||||
|
||||
|
|
Loading…
Reference in New Issue