Changeset 49151c07188045aa28d61fe7aa5b8ee1b57e85e6

Show
Ignore:
Timestamp:
03/03/05 09:34:15 (4 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1109838855 +0000
git-parent:

[75d3f2b6fb8b87b8597a2bfaf8269567e13e37b4]

git-author:
Gildas Bazin <gbazin@videolan.org> 1109838855 +0000
Message:

* modules/gui/wince: try to save up a bit on memory usage.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/wince/wince.cpp

    r08947dc r49151c0  
    7474} 
    7575#endif 
     76 
     77/* Global variables used by _TOMB() / _FROMB() */ 
     78wchar_t pwsz_mbtow_wince[2048]; 
     79char psz_wtomb_wince[2048]; 
    7680 
    7781/***************************************************************************** 
  • modules/gui/wince/wince.h

    r08947dc r49151c0  
    504504 *****************************************************************************/ 
    505505#ifdef UNICODE 
    506     static wchar_t pwsz_mbtow[2048]; 
    507     static char psz_wtomb[2048]; 
     506    extern wchar_t pwsz_mbtow_wince[2048]; 
     507    extern char psz_wtomb_wince[2048]; 
    508508    static inline wchar_t *_FROMMB( const char *psz_in ) 
    509509    { 
    510         mbstowcs( pwsz_mbtow, psz_in, 2048 ); 
    511         pwsz_mbtow[2048-1] = 0; 
    512         return pwsz_mbtow
     510        mbstowcs( pwsz_mbtow_wince, psz_in, 2048 ); 
     511        pwsz_mbtow_wince[2048-1] = 0; 
     512        return pwsz_mbtow_wince
    513513    } 
    514514    static inline char *_TOMB( const wchar_t *pwsz_in ) 
    515515    { 
    516         wcstombs( psz_wtomb, pwsz_in, 2048 ); 
    517         psz_wtomb[2048-1] = 0; 
    518         return psz_wtomb
     516        wcstombs( psz_wtomb_wince, pwsz_in, 2048 ); 
     517        psz_wtomb_wince[2048-1] = 0; 
     518        return psz_wtomb_wince
    519519    } 
    520520#else