diff options
author | Hai Shi <shihai1992@gmail.com> | 2019-07-09 18:00:27 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2019-07-09 18:00:27 (GMT) |
commit | 3a3db970de344efbb4017fb9dde9204f0fd4bbdc (patch) | |
tree | 4331b35930e113effba91c8d21fc12528a8e92db /Modules | |
parent | 73ea54620a6f91c3f2e53880373dd47813691a21 (diff) | |
download | cpython-3a3db970de344efbb4017fb9dde9204f0fd4bbdc.zip cpython-3a3db970de344efbb4017fb9dde9204f0fd4bbdc.tar.gz cpython-3a3db970de344efbb4017fb9dde9204f0fd4bbdc.tar.bz2 |
bpo-27679: Remove set_bitfields() from _ctypes_test (GH-14648)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/_ctypes_test.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Modules/_ctypes/_ctypes_test.c b/Modules/_ctypes/_ctypes_test.c index bae4976..4789d6b 100644 --- a/Modules/_ctypes/_ctypes_test.c +++ b/Modules/_ctypes/_ctypes_test.c @@ -425,30 +425,6 @@ struct BITS { #endif }; -EXPORT(void) set_bitfields(struct BITS *bits, char name, int value) -{ - switch (name) { - case 'A': bits->A = value; break; - case 'B': bits->B = value; break; - case 'C': bits->C = value; break; - case 'D': bits->D = value; break; - case 'E': bits->E = value; break; - case 'F': bits->F = value; break; - case 'G': bits->G = value; break; - case 'H': bits->H = value; break; - case 'I': bits->I = value; break; -#ifdef SIGNED_SHORT_BITFIELDS - case 'M': bits->M = value; break; - case 'N': bits->N = value; break; - case 'O': bits->O = value; break; - case 'P': bits->P = value; break; - case 'Q': bits->Q = value; break; - case 'R': bits->R = value; break; - case 'S': bits->S = value; break; -#endif - } -} - EXPORT(int) unpack_bitfields(struct BITS *bits, char name) { switch (name) { |