This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: Add wrappers for ExitProcess, TerminateProcess
Charles Wilson wrote:
> Dave Korn wrote:
>> As to the actual patch itself, it looks sane (just reading it by eye, I
>> haven't tested it), and the design motivation seems reasonable.
> [snip]
>> File-local extern declarations are pure evil, let alone function-local ones.
>> Why not fix this badness while you're touching it anyway?
>
> 'Cause I figured cgf did that for reasons beyond my ken. What do you
> suggest, moving the definition to globals.cc and the declaration(s) to
> winsup.h?
Wouldn't see any need to move the declaration any; just think that there
should be one unique extern declaration and it should be in a common header
that can be #included both where the var is declared and where it is referenced.
cheers,
DaveK