summaryrefslogtreecommitdiffstats
path: root/Include/errors.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1990-10-14 20:00:25 (GMT)
committerGuido van Rossum <guido@python.org>1990-10-14 20:00:25 (GMT)
commit5c600e161450fb87b1d266df2d52a22401f04708 (patch)
treeed19145170fd524374db74a23b61f75411caa738 /Include/errors.h
parent7d310eb0811fbf1fb9bc84156257a2e6abe9a5c2 (diff)
downloadcpython-5c600e161450fb87b1d266df2d52a22401f04708.zip
cpython-5c600e161450fb87b1d266df2d52a22401f04708.tar.gz
cpython-5c600e161450fb87b1d266df2d52a22401f04708.tar.bz2
Made exception objects extern.
Added convenience functions.
Diffstat (limited to 'Include/errors.h')
-rwxr-xr-xInclude/errors.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/Include/errors.h b/Include/errors.h
index 35faaa9..c8fc63b 100755
--- a/Include/errors.h
+++ b/Include/errors.h
@@ -8,10 +8,17 @@ void err_get PROTO((object **, object **));
void err_clear PROTO((void));
/* Predefined exceptions (in run.c) */
-object *RuntimeError; /* Raised by error() */
-object *EOFError; /* Raised by eof_error() */
-object *TypeError; /* Rased by type_error() */
-object *MemoryError; /* Raised by mem_error() */
-object *NameError; /* Raised by name_error() */
-object *SystemError; /* Raised by sys_error() */
-object *KeyboardInterrupt; /* Raised by intr_error() */
+
+extern object *RuntimeError;
+extern object *EOFError;
+extern object *TypeError;
+extern object *MemoryError;
+extern object *NameError;
+extern object *SystemError;
+extern object *KeyboardInterrupt;
+
+/* Convenience functions */
+
+extern int err_badarg PROTO((void));
+extern object *err_nomem PROTO((void));
+extern object *err_errno PROTO((object *));