String constification
Francois Gouget
fgouget at free.fr
Mon Apr 26 16:50:46 CDT 2004
On Mon, 26 Apr 2004, Alexandre Julliard wrote:
[...]
> The first case is not a const pointer, it's a pointer to a const
> string, and it requires the compiler to allocate separate (writable)
> storage for the pointer, so you are wasting 4 bytes per string. You
> could use 'const char * const' to at least put the 4 bytes in
> read-only storage, but unless there's a real need for a separate
> pointer, using the buffer form is much preferable.
Makes sense. No problem, I'll resubmit.
--
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
$live{free} || die "";
More information about the wine-devel
mailing list