GithubHelp home page GithubHelp logo

papahippo / abcmidi Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 2.37 MB

unofficial repsoitory for controlled quality improvements to the abcMIDI suite of (C) programs

Makefile 2.30% C 88.20% Shell 3.86% M4 0.10% Roff 4.68% C++ 0.87%

abcmidi's People

Watchers

 avatar  avatar

abcmidi's Issues

rogue &'s in stresspat.c

Use of & where no appropriate causes...

stresspat.c:518:5: warning: format ‘%s’ expects argument of type ‘char ’, but argument 3 has type ‘char ()[32]’

... and another similar at line 521

setting variable abcversion via %%abc-version 'comment-command' does not work.

compiler ouput... "parseabc.c:1771:3: warning: format ‘%s’ expects argument of type ‘char ’, but argument 3 has type ‘char ()[4]’" ... is quite right; abcversion NOT &abcversion represents the start address of the string.
Also there is no protection against an input string longer than 3 significant characters - except that it will usually cause a segmentation fault.

There is a case for moving this functionality to within the 'event_specific' function, but - this being the first change under the new way of working - there is also a case for a "softly softly" approach!

As far as I can find, this %%abc-version is not mentioned in the abcplus PDF documentation and this variable has no influence on the behaviour of abcmidi etc.

To be fixed within branch 'warnings'.

check for all-numeric value (e.g after V: command) always returns 0 (False)

The current code checks for a POINTER value between 0 and 9 whereas it should de-reference the pointer and check for a VALUE between '0' and '9'. This bug is actually reasonably harmless: it treats all V: commands arguments as arbitrary strings; the special case for numerics e.g. V:5 is never identified.

Nonetheless I have fixed this because presumably the special case handling of numerics has some value.

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.