summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-01-27 16:26:25 +0700
committerhathach <[email protected]>2013-01-27 16:26:25 +0700
commitb57e6e11216012453dbae1e50f3d72f45cfe86f7 (patch)
treee555f0024b71b3fba4cd0db909961925d74e4105
parent9a1bda1633ae2a6311771ec44d150476cc18dfc4 (diff)
configure unity a bit
-rw-r--r--tests/vendor/ceedling/vendor/unity/src/unity.c65
-rw-r--r--tests/vendor/ceedling/vendor/unity/src/unity.h2
2 files changed, 35 insertions, 32 deletions
diff --git a/tests/vendor/ceedling/vendor/unity/src/unity.c b/tests/vendor/ceedling/vendor/unity/src/unity.c
index 82a9fb7da..caf378593 100644
--- a/tests/vendor/ceedling/vendor/unity/src/unity.c
+++ b/tests/vendor/ceedling/vendor/unity/src/unity.c
@@ -53,38 +53,39 @@ void UnityPrintOk(void);
void UnityPrint(const char* string)
{
- const char* pch = string;
-
- if (pch != NULL)
- {
- while (*pch)
- {
- // printable characters plus CR & LF are printed
- if ((*pch <= 126) && (*pch >= 32))
- {
- UNITY_OUTPUT_CHAR(*pch);
- }
- //write escaped carriage returns
- else if (*pch == 13)
- {
- UNITY_OUTPUT_CHAR('\\');
- UNITY_OUTPUT_CHAR('r');
- }
- //write escaped line feeds
- else if (*pch == 10)
- {
- UNITY_OUTPUT_CHAR('\\');
- UNITY_OUTPUT_CHAR('n');
- }
- // unprintable characters are shown as codes
- else
- {
- UNITY_OUTPUT_CHAR('\\');
- UnityPrintNumberHex((_U_SINT)*pch, 2);
- }
- pch++;
- }
- }
+// const char* pch = string;
+//
+// if (pch != NULL)
+// {
+// while (*pch)
+// {
+// // printable characters plus CR & LF are printed
+// if ((*pch <= 126) && (*pch >= 32))
+// {
+// UNITY_OUTPUT_CHAR(*pch);
+// }
+// //write escaped carriage returns
+// else if (*pch == 13)
+// {
+// UNITY_OUTPUT_CHAR('\\');
+// UNITY_OUTPUT_CHAR('r');
+// }
+// //write escaped line feeds
+// else if (*pch == 10)
+// {
+// UNITY_OUTPUT_CHAR('\\');
+// UNITY_OUTPUT_CHAR('n');
+// }
+// // unprintable characters are shown as codes
+// else
+// {
+// UNITY_OUTPUT_CHAR('\\');
+// UnityPrintNumberHex((_U_SINT)*pch, 2);
+// }
+// pch++;
+// }
+// }
+ printf (string);
}
//-----------------------------------------------
diff --git a/tests/vendor/ceedling/vendor/unity/src/unity.h b/tests/vendor/ceedling/vendor/unity/src/unity.h
index 0b6887c20..187bb4ffd 100644
--- a/tests/vendor/ceedling/vendor/unity/src/unity.h
+++ b/tests/vendor/ceedling/vendor/unity/src/unity.h
@@ -8,6 +8,8 @@
#define UNITY_FRAMEWORK_H
#define UNITY
+#define UNITY_EXCLUDE_FLOAT
+#define UNITY_EXCLUDE_DOUBLE
#include "unity_internals.h"