there are compile errors in the following two function declaration. void CAN_SETTXBID(unsigned char node,unsigned char type); int CAN_SETFILTER(unsigned char node); they both have the following compile error: error C141: syntax error near '0' but there are no '0' in these two function declaration,so i can't figure out where the '0' come from,and how should i correct these codes?
Check your Font. In Keil's BadCode example, the 'O' and the zero appear identical just to pint out this type of error.
i have found the cause of this error. i have define node as 0 in one of my files using #define node 0 after i delete this define ,every thing is ok
You've just found one of many reasons behind the C traditions of making #defined constants UPPER_CASE --- it's a lot less likely that collisions like this will happen if you follow it.