On Sat, 30 Jun 2012 17:37:37 EDT erik quanstrom <[email protected]> wrote:
> On Sat Jun 30 17:34:47 EDT 2012, [email protected] wrote:
> > On Sat, 30 Jun 2012 17:25:21 EDT erik quanstrom <[email protected]> wr
> ote:
> > > i haven't tracked down thie issue yet, but it appears that ?c
> > > generate unparsable acid output
> > >
> > > ; cat > void.c
> > > typedef struct PNOTIFY PNOTIFY
> > >
> > > struct PNOTIFY {
> > > void emptiness;
> > > }; ^^^^
> >
> > Why would you do that?
>
> because there's nothing that needs to be saved there for the k10
> architecture.
I think this void exension is just plain broken. Try
#include <u.h>
#include <libc.h>
void foo; void bar;
main() { print("%p, %p\n", &foo, &bar);
It fails in the link stage for me.
I would've tried
struct PNOTIFY {
char nothingness[0];
};
as it more directly expresses the intent (at least to me) but
that doesn't work either.