Comments (11)
If you can make up a test case, I'm ready to fix this.
from jcpp.
Hi Shevek,
Run JCPP against the attached test.c on a Linux machine.
GCC handles it OK. JCPP does not.
Thank you for integrating the patch as I prefer to stick to the
mainline source.
Igor
On Tue, 30 Dec 2014 22:10:27 -0800
Shevek [email protected] wrote:
If you can make up a test case, I'm ready to fix this.
Reply to this email directly or view it on GitHub:
#21 (comment)
from jcpp.
I think github discarded email attachments in the issue reply, but I'll see if I can construct some.
from jcpp.
#include </usr/include/stdio.h>
int main (int argc, char * argv []) {
printf ("Hello world!\n");
return 0;
}
On Wed, 31 Dec 2014 15:24:27 -0800
Shevek [email protected] wrote:
I think github discarded email attachments in the issue reply, but
I'll see if I can construct some.
Reply to this email directly or view it on GitHub:
#21 (comment)
from jcpp.
I suspect the "correct" answer to this is to throw out jcpp's VFS implementation and use the new java.nio.file code.
from jcpp.
Just to confirm, you are on at least Java 1.7?
from jcpp.
There's an absolute path patch in #7 too
from jcpp.
@ochafik I'm looking at checking whether path is absolute at the top of include(String parent, int line, String name, boolean quoted, boolean next)
as if it's absolute, it doesn't matter whether it's quoted or anglebracketed.
from jcpp.
Hi Shevek,
Yes, I am on Java 1.7.
Please do not abandon the VFS interface. I really need it. And,
yes, you can place a check for absolute path to the top of your 1st
level "include" routine. This should go through VFS as well. You may add
something like isAbsolute().
Thanks,
Igor
On Wed, 31 Dec 2014 21:42:42 -0800
Shevek [email protected] wrote:
I suspect the "correct" answer to this is to throw out jcpp's VFS
implementation and use the new java.nio.file code.
Reply to this email directly or view it on GitHub:
#21 (comment)
from jcpp.
Will the java.nio.file code (which is a standard VFS interface in the JDK) suffice? Is it possible for you to implement your virtual filesystem using that? Then we can both use things like https://github.com/google/jimfs which is a set of filesystems based on that API.
from jcpp.
Hi Shevek,
That would work. The only requirement is that I should be able to
set the file system (as a FileSystem object) explicitly, similar to how
it is done now. Going through the schema based FS provider guessing, as
JVM normally does, would not work for me.
Thanks,
Igor
On Wed, 07 Jan 2015 00:06:16 -0800
Shevek [email protected] wrote:
Will the java.nio.file code (which is a standard VFS interface in the
JDK) suffice? Is it possible for you to implement your virtual
filesystem using that? Then we can both use things like
https://github.com/google/jimfs which is a set of filesystems based
on that API.
Reply to this email directly or view it on GitHub:
#21 (comment)
from jcpp.
Related Issues (20)
- NullPointerException when #endif is missing HOT 2
- 0x is not a legal hex constant
- Handle framework includes properly HOT 3
- Empty variadic arguments HOT 1
- ``, ## VA_ARGS'' should remove the comma, if the variadic argument is empty. HOT 5
- Whitespace used in token pasting HOT 5
- pragma() should use source_token() not token()
- Re-check multiline comment whitespace preservation HOT 1
- Line number mismatch after pop_source() HOT 1
- Fix unit test suite on windows
- Any tutorials on this project? HOT 5
- Stripping line comments HOT 1
- Support extension of preprocessor HOT 1
- ClassCastException with character constants in expressions HOT 1
- Please publish module names HOT 2
- skip empty LN with # instead of filling LN HOT 1
- Unable to run Main class via Gradle
- Link to coverage report on README.md is broken
- Main doesn't return nonzero exit code on failure. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jcpp.