[bug#8081] new style function syntax

Geoff Clare gwc at opengroup.org
Tue Sep 5 18:32:04 EEST 2006


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.

-- 
Geoff Clare <g.clare at opengroup.org>
The Open Group, Thames Tower, Station Road, Reading, RG1 1LX, England



More information about the xorg-test mailing list