From 4d1a3a99f795ebcdf97057ecc0c8cb80664be507 Mon Sep 17 00:00:00 2001 From: Zeex Date: Sun, 31 Dec 2017 18:27:58 +0600 Subject: [PATCH] Revert "Merge pull request #205 from VVWVV/concat_op" This reverts commit 82dd745f90b9447ac2f196c31642660a7488453f, reversing changes made to 2a930cedde954831eebee1a221a297e1019cb4df. --- source/compiler/sc2.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/source/compiler/sc2.c b/source/compiler/sc2.c index 6766ee1..306c908 100644 --- a/source/compiler/sc2.c +++ b/source/compiler/sc2.c @@ -1840,23 +1840,6 @@ static void substallpatterns(unsigned char *line,int buffersize) } /* while */ } -static void ppconcat(unsigned char *line) -{ - unsigned char *c,*p,*b; - for (c=line; *c!='\0'; ++c) { - if (is_startstring(c)) - c=(unsigned char *)skipstring(c); - if (*c=='#' && *(c+1)=='#') { - p=c-1; - b=c+2; - while (*p==' ') - p--; - while (*b==' ') - b++; - strcpy((char *)p+1,(char *)b); - } /* if */ - } /* for */ -} #endif /* preprocess @@ -1888,7 +1871,6 @@ SC_FUNC void preprocess(void) if (iscommand==CMD_NONE) { assert(lptr!=term_expr); substallpatterns(pline,sLINEMAX); - ppconcat(pline); lptr=pline; /* reset "line pointer" to start of the parsing buffer */ } /* if */ #endif