[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can an M4-program read data out of an C-program?
From: |
Raphael 'kena' Poss |
Subject: |
Re: Can an M4-program read data out of an C-program? |
Date: |
Mon, 22 Mar 2010 10:43:50 +0100 |
Op 22 mrt 2010, om 10:40 heeft Amaury Ampe het volgende geschreven:
> Thanks a lot for your respons! It helps me a great deal on the way to a
> solution.
> The problem is that I have to transfer about a 120 values. Is it possible to
> do this with arrays or so? Or do I have to give each one an individual name
> and transfer them individualy?
you can dump the values in a file, with the following format:
m4_define([NAME1], [val1...])
m4_define([NAME2], [val2...])
m4_define([NAME3], [val3...])
Then in your m4 code you can m4_include() this file, and it will make the
macros visible to your generating macros.
Hope this helps
--
Raphael 'kena' Poss · address@hidden · +31 20 525 7559
UvA · FNWI · IvI · CSA · 1098XG 107 Amsterdam (NL)
z = \f. (\x. f (\y. x x y)) (\x. f (\y. x x y))
There is no spoon, only fork() and vfork().