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

Relative include paths are not handled correctly #3

Open
minexew opened this issue Dec 12, 2017 · 0 comments
Open

Relative include paths are not handled correctly #3

minexew opened this issue Dec 12, 2017 · 0 comments

Comments

@minexew
Copy link

minexew commented Dec 12, 2017

Example 1:

main.js:

pp.run(contentsOf('main.c'), 'main.c')

main.c:

#include "subdir/a.h"

subdir/a.h:

#include "b.h"  <---- attempts to access incorrect path;
                      include_func doesn't have enough context to resolve this on its own either

subdir/b.h:

(empty)

Example 2:

main.js:

pp.run(contentsOf('subdir/main.c'), 'subdir/main.c')

subdir/main.c:

#include "a.h"  <---- attempts to access incorrect path;
                      include_func doesn't have enough context to resolve this on its own either

subdir/a.h:

(empty)
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

1 participant