|
From: | Paul Brook |
Subject: | Re: [Qemu-devel] [RFC, PATCH] Add -Wstrict-prototypes, maybe later -Wmissing-prototypes |
Date: | Mon, 11 Aug 2008 15:53:48 +0100 |
User-agent: | KMail/1.9.9 |
> > You could just switch void (*handler)() to void *handler. > > Function pointers might be wider than data pointers. I'm pretty sure this isn't true on any current system. On some targets you end up using a function descriptor, but it should still work. > void (*handler)(const char **args) This seems like a reasonable idea. None of this code is performance critical. Paul
[Prev in Thread] | Current Thread | [Next in Thread] |