hit9 / bitproto

The bit level data interchange format for serializing data structures (long term maintenance).
https://bitproto.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
127 stars 16 forks source link

bitproto.c compilation errors using TI's CCS. #55

Open tiborkiss opened 9 months ago

tiborkiss commented 9 months ago

I made a simple library project in Code Composer Studio (v12.4) using the default TI toolchain. Unfortunately bitproto.c (v1.1.1) does not compile, with the following errors:

"../src/bitproto.c", line 50: error #29: expected an expression
"../src/bitproto.c", line 50: error #20: identifier "k" is undefined
"../src/bitproto.c", line 155: error #29: expected an expression
"../src/bitproto.c", line 155: error #20: identifier "k" is undefined
"../src/bitproto.c", line 165: error #29: expected an expression
"../src/bitproto.c", line 165: error #20: identifier "k" is undefined
"../src/bitproto.c", line 402: remark #1532-D: (ULP 5.3) Detected vsprintf() operation(s). Recommend moving them to RAM during run time or not using as these are processing/power intensive
"../src/bitproto.c", line 402: remark #2553-D: (ULP 14.1) Array index (involving "ctx") of type "int". Recommend using "unsigned int"
"../src/bitproto.c", line 414: error #29: expected an expression
"../src/bitproto.c", line 414: error #20: identifier "k" is undefined
"../src/bitproto.c", line 527: error #29: expected an expression
"../src/bitproto.c", line 527: error #20: identifier "k" is undefined
10 errors detected in the compilation of "../src/bitproto.c".

The BpMessageDescriptor structure defiined as a macro, doesn't seems to work with this compiler.