EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: macro substitution
From: [email protected] (William Lupton)
To: [email protected]
Date: Mon, 5 Feb 96 11:54:29 HST
Dear all,

  Many EPICS tools use a $(macro) syntax to substitute macros, and a
"macro1=value1,macro2=value2" syntax on tool invocation to set macro
values.

  The code to perform the substitutions exists in several places and
does not behave identically under various boundary conditions (one
thing I have noted recently is that "bill=,fred=xxx" does not substitute
an empty string for $(bill)). Also there are places where macro substitution
would be useful but, as far as I am aware, is not available, e.g. in
alh configuration files (currently we are using the C pre-processor here).

  I would like to propose:

a) providing a single library to handle definition of and substitution of
   macros with the $(macro) syntax

b) providing a standalone filter which can act as a pre-processor and which
   will support file inclusion and macro (re-)definition

c) migrating EPICS tools to use the (a) library

The routines in base/src/dbtools come close to (a) but they do not permit
macro (re-)definition.

  Any comments? I volunteer to solicit input and to do the work.

  William


Replies:
Re: macro substitution watson

Navigate by Date:
Prev: EPICS archive to DADiSP format? Leroy Rodriguez
Next: Re: macro substitution watson
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: EPICS archive to DADiSP format? Matthias Clausen DESY -MKV2/KRYK-
Next: Re: macro substitution watson
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·