11#define META_FILE_NAME "LibLcConfig_atl.c"
16#define OtClass_ARGS OBJCMD_ARGS
18#define OT_SETUP_hdl_static \
21 MK_UNUSED OT_LC_RT_T alcrt = clientData; \
22 MK_UNUSED OT_MK_RT_T amkrt = alcrt->amkrt; \
23 MK_UNUSED MK_RT mkrt = alcrt->mkrt; \
24 MK_UNUSED MK_ERR hdl = &MkERROR;
32#define LcCleanupTmpl()
81#define ConfigFormatE_FromInt_doc "LcConfigFormatE [LcConfig::ConfigFormatE_FromInt value:int32]"
82#define ConfigOptionsEF_FromInt_doc "LcConfigOptionsEF [LcConfig::ConfigOptionsEF_FromInt value:int32]"
83#define ConfigTypeE_FromInt_doc "LcConfigTypeE [LcConfig::ConfigTypeE_FromInt value:int32]"
84#define ErrorE_FromInt_doc "LcErrorE [LcConfig::ErrorE_FromInt value:int32]"
85#define ErrorTypeE_FromInt_doc "LcErrorTypeE [LcConfig::ErrorTypeE_FromInt value:int32]"
88#define ConfigFormatE_ToInt_doc "int32 [LcConfig::ConfigFormatE_ToInt value:LcConfigFormatE]"
89#define ConfigFormatE_ToString_doc "string [LcConfig::ConfigFormatE_ToString value:LcConfigFormatE]"
90#define ConfigOptionsEF_ToInt_doc "int32 [LcConfig::ConfigOptionsEF_ToInt value:LcConfigOptionsEF]"
91#define ConfigOptionsEF_ToString_doc "string [LcConfig::ConfigOptionsEF_ToString value:LcConfigOptionsEF]"
92#define ConfigTypeE_ToInt_doc "int32 [LcConfig::ConfigTypeE_ToInt value:LcConfigTypeE]"
93#define ConfigTypeE_ToString_doc "string [LcConfig::ConfigTypeE_ToString value:LcConfigTypeE]"
94#define ErrorE_ToInt_doc "int32 [LcConfig::ErrorE_ToInt value:LcErrorE]"
95#define ErrorE_ToString_doc "string [LcConfig::ErrorE_ToString value:LcErrorE]"
96#define ErrorTypeE_ToInt_doc "int32 [LcConfig::ErrorTypeE_ToInt value:LcErrorTypeE]"
97#define ErrorTypeE_ToString_doc "string [LcConfig::ErrorTypeE_ToString value:LcErrorTypeE]"
100#define Cleanup_doc "LcConfig::Cleanup"
101#define Setup_doc "LcConfig::Setup"
204 check_LNG(Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
205 sizeof(
struct LookupClassS),
"enum", TCL_EXACT, &index))
return TCL_ERROR;
206 *ret = keys[index].
val;
281 check_LNG(Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
282 sizeof(
struct LookupClassS),
"enum", TCL_EXACT, &index))
return TCL_ERROR;
283 *ret = keys[index].
val;
297 check_LNG(Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
298 sizeof(
struct LookupClassS),
"enum", TCL_EXACT, &index))
return TCL_ERROR;
299 *ret = keys[index].
val;
318 check_LNG(Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
319 sizeof(
struct LookupClassS),
"enum", TCL_EXACT, &index))
return TCL_ERROR;
320 *ret = keys[index].
val;
702 {
"::LcConfig::ConfigFormatE_FromInt" ,
NS(LcConfig_ConfigFormatE_FromInt) },
703 {
"::LcConfig::ConfigOptionsEF_FromInt" ,
NS(LcConfig_ConfigOptionsEF_FromInt) },
704 {
"::LcConfig::ConfigTypeE_FromInt" ,
NS(LcConfig_ConfigTypeE_FromInt) },
705 {
"::LcConfig::ErrorE_FromInt" ,
NS(LcConfig_ErrorE_FromInt) },
706 {
"::LcConfig::ErrorTypeE_FromInt" ,
NS(LcConfig_ErrorTypeE_FromInt) },
709 {
"::LcConfig::ConfigFormatE_ToInt" ,
NS(LcConfig_ConfigFormatE_ToInt) },
710 {
"::LcConfig::ConfigFormatE_ToString" ,
NS(LcConfig_ConfigFormatE_ToString) },
711 {
"::LcConfig::ConfigOptionsEF_ToInt" ,
NS(LcConfig_ConfigOptionsEF_ToInt) },
712 {
"::LcConfig::ConfigOptionsEF_ToString" ,
NS(LcConfig_ConfigOptionsEF_ToString) },
713 {
"::LcConfig::ConfigTypeE_ToInt" ,
NS(LcConfig_ConfigTypeE_ToInt) },
714 {
"::LcConfig::ConfigTypeE_ToString" ,
NS(LcConfig_ConfigTypeE_ToString) },
715 {
"::LcConfig::ErrorE_ToInt" ,
NS(LcConfig_ErrorE_ToInt) },
716 {
"::LcConfig::ErrorE_ToString" ,
NS(LcConfig_ErrorE_ToString) },
717 {
"::LcConfig::ErrorTypeE_ToInt" ,
NS(LcConfig_ErrorTypeE_ToInt) },
718 {
"::LcConfig::ErrorTypeE_ToString" ,
NS(LcConfig_ErrorTypeE_ToString) },
721 {
"::LcConfig::Cleanup" ,
NS(LcConfig_Cleanup) },
722 {
"::LcConfig::Setup" ,
NS(LcConfig_Setup) },
742void NS(LcConfig_ns_delete)(ClientData clientData)
745 assert(alcrt != NULL);
748#ifdef OT_DEBUG_NAMESPACE_DELETE
757 ns = Tcl_FindNamespace(interp,
"::LcSettingC",NULL,TCL_GLOBAL_ONLY);
758 if (ns) Tcl_DeleteNamespace(ns);
759 ns = Tcl_FindNamespace(interp,
"::LcConfigC",NULL,TCL_GLOBAL_ONLY);
760 if (ns) Tcl_DeleteNamespace(ns);
764 #define AtlRtFree(tok) if (alcrt->tok) { Tcl_DecrRefCount(alcrt->tok); alcrt->tok = NULL; }
765 #define regTclObj2(t,v) AtlRtFree(t)
766 #define regTclObj(t) AtlRtFree(t)
767 #define regTclCmd(t) AtlRtFree(t)
800 if (Tcl_InitStubs (interp,
"8.5",
false) == NULL) {
809 check_LNG (Tcl_PkgProvideEx (interp,
"atllcconfig", META_VERSION, &
alcrtR ));
812 if (Tcl_GetVar(interp,
"::tcl::newPkgs", TCL_GLOBAL_ONLY) != NULL)
return TCL_OK;
816 MK_STRN ver = Tcl_PkgRequireEx(interp,
"atlmkkernel", META_VERSION, 1, (ClientData*) &amkrt);
817 if (ver == NULL)
return TCL_ERROR;
824 alcrt->
amkrt = amkrt;
827 Tcl_SetErrorCode(interp,
"ATLLC",
"INIT",
"SIGNATURE",
"INVALID", NULL);
828 Tcl_SetResult(interp,
"error: ATLLC setup failed with INVALID signature", TCL_STATIC);
833 #define regTclObj2(t,v) alcrt->t = alcrt->t ? alcrt->t : ({ OT_OBJ_T val=STR2VAL(v); Tcl_IncrRefCount(val); val;})
834 #define regTclObj(t) regTclObj2(t,#t)
835 #define regTclCmd(t) regTclObj2(t,#t)
842 OT_NS_T ns = Tcl_FindNamespace(interp,
"::LcConfig",NULL,TCL_GLOBAL_ONLY);
844 ns = Tcl_CreateNamespace(interp,
"::LcConfig",alcrt,
NS(LcConfig_ns_delete));
845 if (ns == NULL)
return TCL_ERROR;
867 OT_NS_T ns = Tcl_FindNamespace(interp,
"::LcConfig",NULL,TCL_GLOBAL_ONLY);
868 if (ns) Tcl_DeleteNamespace(ns);
#define ConfigOptionsEF_FromInt_doc
#define ConfigFormatE_ToInt_doc
#define ConfigFormatE_ToString_doc
#define ConfigOptionsEF_ToString_doc
#define ErrorTypeE_FromInt_doc
#define ConfigOptionsEF_ToInt_doc
#define ErrorE_ToString_doc
#define ConfigFormatE_FromInt_doc
#define OT_SETUP_hdl_static
#define ErrorE_FromInt_doc
#define ConfigTypeE_FromInt_doc
#define ErrorTypeE_ToInt_doc
__thread OT_LC_RT_S alcrtR
#define ConfigTypeE_ToInt_doc
#define ErrorTypeE_ToString_doc
#define ConfigTypeE_ToString_doc
OT_ATL_EXTERN int Atllcconfig_Unload(Tcl_Interp *interp, int flags)
#define OT_LC_RT_SIG
identify the custom runtime
#define OT_NEW_Lc_enum_OBJ(typ, val)
initialize the LcConfig package
#define OT_SETUP_NOARG(d)
#define OT_SETUP_ONEARG(d)
#define OT_DEBUG_NAMESPACE_DELETE(...)
#define OT_CHECK_NI4(val)
#define OT_retObj_SET_Error
#define ot_enum_append(_o, _s)
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#define OT_retObj_SET_I32(nat)
#define OT_CHECK_ENUM(ename, val)
#define OT_retObj_SET_STR(nat)
#define OT_retObj_SET(val)
#define MkErrorC_Check(mng, PROC)
static MK_I32 LcConfigTypeE_ToInt(enum LcConfigTypeE value)
return the LcConfigTypeE as integer …
MK_STRN LcErrorE_ToString(enum LcErrorE value)
return the LcErrorE as string …
static MK_I32 LcErrorE_ToInt(enum LcErrorE value)
return the LcErrorE as integer …
LcErrorE
Signals an error and is used as the return value of a function …
static MK_I32 LcErrorTypeE_ToInt(enum LcErrorTypeE value)
return the LcErrorTypeE as integer …
enum MkErrorE LcConfigFormatE_FromInt(MK_I32 const value, enum LcConfigFormatE *value_out)
return the LcConfigFormatE from integer …
static MK_I32 LcConfigOptionsEF_ToInt(enum LcConfigOptionsEF value)
return the LcConfigOptionsEF as integer …
LcConfigFormatE
set the format of a LcSettingC …
LcConfigOptionsEF
define the configuration-option of a LcConfigC …
static MK_I32 LcConfigFormatE_ToInt(enum LcConfigFormatE value)
return the LcConfigFormatE as integer …
MK_STRN LcConfigTypeE_ToString(enum LcConfigTypeE value)
return the LcConfigTypeE as string …
enum MkErrorE LcErrorTypeE_FromInt(MK_I32 const value, enum LcErrorTypeE *value_out)
return the LcErrorTypeE from integer …
MK_STRN LcErrorTypeE_ToString(enum LcErrorTypeE value)
return the LcErrorTypeE as string …
MK_STRN LcConfigOptionsEF_ToString(enum LcConfigOptionsEF value)
return the LcConfigOptionsEF as string …
LcConfigTypeE
define the data-type of a LcSettingC …
enum MkErrorE LcConfigOptionsEF_FromInt(MK_I32 const value, enum LcConfigOptionsEF *value_out)
return the LcConfigOptionsEF from integer …
enum MkErrorE LcErrorE_FromInt(MK_I32 const value, enum LcErrorE *value_out)
return the LcErrorE from integer …
enum MkErrorE LcConfigTypeE_FromInt(MK_I32 const value, enum LcConfigTypeE *value_out)
return the LcConfigTypeE from integer …
MK_STRN LcConfigFormatE_ToString(enum LcConfigFormatE value)
return the LcConfigFormatE as string …
void LcSetup(void)
setup atllcconfig internal memory …
void LcCleanup(void)
cleanup atllcconfig internal memory …
#define mk_bit_compare(t, f)
#define CONFIG_TYPE_STRING
#define CONFIG_TYPE_ARRAY
#define CONFIG_FORMAT_DEFAULT
#define CONFIG_OPTION_SEMICOLON_SEPARATORS
#define CONFIG_OPTION_FSYNC
#define CONFIG_OPTION_AUTOCONVERT
#define CONFIG_TYPE_GROUP
#define CONFIG_FORMAT_HEX
#define CONFIG_OPTION_ALLOW_SCIENTIFIC_NOTATION
#define CONFIG_TYPE_INT64
#define CONFIG_OPTION_COLON_ASSIGNMENT_FOR_NON_GROUPS
#define CONFIG_OPTION_OPEN_BRACE_ON_SEPARATE_LINE
#define CONFIG_OPTION_ALLOW_OVERRIDES
#define CONFIG_TYPE_FLOAT
#define CONFIG_OPTION_COLON_ASSIGNMENT_FOR_GROUPS
OT_OBJ_T AtlLcSettingC_MK_NULL
OT_OBJ_T AtlLcConfigC_MK_NULL