ee305feb7e
gcc3's cpp warns about missing defines in imakefiles, two obvious fixes. Start removing warnings caused by extra shit at end of #undef...
84 lines
2.1 KiB
Plaintext
84 lines
2.1 KiB
Plaintext
$OpenBSD: p-lib_pixrect_pixrect_h,v 1.1 2003/12/30 01:52:22 espie Exp $
|
|
--- lib/pixrect/pixrect.h.orig 2003-12-30 02:34:12.000000000 +0100
|
|
+++ lib/pixrect/pixrect.h 2003-12-30 02:35:49.000000000 +0100
|
|
@@ -101,7 +101,7 @@ struct pr_subregion {
|
|
* Takes device file name. This is how a screen pixrect is created.
|
|
*/
|
|
extern Pixrect *pr_open();
|
|
-#endif !KERNEL
|
|
+#endif /* !KERNEL */
|
|
|
|
/*
|
|
* Pixrect ops vector, used by pr_ macros below to call the appropriate
|
|
@@ -118,18 +118,18 @@ struct pixrectops {
|
|
int (*pro_put)();
|
|
int (*pro_vector)();
|
|
Pixrect * (*pro_region)();
|
|
-#endif !KERNEL
|
|
+#endif /* !KERNEL */
|
|
int (*pro_putcolormap)();
|
|
#ifndef KERNEL
|
|
int (*pro_getcolormap)();
|
|
-#endif !KERNEL
|
|
+#endif /* !KERNEL */
|
|
int (*pro_putattributes)();
|
|
#ifndef KERNEL
|
|
int (*pro_getattributes)();
|
|
-#endif !KERNEL
|
|
+#endif /* !KERNEL */
|
|
#ifdef KERNEL
|
|
int (*pro_nop)(); /* place holder */
|
|
-#endif KERNEL
|
|
+#endif /* KERNEL */
|
|
};
|
|
|
|
#if !defined(lint) || defined(KERNEL)
|
|
@@ -169,9 +169,9 @@ struct pixrectops {
|
|
(red), (grn), (blu))
|
|
#define pr_getattributes(pr, planes) \
|
|
(*(pr)->pr_ops->pro_getattributes)((pr), (planes))
|
|
-#endif !KERNEL
|
|
+#endif /* !KERNEL */
|
|
|
|
-#else !lint || KERNEL
|
|
+#else /* !lint || KERNEL */
|
|
|
|
extern pr_rop();
|
|
extern pr_stencil();
|
|
@@ -186,7 +186,7 @@ extern pr_getcolormap();
|
|
extern pr_putattributes();
|
|
extern pr_getattributes();
|
|
|
|
-#endif lint
|
|
+#endif /* lint */
|
|
|
|
/*
|
|
* Several of the above operations return a common, distinguished value when
|
|
@@ -277,7 +277,7 @@ extern pr_getattributes();
|
|
#define pr_line(pr, x0, y0, x1, y1, brush, tex, op) \
|
|
pro_line((pr), (x0), (y0), (x1), (y1), (brush), (tex), (op), 0)
|
|
|
|
-#else !lint || KERNEL
|
|
+#else /* !lint || KERNEL */
|
|
|
|
extern prs_rop();
|
|
extern prs_stencil();
|
|
@@ -296,7 +296,7 @@ extern prs_replrop();
|
|
extern pr_close();
|
|
extern pr_line();
|
|
|
|
-#endif !lint || KERNEL
|
|
+#endif /* !lint || KERNEL */
|
|
|
|
|
|
|
|
@@ -329,7 +329,7 @@ union fbunit {
|
|
#define pr_getlut(pr, ind, cnt, red, grn, blu) \
|
|
(*(pr)->pr_ops->pro_getcolormap)((pr), PR_FORCE_UPDATE | (ind), \
|
|
(cnt), (red), (grn), (blu))
|
|
-#endif !KERNEL
|
|
+#endif /* !KERNEL */
|
|
|
|
|
|
#endif /* !_pixrect_pixrect_h */
|