android and python updates

This commit is contained in:
Vitor Santos Costa
2016-08-23 17:28:23 -05:00
parent 6f6e294703
commit 676582fe4f
6 changed files with 12 additions and 4 deletions

View File

@@ -1119,7 +1119,11 @@ Term Yap_scan_num(StreamDesc *inp) {
LOCAL_Error_TYPE = RESOURCE_ERROR_TRAIL;
return 0;
}
#if HAVE_ISWBLANK
while (iswblank( ch = getchr(inp) ));
#else
while (isspace( ch = getchr(inp) ));
#endif
TokEntry *tokptr = (TokEntry *)AllocScannerMemory(sizeof(TokEntry));
tokptr->TokPos = GetCurInpPos(inp);
if (ch == '-') {

View File

@@ -888,7 +888,8 @@ static unsigned char *concat(int n, unsigned char *sv[] USES_REGS) {
buf = Malloc(room + 1);
buf0 = (unsigned char *) buf;
for (i = 0; i < n; i++) {
buf = stpcpy(buf, (char *) sv[i]);
buf = strcpy(buf, (char *) sv[i]);
buf += strlen( sv[i] );
}
return buf0;
}