Mercurial > hg > xemacs-beta
comparison src/lstream.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 | e22b0213b713 |
children | 1d840489238d |
comparison
equal
deleted
inserted
replaced
1725:7ff8f4d70aec | 1726:a8d8f419b459 |
---|---|
840 | 840 |
841 /* We set the pointers to 0 so that we don't lose when this function | 841 /* We set the pointers to 0 so that we don't lose when this function |
842 is called more than once on the same object */ | 842 is called more than once on the same object */ |
843 if (lstr->out_buffer) | 843 if (lstr->out_buffer) |
844 { | 844 { |
845 xfree (lstr->out_buffer); | 845 xfree (lstr->out_buffer, unsigned char *); |
846 lstr->out_buffer = 0; | 846 lstr->out_buffer = 0; |
847 } | 847 } |
848 if (lstr->in_buffer) | 848 if (lstr->in_buffer) |
849 { | 849 { |
850 xfree (lstr->in_buffer); | 850 xfree (lstr->in_buffer, unsigned char *); |
851 lstr->in_buffer = 0; | 851 lstr->in_buffer = 0; |
852 } | 852 } |
853 if (lstr->unget_buffer) | 853 if (lstr->unget_buffer) |
854 { | 854 { |
855 xfree (lstr->unget_buffer); | 855 xfree (lstr->unget_buffer, unsigned char *); |
856 lstr->unget_buffer = 0; | 856 lstr->unget_buffer = 0; |
857 } | 857 } |
858 | 858 |
859 return rc; | 859 return rc; |
860 } | 860 } |
1538 resizing_buffer_closer (Lstream *stream) | 1538 resizing_buffer_closer (Lstream *stream) |
1539 { | 1539 { |
1540 struct resizing_buffer_stream *str = RESIZING_BUFFER_STREAM_DATA (stream); | 1540 struct resizing_buffer_stream *str = RESIZING_BUFFER_STREAM_DATA (stream); |
1541 if (str->buf) | 1541 if (str->buf) |
1542 { | 1542 { |
1543 xfree (str->buf); | 1543 xfree (str->buf, unsigned char *); |
1544 str->buf = 0; | 1544 str->buf = 0; |
1545 } | 1545 } |
1546 return 0; | 1546 return 0; |
1547 } | 1547 } |
1548 | 1548 |