aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-08-15 02:27:50 +0000
committerKenichi Handa2002-08-15 02:27:50 +0000
commit556383ac2ff74441229709976a85b9ea8be910cc (patch)
tree0f713548ee21c5de8f8e445e318ad822dad1b975 /src
parent7dd42fb1d9f2f9f3e02fde215b837e3729ac4529 (diff)
downloademacs-556383ac2ff74441229709976a85b9ea8be910cc.tar.gz
emacs-556383ac2ff74441229709976a85b9ea8be910cc.zip
(fontset_add): Make the type `int'.
(fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
Diffstat (limited to 'src')
-rw-r--r--src/fontset.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/fontset.c b/src/fontset.c
index 1c1c1b12a4a..d1433a27599 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -229,13 +229,28 @@ void (*check_window_system_func) P_ ((void));
229 229
230 230
231/* Prototype declarations for static functions. */ 231/* Prototype declarations for static functions. */
232static int fontset_add P_ ((Lisp_Object, Lisp_Object, Lisp_Object,
233 Lisp_Object));
232static Lisp_Object make_fontset P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); 234static Lisp_Object make_fontset P_ ((Lisp_Object, Lisp_Object, Lisp_Object));
233static int fontset_id_valid_p P_ ((int));
234static Lisp_Object fontset_pattern_regexp P_ ((Lisp_Object)); 235static Lisp_Object fontset_pattern_regexp P_ ((Lisp_Object));
235static void accumulate_script_ranges P_ ((Lisp_Object, Lisp_Object, 236static void accumulate_script_ranges P_ ((Lisp_Object, Lisp_Object,
236 Lisp_Object)); 237 Lisp_Object));
237static Lisp_Object find_font_encoding P_ ((char *)); 238static Lisp_Object find_font_encoding P_ ((char *));
238 239
240#ifdef FONTSET_DEBUG
241
242/* Return 1 if ID is a valid fontset id, else return 0. */
243
244static int
245fontset_id_valid_p (id)
246 int id;
247{
248 return (id >= 0 && id < ASIZE (Vfontset_table) - 1);
249}
250
251#endif
252
253
239 254
240/********** MACROS AND FUNCTIONS TO HANDLE FONTSET **********/ 255/********** MACROS AND FUNCTIONS TO HANDLE FONTSET **********/
241 256
@@ -340,7 +355,7 @@ fontset_ref_and_range (fontset, c, from, to)
340 Fmake_vector (make_number (1), (elt))) \ 355 Fmake_vector (make_number (1), (elt))) \
341 : fontset_add ((fontset), (range), (elt), (add))) 356 : fontset_add ((fontset), (range), (elt), (add)))
342 357
343static void 358static int
344fontset_add (fontset, range, elt, add) 359fontset_add (fontset, range, elt, add)
345 Lisp_Object fontset, range, elt, add; 360 Lisp_Object fontset, range, elt, add;
346{ 361{
@@ -368,6 +383,7 @@ fontset_add (fontset, range, elt, add)
368 char_table_set_range (fontset, from, to1, elt1); 383 char_table_set_range (fontset, from, to1, elt1);
369 from = to1 + 1; 384 from = to1 + 1;
370 } while (from < to); 385 } while (from < to);
386 return 0;
371} 387}
372 388
373 389