mirror of https://github.com/python/cpython
Added err_badcall() and planned new errors.
This commit is contained in:
parent
683a072642
commit
3e55cb6302
|
@ -17,8 +17,17 @@ extern object *NameError;
|
|||
extern object *SystemError;
|
||||
extern object *KeyboardInterrupt;
|
||||
|
||||
/* Some more planned for the future */
|
||||
|
||||
#define IndexError RuntimeError
|
||||
#define KeyError RuntimeError
|
||||
#define ZeroDivisionError RuntimeError
|
||||
#define OverflowError RuntimeError
|
||||
|
||||
/* Convenience functions */
|
||||
|
||||
extern int err_badarg PROTO((void));
|
||||
extern object *err_nomem PROTO((void));
|
||||
extern object *err_errno PROTO((object *));
|
||||
|
||||
extern void err_badcall PROTO((void));
|
||||
|
|
|
@ -17,8 +17,17 @@ extern object *NameError;
|
|||
extern object *SystemError;
|
||||
extern object *KeyboardInterrupt;
|
||||
|
||||
/* Some more planned for the future */
|
||||
|
||||
#define IndexError RuntimeError
|
||||
#define KeyError RuntimeError
|
||||
#define ZeroDivisionError RuntimeError
|
||||
#define OverflowError RuntimeError
|
||||
|
||||
/* Convenience functions */
|
||||
|
||||
extern int err_badarg PROTO((void));
|
||||
extern object *err_nomem PROTO((void));
|
||||
extern object *err_errno PROTO((object *));
|
||||
|
||||
extern void err_badcall PROTO((void));
|
||||
|
|
Loading…
Reference in New Issue