Bug fix for c2man

Robert Shearman rob at codeweavers.com
Mon Jul 26 04:58:23 CDT 2004


Hi,

I'm no perl hacker (hence the removal rather than the addition of code), 
but this patch seems to fix a bug in c2man.pl where it won't recognise 
functions that have their parameters spread across more than one line.

Rob

Changelog:
Fix c2man for the case where function parameters are on more than one line.

-------------- next part --------------
Index: wine/tools/c2man.pl
===================================================================
RCS file: /home/wine/wine/tools/c2man.pl,v
retrieving revision 1.16
diff -u -r1.16 c2man.pl
--- wine/tools/c2man.pl	23 Apr 2004 21:28:19 -0000	1.16
+++ wine/tools/c2man.pl	26 Jul 2004 09:48:53 -0000
@@ -443,7 +443,7 @@
     elsif ($parse_state == 2) # Finished reading in a comment
     {
       if ( /(WINAPIV|WINAPI|__cdecl|PASCAL|CALLBACK|FARPROC16)/ ||
-           /.*?\(.*?\)/ )
+           /.*?\(/ )
       {
         # Comment is followed by a function definition
         $parse_state = 4; # Fall through to read prototype


More information about the wine-patches mailing list