* font.c (font_filter_properties): Add const to array elements of properties args.
* font.h (font_filter_properties): Likewise.
* ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array elements.
* w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
+2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ * font.c (font_filter_properties): Add const to array elements of
+ properties args.
+
+ * font.h (font_filter_properties): Likewise.
+
+ * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
+ elements.
+
+ * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
+
2010-11-10 Michael Albinus <michael.albinus@gmx.de>
* dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
void
font_filter_properties (Lisp_Object font,
Lisp_Object alist,
- const char *boolean_properties[],
- const char *non_boolean_properties[])
+ const char *const boolean_properties[],
+ const char *const non_boolean_properties[])
{
Lisp_Object it;
int i;
extern void font_filter_properties (Lisp_Object font,
Lisp_Object alist,
- const char *boolean_properties[],
- const char *non_boolean_properties[]);
+ const char *const boolean_properties[],
+ const char *const non_boolean_properties[]);
#ifdef HAVE_FREETYPE
extern struct font_driver ftfont_driver;
return intern ("unknown");
}
-static const char *ftfont_booleans [] = {
+static const char *const ftfont_booleans [] = {
":antialias",
":hinting",
":verticallayout",
NULL,
};
-static const char *ftfont_non_booleans [] = {
+static const char *const ftfont_non_booleans [] = {
":family",
":familylang",
":style",
return DECODE_SYSTEM (build_string (buf));
}
-static const char *w32font_booleans [] = {
+static const char *const w32font_booleans [] = {
NULL,
};
-static const char *w32font_non_booleans [] = {
+static const char *const w32font_non_booleans [] = {
":script",
":antialias",
":style",