This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: not in ram update


> > 
> > > Here's the updated patch with error on implementing the interface.
> > > 
> > 
> > The attached patch fixes parse error which is caused by the update.
> 
> Im guessing you are using gcc 2.x? With gcc 3.x this compiles
> fine. The problem is with typedefs and variable declarations not being
> at the beginning of the functions. gcc 3 allows that, but gcc 2 does
> not.

Oh, I see.

> 
> I've actually solved the problem a different way. I don't like
> starting new levels of {} unless needed. I think it makes the code
> look messy. Here is my patch. Please let me know if it does not work
> with gcc 2.
> 

I compiled your patch with gcc 2.95.3 successfully . It looks good.

Motoya Kurotsu
Allied Telesis K.K.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]