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: 919.1159309629@sss.pgh.pa.us (view raw or flat)
Thread:
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

#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 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-2014 The PostgreSQL Global Development Group