* modules/exclude (Depends-on): Depend on verify.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 2 Oct 2005 22:44:15 +0000 (22:44 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 2 Oct 2005 22:44:15 +0000 (22:44 +0000)
* modules/strtoimax (Depends-on): Likewise.
* modules/utimecmp (Depends-on): Likewise.
* lib/exclude.c: Include verify.h.
(verify): Remove.  All callers changed to use verify.h's version.
* lib/strtoimax.c: Likewise.
* lib/utimecmp.c: Likewis.e

ChangeLog
lib/exclude.c
lib/strtoimax.c
lib/utimecmp.c
m4/ChangeLog
modules/exclude
modules/strtoimax
modules/utimecmp

index dc84fd14a26e8b739e0c1555c821adfef4550555..b3593068f828b4daed360d1dd338d1ee0575c29e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * modules/exclude (Depends-on): Depend on verify.
+       * modules/strtoimax (Depends-on): Likewise.
+       * modules/utimecmp (Depends-on): Likewise.
+
 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
 
        * modules/regex (Depends-on): Add strcase.
index de1a5c3f3b6a04f629a1767263275be4b18a7688..6a0c14974dd425c96644e875d5a079066bce0275 100644 (file)
@@ -37,6 +37,7 @@
 #include "fnmatch.h"
 #include "strcase.h"
 #include "xalloc.h"
+#include "verify.h"
 
 #if USE_UNLOCKED_IO
 # include "unlocked-io.h"
@@ -54,9 +55,6 @@ is_space (unsigned char c)
   return IN_CTYPE_DOMAIN (c) && isspace (c);
 }
 
-/* Verify a requirement at compile-time (unlike assert, which is runtime).  */
-#define verify(name, assertion) struct name { char a[(assertion) ? 1 : -1]; }
-
 /* Non-GNU systems lack these options, so we don't need to check them.  */
 #ifndef FNM_CASEFOLD
 # define FNM_CASEFOLD 0
@@ -65,11 +63,10 @@ is_space (unsigned char c)
 # define FNM_LEADING_DIR 0
 #endif
 
-verify (EXCLUDE_macros_do_not_collide_with_FNM_macros,
-       (((EXCLUDE_ANCHORED | EXCLUDE_INCLUDE | EXCLUDE_WILDCARDS)
-         & (FNM_PATHNAME | FNM_NOESCAPE | FNM_PERIOD | FNM_LEADING_DIR
-            | FNM_CASEFOLD))
-        == 0));
+verify (((EXCLUDE_ANCHORED | EXCLUDE_INCLUDE | EXCLUDE_WILDCARDS)
+        & (FNM_PATHNAME | FNM_NOESCAPE | FNM_PERIOD | FNM_LEADING_DIR
+           | FNM_CASEFOLD))
+       == 0);
 
 /* An exclude pattern-options pair.  The options are fnmatch options
    ORed with EXCLUDE_* options.  */
index 43a690d24be1f8da514cbd31f1148bb57a6d347c..a15b84af3a7cf4ec0dd97f1c489aa85b94494a62 100644 (file)
@@ -32,8 +32,7 @@
 
 #include <stdlib.h>
 
-/* Verify a requirement at compile-time (unlike assert, which is runtime).  */
-#define verify(name, assertion) struct name { char a[(assertion) ? 1 : -1]; }
+#include "verify.h"
 
 #ifdef UNSIGNED
 # ifndef HAVE_DECL_STRTOULL
@@ -68,15 +67,13 @@ INT
 strtoimax (char const *ptr, char **endptr, int base)
 {
 #if HAVE_LONG_LONG
-  verify (size_is_that_of_long_or_long_long,
-         (sizeof (INT) == sizeof (long int)
-          || sizeof (INT) == sizeof (long long int)));
+  verify (sizeof (INT) == sizeof (long int)
+         || sizeof (INT) == sizeof (long long int));
 
   if (sizeof (INT) != sizeof (long int))
     return strtoll (ptr, endptr, base);
 #else
-  verify (size_is_that_of_long,
-         sizeof (INT) == sizeof (long int));
+  verify (sizeof (INT) == sizeof (long int));
 #endif
 
   return strtol (ptr, endptr, base);
index 7308929f43ed70b3567fbbc297a59e1b194acb7f..9d07e9fd3ea3ad5f794ecb20b7025eda4c997b31 100644 (file)
 #include "stat-time.h"
 #include "timespec.h"
 #include "utimens.h"
+#include "verify.h"
 #include "xalloc.h"
 
-/* Verify a requirement at compile-time (unlike assert, which is runtime).  */
-#define verify(name, assertion) struct name { char a[(assertion) ? 1 : -1]; }
-
 #ifndef MAX
 # define MAX(a, b) ((a) > (b) ? (a) : (b))
 #endif
@@ -139,8 +137,8 @@ utimecmp (char const *dst_name,
 
      time_t might be unsigned.  */
 
-  verify (time_t_is_integer, TYPE_IS_INTEGER (time_t));
-  verify (twos_complement_arithmetic, TYPE_TWOS_COMPLEMENT (int));
+  verify (TYPE_IS_INTEGER (time_t));
+  verify (TYPE_TWOS_COMPLEMENT (int));
 
   /* Destination and source time stamps.  */
   time_t dst_s = dst_stat->st_mtime;
index 41cee1be13e6815ca750f5f85d02bacb031de768..6c1f166a2fa935949fa0065309c4e12a5090987c 100644 (file)
@@ -1,3 +1,23 @@
+2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Sync from coreutils.
+       * openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
+       * ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
+       defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
+       ULLONG_MAX doesn't work with 2.7.2.1.
+
+2005-10-02  Jim Meyering  <jim@meyering.net>
+
+       Sync from coreutils.
+       * utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
+       from glibc-2.2.5 that fails for read-only files.
+
+2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
+
+       Sync from coreutils.
+       * chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
+       against `yes', rather than just testing for nonempty.
+
 2005-10-01  Simon Josefsson  <jas@extundo.com>
 
        * getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
index 976e4942635e1af084778ba1a8aa0ff94f960d76..78efea5d7e5cf83fb8b944da8bcb56f3f6ab8dd5 100644 (file)
@@ -11,6 +11,7 @@ xalloc
 strcase
 fnmatch-gnu
 stdbool
+verify
 
 configure.ac:
 gl_EXCLUDE
index c63319ee9ac4089cf9b603276244e60213d238b7..dc48d2d72e101173348f63dcae33aa75e73caad9 100644 (file)
@@ -11,6 +11,7 @@ m4/strtoimax.m4
 
 Depends-on:
 strtoll
+verify
 
 configure.ac:
 gl_FUNC_STRTOIMAX
@@ -24,4 +25,3 @@ GPL
 
 Maintainer:
 Paul Eggert
-
index 49d4411d7ec5a4acdb01a6ab4585e420f521aa7e..6cd77faf9f355d60314c97dba228a33be5747b88 100644 (file)
@@ -14,6 +14,7 @@ timespec
 utimens
 xalloc
 stdbool
+verify
 
 configure.ac:
 gl_UTIMECMP