diff options
| author | Dave Love | 2002-07-30 11:35:17 +0000 |
|---|---|---|
| committer | Dave Love | 2002-07-30 11:35:17 +0000 |
| commit | 00c4da0f79e7c762d50cf62a622d7c4cd8fe8176 (patch) | |
| tree | 51cbfd3eb547c4492f20de1ef464aeaf4b1c9587 /src | |
| parent | f7f43015be377be23ea305dba80be2fdcb8c62ad (diff) | |
| download | emacs-00c4da0f79e7c762d50cf62a622d7c4cd8fe8176.tar.gz emacs-00c4da0f79e7c762d50cf62a622d7c4cd8fe8176.zip | |
(fontset_add): Declare args. Call make_number
correctly.
(face_for_char): Delete unused vars.
(Fset_fontset_font): Doc fix. Delete unused vars.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fontset.c | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/src/fontset.c b/src/fontset.c index fb6600da254..e038000e865 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -342,6 +342,7 @@ fontset_ref_and_range (fontset, c, from, to) | |||
| 342 | 342 | ||
| 343 | static void | 343 | static void |
| 344 | fontset_add (fontset, range, elt, add) | 344 | fontset_add (fontset, range, elt, add) |
| 345 | Lisp_Object fontset, range, elt, add; | ||
| 345 | { | 346 | { |
| 346 | int from, to, from1, to1; | 347 | int from, to, from1, to1; |
| 347 | Lisp_Object elt1; | 348 | Lisp_Object elt1; |
| @@ -357,7 +358,7 @@ fontset_add (fontset, range, elt, add) | |||
| 357 | int i, i0 = 1, i1 = ASIZE (elt1) + 1; | 358 | int i, i0 = 1, i1 = ASIZE (elt1) + 1; |
| 358 | Lisp_Object new; | 359 | Lisp_Object new; |
| 359 | 360 | ||
| 360 | new = Fmake_vector (i1, elt); | 361 | new = Fmake_vector (make_number (i1), elt); |
| 361 | if (EQ (add, Qappend)) | 362 | if (EQ (add, Qappend)) |
| 362 | i0--, i1--; | 363 | i0--, i1--; |
| 363 | for (i = 0; i0 < i1; i++, i0++) | 364 | for (i = 0; i0 < i1; i++, i0++) |
| @@ -732,9 +733,6 @@ face_for_char (f, face, c) | |||
| 732 | int c; | 733 | int c; |
| 733 | { | 734 | { |
| 734 | Lisp_Object fontset; | 735 | Lisp_Object fontset; |
| 735 | Lisp_Object elt, vec; | ||
| 736 | int font_idx; | ||
| 737 | int i; | ||
| 738 | 736 | ||
| 739 | if (ASCII_CHAR_P (c)) | 737 | if (ASCII_CHAR_P (c)) |
| 740 | return face->ascii_face->id; | 738 | return face->ascii_face->id; |
| @@ -1118,18 +1116,18 @@ range FROM and TO (inclusive). | |||
| 1118 | CHARACTER may be a script name symbol. In that case, use FONT-SPEC | 1116 | CHARACTER may be a script name symbol. In that case, use FONT-SPEC |
| 1119 | for all characters that belong to the script. | 1117 | for all characters that belong to the script. |
| 1120 | 1118 | ||
| 1121 | CHARACTER may be a charset who has :code-offset attribute and the | 1119 | CHARACTER may be a charset which has a :code-offset attribute and the |
| 1122 | attribute value is greater than the maximum Unicode character | 1120 | attribute value is greater than the maximum Unicode character |
| 1123 | \(#x10FFFF). In that case, use FONT-SPEC for all characters in the | 1121 | \(#x10FFFF). In that case, use FONT-SPEC for all characters in the |
| 1124 | charset. | 1122 | charset. |
| 1125 | 1123 | ||
| 1126 | FONT-SPEC is a vector; [ FAMILY WEIGHT SLANT ADSTYLE REGISTRY ]. | 1124 | FONT-SPEC may be: |
| 1127 | See the documentation of `set-face-attribute' for the detail of | 1125 | * A vector [ FAMILY WEIGHT SLANT WIDTH ADSTYLE REGISTRY ]. |
| 1128 | these vector elements. | 1126 | See the documentation of `set-face-attribute' for the detail of |
| 1129 | 1127 | these vector elements; | |
| 1130 | FONT-SPEC may be a cons; (FAMILY . REGISTRY). | 1128 | * A cons (FAMILY . REGISTRY), where FAMILY is a font family name and |
| 1131 | 1129 | REGISTRY is a font registry name; | |
| 1132 | FONT-SPEC may be a font name string. | 1130 | * A font name string. |
| 1133 | 1131 | ||
| 1134 | Optional 4th argument FRAME, if non-nil, is a frame. This argument is | 1132 | Optional 4th argument FRAME, if non-nil, is a frame. This argument is |
| 1135 | kept for backward compatibility and has no meaning. | 1133 | kept for backward compatibility and has no meaning. |
| @@ -1142,9 +1140,8 @@ appended. By default, FONT-SPEC overrides the previous settings. */) | |||
| 1142 | Lisp_Object name, character, font_spec, frame, add; | 1140 | Lisp_Object name, character, font_spec, frame, add; |
| 1143 | { | 1141 | { |
| 1144 | Lisp_Object fontset; | 1142 | Lisp_Object fontset; |
| 1145 | int i; | ||
| 1146 | Lisp_Object font_def, registry; | 1143 | Lisp_Object font_def, registry; |
| 1147 | Lisp_Object val, encoding, repertory; | 1144 | Lisp_Object encoding, repertory; |
| 1148 | Lisp_Object range_list; | 1145 | Lisp_Object range_list; |
| 1149 | 1146 | ||
| 1150 | fontset = check_fontset_name (name); | 1147 | fontset = check_fontset_name (name); |
| @@ -1450,7 +1447,6 @@ OPENED-FONT is a name of a font actually opened. */) | |||
| 1450 | FRAME_PTR f; | 1447 | FRAME_PTR f; |
| 1451 | Lisp_Object table, val, elt; | 1448 | Lisp_Object table, val, elt; |
| 1452 | Lisp_Object *realized; | 1449 | Lisp_Object *realized; |
| 1453 | struct font_info *fontp = NULL; | ||
| 1454 | int n_realized = 0; | 1450 | int n_realized = 0; |
| 1455 | int c, i, j; | 1451 | int c, i, j; |
| 1456 | 1452 | ||