diff options
author | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
commit | 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch) | |
tree | bcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/lscript/lscript_compile/lscript_scope.h | |
parent | Second Life viewer sources 1.13.3.2 (diff) | |
download | meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2 meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz |
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/lscript/lscript_compile/lscript_scope.h')
-rw-r--r-- | linden/indra/lscript/lscript_compile/lscript_scope.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/linden/indra/lscript/lscript_compile/lscript_scope.h b/linden/indra/lscript/lscript_compile/lscript_scope.h index ff20ad3..62fef88 100644 --- a/linden/indra/lscript/lscript_compile/lscript_scope.h +++ b/linden/indra/lscript/lscript_compile/lscript_scope.h | |||
@@ -45,7 +45,7 @@ typedef enum e_lscript_identifier_type | |||
45 | LIT_EOF | 45 | LIT_EOF |
46 | } LSCRIPTIdentifierType; | 46 | } LSCRIPTIdentifierType; |
47 | 47 | ||
48 | const char LSCRIPTFunctionTypeStrings[LST_EOF] = | 48 | const char LSCRIPTFunctionTypeStrings[LST_EOF] = /*Flawfinder: ignore*/ |
49 | { | 49 | { |
50 | '0', | 50 | '0', |
51 | 'i', | 51 | 'i', |
@@ -58,7 +58,7 @@ const char LSCRIPTFunctionTypeStrings[LST_EOF] = | |||
58 | '0' | 58 | '0' |
59 | }; | 59 | }; |
60 | 60 | ||
61 | const char * const LSCRIPTListDescription[LST_EOF] = | 61 | const char * const LSCRIPTListDescription[LST_EOF] = /*Flawfinder: ignore*/ |
62 | { | 62 | { |
63 | "PUSHARGB 0", | 63 | "PUSHARGB 0", |
64 | "PUSHARGB 1", | 64 | "PUSHARGB 1", |
@@ -71,7 +71,7 @@ const char * const LSCRIPTListDescription[LST_EOF] = | |||
71 | "PUSHARGB 0" | 71 | "PUSHARGB 0" |
72 | }; | 72 | }; |
73 | 73 | ||
74 | const char * const LSCRIPTTypePush[LST_EOF] = | 74 | const char * const LSCRIPTTypePush[LST_EOF] = /*Flawfinder: ignore*/ |
75 | { | 75 | { |
76 | "INVALID", | 76 | "INVALID", |
77 | "PUSHE", | 77 | "PUSHE", |
@@ -84,7 +84,7 @@ const char * const LSCRIPTTypePush[LST_EOF] = | |||
84 | "undefined" | 84 | "undefined" |
85 | }; | 85 | }; |
86 | 86 | ||
87 | const char * const LSCRIPTTypeReturn[LST_EOF] = | 87 | const char * const LSCRIPTTypeReturn[LST_EOF] = /*Flawfinder: ignore*/ |
88 | { | 88 | { |
89 | "INVALID", | 89 | "INVALID", |
90 | "LOADP -12", | 90 | "LOADP -12", |
@@ -97,7 +97,7 @@ const char * const LSCRIPTTypeReturn[LST_EOF] = | |||
97 | "undefined" | 97 | "undefined" |
98 | }; | 98 | }; |
99 | 99 | ||
100 | const char * const LSCRIPTTypePop[LST_EOF] = | 100 | const char * const LSCRIPTTypePop[LST_EOF] = /*Flawfinder: ignore*/ |
101 | { | 101 | { |
102 | "INVALID", | 102 | "INVALID", |
103 | "POP", | 103 | "POP", |
@@ -110,7 +110,7 @@ const char * const LSCRIPTTypePop[LST_EOF] = | |||
110 | "undefined" | 110 | "undefined" |
111 | }; | 111 | }; |
112 | 112 | ||
113 | const char * const LSCRIPTTypeDuplicate[LST_EOF] = | 113 | const char * const LSCRIPTTypeDuplicate[LST_EOF] = /*Flawfinder: ignore*/ |
114 | { | 114 | { |
115 | "INVALID", | 115 | "INVALID", |
116 | "DUP", | 116 | "DUP", |
@@ -123,7 +123,7 @@ const char * const LSCRIPTTypeDuplicate[LST_EOF] = | |||
123 | "undefined" | 123 | "undefined" |
124 | }; | 124 | }; |
125 | 125 | ||
126 | const char * const LSCRIPTTypeLocalStore[LST_EOF] = | 126 | const char * const LSCRIPTTypeLocalStore[LST_EOF] = /*Flawfinder: ignore*/ |
127 | { | 127 | { |
128 | "INVALID", | 128 | "INVALID", |
129 | "STORE ", | 129 | "STORE ", |
@@ -136,7 +136,7 @@ const char * const LSCRIPTTypeLocalStore[LST_EOF] = | |||
136 | "undefined" | 136 | "undefined" |
137 | }; | 137 | }; |
138 | 138 | ||
139 | const char * const LSCRIPTTypeLocalDeclaration[LST_EOF] = | 139 | const char * const LSCRIPTTypeLocalDeclaration[LST_EOF] = /*Flawfinder: ignore*/ |
140 | { | 140 | { |
141 | "INVALID", | 141 | "INVALID", |
142 | "STOREP ", | 142 | "STOREP ", |
@@ -149,7 +149,7 @@ const char * const LSCRIPTTypeLocalDeclaration[LST_EOF] = | |||
149 | "undefined" | 149 | "undefined" |
150 | }; | 150 | }; |
151 | 151 | ||
152 | const char * const LSCRIPTTypeGlobalStore[LST_EOF] = | 152 | const char * const LSCRIPTTypeGlobalStore[LST_EOF] = /*Flawfinder: ignore*/ |
153 | { | 153 | { |
154 | "INVALID", | 154 | "INVALID", |
155 | "STOREG ", | 155 | "STOREG ", |
@@ -162,7 +162,7 @@ const char * const LSCRIPTTypeGlobalStore[LST_EOF] = | |||
162 | "undefined" | 162 | "undefined" |
163 | }; | 163 | }; |
164 | 164 | ||
165 | const char * const LSCRIPTTypeLocalPush[LST_EOF] = | 165 | const char * const LSCRIPTTypeLocalPush[LST_EOF] = /*Flawfinder: ignore*/ |
166 | { | 166 | { |
167 | "INVALID", | 167 | "INVALID", |
168 | "PUSH ", | 168 | "PUSH ", |
@@ -175,7 +175,7 @@ const char * const LSCRIPTTypeLocalPush[LST_EOF] = | |||
175 | "undefined" | 175 | "undefined" |
176 | }; | 176 | }; |
177 | 177 | ||
178 | const char * const LSCRIPTTypeLocalPush1[LST_EOF] = | 178 | const char * const LSCRIPTTypeLocalPush1[LST_EOF] = /*Flawfinder: ignore*/ |
179 | { | 179 | { |
180 | "INVALID", | 180 | "INVALID", |
181 | "PUSHARGI 1", | 181 | "PUSHARGI 1", |
@@ -188,7 +188,7 @@ const char * const LSCRIPTTypeLocalPush1[LST_EOF] = | |||
188 | "undefined" | 188 | "undefined" |
189 | }; | 189 | }; |
190 | 190 | ||
191 | const char * const LSCRIPTTypeGlobalPush[LST_EOF] = | 191 | const char * const LSCRIPTTypeGlobalPush[LST_EOF] = /*Flawfinder: ignore*/ |
192 | { | 192 | { |
193 | "INVALID", | 193 | "INVALID", |
194 | "PUSHG ", | 194 | "PUSHG ", |
@@ -213,7 +213,7 @@ public: | |||
213 | { | 213 | { |
214 | if (!mString) | 214 | if (!mString) |
215 | return LST_NULL; | 215 | return LST_NULL; |
216 | S32 length = (S32)strlen(mString); | 216 | S32 length = (S32)strlen(mString); /*Flawfinder: ignore*/ |
217 | if (count >= length) | 217 | if (count >= length) |
218 | { | 218 | { |
219 | return LST_NULL; | 219 | return LST_NULL; |
@@ -244,9 +244,9 @@ public: | |||
244 | S32 count = 0; | 244 | S32 count = 0; |
245 | if (mString) | 245 | if (mString) |
246 | { | 246 | { |
247 | count = (S32)strlen(mString); | 247 | count = (S32)strlen(mString); /*Flawfinder: ignore*/ |
248 | char *temp = new char[count + 2]; | 248 | char *temp = new char[count + 2]; |
249 | memcpy(temp, mString, count); | 249 | memcpy(temp, mString, count); /*Flawfinder: ignore*/ |
250 | delete [] mString; | 250 | delete [] mString; |
251 | mString = temp; | 251 | mString = temp; |
252 | mString[count + 1] = 0; | 252 | mString[count + 1] = 0; |
@@ -262,7 +262,7 @@ public: | |||
262 | S32 getNumber() | 262 | S32 getNumber() |
263 | { | 263 | { |
264 | if (mString) | 264 | if (mString) |
265 | return (S32)strlen(mString); | 265 | return (S32)strlen(mString); /*Flawfinder: ignore*/ |
266 | else | 266 | else |
267 | return 0; | 267 | return 0; |
268 | } | 268 | } |