#58 replacing a typedef use by its definition is not changing a

open-postponed
5
2010-07-25
2010-06-16
No

If you are using a pointer as a
parameter to a parameterized interface, i.e. Get, then an uint16_t* is
turned into an unsigned short* when generating the stubs. This will
cause a warning on the atmel tool chain, but compiles fine for the
msp430. A simple test case is attached.

Discussion

  • Miklos Maroti

    Miklos Maroti - 2010-06-16

    test case

     
  • David Gay

    David Gay - 2010-07-25

    I'll note that this in some sense a bug in the Atmel tool chain (a typedef and its replacement *are* supposed to be equivalent).

    Btw, this is not specific to parameterised interfaces, but applies to any interface returning a pointer to a typedef (the typedef will be expanded to its definition).

    This is fixable, but I'm wary that the change would break some programs so I'll do it later (post 1.3.2)

     
  • David Gay

    David Gay - 2010-07-25
    • status: open --> open-postponed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks