|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH 11/22] qapi: add signal support to core QMP server |
Date: | Mon, 07 Mar 2011 08:41:05 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Lightning/1.0b1 Thunderbird/3.0.10 |
On 03/07/2011 08:36 AM, Stefan Hajnoczi wrote:
Technically void (*)() is an obsolete type in standard C. I can switch to void (*)(void) but it requires casting and requires a typeof() :-/You're right, void (*)(void) is the proper form for a general function pointer. I think doing this in a portable way is worthwhile.
Yeah, using a function pointer is definitely better than using a void *. We'll just have to live with the use of typeof() though which fortunately is supported in some form by basically every compiler out there.
Regards, Anthony Liguori
Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |