Hi, I searched source code for 89S53 and found the followind strange declaration:
bit_8 month=1;
What is "bit_8"? Is it int or char type? I compiled it with no error in Keil. But it does not mention in Keil's help file. Anyone know?
Thanks, pak
uVision, like any other even half-decent IDE or code editor, has facilities to find the definitions of such things - you need to learn to use them! That may be, but, typically, such inquiries comes from those that have "half of the code".
Of course if the OP has everything, your response is valid.
Erik
"typically, such inquiries comes from those that have 'half of the code'"
Not sure what you mean by that?
He said it compiled without error, so he must have at least sufficient of the code to include all the necessary definitions.
Reread the OP, yes he is not 'typical' in this respect. However, it has been seen many times that the 'typical' I mentioned above was the case.
Hi Eric and Andy,
Thank for helping me. Actually, my code is from chaokhun.kmitl.ac.th/.../clock.html. As your advice, I look through the .c and .h files. Finally, I really made mistake not to look at header file. In header file, typedef is used to defined bit_8. Sorry for making trouble you.
Thanks a lot, pak
"In header file, typedef is used to defined bit_8."
Yes, that is one of the key uses of header files in 'C' programming!