Re: [patch] C99 restrict support
- From: Damon Chaplin <damon karuna uklinux net>
- To: Roger Leigh <rleigh whinlatter ukfsn org>
- Cc: gtk-doc-list gnome org
- Subject: Re: [patch] C99 restrict support
- Date: Fri, 28 Jan 2005 11:09:13 +0000
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?
I'll check & commit it in the next few days.
Damon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]