"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/utilities.m4" between
argbash-2.9.0.tar.gz and argbash-2.10.0.tar.gz

About: argbash is a bash code generator that can assist you in writing scripts that accept arguments.

utilities.m4  (argbash-2.9.0):utilities.m4  (argbash-2.10.0)
skipping to change at line 287 skipping to change at line 287
m4_define([_LIST_LONGEST_TEXT_LENGTH], [m4_do( m4_define([_LIST_LONGEST_TEXT_LENGTH], [m4_do(
[m4_pushdef([_longest_label_len], 0)], [m4_pushdef([_longest_label_len], 0)],
[m4_list_foreach([$1], [_item], [m4_if(m4_eval(_longest_label_len < m4_le n(_item)), 1, [m4_define([_longest_label_len], m4_len(_item))])])], [m4_list_foreach([$1], [_item], [m4_if(m4_eval(_longest_label_len < m4_le n(_item)), 1, [m4_define([_longest_label_len], m4_len(_item))])])],
[_longest_label_len], [_longest_label_len],
[m4_popdef([_longest_label_len])], [m4_popdef([_longest_label_len])],
)]) )])
m4_define([_CAPITALIZE], [m4_translit([[$1]], [a-z], [A-Z])]) m4_define([_CAPITALIZE], [m4_translit([[$1]], [a-z], [A-Z])])
dnl dnl
dnl $1: The message - will be double-quoted
dnl $2: The return code (default = 1)
m4_define([_INLINE_DIE_BLOCK], [m4_do(
[[{ echo "$1" >&2; exit ]m4_default_quoted([$2], 1); }],
)])
dnl
dnl $1: What to underline dnl $1: What to underline
dnl $2: By what to underline dnl $2: By what to underline
dnl $3: By what to overline (optional) dnl $3: By what to overline (optional)
m4_define([UNDERLINE], [m4_do( m4_define([UNDERLINE], [m4_do(
[m4_if(m4_len([$1]), 0, , [m4_if([$3], , , [m4_do( [m4_if(m4_len([$1]), 0, , [m4_if([$3], , , [m4_do(
[m4_for(idx, 1, m4_len([$1]), 1, [$3])], [m4_for(idx, 1, m4_len([$1]), 1, [$3])],
[_ENDL_()], [_ENDL_()],
)])])], )])])],
[[$1]], [[$1]],
[_ENDL_()], [_ENDL_()],
 End of changes. 1 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)