From f0bed503c49017428a416fcf464e0a2216880498 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 10 Aug 2009 00:56:00 +0000 Subject: [PATCH] (decode_coding_string, encode_coding_string): Use SBYTES macro. --- src/ChangeLog | 3 +++ src/coding.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 978d24ceb39..7872fec0d99 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2009-08-10 Ken Raeburn + * coding.h (decode_coding_string, encode_coding_string): Use + SBYTES macro. + * doprnt.c (doprnt_lisp): Unused function deleted. (doprnt): Merge with doprnt1, discarding lispstrings code. * lisp.h (doprnt_lisp): Don't declare. diff --git a/src/coding.h b/src/coding.h index 3e89ff10421..27bc8333c6d 100644 --- a/src/coding.h +++ b/src/coding.h @@ -735,11 +735,11 @@ extern void encode_coding_object P_ ((struct coding_system *, #define decode_coding_string(coding, string, nocopy) \ decode_coding_object (coding, string, 0, 0, SCHARS (string), \ - STRING_BYTES (XSTRING (string)), Qt) + SBYTES (string), Qt) #define encode_coding_string(coding, string, nocopy) \ (encode_coding_object (coding, string, 0, 0, SCHARS (string), \ - STRING_BYTES (XSTRING (string)), Qt), \ + SBYTES (string), Qt), \ (coding)->dst_object) -- 2.39.5