]> git.eshelyaron.com Git - emacs.git/commitdiff
(print_object): Use FETCH_STRING_CHAR_ADVANCE
authorKenichi Handa <handa@m17n.org>
Sat, 20 May 2000 00:04:05 +0000 (00:04 +0000)
committerKenichi Handa <handa@m17n.org>
Sat, 20 May 2000 00:04:05 +0000 (00:04 +0000)
unconditionally.

src/print.c

index 2379e9d49306da218d86175227b7b92148181434..6f4a2105b6eb7c2cd6add3103afe78acd58d2e5b 100644 (file)
@@ -1434,12 +1434,7 @@ print_object (obj, printcharfun, escapeflag)
          {
            /* Here, we must convert each multi-byte form to the
               corresponding character code before handing it to PRINTCHAR.  */
-
-           if (STRING_MULTIBYTE (name))
-             FETCH_STRING_CHAR_ADVANCE (c, name, i, i_byte);
-           else
-             c = XSTRING (name)->data[i_byte++];
-
+           FETCH_STRING_CHAR_ADVANCE (c, name, i, i_byte);
            QUIT;
 
            if (escapeflag)