aboutsummaryrefslogtreecommitdiffstats
path: root/src/font.c
diff options
context:
space:
mode:
authorDan Nicolaescu2010-08-09 15:03:38 -0700
committerDan Nicolaescu2010-08-09 15:03:38 -0700
commit09d93395c3ceeb0bd23d9fd9c7ef316dc03af08b (patch)
tree78a65ed0a4c1623ad9ee308d5727d8ad1f229c32 /src/font.c
parent1cbf3dd9101a5574347253648148e30bd8979cf9 (diff)
downloademacs-09d93395c3ceeb0bd23d9fd9c7ef316dc03af08b.tar.gz
emacs-09d93395c3ceeb0bd23d9fd9c7ef316dc03af08b.zip
Remove incorrect const use.
* src/font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname) (font_parse_name): font_open_by_name): * src/font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname) (font_parse_name): font_open_by_name): Remove const.
Diffstat (limited to 'src/font.c')
-rw-r--r--src/font.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/font.c b/src/font.c
index 1ac994d6375..eba75c11b2f 100644
--- a/src/font.c
+++ b/src/font.c
@@ -701,7 +701,7 @@ font_put_extra (Lisp_Object font, Lisp_Object prop, Lisp_Object val)
701 701
702static int parse_matrix (const char *); 702static int parse_matrix (const char *);
703static int font_expand_wildcards (Lisp_Object *, int); 703static int font_expand_wildcards (Lisp_Object *, int);
704static int font_parse_name (const char *, Lisp_Object); 704static int font_parse_name (char *, Lisp_Object);
705 705
706/* An enumerator for each field of an XLFD font name. */ 706/* An enumerator for each field of an XLFD font name. */
707enum xlfd_field_index 707enum xlfd_field_index
@@ -981,7 +981,7 @@ font_expand_wildcards (Lisp_Object *field, int n)
981 a fully specified XLFD. */ 981 a fully specified XLFD. */
982 982
983int 983int
984font_parse_xlfd (const char *name, Lisp_Object font) 984font_parse_xlfd (char *name, Lisp_Object font)
985{ 985{
986 int len = strlen (name); 986 int len = strlen (name);
987 int i, j, n; 987 int i, j, n;
@@ -1306,7 +1306,7 @@ font_unparse_xlfd (Lisp_Object font, int pixel_size, char *name, int nbytes)
1306 This function tries to guess which format it is. */ 1306 This function tries to guess which format it is. */
1307 1307
1308int 1308int
1309font_parse_fcname (const char *name, Lisp_Object font) 1309font_parse_fcname (char *name, Lisp_Object font)
1310{ 1310{
1311 char *p, *q; 1311 char *p, *q;
1312 char *size_beg = NULL, *size_end = NULL; 1312 char *size_beg = NULL, *size_end = NULL;
@@ -1563,7 +1563,7 @@ font_parse_fcname (const char *name, Lisp_Object font)
1563 FONT_SIZE_INDEX of FONT is 0, use PIXEL_SIZE instead. */ 1563 FONT_SIZE_INDEX of FONT is 0, use PIXEL_SIZE instead. */
1564 1564
1565int 1565int
1566font_unparse_fcname (Lisp_Object font, int pixel_size, const char *name, int nbytes) 1566font_unparse_fcname (Lisp_Object font, int pixel_size, char *name, int nbytes)
1567{ 1567{
1568 Lisp_Object family, foundry; 1568 Lisp_Object family, foundry;
1569 Lisp_Object tail, val; 1569 Lisp_Object tail, val;
@@ -1765,7 +1765,7 @@ font_unparse_gtkname (Lisp_Object font, struct frame *f, char *name, int nbytes)
1765 0. Otherwise return -1. */ 1765 0. Otherwise return -1. */
1766 1766
1767static int 1767static int
1768font_parse_name (const char *name, Lisp_Object font) 1768font_parse_name (char *name, Lisp_Object font)
1769{ 1769{
1770 if (name[0] == '-' || strchr (name, '*') || strchr (name, '?')) 1770 if (name[0] == '-' || strchr (name, '*') || strchr (name, '?'))
1771 return font_parse_xlfd (name, font); 1771 return font_parse_xlfd (name, font);
@@ -3506,7 +3506,7 @@ font_open_by_spec (FRAME_PTR f, Lisp_Object spec)
3506 found, return Qnil. */ 3506 found, return Qnil. */
3507 3507
3508Lisp_Object 3508Lisp_Object
3509font_open_by_name (FRAME_PTR f, const char *name) 3509font_open_by_name (FRAME_PTR f, char *name)
3510{ 3510{
3511 Lisp_Object args[2]; 3511 Lisp_Object args[2];
3512 Lisp_Object spec, ret; 3512 Lisp_Object spec, ret;