# HG changeset patch # User William Roberts # Date 1259324385 0 # Node ID 3c318bb9d9cfcc3fe0c80f32c18d881b49f8b46f # Parent fee529991771cb4a1bd4c0ed2b2d6c8d603db8e7 Fix for Bug 1371 - avoid generating OpenVG stub functions with invalid IMPORT_C decorations diff -r fee529991771 -r 3c318bb9d9cf sbsv1_os/e32toolp/genutil/conv_khronos_openvg_hdr_to_cpp.pl --- a/sbsv1_os/e32toolp/genutil/conv_khronos_openvg_hdr_to_cpp.pl Mon Feb 08 18:14:56 2010 +0000 +++ 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