del_opnt.cc revision 97403
13229Spst// Boilerplate support routines for -*- C++ -*- dynamic memory management.
23229Spst
33229Spst// Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation
43229Spst//
568561Sdirk// This file is part of GNU CC.
668561Sdirk//
73229Spst// GNU CC is free software; you can redistribute it and/or modify
83229Spst// it under the terms of the GNU General Public License as published by
93229Spst// the Free Software Foundation; either version 2, or (at your option)
103229Spst// any later version.
113229Spst//
123229Spst// GNU CC is distributed in the hope that it will be useful,
133229Spst// but WITHOUT ANY WARRANTY; without even the implied warranty of
143229Spst// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1568561Sdirk// GNU General Public License for more details.
163229Spst//
173229Spst// You should have received a copy of the GNU General Public License
183229Spst// along with GNU CC; see the file COPYING.  If not, write to
193229Spst// the Free Software Foundation, 59 Temple Place - Suite 330,
203229Spst// Boston, MA 02111-1307, USA.
213229Spst//
223229Spst// As a special exception, you may use this file as part of a free software
233229Spst// library without restriction.  Specifically, if other files instantiate
243229Spst// templates or use macros or inline functions from this file, or you compile
253229Spst// this file and link it with other files to produce an executable, this
263229Spst// file does not by itself cause the resulting executable to be covered by
273229Spst// the GNU General Public License.  This exception does not however
283229Spst// invalidate any other reasons why the executable file might be covered by
293229Spst// the GNU General Public License.
303229Spst
313229Spst#include "new"
323229Spst
333229Spstextern "C" void free (void *);
343229Spst
353229Spstvoid
363229Spstoperator delete (void *ptr, const std::nothrow_t&) throw ()
3768561Sdirk{
3868561Sdirk  if (ptr)
3968561Sdirk    free (ptr);
4068561Sdirk}
4168561Sdirk