Giter VIP home page Giter VIP logo

Comments (8)

sn00pster avatar sn00pster commented on May 19, 2024

This is also a problem (but easy enough to fix):

const lfs_block_t tpair[2] = {pair[0], pair[1]};

if (lfs_paircmp(oldpair, (const lfs_block_t[2]){0, 1}) == 0) {

from littlefs.

geky avatar geky commented on May 19, 2024

Related #39

Out of curiousity what is creating the requirement for C89?

from littlefs.

sn00pster avatar sn00pster commented on May 19, 2024

The compiler I’m using doesn’t support c99!

I completed most of the changes, I know it’s down to coding styles but some of the places you’ve used named initialisers actually creates more lines of code than not using them!

Once I’ve completed my changes, I’ll clone to the repo and copy my files over the top and go through the git changes to make sure I didn’t mess anything up.

happy to send back across, I saw somebody else having issues with c89.

i’ll Admit that on new projects I’m using a different build system, so c99 isn’t a problem and I do use it, but I think littlefs is such an important project that comparability across as many platforms is a desirable feature.

from littlefs.

geky avatar geky commented on May 19, 2024

I'm just curious which compiler it is.

But no, you're right (and @kgillespieatmosphere). It'd be a shame if other had to duplicate your efforts.

I'd be happy to host a c89 version, but I would prefer to treat it as a port to a different language.

If you have changes that compile in c89, feel free to create a pr. I'm thinking I'll create it's own repo and link to it from the README.

from littlefs.

sn00pster avatar sn00pster commented on May 19, 2024

Huh, after I'd finished making the last change I realised there was a compiler option to turn on c99 compatibility!

Hangs head.....

from littlefs.

geky avatar geky commented on May 19, 2024

Haha, well that's an easy solution.

Offer still stands to create a branch for C89 if anyone wants to create a pr for it.

from littlefs.

sn00pster avatar sn00pster commented on May 19, 2024

@geky I'm happy to close this one, I agree it's a non-issue and keeping up to date between a C89 and C99 variant would be a waste of time and effort.

from littlefs.

geky avatar geky commented on May 19, 2024

Thanks! Sorry there's a lot of lingering open issues. I need to go through all of them but haven't had a good chance to yet.

from littlefs.

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.