msvcrt: Make some data const.

oldstable
Dmitry Timoshkov 2006-12-14 22:47:24 +08:00 committed by Alexandre Julliard
parent 54aae98838
commit ffa84441c8
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ static MSVCRT__onexit_t *MSVCRT_atexit_table = NULL;
static int MSVCRT_atexit_table_size = 0; static int MSVCRT_atexit_table_size = 0;
static int MSVCRT_atexit_registered = 0; /* Points to free slot */ static int MSVCRT_atexit_registered = 0; /* Points to free slot */
static LPCSTR szMsgBoxTitle = "Wine C++ Runtime Library"; static const char szMsgBoxTitle[] = "Wine C++ Runtime Library";
extern int MSVCRT_app_type; extern int MSVCRT_app_type;
extern char *MSVCRT__pgmptr; extern char *MSVCRT__pgmptr;

View File

@ -65,7 +65,7 @@ extern unsigned char MSVCRT_mbctype[257];
/* Friendly country strings & iso codes for synonym support. /* Friendly country strings & iso codes for synonym support.
* Based on MS documentation for setlocale(). * Based on MS documentation for setlocale().
*/ */
static const char* _country_synonyms[] = static const char * const _country_synonyms[] =
{ {
"Hong Kong","HK", "Hong Kong","HK",
"Hong-Kong","HK", "Hong-Kong","HK",
@ -484,7 +484,7 @@ MSVCRT_wchar_t* CDECL MSVCRT__wsetlocale(int category, const MSVCRT_wchar_t* loc
*/ */
const char* CDECL _Getdays(void) const char* CDECL _Getdays(void)
{ {
static const char *MSVCRT_days = ":Sun:Sunday:Mon:Monday:Tue:Tuesday:Wed:" static const char MSVCRT_days[] = ":Sun:Sunday:Mon:Monday:Tue:Tuesday:Wed:"
"Wednesday:Thu:Thursday:Fri:Friday:Sat:Saturday"; "Wednesday:Thu:Thursday:Fri:Friday:Sat:Saturday";
/* FIXME: Use locale */ /* FIXME: Use locale */
TRACE("(void) semi-stub\n"); TRACE("(void) semi-stub\n");
@ -496,7 +496,7 @@ const char* CDECL _Getdays(void)
*/ */
const char* CDECL _Getmonths(void) const char* CDECL _Getmonths(void)
{ {
static const char *MSVCRT_months = ":Jan:January:Feb:February:Mar:March:Apr:" static const char MSVCRT_months[] = ":Jan:January:Feb:February:Mar:March:Apr:"
"April:May:May:Jun:June:Jul:July:Aug:August:Sep:September:Oct:" "April:May:May:Jun:June:Jul:July:Aug:August:Sep:September:Oct:"
"October:Nov:November:Dec:December"; "October:Nov:November:Dec:December";
/* FIXME: Use locale */ /* FIXME: Use locale */