ICU-6125 Reduce writable memory so that more of the data can be shared between processes.

X-SVN-Rev: 23178
This commit is contained in:
George Rhoten 2008-01-06 07:46:45 +00:00
parent 82b85fb45c
commit 627e666a35
3 changed files with 14 additions and 14 deletions

View File

@ -1,7 +1,7 @@
/* /*
****************************************************************************** ******************************************************************************
* *
* Copyright (C) 1999-2007, International Business Machines * Copyright (C) 1999-2008, International Business Machines
* Corporation and others. All Rights Reserved. * Corporation and others. All Rights Reserved.
* *
****************************************************************************** ******************************************************************************
@ -357,15 +357,15 @@ udata_setAppData(const char *packageName, const void *data, UErrorCode *err);
* @stable ICU 3.4 * @stable ICU 3.4
*/ */
typedef enum UDataFileAccess { typedef enum UDataFileAccess {
/** ICU does not access the file system for data loading. */ /** ICU looks for data in single files first, then in packages. (default) */
UDATA_NO_FILES, UDATA_FILES_FIRST,
/** ICU only loads data from packages, not from single files. */ /** ICU only loads data from packages, not from single files. */
UDATA_ONLY_PACKAGES, UDATA_ONLY_PACKAGES,
/** ICU loads data from packages first, and only from single files /** ICU loads data from packages first, and only from single files
if the data cannot be found in a package. */ if the data cannot be found in a package. */
UDATA_PACKAGES_FIRST, UDATA_PACKAGES_FIRST,
/** ICU looks for data in single files first, then in packages. (default) */ /** ICU does not access the file system for data loading. */
UDATA_FILES_FIRST, UDATA_NO_FILES,
/** An alias for the default access mode. */ /** An alias for the default access mode. */
UDATA_DEFAULT_ACCESS = UDATA_FILES_FIRST, UDATA_DEFAULT_ACCESS = UDATA_FILES_FIRST,
UDATA_FILE_ACCESS_COUNT UDATA_FILE_ACCESS_COUNT

View File

@ -1,7 +1,7 @@
/* /*
******************************************************************************* *******************************************************************************
* *
* Copyright (C) 2004-2007, International Business Machines * Copyright (C) 2004-2008, International Business Machines
* Corporation and others. All Rights Reserved. * Corporation and others. All Rights Reserved.
* *
******************************************************************************* *******************************************************************************
@ -1400,8 +1400,8 @@ struct UText {
* (public) Pointer to Dispatch table for accessing functions for this UText. * (public) Pointer to Dispatch table for accessing functions for this UText.
* @stable ICU 3.6 * @stable ICU 3.6
*/ */
UTextFuncs *pFuncs; const UTextFuncs *pFuncs;
/** /**
* (protected) Pointer to additional space requested by the * (protected) Pointer to additional space requested by the
* text provider during the utext_open operation. * text provider during the utext_open operation.

View File

@ -1,7 +1,7 @@
/* /*
******************************************************************************* *******************************************************************************
* *
* Copyright (C) 2005-2007, International Business Machines * Copyright (C) 2005-2008, International Business Machines
* Corporation and others. All Rights Reserved. * Corporation and others. All Rights Reserved.
* *
******************************************************************************* *******************************************************************************
@ -1583,7 +1583,7 @@ utf8TextClose(UText *ut) {
U_CDECL_END U_CDECL_END
static struct UTextFuncs utf8Funcs = static const struct UTextFuncs utf8Funcs =
{ {
sizeof(UTextFuncs), sizeof(UTextFuncs),
0, 0, 0, // Reserved alignment padding 0, 0, 0, // Reserved alignment padding
@ -1984,7 +1984,7 @@ repTextCopy(UText *ut,
repTextAccess(ut, nativeIterIndex, TRUE); repTextAccess(ut, nativeIterIndex, TRUE);
} }
static struct UTextFuncs repFuncs = static const struct UTextFuncs repFuncs =
{ {
sizeof(UTextFuncs), sizeof(UTextFuncs),
0, 0, 0, // Reserved alignment padding 0, 0, 0, // Reserved alignment padding
@ -2232,7 +2232,7 @@ unistrTextCopy(UText *ut,
} }
static struct UTextFuncs unistrFuncs = static const struct UTextFuncs unistrFuncs =
{ {
sizeof(UTextFuncs), sizeof(UTextFuncs),
0, 0, 0, // Reserved alignment padding 0, 0, 0, // Reserved alignment padding
@ -2543,7 +2543,7 @@ ucstrTextExtract(UText *ut,
return di; return di;
} }
static struct UTextFuncs ucstrFuncs = static const struct UTextFuncs ucstrFuncs =
{ {
sizeof(UTextFuncs), sizeof(UTextFuncs),
0, 0, 0, // Reserved alignment padding 0, 0, 0, // Reserved alignment padding
@ -2757,7 +2757,7 @@ charIterTextExtract(UText *ut,
return desti; return desti;
} }
static struct UTextFuncs charIterFuncs = static const struct UTextFuncs charIterFuncs =
{ {
sizeof(UTextFuncs), sizeof(UTextFuncs),
0, 0, 0, // Reserved alignment padding 0, 0, 0, // Reserved alignment padding