ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvt.h
(Generate patch)

Comparing rxvt-unicode/src/rxvt.h (file contents):
Revision 1.164 by root, Tue Dec 20 20:58:31 2005 UTC vs.
Revision 1.166 by root, Wed Dec 21 14:19:19 2005 UTC

162 Time time; /* milliseconds */ 162 Time time; /* milliseconds */
163 unsigned int state; /* key or button mask */ 163 unsigned int state; /* key or button mask */
164 unsigned int button; /* detail */ 164 unsigned int button; /* detail */
165}; 165};
166 166
167#define MAX_IT(current, other) if ((other) > (current)) (current) = (other) 167#define MAX_POSITIVE_INT16 (((uint16_t)-1)>>1) // TODO: configure/limits
168#define MIN_IT(current, other) if ((other) < (current)) (current) = (other)
169#define SWAP_IT(one, two, typeof) \
170 do { \
171 typeof swapittmp; \
172 (swapittmp) = (one); (one) = (two); (two) = (swapittmp); \
173 } while (/* CONSTCOND */ 0)
174#define BOUND_POSITIVE_INT16(val) \
175 (int16_t) ((val) <= 0 \
176 ? 0 \
177 : min ((val), (((uint16_t)-1)>>1)))
178 168
179#if ENABLE_FRILLS 169#if ENABLE_FRILLS
180typedef struct _mwmhints { 170typedef struct _mwmhints {
181 CARD32 flags; 171 CARD32 flags;
182 CARD32 functions; 172 CARD32 functions;
825#define Col2Pixel(col) ((int32_t)Width2Pixel(col)) 815#define Col2Pixel(col) ((int32_t)Width2Pixel(col))
826#define Row2Pixel(row) ((int32_t)Height2Pixel(row)) 816#define Row2Pixel(row) ((int32_t)Height2Pixel(row))
827#define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth) 817#define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth)
828#define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight) 818#define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight)
829 819
830#define TermWin_TotalWidth() ((int32_t)width) 820#define TermWin_TotalWidth() ((int32_t)this->width)
831#define TermWin_TotalHeight() ((int32_t)height) 821#define TermWin_TotalHeight() ((int32_t)this->height)
822
823#define LINENO(n) (((n) + term_start + total_rows) % total_rows)
824#define ROW(n) (save [LINENO (n)])
832 825
833/* how to build & extract colors and attributes */ 826/* how to build & extract colors and attributes */
834#define GET_BASEFG(x) (((x) & RS_fgMask)) 827#define GET_BASEFG(x) (((x) & RS_fgMask))
835#define GET_BASEBG(x) (((x) & RS_bgMask)>>Color_Bits) 828#define GET_BASEBG(x) (((x) & RS_bgMask)>>Color_Bits)
836#ifndef NO_BRIGHTCOLOR 829#ifndef NO_BRIGHTCOLOR
1488 return; 1481 return;
1489 1482
1490 l.t = (text_t *)talloc->alloc (l.t, prev_ncol * sizeof (text_t)); 1483 l.t = (text_t *)talloc->alloc (l.t, prev_ncol * sizeof (text_t));
1491 l.r = (rend_t *)ralloc->alloc (l.r, prev_ncol * sizeof (rend_t)); 1484 l.r = (rend_t *)ralloc->alloc (l.r, prev_ncol * sizeof (rend_t));
1492 1485
1493 MIN_IT (l.l, (int16_t)ncol); 1486 l.l = min (l.l, ncol);
1494 1487
1495 if (ncol > prev_ncol) 1488 if (ncol > prev_ncol)
1496 scr_blank_line (l, prev_ncol, ncol - prev_ncol, DEFAULT_RSTYLE); 1489 scr_blank_line (l, prev_ncol, ncol - prev_ncol, DEFAULT_RSTYLE);
1497 } 1490 }
1498 1491

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines