1 #include <Msg.oh>
2 #include <Strings.oh>
3 #include <LongStrings.oh>
4 #include <IntStr.oh>
5 
6 /* run-time meta data */
7 static RT0__ModuleDesc _mid;
8 RT0__StructDesc _td_Msg__String = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, (OOC_CHAR8*)"String", 1, 1, (1<<RT0__flagAtomic), RT0__strOpenArray };
9 RT0__StructDesc _td_Msg__StringPtr = { (RT0__Struct[]){&_td_Msg__String}, NULL, NULL, &_mid, (OOC_CHAR8*)"StringPtr", 8, -1, 0, RT0__strPointer };
10 RT0__StructDesc _td_Msg__LString = { (RT0__Struct[]){&RT0__longchar}, NULL, NULL, &_mid, (OOC_CHAR8*)"LString", 2, 1, (1<<RT0__flagAtomic), RT0__strOpenArray };
11 RT0__StructDesc _td_Msg__LStringPtr = { (RT0__Struct[]){&_td_Msg__LString}, NULL, NULL, &_mid, (OOC_CHAR8*)"LStringPtr", 8, -1, 0, RT0__strPointer };
12 RT0__StructDesc _td_Msg__Attribute = { (RT0__Struct[]){&_td_Msg__AttributeDesc}, NULL, NULL, &_mid, (OOC_CHAR8*)"Attribute", 8, -1, 0, RT0__strPointer };
13 RT0__StructDesc _td_Msg__AttributeDesc = { (RT0__Struct[]){&_td_Msg__AttributeDesc}, (void*[]){(void*)Msg__AttributeDesc_ReplacementText}, NULL, &_mid, (OOC_CHAR8*)"AttributeDesc", 16, 0, 0, RT0__strRecord };
14 RT0__StructDesc _td_Msg__Context = { (RT0__Struct[]){&_td_Msg__ContextDesc}, NULL, NULL, &_mid, (OOC_CHAR8*)"Context", 8, -1, 0, RT0__strPointer };
15 RT0__StructDesc _td_Msg__ContextDesc = { (RT0__Struct[]){&_td_Msg__ContextDesc}, (void*[]){(void*)Msg__ContextDesc_GetTemplate}, NULL, &_mid, (OOC_CHAR8*)"ContextDesc", 8, 0, 0, RT0__strRecord };
16 RT0__StructDesc _td_Msg__Msg = { (RT0__Struct[]){&_td_Msg__MsgDesc}, NULL, NULL, &_mid, (OOC_CHAR8*)"Msg", 8, -1, 0, RT0__strPointer };
17 RT0__StructDesc _td_Msg__MsgDesc = { (RT0__Struct[]){&_td_Msg__MsgDesc}, (void*[]){(void*)Msg__MsgDesc_SetAttribute,(void*)Msg__MsgDesc_GetAttribute,(void*)Msg__MsgDesc_GetLText,(void*)Msg__MsgDesc_GetText,(void*)Msg__MsgDesc_SetIntAttrib,(void*)Msg__MsgDesc_SetStringAttrib,(void*)Msg__MsgDesc_SetLStringAttrib,(void*)Msg__MsgDesc_SetMsgAttrib}, NULL, &_mid, (OOC_CHAR8*)"MsgDesc", 40, 0, 0, RT0__strRecord };
18 RT0__StructDesc _td_Msg__MsgList = { (RT0__Struct[]){&_td_Msg__MsgListDesc}, NULL, NULL, &_mid, (OOC_CHAR8*)"MsgList", 8, -1, 0, RT0__strPointer };
19 RT0__StructDesc _td_Msg__MsgListDesc = { (RT0__Struct[]){&_td_Msg__MsgListDesc}, (void*[]){(void*)Msg__MsgListDesc_Append,(void*)Msg__MsgListDesc_AppendList}, NULL, &_mid, (OOC_CHAR8*)"MsgListDesc", 24, 0, 0, RT0__strRecord };
20 RT0__StructDesc _td_Msg__IntAttribute = { (RT0__Struct[]){&_td_Msg__IntAttributeDesc}, NULL, NULL, &_mid, (OOC_CHAR8*)"IntAttribute", 8, -1, 0, RT0__strPointer };
21 RT0__StructDesc _td_Msg__IntAttributeDesc = { (RT0__Struct[]){&_td_Msg__AttributeDesc,&_td_Msg__IntAttributeDesc}, (void*[]){(void*)Msg__IntAttributeDesc_ReplacementText}, NULL, &_mid, (OOC_CHAR8*)"IntAttributeDesc", 24, 1, 0, RT0__strRecord };
22 RT0__StructDesc _td_Msg__StringAttribute = { (RT0__Struct[]){&_td_Msg__StringAttributeDesc}, NULL, NULL, &_mid, (OOC_CHAR8*)"StringAttribute", 8, -1, 0, RT0__strPointer };
23 RT0__StructDesc _td_Msg__StringAttributeDesc = { (RT0__Struct[]){&_td_Msg__AttributeDesc,&_td_Msg__StringAttributeDesc}, (void*[]){(void*)Msg__StringAttributeDesc_ReplacementText}, NULL, &_mid, (OOC_CHAR8*)"StringAttributeDesc", 24, 1, 0, RT0__strRecord };
24 RT0__StructDesc _td_Msg__LStringAttribute = { (RT0__Struct[]){&_td_Msg__LStringAttributeDesc}, NULL, NULL, &_mid, (OOC_CHAR8*)"LStringAttribute", 8, -1, 0, RT0__strPointer };
25 RT0__StructDesc _td_Msg__LStringAttributeDesc = { (RT0__Struct[]){&_td_Msg__AttributeDesc,&_td_Msg__LStringAttributeDesc}, (void*[]){(void*)Msg__LStringAttributeDesc_ReplacementText}, NULL, &_mid, (OOC_CHAR8*)"LStringAttributeDesc", 24, 1, 0, RT0__strRecord };
26 RT0__StructDesc _td_Msg__MsgAttribute = { (RT0__Struct[]){&_td_Msg__MsgAttributeDesc}, NULL, NULL, &_mid, (OOC_CHAR8*)"MsgAttribute", 8, -1, 0, RT0__strPointer };
27 RT0__StructDesc _td_Msg__MsgAttributeDesc = { (RT0__Struct[]){&_td_Msg__AttributeDesc,&_td_Msg__MsgAttributeDesc}, (void*[]){(void*)Msg__MsgAttributeDesc_ReplacementText}, NULL, &_mid, (OOC_CHAR8*)"MsgAttributeDesc", 24, 1, 0, RT0__strRecord };
28 RT0__StructDesc _td_Msg__7793 = { (RT0__Struct[]){&RT0__longchar}, NULL, NULL, &_mid, NULL, 32768, 16384, (1<<RT0__flagAtomic), RT0__strArray };
29 RT0__StructDesc _td_Msg__11704 = { (RT0__Struct[]){&RT0__longchar}, NULL, NULL, &_mid, NULL, 262, 131, (1<<RT0__flagAtomic), RT0__strArray };
30 RT0__StructDesc _td_Msg__11750 = { (RT0__Struct[]){&RT0__longchar}, NULL, NULL, &_mid, NULL, 32768, 16384, (1<<RT0__flagAtomic), RT0__strArray };
31 RT0__StructDesc _td_Msg__11843 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 48, 48, (1<<RT0__flagAtomic), RT0__strArray };
32 RT0__StructDesc _td_Msg__13285 = { (RT0__Struct[]){&RT0__longchar}, NULL, NULL, &_mid, NULL, 65534, 32767, (1<<RT0__flagAtomic), RT0__strArray };
33 RT0__StructDesc _td_Msg__15658 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 48, 48, (1<<RT0__flagAtomic), RT0__strArray };
34 static RT0__ModuleDesc _mid = { (OOC_CHAR8*)"Msg", (RT0__Struct[]) { &_td_Msg__String, &_td_Msg__StringPtr, &_td_Msg__LString, &_td_Msg__LStringPtr, &_td_Msg__Attribute, &_td_Msg__AttributeDesc, &_td_Msg__Context, &_td_Msg__ContextDesc, &_td_Msg__Msg, &_td_Msg__MsgDesc, &_td_Msg__MsgList, &_td_Msg__MsgListDesc, &_td_Msg__IntAttribute, &_td_Msg__IntAttributeDesc, &_td_Msg__StringAttribute, &_td_Msg__StringAttributeDesc, &_td_Msg__LStringAttribute, &_td_Msg__LStringAttributeDesc, &_td_Msg__MsgAttribute, &_td_Msg__MsgAttributeDesc, NULL }, 0 };
35 
OOC_Msg_open(RT0__Module client)36 extern void OOC_Msg_open(RT0__Module client) {
37   if (_mid.openCount == 0) {
38     OOC_CharClass_open(&_mid);
39     OOC_Strings_open(&_mid);
40     OOC_LongStrings_open(&_mid);
41     OOC_IntStr_open(&_mid);
42     OOC_RT0_open(&_mid);
43     OOC_Object_open(&_mid);
44     OOC_Exception_open(&_mid);
45 
46     RT0__RegisterModule(&_mid);
47     OOC_Msg_init();
48   }
49   _mid.openCount++;
50 }
OOC_Msg_close(RT0__Module client)51 extern void OOC_Msg_close(RT0__Module client) {
52   _mid.openCount--;
53   if (_mid.openCount == 0) {
54     OOC_Msg_destroy();
55     RT0__UnregisterModule(&_mid);
56 
57     OOC_CharClass_close(&_mid);
58     OOC_Strings_close(&_mid);
59     OOC_LongStrings_close(&_mid);
60     OOC_IntStr_close(&_mid);
61     OOC_RT0_close(&_mid);
62     OOC_Object_close(&_mid);
63     OOC_Exception_close(&_mid);
64   }
65 }
66 
67 /* --- */
68