mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 07:35:42 +01:00
Beauty source code
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
cf080ce821
commit
969c01a234
@ -115,9 +115,9 @@
|
|||||||
#define MACRO_NAME_TO_STR(macro) \
|
#define MACRO_NAME_TO_STR(macro) \
|
||||||
mbedtls_printf( "%s", strlen( #macro "" ) > 0 ? #macro "\n" : "" )
|
mbedtls_printf( "%s", strlen( #macro "" ) > 0 ? #macro "\n" : "" )
|
||||||
|
|
||||||
#define NAME_TO_STR(macro) #macro
|
#define STRINGIFY(macro) #macro
|
||||||
#define OUTPUT_MACRO_NAME_VALUE(macro) mbedtls_printf( #macro "%s\n", \
|
#define OUTPUT_MACRO_NAME_VALUE(macro) mbedtls_printf( #macro "%s\n", \
|
||||||
strlen( NAME_TO_STR(macro) "") > 0 ? "=" NAME_TO_STR(macro) : "" )
|
STRINGIFY(macro)[0] != 0 ? "=" STRINGIFY(macro) : "" )
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
/*
|
/*
|
||||||
|
@ -203,8 +203,7 @@ skip_next_test() {
|
|||||||
# skip next test if the flag is not enabled in config.h
|
# skip next test if the flag is not enabled in config.h
|
||||||
requires_config_enabled() {
|
requires_config_enabled() {
|
||||||
case $CONFIGS_ENABLED in
|
case $CONFIGS_ENABLED in
|
||||||
*" $1 "*) :;;
|
*" $1"[\ =]*) :;;
|
||||||
*" $1="*) :;;
|
|
||||||
*) SKIP_NEXT="YES";;
|
*) SKIP_NEXT="YES";;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@ -212,8 +211,7 @@ requires_config_enabled() {
|
|||||||
# skip next test if the flag is enabled in config.h
|
# skip next test if the flag is enabled in config.h
|
||||||
requires_config_disabled() {
|
requires_config_disabled() {
|
||||||
case $CONFIGS_ENABLED in
|
case $CONFIGS_ENABLED in
|
||||||
*" $1 "*) SKIP_NEXT="YES";;
|
*" $1"[\ =]*) SKIP_NEXT="YES";;
|
||||||
*" $1="*) SKIP_NEXT="YES";;
|
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user