Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Sorry, still search question



cdt-dev-admin@xxxxxxxxxxx wrote on 11/09/2004 04:40:19 AM:

> John Camelon wrote:
> >Selection Search currently does not work for macro definitions/usage.
>
> John, thanks a lot for the clarification.
>
> But I have the very similar problem with functions too. I was sure that this
> is somehow connected...:-(
>
>    I have a text, for example:
>
> if (plrvw_FindPCI())
>    return(-1);
>
> 1. How can I jump to the plrvw_FindPCI() code(body), which resides in another
> file pci.c of this project? F3 (and all other search functions on right mouse
> button) returns error message in status line.


To date, most of the search focus has been on C++ projects. As such, search and F3 expects
for files to be included directly in order to arrive at the proper declaration. C style searches
is something that's being looked at post 2.1.

> 2. Is there any way to jump to the plrvw_FindPCI() prototype, which
> resides in
> plrvw.h file included?
>


Not currently.

> --
>
> > Hello, all.
> >    I run Eclipse 3.0.1 and CDT 2.0.2 on RH9/GTK.
> >    I have an ordinary C-project (Linux driver) with 3 files as a
> > managed build.
> > All indexing options are ON.
> >
> >    File myinclude.h contains:
> > #define RD_DE_REG      10
> >    File myc.c contains somewhere in the code:
> > f = open(Dev, RD_DE_REG);
> >
> >    If I put a cursor on RD_DE_REG and press F3 (open declaration), I
> > see search
> > panel for a while and then the text "the operation is unavailable for
> the
> > current selection" in the status bar appears in red.
> >    The same result is for Gtrl-G.
> >    If I do Ctrl-H and ask to search for RD_DE_REG in the workspace for
> all
> > occurrences in C/C++ tab, I receive only one reference to the
> myinclude.h
> > file.
> >    The behavior is the same with function declarations/usage.
> >
> >    The thing seem to be very basic, therefore I am sure I missed
> > something very
> > basic too.
> >
> >    I shall be very thankful for any help...
> >
> > --
> > Leon Pollak
> > leonp at plris dot com
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cdt-dev

Back to the top