Index: mttroot/mtt/bin/trans/numpar_txt2c ================================================================== --- mttroot/mtt/bin/trans/numpar_txt2c +++ mttroot/mtt/bin/trans/numpar_txt2c @@ -13,10 +13,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +# Revision 1.4 1997/05/15 08:33:07 peterg +# Declare state array (x). +# # Revision 1.3 1997/05/03 15:01:42 peterg # Don't write out RCS headers. # # Revision 1.2 1997/05/01 08:35:18 peterg # # is now the comment symbol in the .txt file @@ -48,8 +51,10 @@ #Write out the variables in c format. awk -F# '{ if (NF<2) print $1 if (NF>1) print $1 "/* " $2 " */" -}' $1_numpar.txt >> $1_numpar.c -echo '}' >> $1_numpar.c +}' $1_numpar.txt | sed 's/(\([0-9]*\))/[\1]/' >> $1_numpar.c + +echo '}' >> $1_numpar.c +