<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: 4.6 &#8212; Typedefs</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/46-typedefs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/46-typedefs/</link>
	<description></description>
	<pubDate>Wed, 20 Aug 2008 08:38:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Learn C++ - &#187; 4.5 &#8212; Enumerated types</title>
		<link>http://www.learncpp.com/cpp-tutorial/46-typedefs/#comment-13461</link>
		<dc:creator>Learn C++ - &#187; 4.5 &#8212; Enumerated types</dc:creator>
		<pubDate>Tue, 29 Apr 2008 04:43:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/46-typedefs/#comment-13461</guid>
		<description>[...] 2007      Prev/Next Posts   &#171; 4.4 &#8212; Type conversion and casting &#124; Home &#124; 4.6 &#8212; Typedefs &#187;     Tuesday, June 19th, 2007 at 8:24 [...]</description>
		<content:encoded><![CDATA[<p>[...] 2007      Prev/Next Posts   &laquo; 4.4 &#8212; Type conversion and casting | Home | 4.6 &#8212; Typedefs &raquo;     Tuesday, June 19th, 2007 at 8:24 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: billerr</title>
		<link>http://www.learncpp.com/cpp-tutorial/46-typedefs/#comment-4853</link>
		<dc:creator>billerr</dc:creator>
		<pubDate>Sun, 23 Dec 2007 19:24:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/46-typedefs/#comment-4853</guid>
		<description>Shouldn't the following:

&lt;code&gt;
#ifdef INT_2_BYTES
typedef int8 char;
typedef int16 int;
typedef int32 long;
#else
typedef int8 char;
typedef int16 short;
typedef int32 int;
#endif&lt;/code&gt;

be like this:

&lt;code&gt;
#ifdef INT_2_BYTES
typedef char int8;
typedef int int16;
typedef long int32;
#else
typedef char int8;
typedef short int16;
typedef int int32;
#endif&lt;/code&gt;

Aren't int8, int16, int32 arbitrary types to use instead of char, short, int, long?

[ Yes.  The typedef declaration is defined as: &lt;code&gt;typedef type-declaration synonym;&lt;/code&gt; so you are correct.  I fixed the example. -Alex ]</description>
		<content:encoded><![CDATA[<p>Shouldn&#8217;t the following:</p>
<p><code><br />
#ifdef INT_2_BYTES<br />
typedef int8 char;<br />
typedef int16 int;<br />
typedef int32 long;<br />
#else<br />
typedef int8 char;<br />
typedef int16 short;<br />
typedef int32 int;<br />
#endif</code></p>
<p>be like this:</p>
<p><code><br />
#ifdef INT_2_BYTES<br />
typedef char int8;<br />
typedef int int16;<br />
typedef long int32;<br />
#else<br />
typedef char int8;<br />
typedef short int16;<br />
typedef int int32;<br />
#endif</code></p>
<p>Aren&#8217;t int8, int16, int32 arbitrary types to use instead of char, short, int, long?</p>
<p>[ Yes.  The typedef declaration is defined as: <code>typedef type-declaration synonym;</code> so you are correct.  I fixed the example. -Alex ]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
