1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

Converted .function file to c-like format and adapted generator code

This commit is contained in:
Paul Bakker
2013-08-20 11:48:36 +02:00
parent 55a7e908f2
commit 33b43f1ec3
30 changed files with 1610 additions and 1433 deletions

View File

@ -1,18 +1,19 @@
BEGIN_HEADER
/* BEGIN_HEADER */
#include <polarssl/error.h>
END_HEADER
/* END_HEADER */
BEGIN_DEPENDENCIES
depends_on:POLARSSL_ERROR_C
END_DEPENDENCIES
/* BEGIN_DEPENDENCIES
* depends_on:POLARSSL_ERROR_C
* END_DEPENDENCIES
*/
BEGIN_CASE
error_strerror:#code:result_str
/* BEGIN_CASE */
void error_strerror( int code, char *result_str )
{
char buf[500];
error_strerror( {code}, buf, 500 );
error_strerror( code, buf, 500 );
TEST_ASSERT( strcmp( buf, {result_str} ) == 0 );
TEST_ASSERT( strcmp( buf, result_str ) == 0 );
}
END_CASE
/* END_CASE */