]> git.eshelyaron.com Git - emacs.git/commitdiff
(decode_coding_string, encode_coding_string): Use SBYTES macro.
authorKen Raeburn <raeburn@raeburn.org>
Mon, 10 Aug 2009 00:56:00 +0000 (00:56 +0000)
committerKen Raeburn <raeburn@raeburn.org>
Mon, 10 Aug 2009 00:56:00 +0000 (00:56 +0000)
src/ChangeLog
src/coding.h

index 978d24ceb393caaf51507ad7359e96f7c9ef73ba..7872fec0d99df6a81b82466c15b3e28f624bc712 100644 (file)
@@ -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.
index 3e89ff10421d042ff37c3b5ee39b24dc526b27a3..27bc8333c6dc0ee308cb7250537cf21f3410751b 100644 (file)
@@ -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)