Eric Blake wrote: > According to Paolo Bonzini on 11/14/2008 12:59 AM: >> Maybe a > >> m4_defun([AS_FOREACH], [ >> [m4_pushdef([_AS_VAR_$1], m4_quote(m4_tolower([$1])) >> m4_pushdef([$1], m4_if(m4_index(m4_translit([$2], [ ][ >> $`], [ ]), [ ]), [-1], [[$2]], [[$_AS_VAR_$1])]]))]dnl >> for _AS_VAR_$1] in $2; do >> $3 >> done >> _m4_popdef([_AS_VAR_$1]) > >> could help (untested and probably wrong)? > > Like this?
Yes, looks nice. Paolo