]> Savannah Git Hosting - gnulib.git/commitdiff
* config/srclist.txt: Remove posix/regex_internal.c for now.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Oct 2019 20:17:05 +0000 (13:17 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Oct 2019 20:17:29 +0000 (13:17 -0700)
ChangeLog
config/srclist.txt
lib/regex_internal.c

index 877e275e751cb8e07891daac72cd568454b15925..d27674fa6ba65f72512f28eddd7de071535d4a22 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * config/srclist.txt: Remove posix/regex_internal.c for now.
+
 2019-10-13  Bruno Haible  <bruno@clisp.org>
 
        git-version-gen: Allow 'snapshot' as .tarball-version contents.
index c53fb90a85a60501c3819e6b59e220aa476377ee..e001d15c369b34d1316602fa84fbb043f217cff2 100644 (file)
@@ -55,7 +55,7 @@ $LIBCSRC malloc/scratch_buffer_set_array_size.c       lib/malloc
 #$LIBCSRC posix/regcomp.c              lib
 $LIBCSRC posix/regex.c                 lib
 $LIBCSRC posix/regex.h                 lib
-$LIBCSRC posix/regex_internal.c                lib
+#$LIBCSRC posix/regex_internal.c       lib
 #$LIBCSRC posix/regex_internal.h       lib
 #$LIBCSRC posix/regexec.c              lib
 $LIBCSRC time/timegm.c                 lib
index 99fbb26ecbab568d8fa2549dea299c2d74633975..6aa91160847707afb54518c3f145ee6cd8e03ed1 100644 (file)
@@ -212,7 +212,7 @@ build_wcs_buffer (re_string_t *pstr)
 {
 #ifdef _LIBC
   unsigned char buf[MB_LEN_MAX];
-  assert (MB_LEN_MAX >= pstr->mb_cur_max);
+  DEBUG_ASSERT (MB_LEN_MAX >= pstr->mb_cur_max);
 #else
   unsigned char buf[64];
 #endif
@@ -285,7 +285,7 @@ build_wcs_upper_buffer (re_string_t *pstr)
   size_t mbclen;
 #ifdef _LIBC
   char buf[MB_LEN_MAX];
-  assert (MB_LEN_MAX >= pstr->mb_cur_max);
+  DEBUG_ASSERT (pstr->mb_cur_max <= MB_LEN_MAX);
 #else
   char buf[64];
 #endif
@@ -685,9 +685,7 @@ re_string_reconstruct (re_string_t *pstr, Idx idx, int eflags)
                         pstr->valid_len - offset);
              pstr->valid_len -= offset;
              pstr->valid_raw_len -= offset;
-#if defined DEBUG && DEBUG
-             assert (pstr->valid_len > 0);
-#endif
+             DEBUG_ASSERT (pstr->valid_len > 0);
            }
        }
       else
@@ -941,10 +939,7 @@ re_string_context_at (const re_string_t *input, Idx idx, int eflags)
       Idx wc_idx = idx;
       while(input->wcs[wc_idx] == WEOF)
        {
-#if defined DEBUG && DEBUG
-         /* It must not happen.  */
-         assert (wc_idx >= 0);
-#endif
+         DEBUG_ASSERT (wc_idx >= 0);
          --wc_idx;
          if (wc_idx < 0)
            return input->tip_context;