Giter Club home page Giter Club logo

Comments (5)

dekimir avatar dekimir commented on July 24, 2024

We could broaden our definition of whitespace, assuming there are no unexpected side-effects.

from spirv-tools.

dneto0 avatar dneto0 commented on July 24, 2024

Thanks for the bug report. Yes, we should handle this. The only tricky part is recognizing that \r\n advances only a single line forward, for line counting.

It's also nice to see someone using the fact that SPIRV-Tools is a C API. :-)

from spirv-tools.

httpdigest avatar httpdigest commented on July 24, 2024

Thanks for noting and for wanting to fix this! Yes, SPIRV-Tools as a library is a very useful tool to assemble spir-v at runtime!
The C fread() function btw. is horrible. :)
With a libc on linux it does not even convert CR+LF to LF but just treats "r" mode the same as "rb" mode. So it would currently not be possible to read assembly on Linux that was written on Windows (i.e. with CR+LF line endines). Not even with the "as" tool using fread() "r".
I'd definitely be in favor of handling different line breaks in the library itself.

from spirv-tools.

dekimir avatar dekimir commented on July 24, 2024

@httpdigest should be fixed now, please give it a whirl...

from spirv-tools.

httpdigest avatar httpdigest commented on July 24, 2024

Confirmed. Works fine! :) Thanks.

from spirv-tools.

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.