summaryrefslogtreecommitdiff
path: root/include/Exceptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Exceptions.h')
-rw-r--r--include/Exceptions.h54
1 files changed, 1 insertions, 53 deletions
diff --git a/include/Exceptions.h b/include/Exceptions.h
index 74ad938..4e84bc4 100644
--- a/include/Exceptions.h
+++ b/include/Exceptions.h
@@ -8,7 +8,7 @@
#include <string.h>
#include <stdlib.h>
-#define INLINE __inline__
+/* #define INLINE __inline__ */
class Base {
public:
@@ -52,58 +52,6 @@ int xpipe(int *, int = 0) throw (GeneralException);
pid_t xfork() throw (GeneralException);
void xexit(int) throw (GeneralException);
-INLINE char * Base::strdup(const char * s) {
- return xstrdup(s);
-}
-
-INLINE void * Base::malloc(ssize_t s) {
- return xmalloc(s);
-}
-
-INLINE void * Base::realloc(void * p, size_t s) {
- return xrealloc(p, s);
-}
-
-INLINE void * Base::calloc(size_t n, size_t s) {
- return xmalloc(n * s);
-}
-
-INLINE void * Base::operator new(size_t s) {
- return xmalloc(s);
-}
-
-INLINE void * Base::operator new(size_t s, void * p) {
- return memset(p, 0, s);
-}
-
-INLINE void Base::operator delete(void * p) {
- xfree(p);
-}
-
-INLINE void Base::free(void *& p) {
- xfree(p);
-}
-
-INLINE void Base::free(char *& p) {
- xfree(p);
-}
-
-INLINE void Base::free(unsigned char *& p) {
- xfree(p);
-}
-
-INLINE int Base::pipe(int * p, int flag) {
- return xpipe(p, flag);
-}
-
-INLINE pid_t Base::fork() {
- return xfork();
-}
-
-INLINE void Base::exit(int status) {
- xexit(status);
-}
-
class MemoryException : public GeneralException {
public:
MemoryException(ssize_t);