Mark set_uint32 function as 'inline'.
authorBruno Haible <bruno@clisp.org>
Thu, 31 Jan 2008 22:37:55 +0000 (23:37 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 31 Jan 2008 22:37:55 +0000 (23:37 +0100)
ChangeLog
lib/md4.c
lib/md5.c
lib/sha1.c
m4/md4.m4
m4/md5.m4
m4/sha1.m4

index 8faa77c467a196b3b0fa6c893689745cd1a88f17..4f61cc1836db4aa139522ef793d2fd4800c1e80d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-01-31  Bruno Haible  <bruno@clisp.org>
+
+       * lib/md4.c (set_uint32): Mark as inline.
+       * lib/md5.c (set_uint32): Likewise.
+       * lib/sha1.c (set_uint32): Likewise.
+       * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
+       * m4/md5.m4 (gl_MD5): Likewise.
+       * m4/sha1.m4 (gl_SHA1): Likewise.
+
 2008-01-31  Jim Meyering  <meyering@redhat.com>
 
        Use "sizeof VAR", rather than a literal "4".
index 3d2c17a9f2a20ad1665b54f366a533f1e5e5357e..e3484171de767e7c92bba109ebd27beb16798593 100644 (file)
--- a/lib/md4.c
+++ b/lib/md4.c
@@ -67,7 +67,7 @@ md4_init_ctx (struct md4_ctx *ctx)
 /* Copy the 4 byte value from v into the memory location pointed to by *cp,
    If your architecture allows unaligned access this is equivalent to
    * (uint32_t *) cp = v  */
-static void
+static inline void
 set_uint32 (char *cp, uint32_t v)
 {
   memcpy (cp, &v, sizeof v);
index 0c8bc24dbd56b1c3ebd8bf3b638db8ae8162666a..2213dc1206581b936641647c1826cb8d6328bc59 100644 (file)
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -83,7 +83,7 @@ md5_init_ctx (struct md5_ctx *ctx)
 /* Copy the 4 byte value from v into the memory location pointed to by *cp,
    If your architecture allows unaligned access this is equivalent to
    * (uint32_t *) cp = v  */
-static void
+static inline void
 set_uint32 (char *cp, uint32_t v)
 {
   memcpy (cp, &v, sizeof v);
index a955d85e3fb0400f6dc2ffe73d8fc7b00425f67c..9c6c7ae3933d7b45a945a2404414b01bd2e4e95d 100644 (file)
@@ -70,7 +70,7 @@ sha1_init_ctx (struct sha1_ctx *ctx)
 /* Copy the 4 byte value from v into the memory location pointed to by *cp,
    If your architecture allows unaligned access this is equivalent to
    * (uint32_t *) cp = v  */
-static void
+static inline void
 set_uint32 (char *cp, uint32_t v)
 {
   memcpy (cp, &v, sizeof v);
index 22a7bdee3e49c8def072103e8ded80e025063eb4..dda2b1b911f7a656ae24cd4fdbce74638f9bbb64 100644 (file)
--- a/m4/md4.m4
+++ b/m4/md4.m4
@@ -1,5 +1,5 @@
-# md4.m4 serial 2
-dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+# md4.m4 serial 3
+dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -10,4 +10,5 @@ AC_DEFUN([gl_MD4],
 
   dnl Prerequisites of lib/md4.c.
   AC_REQUIRE([AC_C_BIGENDIAN])
+  AC_REQUIRE([AC_C_INLINE])
 ])
index 5a1f8755a0de1f4c5226c3d6689ea1b49967a143..e4d00f3fee949a65a451b1c5fa5b30193226ea4b 100644 (file)
--- a/m4/md5.m4
+++ b/m4/md5.m4
@@ -1,5 +1,5 @@
-# md5.m4 serial 9
-dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+# md5.m4 serial 10
+dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -10,5 +10,6 @@ AC_DEFUN([gl_MD5],
 
   dnl Prerequisites of lib/md5.c.
   AC_REQUIRE([AC_C_BIGENDIAN])
+  AC_REQUIRE([AC_C_INLINE])
   :
 ])
index c6e6184b2c331720b78d74cb19d9a3833b6117c3..12711fae262ede40db4f3d7f6c338a1f1a2972f2 100644 (file)
@@ -1,5 +1,5 @@
-# sha1.m4 serial 7
-dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+# sha1.m4 serial 8
+dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -10,5 +10,6 @@ AC_DEFUN([gl_SHA1],
 
   dnl Prerequisites of lib/sha1.c.
   AC_REQUIRE([AC_C_BIGENDIAN])
+  AC_REQUIRE([AC_C_INLINE])
   :
 ])