/[autoconf]/autoconf/lib/m4sugar/m4sugar.m4
ViewVC logotype

Diff of /autoconf/lib/m4sugar/m4sugar.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2.65 by eggert, Sun Apr 21 07:25:21 2002 UTC revision 2.66 by akim, Fri May 3 08:26:29 2002 UTC
# Line 437  m4_define([m4_map], Line 437  m4_define([m4_map],
437  m4_map([$1], m4_cdr($2))])])  m4_map([$1], m4_cdr($2))])])
438    
439    
440    # m4_map_sep(MACRO, SEPARATOR, LIST)
441    # ----------------------------------
442    # Invoke MACRO($1), SEPARATOR, MACRO($2), ..., MACRO($N) where $1, $2... $N
443    # are the elements of LIST (which can be lists themselves, for multiple
444    # arguments MACROs).
445    m4_define([m4_map_sep],
446    [m4_if([$3], [[]], [],
447           [$1(m4_fst($3))[]dnl
448    m4_if(m4_cdr($3),
449          [[]], [],
450          [$2])[]dnl
451    m4_map_sep([$1], [$2], m4_cdr($3))])])
452    
453    
454  ## ---------------------------------------- ##  ## ---------------------------------------- ##
455  ## 6. Enhanced version of some primitives.  ##  ## 6. Enhanced version of some primitives.  ##
456  ## ---------------------------------------- ##  ## ---------------------------------------- ##

Legend:
Removed from v.2.65  
changed lines
  Added in v.2.66

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26