diff lib-src/ebrowse.c @ 95480:1c16540a2329

* lib-src/ebrowse.c (xfree): Remove definition; s/xfree/free/
author Jim Meyering <jim@meyering.net>
date Mon, 02 Jun 2008 06:02:30 +0000
parents 9588c3703f38
children e8188ccf57c4
line wrap: on
line diff
--- a/lib-src/ebrowse.c	Mon Jun 02 06:00:54 2008 +0000
+++ b/lib-src/ebrowse.c	Mon Jun 02 06:02:30 2008 +0000
@@ -589,16 +589,6 @@
 }
 
 
-/* Like free but always check for null pointers..  */
-
-void
-xfree (p)
-     void *p;
-{
-  free (p);
-}
-
-
 /* Like strdup, but print an error and exit if not enough memory is
    available..  If S is null, return null.  */
 
@@ -2758,7 +2748,7 @@
           if (LOOKING_AT ('{') && id && cls)
 	    add_member_defn (cls, id, regexp, pos, hash, 0, sc, flags);
 
-	  xfree (id);
+	  free (id);
           id = NULL;
           sc = SC_MEMBER;
           break;
@@ -2837,7 +2827,7 @@
       print_info ();
     }
 
-  xfree (id);
+  free (id);
 }
 
 
@@ -3074,7 +3064,7 @@
 	    cls = add_sym (id, cls);
 
 	  *last_id = NULL;
-	  xfree (id);
+	  free (id);
 	  id = NULL;
 	  id_size = 0;
 	  MATCH ();
@@ -3277,7 +3267,7 @@
       print_info ();
     }
 
-  xfree (*id);
+  free (*id);
   *id = NULL;
   *cls = NULL;
 }
@@ -3330,7 +3320,7 @@
              `declare (X, Y)\n class A : ...'.  */
           if (id)
 	    {
-	      xfree (id);
+	      free (id);
 	      return;
 	    }
 
@@ -3424,7 +3414,7 @@
           if (!cls && id && LOOKING_AT ('{'))
 	    add_global_defn (id, regexp, pos, hash, 0, sc, flags);
 
-	  xfree (id);
+	  free (id);
           id = NULL;
           break;
         }
@@ -3480,7 +3470,7 @@
                     MATCH_IF ('}');
                   }
 
-		xfree (namespace_name);
+		free (namespace_name);
               }
           }
           break;