#include "dispextern.h"
#include "window.h"
+#ifdef HAVE_TERMCAP_H
+#include <termcap.h>
+#endif
+
#include "cm.h"
#ifdef HAVE_X_WINDOWS
#include "xterm.h"
#define OUTPUT1(a) tputs (a, 1, cmputc)
#define OUTPUTL(a, lines) tputs (a, lines, cmputc)
-#define OUTPUT_IF(a) \
- if (a) \
- tputs (a, (int) (FRAME_HEIGHT (XFRAME (selected_frame)) \
- - curY), cmputc); \
- else \
- (void) 0
+#define OUTPUT_IF(a) \
+ do { \
+ if (a) \
+ tputs (a, (int) (FRAME_HEIGHT (XFRAME (selected_frame)) \
+ - curY), cmputc); \
+ } while (0)
-#define OUTPUT1_IF(a) if (a) tputs (a, 1, cmputc); else (void) 0
+#define OUTPUT1_IF(a) do { if (a) tputs (a, 1, cmputc); } while (0)
/* Function to use to ring the bell. */
/* We must skip glyphs to be padded for a wide character. */
if (! CHAR_GLYPH_PADDING_P (*src))
{
- struct frame *sf = XFRAME (selected_frame);
-
c = src->u.ch.code;
if (! GLYPH_CHAR_VALID_P (c))
{
int face_id;
{
struct face *face = FACE_FROM_ID (f, face_id);
- Lisp_Object entry;
xassert (face != NULL);