summaryrefslogtreecommitdiff
path: root/examples/quote.m4
blob: fae52c3ee7990f10a69c76b4ffd2c20297560e21 (plain)
1
2
3
4
5
6
7
8
9
divert(`-1')
# quote(args) - convert args to single-quoted string
define(`quote', `ifelse(`$#', `0', `', ``$*'')')
# dquote(args) - convert args to quoted list of quoted strings
define(`dquote', ``$@'')
# dquote_elt(args) - convert args to list of double-quoted strings
define(`dquote_elt', `ifelse(`$#', `0', `', `$#', `1', ```$1''',
                             ```$1'',$0(shift($@))')')
divert`'dnl