Subject: Re: long long vs. -ansi...
To: Mike Long <firstname.lastname@example.org>
From: Christos Zoulas <email@example.com>
Date: 04/08/1997 11:45:55
On Apr 8, 11:41am, firstname.lastname@example.org (Mike Long) wrote:
-- Subject: Re: long long vs. -ansi...
| I know it's gross, but would it work to declare signal handlers like
| void (*handler) __P((int, ...));
| You'd lose typechecking on all arguments after the first, but it does
| express all of the variants in a minimal way.
Actually it makes things worse because a varyadic function will never
match a non varyadic one:
void (*a)(int, ...);
a = foo;
% gcc foo.c
foo.c: In function `main':
foo.c:7: warning: assignment from incompatible pointer type
% cc foo.c
"foo.c", line 7: warning: assignment type mismatch:
pointer to function(int, ...) returning void "=" pointer to function(int) returning void