mirror of
https://github.com/python/cpython.git
synced 2025-10-03 21:55:41 +00:00
bpo-27679: Remove set_bitfields() from _ctypes_test (GH-14648)
This commit is contained in:
parent
73ea54620a
commit
3a3db970de
1 changed files with 0 additions and 24 deletions
|
@ -425,30 +425,6 @@ struct BITS {
|
||||||
#endif
|
#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)
|
EXPORT(int) unpack_bitfields(struct BITS *bits, char name)
|
||||||
{
|
{
|
||||||
switch (name) {
|
switch (name) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue