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

Comparing rxvt-unicode/src/rxvtutil.h (file contents):
Revision 1.8 by root, Sun Jan 16 15:59:45 2005 UTC vs.
Revision 1.9 by root, Sun Jun 26 19:59:29 2005 UTC

19template<typename T, typename U> 19template<typename T, typename U>
20static inline T max (T a, U b) { return a > b ? a : (T)b; } 20static inline T max (T a, U b) { return a > b ? a : (T)b; }
21template<typename T> 21template<typename T>
22static inline void swap (T& a, T& b) { T t=a; a=b; b=t; } 22static inline void swap (T& a, T& b) { T t=a; a=b; b=t; }
23 23
24#define IN_RANGE(val,beg,end) \
25 ((unsigned int)(val) - (unsigned int)(beg) <= (unsigned int)(end) - (unsigned int)(beg))
24 26
25struct zero_initialized { 27struct zero_initialized {
26 void *operator new (size_t s); 28 void *operator new (size_t s);
27 void operator delete (void *p, size_t s); 29 void operator delete (void *p, size_t s);
28}; 30};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines