NOTE: This patch has been committed.
src/ChangeLog addition:
2006-05-25 Aidan Kehoe <kehoea(a)parhasard.net>
* file-coding.c (output_bytes_in_ascii_and_hex):
I installed GCC 4.0 (which may not even have been necesssary,
-pedantic might have done it) and it showed me that the problem my
last commit intended to address was in eistr_ext rather than
stderr_out.
XEmacs Trunk source patch:
Diff command: cvs -q diff -u
Files affected: src/file-coding.c
Index: src/file-coding.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/file-coding.c,v
retrieving revision 1.54
diff -u -u -r1.54 file-coding.c
--- src/file-coding.c 2006/05/23 19:38:30 1.54
+++ src/file-coding.c 2006/05/25 08:00:24
@@ -3367,15 +3367,15 @@
static void
output_bytes_in_ascii_and_hex (const UExtbyte *src, Bytecount n)
{
- UExtbyte *ascii = alloca_array (UExtbyte, n + 1);
- UExtbyte *hex = alloca_array (UExtbyte, 3 * n + 1);
+ Extbyte *ascii = alloca_array (Extbyte, n + 1);
+ Extbyte *hex = alloca_array (Extbyte, 3 * n + 1);
int i;
DECLARE_EISTRING (eistr_ascii);
DECLARE_EISTRING (eistr_hex);
for (i = 0; i < n; i++)
{
- UExtbyte c = src[i];
+ Extbyte c = src[i];
if (c < 0x20)
ascii[i] = '.';
else
@@ -3390,8 +3390,7 @@
eicpy_ext(eistr_hex, hex, Qbinary);
eicpy_ext(eistr_ascii, ascii, Qbinary);
- stderr_out ("%s %s", (const CIbyte *)(eidata(eistr_ascii)),
- (const CIbyte *)eidata(eistr_hex));
+ stderr_out ("%s %s", eidata(eistr_ascii), eidata(eistr_hex));
}
#endif /* DEBUG_XEMACS */
--
Aidan Kehoe,
http://www.parhasard.net/