From daad2bc82bf3ab5af4ed1ce84cf55dde8d5fe478 Mon Sep 17 00:00:00 2001 From: Mark VanderVoord Date: Tue, 23 Aug 2016 06:46:51 -0400 Subject: [PATCH] removed some newer style comments that crept into the codebase. --- src/unity.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/unity.c b/src/unity.c index 159e0d9..8d8bb2d 100644 --- a/src/unity.c +++ b/src/unity.c @@ -1142,7 +1142,6 @@ void UnityAssertEqualMemory( UNITY_INTERNAL_PTR expected, while (elements--) { - /* /////////////////////////////////// */ bytes = length; while (bytes--) { @@ -1167,8 +1166,6 @@ void UnityAssertEqualMemory( UNITY_INTERNAL_PTR expected, ptr_exp = (UNITY_INTERNAL_PTR)((_UP)ptr_exp + 1); ptr_act = (UNITY_INTERNAL_PTR)((_UP)ptr_act + 1); } - /* /////////////////////////////////// */ - } } @@ -1413,14 +1410,14 @@ int UnityStringArgumentMatches(const char* str) const char* ptr2; const char* ptrf; - //Go through the options and get the substrings for matching one at a time + /* Go through the options and get the substrings for matching one at a time */ ptr1 = str; while (ptr1[0] != 0) { if ((ptr1[0] == '"') || (ptr1[0] == '\'')) ptr1++; - //look for the start of the next partial + /* look for the start of the next partial */ ptr2 = ptr1; ptrf = 0; do { @@ -1431,26 +1428,26 @@ int UnityStringArgumentMatches(const char* str) while ((ptr2[0] != 0) && ((ptr2[0] == ':') || (ptr2[0] == '\'') || (ptr2[0] == '"') || (ptr2[0] == ','))) ptr2++; - //done if complete filename match + /* done if complete filename match */ retval = IsStringInBiggerString(Unity.TestFile, ptr1); if (retval == 1) return retval; - //done if testname match after filename partial match + /* done if testname match after filename partial match */ if ((retval == 2) && (ptrf != 0)) { if (IsStringInBiggerString(Unity.CurrentTestName, ptrf)) return 1; } - //done if complete testname match + /* done if complete testname match */ if (IsStringInBiggerString(Unity.CurrentTestName, ptr1) == 1) return 1; ptr1 = ptr2; } - //we couldn't find a match for any substrings + /* we couldn't find a match for any substrings */ return 0; }