Move utility functions trimfront/back to tccpp.c

These are used in `libtcc.c` now and cannot remain in `tccpe.c`
This commit is contained in:
Vlad Vissoultchev
2016-04-13 14:32:51 +03:00
parent cb5f6b063b
commit 34feee0ed6
4 changed files with 18 additions and 19 deletions

16
tccpe.c
View File

@ -1563,22 +1563,6 @@ quit:
return ret;
}
/* ------------------------------------------------------------- */
static char *trimfront(char *p)
{
while (*p && (unsigned char)*p <= ' ')
++p;
return p;
}
static char *trimback(char *a, char *e)
{
while (e > a && (unsigned char)e[-1] <= ' ')
--e;
*e = 0;;
return a;
}
/* ------------------------------------------------------------- */
static int pe_load_def(TCCState *s1, int fd)
{