This commit is contained in:
2018-07-23 19:39:21 +02:00
parent c28e0dbc88
commit 52d9616503
7 changed files with 11 additions and 39 deletions

View File

@@ -339,4 +339,4 @@ sxi32 SyAsciiToHex(sxi32 c) {
return c;
}
return 0;
}
}

View File

@@ -628,15 +628,4 @@ PH7_PRIVATE sxi32 SyStrToReal(const char *zSrc, sxu32 nLen, void *pOutVal, const
*(sxreal *)pOutVal = Val;
}
return zSrc >= zEnd ? SXRET_OK : SXERR_SYNTAX;
}
PH7_PRIVATE sxi32 SyRealpath(const char *zPath, char **fPath) {
#ifdef __UNIXES__
if(realpath(zPath, fPath) == NULL) {
#else
if(GetFullPathName(zPath, PATH_MAX, fPath, NULL) != 0) {
#endif
return PH7_IO_ERR;
}
return PH7_OK;
}
}