no it search for '.' in the first position of trimed line.
so the code get the next line from buffer , then it removes unwanted char by H_Trim , then it check the first char of the line if it is '.' then it replace it with '_'
function FileEntry(DWord handle; char* strCode)
{
//preprocess the main file
if (handle == 0)
{
esi = strCode;
esi = strOffset(esi, '.DATA');
while (char[esi] != 0)
{
char[esi] = "_";
esi = strOffset(esi, '.DATA');
}
Ziron_ShowMessage(strCode);
//set the buffer
DWord Len;
Len = H_strlen(strCode);
Ziron_SetFileBuffer(handle, strCode, Len);
}
}
it must show the modified source code befor setfilebuffer function , but it does not
it give this error
Unknown Identifier "." in [testprg.zir]
Code:
.DATA var DB 64 //;
and that mean that the problem is not only the end of main file.