pp

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

commit 0fbf092230343eee53a35832b9d85fedad84a37d
parent 0b4f3ff0309bd5e4b82b22cfa74f3ba711d12739
Author: Remy Noulin <loader2x@gmail.com>
Date:   Sun, 20 May 2018 10:28:02 +0200

pp preprocessor command

package.yml | 18 ++++++++++++++++++
pp.c        | 24 ++++++++++++++++++++++++
2 files changed, 42 insertions(+)

Diffstat:
Apackage.yml | 18++++++++++++++++++
App.c | 24++++++++++++++++++++++++
2 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/package.yml b/package.yml @@ -0,0 +1,18 @@ +--- + name: pp + version: 0.0.1 + description: "simple preprocessor for any type of file (command)" + bin: ./pp.c + repository: + type: git + url: git+https://github.com/RemyNoulin/pp.git + keywords: + - utility + - command + author: Remy + license: MIT + bugs: + url: https://github.com/RemyNoulin/pp/issues + homepage: https://github.com/RemyNoulin/pp#readme + dependencies: + preprocessor: diff --git a/pp.c b/pp.c @@ -0,0 +1,24 @@ +#! /usr/bin/env sheepy + +#include "libsheepyObject.h" +#include "shpPackages/preprocessor/preprocessor.h" + +int argc; char **argv; + +int main(int ARGC, char** ARGV) { + + argc = ARGC; argv = ARGV; + + initLibsheepy(argv[0]); + + if (argc < 2) { + puts(BLD RED "Missing file name to preprocess." RST); + } + + smallArrayt *a = preprocess(argv[1]); + logG(a); + terminateG(a); + + finalizeLibsheepy(); + +}