[bug#8081] new style function syntax

Jin, Gordon gordon.jin at intel.com
Wed Sep 6 06:17:30 EEST 2006


Geoff Clare wrote:
> Jin, Gordon <gordon.jin at intel.com> wrote, on 05 Sep 2006:
>> 
>> Hi all,
>> 
>> I'm not understanding why old style function declaration syntax [e.g.
>> int check_dec();] supercedes new style function declaration syntax
>> [e.g. int check_dec(long, long, char*);] in some cases.
>> 
>> At least, XtTestProto.h on Linux has this issue, resulting in 3 Xt
>> cases fail on x86-64 due to the implicit type.
>> 
>> I've opened bug#8081 and submited patch:
>> https://bugs.freedesktop.org/show_bug.cgi?id=8081
>> 
>> Comments welcome.
> 
> Rather than add -DMIXOLDANDNEW to the configuration, I would be
> inclined to change XtTestProto.h either to make it use the same
> mechanism as Vlib.h to decide whether to use prototypes, or just
> to delete the old declarations and always use the prototypes.

Thanks for your comments.
If no one provides reason to hold the old declarations, I'm going to
delete them.

-Gordon



More information about the xorg-test mailing list