From cd5dea3211073f378796c422dbf62b0a731ef870 Mon Sep 17 00:00:00 2001 From: bsrdjan Date: Thu, 20 Apr 2023 12:56:54 +0200 Subject: [PATCH] feat: version 2.8.1 linux source --- src/pyrfc/_cyrfc.cpp | 142 ++++++++++++++----------------------------- 1 file changed, 45 insertions(+), 97 deletions(-) diff --git a/src/pyrfc/_cyrfc.cpp b/src/pyrfc/_cyrfc.cpp index 766f449..2dc4abf 100644 --- a/src/pyrfc/_cyrfc.cpp +++ b/src/pyrfc/_cyrfc.cpp @@ -1,118 +1,66 @@ -/* Generated by Cython 0.29.33 */ +/* Generated by Cython 0.29.34 */ /* BEGIN: Cython Metadata { "distutils": { "define_macros": [ [ - "SAPonNT", - null - ], - [ - "_CRT_NON_CONFORMING_SWPRINTFS", - null - ], - [ - "_CRT_SECURE_NO_DEPRECATES", - null - ], - [ - "_CRT_NONSTDC_NO_DEPRECATE", - null - ], - [ - "_AFXDLL", + "NDEBUG", null ], [ - "WIN32", + "_LARGEFILE_SOURCE", null ], [ - "_WIN32_WINNT", - "0x0502" - ], - [ - "WIN64", + "_CONSOLE", null ], [ - "_AMD64_", - null + "_FILE_OFFSET_BITS", + 64 ], [ - "NDEBUG", + "SAPonUNIX", null ], [ "SAPwithUNICODE", null ], - [ - "UNICODE", - null - ], - [ - "_UNICODE", - null - ], [ "SAPwithTHREADS", null ], [ - "_ATL_ALLOW_CHAR_UNSIGNED", + "SAPonLIN", null - ], - [ - "_LARGEFILE_SOURCE", - null - ], - [ - "_CONSOLE", - null - ], - [ - "SAP_PLATFORM_MAKENAME", - "ntintel" ] ], "depends": [], "extra_compile_args": [ - "-Ic:\\tools\\nwrfcsdk\\include", - "-IC:\\Users\\bsrdjan\\.pyenv\\pyenv-win\\versions\\3.7.9\\lib\\inspect.py\\Include", - "-IC:\\Users\\bsrdjan\\.pyenv\\pyenv-win\\versions\\3.7.9\\lib\\inspect.py\\Include\\PC", - "/EHs", - "/Gy", - "/J", - "/MD", - "/nologo", - "/W3", - "/Z7", - "/GL", - "/O2", - "/Oy-", - "/we4552", - "/we4700", - "/we4789" + "-Wall", + "-O2", + "-fexceptions", + "-funsigned-char", + "-fno-strict-aliasing", + "-Wall", + "-Wno-uninitialized", + "-Wno-deprecated-declarations", + "-Wno-unused-function", + "-Wcast-align", + "-fPIC", + "-pthread", + "-minline-all-stringops", + "-I/usr/local/sap/nwrfcsdk/include" ], "extra_link_args": [ - "-LIBPATH:c:\\tools\\nwrfcsdk\\lib", - "-LIBPATH:C:\\Users\\bsrdjan\\.pyenv\\pyenv-win\\versions\\3.7.9\\lib\\inspect.py\\PCbuild", - "/NXCOMPAT", - "/STACK:0x2000000", - "/SWAPRUN:NET", - "/DEBUG", - "/OPT:REF", - "/DEBUGTYPE:CV,FIXUP", - "/MACHINE:amd64", - "/nologo", - "/LTCG" + "-L/usr/local/sap/nwrfcsdk/lib" ], "language": "c++", "libraries": [ "sapnwrfc", - "libsapucum" + "sapucum" ], "name": "pyrfc._cyrfc", "sources": [ @@ -132,8 +80,8 @@ END: Cython Metadata */ #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000) #error Cython requires Python 2.6+ or Python 3.3+. #else -#define CYTHON_ABI "0_29_33" -#define CYTHON_HEX_VERSION 0x001D21F0 +#define CYTHON_ABI "0_29_34" +#define CYTHON_HEX_VERSION 0x001D22F0 #define CYTHON_FUTURE_DIVISION 0 #include #ifndef offsetof @@ -326,7 +274,7 @@ END: Cython Metadata */ #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #elif !defined(CYTHON_USE_PYLONG_INTERNALS) - #define CYTHON_USE_PYLONG_INTERNALS 1 + #define CYTHON_USE_PYLONG_INTERNALS (PY_VERSION_HEX < 0x030C00A5) #endif #ifndef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 1 @@ -365,7 +313,7 @@ END: Cython Metadata */ #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1) #endif #ifndef CYTHON_USE_DICT_VERSIONS - #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1) + #define CYTHON_USE_DICT_VERSIONS ((PY_VERSION_HEX >= 0x030600B1) && (PY_VERSION_HEX < 0x030C00A5)) #endif #if PY_VERSION_HEX >= 0x030B00A4 #undef CYTHON_USE_EXC_INFO_STACK @@ -1091,14 +1039,14 @@ static const char *__pyx_filename; static const char *__pyx_f[] = { - "src\\pyrfc\\nwrfcsdk.pyx", - "src\\pyrfc\\throughput.pyx", - "src\\pyrfc\\client.pyx", + "src/pyrfc/nwrfcsdk.pyx", + "src/pyrfc/throughput.pyx", + "src/pyrfc/client.pyx", "stringsource", - "src\\pyrfc\\data_container.pyx", - "src\\pyrfc\\server.pyx", - "src\\pyrfc\\_cyrfc.pyx", - "src\\pyrfc\\config.pyx", + "src/pyrfc/data_container.pyx", + "src/pyrfc/server.pyx", + "src/pyrfc/_cyrfc.pyx", + "src/pyrfc/config.pyx", }; /* NoFastGil.proto */ #define __Pyx_PyGILState_Ensure PyGILState_Ensure @@ -2740,7 +2688,7 @@ static const char __pyx_k_RFC_EXTERNAL_FAILURE[] = "RFC_EXTERNAL_FAILURE"; static const char __pyx_k_default_value_string[] = "'default_value' (string) '"; static const char __pyx_k_get_nwrfclib_version[] = "get_nwrfclib_version"; static const char __pyx_k_return_import_params[] = "return_import_params"; -static const char __pyx_k_src_pyrfc_server_pyx[] = "src\\pyrfc\\server.pyx"; +static const char __pyx_k_src_pyrfc_server_pyx[] = "src/pyrfc/server.pyx"; static const char __pyx_k_FunctionDescription_2[] = "FunctionDescription"; static const char __pyx_k_RfcParameterDirection[] = "RfcParameterDirection"; static const char __pyx_k_connection_attributes[] = "connection_attributes"; @@ -2752,7 +2700,7 @@ static const char __pyx_k_TypeDescription___repr[] = "TypeDescription.__repr__"; static const char __pyx_k_create_and_submit_unit[] = "_create_and_submit_unit"; static const char __pyx_k_install_bgrfc_handlers[] = "install_bgrfc_handlers"; static const char __pyx_k_set_ini_file_directory[] = "set_ini_file_directory"; -static const char __pyx_k_src_pyrfc_nwrfcsdk_pyx[] = "src\\pyrfc\\nwrfcsdk.pyx"; +static const char __pyx_k_src_pyrfc_nwrfcsdk_pyx[] = "src/pyrfc/nwrfcsdk.pyx"; static const char __pyx_k_Connection_was_canceled[] = "Connection was canceled: "; static const char __pyx_k_No_connections_assigned[] = "No connections assigned"; static const char __pyx_k_Not_a_valid_error_group[] = "Not a valid error group."; @@ -2762,7 +2710,7 @@ static const char __pyx_k_raises_ABAPRuntimeError[] = "' raises ABAPRuntimeError static const char __pyx_k_Crypto_library_not_found[] = "Crypto library not found:"; static const char __pyx_k_ExternalApplicationError[] = "ExternalApplicationError"; static const char __pyx_k_must_not_exceed_30_chars[] = "' must not exceed 30 chars."; -static const char __pyx_k_src_pyrfc_throughput_pyx[] = "src\\pyrfc\\throughput.pyx"; +static const char __pyx_k_src_pyrfc_throughput_pyx[] = "src/pyrfc/throughput.pyx"; static const char __pyx_k_Invalid_connection_handle[] = "Invalid connection handle."; static const char __pyx_k_MASK_RETURN_IMPORT_PARAMS[] = "_MASK_RETURN_IMPORT_PARAMS"; static const char __pyx_k_Server_function_installed[] = "Server function installed"; @@ -47346,13 +47294,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject } PyErr_SetObject(type, value); if (tb) { -#if CYTHON_COMPILING_IN_PYPY - PyObject *tmp_type, *tmp_value, *tmp_tb; - PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb); - Py_INCREF(tb); - PyErr_Restore(tmp_type, tmp_value, tb); - Py_XDECREF(tmp_tb); -#else +#if CYTHON_FAST_THREAD_STATE PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject* tmp_tb = tstate->curexc_traceback; if (tb != tmp_tb) { @@ -47360,6 +47302,12 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject tstate->curexc_traceback = tb; Py_XDECREF(tmp_tb); } +#else + PyObject *tmp_type, *tmp_value, *tmp_tb; + PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb); + Py_INCREF(tb); + PyErr_Restore(tmp_type, tmp_value, tb); + Py_XDECREF(tmp_tb); #endif } bad: