mirror of
https://github.com/DaveGamble/cJSON
synced 2025-04-26 05:07:55 +00:00
Fix spelling errors found by CodeSpell. See https://github.com/codespell-project/codespell
This commit is contained in:
parent
8a334b0140
commit
324973008c
@ -34,7 +34,7 @@ static void * CJSON_CDECL failing_malloc(size_t size)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* work around MSVC error C2322: '...' address of dillimport '...' is not static */
|
/* work around MSVC error C2322: '...' address of dllimport '...' is not static */
|
||||||
static void CJSON_CDECL normal_free(void *pointer)
|
static void CJSON_CDECL normal_free(void *pointer)
|
||||||
{
|
{
|
||||||
free(pointer);
|
free(pointer);
|
||||||
|
@ -63,7 +63,7 @@ static void assert_print_object(const char * const expected, const char * const
|
|||||||
|
|
||||||
formatted_buffer.format = true;
|
formatted_buffer.format = true;
|
||||||
TEST_ASSERT_TRUE_MESSAGE(print_object(item, &formatted_buffer), "Failed to print formatted string.");
|
TEST_ASSERT_TRUE_MESSAGE(print_object(item, &formatted_buffer), "Failed to print formatted string.");
|
||||||
TEST_ASSERT_EQUAL_STRING_MESSAGE(expected, printed_formatted, "Formatted ojbect is not correct.");
|
TEST_ASSERT_EQUAL_STRING_MESSAGE(expected, printed_formatted, "Formatted object is not correct.");
|
||||||
|
|
||||||
reset(item);
|
reset(item);
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ class ParseOutput
|
|||||||
@array_list.push ' <testcase classname="' + test_suite + '" name="' + test_name + '"/>'
|
@array_list.push ' <testcase classname="' + test_suite + '" name="' + test_name + '"/>'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Test was flagged as being ingored so format the output
|
# Test was flagged as being ignored so format the output
|
||||||
def test_ignored(array)
|
def test_ignored(array)
|
||||||
last_item = array.length - 1
|
last_item = array.length - 1
|
||||||
test_name = array[last_item - 2]
|
test_name = array[last_item - 2]
|
||||||
|
@ -72,7 +72,7 @@ header files. These three files _are_ Unity.
|
|||||||
into this folder already. This is where all the handy documentation can be
|
into this folder already. This is where all the handy documentation can be
|
||||||
found.
|
found.
|
||||||
- `examples` - This contains a few examples of using Unity.
|
- `examples` - This contains a few examples of using Unity.
|
||||||
- `extras` - These are optional add ons to Unity that are not part of the core
|
- `extras` - These are optional addons to Unity that are not part of the core
|
||||||
project. If you've reached us through James Grenning's book, you're going to
|
project. If you've reached us through James Grenning's book, you're going to
|
||||||
want to look here.
|
want to look here.
|
||||||
- `test` - This is how Unity and its scripts are all tested. If you're just using
|
- `test` - This is how Unity and its scripts are all tested. If you're just using
|
||||||
|
@ -2,7 +2,7 @@ Eclipse error parsers
|
|||||||
=====================
|
=====================
|
||||||
|
|
||||||
These are a godsend for extracting & quickly navigating to
|
These are a godsend for extracting & quickly navigating to
|
||||||
warnings & error messages from console output. Unforunately
|
warnings & error messages from console output. Unfortunately
|
||||||
I don't know how to write an Eclipse plugin so you'll have
|
I don't know how to write an Eclipse plugin so you'll have
|
||||||
to add them manually.
|
to add them manually.
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
/* If omitted from header, declare overrideable prototypes here so they're ready for use */
|
/* If omitted from header, declare overridable prototypes here so they're ready for use */
|
||||||
#ifdef UNITY_OMIT_OUTPUT_CHAR_HEADER_DECLARATION
|
#ifdef UNITY_OMIT_OUTPUT_CHAR_HEADER_DECLARATION
|
||||||
void UNITY_OUTPUT_CHAR(int);
|
void UNITY_OUTPUT_CHAR(int);
|
||||||
#endif
|
#endif
|
||||||
|
@ -26,7 +26,7 @@ task :prepare_for_tests => TEMP_DIRS
|
|||||||
|
|
||||||
include RakefileHelpers
|
include RakefileHelpers
|
||||||
|
|
||||||
# Load proper GCC as defult configuration
|
# Load proper GCC as default configuration
|
||||||
DEFAULT_CONFIG_FILE = 'gcc_auto_stdint.yml'
|
DEFAULT_CONFIG_FILE = 'gcc_auto_stdint.yml'
|
||||||
configure_toolchain(DEFAULT_CONFIG_FILE)
|
configure_toolchain(DEFAULT_CONFIG_FILE)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user