* lread.c (read_vector): Use STRING_SET_CHARS.
authorKen Raeburn <raeburn@raeburn.org>
Mon, 15 Jul 2002 02:18:31 +0000 (02:18 +0000)
committerKen Raeburn <raeburn@raeburn.org>
Mon, 15 Jul 2002 02:18:31 +0000 (02:18 +0000)
src/ChangeLog
src/lread.c

index 791c4f3..44d6e61 100644 (file)
@@ -1,10 +1,15 @@
 2002-07-14  Ken Raeburn  <raeburn@gnu.org>
 
+       * lisp.h (STRING_SET_CHARS): New macro.
+       (SCHARS, SBYTES): Produce rvalues.
+       * dired.c (directory_files_internal): Use STRING_SET_CHARS.
+       * fns.c (concat): Likewise.
+       * lread.c (read_vector): Likewise.
+
        * lisp.h (SMBP): Deleted.  All uses changed to STRING_MULTIBYTE.
        (STRING_SET_UNIBYTE): New macro.
        (SET_STRING_BYTES): Deleted.  Callers (all of which supplied a
        length of -1) changed to use STRING_SET_UNIBYTE.
-
        * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
        casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
        composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
index 6900e33..3b06968 100644 (file)
@@ -2760,7 +2760,7 @@ read_vector (readcharfun, bytecodeflag)
                  /* Coerce string to unibyte (like string-as-unibyte,
                     but without generating extra garbage and
                     guaranteeing no change in the contents).  */
-                 SCHARS (bytestr) = SBYTES (bytestr);
+                 STRING_SET_CHARS (bytestr, SBYTES (bytestr));
                  STRING_SET_UNIBYTE (bytestr);
 
                  item = Fread (bytestr);