MkKernel PACKAGE - enum definition … More...
MkErrorE | |
enum | MkErrorE { MK_OK = 0 , MK_CONTINUE = 1 , MK_ERROR = 2 } |
collection for the different error-codes … More... | |
MK_EXTERN MK_STRN | MkErrorE_ToString (enum MkErrorE value) |
return the MkErrorE as string … | |
MK_I32 | MkErrorE_ToInt (enum MkErrorE value) |
return the MkErrorE as integer … | |
MK_EXTERN 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_EXTERN MK_STRN | MkTimeoutE_ToString (enum MkTimeoutE value) |
return the MkTimeoutE as string … | |
MK_I32 | MkTimeoutE_ToInt (enum MkTimeoutE value) |
return the MkTimeoutE as integer … | |
MK_EXTERN 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_EXTERN MK_STRN | MkBoolE_ToString (enum MkBoolE value) |
return the MkBoolE as string … | |
MK_I32 | MkBoolE_ToInt (enum MkBoolE value) |
return the MkBoolE as integer … | |
MK_EXTERN 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_EXTERN MK_STRN | MkNativeIsE_ToString (enum MkNativeIsE value) |
return the MkNativeIsE as string … | |
MK_I32 | MkNativeIsE_ToInt (enum MkNativeIsE value) |
return the MkNativeIsE as integer … | |
MK_EXTERN 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_EXTERN MK_STRN | MkTypeE_ToString (enum MkTypeE value) |
return the MkTypeE as string … | |
MK_I32 | MkTypeE_ToInt (enum MkTypeE value) |
return the MkTypeE as integer … | |
MK_EXTERN enum MkErrorE | MkTypeE_FromInt (MK_I32 const value, enum MkTypeE *value_out) |
return the MkTypeE from integer … | |
#define | MK_TYPE_IS_1_I8E (1<<0) |
the type is native and has a size of 1 byte … | |
#define | MK_TYPE_IS_2_I8E (1<<1) |
the type is native and has a size of 2 bytes … | |
#define | MK_TYPE_IS_4_I8E (1<<2) |
the type is native and has a size of 4 bytes … | |
#define | MK_TYPE_IS_8_I8E (1<<3) |
the type is native and has a size of 8 bytes … | |
#define | MK_TYPE_IS_NATIVE |
the type is native … | |
#define | MK_TYPE_SHIFT 4 |
FIXED: type is only 8bit -> 4 bit=15 for type and 4 bit for flag … | |
MkKernel - MkKernel_Enum_C_API - function | |
MK_EXTERN MK_I32 | MkErrorE_ToIntP (enum MkErrorE value) |
Non-inline replacement for MkErrorE_ToInt … | |
MK_EXTERN MK_I32 | MkTimeoutE_ToIntP (enum MkTimeoutE value) |
Non-inline replacement for MkTimeoutE_ToInt … | |
MK_EXTERN MK_I32 | MkTypeE_ToIntP (enum MkTypeE value) |
Non-inline replacement for MkTypeE_ToInt … | |
MkKernel - MkKernel_Enum_C_API - overload | |
#define | MkBoolE_FromInt_E(...) |
#define | MkBoolE_FromInt_C(...) |
#define | MkBoolE_FromInt_e(...) |
#define | MkErrorE_FromInt_E(...) |
#define | MkErrorE_FromInt_C(...) |
#define | MkErrorE_FromInt_e(...) |
#define | MkNativeIsE_FromInt_E(...) |
#define | MkNativeIsE_FromInt_C(...) |
#define | MkNativeIsE_FromInt_e(...) |
#define | MkTimeoutE_FromInt_E(...) |
#define | MkTimeoutE_FromInt_C(...) |
#define | MkTimeoutE_FromInt_e(...) |
#define | MkTypeE_FromInt_E(...) |
#define | MkTypeE_FromInt_C(...) |
#define | MkTypeE_FromInt_e(...) |
MkKernel PACKAGE - enum definition …
A enum in the Programming-Language-Micro-Kernel (PLMK) is a enum-data-type and 3 enum-access-attributes
ENUM_ToString
→ return the string-value from the enum-value ENUM_ToInt
→ return the integer-value from the enum-value ENUM_FromInt
→ create an enum-value from an integer-value.The enum-data-type and the 3 enum-access-attributes are defined in all target-languages (C,C++,C#,VB.NET,Java,Python,Ruby,Perl,PHP,Tcl or GO).
#define MK_TYPE_IS_1_I8E (1<<0) |
the type is native and has a size of 1 byte …
Definition at line 1896 of file LibMkKernel_mk.h.
#define MK_TYPE_IS_2_I8E (1<<1) |
the type is native and has a size of 2 bytes …
Definition at line 1899 of file LibMkKernel_mk.h.
#define MK_TYPE_IS_4_I8E (1<<2) |
the type is native and has a size of 4 bytes …
Definition at line 1902 of file LibMkKernel_mk.h.
#define MK_TYPE_IS_8_I8E (1<<3) |
the type is native and has a size of 8 bytes …
Definition at line 1905 of file LibMkKernel_mk.h.
#define MK_TYPE_IS_NATIVE |
the type is native …
Definition at line 1908 of file LibMkKernel_mk.h.
#define MK_TYPE_SHIFT 4 |
FIXED: type is only 8bit -> 4 bit=15 for type and 4 bit for flag …
Definition at line 1912 of file LibMkKernel_mk.h.
#define MkBoolE_FromInt_C | ( | ... | ) |
Definition at line 1333 of file kernel_overload_mk.h.
#define MkBoolE_FromInt_E | ( | ... | ) |
Definition at line 1332 of file kernel_overload_mk.h.
#define MkBoolE_FromInt_e | ( | ... | ) |
Definition at line 1334 of file kernel_overload_mk.h.
#define MkErrorE_FromInt_C | ( | ... | ) |
Definition at line 1336 of file kernel_overload_mk.h.
#define MkErrorE_FromInt_E | ( | ... | ) |
Definition at line 1335 of file kernel_overload_mk.h.
#define MkErrorE_FromInt_e | ( | ... | ) |
Definition at line 1337 of file kernel_overload_mk.h.
#define MkNativeIsE_FromInt_C | ( | ... | ) |
Definition at line 1339 of file kernel_overload_mk.h.
#define MkNativeIsE_FromInt_E | ( | ... | ) |
Definition at line 1338 of file kernel_overload_mk.h.
#define MkNativeIsE_FromInt_e | ( | ... | ) |
Definition at line 1340 of file kernel_overload_mk.h.
#define MkTimeoutE_FromInt_C | ( | ... | ) |
Definition at line 1342 of file kernel_overload_mk.h.
#define MkTimeoutE_FromInt_E | ( | ... | ) |
Definition at line 1341 of file kernel_overload_mk.h.
#define MkTimeoutE_FromInt_e | ( | ... | ) |
Definition at line 1343 of file kernel_overload_mk.h.
#define MkTypeE_FromInt_C | ( | ... | ) |
Definition at line 1345 of file kernel_overload_mk.h.
#define MkTypeE_FromInt_E | ( | ... | ) |
Definition at line 1344 of file kernel_overload_mk.h.
#define MkTypeE_FromInt_e | ( | ... | ) |
Definition at line 1346 of file kernel_overload_mk.h.
enum MkBoolE |
the internal boolean …
Enumerator | |
---|---|
MK_NO | boolean NO |
MK_YES | boolean YES |
Definition at line 1821 of file LibMkKernel_mk.h.
enum MkErrorE |
collection for the different error-codes …
This is the default-error-indicator and the return-value from near all Programming-Language-Micro-Kernel (PLMK) functions.
Definition at line 1723 of file LibMkKernel_mk.h.
enum MkNativeIsE |
define if data is string or little or big endian …
Definition at line 1859 of file LibMkKernel_mk.h.
enum MkTimeoutE |
Predefined Timeout values …
The MkTimeoutE is used wherever a "timeout" is required. As a special feature, in addition to the defined values in MkTimeoutE, freely defined values as integers as seconds are also accepted.
Definition at line 1769 of file LibMkKernel_mk.h.
enum MkTypeE |
basic data-types supported by Programming-Language-Micro-Kernel (PLMK) …
Definition at line 1922 of file LibMkKernel_mk.h.
return the MkBoolE from integer …
return the MkErrorE from integer …
return the MkErrorE as integer …
Definition at line 1741 of file LibMkKernel_mk.h.
Non-inline replacement for MkErrorE_ToInt …
MK_EXTERN enum MkErrorE MkNativeIsE_FromInt | ( | MK_I32 const | value, |
enum MkNativeIsE * | value_out ) |
return the MkNativeIsE from integer …
|
inline |
return the MkNativeIsE as integer …
Definition at line 1878 of file LibMkKernel_mk.h.
MK_EXTERN MK_STRN MkNativeIsE_ToString | ( | enum MkNativeIsE | value | ) |
return the MkNativeIsE as string …
MK_EXTERN enum MkErrorE MkTimeoutE_FromInt | ( | MK_I32 const | value, |
enum MkTimeoutE * | value_out ) |
return the MkTimeoutE from integer …
|
inline |
return the MkTimeoutE as integer …
Definition at line 1803 of file LibMkKernel_mk.h.
MK_EXTERN MK_I32 MkTimeoutE_ToIntP | ( | enum MkTimeoutE | value | ) |
Non-inline replacement for MkTimeoutE_ToInt …
MK_EXTERN MK_STRN MkTimeoutE_ToString | ( | enum MkTimeoutE | value | ) |
return the MkTimeoutE as string …
return the MkTypeE from integer …
return the MkTypeE as integer …
Definition at line 1947 of file LibMkKernel_mk.h.
Non-inline replacement for MkTypeE_ToInt …