From: Ian Campbell Subject: Re: [PATCH DOCDAY] hcall: markup the event channel hypercalls to improve generated docs Date: Tue, 28 Feb 2012 12:43:42 +0000 Message-ID: <1330433022.31269.135.camel@zakaz.uk.xensource.com> References: <31eb9ee09b726bfab1df.1330344431@cosworth.uk.xensource.com> <1330346266.8557.282.camel@zakaz.uk.xensource.com> <20300.51954.552010.422304@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20300.51954.552010.422304@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Tue, 2012-02-28 at 12:39 +0000, Ian Jackson wrote: > Ian Campbell writes ("Re: [Xen-devel] [PATCH DOCDAY] hcall: markup the event channel hypercalls to improve generated docs"): > > Actually, the intro from that chapter is interesting/useful and I missed > > it. Here's a new version with it included. > ... > > hcall: markup the event channel hypercalls to improve generated docs > > Good stuff. > > Acked-by: Ian Jackson Thanks. > > Also, as requested: > > commit 78ed3b5816ed60e7e86810c2d93069fae63dc406 > Author: Ian Jackson > Date: Tue Feb 28 12:36:15 2012 +0000 > > docs: xen-headers: Annotate typedefs > > Parse (some) typedef statements. (Make type names links to the > underlying struct if there is one, rather than to just the typedef.) > > Also, exclude the new arch-arm headers. > > Signed-off-by: Ian Jackson Thanks, I didn't review closely or try it yet but this jumped out at me (twice): > + if ($name eq 'buf_ioreq_t') { > + print STDERR "REFHREF $type $name | $ttype $tname | @deref\n"; > + } And this has a odd looking indentation: > @@ -259,6 +290,14 @@ sub process_file ($$) { > in_enum($1,(ucfirst $2),$3); > } > } > + } elsif (s/^(typedef \s+ )((struct|union|enum) \ (\w+)) > + (\s+) (\w+)(\;)$ > + / norm($1).norm($2).$5. > + defn($6,'Typedef',$6,undef,[(ucfirst $3),$4]). > + $7 /xe) { > + } elsif (s/^(typedef \s+) (\w+) (\s+) (\w+) (\;)$ Extra leading space or a sneaky hard tab? Ian.