[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: |
Amaury Ampe |
Subject: |
Re: Can an M4-program read data out of an C-program? |
Date: |
Mon, 22 Mar 2010 10:59:22 +0100 |
User-agent: |
Internet Messaging Program (IMP) H3 (4.1.6) |
Quoting Raphael 'kena' Poss <address@hidden>:
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.