theConfig 10.0
Loading...
Searching...
No Matches
LcCall_atl.c File Reference

tag: nhi1-release-250425 More...

+ Include dependency graph for LcCall_atl.c:

Go to the source code of this file.

Macros

#define dbgMsg(fmt, ...)
 
#define dbgObj(obj)
 

Functions

enum MkErrorE atllcconfig_ConfigIncludeCall (LcConfigIncludeCallF_ARGS)
 
void atllcconfig_ConfigIncludeFree (LcConfigIncludeFreeF_ARGS)
 
enum MkErrorE atllcconfig_SettingDeleteCall (LcSettingDeleteCallF_ARGS)
 
void atllcconfig_SettingDeleteFree (LcSettingDeleteFreeF_ARGS)
 

Detailed Description

tag: nhi1-release-250425

Definition in file LcCall_atl.c.

Macro Definition Documentation

◆ dbgMsg

#define dbgMsg ( fmt,
... )

Definition at line 24 of file LcCall_atl.c.

◆ dbgObj

#define dbgObj ( obj)

Definition at line 25 of file LcCall_atl.c.

Function Documentation

◆ atllcconfig_ConfigIncludeCall()

enum MkErrorE atllcconfig_ConfigIncludeCall ( LcConfigIncludeCallF_ARGS )

Definition at line 45 of file LcCall_atl.c.

46{
48
49 // 1. setup arguments
50 struct MkCallS *call = cfg->fConfigIncludeData ;
51 assert(call->signature == MkCallS_SIG);
52
53//MkCallLog(call);
54
55 // 2. prolog
56 CallProlog(cfg);
57
58 // 3. setup args
59 objv[objc++] = STR2VAL(incDir);
60 objv[objc++] = STR2VAL(path);
61 objv[objc++] = OT_TMP_BFL_OBJ(ret_inout);
62
63 // 4. setup user args
64 if (call->args) MK(ProcResolveAppendArgs)(call,&objc,objv);
65
66 // 5. call the callback
67 int ret = MK(EvalObjv) (interp, objc, objv, 0); /* "MK(EvalObjv)" IS required !! */
68 if (ret != TCL_OK) goto error;
69
70 Tcl_ResetResult(interp);
71 return MkErrorGetCode_0E();
72
73error:
75
76error_mq:
77 return MkErrorStack_0E();
78}
#define CallProlog(m)
#define MK(n)
#define STR2VAL(ptr)
#define MkCallS_SIG
#define OT_ERROR_LNG_2_META(m)
#define OT_TMP_BFL_OBJ(nat)
#define LcConfigIncludeCallF_CHECK
#define MkErrorGetCode_0E()
#define MkErrorStack_0E()
OT_OBJ_T args
MK_SIG signature

◆ atllcconfig_ConfigIncludeFree()

void atllcconfig_ConfigIncludeFree ( LcConfigIncludeFreeF_ARGS )

Definition at line 80 of file LcCall_atl.c.

81{
82 MkCallFree(cfg->fConfigIncludeData);
83
84 //OT_REF_DECR_AND_NULL(cfg->fConfigIncludeHook);
85
86 cfg->fConfigIncludeCall = NULL;
87 cfg->fConfigIncludeFree = NULL;
88}
#define MkCallFree(cb)

◆ atllcconfig_SettingDeleteCall()

enum MkErrorE atllcconfig_SettingDeleteCall ( LcSettingDeleteCallF_ARGS )

Definition at line 108 of file LcCall_atl.c.

109{
111
112 // test on recursion
113 static MkThreadLocal bool onCall = false;
114 if (onCall) {
115printSTACK_1(cfg)
116 return MkErrorSetC_2M(cfg,"REKURSIVE call on LcSettingC -> delete handler");
117 }
118 onCall=true;
119
120 // 1. setup environment
121 struct MkCallS *call = cfg->fSettingDeleteData;
122 assert(call->signature == MkCallS_SIG);
123
124 // 2. prolog
125 CallProlog(cfg);
126
127 // 3. setup args
128 objv[objc++] = LONG2VAL(MkObjectHandleGet_1X(cfs));
129
130 // 4. setup user args
131 if (call->args) MK(ProcResolveAppendArgs)(call,&objc,objv);
132
133 // 5. call the callback
134 int ret = MK(EvalObjv) (interp, objc, objv, 0); /* "MK(EvalObjv)" IS required !! */
135 if (ret != TCL_OK) goto error;
136
137 Tcl_ResetResult(interp);
138 onCall = false;
139 return MkErrorGetCode_0E();
140
141error:
143
144error_mq:
145 onCall = false;
146 return MkErrorStack_0E();
147}
#define LONG2VAL(nat)
#define LcSettingDeleteCallF_CHECK
#define MkErrorSetC_2M(err, message)
#define MkObjectHandleGet_1X(x)
#define MkThreadLocal

◆ atllcconfig_SettingDeleteFree()

void atllcconfig_SettingDeleteFree ( LcSettingDeleteFreeF_ARGS )

Definition at line 149 of file LcCall_atl.c.

150{
151 MK(CallFree) (&cfg->fSettingDeleteData);
152
153 //OT_REF_DECR_AND_NULL(cfg->fSettingDeleteHook);
154
155 cfg->fSettingDeleteData = NULL;
156 cfg->fSettingDeleteCall = NULL;
157 cfg->fSettingDeleteFree = NULL;
158}