summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/palloc.h
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2017-01-04 18:00:38 +0100
committer couriersud <couriersud@arcor.de>2017-01-04 18:01:22 +0100
commit78ef96336e916fe0adbc313cbf706c413fcc75aa (patch)
treea7e2965e5e98cd2a502dab35b975aa610c3e1171 /src/lib/netlist/plib/palloc.h
parent85d1aca315bf336ca0f4cc51ba035f1607903cf8 (diff)
Added SIGFPE enabling code to plib/pexception.*. Moved plib exceptions
into these files as well. The code uses <cfenv> which is part of c++11 standard. Non-standard glib extensions are currently only used on linux and (i386 or x86_64). (nw)
Diffstat (limited to 'src/lib/netlist/plib/palloc.h')
-rw-r--r--src/lib/netlist/plib/palloc.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/lib/netlist/plib/palloc.h b/src/lib/netlist/plib/palloc.h
index a12595e0027..1f4a5b083d9 100644
--- a/src/lib/netlist/plib/palloc.h
+++ b/src/lib/netlist/plib/palloc.h
@@ -8,7 +8,6 @@
#ifndef PALLOC_H_
#define PALLOC_H_
-#include <exception>
#include <vector>
#include <memory>
#include <utility>
@@ -17,59 +16,6 @@
#include "pstring.h"
namespace plib {
-//============================================================
-// exception base
-//============================================================
-
-class pexception : public std::exception
-{
-public:
- pexception(const pstring text);
- pexception(const pexception &e) : std::exception(e) { m_text = e.m_text; }
-
- virtual ~pexception() noexcept {}
-
- const pstring &text() { return m_text; }
-
-private:
- pstring m_text;
-};
-
-class file_e : public plib::pexception
-{
-public:
- explicit file_e(const pstring fmt, const pstring &filename);
-};
-
-class file_open_e : public file_e
-{
-public:
- explicit file_open_e(const pstring &filename);
-};
-
-class file_read_e : public file_e
-{
-public:
- explicit file_read_e(const pstring &filename);
-};
-
-class file_write_e : public file_e
-{
-public:
- explicit file_write_e(const pstring &filename);
-};
-
-class null_argument_e : public plib::pexception
-{
-public:
- explicit null_argument_e(const pstring &argument);
-};
-
-class out_of_mem_e : public plib::pexception
-{
-public:
- explicit out_of_mem_e(const pstring &location);
-};
//============================================================
// Memory allocation