#include <OOC/SymbolTable/Uses.oh>
#include <Object.oh>
#include <Err.oh>
#include <Strings.oh>
#define OOC_SymbolTable_Uses__useOfObject 1
#define OOC_SymbolTable_Uses__definition 2
#define OOC_SymbolTable_Uses__deprecated 3
static OOC_SymbolTable_Uses__ErrorContext OOC_SymbolTable_Uses__usesContext;
static void OOC_SymbolTable_Uses__InitUses(OOC_SymbolTable_Uses__Uses u, OOC_SymbolTable_Uses__Selector selector);
static void OOC_SymbolTable_Uses__AddMsg(OOC_SymbolTable_Uses__Uses u, OOC_SymbolTable__Name ident, OOC_INT32 code);

/* run-time meta data */
static RT0__ModuleDesc _mid;
RT0__StructDesc _td_OOC_SymbolTable_Uses__Uses = { (RT0__Struct[]){&_td_OOC_SymbolTable_Uses__UsesDesc}, NULL, NULL, &_mid, (OOC_CHAR8*)"Uses", 4, -1, 0, RT0__strPointer };
RT0__StructDesc _td_OOC_SymbolTable_Uses__1023 = { (RT0__Struct[]){&_td_OOC_SymbolTable__Name}, NULL, NULL, &_mid, NULL, 4, 1, 0, RT0__strOpenArray };
RT0__StructDesc _td_OOC_SymbolTable_Uses__Selector = { (RT0__Struct[]){&_td_OOC_SymbolTable_Uses__1023}, NULL, NULL, &_mid, (OOC_CHAR8*)"Selector", 4, -1, 0, RT0__strPointer };
RT0__StructDesc _td_OOC_SymbolTable_Uses__1077 = { (RT0__Struct[]){&_td_OOC_SymbolTable_Uses__1077}, (void*[]){}, NULL, &_mid, NULL, 8, 0, 0, RT0__strRecord };
RT0__StructDesc _td_OOC_SymbolTable_Uses__1068 = { (RT0__Struct[]){&_td_OOC_SymbolTable_Uses__1077}, NULL, NULL, &_mid, NULL, 8, 1, 0, RT0__strOpenArray };
RT0__StructDesc _td_OOC_SymbolTable_Uses__StoredUses = { (RT0__Struct[]){&_td_OOC_SymbolTable_Uses__1068}, NULL, NULL, &_mid, (OOC_CHAR8*)"StoredUses", 4, -1, 0, RT0__strPointer };
RT0__StructDesc _td_OOC_SymbolTable_Uses__UsesDesc = { (RT0__Struct[]){&_td_OOC_SymbolTable_Uses__UsesDesc}, (void*[]){(void*)OOC_SymbolTable_Uses__UsesDesc_TrackingDeclarations,(void*)OOC_SymbolTable_Uses__UsesDesc_StartModule,(void*)OOC_SymbolTable_Uses__UsesDesc_Matches,(void*)OOC_SymbolTable_Uses__UsesDesc_RegisterSymTab}, NULL, &_mid, (OOC_CHAR8*)"UsesDesc", 24, 0, 0, RT0__strRecord };
RT0__StructDesc _td_OOC_SymbolTable_Uses__ErrorContext = { (RT0__Struct[]){&_td_OOC_SymbolTable_Uses__ErrorContextDesc}, NULL, NULL, &_mid, (OOC_CHAR8*)"ErrorContext", 4, -1, 0, RT0__strPointer };
RT0__StructDesc _td_OOC_SymbolTable_Uses__ErrorContextDesc = { (RT0__Struct[]){&_td_Msg__ContextDesc,&_td_OOC_Error__ContextDesc,&_td_OOC_SymbolTable_Uses__ErrorContextDesc}, (void*[]){(void*)OOC_SymbolTable_Uses__ErrorContextDesc_GetTemplate,(void*)OOC_Error__ContextDesc_BaseTemplate}, NULL, &_mid, (OOC_CHAR8*)"ErrorContextDesc", 4, 2, 0, RT0__strRecord };
RT0__StructDesc _td_OOC_SymbolTable_Uses__1756 = { (RT0__Struct[]){&RT0__longchar}, NULL, NULL, &_mid, NULL, 256, 128, (1<<RT0__flagAtomic), RT0__strArray };
RT0__StructDesc _td_OOC_SymbolTable_Uses__2691 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 1, 1, (1<<RT0__flagAtomic), RT0__strOpenArray };
RT0__StructDesc _td_OOC_SymbolTable_Uses__2988 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 1, 1, (1<<RT0__flagAtomic), RT0__strOpenArray };
RT0__StructDesc _td_OOC_SymbolTable_Uses__3102 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 1024, 1024, (1<<RT0__flagAtomic), RT0__strArray };
static RT0__ModuleDesc _mid = { (OOC_CHAR8*)"OOC:SymbolTable:Uses", (RT0__Struct[]) { &_td_OOC_SymbolTable_Uses__Uses, &_td_OOC_SymbolTable_Uses__Selector, &_td_OOC_SymbolTable_Uses__StoredUses, &_td_OOC_SymbolTable_Uses__UsesDesc, &_td_OOC_SymbolTable_Uses__ErrorContext, &_td_OOC_SymbolTable_Uses__ErrorContextDesc, NULL }, 0 };

extern void OOC_OOC_SymbolTable_Uses_open(RT0__Module client) {
  if (_mid.openCount == 0) {
    OOC_Object_open(&_mid);
    OOC_Err_open(&_mid);
    OOC_Strings_open(&_mid);
    OOC_OOC_Error_open(&_mid);
    OOC_OOC_SymbolTable_open(&_mid);
    OOC_RT0_open(&_mid);
    OOC_Object_open(&_mid);
    OOC_Exception_open(&_mid);

    RT0__RegisterModule(&_mid);
    OOC_OOC_SymbolTable_Uses_init();
  }
  _mid.openCount++;
}
extern void OOC_OOC_SymbolTable_Uses_close(RT0__Module client) {
  _mid.openCount--;
  if (_mid.openCount == 0) { 
    OOC_OOC_SymbolTable_Uses_destroy();
    RT0__UnregisterModule(&_mid);

    OOC_Object_close(&_mid);
    OOC_Err_close(&_mid);
    OOC_Strings_close(&_mid);
    OOC_OOC_Error_close(&_mid);
    OOC_OOC_SymbolTable_close(&_mid);
    OOC_RT0_close(&_mid);
    OOC_Object_close(&_mid);
    OOC_Exception_close(&_mid);
  }
}

/* --- */
