<html><div style='background-color:'><DIV>
<P><BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>>From: Patrik Stridvall <PS@LEISSNER.SE>
<DIV></DIV>>To: "'dpaun@rogers.com'" <DPAUN@ROGERS.COM>, Francois Gouget <FGOUGET@FREE.FR>
<DIV></DIV>>CC: Wine Devel <WINE-DEVEL@WINEHQ.COM>
<DIV></DIV>>Subject: RE: winebuild & (name, heap, init)
<DIV></DIV>>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>>
<DIV></DIV>> > On September 11, 2002 05:48 am, Francois Gouget wrote:
<DIV></DIV>> > > Hmm, for strings the spec files currently distinguish between input
<DIV></DIV>> > > strings (str) and output strings (ptr). This cannot be
<DIV></DIV>> > extracted from
<DIV></DIV>> > > the source files... unless we start using IN/OUT macros everywhere?
<DIV></DIV>> >
<DIV></DIV>> > It's all in the types, dude...
<DIV></DIV>> >
<DIV></DIV>> > LPCSTR/LPCWSTR = IN, LPSTR/LPWSTR=IN/OUT.
<DIV></DIV>>
<DIV></DIV>>The is almost always correct. Unfortunately Microsoft is
<DIV></DIV>>not consequent in the regard, but then I guess that we could
<DIV></DIV>>modify the API slightly. If a WineLib application breaks,
<DIV></DIV>>it was in some meaning broken anyway.
<DIV></DIV>>
<DIV></DIV>>However how do know whether it is IN/OUT or OUT?
<DIV></DIV>>For debug messages that is quite important since
<DIV></DIV>>the pointer in the OUT case might point to
<DIV></DIV>>uninitialized memory which shouldn't be printed
<DIV></DIV>>in the debug output...
<DIV> </DIV>
<DIV>Were we distinguishing IN/OUT and OUT before in the spec file? How, if there are three</DIV>
<DIV>types (IN, IN/OUT, OUT) and only two type names (ptr, str)?</DIV>
<DIV> </DIV>
<DIV> - 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>