Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
55e77764
Commit
55e77764
authored
Feb 04, 1997
by
Mike Stump
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
90th Cygnus<->FSF quick merge
From-SVN: r13605
parent
824b9a4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
gcc/cp/inc/new
+16
-6
No files found.
gcc/cp/inc/new
View file @
55e77764
...
...
@@ -6,6 +6,7 @@
#pragma interface "new"
#include <stddef.h>
#include <exception>
extern "C++" {
...
...
@@ -13,8 +14,15 @@ extern "C++" {
namespace std {
#endif
typedef void (*new_handler)();
extern "C" new_handler set_new_handler (new_handler);
class bad_alloc : public exception {
public:
virtual const char* what() const throw() { return "bad_alloc"; }
};
struct nothrow_t {};
extern const nothrow_t nothrow;
typedef void (*new_handler)();
extern "C" new_handler set_new_handler (new_handler);
#if 0
} // namespace std
...
...
@@ -26,13 +34,15 @@ extern "C" void __default_new_handler (void);
// replaceable signatures
void *operator new (size_t);
void *operator new (size_t, const nothrow_t&) throw();
void *operator new[] (size_t);
void operator delete (void *);
void operator delete[] (void *);
void *operator new[] (size_t, const nothrow_t&) throw();
void operator delete (void *) throw();
void operator delete[] (void *) throw();
// default placement versions of operator new
inline void *operator new(size_t, void *place) { return place; }
inline void *operator new[](size_t, void *place) { return place; }
inline void *operator new(size_t, void *place)
throw()
{ return place; }
inline void *operator new[](size_t, void *place)
throw()
{ return place; }
} // extern "C++"
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment