From 8ed2836ef8cc31e069589cd2810ee040d955a105 Mon Sep 17 00:00:00 2001 From: Martin Koegler Date: Sun, 15 Nov 2009 17:12:24 +0100 Subject: [PATCH] Use CPP for variable name generation Signed-off-by: Martin Koegler --- eibd/client/php/Makefile.am | 2 +- eibd/client/php/arg.def | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/eibd/client/php/Makefile.am b/eibd/client/php/Makefile.am index 3e6617f..87a2c61 100644 --- a/eibd/client/php/Makefile.am +++ b/eibd/client/php/Makefile.am @@ -12,7 +12,7 @@ EIBConnection.post : EIBConnection.pre result.inc @AMDEP_TRUE@-@am__include@ @am__quote@./$(DEPDIR)/EIBConnection.Po@am__quote@ EIBConnection.php : EIBConnection.post - sed -e 's/PAR \?(\([A-Za-z][A-Za-z0-9_]*\))/$$\1/g' $< |sed -e 's/PAR \?(\([0-9]*\))/\1/g' > $@ + cat $< > $@ $(INDENT) $@ || /bin/true sed -i -e 's/== =/===/g' $@ sed -i -e 's/= &/=\& /g' $@ diff --git a/eibd/client/php/arg.def b/eibd/client/php/arg.def index c96a848..3ba4e07 100644 --- a/eibd/client/php/arg.def +++ b/eibd/client/php/arg.def @@ -27,6 +27,8 @@ EIBC_LICENSE( */ ) +#define PAR(A) $ ## A + #define AGARG_NONE #define AGARG_BOOL(name, args) PAR(name) KAG ## args #define AGARG_INBUF(name, args) PAR(name) KAG ## args -- 2.11.4.GIT