ICU-1099 Add const to some static data
X-SVN-Rev: 5632
This commit is contained in:
parent
81cfc9a3c8
commit
e1749f434d
File diff suppressed because it is too large
Load Diff
@ -130,9 +130,9 @@ static void
|
||||
adjustWSLevels(UBiDi *pBiDi);
|
||||
|
||||
/* to avoid some conditional statements, use tiny constant arrays */
|
||||
static Flags flagLR[2]={ DIRPROP_FLAG(L), DIRPROP_FLAG(R) };
|
||||
static Flags flagE[2]={ DIRPROP_FLAG(LRE), DIRPROP_FLAG(RLE) };
|
||||
static Flags flagO[2]={ DIRPROP_FLAG(LRO), DIRPROP_FLAG(RLO) };
|
||||
static const Flags flagLR[2]={ DIRPROP_FLAG(L), DIRPROP_FLAG(R) };
|
||||
static const Flags flagE[2]={ DIRPROP_FLAG(LRE), DIRPROP_FLAG(RLE) };
|
||||
static const Flags flagO[2]={ DIRPROP_FLAG(LRO), DIRPROP_FLAG(RLO) };
|
||||
|
||||
#define DIRPROP_FLAG_LR(level) flagLR[(level)&1]
|
||||
#define DIRPROP_FLAG_E(level) flagE[(level)&1]
|
||||
|
@ -71,7 +71,7 @@
|
||||
* ratio is changed, the low and high water ratios should also be
|
||||
* adjusted to suit.
|
||||
*/
|
||||
static int32_t PRIMES[] = {
|
||||
static const int32_t PRIMES[] = {
|
||||
17, 37, 67, 131, 257, 521, 1031, 2053, 4099, 8209, 16411, 32771,
|
||||
65537, 131101, 262147, 524309, 1048583, 2097169, 4194319, 8388617,
|
||||
16777259, 33554467, 67108879, 134217757, 268435459, 536870923,
|
||||
|
@ -204,7 +204,7 @@ uprv_mstrm_writeBlock(UMemoryStream *MS, const void *s, UTextOffset length) {
|
||||
|
||||
U_CAPI void U_EXPORT2
|
||||
uprv_mstrm_writePadding(UMemoryStream *MS, UTextOffset length) {
|
||||
static uint8_t padding[16]={
|
||||
static const uint8_t padding[16]={
|
||||
0xaa, 0xaa, 0xaa, 0xaa,
|
||||
0xaa, 0xaa, 0xaa, 0xaa,
|
||||
0xaa, 0xaa, 0xaa, 0xaa,
|
||||
|
Loading…
Reference in New Issue
Block a user