Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: ANSI + ProC ???

Re: ANSI + ProC ???

From: Ragun Chandra <ragun_at_grfn.org>
Date: 1997/06/25
Message-ID: <Pine.GSO.3.95.970625165738.12906C-100000@freenet.grfn.org>#1/1

On 25 Jun 1997, Bill Jones wrote:

>
>
> Stephan Wilms <Stephan.Wilms_at_CWA.de> wrote in article
> <33B10C24.2437_at_CWA.de>...
> > Bas Ven wrote:
> > >
> > > typedef struct {
> > > int i;
> > > int b;
> > > } Test, *pTest;
> > >
> > > the ProC compiler can't handle it and complains about the
> > > comma between Test and *pTest. I always thought this kind
> > > of declaration is/was valid (ansi) C.
> > > I hope someone can tell me that this either is not valid
> > > (ansi) C or that ProC is f*cked.
> >
> > It is legal ANSI-C and your compiler does appear to be f*cked.
>
> I tried that code using the Oracle 2.1.3 Pro*C precompiler, and it worked
> fine. I suspect that a precompiler and/or compiler switch might not be set
> correctly in the makefile.
>
>
> --
> --
> Bill Jones e-mail addresses:
> Computer Sciences Corp. (work) wjones14_at_csc.com
> Norwich, Connecticut (play) billj_at_mindport.net
> (860) 437-5650 WWW: http://www.mindport.net/~billj
>
>
>

Hi,

Gennerally typedef are coded as

typedef struct test {

        int a;
        int b;

} TEST; then define ur variable as struct of type by

   TEST test1, *testp;

or u cane define as

struct test {

       int a;
       int b;

} Test, *Testp;

Hope this helps u

Regards
Ragu Received on Wed Jun 25 1997 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US