@@ -9,15 +9,15 @@ namespace detail
99{
1010namespace strconcat_error
1111{
12- void process (u32 const index, u32 const count, LPCSTR * strings)
12+ void process (u32 const index, u32 const count, pcstr * strings)
1313{
1414 u32 const max_string_size = 1024 ;
15- LPSTR temp = (LPSTR )_alloca ((count * (max_string_size + 4 ) + 1 ) * sizeof (**strings));
16- LPSTR k = temp;
15+ pstr temp = (pstr )_alloca ((count * (max_string_size + 4 ) + 1 ) * sizeof (**strings));
16+ pstr k = temp;
1717 *k++ = ' [' ;
1818 for (u32 i = 0 ; i < count; ++i)
1919 {
20- for (LPCSTR j = strings[i], e = j + max_string_size; *j && j < e; ++k, ++j)
20+ for (pcstr j = strings[i], e = j + max_string_size; *j && j < e; ++k, ++j)
2121 *k = *j;
2222
2323 *k++ = ' ]' ;
@@ -36,7 +36,7 @@ void process(u32 const index, u32 const count, LPCSTR* strings)
3636}
3737
3838template <u32 count>
39- static inline void process (LPSTR & i, LPCSTR e, u32 const index, LPCSTR (&strings)[count])
39+ static inline void process (pstr & i, pcstr e, u32 const index, pcstr (&strings)[count])
4040{
4141 VERIFY (i <= e);
4242 VERIFY (index < count);
@@ -113,17 +113,17 @@ void string_tupples::error_process() const
113113using namespace xray ::core::detail;
114114
115115// dest = S1+S2
116- LPSTR strconcat (int dest_sz, char * dest, const char * S1, const char * S2)
116+ pstr strconcat (int dest_sz, pstr dest, pcstr S1, pcstr S2)
117117{
118118 VERIFY (dest);
119119 VERIFY (S1);
120120 VERIFY (S2);
121121
122- LPCSTR strings[] = {S1, S2};
122+ pcstr strings[] = {S1, S2};
123123
124- LPSTR i = dest;
125- LPCSTR e = dest + dest_sz;
126- LPCSTR j;
124+ pstr i = dest;
125+ pcstr e = dest + dest_sz;
126+ pcstr j;
127127 for (j = S1; *j && i < e; ++i, ++j)
128128 *i = *j;
129129
@@ -140,18 +140,18 @@ LPSTR strconcat(int dest_sz, char* dest, const char* S1, const char* S2)
140140}
141141
142142// dest = S1+S2+S3
143- LPSTR strconcat (int dest_sz, char * dest, const char * S1, const char * S2, const char * S3)
143+ pstr strconcat (int dest_sz, pstr dest, pcstr S1, pcstr S2, pcstr S3)
144144{
145145 VERIFY (dest);
146146 VERIFY (S1);
147147 VERIFY (S2);
148148 VERIFY (S3);
149149
150- LPCSTR strings[] = {S1, S2, S3};
150+ pcstr strings[] = {S1, S2, S3};
151151
152- LPSTR i = dest;
153- LPCSTR e = dest + dest_sz;
154- LPCSTR j;
152+ pstr i = dest;
153+ pcstr e = dest + dest_sz;
154+ pcstr j;
155155 for (j = S1; *j && i < e; ++i, ++j)
156156 *i = *j;
157157
@@ -173,19 +173,19 @@ LPSTR strconcat(int dest_sz, char* dest, const char* S1, const char* S2, const c
173173}
174174
175175// dest = S1+S2+S3+S4
176- LPSTR strconcat (int dest_sz, char * dest, const char * S1, const char * S2, const char * S3, const char * S4)
176+ pstr strconcat (int dest_sz, pstr dest, pcstr S1, pcstr S2, pcstr S3, pcstr S4)
177177{
178178 VERIFY (dest);
179179 VERIFY (S1);
180180 VERIFY (S2);
181181 VERIFY (S3);
182182 VERIFY (S4);
183183
184- LPCSTR strings[] = {S1, S2, S3, S4};
184+ pcstr strings[] = {S1, S2, S3, S4};
185185
186- LPSTR i = dest;
187- LPCSTR e = dest + dest_sz;
188- LPCSTR j;
186+ pstr i = dest;
187+ pcstr e = dest + dest_sz;
188+ pcstr j;
189189 for (j = S1; *j && i < e; ++i, ++j)
190190 *i = *j;
191191
@@ -212,7 +212,7 @@ LPSTR strconcat(int dest_sz, char* dest, const char* S1, const char* S2, const c
212212}
213213
214214// dest = S1+S2+S3+S4+S5
215- LPSTR strconcat (int dest_sz, char * dest, const char * S1, const char * S2, const char * S3, const char * S4, const char * S5)
215+ pstr strconcat (int dest_sz, pstr dest, pcstr S1, pcstr S2, pcstr S3, pcstr S4, pcstr S5)
216216{
217217 VERIFY (dest);
218218 VERIFY (S1);
@@ -221,11 +221,11 @@ LPSTR strconcat(int dest_sz, char* dest, const char* S1, const char* S2, const c
221221 VERIFY (S4);
222222 VERIFY (S5);
223223
224- LPCSTR strings[] = {S1, S2, S3, S4, S5};
224+ pcstr strings[] = {S1, S2, S3, S4, S5};
225225
226- LPSTR i = dest;
227- LPCSTR e = dest + dest_sz;
228- LPCSTR j;
226+ pstr i = dest;
227+ pcstr e = dest + dest_sz;
228+ pcstr j;
229229 for (j = S1; *j && i < e; ++i, ++j)
230230 *i = *j;
231231
@@ -257,8 +257,8 @@ LPSTR strconcat(int dest_sz, char* dest, const char* S1, const char* S2, const c
257257}
258258
259259// dest = S1+S2+S3+S4+S5+S6
260- LPSTR strconcat (int dest_sz, char * dest, const char * S1, const char * S2, const char * S3, const char * S4, const char * S5,
261- const char * S6)
260+ pstr strconcat (int dest_sz, pstr dest, pcstr S1, pcstr S2, pcstr S3, pcstr S4, pcstr S5,
261+ pcstr S6)
262262{
263263 VERIFY (dest);
264264 VERIFY (S1);
@@ -268,11 +268,11 @@ LPSTR strconcat(int dest_sz, char* dest, const char* S1, const char* S2, const c
268268 VERIFY (S5);
269269 VERIFY (S6);
270270
271- LPCSTR strings[] = {S1, S2, S3, S4, S5, S6};
271+ pcstr strings[] = {S1, S2, S3, S4, S5, S6};
272272
273- LPSTR i = dest;
274- LPCSTR e = dest + dest_sz;
275- LPCSTR j;
273+ pstr i = dest;
274+ pcstr e = dest + dest_sz;
275+ pcstr j;
276276 for (j = S1; *j && i < e; ++i, ++j)
277277 *i = *j;
278278
0 commit comments