typedef FileName not const? - Mailing list pgsql-hackers

From Mark Dilger
Subject typedef FileName not const?
Date
Msg-id 89ED0398-D022-4DED-82EF-E0A9D4DA9B7E@gmail.com
Whole thread Raw
Responses Re: typedef FileName not const?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Friends,

along the lines of other similar emails from me of late,
I tried to avoid casting away const when using the FileName
typedef.  There are several calls where a (const char *) has to
be cast to (char *) due to FileName being typedef'd as
non-const.  But changing the typedef to const doesn't seem to
conflict with any code in the source tree.

Since this may be seen as an external API change, I kept
these changes in their own patch submission, so that it can
be rejected separately if need be.

Mark Dilger


Attachment

pgsql-hackers by date:

Previous
From: Mark Dilger
Date:
Subject: casting away const in comparators
Next
From: Andres Freund
Date:
Subject: Re: typedef FileName not const?