]> git.ipfire.org Git - thirdparty/squid.git/blob - src/SquidNew.cc
Merge from trunk rev.13584
[thirdparty/squid.git] / src / SquidNew.cc
1 /*
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 /* DEBUG: none Memory Allocation */
10
11 #define _SQUID_EXTERNNEW_
12
13 #include "squid.h"
14
15 #ifdef __SUNPRO_CC
16
17 #include <new>
18 void *operator new(size_t size) throw (std::bad_alloc)
19 {
20 return xmalloc(size);
21 }
22 void operator delete (void *address) throw()
23 {
24 xfree (address);
25 }
26 void *operator new[] (size_t size) throw (std::bad_alloc)
27 {
28 return xmalloc(size);
29 }
30 void operator delete[] (void *address) throw()
31 {
32 xfree (address);
33 }
34
35 #endif /* __SUNPRO_CC */