<html><div style='background-color:'><DIV>
<P><BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: Patrik Stridvall <PS@LEISSNER.SE>
<DIV></DIV>&gt;To: "'dpaun@rogers.com'" <DPAUN@ROGERS.COM>, Francois Gouget <FGOUGET@FREE.FR>
<DIV></DIV>&gt;CC: Wine Devel <WINE-DEVEL@WINEHQ.COM>
<DIV></DIV>&gt;Subject: RE: winebuild &amp; (name, heap, init) 
<DIV></DIV>&gt;Date: Wed, 11 Sep 2002 16:23:25 +0200 
<DIV></DIV><mailto:wine-devel-request@winehq.com?subject=help><mailto:wine-devel@winehq.com><mailto:wine-devel-request@winehq.com?subject=subscribe><mailto:wine-devel-request@winehq.com?subject=unsubscribe>&gt; 
<DIV></DIV>&gt; &gt; On September 11, 2002 05:48 am, Francois Gouget wrote: 
<DIV></DIV>&gt; &gt; &gt; Hmm, for strings the spec files currently distinguish between input 
<DIV></DIV>&gt; &gt; &gt; strings (str) and output strings (ptr). This cannot be 
<DIV></DIV>&gt; &gt; extracted from 
<DIV></DIV>&gt; &gt; &gt; the source files... unless we start using IN/OUT macros everywhere? 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; It's all in the types, dude... 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; LPCSTR/LPCWSTR = IN, LPSTR/LPWSTR=IN/OUT. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;The is almost always correct. Unfortunately Microsoft is 
<DIV></DIV>&gt;not consequent in the regard, but then I guess that we could 
<DIV></DIV>&gt;modify the API slightly. If a WineLib application breaks, 
<DIV></DIV>&gt;it was in some meaning broken anyway. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;However how do know whether it is IN/OUT or OUT? 
<DIV></DIV>&gt;For debug messages that is quite important since 
<DIV></DIV>&gt;the pointer in the OUT case might point to 
<DIV></DIV>&gt;uninitialized memory which shouldn't be printed 
<DIV></DIV>&gt;in the debug output... 
<DIV>&nbsp;</DIV>
<DIV>Were we distinguishing IN/OUT and OUT before in the spec file?&nbsp; How, if there are three</DIV>
<DIV>types (IN, IN/OUT, OUT) and only two type names (ptr, str)?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; - Jeff S</DIV></mailto:wine-devel-request@winehq.com?subject=unsubscribe></mailto:wine-devel-request@winehq.com?subject=subscribe></mailto:wine-devel@winehq.com></mailto:wine-devel-request@winehq.com?subject=help></div><br clear=all><hr>MSN Photos is the easiest way to share and print your photos: <a href='http://g.msn.com/1HM1ENUS/c156??PI=44364'>Click Here</a><br></html>