mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-22 22:48:08 +03:00
Fix ShString.FillString
This commit is contained in:
@@ -109,8 +109,8 @@ static void FillString() {
|
||||
int i;
|
||||
|
||||
for (i = 0; i < cnt; i++) {
|
||||
if (st != src)
|
||||
svar_set(st, svar_get(src));
|
||||
if (st + i != src)
|
||||
svar_set(st + i, svar_get(src));
|
||||
}
|
||||
|
||||
DEBUG_COMMAND("ShString.FillString: %d,%d,%d,%d:\n", st, cnt, src, p4);
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
void FillString(int arg1, int arg2, IString arg3, ISys3xStringTable arg4)
|
||||
void ExchangeString(IString arg1, IString arg2, IString arg3)
|
||||
void SetNum16String(pword arg1, IString arg2)
|
||||
void SetNum16HalfString(pword arg1, IString arg2)
|
||||
void SetNum32String(pword arg1, IString arg2)
|
||||
void SetNum32HalfString(pword arg1, IString arg2)
|
||||
void SetStringNum16(IString arg1, pword arg2)
|
||||
void SetStringNum32(IString arg1, pword arg2)
|
||||
void GetArrayString(pword arg1, int arg2, IString arg3)
|
||||
void SetWindowTitle(IString arg1, ISys3xSystem arg2)
|
||||
|
||||
Binary file not shown.
@@ -7,6 +7,7 @@ const word str1 = 10:
|
||||
const word str2 = 11:
|
||||
const word str3 = 12:
|
||||
const word str4 = 13:
|
||||
const word str5 = 14:
|
||||
|
||||
MS str1,"0123456789":
|
||||
ML len,str1:
|
||||
@@ -161,6 +162,18 @@ const word str4 = 13:
|
||||
ShString.ExchangeString str1,str2,str3:
|
||||
MS str4,"いいいいいいあ":
|
||||
~AssertStrEquals str1,str4,__LINE__:
|
||||
|
||||
MS str1,"a":
|
||||
MS str2,"b":
|
||||
MS str3,"c":
|
||||
MS str4,"d":
|
||||
ShString.FillString str1,3,str2:
|
||||
MS str5,"b":
|
||||
~AssertStrEquals str1,str5,__LINE__:
|
||||
~AssertStrEquals str2,str5,__LINE__:
|
||||
~AssertStrEquals str3,str5,__LINE__:
|
||||
MS str5,"d":
|
||||
~AssertStrEquals str4,str5,__LINE__:
|
||||
\0:
|
||||
|
||||
**MPtoString dst,src,len:
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user