libmkkernel 9.0
Loading...
Searching...
No Matches
Macros | Typedefs
MkKernel_Compiler_C_API

Interface to the operating-system compiler … More...

+ Collaboration diagram for MkKernel_Compiler_C_API:

Macros

#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_CDECL
 
#define BEGIN_MK_C_DECLS   /* empty */
 
#define END_MK_C_DECLS   /* empty */
 
#define likely(x)   __builtin_expect((x),1)
 
#define unlikely(x)   __builtin_expect((x),0)
 
#define mk_timeval   timeval
 
#define mk_timezone   timezone
 
#define MK_UNUSED   __attribute__((unused))
 mark unnused variables and functions
 
#define META_DIR_SEPARATOR   '/'
 
#define META_EOL   "\n"
 
#define MK_EXTERN
 static library
 
#define MK_EXTERN_DATA   extern
 
#define MK_CPPXSTR(s)   MK_CPPSTR(s)
 connecting of expressions, step 1 …
 
#define MK_CPPSTR(s)   #s
 connecting of expressions, step 2 …
 
#define MK_CONCAT(a, b)   a ## b
 concat of expressions, step 2 …
 
#define MK_CONCAT2(a, b)   MK_CONCAT(a,b)
 
#define MK_CONCAT3(a, b, c)   a ## b ## c
 
#define mk_append_fix_str(t, s)   t=strcpy(t,s)+sizeof(s)-1
 append fix string to storage and increment pointer …
 
#define mk_bit_compare(t, f)   (t&f)==f
 bitwise compare flag values …
 

Typedefs

typedef void * MK_MACRO_TYP
 helper-type used to declare a prototype for a macro
 

Detailed Description

Interface to the operating-system compiler …

Macro Definition Documentation

◆ BEGIN_MK_C_DECLS

#define BEGIN_MK_C_DECLS   /* empty */

Definition at line 2175 of file kernel_mk.h.

◆ END_MK_C_DECLS

#define END_MK_C_DECLS   /* empty */

Definition at line 2176 of file kernel_mk.h.

◆ likely

#define likely (   x)    __builtin_expect((x),1)

Definition at line 2188 of file kernel_mk.h.

◆ META_DIR_SEPARATOR

#define META_DIR_SEPARATOR   '/'

Definition at line 2529 of file kernel_mk.h.

◆ META_EOL

#define META_EOL   "\n"

Definition at line 2530 of file kernel_mk.h.

◆ mk_append_fix_str

#define mk_append_fix_str (   t,
 
)    t=strcpy(t,s)+sizeof(s)-1

append fix string to storage and increment pointer …

Definition at line 2598 of file kernel_mk.h.

◆ mk_attr_cold

#define mk_attr_cold   __attribute__((cold))

Definition at line 2150 of file kernel_mk.h.

◆ mk_attr_hot

#define mk_attr_hot   __attribute__((hot))

Definition at line 2149 of file kernel_mk.h.

◆ mk_bit_compare

#define mk_bit_compare (   t,
 
)    (t&f)==f

bitwise compare flag values …

Definition at line 2602 of file kernel_mk.h.

◆ MK_CDECL

#define MK_CDECL

Definition at line 2140 of file kernel_mk.h.

◆ MK_CLRCALL

#define MK_CLRCALL

Definition at line 2138 of file kernel_mk.h.

◆ MK_CONCAT

#define MK_CONCAT (   a,
 
)    a ## b

concat of expressions, step 2 …

Definition at line 2590 of file kernel_mk.h.

◆ MK_CONCAT2

#define MK_CONCAT2 (   a,
 
)    MK_CONCAT(a,b)

Definition at line 2591 of file kernel_mk.h.

◆ MK_CONCAT3

#define MK_CONCAT3 (   a,
  b,
 
)    a ## b ## c

Definition at line 2592 of file kernel_mk.h.

◆ MK_CPPSTR

#define MK_CPPSTR (   s)    #s

connecting of expressions, step 2 …

Definition at line 2588 of file kernel_mk.h.

◆ MK_CPPXSTR

#define MK_CPPXSTR (   s)    MK_CPPSTR(s)

connecting of expressions, step 1 …

Definition at line 2586 of file kernel_mk.h.

◆ MK_DECL

#define MK_DECL   MK_CDECL

Definition at line 2159 of file kernel_mk.h.

◆ MK_EXTERN

#define MK_EXTERN

static library

Definition at line 2557 of file kernel_mk.h.

◆ MK_EXTERN_DATA

#define MK_EXTERN_DATA   extern

Definition at line 2580 of file kernel_mk.h.

◆ mk_inline

#define mk_inline   static inline

Definition at line 2144 of file kernel_mk.h.

◆ mk_snprintf

#define mk_snprintf   snprintf

Definition at line 2147 of file kernel_mk.h.

◆ MK_STDCALL

#define MK_STDCALL

Definition at line 2139 of file kernel_mk.h.

◆ mk_timeval

#define mk_timeval   timeval

Definition at line 2225 of file kernel_mk.h.

◆ mk_timezone

#define mk_timezone   timezone

Definition at line 2226 of file kernel_mk.h.

◆ mk_unlink

#define mk_unlink   unlink

Definition at line 2146 of file kernel_mk.h.

◆ MK_UNUSED

#define MK_UNUSED   __attribute__((unused))

mark unnused variables and functions

Definition at line 2232 of file kernel_mk.h.

◆ unlikely

#define unlikely (   x)    __builtin_expect((x),0)

Definition at line 2189 of file kernel_mk.h.

Typedef Documentation

◆ MK_MACRO_TYP

typedef void* MK_MACRO_TYP

helper-type used to declare a prototype for a macro

Definition at line 2235 of file kernel_mk.h.