Re: [Qemu-devel] [PATCH 01/14] Add new data type for fprintf like function pointers

2010-07-01 Thread Stefan Weil
Am 09.04.2010 13:20, schrieb Stefan Weil: Aurelien Jarno schrieb: On Mon, Mar 29, 2010 at 09:16:52PM +0200, Stefan Weil wrote: The compiler should check the arguments for these functions. gcc can do this, but only if the function pointer's prototype includes the __attribute__ flag. As the

Re: [Qemu-devel] [PATCH 01/14] Add new data type for fprintf like function pointers

2010-07-01 Thread Aurelien Jarno
On Thu, Jul 01, 2010 at 11:08:49AM +0200, Stefan Weil wrote: Am 09.04.2010 13:20, schrieb Stefan Weil: Aurelien Jarno schrieb: On Mon, Mar 29, 2010 at 09:16:52PM +0200, Stefan Weil wrote: The compiler should check the arguments for these functions. gcc can do this, but only if the function

Re: [Qemu-devel] [PATCH 01/14] Add new data type for fprintf like function pointers

2010-04-09 Thread Stefan Weil
Aurelien Jarno schrieb: On Mon, Mar 29, 2010 at 09:16:52PM +0200, Stefan Weil wrote: The compiler should check the arguments for these functions. gcc can do this, but only if the function pointer's prototype includes the __attribute__ flag. As the necessary declaration is a bit lengthy, we

Re: [Qemu-devel] [PATCH 01/14] Add new data type for fprintf like function pointers

2010-04-08 Thread Aurelien Jarno
On Mon, Mar 29, 2010 at 09:16:52PM +0200, Stefan Weil wrote: The compiler should check the arguments for these functions. gcc can do this, but only if the function pointer's prototype includes the __attribute__ flag. As the necessary declaration is a bit lengthy, we use a new data type

[Qemu-devel] [PATCH 01/14] Add new data type for fprintf like function pointers

2010-03-29 Thread Stefan Weil
The compiler should check the arguments for these functions. gcc can do this, but only if the function pointer's prototype includes the __attribute__ flag. As the necessary declaration is a bit lengthy, we use a new data type 'fprintf_function'. It is not easy to find a single header file which