From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1kpG-0002tM-0k for qemu-devel@nongnu.org; Tue, 23 Jul 2013 18:12:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1kpF-0006vm-6B for qemu-devel@nongnu.org; Tue, 23 Jul 2013 18:12:57 -0400 Received: from cantor2.suse.de ([195.135.220.15]:59570 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1kpE-0006vi-Vx for qemu-devel@nongnu.org; Tue, 23 Jul 2013 18:12:57 -0400 Message-ID: <51EEFFE3.3090405@suse.de> Date: Wed, 24 Jul 2013 00:12:51 +0200 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1374547404-11700-1-git-send-email-afaerber@suse.de> <4E04E931-F4B5-45A7-8F22-7DE7F7174A59@suse.de> <49089A7A-F4CF-4E35-A7A9-31C000DEE487@suse.de> In-Reply-To: <49089A7A-F4CF-4E35-A7A9-31C000DEE487@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 00/16] arm: A9MPCore+A15MPCore QOM'ification List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Peter Maydell , Peter Crosthwaite , Hu Tao , "qemu-devel@nongnu.org" , Anthony Liguori , "kvmarm@lists.cs.columbia.edu" Am 23.07.2013 23:55, schrieb Alexander Graf: > On 23.07.2013, at 23:52, Peter Maydell wrote: >> On 23 July 2013 22:36, Alexander Graf wrote: >>> >>> Or maybe >>> >>> struct MyObject { >>> PUBLIC_FIELDS >>> __field int publicfield; >>> PRIVATE_FIELDS >>> __field int privatefield; >>> } >> >> I can't see an obvious way to make those do the right >> thing with the C preprocessor... am I missing something? >=20 > No, I'm probably just daydreaming :). Macros can't redefine other defin= es, so this probably won't work.... >=20 > So yes, prepending the visibility on every field seems to be the most s= traight forward choice. I wonder how many public fields do we actually have? Close to zero? Might there be a way to mark all fields of a struct as private at struct level, except for those explicitly marked up as public? Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg