Re: Can an M4-program read data out of an C-program?
Amaury Ampe <[email protected]>
| Newsgroups | gmane.comp.gnu.m4.general |
|---|---|
| Message-ID | <[email protected]> |
Quoting Raphael 'kena' Poss <[email protected]>: > 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. Is this done by using the sprintf command or can I just write it like that in my C-program? Can I write something like float a[10]; m4_define([NAME1],a); or do I have to write m4_define([NAME],[a[1],a[2],...,a[10]]); ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.