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.57 by sf-exg, Fri May 25 18:49:59 2012 UTC vs.
Revision 1.59 by sf-exg, Thu Oct 23 22:39:40 2014 UTC

4#include <new> 4#include <new>
5#include <stdlib.h> 5#include <stdlib.h>
6#include <string.h> 6#include <string.h>
7#include "ecb.h" 7#include "ecb.h"
8#include "estl.h" 8#include "estl.h"
9
10#include "emman.h"
9 11
10// increases code size unless -fno-enforce-eh-specs 12// increases code size unless -fno-enforce-eh-specs
11#if __GNUC__ 13#if __GNUC__
12# define NOTHROW 14# define NOTHROW
13# define THROW(x) 15# define THROW(x)
86 const T &operator [] (int i) const { return * (const T *) (& ((* (const simplevec<void *> *)this)[i])); } 88 const T &operator [] (int i) const { return * (const T *) (& ((* (const simplevec<void *> *)this)[i])); }
87}; 89};
88#endif 90#endif
89 91
90inline void * 92inline void *
91operator new (size_t size) 93operator new (size_t size) throw (std::bad_alloc)
92{ 94{
93 // TODO: use rxvt_malloc 95 // TODO: use rxvt_malloc
94 return malloc (size); 96 return malloc (size);
95} 97}
96 98
97inline void 99inline void
98operator delete (void *p) 100operator delete (void *p) throw ()
99{ 101{
100 free (p); 102 free (p);
101} 103}
102 104
103template<typename T> 105template<typename T>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines