Skip site navigation (1) Skip section navigation (2)

Isn't strdup.h useless code?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Isn't strdup.h useless code?
Date: 2006-09-26 22:27:09
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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

extern char *strdup(char const *);

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

			regards, tom lane

pgsql-hackers by date

Next:From: Josh BerkusDate: 2006-09-27 00:11:06
Subject: Re: horo(r)logy test fail on solaris (again and solved)
Previous:From: Tom LaneDate: 2006-09-26 21:53:28
Subject: Re: -HEAD planner issue wrt hash_joins on dbt3 ?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group