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


_______________________________________________
M4-discuss mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/m4-discuss

Reply via email to