aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-12 14:59:33 -0500
committerJacek Antonelli2008-09-12 14:59:39 -0500
commit80a8bab2a9dd8e77262b001af973212a6cba4a5a (patch)
tree170168232fd4e2eec5f15295a9445535969cdb76 /linden/indra/llcommon
parentSecond Life viewer sources 1.21.1-RC (diff)
downloadmeta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.zip
meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.gz
meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.bz2
meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.xz
Second Life viewer sources 1.21.2-RC
Diffstat (limited to 'linden/indra/llcommon')
-rw-r--r--linden/indra/llcommon/linden_common.h6
-rw-r--r--linden/indra/llcommon/lldqueueptr.h8
-rw-r--r--linden/indra/llcommon/llversionviewer.h2
3 files changed, 11 insertions, 5 deletions
diff --git a/linden/indra/llcommon/linden_common.h b/linden/indra/llcommon/linden_common.h
index 7d3c82d..827ec8f 100644
--- a/linden/indra/llcommon/linden_common.h
+++ b/linden/indra/llcommon/linden_common.h
@@ -32,6 +32,12 @@
32#ifndef LL_LINDEN_COMMON_H 32#ifndef LL_LINDEN_COMMON_H
33#define LL_LINDEN_COMMON_H 33#define LL_LINDEN_COMMON_H
34 34
35#if defined(LL_WINDOWS) && defined(_DEBUG)
36# define _CRTDBG_MAP_ALLOC
37# include <stdlib.h>
38# include <crtdbg.h>
39#endif
40
35#include "llpreprocessor.h" 41#include "llpreprocessor.h"
36 42
37#include <cstring> 43#include <cstring>
diff --git a/linden/indra/llcommon/lldqueueptr.h b/linden/indra/llcommon/lldqueueptr.h
index 248357e..07addb5 100644
--- a/linden/indra/llcommon/lldqueueptr.h
+++ b/linden/indra/llcommon/lldqueueptr.h
@@ -47,7 +47,7 @@ public:
47 void init(); 47 void init();
48 void destroy(); 48 void destroy();
49 void reset(); 49 void reset();
50 void realloc(U32 newsize); 50 void reallocate(U32 newsize);
51 51
52 // ACCESSORS 52 // ACCESSORS
53 const Type& get(const S32 index) const; // no bounds checking 53 const Type& get(const S32 index) const; // no bounds checking
@@ -115,7 +115,7 @@ template <class Type>
115inline LLDynamicQueuePtr<Type>::LLDynamicQueuePtr(const S32 size) 115inline LLDynamicQueuePtr<Type>::LLDynamicQueuePtr(const S32 size)
116{ 116{
117 init(); 117 init();
118 realloc(size); 118 reallocate(size);
119} 119}
120 120
121template <class Type> 121template <class Type>
@@ -134,7 +134,7 @@ inline void LLDynamicQueuePtr<Type>::init()
134} 134}
135 135
136template <class Type> 136template <class Type>
137inline void LLDynamicQueuePtr<Type>::realloc(U32 newsize) 137inline void LLDynamicQueuePtr<Type>::reallocate(U32 newsize)
138{ 138{
139 if (newsize) 139 if (newsize)
140 { 140 {
@@ -308,7 +308,7 @@ inline S32 LLDynamicQueuePtr<Type>::push(const Type &obj)
308{ 308{
309 if (mMaxObj - count() <= 1) 309 if (mMaxObj - count() <= 1)
310 { 310 {
311 realloc(mMaxObj * 2); 311 reallocate(mMaxObj * 2);
312 } 312 }
313 313
314 mMemory[mLastObj++] = obj; 314 mMemory[mLastObj++] = obj;
diff --git a/linden/indra/llcommon/llversionviewer.h b/linden/indra/llcommon/llversionviewer.h
index cd7b304..f357b76 100644
--- a/linden/indra/llcommon/llversionviewer.h
+++ b/linden/indra/llcommon/llversionviewer.h
@@ -34,7 +34,7 @@
34 34
35const S32 LL_VERSION_MAJOR = 1; 35const S32 LL_VERSION_MAJOR = 1;
36const S32 LL_VERSION_MINOR = 21; 36const S32 LL_VERSION_MINOR = 21;
37const S32 LL_VERSION_PATCH = 1; 37const S32 LL_VERSION_PATCH = 2;
38const S32 LL_VERSION_BUILD = 0; 38const S32 LL_VERSION_BUILD = 0;
39 39
40const char * const LL_CHANNEL = "Second Life Release"; 40const char * const LL_CHANNEL = "Second Life Release";