theKernel 10.0
Loading...
Searching...
No Matches
MkLogFileC_rb.c File Reference

tag: nhi1-release-250425 More...

+ Include dependency graph for MkLogFileC_rb.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "MkLogFileC_rb.c"
 
#define OT_CLASS   NS(MkLogFileC)
 
#define OT_CLASS_NAME   "MkLogFileC"
 
#define OT_LNG2META(O)
 
#define S_INIT   NS(sInit)(MK_RT_CALL_ONLY)
 
#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(MkLogFileC);
 
#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(MkLogFileC);
 
#define OT_SETUP_hdl_constr
 
#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(MkLogFileC);
 
#define OT_SETUP_hdl_static
 
#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static
 
#define SetupRtFromObj_X(hdl)
 
#define SetupRtFromObj_XN(hdl)
 
#define Open_doc   "MkLogFileC MkLogFileC.Open(fmtobj:MkObjectC, file:string)"
 
#define new_doc   "MkLogFileC MkLogFileC.new(fmtobj:MkObjectC, file:string)"
 
#define GetNull_doc   "MkLogFileC MkLogFileC.GetNull()"
 
#define HandleResolve_doc   "MkLogFileC MkLogFileC.HandleResolve(netHdl:MK_HDL)"
 
#define Instances_doc   "MkLogFileC MkLogFileC.Instances()"
 
#define Next_doc   "MkLogFileC lfl.Next()"
 
#define Prev_doc   "MkLogFileC lfl.Prev()"
 
#define WriteC_doc   "lfl.WriteC(text:string) (const)"
 
#define GetFile_doc   "string lfl.GetFile() (const)"
 

Functions

static void rbmkkernel_sMark (MK_PTR)
 
static OT_OBJ_T rbmkkernel_LNG_CONSTR (OT_CLS_T clazz, MK_MNG mng, int objc, VALUE *objv)
 
static MK_PTR rbmkkernel_MkLogFileC_selfCreate (MK_RT mkrt, MK_OBJ obj, MK_PTR envP)
 
static void rbmkkernel_MkLogFileC_selfDelete (MK_RT mkrt, MK_PTR ptr, MK_PTR envP)
 
static void rbmkkernel_MkLogFileC_selfUnlink (MK_RT mkrt, MK_PTR ptr, MK_PTR envP)
 
static void rbmkkernel_sInit (MK_RT mkrt)
 
static OT_ProcRet rbmkkernel_MkLogFileC_HandleResolve (OtClass_ARGS)
  Ruby: (static) MkLogFileC MkLogFileC.HandleResolve(netHdl:MK_HDL) C-API
Handle-Resolve-Slot - return a MkLogFileC from netHdl or nil if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet rbmkkernel_MkLogFileC_HandleGet (MkLogFileC_ARGS)
 
static OT_ProcRet rbmkkernel_MkLogFileC_Next (MkLogFileC_ARGS)
  Ruby: MkLogFileC lfl.Next() C-API
get next instance from linked-list of MkLogFileS type
 
static OT_ProcRet rbmkkernel_MkLogFileC_Prev (MkLogFileC_ARGS)
  Ruby: MkLogFileC lfl.Prev() C-API
get previous instance from linked-list of MkLogFileS type
 
static OT_ProcRet rbmkkernel_MkLogFileC_Instances (OtClass_ARGS)
  Ruby: (static) MkLogFileC MkLogFileC.Instances() C-API
get head-instance from linked-list of MkLogFileS type …
 
static OT_ProcRet rbmkkernel_MkLogFileC_GetNull (OtClass_ARGS)
  Ruby: (static) MkLogFileC MkLogFileC.GetNull() C-API
Null-Slot - return a MkLogFileC typed NULL instance …
 
static OT_ProcRet rbmkkernel_MkLogFileC_Open (OtClass_ARGS)
  Ruby: (constructor,static) MkLogFileC MkLogFileC.Open(fmtobj:MkObjectC, file:string) C-API
open the log-file in append mode …
 
static OT_ProcRet rbmkkernel_MkLogFileC_new (CONSTR_ARGS)
  Ruby: (constructor,static) MkLogFileC MkLogFileC.new(fmtobj:MkObjectC, file:string) C-API
open the log-file in append mode …
 
static OT_ProcRet rbmkkernel_MkLogFileC_WriteC (MkLogFileC_ARGS)
  Ruby: lfl.WriteC(text:string) C-API
write to log-file
 
static OT_ProcRet rbmkkernel_MkLogFileC_GetFile (MkLogFileC_ARGS)
  Ruby: string lfl.GetFile() C-API
get the log-file
 
void rbmkkernel_MkLogFileC_Init (MK_RT mkrt)
 

Variables

OT_CLS_T OT_CLASS
 
static MK_TYP MkLogFileCTT = NULL
 
OT_OBJ_T rbmkkernel_MkLogFileC_MK_NULL = 0
 
static rb_data_type_t rbmkkernel_MkLogFileC_T
 

Detailed Description

tag: nhi1-release-250425

Definition in file MkLogFileC_rb.c.

Macro Definition Documentation

◆ GetFile_doc

#define GetFile_doc   "string lfl.GetFile() (const)"

Definition at line 124 of file MkLogFileC_rb.c.

◆ GetNull_doc

#define GetNull_doc   "MkLogFileC MkLogFileC.GetNull()"

Definition at line 111 of file MkLogFileC_rb.c.

◆ HandleResolve_doc

#define HandleResolve_doc   "MkLogFileC MkLogFileC.HandleResolve(netHdl:MK_HDL)"

Definition at line 112 of file MkLogFileC_rb.c.

◆ Instances_doc

#define Instances_doc   "MkLogFileC MkLogFileC.Instances()"

Definition at line 113 of file MkLogFileC_rb.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "MkLogFileC_rb.c"

Definition at line 10 of file MkLogFileC_rb.c.

◆ new_doc

#define new_doc   "MkLogFileC MkLogFileC.new(fmtobj:MkObjectC, file:string)"

Definition at line 108 of file MkLogFileC_rb.c.

◆ Next_doc

#define Next_doc   "MkLogFileC lfl.Next()"

Definition at line 116 of file MkLogFileC_rb.c.

◆ Open_doc

#define Open_doc   "MkLogFileC MkLogFileC.Open(fmtobj:MkObjectC, file:string)"

Definition at line 107 of file MkLogFileC_rb.c.

◆ OT_CLASS

#define OT_CLASS   NS(MkLogFileC)

Definition at line 14 of file MkLogFileC_rb.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "MkLogFileC"

Definition at line 15 of file MkLogFileC_rb.c.

◆ OT_LNG2META

#define OT_LNG2META ( O)
Value:
#define VAL2MNG(val)
static MK_LFL MkLfl(MK_MNG mng)
cast a unknown-object into an MkLogFileS pointer or NULL if not possible

Definition at line 17 of file MkLogFileC_rb.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(MkLogFileC);

Definition at line 87 of file MkLogFileC_rb.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(MkLogFileC);

Definition at line 88 of file MkLogFileC_rb.c.

◆ OT_SETUP_hdl_constr

#define OT_SETUP_hdl_constr
Value:
OT_OBJ_T clazz = self; \
#define OT_OBJ_T
#define MkERROR
#define MkLogFileC_type
same as MkLogFileS but useable in a class-macro as: class##_type …
#define AllRtSetup_NULL

Definition at line 89 of file MkLogFileC_rb.c.

89#define OT_SETUP_hdl_constr AllRtSetup_NULL; \
90 OT_OBJ_T clazz = self; \
91 MkLogFileC_type hdl = (MkLogFileC_type) &MkERROR;

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(MkLogFileC);

Definition at line 92 of file MkLogFileC_rb.c.

◆ OT_SETUP_hdl_static

#define OT_SETUP_hdl_static
Value:
__attribute__((unused)) MK_TYP hdl = MkLogFileC##_TT;
MkTypeS - class known as typ or type is used as class-base for a Managed-Object-Technology (MOT) type...

Definition at line 93 of file MkLogFileC_rb.c.

93#define OT_SETUP_hdl_static AllRtSetup_NULL; \
94 __attribute__((unused)) MK_TYP hdl = MkLogFileC##_TT;

◆ OT_SETUP_hdl_static_constr

#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static

Definition at line 95 of file MkLogFileC_rb.c.

◆ Prev_doc

#define Prev_doc   "MkLogFileC lfl.Prev()"

Definition at line 117 of file MkLogFileC_rb.c.

◆ S_INIT

#define S_INIT   NS(sInit)(MK_RT_CALL_ONLY)

Definition at line 69 of file MkLogFileC_rb.c.

◆ SetupRtFromObj_X

#define SetupRtFromObj_X ( hdl)
Value:
#define AllRtSetup_X(x)

Definition at line 98 of file MkLogFileC_rb.c.

◆ SetupRtFromObj_XN

#define SetupRtFromObj_XN ( hdl)
Value:
#define AllRtSetup_XN(x)

Definition at line 99 of file MkLogFileC_rb.c.

◆ WriteC_doc

#define WriteC_doc   "lfl.WriteC(text:string) (const)"

Definition at line 121 of file MkLogFileC_rb.c.

Function Documentation

◆ rbmkkernel_LNG_CONSTR()

static OT_OBJ_T rbmkkernel_LNG_CONSTR ( OT_CLS_T clazz,
MK_MNG mng,
int objc,
VALUE * objv )
inlinestatic

Definition at line 46 of file MkLogFileC_rb.c.

46 {
47 return MK(AtomObjCrt)(clazz,&NS(MkLogFileC_T),mng,objc,objv);
48}
#define MK(n)
#define NS(n)
#define MkLogFileC_T
class as MkTypeDefS-class-type, useable in a class-macro as: class##_T …

◆ rbmkkernel_MkLogFileC_Init()

void rbmkkernel_MkLogFileC_Init ( MK_RT mkrt)

Definition at line 321 of file MkLogFileC_rb.c.

321 {
322
323 // init type
325 S_INIT;
326
327// BEGIN-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
328
329// doc-key: MkLogFileC,MkLogFile,sCo
330OT_METH_S ( MkLogFileC, Open, MkLogFileC_Open )
331OT_METH_C ( MkLogFileC, new, MkLogFileC_new )
332
333// doc-key: MkLogFileC,MkLogFile,sc_
334OT_METH_O ( MkLogFileC, GetNull, MkLogFileC_GetNull )
335OT_METH_S ( MkLogFileC, GetNull, MkLogFileC_GetNull )
336OT_METH_O ( MkLogFileC, HandleResolve, MkLogFileC_HandleResolve )
337OT_METH_S ( MkLogFileC, HandleResolve, MkLogFileC_HandleResolve )
338OT_METH_O ( MkLogFileC, Instances, MkLogFileC_Instances )
339OT_METH_S ( MkLogFileC, Instances, MkLogFileC_Instances )
340
341// END-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
342
343// BEGIN-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
344
345// doc-key: MkLogFileC,MkLogFile,oc_
346OT_METH_O ( MkLogFileC, Next, MkLogFileC_Next )
347OT_METH_O ( MkLogFileC, Prev, MkLogFileC_Prev )
348
349// doc-key: MkLogFileC,MkLogFile,om_
350// skip class-overload: MkLogFileHandleGet → HandleGet, MkLogFileC_HandleGet
351OT_METH_O ( MkLogFileC, WriteC, MkLogFileC_WriteC )
352
353// doc-key: MkLogFileC,MkLogFile,omo
354OT_METH_O ( MkLogFileC, GetFile, MkLogFileC_GetFile )
355
356// END-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
357
358}
#define OT_METH_S(c, s, f)
#define OT_METH_O(c, s, f)
#define OT_METH_C(c, s, f)
static MK_TYP MkLogFileCTT
#define S_INIT
#define MkLogFileC_TT
class as MkTypeS-class-type, useable in a class-macro as: class##_TT …

◆ rbmkkernel_MkLogFileC_selfCreate()

static MK_PTR rbmkkernel_MkLogFileC_selfCreate ( MK_RT mkrt,
MK_OBJ obj,
MK_PTR envP )
static

Definition at line 55 of file MkLogFileC_rb.c.

55 {
56 OT_OBJ_T self = NS(LNG_CONSTR) (OT_CLASS, obj, 0, NULL);
57 return VAL2PTR(self);
58}
#define VAL2PTR(val)
#define OT_CLASS

◆ rbmkkernel_MkLogFileC_selfDelete()

static void rbmkkernel_MkLogFileC_selfDelete ( MK_RT mkrt,
MK_PTR ptr,
MK_PTR envP )
static

Definition at line 60 of file MkLogFileC_rb.c.

60 {
62}
#define PTR2VAL(nat)
#define OT_OBJECT_DELETE_HARD(obj)

◆ rbmkkernel_MkLogFileC_selfUnlink()

static void rbmkkernel_MkLogFileC_selfUnlink ( MK_RT mkrt,
MK_PTR ptr,
MK_PTR envP )
static

Definition at line 64 of file MkLogFileC_rb.c.

64 {
65 OT_OBJ_T self = PTR2VAL(ptr);
66 RDATA(self)->data = NULL;
67}

◆ rbmkkernel_sInit()

static void rbmkkernel_sInit ( MK_RT mkrt)
static

Definition at line 70 of file MkLogFileC_rb.c.

70 {
71
72 // add "selfCreate" and "selfDelete" feature to the MQ-MkLogFileC-Type
73 MkLogFileCTT->selfCreate = NS(MkLogFileC_selfCreate);
74 MkLogFileCTT->selfDelete = NS(MkLogFileC_selfDelete);
75 MkLogFileCTT->selfUnlink = NS(MkLogFileC_selfUnlink);
76
77 // create the RUBY class
78 OT_CLASS = rb_define_class_under(OT_PKG, "MkLogFileC", MK_BASE_CLASS);
79 rb_undef_alloc_func(OT_CLASS);
80
81 /* define the "NULL" object */
82 VALUE nullO = TypedData_Wrap_Struct (OT_CLASS, &NS(MkLogFileC_T), MK_NULL);
83 NS(MkLogFileC_MK_NULL) = nullO;
85}
#define OT_PKG
#define MkLogFileC_MK_NULL
#define MK_BASE_CLASS
#define INCR_REF(valP)
#define MK_NULL
The Programming-Language-Micro-Kernel (PLMK) NULL value as nil in Ruby …
MkSelfUnlinkF selfUnlink
"unlink" the "self" pointer from META-Kernel
MkSelfDeleteF selfDelete
"delete" the "self" pointer
MkSelfCreateF selfCreate
"create" the "self" pointer

◆ rbmkkernel_sMark()

static void rbmkkernel_sMark ( MK_PTR mng)
static

Definition at line 316 of file MkLogFileC_rb.c.

317{
318
319}

Variable Documentation

◆ MkLogFileCTT

MK_TYP MkLogFileCTT = NULL
static

Definition at line 22 of file MkLogFileC_rb.c.

◆ OT_CLASS

OT_CLS_T OT_CLASS

Definition at line 19 of file MkLogFileC_rb.c.

◆ rbmkkernel_MkLogFileC_MK_NULL

OT_OBJ_T rbmkkernel_MkLogFileC_MK_NULL = 0

Definition at line 23 of file MkLogFileC_rb.c.

◆ rbmkkernel_MkLogFileC_T

rb_data_type_t rbmkkernel_MkLogFileC_T
static
Initial value:
= {
"MkLogFileC",
{
0,
0,
},
NULL,
NULL,
RUBY_TYPED_FREE_IMMEDIATELY
}
static void rbmkkernel_AtomDeleteSoft(MK_MNG)
static void rbmkkernel_sMark(MK_PTR)

Definition at line 29 of file MkLogFileC_rb.c.

29 {
30 "MkLogFileC",
31 {
32 NS(sMark),
33 MK(AtomDeleteSoft),
34 0, /* dsize */
35 0, /* reserved[1] */
36 },
37 NULL, /* parent */
38 NULL, /* data */
39 RUBY_TYPED_FREE_IMMEDIATELY
40};