mirror of https://github.com/python/cpython
Made exception objects extern.
Added convenience functions.
This commit is contained in:
parent
7d310eb081
commit
5c600e1614
|
@ -8,10 +8,17 @@ void err_get PROTO((object **, object **));
|
||||||
void err_clear PROTO((void));
|
void err_clear PROTO((void));
|
||||||
|
|
||||||
/* Predefined exceptions (in run.c) */
|
/* Predefined exceptions (in run.c) */
|
||||||
object *RuntimeError; /* Raised by error() */
|
|
||||||
object *EOFError; /* Raised by eof_error() */
|
extern object *RuntimeError;
|
||||||
object *TypeError; /* Rased by type_error() */
|
extern object *EOFError;
|
||||||
object *MemoryError; /* Raised by mem_error() */
|
extern object *TypeError;
|
||||||
object *NameError; /* Raised by name_error() */
|
extern object *MemoryError;
|
||||||
object *SystemError; /* Raised by sys_error() */
|
extern object *NameError;
|
||||||
object *KeyboardInterrupt; /* Raised by intr_error() */
|
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));
|
void err_clear PROTO((void));
|
||||||
|
|
||||||
/* Predefined exceptions (in run.c) */
|
/* Predefined exceptions (in run.c) */
|
||||||
object *RuntimeError; /* Raised by error() */
|
|
||||||
object *EOFError; /* Raised by eof_error() */
|
extern object *RuntimeError;
|
||||||
object *TypeError; /* Rased by type_error() */
|
extern object *EOFError;
|
||||||
object *MemoryError; /* Raised by mem_error() */
|
extern object *TypeError;
|
||||||
object *NameError; /* Raised by name_error() */
|
extern object *MemoryError;
|
||||||
object *SystemError; /* Raised by sys_error() */
|
extern object *NameError;
|
||||||
object *KeyboardInterrupt; /* Raised by intr_error() */
|
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 *));
|
||||||
|
|
Loading…
Reference in New Issue