extern + static issue in datetime.c

From: "Zeugswetter Andreas SB SD" <ZeugswetterA(at)spardat(dot)at>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: extern + static issue in datetime.c
Date: 2001-08-27 08:42:40
Message-ID: 46C15C39FEB2C44BA555E356FBCD6FA41EB37F@m0114.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Current sources don't compile on AIX with xlc compiler because of the
combined (and inconsistent ? or compiler bug) use of extern and static
for the datetktbl in datetime.c.

header unconditionally has:
extern datetkn datetktbl[];

source has:
static datetkn datetktbl[] = {

The usual approach would be to avoid that line in the header if included

from datetime.c, but I think it would be better to use a const in this
case.

I think this is a general compatibility problem, and thus needs to be
solved.

Andreas

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Bartunov 2001-08-27 11:24:04 GiST vacation
Previous Message Karel Zak 2001-08-27 07:54:50 Re: [PATCHES] Re: Re: nocreatetable for 7.1.2 [patch]