summaryrefslogtreecommitdiffhomepage
path: root/src/error.c
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2013-03-26 16:48:26 +0900
committerYukihiro Matz Matsumoto <[email protected]>2013-03-26 16:48:26 +0900
commit87d7fc616504dff16a22e24bc5fa67aae2be0d30 (patch)
tree28e7290b548a4aff1939b6289736efec5d7fcb4d /src/error.c
parenta7842b6451cdb20c9a5aeebf81387e538aa0facf (diff)
parent2d91803528d14b39868fa3c16f9293d1f34e675c (diff)
downloadmruby-87d7fc616504dff16a22e24bc5fa67aae2be0d30.tar.gz
mruby-87d7fc616504dff16a22e24bc5fa67aae2be0d30.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/error.c b/src/error.c
index 6cf160801..ab5480e97 100644
--- a/src/error.c
+++ b/src/error.c
@@ -291,31 +291,6 @@ mrb_bug(const char *fmt, ...)
exit(EXIT_FAILURE);
}
-static const char *
-mrb_strerrno(int err)
-{
-#define defined_error(name, num) if (err == num) return name;
-#define undefined_error(name)
-//#include "known_errors.inc"
-#undef defined_error
-#undef undefined_error
- return NULL;
-}
-
-void
-mrb_bug_errno(const char *mesg, int errno_arg)
-{
- if (errno_arg == 0)
- mrb_bug("%s: errno == 0 (NOERROR)", mesg);
- else {
- const char *errno_str = mrb_strerrno(errno_arg);
- if (errno_str)
- mrb_bug("%s: %s (%s)", mesg, strerror(errno_arg), errno_str);
- else
- mrb_bug("%s: %s (%d)", mesg, strerror(errno_arg), errno_arg);
- }
-}
-
int
sysexit_status(mrb_state *mrb, mrb_value err)
{