From 2775a1670ccc800e4e64e7c122d14fbd1171beb0 Mon Sep 17 00:00:00 2001 From: Daniel Santos Date: Thu, 17 Mar 2022 06:23:14 +0000 Subject: [PATCH] remove DEBUG * remove debug message printing and the DEBUG variable Signed-off-by: Daniel Santos --- numericx.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/numericx.c b/numericx.c index 3ac74c4..c3d6b97 100644 --- a/numericx.c +++ b/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");