pp

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

pp.c (396B)


      1 #! /usr/bin/env sheepy
      2 
      3 #include "libsheepyObject.h"
      4 #include "shpPackages/preprocessor/preprocessor.h"
      5 
      6 int argc; char **argv;
      7 
      8 int main(int ARGC, char** ARGV) {
      9 
     10   argc = ARGC; argv = ARGV;
     11 
     12   initLibsheepy(argv[0]);
     13 
     14   if (argc < 2) {
     15     puts(BLD RED "Missing file name to preprocess." RST);
     16   }
     17 
     18   smallArrayt *a = preprocess(argv[1]);
     19   logG(a);
     20   terminateG(a);
     21 
     22   finalizeLibsheepy();
     23 
     24 }