mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 04:15:41 +01:00
Fix bug in generate_code.pl
The following did fail: Test 1 foo:SOME_CONSTANT:"string" Test 2 foo:OTHER_CONSTANT:"string" due to the first string actually including the second "foo" up to (but no including) the colon.
This commit is contained in:
parent
ba334201a9
commit
23c0608e28
@ -139,7 +139,7 @@ while($test_cases =~ /\/\* BEGIN_CASE *([\w:]*) \*\/\n(.*?)\n\/\* END_CASE \*\//
|
||||
$param_defs .= " char *param$i = params[$i];\n";
|
||||
$param_checks .= " if( verify_string( ¶m$i ) != 0 ) return( 2 );\n";
|
||||
push @dispatch_params, "param$i";
|
||||
$mapping_regex .= ":[^:]+";
|
||||
$mapping_regex .= ":[^:\n]+";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user