preprocessor

simple preprocessor for any type of file
git clone https://noulin.net/git/preprocessor.git
Log | Files | Refs | LICENSE

commit de1d6251f1cb2ec23b9b5c4523c5f55758ea9d38
parent f6ef59eef0f97c0fc603272f7c019db42f5a9747
Author: Remy Noulin <loader2x@gmail.com>
Date:   Sat,  6 Jun 2020 12:33:52 +0200

fix bug, set commentConfig to null at the end of the preprocess function

to make it work when it is called a second time.

package.yml    | 2 +-
preprocessor.c | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)

Diffstat:
Mpackage.yml | 2+-
Mpreprocessor.c | 4+++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/package.yml b/package.yml @@ -1,6 +1,6 @@ --- name: preprocessor - version: 0.0.5 + version: 0.0.6 description: simple preprocessor for any type of file bin: ./preprocessor.c repository: diff --git a/preprocessor.c b/preprocessor.c @@ -284,7 +284,9 @@ smallArrayt *preprocess(char *filename) { lines = definePass(lines); lines = tagPass(lines); - freeManyS(dir, commentConfig, commentEndConfig); + free(dir); + freen(commentConfig); + freen(commentEndConfig); return lines; }