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_ReadNEXT_lng.h
Go to the documentation of this file.
1
11
/* LABEL-NO */
12
13
//#error "MqC_ReadNEXT_lng.h: use ReadBUF→ToObject
14
15
#include "
tmpl/mq_type_S_lng.h
"
16
17
// **************************************************************************************************
18
OT_ProcRet
NS
(
MqContextC_ReadNEXT
) (
MqContextC_ARGS
) {
19
OT_SETUP_hdl
20
OT_SETUP_NOARG
(
ReadNEXT_doc
)
21
OT_CHECK_NOARGS
22
OT_OBJ_T
RET =
OT_LNG_NULL
;
23
MK_BUF
buf = NULL;
24
MqReadBUF_E
(hdl, &buf);
25
switch
(buf->
var
.
type
) {
26
case
MK_I8T
: { RET =
OT_TMP_I8_OBJ
(
MkBuf2I8
(buf));
break
; }
27
case
MK_BOLT
: { RET =
OT_TMP_BOL_OBJ
(
MkBuf2BOL
(buf));
break
; }
28
case
MK_I16T
: { RET =
OT_TMP_I16_OBJ
(
MkBuf2I16
(buf));
break
; }
29
case
MK_I32T
: { RET =
OT_TMP_I32_OBJ
(
MkBuf2I32
(buf));
break
; }
30
case
MK_FLTT
: { RET =
OT_TMP_FLT_OBJ
(
MkBuf2FLT
(buf));
break
; }
31
case
MK_I64T
: { RET =
OT_TMP_I64_OBJ
(
MkBuf2I64
(buf));
break
; }
32
case
MK_DBLT
: { RET =
OT_TMP_DBL_OBJ
(
MkBuf2DBL
(buf));
break
; }
33
case
MK_BINT
: { RET =
OT_TMP_BIN_OBJ
(buf->
storage
.
first
.
B
,buf->
var
.
cursize
);
break
; }
34
case
MK_STRT
: { RET =
OT_TMP_STR_OBJ
(buf->
storage
.
first
.
C
);
break
; }
35
case
MK_LSTT
: {
36
MK_BFL
bfl =
MkBufferListCreate
(5);
37
MkErrorC_Check
(hdl,
MkBufferGetBFL
(buf, &bfl));
38
OT_MK_CALL_0
(bfl,MkBufferListC,ToList,RET);
39
MkRefDecr_X
(bfl);
40
break
;
41
}
42
/*
43
case MQ_ROUT:
44
case MQ_LTRT: {
45
OT_ERROR_TYPE("unable to convert an 'internal' object into a 'public' object");
46
RET = OT_LNG_NULL;
47
}
48
*/
49
}
50
if
(RET ==
OT_LNG_NULL
)
goto
error
;
51
OT_retObj_SET
(RET);
52
goto
end;
53
error
:
54
OT_retObj_SET_Error
;
55
end:
56
OT_retObj_RETURN
;
57
}
58
// **************************************************************************************************
OT_SETUP_NOARG
#define OT_SETUP_NOARG(d)
Definition
LibMkKernel_atl.h:159
OT_TMP_DBL_OBJ
#define OT_TMP_DBL_OBJ(val)
Definition
LibMkKernel_atl.h:484
OT_retObj_SET_Error
#define OT_retObj_SET_Error
Definition
LibMkKernel_atl.h:176
OT_TMP_I16_OBJ
#define OT_TMP_I16_OBJ(val)
Definition
LibMkKernel_atl.h:480
OT_TMP_I32_OBJ
#define OT_TMP_I32_OBJ(val)
Definition
LibMkKernel_atl.h:481
OT_TMP_I64_OBJ
#define OT_TMP_I64_OBJ(val)
Definition
LibMkKernel_atl.h:482
OT_retObj_RETURN
#define OT_retObj_RETURN
Definition
LibMkKernel_atl.h:180
OT_TMP_BIN_OBJ
#define OT_TMP_BIN_OBJ(val, len)
Definition
LibMkKernel_atl.h:485
OT_TMP_STR_OBJ
#define OT_TMP_STR_OBJ(val)
Definition
LibMkKernel_atl.h:486
OT_TMP_I8_OBJ
#define OT_TMP_I8_OBJ(val)
Definition
LibMkKernel_atl.h:479
OT_LNG_NULL
#define OT_LNG_NULL
Definition
LibMkKernel_atl.h:324
OT_TMP_BOL_OBJ
#define OT_TMP_BOL_OBJ(val)
Definition
LibMkKernel_atl.h:478
OT_MK_CALL_0
#define OT_MK_CALL_0(hdl, cls, meth, ret)
Definition
LibMkKernel_atl.h:223
OT_retObj_SET
#define OT_retObj_SET(val)
Definition
LibMkKernel_atl.h:172
OT_CHECK_NOARGS
#define OT_CHECK_NOARGS
Definition
LibMkKernel_atl.h:427
MkErrorC_Check
#define MkErrorC_Check(mng, PROC)
Definition
LibMkKernel_atl.h:459
OT_ProcRet
#define OT_ProcRet
Definition
LibMkKernel_atl.h:97
OT_TMP_FLT_OBJ
#define OT_TMP_FLT_OBJ(val)
Definition
LibMkKernel_atl.h:483
OT_OBJ_T
MOX_OBJ_T OT_OBJ_T
Definition
LibMkKernel_atl.h:240
NS
#define NS(n)
Definition
LibMqMsgque_atl.h:77
MqContextC_ARGS
#define MqContextC_ARGS
Definition
LibMqMsgque_atl.h:83
MqContextC_ReadNEXT
OT_ProcRet NS MqContextC_ReadNEXT(MqContextC_ARGS)
Definition
MqContextC_ReadNEXT_lng.h:18
OT_SETUP_hdl
#define OT_SETUP_hdl
Definition
MqContextC_atl.c:47
ReadNEXT_doc
#define ReadNEXT_doc
Definition
MqContextC_atl.c:254
error
#define error
Definition
high_lng.h:339
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_E
#define MqReadBUF_E(...)
Definition
msgque_overload_mq.h:371
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