aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog3
-rw-r--r--src/ccl.c7
-rw-r--r--src/font.c6
-rw-r--r--src/lisp.h6
4 files changed, 7 insertions, 15 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 82ab1e62541..177cfab160e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -3,10 +3,13 @@
3 * fileio.c (Fread_file_name): Do not pass redundant args and ... 3 * fileio.c (Fread_file_name): Do not pass redundant args and ...
4 * callint.c (read_file_name): ... convert to static here. 4 * callint.c (read_file_name): ... convert to static here.
5 * lisp.h (Fread_file_name): Do not EXFUN it. 5 * lisp.h (Fread_file_name): Do not EXFUN it.
6 (STRING_COPYIN): Remove; unused.
6 * composite.c (CHAR_COMPOSABLE_P): Replace unsafe macro with ... 7 * composite.c (CHAR_COMPOSABLE_P): Replace unsafe macro with ...
7 (char_composable_p): ... static function. All users changed. 8 (char_composable_p): ... static function. All users changed.
8 * eval.c (toplevel): Remove redundant #include directives. 9 * eval.c (toplevel): Remove redundant #include directives.
9 * xterm.c (x_initialize): Add static to match prototype. 10 * xterm.c (x_initialize): Add static to match prototype.
11 * ccl.c (Fccl_execute_on_string):
12 * font.c (fon_intern_prop): Use make_specified_string.
10 13
112014-06-16 Paul Eggert <eggert@cs.ucla.edu> 142014-06-16 Paul Eggert <eggert@cs.ucla.edu>
12 15
diff --git a/src/ccl.c b/src/ccl.c
index 187f6027018..54093bf5677 100644
--- a/src/ccl.c
+++ b/src/ccl.c
@@ -2160,11 +2160,8 @@ usage: (ccl-execute-on-string CCL-PROGRAM STATUS STRING &optional CONTINUE UNIBY
2160 ASET (status, i, make_number (ccl.reg[i])); 2160 ASET (status, i, make_number (ccl.reg[i]));
2161 ASET (status, 8, make_number (ccl.ic)); 2161 ASET (status, 8, make_number (ccl.ic));
2162 2162
2163 if (NILP (unibyte_p)) 2163 val = make_specified_string ((const char *) outbuf, produced_chars,
2164 val = make_multibyte_string ((char *) outbuf, produced_chars, 2164 outp - outbuf, NILP (unibyte_p));
2165 outp - outbuf);
2166 else
2167 val = make_unibyte_string ((char *) outbuf, produced_chars);
2168 xfree (outbuf); 2165 xfree (outbuf);
2169 2166
2170 return val; 2167 return val;
diff --git a/src/font.c b/src/font.c
index 6113e1c3e71..9e472fb3e3b 100644
--- a/src/font.c
+++ b/src/font.c
@@ -279,10 +279,8 @@ font_intern_prop (const char *str, ptrdiff_t len, bool force_symbol)
279 279
280 if (SYMBOLP (tem)) 280 if (SYMBOLP (tem))
281 return tem; 281 return tem;
282 if (len == nchars || len != nbytes) 282 tem = make_specified_string (str, nchars, len,
283 tem = make_unibyte_string (str, len); 283 len != nchars && len == nbytes);
284 else
285 tem = make_multibyte_string (str, nchars, len);
286 return Fintern (tem, obarray); 284 return Fintern (tem, obarray);
287} 285}
288 286
diff --git a/src/lisp.h b/src/lisp.h
index e28a415152b..72ae5a1afda 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -1197,12 +1197,6 @@ STRING_SET_CHARS (Lisp_Object string, ptrdiff_t newsize)
1197{ 1197{
1198 XSTRING (string)->size = newsize; 1198 XSTRING (string)->size = newsize;
1199} 1199}
1200INLINE void
1201STRING_COPYIN (Lisp_Object string, ptrdiff_t index, char const *new,
1202 ptrdiff_t count)
1203{
1204 memcpy (SDATA (string) + index, new, count);
1205}
1206 1200
1207/* Header of vector-like objects. This documents the layout constraints on 1201/* Header of vector-like objects. This documents the layout constraints on
1208 vectors and pseudovectors (objects of PVEC_xxx subtype). It also prevents 1202 vectors and pseudovectors (objects of PVEC_xxx subtype). It also prevents