aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorDmitry Antipov2013-02-08 09:28:52 +0400
committerDmitry Antipov2013-02-08 09:28:52 +0400
commit25721f5bb5681c22f666a0b4e61d94687d92a671 (patch)
tree2ea496a25332f603727cc978192bc415c885c02a /src/coding.c
parent9a9d91d9c247adefa7137338d7609d81734f888d (diff)
downloademacs-25721f5bb5681c22f666a0b4e61d94687d92a671.tar.gz
emacs-25721f5bb5681c22f666a0b4e61d94687d92a671.zip
* lisp.h (make_uninit_vector): New function.
* alloc.c (Fvector, Fmake_byte_code): * ccl.c (Fregister_ccl_program): * charset.c (Fdefine_charset_internal, define_charset_internal): * coding.c (make_subsidiaries, Fdefine_coding_system_internal): * composite.c (syms_of_composite): * font.c (Fquery_font, Ffont_info, syms_of_font): * fontset.c (FONT_DEF_NEW, Fset_fontset_font): * ftfont.c (ftfont_shape_by_flt): * indent.c (recompute_width_table): * nsselect.m (clean_local_selection_data): * syntax.c (init_syntax_once): * w32unsubscribe.c (uniscribe_shape): * window.c (Fcurrent_window_configuration): * xfaces.c (Fx_family_fonts): * xselect.c (selection_data_to_lisp_data): Use it.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/coding.c b/src/coding.c
index c7bfe25e0cc..b881f162ab9 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -9483,7 +9483,7 @@ make_subsidiaries (Lisp_Object base)
9483 int i; 9483 int i;
9484 9484
9485 memcpy (buf, SDATA (SYMBOL_NAME (base)), base_name_len); 9485 memcpy (buf, SDATA (SYMBOL_NAME (base)), base_name_len);
9486 subsidiaries = Fmake_vector (make_number (3), Qnil); 9486 subsidiaries = make_uninit_vector (3);
9487 for (i = 0; i < 3; i++) 9487 for (i = 0; i < 3; i++)
9488 { 9488 {
9489 strcpy (buf + base_name_len, suffixes[i]); 9489 strcpy (buf + base_name_len, suffixes[i]);
@@ -9988,7 +9988,8 @@ usage: (define-coding-system-internal ...) */)
9988 this_name = AREF (eol_type, i); 9988 this_name = AREF (eol_type, i);
9989 this_aliases = Fcons (this_name, Qnil); 9989 this_aliases = Fcons (this_name, Qnil);
9990 this_eol_type = (i == 0 ? Qunix : i == 1 ? Qdos : Qmac); 9990 this_eol_type = (i == 0 ? Qunix : i == 1 ? Qdos : Qmac);
9991 this_spec = Fmake_vector (make_number (3), attrs); 9991 this_spec = make_uninit_vector (3);
9992 ASET (this_spec, 0, attrs);
9992 ASET (this_spec, 1, this_aliases); 9993 ASET (this_spec, 1, this_aliases);
9993 ASET (this_spec, 2, this_eol_type); 9994 ASET (this_spec, 2, this_eol_type);
9994 Fputhash (this_name, this_spec, Vcoding_system_hash_table); 9995 Fputhash (this_name, this_spec, Vcoding_system_hash_table);
@@ -10001,7 +10002,8 @@ usage: (define-coding-system-internal ...) */)
10001 } 10002 }
10002 } 10003 }
10003 10004
10004 spec_vec = Fmake_vector (make_number (3), attrs); 10005 spec_vec = make_uninit_vector (3);
10006 ASET (spec_vec, 0, attrs);
10005 ASET (spec_vec, 1, aliases); 10007 ASET (spec_vec, 1, aliases);
10006 ASET (spec_vec, 2, eol_type); 10008 ASET (spec_vec, 2, eol_type);
10007 10009