1
0
mirror of https://github.com/ThrowTheSwitch/Unity synced 2025-05-29 03:29:34 -04:00

Merge pull request from aburks/master

Fixes : unity_output_Spy should use the platform-agnostic macros for memory.
This commit is contained in:
Mark VanderVoord 2015-07-12 10:18:43 -04:00
commit 6a944c2eb9

@ -7,8 +7,9 @@
#include "unity_output_Spy.h"
#include "unity_fixture.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static int size;
@ -21,14 +22,14 @@ void UnityOutputCharSpy_Create(int s)
size = s;
count = 0;
spy_enable = 0;
buffer = malloc(size);
buffer = UNITY_FIXTURE_MALLOC(size);
memset(buffer, 0, size);
}
void UnityOutputCharSpy_Destroy(void)
{
size = 0;
free(buffer);
UNITY_FIXTURE_FREE(buffer);
}
int UnityOutputCharSpy_OutputChar(int c)