I declare a variable unsigned char bdata Kde in a.c.
[in file a.c] unsigned char bdata Kde;
[in file b.c] #include <stdio.h> ..... extern unsigned char bdata Kde; sbit testbit=Kde^1; void main(void) {......}
Sorry, but your coding convention document is marked "confidential".
Ignore it. It's not confidential, I'm just too lazy to remove it and reprint the PDF. Apologies.
I was able to use a search engine to find "gimpel software lint". While doing so, I saw a couple of interesting quotes: http://www.tldp.org/LDP/LG/issue51/pramode.html "Thou shalt run lint frequently and study its pronouncements with care, for verily its perception and judgment oft exceed thine." -Henry Spencer, "The Ten Commandments for C Programmers" http://www.lysator.liu.se/c/c-faq/c-13.html ...many modern compilers attempt to diagnose almost as many problems as a good lint does.
...many modern compilers attempt to diagnose almost as many problems as a good lint does. I use Gimpel Sofware's PC-lint and several (9) modern compilers. None of the compilers come close to catching what lint does!
if (count = 5) { count = 1; } if (1 == 1) { count = 2; }
if (count = 5)
if (1 == 1)
Thanks for everyone who replys any kind of answer for me. Cuthbert Kao