From b57e6e11216012453dbae1e50f3d72f45cfe86f7 Mon Sep 17 00:00:00 2001 From: hathach Date: Sun, 27 Jan 2013 16:26:25 +0700 Subject: [PATCH] configure unity a bit --- .../vendor/ceedling/vendor/unity/src/unity.c | 65 ++++++++++--------- .../vendor/ceedling/vendor/unity/src/unity.h | 2 + 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 82a9fb7d..caf37859 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 0b6887c2..187bb4ff 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"