Re: [patch] C99 restrict support



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Damon Chaplin <damon karuna uklinux net> writes:

> On Thu, 2005-01-27 at 21:13, Roger Leigh wrote:
>
>> Ah.  It looks like that was a separate problem (not checking for
>> unsigned).  This patch fixes that:
>> 
>> --- /var/tmp/gtkdoc-scan	2005-01-27 19:48:29.000000000 +0000
>> +++ gtkdoc-scan	2005-01-27 21:07:43.000000000 +0000
>> @@ -419,7 +419,7 @@
>>  		$decl = $';
>>  		if ($previous_line !~ m/^\s*G_INLINE_FUNC/
>>  		    && $previous_line !~ m/^\s*static\s+/) {
>> -		    if ($previous_line =~ m/^\s*(extern)?\s*((const\s*|G_CONST_RETURN\s*)?\w+)(\s*\*+)?\s*$/) {
>> +		    if ($previous_line =~ m/^\s*(extern)?\s*((const\s*|G_CONST_RETURN\s*|unsigned\s*)?\w+)(\s*\*+)?\s*$/) {
>>  			$ret_type = $2;
>>  			if (defined ($4)) { $ret_type .= " $4"; }
>>  #			print "Function: $symbol, Returns: $ret_type\n";
>> 
>> 
>> Should I file this in bugzilla as well, or is here sufficient?
>
> This is enough. Does it work perfectly now, with all the functions
> appearing in the documentation?

Yes.  It was just missing functions declared like this:

unsigned int
foo_func(...);

> I'll check & commit it in the next few days.

Thanks!


- -- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFB+qO0VcFcaSW/uEgRAkcaAJ9uEEaPKkFWnaf7z4WZzdMLrN7gtwCfR3+/
Eqr+/smq3Nz8aPTqIOv86uU=
=2s82
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]