changeset 104224:bd10839bac0e

(decode_coding_string, encode_coding_string): Use SBYTES macro.
author Ken Raeburn <raeburn@raeburn.org>
date Mon, 10 Aug 2009 00:56:00 +0000
parents ec260849ffe1
children 2b13858c8a2f
files src/ChangeLog src/coding.h
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Aug 10 00:54:02 2009 +0000
+++ b/src/ChangeLog	Mon Aug 10 00:56:00 2009 +0000
@@ -1,5 +1,8 @@
 2009-08-10  Ken Raeburn  <raeburn@raeburn.org>
 
+	* 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.
--- a/src/coding.h	Mon Aug 10 00:54:02 2009 +0000
+++ b/src/coding.h	Mon Aug 10 00:56:00 2009 +0000
@@ -735,11 +735,11 @@
 
 #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)