diff src/sysdep.c @ 1726:a8d8f419b459

[xemacs-hg @ 2003-09-30 15:26:34 by james] Add type information to xfree to avoid alias creation.
author james
date Tue, 30 Sep 2003 15:27:01 +0000
parents 4542b72c005e
children 9c872f33ecbe
line wrap: on
line diff
--- a/src/sysdep.c	Mon Sep 29 21:53:04 2003 +0000
+++ b/src/sysdep.c	Tue Sep 30 15:27:01 2003 +0000
@@ -3003,7 +3003,7 @@
 	{
 	  Ibyte *retin;
 	  TSTR_TO_C_STRING_MALLOC (ret, retin);
-	  xfree (cwd);
+	  xfree (cwd, Extbyte *);
 	  return retin;
 	}
 #else
@@ -3012,7 +3012,7 @@
 	{
 	  Ibyte *retin;
 	  EXTERNAL_TO_C_STRING_MALLOC (ret, retin, Qfile_name);
-	  xfree (cwd);
+	  xfree (cwd, Extbyte *);
 	  return retin;
 	}
 #endif /* WIN32_NATIVE */
@@ -3024,7 +3024,7 @@
 	}
       else
 	{
-	  xfree (cwd);
+	  xfree (cwd, Extbyte *);
 	  return NULL;
 	}
     }
@@ -3253,15 +3253,15 @@
     return NULL;
 
   if (cached_pwd.pw_name)
-    xfree (cached_pwd.pw_name);
+    xfree (cached_pwd.pw_name, char *);
   if (cached_pwd.pw_passwd)
-    xfree (cached_pwd.pw_passwd);
+    xfree (cached_pwd.pw_passwd, char *);
   if (cached_pwd.pw_gecos)
-    xfree (cached_pwd.pw_gecos);
+    xfree (cached_pwd.pw_gecos, char *);
   if (cached_pwd.pw_dir)
-    xfree (cached_pwd.pw_dir);
+    xfree (cached_pwd.pw_dir, char *);
   if (cached_pwd.pw_shell)
-    xfree (cached_pwd.pw_shell);
+    xfree (cached_pwd.pw_shell, char *);
 
   cached_pwd = *pwd;
   if (cached_pwd.pw_name)
@@ -3329,7 +3329,7 @@
   if (!str) /* can happen on MS Windows */
     return (Ibyte *) "Sun Jan 01 00:00:00 1970";
   if (ctime_static)
-    xfree (ctime_static);
+    xfree (ctime_static, Ibyte *);
   EXTERNAL_TO_C_STRING_MALLOC (str, ctime_static, Qnative);
   return ctime_static;
 }
@@ -3890,9 +3890,9 @@
      in one block.  Why in the world are we freeing this ourselves
      anyway?  */
 #if ! (defined (sun) && defined (USG5_4))
-  xfree ((char *) dirp->dd_buf); /* directory block defined in <dirent.h> */
+  xfree (dirp->dd_buf, char *); /* directory block defined in <dirent.h> */
 #endif
-  xfree ((char *) dirp);
+  xfree (dirp, DIR *);
   return (rtnval);
 }
 #endif /* BROKEN_CLOSEDIR or not HAVE_CLOSEDIR */
@@ -3929,7 +3929,7 @@
 closedir (DIR *dirp)		/* stream from opendir */
 {
   retry_close (dirp->dd_fd);
-  xfree (dirp);
+  xfree (dirp, DIR *);
 }