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.165 by root, Tue Dec 20 22:27:49 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;
1491 return; 1481 return;
1492 1482
1493 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));
1494 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));
1495 1485
1496 MIN_IT (l.l, (int16_t)ncol); 1486 l.l = min (l.l, ncol);
1497 1487
1498 if (ncol > prev_ncol) 1488 if (ncol > prev_ncol)
1499 scr_blank_line (l, prev_ncol, ncol - prev_ncol, DEFAULT_RSTYLE); 1489 scr_blank_line (l, prev_ncol, ncol - prev_ncol, DEFAULT_RSTYLE);
1500 } 1490 }
1501 1491

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines