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

LcConfig PACKAGE - definition of the enum type … More...

+ Collaboration diagram for LcConfig_Enum_TCL_API:

Functions

static OT_ProcRet tcllcconfig_LcConfig_ConfigFormatE_FromInt (OtClass_ARGS)
  Tcl: (static) LcConfigFormatE [LcConfig ConfigFormatE_FromInt value:int32] C-API
return the LcConfigFormatE from integer …
 
static OT_ProcRet tcllcconfig_LcConfig_ConfigOptionsEF_FromInt (OtClass_ARGS)
  Tcl: (static) LcConfigOptionsEF [LcConfig ConfigOptionsEF_FromInt value:int32] C-API
return the LcConfigOptionsEF from integer …
 
static OT_ProcRet tcllcconfig_LcConfig_ConfigTypeE_FromInt (OtClass_ARGS)
  Tcl: (static) LcConfigTypeE [LcConfig ConfigTypeE_FromInt value:int32] C-API
return the LcConfigTypeE from integer …
 
static OT_ProcRet tcllcconfig_LcConfig_ErrorE_FromInt (OtClass_ARGS)
  Tcl: (static) LcErrorE [LcConfig ErrorE_FromInt value:int32] C-API
return the LcErrorE from integer …
 
static OT_ProcRet tcllcconfig_LcConfig_ErrorTypeE_FromInt (OtClass_ARGS)
  Tcl: (static) LcErrorTypeE [LcConfig ErrorTypeE_FromInt value:int32] C-API
return the LcErrorTypeE from integer …
 
static OT_ProcRet tcllcconfig_LcConfig_ConfigFormatE_ToInt (OtClass_ARGS)
  Tcl: (static) int32 [LcConfig ConfigFormatE_ToInt value:LcConfigFormatE] C-API
return the LcConfigFormatE as integer …
 
static OT_ProcRet tcllcconfig_LcConfig_ConfigFormatE_ToString (OtClass_ARGS)
  Tcl: (static) string [LcConfig ConfigFormatE_ToString value:LcConfigFormatE] C-API
return the LcConfigFormatE as string …
 
static OT_ProcRet tcllcconfig_LcConfig_ConfigOptionsEF_ToInt (OtClass_ARGS)
  Tcl: (static) int32 [LcConfig ConfigOptionsEF_ToInt value:LcConfigOptionsEF] C-API
return the LcConfigOptionsEF as integer …
 
static OT_ProcRet tcllcconfig_LcConfig_ConfigOptionsEF_ToString (OtClass_ARGS)
  Tcl: (static) string [LcConfig ConfigOptionsEF_ToString value:LcConfigOptionsEF] C-API
return the LcConfigOptionsEF as string …
 
static OT_ProcRet tcllcconfig_LcConfig_ConfigTypeE_ToInt (OtClass_ARGS)
  Tcl: (static) int32 [LcConfig ConfigTypeE_ToInt value:LcConfigTypeE] C-API
return the LcConfigTypeE as integer …
 
static OT_ProcRet tcllcconfig_LcConfig_ConfigTypeE_ToString (OtClass_ARGS)
  Tcl: (static) string [LcConfig ConfigTypeE_ToString value:LcConfigTypeE] C-API
return the LcConfigTypeE as string …
 
static OT_ProcRet tcllcconfig_LcConfig_ErrorE_ToInt (OtClass_ARGS)
  Tcl: (static) int32 [LcConfig ErrorE_ToInt value:LcErrorE] C-API
return the LcErrorE as integer …
 
static OT_ProcRet tcllcconfig_LcConfig_ErrorE_ToString (OtClass_ARGS)
  Tcl: (static) string [LcConfig ErrorE_ToString value:LcErrorE] C-API
return the LcErrorE as string …
 
static OT_ProcRet tcllcconfig_LcConfig_ErrorTypeE_ToInt (OtClass_ARGS)
  Tcl: (static) int32 [LcConfig ErrorTypeE_ToInt value:LcErrorTypeE] C-API
return the LcErrorTypeE as integer …
 
static OT_ProcRet tcllcconfig_LcConfig_ErrorTypeE_ToString (OtClass_ARGS)
  Tcl: (static) string [LcConfig ErrorTypeE_ToString value:LcErrorTypeE] C-API
return the LcErrorTypeE as string …
 

Enum To String

OT_OBJ_T tcllcconfig_LcConfigFormatE_ToString (const enum LcConfigFormatE type)
 
OT_OBJ_T tcllcconfig_LcConfigOptionsEF_ToString (const enum LcConfigOptionsEF type)
 
OT_OBJ_T tcllcconfig_LcConfigTypeE_ToString (const enum LcConfigTypeE type)
 
OT_OBJ_T tcllcconfig_LcErrorE_ToString (const enum LcErrorE type)
 
OT_OBJ_T tcllcconfig_LcErrorTypeE_ToString (const enum LcErrorTypeE type)
 

Enum From Obj

int tcllcconfig_Get_LcConfigFormatE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum LcConfigFormatE *ret)
 
int tcllcconfig_Get_LcConfigOptionsEF_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum LcConfigOptionsEF *ret)
 
int tcllcconfig_Get_LcConfigTypeE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum LcConfigTypeE *ret)
 
int tcllcconfig_Get_LcErrorE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum LcErrorE *ret)
 
int tcllcconfig_Get_LcErrorTypeE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum LcErrorTypeE *ret)
 

Detailed Description

LcConfig PACKAGE - definition of the enum type …

read more at: MkKernel_Enum_C_API

Tcl has no build-in-enum-datatyp but theKernel support a enum using the data-type-checking API.

A C-enum like :

will be compiled into a internal tcl-c-check-proc :

int LC(Get_LcConfigFormatE_FromObj) (MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum LcConfigFormatE *ret) {
const static struct LookupEnumE keys[] = {
{ "HEX" , CONFIG_FORMAT_HEX },
{ "DEFAULT" , CONFIG_FORMAT_DEFAULT },
{ "FORMAT_HEX" , CONFIG_FORMAT_HEX },
{ "FORMAT_DEFAULT" , CONFIG_FORMAT_DEFAULT },
{ "CONFIG_FORMAT_HEX" , CONFIG_FORMAT_HEX },
{ "CONFIG_FORMAT_DEFAULT" , CONFIG_FORMAT_DEFAULT },
{ NULL , 0 },
};
int index;
OtErrorCheckLng (Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
sizeof(struct LookupClassS), "enum", TCL_EXACT, &index));
*ret = keys[index].val;
return TCL_OK;
#define LC(n)
#define OtErrorCheckLng(cmd)
Tcl_Interp * OT_ENV_T
Tcl_Obj * OT_OBJ_T
LcConfigFormatE
set the format of a LcSettingC …
Definition LcEnum_lc.h:33
#define MK_RT_ARGS
#define CONFIG_FORMAT_DEFAULT
#define CONFIG_FORMAT_HEX
}

to return the integer identifier for an enum-definition-string or an error if string is not valid.

A valid string for an enum-value is any unique abbreviation of the original enum-value:

The tcl-c-check-proc is used in a tcl-c-api-wrapper like :

static OT_ProcRet NS(LcConfigC_SetDefaultFormat) (LcConfigC_ARGS) {
LcConfigFormatE format = 0;
OT_CHECK_REQUIRED(OT_CHECK_ENUM (LcConfigFormatE,format)) // << tcl-c-check-proc
if (hdl->nat == NULL) OT_ERROR_LNG_RETURN_HDL_NAT_NULL(hdl);
config_set_default_format (hdl->nat, format);
goto end;
error:
end:
}
#define OT_SETUP_hdl
#define SetDefaultFormat_doc
#define LcConfigC_ARGS
#define NS(n)
#define OT_SETUP_ONEARG(d)
#define OT_retObj_SET_Error
#define OT_ERROR_LNG_RETURN_HDL_NAT_NULL(_hdl)
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#define OT_CHECK_ENUM(ename, val)
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define OT_ProcRet
#define config_set_default_format(C, F)

The usage of an enum-value in the tcl-code is quite simple, just use the string.

package require tcllcconfig
namespace import tcllcconfig::*
# create the configuration object
LcConfigC create cfg
# use CONFIG_FORMAT_HEX :
# If a non-default format has not been set for a setting with SettingSetFormat, this configuration-wide
# default format will be used instead when that setting is written to a file or stream.
cfg SetDefaultFormat FORMAT_HEX

read more at: MkKernel_Enum_C_API

Function Documentation

◆ tcllcconfig_Get_LcConfigFormatE_FromObj()

int tcllcconfig_Get_LcConfigFormatE_FromObj ( MK_RT mkrt,
OT_ENV_T interp,
OT_OBJ_T enumE,
enum LcConfigFormatE * ret )

Definition at line 194 of file LibLcConfig_tcl.c.

194 {
195 const static struct LookupEnumE keys[] = {
196 { "HEX" , CONFIG_FORMAT_HEX },
197 { "DEFAULT" , CONFIG_FORMAT_DEFAULT },
198 { "FORMAT_HEX" , CONFIG_FORMAT_HEX },
199 { "FORMAT_DEFAULT" , CONFIG_FORMAT_DEFAULT },
200 { "CONFIG_FORMAT_HEX" , CONFIG_FORMAT_HEX },
201 { "CONFIG_FORMAT_DEFAULT" , CONFIG_FORMAT_DEFAULT },
202 { NULL , 0 },
203 };
204
205 int index;
206 OtErrorCheckLng (Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
207 sizeof(struct LookupClassS), "enum", TCL_EXACT, &index));
208 *ret = keys[index].val;
209 return TCL_OK;
210}

◆ tcllcconfig_Get_LcConfigOptionsEF_FromObj()

int tcllcconfig_Get_LcConfigOptionsEF_FromObj ( MK_RT mkrt,
OT_ENV_T interp,
OT_OBJ_T enumE,
enum LcConfigOptionsEF * ret )

Definition at line 212 of file LibLcConfig_tcl.c.

212 {
213 const static struct LookupEnumE keys[] = {
214 { "NONE" , CONFIG_OPTION_NONE },
215 { "FSYNC" , CONFIG_OPTION_FSYNC },
216 { "OPTION_NONE" , CONFIG_OPTION_NONE },
217 { "AUTOCONVERT" , CONFIG_OPTION_AUTOCONVERT },
218 { "OPTION_FSYNC" , CONFIG_OPTION_FSYNC },
219 { "ALLOW_OVERRIDES" , CONFIG_OPTION_ALLOW_OVERRIDES },
220 { "OPTION_AUTOCONVERT" , CONFIG_OPTION_AUTOCONVERT },
221 { "CONFIG_OPTION_NONE" , CONFIG_OPTION_NONE },
222 { "CONFIG_OPTION_FSYNC" , CONFIG_OPTION_FSYNC },
223 { "SEMICOLON_SEPARATORS" , CONFIG_OPTION_SEMICOLON_SEPARATORS },
224 { "OPTION_ALLOW_OVERRIDES" , CONFIG_OPTION_ALLOW_OVERRIDES },
225 { "CONFIG_OPTION_AUTOCONVERT" , CONFIG_OPTION_AUTOCONVERT },
226 { "ALLOW_SCIENTIFIC_NOTATION" , CONFIG_OPTION_ALLOW_SCIENTIFIC_NOTATION },
227 { "OPEN_BRACE_ON_SEPARATE_LINE" , CONFIG_OPTION_OPEN_BRACE_ON_SEPARATE_LINE },
228 { "COLON_ASSIGNMENT_FOR_GROUPS" , CONFIG_OPTION_COLON_ASSIGNMENT_FOR_GROUPS },
229 { "OPTION_SEMICOLON_SEPARATORS" , CONFIG_OPTION_SEMICOLON_SEPARATORS },
230 { "CONFIG_OPTION_ALLOW_OVERRIDES" , CONFIG_OPTION_ALLOW_OVERRIDES },
231 { "COLON_ASSIGNMENT_FOR_NON_GROUPS" , CONFIG_OPTION_COLON_ASSIGNMENT_FOR_NON_GROUPS },
232 { "OPTION_ALLOW_SCIENTIFIC_NOTATION" , CONFIG_OPTION_ALLOW_SCIENTIFIC_NOTATION },
233 { "OPTION_OPEN_BRACE_ON_SEPARATE_LINE" , CONFIG_OPTION_OPEN_BRACE_ON_SEPARATE_LINE },
234 { "OPTION_COLON_ASSIGNMENT_FOR_GROUPS" , CONFIG_OPTION_COLON_ASSIGNMENT_FOR_GROUPS },
235 { "CONFIG_OPTION_SEMICOLON_SEPARATORS" , CONFIG_OPTION_SEMICOLON_SEPARATORS },
236 { "OPTION_COLON_ASSIGNMENT_FOR_NON_GROUPS" , CONFIG_OPTION_COLON_ASSIGNMENT_FOR_NON_GROUPS },
237 { "CONFIG_OPTION_ALLOW_SCIENTIFIC_NOTATION" , CONFIG_OPTION_ALLOW_SCIENTIFIC_NOTATION },
238 { "CONFIG_OPTION_OPEN_BRACE_ON_SEPARATE_LINE" , CONFIG_OPTION_OPEN_BRACE_ON_SEPARATE_LINE },
239 { "CONFIG_OPTION_COLON_ASSIGNMENT_FOR_GROUPS" , CONFIG_OPTION_COLON_ASSIGNMENT_FOR_GROUPS },
240 { "CONFIG_OPTION_COLON_ASSIGNMENT_FOR_NON_GROUPS" , CONFIG_OPTION_COLON_ASSIGNMENT_FOR_NON_GROUPS },
241 { NULL , 0 },
242 };
243
244 int index;
245 OtErrorCheckLng(MK(EnumFlagWorker)(MK_RT_CALL interp,keys,enumE,&index));
246 *ret = (enum LcConfigOptionsEF) index;
247 return TCL_OK;
248}
#define MK(n)
LcConfigOptionsEF
define the configuration-option of a LcConfigC …
Definition LcEnum_lc.h:137
@ CONFIG_OPTION_NONE
Definition LcEnum_lc.h:138
#define MK_RT_CALL
#define CONFIG_OPTION_SEMICOLON_SEPARATORS
#define CONFIG_OPTION_FSYNC
#define CONFIG_OPTION_AUTOCONVERT
#define CONFIG_OPTION_ALLOW_SCIENTIFIC_NOTATION
#define CONFIG_OPTION_COLON_ASSIGNMENT_FOR_NON_GROUPS
#define CONFIG_OPTION_OPEN_BRACE_ON_SEPARATE_LINE
#define CONFIG_OPTION_ALLOW_OVERRIDES
#define CONFIG_OPTION_COLON_ASSIGNMENT_FOR_GROUPS

◆ tcllcconfig_Get_LcConfigTypeE_FromObj()

int tcllcconfig_Get_LcConfigTypeE_FromObj ( MK_RT mkrt,
OT_ENV_T interp,
OT_OBJ_T enumE,
enum LcConfigTypeE * ret )

Definition at line 250 of file LibLcConfig_tcl.c.

250 {
251 const static struct LookupEnumE keys[] = {
252 { "INT" , CONFIG_TYPE_INT },
253 { "NONE" , CONFIG_TYPE_NONE },
254 { "BOOL" , CONFIG_TYPE_BOOL },
255 { "LIST" , CONFIG_TYPE_LIST },
256 { "GROUP" , CONFIG_TYPE_GROUP },
257 { "INT64" , CONFIG_TYPE_INT64 },
258 { "ARRAY" , CONFIG_TYPE_ARRAY },
259 { "FLOAT" , CONFIG_TYPE_FLOAT },
260 { "STRING" , CONFIG_TYPE_STRING },
261 { "TYPE_INT" , CONFIG_TYPE_INT },
262 { "TYPE_NONE" , CONFIG_TYPE_NONE },
263 { "TYPE_BOOL" , CONFIG_TYPE_BOOL },
264 { "TYPE_LIST" , CONFIG_TYPE_LIST },
265 { "TYPE_ARRAY" , CONFIG_TYPE_ARRAY },
266 { "TYPE_FLOAT" , CONFIG_TYPE_FLOAT },
267 { "TYPE_GROUP" , CONFIG_TYPE_GROUP },
268 { "TYPE_INT64" , CONFIG_TYPE_INT64 },
269 { "TYPE_STRING" , CONFIG_TYPE_STRING },
270 { "CONFIG_TYPE_INT" , CONFIG_TYPE_INT },
271 { "CONFIG_TYPE_BOOL" , CONFIG_TYPE_BOOL },
272 { "CONFIG_TYPE_LIST" , CONFIG_TYPE_LIST },
273 { "CONFIG_TYPE_NONE" , CONFIG_TYPE_NONE },
274 { "CONFIG_TYPE_GROUP" , CONFIG_TYPE_GROUP },
275 { "CONFIG_TYPE_INT64" , CONFIG_TYPE_INT64 },
276 { "CONFIG_TYPE_ARRAY" , CONFIG_TYPE_ARRAY },
277 { "CONFIG_TYPE_FLOAT" , CONFIG_TYPE_FLOAT },
278 { "CONFIG_TYPE_STRING" , CONFIG_TYPE_STRING },
279 { NULL , 0 },
280 };
281
282 int index;
283 OtErrorCheckLng (Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
284 sizeof(struct LookupClassS), "enum", TCL_EXACT, &index));
285 *ret = keys[index].val;
286 return TCL_OK;
287}
#define CONFIG_TYPE_STRING
#define CONFIG_TYPE_LIST
#define CONFIG_TYPE_INT
#define CONFIG_TYPE_ARRAY
#define CONFIG_TYPE_GROUP
#define CONFIG_TYPE_BOOL
#define CONFIG_TYPE_INT64
#define CONFIG_TYPE_NONE
#define CONFIG_TYPE_FLOAT

◆ tcllcconfig_Get_LcErrorE_FromObj()

int tcllcconfig_Get_LcErrorE_FromObj ( MK_RT mkrt,
OT_ENV_T interp,
OT_OBJ_T enumE,
enum LcErrorE * ret )

Definition at line 289 of file LibLcConfig_tcl.c.

289 {
290 const static struct LookupEnumE keys[] = {
291 { "TRUE" , CONFIG_TRUE },
292 { "FALSE" , CONFIG_FALSE },
293 { "CONFIG_TRUE" , CONFIG_TRUE },
294 { "CONFIG_FALSE" , CONFIG_FALSE },
295 { NULL , 0 },
296 };
297
298 int index;
299 OtErrorCheckLng (Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
300 sizeof(struct LookupClassS), "enum", TCL_EXACT, &index));
301 *ret = keys[index].val;
302 return TCL_OK;
303}
#define CONFIG_TRUE
#define CONFIG_FALSE

◆ tcllcconfig_Get_LcErrorTypeE_FromObj()

int tcllcconfig_Get_LcErrorTypeE_FromObj ( MK_RT mkrt,
OT_ENV_T interp,
OT_OBJ_T enumE,
enum LcErrorTypeE * ret )

Definition at line 305 of file LibLcConfig_tcl.c.

305 {
306 const static struct LookupEnumE keys[] = {
307 { "NONE" , CONFIG_ERRROR_NONE },
308 { "PARSE" , CONFIG_ERRROR_PARSE },
309 { "FILE_IO" , CONFIG_ERRROR_FILE_IO },
310 { "ERRROR_NONE" , CONFIG_ERRROR_NONE },
311 { "ERRROR_PARSE" , CONFIG_ERRROR_PARSE },
312 { "ERRROR_FILE_IO" , CONFIG_ERRROR_FILE_IO },
313 { "CONFIG_ERRROR_NONE" , CONFIG_ERRROR_NONE },
314 { "CONFIG_ERRROR_PARSE" , CONFIG_ERRROR_PARSE },
315 { "CONFIG_ERRROR_FILE_IO" , CONFIG_ERRROR_FILE_IO },
316 { NULL , 0 },
317 };
318
319 int index;
320 OtErrorCheckLng (Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
321 sizeof(struct LookupClassS), "enum", TCL_EXACT, &index));
322 *ret = keys[index].val;
323 return TCL_OK;
324}
@ CONFIG_ERRROR_FILE_IO
Definition LcEnum_lc.h:233
@ CONFIG_ERRROR_PARSE
Definition LcEnum_lc.h:234
@ CONFIG_ERRROR_NONE
Definition LcEnum_lc.h:232

◆ tcllcconfig_LcConfig_ConfigFormatE_FromInt()

static OT_ProcRet tcllcconfig_LcConfig_ConfigFormatE_FromInt ( OtClass_ARGS )
static

Tcl: (static) LcConfigFormatE [LcConfig ConfigFormatE_FromInt value:int32] C-API
return the LcConfigFormatE from integer …

Definition at line 419 of file LibLcConfig_tcl.c.

419 {
422 MK_I32 value = 0;
425 enum LcConfigFormatE value_out;
427 OT_retObj_SET(OT_NEW_Lc_enum_OBJ(ConfigFormatE,value_out));
428 goto end;
429 error:
431 end:
433}
#define ConfigFormatE_FromInt_doc
#define OT_SETUP_hdl_static
#define OT_NEW_Lc_enum_OBJ(typ, val)
#define OT_CHECK_NI4(val)
#define OT_retObj_SET(val)
#define MkErrorC_Check(mng, PROC)
enum MkErrorE LcConfigFormatE_FromInt(MK_I32 const value, enum LcConfigFormatE *value_out)
return the LcConfigFormatE from integer …
#define MK_ERROR_FORMAT
signed int MK_I32

◆ tcllcconfig_LcConfig_ConfigFormatE_ToInt()

static OT_ProcRet tcllcconfig_LcConfig_ConfigFormatE_ToInt ( OtClass_ARGS )
static

Tcl: (static) int32 [LcConfig ConfigFormatE_ToInt value:LcConfigFormatE] C-API
return the LcConfigFormatE as integer …

Definition at line 506 of file LibLcConfig_tcl.c.

506 {
509 enum LcConfigFormatE value = 0;
513 goto end;
514 error:
516 end:
518}
#define ConfigFormatE_ToInt_doc
#define OT_retObj_SET_I32(nat)
static MK_I32 LcConfigFormatE_ToInt(enum LcConfigFormatE value)
return the LcConfigFormatE as integer …
Definition LcEnum_lc.h:58

◆ tcllcconfig_LcConfig_ConfigFormatE_ToString()

static OT_ProcRet tcllcconfig_LcConfig_ConfigFormatE_ToString ( OtClass_ARGS )
static

Tcl: (static) string [LcConfig ConfigFormatE_ToString value:LcConfigFormatE] C-API
return the LcConfigFormatE as string …

Definition at line 521 of file LibLcConfig_tcl.c.

521 {
524 enum LcConfigFormatE value = 0;
528 goto end;
529 error:
531 end:
533}
#define ConfigFormatE_ToString_doc
#define OT_retObj_SET_STR(nat)
MK_STRN LcConfigFormatE_ToString(enum LcConfigFormatE value)
return the LcConfigFormatE as string …

◆ tcllcconfig_LcConfig_ConfigOptionsEF_FromInt()

static OT_ProcRet tcllcconfig_LcConfig_ConfigOptionsEF_FromInt ( OtClass_ARGS )
static

Tcl: (static) LcConfigOptionsEF [LcConfig ConfigOptionsEF_FromInt value:int32] C-API
return the LcConfigOptionsEF from integer …

Definition at line 436 of file LibLcConfig_tcl.c.

436 {
439 MK_I32 value = 0;
442 enum LcConfigOptionsEF value_out;
444 OT_retObj_SET(OT_NEW_Lc_enum_OBJ(ConfigOptionsEF,value_out));
445 goto end;
446 error:
448 end:
450}
#define ConfigOptionsEF_FromInt_doc
enum MkErrorE LcConfigOptionsEF_FromInt(MK_I32 const value, enum LcConfigOptionsEF *value_out)
return the LcConfigOptionsEF from integer …

◆ tcllcconfig_LcConfig_ConfigOptionsEF_ToInt()

static OT_ProcRet tcllcconfig_LcConfig_ConfigOptionsEF_ToInt ( OtClass_ARGS )
static

Tcl: (static) int32 [LcConfig ConfigOptionsEF_ToInt value:LcConfigOptionsEF] C-API
return the LcConfigOptionsEF as integer …

Definition at line 536 of file LibLcConfig_tcl.c.

536 {
539 enum LcConfigOptionsEF value = 0;
543 goto end;
544 error:
546 end:
548}
#define ConfigOptionsEF_ToInt_doc
static MK_I32 LcConfigOptionsEF_ToInt(enum LcConfigOptionsEF value)
return the LcConfigOptionsEF as integer …
Definition LcEnum_lc.h:169

◆ tcllcconfig_LcConfig_ConfigOptionsEF_ToString()

static OT_ProcRet tcllcconfig_LcConfig_ConfigOptionsEF_ToString ( OtClass_ARGS )
static

Tcl: (static) string [LcConfig ConfigOptionsEF_ToString value:LcConfigOptionsEF] C-API
return the LcConfigOptionsEF as string …

Definition at line 551 of file LibLcConfig_tcl.c.

551 {
554 enum LcConfigOptionsEF value = 0;
558 goto end;
559 error:
561 end:
563}
#define ConfigOptionsEF_ToString_doc
MK_STRN LcConfigOptionsEF_ToString(enum LcConfigOptionsEF value)
return the LcConfigOptionsEF as string …

◆ tcllcconfig_LcConfig_ConfigTypeE_FromInt()

static OT_ProcRet tcllcconfig_LcConfig_ConfigTypeE_FromInt ( OtClass_ARGS )
static

Tcl: (static) LcConfigTypeE [LcConfig ConfigTypeE_FromInt value:int32] C-API
return the LcConfigTypeE from integer …

Definition at line 453 of file LibLcConfig_tcl.c.

453 {
456 MK_I32 value = 0;
459 enum LcConfigTypeE value_out;
461 OT_retObj_SET(OT_NEW_Lc_enum_OBJ(ConfigTypeE,value_out));
462 goto end;
463 error:
465 end:
467}
#define ConfigTypeE_FromInt_doc
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:81
enum MkErrorE LcConfigTypeE_FromInt(MK_I32 const value, enum LcConfigTypeE *value_out)
return the LcConfigTypeE from integer …

◆ tcllcconfig_LcConfig_ConfigTypeE_ToInt()

static OT_ProcRet tcllcconfig_LcConfig_ConfigTypeE_ToInt ( OtClass_ARGS )
static

Tcl: (static) int32 [LcConfig ConfigTypeE_ToInt value:LcConfigTypeE] C-API
return the LcConfigTypeE as integer …

Definition at line 566 of file LibLcConfig_tcl.c.

566 {
569 enum LcConfigTypeE value = 0;
573 goto end;
574 error:
576 end:
578}
#define ConfigTypeE_ToInt_doc
static MK_I32 LcConfigTypeE_ToInt(enum LcConfigTypeE value)
return the LcConfigTypeE as integer …
Definition LcEnum_lc.h:113

◆ tcllcconfig_LcConfig_ConfigTypeE_ToString()

static OT_ProcRet tcllcconfig_LcConfig_ConfigTypeE_ToString ( OtClass_ARGS )
static

Tcl: (static) string [LcConfig ConfigTypeE_ToString value:LcConfigTypeE] C-API
return the LcConfigTypeE as string …

Definition at line 581 of file LibLcConfig_tcl.c.

581 {
584 enum LcConfigTypeE value = 0;
588 goto end;
589 error:
591 end:
593}
#define ConfigTypeE_ToString_doc
MK_STRN LcConfigTypeE_ToString(enum LcConfigTypeE value)
return the LcConfigTypeE as string …

◆ tcllcconfig_LcConfig_ErrorE_FromInt()

static OT_ProcRet tcllcconfig_LcConfig_ErrorE_FromInt ( OtClass_ARGS )
static

Tcl: (static) LcErrorE [LcConfig ErrorE_FromInt value:int32] C-API
return the LcErrorE from integer …

Definition at line 470 of file LibLcConfig_tcl.c.

470 {
473 MK_I32 value = 0;
476 enum LcErrorE value_out;
478 OT_retObj_SET(OT_NEW_Lc_enum_OBJ(ErrorE,value_out));
479 goto end;
480 error:
482 end:
484}
#define ErrorE_FromInt_doc
LcErrorE
Signals an error and is used as the return value of a function …
Definition LcEnum_lc.h:191
enum MkErrorE LcErrorE_FromInt(MK_I32 const value, enum LcErrorE *value_out)
return the LcErrorE from integer …

◆ tcllcconfig_LcConfig_ErrorE_ToInt()

static OT_ProcRet tcllcconfig_LcConfig_ErrorE_ToInt ( OtClass_ARGS )
static

Tcl: (static) int32 [LcConfig ErrorE_ToInt value:LcErrorE] C-API
return the LcErrorE as integer …

Definition at line 596 of file LibLcConfig_tcl.c.

596 {
599 enum LcErrorE value = 0;
603 goto end;
604 error:
606 end:
608}
#define ErrorE_ToInt_doc
static MK_I32 LcErrorE_ToInt(enum LcErrorE value)
return the LcErrorE as integer …
Definition LcEnum_lc.h:208

◆ tcllcconfig_LcConfig_ErrorE_ToString()

static OT_ProcRet tcllcconfig_LcConfig_ErrorE_ToString ( OtClass_ARGS )
static

Tcl: (static) string [LcConfig ErrorE_ToString value:LcErrorE] C-API
return the LcErrorE as string …

Definition at line 611 of file LibLcConfig_tcl.c.

611 {
614 enum LcErrorE value = 0;
618 goto end;
619 error:
621 end:
623}
#define ErrorE_ToString_doc
MK_STRN LcErrorE_ToString(enum LcErrorE value)
return the LcErrorE as string …

◆ tcllcconfig_LcConfig_ErrorTypeE_FromInt()

static OT_ProcRet tcllcconfig_LcConfig_ErrorTypeE_FromInt ( OtClass_ARGS )
static

Tcl: (static) LcErrorTypeE [LcConfig ErrorTypeE_FromInt value:int32] C-API
return the LcErrorTypeE from integer …

Definition at line 487 of file LibLcConfig_tcl.c.

487 {
490 MK_I32 value = 0;
493 enum LcErrorTypeE value_out;
495 OT_retObj_SET(OT_NEW_Lc_enum_OBJ(ErrorTypeE,value_out));
496 goto end;
497 error:
499 end:
501}
#define ErrorTypeE_FromInt_doc
enum MkErrorE LcErrorTypeE_FromInt(MK_I32 const value, enum LcErrorTypeE *value_out)
return the LcErrorTypeE from integer …
LcErrorTypeE
error types
Definition LcEnum_lc.h:231

◆ tcllcconfig_LcConfig_ErrorTypeE_ToInt()

static OT_ProcRet tcllcconfig_LcConfig_ErrorTypeE_ToInt ( OtClass_ARGS )
static

Tcl: (static) int32 [LcConfig ErrorTypeE_ToInt value:LcErrorTypeE] C-API
return the LcErrorTypeE as integer …

Definition at line 626 of file LibLcConfig_tcl.c.

626 {
629 enum LcErrorTypeE value = 0;
633 goto end;
634 error:
636 end:
638}
#define ErrorTypeE_ToInt_doc
static MK_I32 LcErrorTypeE_ToInt(enum LcErrorTypeE value)
return the LcErrorTypeE as integer …
Definition LcEnum_lc.h:249

◆ tcllcconfig_LcConfig_ErrorTypeE_ToString()

static OT_ProcRet tcllcconfig_LcConfig_ErrorTypeE_ToString ( OtClass_ARGS )
static

Tcl: (static) string [LcConfig ErrorTypeE_ToString value:LcErrorTypeE] C-API
return the LcErrorTypeE as string …

Definition at line 641 of file LibLcConfig_tcl.c.

641 {
644 enum LcErrorTypeE value = 0;
648 goto end;
649 error:
651 end:
653}
#define ErrorTypeE_ToString_doc
MK_STRN LcErrorTypeE_ToString(enum LcErrorTypeE value)
return the LcErrorTypeE as string …

◆ tcllcconfig_LcConfigFormatE_ToString()

OT_OBJ_T tcllcconfig_LcConfigFormatE_ToString ( const enum LcConfigFormatE type)

Definition at line 121 of file LibLcConfig_tcl.c.

122{
123 switch (type) {
124 case CONFIG_FORMAT_DEFAULT : return ot_fixstrobj("DEFAULT") ;
125 case CONFIG_FORMAT_HEX : return ot_fixstrobj("HEX" ) ;
126 }
127 return ot_fixstrobj("NOTHING");
128}
#define ot_fixstrobj(_s)

◆ tcllcconfig_LcConfigOptionsEF_ToString()

OT_OBJ_T tcllcconfig_LcConfigOptionsEF_ToString ( const enum LcConfigOptionsEF type)

Definition at line 130 of file LibLcConfig_tcl.c.

131{
132 if (type == CONFIG_OPTION_NONE) {
133 return ot_fixstrobj("NONE");
134 } else {
135 OT_OBJ_T tmpO = Tcl_NewObj();
136 if (mk_bit_compare(type,CONFIG_OPTION_AUTOCONVERT )) ot_enum_append(tmpO,"AUTOCONVERT" ) ;
137 if (mk_bit_compare(type,CONFIG_OPTION_SEMICOLON_SEPARATORS )) ot_enum_append(tmpO,"SEMICOLON_SEPARATORS" ) ;
138 if (mk_bit_compare(type,CONFIG_OPTION_COLON_ASSIGNMENT_FOR_GROUPS )) ot_enum_append(tmpO,"COLON_ASSIGNMENT_FOR_GROUPS" ) ;
139 if (mk_bit_compare(type,CONFIG_OPTION_COLON_ASSIGNMENT_FOR_NON_GROUPS)) ot_enum_append(tmpO,"COLON_ASSIGNMENT_FOR_NON_GROUPS") ;
140 if (mk_bit_compare(type,CONFIG_OPTION_OPEN_BRACE_ON_SEPARATE_LINE )) ot_enum_append(tmpO,"OPEN_BRACE_ON_SEPARATE_LINE" ) ;
141 if (mk_bit_compare(type,CONFIG_OPTION_ALLOW_SCIENTIFIC_NOTATION )) ot_enum_append(tmpO,"ALLOW_SCIENTIFIC_NOTATION" ) ;
142 if (mk_bit_compare(type,CONFIG_OPTION_FSYNC )) ot_enum_append(tmpO,"FSYNC" ) ;
143 if (mk_bit_compare(type,CONFIG_OPTION_ALLOW_OVERRIDES )) ot_enum_append(tmpO,"ALLOW_OVERRIDES" ) ;
144 return tmpO;
145 }
146}
#define ot_enum_append(_o, _s)
#define mk_bit_compare(t, f)

◆ tcllcconfig_LcConfigTypeE_ToString()

OT_OBJ_T tcllcconfig_LcConfigTypeE_ToString ( const enum LcConfigTypeE type)

Definition at line 148 of file LibLcConfig_tcl.c.

149{
150 switch (type) {
151 case CONFIG_TYPE_NONE : return ot_fixstrobj("NONE" ) ;
152 case CONFIG_TYPE_GROUP : return ot_fixstrobj("GROUP" ) ;
153 case CONFIG_TYPE_INT : return ot_fixstrobj("INT" ) ;
154 case CONFIG_TYPE_INT64 : return ot_fixstrobj("INT64" ) ;
155 case CONFIG_TYPE_FLOAT : return ot_fixstrobj("FLOAT" ) ;
156 case CONFIG_TYPE_STRING : return ot_fixstrobj("STRING") ;
157 case CONFIG_TYPE_BOOL : return ot_fixstrobj("BOOL" ) ;
158 case CONFIG_TYPE_ARRAY : return ot_fixstrobj("ARRAY" ) ;
159 case CONFIG_TYPE_LIST : return ot_fixstrobj("LIST" ) ;
160 }
161 return ot_fixstrobj("NOTHING");
162}

◆ tcllcconfig_LcErrorE_ToString()

OT_OBJ_T tcllcconfig_LcErrorE_ToString ( const enum LcErrorE type)

Definition at line 164 of file LibLcConfig_tcl.c.

165{
166 switch (type) {
167 case CONFIG_FALSE : return ot_fixstrobj("FALSE") ;
168 case CONFIG_TRUE : return ot_fixstrobj("TRUE" ) ;
169 }
170 return ot_fixstrobj("NOTHING");
171}

◆ tcllcconfig_LcErrorTypeE_ToString()

OT_OBJ_T tcllcconfig_LcErrorTypeE_ToString ( const enum LcErrorTypeE type)

Definition at line 173 of file LibLcConfig_tcl.c.

174{
175 switch (type) {
176 case CONFIG_ERRROR_NONE : return ot_fixstrobj("NONE" ) ;
177 case CONFIG_ERRROR_FILE_IO : return ot_fixstrobj("FILE_IO") ;
178 case CONFIG_ERRROR_PARSE : return ot_fixstrobj("PARSE" ) ;
179 }
180 return ot_fixstrobj("NOTHING");
181}