mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 19:31:02 -08:00
* lread.c (read_vector): Use STRING_SET_CHARS.
This commit is contained in:
parent
1e4c578278
commit
bee9190421
2 changed files with 7 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue