# HG changeset patch # User William Roberts # Date 1259324385 0 # Node ID 09e53df177b0a5db087c70167523995021dce133 # Parent 71c3276dda8319339c16d3d538e914fa2264d288 Fix for Bug 1371 - avoid generating OpenVG stub functions with invalid IMPORT_C decorations diff -r 71c3276dda83 -r 09e53df177b0 sbsv1_os/e32toolp/genutil/conv_khronos_openvg_hdr_to_cpp.pl --- a/sbsv1_os/e32toolp/genutil/conv_khronos_openvg_hdr_to_cpp.pl Tue Oct 13 15:49:25 2009 +0100 +++ b/sbsv1_os/e32toolp/genutil/conv_khronos_openvg_hdr_to_cpp.pl Fri Nov 27 12:19:45 2009 +0000 @@ -62,11 +62,12 @@ { @lines = ; my $s = ""; - foreach (@lines) { + foreach my $line (@lines) { # Find function prototype lines - if (/^VG[U]?_API_CALL/ || length($s) != 0) { - $s = $s.$_; - if (/;/) { + if ($line =~ /^VG[U]?_API_CALL/ || length($s) != 0) { + $line =~ s/^VG[U]?_API_CALL/EXPORT_C/; + $s = $s.$line; + if ($line =~ /;/) { # Convert the function prototype into a stub function definition $s =~ s/\;$/ { }/; # Record the stub functions. There will be a stub implementation