MkKernel PACKAGE - Interface to the operating-system compiler … More...
Macros | |
#define | META_DIR_SEPARATOR '/' |
#define | META_EOL "\n" |
#define | MK_EXTERN |
static library | |
#define | MK_EXTERN_DATA extern |
#define | MK_CPPXSTR(s) |
connecting of expressions, step 1 … | |
#define | MK_CPPSTR(s) |
connecting of expressions, step 2 … | |
#define | MK_CONCAT(a, b) |
concat of expressions, step 2 … | |
#define | MK_CONCAT2(a, b) |
#define | MK_CONCAT3(a, b, c) |
#define | mk_append_fix_str(t, s) |
append fix string to storage and increment pointer … | |
#define | mk_bit_compare(t, f) |
bitwise compare flag values … | |
Typedefs | |
typedef void * | libmkkernel::MK_MACRO_TYP |
helper-type used to declare a prototype for a macro | |
MK_NULL | |
work with the define the NULLThis problem looks simpler than it is because TCL e.g. does not understand the Unfortunately, this is not always the case and therefore:
To support the
class-instance as NULL | |
MK_UNUSED static const char | libmkkernel::MK_NULL_STR [] = "MK_NULL" |
the string "MK_NULL" value as MK_NULL_STR … | |
MK_UNUSED static const long int | libmkkernel::MK_NULL_STR_LEN = strlen(MK_NULL_STR) |
the integer strlen("MK_NULL") value as MK_NULL_STR_LEN … | |
bool | libmkkernel::MK_NULL_STR_CHECK (char const *const __str, const long int __len) |
check if __str is MK_NULL_STR return true or false … | |
bool | libmkkernel::MK_NULL_STR_CHECK_1 (char const *const __str) |
same as libmkkernel::MK_NULL_STR_CHECK but without len parameter | |
#define | MK_NULL NULL |
The Programming-Language-Micro-Kernel (PLMK) NULL value as MK_NULL in C++ … | |
#define | MK_NULL_YES true |
flag, allow NULL | |
#define | MK_NULL_NO false |
flag, not allow NULL | |
native compiler definition | |
#define | MK_CLRCALL |
#define | MK_STDCALL |
#define | MK_CDECL |
#define | mk_inline static inline |
#define | mk_unlink unlink |
#define | mk_snprintf snprintf |
#define | mk_attr_hot __attribute__((hot)) |
#define | mk_attr_cold __attribute__((cold)) |
#define | MK_DECL MK_STDCALL |
#define | likely(x) |
#define | unlikely(x) |
#define | mk_timeval timeval |
#define | mk_timezone timezone |
#define | MK_UNUSED __attribute__((unused)) |
mark unnused variables and functions | |
#define | MK_NO_RETURN __attribute__((noreturn)) |
MkKernel PACKAGE - Interface to the operating-system compiler …
#define likely | ( | x | ) |
Definition at line 476 of file LibMkKernel_mk.h.
#define META_DIR_SEPARATOR '/' |
Definition at line 954 of file LibMkKernel_mk.h.
#define META_EOL "\n" |
Definition at line 955 of file LibMkKernel_mk.h.
#define mk_append_fix_str | ( | t, | |
s ) |
append fix string to storage and increment pointer …
Definition at line 1023 of file LibMkKernel_mk.h.
#define mk_attr_cold __attribute__((cold)) |
Definition at line 449 of file LibMkKernel_mk.h.
#define mk_attr_hot __attribute__((hot)) |
Definition at line 448 of file LibMkKernel_mk.h.
#define mk_bit_compare | ( | t, | |
f ) |
#define MK_CDECL |
Definition at line 439 of file LibMkKernel_mk.h.
#define MK_CLRCALL |
Definition at line 437 of file LibMkKernel_mk.h.
#define MK_CONCAT | ( | a, | |
b ) |
#define MK_CONCAT2 | ( | a, | |
b ) |
Definition at line 1016 of file LibMkKernel_mk.h.
#define MK_CONCAT3 | ( | a, | |
b, | |||
c ) |
Definition at line 1017 of file LibMkKernel_mk.h.
#define MK_CPPSTR | ( | s | ) |
#define MK_CPPXSTR | ( | s | ) |
connecting of expressions, step 1 …
Definition at line 1011 of file LibMkKernel_mk.h.
#define MK_DECL MK_STDCALL |
Definition at line 456 of file LibMkKernel_mk.h.
#define MK_EXTERN |
static library
Definition at line 982 of file LibMkKernel_mk.h.
#define MK_EXTERN_DATA extern |
Definition at line 1005 of file LibMkKernel_mk.h.
#define mk_inline static inline |
Definition at line 443 of file LibMkKernel_mk.h.
#define MK_NO_RETURN __attribute__((noreturn)) |
Definition at line 521 of file LibMkKernel_mk.h.
#define MK_NULL NULL |
The Programming-Language-Micro-Kernel (PLMK) NULL
value as MK_NULL
in C++ …
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:
NULL
is explicitly required the MK_NULL
is used in C++ . 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:
"MK_NULL"
into the MK_NULL
pointer wherever a pointer is expected as a return value.Definition at line 582 of file LibMkKernel_mk.h.
#define MK_NULL_NO false |
flag, not allow NULL
Definition at line 588 of file LibMkKernel_mk.h.
#define MK_NULL_YES true |
flag, allow NULL
Definition at line 585 of file LibMkKernel_mk.h.
#define mk_snprintf snprintf |
Definition at line 446 of file LibMkKernel_mk.h.
#define MK_STDCALL |
Definition at line 438 of file LibMkKernel_mk.h.
#define mk_timeval timeval |
Definition at line 513 of file LibMkKernel_mk.h.
#define mk_timezone timezone |
Definition at line 514 of file LibMkKernel_mk.h.
#define mk_unlink unlink |
Definition at line 445 of file LibMkKernel_mk.h.
#define MK_UNUSED __attribute__((unused)) |
mark unnused variables and functions
Definition at line 520 of file LibMkKernel_mk.h.
#define unlikely | ( | x | ) |
Definition at line 477 of file LibMkKernel_mk.h.
typedef void* libmkkernel::MK_MACRO_TYP |
helper-type used to declare a prototype for a macro
Definition at line 541 of file LibMkKernel_mk.h.
|
inline |
check if __str is MK_NULL_STR return true
or false
…
[in] | __str | the string pointer to test, if MK_NULL than false is returned. |
[in] | __len | the length pointer is tested against MK_NULL_STR_LEN, have to be the strlen of __str. |
boolean
value → true
if __str is a MK_NULL_STR. Definition at line 610 of file LibMkKernel_mk.h.
|
inline |
same as libmkkernel::MK_NULL_STR_CHECK but without len parameter
Definition at line 616 of file LibMkKernel_mk.h.
|
static |
the string "MK_NULL"
value as MK_NULL_STR
…
Definition at line 594 of file LibMkKernel_mk.h.
|
static |
the integer strlen("MK_NULL")
value as MK_NULL_STR_LEN
…
Definition at line 600 of file LibMkKernel_mk.h.