Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug ocide: browse to definition misses context #13

Open
GitMensch opened this issue Jun 5, 2018 · 0 comments
Open

Bug ocide: browse to definition misses context #13

GitMensch opened this issue Jun 5, 2018 · 0 comments

Comments

@GitMensch
Copy link

Within LADSoft/OrangeC#168 there are many sources in the project "libcob" which have variables defined in the function header. The same variable name is also defined in the file cobc/cobc.h which even belongs to a completely other project "cobc" - and this is used as current target for browse definition.

Example: libcob/fileio.c, cob_fd_file_open():

static int
cob_fd_file_open (cob_file *f, char *filename, const int mode, const int sharing)    // line 1252
{
        /// some stuff here

	if (access (filename, F_OK) && errno == ENOENT) {    // line 1272

browse to definition on filename in line 1272 should obviously jump to line 1252, but it jumps to the definition of the struct filename in cobc/cobc.h.

@LADSoft LADSoft closed this as completed Oct 29, 2020
@LADSoft LADSoft transferred this issue from LADSoft/OrangeC Nov 6, 2020
@LADSoft LADSoft reopened this Nov 6, 2020
@LADSoft LADSoft closed this as completed Nov 6, 2020
@LADSoft LADSoft reopened this Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants