aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Raeburn2002-07-15 02:18:31 +0000
committerKen Raeburn2002-07-15 02:18:31 +0000
commitbee9190421f32bdd6ec8fa2d18c8084ec8950eb0 (patch)
treef46e8acbddf491e793ebadd85cce41c6374a48d4
parent1e4c5782780719a5bfa23d79d052bb3311ab1438 (diff)
downloademacs-bee9190421f32bdd6ec8fa2d18c8084ec8950eb0.tar.gz
emacs-bee9190421f32bdd6ec8fa2d18c8084ec8950eb0.zip
* lread.c (read_vector): Use STRING_SET_CHARS.
-rw-r--r--src/ChangeLog7
-rw-r--r--src/lread.c2
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 791c4f36150..44d6e613b20 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,10 +1,15 @@
12002-07-14 Ken Raeburn <raeburn@gnu.org> 12002-07-14 Ken Raeburn <raeburn@gnu.org>
2 2
3 * lisp.h (STRING_SET_CHARS): New macro.
4 (SCHARS, SBYTES): Produce rvalues.
5 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
6 * fns.c (concat): Likewise.
7 * lread.c (read_vector): Likewise.
8
3 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE. 9 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
4 (STRING_SET_UNIBYTE): New macro. 10 (STRING_SET_UNIBYTE): New macro.
5 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a 11 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
6 length of -1) changed to use STRING_SET_UNIBYTE. 12 length of -1) changed to use STRING_SET_UNIBYTE.
7
8 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, 13 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
9 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c, 14 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
10 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c, 15 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
diff --git a/src/lread.c b/src/lread.c
index 6900e337c7c..3b06968e084 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -2760,7 +2760,7 @@ read_vector (readcharfun, bytecodeflag)
2760 /* Coerce string to unibyte (like string-as-unibyte, 2760 /* Coerce string to unibyte (like string-as-unibyte,
2761 but without generating extra garbage and 2761 but without generating extra garbage and
2762 guaranteeing no change in the contents). */ 2762 guaranteeing no change in the contents). */
2763 SCHARS (bytestr) = SBYTES (bytestr); 2763 STRING_SET_CHARS (bytestr, SBYTES (bytestr));
2764 STRING_SET_UNIBYTE (bytestr); 2764 STRING_SET_UNIBYTE (bytestr);
2765 2765
2766 item = Fread (bytestr); 2766 item = Fread (bytestr);