Allow completely disabling printf()-like formatter.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 21 Jul 2004 00:20:20 +0000 (00:20 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 21 Jul 2004 00:20:20 +0000 (00:20 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@76 38d2e660-2303-0410-9eaa-f027e97ec537

mware/formatwr.c

index d63aa68463ce2b9a9c3c88eadf7114d8013cce44..f758c2fda5b2b42adfad906b5b2b5c90e6f256dc 100755 (executable)
@@ -42,6 +42,9 @@
 
 /*
  * $Log$
+ * Revision 1.4  2004/07/21 00:20:20  bernie
+ * Allow completely disabling printf()-like formatter.
+ *
  * Revision 1.3  2004/07/18 22:00:15  bernie
  * Reorganize configuration parameters to match DevLib's convention.
  *
@@ -53,6 +56,8 @@
  *
  */
 
+#ifndef CONFIG_PRINTF_DISABLED
+
 #include "formatwr.h"
 #include <compiler.h> /* progmem macros */
 #include <config.h> /* CONFIG_ macros */
@@ -802,3 +807,5 @@ CONVERSION_LOOP:
        }
 #endif /* CONFIG_PRINTF_REDUCED */
 }
+
+#endif /* CONFIG_PRINTF_DISABLED */