mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Add markers around generated code in error.c
This commit is contained in:
committed by
Paul Bakker
parent
8ff17c544c
commit
fe671f4aeb
@ -63,7 +63,10 @@ void polarssl_strerror( int ret, char *buf, size_t buflen )
|
||||
|
||||
// High level error codes
|
||||
//
|
||||
// BEGIN generated code
|
||||
HIGH_LEVEL_CODE_CHECKS
|
||||
// END generated code
|
||||
|
||||
if( strlen( buf ) == 0 )
|
||||
snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", use_ret );
|
||||
}
|
||||
@ -91,7 +94,10 @@ HIGH_LEVEL_CODE_CHECKS
|
||||
|
||||
// Low level error codes
|
||||
//
|
||||
// BEGIN generated code
|
||||
LOW_LEVEL_CODE_CHECKS
|
||||
// END generated code
|
||||
|
||||
if( strlen( buf ) != 0 )
|
||||
return;
|
||||
|
||||
|
@ -135,11 +135,11 @@ while (my $line = <GREP>)
|
||||
|
||||
if ($ll_old_define ne "")
|
||||
{
|
||||
$ll_code_check .= "#endif /* POLARSSL_${ll_old_define}_C */\n\n";
|
||||
$ll_code_check .= "#endif /* POLARSSL_${ll_old_define}_C */\n";
|
||||
}
|
||||
if ($hl_old_define ne "")
|
||||
{
|
||||
$hl_code_check .= "#endif /* POLARSSL_${hl_old_define}_C */\n\n";
|
||||
$hl_code_check .= "#endif /* POLARSSL_${hl_old_define}_C */\n";
|
||||
}
|
||||
|
||||
$error_format =~ s/HEADER_INCLUDED\n/$headers/g;
|
||||
|
Reference in New Issue
Block a user