MkBufferListC - various functions to 'check' a MkBufferListS … More...
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 - various functions to 'check' a MkBufferListS …
This functions are used for parsing command-line-arguments.
#define MkBufferListCheckOption | ( | ... | ) |
Definition at line 406 of file kernel_overload_mk.h.
#define MkBufferListCheckOption_2 | ( | bfl, | |
opt ) |
Definition at line 407 of file kernel_overload_mk.h.
#define MkBufferListCheckOption_NULL | ( | ... | ) |
Definition at line 405 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionBOL | ( | ... | ) |
Definition at line 411 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionBOL_3 | ( | bfl, | |
opt, | |||
val_out ) |
Definition at line 413 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionBOL_4 | ( | bfl, | |
opt, | |||
defval, | |||
val_out ) |
Definition at line 412 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionBOL_C | ( | ... | ) |
Definition at line 415 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionBOL_E | ( | ... | ) |
Definition at line 414 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionBOL_e | ( | ... | ) |
Definition at line 416 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionBOL_NULL | ( | ... | ) |
Definition at line 410 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionBUF | ( | ... | ) |
Definition at line 397 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionBUF_3 | ( | bfl, | |
opt, | |||
val_out ) |
Definition at line 399 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionBUF_4 | ( | bfl, | |
opt, | |||
defval, | |||
val_out ) |
Definition at line 398 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionBUF_C | ( | ... | ) |
Definition at line 401 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionBUF_E | ( | ... | ) |
Definition at line 400 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionBUF_e | ( | ... | ) |
Definition at line 402 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionBUF_NULL | ( | ... | ) |
Definition at line 396 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionDBL | ( | ... | ) |
Definition at line 418 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionDBL_3 | ( | bfl, | |
opt, | |||
val_out ) |
Definition at line 420 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionDBL_4 | ( | bfl, | |
opt, | |||
defval, | |||
val_out ) |
Definition at line 419 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionDBL_C | ( | ... | ) |
Definition at line 422 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionDBL_E | ( | ... | ) |
Definition at line 421 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionDBL_e | ( | ... | ) |
Definition at line 423 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionDBL_NULL | ( | ... | ) |
Definition at line 417 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionFLT | ( | ... | ) |
Definition at line 425 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionFLT_3 | ( | bfl, | |
opt, | |||
val_out ) |
Definition at line 427 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionFLT_4 | ( | bfl, | |
opt, | |||
defval, | |||
val_out ) |
Definition at line 426 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionFLT_C | ( | ... | ) |
Definition at line 429 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionFLT_E | ( | ... | ) |
Definition at line 428 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionFLT_e | ( | ... | ) |
Definition at line 430 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionFLT_NULL | ( | ... | ) |
Definition at line 424 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI16 | ( | ... | ) |
Definition at line 432 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI16_3 | ( | bfl, | |
opt, | |||
val_out ) |
Definition at line 434 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI16_4 | ( | bfl, | |
opt, | |||
defval, | |||
val_out ) |
Definition at line 433 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI16_C | ( | ... | ) |
Definition at line 436 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI16_E | ( | ... | ) |
Definition at line 435 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI16_e | ( | ... | ) |
Definition at line 437 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI16_NULL | ( | ... | ) |
Definition at line 431 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI32 | ( | ... | ) |
Definition at line 439 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI32_3 | ( | bfl, | |
opt, | |||
val_out ) |
Definition at line 441 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI32_4 | ( | bfl, | |
opt, | |||
defval, | |||
val_out ) |
Definition at line 440 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI32_C | ( | ... | ) |
Definition at line 443 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI32_E | ( | ... | ) |
Definition at line 442 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI32_e | ( | ... | ) |
Definition at line 444 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI32_NULL | ( | ... | ) |
Definition at line 438 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI64 | ( | ... | ) |
Definition at line 446 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI64_3 | ( | bfl, | |
opt, | |||
val_out ) |
Definition at line 448 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI64_4 | ( | bfl, | |
opt, | |||
defval, | |||
val_out ) |
Definition at line 447 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI64_C | ( | ... | ) |
Definition at line 450 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI64_E | ( | ... | ) |
Definition at line 449 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI64_e | ( | ... | ) |
Definition at line 451 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI64_NULL | ( | ... | ) |
Definition at line 445 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI8 | ( | ... | ) |
Definition at line 453 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI8_3 | ( | bfl, | |
opt, | |||
val_out ) |
Definition at line 455 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI8_4 | ( | bfl, | |
opt, | |||
defval, | |||
val_out ) |
Definition at line 454 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI8_C | ( | ... | ) |
Definition at line 457 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI8_E | ( | ... | ) |
Definition at line 456 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI8_e | ( | ... | ) |
Definition at line 458 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI8_NULL | ( | ... | ) |
Definition at line 452 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionI_3E | ( | bfl, | |
opt, | |||
val_out ) |
Definition at line 1155 of file MkBufferListC_def_mk.h.
#define MkBufferListCheckOptionO_3E | ( | bfl, | |
opt, | |||
val_out ) |
Definition at line 1110 of file MkBufferListC_def_mk.h.
#define MkBufferListCheckOptionSTR | ( | ... | ) |
Definition at line 460 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionSTR_3 | ( | bfl, | |
opt, | |||
val_out ) |
Definition at line 462 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionSTR_4 | ( | bfl, | |
opt, | |||
defval, | |||
val_out ) |
Definition at line 461 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionSTR_C | ( | ... | ) |
Definition at line 464 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionSTR_E | ( | ... | ) |
Definition at line 463 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionSTR_e | ( | ... | ) |
Definition at line 465 of file kernel_overload_mk.h.
#define MkBufferListCheckOptionSTR_NULL | ( | ... | ) |
Definition at line 459 of file kernel_overload_mk.h.
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 …
-
or a --
the opt is treated as true +
or a ++
the opt is treated as false -
or a +
than the opt is treated as true [in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | bfl | the MkBufferListS instance to work on or MK_NULL |
[in] | opt | Find opt string in the MkBufferListC |
[in] | onlyFirst | Stop after first item was found |
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 …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | bfl | the MkBufferListS instance to work on or MK_NULL |
[in] | opt | Find opt string in the MkBufferListC |
[in] | defval | The value used if opt was not found |
[in] | onlyFirst | If more than one opt is available, return only the first (true [DEFAULT]) or the last (false) |
[out] | val_out | If opt is found, return the argument from opt otherwise defval |
MK_NULL
an error is returned. "-"
, the opt_argument is set to true; otherwise, false. 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 …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | bfl | the MkBufferListS instance to work on or MK_NULL |
[in] | opt | Find opt string in the MkBufferListC |
[in] | defval | The value used if opt was not found |
[in] | onlyFirst | If more than one opt is available, return only the first (true [DEFAULT]) or the last (false) |
[out] | val_out | If opt is found, return the argument from opt otherwise defval |
MK_NULL
an error is returned. MK_NULL
than an empty MkBufferC is returned. MK_NULL
for a non-error result.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 …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | bfl | the MkBufferListS instance to work on or MK_NULL |
[in] | opt | Find opt string in the MkBufferListC |
[in] | defval | The value used if opt was not found |
[in] | onlyFirst | If more than one opt is available, return only the first (true [DEFAULT]) or the last (false) |
[out] | val_out | If opt is found, return the argument from opt otherwise defval |
MK_NULL
an error is returned. 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 …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | bfl | the MkBufferListS instance to work on or MK_NULL |
[in] | opt | Find opt string in the MkBufferListC |
[in] | defval | The value used if opt was not found |
[in] | onlyFirst | If more than one opt is available, return only the first (true [DEFAULT]) or the last (false) |
[out] | val_out | If opt is found, return the argument from opt otherwise defval |
MK_NULL
an error is returned. 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 …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | bfl | the MkBufferListS instance to work on or MK_NULL |
[in] | opt | Find opt string in the MkBufferListC |
[in] | defval | The value used if opt was not found |
[in] | onlyFirst | If more than one opt is available, return only the first (true [DEFAULT]) or the last (false) |
[out] | val_out | If opt is found, return the argument from opt otherwise defval |
MK_NULL
an error is returned. 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 …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | bfl | the MkBufferListS instance to work on or MK_NULL |
[in] | opt | Find opt string in the MkBufferListC |
[in] | defval | The value used if opt was not found |
[in] | onlyFirst | If more than one opt is available, return only the first (true [DEFAULT]) or the last (false) |
[out] | val_out | If opt is found, return the argument from opt otherwise defval |
MK_NULL
an error is returned. 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 …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | bfl | the MkBufferListS instance to work on or MK_NULL |
[in] | opt | Find opt string in the MkBufferListC |
[in] | defval | The value used if opt was not found |
[in] | onlyFirst | If more than one opt is available, return only the first (true [DEFAULT]) or the last (false) |
[out] | val_out | If opt is found, return the argument from opt otherwise defval |
MK_NULL
an error is returned. 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 …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | bfl | the MkBufferListS instance to work on or MK_NULL |
[in] | opt | Find opt string in the MkBufferListC |
[in] | defval | The value used if opt was not found |
[in] | onlyFirst | If more than one opt is available, return only the first (true [DEFAULT]) or the last (false) |
[out] | val_out | If opt is found, return the argument from opt otherwise defval |
MK_NULL
an error is returned. 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 …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | bfl | the MkBufferListS instance to work on or MK_NULL |
[in] | opt | Find opt string in the MkBufferListC |
[in] | defval | The value used if opt was not found |
[in] | onlyFirst | If more than one opt is available, return only the first (true [DEFAULT]) or the last (false) |
[out] | val_out | If opt is found, return the argument from opt otherwise defval |
MK_NULL
an error is returned. MK_NULL
than a ""
is returned MK_NULL
for a non-error result.