theKernel 10.0
Loading...
Searching...
No Matches
libmkkernel Namespace Reference

Classes

struct  MK_STRN_A
 array of libmkkernel::MK_STRN values … More...
 
struct  MkAllocDefS
 define the storage-allocator function More...
 
struct  MkBinaryR
 binary data default format … More...
 
struct  MkBuffer1024S
 the final class of MkBufferS with 1024 byte ILS-SizeMore...
 
struct  MkBuffer256S
 the final class of MkBufferS with 256 byte ILS-SizeMore...
 
struct  MkBuffer64S
 the final class of MkBufferS with 64 byte ILS-SizeMore...
 
union  MkBufferAtomU
 union used to set or modify native data from an MkBufferS object … More...
 
struct  MkBufferListS
 The CLASS used to store a list of MkBufferS items into a flat array… More...
 
struct  MkBufferS
 The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPEMore...
 
struct  MkBufferStream1024S
 the final class of MkBufferStreamS with 1024 byte ILS-SizeMore...
 
struct  MkBufferStream16384S
 the final class of MkBufferStreamS with 16384 byte ILS-SizeMore...
 
struct  MkBufferStream256S
 the final class of MkBufferStreamS with 256 byte ILS-SizeMore...
 
struct  MkBufferStream64S
 the final class of MkBufferStreamS with 64 byte ILS-SizeMore...
 
struct  MkBufferStreamS
 The ABSTRACT-CLASS MkBufferStreamS is used for package-based serialized IOMore...
 
union  MkBufferU
 a union for all data items supported by MkBufferSMore...
 
struct  MkCacheItemS
 a linked-list to opearate a storage of data items More...
 
struct  MkCacheS
 This is an circel storage of a linked-list connected with a "lock" at libmkkernel::MkCacheSMore...
 
struct  MkErrExtS
 extension-slot for MkErrorSMore...
 
struct  MkErrorDefaultS
 signal-slot for raise an errorMore...
 
struct  MkErrorExitS
 signal-slot for panic on errorMore...
 
struct  MkErrorIgnoreS
 signal-slot for ignore on errorMore...
 
struct  MkErrorPanicS
 signal-slot for panic on errorMore...
 
struct  MkErrorPrintS
 signal-slot for print on errorMore...
 
struct  MkErrorS
 The data-type to store and handle the error-conditionMore...
 
struct  MkExtensionS
 Base class for the extension technologie … More...
 
struct  MkIdS
 data type for process/thread identification … More...
 
struct  MkLalS
 Interface between ccmkkernel and the Operating-System … More...
 
struct  MkLogDataS
 struct to hold the mkrt-logging-dataMore...
 
struct  MkLogFileS
 define a MkLogFileC object … More...
 
struct  MkObjectProtectS
 the protect is used to "protect" data set by pAllocCreate if the new object is later initialized with a type specific object-initialization … More...
 
struct  MkObjectS
 object header … More...
 
struct  MkRtExtS
 MkRtExtS - extend the MkRuntimeC with a library specific feature … More...
 
struct  MkRuntimeCallbackS
 keep callback related data … More...
 
struct  MkRuntimeS
 The MkRuntimeS provide a per-thread environment for ccmkkernelMore...
 
struct  MkStringR
 string data default format … More...
 
struct  MkThreadDataS
 
struct  MkTypeDefS
 super-class-base, the MkTypeS using the super-macro-syntax for all non specific types … More...
 
struct  MkTypeS
 MkTypeS - class known as typ or type is used as class-base for a Managed-Object-Technology (MOT) type … More...
 

Typedefs

typedef void * MK_MACRO_TYP
 helper-type used to declare a prototype for a macro
 
typedef struct MkObjectSMK_OBJ
 class-shortcut for struct MkObjectS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct MkObjectSMK_OBJN
 class-shortcut for const struct MkObjectS *, all const shortcut using the XX_YYYC syntax (only for public API) …
 
typedef struct MkObjectS MK_OBJR
 reference-shortcut for struct MkObjectS, all shortcut using the XX_YYYR syntax (only for public API) …
 
typedef struct MkBufferSMK_BUF
 class-shortcut for struct MkBufferS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct MkBufferSMK_BUFN
 class-shortcut for const struct MkBufferS *, all const shortcut using the XX_YYYC syntax (only for public API) …
 
typedef struct MkBufferS MK_BUFR
 reference-shortcut for struct MkBufferS, all shortcut using the XX_YYYR syntax (only for public API) …
 
typedef struct MkBufferStreamSMK_BUS
 class-shortcut for struct MkBufferStreamS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct MkBufferStreamSMK_BUSN
 class-shortcut for const struct MkBufferStreamS *, all const shortcut using the XX_YYYC syntax (only for public API) …
 
typedef struct MkBufferStreamS MK_BUSR
 reference-shortcut for struct MkBufferStreamS, all shortcut using the XX_YYYR syntax (only for public API) …
 
typedef struct MkBufferListSMK_BFL
 class-shortcut for struct MkBufferListS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct MkBufferListSMK_BFLN
 class-shortcut for const struct MkBufferListS *, all const shortcut using the XX_YYYC syntax (only for public API) …
 
typedef struct MkBufferListS MK_BFLR
 reference-shortcut for struct MkBufferListS, all shortcut using the XX_YYYR syntax (only for public API) …
 
typedef struct MkLogFileSMK_LFL
 class-shortcut for struct MkLogFileS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct MkLogFileSMK_LFLN
 class-shortcut for const struct MkLogFileS *, all const shortcut using the XX_YYYC syntax (only for public API) …
 
typedef struct MkLogFileS MK_LFLR
 reference-shortcut for struct MkLogFileS, all shortcut using the XX_YYYR syntax (only for public API) …
 
typedef struct MkErrorSMK_ERR
 class-shortcut for struct MkErrorS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct MkErrorSMK_ERRN
 class-shortcut for const struct MkErrorS *, all const shortcut using the XX_YYYC syntax (only for public API) …
 
typedef struct MkErrorS MK_ERRR
 reference-shortcut for struct MkErrorS, all shortcut using the XX_YYYR syntax (only for public API) …
 
typedef struct MkExtensionSMK_EXT
 class-shortcut for struct MkExtensionS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct MkExtensionSMK_EXTN
 class-shortcut for const struct MkExtensionS *, all const shortcut using the XX_YYYC syntax (only for public API) …
 
typedef struct MkExtensionS MK_EXTR
 reference-shortcut for struct MkExtensionS, all shortcut using the XX_YYYR syntax (only for public API) …
 
typedef struct MkErrExtSMK_ERREXT
 class-shortcut for struct MkErrExtS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct MkErrExtSMK_ERREXTN
 class-shortcut for const struct MkErrExtS *, all const shortcut using the XX_YYYC syntax (only for public API) …
 
typedef struct MkErrExtS MK_ERREXTR
 reference-shortcut for struct MkErrExtS, all shortcut using the XX_YYYR syntax (only for public API) …
 
typedef struct MkRtExtSMK_RTEXT
 class-shortcut for struct MkRtExtS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct MkRtExtSMK_RTEXTN
 class-shortcut for const struct MkRtExtS *, all const shortcut using the XX_YYYC syntax (only for public API) …
 
typedef struct MkRtExtS MK_RTEXTR
 reference-shortcut for struct MkRtExtS, all shortcut using the XX_YYYR syntax (only for public API) …
 
typedef struct MkRuntimeSMK_RT
 class-shortcut for struct MkRuntimeS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct MkRuntimeSMK_RTN
 class-shortcut for const struct MkRuntimeS *, all const shortcut using the XX_YYYC syntax (only for public API) …
 
typedef struct MkRuntimeS MK_RTR
 reference-shortcut for struct MkRuntimeS, all shortcut using the XX_YYYR syntax (only for public API) …
 
typedef struct MkTypeSMK_TYP
 class-shortcut for struct MkTypeS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct MkTypeSMK_TYPN
 class-shortcut for const struct MkTypeS *, all const shortcut using the XX_YYYC syntax (only for public API) …
 
typedef struct MkTypeS MK_TYPR
 reference-shortcut for struct MkTypeS, all shortcut using the XX_YYYR syntax (only for public API) …
 
typedef struct MkBufferListSMK_BAC
 a list of 'buffer' as last argument in function …
 
typedef const struct MkBufferListSMK_BACN
 const - a list of 'buffer' as last argument in function …
 
typedef uintptr_t MK_IDNT
 process or thread identifier …
 
typedef MK_PTR(* MkCacheCF) (MK_RT mkrt, MK_PTR const)
 
typedef void(* MkCacheDF) (MK_RT mkrt, MK_PTR *const)
 
typedef void(* MkMarkF) (MK_RT mkrt, MK_PTR data)
 prototype for a Garbage-Collection mark function …
 
typedef MK_PTR(* MkSysCallocF) (size_t, size_t)
 calloc syscall …
 
typedef MK_PTR(* MkSysMallocF) (size_t)
 malloc syscall …
 
typedef MK_STR(* MkSysStrDupF) (MK_STRN)
 strdup syscall …
 
typedef MK_STR(* MkSysStrNCpyF) (char *, const char *, size_t)
 strdup strncpy …
 
typedef MK_STR(* MkSysStrNDupF) (MK_STRN, size_t)
 strndup syscall …
 
typedef MK_PTR(* MkSysReallocF) (MK_PTR, size_t)
 realloc syscall …
 
typedef void(* MkSysFreeF) (MK_PTR)
 free syscall …
 
typedef pid_t(* MkSysForkF) (void)
 fork syscall …
 
typedef enum MkErrorE(* MkSysWaitF) (MK_OBJN const fmtobj, MK_IDNT const id)
 wait for process to finish syscall with ccmkkernel error plugin
 
typedef int(* MkSysExitF) (MK_RT mkrt, int isThread, int num)
 
typedef enum libmkkernel::MkSysPipeHandlerE MkSysPipeHandlerE
 
typedef enum MkErrorE(* MkObjectDeleteCallF) (MK_RT mkrt, MK_OBJN const obj, MK_STRN const typeName, MK_HDL const typeHdl, MK_HDL const objHdl, MK_CBP const __data__)
 static callback to delete an obj
 
typedef void(* MkObjectDeleteFreeF) (MkObjectDeleteFreeF_ARGS)
 
typedef struct MkBufferStream16384S MkBufferStream16384R
 reference type of MkBufferStream16384S
 
typedef struct libmkkernel::MkLogDataS MkLogDataS
 struct to hold the mkrt-logging-data
 
typedef struct libmkkernel::MkExtensionS MkExtensionS
 Base class for the extension technologie …
 
typedef bool(* MkErrorAppendFLT) (MK_ERREXT_ARGS, MK_OBJN const fmtobj)
 
typedef void(* MkErrorResetF) (MK_ERREXT_ARGS, MK_OBJN const fmtobj)
 
typedef bool(* MkErrorResetOnExitF) (MK_ERREXT_ARGS, MK_OBJN const fmtobj)
 
typedef void(* MkErrorPanikF) (MK_ERREXT_ARGS_N, MK_OBJN const errobj, MK_STRN const prefix, MK_I32 const errnum, MK_STRN const fmt, va_list ap)
 MK_OBJN const errobj because of MK_ERROR_FORMAT value.
 
typedef void(* MkErrorLogF) (MK_ERREXT_ARGS_N, MK_OBJN const, MK_DBG const, MK_STRN const, MK_I32 const, MK_STRN const, MK_OBJ const)
 
typedef MK_OBJN(* MkErrorFormatOfF) (MK_ERREXT_ARGS_N, int const dummy)
 
typedef void(* MkErrorSetRF) (MK_ERREXT_ARGS, MK_MNGN const errctx, MK_OBJN const fmtobj)
 
typedef void(* MkErrorSetEF) (MK_ERREXT_ARGS, MK_ERREXT const newerr, MK_OBJN const fmtobj)
 
typedef bool(* MkErrorSetVLF) (MK_ERREXT_ARGS, MK_OBJN const fmtobj, MK_STRN const)
 
typedef void(* MkErrorInit) (MK_ERREXT_ARGS, MK_OBJN const fmtobj)
 
typedef struct libmkkernel::MkThreadDataS MkThreadDataS
 
typedef void(* MkRuntimeInitF) (MK_RT mkrt)
 additional runtime initialization function …
 
boolean data-type
typedef unsigned char MK_BOL
 1 byte boolean data-type
 
typedef bool MK_BOOL
 real bool data-type
 
signed integer data-type
typedef signed char MK_I8
 1 byte byte data-type
 
typedef signed short int MK_I16
 2 byte short data-type
 
typedef signed int MK_I32
 4 byte integer data-type
 
typedef signed long long MK_I64
 8 byte wide integer data-type
 
typedef long MK_LONG
 4/8 byte long data-type
 
unsigned integer data-type
typedef unsigned char MK_U8
 
typedef unsigned short MK_U16
 
typedef unsigned int MK_U32
 
typedef unsigned long long MK_U64
 
typedef unsigned long MK_ULN
 
float data-type
typedef float MK_FLT
 4 byte float data-type
 
typedef double MK_DBL
 8 byte double data-type
 
"handle" data-type

4 byte int handle data-type

The handle is a special type to represent an object as numeric-type able to be stored into an external-software.

The handle support the following API:

typedef int32_t MK_HDL
 4 byte int handle data-type
 
misc data-type
typedef long MK_SIZE
 
typedef union MkBufferAtomU MK_ATO
 8 byte atom data-type
 
typedef int32_t MK_NUM
 array size data-type ('num' items in array …
 
typedef int MK_DBG
 debug-level data-type …
 
typedef unsigned int MK_SIG
 signature datatype
 
OS wide MK_TIME_T

timeout in seconds as "integer" value

typedef time_t MK_TIME_T
 
pointer data-type
typedef void MK_PTRB
 pointer type data-type
 
typedef MK_PTRBMK_PTR
 generic pointer data-type
 
typedef const MK_PTRBMK_PTRN
 const generic pointer data-type
 
typedef MK_PTRBMK_CCP
 class constructor/destructor data type
 
typedef MK_PTRBMK_CBP
 generic pointer to call-back data
 
typedef MK_PTRBMK_MNG
 managed object pointer, datatype will be checked at runtime
 
typedef const MK_PTRBMK_MNGN
 const - a managed object pointer, datatype will be checked at runtime
 
typedef MK_PTRB const * MK_EXP
 exception object pointer
 
typedef MK_PTRBMK_MXP
 MkExceptionC object pointer.
 
list data-type
typedef unsigned char MK_LSTB
 list type data-type
 
typedef MK_LSTBMK_LST
 list pointer data-type
 
binary data-type
typedef unsigned char MK_BINB
 byte-array type data-type
 
typedef MK_BINBMK_BIN
 byte-array pointer data-type with binary encoding (MK_BINN)
 
typedef MK_BINB const * MK_BINN
 const byte-array pointer data-type
 
helper type for target language implementation
typedef void * MK_NAT_OBJECT
 
typedef void * MK_NAT_LIST
 
MkObjectC - type definition
typedef struct MkObjectS MkObjectCR
 instance-struct-reference same as struct MkObjectS, useable in a class-macro as: class##R
 
typedef const struct MkObjectS MkObjectCNR
 const instance-struct-reference same as const struct MkObjectS, useable in a class-macro as: class##R
 
MkObjectC slot definition
typedef MK_OBJ(* MkConstructorF) (MK_RT mkrt, MK_TYP type, MK_PTR nat, MK_PTR lnk)
 
typedef void(* MkDestructorF) (MK_RT mkrt, MK_OBJ const obj)
 
typedef MK_OBJ(* MkDupF) (MK_RT mkrt, MK_OBJN const obj)
 
typedef MK_OBJ(* MkDup2F) (MK_RT mkrt, MK_OBJN const obj, MK_STRN const ident)
 
typedef MK_OBJ(* MkMergeF) (MK_RT mkrt, MK_OBJ const obj)
 
typedef MK_OBJ(* MkCopyF) (MK_RT mkrt, MK_OBJ const obj, MK_OBJN const src)
 
typedef MK_OBJ(* MkResetF) (MK_RT mkrt, MK_OBJ const obj)
 
typedef MK_PTR(* MkSelfCreateF) (MK_RT mkrt, MK_OBJ const obj, MK_PTR const env)
 
typedef void(* MkSelfDeleteF) (MK_RT mkrt, MK_PTR self, MK_PTR const env)
 
typedef void(* MkSelfUnlinkF) (MK_RT mkrt, MK_PTR self, MK_PTR const env)
 
typedef void(* MkLogF) (MK_RT mkrt, MK_OBJN const obj, MK_OBJN fmt, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 
typedef MK_STRN(* MkToStringF) (MK_RT mkrt, MK_OBJN const obj)
 
typedef MK_PTR(* MkAllocCreateFLT) (MK_RT mkrt, MK_TYP const type)
 
typedef void(* MkAllocDeleteF) (MK_RT mkrt, MK_TYP const type, MK_PTR ptr)
 
typedef void(* MkTypeInitF) (MK_RT mkrt, MK_TYP const type)
 
typedef bool(* MkLogFormatF) (MK_RT mkrt, char *header, MK_SIZE const headerSize, MK_OBJN const obj, MK_STRN const caller, MK_I32 const debug, MK_STRN const fmt)
 
MkTypeC - type definition
typedef struct MkTypeS MkTypeCR
 instance-struct-reference same as struct MkTypeS, useable in a class-macro as: class##R
 
typedef const struct MkTypeS MkTypeCNR
 const instance-struct-reference same as const struct MkTypeS, useable in a class-macro as: class##R
 
MkTypeDefC - type definition
typedef struct MkTypeDefS MkTypeDefCR
 instance-struct-reference same as struct MkTypeDefS, useable in a class-macro as: class##R
 
typedef const struct MkTypeDefS MkTypeDefCNR
 const instance-struct-reference same as const struct MkTypeDefS, useable in a class-macro as: class##R
 
MkBufferC - type definition
typedef struct MkBufferS MkBufferCR
 instance-struct-reference same as struct MkBufferS, useable in a class-macro as: class##R
 
typedef const struct MkBufferS MkBufferCNR
 const instance-struct-reference same as const struct MkBufferS, useable in a class-macro as: class##R
 
MkBuffer64C - type definition
typedef struct MkBuffer64S MkBuffer64CR
 instance-struct-reference same as struct MkBuffer64S, useable in a class-macro as: class##R
 
typedef const struct MkBuffer64S MkBuffer64CNR
 const instance-struct-reference same as const struct MkBuffer64S, useable in a class-macro as: class##R
 
MkBuffer256C - type definition
typedef struct MkBuffer256S MkBuffer256CR
 instance-struct-reference same as struct MkBuffer256S, useable in a class-macro as: class##R
 
typedef const struct MkBuffer256S MkBuffer256CNR
 const instance-struct-reference same as const struct MkBuffer256S, useable in a class-macro as: class##R
 
MkBuffer1024C - type definition
typedef struct MkBuffer1024S MkBuffer1024CR
 instance-struct-reference same as struct MkBuffer1024S, useable in a class-macro as: class##R
 
typedef const struct MkBuffer1024S MkBuffer1024CNR
 const instance-struct-reference same as const struct MkBuffer1024S, useable in a class-macro as: class##R
 
MkBufferStreamC - type definition
typedef struct MkBufferStreamS MkBufferStreamCR
 instance-struct-reference same as struct MkBufferStreamS, useable in a class-macro as: class##R
 
typedef const struct MkBufferStreamS MkBufferStreamCNR
 const instance-struct-reference same as const struct MkBufferStreamS, useable in a class-macro as: class##R
 
MkBufferStream64C - type definition
typedef struct MkBufferStream64S MkBufferStream64CR
 instance-struct-reference same as struct MkBufferStream64S, useable in a class-macro as: class##R
 
typedef const struct MkBufferStream64S MkBufferStream64CNR
 const instance-struct-reference same as const struct MkBufferStream64S, useable in a class-macro as: class##R
 
MkBufferStream256C - type definition
typedef struct MkBufferStream256S MkBufferStream256CR
 instance-struct-reference same as struct MkBufferStream256S, useable in a class-macro as: class##R
 
typedef const struct MkBufferStream256S MkBufferStream256CNR
 const instance-struct-reference same as const struct MkBufferStream256S, useable in a class-macro as: class##R
 
MkBufferStream1024C - type definition
typedef struct MkBufferStream1024S MkBufferStream1024CR
 instance-struct-reference same as struct MkBufferStream1024S, useable in a class-macro as: class##R
 
typedef const struct MkBufferStream1024S MkBufferStream1024CNR
 const instance-struct-reference same as const struct MkBufferStream1024S, useable in a class-macro as: class##R
 
MkBufferStream16384C - type definition
typedef struct MkBufferStream16384S MkBufferStream16384CR
 instance-struct-reference same as struct MkBufferStream16384S, useable in a class-macro as: class##R
 
typedef const struct MkBufferStream16384S MkBufferStream16384CNR
 const instance-struct-reference same as const struct MkBufferStream16384S, useable in a class-macro as: class##R
 
MkLogFileC - type definition
typedef struct MkLogFileS MkLogFileCR
 instance-struct-reference same as struct MkLogFileS, useable in a class-macro as: class##R
 
typedef const struct MkLogFileS MkLogFileCNR
 const instance-struct-reference same as const struct MkLogFileS, useable in a class-macro as: class##R
 
MkExtensionC - type definition
typedef struct MkExtensionS MkExtensionCR
 instance-struct-reference same as struct MkExtensionS, useable in a class-macro as: class##R
 
typedef const struct MkExtensionS MkExtensionCNR
 const instance-struct-reference same as const struct MkExtensionS, useable in a class-macro as: class##R
 
MkErrorC - type definition
typedef struct MkErrorS MkErrorCR
 instance-struct-reference same as struct MkErrorS, useable in a class-macro as: class##R
 
typedef const struct MkErrorS MkErrorCNR
 const instance-struct-reference same as const struct MkErrorS, useable in a class-macro as: class##R
 
MkErrExtC - type definition
typedef struct MkErrExtS MkErrExtCR
 instance-struct-reference same as struct MkErrExtS, useable in a class-macro as: class##R
 
typedef const struct MkErrExtS MkErrExtCNR
 const instance-struct-reference same as const struct MkErrExtS, useable in a class-macro as: class##R
 
MkErrorPanicC - type definition
typedef struct MkErrorPanicS MkErrorPanicCR
 instance-struct-reference same as struct MkErrorPanicS, useable in a class-macro as: class##R
 
typedef const struct MkErrorPanicS MkErrorPanicCNR
 const instance-struct-reference same as const struct MkErrorPanicS, useable in a class-macro as: class##R
 
MkErrorExitC - type definition
typedef struct MkErrorExitS MkErrorExitCR
 instance-struct-reference same as struct MkErrorExitS, useable in a class-macro as: class##R
 
typedef const struct MkErrorExitS MkErrorExitCNR
 const instance-struct-reference same as const struct MkErrorExitS, useable in a class-macro as: class##R
 
MkErrorIgnoreC - type definition
typedef struct MkErrorIgnoreS MkErrorIgnoreCR
 instance-struct-reference same as struct MkErrorIgnoreS, useable in a class-macro as: class##R
 
typedef const struct MkErrorIgnoreS MkErrorIgnoreCNR
 const instance-struct-reference same as const struct MkErrorIgnoreS, useable in a class-macro as: class##R
 
MkErrorPrintC - type definition
typedef struct MkErrorPrintS MkErrorPrintCR
 instance-struct-reference same as struct MkErrorPrintS, useable in a class-macro as: class##R
 
typedef const struct MkErrorPrintS MkErrorPrintCNR
 const instance-struct-reference same as const struct MkErrorPrintS, useable in a class-macro as: class##R
 
MkErrorDefaultC - type definition
typedef struct MkErrorDefaultS MkErrorDefaultCR
 instance-struct-reference same as struct MkErrorDefaultS, useable in a class-macro as: class##R
 
typedef const struct MkErrorDefaultS MkErrorDefaultCNR
 const instance-struct-reference same as const struct MkErrorDefaultS, useable in a class-macro as: class##R
 
MkRtExtC - type definition
typedef struct MkRtExtS MkRtExtCR
 instance-struct-reference same as struct MkRtExtS, useable in a class-macro as: class##R
 
typedef const struct MkRtExtS MkRtExtCNR
 const instance-struct-reference same as const struct MkRtExtS, useable in a class-macro as: class##R
 
MkRuntimeC - type definition
typedef struct MkRuntimeS MkRuntimeCR
 instance-struct-reference same as struct MkRuntimeS, useable in a class-macro as: class##R
 
typedef const struct MkRuntimeS MkRuntimeCNR
 const instance-struct-reference same as const struct MkRuntimeS, useable in a class-macro as: class##R
 
MkBufferListC - type definition
typedef struct MkBufferListS MkBufferListCR
 instance-struct-reference same as struct MkBufferListS, useable in a class-macro as: class##R
 
typedef const struct MkBufferListS MkBufferListCNR
 const instance-struct-reference same as const struct MkBufferListS, useable in a class-macro as: class##R
 

Enumerations

enum  MkIdSE { MK_ID_UNUSED = 0 , MK_ID_PROCESS = 1 , MK_ID_THREAD = 2 }
 signal type of the MkIdS data valMore...
 
enum  MkSysPipeHandlerE { MK_PIPE_KEEP = 0 , MK_PIPE_IGNORE = 1 }
 

Functions

static MkBinaryR MkBinaryCreate (MK_SIZE size, MK_BINN data)
 create a binary from data and size ...
 
static bool MkBinaryIsNull (const MkBinaryR bin)
 check if binary is NULL ...
 
static const MkBinaryR MkBinaryCreateSlice (const MkBinaryR bin, MK_SIZE start, MK_SIZE wide)
 create a binary slice ...
 
static MkBinaryR MkBinaryDup_RT (MK_RT mkrt, const MkBinaryR bin)
 create a binary as duplicate from an already existsing MkBinaryR ...
 
static void MkBinaryLog_RT (MK_RT mkrt, const MkBinaryR bin)
 get size from the binary ...
 
static MK_BINN MkBinaryGetData (const MkBinaryR bin)
 get data pointer from the binary ...
 
static MK_SIZE MkBinaryGetSize (const MkBinaryR bin)
 get size from the binary ...
 
static void MkStringLog_RT (MK_RT mkrt, MkStringR const str, MK_STRN func)
 log the string ...
 
static MkStringR MkStringCreate (MK_NUM len, MK_STRN str)
 create a str from ptr and len ...
 
static MkStringR MkStringCreate_1 (MK_STRN str)
 create a str from ptr use MK_NULL as end-of-string ...
 
static MkStringR MkStringSlice (MkStringR strR, MK_NUM start, MK_NUM len)
 create a slice of strR start at start with max len bytes …
 
static void MkStringSplit (MkStringR strR, MK_NUM *len_out, MK_STRN *str_out)
 split a str into ptr and len
 
static MkStringR MkStringDup_RT (MK_RT mkrt, MkStringR const str)
 create a string as duplicate from an already existsing MkBinaryR ...
 
static MK_STRN MkStringGetData (MkStringR const str)
 get ptr pointer from the string ...
 
static MK_NUM MkStringGetSize (MkStringR const str)
 get len from the string ...
 
static bool MkStringIsNULL (MkStringR const strR)
 check if strR is MK_NULL_STR return true or false
 
MK_STRN MkIdSE_ToString (enum MkIdSE value)
 return the MkIdSE as string …
 
static MK_I32 MkIdSE_ToInt (enum MkIdSE value)
 return the MkIdSE as integer …
 
enum MkErrorE MkIdSE_FromInt (MK_I32 const value, enum MkIdSE *value_out)
 return the MkIdSE from integer …
 
void MkSetup (void)
 setup ccmkkernel internal memory …
 
void MkCleanup (void)
 cleanup ccmkkernel internal memory …
 
bool MkHasThread (void)
 
bool MkHasFork (void)
 
MK_PTR MkSysCalloc (MK_OBJN fmtobj, size_t const nmemb, size_t const size)
 calloc syscall with ccmkkernel error plugin
 
MK_PTR MkSysMalloc (MK_OBJN fmtobj, size_t const size)
 malloc syscall with ccmkkernel error plugin
 
MK_STR MkSysStrDup (MK_OBJN fmtobj, MK_STRN const str)
 strdup syscall with ccmkkernel error plugin
 
MK_STR MkSysStrNDup (MK_OBJN fmtobj, MK_STRN const str, MK_SIZE const len)
 strndup syscall with ccmkkernel error plugin
 
enum MkErrorE MkSysStrNCpy (MK_OBJN fmtobj, MK_STR const to, MK_STRN const from, MK_SIZE const len)
 strncpy syscall with ccmkkernel error plugin
 
MK_PTR MkSysRealloc (MK_OBJN fmtobj, MK_PTR const buf, size_t const size)
 realloc syscall with ccmkkernel error plugin
 
MK_PTR MkSysReCalloc (MK_OBJN fmtobj, MK_PTR const buf, MK_NUM const oldnum, MK_NUM const addnum, size_t const size)
 realloc syscall with ccmkkernel error plugin
 
MK_PTR MkSysMemDup (MK_OBJN fmtobj, MK_PTRN const blck, size_t const size)
 memdup syscall with ccmkkernel error plugin
 
MK_STRN_A MkSysStringArrayDup (MK_OBJN fmtobj, MK_STRN_A const strA)
 strdup syscall with ccmkkernel error plugin
 
void MkSysFree (MK_PTR pointer)
 free syscall …
 
void MkSysFreeNonNull (MK_PTR pointer)
 
void MkSysFreeP (MK_PTR data)
 free syscall with ccmkkernel error plugin
 
void MkSysPrintStackTrace_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_I32 const debug, MK_STRN const callfunc, MK_I32 const lvl, MK_I32 skip, MK_I32 const num)
 backtrace syscall with ccmkkernel error plugin
 
void MkSysPrintProcessMemoryMap_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_I32 const debug, MK_STRN const callfunc, MK_I32 const lvl)
 write the memory-map to MkLogFileC used at MkDisasterSignal
 
MK_STRN MkSysGetTrace_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_I32 const debug, MK_STRN const callfunc, MK_I32 const lvl, MK_I32 skip, MK_I32 const num)
 same as MkSysPrintStackTrace but return a string…
 
static enum MkErrorE MkSysWaitForProcess (MK_OBJN fmtobj, MK_IDNT const id)
 wait for process to finish syscall with ccmkkernel error plugin
 
static enum MkErrorE MkSysWaitForThread (MK_OBJN fmtobj, MK_IDNT const id)
 wait for thread to finish syscall with ccmkkernel error plugin
 
static enum MkErrorE MkSysUSleep (MK_OBJN fmtobj, useconds_t const usec)
 usleep syscall with ccmkkernel error plugin
 
static enum MkErrorE MkSysSleep (MK_OBJN fmtobj, MK_I32 const sec)
 sleep syscall with ccmkkernel error plugin
 
static int MkSysExit_RT (MK_RT mkrt, int isThread, int num)
 exit syscall with ccmkkernel error plugin
 
MK_STR MkSysBasename_RT (MK_RT mkrt, MK_STRN const pathName, bool const includeExtension)
 basename syscall with ccmkkernel error plugin
 
MK_STR MkSysDirname_RT (MK_RT mkrt, MK_STRN const pathName)
 dirname syscall with ccmkkernel error plugin
 
MK_STR MkSysPrintF_RT (MK_RT mkrt, MK_STRN const format,...)
 sprintf syscall with ccmkkernel error plugin
 
enum MkErrorE MkSysGetTimeOfDay (MK_OBJN fmtobj, struct mk_timeval *tv_out, struct mk_timezone *tz_out)
 gettimeofday syscall with ccmkkernel error plugin
 
bool MkSysStringSetNULL_R (MK_STRN const str)
 set string to EMPTY
 
bool MkSysStringSet_R (MK_STRN const str, MK_STRN const other)
 set string to value
 
bool MkSysStringIsNULL_R (MK_STRN const str)
 test if string EMPTY
 
static bool MkSysStringIsNULL (MK_STRN str)
 test if string is NULL or EMPTY
 
static bool MkSysStringIsNotNULL (MK_STRN str)
 test if string is NOT NULL or EMPTY
 
bool MkSysStringIsEQUAL (MK_STRN const str, MK_STRN const other)
 test if string(s) are equal …
 
bool MkSysStringIsLenEQUAL (MK_STRN const str, MK_STRN const other, MK_SIZE const len)
 test if string(s) are equal …
 
static MK_STRN MkSysStringGet (MK_STRN str)
 get string NULL or VALUE
 
static MK_STRN MkSysStringGetNoNULL (MK_STRN str)
 get string "" or VALUE
 
MK_STRN MkSysHashSTR (MK_STRN key, MK_NUM length)
 compute the HASH from a string …
 
MK_I32 MkSysHashI32 (MK_STRN key, MK_NUM length)
 same as MkSysHashSTR but return libmkkernel::MK_I32
 
enum MkErrorE MkSysKill (MK_OBJN fmtobj, MK_I32 pid, MK_I32 signal)
 kill syscall with ccmkkernel error plugin
 
enum MkErrorE MkSysGetPid (MK_OBJN fmtobj, MK_I32 *pid_out)
 getpid syscall with ccmkkernel error plugin
 
void MkSysPipeHandler (MkSysPipeHandlerE keepPipe)
 internal support for pipe ignore
 
static MK_TYP MkTyp (const MK_MNG mng)
 type-check and cast a unknown-managed-object into an MkTypeS pointer or MK_NULL if not possible
 
static MK_TYPN MkTypN (const MK_MNGN mng)
 type-check and cast a unknown-managed-object into an MkTypeS pointer or MK_NULL if not possible
 
MK_PTR MkTypeSlotResolveP (MK_RT mkrt, MK_TYPN const type, size_t const offset, bool const force)
 hidden function for MkTypeSlotResolve
 
MK_OBJ MkObjDup_RT (MK_RT mkrt, MK_OBJ const srcobj)
 call the Dup-Constructor from the object
 
MK_OBJ MkObjDup2_RT (MK_RT mkrt, MK_OBJ const srcmng, MK_STRN const ident)
 call the Dup2-Constructor from the object
 
MK_OBJ MkObjMerge_RT (MK_RT mkrt, MK_OBJ const obj)
 Constructor - create a new object as a merge from an existing object
 
MK_OBJ MkObjCreate_RT (MK_RT mkrt, MK_TYP type, MK_PTR nat, MK_PTR lnk)
 call the Constructor from the object
 
void MkObjectDelete_RT (MK_RT mkrt, MK_OBJ obj)
 Delete-Slot - delete an instance.
 
void MkObjectDispose_RT (MK_RT mkrt, MK_OBJ obj)
 Dispose-Slot - untie the connection between the Native-C++-Instance and the ccmkkernel-Instance.
 
enum MkErrorE MkObjectDeleteCallbackSetup_RT (MK_RT mkrt, MK_STRN ident, MkObjectDeleteCallF fCall, MK_CBP callback, MkObjectDeleteFreeF fFree, MK_STRN filter)
 Create/Delete the instance-delete-callback
 
void MkObjectDeleteCallbackCleanup_RT (MK_RT mkrt, MK_STRN ident)
 cleanup the DeleteCallback installed with MkObjectDeleteCallbackSetup
 
MK_OBJ MkObjCopy_RT (MK_RT mkrt, MK_OBJ const tgtmng, MK_OBJN const srcmng)
 call the copy from the object
 
MK_OBJ MkObjReset_RT (MK_RT mkrt, MK_OBJ const obj)
 free the internal memory of an object and initialize the local variables to default values
 
MK_TYP MkTypeCreate (MK_MACRO_TYP const clsV, MK_MACRO_TYP const basicV, MK_STRN const identV)
 create a new type …
 
MK_TYP MkTypeDup2_RT (MK_RT mkrt, MK_TYPN const typ, MK_STRN const ident)
 duplicate typ to create a lightweight-type
 
MK_OBJ MkTypeAlloc_RT (MK_RT mkrt, MK_TYPN const typ)
 alloc instance-memory for MkTypeS
 
MK_TYP MkTypeResolve_RT (MK_RT mkrt, MK_TYPN const typ)
 resolve a new type
 
void MkTypeDelete_RT (MK_RT mkrt, MK_TYP const typ)
 delete a type object
 
static MK_OBJ MkTypeInstances (MK_TYP const typ)
 access the instance attribute of the type…
 
static MK_TYPN MkTypeNextN (MK_TYPN const typ)
 get next instance from linked-list of MkObjectS type
 
void MkTypeLog_RT (MK_RT mkrt, MK_TYPN const typ, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 log the MkTypeS
 
MK_BFL MkKernelGetTypeList_RT (MK_RT mkrt)
 return a list of all types defind in the Programming-Language-Micro-Kernel (PLMK)
 
MK_STRN const MkObjectToName_RT (MK_RT mkrt, MK_OBJN const obj)
 Info-Slot - returns brief information about the obj as a string
 
MK_STRN MkObjectToNameOfType_RT (MK_RT mkrt, MK_OBJN const obj)
 Type-Slot - returns the LibMkKernel-Type-Name of the obj as a string
 
MK_STRN MkObjectToNameOfClass_RT (MK_RT mkrt, MK_OBJ const obj)
 Class-Slot - returns the C++-Class-Name of the obj as string
 
MK_STRN MkObjectToString_RT (MK_RT mkrt, MK_OBJN const inst)
 String-Slot - returns the string representation of the inst
 
static bool MkObjectIsNull (MK_OBJ const obj)
 ckeck if the object is MK_NULL
 
void MkLogC_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const message, MK_DBG const debug, MK_STRN const callfunc)
 write a logging-message to MkLogFileC (default: stderr) using the internal format …
 
void MkDbgV_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const callfunc, FILE *FH, MK_FST const printfmt,...)
 write a printf style debug-message to FH using the internal format …
 
void MkLogV_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const callfunc, MK_DBG debug, MK_FST const printfmt,...)
 write a printf style logging-message to MkLogFileC (default: stderr) using the internal format …
 
void MkLogVL_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const callfunc, MK_DBG debug, MK_FST const printfmt, va_list var_list)
 write a vprintf style logging-message to MkLogFileC using the internal format …
 
void MkLogHEX_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const callfunc, MkBinaryR const data)
 log binaray data as HEX into the MkLogFileC (default: stderr) …
 
void MkObjectLogShort_RT (MK_RT mkrt, MK_OBJN const obj, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 log the MkObjectS into the MkLogFileC (default: stderr) …
 
void MkObjectLogLong_RT (MK_RT mkrt, MK_OBJN const obj, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
void MkObjectLogType_RT (MK_RT mkrt, MK_OBJN const obj, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …
 
void MkObjectLog_RT (MK_RT mkrt, MK_OBJN const obj, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 Log-Slot - log a summary of an object to the MkLogFileC (default: stderr) target …
 
void MkDbgL_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const message, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 debug: write a instance-marker to the MkLogFileC (default: stderr) using the fmtobj as prefix …
 
enum MkErrorE MkDbgDump_RT (MK_RT mkrt, MK_OBJN const obj, MK_STRN const message, MK_STRN const callfunc)
 debug: Dump a instance to stderr with LNG and MQ internal data…
 
void MkDbgM_RT (MK_RT mkrt, MK_STRN const message, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 debug: write a static-marker to the MkLogFileC (default: stderr) …
 
void MkDbgSTACK_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_I32 const skip, MK_I32 const num, MK_STRN const callfunc)
 debug: write the stack-trace to MkLogFileC (default: stderr) …
 
void MkDbgO_RT (MK_RT mkrt, MK_OBJN const obj, MK_STRN const callfunc)
 debug: write the object-details to MkLogFileC (default: stderr) …
 
void MkDbgLogC_RT (MK_RT mkrt, MK_OBJN const obj, MK_STRN const callfunc)
 debug: write a short-obj-summary to MkLogFileC (default: stderr) …
 
MK_BUF MkBufferCreate_RT (MK_RT mkrt, MK_TYP type, MK_NUM const size)
 Constructor - create a new MkBufferC with minimum size of internal storage …
 
MK_BUF MkBufferCreate64_RT (MK_RT mkrt, MK_NUM const size)
 call the BufferCreate with default type MkBuffer64S (64 byte) …
 
MK_BUF MkBufferCreate256_RT (MK_RT mkrt, MK_NUM const size)
 call the BufferCreate with default type MkBuffer256S (256 byte) …
 
MK_BUF MkBufferCreate1024_RT (MK_RT mkrt, MK_NUM const size)
 call the BufferCreate with default type MkBuffer1024S (1024 byte) …
 
void MkBufferCreateTLS_T (MK_MACRO_TYP cls, MK_MACRO_TYP name, MK_NUM const size)
 
void MkBufferCreateTLS_inout_T (MK_MACRO_TYP cls, MK_MACRO_TYP name, MK_BUF *inout)
 
void MkBufferCreateLOCAL_T (MK_MACRO_TYP cls, MK_MACRO_TYP name, MK_NUM const size)
 
MK_BUF MkBufferCreateI8_RT (MK_RT mkrt, MK_I8 const val)
 Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
MK_BUF MkBufferCreateBOL_RT (MK_RT mkrt, MK_BOL const val)
 Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
MK_BUF MkBufferCreateI16_RT (MK_RT mkrt, MK_I16 const val)
 Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
MK_BUF MkBufferCreateI32_RT (MK_RT mkrt, MK_I32 const val)
 Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
MK_BUF MkBufferCreateFLT_RT (MK_RT mkrt, MK_FLT const val)
 Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
MK_BUF MkBufferCreateI64_RT (MK_RT mkrt, MK_I64 const val)
 Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
MK_BUF MkBufferCreateDBL_RT (MK_RT mkrt, MK_DBL const val)
 Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
MK_BUF MkBufferCreateSTR_RT (MK_RT mkrt, MK_STRN const val)
 Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
MK_BUF MkBufferCreateBIN_RT (MK_RT mkrt, MkBinaryR const val)
 Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
MK_BUF MkBufferCreateTLS_RT (MK_RT mkrt, MK_STRN const tlsName, bool const resetB)
 same as BufferCreate but require no cleanup
 
MK_BUF MkBufferCreateBUF_RT (MK_RT mkrt, MK_BUFN const val)
 Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
void MkBufferFree_RT (MK_RT mkrt, MK_BUF const buf)
 initialize or free an MkBufferC reference-instance
 
void MkBufferInit_RT (MK_RT mkrt, MK_BUF const buf, MK_TYP type, MK_NUM const size)
 initialize or free an MkBufferC reference-instance
 
void MkBufferDelete_RT (MK_RT mkrt, MK_BUF const buf)
 Destructor - delete a MkBufferC instance …
 
MK_BUF MkBufferDup_RT (MK_RT mkrt, MK_BUFN const buf)
 Dup-Constructor - create a new MkBufferC instance as copy from an existing MkBufferC instance
 
MK_BUF MkBufferMerge_RT (MK_RT mkrt, MK_BUF const buf)
 Merge-Constructor - create a new MkBufferC as a merge from an existing object …
 
enum MkErrorE MkBufferGetI8_RT (MK_RT mkrt, MK_BUFN const buf, MK_I8 *const val_out)
 get a val_out from a MkBufferC
 
enum MkErrorE MkBufferGetBOL_RT (MK_RT mkrt, MK_BUFN const buf, MK_BOL *const val_out)
 get a val_out from a MkBufferC
 
enum MkErrorE MkBufferGetI16_RT (MK_RT mkrt, MK_BUFN const buf, MK_I16 *const val_out)
 get a val_out from a MkBufferC
 
enum MkErrorE MkBufferGetU16_RT (MK_RT mkrt, MK_BUFN const buf, MK_U16 *const val_out)
 get a val_out from a MkBufferC
 
enum MkErrorE MkBufferGetI32_RT (MK_RT mkrt, MK_BUFN const buf, MK_I32 *const val_out)
 get a val_out from a MkBufferC
 
enum MkErrorE MkBufferGetU32_RT (MK_RT mkrt, MK_BUFN const buf, MK_U32 *const val_out)
 get a val_out from a MkBufferC
 
enum MkErrorE MkBufferGetFLT_RT (MK_RT mkrt, MK_BUFN const buf, MK_FLT *const val_out)
 get a val_out from a MkBufferC
 
enum MkErrorE MkBufferGetI64_RT (MK_RT mkrt, MK_BUFN const buf, MK_I64 *const val_out)
 get a val_out from a MkBufferC
 
enum MkErrorE MkBufferGetDBL_RT (MK_RT mkrt, MK_BUFN const buf, MK_DBL *const val_out)
 get a val_out from a MkBufferC
 
enum MkErrorE MkBufferGetBIN_RT (MK_RT mkrt, MK_BUFN const buf, MkBinaryR *const val_out)
 get a val_out from a MkBufferC
 
enum MkErrorE MkBufferGetSTR_RT (MK_RT mkrt, MK_BUFN const buf, MK_STRN *const val_out)
 get a val_out from a MkBufferC
 
enum MkErrorE MkBufferGetStringR_RT (MK_RT mkrt, MK_BUFN const buf, MkStringR *const val_out)
 get a val_out from a MkBufferC
 
enum MkErrorE MkBufferGetBUF_RT (MK_RT mkrt, MK_BUF const buf, MK_BUF *const val_out)
 get a val_out from a MkBufferC
 
enum MkErrorE MkBufferGetBFL_RT (MK_RT mkrt, MK_BUFN const buf, MK_BFL *const val_inout)
 function to read an MkBufferListC from an MkBufferC object …
 
enum MkErrorE MkBufferGetLONG_RT (MK_RT mkrt, MK_BUFN const buf, MK_LONG *const val_out)
 get a val_out from a MkBufferC
 
enum MkErrorE MkBufferGetBOOL_RT (MK_RT mkrt, MK_BUFN const buf, MK_BOOL *const val_out)
 get a val_out from a MkBufferC
 
MK_BUF MkBufferSetI8_RT (MK_RT mkrt, MK_BUF const buf, MK_I8 const val)
 Set the MkBufferC to the val
 
MK_BUF MkBufferSetBOL_RT (MK_RT mkrt, MK_BUF const buf, MK_BOL const val)
 Set the MkBufferC to the val
 
MK_BUF MkBufferSetI16_RT (MK_RT mkrt, MK_BUF const buf, MK_I16 const val)
 Set the MkBufferC to the val
 
MK_BUF MkBufferSetI32_RT (MK_RT mkrt, MK_BUF const buf, MK_I32 const val)
 Set the MkBufferC to the val
 
MK_BUF MkBufferSetFLT_RT (MK_RT mkrt, MK_BUF const buf, MK_FLT const val)
 Set the MkBufferC to the val
 
MK_BUF MkBufferSetI64_RT (MK_RT mkrt, MK_BUF const buf, MK_I64 const val)
 Set the MkBufferC to the val
 
MK_BUF MkBufferSetDBL_RT (MK_RT mkrt, MK_BUF const buf, MK_DBL const val)
 Set the MkBufferC to the val
 
MK_BUF MkBufferSetSTR_RT (MK_RT mkrt, MK_BUF const buf, MK_STRN const val)
 Set the MkBufferC to the val
 
MK_BUF MkBufferSetBIN_RT (MK_RT mkrt, MK_BUF const buf, MkBinaryR const val)
 Set the MkBufferC to the val
 
MK_BUF MkBufferSetBUF_RT (MK_RT mkrt, MK_BUF const buf, MK_BUFN const val)
 Set the MkBufferC to the val
 
MK_BUF MkBufferSetVL_RT (MK_RT mkrt, MK_BUF const buf, MK_FST const val, va_list var_list)
 set the MkBufferC using a va_list value …
 
MK_BUF MkBufferSetV_RT (MK_RT mkrt, MK_BUF const buf, MK_FST const val,...)
 set the MkBufferC using a ... value …
 
MK_BUF MkBufferSetBinaryR_RT (MK_RT mkrt, MK_BUF const buf, MkBinaryR const val)
 Set the MkBufferC to the val
 
MK_BUF MkBufferSetStringR_RT (MK_RT mkrt, MK_BUF const buf, MkStringR const val)
 Set the MkBufferC to the val
 
MK_STRB MkBufferGetType1_RT (MK_RT mkrt, MK_BUFN const buf)
 return the type from a MkBufferC as single character value …
 
enum MkTypeE MkBufferGetType2_RT (MK_RT mkrt, MK_BUFN const buf)
 return the MkTypeE from a MkBufferC
 
MK_STRN MkBufferGetType3_RT (MK_RT mkrt, MK_BUFN const buf)
 return the type from a MkBufferC as single character string …
 
bool MkBufferIsLocal_RT (MK_RT mkrt, MK_BUFN const buf)
 Check if the MkBufferC is local (temporary), not local mean global
 
void MkBufferLog_RT (MK_RT mkrt, MK_BUFN const buf, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 log the MkBufferC
 
void MkBufferLogSS_RT (MK_RT mkrt, MK_BUFN const buf, MK_STRN const varname, MK_OBJN fmtobj, MK_STRN const callfunc)
 log the whole MkBufferC object to the MkLogFileC (default: stderr) …
 
void MkBufferLogS_RT (MK_RT mkrt, MK_BUFN const buf, MK_STRN const varname, MK_OBJN fmtobj, MK_STRN const callfunc)
 log the short MkBufferC object data to the MkLogFileC (default: stderr) …
 
MK_I32 MkBufferCmp_RT (MK_RT mkrt, MK_BUFN const buf1, MK_BUFN const buf2)
 compare TWO MkBufferC objects like strcmp do it for strings …
 
enum MkErrorE MkBufferCastTo_RT (MK_RT mkrt, MK_BUF const buf, enum MkTypeE const typ)
 change the type of an MkBufferC to type
 
MK_STRN MkBufferToString_RT (MK_RT mkrt, MK_BUFN const inst)
 String-Slot - returns the string representation of the inst
 
MK_BUF MkBufferSizeNew_RT (MK_RT mkrt, MK_BUF const buf, MK_NUM const size)
 alloc min size storage to the buf
 
MK_BUF MkBufferSizeAdd_RT (MK_RT mkrt, MK_BUF const buf, MK_NUM const size)
 add size storage to the buf
 
MK_BUF MkBufferReset_RT (MK_RT mkrt, MK_BUF const buf)
 reset a MkBufferC to the length zero …
 
void MkBufferResetFull_RT (MK_RT mkrt, MK_BUF const buf)
 reset a MkBufferC to the length zero and free allocated storage…
 
MK_BUF MkBufferCopy_RT (MK_RT mkrt, MK_BUF const buf, MK_BUFN const srce)
 copy the MkBufferC from srce to dest
 
MK_BUF MkBufferTemp_RT (MK_RT mkrt, MK_BUFN const buf)
 create a temporary copy of the MkBufferC buf …
 
MK_BUF MkBufferAppendC_RT (MK_RT mkrt, MK_BUF const buf, MK_STRN const val)
 append a single string to a MkBufferC object …
 
MK_BUF MkBufferAppendStringR_RT (MK_RT mkrt, MK_BUF const buf, MkStringR const val)
 append a single string to a MkBufferC object …
 
MK_I32 MkBufferAppendVL_RT (MK_RT mkrt, MK_BUF const buf, MK_FST const printfmt, va_list var_list)
 append a single string with format and var_list arguments to a MkBuffer64S
 
MK_I32 MkBufferAppendV_RT (MK_RT mkrt, MK_BUF const buf, MK_FST const printfmt,...)
 append a single string with format and ... arguments to a MkBuffer64S
 
MK_NUM MkBufferPush_RT (MK_RT mkrt, MK_BUF const buf, MK_STRN const val)
 add str to the MkBufferC
 
MK_NUM MkBufferPop_RT (MK_RT mkrt, MK_BUF const buf, MK_STRN const val)
 delete str from the MkBufferC
 
enum MkErrorE MkBufferToObject_RT (MK_RT mkrt, MK_BUF const buf, MK_NAT_OBJECT *obj_out)
 return the native language object from a MkBufferC
 
MK_BUS MkBufferStreamCreate_RT (MK_RT mkrt, MK_TYP type, MK_NUM const size)
 create and initialize an MkBufferStreamC instance …
 
MK_BUS MkBufferStreamCreate64_RT (MK_RT mkrt, MK_NUM const size)
 call the BufferStreamCreate with default type MkBufferStream64S (64 byte) …
 
MK_BUS MkBufferStreamCreate256_RT (MK_RT mkrt, MK_NUM const size)
 call the BufferStreamCreate with default type MkBufferStream256S (256 byte) …
 
MK_BUS MkBufferStreamCreate1024_RT (MK_RT mkrt, MK_NUM const size)
 call the BufferStreamCreate with default type MkBufferStream1024S (1024 byte) …
 
MK_BUS MkBufferStreamCreate16384_RT (MK_RT mkrt, MK_NUM const size)
 call the BufferStreamCreate with default type MkBufferStream16384S (16384 byte) …
 
MK_BUS MkBufferStreamCreateTLS_RT (MK_RT mkrt, MK_STRN const tlsName, bool const resetB)
 same as BufferStreamCreate but require no cleanup …
 
void MkBufferStreamCreateLOCAL_T (MK_MACRO_TYP cls, MK_MACRO_TYP name, MK_NUM const size)
 
void MkBufferStreamCreateSTATIC_T (MK_MACRO_TYP cls, MK_MACRO_TYP name)
 
void MkBufferStreamCreateTLS_T (MK_MACRO_TYP cls, MK_MACRO_TYP name)
 
void MkBufferStreamFree_RT (MK_RT mkrt, MK_BUS const bus)
 init and free a MkBufferStreamS reference
 
void MkBufferStreamInit_RT (MK_RT mkrt, MK_BUS const bus, MK_TYP type, MK_NUM const size)
 init and free a MkBufferStreamS reference
 
void MkBufferStreamDelete_RT (MK_RT mkrt, MK_BUS const bus)
 Destructor - delete a MkBufferStreamC instance …
 
MK_BUS MkBufferStreamMerge_RT (MK_RT mkrt, MK_BUS const bus)
 Merge-Constructor - create a new MkBufferStreamC as a merge from an existing object …
 
MK_BUS MkBufferStreamDup_RT (MK_RT mkrt, MK_BUSN const src)
 Dup-Constructor - create a new MkBufferStreamC instance as copy from an existing MkBufferStreamC instance …
 
MK_BUS MkBufferStreamCopy_RT (MK_RT mkrt, MK_BUS const bus, MK_BUSN const src)
 copy the MkBufferStreamC from src to bus
 
MK_BUS MkBufferStreamReset_RT (MK_RT mkrt, MK_BUS const bus)
 reset a MkBufferStreamC to the length zero …
 
void MkBufferStreamResetFull_RT (MK_RT mkrt, MK_BUS const bus)
 reset a MkBufferStreamC to the length zero and free allocated storage…
 
void MkBufferStreamLogS_RT (MK_RT mkrt, MK_BUS const bus, MK_OBJ fmtobj, MK_STRN const callfunc)
 
void MkBufferStreamLog_RT (MK_RT mkrt, MK_BUS const bus, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 log the MkBufferStreamC
 
void MkBufferStreamPosToStart_RT (MK_RT mkrt, MK_BUS const bus)
 set the current-access-position to the start of MkBufferStreamC
 
MK_STRN MkBufferStreamToString_RT (MK_RT mkrt, MK_BUSN const inst)
 String-Slot - returns the string representation of the inst
 
MK_BFL MkBufferStreamToBFL_RT (MK_RT mkrt, MK_BUSN const bus)
 convert the bus into a MkBufferListC
 
enum MkErrorE MkBufferStreamWriteI8_RT (MK_RT mkrt, MK_BUS const bus, MK_I8 const val)
 write a PRIMITIVE TYPE into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteBOL_RT (MK_RT mkrt, MK_BUS const bus, MK_BOL const val)
 write a PRIMITIVE TYPE into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteI32_RT (MK_RT mkrt, MK_BUS const bus, MK_I32 const val)
 write a PRIMITIVE TYPE into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteFLT_RT (MK_RT mkrt, MK_BUS const bus, MK_FLT const val)
 write a PRIMITIVE TYPE into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteI64_RT (MK_RT mkrt, MK_BUS const bus, MK_I64 const val)
 write a PRIMITIVE TYPE into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteDBL_RT (MK_RT mkrt, MK_BUS const bus, MK_DBL const val)
 write a PRIMITIVE TYPE into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteSTR_RT (MK_RT mkrt, MK_BUS const bus, MK_STRN const val, MK_NUM const len)
 write a PRIMITIVE TYPE into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteBIN_RT (MK_RT mkrt, MK_BUS const bus, MkBinaryR const val)
 write a PRIMITIVE TYPE into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteBUF_RT (MK_RT mkrt, MK_BUS const bus, MK_BUFN const val)
 write a PRIMITIVE TYPE into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteHDL_RT (MK_RT mkrt, MK_BUS const bus, MK_I32 const val)
 write the handle into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteLONG_RT (MK_RT mkrt, MK_BUS const bus, MK_LONG const val)
 write the long native object into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteVL_RT (MK_RT mkrt, MK_BUS const bus, MK_STRN const fmt, va_list ap)
 write format-string into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteV_RT (MK_RT mkrt, MK_BUS const bus, MK_STRN const fmt,...)
 write format-string into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteBFL_RT (MK_RT mkrt, MK_BUS const bus, MK_BFLN const bfl)
 write a MkBufferListC into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteL_FLAT_RT (MK_RT mkrt, MK_BUS const bus, MK_BFL const bfl)
 write a MkBufferListC FLAT into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteL_START_RT (MK_RT mkrt, MK_BUS const bus)
 START write a list-item-type into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteL_END_RT (MK_RT mkrt, MK_BUS const bus)
 END write a list-item-type into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamWriteBUS_FLAT_RT (MK_RT mkrt, MK_BUS const bus, MK_BUSN const add)
 write a MkBufferStreamC into the MkBufferStreamC
 
enum MkErrorE MkBufferStreamReadL_START_RT (MK_RT mkrt, MK_BUS const bus, MK_BUF buf)
 START read a list-item-type from the MkBufferStreamC
 
enum MkErrorE MkBufferStreamReadL_END_RT (MK_RT mkrt, MK_BUS const bus)
 END read a list-item-type from the MkBufferStreamC
 
enum MkErrorE MkBufferStreamReadALL_RT (MK_RT mkrt, MK_BUS const bus, MK_BFL *const val_inout)
 get a temporary MkBufferListC from all data in the MkBufferStreamC
 
enum MkErrorE MkBufferStreamReadBFL_RT (MK_RT mkrt, MK_BUS const bus, MK_BFL *const val_out)
 read a MkBufferListC from the MkBufferStreamC
 
enum MkErrorE MkBufferStreamReadLIST_RT (MK_RT mkrt, MK_BUS const bus, MK_NAT_LIST *const val_out)
 
enum MkErrorE MkBufferStreamReadNEXT_RT (MK_RT mkrt, MK_BUS const bus, MK_NAT_OBJECT *const val_out)
 
enum MkErrorE MkBufferStreamReadLONG_RT (MK_RT mkrt, MK_BUS const bus, MK_LONG *const val_out)
 read the long native object from the MkBufferStreamC
 
enum MkErrorE MkBufferStreamReadI8_RT (MK_RT mkrt, MK_BUS const bus, MK_I8 *const val_out)
 read a val_out from the MkBufferStreamC
 
enum MkErrorE MkBufferStreamReadBOL_RT (MK_RT mkrt, MK_BUS const bus, MK_BOL *const val_out)
 read a val_out from the MkBufferStreamC
 
enum MkErrorE MkBufferStreamReadI32_RT (MK_RT mkrt, MK_BUS const bus, MK_I32 *const val_out)
 read a val_out from the MkBufferStreamC
 
enum MkErrorE MkBufferStreamReadFLT_RT (MK_RT mkrt, MK_BUS const bus, MK_FLT *const val_out)
 read a val_out from the MkBufferStreamC
 
enum MkErrorE MkBufferStreamReadI64_RT (MK_RT mkrt, MK_BUS const bus, MK_I64 *const val_out)
 read a val_out from the MkBufferStreamC
 
enum MkErrorE MkBufferStreamReadDBL_RT (MK_RT mkrt, MK_BUS const bus, MK_DBL *const val_out)
 read a val_out from the MkBufferStreamC
 
enum MkErrorE MkBufferStreamReadSTR_RT (MK_RT mkrt, MK_BUS const bus, MK_STRN *const val_out)
 read a val_out from the MkBufferStreamC
 
enum MkErrorE MkBufferStreamReadBIN_RT (MK_RT mkrt, MK_BUS const bus, MkBinaryR *const val_out)
 read a val_out from the MkBufferStreamC
 
enum MkErrorE MkBufferStreamReadBUF_RT (MK_RT mkrt, MK_BUS const bus, MK_BUF *const val_out)
 read a val_out from the MkBufferStreamC
 
bool MkBufferStreamReadItemExists_RT (MK_RT mkrt, MK_BUSN const bus)
 check if an item exists in the read-data-package
 
enum MkTypeE MkBufferStreamReadGetNextType_RT (MK_RT mkrt, MK_BUSN const bus)
 get the type (MkTypeE) of the next Item in the MkBufferStreamC or "0" if not available
 
MK_NUM MkBufferStreamReadGetNumItems_RT (MK_RT mkrt, MK_BUSN const bus)
 get the number of items left in the MkBufferStreamC
 
enum MkErrorE MkBufferStreamReadUndo_RT (MK_RT mkrt, MK_BUS const bus)
 undo the last MkBufferStreamC READ function call …
 
enum MkErrorE MkLogFileOpen_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const file, MK_LFL *lfh_out)
 open the log-file in append mode …
 
void MkLogFileClose_RT (MK_RT mkrt, MK_LFL lfh)
 Destructor - delete a MkLogFileC instance …
 
enum MkErrorE MkLogFileWriteVL_RT (MK_RT mkrt, MK_LFLN lfl, MK_FST printfmt, va_list var_list)
 write to log-file
 
enum MkErrorE MkLogFileWriteV_RT (MK_RT mkrt, MK_LFLN lfl, MK_FST printfmt,...)
 write to log-file
 
enum MkErrorE MkLogFileWriteC_RT (MK_RT mkrt, MK_LFLN lfl, MK_STRN text)
 write to log-file
 
enum MkErrorE MkLogFileGetFile_RT (MK_RT mkrt, MK_LFLN lfl, MK_STRN *file_out)
 get the log-file
 
bool MkExtensionDeleteAll_RT (MK_RT mkrt, MK_EXT head)
 
MK_EXT MkExtensionAdd_RT (MK_RT mkrt, MK_EXT head, MK_EXT add)
 this is an update to head, use: head = MkExtensionAdd(head, add)
 
MK_EXT MkExtensionDel_RT (MK_RT mkrt, MK_EXT head, MK_EXT del)
 this is an update to head, use: head = MkExtensionDel(head, del)
 
void MkErrorDelete_RT (MK_RT mkrt, MK_ERR err)
 Destructor - delete a MkErrorS object …
 
MK_ERR MkErrorDup_RT (MK_RT mkrt, MK_ERRN const srce)
 Dup-Constructor - create a new MkErrorC instance as copy from an existing MkErrorC instance …
 
void MkErrorCopy_RT (MK_RT mkrt, MK_ERR dest, MK_ERRN const srce)
 Copy-Constructor - sync an existing MkErrorC instance with the values from an existing MkErrorC instance …
 
enum MkErrorE MkErrorGetCode (MK_ERRN const err)
 get the value of MkErrorS::code
 
MK_STRN MkErrorGetText (MK_ERRN const err)
 get the MkErrorS::text
 
MK_SIZE MkErrorGetSize (MK_ERRN const err)
 get the error-message-size from the exception-object
 
MK_I32 MkErrorGetNum (MK_ERRN const err)
 get the MkErrorS::num. The number can be used as exit-code …
 
void MkErrorSetCONTINUE_RT (MK_RT mkrt, MK_ERR const err)
 signal end of processing in an MqMqEventIF callback …
 
enum MkErrorE MkErrorSetEXIT_RT (MK_RT mkrt, MK_ERR const err, MK_STRN const callfunc)
 finish the current callback, return to toplevel and MqExit the application …
 
enum MkErrorE MkErrorSetSOCKET_RT (MK_RT mkrt, MK_ERR const err, MK_STRN const detail, MK_STRN const callfunc)
 create SOCKET-DOWN error …
 
enum MkErrorE MkErrorSetABORT_RT (MK_RT mkrt, MK_ERR const err, MK_STRN const detail, MK_STRN const callfunc)
 send the ABORT signal to the calling stack…
 
void MkErrorSetCode_RT (MK_RT mkrt, MK_ERR const err, enum MkErrorE code)
 set the MkErrorS::code value …
 
bool MkErrorIsSOCKET (MK_ERRN const err)
 check on SOCKET-DOWN error …
 
bool MkErrorIsABORT (MK_ERRN const err)
 check on ABORT signal …
 
bool MkErrorIsTIMEOUT (MK_ERRN const err)
 check on TIMEOUT error …
 
bool MkErrorIsEXIT (MK_ERR const err)
 check on APPLICATION-EXIT error …
 
void MkPanicVL_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const callfunc, MK_I32 const errnum, MK_FST const printfmt, va_list var_list)
 do a panic with a vararg-list as argument …
 
void MkPanicV_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const callfunc, MK_I32 const errnum, MK_FST const printfmt,...)
 do a panic with a vararg as argument …
 
void MkPanicC_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const callfunc, MK_I32 const errnum, MK_STRN const message)
 do a panic with string as argument …
 
void MkPanicDEFAULT_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_STRN const callfunc) MK_NO_RETURN
 make panic from libmkkernel::MkErrorDEFAULT_RT
 
void MkDisasterSignal (MK_I32 signal)
 called if something get REALLY wrong …
 
void MkErrorAppendVL_RT (MK_RT mkrt, MK_ERR const err, MK_FST const printfmt, va_list var_list)
 append a va_list string to the MkErrorC
 
void MkErrorAppendV_RT (MK_RT mkrt, MK_ERR const err, MK_FST const printfmt,...)
 append a vararg string to the MkErrorC
 
void MkErrorAppendC_RT (MK_RT mkrt, MK_ERR const err, MK_STRN const message)
 append the message to the MkErrorS::text
 
MK_ERR MkErrorNoRaise_RT (MK_RT mkrt, MK_ERR const err)
 ignore the next return of libmkkernel::MK_ERROR and do not raise an target-language-exception
 
enum MkErrorE MkErrorSetR_RT (MK_RT mkrt, MK_ERR const err, MK_STRN const message, enum MkErrorE const errcode, MK_I32 const errnum, MK_MNG const errctx)
 set the MkErrorC and raise the error …
 
enum MkErrorE MkErrorSetE_RT (MK_RT mkrt, MK_ERR const err, MK_ERR const newerr)
 set the MkErrorC from a MkErrorC copy and raise an error …
 
enum MkErrorE MkErrorSetC_RT (MK_RT mkrt, MK_ERR err, MK_STRN const message, MK_STRN const callfunc, MK_I32 const errnum)
 'set' and 'raise' the MkErrorC using a string-message and a errnum-number
 
enum MkErrorE MkErrorSetVL_RT (MK_RT mkrt, MK_ERR err, MK_STRN const callfunc, MK_I32 const errnum, MK_FST const printfmt, va_list var_list)
 'set' and 'raise' the MkErrorC using a vararg-list message …
 
enum MkErrorE MkErrorSetV_RT (MK_RT mkrt, MK_ERR err, MK_STRN const callfunc, MK_I32 const errnum, MK_FST const printfmt,...)
 set the MkErrorS object using a format string argument list and raise an error …
 
void MkErrorCleanup_RT (MK_RT mkrt, MK_ERR const err, MK_STRN const callfunc, MK_I32 const callline)
 cleanup and print unwanted active error …
 
void MkErrorPrintln_RT (MK_RT mkrt, MK_ERR const err, MK_STRN const msg, MK_STRN const callfunc, MK_I32 const callline)
 print the default-error to the MkLogFileC (default: stderr) and clear the error afterwards …
 
void MkErrorLog_RT (MK_RT mkrt, MK_ERRN const err, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 log the error to MkLogFileC (default: stderr) …
 
MK_ERR MkErrorCatch_RT (MK_RT mkrt, MK_ERR const err, MK_EXP const exception, MK_STRN const callfunc)
 convert a programming-language-error into an ccmkkernel error …
 
MK_ERR MkObjectErrorCatch_RT (MK_RT mkrt, MK_OBJN const obj, MK_EXP const exception, MK_STRN const callfunc)
 convert a programming-language-error into an ccmkkernel error …
 
enum MkErrorE MkErrorRaise_RT (MK_RT mkrt, MK_ERRN const err)
 convert an ccmkkernel error into an programming-language-error and raise afterwards. …
 
enum MkErrorE MkErrorReset_RT (MK_RT mkrt, MK_ERR const err, MK_STRN const callfunc, MK_I32 const callline, bool const force)
 This function clears the err and resets to libmkkernel::MK_OK
 
void MkErrorStackFormat_RT (MK_RT mkrt, MK_ERR const err, MK_STRN callfunc, MK_STRN callfile, MK_I32 const callline)
 append an ensemble of func, file and line to the error-message
 
enum MkErrorE MkErrorStack_RT (MK_RT mkrt, MK_ERR const err, MK_STRN const callfunc, MK_STRN const callfile, MK_I32 const callline)
 check on error and if yes append an ErrorStackFormat to the error-message
 
MK_STRN MkErrorToString_RT (MK_RT mkrt, MK_ERRN const inst)
 String-Slot - returns the string representation of the inst
 
bool MkExceptionCheck (MK_EXP exception)
 Checks if Exception is of type MkExceptionC and returns true or false
 
void MkExceptionRaise (MK_MNG const expobj, MK_STRN const callfunc, MK_I32 const callline)
 convert an MkErrorC into a Target-Programming-Language (TPL) exception …
 
MK_ERR MkExceptionCatch (MK_MNG const expobj, MK_EXP const exception, MK_STRN const callfunc)
 convert an Target-Programming-Language (TPL) exception into an MkErrorC
 
MK_RT MkRuntimeSetup (MK_RT const mkrt)
 initialize MkRuntimeRLS
 
void MkRuntimeCleanup (MK_RT mkrt)
 cleanup MkRuntimeRLS
 
static MK_RT MkRuntimeGet (void)
 return a initialized MkRuntimeRLS
 
static MK_RT MkRuntimeGetFromObj (MK_OBJ obj)
 return the initialized MkRuntimeRLS from an obj
 
static bool MkRuntimeIsSilentGet (void)
 get the MkRuntimeS::isSilent value …
 
static void MkRuntimeIsSilentSet_RT (MK_RT mkrt, bool silent)
 set the MkRuntimeS::isSilent value …
 
static void MkRuntimeNoDecoSet_RT (MK_RT mkrt, bool noDeco)
 set the MkRuntimeS::noDeco value …
 
static MK_I32 MkRuntimeDebugGet (void)
 get the MkRuntimeS::debug value …
 
static void MkRuntimeDebugSet (MK_I32 dbg)
 set the MkRuntimeS::debug value …
 
static MK_STRN MkRuntimeLogTargetGet (void)
 get the MkLogDataS::logNAME value …
 
enum MkErrorE MkRuntimeLogTargetSet_RT (MK_RT mkrt, MK_STRN logTgt)
 set the MkRuntimeS::log value and cleanup old value …
 
enum MkErrorE MkRuntimeLogTargetReset_RT (MK_RT mkrt)
 set the MkRuntimeS::log value to the DEFAULT value …
 
MkLogDataS MkRuntimeLogTargetPush_RT (MK_RT mkrt, MK_STRN logTgt)
 
void MkRuntimeLogTargetPop_RT (MK_RT mkrt, MkLogDataS logOld)
 
void MkRuntimeSetCID (MK_OBJ const cid)
 CID == context-in-duty.
 
static enum MkErrorE MkRuntimeErrorGetCode_RT (MK_RT mkrt)
 return libmkkernel::MkErrorS::code from a given MkRuntimeC
 
void MkRuntimeLog0_RT (MK_RT mkrt, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 log the MkRuntimeC
 
static MK_OBJ MkObjectInstancesOfType_RT (MK_RT mkrt, MK_SIG typeSIG)
 return the head-instance from a specific type defined by signature typeSIG
 
static MK_ERR MkObjectToError_RT (MK_RT mkrt, MK_OBJ const obj)
 Error-Slot - return an error-object pre initialized with obj data.
 
MK_BFL MkBufferListCreate_RT (MK_RT mkrt, MK_NUM const size)
 Constructs a MkBufferC instance with size storage…
 
MK_BFL MkBufferListCreateTLS_RT (MK_RT mkrt, MK_STRN const tlsName, bool const resetB)
 same as BufferListCreate but require no cleanup …
 
void MkBufferListCreateTLS_T (MK_MACRO_TYP name, MK_NUM const num)
 
void MkBufferListCreateSTATIC_T (MK_MACRO_TYP name, MK_NUM const num)
 
void MkBufferListCreateLOCAL_T (MK_MACRO_TYP name, MK_NUM const num)
 
void MkBufferListCreateTLS_inout_T (MK_MACRO_TYP name, MK_NUM const num, MK_BFL *inout)
 
MK_BFL MkBufferListCreateVC_RT (MK_RT mkrt, MK_NUM const argc, MK_STRN const *argv)
 Constructs a MkBufferListC instance with a argc/argv data from a list of strings …
 
MK_BFL MkBufferListCreateVAL_RT (MK_RT mkrt, MK_STRN const arg0, va_list var_list)
 Constructs a MkBufferListC instance with a va_list argument …
 
MK_BFL MkBufferListCreateVA_RT (MK_RT mkrt, MK_STRN const arg0,...)
 Constructs a MkBufferListC instance with a varargs argument that ends with MK_NULL
 
MK_BFL MkBufferListCreateLA_RT (MK_RT mkrt, MK_BAC const args)
 Constructs a MkBufferListC instance with an other MkBufferListC OR a list of arguments (only in NON C)
 
MK_BFL MkBufferListDup_RT (MK_RT mkrt, MK_BFLN const bfl)
 Dup-Constructor - create a new MkBufferListC instance as copy from an existing MkBufferListC instance …
 
MK_BFL MkBufferListMerge_RT (MK_RT mkrt, MK_BFL const bfl)
 Merge-Constructor - constructs a MkBufferListC instance as a merge from an existing MkBufferListC instance …
 
void MkBufferListInit_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const num)
 initialize an already allocated MkBufferListC
 
void MkBufferListFree_RT (MK_RT mkrt, MK_BFL const bfl)
 free the internal data but keep the outher shell alive
 
void MkBufferListDelete_RT (MK_RT mkrt, MK_BFL bfl)
 Destructor - delete a MkBufferListC instance …
 
void MkBufferListMove_RT (MK_RT mkrt, MK_BFL const to, MK_BFL const from)
 move all internal data from from to the end of to
 
void MkBufferListCopy_RT (MK_RT mkrt, MK_BFL const bfl, MK_BFLN const src)
 copy all internal data from src to tgt
 
MK_BFL MkBufferListPositionMerge_RT (MK_RT mkrt, MK_BFL const bfl, MK_BFL const source, MK_NUM position)
 merge a MkBufferListS list into an MkBufferListS object on position
 
MK_NUM MkBufferListSearchC_RT (MK_RT mkrt, MK_BFLN const bfl, MK_STRN const str, MK_NUM const len, MK_NUM const startindex)
 search libmkkernel::MK_STR item from a MkBufferListS object starting at startindex
 
MK_BFL MkBufferListReset_RT (MK_RT mkrt, MK_BFL bfl)
 reset a MkBufferListC object …
 
MK_STRN MkBufferListToString_RT (MK_RT mkrt, MK_BFLN const bfl)
 get a string representation of the bfl
 
MK_NAT_LIST MkBufferListToList_RT (MK_RT mkrt, MK_BFLN const bfl)
 get a target-language list representation of the bfl
 
MK_STRN_A MkBufferListToStringList_RT (MK_RT mkrt, MK_BFLN const bfl, bool const unique)
 get a string-list representation of the bfl
 
MK_BUF MkBufferListToBuffer_RT (MK_RT mkrt, MK_BFLN const bfl)
 Export a bfl into an MkBufferC using an MkBufferStreamC
 
MK_I32 MkBufferListCmp_RT (MK_RT mkrt, MK_BFLN const bfl, MK_BFLN const bfl2)
 compare two buffer-list
 
MK_BFL MkBufferListSort_RT (MK_RT mkrt, MK_BFL const bfl)
 sort a MkBufferListC
 
void MkBufferListReserve_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const num)
 reserve num items in a MkBufferListC object …
 
MK_NUM MkBufferListSize_RT (MK_RT mkrt, MK_BFLN const bfl)
 get the number-of-items in the bfl
 
MK_BFL MkBufferListFileGlob_RT (MK_RT mkrt, MK_STRN const pattern_match)
 create a new MkBufferListC using the result from a filesystem glob operation …
 
MK_BFL MkBufferListAppendLP_RT (MK_RT mkrt, MK_BFL const bfl, MK_BFL const addBufL, MK_NUM position)
 copy a MkBufferListS list into an MkBufferListS object on position
 
MK_BFL MkBufferListAppendVC_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const argc, MK_STRN const *const argv)
 append a argc/argv list of strings to an MkBufferListS object …
 
MK_BFL MkBufferListAppendVAL_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN arg0, va_list var_list)
 append a variable number of strings to an MkBufferListS object …
 
MK_BFL MkBufferListAppendVA_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN arg0,...)
 append a variable number of strings to an MkBufferListS object …
 
MK_BFL MkBufferListAppendLA_RT (MK_RT mkrt, MK_BFL const bfl, MK_BAC const args)
 append a variable number of MkBufferC object's to an MkBufferListC object using an other MkBufferListC OR a list of arguments (only in NON C)
 
void MkBufferListAppendI8_RT (MK_RT mkrt, MK_BFL const bfl, MK_I8 const val)
 append a native PRIMITIVE TYPE object to a MkBufferListC
 
void MkBufferListAppendBOL_RT (MK_RT mkrt, MK_BFL const bfl, MK_BOL const val)
 append a native PRIMITIVE TYPE object to a MkBufferListC
 
void MkBufferListAppendI16_RT (MK_RT mkrt, MK_BFL const bfl, MK_I16 const val)
 append a native PRIMITIVE TYPE object to a MkBufferListC
 
void MkBufferListAppendI32_RT (MK_RT mkrt, MK_BFL const bfl, MK_I32 const val)
 append a native PRIMITIVE TYPE object to a MkBufferListC
 
void MkBufferListAppendFLT_RT (MK_RT mkrt, MK_BFL const bfl, MK_FLT const val)
 append a native PRIMITIVE TYPE object to a MkBufferListC
 
void MkBufferListAppendI64_RT (MK_RT mkrt, MK_BFL const bfl, MK_I64 const val)
 append a native PRIMITIVE TYPE object to a MkBufferListC
 
void MkBufferListAppendG_RT (MK_RT mkrt, MK_BFL const bfl, MK_LONG const val)
 append a native PRIMITIVE TYPE object to a MkBufferListC
 
void MkBufferListAppendDBL_RT (MK_RT mkrt, MK_BFL const bfl, MK_DBL const val)
 append a native PRIMITIVE TYPE object to a MkBufferListC
 
void MkBufferListAppendSTR_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const val)
 append a native PRIMITIVE TYPE object to a MkBufferListC
 
void MkBufferListAppendBIN_RT (MK_RT mkrt, MK_BFL const bfl, MkBinaryR const val)
 append a native PRIMITIVE TYPE object to a MkBufferListC
 
void MkBufferListAppendBUF_RT (MK_RT mkrt, MK_BFL const bfl, MK_BUF const val)
 append a native PRIMITIVE TYPE object to a MkBufferListC
 
void MkBufferListAppendUP_RT (MK_RT mkrt, MK_BFL const bfl, MK_BUF const addBuf, MK_NUM position)
 append a MkBufferC item into an MkBufferListC object on position
 
void MkBufferListAppendVL_RT (MK_RT mkrt, MK_BFL const bfl, MK_FST const printfmt, va_list var_list)
 append an printf like format object to the end of an MkBufferListS object …
 
void MkBufferListAppendV_RT (MK_RT mkrt, MK_BFL const bfl, MK_FST const printfmt,...)
 append an printf like format object to the end of an MkBufferListS object …
 
void MkBufferListAppendStringR_RT (MK_RT mkrt, MK_BFL const bfl, MkStringR const val)
 append a native PRIMITIVE TYPE object to a MkBufferListC
 
bool MkBufferListCheckOption_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, bool const onlyFirst)
 search for boolean option in MkBufferListS list and return libmkkernel::MK_BOL value …
 
enum MkErrorE MkBufferListCheckOptionBOL_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, bool const defval, bool const onlyFirst, bool *const val_out)
 search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
enum MkErrorE MkBufferListCheckOptionI8_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, MK_I8 const defval, bool const onlyFirst, MK_I8 *const val_out)
 search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
enum MkErrorE MkBufferListCheckOptionI16_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, MK_I16 const defval, bool const onlyFirst, MK_I16 *const val_out)
 search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
enum MkErrorE MkBufferListCheckOptionI32_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, MK_I32 const defval, bool const onlyFirst, MK_I32 *const val_out)
 search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
enum MkErrorE MkBufferListCheckOptionFLT_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, MK_FLT const defval, bool const onlyFirst, MK_FLT *const val_out)
 search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
enum MkErrorE MkBufferListCheckOptionI64_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, MK_I64 const defval, bool const onlyFirst, MK_I64 *const val_out)
 search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
enum MkErrorE MkBufferListCheckOptionDBL_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, MK_DBL const defval, bool const onlyFirst, MK_DBL *const val_out)
 search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
enum MkErrorE MkBufferListCheckOptionSTR_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, MK_STRN const defval, bool const onlyFirst, MK_STRN *const val_out)
 search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
enum MkErrorE MkBufferListCheckOptionBUF_RT (MK_RT mkrt, MK_BFL const bfl, MK_STRN const opt, MK_BUF const defval, bool const onlyFirst, MK_BUF *const val_out)
 search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
enum MkErrorE MkBufferListIndexDelete_RT (MK_RT mkrt, MK_BFL const bfl, const MK_NUM index, const MK_NUM numitems, const bool doDelete)
 delete the index'th list item from the MkBufferListS object …
 
enum MkErrorE MkBufferListIndexExtract_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const index, MK_BUF *const val_out)
 extract (read & delete) the index object from bfl
 
enum MkErrorE MkBufferListIndexGet_RT (MK_RT mkrt, MK_BFLN const bfl, MK_NUM const index, MK_BUF *const val_out)
 get (read only) the index object from bfl
 
enum MkErrorE MkBufferListIndexSet_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const index, MK_BUF const buf)
 set the index object from bfl
 
MK_BUF MkBufferListIndexGetBUF_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM index)
 get the index element from MkBufferListC ... if not available… create it. …
 
void MkBufferListIndexSetBUF_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const index, MK_BUF const buf)
 set the index element from MkBufferListC ... if not available… createspace …
 
MK_STRN MkBufferListIndexGetSTR_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const index)
 get the index element from MkBufferListC ... as string. …
 
void MkBufferListIndexSetSTR_RT (MK_RT mkrt, MK_BFL const bfl, MK_NUM const index, MK_STRN const str)
 set the index element from MkBufferListC ... to string… if not available… create space …
 
void MkBufferListLog_RT (MK_RT mkrt, MK_BFLN bfl, MK_OBJN const fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 write the detail-summary of the MkBufferListC to MkLogFileC (default: stderr) …
 
void MkBufferListLogS_RT (MK_RT mkrt, MK_BFLN const bfl, MK_STRN const varname, MK_OBJN fmtobj, MK_STRN const callfunc)
 write the short-summary of the MkBufferListC to MkLogFileC (default: stderr) …
 
void MkBufferListLogSS_RT (MK_RT mkrt, MK_BFLN const bfl, MK_STRN const varname, MK_OBJN fmtobj, MK_STRN const callfunc)
 write the very-short-summary of the MkBufferListC to MkLogFileC (default: stderr) …
 
void MkBufferListLogSSS_RT (MK_RT mkrt, MK_BFLN const bfl, MK_STRN const varname, MK_OBJN fmtobj, MK_STRN const callfunc)
 write the very-very-short-summary of the MkBufferListC to MkLogFileC (default: stderr) …
 
MK_NULL

work with the NULL value

define the NULL

This problem looks simpler than it is because NULL is not defined in every language.

TCL e.g. does not understand the NULL as a data type and an approximation with "" is only correct to the extent that the target API also understands the "" as a NULL-Value.

Unfortunately, this is not always the case and therefore:

  • wherever a NULL is explicitly required the MK_NULL is used in C++ .
  • wherever a NULL as string (libmkkernel::MK_STRN) is required then the string "MK_NULL" is used in C++.

To support the NULL the following items are defined:

  1. the NULL-value called MK_NULL
  2. the NULL-string called MK_NULL_STR
  3. the NULL-string-length called MK_NULL_STR_LEN
  4. the NULL-check called libmkkernel::MK_NULL_STR_CHECK
Note
The Programming-Language-Micro-Kernel (PLMK) translate the string "MK_NULL" into the MK_NULL pointer wherever a pointer is expected as a return value.

class-instance as NULL

MOT-Null


static bool MK_NULL_STR_CHECK (char const *const __str, const long int __len)
 check if __str is MK_NULL_STR return true or false
 
static bool MK_NULL_STR_CHECK_1 (char const *const __str)
 same as libmkkernel::MK_NULL_STR_CHECK but without len parameter
 
static bool MK_NULL_STR_OR_EMPTY_CHECK_1 (char const *const __str)
 same as libmkkernel::MK_NULL_STR_CHECK together with "" check but without len parameter
 
MkObjectC - signature check
static bool MkObjCheck (MK_MNGN mng)
 check MkObjectS -> libmkkernel::MkObjectS::signature
 
static bool MkObjCheckO (MK_OBJN obj)
 check MkObjectS -> libmkkernel::MkObjectS::signature
 
MkObjectC - cast from a defined or a undefined instance
static MK_OBJ MkObj (MK_MNG mng)
 cast a unknown-object into an MkObjectS pointer or NULL if not possible
 
static MK_OBJN MkObjN (MK_MNGN mng)
 (const) cast a unknown-object into an MkObjectS pointer or NULL if not possible
 
MkObjectC - Export - inline - interact with an external software
static MK_HDL MkObjectHandleGetOfType (MK_OBJ const obj)
 Export-Slot - returns typeHdl of the obj .
 
bool MkObjectHandleExists (MK_OBJ const obj)
 check if obj has already a handle defined…
 
MK_HDL MkObjectHandleGetOr0 (MK_OBJ const obj)
 return export-hdl or 0 in not created…
 
MK_HDL MkObjectHandleGet_RT (MK_RT mkrt, MK_OBJ const obj)
 Handle-Get-Slot - returns a export-hdl to the MkObjectC useable for external storage
 
MK_OBJ MkObjectHandleResolve_RT (MK_RT mkrt, MK_HDL const netHdl)
 Handle-Resolve-Slot - return a MkObjectC from netHdl or MK_NULL if invalid…
 
void MkObjectHandleDeleteByNetHdl_RT (MK_RT mkrt, MK_HDL const netHdl)
 Handle-Delete-Slot - delete a netHdl from handle-storage …
 
void MkObjectHandleDelete_RT (MK_RT mkrt, MK_OBJ const netObj)
 Handle-Delete-Slot - delete a netObj from handle-storage …
 
MkObjectC - Misc - function - unspecified functions to perform different tasks
static MK_OBJ MkObjectGetNull (void)
 Null-Slot - return a MkObjectC typed NULL instance …
 
MkTypeC - signature check
static bool MkTypCheck (MK_MNGN mng)
 check MkTypeS -> libmkkernel::MkObjectS::signature
 
static bool MkTypCheckO (MK_OBJN obj)
 check MkTypeS -> libmkkernel::MkObjectS::signature
 
MkRef…

reference management functions

static void MkRefIncr (MK_OBJ obj)
 increment the reference-count
 
void MkRefDecr_RT (MK_RT mkrt, MK_OBJ obj)
 decrement the reference-count
 
static void MkRefIncrSelf (MK_OBJ const obj, MK_PTR const self, MK_PTR const env)
 ATOMIC operation -> link self with reference-count.
 
MK_OBJ MkRefDecrWithoutSelf_RT (MK_RT mkrt, MK_OBJ const obj)
 ATOMIC operation -> unlink self with reference-count.
 
MK_OBJ MkRefDecrWithUnlinkSelf_RT (MK_RT mkrt, MK_OBJ const obj)
 ATOMIC operation -> unlink self from META und decr-ref-count in META.
 
static MK_I32 MkRefGet (MK_OBJ const obj)
 get the reference-count
 
static MK_I32 MkRefLock (MK_OBJ const obj)
 lock the object
 
static bool MkRefIsLocked (MK_OBJ const obj)
 check if object is locked
 
MK_NUM MkRefCidN_RT (MK_RT mkrt)
 return the reference-count-recursion-level
 
MkBufferC - signature check
static bool MkBufCheck (MK_MNGN mng)
 check MkBufferS -> libmkkernel::MkObjectS::signature
 
static bool MkBufCheckO (MK_OBJN obj)
 check MkBufferS -> libmkkernel::MkObjectS::signature
 
MkBufferC - cast from a defined or a undefined instance
static MK_BUF MkBuf (MK_MNG mng)
 cast a unknown-object into an MkBufferS pointer or NULL if not possible
 
static MK_BUFN MkBufN (MK_MNGN mng)
 (const) cast a unknown-object into an MkBufferS pointer or NULL if not possible
 
MkBufferC - Export - inline - interact with an external software
static MK_HDL MkBufferHandleGet_RT (MK_RT mkrt, MK_BUF const buf)
 Handle-Get-Slot - returns a export-hdl to the MkBufferC useable for external storage
 
static MK_BUF MkBufferHandleResolve_RT (MK_RT mkrt, MK_HDL const netHdl)
 Handle-Resolve-Slot - return a MkBufferC from netHdl or MK_NULL if invalid…
 
MkBufferC - Misc - function - unspecified functions to perform different tasks
static MK_BUF MkBufferGetNull (void)
 Null-Slot - return a MkBufferC typed NULL instance …
 
MkString2TT

Function used to convert a string into a ccmkkernel native type …

enum MkErrorE MkString2BOL_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_BOL *val_out)
 convert a string into a native
 
enum MkErrorE MkString2I8_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_I8 *val_out)
 
enum MkErrorE MkString2I16_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_I16 *val_out)
 
enum MkErrorE MkString2U16_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_U16 *val_out)
 
enum MkErrorE MkString2I32_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_I32 *val_out)
 
enum MkErrorE MkString2U32_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_U32 *val_out)
 
enum MkErrorE MkString2I64_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_I64 *val_out)
 
enum MkErrorE MkString2FLT_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_FLT *val_out)
 
enum MkErrorE MkString2DBL_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_DBL *val_out)
 
enum MkErrorE MkString2LONG_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_LONG *val_out)
 
enum MkErrorE MkString2BOOL_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_BOOL *val_out)
 
enum MkErrorE MkString2ATO_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, enum MkTypeE type, MK_ATO *val_out)
 
enum MkErrorE MkString2HDL_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_HDL *val_out)
 
MkBufferStreamC - signature check
static bool MkBusCheck (MK_MNGN mng)
 check MkBufferStreamS -> libmkkernel::MkObjectS::signature
 
static bool MkBusCheckO (MK_OBJN obj)
 check MkBufferStreamS -> libmkkernel::MkObjectS::signature
 
MkBufferStreamC - cast from a defined or a undefined instance
static MK_BUS MkBus (MK_MNG mng)
 cast a unknown-object into an MkBufferStreamS pointer or NULL if not possible
 
static MK_BUSN MkBusN (MK_MNGN mng)
 (const) cast a unknown-object into an MkBufferStreamS pointer or NULL if not possible
 
MkBufferStreamC - Export - inline - interact with an external software
static MK_HDL MkBufferStreamHandleGet_RT (MK_RT mkrt, MK_BUS const bus)
 Handle-Get-Slot - returns a export-hdl to the MkBufferStreamC useable for external storage
 
static MK_BUS MkBufferStreamHandleResolve_RT (MK_RT mkrt, MK_HDL const netHdl)
 Handle-Resolve-Slot - return a MkBufferStreamC from netHdl or MK_NULL if invalid…
 
MkBufferStreamC - Misc - function - unspecified functions to perform different tasks
static MK_BUS MkBufferStreamGetNull (void)
 Null-Slot - return a MkBufferStreamC typed NULL instance …
 
MkLogFileC - signature check
static bool MkLflCheck (MK_MNGN mng)
 check MkLogFileS -> libmkkernel::MkObjectS::signature
 
static bool MkLflCheckO (MK_OBJN obj)
 check MkLogFileS -> libmkkernel::MkObjectS::signature
 
MkLogFileC - cast from a defined or a undefined instance
static MK_LFL MkLfl (MK_MNG mng)
 cast a unknown-object into an MkLogFileS pointer or NULL if not possible
 
static MK_LFLN MkLflN (MK_MNGN mng)
 (const) cast a unknown-object into an MkLogFileS pointer or NULL if not possible
 
MkLogFileC - Export - inline - interact with an external software
static MK_HDL MkLogFileHandleGet_RT (MK_RT mkrt, MK_LFL const lfl)
 Handle-Get-Slot - returns a export-hdl to the MkLogFileC useable for external storage
 
static MK_LFL MkLogFileHandleResolve_RT (MK_RT mkrt, MK_HDL const netHdl)
 Handle-Resolve-Slot - return a MkLogFileC from netHdl or MK_NULL if invalid…
 
MkLogFileC - Misc - function - unspecified functions to perform different tasks
static MK_LFL MkLogFileGetNull (void)
 Null-Slot - return a MkLogFileC typed NULL instance …
 
MkExtensionC - signature check
static bool MkExtCheck (MK_MNGN mng)
 check MkExtensionS -> libmkkernel::MkObjectS::signature
 
static bool MkExtCheckO (MK_OBJN obj)
 check MkExtensionS -> libmkkernel::MkObjectS::signature
 
MkExtensionC - cast from a defined or a undefined instance
static MK_EXT MkExt (MK_MNG mng)
 cast a unknown-object into an MkExtensionS pointer or NULL if not possible
 
static MK_EXTN MkExtN (MK_MNGN mng)
 (const) cast a unknown-object into an MkExtensionS pointer or NULL if not possible
 
MkErrorC - signature check
static bool MkErrCheck (MK_MNGN mng)
 check MkErrorS -> libmkkernel::MkObjectS::signature
 
static bool MkErrCheckO (MK_OBJN obj)
 check MkErrorS -> libmkkernel::MkObjectS::signature
 
MkErrorC - cast from a defined or a undefined instance
static MK_ERR MkErr (MK_MNG mng)
 cast a unknown-object into an MkErrorS pointer or NULL if not possible
 
static MK_ERRN MkErrN (MK_MNGN mng)
 (const) cast a unknown-object into an MkErrorS pointer or NULL if not possible
 
MkErrorC - Export - inline - interact with an external software
static MK_HDL MkErrorHandleGet_RT (MK_RT mkrt, MK_ERR const err)
 Handle-Get-Slot - returns a export-hdl to the MkErrorC useable for external storage
 
static MK_ERR MkErrorHandleResolve_RT (MK_RT mkrt, MK_HDL const netHdl)
 Handle-Resolve-Slot - return a MkErrorC from netHdl or MK_NULL if invalid…
 
MkErrorC - Misc - function - unspecified functions to perform different tasks
static MK_ERR MkErrorGetNull (void)
 Null-Slot - return a MkErrorC typed NULL instance …
 
MkErrExtC - signature check
static bool MkErrExtCheck (MK_MNGN mng)
 check MkErrExtS -> libmkkernel::MkObjectS::signature
 
static bool MkErrExtCheckO (MK_OBJN obj)
 check MkErrExtS -> libmkkernel::MkObjectS::signature
 
MkErrExtC - cast from a defined or a undefined instance
static MK_ERREXT MkErrExt (MK_MNG mng)
 cast a unknown-object into an MkErrExtS pointer or NULL if not possible
 
static MK_ERREXTN MkErrExtN (MK_MNGN mng)
 (const) cast a unknown-object into an MkErrExtS pointer or NULL if not possible
 
MkErrorDEFAULT

default-system-error - default-error

The default-error is defined once per runtime and is used as only-valid-source of an MkErrorC in a thread or process.

See also
ErrorFORMAT, ErrorPRINT, ErrorIGNORE, MkErrorPANIC, RMkNsRT{ErrorEXIT}
static MK_ERR MkErrorDEFAULT_RT (MK_RT mkrt)
 default-system-error - default-error
 
MkErrorPanik

panic-system-error - panic on next error …

If the panic-system-error is used as the format-obj of an error-message, the text is formated as usual, but the default-error is not set, instead a MkPanicVL is called and the application terminates.

MkErrorPANIC - usage

Set the MkErrorS::format_of_error attribute to PANIC. The next error-message will be formated as usual and than be reported using MkPanicVL. With MkPanicVL the error will be printed to MkLogFileC (default: stderr) and the application will abort.

Returns
the default-error with MkErrorS::format_of_error attribute set
See also
ErrorDEFAULT, ErrorPRINT, ErrorIGNORE, MkErrorPANIC, RMkNsRT{ErrorEXIT}
static MK_ERR MkErrorPANIC_RT (MK_RT mkrt)
 panic-system-error - panic on next error …
 
MkErrorExit

panic-system-error - panic on next error …

If the panic-system-error is used as the format-obj of an error-message, the text is formated as usual, but the default-error is not set, instead a MkPanicVL is called and the application terminates.

MkErrorEXIT - usage

Set the MkErrorS::format_of_error attribute to EXIT. The next error-message will be formated as usual and than be reported using MkPanicVL. With MkPanicVL the error will be printed to MkLogFileC (default: stderr) and the application will abort.

Returns
the default-error with MkErrorS::format_of_error attribute set
See also
ErrorDEFAULT, ErrorPRINT, ErrorIGNORE, MkErrorEXIT
static MK_ERR MkErrorEXIT_RT (MK_RT mkrt)
 panic-system-error - panic on next error …
 
MkErrorIgnore

ignore-system-error - ignore the next error …

The next error will be ignored, no formatting will be performed and the the default-error will not be modified.

MkErrorIGNORE - usage

There are two functions to suppress an error: MkErrorIGNORE and MkErrorNoRaise.

MkErrorIGNORE
Set the MkErrorS::format_of_error attribute to IGNORE. The next error will be ignored, no formatting will be performed and the the default-error will not be modified.
MkErrorNoRaise
Set the MkErrorS::noRaise attribute to TRUE. The next error will be set as usual but not raised. This is usefull to set an error and later append additional information to the error. Final the error have to be raised with MkErrorRaise.
Returns
the default-error with MkErrorS::format_of_error attribute set
See also
ErrorDEFAULT, ErrorPRINT, ErrorIGNORE, MkErrorPANIC, RMkNsRT{ErrorEXIT}
static MK_ERR MkErrorIGNORE_RT (MK_RT mkrt)
 ignore-system-error - ignore the next error …
 
MkErrorPrintln

ignore-system-error - print the next error into MkLogFileC

The next error-message will be formated as usual and than be reported using MkLogVL. The default-error will not be modified.

MkErrorPRINT - usage

Set the MkErrorS::format_of_error attribute to PRINT.

Returns
the default-error with MkErrorS::format_of_error attribute set
See also
ErrorDEFAULT, ErrorPRINT, ErrorIGNORE, MkErrorPANIC, RMkNsRT{ErrorEXIT}
static MK_ERR MkErrorPRINT_RT (MK_RT mkrt)
 ignore-system-error - print the next error into MkLogFileC
 
MkErrorFORMAT

system-error-format - format and return the default-error

Returns
the MkErrorS::format_of_error or MkErrorS::source_of_error attribute

MkErrorFORMAT - usage

Set the MkErrorS::format_of_error attribute to fmtobj or MK_NULL. The next error-message will be formated as usual and than be raised as error. The default-error will be modified.

The next error-message created with ErrorSetC etc is formatted with MkRuntimeS->cid ("context-in-duty") or simply as "DEFAULT" if cid == NULL.

Parameters
[in]fmtobjmanaged object used to format the log-message (default=MK_NULL → use default-format)
Returns
the default-error with MkErrorS::format_of_error attribute set
See also
ErrorDEFAULT, ErrorPRINT, ErrorIGNORE, MkErrorPANIC, RMkNsRT{ErrorEXIT}
MK_ERR MkErrorFORMAT (MK_OBJN fmtobj)
 system-error-format - format and return the default-error
 
MK_ERR MkErrorFORMAT_EO (MK_OBJN fmtobj)
 same as [static] MkErrorC* MkErrorC::DEFAULT() but do not set the MkERROR.format_of_error attribute on errobj==NULL
 
MkRtExtC - signature check
static bool MkRtExtCheck (MK_MNGN mng)
 check MkRtExtS -> libmkkernel::MkObjectS::signature
 
static bool MkRtExtCheckO (MK_OBJN obj)
 check MkRtExtS -> libmkkernel::MkObjectS::signature
 
MkRtExtC - cast from a defined or a undefined instance
static MK_RTEXT MkRtExt (MK_MNG mng)
 cast a unknown-object into an MkRtExtS pointer or NULL if not possible
 
static MK_RTEXTN MkRtExtN (MK_MNGN mng)
 (const) cast a unknown-object into an MkRtExtS pointer or NULL if not possible
 
MkRuntimeC - signature check
static bool MkRtCheck (MK_MNGN mng)
 check MkRuntimeS -> libmkkernel::MkObjectS::signature
 
static bool MkRtCheckO (MK_OBJN obj)
 check MkRuntimeS -> libmkkernel::MkObjectS::signature
 
MkRuntimeC - cast from a defined or a undefined instance
static MK_RT MkRt (MK_MNG mng)
 cast a unknown-object into an MkRuntimeS pointer or NULL if not possible
 
static MK_RTN MkRtN (MK_MNGN mng)
 (const) cast a unknown-object into an MkRuntimeS pointer or NULL if not possible
 
MkRuntimeC - Export - inline - interact with an external software
static MK_HDL MkRuntimeHandleGet_RT (MK_RT mkrt, MK_RT const rt)
 Handle-Get-Slot - returns a export-hdl to the MkRuntimeC useable for external storage
 
static MK_RT MkRuntimeHandleResolve_RT (MK_RT mkrt, MK_HDL const netHdl)
 Handle-Resolve-Slot - return a MkRuntimeC from netHdl or MK_NULL if invalid…
 
MkRuntimeC - Misc - function - unspecified functions to perform different tasks
static MK_RT MkRuntimeGetNull (void)
 Null-Slot - return a MkRuntimeC typed NULL instance …
 
MkBufferListC - Introspection - inline - access to all instances created by class starting with the last one
static MK_BFL MkBufferListInstances_RT (MK_RT mkrt)
 get head-instance from linked-list of MkBufferListS type …
 
static MK_BFL MkBufferListNext (MK_BFL const bfl)
 get next instance from linked-list of MkBufferListS type
 
static MK_BFL MkBufferListPrev (MK_BFL const bfl)
 get previous instance from linked-list of MkBufferListS type
 
MkBufferC - Introspection - inline - access to all instances created by class starting with the last one
static MK_BUF MkBufferInstances_RT (MK_RT mkrt)
 get head-instance from linked-list of MkBufferS type …
 
static MK_BUF MkBufferNext (MK_BUF const buf)
 get next instance from linked-list of MkBufferS type
 
static MK_BUF MkBufferPrev (MK_BUF const buf)
 get previous instance from linked-list of MkBufferS type
 
MkBufferStreamC - Introspection - inline - access to all instances created by class starting with the last one
static MK_BUS MkBufferStreamInstances_RT (MK_RT mkrt)
 get head-instance from linked-list of MkBufferStreamS type …
 
static MK_BUS MkBufferStreamNext (MK_BUS const bus)
 get next instance from linked-list of MkBufferStreamS type
 
static MK_BUS MkBufferStreamPrev (MK_BUS const bus)
 get previous instance from linked-list of MkBufferStreamS type
 
MkErrorC - Introspection - inline - access to all instances created by class starting with the last one
static MK_ERR MkErrorInstances_RT (MK_RT mkrt)
 get head-instance from linked-list of MkErrorS type …
 
static MK_ERR MkErrorNext (MK_ERR const err)
 get next instance from linked-list of MkErrorS type
 
static MK_ERR MkErrorPrev (MK_ERR const err)
 get previous instance from linked-list of MkErrorS type
 
MkLogFileC - Introspection - inline - access to all instances created by class starting with the last one
static MK_LFL MkLogFileInstances_RT (MK_RT mkrt)
 get head-instance from linked-list of MkLogFileS type …
 
static MK_LFL MkLogFileNext (MK_LFL const lfl)
 get next instance from linked-list of MkLogFileS type
 
static MK_LFL MkLogFilePrev (MK_LFL const lfl)
 get previous instance from linked-list of MkLogFileS type
 
MkObjectC - Introspection - inline - access to all instances created by class starting with the last one
static MK_OBJ MkObjectInstances_RT (MK_RT mkrt)
 get head-instance from linked-list of MkObjectS type …
 
static MK_OBJ MkObjectNext (MK_OBJ const obj)
 get next instance from linked-list of MkObjectS type
 
static MK_OBJ MkObjectPrev (MK_OBJ const obj)
 get previous instance from linked-list of MkObjectS type
 
MkRuntimeC - Introspection - inline - access to all instances created by class starting with the last one
static MK_RT MkRuntimeInstances_RT (MK_RT mkrt)
 get head-instance from linked-list of MkRuntimeS type …
 
static MK_RT MkRuntimeNext (MK_RT const rt)
 get next instance from linked-list of MkRuntimeS type
 
static MK_RT MkRuntimePrev (MK_RT const rt)
 get previous instance from linked-list of MkRuntimeS type
 
MkBufferListC - signature check
static bool MkBflCheck (MK_MNGN mng)
 check MkBufferListS -> libmkkernel::MkObjectS::signature
 
static bool MkBflCheckO (MK_OBJN obj)
 check MkBufferListS -> libmkkernel::MkObjectS::signature
 
MkBufferListC - cast from a defined or a undefined instance
static MK_BFL MkBfl (MK_MNG mng)
 cast a unknown-object into an MkBufferListS pointer or NULL if not possible
 
static MK_BFLN MkBflN (MK_MNGN mng)
 (const) cast a unknown-object into an MkBufferListS pointer or NULL if not possible
 
MkBufferListC - Export - inline - interact with an external software
static MK_HDL MkBufferListHandleGet_RT (MK_RT mkrt, MK_BFL const bfl)
 Handle-Get-Slot - returns a export-hdl to the MkBufferListC useable for external storage
 
static MK_BFL MkBufferListHandleResolve_RT (MK_RT mkrt, MK_HDL const netHdl)
 Handle-Resolve-Slot - return a MkBufferListC from netHdl or MK_NULL if invalid…
 
MkBufferListC - Misc - function - unspecified functions to perform different tasks
static MK_BFL MkBufferListGetNull (void)
 Null-Slot - return a MkBufferListC typed NULL instance …
 

Variables

bool MkCleanupActive
 signal that code was triggert by MkCleanup
 
struct MkLalS MkLal
 Language Abstraction Layer in duty.
 
bool MkRuntimeSysPipeHandlerUse
 block SIGPIPE ignore handlern default=true, Java require this
 
__thread struct MkRuntimeS MkRuntimeRLS
 RLS …
 

MkErrorE

enum  MkErrorE { MK_OK = 0 , MK_CONTINUE = 1 , MK_ERROR = 2 }
 collection for the different error-codes … More...
 
MK_STRN MkErrorE_ToString (enum MkErrorE value)
 return the MkErrorE as string …
 
static MK_I32 MkErrorE_ToInt (enum MkErrorE value)
 return the MkErrorE as integer …
 
enum MkErrorE MkErrorE_FromInt (MK_I32 const value, enum MkErrorE *value_out)
 return the MkErrorE from integer …
 

MkTimeoutE

enum  MkTimeoutE {
  MK_TIMEOUT_INIT = META_TIMEOUT_REF , MK_TIMEOUT_LONG = (META_TIMEOUT_REF/5) , MK_TIMEOUT_NORMAL = (META_TIMEOUT_REF/10 < 1 ? 1 : META_TIMEOUT_REF/10) , MK_TIMEOUT_SHORT = (META_TIMEOUT_REF/45 < 1 ? 1 : META_TIMEOUT_REF/45) ,
  MK_TIMEOUT_SOCKET = (META_TIMEOUT_REF/90 < 1 ? 1 : META_TIMEOUT_REF/90) , MK_TIMEOUT_VERYSHORT = (META_TIMEOUT_REF/180 < 1 ? 1 : META_TIMEOUT_REF/180) , MK_TIMEOUT_DEFAULT = -1 , MK_TIMEOUT_USER = -2 ,
  MK_TIMEOUT_MAX = -3
}
 Predefined Timeout values … More...
 
MK_STRN MkTimeoutE_ToString (enum MkTimeoutE value)
 return the MkTimeoutE as string …
 
static MK_I32 MkTimeoutE_ToInt (enum MkTimeoutE value)
 return the MkTimeoutE as integer …
 
enum MkErrorE MkTimeoutE_FromInt (MK_I32 const value, enum MkTimeoutE *value_out)
 return the MkTimeoutE from integer …
 

MkBoolE

enum  MkBoolE { MK_NO = 0 , MK_YES = 1 }
 the internal boolean … More...
 
MK_STRN MkBoolE_ToString (enum MkBoolE value)
 return the MkBoolE as string …
 
static MK_I32 MkBoolE_ToInt (enum MkBoolE value)
 return the MkBoolE as integer …
 
enum MkErrorE MkBoolE_FromInt (MK_I32 const value, enum MkBoolE *value_out)
 return the MkBoolE from integer …
 

MkNativeIsE

enum  MkNativeIsE { MK_NATIVE_IS_INITIAL = 0 , MK_NATIVE_IS_STRING = 'S' , MK_NATIVE_IS_LITTLE = 'L' , MK_NATIVE_IS_BIG = 'B' }
 define if data is string or little or big endian … More...
 
MK_STRN MkNativeIsE_ToString (enum MkNativeIsE value)
 return the MkNativeIsE as string …
 
static MK_I32 MkNativeIsE_ToInt (enum MkNativeIsE value)
 return the MkNativeIsE as integer …
 
enum MkErrorE MkNativeIsE_FromInt (MK_I32 const value, enum MkNativeIsE *value_out)
 return the MkNativeIsE from integer …
 

MkTypeE

enum  MkTypeE {
  MK_I8T = ((1 << MK_TYPE_SHIFT) | MK_TYPE_IS_1_I8E ) , MK_BOLT = ((2 << MK_TYPE_SHIFT) | MK_TYPE_IS_1_I8E ) , MK_I16T = ((3 << MK_TYPE_SHIFT) | MK_TYPE_IS_2_I8E ) , MK_I32T = ((4 << MK_TYPE_SHIFT) | MK_TYPE_IS_4_I8E ) ,
  MK_FLTT = ((5 << MK_TYPE_SHIFT) | MK_TYPE_IS_4_I8E ) , MK_I64T = ((6 << MK_TYPE_SHIFT) | MK_TYPE_IS_8_I8E ) , MK_DBLT = ((7 << MK_TYPE_SHIFT) | MK_TYPE_IS_8_I8E ) , MK_BINT = ((8 << MK_TYPE_SHIFT) ) ,
  MK_STRT = ((9 << MK_TYPE_SHIFT) ) , MK_LSTT = ((10 << MK_TYPE_SHIFT) )
}
 basic data-types supported by Programming-Language-Micro-Kernel (PLMK)More...
 
MK_STRN MkTypeE_ToString (enum MkTypeE value)
 return the MkTypeE as string …
 
static MK_I32 MkTypeE_ToInt (enum MkTypeE value)
 return the MkTypeE as integer …
 
enum MkErrorE MkTypeE_FromInt (MK_I32 const value, enum MkTypeE *value_out)
 return the MkTypeE from integer …
 

primitive string data-type

typedef char MK_STRB
 string type data-type
 
typedef MK_STRBMK_STR
 string pointer data-type with UTF8 ecoding (MK_STR)
 
typedef const MK_STRBMK_STRN
 constant string pointer data-type
 
typedef MK_STRB const * MK_FST
 const format string pointer data-type
 
MK_UNUSED static const MK_STRN_A MK_STRN_A_NULL = (MK_STRN_A) {0,0}
 

MkSelf

typedef void(* MkSelfIncrF) (MK_RT mkrt, MK_PTR self, MK_PTR const env)
 
typedef void(* MkSelfDecrF) (MK_RT mkrt, MK_PTR self, MK_PTR const env)
 
static void MkSelfSet (MK_OBJ const obj, MK_PTR const self, MK_PTR const env)
 set the MkObjectS::self value
 
static MK_PTR MkSelfGet (MK_OBJ const obj)
 get the MkObjectS::self value
 
static MK_ATTR_HOT enum MkErrorE MkSelfNew_RT (MK_RT mkrt, MK_OBJ obj, MK_PTR *self_out, MK_PTR const env)
 return the self pointer for a given obj
 
MK_PTR MkSelfCreate_RT (MK_RT mkrt, MK_OBJ const obj, MK_PTR const env)
 create the MkObjectS::self value
 
bool MkSelfDelete_RT (MK_RT mkrt, MK_OBJ const obj)
 delete the MkObjectS::self value
 
bool MkSelfDeleteForce_RT (MK_RT mkrt, MK_OBJ obj)
 force delete an instance, last step in instance-destructor
 
void MkSelfUnlink_RT (MK_RT mkrt, MK_OBJ obj)
 Run the MkTypeS::selfUnlink slot from the instance...
 
static bool MkSelfExists (MK_OBJN obj)
 Check if the MkObjectS::self exists …
 

MkRuntimeCallback

Register callback used to setup library-local runtime attributes …

Sometimes the features provided by MkRuntimeRLS are not fullfilling the requirements of the implementation. Sometimes the functions provided by the MkRuntimeRLS do not meet the implementation requirements. Two methods are offered to retrofit the missing capability:

Example from "LibLcConfig_jv.c": add a runtime-callback to implement a specific type.
// LC classes
MkThreadLocal MK_TYP LcConfigC_TT = NULL;
MkThreadLocal MK_TYP LcSettingC_TT = NULL;
...
static MkRuntimeCallbackS sLcRuntimeCallback = {0};
...
static void sConfigRuntimeCallback ( struct MkRuntimeS * mkrt ) {
LcConfigC_TT = MkTypeCreate(LcConfigC, MkObjectC, "LcConfigC");
LcConfigC_TT->constructor = pConfigCreate;
LcConfigC_TT->destructor = pConfigDelete;
LcSettingC_TT = MkTypeCreate(LcSettingC, MkObjectC, "LcSettingC");
LcSettingC_TT->constructor = pSettingCreate;
LcSettingC_TT->destructor = pSettingDelete;
if (LcSetupThread) {
(*LcSetupThread)(MK_RT_CALL_ONLY);
}
}
...
void LcSetup(void) {
...
sLcRuntimeCallback.mkrt = mkrt;
sLcRuntimeCallback.cb = NS(sLcRuntimeCallback);
// class specific initialization
MkRuntimeCallbackAdd( &sLcRuntimeCallback );
...
}
#define MkThreadLocal
size_t MkRuntimeCallbackAdd(MK_RT mkrt, MkRuntimeCallbackS *cbdata, MkRuntimeInitF rt_callback, MK_STRN ident)
add a callback to the runtime …
#define MK_RT_CALL_ONLY
#define MkTypeCreate(clsV, basicV, identV)
keep callback related data …
MkRuntimeInitF cb
required data
MkTypeS - class known as typ or type is used as class-base for a Managed-Object-Technology (MOT) type...
typedef struct libmkkernel::MkRuntimeCallbackS MkRuntimeCallbackS
 keep callback related data …
 
size_t MkRuntimeCallbackAdd (MK_RT mkrt, MkRuntimeCallbackS *cbdata, MkRuntimeInitF rt_callback, MK_STRN ident)
 add a callback to the runtime
 
void MkRuntimeCallbackDel (MK_RT mkrt, MkRuntimeCallbackS *cbdata)
 delete a callback from the runtime
 

Function Documentation

◆ MkObjectInstancesOfType_RT()

static MK_OBJ libmkkernel::MkObjectInstancesOfType_RT ( MK_RT mkrt,
MK_SIG typeSIG )
inlinestatic

return the head-instance from a specific type defined by signature typeSIG

Definition at line 13440 of file LibMkKernel_mk.h.

13444 {
13446 MkERROR.format_of_error = MK_ERROR_PANIC;
#define MkERROR
#define MK_ERROR_PANIC
#define MK_STATIC_RT
+ Here is the caller graph for this function: