diff options
author | Guido van Rossum <guido@python.org> | 1991-10-24 14:58:18 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-10-24 14:58:18 (GMT) |
commit | 7a6dfa7d79597f29866033ecf648457fe7572a8f (patch) | |
tree | 17a46ea50dfad29c4dac40130ffbec25afbecdda /Include | |
parent | d18ad58349bb28a32100b2ae0ae2a0cd9a0361a0 (diff) | |
download | cpython-7a6dfa7d79597f29866033ecf648457fe7572a8f.zip cpython-7a6dfa7d79597f29866033ecf648457fe7572a8f.tar.gz cpython-7a6dfa7d79597f29866033ecf648457fe7572a8f.tar.bz2 |
Added shifting and masking ops to as_number struct
Diffstat (limited to 'Include')
-rw-r--r-- | Include/object.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h index 750cd80..a2ff981 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 { |