From: Guido van Rossum Date: Thu, 24 Oct 1991 14:58:18 +0000 (+0000) Subject: Added shifting and masking ops to as_number struct X-Git-Tag: v0.9.8~775 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a6dfa7d79597f29866033ecf648457fe7572a8f;p=thirdparty%2FPython%2Fcpython.git Added shifting and masking ops to as_number struct --- diff --git a/Include/object.h b/Include/object.h index 750cd80c0b16..a2ff9819610c 100644 --- a/Include/object.h +++ b/Include/object.h @@ -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 {