Replace pfff with flitter

This commit is contained in:
Joey Yakimowich-Payne 2018-06-04 13:03:46 +09:00
commit c8efc2a088
27 changed files with 295 additions and 293 deletions

View file

@ -1,2 +1,2 @@
config_pfff.cmo :
config_pfff.cmx :
config_flitter.cmo :
config_flitter.cmx :

View file

@ -6,7 +6,7 @@ TOP=..
##############################################################################
TARGET=lib
SRC= config_pfff.ml
SRC= config_flitter.ml
LIBS=
INCLUDEDIRS=../commons
@ -30,17 +30,17 @@ $(TARGET).cmxa: $(OPTOBJS) $(LIBS:.cma=.cmxa)
$(OCAMLOPT) -a -o $(TARGET).cmxa $(OPTOBJS)
config_pfff.ml:
@echo "config_pfff.ml is missing. Have you run ./configure?"
config_flitter.ml:
@echo "config_flitter.ml is missing. Have you run ./configure?"
@exit 1
distclean::
rm -f config_pfff.ml
rm -f config_flitter.ml
##############################################################################
# install
##############################################################################
LIBNAME=pfff-config
LIBNAME=flitter-config
EXPORTSRC=\
install-findlib: all all.opt

View file

@ -1,11 +1,11 @@
let version = "0.29"
let path =
try (Sys.getenv "PFFF_HOME")
try (Sys.getenv "FLITTER_HOME")
with Not_found->"./"
let std_xxx = ref (Filename.concat path "xxx.yyy")
let logger =
try Some (Sys.getenv "PFFF_LOGGER")
try Some (Sys.getenv "FLITTER_LOGGER")
with Not_found-> None