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.1 by root, Sun Aug 15 00:37:04 2004 UTC vs.
Revision 1.3 by root, Sat Aug 21 05:32:00 2004 UTC

10 static bool network () { return e == 0x11223344; }; 10 static bool network () { return e == 0x11223344; };
11 static bool little_endian () { return e == 0x44332211; }; 11 static bool little_endian () { return e == 0x44332211; };
12 static bool vax () { return e == 0x44332211; }; 12 static bool vax () { return e == 0x44332211; };
13} byteorder; 13} byteorder;
14 14
15template<typename T, typename U>
15template<typename T, typename U> static inline T min (T a, U b) { return a < b ? a : b; } 16static inline T min (T a, U b) { return a < b ? a : (T)b; }
17template<typename T, typename U>
16template<typename T, typename U> static inline T max (T a, U b) { return a > b ? a : b; } 18static inline T max (T a, U b) { return a > b ? a : (T)b; }
17 19
18#include "simplevec.h" 20#include "simplevec.h"
19 21
20template<typename T> 22template<typename T>
21struct vector : simplevec<T> 23struct vector : simplevec<T>
112 { 114 {
113 for (char **c = begin (); c != end (); c++) 115 for (char **c = begin (); c != end (); c++)
114 delete [] *c; 116 delete [] *c;
115 } 117 }
116}; 118};
119
120struct zero_initialized {
121 void *operator new (size_t s);
122 void operator delete (void *p, size_t s);
123};
124
117#endif 125#endif
118 126

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines