theLink 10.0
Loading...
Searching...
No Matches
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// **************************************************************************************************
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: {
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:
55 end:
57}
58// **************************************************************************************************
#define OT_SETUP_NOARG(d)
#define OT_TMP_DBL_OBJ(val)
#define OT_retObj_SET_Error
#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_TMP_STR_OBJ(val)
#define OT_TMP_I8_OBJ(val)
#define OT_LNG_NULL
#define OT_TMP_BOL_OBJ(val)
#define OT_MK_CALL_0(hdl, cls, meth, ret)
#define OT_retObj_SET(val)
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define OT_ProcRet
Tcl_Obj * OT_OBJ_T
#define OT_TMP_FLT_OBJ(val)
#define NS(n)
#define MqContextC_ARGS
OT_ProcRet NS MqContextC_ReadNEXT(MqContextC_ARGS)
#define OT_SETUP_hdl
#define ReadNEXT_doc
#define error
Definition high_lng.h:339
#define MkBuf2I64(buf)
#define MkBuf2BOL(buf)
#define MkBuf2DBL(buf)
#define MkBuf2I8(buf)
#define MkBuf2I16(buf)
#define MkBuf2FLT(buf)
#define MkBuf2I32(buf)
#define MkBufferGetBFL(...)
#define MkBufferListCreate(...)
MK_I8T
MK_I64T
MK_FLTT
MK_BINT
MK_I16T
MK_BOLT
MK_DBLT
MK_I32T
MK_STRT
MK_LSTT
#define MkRefDecr_X(x)
#define MqReadBUF_E(...)
tag: nhi1-release-250425
union MkBufferU first
struct MkBufferS::@5 storage
struct MkBufferS::@4 var
MK_NUM cursize
enum MkTypeE type
MK_STRN C
MK_BIN B