theKernel 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - cs - py - rb - jv - cc
Loading...
Searching...
No Matches
MkBufferListC_Check_C_API

MkBufferListC - various functions to 'check' a MkBufferListSMore...

+ Collaboration diagram for MkBufferListC_Check_C_API:

Macros

#define MkBufferListCheckOptionO_3E(bfl, opt, val_out)
 
#define MkBufferListCheckOptionI_3E(bfl, opt, val_out)
 

Functions

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 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 …
 

MkBufferListC - MkBufferListC_Check_C_API - overload

#define MkBufferListCheckOptionBUF_NULL(...)
 
#define MkBufferListCheckOptionBUF(...)
 
#define MkBufferListCheckOptionBUF_4(bfl, opt, defval, val_out)
 
#define MkBufferListCheckOptionBUF_3(bfl, opt, val_out)
 
#define MkBufferListCheckOptionBUF_E(...)
 
#define MkBufferListCheckOptionBUF_C(...)
 
#define MkBufferListCheckOptionBUF_e(...)
 
#define MkBufferListCheckOption_NULL(...)
 
#define MkBufferListCheckOption(...)
 
#define MkBufferListCheckOption_2(bfl, opt)
 
#define MkBufferListCheckOptionBOL_NULL(...)
 
#define MkBufferListCheckOptionBOL(...)
 
#define MkBufferListCheckOptionBOL_4(bfl, opt, defval, val_out)
 
#define MkBufferListCheckOptionBOL_3(bfl, opt, val_out)
 
#define MkBufferListCheckOptionBOL_E(...)
 
#define MkBufferListCheckOptionBOL_C(...)
 
#define MkBufferListCheckOptionBOL_e(...)
 
#define MkBufferListCheckOptionDBL_NULL(...)
 
#define MkBufferListCheckOptionDBL(...)
 
#define MkBufferListCheckOptionDBL_4(bfl, opt, defval, val_out)
 
#define MkBufferListCheckOptionDBL_3(bfl, opt, val_out)
 
#define MkBufferListCheckOptionDBL_E(...)
 
#define MkBufferListCheckOptionDBL_C(...)
 
#define MkBufferListCheckOptionDBL_e(...)
 
#define MkBufferListCheckOptionFLT_NULL(...)
 
#define MkBufferListCheckOptionFLT(...)
 
#define MkBufferListCheckOptionFLT_4(bfl, opt, defval, val_out)
 
#define MkBufferListCheckOptionFLT_3(bfl, opt, val_out)
 
#define MkBufferListCheckOptionFLT_E(...)
 
#define MkBufferListCheckOptionFLT_C(...)
 
#define MkBufferListCheckOptionFLT_e(...)
 
#define MkBufferListCheckOptionI16_NULL(...)
 
#define MkBufferListCheckOptionI16(...)
 
#define MkBufferListCheckOptionI16_4(bfl, opt, defval, val_out)
 
#define MkBufferListCheckOptionI16_3(bfl, opt, val_out)
 
#define MkBufferListCheckOptionI16_E(...)
 
#define MkBufferListCheckOptionI16_C(...)
 
#define MkBufferListCheckOptionI16_e(...)
 
#define MkBufferListCheckOptionI32_NULL(...)
 
#define MkBufferListCheckOptionI32(...)
 
#define MkBufferListCheckOptionI32_4(bfl, opt, defval, val_out)
 
#define MkBufferListCheckOptionI32_3(bfl, opt, val_out)
 
#define MkBufferListCheckOptionI32_E(...)
 
#define MkBufferListCheckOptionI32_C(...)
 
#define MkBufferListCheckOptionI32_e(...)
 
#define MkBufferListCheckOptionI64_NULL(...)
 
#define MkBufferListCheckOptionI64(...)
 
#define MkBufferListCheckOptionI64_4(bfl, opt, defval, val_out)
 
#define MkBufferListCheckOptionI64_3(bfl, opt, val_out)
 
#define MkBufferListCheckOptionI64_E(...)
 
#define MkBufferListCheckOptionI64_C(...)
 
#define MkBufferListCheckOptionI64_e(...)
 
#define MkBufferListCheckOptionI8_NULL(...)
 
#define MkBufferListCheckOptionI8(...)
 
#define MkBufferListCheckOptionI8_4(bfl, opt, defval, val_out)
 
#define MkBufferListCheckOptionI8_3(bfl, opt, val_out)
 
#define MkBufferListCheckOptionI8_E(...)
 
#define MkBufferListCheckOptionI8_C(...)
 
#define MkBufferListCheckOptionI8_e(...)
 
#define MkBufferListCheckOptionSTR_NULL(...)
 
#define MkBufferListCheckOptionSTR(...)
 
#define MkBufferListCheckOptionSTR_4(bfl, opt, defval, val_out)
 
#define MkBufferListCheckOptionSTR_3(bfl, opt, val_out)
 
#define MkBufferListCheckOptionSTR_E(...)
 
#define MkBufferListCheckOptionSTR_C(...)
 
#define MkBufferListCheckOptionSTR_e(...)
 

Detailed Description

MkBufferListC - various functions to 'check' a MkBufferListS

This functions are used for parsing command-line-arguments.

Macro Definition Documentation

◆ MkBufferListCheckOption

#define MkBufferListCheckOption ( ...)
Value:
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 MK_BOL value …
#define MK_RT_CALL

Definition at line 406 of file kernel_overload_mk.h.

◆ MkBufferListCheckOption_2

#define MkBufferListCheckOption_2 ( bfl,
opt )
Value:
#define MkBufferListCheckOption(...)

Definition at line 407 of file kernel_overload_mk.h.

◆ MkBufferListCheckOption_NULL

#define MkBufferListCheckOption_NULL ( ...)
Value:

Definition at line 405 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionBOL

#define MkBufferListCheckOptionBOL ( ...)
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 …

Definition at line 411 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionBOL_3

#define MkBufferListCheckOptionBOL_3 ( bfl,
opt,
val_out )
Value:
MkBufferListCheckOptionBOL(bfl,opt,false,true,val_out)
#define MkBufferListCheckOptionBOL(...)

Definition at line 413 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionBOL_4

#define MkBufferListCheckOptionBOL_4 ( bfl,
opt,
defval,
val_out )
Value:
MkBufferListCheckOptionBOL(bfl,opt,defval,true,val_out)

Definition at line 412 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionBOL_C

#define MkBufferListCheckOptionBOL_C ( ...)
Value:
#define MkErrorCheckI(err)

Definition at line 415 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionBOL_E

#define MkBufferListCheckOptionBOL_E ( ...)
Value:
#define MkErrorCheck(err)
check return-code and goto error on error …

Definition at line 414 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionBOL_e

#define MkBufferListCheckOptionBOL_e ( ...)
Value:
MK_EMBEDDED(MK_BOOL,MkBufferListCheckOptionBOL,__VA_ARGS__)
bool MK_BOOL
real bool data-type

Definition at line 416 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionBOL_NULL

#define MkBufferListCheckOptionBOL_NULL ( ...)
Value:

Definition at line 410 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionBUF

#define MkBufferListCheckOptionBUF ( ...)
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 …

Definition at line 397 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionBUF_3

#define MkBufferListCheckOptionBUF_3 ( bfl,
opt,
val_out )
Value:
MkBufferListCheckOptionBUF(bfl,opt,NULL,true,val_out)
#define MkBufferListCheckOptionBUF(...)

Definition at line 399 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionBUF_4

#define MkBufferListCheckOptionBUF_4 ( bfl,
opt,
defval,
val_out )
Value:
MkBufferListCheckOptionBUF(bfl,opt,defval,true,val_out)

Definition at line 398 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionBUF_C

#define MkBufferListCheckOptionBUF_C ( ...)
Value:

Definition at line 401 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionBUF_E

#define MkBufferListCheckOptionBUF_E ( ...)
Value:

Definition at line 400 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionBUF_e

#define MkBufferListCheckOptionBUF_e ( ...)
Value:
MK_EMBEDDED(MK_BUF,MkBufferListCheckOptionBUF,__VA_ARGS__)
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …

Definition at line 402 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionBUF_NULL

#define MkBufferListCheckOptionBUF_NULL ( ...)
Value:

Definition at line 396 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionDBL

#define MkBufferListCheckOptionDBL ( ...)
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 …

Definition at line 418 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionDBL_3

#define MkBufferListCheckOptionDBL_3 ( bfl,
opt,
val_out )
Value:
MkBufferListCheckOptionDBL(bfl,opt,0,true,val_out)
#define MkBufferListCheckOptionDBL(...)

Definition at line 420 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionDBL_4

#define MkBufferListCheckOptionDBL_4 ( bfl,
opt,
defval,
val_out )
Value:
MkBufferListCheckOptionDBL(bfl,opt,defval,true,val_out)

Definition at line 419 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionDBL_C

#define MkBufferListCheckOptionDBL_C ( ...)
Value:

Definition at line 422 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionDBL_E

#define MkBufferListCheckOptionDBL_E ( ...)
Value:

Definition at line 421 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionDBL_e

#define MkBufferListCheckOptionDBL_e ( ...)
Value:
MK_EMBEDDED(MK_DBL,MkBufferListCheckOptionDBL,__VA_ARGS__)
double MK_DBL
8 byte double data-type

Definition at line 423 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionDBL_NULL

#define MkBufferListCheckOptionDBL_NULL ( ...)
Value:

Definition at line 417 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionFLT

#define MkBufferListCheckOptionFLT ( ...)
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 …

Definition at line 425 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionFLT_3

#define MkBufferListCheckOptionFLT_3 ( bfl,
opt,
val_out )
Value:
MkBufferListCheckOptionFLT(bfl,opt,0,true,val_out)
#define MkBufferListCheckOptionFLT(...)

Definition at line 427 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionFLT_4

#define MkBufferListCheckOptionFLT_4 ( bfl,
opt,
defval,
val_out )
Value:
MkBufferListCheckOptionFLT(bfl,opt,defval,true,val_out)

Definition at line 426 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionFLT_C

#define MkBufferListCheckOptionFLT_C ( ...)
Value:

Definition at line 429 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionFLT_E

#define MkBufferListCheckOptionFLT_E ( ...)
Value:

Definition at line 428 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionFLT_e

#define MkBufferListCheckOptionFLT_e ( ...)
Value:
MK_EMBEDDED(MK_FLT,MkBufferListCheckOptionFLT,__VA_ARGS__)
float MK_FLT
4 byte float data-type

Definition at line 430 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionFLT_NULL

#define MkBufferListCheckOptionFLT_NULL ( ...)
Value:

Definition at line 424 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI16

#define MkBufferListCheckOptionI16 ( ...)
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 …

Definition at line 432 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI16_3

#define MkBufferListCheckOptionI16_3 ( bfl,
opt,
val_out )
Value:
MkBufferListCheckOptionI16(bfl,opt,0,true,val_out)
#define MkBufferListCheckOptionI16(...)

Definition at line 434 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI16_4

#define MkBufferListCheckOptionI16_4 ( bfl,
opt,
defval,
val_out )
Value:
MkBufferListCheckOptionI16(bfl,opt,defval,true,val_out)

Definition at line 433 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI16_C

#define MkBufferListCheckOptionI16_C ( ...)
Value:

Definition at line 436 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI16_E

#define MkBufferListCheckOptionI16_E ( ...)
Value:

Definition at line 435 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI16_e

#define MkBufferListCheckOptionI16_e ( ...)
Value:
MK_EMBEDDED(MK_I16,MkBufferListCheckOptionI16,__VA_ARGS__)
signed short int MK_I16
2 byte short data-type

Definition at line 437 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI16_NULL

#define MkBufferListCheckOptionI16_NULL ( ...)
Value:

Definition at line 431 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI32

#define MkBufferListCheckOptionI32 ( ...)
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 …

Definition at line 439 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI32_3

#define MkBufferListCheckOptionI32_3 ( bfl,
opt,
val_out )
Value:
MkBufferListCheckOptionI32(bfl,opt,0,true,val_out)
#define MkBufferListCheckOptionI32(...)

Definition at line 441 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI32_4

#define MkBufferListCheckOptionI32_4 ( bfl,
opt,
defval,
val_out )
Value:
MkBufferListCheckOptionI32(bfl,opt,defval,true,val_out)

Definition at line 440 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI32_C

#define MkBufferListCheckOptionI32_C ( ...)
Value:

Definition at line 443 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI32_E

#define MkBufferListCheckOptionI32_E ( ...)
Value:

Definition at line 442 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI32_e

#define MkBufferListCheckOptionI32_e ( ...)
Value:
MK_EMBEDDED(MK_I32,MkBufferListCheckOptionI32,__VA_ARGS__)
signed int MK_I32
4 byte integer data-type

Definition at line 444 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI32_NULL

#define MkBufferListCheckOptionI32_NULL ( ...)
Value:

Definition at line 438 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI64

#define MkBufferListCheckOptionI64 ( ...)
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 …

Definition at line 446 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI64_3

#define MkBufferListCheckOptionI64_3 ( bfl,
opt,
val_out )
Value:
MkBufferListCheckOptionI64(bfl,opt,0,true,val_out)
#define MkBufferListCheckOptionI64(...)

Definition at line 448 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI64_4

#define MkBufferListCheckOptionI64_4 ( bfl,
opt,
defval,
val_out )
Value:
MkBufferListCheckOptionI64(bfl,opt,defval,true,val_out)

Definition at line 447 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI64_C

#define MkBufferListCheckOptionI64_C ( ...)
Value:

Definition at line 450 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI64_E

#define MkBufferListCheckOptionI64_E ( ...)
Value:

Definition at line 449 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI64_e

#define MkBufferListCheckOptionI64_e ( ...)
Value:
MK_EMBEDDED(MK_I64,MkBufferListCheckOptionI64,__VA_ARGS__)
signed long long MK_I64
8 byte wide integer data-type

Definition at line 451 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI64_NULL

#define MkBufferListCheckOptionI64_NULL ( ...)
Value:

Definition at line 445 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI8

#define MkBufferListCheckOptionI8 ( ...)
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 …

Definition at line 453 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI8_3

#define MkBufferListCheckOptionI8_3 ( bfl,
opt,
val_out )
Value:
MkBufferListCheckOptionI8(bfl,opt,0,true,val_out)
#define MkBufferListCheckOptionI8(...)

Definition at line 455 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI8_4

#define MkBufferListCheckOptionI8_4 ( bfl,
opt,
defval,
val_out )
Value:
MkBufferListCheckOptionI8(bfl,opt,defval,true,val_out)

Definition at line 454 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI8_C

#define MkBufferListCheckOptionI8_C ( ...)
Value:

Definition at line 457 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI8_E

#define MkBufferListCheckOptionI8_E ( ...)
Value:

Definition at line 456 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI8_e

#define MkBufferListCheckOptionI8_e ( ...)
Value:
MK_EMBEDDED(MK_I8,MkBufferListCheckOptionI8,__VA_ARGS__)
signed char MK_I8
1 byte byte data-type

Definition at line 458 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI8_NULL

#define MkBufferListCheckOptionI8_NULL ( ...)
Value:

Definition at line 452 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionI_3E

#define MkBufferListCheckOptionI_3E ( bfl,
opt,
val_out )
Value:
MkErrorCheck(MkBufferListCheckOptionI32(bfl,opt,0,true,val_out))

Definition at line 1155 of file MkBufferListC_def_mk.h.

◆ MkBufferListCheckOptionO_3E

#define MkBufferListCheckOptionO_3E ( bfl,
opt,
val_out )
Value:
MkErrorCheck(MkBufferListCheckOptionBOL(bfl,opt,false,true,val_out))

Definition at line 1110 of file MkBufferListC_def_mk.h.

◆ MkBufferListCheckOptionSTR

#define MkBufferListCheckOptionSTR ( ...)
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 …

Definition at line 460 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionSTR_3

#define MkBufferListCheckOptionSTR_3 ( bfl,
opt,
val_out )
Value:
MkBufferListCheckOptionSTR(bfl,opt,"",true,val_out)
#define MkBufferListCheckOptionSTR(...)

Definition at line 462 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionSTR_4

#define MkBufferListCheckOptionSTR_4 ( bfl,
opt,
defval,
val_out )
Value:
MkBufferListCheckOptionSTR(bfl,opt,defval,true,val_out)

Definition at line 461 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionSTR_C

#define MkBufferListCheckOptionSTR_C ( ...)
Value:

Definition at line 464 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionSTR_E

#define MkBufferListCheckOptionSTR_E ( ...)
Value:

Definition at line 463 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionSTR_e

#define MkBufferListCheckOptionSTR_e ( ...)
Value:
MK_EMBEDDED(MK_STRN,MkBufferListCheckOptionSTR,__VA_ARGS__)
const MK_STRB * MK_STRN
constant string pointer data-type

Definition at line 465 of file kernel_overload_mk.h.

◆ MkBufferListCheckOptionSTR_NULL

#define MkBufferListCheckOptionSTR_NULL ( ...)
Value:

Definition at line 459 of file kernel_overload_mk.h.

Function Documentation

◆ MkBufferListCheckOption_RT()

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 MK_BOL value …

  1. If opt is found, the opt is deleted from the MkBufferListC.
  2. If opt starting with a - or a -- the opt is treated as true
  3. If opt starting with a + or a ++ the opt is treated as false
  4. If opt does not start with a - or a + than the opt is treated as true
  5. It multiple opt are available all opt are checked and deleted.
Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on or MK_NULL
[in]optFind opt string in the MkBufferListC
[in]onlyFirstStop after first item was found

◆ MkBufferListCheckOptionBOL_RT()

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 …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on or MK_NULL
[in]optFind opt string in the MkBufferListC
[in]defvalThe value used if opt was not found
[in]onlyFirstIf more than one opt is available, return only the first (true [DEFAULT]) or the last (false)
[out]val_outIf opt is found, return the argument from opt otherwise defval
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
  • If val_out is MK_NULL an error is returned.
  • If the opt is found but no opt_argument than a error is returned.
  • If the opt is found, the opt and the opt_argument are deleted from the MkBufferListC.
  • If the defval is returned only a copy of the defval is returned and not the original defval.
  • If the first character of opt is a "-", the opt_argument is set to true; otherwise, false.

◆ MkBufferListCheckOptionBUF_RT()

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 …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on or MK_NULL
[in]optFind opt string in the MkBufferListC
[in]defvalThe value used if opt was not found
[in]onlyFirstIf more than one opt is available, return only the first (true [DEFAULT]) or the last (false)
[out]val_outIf opt is found, return the argument from opt otherwise defval
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
  • If val_out is MK_NULL an error is returned.
  • If the opt is found but no opt_argument than a error is returned.
  • If the opt is found, the opt and the opt_argument are deleted from the MkBufferListC.
  • If the defval is returned only a copy of the defval is returned and not the original defval.
  • If defval is MK_NULL than an empty MkBufferC is returned.
  • (do not free) The memory of the out/return value belongs to the called libmkkernel function and therefore never becomes MK_NULL for a non-error result.
    For details on the out/return value, see: MkKernel_Storage_C_API.

◆ MkBufferListCheckOptionDBL_RT()

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 …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on or MK_NULL
[in]optFind opt string in the MkBufferListC
[in]defvalThe value used if opt was not found
[in]onlyFirstIf more than one opt is available, return only the first (true [DEFAULT]) or the last (false)
[out]val_outIf opt is found, return the argument from opt otherwise defval
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
  • If val_out is MK_NULL an error is returned.
  • If the opt is found but no opt_argument than a error is returned.
  • If the opt is found, the opt and the opt_argument are deleted from the MkBufferListC.
  • If the defval is returned only a copy of the defval is returned and not the original defval.

◆ MkBufferListCheckOptionFLT_RT()

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 …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on or MK_NULL
[in]optFind opt string in the MkBufferListC
[in]defvalThe value used if opt was not found
[in]onlyFirstIf more than one opt is available, return only the first (true [DEFAULT]) or the last (false)
[out]val_outIf opt is found, return the argument from opt otherwise defval
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
  • If val_out is MK_NULL an error is returned.
  • If the opt is found but no opt_argument than a error is returned.
  • If the opt is found, the opt and the opt_argument are deleted from the MkBufferListC.
  • If the defval is returned only a copy of the defval is returned and not the original defval.

◆ MkBufferListCheckOptionI16_RT()

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 …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on or MK_NULL
[in]optFind opt string in the MkBufferListC
[in]defvalThe value used if opt was not found
[in]onlyFirstIf more than one opt is available, return only the first (true [DEFAULT]) or the last (false)
[out]val_outIf opt is found, return the argument from opt otherwise defval
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
  • If val_out is MK_NULL an error is returned.
  • If the opt is found but no opt_argument than a error is returned.
  • If the opt is found, the opt and the opt_argument are deleted from the MkBufferListC.
  • If the defval is returned only a copy of the defval is returned and not the original defval.

◆ MkBufferListCheckOptionI32_RT()

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 …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on or MK_NULL
[in]optFind opt string in the MkBufferListC
[in]defvalThe value used if opt was not found
[in]onlyFirstIf more than one opt is available, return only the first (true [DEFAULT]) or the last (false)
[out]val_outIf opt is found, return the argument from opt otherwise defval
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
  • If val_out is MK_NULL an error is returned.
  • If the opt is found but no opt_argument than a error is returned.
  • If the opt is found, the opt and the opt_argument are deleted from the MkBufferListC.
  • If the defval is returned only a copy of the defval is returned and not the original defval.

◆ MkBufferListCheckOptionI64_RT()

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 …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on or MK_NULL
[in]optFind opt string in the MkBufferListC
[in]defvalThe value used if opt was not found
[in]onlyFirstIf more than one opt is available, return only the first (true [DEFAULT]) or the last (false)
[out]val_outIf opt is found, return the argument from opt otherwise defval
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
  • If val_out is MK_NULL an error is returned.
  • If the opt is found but no opt_argument than a error is returned.
  • If the opt is found, the opt and the opt_argument are deleted from the MkBufferListC.
  • If the defval is returned only a copy of the defval is returned and not the original defval.

◆ MkBufferListCheckOptionI8_RT()

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 …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on or MK_NULL
[in]optFind opt string in the MkBufferListC
[in]defvalThe value used if opt was not found
[in]onlyFirstIf more than one opt is available, return only the first (true [DEFAULT]) or the last (false)
[out]val_outIf opt is found, return the argument from opt otherwise defval
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
  • If val_out is MK_NULL an error is returned.
  • If the opt is found but no opt_argument than a error is returned.
  • If the opt is found, the opt and the opt_argument are deleted from the MkBufferListC.
  • If the defval is returned only a copy of the defval is returned and not the original defval.

◆ MkBufferListCheckOptionSTR_RT()

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 …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]bflthe MkBufferListS instance to work on or MK_NULL
[in]optFind opt string in the MkBufferListC
[in]defvalThe value used if opt was not found
[in]onlyFirstIf more than one opt is available, return only the first (true [DEFAULT]) or the last (false)
[out]val_outIf opt is found, return the argument from opt otherwise defval
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
  • If val_out is MK_NULL an error is returned.
  • If the opt is found but no opt_argument than a error is returned.
  • If the opt is found, the opt and the opt_argument are deleted from the MkBufferListC.
  • If the defval is returned only a copy of the defval is returned and not the original defval.
  • if defval is MK_NULL than a "" is returned
  • (do not free) The memory of the out/return value belongs to the called libmkkernel function and therefore never becomes MK_NULL for a non-error result.
    For details on the out/return value, see: MkKernel_Storage_C_API.
Note
To return a string is always a complicated task, the reason is that defval using temporary memory in some programming languages (e.g. java...). Just return the default value as default result in a memory corruption.