From b24f1f6b1df3152b089bdab4732bea621aeb49f1 Mon Sep 17 00:00:00 2001 From: Christian Rinderknecht Date: Wed, 25 Mar 2020 18:52:23 +0100 Subject: [PATCH] Added support for -I CLI option (same behaviour as CPP). Comments are now recognised in accordance with the file extension. --- vendors/Preproc/EvalOpt.ml | 2 +- vendors/Preproc/Preproc.mli | 3 +- vendors/Preproc/Preproc.mll | 145 +++++++++++++++++++++------------ vendors/Preproc/PreprocMain.ml | 8 +- 4 files changed, 99 insertions(+), 59 deletions(-) diff --git a/vendors/Preproc/EvalOpt.ml b/vendors/Preproc/EvalOpt.ml index 99ffbe8bf..ea21bff44 100644 --- a/vendors/Preproc/EvalOpt.ml +++ b/vendors/Preproc/EvalOpt.ml @@ -41,7 +41,7 @@ let help () = printf "Usage: %s [