Sebastian Pipping
2a10e173ab
Sync file headers
2024-02-06 14:13:00 +01:00
Sebastian Pipping
322ac581e3
tests: Cast malloc/calloc/realloc results to allow use as C and C++
2023-09-19 19:20:11 +02:00
Sebastian Pipping
f5e20fcb9d
tests: Add more const near malloc/calloc/realloc
2023-09-19 19:19:33 +02:00
Sebastian Pipping
34dc95a08a
tests/structdata.c: Avoid name "new" to allow reuse from C++
2023-09-19 19:14:14 +02:00
Sebastian Pipping
26c33a2dcc
tests: Undef NDEBUG where needed more after refactoring
...
All other test files using assert(..) and <assert.h> have the same.
2023-09-02 18:37:35 +02:00
Sean McBride
417f46b895
Replaced all sprintf with safer snprintf
...
Although they differ in return values, none of the calls look at the return value.
2022-10-26 14:57:47 -04:00
Sean McBride
ce15e2c219
Fixed cppcheck 2.9 warnings
...
The warnings were:
variableScope,expat/tests/chardata.c:83,style,The scope of the variable 'buffer' can be reduced.
constParameter,expat/tests/memcheck.c:85,style,Parameter 'ptr' can be declared as pointer to const
variableScope,expat/tests/structdata.c:106,style,The scope of the variable 'i' can be reduced.
2022-10-26 14:57:46 -04:00
Sebastian Pipping
df42f935bf
Increase precision in existing MIT headers based on Git history
2021-05-02 19:53:29 +02:00
Sebastian Pipping
8d1bd6ff2c
Resolve macro HAVE_EXPAT_CONFIG_H
2021-04-22 00:11:28 +02:00
clang-format
d248bbd940
Mass-apply clang-format 9 using ./apply-clang-format.sh
2019-08-03 21:31:44 +02:00
Sebastian Pipping
ff0606bb86
structdata.c: Address Clang Static Analyzer warnings ( #294 )
2019-07-28 01:38:13 +02:00
Sebastian Pipping
850c0922e1
Address 64bit size_t loss warning for Visual Studio
...
Message was:
warning C4267: 'argument' : conversion from 'size_t' to 'int'
2017-12-04 00:15:55 +01:00
Sebastian Pipping
5c6c28cf40
Streamline preprocessor indentation
2017-08-29 23:21:52 +02:00
Rhodri James
8b64146e21
Add support for structured data in test handlers
2017-08-29 23:19:34 +02:00