--- ray/src/meta/rast.h 2003/02/22 02:07:26 1.1 +++ ray/src/meta/rast.h 2019/11/18 22:12:32 1.3 @@ -1,8 +1,14 @@ -/* RCSid: $Id: rast.h,v 1.1 2003/02/22 02:07:26 greg Exp $ */ +/* RCSid: $Id: rast.h,v 1.3 2019/11/18 22:12:32 greg Exp $ */ /* * Structures for line segment output to raster files */ +#ifndef _RAD_RAST_H_ +#define _RAD_RAST_H_ +#ifdef __cplusplus +extern "C" { +#endif + #define NUMSCANS 16 /* number of scanlines per block */ typedef struct { /* raster scanline block */ @@ -33,10 +39,16 @@ extern SCANBLOCK outblock; /* output span */ #define pixmix(x,y,c) (outblock.cols[(y)-outblock.ybot][x] &= 070|(c)) -#define someabove(p,y) (CONV((p)->xy[YMX],dysize) > (y)) -#define somebelow(p,y) (CONV((p)->xy[YMN],dysize) < (y)) +#define someabove(p,y) (CONV((p)->xy[YMX],dysiz) > (y)) +#define somebelow(p,y) (CONV((p)->xy[YMN],dysiz) < (y)) #define inthis(p) (ydown ? someabove(p,outblock.ybot-1) : \ somebelow(p,outblock.ytop+1)) #define innext(p) (ydown ? somebelow(p,outblock.ybot) : \ someabove(p,outblock.ytop)) + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_RAST_H_ */ +