comparison src/buffer.h @ 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 e22b0213b713
children ba4677f54a05
comparison
equal deleted inserted replaced
1725:7ff8f4d70aec 1726:a8d8f419b459
1165 #define BUFFER_ALLOC(data,size)\ 1165 #define BUFFER_ALLOC(data,size)\
1166 (data = xnew_array (Ibyte, size)) 1166 (data = xnew_array (Ibyte, size))
1167 #define BUFFER_REALLOC(data,size)\ 1167 #define BUFFER_REALLOC(data,size)\
1168 ((Ibyte *) xrealloc (data, (size) * sizeof(Ibyte))) 1168 ((Ibyte *) xrealloc (data, (size) * sizeof(Ibyte)))
1169 /* Avoid excess parentheses, or syntax errors may rear their heads. */ 1169 /* Avoid excess parentheses, or syntax errors may rear their heads. */
1170 #define BUFFER_FREE(data) xfree (data) 1170 #define BUFFER_FREE(data) xfree (data, Ibyte *)
1171 #define R_ALLOC_DECLARE(var,data) 1171 #define R_ALLOC_DECLARE(var,data)
1172 1172
1173 #endif /* !REL_ALLOC */ 1173 #endif /* !REL_ALLOC */
1174 1174
1175 1175