Hello Jamey,<br><br>&gt;&gt; Why does your patch add an initWSA function to the Windows builds of<br>
&gt;&gt; XCB?<br><br>I thought I had taken care of this so that WSAStartup and WSACleanup are handled by the caller. Will look and see if I&#39;m not doing this. If you found this as part of the old patches then that&#39;s obsolete work and if I&#39;m not mistaken the code in github shouldn&#39;t have this.<br>
<br>&gt;&gt; It&#39;s a small thing, but please be careful about matching the code<br>
&gt;&gt; style of the rest of XCB&#39;s source.<br><br>Probably my bad :) will work this out in my next update.<br><br>&gt;&gt; We don&#39;t printf in libxcb, or if we do it&#39;s a mistake.<br><br>Aargh I thought I&#39;d got rid of this too. Need to review my code :) Will take it off if it&#39;s still there.<br>
<br>&gt;&gt; One way you can cut that down<br>
&gt;&gt; some is that I think we can replace read and write with recv and send<br>&gt;&gt; on Unix systems just as well as you can on Windows. Then the major<br>
&gt;&gt; differences seem to be errno vs. WSAGetLastError(), and EWOULDBLOCK<br>&gt;&gt; vs. WSAEWOULDBLOCK.<br><br>Yup this should prevent duplication. <br>
<br>&gt;&gt; I&#39;d really like other folks to look them over, especially developers on other non-Linux platforms<br>
&gt;&gt; that we currently support.<br><br>I second that, would be nice hearing from other non-Linux platforms to see if this breaks anything out there.<br><br>&gt;&gt; Jeetu Tweeted an &quot;ack&quot; to this request and I replied with a promise to<br>

&gt;&gt; actually review it this time. :-)<br>
<font color="#888888"><br></font>:)...hopefully will have this sorted out soon....anyone else on this list on twitter??<br><br>Jeetu<br><a href="http://www.ebrain.in/" target="_blank">http://www.ebrain.in</a> 
<p style="margin: 0px; text-indent: 0px;">- An open (GPL) platform to discover and run software off someone in the meshed network pool and use it on your own device.</p><br>twitter:  @0topcat0 and @ebrainpool<br><br><div class="gmail_quote">
On Wed, Feb 24, 2010 at 1:32 PM, Jamey Sharp <span dir="ltr">&lt;<a href="mailto:jamey@minilop.net">jamey@minilop.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, Feb 23, 2010 at 1:27 AM, Barton C Massey &lt;<a href="mailto:bart@cs.pdx.edu">bart@cs.pdx.edu</a>&gt; wrote:<br>
&gt; ... I&#39;ll merge it myself [...] unless<br>
<div class="im">&gt; somebody speaks right up right now with a *really* good<br>
&gt; reason not to.<br>
<br>
</div>I do still want review on the changes. I&#39;d really like other folks to<br>
look them over, especially developers on other non-Linux platforms<br>
that we currently support.<br>
<br>
I&#39;ve gone ahead and reviewed the old patches a little, so I have some<br>
comments now... (Yes, apparently it&#39;s possible to shame me into doing<br>
patch review when I&#39;m doing badly at it.)<br>
<br>
Most importantly: There&#39;s nothing here that makes me think we can&#39;t<br>
support Windows in XCB. I have some issues with style and other<br>
details in places, but the fundamental changes are fine.<br>
<br>
Why does your patch add an initWSA function to the Windows builds of<br>
XCB? I thought it&#39;s the caller&#39;s responsibility to call WSAStartup and<br>
WSACleanup? I don&#39;t know how that&#39;s normally handled in Windows<br>
libraries, but at the least, the name &quot;initWSA&quot; doesn&#39;t fit XCB&#39;s<br>
public naming conventions. Or maybe you meant to put initWSA in<br>
xcbint.h rather than xcb.h, so applications can&#39;t call it?<br>
<br>
It&#39;s a small thing, but please be careful about matching the code<br>
style of the rest of XCB&#39;s source. github may be misleading me here,<br>
but the whitespace looks pretty inconsistent. Maybe github handles<br>
tabs poorly? But we don&#39;t use tabs for indentation in XCB anyway. (I<br>
would pick a different code style if I started again, but it hardly<br>
seems worth changing...)<br>
<br>
We don&#39;t printf in libxcb, or if we do it&#39;s a mistake. Someday<br>
_xcb_conn_shutdown will probably allow setting a more detailed error,<br>
but for now just drop the debugging printf calls.<br>
<br>
I&#39;d feel a lot better about merging this if it didn&#39;t involve<br>
copy/pasting some good-sized functions. One way you can cut that down<br>
some is that I think we can replace read and write with recv and send<br>
on Unix systems just as well as you can on Windows. Then the major<br>
differences seem to be errno vs. WSAGetLastError(), and EWOULDBLOCK<br>
vs. WSAEWOULDBLOCK.<br>
<br>
This work is clearly worth cleaning up and merging. I&#39;m sorry we<br>
haven&#39;t done it before now.<br>
<div class="im"><br>
&gt; Maybe you can bring the port up to date one more time?<br>
<br>
</div>Jeetu Tweeted an &quot;ack&quot; to this request and I replied with a promise to<br>
actually review it this time. :-)<br>
<font color="#888888"><br>
Jamey<br>
</font></blockquote></div><br>