mbedtls/scripts
Gilles Peskine 945b23c46f Include platform.h unconditionally: automatic part
We used to include platform.h only when MBEDTLS_PLATFORM_C was enabled, and
to define ad hoc replacements for mbedtls_xxx functions on a case-by-case
basis when MBEDTLS_PLATFORM_C was disabled. The only reason for this
complication was to allow building individual source modules without copying
platform.h. This is not something we support or recommend anymore, so get
rid of the complication: include platform.h unconditionally.

There should be no change in behavior since just including the header should
not change the behavior of a program.

This commit replaces most occurrences of conditional inclusion of
platform.h, using the following code:

```
perl -i -0777 -pe 's!#if.*\n#include "mbedtls/platform.h"\n(#else.*\n(#define (mbedtls|MBEDTLS)_.*\n|#include <(stdarg|stddef|stdio|stdlib|string|time)\.h>\n)*)?#endif.*!#include "mbedtls/platform.h"!mg' $(git grep -l '#include "mbedtls/platform.h"')
```

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2022-09-15 20:33:07 +02:00
..
data_files Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
mbedtls_dev Add warnings to test code and data about storage format stability 2022-06-20 19:10:35 +02:00
abi_check.py Document how to interpret negative reports 2022-06-20 18:51:44 +02:00
apidoc_full.sh Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
assemble_changelog.py Fix case of Mbed TLS in assemble_changelog.py 2022-07-11 11:39:21 +01:00
basic.requirements.txt Add requirement on Jinja to integrate drivers 2021-11-17 19:27:45 +01:00
bump_version.sh Update bump_version.sh to recognise Makefile changes 2022-08-12 11:02:03 +01:00
ci.requirements.txt Update references to old Github organisation 2022-03-31 14:43:16 +01:00
code_size_compare.py Redo of PR#5345. Fixed spelling and typographical errors found by CodeSpell. 2022-05-11 21:25:51 +01:00
config.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
config.py Declare deprecated option for no_deprecated configs 2022-06-27 23:02:09 +02:00
driver.requirements.txt Add minimum requirements for Python 3.10 support 2022-05-13 16:52:28 +02:00
ecc-heap.sh Tune coverage of ecc-heap.sh 2022-01-06 12:20:48 +01:00
ecp_comb_table.py Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
find-mem-leak.cocci Remove malloc references in mbedtls/scripts 2017-07-06 10:34:12 +01:00
footprint.sh Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
generate_driver_wrappers.py Fix additional misspellings found by codespell 2022-05-11 21:25:54 +01:00
generate_errors.pl Show warnings if something looks wrong 2021-08-02 22:53:40 +02:00
generate_features.pl Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
generate_psa_constants.py Allow running source file generators from a subdirectory 2021-05-17 22:46:27 +02:00
generate_query_config.pl Fix stupid mistake (s/-d/-f/) and typo found by mpg review - thanks 2022-07-27 08:55:03 +01:00
generate_ssl_debug_helpers.py Fix formatting of generate_ssl_debug_helpers.py 2022-07-08 20:45:39 +01:00
generate_visualc_files.pl Simplify line ending management and make it work on Windows 2021-05-20 10:37:22 +02:00
maintainer.requirements.txt Add Cryptodome to maintainer requirements 2021-12-02 12:50:06 +01:00
make_generated_files.bat Fix Pylint errors and improve Python script 2021-12-18 13:28:59 +05:30
massif_max.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
memory.sh Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
min_requirements.py Add minimum requirements for Python 3.10 support 2022-05-13 16:52:28 +02:00
output_env.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
rm-calloc-cast.cocci Remove malloc references in mbedtls/scripts 2017-07-06 10:34:12 +01:00
tmp_ignore_makefiles.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
windows_msbuild.bat Add a simple build script for Windows with Visual Studio 2020-04-26 20:52:04 +02:00