atabac / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
0 stars 0 forks source link

Fix build break on platform/mbed #138

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
building for the mbed platform fails during the online compiler.  Need to fix 
errors so it builds cleanly.

Original issue reported on code.google.com by dwhall...@gmail.com on 18 Sep 2010 at 8:56

GoogleCodeExporter commented 9 years ago

Original comment by dwhall...@gmail.com on 19 Sep 2010 at 1:35

GoogleCodeExporter commented 9 years ago
r607
- Created native function pointer type, pPmNativeFxn_t, in pm.h
- Relocate "extern ...fxn_table[]..." from interp.c to pm.h (required for MBED 
compiler).
- Made pmImgCreator.py generate an array of function pointer types
- Fixed nesting of __PM_H__ and __cplusplus in pm.h
- Set HAVE_BYTEARRAY to False in mbed/pmfeatures.py to match original setting
- Created argument to exclude .zip files when making the .zip for mbed's 
on-line compiler
- Added cast for memchr() in src/lib/string.py in two places to fix error 
reported by mbed's compiler

Mbed's C++ compiler didn't like the syntax for the array of function pointers.  
The workaround is to create a typedef of a native function pointer and create 
an array of that type.

Can't create a regression test for this.  Tested by building for mbed, desktop 
an all other platforms I have a compiler for.  All platforms compiled.

Mainlined directly

Original comment by dwhall...@gmail.com on 20 Sep 2010 at 9:07