WININET: make WCHAR strings const where possible

Shachar Shemesh wine-devel at shemesh.biz
Tue Apr 13 15:40:00 CDT 2004


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.

             Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting
http://www.lingnu.com/




More information about the wine-devel mailing list