Kaydet (Commit) 5c600e16 authored tarafından Guido van Rossum's avatar Guido van Rossum

Made exception objects extern.

Added convenience functions.
üst 7d310eb0
......@@ -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 *));
......@@ -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 *));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment