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
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ while($test_cases =~ /\/\* BEGIN_CASE *([\w:]*) \*\/\n(.*?)\n\/\* END_CASE \*\//
|
||||||
$param_defs .= " char *param$i = params[$i];\n";
|
$param_defs .= " char *param$i = params[$i];\n";
|
||||||
$param_checks .= " if( verify_string( ¶m$i ) != 0 ) return( 2 );\n";
|
$param_checks .= " if( verify_string( ¶m$i ) != 0 ) return( 2 );\n";
|
||||||
push @dispatch_params, "param$i";
|
push @dispatch_params, "param$i";
|
||||||
$mapping_regex .= ":[^:]+";
|
$mapping_regex .= ":[^:\n]+";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue