Re: Fw: Case Insensitive Test - Mailing list pgsql-admin

From Stephan Szabo
Subject Re: Fw: Case Insensitive Test
Date
Msg-id 20030925222934.F96784@megazone.bigpanda.com
Whole thread Raw
In response to Re: Fw: Case Insensitive Test  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Fw: Case Insensitive Test  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
On Fri, 26 Sep 2003, Tom Lane wrote:

> "Chad R. Larson" <chad@eldocomp.com> writes:
> > I suspect that among the conformance switches, you can find a combination
> > you like:
>
> I've been through them.  None of 'em turn off // comments.  Or #-sign

On at least some versions of gcc it looks like --std=c89 turns them off
(my system's 3.2 does and so does another's 2.95.4)

I used the little program:
#include <stdio.h>

int main() {
 int a1 = 5 //*2*/
  +3;
 printf("%d\n", a1);
}

Without the option, 8 is printed, with it 1 is printed.

We don't appear to compile with the option on my system however. It looks
like differences between the includes in test programs in configure and
when actually building cause errors. In my case struct addrinfo isn't
found in configure, but it is found when actually building (due indirectly
to an include of stdio.h) causing redefinition errors.

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Fw: Case Insensitive Test
Next
From: Tom Lane
Date:
Subject: Re: Fw: Case Insensitive Test