Fix comment generated by generate_errors.pl

This commit is contained in:
Manuel Pégourié-Gonnard 2015-04-08 20:27:02 +02:00
parent c559f0476d
commit e546ad4afd
2 changed files with 17 additions and 3 deletions

View file

@ -496,7 +496,7 @@ void mbedtls_strerror( int ret, char *buf, size_t buflen )
mbedtls_snprintf( buf, buflen, "X509 - Allocation of memory failed" );
if( use_ret == -(MBEDTLS_ERR_X509_FILE_IO_ERROR) )
mbedtls_snprintf( buf, buflen, "X509 - Read/write of file failed" );
#endif /* MBEDTLS_X509_USE,X509_CREATE_C */
#endif /* MBEDTLS_X509_USE_C || MBEDTLS_X509_CREATE_C */
// END generated code
if( strlen( buf ) == 0 )

View file

@ -165,11 +165,25 @@ while (my $line = <GREP>)
if ($ll_old_define ne "")
{
$ll_code_check .= "#endif /* MBEDTLS_${ll_old_define}_C */\n";
$ll_code_check .= "#endif /* ";
my $first = 0;
foreach my $dep (split(/,/, $ll_old_define))
{
$ll_code_check .= " || " if ($first++);
$ll_code_check .= "MBEDTLS_${dep}_C";
}
$ll_code_check .= " */\n";
}
if ($hl_old_define ne "")
{
$hl_code_check .= "#endif /* MBEDTLS_${hl_old_define}_C */\n";
$hl_code_check .= "#endif /* ";
my $first = 0;
foreach my $dep (split(/,/, $hl_old_define))
{
$hl_code_check .= " || " if ($first++);
$hl_code_check .= "MBEDTLS_${dep}_C";
}
$hl_code_check .= " */\n";
}
$error_format =~ s/HEADER_INCLUDED\n/$headers/g;