Giter VIP home page Giter VIP logo

Comments (11)

shevek avatar shevek commented on August 25, 2024

If you can make up a test case, I'm ready to fix this.

from jcpp.

iserikov avatar iserikov commented on August 25, 2024

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.

shevek avatar shevek commented on August 25, 2024

I think github discarded email attachments in the issue reply, but I'll see if I can construct some.

from jcpp.

iserikov avatar iserikov commented on August 25, 2024

#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.

shevek avatar shevek commented on August 25, 2024

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.

shevek avatar shevek commented on August 25, 2024

Just to confirm, you are on at least Java 1.7?

from jcpp.

shevek avatar shevek commented on August 25, 2024

There's an absolute path patch in #7 too

from jcpp.

shevek avatar shevek commented on August 25, 2024

@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.

iserikov avatar iserikov commented on August 25, 2024

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.

shevek avatar shevek commented on August 25, 2024

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.

iserikov avatar iserikov commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.