Created
July 9, 2015 22:30
-
-
Save zielmicha/379d3fef91819172196e to your computer and use it in GitHub Desktop.
NimDT_122012_kind is an array of 28 elements, but see line 2329 for example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Generated by Nim Compiler v0.11.3 */ | |
/* (c) 2015 Andreas Rumpf */ | |
/* The generated code is subject to the original license. */ | |
/* Compiled for: Linux, amd64, gcc */ | |
/* Command for C compiler: | |
gcc -c -w -g -I/home/michal/apps/nim/lib -I./dbus -o /home/michal/networkos/nim-dbus/dbus/private/tests/nimcache/dbus_dbus.o /home/michal/networkos/nim-dbus/dbus/private/tests/nimcache/dbus_dbus.c */ | |
#define NIM_INTBITS 64 | |
#include "nimbase.h" | |
#include <string.h> | |
#include <setjmp.h> | |
typedef struct BusHEX3Aobjecttype121026 BusHEX3Aobjecttype121026; | |
typedef struct Dbusconnection118867 Dbusconnection118867; | |
typedef struct NimStringDesc NimStringDesc; | |
typedef struct TGenericSeq TGenericSeq; | |
typedef struct TNimType TNimType; | |
typedef struct TNimNode TNimNode; | |
typedef struct Dbuserror118061 Dbuserror118061; | |
typedef struct Exception Exception; | |
typedef struct TNimObject TNimObject; | |
typedef struct TSafePoint TSafePoint; | |
typedef struct Dbusexception121021 Dbusexception121021; | |
typedef struct Cell47547 Cell47547; | |
typedef struct Cellseq47563 Cellseq47563; | |
typedef struct Gcheap49416 Gcheap49416; | |
typedef struct Cellset47559 Cellset47559; | |
typedef struct Pagedesc47555 Pagedesc47555; | |
typedef struct Memregion29487 Memregion29487; | |
typedef struct Smallchunk29443 Smallchunk29443; | |
typedef struct Llchunk29481 Llchunk29481; | |
typedef struct Bigchunk29445 Bigchunk29445; | |
typedef struct Intset29417 Intset29417; | |
typedef struct Trunk29413 Trunk29413; | |
typedef struct Avlnode29485 Avlnode29485; | |
typedef struct Gcstat49414 Gcstat49414; | |
typedef struct Uniquebus121031 Uniquebus121031; | |
typedef struct DbustypeHEX3Aobjecttype121461 DbustypeHEX3Aobjecttype121461; | |
typedef struct TY121466 TY121466; | |
typedef struct TY121658 TY121658; | |
typedef struct Slice87451 Slice87451; | |
typedef struct DbusvalueHEX3Aobjecttype122012 DbusvalueHEX3Aobjecttype122012; | |
typedef struct TY122015 TY122015; | |
typedef struct Valueerror3449 Valueerror3449; | |
typedef struct Message122336 Message122336; | |
typedef struct Dbusmessage118231 Dbusmessage118231; | |
typedef struct Pendingcall122386 Pendingcall122386; | |
typedef struct Dbuspendingcall118862 Dbuspendingcall118862; | |
typedef struct Dbusmessageiter118239 Dbusmessageiter118239; | |
typedef struct Reply122663 Reply122663; | |
typedef struct Dbusremoteexception121023 Dbusremoteexception121023; | |
typedef struct Basechunk29441 Basechunk29441; | |
typedef struct Freecell29433 Freecell29433; | |
typedef N_CDECL_PTR(void, TY119035) (Dbusconnection118867* connection); | |
struct BusHEX3Aobjecttype121026 { | |
Dbusconnection118867* conn; | |
}; | |
typedef N_CDECL_PTR(unsigned int, TY120418) (void); | |
struct TGenericSeq { | |
NI len; | |
NI reserved; | |
}; | |
struct NimStringDesc { | |
TGenericSeq Sup; | |
NIM_CHAR data[SEQ_DECL_SIZE]; | |
}; | |
typedef N_NIMCALL_PTR(void, TY3289) (void* p, NI op); | |
typedef N_NIMCALL_PTR(void*, TY3294) (void* p); | |
struct TNimType { | |
NI size; | |
NU8 kind; | |
NU8 flags; | |
TNimType* base; | |
TNimNode* node; | |
void* finalizer; | |
TY3289 marker; | |
TY3294 deepcopy; | |
}; | |
struct TNimNode { | |
NU8 kind; | |
NI offset; | |
TNimType* typ; | |
NCSTRING name; | |
NI len; | |
TNimNode** sons; | |
}; | |
struct Dbuserror118061 { | |
NCSTRING name; | |
NCSTRING message; | |
unsigned int dummy5bits; | |
void* padding1; | |
}; | |
typedef N_CDECL_PTR(void, TY118070) (Dbuserror118061* error); | |
typedef N_CDECL_PTR(Dbusconnection118867*, TY119712) (NI32 type_119713, Dbuserror118061* error); | |
typedef N_CDECL_PTR(unsigned int, TY118119) (Dbuserror118061* error); | |
struct TNimObject { | |
TNimType* m_type; | |
}; | |
struct Exception { | |
TNimObject Sup; | |
Exception* parent; | |
NCSTRING name; | |
NimStringDesc* message; | |
NimStringDesc* trace; | |
}; | |
typedef struct { | |
N_NIMCALL_PTR(NIM_BOOL, ClPrc) (Exception* e, void* ClEnv); | |
void* ClEnv; | |
} TY17411; | |
struct TSafePoint { | |
TSafePoint* prev; | |
NI status; | |
jmp_buf context; | |
NIM_BOOL hasRaiseAction; | |
TY17411 raiseAction; | |
}; | |
struct Dbusexception121021 { | |
Exception Sup; | |
}; | |
struct Cell47547 { | |
NI refcount; | |
TNimType* typ; | |
}; | |
struct Cellseq47563 { | |
NI len; | |
NI cap; | |
Cell47547** d; | |
}; | |
struct Cellset47559 { | |
NI counter; | |
NI max; | |
Pagedesc47555* head; | |
Pagedesc47555** data; | |
}; | |
typedef Smallchunk29443* TY29502[512]; | |
typedef Trunk29413* Trunkbuckets29415[256]; | |
struct Intset29417 { | |
Trunkbuckets29415 data; | |
}; | |
struct Memregion29487 { | |
NI minlargeobj; | |
NI maxlargeobj; | |
TY29502 freesmallchunks; | |
Llchunk29481* llmem; | |
NI currmem; | |
NI maxmem; | |
NI freemem; | |
NI lastsize; | |
Bigchunk29445* freechunkslist; | |
Intset29417 chunkstarts; | |
Avlnode29485* root; | |
Avlnode29485* deleted; | |
Avlnode29485* last; | |
Avlnode29485* freeavlnodes; | |
}; | |
struct Gcstat49414 { | |
NI stackscans; | |
NI cyclecollections; | |
NI maxthreshold; | |
NI maxstacksize; | |
NI maxstackcells; | |
NI cycletablesize; | |
NI64 maxpause; | |
}; | |
struct Gcheap49416 { | |
void* stackbottom; | |
NI cyclethreshold; | |
Cellseq47563 zct; | |
Cellseq47563 decstack; | |
Cellset47559 cycleroots; | |
Cellseq47563 tempstack; | |
NI recgclock; | |
Memregion29487 region; | |
Gcstat49414 stat; | |
}; | |
typedef N_CDECL_PTR(void, TY118077) (Dbuserror118061* error); | |
struct Uniquebus121031 { | |
BusHEX3Aobjecttype121026* bus; | |
NimStringDesc* uniquename; | |
}; | |
typedef N_CDECL_PTR(void, TY119086) (Dbusconnection118867* connection); | |
struct DbustypeHEX3Aobjecttype121461 { | |
NU8 kind; | |
union{ | |
struct {DbustypeHEX3Aobjecttype121461* itemtype; | |
} S1; | |
struct {DbustypeHEX3Aobjecttype121461* keytype; | |
DbustypeHEX3Aobjecttype121461* valuetype; | |
} S2; | |
struct {TY121466* itemtypes; | |
} S3; | |
} kindU; | |
}; | |
struct TY121658 { | |
DbustypeHEX3Aobjecttype121461* Field0; | |
NimStringDesc* Field1; | |
}; | |
struct Slice87451 { | |
NI a; | |
NI b; | |
}; | |
struct DbusvalueHEX3Aobjecttype122012 { | |
NU8 kind; | |
union{ | |
struct {DbustypeHEX3Aobjecttype121461* arrayvaluetype; | |
TY122015* arrayvalue; | |
} S1; | |
struct {NIM_BOOL boolvalue; | |
} S2; | |
struct {DbustypeHEX3Aobjecttype121461* dictkeytype; | |
DbustypeHEX3Aobjecttype121461* dictvaluetype; | |
} S3; | |
struct {NF doublevalue; | |
} S4; | |
struct {NimStringDesc* signaturevalue; | |
} S5; | |
struct {int fdvalue; | |
} S6; | |
struct {NI32 int32value; | |
} S7; | |
struct {NI16 int16value; | |
} S8; | |
struct {NimStringDesc* objectpathvalue; | |
} S9; | |
struct {NU16 uint16value; | |
} S10; | |
struct {NimStringDesc* stringvalue; | |
} S11; | |
struct {TY122015* structvalues; | |
} S12; | |
struct {NU64 uint64value; | |
} S13; | |
struct {NU32 uint32value; | |
} S14; | |
struct {NI64 int64value; | |
} S15; | |
struct {NU8 bytevalue; | |
} S16; | |
} kindU; | |
}; | |
struct Valueerror3449 { | |
Exception Sup; | |
}; | |
struct Message122336 { | |
Dbusmessage118231* msg; | |
}; | |
typedef N_CDECL_PTR(Dbusmessage118231*, TY118283) (NCSTRING path, NCSTRING iface, NCSTRING name); | |
typedef N_CDECL_PTR(Dbusmessage118231*, TY118265) (NCSTRING busname, NCSTRING path, NCSTRING iface, NCSTRING method_118269); | |
typedef N_CDECL_PTR(unsigned int, TY119164) (Dbusconnection118867* connection, Dbusmessage118231* message, unsigned int* clientserial); | |
typedef N_CDECL_PTR(void, TY118328) (Dbusmessage118231* message); | |
struct Pendingcall122386 { | |
Dbuspendingcall118862* call; | |
BusHEX3Aobjecttype121026* bus; | |
}; | |
typedef N_CDECL_PTR(unsigned int, TY119175) (Dbusconnection118867* connection, Dbusmessage118231* message, Dbuspendingcall118862** pendingreturn, int timeoutmilliseconds); | |
typedef N_CDECL_PTR(unsigned int, TY118694) (Dbusmessageiter118239* iter, int type_118697, void* value); | |
struct Dbusmessageiter118239 { | |
void* dummy1; | |
void* dummy2; | |
unsigned int dummy3; | |
int dummy4; | |
int dummy5; | |
int dummy6; | |
int dummy7; | |
int dummy8; | |
int dummy9; | |
int dummy10; | |
int dummy11; | |
int pad1; | |
int pad2; | |
void* pad3; | |
}; | |
typedef N_CDECL_PTR(unsigned int, TY118713) (Dbusmessageiter118239* iter, int type_118716, NCSTRING containedsignature, Dbusmessageiter118239* sub); | |
typedef N_CDECL_PTR(unsigned int, TY118724) (Dbusmessageiter118239* iter, Dbusmessageiter118239* sub); | |
typedef N_CDECL_PTR(void, TY118685) (Dbusmessage118231* message, Dbusmessageiter118239* iter); | |
struct Reply122663 { | |
Dbusmessage118231* msg; | |
}; | |
typedef N_CDECL_PTR(int, TY118335) (Dbusmessage118231* message); | |
typedef N_CDECL_PTR(NCSTRING, TY118419) (Dbusmessage118231* message); | |
struct Dbusremoteexception121023 { | |
Dbusexception121021 Sup; | |
}; | |
typedef N_CDECL_PTR(void, TY119900) (Dbuspendingcall118862* pending); | |
typedef N_CDECL_PTR(Dbusmessage118231*, TY119892) (Dbuspendingcall118862* pending); | |
typedef N_CDECL_PTR(void, TY119861) (Dbuspendingcall118862* pending); | |
struct Dbusconnection118867 { | |
char dummy; | |
}; | |
typedef NI TY29422[8]; | |
struct Pagedesc47555 { | |
Pagedesc47555* next; | |
NI key; | |
TY29422 bits; | |
}; | |
struct Basechunk29441 { | |
NI prevsize; | |
NI size; | |
NIM_BOOL used; | |
}; | |
struct Smallchunk29443 { | |
Basechunk29441 Sup; | |
Smallchunk29443* next; | |
Smallchunk29443* prev; | |
Freecell29433* freelist; | |
NI free; | |
NI acc; | |
NF data; | |
}; | |
struct Llchunk29481 { | |
NI size; | |
NI acc; | |
Llchunk29481* next; | |
}; | |
struct Bigchunk29445 { | |
Basechunk29441 Sup; | |
Bigchunk29445* next; | |
Bigchunk29445* prev; | |
NI align; | |
NF data; | |
}; | |
struct Trunk29413 { | |
Trunk29413* next; | |
NI key; | |
TY29422 bits; | |
}; | |
typedef Avlnode29485* TY29492[2]; | |
struct Avlnode29485 { | |
TY29492 link; | |
NI key; | |
NI upperbound; | |
NI level; | |
}; | |
struct Dbusmessage118231 { | |
char dummy; | |
}; | |
struct Dbuspendingcall118862 { | |
char dummy; | |
}; | |
struct Freecell29433 { | |
Freecell29433* next; | |
NI zerofield; | |
}; | |
struct TY121466 { | |
TGenericSeq Sup; | |
DbustypeHEX3Aobjecttype121461* data[SEQ_DECL_SIZE]; | |
}; | |
struct TY122015 { | |
TGenericSeq Sup; | |
DbusvalueHEX3Aobjecttype122012* data[SEQ_DECL_SIZE]; | |
}; | |
N_NIMCALL(NIM_BOOL, tobool_121004)(unsigned int x); | |
static N_INLINE(void, nimFrame)(TFrame* s); | |
N_NOINLINE(void, stackoverflow_21801)(void); | |
static N_INLINE(void, popFrame)(void); | |
N_NIMCALL(void, destroyconnection_121034)(BusHEX3Aobjecttype121026* bus); | |
N_NIMCALL(BusHEX3Aobjecttype121026*, getbus_121040)(NI32 bustype); | |
N_NIMCALL(void, failedassertimpl_88189)(NimStringDesc* msg); | |
N_NIMCALL(void, TMP312)(void* p, NI op); | |
N_NIMCALL(void*, newObj)(TNimType* typ, NI size); | |
static N_INLINE(void, pushSafePoint)(TSafePoint* s); | |
N_NIMCALL(void, nimGCvisit)(void* d, NI op); | |
N_NIMCALL(void, TMP314)(void* p, NI op); | |
N_NIMCALL(NimStringDesc*, cstrToNimstr)(NCSTRING str); | |
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src); | |
static N_INLINE(Cell47547*, usrtocell_51046)(void* usr); | |
static N_INLINE(void, rtladdzct_52604)(Cell47547* c); | |
N_NOINLINE(void, addzct_51017)(Cellseq47563* s, Cell47547* c); | |
N_NIMCALL(void, raiseException)(Exception* e, NCSTRING ename); | |
static N_INLINE(void, popSafePoint)(void); | |
static N_INLINE(void, setFrame)(TFrame* s); | |
N_NIMCALL(void, reraiseException)(void); | |
N_NIMCALL(void, getuniquebus_121406)(BusHEX3Aobjecttype121026* bus, NimStringDesc* uniquename, Uniquebus121031* Result); | |
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src); | |
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src); | |
N_NIMCALL(void, getuniquebus_121414)(NI32 bustype, NimStringDesc* uniquename, Uniquebus121031* Result); | |
N_NOINLINE(void, chckNil)(void* p); | |
N_NIMCALL(void, genericReset)(void* dest, TNimType* mt); | |
N_NIMCALL(void, flush_121422)(BusHEX3Aobjecttype121026* conn); | |
N_NIMCALL(DbustypeHEX3Aobjecttype121461*, fromscalar_121469)(NU8 ch); | |
N_NIMCALL(void, TMP321)(void* p, NI op); | |
N_NIMCALL(void, TMP322)(void* p, NI op); | |
N_NIMCALL(void, FieldDiscriminantCheck)(NI olddiscval, NI newdiscval, TNimNode** a, NI L); | |
N_NIMCALL(DbustypeHEX3Aobjecttype121461*, initarraytype_121604)(DbustypeHEX3Aobjecttype121461* itemtype); | |
N_NOINLINE(void, raiseFieldError)(NimStringDesc* f); | |
static N_INLINE(void, asgnRef)(void** dest, void* src); | |
static N_INLINE(void, incref_53422)(Cell47547* c); | |
static N_INLINE(NIM_BOOL, canbecycleroot_51067)(Cell47547* c); | |
static N_INLINE(void, rtladdcycleroot_51823)(Cell47547* c); | |
N_NOINLINE(void, incl_48265)(Cellset47559* s, Cell47547* cell); | |
static N_INLINE(void, decref_53004)(Cell47547* c); | |
N_NIMCALL(DbustypeHEX3Aobjecttype121461*, initdicttype_121620)(DbustypeHEX3Aobjecttype121461* keytype, DbustypeHEX3Aobjecttype121461* valuetype); | |
N_NIMCALL(DbustypeHEX3Aobjecttype121461*, initstructtype_121638)(TY121466* itemtypes); | |
N_NIMCALL(void, genericSeqAssign)(void* dest, void* src_82804, TNimType* mt); | |
N_NIMCALL(void, parsedbusfragment_121655)(NimStringDesc* signature, TY121658* Result); | |
N_NOINLINE(void, raiseIndexError)(void); | |
static N_INLINE(NimStringDesc*, HEX5BHEX5D_87444)(NimStringDesc* s, Slice87451 x); | |
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI start_78016, NI last); | |
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI first, NI last); | |
static N_INLINE(Slice87451, HEX2EHEX2E_109473)(NI a, NI b); | |
static N_INLINE(NI, subInt)(NI a, NI b); | |
N_NOINLINE(void, raiseOverflow)(void); | |
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len); | |
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize); | |
static N_INLINE(NI, chckRange)(NI i, NI a, NI b); | |
N_NOINLINE(void, raiseRangeError)(NI64 val); | |
N_NIMCALL(DbustypeHEX3Aobjecttype121461*, parsedbustype_121890)(NimStringDesc* signature); | |
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a); | |
N_NIMCALL(NimStringDesc*, makedbussignature_121911)(DbustypeHEX3Aobjecttype121461* kind); | |
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src); | |
N_NIMCALL(NimStringDesc*, rawNewString)(NI space); | |
N_NIMCALL(NimStringDesc*, nimCharToStr)(NIM_CHAR x); | |
N_NIMCALL(void*, getprimitive_122045)(DbusvalueHEX3Aobjecttype122012** val); | |
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src); | |
static N_INLINE(void, nimGCunrefNoCycle)(void* p); | |
N_NIMCALL(NimStringDesc*, getstring_122084)(DbusvalueHEX3Aobjecttype122012* val); | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122109)(NIM_BOOL val); | |
N_NIMCALL(void, TMP381)(void* p, NI op); | |
N_NIMCALL(void, TMP383)(void* p, NI op); | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122125)(NF val); | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122141)(NI16 val); | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122157)(NI32 val); | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122173)(NI64 val); | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122189)(NU16 val); | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122205)(NU32 val); | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122221)(NU64 val); | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122237)(NU8 val); | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122253)(NimStringDesc* val); | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122269)(NimStringDesc* val); | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122285)(NimStringDesc* val); | |
N_NIMCALL(Message122336, makesignal_122339)(NimStringDesc* path, NimStringDesc* iface, NimStringDesc* name); | |
N_NIMCALL(Message122336, makecall_122348)(NimStringDesc* uniquename, NimStringDesc* path, NimStringDesc* iface, NimStringDesc* name); | |
N_NIMCALL(unsigned int, sendmessage_122359)(BusHEX3Aobjecttype121026* conn, Message122336* msg); | |
N_NIMCALL(void, sendmessagewithreply_122390)(BusHEX3Aobjecttype121026* bus, Message122336* msg, Pendingcall122386* Result); | |
N_NIMCALL(void, append_122439)(Dbusmessageiter118239* iter, DbusvalueHEX3Aobjecttype122012* x); | |
N_NIMCALL(void, appendptr_122459)(Dbusmessageiter118239* iter, DbustypeHEX3Aobjecttype121461* typecode, void* data); | |
N_NIMCALL(void, appendarray_122502)(Dbusmessageiter118239* iter, NimStringDesc* sig, DbusvalueHEX3Aobjecttype122012** arr, NI arrLen0); | |
static N_INLINE(NI, addInt)(NI a, NI b); | |
N_NIMCALL(Dbusmessageiter118239, inititer_122451)(Message122336 msg); | |
N_NIMCALL(NU8, type_122673)(Reply122663 reply); | |
N_NIMCALL(NimStringDesc*, errorname_122680)(Reply122663 reply); | |
N_NIMCALL(void, raiseiferror_122687)(Reply122663 reply); | |
N_NIMCALL(void, TMP394)(void* p, NI op); | |
N_NIMCALL(Reply122663, waitforreply_122715)(Pendingcall122386 call); | |
STRING_LITERAL(TMP311, "ok ", 3); | |
STRING_LITERAL(TMP315, "not (result.conn == nil) ", 25); | |
NIM_CONST NU32 dbusscalartypes_121455 = 26812682; | |
NIM_CONST NU32 dbusstringtypes_121457 = 278592; | |
TNimNode* NimDT_121461_kind[28]; | |
STRING_LITERAL(TMP323, "not contains({dtArray, dtStruct}, ch) ", 38); | |
STRING_LITERAL(TMP324, "itemType", 8); | |
STRING_LITERAL(TMP325, "keyType", 7); | |
STRING_LITERAL(TMP326, "valueType", 9); | |
STRING_LITERAL(TMP327, "itemTypes", 9); | |
STRING_LITERAL(TMP330, "valueRet.rest[0] == \"}\"[0] ", 27); | |
STRING_LITERAL(TMP362, "leftover data in signature: $1", 30); | |
STRING_LITERAL(TMP363, "a", 1); | |
STRING_LITERAL(TMP364, "{", 1); | |
STRING_LITERAL(TMP365, "}", 1); | |
STRING_LITERAL(TMP366, "boolValue", 9); | |
STRING_LITERAL(TMP367, "doubleValue", 11); | |
STRING_LITERAL(TMP368, "int32Value", 10); | |
STRING_LITERAL(TMP369, "int16Value", 10); | |
STRING_LITERAL(TMP370, "uint16Value", 11); | |
STRING_LITERAL(TMP371, "uint64Value", 11); | |
STRING_LITERAL(TMP372, "uint32Value", 11); | |
STRING_LITERAL(TMP373, "int64Value", 10); | |
STRING_LITERAL(TMP374, "byteValue", 9); | |
STRING_LITERAL(TMP375, "value is not primitive", 22); | |
STRING_LITERAL(TMP376, "stringValue", 11); | |
STRING_LITERAL(TMP377, "signatureValue", 14); | |
STRING_LITERAL(TMP378, "objectPathValue", 15); | |
STRING_LITERAL(TMP379, "value is not string", 19); | |
TNimNode* NimDT_122012_kind[28]; | |
STRING_LITERAL(TMP384, "dbus_connection_send", 20); | |
STRING_LITERAL(TMP385, "dbus_connection_send_with_reply", 31); | |
STRING_LITERAL(TMP386, "pending call still nil", 22); | |
STRING_LITERAL(TMP387, "append_basic", 12); | |
STRING_LITERAL(TMP388, "open_container", 14); | |
STRING_LITERAL(TMP390, "close_container", 15); | |
STRING_LITERAL(TMP391, "arrayValueType", 14); | |
STRING_LITERAL(TMP392, "arrayValue", 10); | |
STRING_LITERAL(TMP393, "not serializable", 16); | |
STRING_LITERAL(TMP396, "dbus_pending_call_steal_reply", 29); | |
extern TFrame* frameptr_19042; | |
extern TY119035 Dl_119034; | |
extern TY120418 Dl_120417; | |
TNimType NTI121026; /* Bus:ObjectType */ | |
extern TNimType NTI119006; /* ptr DBusConnection */ | |
TNimType NTI121025; /* Bus */ | |
extern TY118070 Dl_118069; | |
extern TY119712 Dl_119711; | |
extern TY118119 Dl_118118; | |
extern TSafePoint* exchandler_19043; | |
extern TNimType NTI3427; /* Exception */ | |
TNimType NTI121021; /* DbusException */ | |
TNimType NTI121216; /* ref DbusException */ | |
extern Gcheap49416 gch_49448; | |
extern TY118077 Dl_118076; | |
TNimType NTI121031; /* UniqueBus */ | |
extern TNimType NTI149; /* string */ | |
extern TY119086 Dl_119085; | |
TNimType NTI121461; /* DbusType:ObjectType */ | |
TNimType NTI121436; /* DbusTypeChar */ | |
TNimType NTI121466; /* seq[DbusType] */ | |
TNimType NTI121460; /* DbusType */ | |
extern TNimNode* NimDT_121461_kind[28]; | |
extern TNimType NTI10022; /* ref Exception */ | |
extern TNimType NTI23628; /* ref ValueError */ | |
extern TNimType NTI3449; /* ValueError */ | |
TNimType NTI122012; /* DbusValue:ObjectType */ | |
TNimType NTI122015; /* seq[DbusValue] */ | |
extern TNimType NTI138; /* bool */ | |
extern TNimType NTI132; /* float64 */ | |
TNimType NTI122005; /* FD */ | |
extern TNimType NTI114; /* int32 */ | |
extern TNimType NTI112; /* int16 */ | |
extern TNimType NTI122; /* uint16 */ | |
extern TNimType NTI126; /* uint64 */ | |
extern TNimType NTI124; /* uint32 */ | |
extern TNimType NTI116; /* int64 */ | |
extern TNimType NTI120; /* uint8 */ | |
TNimType NTI122009; /* DbusValue */ | |
extern TNimNode* NimDT_122012_kind[28]; | |
extern TY118283 Dl_118282; | |
extern TY118265 Dl_118264; | |
extern TY119164 Dl_119163; | |
extern TY118328 Dl_118327; | |
extern TY119175 Dl_119174; | |
extern TY118694 Dl_118693; | |
extern TY118713 Dl_118712; | |
extern TY118724 Dl_118723; | |
extern TY118685 Dl_118684; | |
extern TY118335 Dl_118334; | |
extern TY118419 Dl_118418; | |
TNimType NTI121023; /* DbusRemoteException */ | |
TNimType NTI122702; /* ref DbusRemoteException */ | |
extern TY119900 Dl_119899; | |
extern TY119892 Dl_119891; | |
extern TY119861 Dl_119860; | |
TNimType NTI122386; /* PendingCall */ | |
extern TNimType NTI119180; /* ptr DBusPendingCall */ | |
static N_INLINE(void, nimFrame)(TFrame* s) { | |
NI LOC1; | |
LOC1 = 0; | |
{ | |
if (!(frameptr_19042 == NIM_NIL)) goto LA4; | |
LOC1 = ((NI) 0); | |
} | |
goto LA2; | |
LA4: ; | |
{ | |
LOC1 = ((NI) ((NI16)((*frameptr_19042).calldepth + ((NI16) 1)))); | |
} | |
LA2: ; | |
(*s).calldepth = ((NI16) (LOC1)); | |
(*s).prev = frameptr_19042; | |
frameptr_19042 = s; | |
{ | |
if (!((*s).calldepth == ((NI16) 2000))) goto LA9; | |
stackoverflow_21801(); | |
} | |
LA9: ; | |
} | |
static N_INLINE(void, popFrame)(void) { | |
frameptr_19042 = (*frameptr_19042).prev; | |
} | |
N_NIMCALL(NIM_BOOL, tobool_121004)(unsigned int x) { | |
NIM_BOOL result; | |
nimfr("toBool", "bus.nim") | |
result = 0; | |
nimln(3, "bus.nim"); | |
result = !((x == ((NI) 0))); | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(void, destroyconnection_121034)(BusHEX3Aobjecttype121026* bus) { | |
nimfr("destroyConnection", "bus.nim") | |
nimln(18, "bus.nim"); | |
Dl_119034((*bus).conn); | |
popFrame(); | |
} | |
N_NIMCALL(void, TMP312)(void* p, NI op) { | |
BusHEX3Aobjecttype121026* a; | |
a = (BusHEX3Aobjecttype121026*)p; | |
} | |
static N_INLINE(void, pushSafePoint)(TSafePoint* s) { | |
(*s).hasRaiseAction = NIM_FALSE; | |
(*s).prev = exchandler_19043; | |
exchandler_19043 = s; | |
} | |
N_NIMCALL(void, TMP314)(void* p, NI op) { | |
Dbusexception121021* a; | |
a = (Dbusexception121021*)p; | |
nimGCvisit((void*)(*a).Sup.parent, op); | |
nimGCvisit((void*)(*a).Sup.message, op); | |
nimGCvisit((void*)(*a).Sup.trace, op); | |
} | |
static N_INLINE(Cell47547*, usrtocell_51046)(void* usr) { | |
Cell47547* result; | |
nimfr("usrToCell", "gc.nim") | |
result = 0; | |
nimln(119, "gc.nim"); | |
result = ((Cell47547*) ((NI)((NU64)(((NI) (usr))) - (NU64)(((NI)sizeof(Cell47547)))))); | |
popFrame(); | |
return result; | |
} | |
static N_INLINE(void, rtladdzct_52604)(Cell47547* c) { | |
nimfr("rtlAddZCT", "gc.nim") | |
nimln(200, "gc.nim"); | |
addzct_51017((&gch_49448.zct), c); | |
popFrame(); | |
} | |
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) { | |
nimfr("asgnRefNoCycle", "gc.nim") | |
nimln(252, "gc.nim"); | |
{ | |
Cell47547* c; | |
if (!!((src == NIM_NIL))) goto LA3; | |
nimln(253, "gc.nim"); | |
c = usrtocell_51046(src); | |
nimln(170, "gc.nim"); | |
(*c).refcount += ((NI) 8); | |
} | |
LA3: ; | |
nimln(255, "gc.nim"); | |
{ | |
Cell47547* c; | |
if (!!(((*dest) == NIM_NIL))) goto LA7; | |
nimln(256, "gc.nim"); | |
c = usrtocell_51046((*dest)); | |
nimln(257, "gc.nim"); | |
{ | |
nimln(168, "gc.nim"); | |
(*c).refcount -= ((NI) 8); | |
nimln(169, "gc.nim"); | |
if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA11; | |
nimln(258, "gc.nim"); | |
rtladdzct_52604(c); | |
} | |
LA11: ; | |
} | |
LA7: ; | |
nimln(259, "gc.nim"); | |
(*dest) = src; | |
popFrame(); | |
} | |
static N_INLINE(void, popSafePoint)(void) { | |
exchandler_19043 = (*exchandler_19043).prev; | |
} | |
static N_INLINE(void, setFrame)(TFrame* s) { | |
frameptr_19042 = s; | |
} | |
N_NIMCALL(BusHEX3Aobjecttype121026*, getbus_121040)(NI32 bustype) { | |
BusHEX3Aobjecttype121026* result; | |
unsigned int ok; | |
Dbuserror118061 err; | |
nimfr("getBus", "bus.nim") | |
result = 0; | |
nimln(21, "bus.nim"); | |
ok = Dl_120417(); | |
nimln(22, "bus.nim"); | |
{ | |
NIM_BOOL LOC3; | |
LOC3 = 0; | |
LOC3 = tobool_121004(ok); | |
if (!!(LOC3)) goto LA4; | |
failedassertimpl_88189(((NimStringDesc*) &TMP311)); | |
} | |
LA4: ; | |
nimln(23, "bus.nim"); | |
result = (BusHEX3Aobjecttype121026*) newObj((&NTI121025), sizeof(BusHEX3Aobjecttype121026)); | |
memset((void*)(&err), 0, sizeof(err)); | |
nimln(25, "bus.nim"); | |
Dl_118069((&err)); | |
nimln(26, "bus.nim"); | |
(*result).conn = Dl_119711(bustype, (&err)); | |
nimln(27, "bus.nim"); | |
{ | |
unsigned int LOC8; | |
NIM_BOOL LOC9; | |
TSafePoint TMP313; | |
LOC8 = 0; | |
LOC8 = Dl_118118((&err)); | |
LOC9 = 0; | |
LOC9 = tobool_121004(LOC8); | |
if (!LOC9) goto LA10; | |
nimln(28, "bus.nim"); | |
pushSafePoint(&TMP313); | |
TMP313.status = setjmp(TMP313.context); | |
if (TMP313.status == 0) { | |
Dbusexception121021* volatile e_121215; | |
e_121215 = 0; | |
nimln(2338, "system.nim"); | |
e_121215 = (Dbusexception121021*) newObj((&NTI121216), sizeof(Dbusexception121021)); | |
(*e_121215).Sup.Sup.m_type = (&NTI121021); | |
nimln(2339, "system.nim"); | |
nimln(29, "bus.nim"); | |
asgnRefNoCycle((void**) (&(*e_121215).Sup.message), cstrToNimstr(err.message)); | |
raiseException((Exception*)e_121215, "DbusException"); | |
popSafePoint(); | |
} | |
else { | |
popSafePoint(); | |
setFrame((TFrame*)&FR); | |
} | |
{ | |
nimln(28, "bus.nim"); | |
Dl_118076((&err)); | |
} | |
if (TMP313.status != 0) reraiseException(); | |
} | |
LA10: ; | |
nimln(31, "bus.nim"); | |
{ | |
if (!!(!(((*result).conn == NIM_NIL)))) goto LA17; | |
failedassertimpl_88189(((NimStringDesc*) &TMP315)); | |
} | |
LA17: ; | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(void, getuniquebus_121406)(BusHEX3Aobjecttype121026* bus, NimStringDesc* uniquename, Uniquebus121031* Result) { | |
nimfr("getUniqueBus", "bus.nim") | |
nimln(34, "bus.nim"); | |
unsureAsgnRef((void**) (&(*Result).bus), bus); | |
nimln(35, "bus.nim"); | |
unsureAsgnRef((void**) (&(*Result).uniquename), copyString(uniquename)); | |
popFrame(); | |
} | |
N_NIMCALL(void, getuniquebus_121414)(NI32 bustype, NimStringDesc* uniquename, Uniquebus121031* Result) { | |
BusHEX3Aobjecttype121026* LOC1; | |
nimfr("getUniqueBus", "bus.nim") | |
nimln(38, "bus.nim"); | |
LOC1 = 0; | |
LOC1 = getbus_121040(bustype); | |
chckNil((void*)Result); | |
genericReset((void*)Result, (&NTI121031)); | |
getuniquebus_121406(LOC1, uniquename, Result); | |
popFrame(); | |
} | |
N_NIMCALL(void, flush_121422)(BusHEX3Aobjecttype121026* conn) { | |
nimfr("flush", "bus.nim") | |
nimln(41, "bus.nim"); | |
Dl_119085((*conn).conn); | |
popFrame(); | |
} | |
N_NIMCALL(void, TMP321)(void* p, NI op) { | |
TY121466* a; | |
NI LOC1; | |
a = (TY121466*)p; | |
LOC1 = 0; | |
for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) { | |
nimGCvisit((void*)a->data[LOC1], op); | |
} | |
} | |
N_NIMCALL(void, TMP322)(void* p, NI op) { | |
DbustypeHEX3Aobjecttype121461* a; | |
a = (DbustypeHEX3Aobjecttype121461*)p; | |
switch ((*a).kind) { | |
case ((NU8) 97): | |
nimGCvisit((void*)(*a).kindU.S1.itemtype, op); | |
break; | |
case ((NU8) 123): | |
nimGCvisit((void*)(*a).kindU.S2.keytype, op); | |
nimGCvisit((void*)(*a).kindU.S2.valuetype, op); | |
break; | |
case ((NU8) 114): | |
nimGCvisit((void*)(*a).kindU.S3.itemtypes, op); | |
break; | |
default: | |
break; | |
} | |
} | |
N_NIMCALL(DbustypeHEX3Aobjecttype121461*, fromscalar_121469)(NU8 ch) { | |
DbustypeHEX3Aobjecttype121461* result; | |
NU8 LOC5; | |
nimfr("fromScalar", "types.nim") | |
result = 0; | |
nimln(42, "types.nim"); | |
result = (DbustypeHEX3Aobjecttype121461*) newObj((&NTI121460), sizeof(DbustypeHEX3Aobjecttype121461)); | |
nimln(43, "types.nim"); | |
{ | |
if (!!(!(((131073 &(1<<(((ch- 97))&31)))!=0)))) goto LA3; | |
failedassertimpl_88189(((NimStringDesc*) &TMP323)); | |
} | |
LA3: ; | |
nimln(44, "types.nim"); | |
LOC5 = 0; | |
LOC5 = ch; | |
FieldDiscriminantCheck((NI)(NU)((*result).kind), (NI)(NU)(LOC5), NimDT_121461_kind, 28); | |
(*result).kind = LOC5; | |
popFrame(); | |
return result; | |
} | |
static N_INLINE(NIM_BOOL, canbecycleroot_51067)(Cell47547* c) { | |
NIM_BOOL result; | |
nimfr("canBeCycleRoot", "gc.nim") | |
result = 0; | |
nimln(122, "gc.nim"); | |
result = !((((*(*c).typ).flags &(1<<((((NU8) 1))&7)))!=0)); | |
popFrame(); | |
return result; | |
} | |
static N_INLINE(void, rtladdcycleroot_51823)(Cell47547* c) { | |
nimfr("rtlAddCycleRoot", "gc.nim") | |
nimln(190, "gc.nim"); | |
{ | |
if (!!((((NI) ((NI)((*c).refcount & ((NI) 3)))) == ((NI) 3)))) goto LA3; | |
nimln(140, "gc.nim"); | |
(*c).refcount = (NI)((NI)((*c).refcount & ((NI) -4)) | ((NI) 3)); | |
nimln(192, "gc.nim"); | |
incl_48265((&gch_49448.cycleroots), c); | |
} | |
LA3: ; | |
popFrame(); | |
} | |
static N_INLINE(void, incref_53422)(Cell47547* c) { | |
nimfr("incRef", "gc.nim") | |
nimln(217, "gc.nim"); | |
(*c).refcount = (NI)((NU64)((*c).refcount) + (NU64)(((NI) 8))); | |
nimln(220, "gc.nim"); | |
{ | |
NIM_BOOL LOC3; | |
LOC3 = 0; | |
LOC3 = canbecycleroot_51067(c); | |
if (!LOC3) goto LA4; | |
nimln(221, "gc.nim"); | |
rtladdcycleroot_51823(c); | |
} | |
LA4: ; | |
popFrame(); | |
} | |
static N_INLINE(void, decref_53004)(Cell47547* c) { | |
nimfr("decRef", "gc.nim") | |
nimln(207, "gc.nim"); | |
{ | |
nimln(168, "gc.nim"); | |
(*c).refcount -= ((NI) 8); | |
nimln(169, "gc.nim"); | |
if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3; | |
nimln(208, "gc.nim"); | |
rtladdzct_52604(c); | |
} | |
goto LA1; | |
LA3: ; | |
{ | |
NIM_BOOL LOC6; | |
nimln(209, "gc.nim"); | |
LOC6 = 0; | |
LOC6 = canbecycleroot_51067(c); | |
if (!LOC6) goto LA7; | |
nimln(212, "gc.nim"); | |
rtladdcycleroot_51823(c); | |
} | |
goto LA1; | |
LA7: ; | |
LA1: ; | |
popFrame(); | |
} | |
static N_INLINE(void, asgnRef)(void** dest, void* src) { | |
nimfr("asgnRef", "gc.nim") | |
nimln(245, "gc.nim"); | |
{ | |
Cell47547* LOC5; | |
if (!!((src == NIM_NIL))) goto LA3; | |
LOC5 = 0; | |
LOC5 = usrtocell_51046(src); | |
incref_53422(LOC5); | |
} | |
LA3: ; | |
nimln(246, "gc.nim"); | |
{ | |
Cell47547* LOC10; | |
if (!!(((*dest) == NIM_NIL))) goto LA8; | |
LOC10 = 0; | |
LOC10 = usrtocell_51046((*dest)); | |
decref_53004(LOC10); | |
} | |
LA8: ; | |
nimln(247, "gc.nim"); | |
(*dest) = src; | |
popFrame(); | |
} | |
N_NIMCALL(DbustypeHEX3Aobjecttype121461*, initarraytype_121604)(DbustypeHEX3Aobjecttype121461* itemtype) { | |
DbustypeHEX3Aobjecttype121461* result; | |
NU8 LOC1; | |
nimfr("initArrayType", "types.nim") | |
result = 0; | |
nimln(47, "types.nim"); | |
result = (DbustypeHEX3Aobjecttype121461*) newObj((&NTI121460), sizeof(DbustypeHEX3Aobjecttype121461)); | |
nimln(48, "types.nim"); | |
LOC1 = 0; | |
LOC1 = ((NU8) 97); | |
FieldDiscriminantCheck((NI)(NU)((*result).kind), (NI)(NU)(LOC1), NimDT_121461_kind, 28); | |
(*result).kind = LOC1; | |
nimln(49, "types.nim"); | |
if (!(((1 &(1<<((((*result).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP324)); | |
asgnRef((void**) (&(*result).kindU.S1.itemtype), itemtype); | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(DbustypeHEX3Aobjecttype121461*, initdicttype_121620)(DbustypeHEX3Aobjecttype121461* keytype, DbustypeHEX3Aobjecttype121461* valuetype) { | |
DbustypeHEX3Aobjecttype121461* result; | |
NU8 LOC1; | |
nimfr("initDictType", "types.nim") | |
result = 0; | |
nimln(52, "types.nim"); | |
result = (DbustypeHEX3Aobjecttype121461*) newObj((&NTI121460), sizeof(DbustypeHEX3Aobjecttype121461)); | |
nimln(53, "types.nim"); | |
LOC1 = 0; | |
LOC1 = ((NU8) 123); | |
FieldDiscriminantCheck((NI)(NU)((*result).kind), (NI)(NU)(LOC1), NimDT_121461_kind, 28); | |
(*result).kind = LOC1; | |
nimln(54, "types.nim"); | |
if (!(((67108864 &(1<<((((*result).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP325)); | |
asgnRef((void**) (&(*result).kindU.S2.keytype), keytype); | |
nimln(55, "types.nim"); | |
if (!(((67108864 &(1<<((((*result).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP326)); | |
asgnRef((void**) (&(*result).kindU.S2.valuetype), valuetype); | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(DbustypeHEX3Aobjecttype121461*, initstructtype_121638)(TY121466* itemtypes) { | |
DbustypeHEX3Aobjecttype121461* result; | |
NU8 LOC1; | |
nimfr("initStructType", "types.nim") | |
result = 0; | |
nimln(58, "types.nim"); | |
result = (DbustypeHEX3Aobjecttype121461*) newObj((&NTI121460), sizeof(DbustypeHEX3Aobjecttype121461)); | |
nimln(59, "types.nim"); | |
LOC1 = 0; | |
LOC1 = ((NU8) 114); | |
FieldDiscriminantCheck((NI)(NU)((*result).kind), (NI)(NU)(LOC1), NimDT_121461_kind, 28); | |
(*result).kind = LOC1; | |
nimln(60, "types.nim"); | |
if (!(((131072 &(1<<((((*result).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP327)); | |
genericSeqAssign((&(*result).kindU.S3.itemtypes), itemtypes, (&NTI121466)); | |
popFrame(); | |
return result; | |
} | |
static N_INLINE(NimStringDesc*, HEX5BHEX5D_87444)(NimStringDesc* s, Slice87451 x) { | |
NimStringDesc* result; | |
nimfr("[]", "system.nim") | |
result = 0; | |
nimln(2969, "system.nim"); | |
result = copyStrLast(s, x.a, x.b); | |
popFrame(); | |
return result; | |
} | |
static N_INLINE(Slice87451, HEX2EHEX2E_109473)(NI a, NI b) { | |
Slice87451 result; | |
nimfr("..", "system.nim") | |
memset((void*)(&result), 0, sizeof(result)); | |
nimln(238, "system.nim"); | |
result.a = a; | |
nimln(239, "system.nim"); | |
result.b = b; | |
popFrame(); | |
return result; | |
} | |
static N_INLINE(NI, subInt)(NI a, NI b) { | |
NI result; | |
{ result = 0; | |
result = (NI)((NU64)(a) - (NU64)(b)); | |
{ | |
NIM_BOOL LOC3; | |
LOC3 = 0; | |
LOC3 = (((NI) 0) <= (NI)(result ^ a)); | |
if (LOC3) goto LA4; | |
LOC3 = (((NI) 0) <= (NI)(result ^ (NI)((NU64) ~(b)))); | |
LA4: ; | |
if (!LOC3) goto LA5; | |
goto BeforeRet; | |
} | |
LA5: ; | |
raiseOverflow(); | |
}BeforeRet: ; | |
return result; | |
} | |
static N_INLINE(NI, chckRange)(NI i, NI a, NI b) { | |
NI result; | |
{ result = 0; | |
{ | |
NIM_BOOL LOC3; | |
LOC3 = 0; | |
LOC3 = (a <= i); | |
if (!(LOC3)) goto LA4; | |
LOC3 = (i <= b); | |
LA4: ; | |
if (!LOC3) goto LA5; | |
result = i; | |
goto BeforeRet; | |
} | |
goto LA1; | |
LA5: ; | |
{ | |
raiseRangeError(((NI64) (i))); | |
} | |
LA1: ; | |
}BeforeRet: ; | |
return result; | |
} | |
N_NIMCALL(void, parsedbusfragment_121655)(NimStringDesc* signature, TY121658* Result) { | |
nimfr("parseDbusFragment", "types.nim") | |
{ nimln(63, "types.nim"); | |
if ((NU)(((NI) 0)) > (NU)(signature->Sup.len)) raiseIndexError(); | |
switch (((NU8)(signature->data[((NI) 0)]))) { | |
case 97: | |
{ | |
TY121658 ret; | |
NI TMP328; | |
Slice87451 LOC2; | |
NimStringDesc* LOC3; | |
memset((void*)(&ret), 0, sizeof(ret)); | |
nimln(65, "types.nim"); | |
TMP328 = subInt((signature ? signature->Sup.len : 0), ((NI) 1)); | |
LOC2 = HEX2EHEX2E_109473(((NI) 1), (NI)(TMP328)); | |
LOC3 = 0; | |
LOC3 = HEX5BHEX5D_87444(signature, LOC2); | |
chckNil((void*)(&ret)); | |
memset((void*)(&ret), 0, sizeof(ret)); | |
parsedbusfragment_121655(LOC3, (&ret)); | |
nimln(66, "types.nim"); | |
unsureAsgnRef((void**) (&(*Result).Field0), initarraytype_121604(ret.Field0)); | |
unsureAsgnRef((void**) (&(*Result).Field1), copyString(ret.Field1)); | |
goto BeforeRet; | |
} | |
break; | |
case 123: | |
{ | |
TY121658 keyret; | |
NI TMP329; | |
Slice87451 LOC5; | |
NimStringDesc* LOC6; | |
TY121658 valueret; | |
TY121658 LOC7; | |
NI TMP331; | |
Slice87451 LOC12; | |
memset((void*)(&keyret), 0, sizeof(keyret)); | |
nimln(68, "types.nim"); | |
TMP329 = subInt((signature ? signature->Sup.len : 0), ((NI) 1)); | |
LOC5 = HEX2EHEX2E_109473(((NI) 1), (NI)(TMP329)); | |
LOC6 = 0; | |
LOC6 = HEX5BHEX5D_87444(signature, LOC5); | |
chckNil((void*)(&keyret)); | |
memset((void*)(&keyret), 0, sizeof(keyret)); | |
parsedbusfragment_121655(LOC6, (&keyret)); | |
memset((void*)(&valueret), 0, sizeof(valueret)); | |
nimln(69, "types.nim"); | |
memset((void*)(&LOC7), 0, sizeof(LOC7)); | |
parsedbusfragment_121655(keyret.Field1, (&LOC7)); | |
valueret.Field0 = LOC7.Field0; | |
valueret.Field1 = LOC7.Field1; | |
nimln(70, "types.nim"); | |
{ | |
if ((NU)(((NI) 0)) > (NU)(valueret.Field1->Sup.len)) raiseIndexError(); | |
if (!!(((NU8)(valueret.Field1->data[((NI) 0)]) == (NU8)(125)))) goto LA10; | |
failedassertimpl_88189(((NimStringDesc*) &TMP330)); | |
} | |
LA10: ; | |
nimln(71, "types.nim"); | |
unsureAsgnRef((void**) (&(*Result).Field0), initdicttype_121620(keyret.Field0, valueret.Field0)); | |
TMP331 = subInt((valueret.Field1 ? valueret.Field1->Sup.len : 0), ((NI) 1)); | |
LOC12 = HEX2EHEX2E_109473(((NI) 1), (NI)(TMP331)); | |
unsureAsgnRef((void**) (&(*Result).Field1), HEX5BHEX5D_87444(valueret.Field1, LOC12)); | |
goto BeforeRet; | |
} | |
break; | |
case 40: | |
{ | |
NimStringDesc* left; | |
NI TMP332; | |
Slice87451 LOC14; | |
TY121466* types; | |
NI TMP333; | |
Slice87451 LOC17; | |
nimln(73, "types.nim"); | |
TMP332 = subInt((signature ? signature->Sup.len : 0), ((NI) 1)); | |
LOC14 = HEX2EHEX2E_109473(((NI) 1), (NI)(TMP332)); | |
left = HEX5BHEX5D_87444(signature, LOC14); | |
nimln(74, "types.nim"); | |
types = (TY121466*) newSeq((&NTI121466), 0); | |
{ | |
nimln(75, "types.nim"); | |
while (1) { | |
TY121658 ret; | |
if ((NU)(((NI) 0)) > (NU)(left->Sup.len)) raiseIndexError(); | |
if (!!(((NU8)(left->data[((NI) 0)]) == (NU8)(41)))) goto LA16; | |
memset((void*)(&ret), 0, sizeof(ret)); | |
nimln(76, "types.nim"); | |
chckNil((void*)(&ret)); | |
memset((void*)(&ret), 0, sizeof(ret)); | |
parsedbusfragment_121655(left, (&ret)); | |
nimln(77, "types.nim"); | |
left = copyString(ret.Field1); | |
nimln(78, "types.nim"); | |
types = (TY121466*) incrSeq(&(types)->Sup, sizeof(DbustypeHEX3Aobjecttype121461*)); | |
asgnRef((void**) (&types->data[types->Sup.len-1]), ret.Field0); | |
} LA16: ; | |
} | |
nimln(79, "types.nim"); | |
unsureAsgnRef((void**) (&(*Result).Field0), initstructtype_121638(types)); | |
TMP333 = subInt((left ? left->Sup.len : 0), ((NI) 1)); | |
LOC17 = HEX2EHEX2E_109473(((NI) 1), (NI)(TMP333)); | |
unsureAsgnRef((void**) (&(*Result).Field1), HEX5BHEX5D_87444(left, LOC17)); | |
goto BeforeRet; | |
} | |
break; | |
default: | |
{ | |
NU8 kind; | |
NI TMP334; | |
Slice87451 LOC19; | |
nimln(81, "types.nim"); | |
if ((NU)(((NI) 0)) > (NU)(signature->Sup.len)) raiseIndexError(); | |
kind = ((NU8)chckRange(((NU8)(signature->data[((NI) 0)])), ((NU8) 97), ((NU8) 123))); | |
nimln(82, "types.nim"); | |
unsureAsgnRef((void**) (&(*Result).Field0), fromscalar_121469(kind)); | |
TMP334 = subInt((signature ? signature->Sup.len : 0), ((NI) 1)); | |
LOC19 = HEX2EHEX2E_109473(((NI) 1), (NI)(TMP334)); | |
unsureAsgnRef((void**) (&(*Result).Field1), HEX5BHEX5D_87444(signature, LOC19)); | |
goto BeforeRet; | |
} | |
break; | |
} | |
}BeforeRet: ; | |
popFrame(); | |
} | |
N_NIMCALL(DbustypeHEX3Aobjecttype121461*, parsedbustype_121890)(NimStringDesc* signature) { | |
DbustypeHEX3Aobjecttype121461* result; | |
TY121658 ret; | |
nimfr("parseDbusType", "types.nim") | |
{ result = 0; | |
memset((void*)(&ret), 0, sizeof(ret)); | |
nimln(85, "types.nim"); | |
chckNil((void*)(&ret)); | |
memset((void*)(&ret), 0, sizeof(ret)); | |
parsedbusfragment_121655(signature, (&ret)); | |
nimln(86, "types.nim"); | |
{ | |
Exception* e_121897; | |
if (!!(((ret.Field1) && (ret.Field1)->Sup.len == 0))) goto LA3; | |
e_121897 = 0; | |
nimln(2338, "system.nim"); | |
e_121897 = (Exception*) newObj((&NTI10022), sizeof(Exception)); | |
(*e_121897).Sup.m_type = (&NTI3427); | |
nimln(2339, "system.nim"); | |
asgnRefNoCycle((void**) (&(*e_121897).message), nsuFormatSingleElem(((NimStringDesc*) &TMP362), signature)); | |
nimln(87, "types.nim"); | |
raiseException((Exception*)e_121897, "Exception"); | |
} | |
LA3: ; | |
nimln(88, "types.nim"); | |
result = ret.Field0; | |
goto BeforeRet; | |
}BeforeRet: ; | |
popFrame(); | |
return result; | |
} | |
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) { | |
memcpy(((NCSTRING) ((&(*dest).data[((*dest).Sup.len)- 0]))), ((NCSTRING) ((*src).data)), (NI)((*src).Sup.len + ((NI) 1))); | |
(*dest).Sup.len += (*src).Sup.len; | |
} | |
N_NIMCALL(NimStringDesc*, makedbussignature_121911)(DbustypeHEX3Aobjecttype121461* kind) { | |
NimStringDesc* result; | |
nimfr("makeDbusSignature", "types.nim") | |
result = 0; | |
nimln(91, "types.nim"); | |
switch ((*kind).kind) { | |
case ((NU8) 97): | |
{ | |
NimStringDesc* LOC2; | |
NimStringDesc* LOC3; | |
nimln(93, "types.nim"); | |
LOC2 = 0; | |
if (!(((1 &(1<<((((*kind).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP324)); | |
LOC3 = 0; | |
LOC3 = makedbussignature_121911((*kind).kindU.S1.itemtype); | |
LOC2 = rawNewString(LOC3->Sup.len + 1); | |
appendString(LOC2, ((NimStringDesc*) &TMP363)); | |
appendString(LOC2, LOC3); | |
result = LOC2; | |
} | |
break; | |
case ((NU8) 114): | |
{ | |
NimStringDesc* LOC5; | |
NimStringDesc* LOC6; | |
NimStringDesc* LOC7; | |
nimln(95, "types.nim"); | |
LOC5 = 0; | |
if (!(((67108864 &(1<<((((*kind).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP325)); | |
LOC6 = 0; | |
LOC6 = makedbussignature_121911((*kind).kindU.S2.keytype); | |
if (!(((67108864 &(1<<((((*kind).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP326)); | |
LOC7 = 0; | |
LOC7 = makedbussignature_121911((*kind).kindU.S2.valuetype); | |
LOC5 = rawNewString(LOC6->Sup.len + LOC7->Sup.len + 2); | |
appendString(LOC5, ((NimStringDesc*) &TMP364)); | |
appendString(LOC5, LOC6); | |
appendString(LOC5, LOC7); | |
appendString(LOC5, ((NimStringDesc*) &TMP365)); | |
result = LOC5; | |
} | |
break; | |
default: | |
{ | |
nimln(97, "types.nim"); | |
result = nimCharToStr(((NIM_CHAR) ((*kind).kind))); | |
} | |
break; | |
} | |
popFrame(); | |
return result; | |
} | |
static N_INLINE(void, nimGCunrefNoCycle)(void* p) { | |
Cell47547* c; | |
nimfr("nimGCunrefNoCycle", "gc.nim") | |
nimln(234, "gc.nim"); | |
c = usrtocell_51046(p); | |
nimln(236, "gc.nim"); | |
{ | |
nimln(168, "gc.nim"); | |
(*c).refcount -= ((NI) 8); | |
nimln(169, "gc.nim"); | |
if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3; | |
nimln(237, "gc.nim"); | |
rtladdzct_52604(c); | |
} | |
LA3: ; | |
popFrame(); | |
} | |
N_NIMCALL(void*, getprimitive_122045)(DbusvalueHEX3Aobjecttype122012** val) { | |
void* result; | |
nimfr("getPrimitive", "value.nim") | |
{ result = 0; | |
nimln(51, "value.nim"); | |
switch ((*(*val)).kind) { | |
case ((NU8) 98): | |
{ | |
nimln(53, "value.nim"); | |
if (!(((2 &(1<<((((*(*val)).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP366)); | |
result = ((void*) ((&(*(*val)).kindU.S2.boolvalue))); | |
goto BeforeRet; | |
} | |
break; | |
case ((NU8) 100): | |
{ | |
nimln(55, "value.nim"); | |
if (!(((8 &(1<<((((*(*val)).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP367)); | |
result = ((void*) ((&(*(*val)).kindU.S4.doublevalue))); | |
goto BeforeRet; | |
} | |
break; | |
case ((NU8) 105): | |
{ | |
nimln(57, "value.nim"); | |
if (!(((256 &(1<<((((*(*val)).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP368)); | |
result = ((void*) ((&(*(*val)).kindU.S7.int32value))); | |
goto BeforeRet; | |
} | |
break; | |
case ((NU8) 110): | |
{ | |
nimln(59, "value.nim"); | |
if (!(((8192 &(1<<((((*(*val)).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP369)); | |
result = ((void*) ((&(*(*val)).kindU.S8.int16value))); | |
goto BeforeRet; | |
} | |
break; | |
case ((NU8) 113): | |
{ | |
nimln(61, "value.nim"); | |
if (!(((65536 &(1<<((((*(*val)).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP370)); | |
result = ((void*) ((&(*(*val)).kindU.S10.uint16value))); | |
goto BeforeRet; | |
} | |
break; | |
case ((NU8) 116): | |
{ | |
nimln(63, "value.nim"); | |
if (!(((524288 &(1<<((((*(*val)).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP371)); | |
result = ((void*) ((&(*(*val)).kindU.S13.uint64value))); | |
goto BeforeRet; | |
} | |
break; | |
case ((NU8) 117): | |
{ | |
nimln(65, "value.nim"); | |
if (!(((1048576 &(1<<((((*(*val)).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP372)); | |
result = ((void*) ((&(*(*val)).kindU.S14.uint32value))); | |
goto BeforeRet; | |
} | |
break; | |
case ((NU8) 120): | |
{ | |
nimln(67, "value.nim"); | |
if (!(((8388608 &(1<<((((*(*val)).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP373)); | |
result = ((void*) ((&(*(*val)).kindU.S15.int64value))); | |
goto BeforeRet; | |
} | |
break; | |
case ((NU8) 121): | |
{ | |
nimln(69, "value.nim"); | |
if (!(((16777216 &(1<<((((*(*val)).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP374)); | |
result = ((void*) ((&(*(*val)).kindU.S16.bytevalue))); | |
goto BeforeRet; | |
} | |
break; | |
default: | |
{ | |
Valueerror3449* e_122070; | |
NimStringDesc* LOC11; | |
e_122070 = 0; | |
nimln(2338, "system.nim"); | |
e_122070 = (Valueerror3449*) newObj((&NTI23628), sizeof(Valueerror3449)); | |
(*e_122070).Sup.Sup.m_type = (&NTI3449); | |
nimln(2339, "system.nim"); | |
LOC11 = 0; | |
LOC11 = (*e_122070).Sup.message; (*e_122070).Sup.message = copyStringRC1(((NimStringDesc*) &TMP375)); | |
if (LOC11) nimGCunrefNoCycle(LOC11); | |
nimln(71, "value.nim"); | |
raiseException((Exception*)e_122070, "ValueError"); | |
} | |
break; | |
} | |
}BeforeRet: ; | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(NimStringDesc*, getstring_122084)(DbusvalueHEX3Aobjecttype122012* val) { | |
NimStringDesc* result; | |
nimfr("getString", "value.nim") | |
{ result = 0; | |
nimln(74, "value.nim"); | |
switch ((*val).kind) { | |
case ((NU8) 115): | |
{ | |
nimln(76, "value.nim"); | |
if (!(((262144 &(1<<((((*val).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP376)); | |
result = copyString((*val).kindU.S11.stringvalue); | |
goto BeforeRet; | |
} | |
break; | |
case ((NU8) 103): | |
{ | |
nimln(78, "value.nim"); | |
if (!(((64 &(1<<((((*val).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP377)); | |
result = copyString((*val).kindU.S5.signaturevalue); | |
goto BeforeRet; | |
} | |
break; | |
case ((NU8) 111): | |
{ | |
nimln(80, "value.nim"); | |
if (!(((16384 &(1<<((((*val).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP378)); | |
result = copyString((*val).kindU.S9.objectpathvalue); | |
goto BeforeRet; | |
} | |
break; | |
default: | |
{ | |
Valueerror3449* e_122093; | |
NimStringDesc* LOC5; | |
e_122093 = 0; | |
nimln(2338, "system.nim"); | |
e_122093 = (Valueerror3449*) newObj((&NTI23628), sizeof(Valueerror3449)); | |
(*e_122093).Sup.Sup.m_type = (&NTI3449); | |
nimln(2339, "system.nim"); | |
LOC5 = 0; | |
LOC5 = (*e_122093).Sup.message; (*e_122093).Sup.message = copyStringRC1(((NimStringDesc*) &TMP379)); | |
if (LOC5) nimGCunrefNoCycle(LOC5); | |
nimln(82, "value.nim"); | |
raiseException((Exception*)e_122093, "ValueError"); | |
} | |
break; | |
} | |
}BeforeRet: ; | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(void, TMP381)(void* p, NI op) { | |
TY122015* a; | |
NI LOC1; | |
a = (TY122015*)p; | |
LOC1 = 0; | |
for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) { | |
nimGCvisit((void*)a->data[LOC1], op); | |
} | |
} | |
N_NIMCALL(void, TMP383)(void* p, NI op) { | |
DbusvalueHEX3Aobjecttype122012* a; | |
a = (DbusvalueHEX3Aobjecttype122012*)p; | |
switch ((*a).kind) { | |
case ((NU8) 97): | |
nimGCvisit((void*)(*a).kindU.S1.arrayvaluetype, op); | |
nimGCvisit((void*)(*a).kindU.S1.arrayvalue, op); | |
break; | |
case ((NU8) 98): | |
break; | |
case ((NU8) 123): | |
nimGCvisit((void*)(*a).kindU.S3.dictkeytype, op); | |
nimGCvisit((void*)(*a).kindU.S3.dictvaluetype, op); | |
break; | |
case ((NU8) 100): | |
break; | |
case ((NU8) 103): | |
break; | |
case ((NU8) 104): | |
break; | |
case ((NU8) 105): | |
break; | |
case ((NU8) 110): | |
break; | |
case ((NU8) 111): | |
break; | |
case ((NU8) 113): | |
break; | |
case ((NU8) 115): | |
nimGCvisit((void*)(*a).kindU.S11.stringvalue, op); | |
break; | |
case ((NU8) 114): | |
nimGCvisit((void*)(*a).kindU.S12.structvalues, op); | |
break; | |
case ((NU8) 116): | |
break; | |
case ((NU8) 117): | |
break; | |
case ((NU8) 120): | |
break; | |
case ((NU8) 121): | |
break; | |
default: | |
break; | |
} | |
} | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122109)(NIM_BOOL val) { | |
DbusvalueHEX3Aobjecttype122012* result; | |
NU8 LOC1; | |
nimfr("asDbusValue", "value.nim") | |
result = 0; | |
nimln(85, "value.nim"); | |
result = (DbusvalueHEX3Aobjecttype122012*) newObj((&NTI122009), sizeof(DbusvalueHEX3Aobjecttype122012)); | |
nimln(86, "value.nim"); | |
LOC1 = 0; | |
LOC1 = ((NU8) 98); | |
FieldDiscriminantCheck((NI)(NU)((*result).kind), (NI)(NU)(LOC1), NimDT_122012_kind, 28); | |
(*result).kind = LOC1; | |
nimln(87, "value.nim"); | |
if (!(((2 &(1<<((((*result).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP366)); | |
(*result).kindU.S2.boolvalue = val; | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122125)(NF val) { | |
DbusvalueHEX3Aobjecttype122012* result; | |
NU8 LOC1; | |
nimfr("asDbusValue", "value.nim") | |
result = 0; | |
nimln(90, "value.nim"); | |
result = (DbusvalueHEX3Aobjecttype122012*) newObj((&NTI122009), sizeof(DbusvalueHEX3Aobjecttype122012)); | |
nimln(91, "value.nim"); | |
LOC1 = 0; | |
LOC1 = ((NU8) 100); | |
FieldDiscriminantCheck((NI)(NU)((*result).kind), (NI)(NU)(LOC1), NimDT_122012_kind, 28); | |
(*result).kind = LOC1; | |
nimln(92, "value.nim"); | |
if (!(((8 &(1<<((((*result).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP367)); | |
(*result).kindU.S4.doublevalue = val; | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122141)(NI16 val) { | |
DbusvalueHEX3Aobjecttype122012* result; | |
NU8 LOC1; | |
nimfr("asDbusValue", "value.nim") | |
result = 0; | |
nimln(95, "value.nim"); | |
result = (DbusvalueHEX3Aobjecttype122012*) newObj((&NTI122009), sizeof(DbusvalueHEX3Aobjecttype122012)); | |
nimln(96, "value.nim"); | |
LOC1 = 0; | |
LOC1 = ((NU8) 110); | |
FieldDiscriminantCheck((NI)(NU)((*result).kind), (NI)(NU)(LOC1), NimDT_122012_kind, 28); | |
(*result).kind = LOC1; | |
nimln(97, "value.nim"); | |
if (!(((8192 &(1<<((((*result).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP369)); | |
(*result).kindU.S8.int16value = val; | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122157)(NI32 val) { | |
DbusvalueHEX3Aobjecttype122012* result; | |
NU8 LOC1; | |
nimfr("asDbusValue", "value.nim") | |
result = 0; | |
nimln(100, "value.nim"); | |
result = (DbusvalueHEX3Aobjecttype122012*) newObj((&NTI122009), sizeof(DbusvalueHEX3Aobjecttype122012)); | |
nimln(101, "value.nim"); | |
LOC1 = 0; | |
LOC1 = ((NU8) 105); | |
FieldDiscriminantCheck((NI)(NU)((*result).kind), (NI)(NU)(LOC1), NimDT_122012_kind, 28); | |
(*result).kind = LOC1; | |
nimln(102, "value.nim"); | |
if (!(((256 &(1<<((((*result).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP368)); | |
(*result).kindU.S7.int32value = val; | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122173)(NI64 val) { | |
DbusvalueHEX3Aobjecttype122012* result; | |
NU8 LOC1; | |
nimfr("asDbusValue", "value.nim") | |
result = 0; | |
nimln(105, "value.nim"); | |
result = (DbusvalueHEX3Aobjecttype122012*) newObj((&NTI122009), sizeof(DbusvalueHEX3Aobjecttype122012)); | |
nimln(106, "value.nim"); | |
LOC1 = 0; | |
LOC1 = ((NU8) 120); | |
FieldDiscriminantCheck((NI)(NU)((*result).kind), (NI)(NU)(LOC1), NimDT_122012_kind, 28); | |
(*result).kind = LOC1; | |
nimln(107, "value.nim"); | |
if (!(((8388608 &(1<<((((*result).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP373)); | |
(*result).kindU.S15.int64value = val; | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122189)(NU16 val) { | |
DbusvalueHEX3Aobjecttype122012* result; | |
NU8 LOC1; | |
nimfr("asDbusValue", "value.nim") | |
result = 0; | |
nimln(110, "value.nim"); | |
result = (DbusvalueHEX3Aobjecttype122012*) newObj((&NTI122009), sizeof(DbusvalueHEX3Aobjecttype122012)); | |
nimln(111, "value.nim"); | |
LOC1 = 0; | |
LOC1 = ((NU8) 113); | |
FieldDiscriminantCheck((NI)(NU)((*result).kind), (NI)(NU)(LOC1), NimDT_122012_kind, 28); | |
(*result).kind = LOC1; | |
nimln(112, "value.nim"); | |
if (!(((65536 &(1<<((((*result).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP370)); | |
(*result).kindU.S10.uint16value = val; | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122205)(NU32 val) { | |
DbusvalueHEX3Aobjecttype122012* result; | |
NU8 LOC1; | |
nimfr("asDbusValue", "value.nim") | |
result = 0; | |
nimln(115, "value.nim"); | |
result = (DbusvalueHEX3Aobjecttype122012*) newObj((&NTI122009), sizeof(DbusvalueHEX3Aobjecttype122012)); | |
nimln(116, "value.nim"); | |
LOC1 = 0; | |
LOC1 = ((NU8) 117); | |
FieldDiscriminantCheck((NI)(NU)((*result).kind), (NI)(NU)(LOC1), NimDT_122012_kind, 28); | |
(*result).kind = LOC1; | |
nimln(117, "value.nim"); | |
if (!(((1048576 &(1<<((((*result).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP372)); | |
(*result).kindU.S14.uint32value = val; | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122221)(NU64 val) { | |
DbusvalueHEX3Aobjecttype122012* result; | |
NU8 LOC1; | |
nimfr("asDbusValue", "value.nim") | |
result = 0; | |
nimln(120, "value.nim"); | |
result = (DbusvalueHEX3Aobjecttype122012*) newObj((&NTI122009), sizeof(DbusvalueHEX3Aobjecttype122012)); | |
nimln(121, "value.nim"); | |
LOC1 = 0; | |
LOC1 = ((NU8) 116); | |
FieldDiscriminantCheck((NI)(NU)((*result).kind), (NI)(NU)(LOC1), NimDT_122012_kind, 28); | |
(*result).kind = LOC1; | |
nimln(122, "value.nim"); | |
if (!(((524288 &(1<<((((*result).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP371)); | |
(*result).kindU.S13.uint64value = val; | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122237)(NU8 val) { | |
DbusvalueHEX3Aobjecttype122012* result; | |
NU8 LOC1; | |
nimfr("asDbusValue", "value.nim") | |
result = 0; | |
nimln(125, "value.nim"); | |
result = (DbusvalueHEX3Aobjecttype122012*) newObj((&NTI122009), sizeof(DbusvalueHEX3Aobjecttype122012)); | |
nimln(126, "value.nim"); | |
LOC1 = 0; | |
LOC1 = ((NU8) 121); | |
FieldDiscriminantCheck((NI)(NU)((*result).kind), (NI)(NU)(LOC1), NimDT_122012_kind, 28); | |
(*result).kind = LOC1; | |
nimln(127, "value.nim"); | |
if (!(((16777216 &(1<<((((*result).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP374)); | |
(*result).kindU.S16.bytevalue = val; | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122253)(NimStringDesc* val) { | |
DbusvalueHEX3Aobjecttype122012* result; | |
NU8 LOC1; | |
NimStringDesc* LOC2; | |
nimfr("asDbusValue", "value.nim") | |
result = 0; | |
nimln(130, "value.nim"); | |
result = (DbusvalueHEX3Aobjecttype122012*) newObj((&NTI122009), sizeof(DbusvalueHEX3Aobjecttype122012)); | |
nimln(131, "value.nim"); | |
LOC1 = 0; | |
LOC1 = ((NU8) 115); | |
FieldDiscriminantCheck((NI)(NU)((*result).kind), (NI)(NU)(LOC1), NimDT_122012_kind, 28); | |
(*result).kind = LOC1; | |
nimln(132, "value.nim"); | |
if (!(((262144 &(1<<((((*result).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP376)); | |
LOC2 = 0; | |
LOC2 = (*result).kindU.S11.stringvalue; (*result).kindU.S11.stringvalue = copyStringRC1(val); | |
if (LOC2) nimGCunrefNoCycle(LOC2); | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122269)(NimStringDesc* val) { | |
DbusvalueHEX3Aobjecttype122012* result; | |
NU8 LOC1; | |
NimStringDesc* LOC2; | |
nimfr("asDbusValue", "value.nim") | |
result = 0; | |
nimln(135, "value.nim"); | |
result = (DbusvalueHEX3Aobjecttype122012*) newObj((&NTI122009), sizeof(DbusvalueHEX3Aobjecttype122012)); | |
nimln(136, "value.nim"); | |
LOC1 = 0; | |
LOC1 = ((NU8) 115); | |
FieldDiscriminantCheck((NI)(NU)((*result).kind), (NI)(NU)(LOC1), NimDT_122012_kind, 28); | |
(*result).kind = LOC1; | |
nimln(137, "value.nim"); | |
if (!(((16384 &(1<<((((*result).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP378)); | |
LOC2 = 0; | |
LOC2 = (*result).kindU.S9.objectpathvalue; (*result).kindU.S9.objectpathvalue = copyStringRC1(val); | |
if (LOC2) nimGCunrefNoCycle(LOC2); | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(DbusvalueHEX3Aobjecttype122012*, asdbusvalue_122285)(NimStringDesc* val) { | |
DbusvalueHEX3Aobjecttype122012* result; | |
NU8 LOC1; | |
NimStringDesc* LOC2; | |
nimfr("asDbusValue", "value.nim") | |
result = 0; | |
nimln(140, "value.nim"); | |
result = (DbusvalueHEX3Aobjecttype122012*) newObj((&NTI122009), sizeof(DbusvalueHEX3Aobjecttype122012)); | |
nimln(141, "value.nim"); | |
LOC1 = 0; | |
LOC1 = ((NU8) 103); | |
FieldDiscriminantCheck((NI)(NU)((*result).kind), (NI)(NU)(LOC1), NimDT_122012_kind, 28); | |
(*result).kind = LOC1; | |
nimln(142, "value.nim"); | |
if (!(((64 &(1<<((((*result).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP377)); | |
LOC2 = 0; | |
LOC2 = (*result).kindU.S5.signaturevalue; (*result).kindU.S5.signaturevalue = copyStringRC1(val); | |
if (LOC2) nimGCunrefNoCycle(LOC2); | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(Message122336, makesignal_122339)(NimStringDesc* path, NimStringDesc* iface, NimStringDesc* name) { | |
Message122336 result; | |
nimfr("makeSignal", "message.nim") | |
memset((void*)(&result), 0, sizeof(result)); | |
nimln(6, "message.nim"); | |
result.msg = Dl_118282(path->data, iface->data, name->data); | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(Message122336, makecall_122348)(NimStringDesc* uniquename, NimStringDesc* path, NimStringDesc* iface, NimStringDesc* name) { | |
Message122336 result; | |
nimfr("makeCall", "message.nim") | |
memset((void*)(&result), 0, sizeof(result)); | |
nimln(9, "message.nim"); | |
result.msg = Dl_118264(uniquename->data, path->data, iface->data, name->data); | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(unsigned int, sendmessage_122359)(BusHEX3Aobjecttype121026* conn, Message122336* msg) { | |
unsigned int result; | |
unsigned int serial; | |
unsigned int ret; | |
nimfr("sendMessage", "message.nim") | |
{ result = 0; | |
serial = 0; | |
nimln(13, "message.nim"); | |
ret = Dl_119163((*conn).conn, (*msg).msg, (&serial)); | |
nimln(14, "message.nim"); | |
Dl_118327((*msg).msg); | |
nimln(15, "message.nim"); | |
(*msg).msg = NIM_NIL; | |
nimln(16, "message.nim"); | |
{ | |
Dbusexception121021* e_122370; | |
NimStringDesc* LOC5; | |
if (!!(((NIM_BOOL)chckRange(ret, NIM_FALSE, NIM_TRUE)))) goto LA3; | |
e_122370 = 0; | |
nimln(2338, "system.nim"); | |
e_122370 = (Dbusexception121021*) newObj((&NTI121216), sizeof(Dbusexception121021)); | |
(*e_122370).Sup.Sup.m_type = (&NTI121021); | |
nimln(2339, "system.nim"); | |
LOC5 = 0; | |
LOC5 = (*e_122370).Sup.message; (*e_122370).Sup.message = copyStringRC1(((NimStringDesc*) &TMP384)); | |
if (LOC5) nimGCunrefNoCycle(LOC5); | |
nimln(17, "message.nim"); | |
raiseException((Exception*)e_122370, "DbusException"); | |
} | |
LA3: ; | |
nimln(18, "message.nim"); | |
result = serial; | |
goto BeforeRet; | |
}BeforeRet: ; | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(void, sendmessagewithreply_122390)(BusHEX3Aobjecttype121026* bus, Message122336* msg, Pendingcall122386* Result) { | |
unsigned int ret; | |
nimfr("sendMessageWithReply", "message.nim") | |
nimln(25, "message.nim"); | |
unsureAsgnRef((void**) (&(*Result).bus), bus); | |
nimln(26, "message.nim"); | |
ret = Dl_119174((*bus).conn, (*msg).msg, &(*Result).call, ((int) -1)); | |
nimln(27, "message.nim"); | |
Dl_118327((*msg).msg); | |
nimln(28, "message.nim"); | |
(*msg).msg = NIM_NIL; | |
nimln(29, "message.nim"); | |
{ | |
Dbusexception121021* e_122400; | |
NimStringDesc* LOC5; | |
if (!!(((NIM_BOOL)chckRange(ret, NIM_FALSE, NIM_TRUE)))) goto LA3; | |
e_122400 = 0; | |
nimln(2338, "system.nim"); | |
e_122400 = (Dbusexception121021*) newObj((&NTI121216), sizeof(Dbusexception121021)); | |
(*e_122400).Sup.Sup.m_type = (&NTI121021); | |
nimln(2339, "system.nim"); | |
LOC5 = 0; | |
LOC5 = (*e_122400).Sup.message; (*e_122400).Sup.message = copyStringRC1(((NimStringDesc*) &TMP385)); | |
if (LOC5) nimGCunrefNoCycle(LOC5); | |
nimln(30, "message.nim"); | |
raiseException((Exception*)e_122400, "DbusException"); | |
} | |
LA3: ; | |
nimln(31, "message.nim"); | |
{ | |
Dbusexception121021* e_122424; | |
NimStringDesc* LOC10; | |
if (!((*Result).call == NIM_NIL)) goto LA8; | |
e_122424 = 0; | |
nimln(2338, "system.nim"); | |
e_122424 = (Dbusexception121021*) newObj((&NTI121216), sizeof(Dbusexception121021)); | |
(*e_122424).Sup.Sup.m_type = (&NTI121021); | |
nimln(2339, "system.nim"); | |
LOC10 = 0; | |
LOC10 = (*e_122424).Sup.message; (*e_122424).Sup.message = copyStringRC1(((NimStringDesc*) &TMP386)); | |
if (LOC10) nimGCunrefNoCycle(LOC10); | |
nimln(32, "message.nim"); | |
raiseException((Exception*)e_122424, "DbusException"); | |
} | |
LA8: ; | |
popFrame(); | |
} | |
N_NIMCALL(void, appendptr_122459)(Dbusmessageiter118239* iter, DbustypeHEX3Aobjecttype121461* typecode, void* data) { | |
nimfr("appendPtr", "message.nim") | |
nimln(43, "message.nim"); | |
{ | |
unsigned int LOC3; | |
Dbusexception121021* e_122476; | |
NimStringDesc* LOC6; | |
LOC3 = 0; | |
LOC3 = Dl_118693(iter, ((int) (((NU8)(((NIM_CHAR) ((*typecode).kind)))))), data); | |
if (!(LOC3 == ((NI) 0))) goto LA4; | |
e_122476 = 0; | |
nimln(2338, "system.nim"); | |
e_122476 = (Dbusexception121021*) newObj((&NTI121216), sizeof(Dbusexception121021)); | |
(*e_122476).Sup.Sup.m_type = (&NTI121021); | |
nimln(2339, "system.nim"); | |
LOC6 = 0; | |
LOC6 = (*e_122476).Sup.message; (*e_122476).Sup.message = copyStringRC1(((NimStringDesc*) &TMP387)); | |
if (LOC6) nimGCunrefNoCycle(LOC6); | |
nimln(44, "message.nim"); | |
raiseException((Exception*)e_122476, "DbusException"); | |
} | |
LA4: ; | |
popFrame(); | |
} | |
static N_INLINE(NI, addInt)(NI a, NI b) { | |
NI result; | |
{ result = 0; | |
result = (NI)((NU64)(a) + (NU64)(b)); | |
{ | |
NIM_BOOL LOC3; | |
LOC3 = 0; | |
LOC3 = (((NI) 0) <= (NI)(result ^ a)); | |
if (LOC3) goto LA4; | |
LOC3 = (((NI) 0) <= (NI)(result ^ b)); | |
LA4: ; | |
if (!LOC3) goto LA5; | |
goto BeforeRet; | |
} | |
LA5: ; | |
raiseOverflow(); | |
}BeforeRet: ; | |
return result; | |
} | |
N_NIMCALL(void, appendarray_122502)(Dbusmessageiter118239* iter, NimStringDesc* sig, DbusvalueHEX3Aobjecttype122012** arr, NI arrLen0) { | |
Dbusmessageiter118239 subiter; | |
nimfr("appendArray", "message.nim") | |
memset((void*)(&subiter), 0, sizeof(subiter)); | |
nimln(52, "message.nim"); | |
{ | |
unsigned int LOC3; | |
Dbusexception121021* e_122522; | |
NimStringDesc* LOC6; | |
LOC3 = 0; | |
LOC3 = Dl_118712(iter, ((int) 97), sig->data, (&subiter)); | |
if (!(LOC3 == ((NI) 0))) goto LA4; | |
e_122522 = 0; | |
nimln(2338, "system.nim"); | |
e_122522 = (Dbusexception121021*) newObj((&NTI121216), sizeof(Dbusexception121021)); | |
(*e_122522).Sup.Sup.m_type = (&NTI121021); | |
nimln(2339, "system.nim"); | |
LOC6 = 0; | |
LOC6 = (*e_122522).Sup.message; (*e_122522).Sup.message = copyStringRC1(((NimStringDesc*) &TMP388)); | |
if (LOC6) nimGCunrefNoCycle(LOC6); | |
nimln(53, "message.nim"); | |
raiseException((Exception*)e_122522, "DbusException"); | |
} | |
LA4: ; | |
{ | |
DbusvalueHEX3Aobjecttype122012* item_122567; | |
NI i_122597; | |
item_122567 = 0; | |
nimln(1755, "system.nim"); | |
i_122597 = ((NI) 0); | |
{ | |
nimln(1756, "system.nim"); | |
while (1) { | |
NI TMP389; | |
if (!(i_122597 < arrLen0)) goto LA9; | |
nimln(1757, "system.nim"); | |
if ((NU)(i_122597) >= (NU)(arrLen0)) raiseIndexError(); | |
item_122567 = arr[i_122597]; | |
nimln(55, "message.nim"); | |
append_122439((&subiter), item_122567); | |
nimln(1758, "system.nim"); | |
TMP389 = addInt(i_122597, ((NI) 1)); | |
i_122597 = (NI)(TMP389); | |
} LA9: ; | |
} | |
} | |
nimln(56, "message.nim"); | |
{ | |
unsigned int LOC12; | |
Dbusexception121021* e_122581; | |
NimStringDesc* LOC15; | |
LOC12 = 0; | |
LOC12 = Dl_118723(iter, (&subiter)); | |
if (!(LOC12 == ((NI) 0))) goto LA13; | |
e_122581 = 0; | |
nimln(2338, "system.nim"); | |
e_122581 = (Dbusexception121021*) newObj((&NTI121216), sizeof(Dbusexception121021)); | |
(*e_122581).Sup.Sup.m_type = (&NTI121021); | |
nimln(2339, "system.nim"); | |
LOC15 = 0; | |
LOC15 = (*e_122581).Sup.message; (*e_122581).Sup.message = copyStringRC1(((NimStringDesc*) &TMP390)); | |
if (LOC15) nimGCunrefNoCycle(LOC15); | |
nimln(57, "message.nim"); | |
raiseException((Exception*)e_122581, "DbusException"); | |
} | |
LA13: ; | |
popFrame(); | |
} | |
N_NIMCALL(void, append_122439)(Dbusmessageiter118239* iter, DbusvalueHEX3Aobjecttype122012* x) { | |
DbusvalueHEX3Aobjecttype122012* myx; | |
nimfr("append", "message.nim") | |
nimln(60, "message.nim"); | |
myx = x; | |
nimln(61, "message.nim"); | |
switch ((*x).kind) { | |
case ((NU8) 98): | |
case ((NU8) 100): | |
case ((NU8) 105): | |
case ((NU8) 110): | |
case ((NU8) 113): | |
case ((NU8) 116): | |
case ((NU8) 117): | |
case ((NU8) 120): | |
case ((NU8) 121): | |
{ | |
DbustypeHEX3Aobjecttype121461* LOC2; | |
void* LOC3; | |
nimln(63, "message.nim"); | |
LOC2 = 0; | |
LOC2 = fromscalar_121469((*x).kind); | |
LOC3 = 0; | |
LOC3 = getprimitive_122045(&myx); | |
appendptr_122459(iter, LOC2, LOC3); | |
} | |
break; | |
case ((NU8) 115): | |
case ((NU8) 111): | |
case ((NU8) 103): | |
{ | |
NCSTRING str; | |
NimStringDesc* LOC5; | |
DbustypeHEX3Aobjecttype121461* LOC6; | |
nimln(66, "message.nim"); | |
LOC5 = 0; | |
LOC5 = getstring_122084(x); | |
str = LOC5->data; | |
nimln(67, "message.nim"); | |
LOC6 = 0; | |
LOC6 = fromscalar_121469((*x).kind); | |
appendptr_122459(iter, LOC6, ((void*) ((&str)))); | |
} | |
break; | |
case ((NU8) 97): | |
{ | |
NimStringDesc* LOC8; | |
nimln(69, "message.nim"); | |
if (!(((1 &(1<<((((*x).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP391)); | |
LOC8 = 0; | |
LOC8 = makedbussignature_121911((*x).kindU.S1.arrayvaluetype); | |
if (!(((1 &(1<<((((*x).kind- 97))&31)))!=0))) raiseFieldError(((NimStringDesc*) &TMP392)); | |
appendarray_122502(iter, LOC8, (*x).kindU.S1.arrayvalue->data, (*x).kindU.S1.arrayvalue->Sup.len); | |
} | |
break; | |
case ((NU8) 123): | |
{ | |
} | |
break; | |
default: | |
{ | |
Valueerror3449* e_122627; | |
NimStringDesc* LOC11; | |
e_122627 = 0; | |
nimln(2338, "system.nim"); | |
e_122627 = (Valueerror3449*) newObj((&NTI23628), sizeof(Valueerror3449)); | |
(*e_122627).Sup.Sup.m_type = (&NTI3449); | |
nimln(2339, "system.nim"); | |
LOC11 = 0; | |
LOC11 = (*e_122627).Sup.message; (*e_122627).Sup.message = copyStringRC1(((NimStringDesc*) &TMP393)); | |
if (LOC11) nimGCunrefNoCycle(LOC11); | |
nimln(73, "message.nim"); | |
raiseException((Exception*)e_122627, "ValueError"); | |
} | |
break; | |
} | |
popFrame(); | |
} | |
N_NIMCALL(Dbusmessageiter118239, inititer_122451)(Message122336 msg) { | |
Dbusmessageiter118239 result; | |
nimfr("initIter", "message.nim") | |
memset((void*)(&result), 0, sizeof(result)); | |
nimln(40, "message.nim"); | |
Dl_118684(msg.msg, (&result)); | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(NU8, type_122673)(Reply122663 reply) { | |
NU8 result; | |
int LOC1; | |
nimfr("type", "reply.nim") | |
{ result = 0; | |
nimln(10, "reply.nim"); | |
LOC1 = 0; | |
LOC1 = Dl_118334(reply.msg); | |
result = ((NU8)chckRange(LOC1, ((NU8) 0), ((NU8) 4))); | |
goto BeforeRet; | |
}BeforeRet: ; | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(NimStringDesc*, errorname_122680)(Reply122663 reply) { | |
NimStringDesc* result; | |
NCSTRING LOC1; | |
nimfr("errorName", "reply.nim") | |
{ result = 0; | |
nimln(13, "reply.nim"); | |
LOC1 = 0; | |
LOC1 = Dl_118418(reply.msg); | |
result = cstrToNimstr(LOC1); | |
goto BeforeRet; | |
}BeforeRet: ; | |
popFrame(); | |
return result; | |
} | |
N_NIMCALL(void, TMP394)(void* p, NI op) { | |
Dbusremoteexception121023* a; | |
a = (Dbusremoteexception121023*)p; | |
nimGCvisit((void*)(*a).Sup.Sup.parent, op); | |
nimGCvisit((void*)(*a).Sup.Sup.message, op); | |
nimGCvisit((void*)(*a).Sup.Sup.trace, op); | |
} | |
N_NIMCALL(void, raiseiferror_122687)(Reply122663 reply) { | |
nimfr("raiseIfError", "reply.nim") | |
nimln(16, "reply.nim"); | |
{ | |
NU8 LOC3; | |
Dbusremoteexception121023* e_122701; | |
LOC3 = 0; | |
LOC3 = type_122673(reply); | |
if (!(LOC3 == ((NU8) 3))) goto LA4; | |
e_122701 = 0; | |
nimln(2338, "system.nim"); | |
e_122701 = (Dbusremoteexception121023*) newObj((&NTI122702), sizeof(Dbusremoteexception121023)); | |
(*e_122701).Sup.Sup.Sup.m_type = (&NTI121023); | |
nimln(2339, "system.nim"); | |
asgnRefNoCycle((void**) (&(*e_122701).Sup.Sup.message), errorname_122680(reply)); | |
nimln(17, "reply.nim"); | |
raiseException((Exception*)e_122701, "DbusRemoteException"); | |
} | |
LA4: ; | |
popFrame(); | |
} | |
N_NIMCALL(Reply122663, waitforreply_122715)(Pendingcall122386 call) { | |
Reply122663 result; | |
TSafePoint TMP395; | |
nimfr("waitForReply", "reply.nim") | |
memset((void*)(&result), 0, sizeof(result)); | |
nimln(20, "reply.nim"); | |
flush_121422(call.bus); | |
nimln(21, "reply.nim"); | |
Dl_119899(call.call); | |
nimln(22, "reply.nim"); | |
result.msg = Dl_119891(call.call); | |
nimln(24, "reply.nim"); | |
pushSafePoint(&TMP395); | |
TMP395.status = setjmp(TMP395.context); | |
if (TMP395.status == 0) { | |
nimln(26, "reply.nim"); | |
{ | |
Dbusexception121021* volatile e_122733; | |
NimStringDesc* LOC6; | |
if (!(result.msg == NIM_NIL)) goto LA4; | |
e_122733 = 0; | |
nimln(2338, "system.nim"); | |
e_122733 = (Dbusexception121021*) newObj((&NTI121216), sizeof(Dbusexception121021)); | |
(*e_122733).Sup.Sup.m_type = (&NTI121021); | |
nimln(2339, "system.nim"); | |
LOC6 = 0; | |
LOC6 = (*e_122733).Sup.message; (*e_122733).Sup.message = copyStringRC1(((NimStringDesc*) &TMP396)); | |
if (LOC6) nimGCunrefNoCycle(LOC6); | |
nimln(27, "reply.nim"); | |
raiseException((Exception*)e_122733, "DbusException"); | |
} | |
LA4: ; | |
popSafePoint(); | |
} | |
else { | |
popSafePoint(); | |
setFrame((TFrame*)&FR); | |
} | |
{ | |
nimln(24, "reply.nim"); | |
Dl_119860(call.call); | |
} | |
if (TMP395.status != 0) reraiseException(); | |
popFrame(); | |
return result; | |
} | |
NIM_EXTERNC N_NOINLINE(void, dbus_dbusInit)(void) { | |
nimfr("dbus", "dbus.nim") | |
popFrame(); | |
} | |
NIM_EXTERNC N_NOINLINE(void, dbus_dbusDatInit)(void) { | |
static TNimNode* TMP316[2]; | |
static TNimNode* TMP317[18]; | |
NI TMP319; | |
static char* NIM_CONST TMP318[18] = { | |
"dtArray", | |
"dtBool", | |
"dtDouble", | |
"dtDictEntry", | |
"dtSignature", | |
"dtUnixFd", | |
"dtInt32", | |
"dtInt16", | |
"dtObjectPath", | |
"dtUint16", | |
"dtStruct", | |
"dtString", | |
"dtUint64", | |
"dtUint32", | |
"dtVariant", | |
"dtInt64", | |
"dtByte", | |
"dtDict"}; | |
static TNimNode* TMP320[2]; | |
static TNimNode* TMP380[2]; | |
static TNimNode* TMP382[2]; | |
static TNimNode* TMP400[2]; | |
static TNimNode TMP302[57]; | |
NTI121026.size = sizeof(BusHEX3Aobjecttype121026); | |
NTI121026.kind = 18; | |
NTI121026.base = 0; | |
NTI121026.flags = 3; | |
TMP302[0].kind = 1; | |
TMP302[0].offset = offsetof(BusHEX3Aobjecttype121026, conn); | |
TMP302[0].typ = (&NTI119006); | |
TMP302[0].name = "conn"; | |
NTI121026.node = &TMP302[0]; | |
NTI121025.size = sizeof(BusHEX3Aobjecttype121026*); | |
NTI121025.kind = 22; | |
NTI121025.base = (&NTI121026); | |
NTI121025.flags = 2; | |
NTI121025.marker = TMP312; | |
NTI121021.size = sizeof(Dbusexception121021); | |
NTI121021.kind = 17; | |
NTI121021.base = (&NTI3427); | |
TMP302[1].len = 0; TMP302[1].kind = 2; | |
NTI121021.node = &TMP302[1]; | |
NTI121216.size = sizeof(Dbusexception121021*); | |
NTI121216.kind = 22; | |
NTI121216.base = (&NTI121021); | |
NTI121216.marker = TMP314; | |
NTI121031.size = sizeof(Uniquebus121031); | |
NTI121031.kind = 18; | |
NTI121031.base = 0; | |
NTI121031.flags = 2; | |
TMP316[0] = &TMP302[3]; | |
TMP302[3].kind = 1; | |
TMP302[3].offset = offsetof(Uniquebus121031, bus); | |
TMP302[3].typ = (&NTI121025); | |
TMP302[3].name = "bus"; | |
TMP316[1] = &TMP302[4]; | |
TMP302[4].kind = 1; | |
TMP302[4].offset = offsetof(Uniquebus121031, uniquename); | |
TMP302[4].typ = (&NTI149); | |
TMP302[4].name = "uniqueName"; | |
TMP302[2].len = 2; TMP302[2].kind = 2; TMP302[2].sons = &TMP316[0]; | |
NTI121031.node = &TMP302[2]; | |
NTI121461.size = sizeof(DbustypeHEX3Aobjecttype121461); | |
NTI121461.kind = 18; | |
NTI121461.base = 0; | |
NTI121436.size = sizeof(NU8); | |
NTI121436.kind = 14; | |
NTI121436.base = 0; | |
NTI121436.flags = 3; | |
for (TMP319 = 0; TMP319 < 18; TMP319++) { | |
TMP302[TMP319+6].kind = 1; | |
TMP302[TMP319+6].offset = TMP319; | |
TMP302[TMP319+6].name = TMP318[TMP319]; | |
TMP317[TMP319] = &TMP302[TMP319+6]; | |
} | |
TMP302[6].offset = 97; | |
TMP302[7].offset = 98; | |
TMP302[8].offset = 100; | |
TMP302[9].offset = 101; | |
TMP302[10].offset = 103; | |
TMP302[11].offset = 104; | |
TMP302[12].offset = 105; | |
TMP302[13].offset = 110; | |
TMP302[14].offset = 111; | |
TMP302[15].offset = 113; | |
TMP302[16].offset = 114; | |
TMP302[17].offset = 115; | |
TMP302[18].offset = 116; | |
TMP302[19].offset = 117; | |
TMP302[20].offset = 118; | |
TMP302[21].offset = 120; | |
TMP302[22].offset = 121; | |
TMP302[23].offset = 123; | |
TMP302[24].len = 18; TMP302[24].kind = 2; TMP302[24].sons = &TMP317[0]; | |
NTI121436.node = &TMP302[24]; | |
NTI121436.flags = 1<<2; | |
TMP302[5].kind = 3; | |
TMP302[5].offset = offsetof(DbustypeHEX3Aobjecttype121461, kind); | |
TMP302[5].typ = (&NTI121436); | |
TMP302[5].name = "kind"; | |
TMP302[5].sons = &NimDT_121461_kind[0]; | |
TMP302[5].len = 27; | |
TMP302[25].kind = 1; | |
TMP302[25].offset = offsetof(DbustypeHEX3Aobjecttype121461, kindU.S1.itemtype); | |
TMP302[25].typ = (&NTI121460); | |
TMP302[25].name = "itemType"; | |
NimDT_121461_kind[97] = &TMP302[25]; | |
TMP320[0] = &TMP302[27]; | |
TMP302[27].kind = 1; | |
TMP302[27].offset = offsetof(DbustypeHEX3Aobjecttype121461, kindU.S2.keytype); | |
TMP302[27].typ = (&NTI121460); | |
TMP302[27].name = "keyType"; | |
TMP320[1] = &TMP302[28]; | |
TMP302[28].kind = 1; | |
TMP302[28].offset = offsetof(DbustypeHEX3Aobjecttype121461, kindU.S2.valuetype); | |
TMP302[28].typ = (&NTI121460); | |
TMP302[28].name = "valueType"; | |
TMP302[26].len = 2; TMP302[26].kind = 2; TMP302[26].sons = &TMP320[0]; | |
NimDT_121461_kind[123] = &TMP302[26]; | |
NTI121466.size = sizeof(TY121466*); | |
NTI121466.kind = 24; | |
NTI121466.base = (&NTI121460); | |
NTI121466.marker = TMP321; | |
TMP302[29].kind = 1; | |
TMP302[29].offset = offsetof(DbustypeHEX3Aobjecttype121461, kindU.S3.itemtypes); | |
TMP302[29].typ = (&NTI121466); | |
TMP302[29].name = "itemTypes"; | |
NimDT_121461_kind[114] = &TMP302[29]; | |
TMP302[30].len = 0; TMP302[30].kind = 2; | |
NimDT_121461_kind[27] = &TMP302[30]; | |
NTI121461.node = &TMP302[5]; | |
NTI121460.size = sizeof(DbustypeHEX3Aobjecttype121461*); | |
NTI121460.kind = 22; | |
NTI121460.base = (&NTI121461); | |
NTI121460.marker = TMP322; | |
NTI122012.size = sizeof(DbusvalueHEX3Aobjecttype122012); | |
NTI122012.kind = 18; | |
NTI122012.base = 0; | |
TMP302[31].kind = 3; | |
TMP302[31].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kind); | |
TMP302[31].typ = (&NTI121436); | |
TMP302[31].name = "kind"; | |
TMP302[31].sons = &NimDT_122012_kind[0]; | |
TMP302[31].len = 27; | |
TMP380[0] = &TMP302[33]; | |
TMP302[33].kind = 1; | |
TMP302[33].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S1.arrayvaluetype); | |
TMP302[33].typ = (&NTI121460); | |
TMP302[33].name = "arrayValueType"; | |
TMP380[1] = &TMP302[34]; | |
NTI122015.size = sizeof(TY122015*); | |
NTI122015.kind = 24; | |
NTI122015.base = (&NTI122009); | |
NTI122015.marker = TMP381; | |
TMP302[34].kind = 1; | |
TMP302[34].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S1.arrayvalue); | |
TMP302[34].typ = (&NTI122015); | |
TMP302[34].name = "arrayValue"; | |
TMP302[32].len = 2; TMP302[32].kind = 2; TMP302[32].sons = &TMP380[0]; | |
NimDT_122012_kind[97] = &TMP302[32]; | |
TMP302[35].kind = 1; | |
TMP302[35].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S2.boolvalue); | |
TMP302[35].typ = (&NTI138); | |
TMP302[35].name = "boolValue"; | |
NimDT_122012_kind[98] = &TMP302[35]; | |
TMP382[0] = &TMP302[37]; | |
TMP302[37].kind = 1; | |
TMP302[37].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S3.dictkeytype); | |
TMP302[37].typ = (&NTI121460); | |
TMP302[37].name = "dictKeyType"; | |
TMP382[1] = &TMP302[38]; | |
TMP302[38].kind = 1; | |
TMP302[38].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S3.dictvaluetype); | |
TMP302[38].typ = (&NTI121460); | |
TMP302[38].name = "dictValueType"; | |
TMP302[36].len = 2; TMP302[36].kind = 2; TMP302[36].sons = &TMP382[0]; | |
NimDT_122012_kind[123] = &TMP302[36]; | |
TMP302[39].kind = 1; | |
TMP302[39].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S4.doublevalue); | |
TMP302[39].typ = (&NTI132); | |
TMP302[39].name = "doubleValue"; | |
NimDT_122012_kind[100] = &TMP302[39]; | |
TMP302[40].kind = 1; | |
TMP302[40].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S5.signaturevalue); | |
TMP302[40].typ = (&NTI149); | |
TMP302[40].name = "signatureValue"; | |
NimDT_122012_kind[103] = &TMP302[40]; | |
NTI122005.size = sizeof(int); | |
NTI122005.kind = 34; | |
NTI122005.base = 0; | |
NTI122005.flags = 3; | |
TMP302[41].kind = 1; | |
TMP302[41].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S6.fdvalue); | |
TMP302[41].typ = (&NTI122005); | |
TMP302[41].name = "fdValue"; | |
NimDT_122012_kind[104] = &TMP302[41]; | |
TMP302[42].kind = 1; | |
TMP302[42].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S7.int32value); | |
TMP302[42].typ = (&NTI114); | |
TMP302[42].name = "int32Value"; | |
NimDT_122012_kind[105] = &TMP302[42]; | |
TMP302[43].kind = 1; | |
TMP302[43].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S8.int16value); | |
TMP302[43].typ = (&NTI112); | |
TMP302[43].name = "int16Value"; | |
NimDT_122012_kind[110] = &TMP302[43]; | |
TMP302[44].kind = 1; | |
TMP302[44].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S9.objectpathvalue); | |
TMP302[44].typ = (&NTI149); | |
TMP302[44].name = "objectPathValue"; | |
NimDT_122012_kind[111] = &TMP302[44]; | |
TMP302[45].kind = 1; | |
TMP302[45].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S10.uint16value); | |
TMP302[45].typ = (&NTI122); | |
TMP302[45].name = "uint16Value"; | |
NimDT_122012_kind[113] = &TMP302[45]; | |
TMP302[46].kind = 1; | |
TMP302[46].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S11.stringvalue); | |
TMP302[46].typ = (&NTI149); | |
TMP302[46].name = "stringValue"; | |
NimDT_122012_kind[115] = &TMP302[46]; | |
TMP302[47].kind = 1; | |
TMP302[47].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S12.structvalues); | |
TMP302[47].typ = (&NTI122015); | |
TMP302[47].name = "structValues"; | |
NimDT_122012_kind[114] = &TMP302[47]; | |
TMP302[48].kind = 1; | |
TMP302[48].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S13.uint64value); | |
TMP302[48].typ = (&NTI126); | |
TMP302[48].name = "uint64Value"; | |
NimDT_122012_kind[116] = &TMP302[48]; | |
TMP302[49].kind = 1; | |
TMP302[49].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S14.uint32value); | |
TMP302[49].typ = (&NTI124); | |
TMP302[49].name = "uint32Value"; | |
NimDT_122012_kind[117] = &TMP302[49]; | |
TMP302[50].kind = 1; | |
TMP302[50].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S15.int64value); | |
TMP302[50].typ = (&NTI116); | |
TMP302[50].name = "int64Value"; | |
NimDT_122012_kind[120] = &TMP302[50]; | |
TMP302[51].kind = 1; | |
TMP302[51].offset = offsetof(DbusvalueHEX3Aobjecttype122012, kindU.S16.bytevalue); | |
TMP302[51].typ = (&NTI120); | |
TMP302[51].name = "byteValue"; | |
NimDT_122012_kind[121] = &TMP302[51]; | |
TMP302[52].len = 0; TMP302[52].kind = 2; | |
NimDT_122012_kind[27] = &TMP302[52]; | |
NTI122012.node = &TMP302[31]; | |
NTI122009.size = sizeof(DbusvalueHEX3Aobjecttype122012*); | |
NTI122009.kind = 22; | |
NTI122009.base = (&NTI122012); | |
NTI122009.marker = TMP383; | |
NTI121023.size = sizeof(Dbusremoteexception121023); | |
NTI121023.kind = 17; | |
NTI121023.base = (&NTI121021); | |
TMP302[53].len = 0; TMP302[53].kind = 2; | |
NTI121023.node = &TMP302[53]; | |
NTI122702.size = sizeof(Dbusremoteexception121023*); | |
NTI122702.kind = 22; | |
NTI122702.base = (&NTI121023); | |
NTI122702.marker = TMP394; | |
NTI122386.size = sizeof(Pendingcall122386); | |
NTI122386.kind = 18; | |
NTI122386.base = 0; | |
NTI122386.flags = 2; | |
TMP400[0] = &TMP302[55]; | |
TMP302[55].kind = 1; | |
TMP302[55].offset = offsetof(Pendingcall122386, call); | |
TMP302[55].typ = (&NTI119180); | |
TMP302[55].name = "call"; | |
TMP400[1] = &TMP302[56]; | |
TMP302[56].kind = 1; | |
TMP302[56].offset = offsetof(Pendingcall122386, bus); | |
TMP302[56].typ = (&NTI121025); | |
TMP302[56].name = "bus"; | |
TMP302[54].len = 2; TMP302[54].kind = 2; TMP302[54].sons = &TMP400[0]; | |
NTI122386.node = &TMP302[54]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment