]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
m4: New macro m4_unquote
authorNiels Möller <nisse@lysator.liu.se>
Mon, 30 Nov 2020 20:20:42 +0000 (21:20 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 30 Nov 2020 20:20:42 +0000 (21:20 +0100)
ChangeLog
m4-utils.m4

index 67003aa45f17408f2f78aaac62ea4267d1789cfe..d3507d9987045f5861935d42e5b3ef03a273c696 100644 (file)
--- 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):
index 3ead365a49d4e3cb5d7dbc753868bbcad0feff14..3e25a51cfe181c55b4cead64a40cccd7e9bc7f38 100644 (file)
@@ -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