aboutsummaryrefslogtreecommitdiffstats
path: root/src/composite.c
diff options
context:
space:
mode:
authorJoakim Verona2015-01-25 21:19:27 +0100
committerJoakim Verona2015-01-25 21:19:27 +0100
commitd522fd8ca73e668bfafd0419bc5f71f2751cca24 (patch)
tree4b57a4d2d26e578035801f1c895dcfda5895e09d /src/composite.c
parente5087278b9bcab5847ce63d80c0d74c27f50e719 (diff)
parenta3689d3c661fe36df971c875760f8d500b5ae994 (diff)
downloademacs-d522fd8ca73e668bfafd0419bc5f71f2751cca24.tar.gz
emacs-d522fd8ca73e668bfafd0419bc5f71f2751cca24.zip
Merge branch 'master' into xwidget
Diffstat (limited to 'src/composite.c')
-rw-r--r--src/composite.c38
1 files changed, 10 insertions, 28 deletions
diff --git a/src/composite.c b/src/composite.c
index 8ac5ef712c6..577b97920f4 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -1891,36 +1891,18 @@ syms_of_composite (void)
1891 DEFSYM (Qcomposition, "composition"); 1891 DEFSYM (Qcomposition, "composition");
1892 1892
1893 /* Make a hash table for static composition. */ 1893 /* Make a hash table for static composition. */
1894 { 1894 /* We used to make the hash table weak so that unreferenced
1895 Lisp_Object args[6]; 1895 compositions can be garbage-collected. But, usually once
1896 1896 created compositions are repeatedly used in an Emacs session,
1897 args[0] = QCtest; 1897 and thus it's not worth to save memory in such a way. So, we
1898 args[1] = Qequal; 1898 make the table not weak. */
1899 args[2] = QCweakness; 1899 Lisp_Object args[] = {QCtest, Qequal, QCsize, make_number (311)};
1900 /* We used to make the hash table weak so that unreferenced 1900 composition_hash_table = CALLMANY (Fmake_hash_table, args);
1901 compositions can be garbage-collected. But, usually once 1901 staticpro (&composition_hash_table);
1902 created compositions are repeatedly used in an Emacs session,
1903 and thus it's not worth to save memory in such a way. So, we
1904 make the table not weak. */
1905 args[3] = Qnil;
1906 args[4] = QCsize;
1907 args[5] = make_number (311);
1908 composition_hash_table = Fmake_hash_table (6, args);
1909 staticpro (&composition_hash_table);
1910 }
1911 1902
1912 /* Make a hash table for glyph-string. */ 1903 /* Make a hash table for glyph-string. */
1913 { 1904 gstring_hash_table = CALLMANY (Fmake_hash_table, args);
1914 Lisp_Object args[6]; 1905 staticpro (&gstring_hash_table);
1915 args[0] = QCtest;
1916 args[1] = Qequal;
1917 args[2] = QCweakness;
1918 args[3] = Qnil;
1919 args[4] = QCsize;
1920 args[5] = make_number (311);
1921 gstring_hash_table = Fmake_hash_table (6, args);
1922 staticpro (&gstring_hash_table);
1923 }
1924 1906
1925 staticpro (&gstring_work_headers); 1907 staticpro (&gstring_work_headers);
1926 gstring_work_headers = make_uninit_vector (8); 1908 gstring_work_headers = make_uninit_vector (8);