changeset 83475:88cd30b5064d

Fix compilation. * src/regex.c (extend_range_table_work_area, regex_compile, fastmap): Revert previous unnecessary changes. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-515
author Karoly Lorentey <lorentey@elte.hu>
date Mon, 20 Feb 2006 16:35:38 +0000
parents d08a7ef0cb8a
children 866effff65a4
files src/regex.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/regex.c	Mon Feb 20 16:30:15 2006 +0000
+++ b/src/regex.c	Mon Feb 20 16:35:38 2006 +0000
@@ -2067,10 +2067,10 @@
   work_area->allocated += 16 * sizeof (int);
   if (work_area->table)
     work_area->table
-      = (int *) xrealloc (work_area->table, work_area->allocated);
+      = (int *) realloc (work_area->table, work_area->allocated);
   else
     work_area->table
-      = (int *) xmalloc (work_area->allocated);
+      = (int *) malloc (work_area->allocated);
 }
 
 #ifdef emacs
@@ -3608,11 +3608,11 @@
 
 	if (! fail_stack.stack)
 	  fail_stack.stack
-	    = (fail_stack_elt_t *) xmalloc (fail_stack.size
+	    = (fail_stack_elt_t *) malloc (fail_stack.size
 					    * sizeof (fail_stack_elt_t));
 	else
 	  fail_stack.stack
-	    = (fail_stack_elt_t *) xrealloc (fail_stack.stack,
+	    = (fail_stack_elt_t *) realloc (fail_stack.stack,
 					     (fail_stack.size
 					      * sizeof (fail_stack_elt_t)));
       }
@@ -6292,14 +6292,14 @@
   preg->used = 0;
 
   /* Try to allocate space for the fastmap.  */
-  preg->fastmap = (char *) xmalloc (1 << BYTEWIDTH);
+  preg->fastmap = (char *) malloc (1 << BYTEWIDTH);
 
   if (cflags & REG_ICASE)
     {
       unsigned i;
 
       preg->translate
-	= (RE_TRANSLATE_TYPE) xmalloc (CHAR_SET_SIZE
+	= (RE_TRANSLATE_TYPE) malloc (CHAR_SET_SIZE
 				       * sizeof (*(RE_TRANSLATE_TYPE)0));
       if (preg->translate == NULL)
 	return (int) REG_ESPACE;