From 34feee0ed6879a9c28e8f82fde932eb6b20d79d5 Mon Sep 17 00:00:00 2001 From: Vlad Vissoultchev Date: Wed, 13 Apr 2016 14:32:51 +0300 Subject: Move utility functions `trimfront/back` to tccpp.c These are used in `libtcc.c` now and cannot remain in `tccpe.c` --- tccpe.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'tccpe.c') diff --git a/tccpe.c b/tccpe.c index eb13d2d..2484e4f 100644 --- a/tccpe.c +++ b/tccpe.c @@ -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) { -- cgit v1.3.1