source: squid-ssl/trunk/fuentes/src/icmp/SquidNew.cc @ 5495

Last change on this file since 5495 was 5495, checked in by Juanma, 22 months ago

Initial release

File size: 746 bytes
Line 
1/*
2 * Copyright (C) 1996-2015 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>
18void *operator new(size_t size) throw (std::bad_alloc)
19{
20    return xmalloc(size);
21}
22void operator delete (void *address) throw()
23{
24    xfree (address);
25}
26void *operator new[] (size_t size) throw (std::bad_alloc)
27{
28    return xmalloc(size);
29}
30void operator delete[] (void *address) throw()
31{
32    xfree (address);
33}
34
35#endif /* __SUNPRO_CC */
36
Note: See TracBrowser for help on using the repository browser.