Skip to content

Commit 8f5a5b5

Browse files
committed
Update ASN.1c sources to use unsigned enum
--- + Update gh-action-pypi-publish to latest release
1 parent 26bacbd commit 8f5a5b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+112
-112
lines changed

.github/workflows/ci-wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ jobs:
5151
path: dist
5252
merge-multiple: true
5353

54-
- uses: pypa/gh-action-pypi-publish@release/v1
54+
- uses: pypa/gh-action-pypi-publish@v1.12.4

src/icspacket/proto/iec61850/_iec61850/ErrorReason_Py.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ PyCompat_DEF_ENUM(ErrorReason);
2626
static inline int PyAsnErrorReason_FromPython(PyObject *pObj, ErrorReason_t *pDst)
2727
{
2828
PY_IMPL_FROMPY_COMPAT(ErrorReason, pObj, pDst);
29-
return PyCompatEnum_FromObject(pObj, (void *)pDst, 1);
29+
return PyCompatEnum_FromObject(pObj, (void *)pDst, 0);
3030
}
3131
static inline PyObject *PyAsnErrorReason_ToPython(ErrorReason_t *pSrc, PyObject *parent)
3232
{

src/icspacket/proto/iec61850/_iec61850/GlbErrors_Py.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ PyCompat_DEF_ENUM(GlbErrors);
2626
static inline int PyAsnGlbErrors_FromPython(PyObject *pObj, GlbErrors_t *pDst)
2727
{
2828
PY_IMPL_FROMPY_COMPAT(GlbErrors, pObj, pDst);
29-
return PyCompatEnum_FromObject(pObj, (void *)pDst, 1);
29+
return PyCompatEnum_FromObject(pObj, (void *)pDst, 0);
3030
}
3131
static inline PyObject *PyAsnGlbErrors_ToPython(GlbErrors_t *pSrc, PyObject *parent)
3232
{

src/icspacket/proto/iso_pres/_iso8823/Abort-reason_Py.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ PyCompat_DEF_ENUM(Abort_reason);
2626
static inline int PyAsnAbort_reason_FromPython(PyObject *pObj, Abort_reason_t *pDst)
2727
{
2828
PY_IMPL_FROMPY_COMPAT(Abort_reason, pObj, pDst);
29-
return PyCompatEnum_FromObject(pObj, (void *)pDst, 1);
29+
return PyCompatEnum_FromObject(pObj, (void *)pDst, 0);
3030
}
3131
static inline PyObject *PyAsnAbort_reason_ToPython(Abort_reason_t *pSrc, PyObject *parent)
3232
{

src/icspacket/proto/iso_pres/_iso8823/Event-identifier_Py.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ PyCompat_DEF_ENUM(Event_identifier);
2626
static inline int PyAsnEvent_identifier_FromPython(PyObject *pObj, Event_identifier_t *pDst)
2727
{
2828
PY_IMPL_FROMPY_COMPAT(Event_identifier, pObj, pDst);
29-
return PyCompatEnum_FromObject(pObj, (void *)pDst, 1);
29+
return PyCompatEnum_FromObject(pObj, (void *)pDst, 0);
3030
}
3131
static inline PyObject *PyAsnEvent_identifier_ToPython(Event_identifier_t *pSrc, PyObject *parent)
3232
{

src/icspacket/proto/iso_pres/_iso8823/Mode-selector_Py.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
/* class implementation */
99
PyObject *PyAsnEnumMode_selector_mode_value_Type = NULL;
10-
PY_IMPL_SEQ_ATTR_FROMPY(Mode_selector, mode_value, PyCompatEnum_FromObject(value, target, 1));
11-
PY_IMPL_SEQ_ATTR_TOPY(Mode_selector, mode_value, PyCompatEnum_AsObject(PyAsnEnumMode_selector_mode_value_Type, target, 1));
10+
PY_IMPL_SEQ_ATTR_FROMPY(Mode_selector, mode_value, PyCompatEnum_FromObject(value, target, 0));
11+
PY_IMPL_SEQ_ATTR_TOPY(Mode_selector, mode_value, PyCompatEnum_AsObject(PyAsnEnumMode_selector_mode_value_Type, target, 0));
1212
PY_IMPL_SET_GETATTR(Mode_selector, Mode_selector, mode_value);
1313
PY_IMPL_SET_SETATTR(Mode_selector, Mode_selector, mode_value);
1414
PY_IMPL_GENERIC_DEALLOC(Mode_selector);

src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list_Py.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
#include <Presentation-context-deletion-result-list_Py.h>
77

88
/* class implementation */
9-
PY_IMPL_SEQ_OF_ITEM_FROMPY(Presentation_context_deletion_result_list, Py_ssize_t, PyCompatLong_FromObject(value, target, 1));
10-
PY_IMPL_SEQ_OF_ITEM_TOPY(Presentation_context_deletion_result_list, Py_ssize_t, PyCompatLong_AsObject(src, 1));
11-
PY_IMPL_SEQ_OF_FROMPY(Presentation_context_deletion_result_list, Py_ssize_t);
12-
PY_IMPL_SEQ_OF_SETITEM(Presentation_context_deletion_result_list, Py_ssize_t);
13-
PY_IMPL_SEQ_OF_ADD(Presentation_context_deletion_result_list, Py_ssize_t);
9+
PY_IMPL_SEQ_OF_ITEM_FROMPY(Presentation_context_deletion_result_list, unsigned long, PyCompatLong_FromObject(value, target, 0));
10+
PY_IMPL_SEQ_OF_ITEM_TOPY(Presentation_context_deletion_result_list, unsigned long, PyCompatLong_AsObject(src, 0));
11+
PY_IMPL_SEQ_OF_FROMPY(Presentation_context_deletion_result_list, unsigned long);
12+
PY_IMPL_SEQ_OF_SETITEM(Presentation_context_deletion_result_list, unsigned long);
13+
PY_IMPL_SEQ_OF_ADD(Presentation_context_deletion_result_list, unsigned long);
1414
PY_IMPL_SEQ_OF_NEW(Presentation_context_deletion_result_list);
1515
PY_IMPL_SEQ_OF_DEALLOC(Presentation_context_deletion_result_list, asn_set_empty);
1616
PY_IMPL_SEQ_OF_INIT(Presentation_context_deletion_result_list);

src/icspacket/proto/iso_pres/_iso8823/Provider-reason_Py.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ PyCompat_DEF_ENUM(Provider_reason);
2626
static inline int PyAsnProvider_reason_FromPython(PyObject *pObj, Provider_reason_t *pDst)
2727
{
2828
PY_IMPL_FROMPY_COMPAT(Provider_reason, pObj, pDst);
29-
return PyCompatEnum_FromObject(pObj, (void *)pDst, 1);
29+
return PyCompatEnum_FromObject(pObj, (void *)pDst, 0);
3030
}
3131
static inline PyObject *PyAsnProvider_reason_ToPython(Provider_reason_t *pSrc, PyObject *parent)
3232
{

src/icspacket/proto/iso_pres/_iso8823/Result-list_Py.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ PY_IMPL_SEQ_OPT_SETATTR(Result_list_Member_ANON_2, transfer_syntax_name);
1919
PY_IMPL_SEQ_ATTR_GENERIC_FREE(Result_list_Member_ANON_2, provider_reason);
2020
PY_IMPL_SEQ_ATTR_GENERIC_NEW(Result_list_Member_ANON_2, provider_reason, long);
2121
PyObject *PyAsnEnumResult_list_Member_ANON_2_provider_reason_Type = NULL;
22-
PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Result_list_Member_ANON_2, provider_reason, PyCompatEnum_FromObject(value, target, 1));
23-
PY_IMPL_SEQ_ATTR_INDIRECT_TOPY(Result_list_Member_ANON_2, provider_reason, PyCompatEnum_AsObject(PyAsnEnumResult_list_Member_ANON_2_provider_reason_Type, target, 1));
22+
PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Result_list_Member_ANON_2, provider_reason, PyCompatEnum_FromObject(value, target, 0));
23+
PY_IMPL_SEQ_ATTR_INDIRECT_TOPY(Result_list_Member_ANON_2, provider_reason, PyCompatEnum_AsObject(PyAsnEnumResult_list_Member_ANON_2_provider_reason_Type, target, 0));
2424
PY_IMPL_SEQ_OPT_GETATTR(Result_list_Member_ANON_2, provider_reason);
2525
PY_IMPL_SEQ_OPT_SETATTR(Result_list_Member_ANON_2, provider_reason);
2626
PY_IMPL_CHECK_CONSTRAINTS(Result_list_Member_ANON_2, asn_DEF_Result_list.elements[0].type);

src/icspacket/proto/iso_pres/_iso8823/Result_Py.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ PyCompat_DEF_ENUM(Result);
2626
static inline int PyAsnResult_FromPython(PyObject *pObj, Result_t *pDst)
2727
{
2828
PY_IMPL_FROMPY_COMPAT(Result, pObj, pDst);
29-
return PyCompatEnum_FromObject(pObj, (void *)pDst, 1);
29+
return PyCompatEnum_FromObject(pObj, (void *)pDst, 0);
3030
}
3131
static inline PyObject *PyAsnResult_ToPython(Result_t *pSrc, PyObject *parent)
3232
{

0 commit comments

Comments
 (0)