Added support for CLion, removed a lot of unused code in preparation of the rewriting of the network stack

This commit is contained in:
2022-03-06 17:36:43 +02:00
parent b99293c9d7
commit d2f43a8620
82 changed files with 251 additions and 12546 deletions

View File

@ -137,7 +137,7 @@ void trim_and_lower(const char * src, char * dest, size_t dest_size)
// <20>տ<EFBFBD> <20><>ĭ <20>dz<EFBFBD> <20>ٱ<EFBFBD>
while (*tmp)
{
if (!isnhspace(*tmp))
if (!isspace(*tmp))
break;
tmp++;
@ -160,7 +160,7 @@ void trim_and_lower(const char * src, char * dest, size_t dest_size)
// <20>ڿ<EFBFBD> <20><>ĭ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
--dest;
while (*dest && isnhspace(*dest) && len--)
while (*dest && isspace(*dest) && len--)
*(dest--) = '\0';
}
}
@ -240,7 +240,7 @@ void parse_token(char *src, char *token, char *value)
for (tmp = src; *tmp && *tmp != ':'; tmp++)
{
if (isnhspace(*tmp))
if (isspace(*tmp))
continue;
*(token++) = LOWER(*tmp);
@ -272,7 +272,7 @@ struct tm * tm_calc(const struct tm * curr_tm, int days)
new_tm = *localtime(&time_s);
}
else
thecore_memcpy(&new_tm, curr_tm, sizeof(struct tm));
memcpy(&new_tm, curr_tm, sizeof(struct tm));
if (new_tm.tm_mon == 1)
{