<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>bit_8</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/21232/bit_8</link><description> 
Hi, I searched source code for 89S53 and found the followind
strange declaration: 

 
bit_8 month=1;
 

 
What is &amp;quot;bit_8&amp;quot;? Is it int or char type? I compiled it with no
error in Keil. But it does not mention in Keil&amp;#39;s help file. Anyone
know? 

 
Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: bit_8</title><link>https://community.arm.com/thread/134926?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2007 12:23:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:40a40779-5f13-43a1-9e2b-abce5ff4e6a3</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;In header file, typedef is used to defined bit_8.&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Yes, that is one of the key uses of header files in &amp;#39;C&amp;#39;
programming!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bit_8</title><link>https://community.arm.com/thread/123667?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2007 09:46:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5dcef9df-4352-4752-852d-dd1025d86830</guid><dc:creator>pak p</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Eric and Andy,&lt;/p&gt;

&lt;p&gt;
Thank for helping me. Actually, my code is from &lt;a href="http://chaokhun.kmitl.ac.th/~kswichit/Ajay/clock.html."&gt;chaokhun.kmitl.ac.th/.../clock.html.&lt;/a&gt;
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.&lt;/p&gt;

&lt;p&gt;
Thanks a lot,&lt;br /&gt;
pak&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bit_8</title><link>https://community.arm.com/thread/112650?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2007 15:20:45 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:61898298-220b-448c-9912-c6588f7db70b</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;typically, such inquiries comes from those that have &amp;#39;half of
the code&amp;#39;&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;Not sure what you mean by that?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;He said it compiled without error, so he must have at least
sufficient of the code to include all the necessary
definitions.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Reread the OP, yes he is not &amp;#39;typical&amp;#39; in this respect. However,
it has been seen many times that the &amp;#39;typical&amp;#39; I mentioned above was
the case.&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bit_8</title><link>https://community.arm.com/thread/98907?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2007 15:16:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2be79ef3-53c6-4843-99ee-4a8548b2f575</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;typically, such inquiries comes from those that have &amp;#39;half of
the code&amp;#39;&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Not sure what you mean by that?&lt;/p&gt;

&lt;p&gt;
He said it compiled without error, so he must have at least
sufficient of the code to include all the necessary definitions.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bit_8</title><link>https://community.arm.com/thread/88177?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2007 11:54:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:83b00c1e-cb97-434c-bfa6-a142eb57e40c</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;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!&lt;/i&gt;&lt;br /&gt;
That may be, but, typically, such inquiries comes from those that
have &amp;quot;half of the code&amp;quot;.&lt;/p&gt;

&lt;p&gt;
Of course if the OP has everything, your response is valid.&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bit_8</title><link>https://community.arm.com/thread/47784?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2007 11:48:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f7831730-69a0-4d76-8eb2-4af93c9f3b3a</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;What is &amp;#39;bit_8&amp;#39;? Is it int or char type? ... it does not
mention in Keil&amp;#39;s help file.&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
As Erik says, this has absolutely nothing whatsoever to do with
Keil.&lt;/p&gt;

&lt;p&gt;
As well as being a &lt;b&gt;#define&lt;/b&gt; it could be a
&lt;b&gt;typedef&lt;/b&gt;.&lt;/p&gt;

&lt;p&gt;
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!&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/support/man/docs/uv3/uv3_ut_sourcebrowser.htm"&gt;http://www.keil.com/support/man/docs/uv3/uv3_ut_sourcebrowser.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/support/man/docs/uv3/uv3_dg_filefind.htm"&gt;http://www.keil.com/support/man/docs/uv3/uv3_dg_filefind.htm&lt;/a&gt;&lt;br /&gt;

&lt;a href="http://www.keil.com/support/man/docs/uv3/uv3_ui_edit.htm"&gt;http://www.keil.com/support/man/docs/uv3/uv3_ui_edit.htm&lt;/a&gt;&lt;br /&gt;

&lt;a href="http://www.keil.com/support/man/docs/uv3/uv3_ut_findinfiles.htm"&gt;http://www.keil.com/support/man/docs/uv3/uv3_ut_findinfiles.htm&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bit_8</title><link>https://community.arm.com/thread/50449?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2007 10:04:46 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5620db4e-b54e-456d-8b1e-f3b8e37bf3a9</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;I searched source code for 89S53 and found the followind
strange declaration:&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;bit_8 month=1;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;What is &amp;quot;bit_8&amp;quot;? Is it int or char type?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
That would be revealed in some (probably) .h file in the same
project.&lt;/p&gt;

&lt;p&gt;
anyone can used any #define (here bit_8) to &amp;quot;shorten&amp;quot; the K&amp;amp;R
types, what Joes chx means is not necessarily the same as what Bills
chx means, you need to ask Joe or Bill.&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>