WININET: make WCHAR strings const where possible
Michael Stefaniuc
mstefani at redhat.de
Tue Apr 13 16:15:20 CDT 2004
On Tue, Apr 13, 2004 at 11:40:00PM +0300, Shachar Shemesh wrote:
> Francois Gouget wrote:
> >On Tue, 13 Apr 2004, Mike McCormack wrote:
> >>Perhaps we should make a janitorial task to CONST-ify strings where
> >>possible?
> >In some places the Unicode strings that are declared *inside functions*
> >are declared both static and const. Is the static necessary in that
> >context?
> The static is even more necessary in that context. Outside of functions,
> all static does is limit the scope. Inside functions, static prevents
> the var from taking stack space.
Afaik, if it's const it should be somewhere in the .bss and therefor it
shouldn't be allocated on the stack on function entry.
bye
michael
--
Michael Stefaniuc Tel.: +49-711-96437-199
System Administration Fax.: +49-711-96437-111
Red Hat GmbH Email: mstefani at redhat.com
Hauptstaetterstr. 58 http://www.redhat.de/
D-70178 Stuttgart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20040413/48ba1565/attachment.pgp
More information about the wine-devel
mailing list