Isn't strdup.h useless code?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Isn't strdup.h useless code?
Дата
Msg-id 919.1159309629@sss.pgh.pa.us
обсуждение исходный текст
Список pgsql-hackers
While looking around to see where to insert strlcpy(), I couldn't help
noticing that port/strdup.c has its very own header file,
include/strdup.h.  AFAICS this is utterly redundant given that we have

#ifndef HAVE_STRDUP
extern char *strdup(char const *);
#endif

in port.h.  Can anyone see a reason not to remove the extra header?
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: -HEAD planner issue wrt hash_joins on dbt3 ?
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: horo(r)logy test fail on solaris (again and solved)