theSq3Lite 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard - theLib - theATL
c - tcl - atl - cs - py - rb - jv - cc
Loading...
Searching...
No Matches
LibSq3Lite_private_py.h File Reference

LibSq3Lite_private_py.h - 17 Apr 2025 - aotto1968. More...

#include "LibSq3Lite_py.h"
+ Include dependency graph for LibSq3Lite_private_py.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Sq3Fupu_Sq3LiteExec_callback_call_ret pysq3lite_LiteExecCall (Sq3Fupu_Sq3LiteExec_callback_call_args)
 
Sq3LiteExecV2CB_ret pysq3lite_LiteExecV2Call (Sq3LiteExecV2CB_args)
 

Detailed Description

LibSq3Lite_private_py.h - 17 Apr 2025 - aotto1968.

Version
94486eaaa48431d85fd346f26b604ead9fc893a5
Date
Thu Apr 17 12:31:54 2025 +0200
Author
aotto1968 aotto.nosp@m.1968.nosp@m.@t-on.nosp@m.line.nosp@m..de

Definition in file LibSq3Lite_private_py.h.

Function Documentation

◆ pysq3lite_LiteExecCall()

Definition at line 31 of file Sq3Call_py.c.

32{
34
35 // 1. setup environment
36 if (_Py_IsFinalizing()) return 1;
38
39 MkCallS *cbS = callV1;
40 MkRtSetup_RT(cbS->mkrt);
41
42 OT_OBJ_T resultO = NULL;
43 OT_OBJ_T valsO = PyList_New(num);
44 OT_OBJ_T colsO = PyList_New(num);
45 for (int i=0; i<num; i++) {
46 check_LNG(PyList_SetItem(valsO,i,STRN2VAL(vals[i]))) goto error_lng;
47 }
48 for (int i=0; i<num; i++) {
49 check_LNG(PyList_SetItem(colsO,i,STRN2VAL(cols[i]))) goto error_lng;
50 }
51
52 PyErr_Clear();
53
54 // call the function
55 resultO = PyObject_CallFunctionObjArgs(cbS->callable, valsO, colsO, NULL);
56
57 if (resultO == NULL) {
58 goto error_lng;
59 }
60
61end:
62 Py_CLEAR(valsO);
63 Py_CLEAR(colsO);
64 Py_CLEAR(resultO);
65 return ret;
66error_lng:
68error_mq: MK_UNUSED
70error_end: MK_UNUSED
71 ret=1;
72 goto end;
73}
#define OT_ERROR_LNG_2_META(m)
PyObject * OT_OBJ_T
#define check_LNG(PROC)
#define STRN2VAL(nat)
#define MkErrorStack_0E()
#define MK_UNUSED
#define MkRtSetup_RT(r)
#define Sq3Fupu_Sq3LiteExec_callback_call_check
#define Sq3Fupu_Sq3LiteExec_callback_call_ret
OT_OBJ_T callable

◆ pysq3lite_LiteExecV2Call()

Sq3LiteExecV2CB_ret pysq3lite_LiteExecV2Call ( Sq3LiteExecV2CB_args )

Definition at line 91 of file Sq3Call_py.c.

92{
94
95 // 1. setup environment
96 if (_Py_IsFinalizing()) return MK_ERROR;
97 MkCallS *cbS = callV2;
98
99 OT_OBJ_T resultO = NULL;
100 OT_OBJ_T valsO = OT_TMP_BFL_OBJ(vals);
101 OT_OBJ_T colsO = OT_TMP_BFL_OBJ(cols);
102
103 PyErr_Clear();
104
105 // call the function
106 resultO = PyObject_CallFunctionObjArgs(cbS->callable, valsO, colsO, NULL);
107
108 if (resultO == NULL) {
110 }
111
112 Py_CLEAR(valsO);
113 Py_CLEAR(colsO);
114 Py_CLEAR(resultO);
115 return MkErrorStack_0E_Check();
116}
#define OT_TMP_BFL_OBJ(val)
#define MkErrorStack_0E_Check()
MK_ERROR
#define Sq3Fupu_Sq3LiteExecV2CB_callback_call_check