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: Re: macro substitution
From: [email protected] (William Lupton)
To: [email protected]
Date: Tue, 6 Feb 96 12:45:04 HST
Dear all,

I'm thinking in terms of a library with prototypes something like:

a) long macOpen ( MAC_HANDLE *handle );
b) long macIoctl( MAC_HANDLE  handle, char *name, void *value );
c) long macRead ( MAC_HANDLE  handle, char *name, char *value, long maxlen );
d) long macWrite( MAC_HANDLE  handle, char *name, char *value );
e) long macClose( MAC_HANDLE  handle );

f) long macParse( MAC_HANDLE handle, char *defns );
g) long macSubst( MAC_HANDLE handle, char *src, char *dest, long maxlen );

h) long macReport( MAC_HANDLE handle );

This library could be used directly by applications which need to support
macro substitution.

A "macsub" (or "mactool"?) application would be written which would use the
above library and use a command like:

macsub a=b,c=d e=f -Iaaa -Ibbb

to parse a file like:

# comment
%include filename
%xxx = ppp
%yyy = $(xxx)
<arbitrary text containing macro references>

There would also be options to read and write specified files, control the
comment character, control the command prefix, change the macro substitution
characters etc.

Syntax would be a loose subset of corresponding GNU make syntax.

Any comments?

William


Replies:
Re: macro substitution John R. Winans

Navigate by Date:
Prev: EPICS PLC Support Richard J. Sachtschale
Next: Re: macro substitution John R. Winans
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: macro substitution William Lupton
Next: Re: macro substitution John R. Winans
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 ·