Skip to content
Snippets Groups Projects
  • René Kijewski's avatar
    1b89f334
    msp430: provide oneway-malloc implicitly · 1b89f334
    René Kijewski authored
    For MSP430 boards oneway-malloc is already used *if* `malloc.h` was
    included. The problem is that `malloc.h` is not a standard header, even
    though it is common. `stdlib.h` in the right place to look for
    `malloc()` and friends.
    
    This change removes this discrepancy. `malloc()` is just named like
    that, without the leading underscore. The symbols now are weak, which
    means that they won't override library functions if MSP's standard
    library will provide these functions at some point. (Unlikely, since
    using `malloc()` on tiny systems is less then optimal ...)
    
    Closes #1061 and #863.
    1b89f334
    History
    msp430: provide oneway-malloc implicitly
    René Kijewski authored
    For MSP430 boards oneway-malloc is already used *if* `malloc.h` was
    included. The problem is that `malloc.h` is not a standard header, even
    though it is common. `stdlib.h` in the right place to look for
    `malloc()` and friends.
    
    This change removes this discrepancy. `malloc()` is just named like
    that, without the leading underscore. The symbols now are weak, which
    means that they won't override library functions if MSP's standard
    library will provide these functions at some point. (Unlikely, since
    using `malloc()` on tiny systems is less then optimal ...)
    
    Closes #1061 and #863.