<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Code Reviewing: popt</title>
	<atom:link href="http://rusty.ozlabs.org/?feed=rss2&#038;p=55" rel="self" type="application/rss+xml" />
	<link>http://rusty.ozlabs.org/?p=55</link>
	<description>Stealing From Smart People</description>
	<lastBuildDate>Thu, 19 Aug 2010 18:12:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jeff Johnson</title>
		<link>http://rusty.ozlabs.org/?p=55&#038;cpage=1#comment-286</link>
		<dc:creator>Jeff Johnson</dc:creator>
		<pubDate>Mon, 21 Jun 2010 17:27:30 +0000</pubDate>
		<guid isPermaLink="false">http://rusty.ozlabs.org/?p=55#comment-286</guid>
		<description>And the ever so important missing mailing list name spelled out in ASCII
to avoid learning Yet Another Editor
    popt-devel at rpm5.org</description>
		<content:encoded><![CDATA[<p>And the ever so important missing mailing list name spelled out in ASCII<br />
to avoid learning Yet Another Editor<br />
    popt-devel at rpm5.org</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Johnson</title>
		<link>http://rusty.ozlabs.org/?p=55&#038;cpage=1#comment-285</link>
		<dc:creator>Jeff Johnson</dc:creator>
		<pubDate>Mon, 21 Jun 2010 17:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://rusty.ozlabs.org/?p=55#comment-285</guid>
		<description>gak, a typo: &quot;nudging&quot; the Yiddish for &quot;prodding&quot;
at least colloquially.</description>
		<content:encoded><![CDATA[<p>gak, a typo: &#8220;nudging&#8221; the Yiddish for &#8220;prodding&#8221;<br />
at least colloquially.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Johnson</title>
		<link>http://rusty.ozlabs.org/?p=55&#038;cpage=1#comment-284</link>
		<dc:creator>Jeff Johnson</dc:creator>
		<pubDate>Mon, 21 Jun 2010 17:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://rusty.ozlabs.org/?p=55#comment-284</guid>
		<description>I suppose I should leave a pointer to current active development
of POPT 2.0 that was largely initiated by this review and private
&quot;nuging&quot; from Rusty:

Feature requests and patches are most gratefully received at
    

The coding is already underway, perhaps 20% of the way to what *I*
want to see in POPT 2.0, will likely result in a release sometime this fall
(depending on my time &amp; energy).</description>
		<content:encoded><![CDATA[<p>I suppose I should leave a pointer to current active development<br />
of POPT 2.0 that was largely initiated by this review and private<br />
&#8220;nuging&#8221; from Rusty:</p>
<p>Feature requests and patches are most gratefully received at</p>
<p>The coding is already underway, perhaps 20% of the way to what *I*<br />
want to see in POPT 2.0, will likely result in a release sometime this fall<br />
(depending on my time &amp; energy).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rusty</title>
		<link>http://rusty.ozlabs.org/?p=55&#038;cpage=1#comment-197</link>
		<dc:creator>rusty</dc:creator>
		<pubDate>Mon, 29 Mar 2010 03:46:45 +0000</pubDate>
		<guid isPermaLink="false">http://rusty.ozlabs.org/?p=55#comment-197</guid>
		<description>alloca returns a chunk of memory of size &quot;sizeof(*done)&quot;; even though done is yet to be initialized, this declaration is valid C. memset&#039;s (little-used) return value is always the same as its first argument, ie. the return of alloca() in this case.  The vanilla alternative to &quot;poptDone done = memset(alloca(sizeof(*done)), 0, sizeof(*done));&quot; would use a real variable rather than alloca; which is certainly clearer to those who haven&#039;t seen this before.  But you can&#039;t zero it generically in a one-liner.</description>
		<content:encoded><![CDATA[<p>alloca returns a chunk of memory of size &#8220;sizeof(*done)&#8221;; even though done is yet to be initialized, this declaration is valid C. memset&#8217;s (little-used) return value is always the same as its first argument, ie. the return of alloca() in this case.  The vanilla alternative to &#8220;poptDone done = memset(alloca(sizeof(*done)), 0, sizeof(*done));&#8221; would use a real variable rather than alloca; which is certainly clearer to those who haven&#8217;t seen this before.  But you can&#8217;t zero it generically in a one-liner.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cnewbie</title>
		<link>http://rusty.ozlabs.org/?p=55&#038;cpage=1#comment-191</link>
		<dc:creator>cnewbie</dc:creator>
		<pubDate>Thu, 11 Mar 2010 21:32:28 +0000</pubDate>
		<guid isPermaLink="false">http://rusty.ozlabs.org/?p=55#comment-191</guid>
		<description>could you explain the trick on how the &#039;done&#039; struct is zeroing?  My first confusion is what I get when you dereference &#039;done&#039;, and then, second, wouldn&#039;t alloca() return a pointer to memory NOT the same as the &#039;done&#039; struct (which would have been allocated automatically on the stack prior to the alloca() call right?)?  You wouldn&#039;t be zeroing out the right memory?

thanks</description>
		<content:encoded><![CDATA[<p>could you explain the trick on how the &#8216;done&#8217; struct is zeroing?  My first confusion is what I get when you dereference &#8216;done&#8217;, and then, second, wouldn&#8217;t alloca() return a pointer to memory NOT the same as the &#8216;done&#8217; struct (which would have been allocated automatically on the stack prior to the alloca() call right?)?  You wouldn&#8217;t be zeroing out the right memory?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rusty</title>
		<link>http://rusty.ozlabs.org/?p=55&#038;cpage=1#comment-142</link>
		<dc:creator>rusty</dc:creator>
		<pubDate>Fri, 29 Jan 2010 05:08:31 +0000</pubDate>
		<guid isPermaLink="false">http://rusty.ozlabs.org/?p=55#comment-142</guid>
		<description>Yes, talloc would be a fair win IMHO.  Maybe that will provide the incentive to fork and rewrite? :)</description>
		<content:encoded><![CDATA[<p>Yes, talloc would be a fair win IMHO.  Maybe that will provide the incentive to fork and rewrite? :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Hards</title>
		<link>http://rusty.ozlabs.org/?p=55&#038;cpage=1#comment-140</link>
		<dc:creator>Brad Hards</dc:creator>
		<pubDate>Fri, 29 Jan 2010 00:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://rusty.ozlabs.org/?p=55#comment-140</guid>
		<description>Also used in openchange, and I find it quite easy to use. Unfortunately it is a bit easy to mis-use. I often find that valgrind tells me I&#039;ve forgotten to clean up something that is deep in the popt stuff.</description>
		<content:encoded><![CDATA[<p>Also used in openchange, and I find it quite easy to use. Unfortunately it is a bit easy to mis-use. I often find that valgrind tells me I&#8217;ve forgotten to clean up something that is deep in the popt stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benno Leslie</title>
		<link>http://rusty.ozlabs.org/?p=55&#038;cpage=1#comment-139</link>
		<dc:creator>Benno Leslie</dc:creator>
		<pubDate>Thu, 28 Jan 2010 21:12:43 +0000</pubDate>
		<guid isPermaLink="false">http://rusty.ozlabs.org/?p=55#comment-139</guid>
		<description>Cool code review. Look forward to seeing more!</description>
		<content:encoded><![CDATA[<p>Cool code review. Look forward to seeing more!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
