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
MkBufferListC_ToList_lng.h
Go to the documentation of this file.
1
12/* LABEL-NO */
13
14#include "tmpl/mk_type_S_lng.h"
15
16// **************************************************************************************************
19 OT_SETUP_NOARG(ToList_doc);
22 MK_BUF buf = NULL;
24 for (MK_NUM i=0; i<hdl->cursize; i++) {
25 buf=hdl->data[i];
26 switch (buf->var.type) {
27 case MK_I8T: { RET = OT_TMP_I8_OBJ(MkBuf2I8(buf)); break; }
28 case MK_BOLT: { RET = OT_TMP_BOL_OBJ(MkBuf2BOL(buf)); break; }
29 case MK_I16T: { RET = OT_TMP_I16_OBJ(MkBuf2I16(buf)); break; }
30 case MK_I32T: { RET = OT_TMP_I32_OBJ(MkBuf2I32(buf)); break; }
31 case MK_FLTT: { RET = OT_TMP_FLT_OBJ(MkBuf2FLT(buf)); break; }
32 case MK_I64T: { RET = OT_TMP_I64_OBJ(MkBuf2I64(buf)); break; }
33 case MK_DBLT: { RET = OT_TMP_DBL_OBJ(MkBuf2DBL(buf)); break; }
34 case MK_BINT: { RET = OT_TMP_BIN_OBJ(buf->storage.first.B,buf->var.cursize); break; }
35 case MK_STRT: { RET = OT_TMP_STR_OBJ(buf->storage.first.C); break; }
36 case MK_LSTT: {
38 MkErrorC_Check(hdl,MkBufferGetBFL (buf, (struct MkBufferListS **) &bfl));
39 OT_MK_CALL_0(bfl,MkBufferListC,ToList,RET);
41 break;
42 }
43 }
44 if (RET == OT_LNG_NULL) goto error;
46 }
47end:
49 error:
51 goto end;
52}
53// **************************************************************************************************
54
#define MK(n)
#define OT_MK_CALL_0(obj, cls, meth, ret)
#define OT_SETUP_NOARG(d)
#define OT_TMP_DBL_OBJ(val)
#define OT_retObj_SET_Error
#define OT_retObj_SET_List
#define OT_TMP_I16_OBJ(val)
#define OT_TMP_I32_OBJ(val)
#define OT_TMP_I64_OBJ(val)
#define OT_retObj_RETURN
#define OT_TMP_BIN_OBJ(val, len)
#define OT_retObj_APPEND(var)
PyObject * OT_OBJ_T
#define OT_TMP_STR_OBJ(val)
#define OT_TMP_I8_OBJ(val)
#define OT_LNG_NULL
#define OT_TMP_BOL_OBJ(val)
#define OT_CHECK_NOARGS
#define MkBufferListC_ARGS
#define MkErrorC_Check(mng, PROC)
#define OT_ProcRet
#define OT_TMP_FLT_OBJ(val)
#define OT_SETUP_hdl
OT_ProcRet MK MkBufferListC_ToList(MkBufferListC_ARGS)
#define MkBuf2I64(buf)
#define MkBuf2BOL(buf)
#define MkBuf2DBL(buf)
#define MkBuf2I8(buf)
#define MkBuf2I16(buf)
#define MkBuf2FLT(buf)
#define MkBuf2I32(buf)
#define MkBufferGetBFL(...)
#define MkBufferListFree(...)
#define MkBufferListCreateLOCAL_T(name, num)
MK_I8T
MK_I64T
MK_FLTT
MK_BINT
MK_I16T
MK_BOLT
MK_DBLT
MK_I32T
MK_STRT
MK_LSTT
int32_t MK_NUM
mk_type_S_lng.h - 10 Apr 2025 - aotto1968
union MkBufferU first
struct MkBufferS::@5 storage
struct MkBufferS::@4 var
MK_NUM cursize
enum MkTypeE type
MK_STRN C
MK_BIN B