mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-12-16 20:51:17 +08:00
- cleaned up interface to generate_test_runner.rb
- fixed a couple minor warnings in unity.c git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@39 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
18
src/unity.c
18
src/unity.c
@@ -2,8 +2,18 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
//rely on how C will fill the rest of the structure with 0's
|
||||
struct _Unity Unity = { 0 };
|
||||
struct _Unity Unity =
|
||||
{
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1e-4f,
|
||||
{0},
|
||||
};
|
||||
|
||||
void UnityPrintChar(const char ch)
|
||||
{
|
||||
@@ -327,7 +337,7 @@ void UnityAssertIntsWithin(const long delta,
|
||||
void UnityAssertEqualString(const char* expected,
|
||||
const char* actual,
|
||||
const char* msg,
|
||||
unsigned short lineNumber)
|
||||
const unsigned short lineNumber)
|
||||
{
|
||||
unsigned long i;
|
||||
|
||||
@@ -373,7 +383,7 @@ void UnityAssertEqualMemory(const void* expected,
|
||||
const void* actual,
|
||||
unsigned long length,
|
||||
const char* msg,
|
||||
unsigned short lineNumber)
|
||||
const unsigned short lineNumber)
|
||||
{
|
||||
if (length == 0)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user