bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: paste uses "FILE", not "FILE *"


From: Paul Jarc
Subject: Re: paste uses "FILE", not "FILE *"
Date: Fri, 27 Aug 2004 10:08:10 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

Felix von Leitner <address@hidden> wrote:
> Proposed fix (in paste.c):
>
>   static char dummy_closed;
>   static char dummy_endlist;
>   #define CLOSED ((FILE*)&dummy_closed)
>   #define ENDLIST ((FILE*)&dummy_endlist)

The C standard allows undefined behavior for such casts, since the
dummy variables need not be aligned the way a FILE must be aligned.
Better to use a separate flag variable.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]