Re: Complier warnings on mingw gcc 4.5.0

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Complier warnings on mingw gcc 4.5.0
Дата
Msg-id 11237.1292446323@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Complier warnings on mingw gcc 4.5.0  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: Complier warnings on mingw gcc 4.5.0  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> And here is where it changed: 
> <http://sourceforge.net/project/shownotes.php?release_id=24832>

>     * A replacement implementation for the getopt() family of functions,
>        adding support for the GNU getopt_long_only() function.  Users
>        should note that this intentionally *removes* support for the BSD
>        or Mac OS-X specific, and non-standard, `optreset' global variable;
>        to reset the getopt() scanner, use `optind = 0;' instead of relying
>        on this non-standard, non-portable and now-unsupported feature.

Great.  So instead of a nonstandard but pretty portable API, they
decided on a nonstandard interpretation of optind ... which absolutely
will not work for our usage, because we need to be able to tell getopt
to skip over --single, even if we were willing to figure out whether
getopt behaves this way or the more usual way.  Dolts.

While I don't mind forcing use of our getopt() on mingw, I'm a mite
concerned by the idea that this might represent an upstream change we'll
soon see elsewhere, rather than just mingw-specific brain damage.
Anybody know?
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: BufFreelistLock
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Complier warnings on mingw gcc 4.5.0