about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDaniel Santos <dacs.git@brilhante.top>2022-03-17 06:23:14 +0000
committerDaniel Santos <dacs.git@brilhante.top>2022-03-17 07:49:49 +0000
commit2775a1670ccc800e4e64e7c122d14fbd1171beb0 (patch)
treeada0494d12e113d6e5833872d03b72ff0df7a269
parentc4bc0ae72583613af1b6459c0c565f93fe6fbe1e (diff)
downloadnumericx-c-2775a1670ccc800e4e64e7c122d14fbd1171beb0.tar.gz
remove DEBUG
 * remove debug message printing and the DEBUG variable

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
-rw-r--r--numericx.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/numericx.c b/numericx.c
index 3ac74c4..c3d6b97 100644
--- a/numericx.c
+++ b/numericx.c
@@ -25,15 +25,6 @@
 /**
  * @param bool
  *
- * Show debug message of the step by step incrementation of the number.
- */
-#ifndef DEBUG
-#define DEBUG false
-#endif
-
-/**
- * @param bool
- *
  * Configuration of the resulting numeral system
  * to have the units place on the end of the writing direction (on the right).
  */
@@ -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");