]> git.eshelyaron.com Git - emacs.git/commitdiff
* coding.h (decode_coding_string, encode_coding_string): Use
authorKen Raeburn <raeburn@raeburn.org>
Sat, 25 Jul 2009 07:43:08 +0000 (07:43 +0000)
committerKen Raeburn <raeburn@raeburn.org>
Sat, 25 Jul 2009 07:43:08 +0000 (07:43 +0000)
SCHARS macro.

src/ChangeLog
src/coding.h

index 00cc2e38a88ed6b0b8076c7e513ef4ff11950462..27df9aa1af58ed7fa8f388174351f716ce40e045 100644 (file)
@@ -1,5 +1,8 @@
 2009-07-25  Ken Raeburn  <raeburn@raeburn.org>
 
+       * coding.h (decode_coding_string, encode_coding_string): Use
+       SCHARS macro.
+
        * lread.c: Rewrite 2009-07-21 changes.
        (load_depth): Deleted.
        (Qload_in_progress): New variable.
index 450433fda968a8c42221ecda221177645746e3cb..3e89ff10421d042ff37c3b5ee39b24dc526b27a3 100644 (file)
@@ -734,11 +734,11 @@ extern void encode_coding_object P_ ((struct coding_system *,
 
 
 #define decode_coding_string(coding, string, nocopy)                   \
-  decode_coding_object (coding, string, 0, 0, XSTRING (string)->size,  \
+  decode_coding_object (coding, string, 0, 0, SCHARS (string),         \
                        STRING_BYTES (XSTRING (string)), Qt)
 
 #define encode_coding_string(coding, string, nocopy)                   \
-  (encode_coding_object (coding, string, 0, 0, XSTRING (string)->size, \
+  (encode_coding_object (coding, string, 0, 0, SCHARS (string),                \
                         STRING_BYTES (XSTRING (string)), Qt),          \
    (coding)->dst_object)