[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how 2 manage arrays & stack conflicts in m4?
From: |
Stepan Kasal |
Subject: |
Re: how 2 manage arrays & stack conflicts in m4? |
Date: |
Sun, 7 Aug 2005 09:41:48 +0200 |
User-agent: |
Mutt/1.4.1i |
Hello,
On Sat, Aug 06, 2005 at 06:17:42PM -0700, OpenMacNews wrote:
> define([MY_HOST_ARRAY], [defn(format([[array[%d]]], [$1]))])dnl
> define([SET_HOST_ARRAY], [define(format([[array[%d]]], [$1]), [$2])])dnl
>
> define([MY_IP_ARRAY], [defn(format([[array[%d]]], [$1]))])dnl
> define([SET_IP_ARRAY], [define(format([[array[%d]]], [$1]), [$2])])dnl
both pairs of macros access the same array. Try:
define([MY_HOST_ARRAY], [defn(format([[host_array[%d]]], [$1]))])dnl
define([SET_HOST_ARRAY], [define(format([[host_array[%d]]], [$1]),
[$2])])dnl
define([MY_IP_ARRAY], [defn(format([[ip_array[%d]]], [$1]))])dnl
define([SET_IP_ARRAY], [define(format([[ip_array[%d]]], [$1]), [$2])])dnl
Have a nice day,
Stepan