Mercurial > hg > xemacs-beta
diff src/nt.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 | f0af455e89d9 |
children | 04bc9d2f42c7 |
line wrap: on
line diff
--- a/src/nt.c Mon Sep 29 21:53:04 2003 +0000 +++ b/src/nt.c Tue Sep 30 15:27:01 2003 +0000 @@ -338,16 +338,16 @@ *p++ = '\\'; eicat_ch (o, '\\'); } - xfree (component); + xfree (component, Ibyte *); } else { - xfree (full); + xfree (full, Ibyte *); return 0; } } - xfree (full); + xfree (full, Ibyte *); return eicpyout_malloc (o, 0); } @@ -394,7 +394,8 @@ &cbData) == ERROR_SUCCESS) return (lpvalue); - if (lpvalue) xfree (lpvalue); + if (lpvalue) + xfree (lpvalue, LPBYTE); RegCloseKey (hrootkey); } @@ -411,7 +412,8 @@ &cbData) == ERROR_SUCCESS) return (lpvalue); - if (lpvalue) xfree (lpvalue); + if (lpvalue) + xfree (lpvalue, LPBYTE); RegCloseKey (hrootkey); } @@ -494,7 +496,7 @@ eputenv (env_vars[i], (CIbyte *) envval); } - xfree (lpval); + xfree (lpval, LPBYTE); } } } @@ -703,8 +705,8 @@ } else { - xfree (info->name); - xfree (info->type); + xfree (info->name, Ibyte *); + xfree (info->type, Ibyte *); } TSTR_TO_C_STRING_MALLOC (name, info->name); @@ -826,7 +828,7 @@ return NULL; if (dir_pathname) - xfree (dir_pathname); + xfree (dir_pathname, Ibyte *); dir_pathname = qxestrdup (filename); return dirp; @@ -848,7 +850,7 @@ retval = close_unc_volume (wnet_enum_handle); wnet_enum_handle = INVALID_HANDLE_VALUE; } - xfree (dirp); + xfree (dirp, DIR *); return retval; } @@ -905,7 +907,7 @@ eicpy_rawz (found, val); if (need_to_free) - xfree (val); + xfree (val, Ibyte *); if (!NILP (Vmswindows_downcase_file_names)) eilwr (found); @@ -1750,7 +1752,7 @@ else cwdext = _getdcwd (drivelet, NULL, 0); TSTR_TO_C_STRING_MALLOC (cwdext, cwd); - xfree (cwdext); + xfree (cwdext, Extbyte *); return cwd; } @@ -2041,8 +2043,8 @@ canon = mswindows_canonicalize_filename (longname); ret = build_intstring (canon); - xfree (canon); - xfree (longname); + xfree (canon, Ibyte *); + xfree (longname, Ibyte *); return ret; }