summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2020-11-30 21:20:42 +0100
committerNiels Möller <nisse@lysator.liu.se>2020-11-30 21:20:42 +0100
commitf22094297b830d0f2aa721b861469334f9856408 (patch)
treec9f85480c447d3690e5766eeef3c6cd678c9ec45
parentefdd88ec59d2653bda53070448c8eb1889ca3544 (diff)
downloadnettle-f22094297b830d0f2aa721b861469334f9856408.tar.gz
m4: New macro m4_unquote
-rw-r--r--ChangeLog3
-rw-r--r--m4-utils.m49
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 67003aa4..d3507d99 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2020-11-30 Niels Möller <nisse@lysator.liu.se>
+ * m4-utils.m4 (m4_unquote): New macro, copied from GMP's
+ mpn/asm-defs.m4.
+
* chacha-crypt.c: (_nettle_chacha_crypt_4core)
(_nettle_chacha_crypt32_4core): New functions.
(_nettle_chacha_crypt_2core, _nettle_chacha_crypt32_2core):
diff --git a/m4-utils.m4 b/m4-utils.m4
index 3ead365a..3e25a51c 100644
--- a/m4-utils.m4
+++ b/m4-utils.m4
@@ -312,6 +312,15 @@ dnl --------------------------------------------------------------------------
dnl Various generic m4 things.
+dnl Usage: m4_unquote(macro)
+dnl
+dnl Allow the argument text to be re-evaluated. This is useful for "token
+dnl pasting" like m4_unquote(foo`'bar).
+
+define(m4_unquote,
+m4_assert_onearg()
+`$1')
+
dnl Usage: m4_length(string)
dnl