theKernel 10.0
Loading...
Searching...
No Matches
MkBufferListC_Check_RB_API

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

+ Collaboration diagram for MkBufferListC_Check_RB_API:

Functions

static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionBUF (MkBufferListC_ARGS)
  Ruby: MkBufferC bfl.CheckOptionBUF(opt:string, ?defval:MkBufferC=nil?, ?onlyFirst:bool=true?) C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
static OT_ProcRet rbmkkernel_MkBufferListC_CheckOption (MkBufferListC_ARGS)
  Ruby: bool bfl.CheckOption(opt:string, ?onlyFirst:bool=false?) C-API
search for boolean option in MkBufferListS list and return MK_BOL value …
 
static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionBOL (MkBufferListC_ARGS)
  Ruby: doc_mk_rb_BufferListCheckOptionBOL C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionDBL (MkBufferListC_ARGS)
  Ruby: doc_mk_rb_BufferListCheckOptionDBL C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionFLT (MkBufferListC_ARGS)
  Ruby: doc_mk_rb_BufferListCheckOptionFLT C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionI16 (MkBufferListC_ARGS)
  Ruby: doc_mk_rb_BufferListCheckOptionI16 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionI32 (MkBufferListC_ARGS)
  Ruby: doc_mk_rb_BufferListCheckOptionI32 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionI64 (MkBufferListC_ARGS)
  Ruby: doc_mk_rb_BufferListCheckOptionI64 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionI8 (MkBufferListC_ARGS)
  Ruby: doc_mk_rb_BufferListCheckOptionI8 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionSTR (MkBufferListC_ARGS)
  Ruby: doc_mk_rb_BufferListCheckOptionSTR C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 

Detailed Description

MkBufferListC - various functions to 'check' a MkBufferListS

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

Function Documentation

◆ rbmkkernel_MkBufferListC_CheckOption()

static OT_ProcRet rbmkkernel_MkBufferListC_CheckOption ( MkBufferListC_ARGS )
static

Ruby: bool bfl.CheckOption(opt:string, ?onlyFirst:bool=false?) C-API
search for boolean option in MkBufferListS list and return MK_BOL value …

Definition at line 437 of file MkBufferListC_rb.c.

437 {
440 MK_STRN opt = 0;
442 MK_BOOL onlyFirst = false;
445 OT_retObj_SET_BOL(MkBufferListCheckOption (hdl, opt, onlyFirst));
446 end: MK_UNUSED /* LONG JUMP on error */
448}
#define OT_CHECK_bool(val)
#define OT_SETUP_VARARGS(min, max, d)
#define OT_retObj_SET_BOL(nat)
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_RETURN
#define OT_CHECK_OPTIONAL(val)
#define OT_CHECK_NOARGS
#define OT_CHECK_STRN(val)
#define OT_SETUP_hdl
#define CheckOption_doc
#define MkBufferListCheckOption(...)
#define MK_UNUSED
mark unnused variables and functions
const MK_STRB * MK_STRN
constant string pointer data-type
bool MK_BOOL
real bool data-type

◆ rbmkkernel_MkBufferListC_CheckOptionBOL()

static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionBOL ( MkBufferListC_ARGS )
static

Ruby: doc_mk_rb_BufferListCheckOptionBOL C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 453 of file MkBufferListC_rb.c.

453 {
456 MK_STRN opt = 0;
458 MK_BOOL defval = false;
460 MK_BOOL onlyFirst = true;
463 MK_BOOL val_out;
464 MkErrorC_Check(hdl,MkBufferListCheckOptionBOL (hdl, opt, defval, onlyFirst, &val_out));
465 OT_retObj_SET_BOL(val_out);
466 end: MK_UNUSED /* LONG JUMP on error */
468}
#define MkErrorC_Check(mng, PROC)
#define CheckOptionBOL_doc
#define MkBufferListCheckOptionBOL(...)

◆ rbmkkernel_MkBufferListC_CheckOptionBUF()

static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionBUF ( MkBufferListC_ARGS )
static

Ruby: MkBufferC bfl.CheckOptionBUF(opt:string, ?defval:MkBufferC=nil?, ?onlyFirst:bool=true?) C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 417 of file MkBufferListC_rb.c.

417 {
420 MK_STRN opt = 0;
422 MK_BUF defval = NULL;
424 MK_BOOL onlyFirst = true;
427 MK_BUF val_out;
428 MkErrorC_Check(hdl,MkBufferListCheckOptionBUF (hdl, opt, defval, onlyFirst, &val_out));
429 OT_retObj_SET_BUF(val_out);
430 end: MK_UNUSED /* LONG JUMP on error */
432}
#define OT_retObj_SET_BUF(nat)
#define CheckOptionBUF_doc
#define MkBufferListCheckOptionBUF(...)
#define MK_NULL_YES
flag, allow NULL
#define OT_CHECK_BUF(val, nullB)
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …

◆ rbmkkernel_MkBufferListC_CheckOptionDBL()

static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionDBL ( MkBufferListC_ARGS )
static

Ruby: doc_mk_rb_BufferListCheckOptionDBL C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 471 of file MkBufferListC_rb.c.

471 {
474 MK_STRN opt = 0;
476 MK_DBL defval = 0;
478 MK_BOOL onlyFirst = true;
481 MK_DBL val_out;
482 MkErrorC_Check(hdl,MkBufferListCheckOptionDBL (hdl, opt, defval, onlyFirst, &val_out));
483 OT_retObj_SET_DBL(val_out);
484 end: MK_UNUSED /* LONG JUMP on error */
486}
#define OT_CHECK_NF8(val)
#define OT_retObj_SET_DBL(nat)
#define CheckOptionDBL_doc
#define MkBufferListCheckOptionDBL(...)
double MK_DBL
8 byte double data-type

◆ rbmkkernel_MkBufferListC_CheckOptionFLT()

static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionFLT ( MkBufferListC_ARGS )
static

Ruby: doc_mk_rb_BufferListCheckOptionFLT C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 489 of file MkBufferListC_rb.c.

489 {
492 MK_STRN opt = 0;
494 MK_FLT defval = 0;
496 MK_BOOL onlyFirst = true;
499 MK_FLT val_out;
500 MkErrorC_Check(hdl,MkBufferListCheckOptionFLT (hdl, opt, defval, onlyFirst, &val_out));
501 OT_retObj_SET_FLT(val_out);
502 end: MK_UNUSED /* LONG JUMP on error */
504}
#define OT_retObj_SET_FLT(nat)
#define OT_CHECK_NF4(val)
#define CheckOptionFLT_doc
#define MkBufferListCheckOptionFLT(...)
float MK_FLT
4 byte float data-type

◆ rbmkkernel_MkBufferListC_CheckOptionI16()

static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionI16 ( MkBufferListC_ARGS )
static

Ruby: doc_mk_rb_BufferListCheckOptionI16 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 507 of file MkBufferListC_rb.c.

507 {
510 MK_STRN opt = 0;
512 MK_I16 defval = 0;
514 MK_BOOL onlyFirst = true;
517 MK_I16 val_out;
518 MkErrorC_Check(hdl,MkBufferListCheckOptionI16 (hdl, opt, defval, onlyFirst, &val_out));
519 OT_retObj_SET_I16(val_out);
520 end: MK_UNUSED /* LONG JUMP on error */
522}
#define OT_retObj_SET_I16(nat)
#define OT_CHECK_NI2(val)
#define CheckOptionI16_doc
#define MkBufferListCheckOptionI16(...)
signed short int MK_I16
2 byte short data-type

◆ rbmkkernel_MkBufferListC_CheckOptionI32()

static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionI32 ( MkBufferListC_ARGS )
static

Ruby: doc_mk_rb_BufferListCheckOptionI32 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 525 of file MkBufferListC_rb.c.

525 {
528 MK_STRN opt = 0;
530 MK_I32 defval = 0;
532 MK_BOOL onlyFirst = true;
535 MK_I32 val_out;
536 MkErrorC_Check(hdl,MkBufferListCheckOptionI32 (hdl, opt, defval, onlyFirst, &val_out));
537 OT_retObj_SET_I32(val_out);
538 end: MK_UNUSED /* LONG JUMP on error */
540}
#define OT_CHECK_NI4(val)
#define OT_retObj_SET_I32(nat)
#define CheckOptionI32_doc
#define MkBufferListCheckOptionI32(...)
signed int MK_I32
4 byte integer data-type

◆ rbmkkernel_MkBufferListC_CheckOptionI64()

static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionI64 ( MkBufferListC_ARGS )
static

Ruby: doc_mk_rb_BufferListCheckOptionI64 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 543 of file MkBufferListC_rb.c.

543 {
546 MK_STRN opt = 0;
548 MK_I64 defval = 0;
550 MK_BOOL onlyFirst = true;
553 MK_I64 val_out;
554 MkErrorC_Check(hdl,MkBufferListCheckOptionI64 (hdl, opt, defval, onlyFirst, &val_out));
555 OT_retObj_SET_I64(val_out);
556 end: MK_UNUSED /* LONG JUMP on error */
558}
#define OT_CHECK_NI8(val)
#define OT_retObj_SET_I64(nat)
#define CheckOptionI64_doc
#define MkBufferListCheckOptionI64(...)
signed long long MK_I64
8 byte wide integer data-type

◆ rbmkkernel_MkBufferListC_CheckOptionI8()

static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionI8 ( MkBufferListC_ARGS )
static

Ruby: doc_mk_rb_BufferListCheckOptionI8 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 561 of file MkBufferListC_rb.c.

561 {
564 MK_STRN opt = 0;
566 MK_I8 defval = 0;
568 MK_BOOL onlyFirst = true;
571 MK_I8 val_out;
572 MkErrorC_Check(hdl,MkBufferListCheckOptionI8 (hdl, opt, (MK_I8)(defval), onlyFirst, &val_out));
573 OT_retObj_SET_I8(val_out);
574 end: MK_UNUSED /* LONG JUMP on error */
576}
#define OT_CHECK_NI1(val)
#define OT_retObj_SET_I8(nat)
#define CheckOptionI8_doc
#define MkBufferListCheckOptionI8(...)
signed char MK_I8
1 byte byte data-type

◆ rbmkkernel_MkBufferListC_CheckOptionSTR()

static OT_ProcRet rbmkkernel_MkBufferListC_CheckOptionSTR ( MkBufferListC_ARGS )
static

Ruby: doc_mk_rb_BufferListCheckOptionSTR C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 579 of file MkBufferListC_rb.c.

579 {
582 MK_STRN opt = 0;
584 MK_STRN defval = "";
586 MK_BOOL onlyFirst = true;
589 MK_STRN val_out;
590 MkErrorC_Check(hdl,MkBufferListCheckOptionSTR (hdl, opt, defval, onlyFirst, &val_out));
591 OT_retObj_SET_STR(val_out);
592 end: MK_UNUSED /* LONG JUMP on error */
594}
#define OT_retObj_SET_STR(nat)
#define CheckOptionSTR_doc
#define MkBufferListCheckOptionSTR(...)