[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to examples/quote.m4 [branch-1_4]
From: |
Eric Blake |
Subject: |
Changes to examples/quote.m4 [branch-1_4] |
Date: |
Thu, 19 Oct 2006 16:12:48 +0000 |
CVSROOT: /sources/m4
Module name: m4
Branch: branch-1_4
Changes by: Eric Blake <ericb> 06/10/19 16:12:46
Index: examples/quote.m4
===================================================================
RCS file: examples/quote.m4
diff -N examples/quote.m4
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ examples/quote.m4 19 Oct 2006 16:12:46 -0000 1.1.2.1
@@ -0,0 +1,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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Changes to examples/quote.m4 [branch-1_4],
Eric Blake <=