On 29.02.2012 13:05, 陳韋任 wrote:
On Wed, Feb 29, 2012 at 10:59:54AM +0400, Michael Tokarev wrote:
On 29.02.2012 09:52, Evgeny Voevodin wrote:
include/qemu/object.h:
[]
  * void my_device_class_init(ObjectClass *klass, void *class_data)
  * {
  *     DeviceClass *dc = DEVICE_CLASS(klass);
  *     dc->reset = my_device_reset;
  * }
  *

Why to use "klass", not "class"?
Because in C++, "class" is a reserved word.  It is quite typical idiom
to replace class with klass in (public) headers.
   I thought QEMU is written in C, right?

Actually, it is, but idiom...

--
Kind regards,
Evgeny Voevodin,
Leading Software Engineer,
ASWG, Moscow R&D center, Samsung Electronics
e-mail: e.voevo...@samsung.com



Reply via email to