summaryrefslogtreecommitdiff
path: root/src/charset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/charset.c b/src/charset.c
index 30bcc054221..9fe3548be08 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -481,7 +481,6 @@ static void
load_charset_map_from_file (struct charset *charset, Lisp_Object mapfile,
int control_flag)
{
- USE_LOCAL_ALLOCA;
unsigned min_code = CHARSET_MIN_CODE (charset);
unsigned max_code = CHARSET_MAX_CODE (charset);
int fd;
@@ -1551,7 +1550,6 @@ If the current buffer is unibyte, the returned list may contain
only `ascii', `eight-bit-control', and `eight-bit-graphic'. */)
(Lisp_Object beg, Lisp_Object end, Lisp_Object table)
{
- USE_LOCAL_ALLOCA;
Lisp_Object charsets;
ptrdiff_t from, from_byte, to, stop, stop_byte;
int i;
@@ -1572,7 +1570,7 @@ only `ascii', `eight-bit-control', and `eight-bit-graphic'. */)
from_byte = CHAR_TO_BYTE (from);
- charsets = make_local_vector (charset_table_used, Qnil);
+ charsets = Fmake_vector (make_number (charset_table_used), Qnil);
while (1)
{
find_charsets_in_text (BYTE_POS_ADDR (from_byte), stop - from,
@@ -1603,14 +1601,13 @@ If STR is unibyte, the returned list may contain
only `ascii', `eight-bit-control', and `eight-bit-graphic'. */)
(Lisp_Object str, Lisp_Object table)
{
- USE_LOCAL_ALLOCA;
Lisp_Object charsets;
int i;
Lisp_Object val;
CHECK_STRING (str);
- charsets = make_local_vector (charset_table_used, Qnil);
+ charsets = Fmake_vector (make_number (charset_table_used), Qnil);
find_charsets_in_text (SDATA (str), SCHARS (str), SBYTES (str),
charsets, table,
STRING_MULTIBYTE (str));