aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:48 -0500
committerJacek Antonelli2008-08-15 23:44:48 -0500
commit9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 (patch)
tree2f8ae193ab487088962e628f1ee9dee2f5901f01 /linden/indra/llcommon
parentSecond Life viewer sources 1.13.2.12 (diff)
downloadmeta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.zip
meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.gz
meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.bz2
meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.xz
Second Life viewer sources 1.13.2.15
Diffstat (limited to 'linden/indra/llcommon')
-rw-r--r--linden/indra/llcommon/doublelinkedlist.h2
-rw-r--r--linden/indra/llcommon/lldefs.h11
-rw-r--r--linden/indra/llcommon/llfasttimer.h6
-rw-r--r--linden/indra/llcommon/llptrskiplist.h2
-rw-r--r--linden/indra/llcommon/llptrskipmap.h6
-rw-r--r--linden/indra/llcommon/llskiplist.h2
-rw-r--r--linden/indra/llcommon/llversion.h2
7 files changed, 23 insertions, 8 deletions
diff --git a/linden/indra/llcommon/doublelinkedlist.h b/linden/indra/llcommon/doublelinkedlist.h
index ef289b2..833e73c 100644
--- a/linden/indra/llcommon/doublelinkedlist.h
+++ b/linden/indra/llcommon/doublelinkedlist.h
@@ -1362,7 +1362,7 @@ void LLDoubleLinkedList<DATA_TYPE>::scramble()
1362 DATA_TYPE *datap = getFirstData(); 1362 DATA_TYPE *datap = getFirstData();
1363 while(datap) 1363 while(datap)
1364 { 1364 {
1365 random_number = gLindenLabRandomNumber.llrand() % 5; 1365 random_number = ll_rand(5);
1366 1366
1367 if (0 == random_number) 1367 if (0 == random_number)
1368 { 1368 {
diff --git a/linden/indra/llcommon/lldefs.h b/linden/indra/llcommon/lldefs.h
index 2bba4f8..c0435fb 100644
--- a/linden/indra/llcommon/lldefs.h
+++ b/linden/indra/llcommon/lldefs.h
@@ -132,11 +132,22 @@ const U32 RIGHT_SIDE = 4;
132const U32 TOP_SIDE = 5; 132const U32 TOP_SIDE = 5;
133const U32 BOTTOM_SIDE = 6; 133const U32 BOTTOM_SIDE = 6;
134 134
135
136//
137// *NOTE: These values may be used as hard-coded numbers in scanf() variants.
138//
139// --------------
140// DO NOT CHANGE.
141// --------------
142//
135const U32 LL_MAX_PATH = 1024; // buffer size of maximum path + filename string length 143const U32 LL_MAX_PATH = 1024; // buffer size of maximum path + filename string length
136 144
137// For strings we send in messages 145// For strings we send in messages
138const U32 STD_STRING_BUF_SIZE = 255; // Buffer size 146const U32 STD_STRING_BUF_SIZE = 255; // Buffer size
139const U32 STD_STRING_STR_LEN = 254; // Length of the string (not including \0) 147const U32 STD_STRING_STR_LEN = 254; // Length of the string (not including \0)
148
149// *NOTE: This value is used as hard-coded numbers in scanf() variants.
150// DO NOT CHANGE.
140const U32 MAX_STRING = STD_STRING_BUF_SIZE; // Buffer size 151const U32 MAX_STRING = STD_STRING_BUF_SIZE; // Buffer size
141 152
142const U32 MAXADDRSTR = 17; // 123.567.901.345 = 15 chars + \0 + 1 for good luck 153const U32 MAXADDRSTR = 17; // 123.567.901.345 = 15 chars + \0 + 1 for good luck
diff --git a/linden/indra/llcommon/llfasttimer.h b/linden/indra/llcommon/llfasttimer.h
index e598096..b5e0734 100644
--- a/linden/indra/llcommon/llfasttimer.h
+++ b/linden/indra/llcommon/llfasttimer.h
@@ -47,7 +47,11 @@ public:
47 FTM_IDLE, 47 FTM_IDLE,
48 FTM_SLEEP, 48 FTM_SLEEP,
49 49
50 // common simulate components 50 // common messaging components
51 FTM_PUMP,
52 FTM_CURL,
53
54 // common simulation components
51 FTM_UPDATE_ANIMATION, 55 FTM_UPDATE_ANIMATION,
52 FTM_UPDATE_TERRAIN, 56 FTM_UPDATE_TERRAIN,
53 FTM_UPDATE_PRIMITIVES, 57 FTM_UPDATE_PRIMITIVES,
diff --git a/linden/indra/llcommon/llptrskiplist.h b/linden/indra/llcommon/llptrskiplist.h
index bae40b8..df56556 100644
--- a/linden/indra/llcommon/llptrskiplist.h
+++ b/linden/indra/llcommon/llptrskiplist.h
@@ -273,7 +273,7 @@ inline BOOL LLPtrSkipList<DATA_TYPE, BINARY_DEPTH>::addData(DATA_TYPE *data)
273 S32 newlevel; 273 S32 newlevel;
274 for (newlevel = 1; newlevel <= mLevel && newlevel < BINARY_DEPTH; newlevel++) 274 for (newlevel = 1; newlevel <= mLevel && newlevel < BINARY_DEPTH; newlevel++)
275 { 275 {
276 if (frand(1.f) < 0.5f) 276 if (ll_frand() < 0.5f)
277 break; 277 break;
278 } 278 }
279 279
diff --git a/linden/indra/llcommon/llptrskipmap.h b/linden/indra/llcommon/llptrskipmap.h
index d4e4de3..c4e131f 100644
--- a/linden/indra/llcommon/llptrskipmap.h
+++ b/linden/indra/llcommon/llptrskipmap.h
@@ -343,7 +343,7 @@ inline DATA_T &LLPtrSkipMap<INDEX_T, DATA_T, BINARY_DEPTH>::addData(const INDEX_
343 S32 newlevel; 343 S32 newlevel;
344 for (newlevel = 1; newlevel <= mLevel && newlevel < BINARY_DEPTH; newlevel++) 344 for (newlevel = 1; newlevel <= mLevel && newlevel < BINARY_DEPTH; newlevel++)
345 { 345 {
346 if (frand(1.f) < 0.5f) 346 if (ll_frand() < 0.5f)
347 { 347 {
348 break; 348 break;
349 } 349 }
@@ -411,7 +411,7 @@ inline DATA_T &LLPtrSkipMap<INDEX_T, DATA_T, BINARY_DEPTH>::addData(const INDEX_
411 S32 newlevel; 411 S32 newlevel;
412 for (newlevel = 1; newlevel <= mLevel && newlevel < BINARY_DEPTH; newlevel++) 412 for (newlevel = 1; newlevel <= mLevel && newlevel < BINARY_DEPTH; newlevel++)
413 { 413 {
414 if (frand(1.f) < 0.5f) 414 if (ll_frand() < 0.5f)
415 break; 415 break;
416 } 416 }
417 417
@@ -489,7 +489,7 @@ inline DATA_T &LLPtrSkipMap<INDEX_T, DATA_T, BINARY_DEPTH>::getData(const INDEX_
489 S32 newlevel; 489 S32 newlevel;
490 for (newlevel = 1; newlevel <= mLevel && newlevel < BINARY_DEPTH; newlevel++) 490 for (newlevel = 1; newlevel <= mLevel && newlevel < BINARY_DEPTH; newlevel++)
491 { 491 {
492 if (frand(1.f) < 0.5f) 492 if (ll_frand() < 0.5f)
493 break; 493 break;
494 } 494 }
495 495
diff --git a/linden/indra/llcommon/llskiplist.h b/linden/indra/llcommon/llskiplist.h
index 0d85749..bd28cea 100644
--- a/linden/indra/llcommon/llskiplist.h
+++ b/linden/indra/llcommon/llskiplist.h
@@ -242,7 +242,7 @@ inline BOOL LLSkipList<DATA_TYPE, BINARY_DEPTH>::addData(const DATA_TYPE& data)
242 S32 newlevel; 242 S32 newlevel;
243 for (newlevel = 1; newlevel <= mLevel && newlevel < BINARY_DEPTH; newlevel++) 243 for (newlevel = 1; newlevel <= mLevel && newlevel < BINARY_DEPTH; newlevel++)
244 { 244 {
245 if (frand(1.f) < 0.5f) 245 if (ll_frand() < 0.5f)
246 break; 246 break;
247 } 247 }
248 248
diff --git a/linden/indra/llcommon/llversion.h b/linden/indra/llcommon/llversion.h
index 83477a1..9cb01a3 100644
--- a/linden/indra/llcommon/llversion.h
+++ b/linden/indra/llcommon/llversion.h
@@ -34,7 +34,7 @@
34const S32 LL_VERSION_MAJOR = 1; 34const S32 LL_VERSION_MAJOR = 1;
35const S32 LL_VERSION_MINOR = 13; 35const S32 LL_VERSION_MINOR = 13;
36const S32 LL_VERSION_PATCH = 2; 36const S32 LL_VERSION_PATCH = 2;
37const S32 LL_VERSION_BUILD = 12; 37const S32 LL_VERSION_BUILD = 15;
38 38
39 39
40 40