Mercurial > emacs
comparison src/dispextern.h @ 25708:a6aabf050a60
Add prototypes for gamma_correct and
x_kill_gs_process.
(xassert) [GLYPH_DEBUG]: Change definition
to use do-while.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 14 Sep 1999 13:09:22 +0000 |
parents | a75be4927319 |
children | 952b7a2a3d91 |
comparison
equal
deleted
inserted
replaced
25707:80e98999e8d9 | 25708:a6aabf050a60 |
---|---|
67 | 67 |
68 /* Macros to include code only if GLYPH_DEBUG != 0. */ | 68 /* Macros to include code only if GLYPH_DEBUG != 0. */ |
69 | 69 |
70 #if GLYPH_DEBUG | 70 #if GLYPH_DEBUG |
71 #define IF_DEBUG(X) X | 71 #define IF_DEBUG(X) X |
72 #define xassert(X) if (!(X)) abort (); else (void) 0 | 72 #define xassert(X) do {if (!(X)) abort ();} while (0) |
73 #else | 73 #else |
74 #define IF_DEBUG(X) (void) 0 | 74 #define IF_DEBUG(X) (void) 0 |
75 #define xassert(X) (void) 0 | 75 #define xassert(X) (void) 0 |
76 #endif | 76 #endif |
77 | 77 |
2112 | 2112 |
2113 /* Defined in xfns.c */ | 2113 /* Defined in xfns.c */ |
2114 | 2114 |
2115 #ifdef HAVE_X_WINDOWS | 2115 #ifdef HAVE_X_WINDOWS |
2116 | 2116 |
2117 void gamma_correct P_ ((struct frame *, XColor *)); | |
2118 void x_kill_gs_process P_ ((Pixmap, struct frame *)); | |
2117 int x_screen_planes P_ ((struct frame *)); | 2119 int x_screen_planes P_ ((struct frame *)); |
2118 void x_implicitly_set_name P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 2120 void x_implicitly_set_name P_ ((struct frame *, Lisp_Object, Lisp_Object)); |
2119 struct image_cache *make_image_cache P_ ((void)); | 2121 struct image_cache *make_image_cache P_ ((void)); |
2120 void free_image_cache P_ ((struct frame *)); | 2122 void free_image_cache P_ ((struct frame *)); |
2121 void clear_image_cache P_ ((struct frame *, int)); | 2123 void clear_image_cache P_ ((struct frame *, int)); |