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
<1996>
1997
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
<1996>
1997
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
|