diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-03-29 03:29:08 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-03-29 03:29:08 (GMT) |
commit | 1f7df3595a0ddc5ef545d686bbb2933b11b7c8ce (patch) | |
tree | 6f6774880044bab55c1ba90903e75976912b8e23 /Objects/bufferobject.c | |
parent | 835840560bdd9edcf21186bace543e316fe921ca (diff) | |
download | cpython-1f7df3595a0ddc5ef545d686bbb2933b11b7c8ce.zip cpython-1f7df3595a0ddc5ef545d686bbb2933b11b7c8ce.tar.gz cpython-1f7df3595a0ddc5ef545d686bbb2933b11b7c8ce.tar.bz2 |
Remove the CACHE_HASH and INTERN_STRINGS preprocessor symbols.
Diffstat (limited to 'Objects/bufferobject.c')
-rw-r--r-- | Objects/bufferobject.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Objects/bufferobject.c b/Objects/bufferobject.c index 57d031c..51b9ef9 100644 --- a/Objects/bufferobject.c +++ b/Objects/bufferobject.c @@ -10,9 +10,7 @@ typedef struct { void *b_ptr; int b_size; int b_readonly; -#ifdef CACHE_HASH long b_hash; -#endif } PyBufferObject; @@ -36,9 +34,7 @@ _PyBuffer_FromMemory(PyObject *base, void *ptr, int size, int readonly) b->b_ptr = ptr; b->b_size = size; b->b_readonly = readonly; -#ifdef CACHE_HASH b->b_hash = -1; -#endif return (PyObject *) b; } @@ -152,9 +148,7 @@ PyBuffer_New(int size) b->b_ptr = (void *)(b + 1); b->b_size = size; b->b_readonly = 0; -#ifdef CACHE_HASH b->b_hash = -1; -#endif return o; } @@ -211,10 +205,8 @@ buffer_hash(PyBufferObject *self) register unsigned char *p; register long x; -#ifdef CACHE_HASH if ( self->b_hash != -1 ) return self->b_hash; -#endif if ( !self->b_readonly ) { @@ -231,9 +223,7 @@ buffer_hash(PyBufferObject *self) x ^= self->b_size; if (x == -1) x = -2; -#ifdef CACHE_HASH self->b_hash = x; -#endif return x; } |