theLink
10.0
NHI1
-
theKernel
-
theLink
-
theConfig
-
theSq3Lite
-
theCompiler
-
theBrain
-
theGuard
-
theLib
-
theATL
c
-
tcl
-
atl
-
cs
-
py
-
rb
-
jv
-
cc
Loading...
Searching...
No Matches
tmpl
MqContextC_ReadLIST_lng.h
Go to the documentation of this file.
1
10
/* LABEL-NO */
11
12
//#error "MqC_ReadLIST_lng.h: use ReadALL→ToList
13
14
#include "
tmpl/mq_type_S_lng.h
"
15
16
// **************************************************************************************************
17
OT_ProcRet
NS
(MqContextC_ReadLIST) (
MqContextC_ARGS
) {
18
OT_SETUP_hdl
;
19
OT_SETUP_NOARG
(
ReadLIST_doc
);
20
OT_CHECK_NOARGS
;
21
OT_retObj_SET_List
;
22
OT_OBJ_T
RET =
OT_LNG_NULL
;
23
MK_BUF
buf = NULL;
24
while
(
MqReadItemExists
(hdl)) {
25
MqReadBUF
(hdl, &buf);
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
: {
37
MK_BFL
bfl =
MkBufferListCreate
(5);
38
MkErrorC_Check
(hdl,
MkBufferGetBFL
(buf, &bfl));
39
OT_MK_CALL_0
(bfl,MkBufferListC,ToList,RET);
40
MkRefDecr_X
(bfl);
41
break
;
42
}
43
/*
44
case MQ_ROUT:
45
case MQ_LTRT: {
46
OT_ERROR_TYPE("unable to convert an 'internal' object into a 'public' object");
47
RET = OT_LNG_NULL;
48
}
49
*/
50
}
51
if
(RET ==
OT_LNG_NULL
)
goto
error
;
52
OT_retObj_APPEND
(RET);
53
}
54
goto
end;
55
error
:
56
OT_retObj_SET_Error
;
57
end:
58
OT_retObj_RETURN
;
59
}
60
// **************************************************************************************************
OT_MK_CALL_0
#define OT_MK_CALL_0(obj, cls, meth, ret)
Definition
LibMkKernel_rb.h:474
OT_SETUP_NOARG
#define OT_SETUP_NOARG(d)
Definition
LibMkKernel_rb.h:416
OT_TMP_DBL_OBJ
#define OT_TMP_DBL_OBJ(val)
Definition
LibMkKernel_rb.h:544
OT_retObj_SET_Error
#define OT_retObj_SET_Error
Definition
LibMkKernel_rb.h:454
OT_retObj_SET_List
#define OT_retObj_SET_List
Definition
LibMkKernel_rb.h:455
OT_TMP_I16_OBJ
#define OT_TMP_I16_OBJ(val)
Definition
LibMkKernel_rb.h:540
OT_OBJ_T
#define OT_OBJ_T
Definition
LibMkKernel_rb.h:91
OT_TMP_I32_OBJ
#define OT_TMP_I32_OBJ(val)
Definition
LibMkKernel_rb.h:541
OT_TMP_I64_OBJ
#define OT_TMP_I64_OBJ(val)
Definition
LibMkKernel_rb.h:542
OT_retObj_RETURN
#define OT_retObj_RETURN
Definition
LibMkKernel_rb.h:457
OT_TMP_BIN_OBJ
#define OT_TMP_BIN_OBJ(val, len)
Definition
LibMkKernel_rb.h:545
OT_retObj_APPEND
#define OT_retObj_APPEND(var)
Definition
LibMkKernel_rb.h:456
OT_TMP_STR_OBJ
#define OT_TMP_STR_OBJ(val)
Definition
LibMkKernel_rb.h:546
OT_TMP_I8_OBJ
#define OT_TMP_I8_OBJ(val)
Definition
LibMkKernel_rb.h:539
OT_LNG_NULL
#define OT_LNG_NULL
Definition
LibMkKernel_rb.h:95
OT_TMP_BOL_OBJ
#define OT_TMP_BOL_OBJ(val)
Definition
LibMkKernel_rb.h:538
OT_CHECK_NOARGS
#define OT_CHECK_NOARGS
Definition
LibMkKernel_rb.h:565
MkErrorC_Check
#define MkErrorC_Check(mng, PROC)
Definition
LibMkKernel_rb.h:515
OT_ProcRet
#define OT_ProcRet
Definition
LibMkKernel_rb.h:382
OT_TMP_FLT_OBJ
#define OT_TMP_FLT_OBJ(val)
Definition
LibMkKernel_rb.h:543
NS
#define NS(n)
Definition
LibMqMsgque_rb.h:76
MqContextC_ARGS
#define MqContextC_ARGS
Definition
LibMqMsgque_rb.h:108
OT_SETUP_hdl
#define OT_SETUP_hdl
Definition
MqContextC_rb.c:87
ReadLIST_doc
#define ReadLIST_doc
Definition
MqContextC_rb.c:262
MkBuf2I64
#define MkBuf2I64(buf)
MkBuf2BOL
#define MkBuf2BOL(buf)
MkBuf2DBL
#define MkBuf2DBL(buf)
MkBuf2I8
#define MkBuf2I8(buf)
MkBuf2I16
#define MkBuf2I16(buf)
MkBuf2FLT
#define MkBuf2FLT(buf)
MkBuf2I32
#define MkBuf2I32(buf)
MkBufferGetBFL
#define MkBufferGetBFL(...)
MkBufferListCreate
#define MkBufferListCreate(...)
MK_I8T
MK_I8T
MK_I64T
MK_I64T
MK_FLTT
MK_FLTT
MK_BINT
MK_BINT
MK_I16T
MK_I16T
MK_BOLT
MK_BOLT
MK_DBLT
MK_DBLT
MK_I32T
MK_I32T
MK_STRT
MK_STRT
MK_LSTT
MK_LSTT
MkRefDecr_X
#define MkRefDecr_X(x)
MqReadBUF
#define MqReadBUF(...)
Definition
msgque_overload_mq.h:370
MqReadItemExists
bool MqReadItemExists(MQ_CTX const ctx)
check if an item exists in the read-data-package …
error
goto error
Definition
high_lng.h:251
mq_type_S_lng.h
tag: nhi1-release-250425
MkBufferListS
MkBufferS
MkBufferS::first
union MkBufferU first
MkBufferS::storage
struct MkBufferS::@5 storage
MkBufferS::var
struct MkBufferS::@4 var
MkBufferS::cursize
MK_NUM cursize
MkBufferS::type
enum MkTypeE type
MkBufferU::C
MK_STRN C
MkBufferU::B
MK_BIN B
Generated on Thu May 29 2025 13:13:59 for theLink by
1.12.0