Received: from eggs.gnu.org ([208.118.235.92]:34603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfVuK-0003xf-FX for qemu-devel@nongnu.org; Fri, 04 Jan 2019 15:17:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfVuH-0005Xt-68 for qemu-devel@nongnu.org; Fri, 04 Jan 2019 15:17:28 -0500 References: <20190104181208.7809-1-philmd@redhat.com> <20190104181208.7809-4-philmd@redhat.com> From: Eric Blake Message-ID: <349cd87b-0526-30b8-d9cd-0eee537ab5a4@redhat.com> Date: Fri, 4 Jan 2019 14:17:14 -0600 MIME-Version: 1.0 In-Reply-To: <20190104181208.7809-4-philmd@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ovPHYZvWjj0WMrppWv1Y6vY58dY7WfNiU" Subject: Re: [Qemu-devel] [PATCH v2 3/3] util/cutils: Move function documentations to the header List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel@nongnu.org Cc: Fam Zheng , Thomas Huth , David Hildenbrand , qemu-trivial@nongnu.org, Cornelia Huck , Michael Roth , Markus Armbruster , Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, Gerd Hoffmann , David Gibson , Paolo Bonzini , Stefano Garzarella , Richard Henderson This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ovPHYZvWjj0WMrppWv1Y6vY58dY7WfNiU From: Eric Blake To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel@nongnu.org Cc: Fam Zheng , Thomas Huth , David Hildenbrand , qemu-trivial@nongnu.org, Cornelia Huck , Michael Roth , Markus Armbruster , Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, Gerd Hoffmann , David Gibson , Paolo Bonzini , Stefano Garzarella , Richard Henderson Message-ID: <349cd87b-0526-30b8-d9cd-0eee537ab5a4@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 3/3] util/cutils: Move function documentations to the header References: <20190104181208.7809-1-philmd@redhat.com> <20190104181208.7809-4-philmd@redhat.com> In-Reply-To: <20190104181208.7809-4-philmd@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 1/4/19 12:12 PM, Philippe Mathieu-Daud=C3=A9 wrote: > Many functions have documentation before the implementation in > cutils.c. Since we expect documentation around the prototype > declaration in headers, move the comments in cutils.h. >=20 > Signed-off-by: Philippe Mathieu-Daud=C3=A9 > --- > include/qemu/cutils.h | 224 ++++++++++++++++++++++++++++++++++++++++++= > util/cutils.c | 185 ---------------------------------- > 2 files changed, 224 insertions(+), 185 deletions(-) I find documentation in .c files slightly easier to use (you can then read the code right below to see if the documentation is still accurate); but as we had an inconsistent mix, I'm also okay with your patch consolidating all the documentation to one of the two files, rather than the bad mix of half-and-half. --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org --ovPHYZvWjj0WMrppWv1Y6vY58dY7WfNiU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEY3OaSlgimHGqKqRv3g5py3orov0FAlwvv0oACgkQ3g5py3or ov1/8gf8DOeTEAae/7Z0+naf9nIxiQr4KaMa7lEAD5J1lPumjYmcjLY8Xm5r6g2g vVNilsHfenfdoVgk25op5eS0j03/FRu3aY++iVaVYRmERvL+sCPcjFq5zaAePg+d GFByjBH9c9qrtrijN+nwBjKGnCj2IR7Ik18lNKSx30gzjsT7UJMQ6DLKVGTn4D4p zDKBeGvz33NGOQ/iBFSYmLBsewyJvWAw6s6MibeJlJT6S1sxK+eLbcOw0lk6UE9M 780zYBMXtS3mtGM29GokFhI72RSzp7VlvMwF3vQtMnAVZtvS/Ac2dauVrsyskCWf KyNN5Xwv3CDiM01nkAobDY5rpgUBjA== =w43k -----END PGP SIGNATURE----- --ovPHYZvWjj0WMrppWv1Y6vY58dY7WfNiU--