C edit/format question [message #68915] |
Wed, 07 May 2003 01:40  |
Eclipse User |
|
|
|
Originally posted by: chris.javadisciple.com
I am editing some ten year old C source under Windows XP using Eclipse:
Version: 2.1.0
Build id: 200303272130
I opened up the C source and most of the functions are coded into the
one source along with the main() module. But the source diagram (the
cascading display) only shows the main() module and the one immediately
following it.
Is this "working as designed" and the source is supposed to be split up
into a whole bunch of files, or is this a bug with me or Eclipse?
--
Chris Rehm
chris@javadisciple.com
Thou shalt not avenge, nor bear any grudge against the children of thy
people, but shalt love thy neighbour as thyself. [Lev. 19:18]
|
|
|
|
|
Re: C edit/format question [message #69285 is a reply to message #69084] |
Thu, 08 May 2003 14:08  |
Eclipse User |
|
|
|
Its a deficiency in the parser for CDT right now.
Our parser only works for ANSI C/C++.
Once we get the build model hooked up we will be able to add different
parsers that can be set per-project should you be using non-ANSI code, like
K&R C.
"Pete Fischer" <pfischer@bbn.com> wrote in message
news:3EB976BD.D5819D21@bbn.com...
> I've seen the same problem and I believe this is a bug with Eclipse.
> Since your code is ten years old it probably uses the old fashioned
> function declaration format where the types of the input parameters are
> defined outside of the parentheses:
>
> void function_name(i, l)
> int i;
> long l;
> {
> /* function body */
> }
>
> I don't think that the Eclipse source parser knows how to interpret this
> so it gives up. If you changed this declaration to void
> function_name(int i, long l) { /* fb */} Eclipse could interpret it
> properly.
>
> Chris Rehm wrote:
> >
> > I am editing some ten year old C source under Windows XP using Eclipse:
> >
> > Version: 2.1.0
> > Build id: 200303272130
> >
> > I opened up the C source and most of the functions are coded into the
> > one source along with the main() module. But the source diagram (the
> > cascading display) only shows the main() module and the one immediately
> > following it.
> >
> > Is this "working as designed" and the source is supposed to be split up
> > into a whole bunch of files, or is this a bug with me or Eclipse?
> >
> > --
> > Chris Rehm
> > chris@javadisciple.com
> >
> > Thou shalt not avenge, nor bear any grudge against the children of thy
> > people, but shalt love thy neighbour as thyself. [Lev. 19:18]
|
|
|
Powered by
FUDForum. Page generated in 0.46700 seconds