aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2013-12-16 10:05:53 -0800
committerPaul Eggert2013-12-16 10:05:53 -0800
commit32779713e1a809d0e85efcc90677b7a029fbf69b (patch)
tree3867aa71f97eaad426a085d6b8a0514f4f665600 /src
parentd865f6b5554c6adf04f0786b821ba4c07c12d48d (diff)
downloademacs-32779713e1a809d0e85efcc90677b7a029fbf69b.tar.gz
emacs-32779713e1a809d0e85efcc90677b7a029fbf69b.zip
* font.h (valid_font_driver) [!ENABLE_CHECKING]: Define a dummy.
This prevents a compilation error on C compilers that do not default functions to return 'int' if not declared. Also, add INLINE_HEADER_BEGIN and INLINE_HEADER_END to this include file, since it now uses inline functions.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/font.h10
2 files changed, 18 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index baddc361f70..f71e4dcbb80 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12013-12-16 Paul Eggert <eggert@cs.ucla.edu>
2
3 * font.h (valid_font_driver) [!ENABLE_CHECKING]: Define a dummy.
4 This prevents a compilation error on C compilers that do not
5 default functions to return 'int' if not declared. Also, add
6 INLINE_HEADER_BEGIN and INLINE_HEADER_END to this include file,
7 since it now uses inline functions.
8
12013-12-16 Eli Zaretskii <eliz@gnu.org> 92013-12-16 Eli Zaretskii <eliz@gnu.org>
2 10
3 * xdisp.c (extend_face_to_end_of_line): Don't fill background of 11 * xdisp.c (extend_face_to_end_of_line): Don't fill background of
diff --git a/src/font.h b/src/font.h
index 8fb80a9b617..a4fa3c2cf42 100644
--- a/src/font.h
+++ b/src/font.h
@@ -25,6 +25,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
25#include "ccl.h" 25#include "ccl.h"
26#include "frame.h" 26#include "frame.h"
27 27
28INLINE_HEADER_BEGIN
29
28/* We have three types of Lisp objects related to font. 30/* We have three types of Lisp objects related to font.
29 31
30 FONT-SPEC 32 FONT-SPEC
@@ -789,6 +791,12 @@ extern void register_font_driver (struct font_driver *driver, struct frame *f);
789extern void free_font_driver_list (struct frame *f); 791extern void free_font_driver_list (struct frame *f);
790#ifdef ENABLE_CHECKING 792#ifdef ENABLE_CHECKING
791extern bool valid_font_driver (struct font_driver *); 793extern bool valid_font_driver (struct font_driver *);
794#else
795INLINE bool
796valid_font_driver (struct font_driver *d)
797{
798 return true;
799}
792#endif 800#endif
793extern Lisp_Object font_update_drivers (struct frame *f, Lisp_Object list); 801extern Lisp_Object font_update_drivers (struct frame *f, Lisp_Object list);
794extern Lisp_Object font_range (ptrdiff_t, ptrdiff_t, ptrdiff_t *, 802extern Lisp_Object font_range (ptrdiff_t, ptrdiff_t, ptrdiff_t *,
@@ -862,4 +870,6 @@ extern void font_deferred_log (const char *, Lisp_Object, Lisp_Object);
862 font_deferred_log ((ACTION), (ARG), (RESULT)); \ 870 font_deferred_log ((ACTION), (ARG), (RESULT)); \
863 } while (false) 871 } while (false)
864 872
873INLINE_HEADER_END
874
865#endif /* not EMACS_FONT_H */ 875#endif /* not EMACS_FONT_H */