aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/lscript/lscript_compile/lscript_scope.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/lscript/lscript_compile/lscript_scope.h
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/lscript/lscript_compile/lscript_scope.h')
-rw-r--r--linden/indra/lscript/lscript_compile/lscript_scope.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/linden/indra/lscript/lscript_compile/lscript_scope.h b/linden/indra/lscript/lscript_compile/lscript_scope.h
index 8174566..a9c1c45 100644
--- a/linden/indra/lscript/lscript_compile/lscript_scope.h
+++ b/linden/indra/lscript/lscript_compile/lscript_scope.h
@@ -277,14 +277,14 @@ public:
277class LLScriptScopeEntry 277class LLScriptScopeEntry
278{ 278{
279public: 279public:
280 LLScriptScopeEntry(char *identifier, LSCRIPTIdentifierType idtype, LSCRIPTType type, S32 count = 0) 280 LLScriptScopeEntry(const char *identifier, LSCRIPTIdentifierType idtype, LSCRIPTType type, S32 count = 0)
281 : mIdentifier(identifier), mIDType(idtype), mType(type), mOffset(0), mSize(0), mAssignable(NULL), mCount(count), mLibraryNumber(0) 281 : mIdentifier(identifier), mIDType(idtype), mType(type), mOffset(0), mSize(0), mAssignable(NULL), mCount(count), mLibraryNumber(0)
282 { 282 {
283 } 283 }
284 284
285 ~LLScriptScopeEntry() {} 285 ~LLScriptScopeEntry() {}
286 286
287 char *mIdentifier; 287 const char *mIdentifier;
288 LSCRIPTIdentifierType mIDType; 288 LSCRIPTIdentifierType mIDType;
289 LSCRIPTType mType; 289 LSCRIPTType mType;
290 S32 mOffset; 290 S32 mOffset;
@@ -309,9 +309,9 @@ public:
309 mEntryMap.deleteAllData(); 309 mEntryMap.deleteAllData();
310 } 310 }
311 311
312 LLScriptScopeEntry *addEntry(char *identifier, LSCRIPTIdentifierType idtype, LSCRIPTType type) 312 LLScriptScopeEntry *addEntry(const char *identifier, LSCRIPTIdentifierType idtype, LSCRIPTType type)
313 { 313 {
314 char *name = mSTable->addString(identifier); 314 const char *name = mSTable->addString(identifier);
315 if (!mEntryMap.checkData(name)) 315 if (!mEntryMap.checkData(name))
316 { 316 {
317 if (idtype == LIT_FUNCTION) 317 if (idtype == LIT_FUNCTION)
@@ -329,9 +329,9 @@ public:
329 } 329 }
330 } 330 }
331 331
332 BOOL checkEntry(char *identifier) 332 BOOL checkEntry(const char *identifier)
333 { 333 {
334 char *name = mSTable->addString(identifier); 334 const char *name = mSTable->addString(identifier);
335 if (mEntryMap.checkData(name)) 335 if (mEntryMap.checkData(name))
336 { 336 {
337 return TRUE; 337 return TRUE;
@@ -343,9 +343,9 @@ public:
343 } 343 }
344 } 344 }
345 345
346 LLScriptScopeEntry *findEntry(char *identifier) 346 LLScriptScopeEntry *findEntry(const char *identifier)
347 { 347 {
348 char *name = mSTable->addString(identifier); 348 const char *name = mSTable->addString(identifier);
349 LLScriptScope *scope = this; 349 LLScriptScope *scope = this;
350 350
351 while (scope) 351 while (scope)
@@ -360,9 +360,9 @@ public:
360 return NULL; 360 return NULL;
361 } 361 }
362 362
363 LLScriptScopeEntry *findEntryTyped(char *identifier, LSCRIPTIdentifierType idtype) 363 LLScriptScopeEntry *findEntryTyped(const char *identifier, LSCRIPTIdentifierType idtype)
364 { 364 {
365 char *name = mSTable->addString(identifier); 365 const char *name = mSTable->addString(identifier);
366 LLScriptScope *scope = this; 366 LLScriptScope *scope = this;
367 367
368 while (scope) 368 while (scope)
@@ -397,7 +397,7 @@ public:
397 mParentScope = scope; 397 mParentScope = scope;
398 } 398 }
399 399
400 LLMap<char *, LLScriptScopeEntry *> mEntryMap; 400 LLMap<const char *, LLScriptScopeEntry *> mEntryMap;
401 LLScriptScope *mParentScope; 401 LLScriptScope *mParentScope;
402 LLStringTable *mSTable; 402 LLStringTable *mSTable;
403 S32 mFunctionCount; 403 S32 mFunctionCount;