@@ -2268,7 +2268,7 @@ typedef struct channelid {
22682268 _channels * channels ;
22692269} channelid ;
22702270
2271- #define _channelid_CAST (op ) ((channelid *)(op))
2271+ #define channelid_CAST (op ) ((channelid *)(op))
22722272
22732273struct channel_id_converter_data {
22742274 PyObject * module ;
@@ -2400,7 +2400,7 @@ _channelid_new(PyObject *mod, PyTypeObject *cls,
24002400static void
24012401channelid_dealloc (PyObject * op )
24022402{
2403- channelid * self = _channelid_CAST (op );
2403+ channelid * self = channelid_CAST (op );
24042404 int64_t cid = self -> cid ;
24052405 _channels * channels = self -> channels ;
24062406
@@ -2423,7 +2423,7 @@ channelid_repr(PyObject *self)
24232423 PyTypeObject * type = Py_TYPE (self );
24242424 const char * name = _PyType_Name (type );
24252425
2426- channelid * cidobj = _channelid_CAST (self );
2426+ channelid * cidobj = channelid_CAST (self );
24272427 const char * fmt ;
24282428 if (cidobj -> end == CHANNEL_SEND ) {
24292429 fmt = "%s(%" PRId64 ", send=True)" ;
@@ -2440,21 +2440,21 @@ channelid_repr(PyObject *self)
24402440static PyObject *
24412441channelid_str (PyObject * self )
24422442{
2443- channelid * cidobj = _channelid_CAST (self );
2443+ channelid * cidobj = channelid_CAST (self );
24442444 return PyUnicode_FromFormat ("%" PRId64 "" , cidobj -> cid );
24452445}
24462446
24472447static PyObject *
24482448channelid_int (PyObject * self )
24492449{
2450- channelid * cidobj = _channelid_CAST (self );
2450+ channelid * cidobj = channelid_CAST (self );
24512451 return PyLong_FromLongLong (cidobj -> cid );
24522452}
24532453
24542454static Py_hash_t
24552455channelid_hash (PyObject * self )
24562456{
2457- channelid * cidobj = _channelid_CAST (self );
2457+ channelid * cidobj = channelid_CAST (self );
24582458 PyObject * pyid = PyLong_FromLongLong (cidobj -> cid );
24592459 if (pyid == NULL ) {
24602460 return -1 ;
@@ -2486,7 +2486,7 @@ channelid_richcompare(PyObject *self, PyObject *other, int op)
24862486 goto done ;
24872487 }
24882488
2489- channelid * cidobj = _channelid_CAST (self );
2489+ channelid * cidobj = channelid_CAST (self );
24902490 int equal ;
24912491 if (PyObject_TypeCheck (other , state -> ChannelIDType )) {
24922492 channelid * othercidobj = (channelid * )other ; // fast safe cast
@@ -2609,7 +2609,7 @@ _channelid_shared(PyThreadState *tstate, PyObject *obj, _PyXIData_t *data)
26092609 return -1 ;
26102610 }
26112611 struct _channelid_xid * xid = (struct _channelid_xid * )_PyXIData_DATA (data );
2612- channelid * cidobj = _channelid_CAST (obj );
2612+ channelid * cidobj = channelid_CAST (obj );
26132613 xid -> cid = cidobj -> cid ;
26142614 xid -> end = cidobj -> end ;
26152615 xid -> resolve = cidobj -> resolve ;
@@ -2620,7 +2620,7 @@ static PyObject *
26202620channelid_end (PyObject * self , void * end )
26212621{
26222622 int force = 1 ;
2623- channelid * cidobj = _channelid_CAST (self );
2623+ channelid * cidobj = channelid_CAST (self );
26242624 if (end != NULL ) {
26252625 PyObject * obj = NULL ;
26262626 int err = newchannelid (Py_TYPE (self ), cidobj -> cid , * (int * )end ,
0 commit comments