Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Dec 2008 11:56:50 GMT
From:      Ed Schouten <ed@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 154394 for review
Message-ID:  <200812091156.mB9Buoht034511@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=154394

Change 154394 by ed@ed_dull on 2008/12/09 11:55:51

	Don't use FG_BLINK and FG_UNDERLINE unconditionally. Allow
	platforms to omit the definitions.

Affected files ...

.. //depot/projects/mpsafetty/sys/dev/syscons/scterm-teken.c#17 edit

Differences ...

==== //depot/projects/mpsafetty/sys/dev/syscons/scterm-teken.c#17 (text+ko) ====

@@ -235,10 +235,14 @@
 		attr |= fgcolors_normal[a->ta_fgcolor];
 	attr |= bgcolors[a->ta_bgcolor];
 
+#ifdef FG_UNDERLINE
 	if (a->ta_format & TF_UNDERLINE)
 		attr |= FG_UNDERLINE;
+#endif /* FG_UNDERLINE */
+#ifdef FG_BLINK
 	if (a->ta_format & TF_BLINK)
 		attr |= FG_BLINK;
+#endif /* FG_BLINK */
 
 	return (attr << 8);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812091156.mB9Buoht034511>