]>
Commit | Line | Data |
---|---|---|
f95fe6ed | 1 | /* |
bde978a6 | 2 | * Copyright (C) 1996-2015 The Squid Software Foundation and contributors |
f95fe6ed | 3 | * |
bbc27441 AJ |
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. | |
f95fe6ed | 7 | */ |
8 | ||
bbc27441 AJ |
9 | /* DEBUG: none Memory Allocation */ |
10 | ||
985f118d HN |
11 | #define _SQUID_EXTERNNEW_ |
12 | ||
582c2af2 | 13 | #include "squid.h" |
00177188 | 14 | |
00177188 FC |
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 */ | |
f53969cc | 36 |