static void* _c0;
static void* _c1;
static void* _c2;
static void* _c3;
static void* _c4;
static void* _c5;
static void* _c6;
static void* _c7;
static void* _c8;
static void* _c9;
static void* _c10;
static void* _c11;
static void* _c12;
static void* _c13;
static void* _c14;
static void* _c15;
static void* _c16;
static void* _c17;
static void* _c18;
#include <IO/TextRider.oh>
#include <Exception.oh>
#include <Strings.oh>
#include <RealStr.oh>
#include <IntStr.oh>
static void IO_TextRider__SetError(IO_TextRider__Writer w);
static void IO_TextRider__WritePad(IO_TextRider__Writer w, OOC_INT32 n);
static OOC_CHAR8 IO_TextRider__HexDigit(OOC_CHAR8 ch);
static OOC_CHAR8 IO_TextRider__HexToInt(const OOC_CHAR8 str__ref[], OOC_LEN str_0d, OOC_INT32 *lint);

/* run-time meta data */
static RT0__ModuleDesc _mid;
RT0__StructDesc _td_IO_TextRider__OverflowError = { (RT0__Struct[]){&_td_IO_TextRider__OverflowErrorDesc}, NULL, NULL, &_mid, (OOC_CHAR8*)"OverflowError", 4, -1, 0, RT0__strPointer };
RT0__StructDesc _td_IO_TextRider__OverflowErrorDesc = { (RT0__Struct[]){&_td_Exception__ExceptionDesc,&_td_Exception__CheckedDesc,&_td_IO__ErrorDesc,&_td_IO_TextRider__OverflowErrorDesc}, (void*[]){(void*)IO__ErrorDesc_INIT,(void*)Exception__ExceptionDesc_GetMessage,(void*)Exception__ExceptionDesc_WriteBacktrace,(void*)Exception__ExceptionDesc_Name}, NULL, &_mid, (OOC_CHAR8*)"OverflowErrorDesc", 92, 3, 0, RT0__strRecord };
RT0__StructDesc _td_IO_TextRider__Writer = { (RT0__Struct[]){&_td_IO_TextRider__WriterDesc}, NULL, NULL, &_mid, (OOC_CHAR8*)"Writer", 4, -1, 0, RT0__strPointer };
RT0__StructDesc _td_IO_TextRider__WriterDesc = { (RT0__Struct[]){&_td_IO_TextRider__WriterDesc}, (void*[]){(void*)IO_TextRider__WriterDesc_INIT,(void*)IO_TextRider__WriterDesc_SetEol,(void*)IO_TextRider__WriterDesc_WriteString,(void*)IO_TextRider__WriterDesc_WriteStringRegion,(void*)IO_TextRider__WriterDesc_WriteObject,(void*)IO_TextRider__WriterDesc_WriteBool,(void*)IO_TextRider__WriterDesc_WriteChar,(void*)IO_TextRider__WriterDesc_WriteLInt,(void*)IO_TextRider__WriterDesc_WriteSInt,(void*)IO_TextRider__WriterDesc_WriteInt,(void*)IO_TextRider__WriterDesc_WriteHex,(void*)IO_TextRider__WriterDesc_WriteLReal,(void*)IO_TextRider__WriterDesc_WriteReal,(void*)IO_TextRider__WriterDesc_WriteLRealFix,(void*)IO_TextRider__WriterDesc_WriteRealFix,(void*)IO_TextRider__WriterDesc_WriteLRealEng,(void*)IO_TextRider__WriterDesc_WriteRealEng,(void*)IO_TextRider__WriterDesc_WriteSet,(void*)IO_TextRider__WriterDesc_WriteLn}, NULL, &_mid, (OOC_CHAR8*)"WriterDesc", 12, 0, 0, RT0__strRecord };
RT0__StructDesc _td_IO_TextRider__2386 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 2, 2, (1<<RT0__flagAtomic), RT0__strArray };
RT0__StructDesc _td_IO_TextRider__2565 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 1, 1, (1<<RT0__flagAtomic), RT0__strOpenArray };
RT0__StructDesc _td_IO_TextRider__Buffer = { (RT0__Struct[]){&_td_IO_TextRider__2565}, NULL, NULL, &_mid, (OOC_CHAR8*)"Buffer", 4, -1, 0, RT0__strPointer };
RT0__StructDesc _td_IO_TextRider__Reader = { (RT0__Struct[]){&_td_IO_TextRider__ReaderDesc}, NULL, NULL, &_mid, (OOC_CHAR8*)"Reader", 4, -1, 0, RT0__strPointer };
RT0__StructDesc _td_IO_TextRider__ReaderDesc = { (RT0__Struct[]){&_td_IO_TextRider__ReaderDesc}, (void*[]){(void*)IO_TextRider__ReaderDesc_INIT,(void*)IO_TextRider__ReaderDesc_SetEOL,(void*)IO_TextRider__ReaderDesc_AquireBufferWithSize,(void*)IO_TextRider__ReaderDesc_ReadLineBuffer,(void*)IO_TextRider__ReaderDesc_ConsumeWhiteSpace,(void*)IO_TextRider__ReaderDesc_ReadChar,(void*)IO_TextRider__ReaderDesc_ReadString,(void*)IO_TextRider__ReaderDesc_ReadLInt,(void*)IO_TextRider__ReaderDesc_ReadInt,(void*)IO_TextRider__ReaderDesc_ReadSInt,(void*)IO_TextRider__ReaderDesc_ReadIdentifier,(void*)IO_TextRider__ReaderDesc_ReadBool,(void*)IO_TextRider__ReaderDesc_ReadHex,(void*)IO_TextRider__ReaderDesc_ReadLn,(void*)IO_TextRider__ReaderDesc_ReadLine}, NULL, &_mid, (OOC_CHAR8*)"ReaderDesc", 24, 0, 0, RT0__strRecord };
RT0__StructDesc _td_IO_TextRider__4703 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 1, 1, (1<<RT0__flagAtomic), RT0__strOpenArray };
RT0__StructDesc _td_IO_TextRider__5609 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 1, 1, (1<<RT0__flagAtomic), RT0__strOpenArray };
RT0__StructDesc _td_IO_TextRider__5858 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 1, 1, (1<<RT0__flagAtomic), RT0__strOpenArray };
RT0__StructDesc _td_IO_TextRider__7472 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 16, 16, (1<<RT0__flagAtomic), RT0__strArray };
RT0__StructDesc _td_IO_TextRider__8935 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 128, 128, (1<<RT0__flagAtomic), RT0__strArray };
RT0__StructDesc _td_IO_TextRider__9304 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 128, 128, (1<<RT0__flagAtomic), RT0__strArray };
RT0__StructDesc _td_IO_TextRider__9743 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 128, 128, (1<<RT0__flagAtomic), RT0__strArray };
RT0__StructDesc _td_IO_TextRider__10120 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 128, 128, (1<<RT0__flagAtomic), RT0__strArray };
RT0__StructDesc _td_IO_TextRider__10560 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 128, 128, (1<<RT0__flagAtomic), RT0__strArray };
RT0__StructDesc _td_IO_TextRider__10935 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 128, 128, (1<<RT0__flagAtomic), RT0__strArray };
RT0__StructDesc _td_IO_TextRider__17219 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 1, 1, (1<<RT0__flagAtomic), RT0__strOpenArray };
RT0__StructDesc _td_IO_TextRider__21133 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 1, 1, (1<<RT0__flagAtomic), RT0__strOpenArray };
RT0__StructDesc _td_IO_TextRider__22450 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 8, 8, (1<<RT0__flagAtomic), RT0__strArray };
RT0__StructDesc _td_IO_TextRider__22837 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 1, 1, (1<<RT0__flagAtomic), RT0__strOpenArray };
RT0__StructDesc _td_IO_TextRider__26004 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 1, 1, (1<<RT0__flagAtomic), RT0__strOpenArray };
static RT0__ModuleDesc _mid = { (OOC_CHAR8*)"IO:TextRider", (RT0__Struct[]) { &_td_IO_TextRider__OverflowError, &_td_IO_TextRider__OverflowErrorDesc, &_td_IO_TextRider__Writer, &_td_IO_TextRider__WriterDesc, &_td_IO_TextRider__Buffer, &_td_IO_TextRider__Reader, &_td_IO_TextRider__ReaderDesc, NULL }, 0 };

extern void OOC_IO_TextRider_open(RT0__Module client) {
  if (_mid.openCount == 0) {
    OOC_Ascii_open(&_mid);
    OOC_CharClass_open(&_mid);
    OOC_Exception_open(&_mid);
    OOC_Strings_open(&_mid);
    OOC_LRealStr_open(&_mid);
    OOC_RealStr_open(&_mid);
    OOC_IntStr_open(&_mid);
    OOC_Object_open(&_mid);
    OOC_IO_open(&_mid);
    OOC_RT0_open(&_mid);
    OOC_Object_open(&_mid);
    OOC_Exception_open(&_mid);

    RT0__RegisterModule(&_mid);
    OOC_IO_TextRider_init();
  }
  _mid.openCount++;
}
extern void OOC_IO_TextRider_close(RT0__Module client) {
  _mid.openCount--;
  if (_mid.openCount == 0) { 
    OOC_IO_TextRider_destroy();
    RT0__UnregisterModule(&_mid);

    OOC_Ascii_close(&_mid);
    OOC_CharClass_close(&_mid);
    OOC_Exception_close(&_mid);
    OOC_Strings_close(&_mid);
    OOC_LRealStr_close(&_mid);
    OOC_RealStr_close(&_mid);
    OOC_IntStr_close(&_mid);
    OOC_Object_close(&_mid);
    OOC_IO_close(&_mid);
    OOC_RT0_close(&_mid);
    OOC_Object_close(&_mid);
    OOC_Exception_close(&_mid);
  }
}

/* --- */
