diff options
| author | Kenichi Handa | 2002-08-15 02:27:50 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-08-15 02:27:50 +0000 |
| commit | 556383ac2ff74441229709976a85b9ea8be910cc (patch) | |
| tree | 0f713548ee21c5de8f8e445e318ad822dad1b975 /src | |
| parent | 7dd42fb1d9f2f9f3e02fde215b837e3729ac4529 (diff) | |
| download | emacs-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.c | 20 |
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. */ |
| 232 | static int fontset_add P_ ((Lisp_Object, Lisp_Object, Lisp_Object, | ||
| 233 | Lisp_Object)); | ||
| 232 | static Lisp_Object make_fontset P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); | 234 | static Lisp_Object make_fontset P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); |
| 233 | static int fontset_id_valid_p P_ ((int)); | ||
| 234 | static Lisp_Object fontset_pattern_regexp P_ ((Lisp_Object)); | 235 | static Lisp_Object fontset_pattern_regexp P_ ((Lisp_Object)); |
| 235 | static void accumulate_script_ranges P_ ((Lisp_Object, Lisp_Object, | 236 | static void accumulate_script_ranges P_ ((Lisp_Object, Lisp_Object, |
| 236 | Lisp_Object)); | 237 | Lisp_Object)); |
| 237 | static Lisp_Object find_font_encoding P_ ((char *)); | 238 | static 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 | |||
| 244 | static int | ||
| 245 | fontset_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 | ||
| 343 | static void | 358 | static int |
| 344 | fontset_add (fontset, range, elt, add) | 359 | fontset_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 | ||