Mercurial > hg > xemacs-beta
comparison src/doc.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 | 21549d437f09 |
comparison
equal
deleted
inserted
replaced
1725:7ff8f4d70aec | 1726:a8d8f419b459 |
---|---|
168 Lstream_delete (XLSTREAM (instream)); | 168 Lstream_delete (XLSTREAM (instream)); |
169 Lstream_delete (XLSTREAM (fdstream)); | 169 Lstream_delete (XLSTREAM (fdstream)); |
170 } | 170 } |
171 UNGCPRO; | 171 UNGCPRO; |
172 if (buffer != buf) /* We must have allocated buffer above */ | 172 if (buffer != buf) /* We must have allocated buffer above */ |
173 xfree (buffer); | 173 xfree (buffer, Ibyte *); |
174 return return_me; | 174 return return_me; |
175 } | 175 } |
176 | 176 |
177 #define string_join(dest, s1, s2) \ | 177 #define string_join(dest, s1, s2) \ |
178 memcpy (dest, XSTRING_DATA (s1), XSTRING_LENGTH (s1)); \ | 178 memcpy (dest, XSTRING_DATA (s1), XSTRING_LENGTH (s1)); \ |
993 | 993 |
994 if (changed) /* don't bother if nothing substituted */ | 994 if (changed) /* don't bother if nothing substituted */ |
995 tem = make_string (buf, bufp - buf); | 995 tem = make_string (buf, bufp - buf); |
996 else | 996 else |
997 tem = string; | 997 tem = string; |
998 xfree (buf); | 998 xfree (buf, Ibyte *); |
999 UNGCPRO; | 999 UNGCPRO; |
1000 return tem; | 1000 return tem; |
1001 } | 1001 } |
1002 | 1002 |
1003 | 1003 |