Added shifting and masking ops to as_number struct

This commit is contained in:
Guido van Rossum 1991-10-24 14:58:18 +00:00
parent d18ad58349
commit 7a6dfa7d79
1 changed files with 6 additions and 0 deletions

View File

@ -136,6 +136,12 @@ typedef struct {
object *(*nb_positive) FPROTO((object *));
object *(*nb_absolute) FPROTO((object *));
int (*nb_nonzero) FPROTO((object *));
object *(*nb_invert) FPROTO((object *));
object *(*nb_lshift) FPROTO((object *, object *));
object *(*nb_rshift) FPROTO((object *, object *));
object *(*nb_and) FPROTO((object *, object *));
object *(*nb_xor) FPROTO((object *, object *));
object *(*nb_or) FPROTO((object *, object *));
} number_methods;
typedef struct {