code
stringlengths
3
10M
language
stringclasses
31 values
the rounded seed-bearing capsule of a cotton or flax plant
D
a small piece of anything (especially a piece that has been snipped off) the act of clipping or snipping sever or remove by pinching or snipping cultivate, tend, and cut back the growth of
D
/** * Code generation 2 * * Includes: * - math operators (+ - * / %) and functions (abs, cos, sqrt) * - 'string' functions (strlen, memcpy, memset) * - pointers (address of / dereference) * - struct assign, constructor, destructor * * Compiler implementation of the * $(LINK2 https://www.dlang.org, D programming language). * * Copyright: Copyright (C) 1984-1998 by Symantec * Copyright (C) 2000-2023 by The D Language Foundation, All Rights Reserved * Authors: $(LINK2 https://www.digitalmars.com, Walter Bright) * License: $(LINK2 https://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/backend/cod2.d, backend/cod2.d) * Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/backend/cod2.d */ module dmd.backend.cod2; import core.stdc.stdio; import core.stdc.stdlib; import core.stdc.string; import dmd.backend.backend; import dmd.backend.cc; import dmd.backend.cdef; import dmd.backend.code; import dmd.backend.code_x86; import dmd.backend.codebuilder; import dmd.backend.mem; import dmd.backend.el; import dmd.backend.global; import dmd.backend.oper; import dmd.backend.ty; import dmd.backend.type; import dmd.backend.xmm; extern (C++): nothrow: @safe: import dmd.backend.cg : segfl, stackfl; __gshared int cdcmp_flag; private extern (D) uint mask(uint m) { return 1 << m; } // from divcoeff.c extern (C) { bool choose_multiplier(int N, ulong d, int prec, ulong *pm, int *pshpost); bool udiv_coefficients(int N, ulong d, int *pshpre, ulong *pm, int *pshpost); } /******************************* * Swap two registers. */ private void swap(reg_t *a,reg_t *b) { const tmp = *a; *a = *b; *b = tmp; } /******************************************* * Returns: true if cannot use this EA in anything other than a MOV instruction. */ @trusted bool movOnly(const elem *e) { if (config.exe & EX_OSX64 && config.flags3 & CFG3pic && e.Eoper == OPvar) { const s = e.EV.Vsym; // Fixups for these can only be done with a MOV if (s.Sclass == SC.global || s.Sclass == SC.extern_ || s.Sclass == SC.comdat || s.Sclass == SC.comdef) return true; } return false; } /******************************** * Determine index registers used by addressing mode. * Index is rm of modregrm field. * Returns: * mask of index registers */ regm_t idxregm(const code* c) { const rm = c.Irm; regm_t idxm; if ((rm & 0xC0) != 0xC0) /* if register is not the destination */ { if (I16) { static immutable ubyte[8] idxrm = [mBX|mSI,mBX|mDI,mSI,mDI,mSI,mDI,0,mBX]; idxm = idxrm[rm & 7]; } else { if ((rm & 7) == 4) /* if sib byte */ { const sib = c.Isib; reg_t idxreg = (sib >> 3) & 7; // scaled index reg idxm = mask(idxreg | ((c.Irex & REX_X) ? 8 : 0)); if ((sib & 7) == 5 && (rm & 0xC0) == 0) { } else idxm |= mask((sib & 7) | ((c.Irex & REX_B) ? 8 : 0)); } else idxm = mask((rm & 7) | ((c.Irex & REX_B) ? 8 : 0)); } } return idxm; } /*************************** * Gen code for call to floating point routine. */ @trusted void opdouble(ref CodeBuilder cdb, elem *e,regm_t *pretregs,uint clib) { if (config.inline8087) { orth87(cdb,e,pretregs); return; } regm_t retregs1,retregs2; if (tybasic(e.EV.E1.Ety) == TYfloat) { clib += CLIB.fadd - CLIB.dadd; /* convert to float operation */ retregs1 = FLOATREGS; retregs2 = FLOATREGS2; } else { if (I32) { retregs1 = DOUBLEREGS_32; retregs2 = DOUBLEREGS2_32; } else { retregs1 = mSTACK; retregs2 = DOUBLEREGS_16; } } codelem(cdb,e.EV.E1, &retregs1,false); if (retregs1 & mSTACK) cgstate.stackclean++; scodelem(cdb,e.EV.E2, &retregs2, retregs1 & ~mSTACK, false); if (retregs1 & mSTACK) cgstate.stackclean--; callclib(cdb, e, clib, pretregs, 0); } /***************************** * Handle operators which are more or less orthogonal * ( + - & | ^ ) */ @trusted void cdorth(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { //printf("cdorth(e = %p, *pretregs = %s)\n",e,regm_str(*pretregs)); elem *e1 = e.EV.E1; elem *e2 = e.EV.E2; if (*pretregs == 0) // if don't want result { codelem(cdb,e1,pretregs,false); // eval left leaf *pretregs = 0; // in case they got set codelem(cdb,e2,pretregs,false); return; } const ty = tybasic(e.Ety); const ty1 = tybasic(e1.Ety); if (tyfloating(ty1)) { if (tyvector(ty1) || config.fpxmmregs && tyxmmreg(ty1) && !(*pretregs & mST0) && !(*pretregs & mST01) && !(ty == TYldouble || ty == TYildouble) // watch out for shrinkLongDoubleConstantIfPossible() ) { orthxmm(cdb,e,pretregs); return; } if (config.inline8087) { orth87(cdb,e,pretregs); return; } if (config.exe & EX_windos) { opdouble(cdb,e,pretregs,(e.Eoper == OPadd) ? CLIB.dadd : CLIB.dsub); return; } else { assert(0); } } if (tyxmmreg(ty1)) { orthxmm(cdb,e,pretregs); return; } opcode_t op1, op2; uint mode; __gshared int nest; const ty2 = tybasic(e2.Ety); const e2oper = e2.Eoper; const sz = _tysize[ty]; const isbyte = (sz == 1); code_flags_t word = (!I16 && sz == SHORTSIZE) ? CFopsize : 0; bool test = false; // assume we destroyed lvalue switch (e.Eoper) { case OPadd: mode = 0; op1 = 0x03; op2 = 0x13; break; /* ADD, ADC */ case OPmin: mode = 5; op1 = 0x2B; op2 = 0x1B; break; /* SUB, SBB */ case OPor: mode = 1; op1 = 0x0B; op2 = 0x0B; break; /* OR , OR */ case OPxor: mode = 6; op1 = 0x33; op2 = 0x33; break; /* XOR, XOR */ case OPand: mode = 4; op1 = 0x23; op2 = 0x23; /* AND, AND */ if (tyreg(ty1) && *pretregs == mPSW) /* if flags only */ { test = true; op1 = 0x85; /* TEST */ mode = 0; } break; default: assert(0); } op1 ^= isbyte; /* if byte operation */ // Compute numwords, the number of words to operate on. int numwords = 1; if (!I16) { /* Cannot operate on longs and then do a 'paint' to a far */ /* pointer, because far pointers are 48 bits and longs are 32. */ /* Therefore, numwords can never be 2. */ assert(!(tyfv(ty1) && tyfv(ty2))); if (sz == 2 * REGSIZE) { numwords++; } } else { /* If ty is a TYfptr, but both operands are long, treat the */ /* operation as a long. */ if ((tylong(ty1) || ty1 == TYhptr) && (tylong(ty2) || ty2 == TYhptr)) numwords++; } // Special cases where only flags are set if (test && _tysize[ty1] <= REGSIZE && (e1.Eoper == OPvar || (e1.Eoper == OPind && !e1.Ecount)) && !movOnly(e1) ) { // Handle the case of (var & const) if (e2.Eoper == OPconst && el_signx32(e2)) { code cs = void; cs.Iflags = 0; cs.Irex = 0; getlvalue(cdb,&cs,e1,0); targ_size_t value = e2.EV.Vpointer; if (sz == 2) value &= 0xFFFF; else if (sz == 4) value &= 0xFFFFFFFF; reg_t reg; if (reghasvalue(isbyte ? BYTEREGS : ALLREGS,value,&reg)) { code_newreg(&cs, reg); if (I64 && isbyte && reg >= 4) cs.Irex |= REX; } else { if (sz == 8 && !I64) { assert(value == cast(int)value); // sign extend imm32 } op1 = 0xF7; cs.IEV2.Vint = cast(targ_int)value; cs.IFL2 = FLconst; } cs.Iop = op1 ^ isbyte; cs.Iflags |= word | CFpsw; freenode(e1); freenode(e2); cdb.gen(&cs); return; } // Handle (exp & reg) reg_t reg; regm_t retregs; if (isregvar(e2,&retregs,&reg)) { code cs = void; cs.Iflags = 0; cs.Irex = 0; getlvalue(cdb,&cs,e1,0); code_newreg(&cs, reg); if (I64 && isbyte && reg >= 4) cs.Irex |= REX; cs.Iop = op1 ^ isbyte; cs.Iflags |= word | CFpsw; freenode(e1); freenode(e2); cdb.gen(&cs); return; } } code cs = void; cs.Iflags = 0; cs.Irex = 0; // Look for possible uses of LEA if (e.Eoper == OPadd && !(*pretregs & mPSW) && // flags aren't set by LEA !nest && // could cause infinite recursion if e.Ecount (sz == REGSIZE || (I64 && sz == 4))) // far pointers aren't handled { const rex = (sz == 8) ? REX_W : 0; // Handle the case of (e + &var) int e1oper = e1.Eoper; if ((e2oper == OPrelconst && (config.target_cpu >= TARGET_Pentium || (!e2.Ecount && stackfl[el_fl(e2)]))) || // LEA costs too much for simple EAs on older CPUs (e2oper == OPconst && (e1.Eoper == OPcall || e1.Eoper == OPcallns) && !(*pretregs & mAX)) || (!I16 && (isscaledindex(e1) || isscaledindex(e2))) || (!I16 && e1oper == OPvar && e1.EV.Vsym.Sfl == FLreg && (e2oper == OPconst || (e2oper == OPvar && e2.EV.Vsym.Sfl == FLreg))) || (e2oper == OPconst && e1oper == OPeq && e1.EV.E1.Eoper == OPvar) || (!I16 && (e2oper == OPrelconst || e2oper == OPconst) && !e1.Ecount && (e1oper == OPmul || e1oper == OPshl) && e1.EV.E2.Eoper == OPconst && ssindex(e1oper,e1.EV.E2.EV.Vuns) ) || (!I16 && e1.Ecount) ) { const inc = e.Ecount != 0; nest += inc; code csx = void; getlvalue(cdb,&csx,e,0); nest -= inc; reg_t regx; allocreg(cdb,pretregs,&regx,ty); csx.Iop = LEA; code_newreg(&csx, regx); cdb.gen(&csx); // LEA regx,EA if (rex) code_orrex(cdb.last(), rex); return; } // Handle the case of ((e + c) + e2) if (!I16 && e1oper == OPadd && (e1.EV.E2.Eoper == OPconst && el_signx32(e1.EV.E2) || e2oper == OPconst && el_signx32(e2)) && !e1.Ecount ) { elem *ebase; elem *edisp; if (e2oper == OPconst && el_signx32(e2)) { edisp = e2; ebase = e1.EV.E2; } else { edisp = e1.EV.E2; ebase = e2; } auto e11 = e1.EV.E1; regm_t retregs = *pretregs & ALLREGS; if (!retregs) retregs = ALLREGS; int ss = 0; int ss2 = 0; // Handle the case of (((e * c1) + c2) + e2) // Handle the case of (((e << c1) + c2) + e2) if ((e11.Eoper == OPmul || e11.Eoper == OPshl) && e11.EV.E2.Eoper == OPconst && !e11.Ecount ) { const co1 = cast(targ_size_t)el_tolong(e11.EV.E2); if (e11.Eoper == OPshl) { if (co1 > 3) goto L13; ss = cast(int)co1; } else { ss2 = 1; switch (co1) { case 6: ss = 1; break; case 12: ss = 1; ss2 = 2; break; case 24: ss = 1; ss2 = 3; break; case 10: ss = 2; break; case 20: ss = 2; ss2 = 2; break; case 40: ss = 2; ss2 = 3; break; case 18: ss = 3; break; case 36: ss = 3; ss2 = 2; break; case 72: ss = 3; ss2 = 3; break; default: ss2 = 0; goto L13; } } freenode(e11.EV.E2); freenode(e11); e11 = e11.EV.E1; L13: { } } reg_t reg11; regm_t regm; if (e11.Eoper == OPvar && isregvar(e11,&regm,&reg11)) { if (tysize(e11.Ety) <= REGSIZE) retregs = mask(reg11); // only want the LSW else retregs = regm; freenode(e11); } else codelem(cdb,e11,&retregs,false); regm_t rretregs = ALLREGS & ~retregs & ~mBP; scodelem(cdb,ebase,&rretregs,retregs,true); reg_t reg; { regm_t sregs = *pretregs & ~rretregs; if (!sregs) sregs = ALLREGS & ~rretregs; allocreg(cdb,&sregs,&reg,ty); } assert((retregs & (retregs - 1)) == 0); // must be only one register assert((rretregs & (rretregs - 1)) == 0); // must be only one register auto reg1 = findreg(retregs); const reg2 = findreg(rretregs); if (ss2) { assert(reg != reg2); if ((reg1 & 7) == BP) { static immutable uint[4] imm32 = [1+1,2+1,4+1,8+1]; // IMUL reg,imm32 cdb.genc2(0x69,modregxrmx(3,reg,reg1),imm32[ss]); } else { // LEA reg,[reg1*ss][reg1] cdb.gen2sib(LEA,modregxrm(0,reg,4),modregrm(ss,reg1 & 7,reg1 & 7)); if (reg1 & 8) code_orrex(cdb.last(), REX_X | REX_B); } if (rex) code_orrex(cdb.last(), rex); reg1 = reg; ss = ss2; // use *2 for scale } cs.Iop = LEA; // LEA reg,c[reg1*ss][reg2] cs.Irm = modregrm(2,reg & 7,4); cs.Isib = modregrm(ss,reg1 & 7,reg2 & 7); assert(reg2 != BP); cs.Iflags = CFoff; cs.Irex = cast(ubyte)rex; if (reg & 8) cs.Irex |= REX_R; if (reg1 & 8) cs.Irex |= REX_X; if (reg2 & 8) cs.Irex |= REX_B; cs.IFL1 = FLconst; cs.IEV1.Vsize_t = edisp.EV.Vuns; freenode(edisp); freenode(e1); cdb.gen(&cs); fixresult(cdb,e,mask(reg),pretregs); return; } } regm_t posregs = (isbyte) ? BYTEREGS : (mES | allregs); regm_t retregs = *pretregs & posregs; if (retregs == 0) /* if no return regs speced */ /* (like if wanted flags only) */ retregs = ALLREGS & posregs; // give us some if (ty1 == TYhptr || ty2 == TYhptr) { /* Generate code for add/subtract of huge pointers. No attempt is made to generate very good code. */ retregs = (retregs & mLSW) | mDX; regm_t rretregs; if (ty1 == TYhptr) { // hptr +- long rretregs = mLSW & ~(retregs | regcon.mvar); if (!rretregs) rretregs = mLSW; rretregs |= mCX; codelem(cdb,e1,&rretregs,0); retregs &= ~rretregs; if (!(retregs & mLSW)) retregs |= mLSW & ~rretregs; scodelem(cdb,e2,&retregs,rretregs,true); } else { // long + hptr codelem(cdb,e1,&retregs,0); rretregs = (mLSW | mCX) & ~retregs; if (!(rretregs & mLSW)) rretregs |= mLSW; scodelem(cdb,e2,&rretregs,retregs,true); } getregs(cdb,rretregs | retregs); const mreg = DX; const lreg = findreglsw(retregs); if (e.Eoper == OPmin) { // negate retregs cdb.gen2(0xF7,modregrm(3,3,mreg)); // NEG mreg cdb.gen2(0xF7,modregrm(3,3,lreg)); // NEG lreg code_orflag(cdb.last(),CFpsw); cdb.genc2(0x81,modregrm(3,3,mreg),0); // SBB mreg,0 } const lrreg = findreglsw(rretregs); genregs(cdb,0x03,lreg,lrreg); // ADD lreg,lrreg code_orflag(cdb.last(),CFpsw); genmovreg(cdb,lrreg,CX); // MOV lrreg,CX cdb.genc2(0x81,modregrm(3,2,mreg),0); // ADC mreg,0 genshift(cdb); // MOV CX,offset __AHSHIFT cdb.gen2(0xD3,modregrm(3,4,mreg)); // SHL mreg,CL genregs(cdb,0x03,mreg,lrreg); // ADD mreg,MSREG(h) fixresult(cdb,e,retregs,pretregs); return; } regm_t rretregs; reg_t reg; if (_tysize[ty1] > REGSIZE && numwords == 1) { /* The only possibilities are (TYfptr + tyword) or (TYfptr - tyword) */ debug if (_tysize[ty2] != REGSIZE) { printf("e = %p, e.Eoper = %s e1.Ety = %s e2.Ety = %s\n", e, oper_str(e.Eoper), tym_str(ty1), tym_str(ty2)); elem_print(e); } assert(_tysize[ty2] == REGSIZE); /* Watch out for the case here where you are going to OP reg,EA */ /* and both the reg and EA use ES! Prevent this by forcing */ /* reg into the regular registers. */ if ((e2oper == OPind || (e2oper == OPvar && el_fl(e2) == FLfardata)) && !e2.Ecount) { retregs = ALLREGS; } codelem(cdb,e1,&retregs,test != 0); reg = findreglsw(retregs); /* reg is the register with the offset*/ } else { regm_t regm; /* if (tyword + TYfptr) */ if (_tysize[ty1] == REGSIZE && _tysize[ty2] > REGSIZE) { retregs = ~*pretregs & ALLREGS; /* if retregs doesn't have any regs in it that aren't reg vars */ if ((retregs & ~regcon.mvar) == 0) retregs |= mAX; } else if (numwords == 2 && retregs & mES) retregs = (retregs | mMSW) & ALLREGS; // Determine if we should swap operands, because // mov EAX,x // add EAX,reg // is faster than: // mov EAX,reg // add EAX,x else if (e2oper == OPvar && e1.Eoper == OPvar && e.Eoper != OPmin && isregvar(e1,&regm,null) && regm != retregs && _tysize[ty1] == _tysize[ty2]) { elem *es = e1; e1 = e2; e2 = es; } codelem(cdb,e1,&retregs,test != 0); // eval left leaf reg = findreg(retregs); } reg_t rreg; int rval; targ_size_t i; switch (e2oper) { case OPind: /* if addressing mode */ if (!e2.Ecount) /* if not CSE */ goto L1; /* try OP reg,EA */ goto default; default: /* operator node */ L2: rretregs = ALLREGS & ~retregs; /* Be careful not to do arithmetic on ES */ if (_tysize[ty1] == REGSIZE && _tysize[ty2] > REGSIZE && *pretregs != mPSW) rretregs = *pretregs & (mES | ALLREGS | mBP) & ~retregs; else if (isbyte) rretregs &= BYTEREGS; scodelem(cdb,e2,&rretregs,retregs,true); // get rvalue rreg = (_tysize[ty2] > REGSIZE) ? findreglsw(rretregs) : findreg(rretregs); if (!test) getregs(cdb,retregs); // we will trash these regs if (numwords == 1) /* ADD reg,rreg */ { /* reverse operands to avoid moving around the segment value */ if (_tysize[ty2] > REGSIZE) { getregs(cdb,rretregs); genregs(cdb,op1,rreg,reg); retregs = rretregs; // reverse operands } else { genregs(cdb,op1,reg,rreg); if (!I16 && *pretregs & mPSW) cdb.last().Iflags |= word; } if (I64 && sz == 8) code_orrex(cdb.last(), REX_W); if (I64 && isbyte && (reg >= 4 || rreg >= 4)) code_orrex(cdb.last(), REX); } else /* numwords == 2 */ /* ADD lsreg,lsrreg */ { reg = findreglsw(retregs); rreg = findreglsw(rretregs); genregs(cdb,op1,reg,rreg); if (e.Eoper == OPadd || e.Eoper == OPmin) code_orflag(cdb.last(),CFpsw); reg = findregmsw(retregs); rreg = findregmsw(rretregs); if (!(e2oper == OPu16_32 && // if second operand is 0 (op2 == 0x0B || op2 == 0x33)) // and OR or XOR ) genregs(cdb,op2,reg,rreg); // ADC msreg,msrreg } break; case OPrelconst: if (I64 && (config.flags3 & CFG3pic || config.exe == EX_WIN64)) goto default; if (sz != REGSIZE) goto L2; if (segfl[el_fl(e2)] != 3) /* if not in data segment */ goto L2; if (evalinregister(e2)) goto L2; cs.IEV2.Voffset = e2.EV.Voffset; cs.IEV2.Vsym = e2.EV.Vsym; cs.Iflags |= CFoff; i = 0; /* no INC or DEC opcode */ rval = 0; goto L3; case OPconst: if (tyfv(ty2)) goto L2; if (numwords == 1) { if (!el_signx32(e2)) goto L2; i = e2.EV.Vpointer; if (word) { if (!(*pretregs & mPSW) && config.flags4 & CFG4speed && (e.Eoper == OPor || e.Eoper == OPxor || test || (e1.Eoper != OPvar && e1.Eoper != OPind))) { word = 0; i &= 0xFFFF; } } rval = reghasvalue(isbyte ? BYTEREGS : ALLREGS,i,&rreg); cs.IEV2.Vsize_t = i; L3: if (!test) getregs(cdb,retregs); // we will trash these regs op1 ^= isbyte; cs.Iflags |= word; if (rval) { cs.Iop = op1 ^ 2; mode = rreg; } else cs.Iop = 0x81; cs.Irm = modregrm(3,mode&7,reg&7); if (mode & 8) cs.Irex |= REX_R; if (reg & 8) cs.Irex |= REX_B; if (I64 && sz == 8) cs.Irex |= REX_W; if (I64 && isbyte && (reg >= 4 || (rval && rreg >= 4))) cs.Irex |= REX; cs.IFL2 = cast(ubyte)((e2.Eoper == OPconst) ? FLconst : el_fl(e2)); /* Modify instruction for special cases */ switch (e.Eoper) { case OPadd: { int iop; if (i == 1) iop = 0; /* INC reg */ else if (i == -1) iop = 8; /* DEC reg */ else break; cs.Iop = (0x40 | iop | reg) ^ isbyte; if ((isbyte && *pretregs & mPSW) || I64) { cs.Irm = cast(ubyte)(modregrm(3,0,reg & 7) | iop); cs.Iop = 0xFF; } break; } case OPand: if (test) cs.Iop = rval ? op1 : 0xF7; // TEST break; default: break; } if (*pretregs & mPSW) cs.Iflags |= CFpsw; cs.Iop ^= isbyte; cdb.gen(&cs); cs.Iflags &= ~CFpsw; } else if (numwords == 2) { getregs(cdb,retregs); reg = findregmsw(retregs); const lsreg = findreglsw(retregs); cs.Iop = 0x81; cs.Irm = modregrm(3,mode,lsreg); cs.IFL2 = FLconst; const msw = cast(targ_int)MSREG(e2.EV.Vllong); cs.IEV2.Vint = e2.EV.Vlong; switch (e.Eoper) { case OPadd: case OPmin: cs.Iflags |= CFpsw; break; default: break; } cdb.gen(&cs); cs.Iflags &= ~CFpsw; cs.Irm = cast(ubyte)((cs.Irm & modregrm(3,7,0)) | reg); cs.IEV2.Vint = msw; if (e.Eoper == OPadd) cs.Irm |= modregrm(0,2,0); /* ADC */ cdb.gen(&cs); } else assert(0); freenode(e2); break; case OPvar: if (movOnly(e2)) goto L2; L1: if (tyfv(ty2)) goto L2; if (!test) getregs(cdb,retregs); // we will trash these regs loadea(cdb,e2,&cs,op1, ((numwords == 2) ? findreglsw(retregs) : reg), 0,retregs,retregs); if (!I16 && word) { if (*pretregs & mPSW) code_orflag(cdb.last(),word); else cdb.last().Iflags &= ~cast(int)word; } else if (numwords == 2) { if (e.Eoper == OPadd || e.Eoper == OPmin) code_orflag(cdb.last(),CFpsw); reg = findregmsw(retregs); if (!OTleaf(e2.Eoper)) { getlvalue_msw(&cs); cs.Iop = op2; NEWREG(cs.Irm,reg); cdb.gen(&cs); // ADC reg,data+2 } else loadea(cdb,e2,&cs,op2,reg,REGSIZE,retregs,0); } else if (I64 && sz == 8) code_orrex(cdb.last(), REX_W); freenode(e2); break; } if (sz <= REGSIZE && *pretregs & mPSW) { /* If the expression is (_tls_array + ...), then the flags are not set * since the linker may rewrite these instructions into something else. */ if (I64 && e.Eoper == OPadd && e1.Eoper == OPvar) { const s = e1.EV.Vsym; if (s.Sident[0] == '_' && memcmp(s.Sident.ptr + 1,"tls_array".ptr,10) == 0) { goto L7; // don't assume flags are set } } code_orflag(cdb.last(),CFpsw); *pretregs &= ~mPSW; // flags already set L7: { } } fixresult(cdb,e,retregs,pretregs); } /***************************** * Handle multiply. */ @trusted void cdmul(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { //printf("cdmul()\n"); elem *e1 = e.EV.E1; elem *e2 = e.EV.E2; if (*pretregs == 0) // if don't want result { codelem(cdb,e1,pretregs,false); // eval left leaf *pretregs = 0; // in case they got set codelem(cdb,e2,pretregs,false); return; } //printf("cdmul(e = %p, *pretregs = %s)\n", e, regm_str(*pretregs)); const tyml = tybasic(e1.Ety); const ty = tybasic(e.Ety); const oper = e.Eoper; if (tyfloating(tyml)) { if (tyvector(tyml) || config.fpxmmregs && oper != OPmod && tyxmmreg(tyml) && !(*pretregs & mST0) && !(ty == TYldouble || ty == TYildouble) && // watch out for shrinkLongDoubleConstantIfPossible() !tycomplex(ty) && // SIMD code is not set up to deal with complex mul/div !(ty == TYllong) // or passing to function through integer register ) { orthxmm(cdb,e,pretregs); return; } if (config.exe & EX_posix) orth87(cdb,e,pretregs); else opdouble(cdb,e,pretregs,(oper == OPmul) ? CLIB.dmul : CLIB.ddiv); return; } if (tyxmmreg(tyml)) { orthxmm(cdb,e,pretregs); return; } const uns = tyuns(tyml) || tyuns(e2.Ety); // 1 if signed operation, 0 if unsigned const isbyte = tybyte(e.Ety) != 0; const sz = _tysize[tyml]; const ubyte rex = (I64 && sz == 8) ? REX_W : 0; const uint grex = rex << 16; const OPER opunslng = I16 ? OPu16_32 : OPu32_64; code cs = void; cs.Iflags = 0; cs.Irex = 0; switch (e2.Eoper) { case OPu16_32: case OPs16_32: case OPu32_64: case OPs32_64: { if (sz != 2 * REGSIZE || e1.Eoper != e2.Eoper || e1.Ecount || e2.Ecount) goto default; const ubyte opx = (e2.Eoper == opunslng) ? 4 : 5; regm_t retregsx = mAX; codelem(cdb,e1.EV.E1,&retregsx,false); // eval left leaf if (e2.EV.E1.Eoper == OPvar || (e2.EV.E1.Eoper == OPind && !e2.EV.E1.Ecount) ) { loadea(cdb,e2.EV.E1,&cs,0xF7,opx,0,mAX,mAX | mDX); } else { regm_t rretregsx = ALLREGS & ~mAX; scodelem(cdb,e2.EV.E1,&rretregsx,retregsx,true); // get rvalue getregs(cdb,mAX | mDX); const rregx = findreg(rretregsx); cdb.gen2(0xF7,grex | modregrmx(3,opx,rregx)); // OP AX,rregx } freenode(e.EV.E1); freenode(e2); fixresult(cdb,e,mAX | mDX,pretregs); return; } case OPconst: const e2factor = cast(targ_size_t)el_tolong(e2); // Multiply by a constant if (I32 && sz == REGSIZE * 2) { /* if (msw) IMUL EDX,EDX,lsw IMUL reg,EAX,msw ADD reg,EDX else IMUL reg,EDX,lsw MOV EDX,lsw MUL EDX ADD EDX,reg */ regm_t retregs = mAX | mDX; codelem(cdb,e1,&retregs,false); // eval left leaf reg_t reg = allocScratchReg(cdb, allregs & ~(mAX | mDX)); getregs(cdb,mDX | mAX); const lsw = cast(targ_int)(e2factor & ((1L << (REGSIZE * 8)) - 1)); const msw = cast(targ_int)(e2factor >> (REGSIZE * 8)); if (msw) { genmulimm(cdb,DX,DX,lsw); // IMUL EDX,EDX,lsw genmulimm(cdb,reg,AX,msw); // IMUL reg,EAX,msw cdb.gen2(0x03,modregrm(3,reg,DX)); // ADD reg,EAX } else genmulimm(cdb,reg,DX,lsw); // IMUL reg,EDX,lsw movregconst(cdb,DX,lsw,0); // MOV EDX,lsw getregs(cdb,mDX); cdb.gen2(0xF7,modregrm(3,4,DX)); // MUL EDX cdb.gen2(0x03,modregrm(3,DX,reg)); // ADD EDX,reg const resregx = mDX | mAX; freenode(e2); fixresult(cdb,e,resregx,pretregs); return; } const int pow2 = ispow2(e2factor); if (sz > REGSIZE || !el_signx32(e2)) goto default; if (config.target_cpu >= TARGET_80286) { if (I32 || I64) { // See if we can use an LEA instruction int ss; int ss2 = 0; int shift; switch (e2factor) { case 12: ss = 1; ss2 = 2; goto L4; case 24: ss = 1; ss2 = 3; goto L4; case 6: case 3: ss = 1; goto L4; case 20: ss = 2; ss2 = 2; goto L4; case 40: ss = 2; ss2 = 3; goto L4; case 10: case 5: ss = 2; goto L4; case 36: ss = 3; ss2 = 2; goto L4; case 72: ss = 3; ss2 = 3; goto L4; case 18: case 9: ss = 3; goto L4; L4: { regm_t resreg = *pretregs & ALLREGS & ~(mBP | mR13); if (!resreg) resreg = isbyte ? BYTEREGS : ALLREGS & ~(mBP | mR13); codelem(cdb,e.EV.E1,&resreg,false); getregs(cdb,resreg); reg_t reg = findreg(resreg); cdb.gen2sib(LEA,grex | modregxrm(0,reg,4), modregxrmx(ss,reg,reg)); // LEA reg,[ss*reg][reg] assert((reg & 7) != BP); if (ss2) { cdb.gen2sib(LEA,grex | modregxrm(0,reg,4), modregxrm(ss2,reg,5)); cdb.last().IFL1 = FLconst; cdb.last().IEV1.Vint = 0; // LEA reg,0[ss2*reg] } else if (!(e2factor & 1)) // if even factor { genregs(cdb,0x03,reg,reg); // ADD reg,reg code_orrex(cdb.last(),rex); } freenode(e2); fixresult(cdb,e,resreg,pretregs); return; } case 37: case 74: shift = 2; goto L5; case 13: case 26: shift = 0; goto L5; L5: { regm_t retregs = isbyte ? BYTEREGS : ALLREGS; regm_t resreg = *pretregs & (ALLREGS | mBP); if (!resreg) resreg = retregs; // Don't use EBP resreg &= ~(mBP | mR13); if (!resreg) resreg = retregs; reg_t reg; allocreg(cdb,&resreg,&reg,TYint); regm_t sregm = (ALLREGS & ~mR13) & ~resreg; codelem(cdb,e.EV.E1,&sregm,false); uint sreg = findreg(sregm); getregs(cdb,resreg | sregm); assert((sreg & 7) != BP); assert((reg & 7) != BP); cdb.gen2sib(LEA,grex | modregxrm(0,reg,4), modregxrmx(2,sreg,sreg)); // LEA reg,[sreg*4][sreg] if (shift) cdb.genc2(0xC1,grex | modregrmx(3,4,sreg),shift); // SHL sreg,shift cdb.gen2sib(LEA,grex | modregxrm(0,reg,4), modregxrmx(3,sreg,reg)); // LEA reg,[sreg*8][reg] if (!(e2factor & 1)) // if even factor { genregs(cdb,0x03,reg,reg); // ADD reg,reg code_orrex(cdb.last(),rex); } freenode(e2); fixresult(cdb,e,resreg,pretregs); return; } default: break; } } regm_t retregs = isbyte ? BYTEREGS : ALLREGS; regm_t resreg = *pretregs & (ALLREGS | mBP); if (!resreg) resreg = retregs; scodelem(cdb,e.EV.E1,&retregs,0,true); // eval left leaf const regx = findreg(retregs); reg_t rreg; allocreg(cdb,&resreg,&rreg,e.Ety); // IMUL regx,imm16 cdb.genc2(0x69,grex | modregxrmx(3,rreg,regx),e2factor); freenode(e2); fixresult(cdb,e,resreg,pretregs); return; } goto default; case OPind: if (!e2.Ecount) // if not CSE goto case OPvar; // try OP reg,EA goto default; default: // OPconst and operators //printf("test2 %p, retregs = %s rretregs = %s resreg = %s\n", e, regm_str(retregs), regm_str(rretregs), regm_str(resreg)); if (sz <= REGSIZE) { regm_t retregs = mAX; codelem(cdb,e1,&retregs,false); // eval left leaf regm_t rretregs = isbyte ? BYTEREGS & ~mAX : ALLREGS & ~(mAX|mDX); scodelem(cdb,e2,&rretregs,retregs,true); // get rvalue getregs(cdb,mAX | mDX); // trash these regs reg_t rreg = findreg(rretregs); cdb.gen2(0xF7 ^ isbyte,grex | modregrmx(3,5 - uns,rreg)); // OP AX,rreg if (I64 && isbyte && rreg >= 4) code_orrex(cdb.last(), REX); fixresult(cdb,e,mAX,pretregs); return; } else if (sz == 2 * REGSIZE) { regm_t retregs = mDX | mAX; codelem(cdb,e1,&retregs,false); // eval left leaf if (config.target_cpu >= TARGET_PentiumPro) { regm_t rretregs = allregs & ~retregs; // second arg scodelem(cdb,e2,&rretregs,retregs,true); // get rvalue regm_t rlo = findreglsw(rretregs); regm_t rhi = findregmsw(rretregs); /* IMUL rhi,EAX IMUL EDX,rlo ADD rhi,EDX MUL rlo ADD EDX,rhi */ getregs(cdb,mAX|mDX|mask(rhi)); cdb.gen2(0x0FAF,modregrm(3,rhi,AX)); cdb.gen2(0x0FAF,modregrm(3,DX,rlo)); cdb.gen2(0x03,modregrm(3,rhi,DX)); cdb.gen2(0xF7,modregrm(3,4,rlo)); cdb.gen2(0x03,modregrm(3,DX,rhi)); fixresult(cdb,e,mDX|mAX,pretregs); return; } else { regm_t rretregs = mCX | mBX; // second arg scodelem(cdb,e2,&rretregs,retregs,true); // get rvalue callclib(cdb,e,CLIB.lmul,pretregs,0); return; } } assert(0); case OPvar: if (!I16 && sz <= REGSIZE) { if (sz > 1) // no byte version { // Generate IMUL r32,r/m32 regm_t retregs = *pretregs & (ALLREGS | mBP); if (!retregs) retregs = ALLREGS; codelem(cdb,e1,&retregs,false); // eval left leaf regm_t resreg = retregs; loadea(cdb,e2,&cs,0x0FAF,findreg(resreg),0,retregs,retregs); freenode(e2); fixresult(cdb,e,resreg,pretregs); return; } } else { if (sz == 2 * REGSIZE) { if (e.EV.E1.Eoper != opunslng || e1.Ecount) goto default; // have to handle it with codelem() regm_t retregs = ALLREGS & ~(mAX | mDX); codelem(cdb,e1.EV.E1,&retregs,false); // eval left leaf const reg = findreg(retregs); getregs(cdb,mAX); genmovreg(cdb,AX,reg); // MOV AX,reg loadea(cdb,e2,&cs,0xF7,4,REGSIZE,mAX | mDX | mskl(reg),mAX | mDX); // MUL EA+2 getregs(cdb,retregs); cdb.gen1(0x90 + reg); // XCHG AX,reg getregs(cdb,mAX | mDX); if ((cs.Irm & 0xC0) == 0xC0) // if EA is a register loadea(cdb,e2,&cs,0xF7,4,0,mAX | mskl(reg),mAX | mDX); // MUL EA else { getlvalue_lsw(&cs); cdb.gen(&cs); // MUL EA } cdb.gen2(0x03,modregrm(3,DX,reg)); // ADD DX,reg freenode(e1); fixresult(cdb,e,mAX | mDX,pretregs); return; } assert(sz <= REGSIZE); } // loadea() handles CWD or CLR DX for divides regm_t retregs = sz <= REGSIZE ? mAX : mDX|mAX; codelem(cdb,e.EV.E1,&retregs,false); // eval left leaf loadea(cdb,e2,&cs,0xF7 ^ isbyte,5 - uns,0, mAX, mAX | mDX); freenode(e2); fixresult(cdb,e,mAX,pretregs); return; } assert(0); } /***************************** * Handle divide, modulo and remquo. * Note that modulo isn't defined for doubles. */ @trusted void cddiv(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { //printf("cddiv()\n"); elem *e1 = e.EV.E1; elem *e2 = e.EV.E2; if (*pretregs == 0) // if don't want result { codelem(cdb,e1,pretregs,false); // eval left leaf *pretregs = 0; // in case they got set codelem(cdb,e2,pretregs,false); return; } //printf("cddiv(e = %p, *pretregs = %s)\n", e, regm_str(*pretregs)); const tyml = tybasic(e1.Ety); const ty = tybasic(e.Ety); const oper = e.Eoper; if (tyfloating(tyml)) { if (tyvector(tyml) || config.fpxmmregs && oper != OPmod && tyxmmreg(tyml) && !(*pretregs & mST0) && !(ty == TYldouble || ty == TYildouble) && // watch out for shrinkLongDoubleConstantIfPossible() !tycomplex(ty) && // SIMD code is not set up to deal with complex mul/div !(ty == TYllong) // or passing to function through integer register ) { orthxmm(cdb,e,pretregs); return; } if (config.exe & EX_posix) orth87(cdb,e,pretregs); else opdouble(cdb,e,pretregs,(oper == OPmul) ? CLIB.dmul : CLIB.ddiv); return; } if (tyxmmreg(tyml)) { orthxmm(cdb,e,pretregs); return; } const uns = tyuns(tyml) || tyuns(e2.Ety); // 1 if uint operation, 0 if not const isbyte = tybyte(e.Ety) != 0; const sz = _tysize[tyml]; const ubyte rex = (I64 && sz == 8) ? REX_W : 0; const uint grex = rex << 16; code cs = void; cs.Iflags = 0; cs.IFL2 = 0; cs.Irex = 0; switch (e2.Eoper) { case OPconst: auto d = cast(targ_size_t)el_tolong(e2); bool neg = false; const e2factor = d; if (!uns && cast(targ_llong)e2factor < 0) { neg = true; d = -d; } // Signed divide by a constant if ((d & (d - 1)) && ((I32 && sz == 4) || (I64 && (sz == 4 || sz == 8))) && config.flags4 & CFG4speed && !uns) { /* R1 / 10 * * MOV EAX,m * IMUL R1 * MOV EAX,R1 * SAR EAX,31 * SAR EDX,shpost * SUB EDX,EAX * IMUL EAX,EDX,d * SUB R1,EAX * * EDX = quotient * R1 = remainder */ assert(sz == 4 || sz == 8); ulong m; int shpost; const int N = sz * 8; const bool mhighbit = choose_multiplier(N, d, N - 1, &m, &shpost); regm_t regm = allregs & ~(mAX | mDX); codelem(cdb,e1,&regm,false); // eval left leaf const reg_t reg = findreg(regm); getregs(cdb,regm | mDX | mAX); /* Algorithm 5.2 * if m>=2**(N-1) * q = SRA(n + MULSH(m-2**N,n), shpost) - XSIGN(n) * else * q = SRA(MULSH(m,n), shpost) - XSIGN(n) * if (neg) * q = -q */ const bool mgt = mhighbit || m >= (1UL << (N - 1)); movregconst(cdb, AX, cast(targ_size_t)m, (sz == 8) ? 0x40 : 0); // MOV EAX,m cdb.gen2(0xF7,grex | modregrmx(3,5,reg)); // IMUL R1 if (mgt) cdb.gen2(0x03,grex | modregrmx(3,DX,reg)); // ADD EDX,R1 getregsNoSave(mAX); // EAX no longer contains 'm' genmovreg(cdb, AX, reg); // MOV EAX,R1 cdb.genc2(0xC1,grex | modregrm(3,7,AX),sz * 8 - 1); // SAR EAX,31 if (shpost) cdb.genc2(0xC1,grex | modregrm(3,7,DX),shpost); // SAR EDX,shpost reg_t r3; if (neg && oper == OPdiv) { cdb.gen2(0x2B,grex | modregrm(3,AX,DX)); // SUB EAX,EDX r3 = AX; } else { cdb.gen2(0x2B,grex | modregrm(3,DX,AX)); // SUB EDX,EAX r3 = DX; } // r3 is quotient regm_t resregx; switch (oper) { case OPdiv: resregx = mask(r3); break; case OPmod: assert(reg != AX && r3 == DX); if (sz == 4 || (sz == 8 && cast(targ_long)d == d)) { cdb.genc2(0x69,grex | modregrm(3,AX,DX),d); // IMUL EAX,EDX,d } else { movregconst(cdb,AX,d,(sz == 8) ? 0x40 : 0); // MOV EAX,d cdb.gen2(0x0FAF,grex | modregrmx(3,AX,DX)); // IMUL EAX,EDX getregsNoSave(mAX); // EAX no longer contains 'd' } cdb.gen2(0x2B,grex | modregxrm(3,reg,AX)); // SUB R1,EAX resregx = regm; break; case OPremquo: assert(reg != AX && r3 == DX); if (sz == 4 || (sz == 8 && cast(targ_long)d == d)) { cdb.genc2(0x69,grex | modregrm(3,AX,DX),d); // IMUL EAX,EDX,d } else { movregconst(cdb,AX,d,(sz == 8) ? 0x40 : 0); // MOV EAX,d cdb.gen2(0x0FAF,grex | modregrmx(3,AX,DX)); // IMUL EAX,EDX } cdb.gen2(0x2B,grex | modregxrm(3,reg,AX)); // SUB R1,EAX genmovreg(cdb, AX, r3); // MOV EAX,r3 if (neg) cdb.gen2(0xF7,grex | modregrm(3,3,AX)); // NEG EAX genmovreg(cdb, DX, reg); // MOV EDX,R1 resregx = mDX | mAX; break; default: assert(0); } freenode(e2); fixresult(cdb,e,resregx,pretregs); return; } // Unsigned divide by a constant if (e2factor > 2 && (e2factor & (e2factor - 1)) && ((I32 && sz == 4) || (I64 && (sz == 4 || sz == 8))) && config.flags4 & CFG4speed && uns) { assert(sz == 4 || sz == 8); reg_t r3; regm_t regm; reg_t reg; ulong m; int shpre; int shpost; if (udiv_coefficients(sz * 8, e2factor, &shpre, &m, &shpost)) { /* t1 = MULUH(m, n) * q = SRL(t1 + SRL(n - t1, 1), shpost - 1) * MOV EAX,reg * MOV EDX,m * MUL EDX * MOV EAX,reg * SUB EAX,EDX * SHR EAX,1 * LEA R3,[EAX][EDX] * SHR R3,shpost-1 */ assert(shpre == 0); regm = allregs & ~(mAX | mDX); codelem(cdb,e1,&regm,false); // eval left leaf reg = findreg(regm); getregs(cdb,mAX | mDX); genmovreg(cdb,AX,reg); // MOV EAX,reg movregconst(cdb, DX, cast(targ_size_t)m, (sz == 8) ? 0x40 : 0); // MOV EDX,m getregs(cdb,regm | mDX | mAX); cdb.gen2(0xF7,grex | modregrmx(3,4,DX)); // MUL EDX genmovreg(cdb,AX,reg); // MOV EAX,reg cdb.gen2(0x2B,grex | modregrm(3,AX,DX)); // SUB EAX,EDX cdb.genc2(0xC1,grex | modregrm(3,5,AX),1); // SHR EAX,1 regm_t regm3 = allregs; if (oper == OPmod || oper == OPremquo) { regm3 &= ~regm; if (oper == OPremquo || !el_signx32(e2)) regm3 &= ~mAX; } allocreg(cdb,&regm3,&r3,TYint); cdb.gen2sib(LEA,grex | modregxrm(0,r3,4),modregrm(0,AX,DX)); // LEA R3,[EAX][EDX] if (shpost != 1) cdb.genc2(0xC1,grex | modregrmx(3,5,r3),shpost-1); // SHR R3,shpost-1 } else { /* q = SRL(MULUH(m, SRL(n, shpre)), shpost) * SHR EAX,shpre * MOV reg,m * MUL reg * SHR EDX,shpost */ regm = mAX; if (oper == OPmod || oper == OPremquo) regm = allregs & ~(mAX|mDX); codelem(cdb,e1,&regm,false); // eval left leaf reg = findreg(regm); if (reg != AX) { getregs(cdb,mAX); genmovreg(cdb,AX,reg); // MOV EAX,reg } if (shpre) { getregs(cdb,mAX); cdb.genc2(0xC1,grex | modregrm(3,5,AX),shpre); // SHR EAX,shpre } getregs(cdb,mDX); movregconst(cdb, DX, cast(targ_size_t)m, (sz == 8) ? 0x40 : 0); // MOV EDX,m getregs(cdb,mDX | mAX); cdb.gen2(0xF7,grex | modregrmx(3,4,DX)); // MUL EDX if (shpost) cdb.genc2(0xC1,grex | modregrm(3,5,DX),shpost); // SHR EDX,shpost r3 = DX; } regm_t resreg; switch (oper) { case OPdiv: // r3 = quotient resreg = mask(r3); break; case OPmod: /* reg = original value * r3 = quotient */ assert(!(regm & mAX)); if (el_signx32(e2)) { cdb.genc2(0x69,grex | modregrmx(3,AX,r3),e2factor); // IMUL EAX,r3,e2factor } else { assert(!(mask(r3) & mAX)); movregconst(cdb,AX,e2factor,(sz == 8) ? 0x40 : 0); // MOV EAX,e2factor getregs(cdb,mAX); cdb.gen2(0x0FAF,grex | modregrmx(3,AX,r3)); // IMUL EAX,r3 } getregs(cdb,regm); cdb.gen2(0x2B,grex | modregxrm(3,reg,AX)); // SUB reg,EAX resreg = regm; break; case OPremquo: /* reg = original value * r3 = quotient */ assert(!(mask(r3) & (mAX|regm))); assert(!(regm & mAX)); if (el_signx32(e2)) { cdb.genc2(0x69,grex | modregrmx(3,AX,r3),e2factor); // IMUL EAX,r3,e2factor } else { movregconst(cdb,AX,e2factor,(sz == 8) ? 0x40 : 0); // MOV EAX,e2factor getregs(cdb,mAX); cdb.gen2(0x0FAF,grex | modregrmx(3,AX,r3)); // IMUL EAX,r3 } getregs(cdb,regm); cdb.gen2(0x2B,grex | modregxrm(3,reg,AX)); // SUB reg,EAX genmovreg(cdb, AX, r3); // MOV EAX,r3 genmovreg(cdb, DX, reg); // MOV EDX,reg resreg = mDX | mAX; break; default: assert(0); } freenode(e2); fixresult(cdb,e,resreg,pretregs); return; } const int pow2 = ispow2(e2factor); // Register pair signed divide by power of 2 if (sz == REGSIZE * 2 && (oper == OPdiv) && !uns && pow2 != -1 && I32 // not set up for I64 cent yet ) { regm_t retregs = mDX | mAX; if (pow2 == 63 && !(retregs & BYTEREGS & mLSW)) retregs = (retregs & mMSW) | (BYTEREGS & mLSW); // because of SETZ codelem(cdb,e.EV.E1,&retregs,false); // eval left leaf const rhi = findregmsw(retregs); const rlo = findreglsw(retregs); freenode(e2); getregs(cdb,retregs); if (pow2 < 32) { reg_t r1 = allocScratchReg(cdb, allregs & ~retregs); genmovreg(cdb,r1,rhi); // MOV r1,rhi if (pow2 == 1) cdb.genc2(0xC1,grex | modregrmx(3,5,r1),REGSIZE * 8 - 1); // SHR r1,31 else { cdb.genc2(0xC1,grex | modregrmx(3,7,r1),REGSIZE * 8 - 1); // SAR r1,31 cdb.genc2(0x81,grex | modregrmx(3,4,r1),(1 << pow2) - 1); // AND r1,mask } cdb.gen2(0x03,grex | modregxrmx(3,rlo,r1)); // ADD rlo,r1 cdb.genc2(0x81,grex | modregxrmx(3,2,rhi),0); // ADC rhi,0 cdb.genc2(0x0FAC,grex | modregrm(3,rhi,rlo),pow2); // SHRD rlo,rhi,pow2 cdb.genc2(0xC1,grex | modregrmx(3,7,rhi),pow2); // SAR rhi,pow2 } else if (pow2 == 32) { reg_t r1 = allocScratchReg(cdb, allregs & ~retregs); genmovreg(cdb,r1,rhi); // MOV r1,rhi cdb.genc2(0xC1,grex | modregrmx(3,7,r1),REGSIZE * 8 - 1); // SAR r1,31 cdb.gen2(0x03,grex | modregxrmx(3,rlo,r1)); // ADD rlo,r1 cdb.genc2(0x81,grex | modregxrmx(3,2,rhi),0); // ADC rhi,0 cdb.genmovreg(rlo,rhi); // MOV rlo,rhi cdb.genc2(0xC1,grex | modregrmx(3,7,rhi),REGSIZE * 8 - 1); // SAR rhi,31 } else if (pow2 < 63) { reg_t r1 = allocScratchReg(cdb, allregs & ~retregs); reg_t r2 = allocScratchReg(cdb, allregs & ~(retregs | mask(r1))); genmovreg(cdb,r1,rhi); // MOV r1,rhi cdb.genc2(0xC1,grex | modregrmx(3,7,r1),REGSIZE * 8 - 1); // SAR r1,31 cdb.genmovreg(r2,r1); // MOV r2,r1 if (pow2 == 33) { cdb.gen2(0xF7,modregrmx(3,3,r1)); // NEG r1 cdb.gen2(0x03,grex | modregxrmx(3,rlo,r2)); // ADD rlo,r2 cdb.gen2(0x13,grex | modregxrmx(3,rhi,r1)); // ADC rhi,r1 } else { cdb.genc2(0x81,grex | modregrmx(3,4,r2),(1 << (pow2-32)) - 1); // AND r2,mask cdb.gen2(0x03,grex | modregxrmx(3,rlo,r1)); // ADD rlo,r1 cdb.gen2(0x13,grex | modregxrmx(3,rhi,r2)); // ADC rhi,r2 } cdb.genmovreg(rlo,rhi); // MOV rlo,rhi cdb.genc2(0xC1,grex | modregrmx(3,7,rlo),pow2 - 32); // SAR rlo,pow2-32 cdb.genc2(0xC1,grex | modregrmx(3,7,rhi),REGSIZE * 8 - 1); // SAR rhi,31 } else { // This may be better done by cgelem.d assert(pow2 == 63); cdb.genc2(0x81,grex | modregrmx(3,4,rhi),0x8000_0000); // ADD rhi,0x8000_000 cdb.genregs(0x09,rlo,rhi); // OR rlo,rhi cdb.gen2(0x0F94,modregrmx(3,0,rlo)); // SETZ rlo cdb.genregs(MOVZXb,rlo,rlo); // MOVZX rlo,rloL movregconst(cdb,rhi,0,0); // MOV rhi,0 } fixresult(cdb,e,retregs,pretregs); return; } // Register pair signed modulo by power of 2 if (sz == REGSIZE * 2 && (oper == OPmod) && !uns && pow2 != -1 && I32 // not set up for I64 cent yet ) { regm_t retregs = mDX | mAX; codelem(cdb,e.EV.E1,&retregs,false); // eval left leaf const rhi = findregmsw(retregs); const rlo = findreglsw(retregs); freenode(e2); getregs(cdb,retregs); regm_t scratchm = allregs & ~retregs; if (pow2 == 63) scratchm &= BYTEREGS; // because of SETZ reg_t r1 = allocScratchReg(cdb, scratchm); if (pow2 < 32) { cdb.genmovreg(r1,rhi); // MOV r1,rhi cdb.genc2(0xC1,grex | modregrmx(3,7,r1),REGSIZE * 8 - 1); // SAR r1,31 cdb.gen2(0x33,grex | modregxrmx(3,rlo,r1)); // XOR rlo,r1 cdb.gen2(0x2B,grex | modregxrmx(3,rlo,r1)); // SUB rlo,r1 cdb.genc2(0x81,grex | modregrmx(3,4,rlo),(1<<pow2)-1); // AND rlo,(1<<pow2)-1 cdb.gen2(0x33,grex | modregxrmx(3,rlo,r1)); // XOR rlo,r1 cdb.gen2(0x2B,grex | modregxrmx(3,rlo,r1)); // SUB rlo,r1 cdb.gen2(0x1B,grex | modregxrmx(3,rhi,rhi)); // SBB rhi,rhi } else if (pow2 == 32) { cdb.genmovreg(r1,rhi); // MOV r1,rhi cdb.genc2(0xC1,grex | modregrmx(3,7,r1),REGSIZE * 8 - 1); // SAR r1,31 cdb.gen2(0x03,grex | modregxrmx(3,rlo,r1)); // ADD rlo,r1 cdb.gen2(0x2B,grex | modregxrmx(3,rlo,r1)); // SUB rlo,r1 cdb.gen2(0x1B,grex | modregxrmx(3,rhi,rhi)); // SBB rhi,rhi } else if (pow2 < 63) { reg_t r2 = allocScratchReg(cdb, allregs & ~(retregs | mask(r1))); cdb.genmovreg(r1,rhi); // MOV r1,rhi cdb.genc2(0xC1,grex | modregrmx(3,7,r1),REGSIZE * 8 - 1); // SAR r1,31 cdb.genmovreg(r2,r1); // MOV r2,r1 cdb.genc2(0x0FAC,grex | modregrm(3,r2,r1),64-pow2); // SHRD r1,r2,64-pow2 cdb.genc2(0xC1,grex | modregrmx(3,5,r2),64-pow2); // SHR r2,64-pow2 cdb.gen2(0x03,grex | modregxrmx(3,rlo,r1)); // ADD rlo,r1 cdb.gen2(0x13,grex | modregxrmx(3,rhi,r2)); // ADC rhi,r2 cdb.genc2(0x81,grex | modregrmx(3,4,rhi),(1<<(pow2-32))-1); // AND rhi,(1<<(pow2-32))-1 cdb.gen2(0x2B,grex | modregxrmx(3,rlo,r1)); // SUB rlo,r1 cdb.gen2(0x1B,grex | modregxrmx(3,rhi,r2)); // SBB rhi,r2 } else { // This may be better done by cgelem.d assert(pow2 == 63); cdb.genc1(LEA,grex | modregxrmx(2,r1,rhi), FLconst, 0x8000_0000); // LEA r1,0x8000_0000[rhi] cdb.gen2(0x0B,grex | modregxrmx(3,r1,rlo)); // OR r1,rlo cdb.gen2(0x0F94,modregrmx(3,0,r1)); // SETZ r1 cdb.genc2(0xC1,grex | modregrmx(3,4,r1),REGSIZE * 8 - 1); // SHL r1,31 cdb.gen2(0x2B,grex | modregxrmx(3,rhi,r1)); // SUB rhi,r1 } fixresult(cdb,e,retregs,pretregs); return; } if (sz > REGSIZE || !el_signx32(e2)) goto default; // Special code for signed divide or modulo by power of 2 if ((sz == REGSIZE || (I64 && sz == 4)) && (oper == OPdiv || oper == OPmod) && !uns && pow2 != -1 && !(config.target_cpu < TARGET_80286 && pow2 != 1 && oper == OPdiv) ) { if (pow2 == 1 && oper == OPdiv && config.target_cpu > TARGET_80386) { /* MOV r,reg SHR r,31 ADD reg,r SAR reg,1 */ regm_t retregs = allregs; codelem(cdb,e.EV.E1,&retregs,false); // eval left leaf const reg = findreg(retregs); freenode(e2); getregs(cdb,retregs); reg_t r = allocScratchReg(cdb, allregs & ~retregs); genmovreg(cdb,r,reg); // MOV r,reg cdb.genc2(0xC1,grex | modregxrmx(3,5,r),(sz * 8 - 1)); // SHR r,31 cdb.gen2(0x03,grex | modregxrmx(3,reg,r)); // ADD reg,r cdb.gen2(0xD1,grex | modregrmx(3,7,reg)); // SAR reg,1 regm_t resreg = retregs; fixresult(cdb,e,resreg,pretregs); return; } regm_t resreg; switch (oper) { case OPdiv: resreg = mAX; break; case OPmod: resreg = mDX; break; case OPremquo: resreg = mDX | mAX; break; default: assert(0); } regm_t retregs = mAX; codelem(cdb,e.EV.E1,&retregs,false); // eval left leaf freenode(e2); getregs(cdb,mAX | mDX); // modify these regs cdb.gen1(0x99); // CWD code_orrex(cdb.last(), rex); if (pow2 == 1) { if (oper == OPdiv) { cdb.gen2(0x2B,grex | modregrm(3,AX,DX)); // SUB AX,DX cdb.gen2(0xD1,grex | modregrm(3,7,AX)); // SAR AX,1 } else // OPmod { cdb.gen2(0x33,grex | modregrm(3,AX,DX)); // XOR AX,DX cdb.genc2(0x81,grex | modregrm(3,4,AX),1); // AND AX,1 cdb.gen2(0x03,grex | modregrm(3,DX,AX)); // ADD DX,AX } } else { targ_ulong m; m = (1 << pow2) - 1; if (oper == OPdiv) { cdb.genc2(0x81,grex | modregrm(3,4,DX),m); // AND DX,m cdb.gen2(0x03,grex | modregrm(3,AX,DX)); // ADD AX,DX // Be careful not to generate this for 8088 assert(config.target_cpu >= TARGET_80286); cdb.genc2(0xC1,grex | modregrm(3,7,AX),pow2); // SAR AX,pow2 } else // OPmod { cdb.gen2(0x33,grex | modregrm(3,AX,DX)); // XOR AX,DX cdb.gen2(0x2B,grex | modregrm(3,AX,DX)); // SUB AX,DX cdb.genc2(0x81,grex | modregrm(3,4,AX),m); // AND AX,mask cdb.gen2(0x33,grex | modregrm(3,AX,DX)); // XOR AX,DX cdb.gen2(0x2B,grex | modregrm(3,AX,DX)); // SUB AX,DX resreg = mAX; } } fixresult(cdb,e,resreg,pretregs); return; } goto default; case OPind: if (!e2.Ecount) // if not CSE goto case OPvar; // try OP reg,EA goto default; default: // OPconst and operators //printf("test2 %p, retregs = %s rretregs = %s resreg = %s\n", e, regm_str(retregs), regm_str(rretregs), regm_str(resreg)); regm_t retregs = sz <= REGSIZE ? mAX : mDX | mAX; codelem(cdb,e1,&retregs,false); // eval left leaf regm_t rretregs; if (sz <= REGSIZE) // dedicated regs for div { // pick some other regs rretregs = isbyte ? BYTEREGS & ~mAX : ALLREGS & ~(mAX|mDX); } else { assert(sz <= 2 * REGSIZE); rretregs = mCX | mBX; // second arg } scodelem(cdb,e2,&rretregs,retregs,true); // get rvalue if (sz <= REGSIZE) { getregs(cdb,mAX | mDX); // trash these regs if (uns) // unsigned divide { movregconst(cdb,DX,0,(sz == 8) ? 64 : 0); // MOV DX,0 getregs(cdb,mDX); } else { cdb.gen1(0x99); // CWD code_orrex(cdb.last(),rex); } reg_t rreg = findreg(rretregs); cdb.gen2(0xF7 ^ isbyte,grex | modregrmx(3,7 - uns,rreg)); // OP AX,rreg if (I64 && isbyte && rreg >= 4) code_orrex(cdb.last(), REX); regm_t resreg; switch (oper) { case OPdiv: resreg = mAX; break; case OPmod: resreg = mDX; break; case OPremquo: resreg = mDX | mAX; break; default: assert(0); } fixresult(cdb,e,resreg,pretregs); } else if (sz == 2 * REGSIZE) { uint lib; switch (oper) { case OPdiv: case OPremquo: lib = uns ? CLIB.uldiv : CLIB.ldiv; break; case OPmod: lib = uns ? CLIB.ulmod : CLIB.lmod; break; default: assert(0); } regm_t keepregs = I32 ? mSI | mDI : 0; callclib(cdb,e,lib,pretregs,keepregs); } else assert(0); return; case OPvar: if (I16 || sz == 2 * REGSIZE) goto default; // have to handle it with codelem() // loadea() handles CWD or CLR DX for divides regm_t retregs = mAX; codelem(cdb,e.EV.E1,&retregs,false); // eval left leaf loadea(cdb,e2,&cs,0xF7 ^ isbyte,7 - uns,0, mAX | mDX, mAX | mDX); freenode(e2); regm_t resreg; switch (oper) { case OPdiv: resreg = mAX; break; case OPmod: resreg = mDX; break; case OPremquo: resreg = mDX | mAX; break; default: assert(0); } fixresult(cdb,e,resreg,pretregs); return; } assert(0); } /*************************** * Handle OPnot and OPbool. * Generate: * c: [evaluate e1] * cfalse: [save reg code] * clr reg * jmp cnop * ctrue: [save reg code] * clr reg * inc reg * cnop: nop */ @trusted void cdnot(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { //printf("cdnot()\n"); reg_t reg; tym_t forflags; regm_t retregs; elem *e1 = e.EV.E1; if (*pretregs == 0) goto L1; if (*pretregs == mPSW) { //assert(e.Eoper != OPnot && e.Eoper != OPbool);*/ /* should've been optimized L1: codelem(cdb,e1,pretregs,false); // evaluate e1 for cc return; } OPER op = e.Eoper; uint sz = tysize(e1.Ety); uint rex = (I64 && sz == 8) ? REX_W : 0; uint grex = rex << 16; if (!tyfloating(e1.Ety)) { if (sz <= REGSIZE && e1.Eoper == OPvar) { code cs; getlvalue(cdb,&cs,e1,0); freenode(e1); if (!I16 && sz == 2) cs.Iflags |= CFopsize; retregs = *pretregs & (ALLREGS | mBP); if (config.target_cpu >= TARGET_80486 && tysize(e.Ety) == 1) { if (reghasvalue((sz == 1) ? BYTEREGS : ALLREGS,0,&reg)) { cs.Iop = 0x39; if (I64 && (sz == 1) && reg >= 4) cs.Irex |= REX; } else { cs.Iop = 0x81; reg = 7; cs.IFL2 = FLconst; cs.IEV2.Vint = 0; } cs.Iop ^= (sz == 1); code_newreg(&cs,reg); cdb.gen(&cs); // CMP e1,0 retregs &= BYTEREGS; if (!retregs) retregs = BYTEREGS; allocreg(cdb,&retregs,&reg,TYint); const opcode_t iop = (op == OPbool) ? 0x0F95 // SETNZ rm8 : 0x0F94; // SETZ rm8 cdb.gen2(iop, modregrmx(3,0,reg)); if (reg >= 4) code_orrex(cdb.last(), REX); if (op == OPbool) *pretregs &= ~mPSW; goto L4; } if (reghasvalue((sz == 1) ? BYTEREGS : ALLREGS,1,&reg)) cs.Iop = 0x39; else { cs.Iop = 0x81; reg = 7; cs.IFL2 = FLconst; cs.IEV2.Vint = 1; } if (I64 && (sz == 1) && reg >= 4) cs.Irex |= REX; cs.Iop ^= (sz == 1); code_newreg(&cs,reg); cdb.gen(&cs); // CMP e1,1 allocreg(cdb,&retregs,&reg,TYint); op ^= (OPbool ^ OPnot); // switch operators goto L2; } else if (config.target_cpu >= TARGET_80486 && tysize(e.Ety) == 1) { int jop = jmpopcode(e.EV.E1); retregs = mPSW; codelem(cdb,e.EV.E1,&retregs,false); retregs = *pretregs & BYTEREGS; if (!retregs) retregs = BYTEREGS; allocreg(cdb,&retregs,&reg,TYint); int iop = 0x0F90 | (jop & 0x0F); // SETcc rm8 if (op == OPnot) iop ^= 1; cdb.gen2(iop,grex | modregrmx(3,0,reg)); if (reg >= 4) code_orrex(cdb.last(), REX); if (op == OPbool) *pretregs &= ~mPSW; goto L4; } else if (sz <= REGSIZE && // NEG bytereg is too expensive (sz != 1 || config.target_cpu < TARGET_PentiumPro)) { retregs = *pretregs & (ALLREGS | mBP); if (sz == 1 && !(retregs &= BYTEREGS)) retregs = BYTEREGS; codelem(cdb,e.EV.E1,&retregs,false); reg = findreg(retregs); getregs(cdb,retregs); cdb.gen2(sz == 1 ? 0xF6 : 0xF7,grex | modregrmx(3,3,reg)); // NEG reg code_orflag(cdb.last(),CFpsw); if (!I16 && sz == SHORTSIZE) code_orflag(cdb.last(),CFopsize); L2: genregs(cdb,0x19,reg,reg); // SBB reg,reg code_orrex(cdb.last(), rex); // At this point, reg==0 if e1==0, reg==-1 if e1!=0 if (op == OPnot) { if (I64) cdb.gen2(0xFF,grex | modregrmx(3,0,reg)); // INC reg else cdb.gen1(0x40 + reg); // INC reg } else cdb.gen2(0xF7,grex | modregrmx(3,3,reg)); // NEG reg if (*pretregs & mPSW) { code_orflag(cdb.last(),CFpsw); *pretregs &= ~mPSW; // flags are always set anyway } L4: fixresult(cdb,e,retregs,pretregs); return; } } code *cnop = gennop(null); code *ctrue = gennop(null); logexp(cdb,e.EV.E1,(op == OPnot) ? false : true,FLcode,ctrue); forflags = *pretregs & mPSW; if (I64 && sz == 8) forflags |= 64; assert(tysize(e.Ety) <= REGSIZE); // result better be int CodeBuilder cdbfalse; cdbfalse.ctor(); allocreg(cdbfalse,pretregs,&reg,e.Ety); // allocate reg for result code *cfalse = cdbfalse.finish(); CodeBuilder cdbtrue; cdbtrue.ctor(); cdbtrue.append(ctrue); for (code *c1 = cfalse; c1; c1 = code_next(c1)) cdbtrue.gen(c1); // duplicate reg save code CodeBuilder cdbfalse2; cdbfalse2.ctor(); movregconst(cdbfalse2,reg,0,forflags); // mov 0 into reg regcon.immed.mval &= ~mask(reg); // mark reg as unavail movregconst(cdbtrue,reg,1,forflags); // mov 1 into reg regcon.immed.mval &= ~mask(reg); // mark reg as unavail genjmp(cdbfalse2,JMP,FLcode,cast(block *) cnop); // skip over ctrue cdb.append(cfalse); cdb.append(cdbfalse2); cdb.append(cdbtrue); cdb.append(cnop); } /************************ * Complement operator */ @trusted void cdcom(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { if (*pretregs == 0) { codelem(cdb,e.EV.E1,pretregs,false); return; } tym_t tym = tybasic(e.Ety); int sz = _tysize[tym]; uint rex = (I64 && sz == 8) ? REX_W : 0; regm_t possregs = (sz == 1) ? BYTEREGS : allregs; regm_t retregs = *pretregs & possregs; if (retregs == 0) retregs = possregs; codelem(cdb,e.EV.E1,&retregs,false); getregs(cdb,retregs); // retregs will be destroyed if (0 && sz == 4 * REGSIZE) { cdb.gen2(0xF7,modregrm(3,2,AX)); // NOT AX cdb.gen2(0xF7,modregrm(3,2,BX)); // NOT BX cdb.gen2(0xF7,modregrm(3,2,CX)); // NOT CX cdb.gen2(0xF7,modregrm(3,2,DX)); // NOT DX } else { const reg = (sz <= REGSIZE) ? findreg(retregs) : findregmsw(retregs); const op = (sz == 1) ? 0xF6 : 0xF7; genregs(cdb,op,2,reg); // NOT reg code_orrex(cdb.last(), rex); if (I64 && sz == 1 && reg >= 4) code_orrex(cdb.last(), REX); if (sz == 2 * REGSIZE) { const reg2 = findreglsw(retregs); genregs(cdb,op,2,reg2); // NOT reg+1 } } fixresult(cdb,e,retregs,pretregs); } /************************ * Bswap operator */ @trusted void cdbswap(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { if (*pretregs == 0) { codelem(cdb,e.EV.E1,pretregs,false); return; } const tym = tybasic(e.Ety); const sz = _tysize[tym]; const posregs = (sz == 2) ? mAX|mBX|mCX|mDX : allregs; regm_t retregs = *pretregs & posregs; if (retregs == 0) retregs = posregs; codelem(cdb,e.EV.E1,&retregs,false); getregs(cdb,retregs); // retregs will be destroyed if (sz == 2 * REGSIZE) { assert(sz != 16); // no cent support yet const msreg = findregmsw(retregs); cdb.gen1(0x0FC8 + (msreg & 7)); // BSWAP msreg const lsreg = findreglsw(retregs); cdb.gen1(0x0FC8 + (lsreg & 7)); // BSWAP lsreg cdb.gen2(0x87,modregrm(3,msreg,lsreg)); // XCHG msreg,lsreg } else { const reg = findreg(retregs); if (sz == 2) { genregs(cdb,0x86,reg+4,reg); // XCHG regL,regH } else { assert(sz == 4 || sz == 8); cdb.gen1(0x0FC8 + (reg & 7)); // BSWAP reg ubyte rex = 0; if (sz == 8) rex |= REX_W; if (reg & 8) rex |= REX_B; if (rex) code_orrex(cdb.last(), rex); } } fixresult(cdb,e,retregs,pretregs); } /************************* * ?: operator */ @trusted void cdcond(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { con_t regconold,regconsave; uint stackpushold,stackpushsave; int ehindexold,ehindexsave; uint sz2; /* vars to save state of 8087 */ int stackusedold,stackusedsave; NDP[global87.stack.length] _8087old; NDP[global87.stack.length] _8087save; //printf("cdcond(e = %p, *pretregs = %s)\n",e,regm_str(*pretregs)); elem *e1 = e.EV.E1; elem *e2 = e.EV.E2; elem *e21 = e2.EV.E1; elem *e22 = e2.EV.E2; regm_t psw = *pretregs & mPSW; /* save PSW bit */ const op1 = e1.Eoper; uint sz1 = tysize(e1.Ety); uint jop = jmpopcode(e1); uint jop1 = jmpopcode(e21); uint jop2 = jmpopcode(e22); docommas(cdb,&e1); cgstate.stackclean++; if (!OTrel(op1) && e1 == e21 && sz1 <= REGSIZE && !tyfloating(e1.Ety)) { // Recognize (e ? e : f) code *cnop1 = gennop(null); regm_t retregs = *pretregs | mPSW; codelem(cdb,e1,&retregs,false); cse_flush(cdb,1); // flush CSEs to memory genjmp(cdb,jop,FLcode,cast(block *)cnop1); freenode(e21); regconsave = regcon; stackpushsave = stackpush; retregs |= psw; if (retregs & (mBP | ALLREGS)) regimmed_set(findreg(retregs),0); codelem(cdb,e22,&retregs,false); andregcon(&regconsave); assert(stackpushsave == stackpush); *pretregs = retregs; freenode(e2); cdb.append(cnop1); cgstate.stackclean--; return; } if (OTrel(op1) && sz1 <= REGSIZE && tysize(e2.Ety) <= REGSIZE && !e1.Ecount && (jop == JC || jop == JNC) && (sz2 = tysize(e2.Ety)) <= REGSIZE && e21.Eoper == OPconst && e22.Eoper == OPconst ) { uint sz = tysize(e.Ety); uint rex = (I64 && sz == 8) ? REX_W : 0; uint grex = rex << 16; regm_t retregs; targ_size_t v1,v2; if (sz2 != 1 || I64) { retregs = *pretregs & (ALLREGS | mBP); if (!retregs) retregs = ALLREGS; } else { retregs = *pretregs & BYTEREGS; if (!retregs) retregs = BYTEREGS; } cdcmp_flag = 1 | rex; v1 = cast(targ_size_t)e21.EV.Vllong; v2 = cast(targ_size_t)e22.EV.Vllong; if (jop == JNC) { v1 = v2; v2 = cast(targ_size_t)e21.EV.Vllong; } opcode_t opcode = 0x81; switch (sz2) { case 1: opcode--; v1 = cast(byte) v1; v2 = cast(byte) v2; break; case 2: v1 = cast(short) v1; v2 = cast(short) v2; break; case 4: v1 = cast(int) v1; v2 = cast(int) v2; break; default: break; } if (I64 && v1 != cast(targ_ullong)cast(targ_ulong)v1) { // only zero-extension from 32-bits is available for 'or' } else if (I64 && cast(targ_llong)v2 != cast(targ_llong)cast(targ_long)v2) { // only sign-extension from 32-bits is available for 'and' } else { codelem(cdb,e1,&retregs,false); const reg = findreg(retregs); if (v1 == 0 && v2 == ~cast(targ_size_t)0) { cdb.gen2(0xF6 + (opcode & 1),grex | modregrmx(3,2,reg)); // NOT reg if (I64 && sz2 == REGSIZE) code_orrex(cdb.last(), REX_W); if (I64 && sz2 == 1 && reg >= 4) code_orrex(cdb.last(), REX); } else { v1 -= v2; cdb.genc2(opcode,grex | modregrmx(3,4,reg),v1); // AND reg,v1-v2 if (I64 && sz2 == 1 && reg >= 4) code_orrex(cdb.last(), REX); if (v2 == 1 && !I64) cdb.gen1(0x40 + reg); // INC reg else if (v2 == -1L && !I64) cdb.gen1(0x48 + reg); // DEC reg else { cdb.genc2(opcode,grex | modregrmx(3,0,reg),v2); // ADD reg,v2 if (I64 && sz2 == 1 && reg >= 4) code_orrex(cdb.last(), REX); } } freenode(e21); freenode(e22); freenode(e2); fixresult(cdb,e,retregs,pretregs); cgstate.stackclean--; return; } } if (op1 != OPcond && op1 != OPandand && op1 != OPoror && op1 != OPnot && op1 != OPbool && e21.Eoper == OPconst && sz1 <= REGSIZE && *pretregs & (mBP | ALLREGS) && tysize(e21.Ety) <= REGSIZE && !tyfloating(e21.Ety)) { // Recognize (e ? c : f) code *cnop1 = gennop(null); regm_t retregs = mPSW; jop = jmpopcode(e1); // get jmp condition codelem(cdb,e1,&retregs,false); // Set the register with e21 without affecting the flags retregs = *pretregs & (ALLREGS | mBP); if (retregs & ~regcon.mvar) retregs &= ~regcon.mvar; // don't disturb register variables // NOTE: see my email (sign extension bug? possible fix, some questions reg_t reg; regwithvalue(cdb,retregs,cast(targ_size_t)e21.EV.Vllong,&reg,tysize(e21.Ety) == 8 ? 64|8 : 8); retregs = mask(reg); cse_flush(cdb,1); // flush CSE's to memory genjmp(cdb,jop,FLcode,cast(block *)cnop1); freenode(e21); regconsave = regcon; stackpushsave = stackpush; codelem(cdb,e22,&retregs,false); andregcon(&regconsave); assert(stackpushsave == stackpush); freenode(e2); cdb.append(cnop1); fixresult(cdb,e,retregs,pretregs); cgstate.stackclean--; return; } code *cnop1 = gennop(null); code *cnop2 = gennop(null); // dummy target addresses logexp(cdb,e1,false,FLcode,cnop1); // evaluate condition regconold = regcon; stackusedold = global87.stackused; stackpushold = stackpush; memcpy(_8087old.ptr,global87.stack.ptr,global87.stack.sizeof); regm_t retregs = *pretregs; CodeBuilder cdb1; cdb1.ctor(); if (psw && jop1 != JNE) { retregs &= ~mPSW; if (!retregs) retregs = ALLREGS; codelem(cdb1,e21,&retregs,false); fixresult(cdb1,e21,retregs,pretregs); } else codelem(cdb1,e21,&retregs,false); if (CPP && e2.Eoper == OPcolon2) { code cs; // This is necessary so that any cleanup code on one branch // is redone on the other branch. cs.Iop = ESCAPE | ESCmark2; cs.Iflags = 0; cs.Irex = 0; cdb.gen(&cs); cdb.append(cdb1); cs.Iop = ESCAPE | ESCrelease2; cdb.gen(&cs); } else cdb.append(cdb1); regconsave = regcon; regcon = regconold; stackpushsave = stackpush; stackpush = stackpushold; stackusedsave = global87.stackused; global87.stackused = stackusedold; memcpy(_8087save.ptr,global87.stack.ptr,global87.stack.sizeof); memcpy(global87.stack.ptr,_8087old.ptr,global87.stack.sizeof); retregs |= psw; // PSW bit may have been trashed *pretregs |= psw; CodeBuilder cdb2; cdb2.ctor(); if (psw && jop2 != JNE) { retregs &= ~mPSW; if (!retregs) retregs = ALLREGS; codelem(cdb2,e22,&retregs,false); fixresult(cdb2,e22,retregs,pretregs); } else codelem(cdb2,e22,&retregs,false); // use same regs as E1 *pretregs = retregs | psw; andregcon(&regconold); andregcon(&regconsave); assert(global87.stackused == stackusedsave); assert(stackpush == stackpushsave); memcpy(global87.stack.ptr,_8087save.ptr,global87.stack.sizeof); freenode(e2); genjmp(cdb,JMP,FLcode,cast(block *) cnop2); cdb.append(cnop1); cdb.append(cdb2); cdb.append(cnop2); if (*pretregs & mST0) note87(e,0,0); cgstate.stackclean--; } /********************* * Comma operator OPcomma */ @trusted void cdcomma(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { regm_t retregs = 0; codelem(cdb,e.EV.E1,&retregs,false); // ignore value from left leaf codelem(cdb,e.EV.E2,pretregs,false); // do right leaf } /********************************* * Do && and || operators. * Generate: * (evaluate e1 and e2, if true goto cnop1) * cnop3: NOP * cg: [save reg code] ;if we must preserve reg * CLR reg ;false result (set Z also) * JMP cnop2 * * cnop1: NOP ;if e1 evaluates to true * [save reg code] ;preserve reg * * MOV reg,1 ;true result * or * CLR reg ;if return result in flags * INC reg * * cnop2: NOP ;mark end of code */ @trusted void cdloglog(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { /* We can trip the assert with the following: * if ( (b<=a) ? (c<b || a<=c) : c>=a ) * We'll generate ugly code for it, but it's too obscure a case * to expend much effort on it. * assert(*pretregs != mPSW); */ //printf("cdloglog() *pretregs: %s\n", regm_str(*pretregs)); cgstate.stackclean++; code *cnop1 = gennop(null); CodeBuilder cdb1; cdb1.ctor(); cdb1.append(cnop1); code *cnop3 = gennop(null); elem *e2 = e.EV.E2; (e.Eoper == OPoror) ? logexp(cdb,e.EV.E1,1,FLcode,cnop1) : logexp(cdb,e.EV.E1,0,FLcode,cnop3); con_t regconsave = regcon; uint stackpushsave = stackpush; if (*pretregs == 0) // if don't want result { int noreturn = !el_returns(e2); codelem(cdb,e2,pretregs,false); if (noreturn) { regconsave.used |= regcon.used; regcon = regconsave; } else andregcon(&regconsave); assert(stackpush == stackpushsave); cdb.append(cnop3); cdb.append(cdb1); // eval code, throw away result cgstate.stackclean--; return; } if (tybasic(e2.Ety) == TYnoreturn) { regm_t retregs2 = 0; codelem(cdb, e2, &retregs2, false); regconsave.used |= regcon.used; regcon = regconsave; assert(stackpush == stackpushsave); regm_t retregs = *pretregs & (ALLREGS | mBP); if (!retregs) retregs = ALLREGS; // if mPSW only reg_t reg; allocreg(cdb1,&retregs,&reg,TYint); // allocate reg for result movregconst(cdb1,reg,e.Eoper == OPoror,*pretregs & mPSW); regcon.immed.mval &= ~mask(reg); // mark reg as unavail *pretregs = retregs; cdb.append(cnop3); cdb.append(cdb1); // eval code, throw away result cgstate.stackclean--; return; } code *cnop2 = gennop(null); uint sz = tysize(e.Ety); if (tybasic(e2.Ety) == TYbool && sz == tysize(e2.Ety) && !(*pretregs & mPSW) && e2.Eoper == OPcall) { codelem(cdb,e2,pretregs,false); andregcon(&regconsave); // stack depth should not change when evaluating E2 assert(stackpush == stackpushsave); assert(sz <= 4); // result better be int regm_t retregs = *pretregs & allregs; reg_t reg; allocreg(cdb1,&retregs,&reg,TYint); // allocate reg for result movregconst(cdb1,reg,e.Eoper == OPoror,0); // reg = 1 regcon.immed.mval &= ~mask(reg); // mark reg as unavail *pretregs = retregs; if (e.Eoper == OPoror) { cdb.append(cnop3); genjmp(cdb,JMP,FLcode,cast(block *) cnop2); // JMP cnop2 cdb.append(cdb1); cdb.append(cnop2); } else { genjmp(cdb,JMP,FLcode,cast(block *) cnop2); // JMP cnop2 cdb.append(cnop3); cdb.append(cdb1); cdb.append(cnop2); } cgstate.stackclean--; return; } logexp(cdb,e2,1,FLcode,cnop1); andregcon(&regconsave); // stack depth should not change when evaluating E2 assert(stackpush == stackpushsave); assert(sz <= 4); // result better be int regm_t retregs = *pretregs & (ALLREGS | mBP); if (!retregs) retregs = ALLREGS; // if mPSW only CodeBuilder cdbcg; cdbcg.ctor(); reg_t reg; allocreg(cdbcg,&retregs,&reg,TYint); // allocate reg for result code *cg = cdbcg.finish(); for (code *c1 = cg; c1; c1 = code_next(c1)) // for each instruction cdb1.gen(c1); // duplicate it CodeBuilder cdbcg2; cdbcg2.ctor(); movregconst(cdbcg2,reg,0,*pretregs & mPSW); // MOV reg,0 regcon.immed.mval &= ~mask(reg); // mark reg as unavail genjmp(cdbcg2, JMP,FLcode,cast(block *) cnop2); // JMP cnop2 movregconst(cdb1,reg,1,*pretregs & mPSW); // reg = 1 regcon.immed.mval &= ~mask(reg); // mark reg as unavail *pretregs = retregs; cdb.append(cnop3); cdb.append(cg); cdb.append(cdbcg2); cdb.append(cdb1); cdb.append(cnop2); cgstate.stackclean--; return; } /********************* * Generate code for shift left or shift right (OPshl,OPshr,OPashr,OProl,OPror). */ @trusted void cdshift(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { reg_t resreg; uint shiftcnt; regm_t retregs,rretregs; //printf("cdshift()\n"); elem *e1 = e.EV.E1; if (*pretregs == 0) // if don't want result { codelem(cdb,e1,pretregs,false); // eval left leaf *pretregs = 0; // in case they got set codelem(cdb,e.EV.E2,pretregs,false); return; } tym_t tyml = tybasic(e1.Ety); int sz = _tysize[tyml]; assert(!tyfloating(tyml)); OPER oper = e.Eoper; uint grex = ((I64 && sz == 8) ? REX_W : 0) << 16; uint s1,s2; switch (oper) { case OPshl: s1 = 4; // SHL s2 = 2; // RCL break; case OPshr: s1 = 5; // SHR s2 = 3; // RCR break; case OPashr: s1 = 7; // SAR s2 = 3; // RCR break; case OProl: s1 = 0; // ROL break; case OPror: s1 = 1; // ROR break; default: assert(0); } reg_t sreg = NOREG; // guard against using value without assigning to sreg elem *e2 = e.EV.E2; regm_t forccs = *pretregs & mPSW; // if return result in CCs regm_t forregs = *pretregs & (ALLREGS | mBP); // mask of possible return regs bool e2isconst = false; // assume for the moment uint isbyte = (sz == 1); switch (e2.Eoper) { case OPconst: e2isconst = true; // e2 is a constant shiftcnt = e2.EV.Vint; // get shift count if ((!I16 && sz <= REGSIZE) || shiftcnt <= 4 || // if sequence of shifts (sz == 2 && (shiftcnt == 8 || config.target_cpu >= TARGET_80286)) || (sz == 2 * REGSIZE && shiftcnt == 8 * REGSIZE) ) { retregs = (forregs) ? forregs : ALLREGS; if (isbyte) { retregs &= BYTEREGS; if (!retregs) retregs = BYTEREGS; } else if (sz > REGSIZE && sz <= 2 * REGSIZE && !(retregs & mMSW)) retregs |= mMSW & ALLREGS; if (s1 == 7) // if arithmetic right shift { if (shiftcnt == 8) retregs = mAX; else if (sz == 2 * REGSIZE && shiftcnt == 8 * REGSIZE) retregs = mDX|mAX; } if (sz == 2 * REGSIZE && shiftcnt == 8 * REGSIZE && oper == OPshl && !e1.Ecount && (e1.Eoper == OPs16_32 || e1.Eoper == OPu16_32 || e1.Eoper == OPs32_64 || e1.Eoper == OPu32_64) ) { // Handle (shtlng)s << 16 regm_t r = retregs & mMSW; codelem(cdb,e1.EV.E1,&r,false); // eval left leaf regwithvalue(cdb,retregs & mLSW,0,&resreg,0); getregs(cdb,r); retregs = r | mask(resreg); if (forccs) { sreg = findreg(r); gentstreg(cdb,sreg); *pretregs &= ~mPSW; // already set } freenode(e1); freenode(e2); break; } // See if we should use LEA reg,xxx instead of shift if (!I16 && shiftcnt >= 1 && shiftcnt <= 3 && (sz == REGSIZE || (I64 && sz == 4)) && oper == OPshl && e1.Eoper == OPvar && !(*pretregs & mPSW) && config.flags4 & CFG4speed ) { reg_t reg; regm_t regm; if (isregvar(e1,&regm,&reg) && !(regm & retregs)) { code cs; allocreg(cdb,&retregs,&resreg,e.Ety); buildEA(&cs,-1,reg,1 << shiftcnt,0); cs.Iop = LEA; code_newreg(&cs,resreg); cs.Iflags = 0; if (I64 && sz == 8) cs.Irex |= REX_W; cdb.gen(&cs); // LEA resreg,[reg * ss] freenode(e1); freenode(e2); break; } } codelem(cdb,e1,&retregs,false); // eval left leaf //assert((retregs & regcon.mvar) == 0); getregs(cdb,retregs); // modify these regs { if (sz == 2 * REGSIZE) { resreg = findregmsw(retregs); sreg = findreglsw(retregs); } else { resreg = findreg(retregs); sreg = NOREG; // an invalid value } if (config.target_cpu >= TARGET_80286 && sz <= REGSIZE) { // SHL resreg,shiftcnt assert(!(sz == 1 && (mask(resreg) & ~BYTEREGS))); cdb.genc2(0xC1 ^ isbyte,grex | modregxrmx(3,s1,resreg),shiftcnt); if (shiftcnt == 1) cdb.last().Iop += 0x10; // short form of shift if (I64 && sz == 1 && resreg >= 4) cdb.last().Irex |= REX; // See if we need operand size prefix if (!I16 && oper != OPshl && sz == 2) cdb.last().Iflags |= CFopsize; if (forccs) cdb.last().Iflags |= CFpsw; // need flags result } else if (shiftcnt == 8) { if (!(retregs & BYTEREGS) || resreg >= 4) { goto L1; } if (pass != BackendPass.final_ && (!forregs || forregs & (mSI | mDI))) { // e1 might get into SI or DI in a later pass, // so don't put CX into a register getregs(cdb,mCX); } assert(sz == 2); switch (oper) { case OPshl: // MOV regH,regL XOR regL,regL assert(resreg < 4 && !grex); genregs(cdb,0x8A,resreg+4,resreg); genregs(cdb,0x32,resreg,resreg); break; case OPshr: case OPashr: // MOV regL,regH genregs(cdb,0x8A,resreg,resreg+4); if (oper == OPashr) cdb.gen1(0x98); // CBW else genregs(cdb,0x32,resreg+4,resreg+4); // CLR regH break; case OPror: case OProl: // XCHG regL,regH genregs(cdb,0x86,resreg+4,resreg); break; default: assert(0); } if (forccs) gentstreg(cdb,resreg); } else if (shiftcnt == REGSIZE * 8) // it's an lword { if (oper == OPshl) swap(&resreg, &sreg); genmovreg(cdb,sreg,resreg); // MOV sreg,resreg if (oper == OPashr) cdb.gen1(0x99); // CWD else movregconst(cdb,resreg,0,0); // MOV resreg,0 if (forccs) { gentstreg(cdb,sreg); *pretregs &= mBP | ALLREGS | mES; } } else { if (oper == OPshl && sz == 2 * REGSIZE) swap(&resreg, &sreg); while (shiftcnt--) { cdb.gen2(0xD1 ^ isbyte,modregrm(3,s1,resreg)); if (sz == 2 * REGSIZE) { code_orflag(cdb.last(),CFpsw); cdb.gen2(0xD1,modregrm(3,s2,sreg)); } } if (forccs) code_orflag(cdb.last(),CFpsw); } if (sz <= REGSIZE) *pretregs &= mBP | ALLREGS; // flags already set } freenode(e2); break; } goto default; default: retregs = forregs & ~mCX; // CX will be shift count if (sz <= REGSIZE) { if (forregs & ~regcon.mvar && !(retregs & ~regcon.mvar)) retregs = ALLREGS & ~mCX; // need something else if (!retregs) retregs = ALLREGS & ~mCX; // need something if (sz == 1) { retregs &= mAX|mBX|mDX; if (!retregs) retregs = mAX|mBX|mDX; } } else { if (!(retregs & mMSW)) retregs = ALLREGS & ~mCX; } codelem(cdb,e.EV.E1,&retregs,false); // eval left leaf if (sz <= REGSIZE) resreg = findreg(retregs); else { resreg = findregmsw(retregs); sreg = findreglsw(retregs); } L1: rretregs = mCX; // CX is shift count if (sz <= REGSIZE) { scodelem(cdb,e2,&rretregs,retregs,false); // get rvalue getregs(cdb,retregs); // trash these regs cdb.gen2(0xD3 ^ isbyte,grex | modregrmx(3,s1,resreg)); // Sxx resreg,CX if (!I16 && sz == 2 && (oper == OProl || oper == OPror)) cdb.last().Iflags |= CFopsize; // Note that a shift by CL does not set the flags if // CL == 0. If e2 is a constant, we know it isn't 0 // (it would have been optimized out). if (e2isconst) *pretregs &= mBP | ALLREGS; // flags already set with result } else if (sz == 2 * REGSIZE && config.target_cpu >= TARGET_80386) { reg_t hreg = resreg; reg_t lreg = sreg; uint rex = I64 ? (REX_W << 16) : 0; if (e2isconst) { getregs(cdb,retregs); if (shiftcnt & (REGSIZE * 8)) { if (oper == OPshr) { // SHR hreg,shiftcnt // MOV lreg,hreg // XOR hreg,hreg cdb.genc2(0xC1,rex | modregrm(3,s1,hreg),shiftcnt - (REGSIZE * 8)); genmovreg(cdb,lreg,hreg); movregconst(cdb,hreg,0,0); } else if (oper == OPashr) { // MOV lreg,hreg // SAR hreg,31 // SHRD lreg,hreg,shiftcnt genmovreg(cdb,lreg,hreg); cdb.genc2(0xC1,rex | modregrm(3,s1,hreg),(REGSIZE * 8) - 1); cdb.genc2(0x0FAC,rex | modregrm(3,hreg,lreg),shiftcnt - (REGSIZE * 8)); } else { // SHL lreg,shiftcnt // MOV hreg,lreg // XOR lreg,lreg cdb.genc2(0xC1,rex | modregrm(3,s1,lreg),shiftcnt - (REGSIZE * 8)); genmovreg(cdb,hreg,lreg); movregconst(cdb,lreg,0,0); } } else { if (oper == OPshr || oper == OPashr) { // SHRD lreg,hreg,shiftcnt // SHR/SAR hreg,shiftcnt cdb.genc2(0x0FAC,rex | modregrm(3,hreg,lreg),shiftcnt); cdb.genc2(0xC1,rex | modregrm(3,s1,hreg),shiftcnt); } else { // SHLD hreg,lreg,shiftcnt // SHL lreg,shiftcnt cdb.genc2(0x0FA4,rex | modregrm(3,lreg,hreg),shiftcnt); cdb.genc2(0xC1,rex | modregrm(3,s1,lreg),shiftcnt); } } freenode(e2); } else if (config.target_cpu >= TARGET_80486 && REGSIZE == 2) { scodelem(cdb,e2,&rretregs,retregs,false); // get rvalue in CX getregs(cdb,retregs); // modify these regs if (oper == OPshl) { /* SHLD hreg,lreg,CL SHL lreg,CL */ cdb.gen2(0x0FA5,modregrm(3,lreg,hreg)); cdb.gen2(0xD3,modregrm(3,4,lreg)); } else { /* SHRD lreg,hreg,CL SAR hreg,CL -- or -- SHRD lreg,hreg,CL SHR hreg,CL */ cdb.gen2(0x0FAD,modregrm(3,hreg,lreg)); cdb.gen2(0xD3,modregrm(3,s1,hreg)); } } else { code* cl1,cl2; scodelem(cdb,e2,&rretregs,retregs,false); // get rvalue in CX getregs(cdb,retregs | mCX); // modify these regs // TEST CL,0x20 cdb.genc2(0xF6,modregrm(3,0,CX),REGSIZE * 8); cl1 = gennop(null); CodeBuilder cdb1; cdb1.ctor(); cdb1.append(cl1); if (oper == OPshl) { /* TEST CL,20H JNE L1 SHLD hreg,lreg,CL SHL lreg,CL JMP L2 L1: AND CL,20H-1 SHL lreg,CL MOV hreg,lreg XOR lreg,lreg L2: NOP */ if (REGSIZE == 2) cdb1.genc2(0x80,modregrm(3,4,CX),REGSIZE * 8 - 1); cdb1.gen2(0xD3,modregrm(3,4,lreg)); genmovreg(cdb1,hreg,lreg); genregs(cdb1,0x31,lreg,lreg); genjmp(cdb,JNE,FLcode,cast(block *)cl1); cdb.gen2(0x0FA5,modregrm(3,lreg,hreg)); cdb.gen2(0xD3,modregrm(3,4,lreg)); } else { if (oper == OPashr) { /* TEST CL,20H JNE L1 SHRD lreg,hreg,CL SAR hreg,CL JMP L2 L1: AND CL,15 MOV lreg,hreg SAR hreg,31 SHRD lreg,hreg,CL L2: NOP */ if (REGSIZE == 2) cdb1.genc2(0x80,modregrm(3,4,CX),REGSIZE * 8 - 1); genmovreg(cdb1,lreg,hreg); cdb1.genc2(0xC1,modregrm(3,s1,hreg),31); cdb1.gen2(0x0FAD,modregrm(3,hreg,lreg)); } else { /* TEST CL,20H JNE L1 SHRD lreg,hreg,CL SHR hreg,CL JMP L2 L1: AND CL,15 SHR hreg,CL MOV lreg,hreg XOR hreg,hreg L2: NOP */ if (REGSIZE == 2) cdb1.genc2(0x80,modregrm(3,4,CX),REGSIZE * 8 - 1); cdb1.gen2(0xD3,modregrm(3,5,hreg)); genmovreg(cdb1,lreg,hreg); genregs(cdb1,0x31,hreg,hreg); } genjmp(cdb,JNE,FLcode,cast(block *)cl1); cdb.gen2(0x0FAD,modregrm(3,hreg,lreg)); cdb.gen2(0xD3,modregrm(3,s1,hreg)); } cl2 = gennop(null); genjmp(cdb,JMPS,FLcode,cast(block *)cl2); cdb.append(cdb1); cdb.append(cl2); } break; } else if (sz == 2 * REGSIZE) { scodelem(cdb,e2,&rretregs,retregs,false); getregs(cdb,retregs | mCX); if (oper == OPshl) swap(&resreg, &sreg); if (!e2isconst) // if not sure shift count != 0 cdb.genc2(0xE3,0,6); // JCXZ .+6 cdb.gen2(0xD1,modregrm(3,s1,resreg)); code_orflag(cdb.last(),CFtarg2); cdb.gen2(0xD1,modregrm(3,s2,sreg)); cdb.genc2(0xE2,0,cast(targ_uns)-6); // LOOP .-6 regimmed_set(CX,0); // note that now CX == 0 } else assert(0); break; } fixresult(cdb,e,retregs,pretregs); } /*************************** * Perform a 'star' reference (indirection). */ @trusted void cdind(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { regm_t retregs; reg_t reg; uint nreg; //printf("cdind(e = %p, *pretregs = %s)\n",e,regm_str(*pretregs)); tym_t tym = tybasic(e.Ety); if (tyfloating(tym)) { if (config.inline8087) { if (*pretregs & mST0) { cdind87(cdb, e, pretregs); return; } if (I64 && tym == TYcfloat && *pretregs & (ALLREGS | mBP)) { } else if (tycomplex(tym)) { cload87(cdb, e, pretregs); return; } if (*pretregs & mPSW) { cdind87(cdb, e, pretregs); return; } } } elem *e1 = e.EV.E1; assert(e1); switch (tym) { case TYstruct: case TYarray: // This case should never happen, why is it here? tym = TYnptr; // don't confuse allocreg() if (*pretregs & (mES | mCX) || e.Ety & mTYfar) tym = TYfptr; break; default: break; } uint sz = _tysize[tym]; uint isbyte = tybyte(tym) != 0; code cs; getlvalue(cdb,&cs,e,RMload); // get addressing mode //printf("Irex = %02x, Irm = x%02x, Isib = x%02x\n", cs.Irex, cs.Irm, cs.Isib); //fprintf(stderr,"cd2 :\n"); WRcodlst(c); if (*pretregs == 0) { if (e.Ety & mTYvolatile) // do the load anyway *pretregs = regmask(e.Ety, 0); // load into registers else return; } regm_t idxregs = idxregm(&cs); // mask of index regs used if (*pretregs == mPSW) { if (!I16 && tym == TYfloat) { retregs = ALLREGS & ~idxregs; allocreg(cdb,&retregs,&reg,TYfloat); cs.Iop = 0x8B; code_newreg(&cs,reg); cdb.gen(&cs); // MOV reg,lsw cdb.gen2(0xD1,modregrmx(3,4,reg)); // SHL reg,1 code_orflag(cdb.last(), CFpsw); } else if (sz <= REGSIZE) { cs.Iop = 0x81 ^ isbyte; cs.Irm |= modregrm(0,7,0); cs.IFL2 = FLconst; cs.IEV2.Vsize_t = 0; cdb.gen(&cs); // CMP [idx],0 } else if (!I16 && sz == REGSIZE + 2) // if far pointer { retregs = ALLREGS & ~idxregs; allocreg(cdb,&retregs,&reg,TYint); cs.Iop = MOVZXw; cs.Irm |= modregrm(0,reg,0); getlvalue_msw(&cs); cdb.gen(&cs); // MOVZX reg,msw goto L4; } else if (sz <= 2 * REGSIZE) { retregs = ALLREGS & ~idxregs; allocreg(cdb,&retregs,&reg,TYint); cs.Iop = 0x8B; code_newreg(&cs,reg); getlvalue_msw(&cs); cdb.gen(&cs); // MOV reg,msw if (I32) { if (tym == TYdouble || tym == TYdouble_alias) cdb.gen2(0xD1,modregrm(3,4,reg)); // SHL reg,1 } else if (tym == TYfloat) cdb.gen2(0xD1,modregrm(3,4,reg)); // SHL reg,1 L4: cs.Iop = 0x0B; getlvalue_lsw(&cs); cs.Iflags |= CFpsw; cdb.gen(&cs); // OR reg,lsw } else if (!I32 && sz == 8) { *pretregs |= DOUBLEREGS_16; // fake it for now goto L1; } else { debug printf("%s\n", tym_str(tym)); assert(0); } } else // else return result in reg { L1: retregs = *pretregs; if (sz == 8 && (retregs & (mPSW | mSTACK | ALLREGS | mBP)) == mSTACK) { int i; // Optimizer should not CSE these, as the result is worse code! assert(!e.Ecount); cs.Iop = 0xFF; cs.Irm |= modregrm(0,6,0); cs.IEV1.Voffset += 8 - REGSIZE; stackchanged = 1; i = 8 - REGSIZE; do { cdb.gen(&cs); // PUSH EA+i cdb.genadjesp(REGSIZE); cs.IEV1.Voffset -= REGSIZE; stackpush += REGSIZE; i -= REGSIZE; } while (i >= 0); goto L3; } if (I16 && sz == 8) retregs = DOUBLEREGS_16; // Watch out for loading an lptr from an lptr! We must have // the offset loaded into a different register. /*if (retregs & mES && (cs.Iflags & CFSEG) == CFes) retregs = ALLREGS;*/ { assert(!isbyte || retregs & BYTEREGS); allocreg(cdb,&retregs,&reg,tym); // alloc registers } if (retregs & XMMREGS) { assert(sz == 4 || sz == 8 || sz == 16 || sz == 32); // float, double or vector cs.Iop = xmmload(tym); cs.Irex &= ~REX_W; code_newreg(&cs,reg - XMM0); checkSetVex(&cs,tym); cdb.gen(&cs); // MOV reg,[idx] } else if (sz <= REGSIZE) { cs.Iop = 0x8B; // MOV if (sz <= 2 && !I16 && config.target_cpu >= TARGET_PentiumPro && config.flags4 & CFG4speed) { cs.Iop = tyuns(tym) ? MOVZXw : MOVSXw; // MOVZX/MOVSX cs.Iflags &= ~CFopsize; } cs.Iop ^= isbyte; L2: code_newreg(&cs,reg); cdb.gen(&cs); // MOV reg,[idx] if (isbyte && reg >= 4) code_orrex(cdb.last(), REX); } else if ((tym == TYfptr || tym == TYhptr) && retregs & mES) { cs.Iop = 0xC4; // LES reg,[idx] goto L2; } else if (sz <= 2 * REGSIZE) { uint lsreg; cs.Iop = 0x8B; // Be careful not to interfere with index registers if (!I16) { // Can't handle if both result registers are used in // the addressing mode. if ((retregs & idxregs) == retregs) { retregs = mMSW & allregs & ~idxregs; if (!retregs) retregs |= mCX; retregs |= mLSW & ~idxregs; // We can run out of registers, so if that's possible, // give us *one* of the idxregs if ((retregs & ~regcon.mvar & mLSW) == 0) { regm_t x = idxregs & mLSW; if (x) retregs |= mask(findreg(x)); // give us one idxreg } else if ((retregs & ~regcon.mvar & mMSW) == 0) { regm_t x = idxregs & mMSW; if (x) retregs |= mask(findreg(x)); // give us one idxreg } allocreg(cdb,&retregs,&reg,tym); // alloc registers assert((retregs & idxregs) != retregs); } lsreg = findreglsw(retregs); if (mask(reg) & idxregs) // reg is in addr mode { code_newreg(&cs,lsreg); cdb.gen(&cs); // MOV lsreg,lsw if (sz == REGSIZE + 2) cs.Iflags |= CFopsize; lsreg = reg; getlvalue_msw(&cs); // MOV reg,msw } else { code_newreg(&cs,reg); getlvalue_msw(&cs); cdb.gen(&cs); // MOV reg,msw if (sz == REGSIZE + 2) cdb.last().Iflags |= CFopsize; getlvalue_lsw(&cs); // MOV lsreg,lsw } NEWREG(cs.Irm,lsreg); cdb.gen(&cs); } else { // Index registers are always the lsw! cs.Irm |= modregrm(0,reg,0); getlvalue_msw(&cs); cdb.gen(&cs); // MOV reg,msw lsreg = findreglsw(retregs); NEWREG(cs.Irm,lsreg); getlvalue_lsw(&cs); // MOV lsreg,lsw cdb.gen(&cs); } } else if (I16 && sz == 8) { assert(reg == AX); cs.Iop = 0x8B; cs.IEV1.Voffset += 6; cdb.gen(&cs); // MOV AX,EA+6 cs.Irm |= modregrm(0,CX,0); cs.IEV1.Voffset -= 4; cdb.gen(&cs); // MOV CX,EA+2 NEWREG(cs.Irm,DX); cs.IEV1.Voffset -= 2; cdb.gen(&cs); // MOV DX,EA cs.IEV1.Voffset += 4; NEWREG(cs.Irm,BX); cdb.gen(&cs); // MOV BX,EA+4 } else assert(0); L3: fixresult(cdb,e,retregs,pretregs); } //fprintf(stderr,"cdafter :\n"); WRcodlst(c); } /******************************** * Generate code to load ES with the right segment value, * do nothing if e is a far pointer. */ @trusted private code *cod2_setES(tym_t ty) { if (config.exe & EX_flat) return null; int push; CodeBuilder cdb; cdb.ctor(); switch (tybasic(ty)) { case TYnptr: if (!(config.flags3 & CFG3eseqds)) { push = 0x1E; // PUSH DS goto L1; } break; case TYcptr: push = 0x0E; // PUSH CS goto L1; case TYsptr: if ((config.wflags & WFssneds) || !(config.flags3 & CFG3eseqds)) { push = 0x16; // PUSH SS L1: // Must load ES getregs(cdb,mES); cdb.gen1(push); cdb.gen1(0x07); // POP ES } break; default: break; } return cdb.finish(); } /******************************** * Generate code for intrinsic strlen(). */ @trusted void cdstrlen(ref CodeBuilder cdb, elem *e, regm_t *pretregs) { /* Generate strlen in CX: LES DI,e1 CLR AX ;scan for 0 MOV CX,-1 ;largest possible string REPNE SCASB NOT CX DEC CX */ regm_t retregs = mDI; tym_t ty1 = e.EV.E1.Ety; if (!tyreg(ty1)) retregs |= mES; codelem(cdb,e.EV.E1,&retregs,false); // Make sure ES contains proper segment value cdb.append(cod2_setES(ty1)); ubyte rex = I64 ? REX_W : 0; getregs_imm(cdb,mAX | mCX); movregconst(cdb,AX,0,1); // MOV AL,0 movregconst(cdb,CX,-cast(targ_size_t)1,I64 ? 64 : 0); // MOV CX,-1 getregs(cdb,mDI|mCX); cdb.gen1(0xF2); // REPNE cdb.gen1(0xAE); // SCASB genregs(cdb,0xF7,2,CX); // NOT CX code_orrex(cdb.last(), rex); if (I64) cdb.gen2(0xFF,(rex << 16) | modregrm(3,1,CX)); // DEC reg else cdb.gen1(0x48 + CX); // DEC CX if (*pretregs & mPSW) { cdb.last().Iflags |= CFpsw; *pretregs &= ~mPSW; } fixresult(cdb,e,mCX,pretregs); } /********************************* * Generate code for strcmp(s1,s2) intrinsic. */ @trusted void cdstrcmp(ref CodeBuilder cdb, elem *e, regm_t *pretregs) { char need_DS; int segreg; /* MOV SI,s1 ;get destination pointer (s1) MOV CX,s1+2 LES DI,s2 ;get source pointer (s2) PUSH DS MOV DS,CX CLR AX ;scan for 0 MOV CX,-1 ;largest possible string REPNE SCASB NOT CX ;CX = string length of s2 SUB DI,CX ;point DI back to beginning REPE CMPSB ;compare string POP DS JE L1 ;strings are equal SBB AX,AX SBB AX,-1 L1: */ regm_t retregs1 = mSI; tym_t ty1 = e.EV.E1.Ety; if (!tyreg(ty1)) retregs1 |= mCX; codelem(cdb,e.EV.E1,&retregs1,false); regm_t retregs = mDI; tym_t ty2 = e.EV.E2.Ety; if (!tyreg(ty2)) retregs |= mES; scodelem(cdb,e.EV.E2,&retregs,retregs1,false); // Make sure ES contains proper segment value cdb.append(cod2_setES(ty2)); getregs_imm(cdb,mAX | mCX); ubyte rex = I64 ? REX_W : 0; // Load DS with right value switch (tybasic(ty1)) { case TYnptr: case TYimmutPtr: need_DS = false; break; case TYsptr: if (config.wflags & WFssneds) // if sptr can't use DS segment segreg = SEG_SS; else segreg = SEG_DS; goto L1; case TYcptr: segreg = SEG_CS; L1: cdb.gen1(0x1E); // PUSH DS cdb.gen1(0x06 + (segreg << 3)); // PUSH segreg cdb.gen1(0x1F); // POP DS need_DS = true; break; case TYfptr: case TYvptr: case TYhptr: cdb.gen1(0x1E); // PUSH DS cdb.gen2(0x8E,modregrm(3,SEG_DS,CX)); // MOV DS,CX need_DS = true; break; default: assert(0); } movregconst(cdb,AX,0,0); // MOV AX,0 movregconst(cdb,CX,-cast(targ_size_t)1,I64 ? 64 : 0); // MOV CX,-1 getregs(cdb,mSI|mDI|mCX); cdb.gen1(0xF2); // REPNE cdb.gen1(0xAE); // SCASB genregs(cdb,0xF7,2,CX); // NOT CX code_orrex(cdb.last(),rex); genregs(cdb,0x2B,DI,CX); // SUB DI,CX code_orrex(cdb.last(),rex); cdb.gen1(0xF3); // REPE cdb.gen1(0xA6); // CMPSB if (need_DS) cdb.gen1(0x1F); // POP DS code *c4 = gennop(null); if (*pretregs != mPSW) // if not flags only { genjmp(cdb,JE,FLcode,cast(block *) c4); // JE L1 getregs(cdb,mAX); genregs(cdb,0x1B,AX,AX); // SBB AX,AX code_orrex(cdb.last(),rex); cdb.genc2(0x81,(rex << 16) | modregrm(3,3,AX),cast(targ_uns)-1); // SBB AX,-1 } *pretregs &= ~mPSW; cdb.append(c4); fixresult(cdb,e,mAX,pretregs); } /********************************* * Generate code for memcmp(s1,s2,n) intrinsic. */ @trusted void cdmemcmp(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { char need_DS; int segreg; /* MOV SI,s1 ;get destination pointer (s1) MOV DX,s1+2 LES DI,s2 ;get source pointer (s2) MOV CX,n ;get number of bytes to compare PUSH DS MOV DS,DX XOR AX,AX REPE CMPSB ;compare string POP DS JE L1 ;strings are equal SBB AX,AX SBB AX,-1 L1: */ elem *e1 = e.EV.E1; assert(e1.Eoper == OPparam); // Get s1 into DX:SI regm_t retregs1 = mSI; tym_t ty1 = e1.EV.E1.Ety; if (!tyreg(ty1)) retregs1 |= mDX; codelem(cdb,e1.EV.E1,&retregs1,false); // Get s2 into ES:DI regm_t retregs = mDI; tym_t ty2 = e1.EV.E2.Ety; if (!tyreg(ty2)) retregs |= mES; scodelem(cdb,e1.EV.E2,&retregs,retregs1,false); freenode(e1); // Get nbytes into CX regm_t retregs3 = mCX; scodelem(cdb,e.EV.E2,&retregs3,retregs | retregs1,false); // Make sure ES contains proper segment value cdb.append(cod2_setES(ty2)); // Load DS with right value switch (tybasic(ty1)) { case TYnptr: case TYimmutPtr: need_DS = false; break; case TYsptr: if (config.wflags & WFssneds) // if sptr can't use DS segment segreg = SEG_SS; else segreg = SEG_DS; goto L1; case TYcptr: segreg = SEG_CS; L1: cdb.gen1(0x1E); // PUSH DS cdb.gen1(0x06 + (segreg << 3)); // PUSH segreg cdb.gen1(0x1F); // POP DS need_DS = true; break; case TYfptr: case TYvptr: case TYhptr: cdb.gen1(0x1E); // PUSH DS cdb.gen2(0x8E,modregrm(3,SEG_DS,DX)); // MOV DS,DX need_DS = true; break; default: assert(0); } static if (1) { getregs(cdb,mAX); cdb.gen2(0x33,modregrm(3,AX,AX)); // XOR AX,AX code_orflag(cdb.last(), CFpsw); // keep flags } else { if (*pretregs != mPSW) // if not flags only regwithvalue(cdb,mAX,0,null,0); // put 0 in AX } getregs(cdb,mCX | mSI | mDI); cdb.gen1(0xF3); // REPE cdb.gen1(0xA6); // CMPSB if (need_DS) cdb.gen1(0x1F); // POP DS if (*pretregs != mPSW) // if not flags only { code *c4 = gennop(null); genjmp(cdb,JE,FLcode,cast(block *) c4); // JE L1 getregs(cdb,mAX); genregs(cdb,0x1B,AX,AX); // SBB AX,AX cdb.genc2(0x81,modregrm(3,3,AX),cast(targ_uns)-1); // SBB AX,-1 cdb.append(c4); } *pretregs &= ~mPSW; fixresult(cdb,e,mAX,pretregs); } /********************************* * Generate code for strcpy(s1,s2) intrinsic. */ @trusted void cdstrcpy(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { char need_DS; int segreg; /* LES DI,s2 ;ES:DI = s2 CLR AX ;scan for 0 MOV CX,-1 ;largest possible string REPNE SCASB ;find end of s2 NOT CX ;CX = strlen(s2) + 1 (for EOS) SUB DI,CX MOV SI,DI PUSH DS PUSH ES LES DI,s1 POP DS MOV AX,DI ;return value is s1 REP MOVSB POP DS */ stackchanged = 1; regm_t retregs = mDI; tym_t ty2 = tybasic(e.EV.E2.Ety); if (!tyreg(ty2)) retregs |= mES; ubyte rex = I64 ? REX_W : 0; codelem(cdb,e.EV.E2,&retregs,false); // Make sure ES contains proper segment value cdb.append(cod2_setES(ty2)); getregs_imm(cdb,mAX | mCX); movregconst(cdb,AX,0,1); // MOV AL,0 movregconst(cdb,CX,-1,I64?64:0); // MOV CX,-1 getregs(cdb,mAX|mCX|mSI|mDI); cdb.gen1(0xF2); // REPNE cdb.gen1(0xAE); // SCASB genregs(cdb,0xF7,2,CX); // NOT CX code_orrex(cdb.last(),rex); genregs(cdb,0x2B,DI,CX); // SUB DI,CX code_orrex(cdb.last(),rex); genmovreg(cdb,SI,DI); // MOV SI,DI // Load DS with right value switch (ty2) { case TYnptr: case TYimmutPtr: need_DS = false; break; case TYsptr: if (config.wflags & WFssneds) // if sptr can't use DS segment segreg = SEG_SS; else segreg = SEG_DS; goto L1; case TYcptr: segreg = SEG_CS; L1: cdb.gen1(0x1E); // PUSH DS cdb.gen1(0x06 + (segreg << 3)); // PUSH segreg cdb.genadjesp(REGSIZE * 2); need_DS = true; break; case TYfptr: case TYvptr: case TYhptr: segreg = SEG_ES; goto L1; default: assert(0); } retregs = mDI; tym_t ty1 = tybasic(e.EV.E1.Ety); if (!tyreg(ty1)) retregs |= mES; scodelem(cdb,e.EV.E1,&retregs,mCX|mSI,false); getregs(cdb,mAX|mCX|mSI|mDI); // Make sure ES contains proper segment value if (ty2 != TYnptr || ty1 != ty2) cdb.append(cod2_setES(ty1)); else {} // ES is already same as DS if (need_DS) cdb.gen1(0x1F); // POP DS if (*pretregs) genmovreg(cdb,AX,DI); // MOV AX,DI cdb.gen1(0xF3); // REP cdb.gen1(0xA4); // MOVSB if (need_DS) { cdb.gen1(0x1F); // POP DS cdb.genadjesp(-(REGSIZE * 2)); } fixresult(cdb,e,mAX | mES,pretregs); } /********************************* * Generate code for memcpy(s1,s2,n) intrinsic. * OPmemcpy * / \ * s1 OPparam * / \ * s2 n */ @trusted void cdmemcpy(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { char need_DS; int segreg; /* MOV SI,s2 MOV DX,s2+2 MOV CX,n LES DI,s1 PUSH DS MOV DS,DX MOV AX,DI ;return value is s1 REP MOVSB POP DS */ elem *e2 = e.EV.E2; assert(e2.Eoper == OPparam); // Get s2 into DX:SI regm_t retregs2 = mSI; tym_t ty2 = e2.EV.E1.Ety; if (!tyreg(ty2)) retregs2 |= mDX; codelem(cdb,e2.EV.E1,&retregs2,false); // Need to check if nbytes is 0 (OPconst of 0 would have been removed by elmemcpy()) const zeroCheck = e2.EV.E2.Eoper != OPconst; // Get nbytes into CX regm_t retregs3 = mCX; scodelem(cdb,e2.EV.E2,&retregs3,retregs2,false); freenode(e2); // Get s1 into ES:DI regm_t retregs1 = mDI; tym_t ty1 = e.EV.E1.Ety; if (!tyreg(ty1)) retregs1 |= mES; scodelem(cdb,e.EV.E1,&retregs1,retregs2 | retregs3,false); ubyte rex = I64 ? REX_W : 0; // Make sure ES contains proper segment value cdb.append(cod2_setES(ty1)); // Load DS with right value switch (tybasic(ty2)) { case TYnptr: case TYimmutPtr: need_DS = false; break; case TYsptr: if (config.wflags & WFssneds) // if sptr can't use DS segment segreg = SEG_SS; else segreg = SEG_DS; goto L1; case TYcptr: segreg = SEG_CS; L1: cdb.gen1(0x1E); // PUSH DS cdb.gen1(0x06 + (segreg << 3)); // PUSH segreg cdb.gen1(0x1F); // POP DS need_DS = true; break; case TYfptr: case TYvptr: case TYhptr: cdb.gen1(0x1E); // PUSH DS cdb.gen2(0x8E,modregrm(3,SEG_DS,DX)); // MOV DS,DX need_DS = true; break; default: assert(0); } if (*pretregs) // if need return value { getregs(cdb,mAX); genmovreg(cdb,AX,DI); } if (0 && I32 && config.flags4 & CFG4speed) { /* This is only faster if the memory is dword aligned, if not * it is significantly slower than just a rep movsb. */ /* mov EDX,ECX * shr ECX,2 * jz L1 * repe movsd * L1: nop * and EDX,3 * jz L2 * mov ECX,EDX * repe movsb * L2: nop */ getregs(cdb,mSI | mDI | mCX | mDX); genmovreg(cdb,DX,CX); // MOV EDX,ECX cdb.genc2(0xC1,modregrm(3,5,CX),2); // SHR ECX,2 code *cx = gennop(null); genjmp(cdb, JE, FLcode, cast(block *)cx); // JZ L1 cdb.gen1(0xF3); // REPE cdb.gen1(0xA5); // MOVSW cdb.append(cx); cdb.genc2(0x81, modregrm(3,4,DX),3); // AND EDX,3 code *cnop = gennop(null); genjmp(cdb, JE, FLcode, cast(block *)cnop); // JZ L2 genmovreg(cdb,CX,DX); // MOV ECX,EDX cdb.gen1(0xF3); // REPE cdb.gen1(0xA4); // MOVSB cdb.append(cnop); } else { getregs(cdb,mSI | mDI | mCX); code* cnop; if (zeroCheck) { cnop = gennop(null); gentstreg(cdb,CX); // TEST ECX,ECX if (I64) code_orrex(cdb.last, REX_W); genjmp(cdb, JE, FLcode, cast(block *)cnop); // JZ cnop } if (I16 && config.flags4 & CFG4speed) // if speed optimization { // Note this doesn't work if CX is 0 cdb.gen2(0xD1,(rex << 16) | modregrm(3,5,CX)); // SHR CX,1 cdb.gen1(0xF3); // REPE cdb.gen1(0xA5); // MOVSW cdb.gen2(0x11,(rex << 16) | modregrm(3,CX,CX)); // ADC CX,CX } cdb.gen1(0xF3); // REPE cdb.gen1(0xA4); // MOVSB if (zeroCheck) cdb.append(cnop); if (need_DS) cdb.gen1(0x1F); // POP DS } fixresult(cdb,e,mES|mAX,pretregs); } /********************************* * Generate code for memset(s,value,numbytes) intrinsic. * (s OPmemset (numbytes OPparam value)) */ @trusted void cdmemset(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { regm_t retregs1; regm_t retregs3; reg_t reg; reg_t vreg; tym_t ty1; int segreg; targ_uns numbytes; uint m; //printf("cdmemset(*pretregs = %s)\n", regm_str(*pretregs)); elem *e2 = e.EV.E2; assert(e2.Eoper == OPparam); elem* evalue = e2.EV.E2; elem* enumbytes = e2.EV.E1; const sz = tysize(evalue.Ety); if (sz > 1) { cdmemsetn(cdb, e, pretregs); return; } const grex = I64 ? (REX_W << 16) : 0; bool valueIsConst = false; targ_size_t value; if (evalue.Eoper == OPconst) { value = el_tolong(evalue) & 0xFF; value |= value << 8; if (I32 || I64) { value |= value << 16; static if (value.sizeof == 8) if (I64) value |= value << 32; } valueIsConst = true; } else if (evalue.Eoper == OPstrpar) // happens if evalue is a struct of 0 size { value = 0; valueIsConst = true; } else value = 0xDEADBEEF; // stop annoying false positives that value is not inited if (enumbytes.Eoper == OPconst) { numbytes = cast(uint)cast(targ_size_t)el_tolong(enumbytes); } // Get nbytes into CX regm_t retregs2 = 0; if (enumbytes.Eoper != OPconst) { retregs2 = mCX; codelem(cdb,enumbytes,&retregs2,false); } // Get value into AX retregs3 = mAX; if (valueIsConst) { regwithvalue(cdb, mAX, value, null, I64?64:0); freenode(evalue); } else { scodelem(cdb,evalue,&retregs3,retregs2,false); getregs(cdb,mAX); if (I16) { cdb.gen2(0x8A,modregrm(3,AH,AL)); // MOV AH,AL } else if (I32) { genregs(cdb,MOVZXb,AX,AX); // MOVZX EAX,AL cdb.genc2(0x69,modregrm(3,AX,AX),0x01010101); // IMUL EAX,EAX,0x01010101 } else { genregs(cdb,MOVZXb,AX,AX); // MOVZX EAX,AL regm_t regm = allregs & ~(mAX | retregs2); reg_t r; regwithvalue(cdb,regm,cast(targ_size_t)0x01010101_01010101,&r,64); // MOV reg,0x01010101_01010101 cdb.gen2(0x0FAF,grex | modregrmx(3,AX,r)); // IMUL RAX,reg } } freenode(e2); // Get s into ES:DI retregs1 = mDI; ty1 = e.EV.E1.Ety; if (!tyreg(ty1)) retregs1 |= mES; scodelem(cdb,e.EV.E1,&retregs1,retregs2 | retregs3,false); reg = DI; //findreg(retregs1); // Make sure ES contains proper segment value cdb.append(cod2_setES(ty1)); if (*pretregs) // if need return value { getregs(cdb,mBX); genmovreg(cdb,BX,DI); // MOV EBX,EDI } if (enumbytes.Eoper == OPconst) { getregs(cdb,mDI); if (const numwords = numbytes / REGSIZE) { regwithvalue(cdb,mCX,numwords,null, I64 ? 64 : 0); getregs(cdb,mCX); cdb.gen1(0xF3); // REP cdb.gen1(STOS); // STOSW/D/Q if (I64) code_orrex(cdb.last(), REX_W); regimmed_set(CX, 0); // CX is now 0 } auto remainder = numbytes & (REGSIZE - 1); if (I64 && remainder >= 4) { cdb.gen1(STOS); // STOSD remainder -= 4; } for (; remainder; --remainder) cdb.gen1(STOSB); // STOSB fixresult(cdb,e,mES|mBX,pretregs); return; } getregs(cdb,mDI | mCX); if (I16) { if (config.flags4 & CFG4speed) // if speed optimization { cdb.gen2(0xD1,modregrm(3,5,CX)); // SHR CX,1 cdb.gen1(0xF3); // REP cdb.gen1(STOS); // STOSW cdb.gen2(0x11,modregrm(3,CX,CX)); // ADC CX,CX } cdb.gen1(0xF3); // REP cdb.gen1(STOSB); // STOSB regimmed_set(CX, 0); // CX is now 0 fixresult(cdb,e,mES|mBX,pretregs); return; } /* MOV sreg,ECX SHR ECX,n REP STOSD/Q ADC ECX,ECX REP STOSD MOV ECX,sreg AND ECX,3 REP STOSB */ regm_t regs = allregs & (*pretregs ? ~(mAX|mBX|mCX|mDI) : ~(mAX|mCX|mDI)); reg_t sreg; allocreg(cdb,&regs,&sreg,TYint); genregs(cdb,0x89,CX,sreg); // MOV sreg,ECX (32 bits only) const n = I64 ? 3 : 2; cdb.genc2(0xC1, grex | modregrm(3,5,CX), n); // SHR ECX,n cdb.gen1(0xF3); // REP cdb.gen1(STOS); // STOSD/Q if (I64) code_orrex(cdb.last(), REX_W); if (I64) { cdb.gen2(0x11,modregrm(3,CX,CX)); // ADC ECX,ECX cdb.gen1(0xF3); // REP cdb.gen1(STOS); // STOSD } genregs(cdb,0x89,sreg,CX); // MOV ECX,sreg (32 bits only) cdb.genc2(0x81, modregrm(3,4,CX), 3); // AND ECX,3 cdb.gen1(0xF3); // REP cdb.gen1(STOSB); // STOSB regimmed_set(CX, 0); // CX is now 0 fixresult(cdb,e,mES|mBX,pretregs); } /*********************************************** * Do memset for values larger than a byte. * Has many similarities to cod4.cdeq(). * Doesn't work for 16 bit code. */ @trusted private void cdmemsetn(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { //printf("cdmemsetn(*pretregs = %s)\n", regm_str(*pretregs)); elem *e2 = e.EV.E2; assert(e2.Eoper == OPparam); elem* evalue = e2.EV.E2; elem* enelems = e2.EV.E1; tym_t tymv = tybasic(evalue.Ety); const sz = tysize(evalue.Ety); assert(cast(int)sz > 1); if (tyxmmreg(tymv) && config.fpxmmregs) assert(0); // fix later if (tyfloating(tymv) && config.inline8087) assert(0); // fix later const grex = I64 ? (REX_W << 16) : 0; // get the count of elems into CX regm_t mregcx = mCX; codelem(cdb,enelems,&mregcx,false); // Get value into AX regm_t retregs3 = allregs & ~mregcx; if (sz == 2 * REGSIZE) retregs3 &= ~(mBP | IDXREGS); // BP cannot be used for register pair, // IDXREGS could deplete index regs - see sdtor.d test14815() scodelem(cdb,evalue,&retregs3,mregcx,false); /* Necessary because if evalue calls a function, and that function never returns, * it doesn't affect registers. Which means those registers can be used for enregistering * variables, and next pass fails because it can't use those registers, and so cannot * allocate registers for retregs3. See ice11596.d */ useregs(retregs3); reg_t valreg = findreg(retregs3); reg_t valreghi; if (sz == 2 * REGSIZE) { valreg = findreglsw(retregs3); valreghi = findregmsw(retregs3); } freenode(e2); // Get s into ES:DI regm_t mregidx = IDXREGS & ~(mregcx | retregs3); assert(mregidx); tym_t ty1 = tybasic(e.EV.E1.Ety); if (!tyreg(ty1)) mregidx |= mES; scodelem(cdb,e.EV.E1,&mregidx,mregcx | retregs3,false); reg_t idxreg = findreg(mregidx); // Make sure ES contains proper segment value cdb.append(cod2_setES(ty1)); regm_t mregbx = 0; if (*pretregs) // if need return value { mregbx = *pretregs & ~(mregidx | mregcx | retregs3); if (!mregbx) mregbx = allregs & ~(mregidx | mregcx | retregs3); reg_t regbx; allocreg(cdb, &mregbx, &regbx, TYnptr); getregs(cdb, mregbx); genmovreg(cdb,regbx,idxreg); // MOV BX,DI } getregs(cdb,mask(idxreg) | mCX); // modify DI and CX /* Generate: * JCXZ L1 * L2: * MOV [idxreg],AX * ADD idxreg,sz * LOOP L2 * L1: * NOP */ code* c1 = gennop(null); genjmp(cdb, JCXZ, FLcode, cast(block *)c1); code cs; buildEA(&cs,idxreg,-1,1,0); cs.Iop = 0x89; if (!I16 && sz == 2) cs.Iflags |= CFopsize; if (I64 && sz == 8) cs.Irex |= REX_W; code_newreg(&cs, valreg); cdb.gen(&cs); // MOV [idxreg],AX code* c2 = cdb.last(); if (sz == REGSIZE * 2) { cs.IEV1.Vuns = REGSIZE; code_newreg(&cs, valreghi); cdb.gen(&cs); // MOV REGSIZE[idxreg],DX } cdb.genc2(0x81, grex | modregrmx(3,0,idxreg), sz); // ADD idxreg,sz genjmp(cdb, LOOP, FLcode, cast(block *)c2); // LOOP L2 cdb.append(c1); regimmed_set(CX, 0); // CX is now 0 fixresult(cdb,e,mregbx,pretregs); } /********************** * Do structure assignments. * This should be fixed so that (s1 = s2) is rewritten to (&s1 = &s2). * Mebbe call cdstreq() for double assignments??? */ @trusted void cdstreq(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { char need_DS = false; elem *e1 = e.EV.E1; elem *e2 = e.EV.E2; int segreg; uint numbytes = cast(uint)type_size(e.ET); // # of bytes in structure/union ubyte rex = I64 ? REX_W : 0; //printf("cdstreq(e = %p, *pretregs = %s)\n", e, regm_str(*pretregs)); // First, load pointer to rvalue into SI regm_t srcregs = mSI; // source is DS:SI docommas(cdb,&e2); if (e2.Eoper == OPind) // if (.. = *p) { elem *e21 = e2.EV.E1; segreg = SEG_DS; switch (tybasic(e21.Ety)) { case TYsptr: if (config.wflags & WFssneds) // if sptr can't use DS segment segreg = SEG_SS; break; case TYcptr: if (!(config.exe & EX_flat)) segreg = SEG_CS; break; case TYfptr: case TYvptr: case TYhptr: srcregs |= mCX; // get segment also need_DS = true; break; default: break; } codelem(cdb,e21,&srcregs,false); freenode(e2); if (segreg != SEG_DS) // if not DS { getregs(cdb,mCX); cdb.gen2(0x8C,modregrm(3,segreg,CX)); // MOV CX,segreg need_DS = true; } } else if (e2.Eoper == OPvar) { if (e2.EV.Vsym.ty() & mTYfar) // if e2 is in a far segment { srcregs |= mCX; // get segment also need_DS = true; cdrelconst(cdb,e2,&srcregs); } else { segreg = segfl[el_fl(e2)]; if ((config.wflags & WFssneds) && segreg == SEG_SS || // if source is on stack segreg == SEG_CS) // if source is in CS { need_DS = true; // we need to reload DS // Load CX with segment srcregs |= mCX; getregs(cdb,mCX); cdb.gen2(0x8C, // MOV CX,[SS|CS] modregrm(3,segreg,CX)); } cdrelconst(cdb,e2,&srcregs); } freenode(e2); } else { if (!(config.exe & EX_flat)) { need_DS = true; srcregs |= mCX; } codelem(cdb,e2,&srcregs,false); } // now get pointer to lvalue (destination) in ES:DI regm_t dstregs = (config.exe & EX_flat) ? mDI : mES|mDI; if (e1.Eoper == OPind) // if (*p = ..) { if (tyreg(e1.EV.E1.Ety)) dstregs = mDI; cdb.append(cod2_setES(e1.EV.E1.Ety)); scodelem(cdb,e1.EV.E1,&dstregs,srcregs,false); } else cdrelconst(cdb,e1,&dstregs); freenode(e1); getregs(cdb,(srcregs | dstregs) & (mLSW | mDI)); if (need_DS) { assert(!(config.exe & EX_flat)); cdb.gen1(0x1E); // PUSH DS cdb.gen2(0x8E,modregrm(3,SEG_DS,CX)); // MOV DS,CX } if (numbytes <= REGSIZE * (6 + (REGSIZE == 4))) { while (numbytes >= REGSIZE) { cdb.gen1(0xA5); // MOVSW code_orrex(cdb.last(), rex); numbytes -= REGSIZE; } //if (numbytes) // printf("cdstreq numbytes %d\n",numbytes); if (I64 && numbytes >= 4) { cdb.gen1(0xA5); // MOVSD numbytes -= 4; } while (numbytes--) cdb.gen1(0xA4); // MOVSB } else { static if (1) { uint remainder = numbytes & (REGSIZE - 1); numbytes /= REGSIZE; // number of words getregs_imm(cdb,mCX); movregconst(cdb,CX,numbytes,0); // # of bytes/words cdb.gen1(0xF3); // REP if (REGSIZE == 8) cdb.gen1(REX | REX_W); cdb.gen1(0xA5); // REP MOVSD regimmed_set(CX,0); // note that CX == 0 if (I64 && remainder >= 4) { cdb.gen1(0xA5); // MOVSD remainder -= 4; } for (; remainder; remainder--) { cdb.gen1(0xA4); // MOVSB } } else { uint movs; if (numbytes & (REGSIZE - 1)) // if odd movs = 0xA4; // MOVSB else { movs = 0xA5; // MOVSW numbytes /= REGSIZE; // # of words } getregs_imm(cdb,mCX); movregconst(cdb,CX,numbytes,0); // # of bytes/words cdb.gen1(0xF3); // REP cdb.gen1(movs); regimmed_set(CX,0); // note that CX == 0 } } if (need_DS) cdb.gen1(0x1F); // POP DS assert(!(*pretregs & mPSW)); if (*pretregs) { // ES:DI points past what we want cdb.genc2(0x81,(rex << 16) | modregrm(3,5,DI), type_size(e.ET)); // SUB DI,numbytes const tym = tybasic(e.Ety); if (tym == TYucent && I64) { /* https://issues.dlang.org/show_bug.cgi?id=22175 * The trouble happens when the struct size does not fit exactly into * 2 registers. Then the type of e becomes a TYucent, not a TYstruct, * and we need to dereference DI to get the ucent */ // dereference DI code cs; cs.Iop = 0x8B; regm_t retregs = *pretregs; reg_t reg; allocreg(cdb,&retregs,&reg,tym); reg_t msreg = findregmsw(retregs); buildEA(&cs,DI,-1,1,REGSIZE); code_newreg(&cs,msreg); cs.Irex |= REX_W; cdb.gen(&cs); // MOV msreg,REGSIZE[DI] // msreg is never DI reg_t lsreg = findreglsw(retregs); buildEA(&cs,DI,-1,1,0); code_newreg(&cs,lsreg); cs.Irex |= REX_W; cdb.gen(&cs); // MOV lsreg,[DI]; fixresult(cdb,e,retregs,pretregs); return; } regm_t retregs = mDI; if (*pretregs & mMSW && !(config.exe & EX_flat)) retregs |= mES; fixresult(cdb,e,retregs,pretregs); } } /********************** * Get the address of. * Is also called by cdstreq() to set up pointer to a structure. */ @trusted void cdrelconst(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { //printf("cdrelconst(e = %p, *pretregs = %s)\n", e, regm_str(*pretregs)); /* The following should not happen, but cgelem.c is a little stupid. * Assertion can be tripped by func("string" == 0); and similar * things. Need to add goals to optelem() to fix this completely. */ //assert((*pretregs & mPSW) == 0); if (*pretregs & mPSW) { *pretregs &= ~mPSW; gentstreg(cdb,SP); // SP is never 0 if (I64) code_orrex(cdb.last(), REX_W); } if (!*pretregs) return; assert(e); tym_t tym = tybasic(e.Ety); switch (tym) { case TYstruct: case TYarray: case TYldouble: case TYildouble: case TYcldouble: tym = TYnptr; // don't confuse allocreg() if (*pretregs & (mES | mCX) || e.Ety & mTYfar) { tym = TYfptr; } break; case TYifunc: tym = TYfptr; break; default: if (tyfunc(tym)) tym = tyfarfunc(tym) ? TYfptr : TYnptr; break; } //assert(tym & typtr); // don't fail on (int)&a SC sclass; reg_t mreg, // segment of the address (TYfptrs only) lreg; // offset of the address allocreg(cdb,pretregs,&lreg,tym); if (_tysize[tym] > REGSIZE) // fptr could've been cast to long { if (*pretregs & mES) { /* Do not allocate CX or SI here, as cdstreq() needs * them preserved. cdstreq() should use scodelem() */ mreg = allocScratchReg(cdb, (mAX|mBX|mDX|mDI) & ~mask(lreg)); } else { mreg = lreg; lreg = findreglsw(*pretregs); } /* if (get segment of function that isn't necessarily in the * current segment (i.e. CS doesn't have the right value in it) */ Symbol *s = e.EV.Vsym; if (s.Sfl == FLdatseg) { assert(0); } sclass = s.Sclass; const ety = tybasic(s.ty()); if ((tyfarfunc(ety) || ety == TYifunc) && (sclass == SC.extern_ || ClassInline(sclass) || config.wflags & WFthunk) || s.Sfl == FLfardata || (s.ty() & mTYcs && s.Sseg != cseg && (LARGECODE || s.Sclass == SC.comdat)) ) { // MOV mreg,seg of symbol cdb.gencs(0xB8 + mreg,0,FLextern,s); cdb.last().Iflags = CFseg; } else { const fl = (s.ty() & mTYcs) ? FLcsdata : s.Sfl; cdb.gen2(0x8C, // MOV mreg,SEG REGISTER modregrm(3,segfl[fl],mreg)); } if (*pretregs & mES) cdb.gen2(0x8E,modregrm(3,0,mreg)); // MOV ES,mreg } getoffset(cdb,e,lreg); } /********************************* * Load the offset portion of the address represented by e into * reg. */ @trusted void getoffset(ref CodeBuilder cdb,elem *e,reg_t reg) { //printf("getoffset(e = %p, reg = %d)\n", e, reg); code cs = void; cs.Iflags = 0; ubyte rex = 0; cs.Irex = rex; assert(e.Eoper == OPvar || e.Eoper == OPrelconst); auto fl = el_fl(e); switch (fl) { case FLdatseg: cs.IEV2.Vpointer = e.EV.Vpointer; goto L3; case FLfardata: goto L4; case FLtlsdata: if (config.exe & EX_posix) { Lposix: if (config.flags3 & CFG3pic) { if (I64) { /* Generate: * LEA DI,s@TLSGD[RIP] */ //assert(reg == DI); code css = void; css.Irex = REX | REX_W; css.Iop = LEA; css.Irm = modregrm(0,reg,5); if (reg & 8) css.Irex |= REX_R; css.Iflags = CFopsize; css.IFL1 = cast(ubyte)fl; css.IEV1.Vsym = e.EV.Vsym; css.IEV1.Voffset = e.EV.Voffset; cdb.gen(&css); } else { /* Generate: * LEA EAX,s@TLSGD[1*EBX+0] */ assert(reg == AX); load_localgot(cdb); code css = void; css.Iflags = 0; css.Iop = LEA; // LEA css.Irex = 0; css.Irm = modregrm(0,AX,4); css.Isib = modregrm(0,BX,5); css.IFL1 = cast(ubyte)fl; css.IEV1.Vsym = e.EV.Vsym; css.IEV1.Voffset = e.EV.Voffset; cdb.gen(&css); } return; } /* Generate: * MOV reg,GS:[00000000] * ADD reg, offset s@TLS_LE * for locals, and for globals: * MOV reg,GS:[00000000] * ADD reg, s@TLS_IE * note different fixup */ int stack = 0; if (reg == STACK) { regm_t retregs = ALLREGS; reg_t regx; allocreg(cdb,&retregs,&regx,TYoffset); reg = findreg(retregs); stack = 1; } code css = void; css.Irex = rex; css.Iop = 0x8B; css.Irm = modregrm(0, 0, BPRM); code_newreg(&css, reg); css.Iflags = CFgs; css.IFL1 = FLconst; css.IEV1.Vuns = 0; cdb.gen(&css); // MOV reg,GS:[00000000] if (e.EV.Vsym.Sclass == SC.static_ || e.EV.Vsym.Sclass == SC.locstat) { // ADD reg, offset s cs.Irex = rex; cs.Iop = 0x81; cs.Irm = modregrm(3,0,reg & 7); if (reg & 8) cs.Irex |= REX_B; cs.Iflags = CFoff; cs.IFL2 = cast(ubyte)fl; cs.IEV2.Vsym = e.EV.Vsym; cs.IEV2.Voffset = e.EV.Voffset; } else { // ADD reg, s cs.Irex = rex; cs.Iop = 0x03; cs.Irm = modregrm(0,0,BPRM); code_newreg(&cs, reg); cs.Iflags = CFoff; cs.IFL1 = cast(ubyte)fl; cs.IEV1.Vsym = e.EV.Vsym; cs.IEV1.Voffset = e.EV.Voffset; } cdb.gen(&cs); // ADD reg, xxxx if (stack) { cdb.gen1(0x50 + (reg & 7)); // PUSH reg if (reg & 8) code_orrex(cdb.last(), REX_B); cdb.genadjesp(REGSIZE); stackchanged = 1; } break; } else if (config.exe & EX_windos) { if (I64) { Lwin64: assert(reg != STACK); cs.IEV2.Vsym = e.EV.Vsym; cs.IEV2.Voffset = e.EV.Voffset; cs.Iop = 0xB8 + (reg & 7); // MOV Ereg,offset s if (reg & 8) cs.Irex |= REX_B; cs.Iflags = CFoff; // want offset only cs.IFL2 = cast(ubyte)fl; cdb.gen(&cs); break; } goto L4; } else { goto L4; } case FLfunc: fl = FLextern; /* don't want PC relative addresses */ goto L4; case FLextern: if (config.exe & EX_posix && e.EV.Vsym.ty() & mTYthread) goto Lposix; if (config.exe & EX_WIN64 && e.EV.Vsym.ty() & mTYthread) goto Lwin64; goto L4; case FLdata: case FLudata: case FLgot: case FLgotoff: case FLcsdata: L4: cs.IEV2.Vsym = e.EV.Vsym; cs.IEV2.Voffset = e.EV.Voffset; L3: if (reg == STACK) { stackchanged = 1; cs.Iop = 0x68; /* PUSH immed16 */ cdb.genadjesp(REGSIZE); } else { cs.Iop = 0xB8 + (reg & 7); // MOV reg,immed16 if (reg & 8) cs.Irex |= REX_B; if (I64) { cs.Irex |= REX_W; if (config.flags3 & CFG3pic || config.exe == EX_WIN64) { // LEA reg,immed32[RIP] cs.Iop = LEA; cs.Irm = modregrm(0,reg & 7,5); if (reg & 8) cs.Irex = (cs.Irex & ~REX_B) | REX_R; cs.IFL1 = cast(ubyte)fl; cs.IEV1.Vsym = cs.IEV2.Vsym; cs.IEV1.Voffset = cs.IEV2.Voffset; } } } cs.Iflags = CFoff; /* want offset only */ cs.IFL2 = cast(ubyte)fl; cdb.gen(&cs); break; case FLreg: /* Allow this since the tree optimizer puts & in front of */ /* register doubles. */ goto L2; case FLauto: case FLfast: case FLbprel: case FLfltreg: reflocal = true; goto L2; case FLpara: refparam = true; L2: if (reg == STACK) { regm_t retregs = ALLREGS; reg_t regx; allocreg(cdb,&retregs,&regx,TYoffset); reg = findreg(retregs); loadea(cdb,e,&cs,LEA,reg,0,0,0); // LEA reg,EA if (I64) code_orrex(cdb.last(), REX_W); cdb.gen1(0x50 + (reg & 7)); // PUSH reg if (reg & 8) code_orrex(cdb.last(), REX_B); cdb.genadjesp(REGSIZE); stackchanged = 1; } else { loadea(cdb,e,&cs,LEA,reg,0,0,0); // LEA reg,EA if (I64) code_orrex(cdb.last(), REX_W); } break; default: debug { elem_print(e); WRFL(fl); } assert(0); } } /****************** * OPneg, OPsqrt, OPsin, OPcos, OPrint */ @trusted void cdneg(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { //printf("cdneg()\n"); //elem_print(e); if (*pretregs == 0) { codelem(cdb,e.EV.E1,pretregs,false); return; } const tyml = tybasic(e.EV.E1.Ety); const sz = _tysize[tyml]; if (tyfloating(tyml)) { if (tycomplex(tyml)) { neg_complex87(cdb, e, pretregs); return; } if (tyxmmreg(tyml) && e.Eoper == OPneg && *pretregs & XMMREGS) { xmmneg(cdb,e,pretregs); return; } if (config.inline8087 && ((*pretregs & (ALLREGS | mBP)) == 0 || e.Eoper == OPsqrt || I64)) { neg87(cdb,e,pretregs); return; } regm_t retregs = (I16 && sz == 8) ? DOUBLEREGS_16 : ALLREGS; codelem(cdb,e.EV.E1,&retregs,false); getregs(cdb,retregs); if (I32) { const reg = (sz == 8) ? findregmsw(retregs) : findreg(retregs); cdb.genc2(0x81,modregrm(3,6,reg),0x80000000); // XOR EDX,sign bit } else { const reg = (sz == 8) ? AX : findregmsw(retregs); cdb.genc2(0x81,modregrm(3,6,reg),0x8000); // XOR AX,0x8000 } fixresult(cdb,e,retregs,pretregs); return; } const uint isbyte = sz == 1; const possregs = (isbyte) ? BYTEREGS : allregs; regm_t retregs = *pretregs & possregs; if (retregs == 0) retregs = possregs; codelem(cdb,e.EV.E1,&retregs,false); getregs(cdb,retregs); // retregs will be destroyed if (sz <= REGSIZE) { const reg = findreg(retregs); uint rex = (I64 && sz == 8) ? REX_W : 0; if (I64 && sz == 1 && reg >= 4) rex |= REX; cdb.gen2(0xF7 ^ isbyte,(rex << 16) | modregrmx(3,3,reg)); // NEG reg if (!I16 && _tysize[tyml] == SHORTSIZE && *pretregs & mPSW) cdb.last().Iflags |= CFopsize | CFpsw; *pretregs &= mBP | ALLREGS; // flags already set } else if (sz == 2 * REGSIZE) { const msreg = findregmsw(retregs); cdb.gen2(0xF7,modregrm(3,3,msreg)); // NEG msreg const lsreg = findreglsw(retregs); cdb.gen2(0xF7,modregrm(3,3,lsreg)); // NEG lsreg code_orflag(cdb.last(), CFpsw); // need flag result of previous NEG cdb.genc2(0x81,modregrm(3,3,msreg),0); // SBB msreg,0 } else assert(0); fixresult(cdb,e,retregs,pretregs); } /****************** * Absolute value operator */ @trusted void cdabs(ref CodeBuilder cdb,elem *e, regm_t *pretregs) { //printf("cdabs(e = %p, *pretregs = %s)\n", e, regm_str(*pretregs)); if (*pretregs == 0) { codelem(cdb,e.EV.E1,pretregs,false); return; } const tyml = tybasic(e.EV.E1.Ety); const sz = _tysize[tyml]; const rex = (I64 && sz == 8) ? REX_W : 0; if (tyfloating(tyml)) { if (tyxmmreg(tyml) && *pretregs & XMMREGS) { xmmabs(cdb,e,pretregs); return; } if (config.inline8087 && ((*pretregs & (ALLREGS | mBP)) == 0 || I64)) { neg87(cdb,e,pretregs); return; } regm_t retregs = (!I32 && sz == 8) ? DOUBLEREGS_16 : ALLREGS; codelem(cdb,e.EV.E1,&retregs,false); getregs(cdb,retregs); if (I32) { const reg = (sz == 8) ? findregmsw(retregs) : findreg(retregs); cdb.genc2(0x81,modregrm(3,4,reg),0x7FFFFFFF); // AND EDX,~sign bit } else { const reg = (sz == 8) ? AX : findregmsw(retregs); cdb.genc2(0x81,modregrm(3,4,reg),0x7FFF); // AND AX,0x7FFF } fixresult(cdb,e,retregs,pretregs); return; } const uint isbyte = sz == 1; assert(isbyte == 0); regm_t possregs = (sz <= REGSIZE) ? cast(regm_t) mAX : allregs; if (!I16 && sz == REGSIZE) possregs = allregs; regm_t retregs = *pretregs & possregs; if (retregs == 0) retregs = possregs; codelem(cdb,e.EV.E1,&retregs,false); getregs(cdb,retregs); // retregs will be destroyed if (sz <= REGSIZE) { /* CWD XOR AX,DX SUB AX,DX or: MOV r,reg SAR r,63 XOR reg,r SUB reg,r */ reg_t reg; reg_t r; if (!I16 && sz == REGSIZE) { reg = findreg(retregs); r = allocScratchReg(cdb, allregs & ~retregs); getregs(cdb,retregs); genmovreg(cdb,r,reg); // MOV r,reg cdb.genc2(0xC1,modregrmx(3,7,r),REGSIZE * 8 - 1); // SAR r,31/63 code_orrex(cdb.last(), rex); } else { reg = AX; r = DX; getregs(cdb,mDX); if (!I16 && sz == SHORTSIZE) cdb.gen1(0x98); // CWDE cdb.gen1(0x99); // CWD code_orrex(cdb.last(), rex); } cdb.gen2(0x33 ^ isbyte,(rex << 16) | modregxrmx(3,reg,r)); // XOR reg,r cdb.gen2(0x2B ^ isbyte,(rex << 16) | modregxrmx(3,reg,r)); // SUB reg,r if (!I16 && sz == SHORTSIZE && *pretregs & mPSW) cdb.last().Iflags |= CFopsize | CFpsw; if (*pretregs & mPSW) cdb.last().Iflags |= CFpsw; *pretregs &= ~mPSW; // flags already set } else if (sz == 2 * REGSIZE) { /* or DX,DX jns L2 neg DX neg AX sbb DX,0 L2: */ code *cnop = gennop(null); const msreg = findregmsw(retregs); const lsreg = findreglsw(retregs); genregs(cdb,0x09,msreg,msreg); // OR msreg,msreg genjmp(cdb,JNS,FLcode,cast(block *)cnop); cdb.gen2(0xF7,modregrm(3,3,msreg)); // NEG msreg cdb.gen2(0xF7,modregrm(3,3,lsreg)); // NEG lsreg+1 cdb.genc2(0x81,modregrm(3,3,msreg),0); // SBB msreg,0 cdb.append(cnop); } else assert(0); fixresult(cdb,e,retregs,pretregs); } /************************** * Post increment and post decrement. */ @trusted void cdpost(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { //printf("cdpost(pretregs = %s)\n", regm_str(*pretregs)); code cs = void; const op = e.Eoper; // OPxxxx if (*pretregs == 0) // if nothing to return { cdaddass(cdb,e,pretregs); return; } const tym_t tyml = tybasic(e.EV.E1.Ety); const sz = _tysize[tyml]; elem *e2 = e.EV.E2; const rex = (I64 && sz == 8) ? REX_W : 0; if (tyfloating(tyml)) { if (config.fpxmmregs && tyxmmreg(tyml) && !tycomplex(tyml) // SIMD code is not set up to deal with complex ) { xmmpost(cdb,e,pretregs); return; } if (config.inline8087) { post87(cdb,e,pretregs); return; } if (config.exe & EX_windos) { assert(sz <= 8); getlvalue(cdb,&cs,e.EV.E1,DOUBLEREGS); freenode(e.EV.E1); regm_t idxregs = idxregm(&cs); // mask of index regs used cs.Iop = 0x8B; /* MOV DOUBLEREGS,EA */ fltregs(cdb,&cs,tyml); stackchanged = 1; int stackpushsave = stackpush; regm_t retregs; if (sz == 8) { if (I32) { cdb.gen1(0x50 + DX); // PUSH DOUBLEREGS cdb.gen1(0x50 + AX); stackpush += DOUBLESIZE; retregs = DOUBLEREGS2_32; } else { cdb.gen1(0x50 + AX); cdb.gen1(0x50 + BX); cdb.gen1(0x50 + CX); cdb.gen1(0x50 + DX); /* PUSH DOUBLEREGS */ stackpush += DOUBLESIZE + DOUBLESIZE; cdb.gen1(0x50 + AX); cdb.gen1(0x50 + BX); cdb.gen1(0x50 + CX); cdb.gen1(0x50 + DX); /* PUSH DOUBLEREGS */ retregs = DOUBLEREGS_16; } } else { stackpush += FLOATSIZE; /* so we know something is on */ if (!I32) cdb.gen1(0x50 + DX); cdb.gen1(0x50 + AX); retregs = FLOATREGS2; } cdb.genadjesp(stackpush - stackpushsave); cgstate.stackclean++; scodelem(cdb,e2,&retregs,idxregs,false); cgstate.stackclean--; if (tyml == TYdouble || tyml == TYdouble_alias) { retregs = DOUBLEREGS; callclib(cdb,e,(op == OPpostinc) ? CLIB.dadd : CLIB.dsub, &retregs,idxregs); } else /* tyml == TYfloat */ { retregs = FLOATREGS; callclib(cdb,e,(op == OPpostinc) ? CLIB.fadd : CLIB.fsub, &retregs,idxregs); } cs.Iop = 0x89; /* MOV EA,DOUBLEREGS */ fltregs(cdb,&cs,tyml); stackpushsave = stackpush; if (tyml == TYdouble || tyml == TYdouble_alias) { if (*pretregs == mSTACK) retregs = mSTACK; /* leave result on stack */ else { if (I32) { cdb.gen1(0x58 + AX); cdb.gen1(0x58 + DX); } else { cdb.gen1(0x58 + DX); cdb.gen1(0x58 + CX); cdb.gen1(0x58 + BX); cdb.gen1(0x58 + AX); } stackpush -= DOUBLESIZE; retregs = DOUBLEREGS; } } else { cdb.gen1(0x58 + AX); if (!I32) cdb.gen1(0x58 + DX); stackpush -= FLOATSIZE; retregs = FLOATREGS; } cdb.genadjesp(stackpush - stackpushsave); fixresult(cdb,e,retregs,pretregs); return; } } if (tyxmmreg(tyml)) { xmmpost(cdb,e,pretregs); return; } assert(e2.Eoper == OPconst); uint isbyte = (sz == 1); regm_t possregs = isbyte ? BYTEREGS : allregs; getlvalue(cdb,&cs,e.EV.E1,0); freenode(e.EV.E1); regm_t idxregs = idxregm(&cs); // mask of index regs used if (sz <= REGSIZE && *pretregs == mPSW && (cs.Irm & 0xC0) == 0xC0 && (!I16 || (idxregs & (mBX | mSI | mDI | mBP)))) { // Generate: // TEST reg,reg // LEA reg,n[reg] // don't affect flags reg_t reg = cs.Irm & 7; if (cs.Irex & REX_B) reg |= 8; cs.Iop = 0x85 ^ isbyte; code_newreg(&cs, reg); cs.Iflags |= CFpsw; cdb.gen(&cs); // TEST reg,reg // If lvalue is a register variable, we must mark it as modified modEA(cdb,&cs); auto n = e2.EV.Vint; if (op == OPpostdec) n = -n; int rm = reg; if (I16) { static immutable byte[8] regtorm = [ -1,-1,-1, 7,-1, 6, 4, 5 ]; // copied from cod1.c rm = regtorm[reg]; } cdb.genc1(LEA,(rex << 16) | buildModregrm(2,reg,rm),FLconst,n); // LEA reg,n[reg] return; } else if (sz <= REGSIZE || tyfv(tyml)) { code cs2 = void; cs.Iop = 0x8B ^ isbyte; regm_t retregs = possregs & ~idxregs & *pretregs; if (!tyfv(tyml)) { if (retregs == 0) retregs = possregs & ~idxregs; } else /* tyfv(tyml) */ { if ((retregs &= mLSW) == 0) retregs = mLSW & ~idxregs; /* Can't use LES if the EA uses ES as a seg override */ if (*pretregs & mES && (cs.Iflags & CFSEG) != CFes) { cs.Iop = 0xC4; /* LES */ getregs(cdb,mES); // allocate ES } } reg_t reg; allocreg(cdb,&retregs,&reg,TYint); code_newreg(&cs, reg); if (sz == 1 && I64 && reg >= 4) cs.Irex |= REX; cdb.gen(&cs); // MOV reg,EA cs2 = cs; /* If lvalue is a register variable, we must mark it as modified */ modEA(cdb,&cs); cs.Iop = 0x81 ^ isbyte; cs.Irm &= ~cast(int)modregrm(0,7,0); // reg field = 0 cs.Irex &= ~REX_R; if (op == OPpostdec) cs.Irm |= modregrm(0,5,0); /* SUB */ cs.IFL2 = FLconst; targ_int n = e2.EV.Vint; cs.IEV2.Vint = n; if (n == 1) /* can use INC or DEC */ { cs.Iop |= 0xFE; /* xFE is dec byte, xFF is word */ if (op == OPpostdec) NEWREG(cs.Irm,1); // DEC EA else NEWREG(cs.Irm,0); // INC EA } else if (n == -1) // can use INC or DEC { cs.Iop |= 0xFE; // xFE is dec byte, xFF is word if (op == OPpostinc) NEWREG(cs.Irm,1); // DEC EA else NEWREG(cs.Irm,0); // INC EA } // For scheduling purposes, we wish to replace: // MOV reg,EA // OP EA // with: // MOV reg,EA // OP reg // MOV EA,reg // ~OP reg if (sz <= REGSIZE && (cs.Irm & 0xC0) != 0xC0 && config.target_cpu >= TARGET_Pentium && config.flags4 & CFG4speed) { // Replace EA in cs with reg cs.Irm = (cs.Irm & ~cast(int)modregrm(3,0,7)) | modregrm(3,0,reg & 7); if (reg & 8) { cs.Irex &= ~REX_R; cs.Irex |= REX_B; } else cs.Irex &= ~REX_B; if (I64 && sz == 1 && reg >= 4) cs.Irex |= REX; cdb.gen(&cs); // ADD/SUB reg,const // Reverse MOV direction cs2.Iop ^= 2; cdb.gen(&cs2); // MOV EA,reg // Toggle INC <. DEC, ADD <. SUB cs.Irm ^= (n == 1 || n == -1) ? modregrm(0,1,0) : modregrm(0,5,0); cdb.gen(&cs); if (*pretregs & mPSW) { *pretregs &= ~mPSW; // flags already set code_orflag(cdb.last(),CFpsw); } } else cdb.gen(&cs); // ADD/SUB EA,const freenode(e2); if (tyfv(tyml)) { reg_t preg; getlvalue_msw(&cs); if (*pretregs & mES) { preg = ES; /* ES is already loaded if CFes is 0 */ cs.Iop = ((cs.Iflags & CFSEG) == CFes) ? 0x8E : NOP; NEWREG(cs.Irm,0); /* MOV ES,EA+2 */ } else { regm_t retregsx = *pretregs & mMSW; if (!retregsx) retregsx = mMSW; allocreg(cdb,&retregsx,&preg,TYint); cs.Iop = 0x8B; if (I32) cs.Iflags |= CFopsize; NEWREG(cs.Irm,preg); /* MOV preg,EA+2 */ } getregs(cdb,mask(preg)); cdb.gen(&cs); retregs = mask(reg) | mask(preg); } fixresult(cdb,e,retregs,pretregs); return; } else if (tyml == TYhptr) { uint rvalue; reg_t lreg; reg_t rtmp; regm_t mtmp; rvalue = e2.EV.Vlong; freenode(e2); // If h--, convert to h++ if (e.Eoper == OPpostdec) rvalue = -rvalue; regm_t retregs = mLSW & ~idxregs & *pretregs; if (!retregs) retregs = mLSW & ~idxregs; allocreg(cdb,&retregs,&lreg,TYint); // Can't use LES if the EA uses ES as a seg override if (*pretregs & mES && (cs.Iflags & CFSEG) != CFes) { cs.Iop = 0xC4; retregs |= mES; getregs(cdb,mES|mCX); // allocate ES cs.Irm |= modregrm(0,lreg,0); cdb.gen(&cs); // LES lreg,EA } else { cs.Iop = 0x8B; retregs |= mDX; getregs(cdb,mDX|mCX); cs.Irm |= modregrm(0,lreg,0); cdb.gen(&cs); // MOV lreg,EA NEWREG(cs.Irm,DX); getlvalue_msw(&cs); cdb.gen(&cs); // MOV DX,EA+2 getlvalue_lsw(&cs); } // Allocate temporary register, rtmp mtmp = ALLREGS & ~mCX & ~idxregs & ~retregs; allocreg(cdb,&mtmp,&rtmp,TYint); movregconst(cdb,rtmp,rvalue >> 16,0); // MOV rtmp,e2+2 getregs(cdb,mtmp); cs.Iop = 0x81; NEWREG(cs.Irm,0); cs.IFL2 = FLconst; cs.IEV2.Vint = rvalue; cdb.gen(&cs); // ADD EA,e2 code_orflag(cdb.last(),CFpsw); cdb.genc2(0x81,modregrm(3,2,rtmp),0); // ADC rtmp,0 genshift(cdb); // MOV CX,offset __AHSHIFT cdb.gen2(0xD3,modregrm(3,4,rtmp)); // SHL rtmp,CL cs.Iop = 0x01; NEWREG(cs.Irm,rtmp); // ADD EA+2,rtmp getlvalue_msw(&cs); cdb.gen(&cs); fixresult(cdb,e,retregs,pretregs); return; } else if (sz == 2 * REGSIZE) { regm_t retregs = allregs & ~idxregs & *pretregs; if ((retregs & mLSW) == 0) retregs |= mLSW & ~idxregs; if ((retregs & mMSW) == 0) retregs |= ALLREGS & mMSW; assert(retregs & mMSW && retregs & mLSW); reg_t reg; allocreg(cdb,&retregs,&reg,tyml); uint sreg = findreglsw(retregs); cs.Iop = 0x8B; cs.Irm |= modregrm(0,sreg,0); cdb.gen(&cs); // MOV sreg,EA NEWREG(cs.Irm,reg); getlvalue_msw(&cs); cdb.gen(&cs); // MOV reg,EA+2 cs.Iop = 0x81; cs.Irm &= ~cast(int)modregrm(0,7,0); /* reg field = 0 for ADD */ if (op == OPpostdec) cs.Irm |= modregrm(0,5,0); /* SUB */ getlvalue_lsw(&cs); cs.IFL2 = FLconst; cs.IEV2.Vlong = e2.EV.Vlong; cdb.gen(&cs); // ADD/SUB EA,const code_orflag(cdb.last(),CFpsw); getlvalue_msw(&cs); cs.IEV2.Vlong = 0; if (op == OPpostinc) cs.Irm ^= modregrm(0,2,0); /* ADC */ else cs.Irm ^= modregrm(0,6,0); /* SBB */ cs.IEV2.Vlong = cast(targ_long)(e2.EV.Vullong >> (REGSIZE * 8)); cdb.gen(&cs); // ADC/SBB EA,0 freenode(e2); fixresult(cdb,e,retregs,pretregs); return; } else { assert(0); } } void cderr(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { debug elem_print(e); //printf("op = %d, %d\n", e.Eoper, OPstring); //printf("string = %p, len = %d\n", e.EV.ss.Vstring, e.EV.ss.Vstrlen); //printf("string = '%.*s'\n", cast(int)e.EV.ss.Vstrlen, e.EV.ss.Vstring); assert(0); } @trusted void cdinfo(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { switch (e.EV.E1.Eoper) { case OPdctor: codelem(cdb,e.EV.E2,pretregs,false); regm_t retregs = 0; codelem(cdb,e.EV.E1,&retregs,false); break; default: assert(0); } } /******************************************* * D constructor. * OPdctor */ @trusted void cddctor(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { /* Generate: ESCAPE | ESCdctor MOV sindex[BP],index */ usednteh |= EHcleanup; if (config.ehmethod == EHmethod.EH_WIN32) { usednteh |= NTEHcleanup | NTEH_try; nteh_usevars(); } assert(*pretregs == 0); code cs; cs.Iop = ESCAPE | ESCdctor; // mark start of EH range cs.Iflags = 0; cs.Irex = 0; cs.IFL1 = FLctor; cs.IEV1.Vtor = e; cdb.gen(&cs); nteh_gensindex(cdb,0); // the actual index will be patched in later // by except_fillInEHTable() } /******************************************* * D destructor. * OPddtor */ @trusted void cdddtor(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { if (config.ehmethod == EHmethod.EH_DWARF) { usednteh |= EHcleanup; code cs; cs.Iop = ESCAPE | ESCddtor; // mark end of EH range and where landing pad is cs.Iflags = 0; cs.Irex = 0; cs.IFL1 = FLdtor; cs.IEV1.Vtor = e; cdb.gen(&cs); // Mark all registers as destroyed getregsNoSave(allregs); assert(*pretregs == 0); codelem(cdb,e.EV.E1,pretregs,false); return; } else { /* Generate: ESCAPE | ESCddtor MOV sindex[BP],index CALL dtor JMP L1 Ldtor: ... e.EV.E1 ... RET L1: NOP */ usednteh |= EHcleanup; if (config.ehmethod == EHmethod.EH_WIN32) { usednteh |= NTEHcleanup | NTEH_try; nteh_usevars(); } code cs; cs.Iop = ESCAPE | ESCddtor; cs.Iflags = 0; cs.Irex = 0; cs.IFL1 = FLdtor; cs.IEV1.Vtor = e; cdb.gen(&cs); nteh_gensindex(cdb,0); // the actual index will be patched in later // by except_fillInEHTable() // Mark all registers as destroyed getregsNoSave(allregs); assert(*pretregs == 0); CodeBuilder cdbx; cdbx.ctor(); codelem(cdbx,e.EV.E1,pretregs,false); cdbx.gen1(0xC3); // RET code *c = cdbx.finish(); int nalign = 0; if (STACKALIGN >= 16) { nalign = STACKALIGN - REGSIZE; cod3_stackadj(cdb, nalign); } calledafunc = 1; genjmp(cdb,0xE8,FLcode,cast(block *)c); // CALL Ldtor if (nalign) cod3_stackadj(cdb, -nalign); code *cnop = gennop(null); genjmp(cdb,JMP,FLcode,cast(block *)cnop); cdb.append(cdbx); cdb.append(cnop); return; } } /******************************************* * C++ constructor. */ @trusted void cdctor(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { } /****** * OPdtor */ void cddtor(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { } void cdmark(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { } static if (!NTEXCEPTIONS) { void cdsetjmp(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { assert(0); } } /***************************************** */ @trusted void cdvoid(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { assert(*pretregs == 0); codelem(cdb,e.EV.E1,pretregs,false); } /***************************************** */ @trusted void cdhalt(ref CodeBuilder cdb,elem *e,regm_t *pretregs) { assert(*pretregs == 0); cdb.gen1(config.target_cpu >= TARGET_80286 ? UD2 : INT3); }
D
module rel; import std.typecons, std.range, std.container, std.stdio, std.string, std.algorithm : map; enum Rel : byte { Unknown, ImNewer, ImOlder, Same, Different } Rel inv(Rel x) { switch(x) { case Rel.ImNewer: return Rel.ImOlder; case Rel.ImOlder: return Rel.ImNewer; default: return x; } } class RelCache { Rel[Tuple!(int,int)] cache; void add(int leftID, int rightID, Rel r) { if (r == Rel.Different) return; //save memory, don't cache Different if (leftID <= rightID) cache[tuple(leftID, rightID)] = r; else cache[tuple(rightID, leftID)] = inv(r); } Rel get(int leftID, int rightID) { if (leftID <= rightID) return cache.get(tuple(leftID, rightID), Rel.Unknown); else return cache.get(tuple(rightID, leftID), Rel.Unknown).inv; } } /* A < B < C => A < C A < B = C => A < C A < B > C => A ? C A < B # C => A ? C A > B < C => A ? C A > B = C => A > C A > B > C => A > C A > B # C => A ? C A = B < C => A < C A = B = C => A = C A = B > C => A > C A = B # C => A # C A # B < C => A ? C A # B = C => A # C A # B > C => A ? C A # B # C => A ? C */ immutable Rel[3][] rules = [ [Rel.ImOlder, Rel.ImOlder, Rel.ImOlder], [Rel.ImOlder, Rel.Same, Rel.ImOlder], [Rel.ImNewer, Rel.Same, Rel.ImNewer], [Rel.ImNewer, Rel.ImNewer, Rel.ImNewer], [Rel.Same, Rel.ImOlder, Rel.ImOlder], [Rel.Same, Rel.Same, Rel.Same], [Rel.Same, Rel.ImNewer, Rel.ImNewer], [Rel.Same, Rel.Different, Rel.Different], [Rel.Different, Rel.Same, Rel.Different] ]; class RelMat { int N; Rel[][] rel; int curRow; this(int n) { N = n; Rel[] mkrow(int i) { return iota(0,n).map!((int j) => i==j ? Rel.Same : Rel.Unknown).array; } rel = iota(0,n).map!mkrow.array; curRow = 1; } bool nextPair(out int i, out int j) { foreach(y; curRow..N) foreach(x; 0..y) if (rel[y][x]==Rel.Unknown) { i = y; j = x; curRow = y; return true; } return false; } private void set(int i, int j, Rel r) { rel[i][j] = r; rel[j][i] = inv(r); } void add(int i, int j, Rel r) { set(i,j, r); auto rij = rel[i][j]; foreach(rule; rules) if (rule[0]==rij) foreach(k; 0..N) if (rel[j][k]==rule[1] && rel[i][k]==Rel.Unknown) set(i,k, rule[2]); foreach(rule; rules) if (rule[1]==rij) { auto ir0 = inv(rule[0]), ir2 = inv(rule[2]); foreach(k; 0..N) if (rel[i][k]==ir0 && rel[j][k]==Rel.Unknown) set(k,j, rule[2]); } } }
D
/** Implements a thread-safe, typed producer-consumer queue. Copyright: © 2017-2019 Sönke Ludwig Authors: Sönke Ludwig License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. */ module vibe.core.channel; import vibe.core.sync : TaskCondition; import vibe.internal.array : FixedRingBuffer; import std.algorithm.mutation : move, swap; import std.exception : enforce; import core.sync.mutex; // multiple producers allowed, multiple consumers allowed - Q: should this be restricted to allow higher performance? maybe configurable? // currently always buffered - TODO: implement blocking non-buffered mode // TODO: implement a multi-channel wait, e.g. // TaggedAlgebraic!(...) consumeAny(ch1, ch2, ch3); - requires a waitOnMultipleConditions function // NOTE: not using synchronized (m_mutex) because it is not nothrow /** Creates a new channel suitable for cross-task and cross-thread communication. */ Channel!(T, buffer_size) createChannel(T, size_t buffer_size = 100)(ChannelConfig config = ChannelConfig.init) { Channel!(T, buffer_size) ret; ret.m_impl = new shared ChannelImpl!(T, buffer_size)(config); return ret; } struct ChannelConfig { ChannelPriority priority = ChannelPriority.latency; } enum ChannelPriority { /** Minimize latency Triggers readers immediately once data is available and triggers writers as soon as the queue has space. */ latency, /** Minimize overhead. Triggers readers once the queue is full and triggers writers once the queue is empty in order to maximize batch sizes and minimize synchronization overhead. Note that in this mode it is necessary to close the channel to ensure that the buffered data is fully processed. */ overhead } /** Thread-safe typed data channel implementation. The implementation supports multiple-reader-multiple-writer operation across multiple tasks in multiple threads. */ struct Channel(T, size_t buffer_size = 100) { enum bufferSize = buffer_size; private shared ChannelImpl!(T, buffer_size) m_impl; /** Determines whether there is more data to read in a single-reader scenario. This property is empty $(I iff) no more elements are in the internal buffer and `close()` has been called. Once the channel is empty, subsequent calls to `consumeOne` or `consumeAll` will throw an exception. Note that relying on the return value to determine whether another element can be read is only safe in a single-reader scenario. It is generally recommended to use `tryConsumeOne` instead. */ deprecated("Use `tryConsumeOne` instead.") @property bool empty() { return m_impl.empty; } /// ditto deprecated("Use `tryConsumeOne` instead.") @property bool empty() shared { return m_impl.empty; } /** Returns the current count of items in the buffer. This function is useful for diagnostic purposes. */ @property size_t bufferFill() { return m_impl.bufferFill; } /// ditto @property size_t bufferFill() shared { return m_impl.bufferFill; } /** Closes the channel. A closed channel does not accept any new items enqueued using `put` and causes `empty` to return `fals` as soon as all preceeding elements have been consumed. */ void close() { m_impl.close(); } /// ditto void close() shared { m_impl.close(); } /** Consumes a single element off the queue. This function will block if no elements are available. If the `empty` property is `true`, an exception will be thrown. Note that it is recommended to use `tryConsumeOne` instead of a combination of `empty` and `consumeOne` due to being more efficient and also being reliable in a multiple-reader scenario. */ deprecated("Use `tryConsumeOne` instead.") T consumeOne() { return m_impl.consumeOne(); } /// ditto deprecated("Use `tryConsumeOne` instead.") T consumeOne() shared { return m_impl.consumeOne(); } /** Attempts to consume a single element. If no more elements are available and the channel has been closed, `false` is returned and `dst` is left untouched. */ bool tryConsumeOne(ref T dst) { return m_impl.tryConsumeOne(dst); } /// ditto bool tryConsumeOne(ref T dst) shared { return m_impl.tryConsumeOne(dst); } /** Attempts to consume all elements currently in the queue. This function will block if no elements are available. Once at least one element is available, the contents of `dst` will be replaced with all available elements. If the `empty` property is or becomes `true` before data becomes avaiable, `dst` will be left untouched and `false` is returned. */ bool consumeAll(ref FixedRingBuffer!(T, buffer_size) dst) in { assert(dst.empty); } do { return m_impl.consumeAll(dst); } /// ditto bool consumeAll(ref FixedRingBuffer!(T, buffer_size) dst) shared in { assert(dst.empty); } do { return m_impl.consumeAll(dst); } /** Enqueues an element. This function may block the the event that the internal buffer is full. */ void put(T item) { m_impl.put(item.move); } /// ditto void put(T item) shared { m_impl.put(item.move); } } private final class ChannelImpl(T, size_t buffer_size) { import vibe.core.concurrency : isWeaklyIsolated; static assert(isWeaklyIsolated!T, "Channel data type "~T.stringof~" is not safe to pass between threads."); private { Mutex m_mutex; TaskCondition m_condition; FixedRingBuffer!(T, buffer_size) m_items; bool m_closed = false; ChannelConfig m_config; } this(ChannelConfig config) shared @trusted nothrow { m_mutex = cast(shared)new Mutex; m_condition = cast(shared)new TaskCondition(cast(Mutex)m_mutex); m_config = config; } @property bool empty() shared nothrow { { m_mutex.lock_nothrow(); scope (exit) m_mutex.unlock_nothrow(); auto thisus = () @trusted { return cast(ChannelImpl)this; } (); // ensure that in a single-reader scenario !empty guarantees a // successful call to consumeOne while (!thisus.m_closed && thisus.m_items.empty) thisus.m_condition.wait(); return thisus.m_closed && thisus.m_items.empty; } } @property size_t bufferFill() shared nothrow { { m_mutex.lock_nothrow(); scope (exit) m_mutex.unlock_nothrow(); auto thisus = () @trusted { return cast(ChannelImpl)this; } (); return thisus.m_items.length; } } void close() shared nothrow { { m_mutex.lock_nothrow(); scope (exit) m_mutex.unlock_nothrow(); auto thisus = () @trusted { return cast(ChannelImpl)this; } (); thisus.m_closed = true; thisus.m_condition.notifyAll(); } } bool tryConsumeOne(ref T dst) shared nothrow { auto thisus = () @trusted { return cast(ChannelImpl)this; } (); bool need_notify = false; { m_mutex.lock_nothrow(); scope (exit) m_mutex.unlock_nothrow(); while (thisus.m_items.empty) { if (m_closed) return false; thisus.m_condition.wait(); } if (m_config.priority == ChannelPriority.latency) need_notify = thisus.m_items.full; move(thisus.m_items.front, dst); thisus.m_items.popFront(); if (m_config.priority == ChannelPriority.overhead) need_notify = thisus.m_items.empty; } if (need_notify) { if (m_config.priority == ChannelPriority.overhead) thisus.m_condition.notifyAll(); else thisus.m_condition.notify(); } return true; } T consumeOne() shared { T ret; if (!tryConsumeOne(ret)) throw new Exception("Attempt to consume from an empty channel."); return ret; } bool consumeAll(ref FixedRingBuffer!(T, buffer_size) dst) shared nothrow { auto thisus = () @trusted { return cast(ChannelImpl)this; } (); bool need_notify = false; { m_mutex.lock_nothrow(); scope (exit) m_mutex.unlock_nothrow(); while (thisus.m_items.empty) { if (m_closed) return false; thisus.m_condition.wait(); } if (m_config.priority == ChannelPriority.latency) need_notify = thisus.m_items.full; swap(thisus.m_items, dst); if (m_config.priority == ChannelPriority.overhead) need_notify = true; } if (need_notify) { if (m_config.priority == ChannelPriority.overhead) thisus.m_condition.notifyAll(); else thisus.m_condition.notify(); } return true; } void put(T item) shared { auto thisus = () @trusted { return cast(ChannelImpl)this; } (); bool need_notify = false; { m_mutex.lock_nothrow(); scope (exit) m_mutex.unlock_nothrow(); enforce(!m_closed, "Sending on closed channel."); while (thisus.m_items.full) thisus.m_condition.wait(); if (m_config.priority == ChannelPriority.latency) need_notify = thisus.m_items.empty; thisus.m_items.put(item.move); if (m_config.priority == ChannelPriority.overhead) need_notify = thisus.m_items.full; } if (need_notify) { if (m_config.priority == ChannelPriority.overhead) thisus.m_condition.notifyAll(); else thisus.m_condition.notify(); } } } deprecated @safe unittest { // test basic operation and non-copyable struct compatiblity import std.exception : assertThrown; static struct S { int i; @disable this(this); } auto ch = createChannel!S; ch.put(S(1)); assert(ch.consumeOne().i == 1); ch.put(S(4)); ch.put(S(5)); ch.close(); assert(!ch.empty); assert(ch.consumeOne() == S(4)); assert(!ch.empty); assert(ch.consumeOne() == S(5)); assert(ch.empty); assertThrown(ch.consumeOne()); } @safe unittest { // test basic operation and non-copyable struct compatiblity static struct S { int i; @disable this(this); } auto ch = createChannel!S; S v; ch.put(S(1)); assert(ch.tryConsumeOne(v) && v == S(1)); ch.put(S(4)); ch.put(S(5)); { FixedRingBuffer!(S, 100) buf; ch.consumeAll(buf); assert(buf.length == 2); assert(buf[0].i == 4); assert(buf[1].i == 5); } ch.put(S(2)); ch.close(); assert(ch.tryConsumeOne(v) && v.i == 2); assert(!ch.tryConsumeOne(v)); } deprecated @safe unittest { // make sure shared(Channel!T) can also be used shared ch = createChannel!int; ch.put(1); assert(!ch.empty); assert(ch.consumeOne == 1); ch.close(); assert(ch.empty); } @safe unittest { // make sure shared(Channel!T) can also be used shared ch = createChannel!int; ch.put(1); int v; assert(ch.tryConsumeOne(v) && v == 1); ch.close(); assert(!ch.tryConsumeOne(v)); } @safe unittest { // ensure nothrow'ness for throwing struct static struct S { this(this) { throw new Exception("meh!"); } } auto ch = createChannel!S; ch.put(S.init); ch.put(S.init); S s; FixedRingBuffer!(S, 100, true) sb; () nothrow { assert(ch.tryConsumeOne(s)); assert(ch.consumeAll(sb)); assert(sb.length == 1); ch.close(); assert(!ch.tryConsumeOne(s)); } (); } unittest { import std.traits : EnumMembers; import vibe.core.core : runTask; void test(ChannelPriority prio) { auto ch = createChannel!int(ChannelConfig(prio)); runTask(() nothrow { try { ch.put(1); ch.put(2); ch.put(3); } catch (Exception e) assert(false, e.msg); ch.close(); }); int i; assert(ch.tryConsumeOne(i) && i == 1); assert(ch.tryConsumeOne(i) && i == 2); assert(ch.tryConsumeOne(i) && i == 3); assert(!ch.tryConsumeOne(i)); } foreach (m; EnumMembers!ChannelPriority) test(m); }
D
/** nuiapi.d Converted from 'NuiApi.h' in Microsoft's Kinect for Windows SDK. Version: 1.5 License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Koji Kishita */ module c.windows.kinect.nuiapi; import c.windows.windef; import c.windows.winerror; import c.windows.wtypes; public import c.windows.kinect.nuisensor; public import c.windows.kinect.nuiimagecamera; public import c.windows.kinect.nuiskeleton; enum { NUI_INITIALIZE_FLAG_USES_AUDIO = 0x10000000, NUI_INITIALIZE_FLAG_USES_DEPTH_AND_PLAYER_INDEX = 0x00000001, NUI_INITIALIZE_FLAG_USES_COLOR = 0x00000002, NUI_INITIALIZE_FLAG_USES_SKELETON = 0x00000008, NUI_INITIALIZE_FLAG_USES_DEPTH = 0x00000020, NUI_INITIALIZE_FLAG_USES_HIGH_QUALITY_COLOR = 0x00000040, NUI_INITIALIZE_DEFAULT_HARDWARE_THREAD = 0xFFFFFFFF, } export extern(Windows) { HRESULT NuiInitialize(DWORD dwFlags); void NuiShutdown(); } enum { E_NUI_DEVICE_NOT_CONNECTED = HRESULT_FROM_WIN32(ERROR_DEVICE_NOT_CONNECTED), E_NUI_DEVICE_NOT_READY = HRESULT_FROM_WIN32(ERROR_NOT_READY), E_NUI_ALREADY_INITIALIZED = HRESULT_FROM_WIN32(ERROR_ALREADY_INITIALIZED), E_NUI_NO_MORE_ITEMS = HRESULT_FROM_WIN32(ERROR_NO_MORE_ITEMS), } private enum FACILITY_NUI = 0x301; enum { S_NUI_INITIALIZING = MAKE_HRESULT(SEVERITY_SUCCESS, FACILITY_NUI, 1), E_NUI_FRAME_NO_DATA = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 1), E_NUI_STREAM_NOT_ENABLED = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 2), E_NUI_IMAGE_STREAM_IN_USE = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 3), E_NUI_FRAME_LIMIT_EXCEEDED = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 4), E_NUI_FEATURE_NOT_INITIALIZED = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 5), E_NUI_NOTGENUINE = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 6), E_NUI_INSUFFICIENTBANDWIDTH = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 7), E_NUI_NOTSUPPORTED = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 8), E_NUI_DEVICE_IN_USE = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 9), E_NUI_DATABASE_NOT_FOUND = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 13), E_NUI_DATABASE_VERSION_MISMATCH = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 14), E_NUI_HARDWARE_FEATURE_UNAVAILABLE = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 15), E_NUI_NOTCONNECTED = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, ERROR_BAD_UNIT), E_NUI_NOTREADY = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, ERROR_NOT_READY), E_NUI_SKELETAL_ENGINE_BUSY = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, ERROR_BUSY), E_NUI_NOTPOWERED = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, ERROR_INSUFFICIENT_POWER), E_NUI_BADINDEX = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, ERROR_INVALID_INDEX), E_NUI_BADIINDEX = E_NUI_BADINDEX }
D
int main() { double d; // :D }
D
instance VLK_530_Guy (Npc_Default) { //-------- primary data -------- name = "Guy"; npctype = npctype_Main; guild = GIL_VLK; level = 2; voice = 3; id = 530; //-------- abilities -------- attribute[ATR_STRENGTH] = 20; attribute[ATR_DEXTERITY] = 10; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 64; attribute[ATR_HITPOINTS] = 64; //-------- visuals -------- // animations Mdl_SetVisual (self,"HUMANS.MDS"); Mdl_ApplyOverlayMds (self,"Humans_Tired.mds"); // body mesh,head mesh,hairmesh,face-tex,hair-tex,skin Mdl_SetVisualBody (self,"hum_body_Naked0",2,1,"Hum_Head_Psionic",72,1,-1); B_Scale (self); Mdl_SetModelFatness (self,0); Npc_SetAivar(self,AIV_IMPORTANT, TRUE); fight_tactic = FAI_HUMAN_COWARD; //-------- Talents -------- //-------- inventory -------- CreateInvItem (self,ItMwPickaxe); CreateInvItems (self,ItMiNugget,2); CreateInvItem (self,Itfo_Potion_Water_01); //-------------Daily Routine------------- /*B_InitNPCAddins(self);*/ daily_routine = Rtn_start_530; }; FUNC VOID Rtn_start_530 () { TA_Sleep (23,00,07,00,"OCR_HUT_25"); TA_SitAround (07,00,08,00,"OCR_OUTSIDE_HUT_25"); TA_Smalltalk (08,00,17,00,"OCR_OUTSIDE_HUT_27"); //mit Stt 306 TA_SitAround (17,00,19,05,"OCR_OUTSIDE_ARENA_BENCH_2"); TA_ArenaSpectator(19,05,23,00,"OCR_ARENA_07"); };
D
/** * Handle introspection functionality of the `__traits()` construct. * * Specification: $(LINK2 https://dlang.org/spec/traits.html, Traits) * * Copyright: Copyright (C) 1999-2020 by The D Language Foundation, All Rights Reserved * Authors: $(LINK2 http://www.digitalmars.com, Walter Bright) * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/traits.d, _traits.d) * Documentation: https://dlang.org/phobos/dmd_traits.html * Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/traits.d */ module dmd.traits; import core.stdc.stdio; import dmd.aggregate; import dmd.arraytypes; import dmd.astcodegen; import dmd.attrib; import dmd.canthrow; import dmd.dclass; import dmd.declaration; import dmd.denum; import dmd.dimport; import dmd.dmodule; import dmd.dscope; import dmd.dsymbol; import dmd.dsymbolsem; import dmd.dtemplate; import dmd.errors; import dmd.expression; import dmd.expressionsem; import dmd.func; import dmd.globals; import dmd.hdrgen; import dmd.id; import dmd.identifier; import dmd.mtype; import dmd.nogc; import dmd.parse; import dmd.root.array; import dmd.root.speller; import dmd.root.stringtable; import dmd.target; import dmd.tokens; import dmd.typesem; import dmd.visitor; import dmd.root.rootobject; import dmd.root.outbuffer; import dmd.root.string; enum LOGSEMANTIC = false; /************************ TraitsExp ************************************/ /************************************** * Convert `Expression` or `Type` to corresponding `Dsymbol`, additionally * stripping off expression contexts. * * Some symbol related `__traits` ignore arguments expression contexts. * For example: * ---- * struct S { void f() {} } * S s; * pragma(msg, __traits(isNested, s.f)); * // s.f is `DotVarExp`, but `__traits(isNested)`` needs a `FuncDeclaration`. * ---- * * This is used for that common `__traits` behavior. * * Input: * oarg object to get the symbol for * Returns: * Dsymbol the corresponding symbol for oarg */ private Dsymbol getDsymbolWithoutExpCtx(RootObject oarg) { if (auto e = isExpression(oarg)) { if (e.op == TOK.dotVariable) return (cast(DotVarExp)e).var; if (e.op == TOK.dotTemplateDeclaration) return (cast(DotTemplateExp)e).td; } return getDsymbol(oarg); } private const StringTable!bool traitsStringTable; shared static this() { static immutable string[] names = [ "isAbstractClass", "isArithmetic", "isAssociativeArray", "isDisabled", "isDeprecated", "isFuture", "isFinalClass", "isPOD", "isNested", "isFloating", "isIntegral", "isScalar", "isStaticArray", "isUnsigned", "isVirtualFunction", "isVirtualMethod", "isAbstractFunction", "isFinalFunction", "isOverrideFunction", "isStaticFunction", "isModule", "isPackage", "isRef", "isOut", "isLazy", "isReturnOnStack", "hasMember", "identifier", "getProtection", "parent", "child", "getLinkage", "getMember", "getOverloads", "getVirtualFunctions", "getVirtualMethods", "classInstanceSize", "allMembers", "derivedMembers", "isSame", "compiles", "parameters", "getAliasThis", "getAttributes", "getFunctionAttributes", "getFunctionVariadicStyle", "getParameterStorageClasses", "getUnitTests", "getVirtualIndex", "getPointerBitmap", "isZeroInit", "getTargetInfo", "getLocation", "hasPostblit", "hasCopyConstructor", "isCopyable", ]; StringTable!(bool)* stringTable = cast(StringTable!(bool)*) &traitsStringTable; stringTable._init(names.length); foreach (s; names) { auto sv = stringTable.insert(s, true); assert(sv); } } /** * get an array of size_t values that indicate possible pointer words in memory * if interpreted as the type given as argument * Returns: the size of the type in bytes, d_uns64.max on error */ d_uns64 getTypePointerBitmap(Loc loc, Type t, Array!(d_uns64)* data) { d_uns64 sz; if (t.ty == Tclass && !(cast(TypeClass)t).sym.isInterfaceDeclaration()) sz = (cast(TypeClass)t).sym.AggregateDeclaration.size(loc); else sz = t.size(loc); if (sz == SIZE_INVALID) return d_uns64.max; const sz_size_t = Type.tsize_t.size(loc); if (sz > sz.max - sz_size_t) { error(loc, "size overflow for type `%s`", t.toChars()); return d_uns64.max; } d_uns64 bitsPerWord = sz_size_t * 8; d_uns64 cntptr = (sz + sz_size_t - 1) / sz_size_t; d_uns64 cntdata = (cntptr + bitsPerWord - 1) / bitsPerWord; data.setDim(cast(size_t)cntdata); data.zero(); extern (C++) final class PointerBitmapVisitor : Visitor { alias visit = Visitor.visit; public: extern (D) this(Array!(d_uns64)* _data, d_uns64 _sz_size_t) { this.data = _data; this.sz_size_t = _sz_size_t; } void setpointer(d_uns64 off) { d_uns64 ptroff = off / sz_size_t; (*data)[cast(size_t)(ptroff / (8 * sz_size_t))] |= 1L << (ptroff % (8 * sz_size_t)); } override void visit(Type t) { Type tb = t.toBasetype(); if (tb != t) tb.accept(this); } override void visit(TypeError t) { visit(cast(Type)t); } override void visit(TypeNext t) { assert(0); } override void visit(TypeBasic t) { if (t.ty == Tvoid) setpointer(offset); } override void visit(TypeVector t) { } override void visit(TypeArray t) { assert(0); } override void visit(TypeSArray t) { d_uns64 arrayoff = offset; d_uns64 nextsize = t.next.size(); if (nextsize == SIZE_INVALID) error = true; d_uns64 dim = t.dim.toInteger(); for (d_uns64 i = 0; i < dim; i++) { offset = arrayoff + i * nextsize; t.next.accept(this); } offset = arrayoff; } override void visit(TypeDArray t) { setpointer(offset + sz_size_t); } // dynamic array is {length,ptr} override void visit(TypeAArray t) { setpointer(offset); } override void visit(TypePointer t) { if (t.nextOf().ty != Tfunction) // don't mark function pointers setpointer(offset); } override void visit(TypeReference t) { setpointer(offset); } override void visit(TypeClass t) { setpointer(offset); } override void visit(TypeFunction t) { } override void visit(TypeDelegate t) { setpointer(offset); } // delegate is {context, function} override void visit(TypeQualified t) { assert(0); } // assume resolved override void visit(TypeIdentifier t) { assert(0); } override void visit(TypeInstance t) { assert(0); } override void visit(TypeTypeof t) { assert(0); } override void visit(TypeReturn t) { assert(0); } override void visit(TypeEnum t) { visit(cast(Type)t); } override void visit(TypeTuple t) { visit(cast(Type)t); } override void visit(TypeSlice t) { assert(0); } override void visit(TypeNull t) { // always a null pointer } override void visit(TypeStruct t) { d_uns64 structoff = offset; foreach (v; t.sym.fields) { offset = structoff + v.offset; if (v.type.ty == Tclass) setpointer(offset); else v.type.accept(this); } offset = structoff; } // a "toplevel" class is treated as an instance, while TypeClass fields are treated as references void visitClass(TypeClass t) { d_uns64 classoff = offset; // skip vtable-ptr and monitor if (t.sym.baseClass) visitClass(cast(TypeClass)t.sym.baseClass.type); foreach (v; t.sym.fields) { offset = classoff + v.offset; v.type.accept(this); } offset = classoff; } Array!(d_uns64)* data; d_uns64 offset; d_uns64 sz_size_t; bool error; } scope PointerBitmapVisitor pbv = new PointerBitmapVisitor(data, sz_size_t); if (t.ty == Tclass) pbv.visitClass(cast(TypeClass)t); else t.accept(pbv); return pbv.error ? d_uns64.max : sz; } /** * get an array of size_t values that indicate possible pointer words in memory * if interpreted as the type given as argument * the first array element is the size of the type for independent interpretation * of the array * following elements bits represent one word (4/8 bytes depending on the target * architecture). If set the corresponding memory might contain a pointer/reference. * * Returns: [T.sizeof, pointerbit0-31/63, pointerbit32/64-63/128, ...] */ private Expression pointerBitmap(TraitsExp e) { if (!e.args || e.args.dim != 1) { error(e.loc, "a single type expected for trait pointerBitmap"); return ErrorExp.get(); } Type t = getType((*e.args)[0]); if (!t) { error(e.loc, "`%s` is not a type", (*e.args)[0].toChars()); return ErrorExp.get(); } Array!(d_uns64) data; d_uns64 sz = getTypePointerBitmap(e.loc, t, &data); if (sz == d_uns64.max) return ErrorExp.get(); auto exps = new Expressions(data.dim + 1); (*exps)[0] = new IntegerExp(e.loc, sz, Type.tsize_t); foreach (size_t i; 1 .. exps.dim) (*exps)[i] = new IntegerExp(e.loc, data[cast(size_t) (i - 1)], Type.tsize_t); auto ale = new ArrayLiteralExp(e.loc, Type.tsize_t.sarrayOf(data.dim + 1), exps); return ale; } Expression semanticTraits(TraitsExp e, Scope* sc) { static if (LOGSEMANTIC) { printf("TraitsExp::semantic() %s\n", e.toChars()); } if (e.ident != Id.compiles && e.ident != Id.isSame && e.ident != Id.identifier && e.ident != Id.getProtection && e.ident != Id.getAttributes) { // Pretend we're in a deprecated scope so that deprecation messages // aren't triggered when checking if a symbol is deprecated const save = sc.stc; if (e.ident == Id.isDeprecated) sc.stc |= STC.deprecated_; if (!TemplateInstance.semanticTiargs(e.loc, sc, e.args, 1)) { sc.stc = save; return ErrorExp.get(); } sc.stc = save; } size_t dim = e.args ? e.args.dim : 0; Expression dimError(int expected) { e.error("expected %d arguments for `%s` but had %d", expected, e.ident.toChars(), cast(int)dim); return ErrorExp.get(); } static IntegerExp True() { return IntegerExp.createBool(true); } static IntegerExp False() { return IntegerExp.createBool(false); } /******** * Gets the function type from a given AST node * if the node is a function of some sort. * Params: * o = an AST node to check for a `TypeFunction` * fdp = if `o` is a FuncDeclaration then fdp is set to that, otherwise `null` * Returns: * a type node if `o` is a declaration of * a delegate, function, function-pointer or a variable of the former. * Otherwise, `null`. */ static TypeFunction toTypeFunction(RootObject o, out FuncDeclaration fdp) { Type t; if (auto s = getDsymbolWithoutExpCtx(o)) { if (auto fd = s.isFuncDeclaration()) { t = fd.type; fdp = fd; } else if (auto vd = s.isVarDeclaration()) t = vd.type; else t = isType(o); } else t = isType(o); if (t) { if (t.ty == Tfunction) return cast(TypeFunction)t; else if (t.ty == Tdelegate) return cast(TypeFunction)t.nextOf(); else if (t.ty == Tpointer && t.nextOf().ty == Tfunction) return cast(TypeFunction)t.nextOf(); } return null; } IntegerExp isX(T)(bool delegate(T) fp) { if (!dim) return False(); foreach (o; *e.args) { static if (is(T == Type)) auto y = getType(o); static if (is(T : Dsymbol)) { auto s = getDsymbolWithoutExpCtx(o); if (!s) return False(); } static if (is(T == Dsymbol)) alias y = s; static if (is(T == Declaration)) auto y = s.isDeclaration(); static if (is(T == FuncDeclaration)) auto y = s.isFuncDeclaration(); static if (is(T == EnumMember)) auto y = s.isEnumMember(); if (!y || !fp(y)) return False(); } return True(); } alias isTypeX = isX!Type; alias isDsymX = isX!Dsymbol; alias isDeclX = isX!Declaration; alias isFuncX = isX!FuncDeclaration; alias isEnumMemX = isX!EnumMember; Expression isPkgX(bool function(Package) fp) { return isDsymX((Dsymbol sym) { Package p = resolveIsPackage(sym); return (p !is null) && fp(p); }); } if (e.ident == Id.isArithmetic) { return isTypeX(t => t.isintegral() || t.isfloating()); } if (e.ident == Id.isFloating) { return isTypeX(t => t.isfloating()); } if (e.ident == Id.isIntegral) { return isTypeX(t => t.isintegral()); } if (e.ident == Id.isScalar) { return isTypeX(t => t.isscalar()); } if (e.ident == Id.isUnsigned) { return isTypeX(t => t.isunsigned()); } if (e.ident == Id.isAssociativeArray) { return isTypeX(t => t.toBasetype().ty == Taarray); } if (e.ident == Id.isDeprecated) { if (global.params.vcomplex) { if (isTypeX(t => t.iscomplex() || t.isimaginary()).isBool(true)) return True(); } return isDsymX(t => t.isDeprecated()); } if (e.ident == Id.isFuture) { return isDeclX(t => t.isFuture()); } if (e.ident == Id.isStaticArray) { return isTypeX(t => t.toBasetype().ty == Tsarray); } if (e.ident == Id.isAbstractClass) { return isTypeX(t => t.toBasetype().ty == Tclass && (cast(TypeClass)t.toBasetype()).sym.isAbstract()); } if (e.ident == Id.isFinalClass) { return isTypeX(t => t.toBasetype().ty == Tclass && ((cast(TypeClass)t.toBasetype()).sym.storage_class & STC.final_) != 0); } if (e.ident == Id.isTemplate) { if (dim != 1) return dimError(1); return isDsymX((s) { if (!s.toAlias().isOverloadable()) return false; return overloadApply(s, sm => sm.isTemplateDeclaration() !is null) != 0; }); } if (e.ident == Id.isPOD) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto t = isType(o); if (!t) { e.error("type expected as second argument of __traits `%s` instead of `%s`", e.ident.toChars(), o.toChars()); return ErrorExp.get(); } Type tb = t.baseElemOf(); if (auto sd = tb.ty == Tstruct ? (cast(TypeStruct)tb).sym : null) { return sd.isPOD() ? True() : False(); } return True(); } if (e.ident == Id.hasCopyConstructor || e.ident == Id.hasPostblit) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto t = isType(o); if (!t) { e.error("type expected as second argument of __traits `%s` instead of `%s`", e.ident.toChars(), o.toChars()); return ErrorExp.get(); } Type tb = t.baseElemOf(); if (auto sd = tb.ty == Tstruct ? (cast(TypeStruct)tb).sym : null) { return (e.ident == Id.hasPostblit) ? (sd.postblit ? True() : False()) : (sd.hasCopyCtor ? True() : False()); } return False(); } if (e.ident == Id.isCopyable) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto t = isType(o); if (!t) { e.error("type expected as second argument of __traits `%s` instead of `%s`", e.ident.toChars(), o.toChars()); return ErrorExp.get(); } t = t.toBasetype(); // get the base in case `t` is an `enum` if (auto ts = t.isTypeStruct()) { ts.sym.dsymbolSemantic(sc); } return isCopyable(t) ? True() : False(); } if (e.ident == Id.isNested) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto s = getDsymbolWithoutExpCtx(o); if (!s) { } else if (auto ad = s.isAggregateDeclaration()) { return ad.isNested() ? True() : False(); } else if (auto fd = s.isFuncDeclaration()) { return fd.isNested() ? True() : False(); } e.error("aggregate or function expected instead of `%s`", o.toChars()); return ErrorExp.get(); } if (e.ident == Id.isDisabled) { if (dim != 1) return dimError(1); return isDeclX(f => f.isDisabled()); } if (e.ident == Id.isAbstractFunction) { if (dim != 1) return dimError(1); return isFuncX(f => f.isAbstract()); } if (e.ident == Id.isVirtualFunction) { if (dim != 1) return dimError(1); return isFuncX(f => f.isVirtual()); } if (e.ident == Id.isVirtualMethod) { if (dim != 1) return dimError(1); return isFuncX(f => f.isVirtualMethod()); } if (e.ident == Id.isFinalFunction) { if (dim != 1) return dimError(1); return isFuncX(f => f.isFinalFunc()); } if (e.ident == Id.isOverrideFunction) { if (dim != 1) return dimError(1); return isFuncX(f => f.isOverride()); } if (e.ident == Id.isStaticFunction) { if (dim != 1) return dimError(1); return isFuncX(f => !f.needThis() && !f.isNested()); } if (e.ident == Id.isModule) { if (dim != 1) return dimError(1); return isPkgX(p => p.isModule() || p.isPackageMod()); } if (e.ident == Id.isPackage) { if (dim != 1) return dimError(1); return isPkgX(p => p.isModule() is null); } if (e.ident == Id.isRef) { if (dim != 1) return dimError(1); return isDeclX(d => d.isRef()); } if (e.ident == Id.isOut) { if (dim != 1) return dimError(1); return isDeclX(d => d.isOut()); } if (e.ident == Id.isLazy) { if (dim != 1) return dimError(1); return isDeclX(d => (d.storage_class & STC.lazy_) != 0); } if (e.ident == Id.identifier) { // Get identifier for symbol as a string literal /* Specify 0 for bit 0 of the flags argument to semanticTiargs() so that * a symbol should not be folded to a constant. * Bit 1 means don't convert Parameter to Type if Parameter has an identifier */ if (!TemplateInstance.semanticTiargs(e.loc, sc, e.args, 2)) return ErrorExp.get(); if (dim != 1) return dimError(1); auto o = (*e.args)[0]; Identifier id; if (auto po = isParameter(o)) { if (!po.ident) { e.error("argument `%s` has no identifier", po.type.toChars()); return ErrorExp.get(); } id = po.ident; } else { Dsymbol s = getDsymbolWithoutExpCtx(o); if (!s || !s.ident) { e.error("argument `%s` has no identifier", o.toChars()); return ErrorExp.get(); } id = s.ident; } auto se = new StringExp(e.loc, id.toString()); return se.expressionSemantic(sc); } if (e.ident == Id.getProtection) { if (dim != 1) return dimError(1); Scope* sc2 = sc.push(); sc2.flags = sc.flags | SCOPE.noaccesscheck | SCOPE.ignoresymbolvisibility; bool ok = TemplateInstance.semanticTiargs(e.loc, sc2, e.args, 1); sc2.pop(); if (!ok) return ErrorExp.get(); auto o = (*e.args)[0]; auto s = getDsymbolWithoutExpCtx(o); if (!s) { if (!isError(o)) e.error("argument `%s` has no protection", o.toChars()); return ErrorExp.get(); } if (s.semanticRun == PASS.init) s.dsymbolSemantic(null); auto protName = protectionToString(s.prot().kind); // TODO: How about package(names) assert(protName); auto se = new StringExp(e.loc, protName); return se.expressionSemantic(sc); } if (e.ident == Id.parent) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto s = getDsymbolWithoutExpCtx(o); if (s) { // https://issues.dlang.org/show_bug.cgi?id=12496 // Consider: // class T1 // { // class C(uint value) { } // } // __traits(parent, T1.C!2) if (auto ad = s.isAggregateDeclaration()) // `s` is `C` { if (ad.isNested()) // `C` is nested { if (auto p = s.toParent()) // `C`'s parent is `C!2`, believe it or not { if (p.isTemplateInstance()) // `C!2` is a template instance { s = p; // `C!2`'s parent is `T1` auto td = (cast(TemplateInstance)p).tempdecl; if (td) s = td; // get the declaration context just in case there's two contexts } } } } if (auto fd = s.isFuncDeclaration()) // https://issues.dlang.org/show_bug.cgi?id=8943 s = fd.toAliasFunc(); if (!s.isImport()) // https://issues.dlang.org/show_bug.cgi?id=8922 s = s.toParent(); } if (!s || s.isImport()) { e.error("argument `%s` has no parent", o.toChars()); return ErrorExp.get(); } if (auto f = s.isFuncDeclaration()) { if (auto td = getFuncTemplateDecl(f)) { if (td.overroot) // if not start of overloaded list of TemplateDeclaration's td = td.overroot; // then get the start Expression ex = new TemplateExp(e.loc, td, f); ex = ex.expressionSemantic(sc); return ex; } if (auto fld = f.isFuncLiteralDeclaration()) { // Directly translate to VarExp instead of FuncExp Expression ex = new VarExp(e.loc, fld, true); return ex.expressionSemantic(sc); } } return symbolToExp(s, e.loc, sc, false); } if (e.ident == Id.child) { if (dim != 2) return dimError(2); Expression ex; auto op = (*e.args)[0]; if (auto symp = getDsymbol(op)) ex = new DsymbolExp(e.loc, symp); else if (auto exp = op.isExpression()) ex = exp; else { e.error("symbol or expression expected as first argument of __traits `child` instead of `%s`", op.toChars()); return ErrorExp.get(); } ex = ex.expressionSemantic(sc); auto oc = (*e.args)[1]; auto symc = getDsymbol(oc); if (!symc) { e.error("symbol expected as second argument of __traits `child` instead of `%s`", oc.toChars()); return ErrorExp.get(); } if (auto d = symc.isDeclaration()) ex = new DotVarExp(e.loc, ex, d); else if (auto td = symc.isTemplateDeclaration()) ex = new DotExp(e.loc, ex, new TemplateExp(e.loc, td)); else if (auto ti = symc.isScopeDsymbol()) ex = new DotExp(e.loc, ex, new ScopeExp(e.loc, ti)); else assert(0); ex = ex.expressionSemantic(sc); return ex; } if (e.ident == Id.hasMember || e.ident == Id.getMember || e.ident == Id.getOverloads || e.ident == Id.getVirtualMethods || e.ident == Id.getVirtualFunctions) { if (dim != 2 && !(dim == 3 && e.ident == Id.getOverloads)) return dimError(2); auto o = (*e.args)[0]; auto ex = isExpression((*e.args)[1]); if (!ex) { e.error("expression expected as second argument of __traits `%s`", e.ident.toChars()); return ErrorExp.get(); } ex = ex.ctfeInterpret(); bool includeTemplates = false; if (dim == 3 && e.ident == Id.getOverloads) { auto b = isExpression((*e.args)[2]); b = b.ctfeInterpret(); if (!b.type.equals(Type.tbool)) { e.error("`bool` expected as third argument of `__traits(getOverloads)`, not `%s` of type `%s`", b.toChars(), b.type.toChars()); return ErrorExp.get(); } includeTemplates = b.isBool(true); } StringExp se = ex.toStringExp(); if (!se || se.len == 0) { e.error("string expected as second argument of __traits `%s` instead of `%s`", e.ident.toChars(), ex.toChars()); return ErrorExp.get(); } se = se.toUTF8(sc); if (se.sz != 1) { e.error("string must be chars"); return ErrorExp.get(); } auto id = Identifier.idPool(se.peekString()); /* Prefer a Type, because getDsymbol(Type) can lose type modifiers. Then a Dsymbol, because it might need some runtime contexts. */ Dsymbol sym = getDsymbol(o); if (auto t = isType(o)) ex = typeDotIdExp(e.loc, t, id); else if (sym) { if (e.ident == Id.hasMember) { if (auto sm = sym.search(e.loc, id)) return True(); } ex = new DsymbolExp(e.loc, sym); ex = new DotIdExp(e.loc, ex, id); } else if (auto ex2 = isExpression(o)) ex = new DotIdExp(e.loc, ex2, id); else { e.error("invalid first argument"); return ErrorExp.get(); } // ignore symbol visibility and disable access checks for these traits Scope* scx = sc.push(); scx.flags |= SCOPE.ignoresymbolvisibility | SCOPE.noaccesscheck; scope (exit) scx.pop(); if (e.ident == Id.hasMember) { /* Take any errors as meaning it wasn't found */ ex = ex.trySemantic(scx); return ex ? True() : False(); } else if (e.ident == Id.getMember) { if (ex.op == TOK.dotIdentifier) // Prevent semantic() from replacing Symbol with its initializer (cast(DotIdExp)ex).wantsym = true; ex = ex.expressionSemantic(scx); return ex; } else if (e.ident == Id.getVirtualFunctions || e.ident == Id.getVirtualMethods || e.ident == Id.getOverloads) { uint errors = global.errors; Expression eorig = ex; ex = ex.expressionSemantic(scx); if (errors < global.errors) e.error("`%s` cannot be resolved", eorig.toChars()); /* Create tuple of functions of ex */ auto exps = new Expressions(); Dsymbol f; if (auto ve = ex.isVarExp) { if (ve.var.isFuncDeclaration() || ve.var.isOverDeclaration()) f = ve.var; ex = null; } else if (auto dve = ex.isDotVarExp) { if (dve.var.isFuncDeclaration() || dve.var.isOverDeclaration()) f = dve.var; if (dve.e1.op == TOK.dotType || dve.e1.op == TOK.this_) ex = null; else ex = dve.e1; } else if (auto te = ex.isTemplateExp) { auto td = te.td; f = td; if (td && td.funcroot) f = td.funcroot; ex = null; } else if (auto dte = ex.isDotTemplateExp) { auto td = dte.td; f = td; if (td && td.funcroot) f = td.funcroot; ex = null; if (dte.e1.op != TOK.dotType && dte.e1.op != TOK.this_) ex = dte.e1; } bool[string] funcTypeHash; /* Compute the function signature and insert it in the * hashtable, if not present. This is needed so that * traits(getOverlods, F3, "visit") does not count `int visit(int)` * twice in the following example: * * ============================================= * interface F1 { int visit(int);} * interface F2 { int visit(int); void visit(); } * interface F3 : F2, F1 {} *============================================== */ void insertInterfaceInheritedFunction(FuncDeclaration fd, Expression e) { auto signature = fd.type.toString(); //printf("%s - %s\n", fd.toChars, signature); if (signature !in funcTypeHash) { funcTypeHash[signature] = true; exps.push(e); } } int dg(Dsymbol s) { auto fd = s.isFuncDeclaration(); if (!fd) { if (includeTemplates) { if (auto td = s.isTemplateDeclaration()) { // if td is part of an overload set we must take a copy // which shares the same `instances` cache but without // `overroot` and `overnext` set to avoid overload // behaviour in the result. if (td.overnext !is null) { if (td.instances is null) { // create an empty AA just to copy it scope ti = new TemplateInstance(Loc.initial, Id.empty, null); auto tib = TemplateInstanceBox(ti); td.instances[tib] = null; td.instances.clear(); } td = td.syntaxCopy(null); import core.stdc.string : memcpy; memcpy(cast(void*) td, cast(void*) s, __traits(classInstanceSize, TemplateDeclaration)); td.overroot = null; td.overnext = null; } exps.push(new DsymbolExp(Loc.initial, td, false)); } } return 0; } if (e.ident == Id.getVirtualFunctions && !fd.isVirtual()) return 0; if (e.ident == Id.getVirtualMethods && !fd.isVirtualMethod()) return 0; auto fa = new FuncAliasDeclaration(fd.ident, fd, false); fa.protection = fd.protection; auto e = ex ? new DotVarExp(Loc.initial, ex, fa, false) : new DsymbolExp(Loc.initial, fa, false); // if the parent is an interface declaration // we must check for functions with the same signature // in different inherited interfaces if (sym && sym.isInterfaceDeclaration()) insertInterfaceInheritedFunction(fd, e); else exps.push(e); return 0; } InterfaceDeclaration ifd = null; if (sym) ifd = sym.isInterfaceDeclaration(); // If the symbol passed as a parameter is an // interface that inherits other interfaces overloadApply(f, &dg); if (ifd && ifd.interfaces && f) { // check the overloads of each inherited interface individually foreach (bc; ifd.interfaces) { if (auto fd = bc.sym.search(e.loc, f.ident)) overloadApply(fd, &dg); } } auto tup = new TupleExp(e.loc, exps); return tup.expressionSemantic(scx); } else assert(0); } if (e.ident == Id.classInstanceSize) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto s = getDsymbol(o); auto cd = s ? s.isClassDeclaration() : null; if (!cd) { e.error("first argument is not a class"); return ErrorExp.get(); } if (cd.sizeok != Sizeok.done) { cd.size(e.loc); } if (cd.sizeok != Sizeok.done) { e.error("%s `%s` is forward referenced", cd.kind(), cd.toChars()); return ErrorExp.get(); } return new IntegerExp(e.loc, cd.structsize, Type.tsize_t); } if (e.ident == Id.getAliasThis) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto s = getDsymbol(o); auto ad = s ? s.isAggregateDeclaration() : null; auto exps = new Expressions(); if (ad && ad.aliasthis) exps.push(new StringExp(e.loc, ad.aliasthis.ident.toString())); Expression ex = new TupleExp(e.loc, exps); ex = ex.expressionSemantic(sc); return ex; } if (e.ident == Id.getAttributes) { /* Specify 0 for bit 0 of the flags argument to semanticTiargs() so that * a symbol should not be folded to a constant. * Bit 1 means don't convert Parameter to Type if Parameter has an identifier */ if (!TemplateInstance.semanticTiargs(e.loc, sc, e.args, 3)) return ErrorExp.get(); if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto po = isParameter(o); auto s = getDsymbolWithoutExpCtx(o); UserAttributeDeclaration udad = null; if (po) { udad = po.userAttribDecl; } else if (s) { if (s.isImport()) { s = s.isImport().mod; } //printf("getAttributes %s, attrs = %p, scope = %p\n", s.toChars(), s.userAttribDecl, s.scope); udad = s.userAttribDecl; } else { version (none) { Expression x = isExpression(o); Type t = isType(o); if (x) printf("e = %s %s\n", Token.toChars(x.op), x.toChars()); if (t) printf("t = %d %s\n", t.ty, t.toChars()); } e.error("first argument is not a symbol"); return ErrorExp.get(); } auto exps = udad ? udad.getAttributes() : new Expressions(); auto tup = new TupleExp(e.loc, exps); return tup.expressionSemantic(sc); } if (e.ident == Id.getFunctionAttributes) { /* Extract all function attributes as a tuple (const/shared/inout/pure/nothrow/etc) except UDAs. * https://dlang.org/spec/traits.html#getFunctionAttributes */ if (dim != 1) return dimError(1); FuncDeclaration fd; TypeFunction tf = toTypeFunction((*e.args)[0], fd); if (!tf) { e.error("first argument is not a function"); return ErrorExp.get(); } auto mods = new Expressions(); void addToMods(string str) { mods.push(new StringExp(Loc.initial, str)); } tf.modifiersApply(&addToMods); tf.attributesApply(&addToMods, TRUSTformatSystem); auto tup = new TupleExp(e.loc, mods); return tup.expressionSemantic(sc); } if (e.ident == Id.isReturnOnStack) { /* Extract as a boolean if function return value is on the stack * https://dlang.org/spec/traits.html#isReturnOnStack */ if (dim != 1) return dimError(1); RootObject o = (*e.args)[0]; FuncDeclaration fd; TypeFunction tf = toTypeFunction(o, fd); if (!tf) { e.error("argument to `__traits(isReturnOnStack, %s)` is not a function", o.toChars()); return ErrorExp.get(); } bool value = target.isReturnOnStack(tf, fd && fd.needThis()); return IntegerExp.createBool(value); } if (e.ident == Id.getFunctionVariadicStyle) { /* Accept a symbol or a type. Returns one of the following: * "none" not a variadic function * "argptr" extern(D) void dstyle(...), use `__argptr` and `__arguments` * "stdarg" extern(C) void cstyle(int, ...), use core.stdc.stdarg * "typesafe" void typesafe(T[] ...) */ // get symbol linkage as a string if (dim != 1) return dimError(1); LINK link; VarArg varargs; auto o = (*e.args)[0]; FuncDeclaration fd; TypeFunction tf = toTypeFunction(o, fd); if (tf) { link = tf.linkage; varargs = tf.parameterList.varargs; } else { if (!fd) { e.error("argument to `__traits(getFunctionVariadicStyle, %s)` is not a function", o.toChars()); return ErrorExp.get(); } link = fd.linkage; varargs = fd.getParameterList().varargs; } string style; final switch (varargs) { case VarArg.none: style = "none"; break; case VarArg.variadic: style = (link == LINK.d) ? "argptr" : "stdarg"; break; case VarArg.typesafe: style = "typesafe"; break; } auto se = new StringExp(e.loc, style); return se.expressionSemantic(sc); } if (e.ident == Id.getParameterStorageClasses) { /* Accept a function symbol or a type, followed by a parameter index. * Returns a tuple of strings of the parameter's storage classes. */ // get symbol linkage as a string if (dim != 2) return dimError(2); auto o = (*e.args)[0]; auto o1 = (*e.args)[1]; FuncDeclaration fd; TypeFunction tf = toTypeFunction(o, fd); ParameterList fparams; if (tf) fparams = tf.parameterList; else if (fd) fparams = fd.getParameterList(); else { e.error("first argument to `__traits(getParameterStorageClasses, %s, %s)` is not a function", o.toChars(), o1.toChars()); return ErrorExp.get(); } StorageClass stc; // Set stc to storage class of the ith parameter auto ex = isExpression((*e.args)[1]); if (!ex) { e.error("expression expected as second argument of `__traits(getParameterStorageClasses, %s, %s)`", o.toChars(), o1.toChars()); return ErrorExp.get(); } ex = ex.ctfeInterpret(); auto ii = ex.toUInteger(); if (ii >= fparams.length) { e.error("parameter index must be in range 0..%u not %s", cast(uint)fparams.length, ex.toChars()); return ErrorExp.get(); } uint n = cast(uint)ii; Parameter p = fparams[n]; stc = p.storageClass; // This mirrors hdrgen.visit(Parameter p) if (p.type && p.type.mod & MODFlags.shared_) stc &= ~STC.shared_; auto exps = new Expressions; void push(string s) { exps.push(new StringExp(e.loc, s)); } if (stc & STC.auto_) push("auto"); if (stc & STC.return_) push("return"); if (stc & STC.out_) push("out"); else if (stc & STC.ref_) push("ref"); else if (stc & STC.in_) push("in"); else if (stc & STC.lazy_) push("lazy"); else if (stc & STC.alias_) push("alias"); if (stc & STC.const_) push("const"); if (stc & STC.immutable_) push("immutable"); if (stc & STC.wild) push("inout"); if (stc & STC.shared_) push("shared"); if (stc & STC.scope_ && !(stc & STC.scopeinferred)) push("scope"); auto tup = new TupleExp(e.loc, exps); return tup.expressionSemantic(sc); } if (e.ident == Id.getLinkage) { // get symbol linkage as a string if (dim != 1) return dimError(1); LINK link; auto o = (*e.args)[0]; FuncDeclaration fd; TypeFunction tf = toTypeFunction(o, fd); if (tf) link = tf.linkage; else { auto s = getDsymbol(o); Declaration d; AggregateDeclaration agg; if (!s || ((d = s.isDeclaration()) is null && (agg = s.isAggregateDeclaration()) is null)) { e.error("argument to `__traits(getLinkage, %s)` is not a declaration", o.toChars()); return ErrorExp.get(); } if (d !is null) link = d.linkage; else { // Resolves forward references if (agg.sizeok != Sizeok.done) { agg.size(e.loc); if (agg.sizeok != Sizeok.done) { e.error("%s `%s` is forward referenced", agg.kind(), agg.toChars()); return ErrorExp.get(); } } final switch (agg.classKind) { case ClassKind.d: link = LINK.d; break; case ClassKind.cpp: link = LINK.cpp; break; case ClassKind.objc: link = LINK.objc; break; } } } auto linkage = linkageToChars(link); auto se = new StringExp(e.loc, linkage.toDString()); return se.expressionSemantic(sc); } if (e.ident == Id.allMembers || e.ident == Id.derivedMembers) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto s = getDsymbol(o); if (!s) { e.error("In expression `%s` `%s` can't have members", e.toChars(), o.toChars()); e.errorSupplemental("`%s` must evaluate to either a module, a struct, an union, a class, an interface or a template instantiation", o.toChars()); return ErrorExp.get(); } if (auto imp = s.isImport()) { // https://issues.dlang.org/show_bug.cgi?id=9692 s = imp.mod; } // https://issues.dlang.org/show_bug.cgi?id=16044 if (auto p = s.isPackage()) { if (auto pm = p.isPackageMod()) s = pm; } auto sds = s.isScopeDsymbol(); if (!sds || sds.isTemplateDeclaration()) { e.error("In expression `%s` %s `%s` has no members", e.toChars(), s.kind(), s.toChars()); e.errorSupplemental("`%s` must evaluate to either a module, a struct, an union, a class, an interface or a template instantiation", s.toChars()); return ErrorExp.get(); } auto idents = new Identifiers(); int pushIdentsDg(size_t n, Dsymbol sm) { if (!sm) return 1; // skip local symbols, such as static foreach loop variables if (auto decl = sm.isDeclaration()) { if (decl.storage_class & STC.local) { return 0; } } // https://issues.dlang.org/show_bug.cgi?id=20915 // skip version and debug identifiers if (sm.isVersionSymbol() || sm.isDebugSymbol()) return 0; //printf("\t[%i] %s %s\n", i, sm.kind(), sm.toChars()); if (sm.ident) { // https://issues.dlang.org/show_bug.cgi?id=10096 // https://issues.dlang.org/show_bug.cgi?id=10100 // Skip over internal members in __traits(allMembers) if ((sm.isCtorDeclaration() && sm.ident != Id.ctor) || (sm.isDtorDeclaration() && sm.ident != Id.dtor) || (sm.isPostBlitDeclaration() && sm.ident != Id.postblit) || sm.isInvariantDeclaration() || sm.isUnitTestDeclaration()) { return 0; } if (sm.ident == Id.empty) { return 0; } if (sm.isTypeInfoDeclaration()) // https://issues.dlang.org/show_bug.cgi?id=15177 return 0; if ((!sds.isModule() && !sds.isPackage()) && sm.isImport()) // https://issues.dlang.org/show_bug.cgi?id=17057 return 0; //printf("\t%s\n", sm.ident.toChars()); /* Skip if already present in idents[] */ foreach (id; *idents) { if (id == sm.ident) return 0; // Avoid using strcmp in the first place due to the performance impact in an O(N^2) loop. debug { import core.stdc.string : strcmp; assert(strcmp(id.toChars(), sm.ident.toChars()) != 0); } } idents.push(sm.ident); } else if (auto ed = sm.isEnumDeclaration()) { ScopeDsymbol._foreach(null, ed.members, &pushIdentsDg); } return 0; } ScopeDsymbol._foreach(sc, sds.members, &pushIdentsDg); auto cd = sds.isClassDeclaration(); if (cd && e.ident == Id.allMembers) { if (cd.semanticRun < PASS.semanticdone) cd.dsymbolSemantic(null); // https://issues.dlang.org/show_bug.cgi?id=13668 // Try to resolve forward reference void pushBaseMembersDg(ClassDeclaration cd) { for (size_t i = 0; i < cd.baseclasses.dim; i++) { auto cb = (*cd.baseclasses)[i].sym; assert(cb); ScopeDsymbol._foreach(null, cb.members, &pushIdentsDg); if (cb.baseclasses.dim) pushBaseMembersDg(cb); } } pushBaseMembersDg(cd); } // Turn Identifiers into StringExps reusing the allocated array assert(Expressions.sizeof == Identifiers.sizeof); auto exps = cast(Expressions*)idents; foreach (i, id; *idents) { auto se = new StringExp(e.loc, id.toString()); (*exps)[i] = se; } /* Making this a tuple is more flexible, as it can be statically unrolled. * To make an array literal, enclose __traits in [ ]: * [ __traits(allMembers, ...) ] */ Expression ex = new TupleExp(e.loc, exps); ex = ex.expressionSemantic(sc); return ex; } if (e.ident == Id.compiles) { /* Determine if all the objects - types, expressions, or symbols - * compile without error */ if (!dim) return False(); foreach (o; *e.args) { uint errors = global.startGagging(); Scope* sc2 = sc.push(); sc2.tinst = null; sc2.minst = null; sc2.flags = (sc.flags & ~(SCOPE.ctfe | SCOPE.condition)) | SCOPE.compile | SCOPE.fullinst; bool err = false; auto t = isType(o); while (t) { if (auto tm = t.isTypeMixin()) { /* The mixin string could be a type or an expression. * Have to try compiling it to see. */ OutBuffer buf; if (expressionsToString(buf, sc, tm.exps)) { err = true; break; } const olderrors = global.errors; const len = buf.length; buf.writeByte(0); const str = buf.extractSlice()[0 .. len]; scope p = new Parser!ASTCodegen(e.loc, sc._module, str, false); p.nextToken(); //printf("p.loc.linnum = %d\n", p.loc.linnum); o = p.parseTypeOrAssignExp(TOK.endOfFile); if (olderrors != global.errors || p.token.value != TOK.endOfFile) { err = true; break; } t = o.isType(); } else break; } if (!err) { auto ex = t ? t.typeToExpression() : isExpression(o); if (!ex && t) { Dsymbol s; t.resolve(e.loc, sc2, ex, t, s); if (t) { t.typeSemantic(e.loc, sc2); if (t.ty == Terror) err = true; } else if (s && s.errors) err = true; } if (ex) { ex = ex.expressionSemantic(sc2); ex = resolvePropertiesOnly(sc2, ex); ex = ex.optimize(WANTvalue); if (sc2.func && sc2.func.type.ty == Tfunction) { const tf = cast(TypeFunction)sc2.func.type; err |= tf.isnothrow && canThrow(ex, sc2.func, false); } ex = checkGC(sc2, ex); if (ex.op == TOK.error) err = true; } } // Carefully detach the scope from the parent and throw it away as // we only need it to evaluate the expression // https://issues.dlang.org/show_bug.cgi?id=15428 sc2.detach(); if (global.endGagging(errors) || err) { return False(); } } return True(); } if (e.ident == Id.isSame) { /* Determine if two symbols are the same */ if (dim != 2) return dimError(2); // https://issues.dlang.org/show_bug.cgi?id=20761 // tiarg semantic may expand in place the list of arguments, for example: // // before tiarg sema: __traits(isSame, seq!(0,0), seq!(1,1)) // after : __traits(isSame, 0, 0, 1, 1) // // so we split in two lists Objects ob1; ob1.push((*e.args)[0]); Objects ob2; ob2.push((*e.args)[1]); if (!TemplateInstance.semanticTiargs(e.loc, sc, &ob1, 0)) return ErrorExp.get(); if (!TemplateInstance.semanticTiargs(e.loc, sc, &ob2, 0)) return ErrorExp.get(); if (ob1.dim != ob2.dim) return False(); foreach (immutable i; 0 .. ob1.dim) if (!ob1[i].isSame(ob2[i], sc)) return False(); return True(); } if (e.ident == Id.getUnitTests) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto s = getDsymbolWithoutExpCtx(o); if (!s) { e.error("argument `%s` to __traits(getUnitTests) must be a module or aggregate", o.toChars()); return ErrorExp.get(); } if (auto imp = s.isImport()) // https://issues.dlang.org/show_bug.cgi?id=10990 s = imp.mod; auto sds = s.isScopeDsymbol(); if (!sds || sds.isTemplateDeclaration()) { e.error("argument `%s` to __traits(getUnitTests) must be a module or aggregate, not a %s", s.toChars(), s.kind()); return ErrorExp.get(); } auto exps = new Expressions(); if (global.params.useUnitTests) { bool[void*] uniqueUnitTests; void symbolDg(Dsymbol s) { if (auto ad = s.isAttribDeclaration()) { ad.include(null).foreachDsymbol(&symbolDg); } else if (auto tm = s.isTemplateMixin()) { tm.members.foreachDsymbol(&symbolDg); } else if (auto ud = s.isUnitTestDeclaration()) { if (cast(void*)ud in uniqueUnitTests) return; uniqueUnitTests[cast(void*)ud] = true; auto ad = new FuncAliasDeclaration(ud.ident, ud, false); ad.protection = ud.protection; auto e = new DsymbolExp(Loc.initial, ad, false); exps.push(e); } } sds.members.foreachDsymbol(&symbolDg); } auto te = new TupleExp(e.loc, exps); return te.expressionSemantic(sc); } if (e.ident == Id.getVirtualIndex) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto s = getDsymbolWithoutExpCtx(o); auto fd = s ? s.isFuncDeclaration() : null; if (!fd) { e.error("first argument to __traits(getVirtualIndex) must be a function"); return ErrorExp.get(); } fd = fd.toAliasFunc(); // Necessary to support multiple overloads. return new IntegerExp(e.loc, fd.vtblIndex, Type.tptrdiff_t); } if (e.ident == Id.getPointerBitmap) { return pointerBitmap(e); } if (e.ident == Id.isZeroInit) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; Type t = isType(o); if (!t) { e.error("type expected as second argument of __traits `%s` instead of `%s`", e.ident.toChars(), o.toChars()); return ErrorExp.get(); } Type tb = t.baseElemOf(); return tb.isZeroInit(e.loc) ? True() : False(); } if (e.ident == Id.getTargetInfo) { if (dim != 1) return dimError(1); auto ex = isExpression((*e.args)[0]); StringExp se = ex ? ex.ctfeInterpret().toStringExp() : null; if (!ex || !se || se.len == 0) { e.error("string expected as argument of __traits `%s` instead of `%s`", e.ident.toChars(), ex.toChars()); return ErrorExp.get(); } se = se.toUTF8(sc); const slice = se.peekString(); Expression r = target.getTargetInfo(slice.ptr, e.loc); // BUG: reliance on terminating 0 if (!r) { e.error("`getTargetInfo` key `\"%.*s\"` not supported by this implementation", cast(int)slice.length, slice.ptr); return ErrorExp.get(); } return r.expressionSemantic(sc); } if (e.ident == Id.getLocation) { if (dim != 1) return dimError(1); auto arg0 = (*e.args)[0]; Dsymbol s = getDsymbolWithoutExpCtx(arg0); if (!s || !s.loc.isValid()) { e.error("can only get the location of a symbol, not `%s`", arg0.toChars()); return ErrorExp.get(); } const fd = s.isFuncDeclaration(); // FIXME:td.overnext is always set, even when using an index on it //const td = s.isTemplateDeclaration(); if ((fd && fd.overnext) /*|| (td && td.overnext)*/) { e.error("cannot get location of an overload set, " ~ "use `__traits(getOverloads, ..., \"%s\"%s)[N]` " ~ "to get the Nth overload", arg0.toChars(), /*td ? ", true".ptr :*/ "".ptr); return ErrorExp.get(); } auto exps = new Expressions(3); (*exps)[0] = new StringExp(e.loc, s.loc.filename.toDString()); (*exps)[1] = new IntegerExp(e.loc, s.loc.linnum,Type.tint32); (*exps)[2] = new IntegerExp(e.loc, s.loc.charnum,Type.tint32); auto tup = new TupleExp(e.loc, exps); return tup.expressionSemantic(sc); } if (e.ident == Id.getCppNamespaces) { auto o = (*e.args)[0]; auto s = getDsymbolWithoutExpCtx(o); auto exps = new Expressions(0); if (auto d = s.isDeclaration()) { if (d.inuse) { d.error("circular reference in `__traits(GetCppNamespaces,...)`"); return ErrorExp.get(); } d.inuse = 1; } /** Prepend the namespaces in the linked list `ns` to `es`. Returns: true if `ns` contains an `ErrorExp`. */ bool prependNamespaces(Expressions* es, CPPNamespaceDeclaration ns) { // Semantic processing will convert `extern(C++, "a", "b", "c")` // into `extern(C++, "a") extern(C++, "b") extern(C++, "c")`, // creating a linked list what `a`'s `cppnamespace` points to `b`, // and `b`'s points to `c`. Our entry point is `a`. for (; ns !is null; ns = ns.cppnamespace) { ns.dsymbolSemantic(sc); if (ns.exp.isErrorExp()) return true; auto se = ns.exp.toStringExp(); // extern(C++, (emptyTuple)) // struct D {} // will produce a blank ident if (!se.len) continue; es.insert(0, se); } return false; } for (auto p = s; !p.isModule(); p = p.toParent()) { p.dsymbolSemantic(sc); auto pp = p.toParent(); if (pp.isTemplateInstance()) { if (!p.cppnamespace) continue; //if (!p.toParent().cppnamespace) // continue; auto inner = new Expressions(0); auto outer = new Expressions(0); if (prependNamespaces(inner, p.cppnamespace)) return ErrorExp.get(); if (prependNamespaces(outer, pp.cppnamespace)) return ErrorExp.get(); size_t i = 0; while(i < outer.dim && ((*inner)[i]) == (*outer)[i]) i++; foreach_reverse (ns; (*inner)[][i .. $]) exps.insert(0, ns); continue; } if (p.isNspace()) exps.insert(0, new StringExp(p.loc, p.ident.toString())); if (prependNamespaces(exps, p.cppnamespace)) return ErrorExp.get(); } if (auto d = s.isDeclaration()) d.inuse = 0; auto tup = new TupleExp(e.loc, exps); return tup.expressionSemantic(sc); } static const(char)[] trait_search_fp(const(char)[] seed, out int cost) { //printf("trait_search_fp('%s')\n", seed); if (!seed.length) return null; cost = 0; // all the same cost const sv = traitsStringTable.lookup(seed); return sv ? sv.toString() : null; } if (auto sub = speller!trait_search_fp(e.ident.toString())) e.error("unrecognized trait `%s`, did you mean `%.*s`?", e.ident.toChars(), cast(int) sub.length, sub.ptr); else e.error("unrecognized trait `%s`", e.ident.toChars()); return ErrorExp.get(); } /// compare arguments of __traits(isSame) private bool isSame(RootObject o1, RootObject o2, Scope* sc) { static FuncLiteralDeclaration isLambda(RootObject oarg) { if (auto t = isDsymbol(oarg)) { if (auto td = t.isTemplateDeclaration()) { if (td.members && td.members.dim == 1) { if (auto fd = (*td.members)[0].isFuncLiteralDeclaration()) return fd; } } } else if (auto ea = isExpression(oarg)) { if (ea.op == TOK.function_) { if (auto fe = cast(FuncExp)ea) return fe.fd; } } return null; } auto l1 = isLambda(o1); auto l2 = isLambda(o2); if (l1 && l2) { import dmd.lambdacomp : isSameFuncLiteral; if (isSameFuncLiteral(l1, l2, sc)) return true; } // issue 12001, allow isSame, <BasicType>, <BasicType> Type t1 = isType(o1); Type t2 = isType(o2); if (t1 && t2 && t1.equals(t2)) return true; auto s1 = getDsymbol(o1); auto s2 = getDsymbol(o2); //printf("isSame: %s, %s\n", o1.toChars(), o2.toChars()); version (none) { printf("o1: %p\n", o1); printf("o2: %p\n", o2); if (!s1) { if (auto ea = isExpression(o1)) printf("%s\n", ea.toChars()); if (auto ta = isType(o1)) printf("%s\n", ta.toChars()); return false; } else printf("%s %s\n", s1.kind(), s1.toChars()); } if (!s1 && !s2) { auto ea1 = isExpression(o1); auto ea2 = isExpression(o2); if (ea1 && ea2) { if (ea1.equals(ea2)) return true; } } if (!s1 || !s2) return false; s1 = s1.toAlias(); s2 = s2.toAlias(); if (auto fa1 = s1.isFuncAliasDeclaration()) s1 = fa1.toAliasFunc(); if (auto fa2 = s2.isFuncAliasDeclaration()) s2 = fa2.toAliasFunc(); // https://issues.dlang.org/show_bug.cgi?id=11259 // compare import symbol to a package symbol static bool cmp(Dsymbol s1, Dsymbol s2) { auto imp = s1.isImport(); return imp && imp.pkg && imp.pkg == s2.isPackage(); } if (cmp(s1,s2) || cmp(s2,s1)) return true; if (s1 == s2) return true; // https://issues.dlang.org/show_bug.cgi?id=18771 // OverloadSets are equal if they contain the same functions auto overSet1 = s1.isOverloadSet(); if (!overSet1) return false; auto overSet2 = s2.isOverloadSet(); if (!overSet2) return false; if (overSet1.a.dim != overSet2.a.dim) return false; // OverloadSets contain array of Dsymbols => O(n*n) // to compare for equality as the order of overloads // might not be the same Lnext: foreach(overload1; overSet1.a) { foreach(overload2; overSet2.a) { if (overload1 == overload2) continue Lnext; } return false; } return true; }
D
instance Info_Tpl_13_EXIT(C_Info) { nr = 999; condition = Info_Tpl_13_EXIT_Condition; information = Info_Tpl_13_EXIT_Info; permanent = 1; description = "KONEC"; }; func int Info_Tpl_13_EXIT_Condition() { return 1; }; func void Info_Tpl_13_EXIT_Info() { AI_StopProcessInfos(self); }; instance Info_Tpl_13_EinerVonEuchWerden(C_Info) { nr = 4; condition = Info_Tpl_13_EinerVonEuchWerden_Condition; information = Info_Tpl_13_EinerVonEuchWerden_Info; permanent = 1; description = "Chci se stát templářem jako ty."; }; func int Info_Tpl_13_EinerVonEuchWerden_Condition() { if((Npc_GetTrueGuild(other) != GIL_TPL) && !C_NpcBelongsToNewCamp(other) && !C_NpcBelongsToOldCamp(other)) { return TRUE; }; }; func void Info_Tpl_13_EinerVonEuchWerden_Info() { AI_Output(other,self,"Info_Tpl_13_EinerVonEuchWerden_15_00"); //Chci se stát templářem jako ty. AI_Output(self,other,"Info_Tpl_13_EinerVonEuchWerden_13_01"); //Máš ponětí, co všechno jsem musel vytrpět, abych směl sloužit mezi Spáčovými vyvolenými jako templářská stráž? AI_Output(self,other,"Info_Tpl_13_EinerVonEuchWerden_13_02"); //Nemysli si, že se tu budeš jen tak poflakovat a požívat té největší pocty. AI_Output(self,other,"Info_Tpl_13_EinerVonEuchWerden_13_03"); //Ještě než se rozhodneš, měl by ses trochu seznámit se Spáčovým učením. AI_Output(self,other,"Info_Tpl_13_EinerVonEuchWerden_13_04"); //To zabere nějaký čas a mělo by to do tebe načerpat nějaké vědomosti. }; instance Info_Tpl_13_WichtigePersonen(C_Info) { nr = 3; condition = Info_Tpl_13_WichtigePersonen_Condition; information = Info_Tpl_13_WichtigePersonen_Info; permanent = 1; description = "Kdo to tady vede?"; }; func int Info_Tpl_13_WichtigePersonen_Condition() { return 1; }; func void Info_Tpl_13_WichtigePersonen_Info() { AI_Output(other,self,"Info_Tpl_13_WichtigePersonen_15_00"); //Kdo tady má velení? AI_Output(self,other,"Info_Tpl_13_WichtigePersonen_13_01"); //Naši Guru jsou Spáčovi vyvolení! Spáč předurčuje náš osud a Guru jej věští. }; instance Info_Tpl_13_DasLager(C_Info) { nr = 2; condition = Info_Tpl_13_DasLager_Condition; information = Info_Tpl_13_DasLager_Info; permanent = 1; description = "Chtěl bych se podívat do Spáčova chrámu..."; }; func int Info_Tpl_13_DasLager_Condition() { if(Kapitel <= 1) { return 1; }; }; func void Info_Tpl_13_DasLager_Info() { AI_Output(other,self,"Info_Tpl_13_DasLager_15_00"); //Chtěl bych se podívat do Spáčova chrámu... AI_Output(self,other,"Info_Tpl_13_DasLager_13_01"); //To je nemyslitelné! Nevěrec v Chrámu! Dokud se nezavážeš Spáčovi sloužit, nebudeš smět do Chrámu vstoupit! }; instance Info_Tpl_13_DieLage(C_Info) { nr = 1; condition = Info_Tpl_13_DieLage_Condition; information = Info_Tpl_13_DieLage_Info; permanent = 1; description = "Jak to jde?"; }; func int Info_Tpl_13_DieLage_Condition() { if(!C_NpcBelongsToPsiCamp(other)) { return 1; }; }; func void Info_Tpl_13_DieLage_Info() { AI_Output(other,self,"Info_Tpl_13_DieLage_15_00"); //Jak to jde? AI_Output(self,other,"Info_Tpl_13_DieLage_13_01"); //Od té doby, co jsem se stal jedním z vyvolených ochránců víry, cítím se lépe než kdykoliv předtím. AI_Output(other,self,"Info_Tpl_13_DieLage_15_02"); //To zní honosně... AI_Output(self,other,"Info_Tpl_13_DieLage_13_03"); //Jsi nevěrec. Nerozumíš tomu. }; func void B_AssignAmbientInfos_Tpl_13(var C_Npc slf) { B_AssignFindNpc_ST(slf); Info_Tpl_13_EXIT.npc = Hlp_GetInstanceID(slf); Info_Tpl_13_EinerVonEuchWerden.npc = Hlp_GetInstanceID(slf); Info_Tpl_13_WichtigePersonen.npc = Hlp_GetInstanceID(slf); Info_Tpl_13_DasLager.npc = Hlp_GetInstanceID(slf); Info_Tpl_13_DieLage.npc = Hlp_GetInstanceID(slf); };
D
/* * All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. * */ module hunt.quartz.dbstore.StdSqlConstants; import hunt.quartz.dbstore.TableConstants; import hunt.quartz.dbstore.model; import hunt.quartz.Trigger; import std.conv; /** * <p> * This interface extends <code>{@link * hunt.quartz.impl.jdbcjobstore.Constants}</code> * to include the query string constants in use by the <code>{@link * hunt.quartz.impl.jdbcjobstore.StdJDBCDelegate}</code> * class. * </p> * * @author <a href="mailto:jeff@binaryfeed.org">Jeffrey Wescott</a> */ struct StdSqlConstants { /* * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * Constants. * * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ // table prefix substitution string enum string TABLE_PREFIX_SUBST = "{0}"; // table prefix substitution string enum string SCHED_NAME_SUBST = "%s"; // QUERIES enum string UPDATE_TRIGGER_STATES_FROM_OTHER_STATES = "UPDATE " ~ ModelConstants.MODEL_TRIGGERS ~ " t SET t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ? WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND (t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ? OR t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ?)"; enum string SELECT_MISFIRED_TRIGGERS = "SELECT * FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND NOT (t." ~ ModelConstants.FIELD_MISFIRE_INSTRUCTION ~ " = " ~ to!string(Trigger.MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY) ~ ") AND t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ " < ? " ~ "ORDER BY t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ " ASC, t." ~ ModelConstants.FIELD_PRIORITY ~ " DESC"; enum string SELECT_TRIGGERS_IN_STATE = "SELECT t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ?"; enum string SELECT_MISFIRED_TRIGGERS_IN_STATE = "SELECT t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND NOT (t." ~ ModelConstants.FIELD_MISFIRE_INSTRUCTION ~ " = " ~ to!string(Trigger.MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY) ~ ") AND t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ " < ? AND t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ? " ~ "ORDER BY t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ " ASC, t." ~ ModelConstants.FIELD_PRIORITY ~ " DESC"; enum string COUNT_MISFIRED_TRIGGERS_IN_STATE = "SELECT COUNT(t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ") FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND NOT (t." ~ ModelConstants.FIELD_MISFIRE_INSTRUCTION ~ " = " ~ to!string(Trigger.MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY) ~ ") AND t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ " < ? " ~ "AND t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ?"; enum string SELECT_HAS_MISFIRED_TRIGGERS_IN_STATE = "SELECT t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND NOT (t." ~ ModelConstants.FIELD_MISFIRE_INSTRUCTION ~ " = " ~ to!string(Trigger.MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY) ~ ") AND t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ " < ? " ~ "AND t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ? " ~ "ORDER BY t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ " ASC, t." ~ ModelConstants.FIELD_PRIORITY ~ " DESC"; enum string SELECT_MISFIRED_TRIGGERS_IN_GROUP_IN_STATE = "SELECT t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND NOT (t." ~ ModelConstants.FIELD_MISFIRE_INSTRUCTION ~ " = " ~ to!string(Trigger.MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY) ~ ") AND t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ " < ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ? " ~ "ORDER BY t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ " ASC, t." ~ ModelConstants.FIELD_PRIORITY ~ " DESC"; enum string DELETE_FIRED_TRIGGERS = "DELETE FROM " ~ ModelConstants.MODEL_FIRED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string INSERT_JOB_DETAIL = "INSERT INTO " ~ ModelConstants.MODEL_JOB_DETAILS ~ " t (t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ ", t." ~ ModelConstants.FIELD_JOB_NAME ~ ", t." ~ ModelConstants.FIELD_JOB_GROUP ~ ", t." ~ ModelConstants.FIELD_DESCRIPTION ~ ", t." ~ ModelConstants.FIELD_JOB_CLASS ~ ", t." ~ ModelConstants.FIELD_IS_DURABLE ~ ", t." ~ ModelConstants.FIELD_IS_NONCONCURRENT ~ ", t." ~ ModelConstants.FIELD_IS_UPDATE_DATA ~ ", t." ~ ModelConstants.FIELD_REQUESTS_RECOVERY ~ ", t." ~ ModelConstants.FIELD_JOB_DATAMAP ~ ") " ~ " VALUES(" ~ SCHED_NAME_SUBST ~ ", ?, ?, ?, ?, ?, ?, ?, ?, ?)"; enum string UPDATE_JOB_DETAIL = "UPDATE " ~ ModelConstants.MODEL_JOB_DETAILS ~ " t SET t." ~ ModelConstants.FIELD_DESCRIPTION ~ " = ?, t." ~ ModelConstants.FIELD_JOB_CLASS ~ " = ?, t." ~ ModelConstants.FIELD_IS_DURABLE ~ " = ?, t." ~ ModelConstants.FIELD_IS_NONCONCURRENT ~ " = ?, t." ~ ModelConstants.FIELD_IS_UPDATE_DATA ~ " = ?, t." ~ ModelConstants.FIELD_REQUESTS_RECOVERY ~ " = ?, t." ~ ModelConstants.FIELD_JOB_DATAMAP ~ " = ? " ~ " WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_JOB_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ?"; enum string SELECT_TRIGGERS_FOR_JOB = "SELECT t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_JOB_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ?"; enum string SELECT_TRIGGERS_FOR_CALENDAR = "SELECT t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_CALENDAR_NAME ~ " = ?"; enum string DELETE_JOB_DETAIL = "DELETE FROM " ~ ModelConstants.MODEL_JOB_DETAILS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_JOB_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ?"; enum string SELECT_JOB_NONCONCURRENT = "SELECT t." ~ ModelConstants.FIELD_IS_NONCONCURRENT ~ " FROM " ~ ModelConstants.MODEL_JOB_DETAILS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_JOB_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ?"; enum string SELECT_JOB_EXISTENCE = "SELECT t." ~ ModelConstants.FIELD_JOB_NAME ~ " FROM " ~ ModelConstants.MODEL_JOB_DETAILS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_JOB_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ?"; enum string UPDATE_JOB_DATA = "UPDATE " ~ ModelConstants.MODEL_JOB_DETAILS ~ " t SET t." ~ ModelConstants.FIELD_JOB_DATAMAP ~ " = ? " ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_JOB_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ?"; enum string SELECT_JOB_DETAIL = "SELECT *" ~ " FROM " ~ ModelConstants.MODEL_JOB_DETAILS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_JOB_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ?"; enum string SELECT_NUM_JOBS = "SELECT COUNT(t." ~ ModelConstants.FIELD_JOB_NAME ~ ") " ~ " FROM " ~ ModelConstants.MODEL_JOB_DETAILS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string SELECT_JOB_GROUPS = "SELECT DISTINCT(t." ~ ModelConstants.FIELD_JOB_GROUP ~ ") FROM " ~ ModelConstants.MODEL_JOB_DETAILS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string SELECT_JOBS_IN_GROUP_LIKE = "SELECT t." ~ ModelConstants.FIELD_JOB_NAME ~ ", t." ~ ModelConstants.FIELD_JOB_GROUP ~ " FROM " ~ ModelConstants.MODEL_JOB_DETAILS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_JOB_GROUP ~ " LIKE ?"; enum string SELECT_JOBS_IN_GROUP = "SELECT t." ~ ModelConstants.FIELD_JOB_NAME ~ ", t." ~ ModelConstants.FIELD_JOB_GROUP ~ " FROM " ~ ModelConstants.MODEL_JOB_DETAILS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ?"; enum string INSERT_TRIGGER = "INSERT INTO " ~ ModelConstants.MODEL_TRIGGERS ~ " t (t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ ", t." ~ ModelConstants.FIELD_JOB_NAME ~ ", t." ~ ModelConstants.FIELD_JOB_GROUP ~ ", t." ~ ModelConstants.FIELD_DESCRIPTION ~ ", t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ ", t." ~ ModelConstants.FIELD_PREV_FIRE_TIME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ ", t." ~ ModelConstants.FIELD_TRIGGER_TYPE ~ ", t." ~ ModelConstants.FIELD_START_TIME ~ ", t." ~ ModelConstants.FIELD_END_TIME ~ ", t." ~ ModelConstants.FIELD_CALENDAR_NAME ~ ", t." ~ ModelConstants.FIELD_MISFIRE_INSTRUCTION ~ ", t." ~ ModelConstants.FIELD_JOB_DATAMAP ~ ", t." ~ ModelConstants.FIELD_PRIORITY ~ ") " ~ " VALUES(" ~ SCHED_NAME_SUBST ~ ", ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; enum string INSERT_SIMPLE_TRIGGER = "INSERT INTO " ~ ModelConstants.MODEL_SIMPLE_TRIGGERS ~ " t ( t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ ", t." ~ ModelConstants.FIELD_REPEAT_COUNT ~ ", t." ~ ModelConstants.FIELD_REPEAT_INTERVAL ~ ", t." ~ ModelConstants.FIELD_TIMES_TRIGGERED ~ ") " ~ " VALUES(" ~ SCHED_NAME_SUBST ~ ", ?, ?, ?, ?, ?)"; enum string INSERT_CRON_TRIGGER = "INSERT INTO " ~ ModelConstants.MODEL_CRON_TRIGGERS ~ " t ( t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ ", t." ~ ModelConstants.FIELD_CRON_EXPRESSION ~ ", t." ~ ModelConstants.FIELD_TIME_ZONE_ID ~ ") " ~ " VALUES(" ~ SCHED_NAME_SUBST ~ ", ?, ?, ?, ?)"; enum string INSERT_BLOB_TRIGGER = "INSERT INTO " ~ ModelConstants.MODEL_BLOB_TRIGGERS ~ " t (t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ ", t." ~ ModelConstants.FIELD_BLOB ~ ") " ~ " VALUES(" ~ SCHED_NAME_SUBST ~ ", ?, ?, ?)"; enum string UPDATE_TRIGGER_SKIP_DATA = "UPDATE " ~ ModelConstants.MODEL_TRIGGERS ~ " t SET t." ~ ModelConstants.FIELD_JOB_NAME ~ " = ?, t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ?, t." ~ ModelConstants.FIELD_DESCRIPTION ~ " = ?, t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ " = ?, t." ~ ModelConstants.FIELD_PREV_FIRE_TIME ~ " = ?, t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ?, t." ~ ModelConstants.FIELD_TRIGGER_TYPE ~ " = ?, t." ~ ModelConstants.FIELD_START_TIME ~ " = ?, t." ~ ModelConstants.FIELD_END_TIME ~ " = ?, t." ~ ModelConstants.FIELD_CALENDAR_NAME ~ " = ?, t." ~ ModelConstants.FIELD_MISFIRE_INSTRUCTION ~ " = ?, t." ~ ModelConstants.FIELD_PRIORITY ~ " = ? WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string UPDATE_TRIGGER = "UPDATE " ~ ModelConstants.MODEL_TRIGGERS ~ " t SET t." ~ ModelConstants.FIELD_JOB_NAME ~ " = ?, t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ?, t." ~ ModelConstants.FIELD_DESCRIPTION ~ " = ?, t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ " = ?, t." ~ ModelConstants.FIELD_PREV_FIRE_TIME ~ " = ?, t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ?, t." ~ ModelConstants.FIELD_TRIGGER_TYPE ~ " = ?, t." ~ ModelConstants.FIELD_START_TIME ~ " = ?, t." ~ ModelConstants.FIELD_END_TIME ~ " = ?, t." ~ ModelConstants.FIELD_CALENDAR_NAME ~ " = ?, t." ~ ModelConstants.FIELD_MISFIRE_INSTRUCTION ~ " = ?, t." ~ ModelConstants.FIELD_PRIORITY ~ " = ?, t." ~ ModelConstants.FIELD_JOB_DATAMAP ~ " = ? WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string UPDATE_SIMPLE_TRIGGER = "UPDATE " ~ ModelConstants.MODEL_SIMPLE_TRIGGERS ~ " t SET t." ~ ModelConstants.FIELD_REPEAT_COUNT ~ " = ?, t." ~ ModelConstants.FIELD_REPEAT_INTERVAL ~ " = ?, t." ~ ModelConstants.FIELD_TIMES_TRIGGERED ~ " = ? WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string UPDATE_CRON_TRIGGER = "UPDATE " ~ ModelConstants.MODEL_CRON_TRIGGERS ~ " t SET t." ~ ModelConstants.FIELD_CRON_EXPRESSION ~ " = ?, t." ~ ModelConstants.FIELD_TIME_ZONE_ID ~ " = ? WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string UPDATE_BLOB_TRIGGER = "UPDATE " ~ ModelConstants.MODEL_BLOB_TRIGGERS ~ " t SET t." ~ ModelConstants.FIELD_BLOB ~ " = ? WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string SELECT_TRIGGER_EXISTENCE = "SELECT t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string UPDATE_TRIGGER_STATE = "UPDATE " ~ ModelConstants.MODEL_TRIGGERS ~ " t SET t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ?" ~ " WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string UPDATE_TRIGGER_STATE_FROM_STATE = "UPDATE " ~ ModelConstants.MODEL_TRIGGERS ~ " t SET t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ?" ~ " WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ?"; enum string UPDATE_TRIGGER_GROUP_STATE_FROM_STATE = "UPDATE " ~ ModelConstants.MODEL_TRIGGERS ~ " t SET t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ?" ~ " WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " LIKE ? AND t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ?"; enum string UPDATE_TRIGGER_STATE_FROM_STATES = "UPDATE " ~ ModelConstants.MODEL_TRIGGERS ~ " t SET t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ?" ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ? AND (t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ? OR t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ? OR t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ?)"; enum string UPDATE_TRIGGER_GROUP_STATE_FROM_STATES = "UPDATE " ~ ModelConstants.MODEL_TRIGGERS ~ " t SET t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ? WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " LIKE ? AND ( t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ? OR t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ? OR t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ?)"; enum string UPDATE_JOB_TRIGGER_STATES = "UPDATE " ~ ModelConstants.MODEL_TRIGGERS ~ " t SET t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ? WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_JOB_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ?"; enum string UPDATE_JOB_TRIGGER_STATES_FROM_OTHER_STATE = "UPDATE " ~ ModelConstants.MODEL_TRIGGERS ~ " t SET t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ? WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_JOB_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ?"; enum string DELETE_SIMPLE_TRIGGER = "DELETE FROM " ~ ModelConstants.MODEL_SIMPLE_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string DELETE_CRON_TRIGGER = "DELETE FROM " ~ ModelConstants.MODEL_CRON_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string DELETE_BLOB_TRIGGER = "DELETE FROM " ~ ModelConstants.MODEL_BLOB_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string DELETE_TRIGGER = "DELETE FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string SELECT_NUM_TRIGGERS_FOR_JOB = "SELECT COUNT(t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ") FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_JOB_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ?"; enum string SELECT_JOB_FOR_TRIGGER = "SELECT J." ~ ModelConstants.FIELD_JOB_NAME ~ ", J." ~ ModelConstants.FIELD_JOB_GROUP ~ ", J." ~ ModelConstants.FIELD_IS_DURABLE ~ ", J." ~ ModelConstants.FIELD_JOB_CLASS ~ ", J." ~ ModelConstants.FIELD_REQUESTS_RECOVERY ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " T, " ~ ModelConstants.MODEL_JOB_DETAILS ~ " J WHERE T." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND J." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND T." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND T." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ? AND T." ~ ModelConstants.FIELD_JOB_NAME ~ " = J." ~ ModelConstants.FIELD_JOB_NAME ~ " AND T." ~ ModelConstants.FIELD_JOB_GROUP ~ " = J." ~ ModelConstants.FIELD_JOB_GROUP; enum string SELECT_TRIGGER = "SELECT * FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string SELECT_TRIGGER_DATA = "SELECT t." ~ ModelConstants.FIELD_JOB_DATAMAP ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string SELECT_TRIGGER_STATE = "SELECT t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string SELECT_TRIGGER_STATUS = "SELECT t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ ", t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ ", t." ~ ModelConstants.FIELD_JOB_NAME ~ ", t." ~ ModelConstants.FIELD_JOB_GROUP ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string SELECT_SIMPLE_TRIGGER = "SELECT *" ~ " FROM " ~ ModelConstants.MODEL_SIMPLE_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string SELECT_CRON_TRIGGER = "SELECT *" ~ " FROM " ~ ModelConstants.MODEL_CRON_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string SELECT_BLOB_TRIGGER = "SELECT *" ~ " FROM " ~ ModelConstants.MODEL_BLOB_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string SELECT_NUM_TRIGGERS = "SELECT COUNT(t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ") " ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string SELECT_NUM_TRIGGERS_IN_GROUP = "SELECT COUNT(t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ") " ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string SELECT_TRIGGER_GROUPS = "SELECT DISTINCT(t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ ") FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string SELECT_TRIGGER_GROUPS_FILTERED = "SELECT DISTINCT(t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ ") FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " LIKE ?"; enum string SELECT_TRIGGERS_IN_GROUP_LIKE = "SELECT t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " LIKE ?"; enum string SELECT_TRIGGERS_IN_GROUP = "SELECT t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string INSERT_CALENDAR = "INSERT INTO " ~ ModelConstants.MODEL_CALENDARS ~ " t ( t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ ", t." ~ ModelConstants.FIELD_CALENDAR_NAME ~ ", t." ~ ModelConstants.FIELD_CALENDAR ~ ") " ~ " VALUES(" ~ SCHED_NAME_SUBST ~ ", ?, ?)"; enum string UPDATE_CALENDAR = "UPDATE " ~ ModelConstants.MODEL_CALENDARS ~ " t SET t." ~ ModelConstants.FIELD_CALENDAR ~ " = ? " ~ " WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_CALENDAR_NAME ~ " = ?"; enum string SELECT_CALENDAR_EXISTENCE = "SELECT t." ~ ModelConstants.FIELD_CALENDAR_NAME ~ " FROM " ~ ModelConstants.MODEL_CALENDARS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_CALENDAR_NAME ~ " = ?"; enum string SELECT_CALENDAR = "SELECT *" ~ " FROM " ~ ModelConstants.MODEL_CALENDARS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_CALENDAR_NAME ~ " = ?"; enum string SELECT_REFERENCED_CALENDAR = "SELECT t." ~ ModelConstants.FIELD_CALENDAR_NAME ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_CALENDAR_NAME ~ " = ?"; enum string DELETE_CALENDAR = "DELETE FROM " ~ ModelConstants.MODEL_CALENDARS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_CALENDAR_NAME ~ " = ?"; enum string SELECT_NUM_CALENDARS = "SELECT COUNT(t." ~ ModelConstants.FIELD_CALENDAR_NAME ~ ") " ~ " FROM " ~ ModelConstants.MODEL_CALENDARS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string SELECT_CALENDARS = "SELECT t." ~ ModelConstants.FIELD_CALENDAR_NAME ~ " FROM " ~ ModelConstants.MODEL_CALENDARS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string SELECT_NEXT_FIRE_TIME = "SELECT MIN(t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ ") AS " ~ TableConstants.ALIAS_COL_NEXT_FIRE_TIME ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ? AND t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ " >= 0"; enum string SELECT_TRIGGER_FOR_FIRE_TIME = "SELECT t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ? AND t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ " = ?"; enum string SELECT_NEXT_TRIGGER_TO_ACQUIRE = "SELECT t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ ", t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ ", t." ~ ModelConstants.FIELD_PRIORITY ~ " FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_STATE ~ " = ? AND t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ " <= ? " ~ "AND (t." ~ ModelConstants.FIELD_MISFIRE_INSTRUCTION ~ " = -1 OR (t." ~ ModelConstants.FIELD_MISFIRE_INSTRUCTION ~ " != -1 AND t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ " >= ?)) " ~ "ORDER BY t." ~ ModelConstants.FIELD_NEXT_FIRE_TIME ~ " ASC, t." ~ ModelConstants.FIELD_PRIORITY ~ " DESC"; enum string INSERT_FIRED_TRIGGER = "INSERT INTO " ~ ModelConstants.MODEL_FIRED_TRIGGERS ~ " t (t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ ", t." ~ ModelConstants.FIELD_ENTRY_ID ~ ", t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ ", t." ~ ModelConstants.FIELD_INSTANCE_NAME ~ ", t." ~ ModelConstants.FIELD_FIRED_TIME ~ ", t." ~ ModelConstants.FIELD_SCHED_TIME ~ ", t." ~ ModelConstants.FIELD_ENTRY_STATE ~ ", t." ~ ModelConstants.FIELD_JOB_NAME ~ ", t." ~ ModelConstants.FIELD_JOB_GROUP ~ ", t." ~ ModelConstants.FIELD_IS_NONCONCURRENT ~ ", t." ~ ModelConstants.FIELD_REQUESTS_RECOVERY ~ ", t." ~ ModelConstants.FIELD_PRIORITY ~ ") VALUES(" ~ SCHED_NAME_SUBST ~ ", ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; enum string UPDATE_FIRED_TRIGGER = "UPDATE " ~ ModelConstants.MODEL_FIRED_TRIGGERS ~ " t SET t." ~ ModelConstants.FIELD_INSTANCE_NAME ~ " = ?, t." ~ ModelConstants.FIELD_FIRED_TIME ~ " = ?, t." ~ ModelConstants.FIELD_SCHED_TIME ~ " = ?, t." ~ ModelConstants.FIELD_ENTRY_STATE ~ " = ?, t." ~ ModelConstants.FIELD_JOB_NAME ~ " = ?, t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ?, t." ~ ModelConstants.FIELD_IS_NONCONCURRENT ~ " = ?, t." ~ ModelConstants.FIELD_REQUESTS_RECOVERY ~ " = ? WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_ENTRY_ID ~ " = ?"; enum string SELECT_INSTANCES_FIRED_TRIGGERS = "SELECT * FROM " ~ ModelConstants.MODEL_FIRED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_INSTANCE_NAME ~ " = ?"; enum string SELECT_INSTANCES_RECOVERABLE_FIRED_TRIGGERS = "SELECT * FROM " ~ ModelConstants.MODEL_FIRED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_INSTANCE_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_REQUESTS_RECOVERY ~ " = ?"; enum string SELECT_JOB_EXECUTION_COUNT = "SELECT COUNT(t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ ") FROM " ~ ModelConstants.MODEL_FIRED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_JOB_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ?"; enum string SELECT_FIRED_TRIGGERS = "SELECT * FROM " ~ ModelConstants.MODEL_FIRED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string SELECT_FIRED_TRIGGER = "SELECT * FROM " ~ ModelConstants.MODEL_FIRED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string SELECT_FIRED_TRIGGER_GROUP = "SELECT * FROM " ~ ModelConstants.MODEL_FIRED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string SELECT_FIRED_TRIGGERS_OF_JOB = "SELECT * FROM " ~ ModelConstants.MODEL_FIRED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_JOB_NAME ~ " = ? AND t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ?"; enum string SELECT_FIRED_TRIGGERS_OF_JOB_GROUP = "SELECT * FROM " ~ ModelConstants.MODEL_FIRED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_JOB_GROUP ~ " = ?"; enum string DELETE_FIRED_TRIGGER = "DELETE FROM " ~ ModelConstants.MODEL_FIRED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_ENTRY_ID ~ " = ?"; enum string DELETE_INSTANCES_FIRED_TRIGGERS = "DELETE FROM " ~ ModelConstants.MODEL_FIRED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_INSTANCE_NAME ~ " = ?"; enum string DELETE_NO_RECOVERY_FIRED_TRIGGERS = "DELETE FROM " ~ ModelConstants.MODEL_FIRED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_INSTANCE_NAME ~ " = ?" ~ ModelConstants.FIELD_REQUESTS_RECOVERY ~ " = ?"; enum string DELETE_ALL_SIMPLE_TRIGGERS = "DELETE FROM " ~ ModelConstants.MODEL_SIMPLE_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string DELETE_ALL_SIMPROP_TRIGGERS = "DELETE FROM " ~ ModelConstants.MODEL_SIMPLE_PROPERTIES_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string DELETE_ALL_CRON_TRIGGERS = "DELETE FROM " ~ ModelConstants.MODEL_CRON_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string DELETE_ALL_BLOB_TRIGGERS = "DELETE FROM " ~ ModelConstants.MODEL_BLOB_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string DELETE_ALL_TRIGGERS = "DELETE FROM " ~ ModelConstants.MODEL_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string DELETE_ALL_JOB_DETAILS = "DELETE FROM " ~ ModelConstants.MODEL_JOB_DETAILS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string DELETE_ALL_CALENDARS = "DELETE FROM " ~ ModelConstants.MODEL_CALENDARS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string DELETE_ALL_PAUSED_TRIGGER_GRPS = "DELETE FROM " ~ ModelConstants.MODEL_PAUSED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string SELECT_FIRED_TRIGGER_INSTANCE_NAMES = "SELECT DISTINCT t." ~ ModelConstants.FIELD_INSTANCE_NAME ~ " FROM " ~ ModelConstants.MODEL_FIRED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string INSERT_SCHEDULER_STATE = "INSERT INTO " ~ ModelConstants.MODEL_SCHEDULER_STATE ~ " t ( t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ ", t." ~ ModelConstants.FIELD_INSTANCE_NAME ~ ", t." ~ ModelConstants.FIELD_LAST_CHECKIN_TIME ~ ", t." ~ ModelConstants.FIELD_CHECKIN_INTERVAL ~ ") VALUES(" ~ SCHED_NAME_SUBST ~ ", ?, ?, ?)"; enum string SELECT_SCHEDULER_STATE = "SELECT * FROM " ~ ModelConstants.MODEL_SCHEDULER_STATE ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_INSTANCE_NAME ~ " = ?"; enum string SELECT_SCHEDULER_STATES = "SELECT * FROM " ~ ModelConstants.MODEL_SCHEDULER_STATE ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string DELETE_SCHEDULER_STATE = "DELETE FROM " ~ ModelConstants.MODEL_SCHEDULER_STATE ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_INSTANCE_NAME ~ " = ?"; enum string UPDATE_SCHEDULER_STATE = "UPDATE " ~ ModelConstants.MODEL_SCHEDULER_STATE ~ " t SET t." ~ ModelConstants.FIELD_LAST_CHECKIN_TIME ~ " = ? WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_INSTANCE_NAME ~ " = ?"; enum string INSERT_PAUSED_TRIGGER_GROUP = "INSERT INTO " ~ ModelConstants.MODEL_PAUSED_TRIGGERS ~ " t ( t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ ", t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ ") VALUES(" ~ SCHED_NAME_SUBST ~ ", ?)"; enum string SELECT_PAUSED_TRIGGER_GROUP = "SELECT t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " FROM " ~ ModelConstants.MODEL_PAUSED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " = ?"; enum string SELECT_PAUSED_TRIGGER_GROUPS = "SELECT t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " FROM " ~ ModelConstants.MODEL_PAUSED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; enum string DELETE_PAUSED_TRIGGER_GROUP = "DELETE FROM " ~ ModelConstants.MODEL_PAUSED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST ~ " AND t." ~ ModelConstants.FIELD_TRIGGER_GROUP ~ " LIKE ?"; enum string DELETE_PAUSED_TRIGGER_GROUPS = "DELETE FROM " ~ ModelConstants.MODEL_PAUSED_TRIGGERS ~ " t WHERE t." ~ ModelConstants.FIELD_SCHEDULER_NAME ~ " = " ~ SCHED_NAME_SUBST; // CREATE TABLE qrtz_scheduler_state(INSTANCE_NAME VARCHAR2(80) NOT NULL, // LAST_CHECKIN_TIME NUMBER(13) NOT NULL, CHECKIN_INTERVAL NUMBER(13) NOT // NULL, PRIMARY KEY (INSTANCE_NAME)); } // EOF
D
import std.stdio, std.string, std.array, std.algorithm, std.conv, std.typecons, std.numeric; alias M = Tuple!(int, "a", int, "b", int, "c"); void main() { immutable nm = readln.chomp.split(" ").map!(to!int).array; immutable n = nm[0]; immutable ma = nm[1]; immutable mb = nm[2]; auto meds = new M[n]; foreach(i, ref m; meds) { auto abc = readln.chomp.split(" ").map!(to!int).array; m = M(abc[0], abc[1], abc[2]); } meds.sort!((a, b) => a.c < b.c); auto carts = [M(0, 0, 0)]; auto min_c = int.max; foreach (med; meds) { carts = carts.map!((cart) { auto a = cart.a + med.a; auto b = cart.b + med.b; auto div = gcd(a, b); auto new_cart = cart; if (div) { new_cart.a = a / div; new_cart.b = b / div; } else { new_cart.a = a; new_cart.b = b; } new_cart.c += med.c; if (new_cart.a == ma && new_cart.b == mb && min_c > new_cart.c) min_c = new_cart.c; return [new_cart, cart]; }).join; if (min_c < int.max) break; } writeln(min_c == int.max ? -1 : min_c); }
D
/** * Copyright: Copyright (c) 2012 Jacob Carlborg. All rights reserved. * Authors: Jacob Carlborg * Version: Initial created: Jan 30, 2012 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) */ module dstep.translator.Type; import mambo.core.string; import mambo.core.io; import clang.c.Index; import clang.Type; import dstep.translator.IncludeHandler; import dstep.translator.Translator; import dstep.translator.Output; import std.conv; string translateType (Type type, bool rewriteIdToObjcObject = true, bool applyConst = true) in { assert(type.isValid); } body { string result; with (CXTypeKind) { if (type.kind == CXType_BlockPointer || type.isFunctionPointerType) result = translateFunctionPointerType(type); else if (type.kind == CXType_ObjCObjectPointer && !type.isObjCBuiltinType) result = translateObjCObjectPointerType(type); else if (type.isWideCharType) result = "wchar"; else if (type.isObjCIdType) result = rewriteIdToObjcObject ? "ObjcObject" : "id"; else switch (type.kind) { case CXType_Pointer: return translatePointer(type, rewriteIdToObjcObject, applyConst); case CXType_Typedef: result = translateTypedef(type); break; case CXType_Record: case CXType_Enum: case CXType_ObjCInterface: result = type.spelling; if (result.isEmpty) result = getAnonymousName(type.declaration); handleInclude(type); break; case CXType_ConstantArray: case CXType_IncompleteArray: result = translateArray(type, rewriteIdToObjcObject); break; case CXType_Unexposed: result = translateUnexposed(type, rewriteIdToObjcObject); break; default: result = translateType(type.kind, rewriteIdToObjcObject); } } version (D1) { // ignore const } else { if (applyConst && type.isConst) result = "const " ~ result; } return result; } string translateSelector (string str, bool fullName = false, bool translateIdentifier = true) { if (fullName) str = str.replace(":", "_"); else { auto i = str.indexOf(":"); if (i > -1) str = str[0 .. i]; } return translateIdentifier ? .translateIdentifier(str) : str; } private: string translateTypedef (Type type) in { assert(type.kind == CXTypeKind.CXType_Typedef); } body { auto spelling = type.spelling; with (CXTypeKind) switch (spelling) { case "BOOL": return translateType(CXType_Bool); case "int64_t": return translateType(CXType_LongLong); case "int32_t": return translateType(CXType_Int); case "int16_t": return translateType(CXType_Short); case "int8_t": return "byte"; case "uint64_t": return translateType(CXType_ULongLong); case "uint32_t": return translateType(CXType_UInt); case "uint16_t": return translateType(CXType_UShort); case "uint8_t": return translateType(CXType_UChar); case "size_t": case "ptrdiff_t": case "sizediff_t": return spelling; case "wchar_t": auto kind = type.canonicalType.kind; if (kind == CXType_Int) return "dchar"; else if (kind == CXType_Short) return "wchar"; default: break; } handleInclude(type); return spelling; } string translateUnexposed (Type type, bool rewriteIdToObjcObject) in { assert(type.kind == CXTypeKind.CXType_Unexposed); } body { auto declaration = type.declaration; if (declaration.isValid) return translateType(declaration.type, rewriteIdToObjcObject); else return translateType(type.kind, rewriteIdToObjcObject); } string translateArray (Type type, bool rewriteIdToObjcObject) in { assert(type.kind == CXTypeKind.CXType_ConstantArray || type.kind == CXTypeKind.CXType_IncompleteArray); } body { auto array = type.array; auto elementType = translateType(array.elementType, rewriteIdToObjcObject); if (array.size >= 0) return elementType ~ '[' ~ array.size.toString ~ ']'; else // extern static arrays (which are normally present in bindings) // have same ABI as extern dynamic arrays, size is only checked // against declaration in header. As it is not possible in D // to define static array with ABI of dynamic one, only way is to // abandon the size information return elementType ~ "[]"; } string translatePointer (Type type, bool rewriteIdToObjcObject, bool applyConst) in { assert(type.kind == CXTypeKind.CXType_Pointer); } body { static bool valueTypeIsConst (Type type) { auto pointee = type.pointeeType; while (pointee.kind == CXTypeKind.CXType_Pointer) pointee = pointee.pointeeType; return pointee.isConst; } auto result = translateType(type.pointeeType, rewriteIdToObjcObject, false); version (D1) { result = result ~ '*'; } else { if (applyConst && valueTypeIsConst(type)) { if (type.isConst) result = "const " ~ result ~ '*'; else result = "const(" ~ result ~ ")*"; } else result = result ~ '*'; } return result; } string translateFunctionPointerType (Type type) in { assert(type.kind == CXTypeKind.CXType_BlockPointer || type.isFunctionPointerType); } body { auto func = type.pointeeType.func; Parameter[] params; params.reserve(func.arguments.length); foreach (type ; func.arguments) params ~= Parameter(translateType(type)); auto resultType = translateType(func.resultType); return translateFunction(resultType, "function", params, func.isVariadic, new String); } string translateObjCObjectPointerType (Type type) in { assert(type.kind == CXTypeKind.CXType_ObjCObjectPointer && !type.isObjCBuiltinType); } body { auto pointee = type.pointeeType; if (pointee.spelling == "Protocol") return "Protocol*"; else return translateType(pointee); } string translateType (CXTypeKind kind, bool rewriteIdToObjcObject = true) { with (CXTypeKind) switch (kind) { case CXType_Invalid: return "<unimplemented>"; case CXType_Unexposed: return "<unimplemented>"; case CXType_Void: return "void"; case CXType_Bool: return "bool"; case CXType_Char_U: return "<unimplemented>"; case CXType_UChar: return "ubyte"; case CXType_Char16: return "wchar"; case CXType_Char32: return "dchar"; case CXType_UShort: return "ushort"; case CXType_UInt: return "uint"; case CXType_ULong: includeHandler.addCompatible(); return "c_ulong"; case CXType_ULongLong: return "ulong"; case CXType_UInt128: return "<unimplemented>"; case CXType_Char_S: return "char"; case CXType_SChar: return "byte"; case CXType_WChar: return "wchar"; case CXType_Short: return "short"; case CXType_Int: return "int"; case CXType_Long: includeHandler.addCompatible(); return "c_long"; case CXType_LongLong: return "long"; case CXType_Int128: return "<unimplemented>"; case CXType_Float: return "float"; case CXType_Double: return "double"; case CXType_LongDouble: return "real"; case CXType_NullPtr: return "null"; case CXType_Overload: return "<unimplemented>"; case CXType_Dependent: return "<unimplemented>"; case CXType_ObjCId: return rewriteIdToObjcObject ? "ObjcObject" : "id"; case CXType_ObjCClass: return "Class"; case CXType_ObjCSel: return "SEL"; case CXType_Complex: case CXType_Pointer: case CXType_BlockPointer: case CXType_LValueReference: case CXType_RValueReference: case CXType_Record: case CXType_Enum: case CXType_Typedef: case CXType_FunctionNoProto: case CXType_FunctionProto: case CXType_Vector: case CXType_IncompleteArray: case CXType_VariableArray: case CXType_DependentSizedArray: case CXType_MemberPointer: return "<unimplemented>"; default: assert(0, "Unhandled type kind " ~ kind.toString); } }
D
// Written in the D programming language. /** This module implements a variety of type constructors, i.e., templates that allow construction of new, useful general-purpose types. Source: $(PHOBOSSRC std/_typecons.d) Macros: WIKI = Phobos/StdVariant Synopsis: ---- // value tuples alias Tuple!(float, "x", float, "y", float, "z") Coord; Coord c; c[1] = 1; // access by index c.z = 1; // access by given name alias Tuple!(string, string) DicEntry; // names can be omitted // Rebindable references to const and immutable objects void bar() { const w1 = new Widget, w2 = new Widget; w1.foo(); // w1 = w2 would not work; can't rebind const object auto r = Rebindable!(const Widget)(w1); // invoke method as if r were a Widget object r.foo(); // rebind r to refer to another object r = w2; } ---- Copyright: Copyright the respective authors, 2008- License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: $(WEB erdani.org, Andrei Alexandrescu), $(WEB bartoszmilewski.wordpress.com, Bartosz Milewski), Don Clugston, Shin Fujishiro */ module std.typecons; import core.memory, core.stdc.stdlib; import std.algorithm, std.array, std.conv, std.exception, std.format, std.metastrings, std.traits, std.typetuple, std.range; version(unittest) import core.vararg, std.stdio; /** Encapsulates unique ownership of a resource. Resource of type T is deleted at the end of the scope, unless it is transferred. The transfer can be explicit, by calling $(D release), or implicit, when returning Unique from a function. The resource can be a polymorphic class object, in which case Unique behaves polymorphically too. Example: */ struct Unique(T) { static if (is(T:Object)) alias T RefT; else alias T * RefT; public: /+ Doesn't work yet /** The safe constructor. It creates the resource and guarantees unique ownership of it (unless the constructor of $(D T) publishes aliases of $(D this)), */ this(A...)(A args) { _p = new T(args); } +/ /** Constructor that takes an rvalue. It will ensure uniqueness, as long as the rvalue isn't just a view on an lvalue (e.g., a cast) Typical usage: ---- Unique!(Foo) f = new Foo; ---- */ this(RefT p) { writeln("Unique constructor with rvalue"); _p = p; } /** Constructor that takes an lvalue. It nulls its source. The nulling will ensure uniqueness as long as there are no previous aliases to the source. */ this(ref RefT p) { _p = p; writeln("Unique constructor nulling source"); p = null; assert(p is null); } /+ Doesn't work yet /** Constructor that takes a Unique of a type that is convertible to our type: Disallow construction from lvalue (force the use of release on the source Unique) If the source is an rvalue, null its content, so the destrutctor doesn't delete it Typically used by the compiler to return $(D Unique) of derived type as $(D Unique) of base type. Example: ---- Unique!(Base) create() { Unique!(Derived) d = new Derived; return d; // Implicit Derived->Base conversion } ---- */ this(U)(ref Unique!(U) u) = null; this(U)(Unique!(U) u) { _p = u._p; u._p = null; } +/ ~this() { writeln("Unique destructor of ", (_p is null)? null: _p); delete _p; _p = null; } bool isEmpty() const { return _p is null; } /** Returns a unique rvalue. Nullifies the current contents */ Unique release() { writeln("Release"); auto u = Unique(_p); assert(_p is null); writeln("return from Release"); return u; } /** Forwards member access to contents */ RefT opDot() { return _p; } /+ doesn't work yet! /** Postblit operator is undefined to prevent the cloning of $(D Unique) objects */ this(this) = null; +/ private: RefT _p; } /+ doesn't work yet unittest { writeln("Unique class"); class Bar { ~this() { writefln(" Bar destructor"); } int val() const { return 4; } } alias Unique!(Bar) UBar; UBar g(UBar u) { return u; } auto ub = UBar(new Bar); assert(!ub.isEmpty); assert(ub.val == 4); // should not compile // auto ub3 = g(ub); writeln("Calling g"); auto ub2 = g(ub.release); assert(ub.isEmpty); assert(!ub2.isEmpty); } unittest { writeln("Unique struct"); struct Foo { ~this() { writefln(" Bar destructor"); } int val() const { return 3; } } alias Unique!(Foo) UFoo; UFoo f(UFoo u) { writeln("inside f"); return u; } auto uf = UFoo(new Foo); assert(!uf.isEmpty); assert(uf.val == 3); // should not compile // auto uf3 = f(uf); writeln("Unique struct: calling f"); auto uf2 = f(uf.release); assert(uf.isEmpty); assert(!uf2.isEmpty); } +/ /** Tuple of values, for example $(D Tuple!(int, string)) is a record that stores an $(D int) and a $(D string). $(D Tuple) can be used to bundle values together, notably when returning multiple values from a function. If $(D obj) is a tuple, the individual members are accessible with the syntax $(D obj[0]) for the first field, $(D obj[1]) for the second, and so on. The choice of zero-based indexing instead of one-base indexing was motivated by the ability to use value tuples with various compile-time loop constructs (e.g. type tuple iteration), all of which use zero-based indexing. Example: ---- Tuple!(int, int) point; // assign coordinates point[0] = 5; point[1] = 6; // read coordinates auto x = point[0]; auto y = point[1]; ---- Tuple members can be named. It is legal to mix named and unnamed members. The method above is still applicable to all fields. Example: ---- alias Tuple!(int, "index", string, "value") Entry; Entry e; e.index = 4; e.value = "Hello"; assert(e[1] == "Hello"); assert(e[0] == 4); ---- Tuples with named fields are distinct types from tuples with unnamed fields, i.e. each naming imparts a separate type for the tuple. Two tuple differing in naming only are still distinct, even though they might have the same structure. Example: ---- Tuple!(int, "x", int, "y") point1; Tuple!(int, int) point2; assert(!is(typeof(point1) == typeof(point2))); // passes ---- */ struct Tuple(Specs...) { private: // Parse (type,name) pairs (FieldSpecs) out of the specified // arguments. Some fields would have name, others not. template parseSpecs(Specs...) { static if (Specs.length == 0) { alias TypeTuple!() parseSpecs; } else static if (is(Specs[0])) { static if (is(typeof(Specs[1]) : string)) { alias TypeTuple!(FieldSpec!(Specs[0 .. 2]), parseSpecs!(Specs[2 .. $])) parseSpecs; } else { alias TypeTuple!(FieldSpec!(Specs[0]), parseSpecs!(Specs[1 .. $])) parseSpecs; } } else { static assert(0, "Attempted to instantiate Tuple with an " ~"invalid argument: "~ Specs[0].stringof); } } template FieldSpec(T, string s = "") { alias T Type; alias s name; } alias parseSpecs!Specs fieldSpecs; // Used with staticMap. template extractType(alias spec) { alias spec.Type extractType; } template extractName(alias spec) { alias spec.name extractName; } // Generates named fields as follows: // alias Identity!(field[0]) name_0; // alias Identity!(field[1]) name_1; // : // NOTE: field[k] is an expression (which yields a symbol of a // variable) and can't be aliased directly. static string injectNamedFields() { string decl = ""; foreach (i, name; staticMap!(extractName, fieldSpecs)) { enum field = Format!("Identity!(field[%s])",i); enum numbered = Format!("_%s", i); decl ~= Format!("alias %s %s;", field, numbered); if (name.length != 0) { decl ~= Format!("alias %s %s;", numbered, name); } } return decl; } // Returns Specs for a subtuple this[from .. to] preserving field // names if any. template sliceSpecs(size_t from, size_t to) { alias staticMap!(expandSpec, fieldSpecs[from .. to]) sliceSpecs; } template expandSpec(alias spec) { static if (spec.name.length == 0) { alias TypeTuple!(spec.Type) expandSpec; } else { alias TypeTuple!(spec.Type, spec.name) expandSpec; } } public: /** The type of the tuple's components. */ alias staticMap!(extractType, fieldSpecs) Types; Types field; mixin(injectNamedFields()); alias field expand; alias field this; // This mitigates breakage of old code now that std.range.Zip uses // Tuple instead of the old Proxy. It's intentionally lacking ddoc // because it should eventually be deprecated. auto at(size_t index)() { return field[index]; } /** Constructor taking one value for each field. Each argument must be implicitly assignable to the respective element of the target. */ this(U...)(U values) if (U.length == Types.length) { foreach (i, Unused; Types) { field[i] = values[i]; } } /** Constructor taking a compatible tuple. Each element of the source must be implicitly assignable to the respective element of the target. */ this(U)(U another) if (isTuple!U) { static assert(field.length == another.field.length, "Length mismatch in attempting to construct a " ~ typeof(this).stringof ~" with a "~ U.stringof); foreach (i, T; Types) { field[i] = another.field[i]; } } /** Comparison for equality. */ bool opEquals(R)(R rhs) if (isTuple!R) { static assert(field.length == rhs.field.length, "Length mismatch in attempting to compare a " ~typeof(this).stringof ~" with a "~typeof(rhs).stringof); foreach (i, Unused; Types) { if (field[i] != rhs.field[i]) return false; } return true; } /** Comparison for ordering. */ int opCmp(R)(R rhs) if (isTuple!R) { static assert(field.length == rhs.field.length, "Length mismatch in attempting to compare a " ~typeof(this).stringof ~" with a "~typeof(rhs).stringof); foreach (i, Unused; Types) { if (field[i] != rhs.field[i]) { return field[i] < rhs.field[i] ? -1 : 1; } } return 0; } /** Assignment from another tuple. Each element of the source must be implicitly assignable to the respective element of the target. */ void opAssign(R)(R rhs) if (isTuple!R) { static assert(field.length == rhs.field.length, "Length mismatch in attempting to assign a " ~ R.stringof ~" to a "~ typeof(this).stringof); // Do not swap; opAssign should be called on the fields. foreach (i, Unused; Types) { field[i] = rhs.field[i]; } } deprecated void assign(R)(R rhs) if (isTuple!R) { this = rhs; } // @@@BUG4424@@@ workaround private mixin template _workaround4424() { @disable void opAssign(typeof(this) ); } mixin _workaround4424; /** Takes a slice of the tuple. Example: ---- Tuple!(int, string, float, double) a; a[1] = "abc"; a[2] = 4.5; auto s = a.slice!(1, 3); static assert(is(typeof(s) == Tuple!(string, float))); assert(s[0] == "abc" && s[1] == 4.5); ---- */ @property ref Tuple!(sliceSpecs!(from, to)) slice(uint from, uint to)() { return *cast(typeof(return) *) &(field[from]); } /** The length of the tuple. */ enum length = field.length; /** Converts to string. */ string toString() { enum header = typeof(this).stringof ~ "(", footer = ")", separator = ", "; Appender!string app; app.put(header); foreach (i, Unused; Types) { static if (i > 0) { app.put(separator); } // TODO: Change this once toString() works for shared objects. static if (is(Unused == class) && is(Unused == shared)) formattedWrite(app, "%s", field[i].stringof); else { FormatSpec!char f; // "%s" formatElement(app, field[i], f); } } app.put(footer); return app.data; } } private template Identity(alias T) { alias T Identity; } unittest { { Tuple!(int, "a", int, "b") nosh; static assert(nosh.length == 2); nosh.a = 5; nosh.b = 6; assert(nosh.a == 5); assert(nosh.b == 6); } { Tuple!(short, double) b; static assert(b.length == 2); b[1] = 5; auto a = Tuple!(int, real)(b); assert(a[0] == 0 && a[1] == 5); a = Tuple!(int, real)(1, 2); assert(a[0] == 1 && a[1] == 2); auto c = Tuple!(int, "a", double, "b")(a); assert(c[0] == 1 && c[1] == 2); } { Tuple!(int, real) nosh; nosh[0] = 5; nosh[1] = 0; assert(nosh[0] == 5 && nosh[1] == 0); assert(nosh.toString == "Tuple!(int,real)(5, 0)", nosh.toString); Tuple!(int, int) yessh; nosh = yessh; } { Tuple!(int, string) t; t[0] = 10; t[1] = "str"; assert(t[0] == 10 && t[1] == "str"); assert(t.toString == `Tuple!(int,string)(10, "str")`, t.toString); } { Tuple!(int, "a", double, "b") x; static assert(x.a.offsetof == x[0].offsetof); static assert(x.b.offsetof == x[1].offsetof); x.b = 4.5; x.a = 5; assert(x[0] == 5 && x[1] == 4.5); assert(x.a == 5 && x.b == 4.5); } // indexing { Tuple!(int, real) t; static assert(is(typeof(t[0]) == int)); static assert(is(typeof(t[1]) == real)); int* p0 = &t[0]; real* p1 = &t[1]; t[0] = 10; t[1] = -200.0L; assert(*p0 == t[0]); assert(*p1 == t[1]); } // slicing { Tuple!(int, "x", real, "y", double, "z", string) t; t[0] = 10; t[1] = 11; t[2] = 12; t[3] = "abc"; auto a = t.slice!(0, 3); assert(a.length == 3); assert(a.x == t.x); assert(a.y == t.y); assert(a.z == t.z); auto b = t.slice!(2, 4); assert(b.length == 2); assert(b.z == t.z); assert(b[1] == t[3]); } // nesting { Tuple!(Tuple!(int, real), Tuple!(string, "s")) t; static assert(is(typeof(t[0]) == Tuple!(int, real))); static assert(is(typeof(t[1]) == Tuple!(string, "s"))); static assert(is(typeof(t[0][0]) == int)); static assert(is(typeof(t[0][1]) == real)); static assert(is(typeof(t[1].s) == string)); t[0] = tuple(10, 20.0L); t[1].s = "abc"; assert(t[0][0] == 10); assert(t[0][1] == 20.0L); assert(t[1].s == "abc"); } // non-POD { static struct S { int count; this(this) { ++count; } ~this() { --count; } void opAssign(S rhs) { count = rhs.count; } } Tuple!(S, S) ss; Tuple!(S, S) ssCopy = ss; assert(ssCopy[0].count == 1); assert(ssCopy[1].count == 1); ssCopy[1] = ssCopy[0]; assert(ssCopy[1].count == 2); } // bug 2800 { static struct R { Tuple!(int, int) _front; @property ref Tuple!(int, int) front() { return _front; } @property bool empty() { return _front[0] >= 10; } void popFront() { ++_front[0]; } } foreach (a; R()) { static assert(is(typeof(a) == Tuple!(int, int))); assert(0 <= a[0] && a[0] < 10); assert(a[1] == 0); } } // Construction with compatible tuple { Tuple!(int, int) x; x[0] = 10; x[1] = 20; Tuple!(int, "a", double, "b") y = x; assert(y.a == 10); assert(y.b == 20); // incompatible static assert(!__traits(compiles, Tuple!(int, int)(y))); } // 6275 { const int x = 1; auto t1 = tuple(x); alias Tuple!(const(int)) T; auto t2 = T(1); } } /** Returns a $(D Tuple) object instantiated and initialized according to the arguments. Example: ---- auto value = tuple(5, 6.7, "hello"); assert(value[0] == 5); assert(value[1] == 6.7); assert(value[2] == "hello"); ---- */ Tuple!T tuple(T...)(T args) { return typeof(return)(args); } /** Returns $(D true) if and only if $(D T) is an instance of the $(D Tuple) struct template. */ template isTuple(T) { static if (is(Unqual!T Unused : Tuple!Specs, Specs...)) { enum isTuple = true; } else { enum isTuple = false; } } unittest { static assert(isTuple!(Tuple!())); static assert(isTuple!(Tuple!(int))); static assert(isTuple!(Tuple!(int, real, string))); static assert(isTuple!(Tuple!(int, "x", real, "y"))); static assert(isTuple!(Tuple!(int, Tuple!(real), string))); static assert(isTuple!(const Tuple!(int))); static assert(isTuple!(immutable Tuple!(int))); static assert(!isTuple!(int)); static assert(!isTuple!(const int)); struct S {} static assert(!isTuple!(S)); } private template enumValuesImpl(string name, BaseType, long index, T...) { static if (name.length) { enum string enumValuesImpl = "enum "~name~" : "~BaseType.stringof ~" { "~enumValuesImpl!("", BaseType, index, T)~"}\n"; } else { static if (!T.length) { enum string enumValuesImpl = ""; } else { static if (T.length == 1 || T.length > 1 && is(typeof(T[1]) : string)) { enum string enumValuesImpl = T[0]~" = "~ToString!(index)~", " ~enumValuesImpl!("", BaseType, index + 1, T[1 .. $]); } else { enum string enumValuesImpl = T[0]~" = "~ToString!(T[1])~", " ~enumValuesImpl!("", BaseType, T[1] + 1, T[2 .. $]); } } } } private template enumParserImpl(string name, bool first, T...) { static if (first) { enum string enumParserImpl = "bool enumFromString(string s, ref " ~name~" v) {\n" ~enumParserImpl!(name, false, T) ~"return false;\n}\n"; } else { static if (T.length) enum string enumParserImpl = "if (s == `"~T[0]~"`) return (v = "~name~"."~T[0]~"), true;\n" ~enumParserImpl!(name, false, T[1 .. $]); else enum string enumParserImpl = ""; } } private template enumPrinterImpl(string name, bool first, T...) { static if (first) { enum string enumPrinterImpl = "string enumToString("~name~" v) {\n" ~enumPrinterImpl!(name, false, T)~"\n}\n"; } else { static if (T.length) enum string enumPrinterImpl = "if (v == "~name~"."~T[0]~") return `"~T[0]~"`;\n" ~enumPrinterImpl!(name, false, T[1 .. $]); else enum string enumPrinterImpl = "return null;"; } } private template ValueTuple(T...) { alias T ValueTuple; } private template StringsOnly(T...) { static if (T.length == 1) static if (is(typeof(T[0]) : string)) alias ValueTuple!(T[0]) StringsOnly; else alias ValueTuple!() StringsOnly; else static if (is(typeof(T[0]) : string)) alias ValueTuple!(T[0], StringsOnly!(T[1 .. $])) StringsOnly; else alias ValueTuple!(StringsOnly!(T[1 .. $])) StringsOnly; } /** Defines truly named enumerated values with parsing and stringizing primitives. Example: ---- mixin(defineEnum!("Abc", "A", "B", 5, "C")); ---- is equivalent to the following code: ---- enum Abc { A, B = 5, C } string enumToString(Abc v) { ... } Abc enumFromString(string s) { ... } ---- The $(D enumToString) function generates the unqualified names of the enumerated values, i.e. "A", "B", and "C". The $(D enumFromString) function expects one of "A", "B", and "C", and throws an exception in any other case. A base type can be specified for the enumeration like this: ---- mixin(defineEnum!("Abc", ubyte, "A", "B", "C", 255)); ---- In this case the generated $(D enum) will have a $(D ubyte) representation. */ deprecated template defineEnum(string name, T...) { static if (is(typeof(cast(T[0]) T[0].init))) enum string defineEnum = enumValuesImpl!(name, T[0], 0, T[1 .. $]) ~ enumParserImpl!(name, true, StringsOnly!(T[1 .. $])) ~ enumPrinterImpl!(name, true, StringsOnly!(T[1 .. $])); else alias defineEnum!(name, int, T) defineEnum; } unittest { mixin(defineEnum!("_24b455e148a38a847d65006bca25f7fe", "A1", 1, "B1", "C1")); auto a = _24b455e148a38a847d65006bca25f7fe.A1; assert(enumToString(a) == "A1"); _24b455e148a38a847d65006bca25f7fe b; assert(enumFromString("B1", b) && b == _24b455e148a38a847d65006bca25f7fe.B1); } /** $(D Rebindable!(T)) is a simple, efficient wrapper that behaves just like an object of type $(D T), except that you can reassign it to refer to another object. For completeness, $(D Rebindable!(T)) aliases itself away to $(D T) if $(D T) is a non-const object type. However, $(D Rebindable!(T)) does not compile if $(D T) is a non-class type. Regular $(D const) object references cannot be reassigned: ---- class Widget { int x; int y() const { return a; } } const a = new Widget; a.y(); // fine a.x = 5; // error! can't modify const a a = new Widget; // error! can't modify const a ---- However, $(D Rebindable!(Widget)) does allow reassignment, while otherwise behaving exactly like a $(D const Widget): ---- auto a = Rebindable!(const Widget)(new Widget); a.y(); // fine a.x = 5; // error! can't modify const a a = new Widget; // fine ---- You may want to use $(D Rebindable) when you want to have mutable storage referring to $(D const) objects, for example an array of references that must be sorted in place. $(D Rebindable) does not break the soundness of D's type system and does not incur any of the risks usually associated with $(D cast). */ template Rebindable(T) if (is(T == class) || is(T == interface) || isArray!(T)) { static if (!is(T X == const(U), U) && !is(T X == immutable(U), U)) { alias T Rebindable; } else static if (isArray!(T)) { alias const(ElementType!(T))[] Rebindable; } else { struct Rebindable { private union { T original; U stripped; } void opAssign(T another) pure nothrow { stripped = cast(U) another; } void opAssign(Rebindable another) pure nothrow { stripped = another.stripped; } static if (is(T == const U)) { // safely assign immutable to const void opAssign(Rebindable!(immutable U) another) pure nothrow { stripped = another.stripped; } } this(T initializer) pure nothrow { opAssign(initializer); } @property ref T get() pure nothrow { return original; } @property ref const(T) get() const pure nothrow { return original; } alias get this; } } } /** Convenience function for creating a $(D Rebindable) using automatic type inference. */ Rebindable!(T) rebindable(T)(T obj) if (is(T == class) || is(T == interface) || isArray!(T)) { typeof(return) ret; ret = obj; return ret; } /** This function simply returns the $(D Rebindable) object passed in. It's useful in generic programming cases when a given object may be either a regular $(D class) or a $(D Rebindable). */ Rebindable!(T) rebindable(T)(Rebindable!(T) obj) { return obj; } unittest { interface CI { const int foo(); } class C : CI { int foo() const { return 42; } } Rebindable!(C) obj0; static assert(is(typeof(obj0) == C)); Rebindable!(const(C)) obj1; static assert(is(typeof(obj1.get) == const(C)), typeof(obj1.get).stringof); static assert(is(typeof(obj1.stripped) == C)); obj1 = new C; assert(obj1.get !is null); obj1 = new const(C); assert(obj1.get !is null); Rebindable!(immutable(C)) obj2; static assert(is(typeof(obj2.get) == immutable(C))); static assert(is(typeof(obj2.stripped) == C)); obj2 = new immutable(C); assert(obj1.get !is null); // test opDot assert(obj2.foo == 42); interface I { final int foo() const { return 42; } } Rebindable!(I) obj3; static assert(is(typeof(obj3) == I)); Rebindable!(const I) obj4; static assert(is(typeof(obj4.get) == const I)); static assert(is(typeof(obj4.stripped) == I)); static assert(is(typeof(obj4.foo()) == int)); obj4 = new class I {}; Rebindable!(immutable C) obj5i; Rebindable!(const C) obj5c; obj5c = obj5c; obj5c = obj5i; obj5i = obj5i; static assert(!__traits(compiles, obj5i = obj5c)); // Test the convenience functions. auto obj5convenience = rebindable(obj5i); assert(obj5convenience is obj5i); auto obj6 = rebindable(new immutable(C)); static assert(is(typeof(obj6) == Rebindable!(immutable C))); assert(obj6.foo == 42); auto obj7 = rebindable(new C); CI interface1 = obj7; auto interfaceRebind1 = rebindable(interface1); assert(interfaceRebind1.foo == 42); const interface2 = interface1; auto interfaceRebind2 = rebindable(interface2); assert(interfaceRebind2.foo == 42); auto arr = [1,2,3,4,5]; const arrConst = arr; assert(rebindable(arr) == arr); assert(rebindable(arrConst) == arr); } /** Order the provided members to minimize size while preserving alignment. Returns a declaration to be mixed in. Example: --- struct Banner { mixin(alignForSize!(byte[6], double)(["name", "height"])); } --- Alignment is not always optimal for 80-bit reals, nor for structs declared as align(1). */ string alignForSize(E...)(string[] names...) { // Sort all of the members by .alignof. // BUG: Alignment is not always optimal for align(1) structs // or 80-bit reals or 64-bit primitives on x86. // TRICK: Use the fact that .alignof is always a power of 2, // and maximum 16 on extant systems. Thus, we can perform // a very limited radix sort. // Contains the members with .alignof = 64,32,16,8,4,2,1 assert(E.length == names.length, "alignForSize: There should be as many member names as the types"); string[7] declaration = ["", "", "", "", "", "", ""]; foreach (i, T; E) { auto a = T.alignof; auto k = a>=64? 0 : a>=32? 1 : a>=16? 2 : a>=8? 3 : a>=4? 4 : a>=2? 5 : 6; declaration[k] ~= T.stringof ~ " " ~ names[i] ~ ";\n"; } auto s = ""; foreach (decl; declaration) s ~= decl; return s; } unittest { enum x = alignForSize!(int[], char[3], short, double[5])("x", "y","z", "w"); struct Foo{ int x; } enum y = alignForSize!(ubyte, Foo, cdouble)("x", "y","z"); static if(size_t.sizeof == uint.sizeof) { enum passNormalX = x == "double[5u] w;\nint[] x;\nshort z;\nchar[3u] y;\n"; enum passNormalY = y == "cdouble z;\nFoo y;\nubyte x;\n"; enum passAbnormalX = x == "int[] x;\ndouble[5u] w;\nshort z;\nchar[3u] y;\n"; enum passAbnormalY = y == "Foo y;\ncdouble z;\nubyte x;\n"; // ^ blame http://d.puremagic.com/issues/show_bug.cgi?id=231 static assert(passNormalX || double.alignof <= (int[]).alignof && passAbnormalX); static assert(passNormalY || double.alignof <= int.alignof && passAbnormalY); } else { static assert(x == "int[] x;\ndouble[5LU] w;\nshort z;\nchar[3LU] y;\n"); static assert(y == "cdouble z;\nFoo y;\nubyte x;\n"); } } /*--* First-class reference type */ struct Ref(T) { private T * _p; this(ref T value) { _p = &value; } ref T opDot() { return *_p; } /*ref*/ T opImplicitCastTo() { return *_p; } ref T value() { return *_p; } void opAssign(T value) { *_p = value; } void opAssign(T * value) { _p = value; } } unittest { Ref!(int) x; int y = 42; x = &y; assert(x.value == 42); x = 5; assert(x.value == 5); assert(y == 5); } /** Defines a value paired with a distinctive "null" state that denotes the absence of a value. If default constructed, a $(D Nullable!T) object starts in the null state. Assigning it renders it non-null. Calling $(D nullify) can nullify it again. Example: ---- Nullable!int a; assert(a.isNull); a = 5; assert(!a.isNull); assert(a == 5); ---- Practically $(D Nullable!T) stores a $(D T) and a $(D bool). */ struct Nullable(T) { private T _value; private bool _isNull = true; /** Constructor initializing $(D this) with $(D value). */ this(T value) { _value = value; _isNull = false; } /** Returns $(D true) if and only if $(D this) is in the null state. */ @property bool isNull() const { return _isNull; } /** Forces $(D this) to the null state. */ void nullify() { clear(_value); _isNull = true; } /** Assigns $(D value) to the internally-held state. If the assignment succeeds, $(D this) becomes non-null. */ void opAssign(T value) { _value = value; _isNull = false; } /** Gets the value. Throws an exception if $(D this) is in the null state. This function is also called for the implicit conversion to $(D T). */ @property ref T get() { enforce(!isNull); return _value; } //@@@BUG3748@@@: inout does not work properly. // need to define a separate 'const' version @property ref const(T) get() const { enforce(!isNull); return _value; } /** Implicitly converts to $(D T). Throws an exception if $(D this) is in the null state. */ alias get this; } unittest { Nullable!int a; assert(a.isNull); assertThrown(a.get); a = 5; assert(!a.isNull); assert(a == 5); //@@@BUG5188@@@ //assert(a != 3); assert(a.get != 3); a.nullify(); assert(a.isNull); a = 3; assert(a == 3); a *= 6; assert(a == 18); a.nullify(); assertThrown(a += 2); } unittest { auto k = Nullable!int(74); assert(k == 74); k.nullify(); assert(k.isNull); } unittest { static int f(in Nullable!int x) { return x.isNull ? 42 : x.get; } Nullable!int a; assert(f(a) == 42); a = 8; assert(f(a) == 8); a.nullify(); assert(f(a) == 42); } unittest { static struct S { int x; } Nullable!S s; assert(s.isNull); s = S(6); assert(s == S(6)); //@@@BUG5188@@@ //assert(s != S(0)); assert(s.get != S(0)); s.x = 9190; assert(s.x == 9190); s.nullify(); assertThrown(s.x = 9441); } /** Just like $(D Nullable!T), except that the null state is defined as a particular value. For example, $(D Nullable!(uint, uint.max)) is an $(D uint) that sets aside the value $(D uint.max) to denote a null state. $(D Nullable!(T, nullValue)) is more storage-efficient than $(D Nullable!T) because it does not need to store an extra $(D bool). */ struct Nullable(T, T nullValue) { private T _value = nullValue; /** Constructor initializing $(D this) with $(D value). */ this(T value) { _value = value; } /** Returns $(D true) if and only if $(D this) is in the null state. */ @property bool isNull() const { return _value == nullValue; } /** Forces $(D this) to the null state. */ void nullify() { _value = nullValue; } /** Assigns $(D value) to the internally-held state. No null checks are made. */ void opAssign(T value) { _value = value; } /** Gets the value. Throws an exception if $(D this) is in the null state. This function is also called for the implicit conversion to $(D T). */ @property ref T get() { enforce(!isNull); return _value; } //@@@BUG3748@@@ @property ref const(T) get() const { enforce(!isNull); return _value; } /** Implicitly converts to $(D T). Throws an exception if $(D this) is in the null state. */ alias get this; } unittest { Nullable!(int, int.min) a; assert(a.isNull); assertThrown(a.get); a = 5; assert(!a.isNull); assert(a == 5); static assert(a.sizeof == int.sizeof); } unittest { auto a = Nullable!(int, int.min)(8); assert(a == 8); a.nullify(); assert(a.isNull); } unittest { static int f(in Nullable!(int, int.min) x) { return x.isNull ? 42 : x.get; } Nullable!(int, int.min) a; assert(f(a) == 42); a = 8; assert(f(a) == 8); a.nullify(); assert(f(a) == 42); } /** Just like $(D Nullable!T), except that the object refers to a value sitting elsewhere in memory. This makes assignments overwrite the initially assigned value. Internally $(D NullableRef!T) only stores a pointer to $(D T) (i.e., $(D Nullable!T.sizeof == (T*).sizeof)). */ struct NullableRef(T) { private T* _value; /** Constructor binding $(D this) with $(D value). */ this(T * value) { _value = value; } /** Binds the internal state to $(D value). */ void bind(T * value) { _value = value; } /** Returns $(D true) if and only if $(D this) is in the null state. */ @property bool isNull() const { return _value is null; } /** Forces $(D this) to the null state. */ void nullify() { _value = null; } /** Assigns $(D value) to the internally-held state. */ void opAssign(T value) { enforce(_value); *_value = value; } /** Gets the value. Throws an exception if $(D this) is in the null state. This function is also called for the implicit conversion to $(D T). */ @property ref T get() { enforce(!isNull); return *_value; } //@@@BUG3748@@@ @property ref const(T) get() const { enforce(!isNull); return *_value; } /** Implicitly converts to $(D T). Throws an exception if $(D this) is in the null state. */ alias get this; } unittest { int x = 5, y = 7; auto a = NullableRef!(int)(&x); assert(!a.isNull); assert(a == 5); assert(x == 5); a = 42; assert(x == 42); assert(!a.isNull); assert(a == 42); a.nullify(); assert(x == 42); assert(a.isNull); assertThrown(a.get); assertThrown(a = 71); a.bind(&y); assert(a == 7); y = 135; assert(a == 135); } unittest { static int f(in NullableRef!int x) { return x.isNull ? 42 : x.get; } int x = 5; auto a = NullableRef!int(&x); assert(f(a) == 5); a.nullify(); assert(f(a) == 42); } /** $(D BlackHole!Base) is a subclass of $(D Base) which automatically implements all abstract member functions in $(D Base) as do-nothing functions. Each auto-implemented function just returns the default value of the return type without doing anything. The name came from $(WEB search.cpan.org/~sburke/Class-_BlackHole-0.04/lib/Class/_BlackHole.pm, Class::_BlackHole) Perl module by Sean M. Burke. Example: -------------------- abstract class C { int m_value; this(int v) { m_value = v; } int value() @property { return m_value; } abstract real realValue() @property; abstract void doSomething(); } void main() { auto c = new BlackHole!C(42); writeln(c.value); // prints "42" // Abstract functions are implemented as do-nothing: writeln(c.realValue); // prints "NaN" c.doSomething(); // does nothing } -------------------- See_Also: AutoImplement, generateEmptyFunction */ template BlackHole(Base) { alias AutoImplement!(Base, generateEmptyFunction, isAbstractFunction) BlackHole; } unittest { // return default { interface I_1 { real test(); } auto o = new BlackHole!I_1; assert(o.test() !<>= 0); // NaN } // doc example { static class C { int m_value; this(int v) { m_value = v; } int value() @property { return m_value; } abstract real realValue() @property; abstract void doSomething(); } auto c = new BlackHole!C(42); assert(c.value == 42); assert(c.realValue !<>= 0); // NaN c.doSomething(); } } /** $(D WhiteHole!Base) is a subclass of $(D Base) which automatically implements all abstract member functions as throw-always functions. Each auto-implemented function fails with throwing an $(D Error) and does never return. Useful for trapping use of not-yet-implemented functions. The name came from $(WEB search.cpan.org/~mschwern/Class-_WhiteHole-0.04/lib/Class/_WhiteHole.pm, Class::_WhiteHole) Perl module by Michael G Schwern. Example: -------------------- class C { abstract void notYetImplemented(); } void main() { auto c = new WhiteHole!C; c.notYetImplemented(); // throws an Error } -------------------- BUGS: Nothrow functions cause program to abort in release mode because the trap is implemented with $(D assert(0)) for nothrow functions. See_Also: AutoImplement, generateAssertTrap */ template WhiteHole(Base) { alias AutoImplement!(Base, generateAssertTrap, isAbstractFunction) WhiteHole; } // / ditto class NotImplementedError : Error { this(string method) { super(method ~ " is not implemented"); } } unittest { // nothrow debug // see the BUGS above { interface I_1 { void foo(); void bar() nothrow; } auto o = new WhiteHole!I_1; uint trap; try { o.foo(); } catch (Error e) { ++trap; } assert(trap == 1); try { o.bar(); } catch (Error e) { ++trap; } assert(trap == 2); } // doc example { static class C { abstract void notYetImplemented(); } auto c = new WhiteHole!C; try { c.notYetImplemented(); assert(0); } catch (Error e) {} } } /** $(D AutoImplement) automatically implements (by default) all abstract member functions in the class or interface $(D Base) in specified way. Params: how = template which specifies _how functions will be implemented/overridden. Two arguments are passed to $(D how): the type $(D Base) and an alias to an implemented function. Then $(D how) must return an implemented function body as a string. The generated function body can use these keywords: $(UL $(LI $(D a0), $(D a1), &hellip;: arguments passed to the function;) $(LI $(D args): a tuple of the arguments;) $(LI $(D self): an alias to the function itself;) $(LI $(D parent): an alias to the overridden function (if any).) ) You may want to use templated property functions (instead of Implicit Template Properties) to generate complex functions: -------------------- // Prints log messages for each call to overridden functions. string generateLogger(C, alias fun)() @property { enum qname = C.stringof ~ "." ~ __traits(identifier, fun); string stmt; stmt ~= q{ struct Importer { import std.stdio; } }; stmt ~= `Importer.writeln$(LPAREN)"Log: ` ~ qname ~ `(", args, ")"$(RPAREN);`; static if (!__traits(isAbstractFunction, fun)) { static if (is(typeof(return) == void)) stmt ~= q{ parent(args); }; else stmt ~= q{ auto r = parent(args); Importer.writeln("--> ", r); return r; }; } return stmt; } -------------------- what = template which determines _what functions should be implemented/overridden. An argument is passed to $(D what): an alias to a non-final member function in $(D Base). Then $(D what) must return a boolean value. Return $(D true) to indicate that the passed function should be implemented/overridden. -------------------- // Sees if fun returns something. template hasValue(alias fun) { enum bool hasValue = !is(ReturnType!(fun) == void); } -------------------- Note: Generated code is inserted in the scope of $(D std.typecons) module. Thus, any useful functions outside $(D std.typecons) cannot be used in the generated code. To workaround this problem, you may $(D import) necessary things in a local struct, as done in the $(D generateLogger()) template in the above example. BUGS: $(UL $(LI Variadic arguments to constructors are not forwarded to super.) $(LI Deep interface inheritance causes compile error with messages like "Error: function std.typecons._AutoImplement!(Foo)._AutoImplement.bar does not override any function". [$(BUGZILLA 2525), $(BUGZILLA 3525)] ) $(LI The $(D parent) keyword is actually a delegate to the super class' corresponding member function. [$(BUGZILLA 2540)] ) $(LI Using alias template parameter in $(D how) and/or $(D what) may cause strange compile error. Use template tuple parameter instead to workaround this problem. [$(BUGZILLA 4217)] ) ) */ class AutoImplement(Base, alias how, alias what = isAbstractFunction) : Base { private alias AutoImplement_Helper!( "autoImplement_helper_", "Base", Base, how, what ) autoImplement_helper_; mixin(autoImplement_helper_.code); } /* * Code-generating stuffs are encupsulated in this helper template so that * namespace pollusion, which can cause name confliction with Base's public * members, should be minimized. */ private template AutoImplement_Helper(string myName, string baseName, Base, alias generateMethodBody, alias cherrypickMethod) { private static: //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Internal stuffs //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // this would be deprecated by std.typelist.Filter template staticFilter(alias pred, lst...) { alias staticFilterImpl!(pred, lst).result staticFilter; } template staticFilterImpl(alias pred, lst...) { static if (lst.length > 0) { alias staticFilterImpl!(pred, lst[1 .. $]).result tail; // static if (true && pred!(lst[0])) alias TypeTuple!(lst[0], tail) result; else alias tail result; } else alias TypeTuple!() result; } // Returns function overload sets in the class C, filtered with pred. template enumerateOverloads(C, alias pred) { alias enumerateOverloadsImpl!(C, pred, traits_allMembers!(C)).result enumerateOverloads; } template enumerateOverloadsImpl(C, alias pred, names...) { static if (names.length > 0) { alias staticFilter!(pred, MemberFunctionsTuple!(C, ""~names[0])) methods; alias enumerateOverloadsImpl!(C, pred, names[1 .. $]).result next; static if (methods.length > 0) alias TypeTuple!(OverloadSet!(""~names[0], methods), next) result; else alias next result; } else alias TypeTuple!() result; } //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Target functions //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Add a non-final check to the cherrypickMethod. template canonicalPicker(fun.../+[BUG 4217]+/) { enum bool canonicalPicker = !__traits(isFinalFunction, fun[0]) && cherrypickMethod!(fun); } /* * A tuple of overload sets, each item of which consists of functions to be * implemented by the generated code. */ alias enumerateOverloads!(Base, canonicalPicker) targetOverloadSets; /* * A tuple of the super class' constructors. Used for forwarding * constructor calls. */ static if (__traits(hasMember, Base, "__ctor")) alias OverloadSet!("__ctor", __traits(getOverloads, Base, "__ctor")) ctorOverloadSet; else alias OverloadSet!("__ctor") ctorOverloadSet; // empty //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Type information //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// /* * The generated code will be mixed into AutoImplement, which will be * instantiated in this module's scope. Thus, any user-defined types are * out of scope and cannot be used directly (i.e. by their names). * * We will use FuncInfo instances for accessing return types and parameter * types of the implemented functions. The instances will be populated to * the AutoImplement's scope in a certain way; see the populate() below. */ // Returns the preferred identifier for the FuncInfo instance for the i-th // overloaded function with the name. template INTERNAL_FUNCINFO_ID(string name, size_t i) { enum string INTERNAL_FUNCINFO_ID = "F_" ~ name ~ "_" ~ toStringNow!(i); } /* * Insert FuncInfo instances about all the target functions here. This * enables the generated code to access type information via, for example, * "autoImplement_helper_.F_foo_1". */ template populate(overloads...) { static if (overloads.length > 0) { mixin populate!(overloads[0].name, overloads[0].contents); mixin populate!(overloads[1 .. $]); } } template populate(string name, methods...) { static if (methods.length > 0) { mixin populate!(name, methods[0 .. $ - 1]); // alias methods[$ - 1] target; enum ith = methods.length - 1; mixin( "alias FuncInfo!(target) " ~ INTERNAL_FUNCINFO_ID!(name, ith) ~ ";" ); } } public mixin populate!(targetOverloadSets); public mixin populate!( ctorOverloadSet ); //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Code-generating policies //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// /* Common policy configurations for generating constructors and methods. */ template CommonGeneratingPolicy() { // base class identifier which generated code should use enum string BASE_CLASS_ID = baseName; // FuncInfo instance identifier which generated code should use template FUNCINFO_ID(string name, size_t i) { enum string FUNCINFO_ID = myName ~ "." ~ INTERNAL_FUNCINFO_ID!(name, i); } } /* Policy configurations for generating constructors. */ template ConstructorGeneratingPolicy() { mixin CommonGeneratingPolicy; /* Generates constructor body. Just forward to the base class' one. */ string generateFunctionBody(ctor.../+[BUG 4217]+/)() @property { enum varstyle = variadicFunctionStyle!(typeof(&ctor[0])); static if (varstyle & (Variadic.c | Variadic.d)) { // the argptr-forwarding problem pragma(msg, "Warning: AutoImplement!(", Base, ") ", "ignored variadic arguments to the constructor ", FunctionTypeOf!(typeof(&ctor[0])) ); } return "super(args);"; } } /* Policy configurations for genearting target methods. */ template MethodGeneratingPolicy() { mixin CommonGeneratingPolicy; /* Geneartes method body. */ string generateFunctionBody(func.../+[BUG 4217]+/)() @property { return generateMethodBody!(Base, func); // given } } //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Generated code //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// alias MemberFunctionGenerator!( ConstructorGeneratingPolicy!() ) ConstructorGenerator; alias MemberFunctionGenerator!( MethodGeneratingPolicy!() ) MethodGenerator; public enum string code = ConstructorGenerator.generateCode!( ctorOverloadSet ) ~ "\n" ~ MethodGenerator.generateCode!(targetOverloadSets); debug (SHOW_GENERATED_CODE) { pragma(msg, "-------------------- < ", Base, " >"); pragma(msg, code); pragma(msg, "--------------------"); } } //debug = SHOW_GENERATED_CODE; unittest { // no function to implement { interface I_1 {} auto o = new BlackHole!I_1; } // parameters { interface I_3 { void test(int, in int, out int, ref int, lazy int); } auto o = new BlackHole!I_3; } // use of user-defined type { struct S {} interface I_4 { S test(); } auto o = new BlackHole!I_4; } // overloads { interface I_5 { void test(string); real test(real); int test(); int test() @property; // ? } auto o = new BlackHole!I_5; } // constructor forwarding { static class C_6 { this(int n) { assert(n == 42); } this(string s) { assert(s == "Deeee"); } this(...) {} } auto o1 = new BlackHole!C_6(42); auto o2 = new BlackHole!C_6("Deeee"); auto o3 = new BlackHole!C_6(1, 2, 3, 4); } // attributes { interface I_7 { ref int test_ref(); int test_pure() pure; int test_nothrow() nothrow; int test_property() @property; int test_safe() @safe; int test_trusted() @trusted; int test_system() @system; int test_pure_nothrow() pure nothrow; } auto o = new BlackHole!I_7; } // storage classes { interface I_8 { void test_const() const; void test_immutable() immutable; void test_shared() shared; void test_shared_const() shared const; } auto o = new BlackHole!I_8; } /+ // deep inheritance { // XXX [BUG 2525,3525] // NOTE: [r494] func.c(504-571) FuncDeclaration::semantic() interface I { void foo(); } interface J : I {} interface K : J {} static abstract class C_9 : K {} auto o = new BlackHole!C_9; }+/ } /* Used by MemberFunctionGenerator. */ package template OverloadSet(string nam, T...) { enum string name = nam; alias T contents; } /* Used by MemberFunctionGenerator. */ package template FuncInfo(alias func, /+[BUG 4217 ?]+/ T = typeof(&func)) { alias ReturnType!(T) RT; alias ParameterTypeTuple!(T) PT; } package template FuncInfo(Func) { alias ReturnType!(Func) RT; alias ParameterTypeTuple!(Func) PT; } /* General-purpose member function generator. -------------------- template GeneratingPolicy() { // [optional] the name of the class where functions are derived enum string BASE_CLASS_ID; // [optional] define this if you have only function types enum bool WITHOUT_SYMBOL; // [optional] Returns preferred identifier for i-th parameter. template PARAMETER_VARIABLE_ID(size_t i); // Returns the identifier of the FuncInfo instance for the i-th overload // of the specified name. The identifier must be accessible in the scope // where generated code is mixed. template FUNCINFO_ID(string name, size_t i); // Returns implemented function body as a string. When WITHOUT_SYMBOL is // defined, the latter is used. template generateFunctionBody(alias func); template generateFunctionBody(string name, FuncType); } -------------------- */ package template MemberFunctionGenerator(alias Policy) { private static: //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Internal stuffs //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// enum CONSTRUCTOR_NAME = "__ctor"; // true if functions are derived from a base class enum WITH_BASE_CLASS = __traits(hasMember, Policy, "BASE_CLASS_ID"); // true if functions are specified as types, not symbols enum WITHOUT_SYMBOL = __traits(hasMember, Policy, "WITHOUT_SYMBOL"); // preferred identifier for i-th parameter variable static if (__traits(hasMember, Policy, "PARAMETER_VARIABLE_ID")) { alias Policy.PARAMETER_VARIABLE_ID PARAMETER_VARIABLE_ID; } else { template PARAMETER_VARIABLE_ID(size_t i) { enum string PARAMETER_VARIABLE_ID = "a" ~ toStringNow!(i); // default: a0, a1, ... } } // Returns a tuple consisting of 0,1,2,...,n-1. For static foreach. template CountUp(size_t n) { static if (n > 0) alias TypeTuple!(CountUp!(n - 1), n - 1) CountUp; else alias TypeTuple!() CountUp; } //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Code generator //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// /* * Runs through all the target overload sets and generates D code which * implements all the functions in the overload sets. */ public string generateCode(overloads...)() @property { string code = ""; // run through all the overload sets foreach (i_; CountUp!(0 + overloads.length)) // workaround { enum i = 0 + i_; // workaround alias overloads[i] oset; code ~= generateCodeForOverloadSet!(oset); static if (WITH_BASE_CLASS && oset.name != CONSTRUCTOR_NAME) { // The generated function declarations may hide existing ones // in the base class (cf. HiddenFuncError), so we put an alias // declaration here to reveal possible hidden functions. code ~= Format!("alias %s.%s %s;\n", Policy.BASE_CLASS_ID, // [BUG 2540] super. oset.name, oset.name ); } } return code; } // handle each overload set private string generateCodeForOverloadSet(alias oset)() @property { string code = ""; foreach (i_; CountUp!(0 + oset.contents.length)) // workaround { enum i = 0 + i_; // workaround code ~= generateFunction!( Policy.FUNCINFO_ID!(oset.name, i), oset.name, oset.contents[i]) ~ "\n"; } return code; } /* * Returns D code which implements the function func. This function * actually generates only the declarator part; the function body part is * generated by the functionGenerator() policy. */ public string generateFunction( string myFuncInfo, string name, func... )() @property { enum isCtor = (name == CONSTRUCTOR_NAME); string code; // the result /*** Function Declarator ***/ { alias FunctionTypeOf!(func) Func; alias FunctionAttribute FA; enum atts = functionAttributes!(func); enum realName = isCtor ? "this" : name; /* Made them CTFE funcs just for the sake of Format!(...) */ // return type with optional "ref" static string make_returnType() { string rtype = ""; if (!isCtor) { if (atts & FA.ref_) rtype ~= "ref "; rtype ~= myFuncInfo ~ ".RT"; } return rtype; } enum returnType = make_returnType(); // function attributes attached after declaration static string make_postAtts() { string poatts = ""; if (atts & FA.pure_ ) poatts ~= " pure"; if (atts & FA.nothrow_) poatts ~= " nothrow"; if (atts & FA.property) poatts ~= " @property"; if (atts & FA.safe ) poatts ~= " @safe"; if (atts & FA.trusted ) poatts ~= " @trusted"; return poatts; } enum postAtts = make_postAtts(); // function storage class static string make_storageClass() { string postc = ""; if (is(Func == shared)) postc ~= " shared"; if (is(Func == const)) postc ~= " const"; if (is(Func == immutable)) postc ~= " immutable"; return postc; } enum storageClass = make_storageClass(); // if (isAbstractFunction!func) code ~= "override "; code ~= Format!("extern(%s) %s %s(%s) %s %s\n", functionLinkage!(func), returnType, realName, ""~generateParameters!(myFuncInfo, func), postAtts, storageClass ); } /*** Function Body ***/ code ~= "{\n"; { enum nparams = ParameterTypeTuple!(func).length; /* Declare keywords: args, self and parent. */ string preamble; preamble ~= "alias TypeTuple!(" ~ enumerateParameters!(nparams) ~ ") args;\n"; if (!isCtor) { preamble ~= "alias " ~ name ~ " self;\n"; if (WITH_BASE_CLASS && !__traits(isAbstractFunction, func)) //preamble ~= "alias super." ~ name ~ " parent;\n"; // [BUG 2540] preamble ~= "auto parent = &super." ~ name ~ ";\n"; } // Function body static if (WITHOUT_SYMBOL) enum fbody = Policy.generateFunctionBody!(name, func); else enum fbody = Policy.generateFunctionBody!(func); code ~= preamble; code ~= fbody; } code ~= "}"; return code; } /* * Returns D code which declares function parameters. * "ref int a0, real a1, ..." */ private string generateParameters(string myFuncInfo, func...)() @property { alias ParameterStorageClass STC; alias ParameterStorageClassTuple!(func) stcs; enum nparams = stcs.length; string params = ""; // the result foreach (i, stc; stcs) { if (i > 0) params ~= ", "; // Parameter storage classes. if (stc & STC.scope_) params ~= "scope "; if (stc & STC.out_ ) params ~= "out "; if (stc & STC.ref_ ) params ~= "ref "; if (stc & STC.lazy_ ) params ~= "lazy "; // Take parameter type from the FuncInfo. params ~= myFuncInfo ~ ".PT[" ~ toStringNow!(i) ~ "]"; // Declare a parameter variable. params ~= " " ~ PARAMETER_VARIABLE_ID!(i); } // Add some ellipsis part if needed. final switch (variadicFunctionStyle!(func)) { case Variadic.no: break; case Variadic.c, Variadic.d: // (...) or (a, b, ...) params ~= (nparams == 0) ? "..." : ", ..."; break; case Variadic.typesafe: params ~= " ..."; break; } return params; } // Returns D code which enumerates n parameter variables using comma as the // separator. "a0, a1, a2, a3" private string enumerateParameters(size_t n)() @property { string params = ""; foreach (i_; CountUp!(n)) { enum i = 0 + i_; // workaround if (i > 0) params ~= ", "; params ~= PARAMETER_VARIABLE_ID!(i); } return params; } } /** Predefined how-policies for $(D AutoImplement). These templates are used by $(D BlackHole) and $(D WhiteHole), respectively. */ template generateEmptyFunction(C, func.../+[BUG 4217]+/) { static if (is(ReturnType!(func) == void)) enum string generateEmptyFunction = q{ }; else static if (functionAttributes!(func) & FunctionAttribute.ref_) enum string generateEmptyFunction = q{ static typeof(return) dummy; return dummy; }; else enum string generateEmptyFunction = q{ return typeof(return).init; }; } /// ditto template generateAssertTrap(C, func.../+[BUG 4217]+/) { static if (functionAttributes!(func) & FunctionAttribute.nothrow_) //XXX { pragma(msg, "Warning: WhiteHole!(", C, ") used assert(0) instead " "of Error for the auto-implemented nothrow function ", C, ".", __traits(identifier, func)); enum string generateAssertTrap = `assert(0, "` ~ C.stringof ~ "." ~ __traits(identifier, func) ~ ` is not implemented");`; } else enum string generateAssertTrap = `throw new NotImplementedError("` ~ C.stringof ~ "." ~ __traits(identifier, func) ~ `");`; } /** Options regarding auto-initialization of a $(D RefCounted) object (see the definition of $(D RefCounted) below). */ enum RefCountedAutoInitialize { /// Do not auto-initialize the object no, /// Auto-initialize the object yes, } /** Defines a reference-counted object containing a $(D T) value as payload. $(D RefCounted) keeps track of all references of an object, and when the reference count goes down to zero, frees the underlying store. $(D RefCounted) uses $(D malloc) and $(D free) for operation. $(D RefCounted) is unsafe and should be used with care. No references to the payload should be escaped outside the $(D RefCounted) object. The $(D autoInit) option makes the object ensure the store is automatically initialized. Leaving $(D autoInit == RefCountedAutoInitialize.yes) (the default option) is convenient but has the cost of a test whenever the payload is accessed. If $(D autoInit == RefCountedAutoInitialize.no), user code must call either $(D refCountedIsInitialized) or $(D refCountedEnsureInitialized) before attempting to access the payload. Not doing so results in null pointer dereference. Example: ---- // A pair of an $(D int) and a $(D size_t) - the latter being the // reference count - will be dynamically allocated auto rc1 = RefCounted!int(5); assert(rc1 == 5); // No more allocation, add just one extra reference count auto rc2 = rc1; // Reference semantics rc2 = 42; assert(rc1 == 42); // the pair will be freed when rc1 and rc2 go out of scope ---- */ struct RefCounted(T, RefCountedAutoInitialize autoInit = RefCountedAutoInitialize.yes) if (!is(T == class)) { struct _RefCounted { private Tuple!(T, "_payload", size_t, "_count") * _store; debug(RefCounted) { private bool _debugging = false; @property bool debugging() const { return _debugging; } @property void debugging(bool d) { if (d != _debugging) { writeln(typeof(this).stringof, "@", cast(void*) _store, d ? ": starting debug" : ": ending debug"); } _debugging = d; } } private void initialize(A...)(A args) { const sz = (*_store).sizeof; auto p = malloc(sz)[0 .. sz]; if (sz >= size_t.sizeof && p.ptr) { GC.addRange(p.ptr, sz); } emplace(cast(T*) p.ptr, args); _store = cast(typeof(_store)) p.ptr; _store._count = 1; debug(RefCounted) if (debugging) writeln(typeof(this).stringof, "@", cast(void*) _store, ": initialized with ", A.stringof); } /** Returns $(D true) if and only if the underlying store has been allocated and initialized. */ @property bool isInitialized() const { return _store !is null; } /** Makes sure the payload was properly initialized. Such a call is typically inserted before using the payload. */ void ensureInitialized() { if (!isInitialized) initialize(); } } _RefCounted RefCounted; /** Constructor that initializes the payload. Postcondition: $(D refCountedIsInitialized) */ this(A...)(A args) if (A.length > 0) { RefCounted.initialize(args); } /** Constructor that tracks the reference count appropriately. If $(D !refCountedIsInitialized), does nothing. */ this(this) { if (!RefCounted.isInitialized) return; ++RefCounted._store._count; debug(RefCounted) if (RefCounted.debugging) writeln(typeof(this).stringof, "@", cast(void*) RefCounted._store, ": bumped refcount to ", RefCounted._store._count); } /** Destructor that tracks the reference count appropriately. If $(D !refCountedIsInitialized), does nothing. When the reference count goes down to zero, calls $(D clear) agaist the payload and calls $(D free) to deallocate the corresponding resource. */ ~this() { if (!RefCounted._store) return; assert(RefCounted._store._count > 0); if (--RefCounted._store._count) { debug(RefCounted) if (RefCounted.debugging) writeln(typeof(this).stringof, "@", cast(void*)RefCounted._store, ": decrement refcount to ", RefCounted._store._count); return; } debug(RefCounted) if (RefCounted.debugging) { write(typeof(this).stringof, "@", cast(void*)RefCounted._store, ": freeing... "); stdout.flush(); } // Done, deallocate assert(RefCounted._store); clear(RefCounted._store._payload); if (hasIndirections!T && RefCounted._store) GC.removeRange(RefCounted._store); free(RefCounted._store); RefCounted._store = null; debug(RefCounted) if (RefCounted.debugging) writeln("done!"); } /** Assignment operators */ void opAssign(typeof(this) rhs) { swap(RefCounted._store, rhs.RefCounted._store); } /// Ditto void opAssign(T rhs) { RefCounted._store._payload = move(rhs); } /** Returns a reference to the payload. If (autoInit == RefCountedAutoInitialize.yes), calls $(D refCountedEnsureInitialized). Otherwise, just issues $(D assert(refCountedIsInitialized)). */ alias refCountedPayload this; /** Returns a reference to the payload. If (autoInit == RefCountedAutoInitialize.yes), calls $(D refCountedEnsureInitialized). Otherwise, just issues $(D assert(refCountedIsInitialized)). Used with $(D alias refCountedPayload this;), so callers can just use the $(D RefCounted) object as a $(D T). */ @property ref T refCountedPayload() { static if (autoInit == RefCountedAutoInitialize.yes) { RefCounted.ensureInitialized(); } else { assert(RefCounted.isInitialized); } return RefCounted._store._payload; } // @property ref const(T) refCountedPayload() const { static if (autoInit == RefCountedAutoInitialize.yes) { // @@@ //refCountedEnsureInitialized(); assert(RefCounted.isInitialized); } else { assert(RefCounted.isInitialized); } return RefCounted._store._payload; } } unittest { RefCounted!int* p; { auto rc1 = RefCounted!int(5); p = &rc1; assert(rc1 == 5); assert(rc1.RefCounted._store._count == 1); auto rc2 = rc1; assert(rc1.RefCounted._store._count == 2); // Reference semantics rc2 = 42; assert(rc1 == 42); rc2 = rc2; assert(rc2.RefCounted._store._count == 2); rc1 = rc2; assert(rc1.RefCounted._store._count == 2); } assert(p.RefCounted._store == null); // RefCounted as a member struct A { RefCounted!int x; this(int y) { x.RefCounted.initialize(y); } A copy() { auto another = this; return another; } } auto a = A(4); auto b = a.copy(); if (a.x.RefCounted._store._count != 2) { stderr.writeln("*** BUG 4356 still unfixed"); } } // 6606 unittest { union U { size_t i; void* p; } struct S { U u; } alias RefCounted!S SRC; } /** Allocates a $(D class) object right inside the current scope, therefore avoiding the overhead of $(D new). This facility is unsafe; it is the responsibility of the user to not escape a reference to the object outside the scope. Example: ---- unittest { class A { int x; } auto a1 = scoped!A(); auto a2 = scoped!A(); a1.x = 42; a2.x = 53; assert(a1.x == 42); } ---- */ @system Scoped!T scoped(T, Args...)(Args args) if (is(T == class)) { Scoped!T result; static if (Args.length == 0) { result.Scoped_store[] = typeid(T).init[]; static if (is(typeof(T.init.__ctor()))) { result.Scoped_payload.__ctor(); } } else { emplace!T(cast(void[]) result.Scoped_store, args); } return result; } private struct Scoped(T) { private byte[__traits(classInstanceSize, T)] Scoped_store = void; @property T Scoped_payload() { return cast(T) (Scoped_store.ptr); } alias Scoped_payload this; @disable this(this) { writeln("Illegal call to Scoped this(this)"); assert(false); } ~this() { destroy(Scoped_payload); if ((cast(void**) Scoped_store.ptr)[1]) // if monitor is not null { _d_monitordelete(Scoped_payload, true); } } } // Used by scoped() above private extern (C) static void _d_monitordelete(Object h, bool det); /* Used by scoped() above. Calls the destructors of an object transitively up the inheritance path, but work properly only if the static type of the object (T) is known. */ private void destroy(T)(T obj) if (is(T == class)) { static if (is(typeof(obj.__dtor()))) { obj.__dtor(); } static if (!is(T == Object) && is(T Base == super)) { Base[0] b = obj; destroy(b); } } unittest { class A { int x = 1; } auto a1 = scoped!A(); assert(a1.x == 1); auto a2 = scoped!A(); a1.x = 42; a2.x = 53; assert(a1.x == 42); } unittest { class A { int x = 1; this() { x = 2; } } auto a1 = scoped!A(); assert(a1.x == 2); auto a2 = scoped!A(); a1.x = 42; a2.x = 53; assert(a1.x == 42); } unittest { class A { int x = 1; this(int y) { x = y; } ~this() {} } auto a1 = scoped!A(5); assert(a1.x == 5); auto a2 = scoped!A(); a1.x = 42; a2.x = 53; assert(a1.x == 42); } unittest { class A { static bool dead; ~this() { dead = true; } } class B : A { static bool dead; ~this() { dead = true; } } { auto b = scoped!B; } assert(B.dead, "asdasd"); assert(A.dead, "asdasd"); } unittest { // bug4500 class A { this() { a = this; } this(int i) { a = this; } A a; bool check() { return this is a; } } auto a1 = scoped!A; assert(a1.check()); auto a2 = scoped!A(1); assert(a2.check()); a1.a = a1; assert(a1.check()); } unittest { static class A { static int sdtor; this() { ++sdtor; assert(sdtor == 1); } ~this() { assert(sdtor == 1); --sdtor; } } interface Bob {} static class ABob : A, Bob { this() { ++sdtor; assert(sdtor == 2); } ~this() { assert(sdtor == 2); --sdtor; } } A.sdtor = 0; scope(exit) assert(A.sdtor == 0); auto abob = scoped!ABob(); } /** Defines a simple, self-documenting yes/no flag. This makes it easy for APIs to define functions accepting flags without resorting to $(D bool), which is opaque in calls, and without needing to define an enumerated type separately. Using $(D Flag!"Name") instead of $(D bool) makes the flag's meaning visible in calls. Each yes/no flag has its own type, which makes confusions and mix-ups impossible. Example: ---- // Before string getLine(bool keepTerminator) { ... if (keepTerminator) ... ... } ... // Code calling getLine (usually far away from its definition) can't // be understood without looking at the documentation, even by users // familiar with the API. Assuming the reverse meaning // (i.e. "ignoreTerminator") and inserting the wrong code compiles and // runs with erroneous results. auto line = getLine(false); // After string getLine(Flag!"KeepTerminator" keepTerminator) { ... if (keepTerminator) ... ... } ... // Code calling getLine can be easily read and understood even by // people not fluent with the API. auto line = getLine(Flag!"KeepTerminator".yes); ---- Passing categorical data by means of unstructured $(D bool) parameters is classified under "simple-data coupling" by Steve McConnell in the $(LUCKY Code Complete) book, along with three other kinds of coupling. The author argues citing several studies that coupling has a negative effect on code quality. $(D Flag) offers a simple structuring method for passing yes/no flags to APIs. As a perk, the flag's name may be any string and as such can include characters not normally allowed in identifiers, such as spaces and dashes. */ template Flag(string name) { /// enum Flag : bool { /** When creating a value of type $(D Flag!"Name"), use $(D Flag!"Name".no) for the negative option. When using a value of type $(D Flag!"Name"), compare it against $(D Flag!"Name".no) or just $(D false) or $(D 0). */ no = false, /** When creating a value of type $(D Flag!"Name"), use $(D Flag!"Name".yes) for the affirmative option. When using a value of type $(D Flag!"Name"), compare it against $(D Flag!"Name".yes). */ yes = true } } /** Convenience names that allow using e.g. $(D yes!"encryption") instead of $(D Flag!"encryption".yes) and $(D no!"encryption") instead of $(D Flag!"encryption".no). */ struct Yes { static auto @property opDispatch(string name)() { return Flag!name.yes; } } //template yes(string name) { enum Flag!name yes = Flag!name.yes; } /// Ditto struct No { static auto @property opDispatch(string name)() { return Flag!name.no; } } //template no(string name) { enum Flag!name no = Flag!name.no; } unittest { Flag!"abc" flag1; assert(flag1 == Flag!"abc".no); assert(flag1 == No.abc); assert(!flag1); if (flag1) assert(false); flag1 = Yes.abc; assert(flag1); if (!flag1) assert(false); if (flag1) {} else assert(false); assert(flag1 == Yes.abc); }
D
module orelang.operator.UriOperators; import orelang.operator.IOperator, orelang.Engine, orelang.Value; import std.regex, std.uri : encodeComponentUnsafe = encodeComponent; static string encodeComponent(string s) { char hexChar(ubyte c) { assert(c >= 0 && c <= 15); if (c < 10) return cast(char)('0' + c); else return cast(char)('A' + c - 10); } enum InvalidChar = ctRegex!`[!\*'\(\)]`; return s.encodeComponentUnsafe.replaceAll!((s) { char c = s.hit[0]; char[3] encoded; encoded[0] = '%'; encoded[1] = hexChar((c >> 4) & 0xF); encoded[2] = hexChar(c & 0xF); return encoded[].idup; })(InvalidChar); } class UrlEncodeComponentOperator : IOperator { /** * call */ Value call(Engine engine, Value[] args) { string s = engine.eval(args[0]).getString; return new Value(encodeComponent(s)); } }
D
/******************************************************************************* * Copyright (c) 2003, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation * Port to the D programming language: * Frank Benoit <benoit@tionex.de> *******************************************************************************/ module dwtx.draw2d.graph.BreakCycles; import dwt.dwthelper.utils; import dwtx.dwtxhelper.Collection; import dwtx.draw2d.graph.GraphVisitor; import dwtx.draw2d.graph.NodeList; import dwtx.draw2d.graph.DirectedGraph; import dwtx.draw2d.graph.Node; import dwtx.draw2d.graph.Edge; /** * This visitor eliminates cycles in the graph using a "greedy" heuristic. Nodes which * are sources and sinks are marked and placed in a source and sink list, leaving only * nodes involved in cycles. A remaining node with the highest (outgoing-incoming) edges * score is then chosen greedily as if it were a source. The process is repeated until all * nodes have been marked and placed in a list. The lists are then concatenated, and any * edges which go backwards in this list will be inverted during the layout procedure. * * @author Daniel Lee * @since 2.1.2 */ class BreakCycles : GraphVisitor { // Used in identifying cycles and in cycle removal. // Flag field indicates "presence". If true, the node has been removed from the list. NodeList graphNodes; public this(){ graphNodes = new NodeList(); } private bool allNodesFlagged() { for (int i = 0; i < graphNodes.size(); i++) { if (graphNodes.getNode(i).flag is false) return false; } return true; } private void breakCycles(DirectedGraph g) { initializeDegrees(g); greedyCycleRemove(g); invertEdges(g); } /* * Returns true if g contains cycles, false otherwise */ private bool containsCycles(DirectedGraph g) { List noLefts = new ArrayList(); //Identify all initial nodes for removal for (int i = 0; i < graphNodes.size(); i++) { Node node = graphNodes.getNode(i); if (getIncomingCount(node) is 0) sortedInsert(noLefts, node); } while (noLefts.size() > 0) { Node node = cast(Node)noLefts.remove(noLefts.size() - 1); node.flag = true; for (int i = 0; i < node.outgoing.size(); i++) { Node right = node.outgoing.getEdge(i).target; setIncomingCount(right, getIncomingCount(right) - 1); if (getIncomingCount(right) is 0) sortedInsert(noLefts, right); } } if (allNodesFlagged()) return false; return true; } /* * Returns the node in graphNodes with the largest * (outgoing edge count - incoming edge count) value */ private Node findNodeWithMaxDegree() { int max = Integer.MIN_VALUE; Node maxNode = null; for (int i = 0; i < graphNodes.size(); i++) { Node node = graphNodes.getNode(i); if (getDegree(node) >= max && node.flag is false) { max = getDegree(node); maxNode = node; } } return maxNode; } private int getDegree(Node n) { return n.workingInts[3]; } private int getIncomingCount(Node n) { return n.workingInts[0]; } private int getInDegree(Node n) { return n.workingInts[1]; } private int getOrderIndex(Node n) { return n.workingInts[0]; } private int getOutDegree(Node n) { return n.workingInts[2]; } private void greedyCycleRemove(DirectedGraph g) { NodeList sL = new NodeList(); NodeList sR = new NodeList(); do { // Add all sinks and isolated nodes to sR bool hasSink; do { hasSink = false; for (int i = 0; i < graphNodes.size(); i++) { Node node = graphNodes.getNode(i); if (getOutDegree(node) is 0 && node.flag is false) { hasSink = true; node.flag = true; updateIncoming(node); sR.add(node); break; } } } while (hasSink); // Add all sources to sL bool hasSource; do { hasSource = false; for (int i = 0; i < graphNodes.size(); i++) { Node node = graphNodes.getNode(i); if (getInDegree(node) is 0 && node.flag is false) { hasSource = true; node.flag = true; updateOutgoing(node); sL.add(node); break; } } } while (hasSource); // When all sinks and sources are removed, choose a node with the // maximum degree (outDegree - inDegree) and add it to sL Node max = findNodeWithMaxDegree(); if (max !is null) { sL.add(max); max.flag = true; updateIncoming(max); updateOutgoing(max); } } while (!allNodesFlagged()); // Assign order indexes int orderIndex = 0; for (int i = 0; i < sL.size(); i++) { setOrderIndex(sL.getNode(i), orderIndex++); } for (int i = sR.size() - 1; i >= 0; i--) { setOrderIndex(sR.getNode(i), orderIndex++); } } private void initializeDegrees(DirectedGraph g) { graphNodes.resetFlags(); for (int i = 0; i < g.nodes.size(); i++) { Node n = graphNodes.getNode(i); setInDegree(n, n.incoming.size()); setOutDegree(n, n.outgoing.size()); setDegree(n, n.outgoing.size() - n.incoming.size()); } } private void invertEdges(DirectedGraph g) { for (int i = 0; i < g.edges.size(); i++) { Edge e = g.edges.getEdge(i); if (getOrderIndex(e.source) > getOrderIndex(e.target)) { e.invert(); e.isFeedback_ = true; } } } private void setDegree(Node n, int deg) { n.workingInts[3] = deg; } private void setIncomingCount(Node n, int count) { n.workingInts[0] = count; } private void setInDegree(Node n, int deg) { n.workingInts[1] = deg; } private void setOutDegree(Node n, int deg) { n.workingInts[2] = deg; } private void setOrderIndex(Node n, int index) { n.workingInts[0] = index; } private void sortedInsert(List list, Node node) { int insert = 0; while (insert < list.size() && (cast(Node)list.get(insert)).sortValue > node.sortValue) insert++; list.add(insert, node); } /* * Called after removal of n. Updates the degree values of n's incoming nodes. */ private void updateIncoming(Node n) { for (int i = 0; i < n.incoming.size(); i++) { Node in_ = n.incoming.getEdge(i).source; if (in_.flag is false) { setOutDegree(in_, getOutDegree(in_) - 1); setDegree(in_, getOutDegree(in_) - getInDegree(in_)); } } } /* * Called after removal of n. Updates the degree values of n's outgoing nodes. */ private void updateOutgoing(Node n) { for (int i = 0; i < n.outgoing.size(); i++) { Node out_ = n.outgoing.getEdge(i).target; if (out_.flag is false) { setInDegree(out_, getInDegree(out_) - 1); setDegree(out_, getOutDegree(out_) - getInDegree(out_)); } } } public void revisit(DirectedGraph g) { for (int i = 0; i < g.edges.size(); i++) { Edge e = g.edges.getEdge(i); if (e.isFeedback()) e.invert(); } } /** * @see GraphVisitor#visit(dwtx.draw2d.graph.DirectedGraph) */ public void visit(DirectedGraph g) { // put all nodes in list, initialize index graphNodes.resetFlags(); for (int i = 0; i < g.nodes.size(); i++) { Node n = g.nodes.getNode(i); setIncomingCount(n, n.incoming.size()); graphNodes.add(n); } if (containsCycles(g)) { breakCycles(g); } } }
D
build/x86_64-debug/src/timer.o: src/timer.c
D
/workspace/target/debug/build/crc32fast-030b715bba50b8fc/build_script_build-030b715bba50b8fc: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/crc32fast-1.2.1/build.rs /workspace/target/debug/build/crc32fast-030b715bba50b8fc/build_script_build-030b715bba50b8fc.d: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/crc32fast-1.2.1/build.rs /root/.cargo/registry/src/github.com-1ecc6299db9ec823/crc32fast-1.2.1/build.rs:
D
/** Password hashing routines Copyright: © 2012 Sönke Ludwig License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Sönke Ludwig */ deprecated("This module will be removed(see #794). The DUB packages dauth or scrypt may be suitable alternatives.") module vibe.crypto.passwordhash;
D
/** * The demangle module converts mangled D symbols to a representation similar * to what would have existed in code. * * Copyright: Copyright Sean Kelly 2010 - 2014. * License: Distributed under the * $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0). * (See accompanying file LICENSE) * Authors: Sean Kelly * Source: $(DRUNTIMESRC core/_demangle.d) */ module core.demangle; debug(trace) import core.stdc.stdio : printf; debug(info) import core.stdc.stdio : printf; import core.stdc.stdio : snprintf; import core.stdc.string : memmove; import core.stdc.stdlib : strtold; private struct Demangle { // NOTE: This implementation currently only works with mangled function // names as they exist in an object file. Type names mangled via // the .mangleof property are effectively incomplete as far as the // ABI is concerned and so are not considered to be mangled symbol // names. // NOTE: This implementation builds the demangled buffer in place by // writing data as it is decoded and then rearranging it later as // needed. In practice this results in very little data movement, // and the performance cost is more than offset by the gain from // not allocating dynamic memory to assemble the name piecemeal. // // If the destination buffer is too small, parsing will restart // with a larger buffer. Since this generally means only one // allocation during the course of a parsing run, this is still // faster than assembling the result piecemeal. enum AddType { no, yes } this( const(char)[] buf_, char[] dst_ = null ) { this( buf_, AddType.yes, dst_ ); } this( const(char)[] buf_, AddType addType_, char[] dst_ = null ) { buf = buf_; addType = addType_; dst = dst_; } enum size_t minBufSize = 4000; const(char)[] buf = null; char[] dst = null; size_t pos = 0; size_t len = 0; AddType addType = AddType.yes; static class ParseException : Exception { @safe pure nothrow this( string msg ) { super( msg ); } } static class OverflowException : Exception { @safe pure nothrow this( string msg ) { super( msg ); } } static void error( string msg = "Invalid symbol" ) { //throw new ParseException( msg ); debug(info) printf( "error: %.*s\n", cast(int) msg.length, msg.ptr ); throw __ctfe ? new ParseException(msg) : cast(ParseException) cast(void*) typeid(ParseException).init; } static void overflow( string msg = "Buffer overflow" ) { //throw new OverflowException( msg ); debug(info) printf( "overflow: %.*s\n", cast(int) msg.length, msg.ptr ); throw cast(OverflowException) cast(void*) typeid(OverflowException).init; } ////////////////////////////////////////////////////////////////////////// // Type Testing and Conversion ////////////////////////////////////////////////////////////////////////// static bool isAlpha( char val ) { return ('a' <= val && 'z' >= val) || ('A' <= val && 'Z' >= val) || (0x80 & val); // treat all unicode as alphabetic } static bool isDigit( char val ) { return '0' <= val && '9' >= val; } static bool isHexDigit( char val ) { return ('0' <= val && '9' >= val) || ('a' <= val && 'f' >= val) || ('A' <= val && 'F' >= val); } static ubyte ascii2hex( char val ) { if (val >= 'a' && val <= 'f') return cast(ubyte)(val - 'a' + 10); if (val >= 'A' && val <= 'F') return cast(ubyte)(val - 'A' + 10); if (val >= '0' && val <= '9') return cast(ubyte)(val - '0'); error(); return 0; } ////////////////////////////////////////////////////////////////////////// // Data Output ////////////////////////////////////////////////////////////////////////// static bool contains( const(char)[] a, const(char)[] b ) { if (a.length && b.length) { auto bend = b.ptr + b.length; auto aend = a.ptr + a.length; return a.ptr <= b.ptr && bend <= aend; } return false; } char[] shift( const(char)[] val ) { void exch( size_t a, size_t b ) { char t = dst[a]; dst[a] = dst[b]; dst[b] = t; } if( val.length ) { assert( contains( dst[0 .. len], val ) ); debug(info) printf( "shifting (%.*s)\n", cast(int) val.length, val.ptr ); for( size_t n = 0; n < val.length; n++ ) { for( size_t v = val.ptr - dst.ptr; v + 1 < len; v++ ) { exch( v, v + 1 ); } } return dst[len - val.length .. len]; } return null; } char[] append( const(char)[] val ) { if( val.length ) { if( !dst.length ) dst.length = minBufSize; assert( !contains( dst[0 .. len], val ) ); debug(info) printf( "appending (%.*s)\n", cast(int) val.length, val.ptr ); if( dst.ptr + len == val.ptr && dst.length - len >= val.length ) { // data is already in place auto t = dst[len .. len + val.length]; len += val.length; return t; } if( dst.length - len >= val.length ) { dst[len .. len + val.length] = val[]; auto t = dst[len .. len + val.length]; len += val.length; return t; } overflow(); } return null; } char[] put( const(char)[] val ) { if( val.length ) { if( !contains( dst[0 .. len], val ) ) return append( val ); return shift( val ); } return null; } char[] putAsHex( size_t val, int width = 0 ) { char tmp[20]; int pos = tmp.length; while( val ) { int digit = val % 16; tmp[--pos] = digit < 10 ? cast(char)(digit + '0') : cast(char)((digit - 10) + 'a'); val /= 16; width--; } for( ; width > 0; width-- ) tmp[--pos] = '0'; return put( tmp[pos .. $] ); } void pad( const(char)[] val ) { if( val.length ) { append( " " ); put( val ); } } void silent( lazy void dg ) { debug(trace) printf( "silent+\n" ); debug(trace) scope(success) printf( "silent-\n" ); auto n = len; dg(); len = n; } ////////////////////////////////////////////////////////////////////////// // Parsing Utility ////////////////////////////////////////////////////////////////////////// char tok() { if( pos < buf.length ) return buf[pos]; return char.init; } void test( char val ) { if( val != tok() ) error(); } void next() { if( pos++ >= buf.length ) error(); } void match( char val ) { test( val ); next(); } void match( const(char)[] val ) { foreach(char e; val ) { test( e ); next(); } } void eat( char val ) { if( val == tok() ) next(); } ////////////////////////////////////////////////////////////////////////// // Parsing Implementation ////////////////////////////////////////////////////////////////////////// /* Number: Digit Digit Number */ const(char)[] sliceNumber() { debug(trace) printf( "sliceNumber+\n" ); debug(trace) scope(success) printf( "sliceNumber-\n" ); auto beg = pos; while( true ) { auto t = tok(); if (t >= '0' && t <= '9') next(); else return buf[beg .. pos]; } } size_t decodeNumber() { debug(trace) printf( "decodeNumber+\n" ); debug(trace) scope(success) printf( "decodeNumber-\n" ); return decodeNumber( sliceNumber() ); } size_t decodeNumber( const(char)[] num ) { debug(trace) printf( "decodeNumber+\n" ); debug(trace) scope(success) printf( "decodeNumber-\n" ); size_t val = 0; foreach( i, e; num ) { size_t n = e - '0'; if( val > (val.max - n) / 10 ) error(); val = val * 10 + n; } return val; } void parseReal() { debug(trace) printf( "parseReal+\n" ); debug(trace) scope(success) printf( "parseReal-\n" ); char[64] tbuf = void; size_t tlen = 0; real val = void; if( 'I' == tok() ) { match( "INF" ); put( "real.infinity" ); return; } if( 'N' == tok() ) { next(); if( 'I' == tok() ) { match( "INF" ); put( "-real.infinity" ); return; } if( 'A' == tok() ) { match( "AN" ); put( "real.nan" ); return; } tbuf[tlen++] = '-'; } tbuf[tlen++] = '0'; tbuf[tlen++] = 'X'; if( !isHexDigit( tok() ) ) error( "Expected hex digit" ); tbuf[tlen++] = tok(); tbuf[tlen++] = '.'; next(); while( isHexDigit( tok() ) ) { tbuf[tlen++] = tok(); next(); } match( 'P' ); tbuf[tlen++] = 'p'; if( 'N' == tok() ) { tbuf[tlen++] = '-'; next(); } else { tbuf[tlen++] = '+'; } while( isDigit( tok() ) ) { tbuf[tlen++] = tok(); next(); } tbuf[tlen] = 0; debug(info) printf( "got (%s)\n", tbuf.ptr ); val = strtold( tbuf.ptr, null ); tlen = snprintf( tbuf.ptr, tbuf.length, "%#Lg", val ); debug(info) printf( "converted (%.*s)\n", cast(int) tlen, tbuf.ptr ); put( tbuf[0 .. tlen] ); } /* LName: Number Name Name: Namestart Namestart Namechars Namestart: _ Alpha Namechar: Namestart Digit Namechars: Namechar Namechar Namechars */ void parseLName() { debug(trace) printf( "parseLName+\n" ); debug(trace) scope(success) printf( "parseLName-\n" ); auto n = decodeNumber(); if( !n || n > buf.length || n > buf.length - pos ) error( "LName must be at least 1 character" ); if( '_' != tok() && !isAlpha( tok() ) ) error( "Invalid character in LName" ); foreach(char e; buf[pos + 1 .. pos + n] ) { if( '_' != e && !isAlpha( e ) && !isDigit( e ) ) error( "Invalid character in LName" ); } put( buf[pos .. pos + n] ); pos += n; } /* Type: Shared Const Immutable Wild TypeArray TypeVector TypeStaticArray TypeAssocArray TypePointer TypeFunction TypeIdent TypeClass TypeStruct TypeEnum TypeTypedef TypeDelegate TypeNone TypeVoid TypeByte TypeUbyte TypeShort TypeUshort TypeInt TypeUint TypeLong TypeUlong TypeFloat TypeDouble TypeReal TypeIfloat TypeIdouble TypeIreal TypeCfloat TypeCdouble TypeCreal TypeBool TypeChar TypeWchar TypeDchar TypeTuple Shared: O Type Const: x Type Immutable: y Type Wild: Ng Type TypeArray: A Type TypeVector: Nh Type TypeStaticArray: G Number Type TypeAssocArray: H Type Type TypePointer: P Type TypeFunction: CallConvention FuncAttrs Arguments ArgClose Type TypeIdent: I LName TypeClass: C LName TypeStruct: S LName TypeEnum: E LName TypeTypedef: T LName TypeDelegate: D TypeFunction TypeNone: n TypeVoid: v TypeByte: g TypeUbyte: h TypeShort: s TypeUshort: t TypeInt: i TypeUint: k TypeLong: l TypeUlong: m TypeFloat: f TypeDouble: d TypeReal: e TypeIfloat: o TypeIdouble: p TypeIreal: j TypeCfloat: q TypeCdouble: r TypeCreal: c TypeBool: b TypeChar: a TypeWchar: u TypeDchar: w TypeTuple: B Number Arguments */ char[] parseType( char[] name = null ) { static immutable string[23] primitives = [ "char", // a "bool", // b "creal", // c "double", // d "real", // e "float", // f "byte", // g "ubyte", // h "int", // i "ireal", // j "uint", // k "long", // l "ulong", // m null, // n "ifloat", // o "idouble", // p "cfloat", // q "cdouble", // r "short", // s "ushort", // t "wchar", // u "void", // v "dchar", // w ]; debug(trace) printf( "parseType+\n" ); debug(trace) scope(success) printf( "parseType-\n" ); auto beg = len; auto t = tok(); switch( t ) { case 'O': // Shared (O Type) next(); put( "shared(" ); parseType(); put( ")" ); pad( name ); return dst[beg .. len]; case 'x': // Const (x Type) next(); put( "const(" ); parseType(); put( ")" ); pad( name ); return dst[beg .. len]; case 'y': // Immutable (y Type) next(); put( "immutable(" ); parseType(); put( ")" ); pad( name ); return dst[beg .. len]; case 'N': next(); switch( tok() ) { case 'g': // Wild (Ng Type) next(); // TODO: Anything needed here? put( "inout(" ); parseType(); put( ")" ); return dst[beg .. len]; case 'h': // TypeVector (Nh Type) next(); put( "__vector(" ); parseType(); put( ")" ); return dst[beg .. len]; default: error(); assert( 0 ); } case 'A': // TypeArray (A Type) next(); parseType(); put( "[]" ); pad( name ); return dst[beg .. len]; case 'G': // TypeStaticArray (G Number Type) next(); auto num = sliceNumber(); parseType(); put( "[" ); put( num ); put( "]" ); pad( name ); return dst[beg .. len]; case 'H': // TypeAssocArray (H Type Type) next(); // skip t1 auto tx = parseType(); parseType(); put( "[" ); put( tx ); put( "]" ); pad( name ); return dst[beg .. len]; case 'P': // TypePointer (P Type) next(); parseType(); put( "*" ); pad( name ); return dst[beg .. len]; case 'F': case 'U': case 'W': case 'V': case 'R': // TypeFunction return parseTypeFunction( name ); case 'I': // TypeIdent (I LName) case 'C': // TypeClass (C LName) case 'S': // TypeStruct (S LName) case 'E': // TypeEnum (E LName) case 'T': // TypeTypedef (T LName) next(); parseQualifiedName(); pad( name ); return dst[beg .. len]; case 'D': // TypeDelegate (D TypeFunction) next(); parseTypeFunction( name, IsDelegate.yes ); return dst[beg .. len]; case 'n': // TypeNone (n) next(); // TODO: Anything needed here? return dst[beg .. len]; case 'B': // TypeTuple (B Number Arguments) next(); // TODO: Handle this. return dst[beg .. len]; default: if (t >= 'a' && t <= 'w') { next(); put( primitives[cast(size_t)(t - 'a')] ); pad( name ); return dst[beg .. len]; } error(); return null; } } /* TypeFunction: CallConvention FuncAttrs Arguments ArgClose Type CallConvention: F // D U // C W // Windows V // Pascal R // C++ FuncAttrs: FuncAttr FuncAttr FuncAttrs FuncAttr: empty FuncAttrPure FuncAttrNothrow FuncAttrProperty FuncAttrRef FuncAttrTrusted FuncAttrSafe FuncAttrPure: Na FuncAttrNothrow: Nb FuncAttrRef: Nc FuncAttrProperty: Nd FuncAttrTrusted: Ne FuncAttrSafe: Nf FuncAttrNogc: Ni Arguments: Argument Argument Arguments Argument: Argument2 M Argument2 // scope Argument2: Type J Type // out K Type // ref L Type // lazy ArgClose X // variadic T t,...) style Y // variadic T t...) style Z // not variadic */ void parseCallConvention() { // CallConvention switch( tok() ) { case 'F': // D next(); break; case 'U': // C next(); put( "extern (C) " ); break; case 'W': // Windows next(); put( "extern (Windows) " ); break; case 'V': // Pascal next(); put( "extern (Pascal) " ); break; case 'R': // C++ next(); put( "extern (C++) " ); break; default: error(); } } void parseFuncAttr() { // FuncAttrs breakFuncAttrs: while( 'N' == tok() ) { next(); switch( tok() ) { case 'a': // FuncAttrPure next(); put( "pure " ); continue; case 'b': // FuncAttrNoThrow next(); put( "nothrow " ); continue; case 'c': // FuncAttrRef next(); put( "ref " ); continue; case 'd': // FuncAttrProperty next(); put( "@property " ); continue; case 'e': // FuncAttrTrusted next(); put( "@trusted " ); continue; case 'f': // FuncAttrSafe next(); put( "@safe " ); continue; case 'g': case 'h': // NOTE: The inout parameter type is represented as "Ng". // The vector parameter type is represented as "Nh". // These make it look like a FuncAttr, but infact // if we see these, then we know we're really in // the parameter list. Rewind and break. pos--; break breakFuncAttrs; case 'i': // FuncAttrNogc next(); put( "@nogc " ); continue; default: error(); } } } void parseFuncArguments() { // Arguments for( size_t n = 0; true; n++ ) { debug(info) printf( "tok (%c)\n", tok() ); switch( tok() ) { case 'X': // ArgClose (variadic T t...) style) next(); put( "..." ); return; case 'Y': // ArgClose (variadic T t,...) style) next(); put( ", ..." ); return; case 'Z': // ArgClose (not variadic) next(); return; default: break; } if( n ) { put( ", " ); } if( 'M' == tok() ) { next(); put( "scope " ); } switch( tok() ) { case 'J': // out (J Type) next(); put( "out " ); parseType(); continue; case 'K': // ref (K Type) next(); put( "ref " ); parseType(); continue; case 'L': // lazy (L Type) next(); put( "lazy " ); parseType(); continue; default: parseType(); } } } enum IsDelegate { no, yes } // returns the argument list with the left parenthesis, but not the right char[] parseTypeFunction( char[] name = null, IsDelegate isdg = IsDelegate.no ) { debug(trace) printf( "parseTypeFunction+\n" ); debug(trace) scope(success) printf( "parseTypeFunction-\n" ); auto beg = len; parseCallConvention(); parseFuncAttr(); beg = len; put( "(" ); scope(success) { put( ")" ); auto t = len; parseType(); put( " " ); if( name.length ) { if( !contains( dst[0 .. len], name ) ) put( name ); else if( shift( name ).ptr != name.ptr ) { beg -= name.length; t -= name.length; } } else if( IsDelegate.yes == isdg ) put( "delegate" ); else put( "function" ); shift( dst[beg .. t] ); } parseFuncArguments(); return dst[beg..len]; } static bool isCallConvention( char ch ) { switch( ch ) { case 'F', 'U', 'V', 'W', 'R': return true; default: return false; } } /* Value: n Number i Number N Number e HexFloat c HexFloat c HexFloat A Number Value... HexFloat: NAN INF NINF N HexDigits P Exponent HexDigits P Exponent Exponent: N Number Number HexDigits: HexDigit HexDigit HexDigits HexDigit: Digit A B C D E F */ void parseValue( char[] name = null, char type = '\0' ) { debug(trace) printf( "parseValue+\n" ); debug(trace) scope(success) printf( "parseValue-\n" ); // printf( "*** %c\n", tok() ); switch( tok() ) { case 'n': next(); put( "null" ); return; case 'i': next(); if( '0' > tok() || '9' < tok() ) error( "Number expected" ); goto case; case '0': .. case '9': parseIntegerValue( name, type ); return; case 'N': next(); put( "-" ); parseIntegerValue( name, type ); return; case 'e': next(); parseReal(); return; case 'c': next(); parseReal(); put( "+" ); match( 'c' ); parseReal(); put( "i" ); return; case 'a': case 'w': case 'd': char t = tok(); next(); auto n = decodeNumber(); match( '_' ); put( "\"" ); foreach (i; 0..n) { auto a = ascii2hex( tok() ); next(); auto b = ascii2hex( tok() ); next(); auto v = cast(char)((a << 4) | b); put( __ctfe ? [v] : (cast(char*) &v)[0 .. 1] ); } put( "\"" ); if( 'a' != t ) put( __ctfe ? [t] : (cast(char*) &t)[0 .. 1] ); return; case 'A': // NOTE: This is kind of a hack. An associative array literal // [1:2, 3:4] is represented as HiiA2i1i2i3i4, so the type // is "Hii" and the value is "A2i1i2i3i4". Thus the only // way to determine that this is an AA value rather than an // array value is for the caller to supply the type char. // Hopefully, this will change so that the value is // "H2i1i2i3i4", rendering this unnecesary. if( 'H' == type ) goto LassocArray; // A Number Value... // An array literal. Value is repeated Number times. next(); put( "[" ); auto n = decodeNumber(); foreach( i; 0 .. n ) { if( i != 0 ) put( ", " ); parseValue(); } put( "]" ); return; case 'H': LassocArray: // H Number Value... // An associative array literal. Value is repeated 2*Number times. next(); put( "[" ); auto n = decodeNumber(); foreach( i; 0 .. n ) { if( i != 0 ) put( ", " ); parseValue(); put(":"); parseValue(); } put( "]" ); return; case 'S': // S Number Value... // A struct literal. Value is repeated Number times. next(); if( name.length ) put( name ); put( "(" ); auto n = decodeNumber(); foreach( i; 0 .. n ) { if( i != 0 ) put( ", " ); parseValue(); } put( ")" ); return; default: error(); } } void parseIntegerValue( char[] name = null, char type = '\0' ) { debug(trace) printf( "parseIntegerValue+\n" ); debug(trace) scope(success) printf( "parseIntegerValue-\n" ); switch( type ) { case 'a': // char case 'u': // wchar case 'w': // dchar { auto val = sliceNumber(); auto num = decodeNumber( val ); switch( num ) { case '\'': put( "'\\''" ); return; // \", \? case '\\': put( "'\\\\'" ); return; case '\a': put( "'\\a'" ); return; case '\b': put( "'\\b'" ); return; case '\f': put( "'\\f'" ); return; case '\n': put( "'\\n'" ); return; case '\r': put( "'\\r'" ); return; case '\t': put( "'\\t'" ); return; case '\v': put( "'\\v'" ); return; default: switch( type ) { case 'a': if( num >= 0x20 && num < 0x7F ) { put( "'" ); char[1] tmp = cast(char)num; put( tmp[] ); put( "'" ); return; } put( "\\x" ); putAsHex( num, 2 ); return; case 'u': put( "'\\u" ); putAsHex( num, 4 ); put( "'" ); return; case 'w': put( "'\\U" ); putAsHex( num, 8 ); put( "'" ); return; default: assert( 0 ); } } } case 'b': // bool put( decodeNumber() ? "true" : "false" ); return; case 'h', 't', 'k': // ubyte, ushort, uint put( sliceNumber() ); put( "u" ); return; case 'l': // long put( sliceNumber() ); put( "L" ); return; case 'm': // ulong put( sliceNumber() ); put( "uL" ); return; default: put( sliceNumber() ); return; } } /* TemplateArgs: TemplateArg TemplateArg TemplateArgs TemplateArg: T Type V Type Value S LName */ void parseTemplateArgs() { debug(trace) printf( "parseTemplateArgs+\n" ); debug(trace) scope(success) printf( "parseTemplateArgs-\n" ); for( size_t n = 0; true; n++ ) { switch( tok() ) { case 'T': next(); if( n ) put( ", " ); parseType(); continue; case 'V': next(); if( n ) put( ", " ); // NOTE: In the few instances where the type is actually // desired in the output it should precede the value // generated by parseValue, so it is safe to simply // decrement len and let put/append do its thing. char t = tok(); // peek at type for parseValue char[] name; silent( name = parseType() ); parseValue( name, t ); continue; case 'S': next(); if( n ) put( ", " ); if ( mayBeMangledNameArg() ) { auto l = len; auto p = pos; try { debug(trace) printf( "may be mangled name arg\n" ); parseMangledNameArg(); continue; } catch( ParseException e ) { len = l; pos = p; debug(trace) printf( "not a mangled name arg\n" ); } } parseQualifiedName(); continue; default: return; } } } bool mayBeMangledNameArg() { debug(trace) printf( "mayBeMangledNameArg+\n" ); debug(trace) scope(success) printf( "mayBeMangledNameArg-\n" ); auto p = pos; scope(exit) pos = p; auto n = decodeNumber(); return n >= 4 && pos < buf.length && '_' == buf[pos++] && pos < buf.length && 'D' == buf[pos++] && isDigit(buf[pos]); } void parseMangledNameArg() { debug(trace) printf( "parseMangledNameArg+\n" ); debug(trace) scope(success) printf( "parseMangledNameArg-\n" ); auto n = decodeNumber(); parseMangledName( n ); } /* TemplateInstanceName: Number __T LName TemplateArgs Z */ void parseTemplateInstanceName() { debug(trace) printf( "parseTemplateInstanceName+\n" ); debug(trace) scope(success) printf( "parseTemplateInstanceName-\n" ); auto sav = pos; scope(failure) pos = sav; auto n = decodeNumber(); auto beg = pos; match( "__T" ); parseLName(); put( "!(" ); parseTemplateArgs(); match( 'Z' ); if( pos - beg != n ) error( "Template name length mismatch" ); put( ")" ); } bool mayBeTemplateInstanceName() { debug(trace) printf( "mayBeTemplateInstanceName+\n" ); debug(trace) scope(success) printf( "mayBeTemplateInstanceName-\n" ); auto p = pos; scope(exit) pos = p; auto n = decodeNumber(); return n >= 5 && pos < buf.length && '_' == buf[pos++] && pos < buf.length && '_' == buf[pos++] && pos < buf.length && 'T' == buf[pos++]; } /* SymbolName: LName TemplateInstanceName */ void parseSymbolName() { debug(trace) printf( "parseSymbolName+\n" ); debug(trace) scope(success) printf( "parseSymbolName-\n" ); // LName -> Number // TemplateInstanceName -> Number "__T" switch( tok() ) { case '0': .. case '9': if( mayBeTemplateInstanceName() ) { auto t = len; try { debug(trace) printf( "may be template instance name\n" ); parseTemplateInstanceName(); return; } catch( ParseException e ) { debug(trace) printf( "not a template instance name\n" ); len = t; } } parseLName(); return; default: error(); } } /* QualifiedName: SymbolName SymbolName QualifiedName */ char[] parseQualifiedName() { debug(trace) printf( "parseQualifiedName+\n" ); debug(trace) scope(success) printf( "parseQualifiedName-\n" ); size_t beg = len; size_t n = 0; do { if( n++ ) put( "." ); parseSymbolName(); if( isCallConvention( tok() ) ) { // try to demangle a function, in case we are pointing to some function local auto prevpos = pos; auto prevlen = len; // we don't want calling convention and attributes in the qualified name parseCallConvention(); parseFuncAttr(); len = prevlen; put( "(" ); parseFuncArguments(); put( ")" ); if( !isDigit( tok() ) ) // voldemort types don't have a return type on the function { auto funclen = len; parseType(); if( !isDigit( tok() ) ) { // not part of a qualified name, so back up pos = prevpos; len = prevlen; } else len = funclen; // remove return type from qualified name } } } while( isDigit( tok() ) ); return dst[beg .. len]; } /* MangledName: _D QualifiedName Type _D QualifiedName M Type */ void parseMangledName(size_t n = 0) { debug(trace) printf( "parseMangledName+\n" ); debug(trace) scope(success) printf( "parseMangledName-\n" ); char[] name = null; auto end = pos + n; eat( '_' ); match( 'D' ); do { name = parseQualifiedName(); debug(info) printf( "name (%.*s)\n", cast(int) name.length, name.ptr ); if( 'M' == tok() ) next(); // has 'this' pointer if( AddType.yes == addType ) parseType( name ); if( pos >= buf.length || (n != 0 && pos >= n) ) return; put( "." ); } while( true ); } char[] doDemangle(alias FUNC)() { while( true ) { try { debug(info) printf( "demangle(%.*s)\n", cast(int) buf.length, buf.ptr ); FUNC(); return dst[0 .. len]; } catch( OverflowException e ) { debug(trace) printf( "overflow... restarting\n" ); auto a = minBufSize; auto b = 2 * dst.length; auto newsz = a < b ? b : a; debug(info) printf( "growing dst to %lu bytes\n", newsz ); dst.length = newsz; pos = len = 0; continue; } catch( ParseException e ) { debug(info) { auto msg = e.toString(); printf( "error: %.*s\n", cast(int) msg.length, msg.ptr ); } if( dst.length < buf.length ) dst.length = buf.length; dst[0 .. buf.length] = buf[]; return dst[0 .. buf.length]; } } } char[] demangleName() { return doDemangle!parseMangledName(); } char[] demangleType() { return doDemangle!parseType(); } } /** * Demangles D mangled names. If it is not a D mangled name, it returns its * argument name. * * Params: * buf = The string to demangle. * dst = An optional destination buffer. * * Returns: * The demangled name or the original string if the name is not a mangled D * name. */ char[] demangle( const(char)[] buf, char[] dst = null ) { //return Demangle(buf, dst)(); auto d = Demangle(buf, dst); return d.demangleName(); } /** * Demangles a D mangled type. * * Params: * buf = The string to demangle. * dst = An optional destination buffer. * * Returns: * The demangled type name or the original string if the name is not a * mangled D type. */ char[] demangleType( const(char)[] buf, char[] dst = null ) { auto d = Demangle(buf, dst); return d.demangleType(); } /** * Mangles a D symbol. * * Params: * T = The type of the symbol. * fqn = The fully qualified name of the symbol. * dst = An optional destination buffer. * * Returns: * The mangled name for a symbols of type T and the given fully * qualified name. */ char[] mangle(T)(const(char)[] fqn, char[] dst = null) @safe pure nothrow { static size_t numToString(char[] dst, size_t val) @safe pure nothrow { char[20] buf = void; size_t i = buf.length; do { buf[--i] = cast(char)(val % 10 + '0'); } while (val /= 10); immutable len = buf.length - i; if (dst.length >= len) dst[0 .. len] = buf[i .. $]; return len; } static struct DotSplitter { @safe pure nothrow: const(char)[] s; @property bool empty() const { return !s.length; } @property const(char)[] front() const { immutable i = indexOfDot(); return i == -1 ? s[0 .. $] : s[0 .. i]; } void popFront() { immutable i = indexOfDot(); s = i == -1 ? s[$ .. $] : s[i+1 .. $]; } private ptrdiff_t indexOfDot() const { foreach (i, c; s) if (c == '.') return i; return -1; } } size_t len = "_D".length; foreach (comp; DotSplitter(fqn)) len += numToString(null, comp.length) + comp.length; len += T.mangleof.length; if (dst.length < len) dst.length = len; size_t i = "_D".length; dst[0 .. i] = "_D"; foreach (comp; DotSplitter(fqn)) { i += numToString(dst[i .. $], comp.length); dst[i .. i + comp.length] = comp[]; i += comp.length; } dst[i .. i + T.mangleof.length] = T.mangleof[]; i += T.mangleof.length; return dst[0 .. i]; } /// unittest { assert(mangle!int("a.b") == "_D1a1bi"); assert(mangle!(char[])("test.foo") == "_D4test3fooAa"); assert(mangle!(int function(int))("a.b") == "_D1a1bPFiZi"); } unittest { static assert(mangle!int("a.b") == "_D1a1bi"); auto buf = new char[](10); buf = mangle!int("a.b", buf); assert(buf == "_D1a1bi"); buf = mangle!(char[])("test.foo", buf); assert(buf == "_D4test3fooAa"); buf = mangle!(real delegate(int))("modµ.dg"); assert(buf == "_D5modµ2dgDFiZe", buf); } /** * Mangles a D function. * * Params: * T = function pointer type. * fqn = The fully qualified name of the symbol. * dst = An optional destination buffer. * * Returns: * The mangled name for a function with function pointer type T and * the given fully qualified name. */ char[] mangleFunc(T:FT*, FT)(const(char)[] fqn, char[] dst = null) @safe pure nothrow if (is(FT == function)) { static if (isExternD!FT) { return mangle!FT(fqn, dst); } else static if (hasPlainMangling!FT) { dst.length = fqn.length; dst[] = fqn[]; return dst; } else static if (isExternCPP!FT) { static assert(0, "Can't mangle extern(C++) functions."); } else { static assert(0, "Can't mangle function with unknown linkage ("~FT.stringof~")."); } } /// unittest { assert(mangleFunc!(int function(int))("a.b") == "_D1a1bFiZi"); assert(mangleFunc!(int function(Object))("object.Object.opEquals") == "_D6object6Object8opEqualsFC6ObjectZi"); } unittest { int function(lazy int[], ...) fp; assert(mangle!(typeof(fp))("demangle.test") == "_D8demangle4testPFLAiYi"); assert(mangle!(typeof(*fp))("demangle.test") == "_D8demangle4testFLAiYi"); } private template isExternD(FT) if (is(FT == function)) { enum isExternD = FT.mangleof[0] == 'F'; } private template isExternCPP(FT) if (is(FT == function)) { enum isExternCPP = FT.mangleof[0] == 'R'; } private template hasPlainMangling(FT) if (is(FT == function)) { enum c = FT.mangleof[0]; // C || Pascal || Windows enum hasPlainMangling = c == 'U' || c == 'V' || c == 'W'; } unittest { static extern(D) void fooD(); static extern(C) void fooC(); static extern(Pascal) void fooP(); static extern(Windows) void fooW(); static extern(C++) void fooCPP(); bool check(FT)(bool isD, bool isCPP, bool isPlain) { return isExternD!FT == isD && isExternCPP!FT == isCPP && hasPlainMangling!FT == isPlain; } static assert(check!(typeof(fooD))(true, false, false)); static assert(check!(typeof(fooC))(false, false, true)); static assert(check!(typeof(fooP))(false, false, true)); static assert(check!(typeof(fooW))(false, false, true)); static assert(check!(typeof(fooCPP))(false, true, false)); static assert(__traits(compiles, mangleFunc!(typeof(&fooD))(""))); static assert(__traits(compiles, mangleFunc!(typeof(&fooC))(""))); static assert(__traits(compiles, mangleFunc!(typeof(&fooP))(""))); static assert(__traits(compiles, mangleFunc!(typeof(&fooW))(""))); static assert(!__traits(compiles, mangleFunc!(typeof(&fooCPP))(""))); } version(unittest) { immutable string[2][] table = [ ["printf", "printf"], ["_foo", "_foo"], ["_D88", "_D88"], ["_D4test3fooAa", "char[] test.foo"], ["_D8demangle8demangleFAaZAa", "char[] demangle.demangle(char[])"], ["_D6object6Object8opEqualsFC6ObjectZi", "int object.Object.opEquals(Object)"], ["_D4test2dgDFiYd", "double test.dg(int, ...)"], //["_D4test58__T9factorialVde67666666666666860140VG5aa5_68656c6c6fVPvnZ9factorialf", ""], //["_D4test101__T9factorialVde67666666666666860140Vrc9a999999999999d9014000000000000000c00040VG5aa5_68656c6c6fVPvnZ9factorialf", ""], ["_D4test34__T3barVG3uw3_616263VG3wd3_646566Z1xi", "int test.bar!(\"abc\"w, \"def\"d).x"], ["_D8demangle4testFLC6ObjectLDFLiZiZi", "int demangle.test(lazy Object, lazy int delegate(lazy int))"], ["_D8demangle4testFAiXi", "int demangle.test(int[]...)"], ["_D8demangle4testFAiYi", "int demangle.test(int[], ...)"], ["_D8demangle4testFLAiXi", "int demangle.test(lazy int[]...)"], ["_D8demangle4testFLAiYi", "int demangle.test(lazy int[], ...)"], ["_D6plugin8generateFiiZAya", "immutable(char)[] plugin.generate(int, int)"], ["_D6plugin8generateFiiZAxa", "const(char)[] plugin.generate(int, int)"], ["_D6plugin8generateFiiZAOa", "shared(char)[] plugin.generate(int, int)"], ["_D8demangle3fnAFZv3fnBMFZv", "void demangle.fnA().fnB()"], ["_D8demangle4mainFZv1S3fnCFZv", "void demangle.main().S.fnC()"], ["_D8demangle4mainFZv1S3fnDMFZv", "void demangle.main().S.fnD()"], ["_D8demangle20__T2fnVAiA4i1i2i3i4Z2fnFZv", "void demangle.fn!([1, 2, 3, 4]).fn()"], ["_D8demangle10__T2fnVi1Z2fnFZv", "void demangle.fn!(1).fn()"], ["_D8demangle26__T2fnVS8demangle1SS2i1i2Z2fnFZv", "void demangle.fn!(demangle.S(1, 2)).fn()"], ["_D8demangle13__T2fnVeeNANZ2fnFZv", "void demangle.fn!(real.nan).fn()"], ["_D8demangle14__T2fnVeeNINFZ2fnFZv", "void demangle.fn!(-real.infinity).fn()"], ["_D8demangle13__T2fnVeeINFZ2fnFZv", "void demangle.fn!(real.infinity).fn()"], ["_D8demangle21__T2fnVHiiA2i1i2i3i4Z2fnFZv", "void demangle.fn!([1:2, 3:4]).fn()"], ["_D8demangle2fnFNgiZNgi", "inout(int) demangle.fn(inout(int))"], ["_D8demangle29__T2fnVa97Va9Va0Vu257Vw65537Z2fnFZv", "void demangle.fn!('a', '\\t', \\x00, '\\u0101', '\\U00010001').fn()"], ["_D2gc11gctemplates56__T8mkBitmapTS3std5range13__T4iotaTiTiZ4iotaFiiZ6ResultZ8mkBitmapFNbNiNfPmmZv", "nothrow @nogc @safe void gc.gctemplates.mkBitmap!(std.range.iota!(int, int).iota(int, int).Result).mkBitmap(ulong*, ulong)"], ["_D8serenity9persister6Sqlite70__T15SqlitePersisterTS8serenity9persister6Sqlite11__unittest6FZv4TestZ15SqlitePersister12__T7opIndexZ7opIndexMFmZS8serenity9persister6Sqlite11__unittest6FZv4Test", "serenity.persister.Sqlite.__unittest6().Test serenity.persister.Sqlite.SqlitePersister!(serenity.persister.Sqlite.__unittest6().Test).SqlitePersister.opIndex!().opIndex(ulong)"], ["_D8bug100274mainFZv5localMFZi","int bug10027.main().local()"], ["_D8demangle4testFNhG16gZv", "void demangle.test(__vector(byte[16]))"], ["_D8demangle4testFNhG8sZv", "void demangle.test(__vector(short[8]))"], ["_D8demangle4testFNhG4iZv", "void demangle.test(__vector(int[4]))"], ["_D8demangle4testFNhG2lZv", "void demangle.test(__vector(long[2]))"], ["_D8demangle4testFNhG4fZv", "void demangle.test(__vector(float[4]))"], ["_D8demangle4testFNhG2dZv", "void demangle.test(__vector(double[2]))"], ["_D8demangle4testFNhG4fNhG4fZv", "void demangle.test(__vector(float[4]), __vector(float[4]))"], ["_D8bug1119234__T3fooS23_D8bug111924mainFZ3bariZ3fooMFZv","void bug11192.foo!(int bug11192.main().bar).foo()"], ]; template staticIota(int x) { template Seq(T...){ alias T Seq; } static if (x == 0) alias Seq!() staticIota; else alias Seq!(staticIota!(x - 1), x - 1) staticIota; } } unittest { foreach( i, name; table ) { auto r = demangle( name[0] ); assert( r == name[1], "demangled \"" ~ name[0] ~ "\" as \"" ~ r ~ "\" but expected \"" ~ name[1] ~ "\""); } foreach( i; staticIota!(table.length) ) { enum r = demangle( table[i][0] ); static assert( r == table[i][1], "demangled \"" ~ table[i][0] ~ "\" as \"" ~ r ~ "\" but expected \"" ~ table[i][1] ~ "\""); } } /* * */ string decodeDmdString( const(char)[] ln, ref size_t p ) { string s; uint zlen, zpos; // decompress symbol while( p < ln.length ) { int ch = cast(ubyte) ln[p++]; if( (ch & 0xc0) == 0xc0 ) { zlen = (ch & 0x7) + 1; zpos = ((ch >> 3) & 7) + 1; // + zlen; if( zpos > s.length ) break; s ~= s[$ - zpos .. $ - zpos + zlen]; } else if( ch >= 0x80 ) { if( p >= ln.length ) break; int ch2 = cast(ubyte) ln[p++]; zlen = (ch2 & 0x7f) | ((ch & 0x38) << 4); if( p >= ln.length ) break; int ch3 = cast(ubyte) ln[p++]; zpos = (ch3 & 0x7f) | ((ch & 7) << 7); if( zpos > s.length ) break; s ~= s[$ - zpos .. $ - zpos + zlen]; } else if( Demangle.isAlpha(cast(char)ch) || Demangle.isDigit(cast(char)ch) || ch == '_' ) s ~= cast(char) ch; else { p--; break; } } return s; }
D
// Written in the D programming language. /** This package implements the hash-based message authentication code (_HMAC) algorithm as defined in $(HTTP tools.ietf.org/html/rfc2104, RFC2104). See also the corresponding $(HTTP en.wikipedia.org/wiki/Hash-based_message_authentication_code, Wikipedia article). $(SCRIPT inhibitQuickIndex = 1;) Macros: License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0). Source: $(PHOBOSSRC std/digest/_hmac.d) */ module std.digest.hmac; import std.digest.digest : isDigest, hasBlockSize, isDigestibleRange, DigestType; import std.meta : allSatisfy; /** * Template API HMAC implementation. * * This implements an _HMAC over the digest H. If H doesn't provide * information about the block size, it can be supplied explicitly using * the second overload. * * This type conforms to $(REF isDigest, std,digest.digest). */ version(StdDdoc) /// Computes an HMAC over data read from stdin. @safe unittest { import std.stdio, std.digest.hmac, std.digest.sha; import std.string : representation; auto secret = "secret".representation; stdin.byChunk(4096) .hmac!SHA1(secret) .toHexString!(LetterCase.lower) .writeln; } template HMAC(H) if (isDigest!H && hasBlockSize!H) { alias HMAC = HMAC!(H, H.blockSize); } /** * Overload of HMAC to be used if H doesn't provide information about its * block size. */ struct HMAC(H, size_t hashBlockSize) if (hashBlockSize % 8 == 0) { enum blockSize = hashBlockSize; private H digest; private ubyte[blockSize / 8] key; /** * Constructs the HMAC digest using the specified secret. */ this(scope const(ubyte)[] secret) { // if secret is too long, shorten it by computing its hash typeof(digest.finish()) buffer = void; if (secret.length > blockSize / 8) { digest.start(); digest.put(secret); buffer = digest.finish(); secret = buffer[]; } // if secret is too short, it will be padded with zeroes // (the key buffer is already zero-initialized) import std.algorithm.mutation : copy; secret.copy(key[]); start(); } /// @safe pure nothrow @nogc unittest { import std.digest.sha, std.digest.hmac; import std.string : representation; auto hmac = HMAC!SHA1("My s3cR3T keY".representation); hmac.put("Hello, world".representation); static immutable expected = [ 130, 32, 235, 44, 208, 141, 150, 232, 211, 214, 162, 195, 188, 127, 52, 89, 100, 68, 90, 216]; assert(hmac.finish() == expected); } /** * Reinitializes the digest, making it ready for reuse. * * Note: * The constructor leaves the digest in an initialized state, so that this * method only needs to be called if an unfinished digest is to be reused. * * Returns: * A reference to the digest for convenient chaining. */ ref HMAC!(H, blockSize) start() return { ubyte[blockSize / 8] ipad = void; foreach (immutable i; 0 .. blockSize / 8) ipad[i] = key[i] ^ 0x36; digest.start(); digest.put(ipad[]); return this; } /// @safe pure nothrow @nogc unittest { import std.digest.sha, std.digest.hmac; import std.string : representation; string data1 = "Hello, world", data2 = "Hola mundo"; auto hmac = HMAC!SHA1("My s3cR3T keY".representation); hmac.put(data1.representation); hmac.start(); // reset digest hmac.put(data2.representation); // start over static immutable expected = [ 122, 151, 232, 240, 249, 80, 19, 178, 186, 77, 110, 23, 208, 52, 11, 88, 34, 151, 192, 255]; assert(hmac.finish() == expected); } /** * Feeds a piece of data into the hash computation. This method allows the * type to be used as an $(REF OutputRange, std,range). * * Returns: * A reference to the digest for convenient chaining. */ ref HMAC!(H, blockSize) put(in ubyte[] data...) return { digest.put(data); return this; } /// @safe pure nothrow @nogc unittest { import std.digest.sha, std.digest.hmac; import std.string : representation; string data1 = "Hello, world", data2 = "Hola mundo"; auto hmac = HMAC!SHA1("My s3cR3T keY".representation); hmac.put(data1.representation) .put(data2.representation); static immutable expected = [ 197, 57, 52, 3, 13, 194, 13, 36, 117, 228, 8, 11, 111, 51, 165, 3, 123, 31, 251, 113]; assert(hmac.finish() == expected); } /** * Resets the digest and returns the finished hash. */ DigestType!H finish() { ubyte[blockSize / 8] opad = void; foreach (immutable i; 0 .. blockSize / 8) opad[i] = key[i] ^ 0x5c; auto tmp = digest.finish(); digest.start(); digest.put(opad[]); digest.put(tmp); auto result = digest.finish(); start(); // reset the digest return result; } /// @safe pure nothrow @nogc unittest { import std.digest.sha, std.digest.hmac; import std.string : representation; string data1 = "Hello, world", data2 = "Hola mundo"; auto hmac = HMAC!SHA1("My s3cR3T keY".representation); auto digest = hmac.put(data1.representation) .put(data2.representation) .finish(); static immutable expected = [ 197, 57, 52, 3, 13, 194, 13, 36, 117, 228, 8, 11, 111, 51, 165, 3, 123, 31, 251, 113]; assert(digest == expected); } } template hmac(H) if (isDigest!H && hasBlockSize!H) { alias hmac = hmac!(H, H.blockSize); } template hmac(H, size_t blockSize) if (isDigest!H) { /** * Constructs an HMAC digest with the specified secret. * * Returns: * An instance of HMAC that can be fed data as desired, and finished * to compute the final hash when done. */ auto hmac(scope const(ubyte)[] secret) { return HMAC!(H, blockSize)(secret); } /// @safe pure nothrow @nogc unittest { import std.digest.sha, std.digest.hmac; import std.string : representation; string data1 = "Hello, world", data2 = "Hola mundo"; auto digest = hmac!SHA1("My s3cR3T keY".representation) .put(data1.representation) .put(data2.representation) .finish(); static immutable expected = [ 197, 57, 52, 3, 13, 194, 13, 36, 117, 228, 8, 11, 111, 51, 165, 3, 123, 31, 251, 113]; assert(digest == expected); } /** * Computes an _HMAC digest over the given range of data with the * specified secret. * * Returns: * The final _HMAC hash. */ DigestType!H hmac(T...)(scope T data, scope const(ubyte)[] secret) if (allSatisfy!(isDigestibleRange, typeof(data))) { import std.algorithm.mutation : copy; auto hash = HMAC!(H, blockSize)(secret); foreach (datum; data) copy(datum, &hash); return hash.finish(); } /// @system pure nothrow @nogc unittest { import std.digest.sha, std.digest.hmac; import std.string : representation; import std.algorithm.iteration : map; string data = "Hello, world"; auto digest = data.representation .map!(a => cast(ubyte)(a+1)) .hmac!SHA1("My s3cR3T keY".representation); static assert(is(typeof(digest) == ubyte[20])); static immutable expected = [ 163, 208, 118, 179, 216, 93, 17, 10, 84, 200, 87, 104, 244, 111, 136, 214, 167, 210, 58, 10]; assert(digest == expected); } } version(unittest) { import std.digest.digest : toHexString, LetterCase; alias hex = toHexString!(LetterCase.lower); } @safe pure nothrow @nogc unittest { import std.digest.md : MD5; import std.range : isOutputRange; static assert(isOutputRange!(HMAC!MD5, ubyte)); static assert(isDigest!(HMAC!MD5)); static assert(hasBlockSize!(HMAC!MD5) && HMAC!MD5.blockSize == MD5.blockSize); } @system pure nothrow unittest { import std.digest.md : MD5; import std.digest.sha : SHA1, SHA256; ubyte[] nada; assert(hmac!MD5 (nada, nada).hex == "74e6f7298a9c2d168935f58c001bad88"); assert(hmac!SHA1 (nada, nada).hex == "fbdb1d1b18aa6c08324b7d64b71fb76370690e1d"); assert(hmac!SHA256(nada, nada).hex == "b613679a0814d9ec772f95d778c35fc5ff1697c493715653c6c712144292c5ad"); import std.string : representation; auto key = "key".representation, long_key = ("012345678901234567890123456789012345678901" ~"234567890123456789012345678901234567890123456789").representation, data1 = "The quick brown fox ".representation, data2 = "jumps over the lazy dog".representation, data = data1 ~ data2; assert(data.hmac!MD5 (key).hex == "80070713463e7749b90c2dc24911e275"); assert(data.hmac!SHA1 (key).hex == "de7c9b85b8b78aa6bc8a7a36f70a90701c9db4d9"); assert(data.hmac!SHA256(key).hex == "f7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8"); assert(data.hmac!MD5 (long_key).hex == "e1728d68e05beae186ea768561963778"); assert(data.hmac!SHA1 (long_key).hex == "560d3cd77316e57ab4bba0c186966200d2b37ba3"); assert(data.hmac!SHA256(long_key).hex == "a1b0065a5d1edd93152c677e1bc1b1e3bc70d3a76619842e7f733f02b8135c04"); assert(hmac!MD5 (key).put(data1).put(data2).finish == data.hmac!MD5 (key)); assert(hmac!SHA1 (key).put(data1).put(data2).finish == data.hmac!SHA1 (key)); assert(hmac!SHA256(key).put(data1).put(data2).finish == data.hmac!SHA256(key)); }
D
module engine.thirdparty.dbox.dynamics.b2timestep; import core.stdc.stdlib; import core.stdc.float_; import core.stdc.string; import engine.thirdparty.dbox.common; import engine.thirdparty.dbox.collision; import engine.thirdparty.dbox.dynamics; import engine.thirdparty.dbox.dynamics.contacts; import engine.thirdparty.dbox.dynamics.joints; /* * Copyright (c) 2006-2011 Erin Catto http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. */ // #ifndef B2_TIME_STEP_H // #define B2_TIME_STEP_H import engine.thirdparty.dbox.common.b2math; /// Profiling data. Times are in milliseconds. struct b2Profile { float32 step = 0; float32 collide = 0; float32 solve = 0; float32 solveInit = 0; float32 solveVelocity = 0; float32 solvePosition = 0; float32 broadphase = 0; float32 solveTOI = 0; } /// This is an internal structure. struct b2TimeStep { float32 dt = 0; // time step float32 inv_dt = 0; // inverse time step (0 if dt == 0). float32 dtRatio = 0; // dt * inv_dt0 int32 velocityIterations; int32 positionIterations; bool warmStarting; } /// This is an internal structure. struct b2Position { b2Vec2 c; float32 a = 0; } /// This is an internal structure. struct b2Velocity { b2Vec2 v; float32 w = 0; } /// Solver Data struct b2SolverData { b2TimeStep step; b2Position* positions; b2Velocity* velocities; } // #endif
D
module chipmunk.cpTransform; import chipmunk.chipmunk_types; import chipmunk.cpBB; import chipmunk.cpVect; extern (C): /// Identity transform matrix. static const cpTransform cpTransformIdentity = {1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f}; /// Construct a new transform matrix. /// (a, b) is the x basis vector. /// (c, d) is the y basis vector. /// (tx, ty) is the translation. static cpTransform cpTransformNew(cpFloat a, cpFloat b, cpFloat c, cpFloat d, cpFloat tx, cpFloat ty) { cpTransform t = {a, b, c, d, tx, ty}; return t; } /// Construct a new transform matrix in transposed order. static cpTransform cpTransformNewTranspose(cpFloat a, cpFloat c, cpFloat tx, cpFloat b, cpFloat d, cpFloat ty) { cpTransform t = {a, b, c, d, tx, ty}; return t; } /// Get the inverse of a transform matrix. static cpTransform cpTransformInverse(cpTransform t) { cpFloat inv_det = 1.0/(t.a*t.d - t.c*t.b); return cpTransformNewTranspose( t.d*inv_det, -t.c*inv_det, (t.c*t.ty - t.tx*t.d)*inv_det, -t.b*inv_det, t.a*inv_det, (t.tx*t.b - t.a*t.ty)*inv_det ); } /// Multiply two transformation matrices. static cpTransform cpTransformMult(cpTransform t1, cpTransform t2) { return cpTransformNewTranspose( t1.a*t2.a + t1.c*t2.b, t1.a*t2.c + t1.c*t2.d, t1.a*t2.tx + t1.c*t2.ty + t1.tx, t1.b*t2.a + t1.d*t2.b, t1.b*t2.c + t1.d*t2.d, t1.b*t2.tx + t1.d*t2.ty + t1.ty ); } /// Transform an absolute point. (i.e. a vertex) static cpVect cpTransformPoint(cpTransform t, cpVect p) { return cpv(t.a*p.x + t.c*p.y + t.tx, t.b*p.x + t.d*p.y + t.ty); } /// Transform a vector (i.e. a normal) static cpVect cpTransformVect(cpTransform t, cpVect v) { return cpv(t.a*v.x + t.c*v.y, t.b*v.x + t.d*v.y); } /// Transform a cpBB. static cpBB cpTransformbBB(cpTransform t, cpBB bb) { cpVect center = cpBBCenter(bb); cpFloat hw = (bb.r - bb.l)*0.5; cpFloat hh = (bb.t - bb.b)*0.5; cpFloat a = t.a*hw, b = t.c*hh, d = t.b*hw, e = t.d*hh; cpFloat hw_max = cpfmax(cpfabs(a + b), cpfabs(a - b)); cpFloat hh_max = cpfmax(cpfabs(d + e), cpfabs(d - e)); return cpBBNewForExtents(cpTransformPoint(t, center), hw_max, hh_max); } /// Create a transation matrix. static cpTransform cpTransformTranslate(cpVect translate) { return cpTransformNewTranspose( 1.0, 0.0, translate.x, 0.0, 1.0, translate.y ); } /// Create a scale matrix. static cpTransform cpTransformScale(cpFloat scaleX, cpFloat scaleY) { return cpTransformNewTranspose( scaleX, 0.0, 0.0, 0.0, scaleY, 0.0 ); } /// Create a rotation matrix. static cpTransform cpTransformRotate(cpFloat radians) { cpVect rot = cpvforangle(radians); return cpTransformNewTranspose( rot.x, -rot.y, 0.0, rot.y, rot.x, 0.0 ); } /// Create a rigid transformation matrix. (transation + rotation) static cpTransform cpTransformRigid(cpVect translate, cpFloat radians) { cpVect rot = cpvforangle(radians); return cpTransformNewTranspose( rot.x, -rot.y, translate.x, rot.y, rot.x, translate.y ); } /// Fast inverse of a rigid transformation matrix. static cpTransform cpTransformRigidInverse(cpTransform t) { return cpTransformNewTranspose( t.d, -t.c, (t.c*t.ty - t.tx*t.d), -t.b, t.a, (t.tx*t.b - t.a*t.ty) ); } //MARK: Miscellaneous (but useful) transformation matrices. // See source for documentation... static cpTransform cpTransformWrap(cpTransform outer, cpTransform inner) { return cpTransformMult(cpTransformInverse(outer), cpTransformMult(inner, outer)); } static cpTransform cpTransformWrapInverse(cpTransform outer, cpTransform inner) { return cpTransformMult(outer, cpTransformMult(inner, cpTransformInverse(outer))); } static cpTransform cpTransformOrtho(cpBB bb) { return cpTransformNewTranspose( 2.0/(bb.r - bb.l), 0.0, -(bb.r + bb.l)/(bb.r - bb.l), 0.0, 2.0/(bb.t - bb.b), -(bb.t + bb.b)/(bb.t - bb.b) ); } static cpTransform cpTransformBoneScale(cpVect v0, cpVect v1) { cpVect d = cpvsub(v1, v0); return cpTransformNewTranspose( d.x, -d.y, v0.x, d.y, d.x, v0.y ); } static cpTransform cpTransformAxialScale(cpVect axis, cpVect pivot, cpFloat scale) { cpFloat A = axis.x*axis.y*(scale - 1.0); cpFloat B = cpvdot(axis, pivot)*(1.0 - scale); return cpTransformNewTranspose( scale*axis.x*axis.x + axis.y*axis.y, A, axis.x*B, A, axis.x*axis.x + scale*axis.y*axis.y, axis.y*B ); }
D
/Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Cards.build/Objects-normal/x86_64/Card.o : /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/Card.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardArticle.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardGroupSliding.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardGroup.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/DetailViewController.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/LayoutHelper.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardPlayer.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/Animator.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardHighlight.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/radibarq/developer/NasaInArabic/build/Debug-iphonesimulator/Player/Player.framework/Modules/Player.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/radibarq/developer/NasaInArabic/Pods/Target\ Support\ Files/Player/Player-umbrella.h /Users/radibarq/developer/NasaInArabic/Pods/Target\ Support\ Files/Cards/Cards-umbrella.h /Users/radibarq/developer/NasaInArabic/build/Debug-iphonesimulator/Player/Player.framework/Headers/Player-Swift.h /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Cards.build/unextended-module.modulemap /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Player.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Cards.build/Objects-normal/x86_64/Card~partial.swiftmodule : /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/Card.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardArticle.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardGroupSliding.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardGroup.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/DetailViewController.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/LayoutHelper.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardPlayer.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/Animator.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardHighlight.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/radibarq/developer/NasaInArabic/build/Debug-iphonesimulator/Player/Player.framework/Modules/Player.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/radibarq/developer/NasaInArabic/Pods/Target\ Support\ Files/Player/Player-umbrella.h /Users/radibarq/developer/NasaInArabic/Pods/Target\ Support\ Files/Cards/Cards-umbrella.h /Users/radibarq/developer/NasaInArabic/build/Debug-iphonesimulator/Player/Player.framework/Headers/Player-Swift.h /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Cards.build/unextended-module.modulemap /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Player.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Cards.build/Objects-normal/x86_64/Card~partial.swiftdoc : /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/Card.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardArticle.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardGroupSliding.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardGroup.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/DetailViewController.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/LayoutHelper.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardPlayer.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/Animator.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardHighlight.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/radibarq/developer/NasaInArabic/build/Debug-iphonesimulator/Player/Player.framework/Modules/Player.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/radibarq/developer/NasaInArabic/Pods/Target\ Support\ Files/Player/Player-umbrella.h /Users/radibarq/developer/NasaInArabic/Pods/Target\ Support\ Files/Cards/Cards-umbrella.h /Users/radibarq/developer/NasaInArabic/build/Debug-iphonesimulator/Player/Player.framework/Headers/Player-Swift.h /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Cards.build/unextended-module.modulemap /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Player.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/Users/macosx/Desktop/IOS-OBJ/ViberDemo/build/Pods.build/Debug-iphonesimulator/ObjectMapper.build/Objects-normal/x86_64/ImmutableMappable.o : /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/FromJSON.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/ToJSON.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/Mappable.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/ImmutableMappable.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/TransformType.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/TransformOf.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/URLTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/DataTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/CodableTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/DateTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/ISO8601DateTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/EnumTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/NSDecimalNumberTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/DateFormatterTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/HexColorTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/CustomDateFormatTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/DictionaryTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/Map.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/Mapper.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/MapError.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/Operators.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/TransformOperators.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/EnumOperators.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/IntegerOperators.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Target\ Support\ Files/ObjectMapper/ObjectMapper-umbrella.h /Users/macosx/Desktop/IOS-OBJ/ViberDemo/build/Pods.build/Debug-iphonesimulator/ObjectMapper.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/macosx/Desktop/IOS-OBJ/ViberDemo/build/Pods.build/Debug-iphonesimulator/ObjectMapper.build/Objects-normal/x86_64/ImmutableMappable~partial.swiftmodule : /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/FromJSON.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/ToJSON.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/Mappable.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/ImmutableMappable.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/TransformType.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/TransformOf.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/URLTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/DataTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/CodableTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/DateTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/ISO8601DateTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/EnumTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/NSDecimalNumberTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/DateFormatterTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/HexColorTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/CustomDateFormatTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/DictionaryTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/Map.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/Mapper.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/MapError.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/Operators.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/TransformOperators.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/EnumOperators.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/IntegerOperators.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Target\ Support\ Files/ObjectMapper/ObjectMapper-umbrella.h /Users/macosx/Desktop/IOS-OBJ/ViberDemo/build/Pods.build/Debug-iphonesimulator/ObjectMapper.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/macosx/Desktop/IOS-OBJ/ViberDemo/build/Pods.build/Debug-iphonesimulator/ObjectMapper.build/Objects-normal/x86_64/ImmutableMappable~partial.swiftdoc : /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/FromJSON.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/ToJSON.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/Mappable.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/ImmutableMappable.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/TransformType.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/TransformOf.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/URLTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/DataTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/CodableTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/DateTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/ISO8601DateTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/EnumTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/NSDecimalNumberTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/DateFormatterTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/HexColorTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/CustomDateFormatTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/DictionaryTransform.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/Map.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/Mapper.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/MapError.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/Operators.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/TransformOperators.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/EnumOperators.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/ObjectMapper/Sources/IntegerOperators.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Target\ Support\ Files/ObjectMapper/ObjectMapper-umbrella.h /Users/macosx/Desktop/IOS-OBJ/ViberDemo/build/Pods.build/Debug-iphonesimulator/ObjectMapper.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
instance BDT_1062_Bandit_L(Npc_Default) { name[0] = NAME_Bandit; guild = GIL_BDT; id = 1062; voice = 10; flags = 0; npcType = NPCTYPE_AMBIENT; aivar[AIV_EnemyOverride] = TRUE; B_SetAttributesToChapter(self,1); fight_tactic = FAI_HUMAN_COWARD; EquipItem(self,ItMw_1h_Bau_Mace); B_CreateAmbientInv(self); B_SetNpcVisual(self,MALE,"Hum_Head_Fatbald",Face_N_NormalBart12,BodyTex_N,ITAR_Leather_L); Mdl_SetModelFatness(self,0); Mdl_ApplyOverlayMds(self,"Humans_Relaxed.mds"); B_GiveNpcTalents(self); B_SetFightSkills(self,30); daily_routine = Rtn_Start_1062; }; func void Rtn_Start_1062() { TA_Sit_Campfire(0,0,12,0,"NW_CASTLEMINE_TOWER_CAMPFIRE_04"); TA_Stand_WP(12,0,0,0,"NW_CASTLEMINE_TOWER_CAMPFIRE_04"); };
D
module perfontain.shader.types; import perfontain.opengl; struct ShaderInfo { uint bit; uint type; string name; } static immutable shaderInfo = [ ShaderInfo(GL_VERTEX_SHADER_BIT_EXT, GL_VERTEX_SHADER, `vertex`), ShaderInfo(GL_FRAGMENT_SHADER_BIT_EXT, GL_FRAGMENT_SHADER, `fragment`), ShaderInfo(GL_COMPUTE_SHADER_BIT, GL_COMPUTE_SHADER, `compute`), ]; ubyte shaderType(string name) { foreach (idx, e; shaderInfo) if (e.name == name) return cast(ubyte)idx; assert(false, name); }
D
/Volumes/cogzidel/Aravind/git/AnimationsSwift/DerivedData/Swift-Animations/Build/Intermediates.noindex/Swift-Animations.build/Debug-iphonesimulator/Swift-Animations.build/Objects-normal/x86_64/ClassModel.o : /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AppleSystemService.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIColor+Convenience.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIView+CreateFrame.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/GCDSemaphore.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AppDelegate.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/GCDQueue.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/EasingValue.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ComplexEasingValue.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ControllerBaseViewConfig.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/Easing.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/Math.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TimeModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TapAnimationModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ClassModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/StudentModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ShowTextModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/FontFamilyModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CountDownTimeCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ListItemCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CustomCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TableViewTapAnimationCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/StudentInfoCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/FontCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ShowTextCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CustomCollectionViewCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AlertViewCollectionViewCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ControllerItem.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIFont+extension.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/GCDGroup.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CATransform3DM34Controller.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/BaseCustomNavigationController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TapCellAnimationController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TableViewTapAnimationController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/HeaderViewTapAnimationController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/SystemFontInfoController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CountDownTimerController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/PageFlipEffectController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TransformFadeViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/LiveImageViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ScrollImageViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/NormalTitleViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/BaseCustomViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/RootNavigationViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CircleAnimationViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/MixedColorProgressViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/FullTitleVisualEffectViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AlertViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AnimationsListViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/GCDTimer.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/DefaultNotificationCenter.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CellDataAdapter.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIColor+HexColor.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/StoredValueTypeIs.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIView+SetRect.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/String+StringHeight.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UILabel+SizeToFit.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/NotificationEvent.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIView+ScreensShot.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TranformFadeView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/LiveImageView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/MessageView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/BaseMessageView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CircleView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/BackgroundLineView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/RotateView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ShowLoadingView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/MoreInfoView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ClassHeaderView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/FontFamilyHeaderView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CustomHeaderFooterView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AlertView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIWindow+keyWindow.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIView+Glow.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/GCDQueuePriority.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIView+AnimationProperty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Volumes/cogzidel/Aravind/git/AnimationsSwift/DerivedData/Swift-Animations/Build/Intermediates.noindex/Swift-Animations.build/Debug-iphonesimulator/Swift-Animations.build/Objects-normal/x86_64/ClassModel~partial.swiftmodule : /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AppleSystemService.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIColor+Convenience.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIView+CreateFrame.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/GCDSemaphore.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AppDelegate.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/GCDQueue.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/EasingValue.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ComplexEasingValue.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ControllerBaseViewConfig.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/Easing.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/Math.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TimeModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TapAnimationModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ClassModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/StudentModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ShowTextModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/FontFamilyModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CountDownTimeCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ListItemCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CustomCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TableViewTapAnimationCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/StudentInfoCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/FontCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ShowTextCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CustomCollectionViewCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AlertViewCollectionViewCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ControllerItem.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIFont+extension.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/GCDGroup.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CATransform3DM34Controller.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/BaseCustomNavigationController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TapCellAnimationController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TableViewTapAnimationController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/HeaderViewTapAnimationController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/SystemFontInfoController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CountDownTimerController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/PageFlipEffectController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TransformFadeViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/LiveImageViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ScrollImageViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/NormalTitleViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/BaseCustomViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/RootNavigationViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CircleAnimationViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/MixedColorProgressViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/FullTitleVisualEffectViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AlertViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AnimationsListViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/GCDTimer.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/DefaultNotificationCenter.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CellDataAdapter.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIColor+HexColor.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/StoredValueTypeIs.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIView+SetRect.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/String+StringHeight.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UILabel+SizeToFit.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/NotificationEvent.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIView+ScreensShot.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TranformFadeView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/LiveImageView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/MessageView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/BaseMessageView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CircleView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/BackgroundLineView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/RotateView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ShowLoadingView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/MoreInfoView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ClassHeaderView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/FontFamilyHeaderView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CustomHeaderFooterView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AlertView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIWindow+keyWindow.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIView+Glow.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/GCDQueuePriority.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIView+AnimationProperty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Volumes/cogzidel/Aravind/git/AnimationsSwift/DerivedData/Swift-Animations/Build/Intermediates.noindex/Swift-Animations.build/Debug-iphonesimulator/Swift-Animations.build/Objects-normal/x86_64/ClassModel~partial.swiftdoc : /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AppleSystemService.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIColor+Convenience.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIView+CreateFrame.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/GCDSemaphore.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AppDelegate.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/GCDQueue.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/EasingValue.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ComplexEasingValue.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ControllerBaseViewConfig.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/Easing.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/Math.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TimeModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TapAnimationModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ClassModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/StudentModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ShowTextModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/FontFamilyModel.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CountDownTimeCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ListItemCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CustomCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TableViewTapAnimationCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/StudentInfoCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/FontCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ShowTextCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CustomCollectionViewCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AlertViewCollectionViewCell.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ControllerItem.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIFont+extension.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/GCDGroup.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CATransform3DM34Controller.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/BaseCustomNavigationController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TapCellAnimationController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TableViewTapAnimationController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/HeaderViewTapAnimationController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/SystemFontInfoController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CountDownTimerController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/PageFlipEffectController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TransformFadeViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/LiveImageViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ScrollImageViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/NormalTitleViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/BaseCustomViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/RootNavigationViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CircleAnimationViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/MixedColorProgressViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/FullTitleVisualEffectViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AlertViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AnimationsListViewController.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/GCDTimer.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/DefaultNotificationCenter.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CellDataAdapter.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIColor+HexColor.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/StoredValueTypeIs.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIView+SetRect.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/String+StringHeight.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UILabel+SizeToFit.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/NotificationEvent.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIView+ScreensShot.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/TranformFadeView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/LiveImageView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/MessageView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/BaseMessageView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CircleView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/BackgroundLineView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/RotateView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ShowLoadingView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/MoreInfoView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/ClassHeaderView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/FontFamilyHeaderView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/CustomHeaderFooterView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/AlertView.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIWindow+keyWindow.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIView+Glow.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/GCDQueuePriority.swift /Volumes/cogzidel/Aravind/git/AnimationsSwift/Swift-Animations/UIView+AnimationProperty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
D
instance STRF_1157_Leiche (Npc_Default) { // ------ NSC ------ name = NAME_Straefling; guild = GIL_STRF; id = 1157; voice = 8; flags = 0; npctype = NPCTYPE_OCMAIN; // ------ Attribute ------ // ------ Attribute ------ slf.attribute[ATR_STRENGTH] = 10; slf.attribute[ATR_DEXTERITY] = 10; slf.attribute[ATR_MANA_MAX] = 0; slf.attribute[ATR_MANA] = 0; slf.attribute[ATR_HITPOINTS_MAX] = 1; slf.attribute[ATR_HITPOINTS] = 1; // ------ Kampf-Taktik ------ fight_tactic = FAI_HUMAN_COWARD; // ------ Equippte Waffen ------ // ------ Inventory ------ B_CreateAmbientInv (self); // ------ visuals ------ B_SetNpcVisual (self, MALE, "Hum_Head_Bald", Face_L_Tough02, BodyTex_L, ITAR_BAU_L); Mdl_SetModelFatness (self, 2); Mdl_ApplyOverlayMds (self, "Humans_Tired.mds"); // ------ NSC-relevante Talente vergeben ------ B_GiveNpcTalents (self); // ------ Kampf-Talente ------ B_SetFightSkills (self, 15); // ------ TA anmelden ------ daily_routine = Rtn_Start_1157; }; FUNC VOID Rtn_Start_1157 () { TA_Stand_Guarding (08,00,23,00,"OW_MINE3_LEICHE_08"); TA_Stand_Guarding (23,00,08,00,"OW_MINE3_LEICHE_08"); };
D
#char changed def change_char(str1): char = str1[0] str1 = str1.replace(char, '$') str1 = char + str1[1:] return str1 print(change_char('restart')) #to remove nth index def remove_char(str, n): first_part = str[:n] last_part = str[n+1:] return first_part + last_part print(remove_char('Python', 0)) print(remove_char('Python', 3)) print(remove_char('Python', 5)) #to get single string def chars_mix_up(a, b): new_a = b[:2] + a[2:] new_b = a[:2] + b[2:] return new_a + ' ' + new_b print(chars_mix_up('abc', 'xyz')) #count the number of characters def char_frequency(str1): dict = {} for n in str1: keys = dict.keys() if n in keys: dict[n] += 1 else: dict[n] = 1 return dict print(char_frequency('google.com'))
D
/Users/leonardo15043/Documents/GitHub/TypeAlert/build/TypeAlert.build/Debug-iphonesimulator/TypeAlert.build/Objects-normal/x86_64/ViewController.o : /Users/leonardo15043/Documents/GitHub/TypeAlert/TypeAlert/AppDelegate.swift /Users/leonardo15043/Documents/GitHub/TypeAlert/TypeAlert/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/leonardo15043/Documents/GitHub/TypeAlert/build/TypeAlert.build/Debug-iphonesimulator/TypeAlert.build/Objects-normal/x86_64/ViewController~partial.swiftmodule : /Users/leonardo15043/Documents/GitHub/TypeAlert/TypeAlert/AppDelegate.swift /Users/leonardo15043/Documents/GitHub/TypeAlert/TypeAlert/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/leonardo15043/Documents/GitHub/TypeAlert/build/TypeAlert.build/Debug-iphonesimulator/TypeAlert.build/Objects-normal/x86_64/ViewController~partial.swiftdoc : /Users/leonardo15043/Documents/GitHub/TypeAlert/TypeAlert/AppDelegate.swift /Users/leonardo15043/Documents/GitHub/TypeAlert/TypeAlert/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/** * Authors: Frank Benoit <keinfarbton@googlemail.com> */ module java.io.FileInputStream; import java.lang; import java.io.File; import java.io.InputStream; version(Tango){ import TangoFile = tango.io.device.File; } else { // Phobos static import std.stream; } public class FileInputStream : java.io.InputStream.InputStream { alias java.io.InputStream.InputStream.read read; version(Tango){ private TangoFile.File conduit; } else { // Phobos private std.stream.File conduit; } private ubyte[] buffer; private int buf_pos; private int buf_size; private static const int BUFFER_SIZE = 0x10000; private bool eof; public this ( String name ){ version(Tango){ conduit = new TangoFile.File( name ); } else { // Phobos conduit = new std.stream.File( name ); } buffer = new ubyte[]( BUFFER_SIZE ); } public this ( java.io.File.File file ){ implMissing( __FILE__, __LINE__ ); version(Tango){ conduit = new TangoFile.File( file.getAbsolutePath(), TangoFile.File.ReadExisting ); } else { // Phobos conduit = new std.stream.File( file.getAbsolutePath(), std.stream.FileMode.In ); } buffer = new ubyte[]( BUFFER_SIZE ); } public override int read(){ version(Tango){ if( eof ){ return -1; } try{ if( buf_pos == buf_size ){ buf_pos = 0; buf_size = conduit.input.read( buffer ); } if( buf_size <= 0 ){ eof = true; return -1; } assert( buf_pos < BUFFER_SIZE, Format( "{0} {1}", buf_pos, buf_size ) ); assert( buf_size <= BUFFER_SIZE ); int res = cast(int) buffer[ buf_pos ]; buf_pos++; return res; } catch( IOException e ){ eof = true; return -1; } } else { // Phobos if( eof ){ return -1; } try{ if( buf_pos == buf_size ){ buf_pos = 0; buf_size = conduit.read( buffer ); } if( buf_size <= 0 ){ eof = true; return -1; } assert( buf_pos < BUFFER_SIZE, Format( "{} {}", buf_pos, buf_size ) ); assert( buf_size <= BUFFER_SIZE ); int res = cast(int) buffer[ buf_pos ]; buf_pos++; return res; } catch( IOException e ){ eof = true; return -1; } } } override public long skip( long n ){ implMissing( __FILE__, __LINE__ ); return 0L; } override public int available(){ implMissing( __FILE__, __LINE__ ); return 0; } public override void close(){ conduit.close(); } }
D
/** A package supplier, able to get some packages to the local FS. Copyright: © 2012 Matthias Dondorff License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Matthias Dondorff */ module dub.packagesupplier; import dub.dependency; import dub.internal.vibecompat.core.log; import dub.internal.vibecompat.core.file; import dub.internal.vibecompat.data.json; import dub.internal.vibecompat.inet.url; import dub.internal.vibecompat.inet.urltransfer; import dub.utils; import std.file; import std.exception; import std.zip; import std.conv; /// Supplies packages, this is done by supplying the latest possible version /// which is available. interface PackageSupplier { /// path: absolute path to store the package (usually in a zip format) void retrievePackage(const Path path, const string packageId, const Dependency dep); /// returns the metadata for the package Json getPackageDescription(const string packageId, const Dependency dep); } class FSPackageSupplier : PackageSupplier { private { Path m_path; } this(Path root) { m_path = root; } void retrievePackage(const Path path, const string packageId, const Dependency dep) { enforce(path.absolute); logInfo("Storing package '"~packageId~"', version requirements: %s", dep); auto filename = bestPackageFile(packageId, dep); enforce(existsFile(filename)); copyFile(filename, path); } Json getPackageDescription(const string packageId, const Dependency dep) { auto filename = bestPackageFile(packageId, dep); return jsonFromZip(filename, "package.json"); } private Path bestPackageFile( const string packageId, const Dependency dep) const { Version bestVersion = Version(Version.RELEASE); foreach(DirEntry d; dirEntries(m_path.toNativeString(), packageId~"*", SpanMode.shallow)) { Path p = Path(d.name); logTrace("Entry: %s", p); enforce(to!string(p.head)[$-4..$] == ".zip"); string vers = to!string(p.head)[packageId.length+1..$-4]; logTrace("Version string: "~vers); Version v = Version(vers); if(v > bestVersion && dep.matches(v) ) { bestVersion = v; } } auto fileName = m_path ~ (packageId ~ "_" ~ to!string(bestVersion) ~ ".zip"); if(bestVersion == Version.RELEASE || !existsFile(fileName)) throw new Exception("No matching package found"); logDebug("Found best matching package: '%s'", fileName); return fileName; } }
D
instance Mod_1910_SMK_SchwarzerKrieger_OM (Npc_Default) { //-------- primary data -------- name = NAME_schwarzerkrieger; npctype = NPCTYPE_om_schwarzerkrieger; guild = GIL_kdf; level = 15; voice = 7; id = 1910; //-------- abilities -------- B_SetAttributesToChapter (self, 5); EquipItem (self, ItMw_BeliarsRache); //-------- visuals -------- // animations Mdl_SetVisual (self,"HUMANS.MDS"); Mdl_ApplyOverlayMds (self,"Humans_Militia.mds"); // body mesh ,bdytex,skin,head mesh ,headtex,teethtex,ruestung Mdl_SetVisualBody (self,"hum_body_Naked0", 0, 3,"Hum_Head_Fighter", 1, 1, itar_smk_l); fight_tactic = FAI_HUMAN_STRONG; //-------- Talente -------- Npc_SetTalentSkill (self, NPC_TALENT_1H,2); Npc_SetTalentSkill (self, NPC_TALENT_2H,1); Npc_SetTalentSkill (self, NPC_TALENT_CROSSBOW,1); //-------- inventory -------- //-------------Daily Routine------------- daily_routine = Rtn_start_1910; }; FUNC VOID Rtn_start_1910 () { TA_Stand_Guarding (00,00,08,00,"OM_CAVE1_16"); TA_Stand_Guarding (08,00,24,00,"OM_CAVE1_16"); };
D
// Written in the D programming language. /** This module contains base fonts access interface and common implementation. Font - base class for fonts. FontManager - base class for font managers - provides access to available fonts. Actual implementation is: dlangui.graphics.ftfonts - FreeType based font manager. dlangui.platforms.windows.w32fonts - Win32 API based font manager. To enable OpenGL support, build with version(USE_OPENGL); See_Also: dlangui.graphics.drawbuf, DrawBuf, drawbuf, drawbuf.html Synopsis: ---- import dlangui.graphics.fonts; // find suitable font of size 25, normal, preferrable Arial, or, if not available, any SansSerif font FontRef font = FontManager.instance.getFont(25, FontWeight.Normal, false, FontFamily.SansSerif, "Arial"); dstring sampleText = "Sample text to draw"d; // measure text string width and height (one line) Point sz = font.textSize(sampleText); // draw red text at center of DrawBuf buf font.drawText(buf, buf.width / 2 - sz.x/2, buf.height / 2 - sz.y / 2, sampleText, 0xFF0000); ---- Copyright: Vadim Lopatin, 2014 License: Boost License 1.0 Authors: Vadim Lopatin, coolreader.org@gmail.com */ module dlangui.graphics.fonts; public import dlangui.core.config; public import dlangui.graphics.drawbuf; public import dlangui.core.types; public import dlangui.core.logger; private import dlangui.widgets.styles; import std.algorithm; /// font families enum enum FontFamily : ubyte { /// Unknown / not set / does not matter Unspecified, /// Sans Serif font, e.g. Arial SansSerif, /// Serif font, e.g. Times New Roman Serif, /// Fantasy font Fantasy, /// Cursive font Cursive, /// Monospace font (fixed pitch font), e.g. Courier New MonoSpace } /// font weight constants (0..1000) enum FontWeight : int { /// normal font weight Normal = 400, /// bold font Bold = 800 } immutable dchar UNICODE_SOFT_HYPHEN_CODE = 0x00ad; immutable dchar UNICODE_ZERO_WIDTH_SPACE = 0x200b; immutable dchar UNICODE_NO_BREAK_SPACE = 0x00a0; immutable dchar UNICODE_HYPHEN = 0x2010; immutable dchar UNICODE_NB_HYPHEN = 0x2011; /// custom character properties - for char-by-char drawing of text string with different character color and style struct CustomCharProps { uint color; uint textFlags; this(uint color) { this.color = color; this.textFlags = 0; } this(uint color, bool underline, bool strikeThrough = false) { this.color = color; if (underline) this.textFlags |= TextFlag.Underline; if (strikeThrough) this.textFlags |= TextFlag.StrikeThrough; } } static if (ENABLE_OPENGL) { private __gshared void function(uint id) _glyphDestroyCallback; /** * get glyph destroy callback (to cleanup OpenGL caches) * * Used for resource management. Usually you don't have to call it manually. */ @property void function(uint id) glyphDestroyCallback() { return _glyphDestroyCallback; } /** * Set glyph destroy callback (to cleanup OpenGL caches) * This callback is used to tell OpenGL glyph cache that glyph is not more used - to let OpenGL glyph cache delete texture if all glyphs in it are no longer used. * * Used for resource management. Usually you don't have to call it manually. */ @property void glyphDestroyCallback(void function(uint id) callback) { _glyphDestroyCallback = callback; } private __gshared uint _nextGlyphId; /** * ID generator for glyphs * * Generates next glyph ID. Unique IDs are being used to control OpenGL glyph cache items lifetime. * * Used for resource management. Usually you don't have to call it manually. */ uint nextGlyphId() { return _nextGlyphId++; } } /// constant for measureText maxWidth paramenter - to tell that all characters of text string should be measured. immutable int MAX_WIDTH_UNSPECIFIED = int.max; /** Instance of font with specific size, weight, face, etc. * * Allows to measure text string and draw it on DrawBuf * * Use FontManager.instance.getFont() to retrieve font instance. */ class Font : RefCountedObject { /// returns font size (as requested from font engine) abstract @property int size(); /// returns actual font height including interline space abstract @property int height(); /// returns font weight abstract @property int weight(); /// returns baseline offset abstract @property int baseline(); /// returns true if font is italic abstract @property bool italic(); /// returns font face name abstract @property string face(); /// returns font family abstract @property FontFamily family(); /// returns true if font object is not yet initialized / loaded abstract @property bool isNull(); /// return true if antialiasing is enabled, false if not enabled @property bool antialiased() { return size >= FontManager.instance.minAnitialiasedFontSize; } private int _fixedFontDetection = -1; /// returns true if font has fixed pitch (all characters have equal width) @property bool isFixed() { if (_fixedFontDetection < 0) { if (charWidth('i') == charWidth(' ') && charWidth('M') == charWidth('i')) _fixedFontDetection = 1; else _fixedFontDetection = 0; } return _fixedFontDetection == 1; } private int _spaceWidth = -1; /// returns true if font is fixed @property int spaceWidth() { if (_spaceWidth < 0) { _spaceWidth = charWidth(' '); if (_spaceWidth <= 0) _spaceWidth = charWidth('0'); if (_spaceWidth <= 0) _spaceWidth = size; } return _spaceWidth; } /// returns character width int charWidth(dchar ch) { Glyph * g = getCharGlyph(ch); return !g ? 0 : g.width; } /******************************************************************************************* * Measure text string, return accumulated widths[] (distance to end of n-th character), returns number of measured chars. * * Supports Tab character processing and processing of menu item labels like '&File'. * * Params: * text = text string to measure * widths = output buffer to put measured widths (widths[i] will be set to cumulative widths text[0..i]) * maxWidth = maximum width to measure - measure is stopping if max width is reached (pass MAX_WIDTH_UNSPECIFIED to measure all characters) * tabSize = tabulation size, in number of spaces * tabOffset = when string is drawn not from left position, use to move tab stops left/right * textFlags = TextFlag bit set - to control underline, hotkey label processing, etc... * Returns: * number of characters measured (may be less than text.length if maxWidth is reached) ******************************************************************************************/ int measureText(const dchar[] text, ref int[] widths, int maxWidth = MAX_WIDTH_UNSPECIFIED, int tabSize = 4, int tabOffset = 0, uint textFlags = 0) { if (text.length == 0) return 0; const dchar * pstr = text.ptr; uint len = cast(uint)text.length; if (widths.length < len) widths.length = len + 1; int x = 0; int charsMeasured = 0; int * pwidths = widths.ptr; int tabWidth = spaceWidth * tabSize; // width of full tab in pixels tabOffset = tabOffset % tabWidth; if (tabOffset < 0) tabOffset += tabWidth; foreach(int i; 0 .. len) { //auto measureStart = std.datetime.Clock.currAppTick; dchar ch = pstr[i]; if (ch == '\t') { // measure tab int tabPosition = (x + tabWidth - tabOffset) / tabWidth * tabWidth + tabOffset; while (tabPosition < x + spaceWidth) tabPosition += tabWidth; pwidths[i] = tabPosition; charsMeasured = i + 1; x = tabPosition; continue; } else if (ch == '&' && (textFlags & (TextFlag.UnderlineHotKeys | TextFlag.HotKeys | TextFlag.UnderlineHotKeysWhenAltPressed))) { pwidths[i] = x; continue; // skip '&' in hot key when measuring } Glyph * glyph = getCharGlyph(pstr[i], true); // TODO: what is better //auto measureEnd = std.datetime.Clock.currAppTick; //auto duration = measureEnd - measureStart; //if (duration.length > 10) // Log.d("ft measureText took ", duration.length, " ticks"); if (glyph is null) { // if no glyph, use previous width - treat as zero width pwidths[i] = x; continue; } int w = x + glyph.width; // using advance int w2 = x + glyph.originX + glyph.correctedBlackBoxX; // using black box if (w < w2) // choose bigger value w = w2; pwidths[i] = w; x += glyph.width; charsMeasured = i + 1; if (x > maxWidth) break; } return charsMeasured; } private int[] _textSizeBuffer; // buffer to reuse while measuring strings - to avoid GC /************************************************************************* * Measure text string as single line, returns width and height * * Params: * text = text string to measure * maxWidth = maximum width - measure is stopping if max width is reached * tabSize = tabulation size, in number of spaces * tabOffset = when string is drawn not from left position, use to move tab stops left/right * textFlags = TextFlag bit set - to control underline, hotkey label processing, etc... ************************************************************************/ Point textSize(const dchar[] text, int maxWidth = MAX_WIDTH_UNSPECIFIED, int tabSize = 4, int tabOffset = 0, uint textFlags = 0) { if (_textSizeBuffer.length < text.length + 1) _textSizeBuffer.length = text.length + 1; int charsMeasured = measureText(text, _textSizeBuffer, maxWidth, tabSize, tabOffset, textFlags); if (charsMeasured < 1) return Point(0,0); return Point(_textSizeBuffer[charsMeasured - 1], height); } /***************************************************************************************** * Draw text string to buffer. * * Params: * buf = graphics buffer to draw text to * x = x coordinate to draw first character at * y = y coordinate to draw first character at * text = text string to draw * color = color for drawing of glyphs * tabSize = tabulation size, in number of spaces * tabOffset = when string is drawn not from left position, use to move tab stops left/right * textFlags = set of TextFlag bit fields ****************************************************************************************/ void drawText(DrawBuf buf, int x, int y, const dchar[] text, uint color, int tabSize = 4, int tabOffset = 0, uint textFlags = 0) { if (text.length == 0) return; // nothing to draw - empty text if (_textSizeBuffer.length < text.length) _textSizeBuffer.length = text.length; int charsMeasured = measureText(text, _textSizeBuffer, MAX_WIDTH_UNSPECIFIED, tabSize, tabOffset, textFlags); Rect clip = buf.clipRect; //clipOrFullRect; if (clip.empty) return; // not visible - clipped out if (y + height < clip.top || y >= clip.bottom) return; // not visible - fully above or below clipping rectangle int _baseline = baseline; bool underline = (textFlags & TextFlag.Underline) != 0; int underlineHeight = 1; int underlineY = y + _baseline + underlineHeight * 2; foreach(int i; 0 .. charsMeasured) { dchar ch = text[i]; if (ch == '&' && (textFlags & (TextFlag.UnderlineHotKeys | TextFlag.HotKeys | TextFlag.UnderlineHotKeysWhenAltPressed))) { if (textFlags & (TextFlag.UnderlineHotKeys | TextFlag.UnderlineHotKeysWhenAltPressed)) underline = true; // turn ON underline for hot key continue; // skip '&' in hot key when measuring } int xx = (i > 0) ? _textSizeBuffer[i - 1] : 0; if (x + xx > clip.right) break; if (x + xx + 255 < clip.left) continue; // far at left of clipping region if (underline) { int xx2 = _textSizeBuffer[i]; // draw underline if (xx2 > xx) buf.fillRect(Rect(x + xx, underlineY, x + xx2, underlineY + underlineHeight), color); // turn off underline after hot key if (!(textFlags & TextFlag.Underline)) underline = false; } if (ch == ' ' || ch == '\t') continue; Glyph * glyph = getCharGlyph(ch); if (glyph is null) continue; if ( glyph.blackBoxX && glyph.blackBoxY ) { int gx = x + xx + glyph.originX; if (gx + glyph.correctedBlackBoxX < clip.left) continue; buf.drawGlyph( gx, y + _baseline - glyph.originY, glyph, color); } } } /***************************************************************************************** * Draw text string to buffer. * * Params: * buf = graphics buffer to draw text to * x = x coordinate to draw first character at * y = y coordinate to draw first character at * text = text string to draw * colors = array of colors, colors[i] is color for character text[i] * tabSize = tabulation size, in number of spaces * tabOffset = when string is drawn not from left position, use to move tab stops left/right * textFlags = set of TextFlag bit fields ****************************************************************************************/ void drawColoredText(DrawBuf buf, int x, int y, const dchar[] text, const CustomCharProps[] charProps, int tabSize = 4, int tabOffset = 0, uint textFlags = 0) { if (text.length == 0) return; // nothing to draw - empty text if (_textSizeBuffer.length < text.length) _textSizeBuffer.length = text.length; int charsMeasured = measureText(text, _textSizeBuffer, MAX_WIDTH_UNSPECIFIED, tabSize, tabOffset, textFlags); Rect clip = buf.clipRect; //clipOrFullRect; if (clip.empty) return; // not visible - clipped out if (y + height < clip.top || y >= clip.bottom) return; // not visible - fully above or below clipping rectangle int _baseline = baseline; uint customizedTextFlags = (charProps.length ? charProps[0].textFlags : 0) | textFlags; bool underline = (customizedTextFlags & TextFlag.Underline) != 0; int underlineHeight = 1; int underlineY = y + _baseline + underlineHeight * 2; foreach(int i; 0 .. charsMeasured) { dchar ch = text[i]; uint color = i < charProps.length ? charProps[i].color : charProps[$ - 1].color; customizedTextFlags = (i < charProps.length ? charProps[i].textFlags : charProps[$ - 1].textFlags) | textFlags; underline = (customizedTextFlags & TextFlag.Underline) != 0; // turn off underline after hot key if (ch == '&' && (textFlags & (TextFlag.UnderlineHotKeys | TextFlag.HotKeys | TextFlag.UnderlineHotKeysWhenAltPressed))) { if (textFlags & (TextFlag.UnderlineHotKeys | TextFlag.UnderlineHotKeysWhenAltPressed)) underline = true; // turn ON underline for hot key continue; // skip '&' in hot key when measuring } int xx = (i > 0) ? _textSizeBuffer[i - 1] : 0; if (x + xx > clip.right) break; if (x + xx + 255 < clip.left) continue; // far at left of clipping region if (underline) { int xx2 = _textSizeBuffer[i]; // draw underline if (xx2 > xx) buf.fillRect(Rect(x + xx, underlineY, x + xx2, underlineY + underlineHeight), color); // turn off underline after hot key if (!(customizedTextFlags & TextFlag.Underline)) underline = false; } if (ch == ' ' || ch == '\t') continue; Glyph * glyph = getCharGlyph(ch); if (glyph is null) continue; if ( glyph.blackBoxX && glyph.blackBoxY ) { int gx = x + xx + glyph.originX; if (gx + glyph.correctedBlackBoxX < clip.left) continue; buf.drawGlyph( gx, y + _baseline - glyph.originY, glyph, color); } } } /// measure multiline text with line splitting, returns width and height in pixels Point measureMultilineText(const dchar[] text, int maxLines = 0, int maxWidth = 0, int tabSize = 4, int tabOffset = 0, uint textFlags = 0) { SimpleTextFormatter fmt; FontRef fnt = FontRef(this); return fmt.format(text, fnt, maxLines, maxWidth, tabSize, tabOffset, textFlags); } /// draws multiline text with line splitting void drawMultilineText(DrawBuf buf, int x, int y, const dchar[] text, uint color, int maxLines = 0, int maxWidth = 0, int tabSize = 4, int tabOffset = 0, uint textFlags = 0) { SimpleTextFormatter fmt; FontRef fnt = FontRef(this); fmt.format(text, fnt, maxLines, maxWidth, tabSize, tabOffset, textFlags); fmt.draw(buf, x, y, fnt, color); } /// get character glyph information abstract Glyph * getCharGlyph(dchar ch, bool withImage = true); /// clear usage flags for all entries abstract void checkpoint(); /// removes entries not used after last call of checkpoint() or cleanup() abstract void cleanup(); /// clears glyph cache abstract void clearGlyphCache(); void clear() {} ~this() { clear(); } } alias FontRef = Ref!Font; /// helper to split text into several lines and draw it struct SimpleTextFormatter { dstring[] _lines; int _tabSize; int _tabOffset; uint _textFlags; /// split text into lines and measure it; returns size in pixels Point format(const dchar[] text, FontRef fnt, int maxLines = 0, int maxWidth = 0, int tabSize = 4, int tabOffset = 0, uint textFlags = 0) { _tabSize = tabSize; _tabOffset = tabOffset; _textFlags = textFlags; Point sz; _lines.length = 0; int lineHeight = fnt.height; if (text.length == 0) { sz.y = lineHeight; return sz; } int[] widths; int charsMeasured = fnt.measureText(text, widths, MAX_WIDTH_UNSPECIFIED, _tabSize, _tabOffset, _textFlags); int lineStart = 0; int lineStartX = 0; int lastWordEnd = 0; int lastWordEndX = 0; dchar prevChar = 0; foreach(int i; 0 .. charsMeasured + 1) { dchar ch = i < charsMeasured ? text[i] : 0; if (ch == '\n' || i == charsMeasured) { // split by EOL char or at end of text dstring line = cast(dstring)text[lineStart .. i]; int lineEndX = (i == lineStart) ? lineStartX : widths[i - 1]; int lineWidth = lineEndX - lineStartX; sz.y += lineHeight; if (sz.x < lineWidth) sz.x = lineWidth; _lines ~= line; if (i == charsMeasured) // end of text reached break; // check max lines constraint if (maxLines && _lines.length >= maxLines) // max lines reached break; lineStart = i + 1; lineStartX = widths[i]; } else { // split by width int x = widths[i]; if (ch == '\t' || ch == ' ') { // track last word end if (prevChar != '\t' && prevChar != ' ' && prevChar != 0) { lastWordEnd = i - 1; lastWordEndX = widths[i - 1]; } prevChar = ch; continue; } if (maxWidth > 0 && maxWidth != MAX_WIDTH_UNSPECIFIED && x > maxWidth && x - lineStartX > maxWidth && i > lineStart) { // need splitting int lineEnd = i; int lineEndX = widths[i - 1]; if (lastWordEnd > lineStart && lastWordEndX - lineStartX >= maxWidth / 3) { // split on word bound lineEnd = lastWordEnd; lineEndX = widths[lastWordEnd - 1]; } // add line dstring line = cast(dstring)text[lineStart .. lineEnd]; //lastWordEnd]; int lineWidth = lineEndX - lineStartX; sz.y += lineHeight; if (sz.x < lineWidth) sz.x = lineWidth; _lines ~= line; // check max lines constraint if (maxLines && _lines.length >= maxLines) // max lines reached break; // find next line start lineStart = lineEnd; while(lineStart < text.length && (text[lineStart] == ' ' || text[lineStart] == '\t')) lineStart++; if (lineStart >= text.length) break; lineStartX = widths[lineStart - 1]; } } prevChar = ch; } return sz; } /// draw formatted text void draw(DrawBuf buf, int x, int y, FontRef fnt, uint color) { int lineHeight = fnt.height; foreach(line; _lines) { fnt.drawText(buf, x, y, line, color, _tabSize, _tabOffset, _textFlags); y += lineHeight; } } } /// font instance collection - utility class, for font manager implementations struct FontList { FontRef[] _list; uint _len; ~this() { clear(); } @property uint length() { return _len; } void clear() { foreach(i; 0 .. _len) { _list[i].clear(); _list[i] = null; } _len = 0; } // returns item by index ref FontRef get(int index) { return _list[index]; } // find by a set of parameters - returns index of found item, -1 if not found int find(int size, int weight, bool italic, FontFamily family, string face) { foreach(int i; 0 .. _len) { Font item = _list[i].get; if (item.family != family) continue; if (item.size != size) continue; if (item.italic != italic || item.weight != weight) continue; if (!equal(item.face, face)) continue; return i; } return -1; } // find by size only - returns index of found item, -1 if not found int find(int size) { foreach(int i; 0 .. _len) { Font item = _list[i].get; if (item.size != size) continue; return i; } return -1; } ref FontRef add(Font item) { //Log.d("FontList.add() enter"); if (_len >= _list.length) { _list.length = _len < 16 ? 16 : _list.length * 2; } _list[_len++] = item; //Log.d("FontList.add() exit"); return _list[_len - 1]; } // remove unused items - with reference == 1 void cleanup() { foreach(i; 0 .. _len) if (_list[i].refCount <= 1) _list[i].clear(); uint dst = 0; foreach(i; 0 .. _len) { if (!_list[i].isNull) if (i != dst) _list[dst++] = _list[i]; } _len = dst; foreach(i; 0 .. _len) _list[i].cleanup(); } void checkpoint() { foreach(i; 0 .. _len) _list[i].checkpoint(); } /// clears glyph cache void clearGlyphCache() { foreach(i; 0 .. _len) _list[i].clearGlyphCache(); } } /// default min font size for antialiased fonts (e.g. if 16 is set, for 16+ sizes antialiasing will be used, for sizes <=15 - antialiasing will be off) const int DEF_MIN_ANTIALIASED_FONT_SIZE = 0; // 0 means always use antialiasing /// Hinting mode (currently supported for FreeType only) enum HintingMode : int { /// based on information from font (using bytecode interpreter) Normal, // 0 /// force autohinting algorithm even if font contains hint data AutoHint, // 1 /// disable hinting completely Disabled, // 2 /// light autohint (similar to Mac) Light // 3 } /// Access points to fonts. class FontManager { protected static __gshared FontManager _instance; protected static __gshared int _minAnitialiasedFontSize = DEF_MIN_ANTIALIASED_FONT_SIZE; protected static __gshared HintingMode _hintingMode = HintingMode.Normal; protected static __gshared SubpixelRenderingMode _subpixelRenderingMode = SubpixelRenderingMode.None; /// sets new font manager singleton instance static @property void instance(FontManager manager) { if (_instance !is null) { destroy(_instance); _instance = null; } _instance = manager; } /// returns font manager singleton instance static @property FontManager instance() { return _instance; } /// get font instance best matched specified parameters abstract ref FontRef getFont(int size, int weight, bool italic, FontFamily family, string face); /// clear usage flags for all entries -- for cleanup of unused fonts abstract void checkpoint(); /// removes entries not used after last call of checkpoint() or cleanup() abstract void cleanup(); /// get min font size for antialiased fonts (0 means antialiasing always on, some big value = always off) static @property int minAnitialiasedFontSize() { return _minAnitialiasedFontSize; } /// set new min font size for antialiased fonts - fonts with size >= specified value will be antialiased (0 means antialiasing always on, some big value = always off) static @property void minAnitialiasedFontSize(int size) { if (_minAnitialiasedFontSize != size) { _minAnitialiasedFontSize = size; if (_instance) _instance.clearGlyphCaches(); } } /// get current hinting mode (Normal, AutoHint, Disabled) static @property HintingMode hintingMode() { return _hintingMode; } /// set hinting mode (Normal, AutoHint, Disabled) static @property void hintingMode(HintingMode mode) { if (_hintingMode != mode) { _hintingMode = mode; if (_instance) _instance.clearGlyphCaches(); } } /// get current subpixel rendering mode for fonts (aka ClearType) static @property SubpixelRenderingMode subpixelRenderingMode() { return _subpixelRenderingMode; } /// set subpixel rendering mode for fonts (aka ClearType) static @property void subpixelRenderingMode(SubpixelRenderingMode mode) { _subpixelRenderingMode = mode; } private static __gshared double _fontGamma = 1.0; /// get font gamma (1.0 is neutral, < 1.0 makes glyphs lighter, >1.0 makes glyphs bolder) static @property double fontGamma() { return _fontGamma; } /// set font gamma (1.0 is neutral, < 1.0 makes glyphs lighter, >1.0 makes glyphs bolder) static @property void fontGamma(double v) { if (v < 0.1) v = 0.1; else if (v > 4) v = 4; if (_fontGamma != v) { _fontGamma = v; _gamma65.gamma = v; _gamma256.gamma = v; if (_instance) _instance.clearGlyphCaches(); } } void clearGlyphCaches() { // override to clear glyph caches } ~this() { Log.d("Destroying font manager"); } } /*************************************** * Glyph image cache * * * Recently used glyphs are marked with glyph.lastUsage = 1 * * checkpoint() call clears usage marks * * cleanup() removes all items not accessed since last checkpoint() * ***************************************/ struct GlyphCache { alias glyph_ptr = Glyph*; private glyph_ptr[][1024] _glyphs; /// try to find glyph for character in cache, returns null if not found Glyph * find(dchar ch) { ch = ch & 0xF_FFFF; //if (_array is null) // _array = new Glyph[0x10000]; uint p = ch >> 8; glyph_ptr[] row = _glyphs[p]; if (row is null) return null; uint i = ch & 0xFF; Glyph * res = row[i]; if (!res) return null; res.lastUsage = 1; return res; } /// put character glyph to cache Glyph * put(dchar ch, Glyph * glyph) { ch = ch & 0xF_FFFF; uint p = ch >> 8; uint i = ch & 0xFF; if (_glyphs[p] is null) _glyphs[p] = new glyph_ptr[256]; _glyphs[p][i] = glyph; glyph.lastUsage = 1; return glyph; } /// removes entries not used after last call of checkpoint() or cleanup() void cleanup() { foreach(part; _glyphs) { if (part !is null) foreach(ref item; part) { if (item && !item.lastUsage) { static if (ENABLE_OPENGL) { // notify about destroyed glyphs if (_glyphDestroyCallback !is null) { _glyphDestroyCallback(item.id); } } destroy(item); item = null; } } } } /// clear usage flags for all entries void checkpoint() { foreach(part; _glyphs) { if (part !is null) foreach(item; part) { if (item) item.lastUsage = 0; } } } /// removes all entries (when built with USE_OPENGL version, notify OpenGL cache about removed glyphs) void clear() { foreach(part; _glyphs) { if (part !is null) foreach(ref item; part) { if (item) { static if (ENABLE_OPENGL) { // notify about destroyed glyphs if (_glyphDestroyCallback !is null) { _glyphDestroyCallback(item.id); } } destroy(item); item = null; } } } } /// on destroy, destroy all items (when built with USE_OPENGL version, notify OpenGL cache about removed glyphs) ~this() { clear(); } } // support of font glyph Gamma correction // table to correct gamma and translate to output range 0..255 // maxv is 65 for win32 fonts, 256 for freetype import std.math; //--------------------------------- class glyph_gamma_table(int maxv = 65) { this(double gammaValue = 1.0) { gamma(gammaValue); } @property double gamma() { return _gamma; } @property void gamma(double g) { _gamma = g; foreach(int i; 0 .. maxv) { double v = (maxv - 1.0 - i) / maxv; v = pow(v, g); int n = cast(int)round(v * 255); n = 255 - n; if (n < 0) n = 0; else if (n > 255) n = 255; _map[i] = cast(ubyte)n; } } /// correct byte value from source range to 0..255 applying gamma ubyte correct(ubyte src) { if (src >= maxv) src = maxv - 1; return _map[src]; } private: ubyte[maxv] _map; double _gamma = 1.0; } __gshared glyph_gamma_table!65 _gamma65; __gshared glyph_gamma_table!256 _gamma256; __gshared static this() { _gamma65 = new glyph_gamma_table!65(1.0); _gamma256 = new glyph_gamma_table!256(1.0); }
D
/* Copyright © 2019 Clipsey Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ module game.animation; import vibe.data.sdl : deserializeSDLang, Tag; import sdlang.parser; AnimationRoot fromSDL(string animations, string from = __MODULE__) { Tag source = parseSource(animations, from); return deserializeSDLang!AnimationRoot(source); } public struct Animationanimations { public int frame; public int animation; public int timeout; } public struct AnimationRoot { int width; int height; Animationanimations[][string] animations; } public class Animation { private string animation_name; private int frame; private int frame_counter; private int frame_timeout; AnimationRoot Animations; this(AnimationRoot animations) { this.Animations = animations; } public string AnimationName() { return animation_name; } public int AnimationFrameRaw() { return frame; } public int AnimationFrame() { return cast(int)(frame%Animations.animations[animation_name].length); } public void ChangeAnimation(string name, bool seamless = false) { if (animation_name == name) return; this.animation_name = name; if (!seamless) this.frame = Animations.animations[animation_name][0].frame; } public bool IsLastFrame() { if ((frame)%Animations.animations[animation_name].length == Animations.animations[animation_name].length-1) return true; return false; } public int GetAnimationX(int offset = 0) { return (Animations.animations[animation_name][(frame+offset)%Animations.animations[animation_name].length].frame)*Animations.width; } public int GetAnimationY(int offset = 0) { return (Animations.animations[animation_name][(frame+offset)%Animations.animations[animation_name].length].animation)*Animations.height; } public int GetAnimationTimeout(int offset = 0) { return Animations.animations[animation_name][(frame+offset)%Animations.animations[animation_name].length].timeout; } public int FrameCounter() { return frame_counter; } public void Update(int timeoutForce = 0) { frame_timeout = timeoutForce > 0 ? timeoutForce : GetAnimationTimeout(); if (frame_counter >= frame_timeout) { this.frame++; frame_counter = 0; } frame_counter++; } }
D
/home/zbf/workspace/git/RTAP/target/debug/deps/fake_simd-e8e0b05b3b842cdd.rmeta: /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/fake-simd-0.1.2/src/lib.rs /home/zbf/workspace/git/RTAP/target/debug/deps/libfake_simd-e8e0b05b3b842cdd.rlib: /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/fake-simd-0.1.2/src/lib.rs /home/zbf/workspace/git/RTAP/target/debug/deps/fake_simd-e8e0b05b3b842cdd.d: /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/fake-simd-0.1.2/src/lib.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/fake-simd-0.1.2/src/lib.rs:
D
/******************************************************************************* * Copyright (c) 2005, 2006 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation * Port to the D programming language: * Frank Benoit <benoit@tionex.de> *******************************************************************************/ module dwtx.jface.menus.IMenuStateIds; import dwtx.core.commands.INamedHandleStateIds; // import dwtx.jface.commands.RadioState; // import dwtx.jface.commands.ToggleState; import dwt.dwthelper.utils; /** * <p> * State identifiers that should be understood by items and renderers of items. * The state is associated with the command, and then interpreted by the menu * renderer. * </p> * <p> * Clients may implement or extend this class. * </p> * * @since 3.2 */ public interface IMenuStateIds : INamedHandleStateIds { /** * The state id used for indicating the widget style of a command presented * in the menus and tool bars. This state must be an instance of * {@link ToggleState} or {@link RadioState}. */ public static String STYLE = "STYLE"; //$NON-NLS-1$ }
D
/* ///////////////////////////////////////////////////////////////////////////// * File: std/openrj.d * * Purpose: Open-RJ/D mapping for the D standard library * * Created: 11th June 2004 * Updated: 10th March 2005 * * Home: http://openrj.org/ * * Copyright 2004-2005 by Matthew Wilson and Synesis Software * Written by Matthew Wilson * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, in both source and binary form, subject to the following * restrictions: * * - The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * - Altered source versions must be plainly marked as such, and must not * be misrepresented as being the original software. * - This notice may not be removed or altered from any source * distribution. * * ////////////////////////////////////////////////////////////////////////// * Altered by Walter Bright. */ /** * Open-RJ mapping for the D standard library. * * Authors: * Matthew Wilson * References: * $(LINK2 http://www.$(OPENRJ).org/, Open-RJ) * Macros: * WIKI=Phobos/StdOpenrj * OPENRJ=openrj */ /* ///////////////////////////////////////////////////////////////////////////// * Module */ module std.openrj; /* ///////////////////////////////////////////////////////////////////////////// * Imports */ private import std.ctype; version(MainTest) { private import std.file; private import std.perf; } // version(MainTest) private import std.string; /* ///////////////////////////////////////////////////////////////////////////// * Version information */ // This'll be moved out to somewhere common soon private struct Version { char[] name; char[] description; uint major; uint minor; uint revision; uint edit; ulong buildTime; } public static Version VERSION = { "std.openrj" , "Record-JAR database reader" , 1 , 0 , 7 , 7 , 0 }; /* ///////////////////////////////////////////////////////////////////////////// * Structs */ // This'll be moved out to somewhere common soon private struct EnumString { int value; char[] str; }; private template enum_to_string(T) { char[] enum_to_string(EnumString[] strings, T t) { // 'Optimised' search. // // Since many enums start at 0 and are contiguously ordered, it's quite // likely that the value will equal the index. If it does, we can just // return the string from that index. int index = cast(int)(t); if( index >= 0 && index < strings.length && strings[index].value == index) { return strings[index].str; } // Otherwise, just do a linear search foreach(EnumString s; strings) { if(cast(int)(t) == s.value) { return s.str; } } return "<unknown>"; } } /* ///////////////////////////////////////////////////////////////////////////// * Enumerations */ /** Flags that moderate the creation of Databases */ public enum ORJ_FLAG { ORDER_FIELDS = 0x0001, /// Arranges the fields in alphabetical order ELIDE_BLANK_RECORDS = 0x0002, /// Causes blank records to be ignored } /** * */ public char[] toString(ORJ_FLAG f) { const EnumString strings[] = [ { ORJ_FLAG.ORDER_FIELDS, "Arranges the fields in alphabetical order" } , { ORJ_FLAG.ELIDE_BLANK_RECORDS, "Causes blank records to be ignored" } ]; return enum_to_string!(ORJ_FLAG)(strings, f); } /** General error codes */ public enum ORJRC { SUCCESS = 0, /// Operation was successful CANNOT_OPEN_JAR_FILE, /// The given file does not exist, or cannot be accessed NO_RECORDS, /// The database file contained no records OUT_OF_MEMORY, /// The API suffered memory exhaustion BAD_FILE_READ, /// A read operation failed PARSE_ERROR, /// Parsing of the database file failed due to a syntax error INVALID_INDEX, /// An invalid index was specified UNEXPECTED, /// An unexpected condition was encountered INVALID_CONTENT, /// The database file contained invalid content } /** * */ public char[] toString(ORJRC f) { const EnumString strings[] = [ { ORJRC.SUCCESS, "Operation was successful" } , { ORJRC.CANNOT_OPEN_JAR_FILE, "The given file does not exist, or cannot be accessed" } , { ORJRC.NO_RECORDS, "The database file contained no records" } , { ORJRC.OUT_OF_MEMORY, "The API suffered memory exhaustion" } , { ORJRC.BAD_FILE_READ, "A read operation failed" } , { ORJRC.PARSE_ERROR, "Parsing of the database file failed due to a syntax error" } , { ORJRC.INVALID_INDEX, "An invalid index was specified" } , { ORJRC.UNEXPECTED, "An unexpected condition was encountered" } , { ORJRC.INVALID_CONTENT, "The database file contained invalid content" } ]; return enum_to_string!(ORJRC)(strings, f); } /** Parsing error codes */ public enum ORJ_PARSE_ERROR { SUCCESS = 0, /// Parsing was successful RECORD_SEPARATOR_IN_CONTINUATION, /// A record separator was encountered during a content line continuation UNFINISHED_LINE, /// The last line in the database was not terminated by a line-feed UNFINISHED_FIELD, /// The last field in the database file was not terminated by a record separator UNFINISHED_RECORD, /// The last record in the database file was not terminated by a record separator } /** * */ public char[] toString(ORJ_PARSE_ERROR f) { const EnumString strings[] = [ { ORJ_PARSE_ERROR.SUCCESS, "Parsing was successful" } , { ORJ_PARSE_ERROR.RECORD_SEPARATOR_IN_CONTINUATION, "A record separator was encountered during a content line continuation" } , { ORJ_PARSE_ERROR.UNFINISHED_LINE, "The last line in the database was not terminated by a line-feed" } , { ORJ_PARSE_ERROR.UNFINISHED_FIELD, "The last field in the database file was not terminated by a record separator" } , { ORJ_PARSE_ERROR.UNFINISHED_RECORD, "The last record in the database file was not terminated by a record separator" } ]; return enum_to_string!(ORJ_PARSE_ERROR)(strings, f); } /* ///////////////////////////////////////////////////////////////////////////// * Classes */ /** * */ class OpenRJException : public Exception { /* \name Construction */ protected: this(char[] message) { super(message); } } /** * */ class DatabaseException : public OpenRJException { /* \name Construction */ private: this(char[] details, ORJRC rc) { //printf("DatabaseException(0: %.*s, %.*s)\n", details, std.openrj.toString(rc)); char[] message = std.string.format( "Database creation failed; error: %s, %s" , cast(int)rc , std.openrj.toString(rc)); m_rc = rc; m_pe = ORJ_PARSE_ERROR.SUCCESS; m_lineNum = -1; super(message); } this(ORJRC rc, int lineNum) { //printf("DatabaseException(1: %.*s, %d)\n", std.openrj.toString(rc), lineNum); char[] message = std.string.format( "Database creation failed, at line %s; error: %s, %s" , lineNum , cast(int)rc , std.openrj.toString(rc)); m_rc = rc; m_pe = ORJ_PARSE_ERROR.SUCCESS; m_lineNum = lineNum; super(message); } this(ORJ_PARSE_ERROR pe, int lineNum) { //printf("DatabaseException(2: %.*s, %d)\n", std.openrj.toString(pe), lineNum); char[] message = std.string.format( "Parsing error in database, at line %s; parse error: %s, %s" , lineNum , cast(int)pe , std.openrj.toString(pe)); m_rc = ORJRC.PARSE_ERROR; m_pe = pe; m_lineNum = lineNum; super(message); } this(char[] details, ORJ_PARSE_ERROR pe, int lineNum) { //printf("DatabaseException(3: %.*s, %.*s, %d)\n", details, std.openrj.toString(rc), lineNum); char[] message = std.string.format( "Parsing error in database, at line %s; parse error: %s, %s; %s" , lineNum , cast(int)pe , std.openrj.toString(pe) , details); m_rc = ORJRC.PARSE_ERROR; m_pe = pe; m_lineNum = lineNum; super(message); } /* \name Attributes */ public: /** * */ ORJRC rc() { return m_rc; } /** * */ ORJ_PARSE_ERROR parseError() { return m_pe; } /** * */ int lineNum() { return m_lineNum; } // Members private: int m_lineNum; ORJRC m_rc; ORJ_PARSE_ERROR m_pe; } /** * */ class InvalidKeyException : public OpenRJException { /* \name Construction */ private: this(char[] message) { super(message); } } /** * */ class InvalidTypeException : public OpenRJException { /* \name Construction */ private: this(char[] message) { super(message); } } /* ///////////////////////////////////////////////////////////////////////////// * Classes */ /// Represents a field in the database class Field { /* \name Construction */ private: this(char[] name, char[] value/* , Record record */) in { assert(null !is name); assert(null !is value); } body { m_name = name; m_value = value; /* m_record = record; */ } /* \name Attributes */ public: /** * */ final char[] name() { return m_name; } /** * */ final char[] value() { return m_value; } /** * */ Record record() { return m_record; } /* \name Comparison */ /+ public: int opCmp(Object rhs) { Field f = cast(Field)(rhs); if(null is f) { throw new InvalidTypeException("Attempt to compare a Field with an instance of another type"); } return opCmp(f); } public: int opCmp(Field rhs) { int res; if(this is rhs) { res = 0; } else { res = std.string.cmp(m_name, rhs.m_name); if(0 == res) { res = std.string.cmp(m_value, rhs.m_value); } } return res; } +/ // Members private: char[] m_name; char[] m_value; Record m_record; } /// Represents a record in the database, consisting of a set of fields class Record { /* \name Types */ public: alias object.size_t size_type; alias object.size_t index_type; alias object.ptrdiff_t difference_type; /* \name Construction */ private: this(Field[] fields, uint flags, Database database) { m_fields = fields.dup; if(flags & ORJ_FLAG.ORDER_FIELDS) { m_fields = m_fields.sort; } foreach(Field field; m_fields) { if(!(field.name in m_values)) { m_values[field.name] = field; } } m_database = database; } /* \name Attributes */ public: /** * */ uint numFields() { return m_fields.length; } /** * */ uint length() { return numFields(); } /** * */ Field[] fields() { return m_fields.dup; } /** * */ Field opIndex(index_type index) in { assert(index < m_fields.length); } body { return m_fields[index]; } /** * */ char[] opIndex(char[] fieldName) { return getField(fieldName).value; } /** * */ Field getField(char[] fieldName) in { assert(null !is fieldName); } body { Field field = findField(fieldName); if(null is field) { throw new InvalidKeyException("field not found"); } return field; } /** * */ Field findField(char[] fieldName) in { assert(null !is fieldName); } body { Field *pfield = (fieldName in m_values); return (null is pfield) ? null : *pfield; } /** * */ int hasField(char[] fieldName) { return null !is findField(fieldName); } /** * */ Database database() { return m_database; } /* \name Enumeration */ public: /** * */ int opApply(int delegate(inout Field field) dg) { int result = 0; foreach(Field field; m_fields) { result = dg(field); if(0 != result) { break; } } return result; } /** * */ int opApply(int delegate(in char[] name, in char[] value) dg) { int result = 0; foreach(Field field; m_fields) { result = dg(field.name(), field.value()); if(0 != result) { break; } } return result; } // Members private: Field[] m_fields; Field[char[]] m_values; Database m_database; } /** * */ class Database { /* \name Types */ public: alias object.size_t size_type; alias object.size_t index_type; alias object.ptrdiff_t difference_type; /* \name Construction */ private: void init_(char[][] lines, uint flags) { // Enumerate int bContinuing = false; Field[] fields; char[] nextLine; int lineNum = 1; int nextLineNum = 1; foreach(char[] line; lines) { // Always strip trailing space line = stripr(line); // Check that we don't start a continued line with a record separator if( bContinuing && line.length > 1 && "%%" == line[0 .. 2]) { throw new DatabaseException(ORJ_PARSE_ERROR.RECORD_SEPARATOR_IN_CONTINUATION, lineNum); } // Always strip leading whitespace line = stripl(line); int bContinuationLine; if( line.length > 0 && '\\' == line[line.length - 1]) { bContinuationLine = true; bContinuing = true; line = line[0 .. line.length - 1]; } // Always add on to the previous line nextLine = nextLine ~ line; line = null; if(!bContinuationLine) { if(0 == nextLine.length) { // Just ignore these lines } else if(1 == nextLine.length) { throw new DatabaseException(ORJ_PARSE_ERROR.UNFINISHED_FIELD, lineNum); } else { if("%%" == nextLine[0 .. 2]) { // Comment line - terminate the record // printf("-- record --\n"); if( 0 != fields.length || 0 == (ORJ_FLAG.ELIDE_BLANK_RECORDS & flags)) { Record record = new Record(fields, flags, this); foreach(Field field; fields) { field.m_record = record; } m_records ~= record; fields = null; } } else { int colon = find(nextLine, ':'); if(-1 == colon) { throw new DatabaseException(ORJ_PARSE_ERROR.UNFINISHED_FIELD, lineNum); } // printf("%.*s(%d): %.*s (%d)\n", file, nextLineNum, nextLine, colon); char[] name = nextLine[0 .. colon]; char[] value = nextLine[colon + 1 .. nextLine.length]; name = stripr(name); value = stripl(value); // printf("%.*s(%d): %.*s=%.*s\n", file, nextLineNum, name, value); Field field = new Field(name, value); fields ~= field; m_fields ~= field; } } nextLine = ""; nextLineNum = lineNum + 1; bContinuing = false; } /+ // This is currently commented out as it seems unlikely to be sensible to // order the Fields globally. The reasoning is that if the Fields are used // globally then it's more likely that their ordering in the database source // is meaningful. If someone really needs an all-Fields array ordered, they // can do it manually. if(flags & ORJ_FLAG.ORDER_FIELDS) { m_fields = m_fields.sort; } +/ ++lineNum; } if(bContinuing) { throw new DatabaseException(ORJ_PARSE_ERROR.UNFINISHED_LINE, lineNum); } if(fields.length > 0) { throw new DatabaseException(ORJ_PARSE_ERROR.UNFINISHED_RECORD, lineNum); } if(0 == m_records.length) { throw new DatabaseException(ORJRC.NO_RECORDS, lineNum); } m_flags = flags; m_numLines = lines.length; } public: /** * */ this(char[] memory, uint flags) { char[][] lines = split(memory, "\n"); init_(lines, flags); } /** * */ this(char[][] lines, uint flags) { init_(lines, flags); } /* \name Attributes */ public: /** * */ size_type numRecords() { return m_records.length; } /** * */ size_type numFields() { return m_fields.length; } /** * */ size_type numLines() { return m_numLines; } /* \name Attributes */ public: /** * */ uint flags() { return m_flags; } /** * */ Record[] records() { return m_records.dup; } /** * */ Field[] fields() { return m_fields.dup; } /** * */ uint length() { return numRecords(); } /** * */ Record opIndex(index_type index) in { assert(index < m_records.length); } body { return m_records[index]; } /* \name Searching */ public: /** * */ Record[] getRecordsContainingField(char[] fieldName) { Record[] records; foreach(Record record; m_records) { if(null !is record.findField(fieldName)) { records ~= record; } } return records; } /** * */ Record[] getRecordsContainingField(char[] fieldName, char[] fieldValue) { Record[] records; uint flags = flags; foreach(Record record; m_records) { Field field = record.findField(fieldName); if(null !is field) { // Since there can be more than one field with the same name in // the same record, we need to search all fields in this record if(ORJ_FLAG.ORDER_FIELDS == (flags & ORJ_FLAG.ORDER_FIELDS)) { // We can do a sorted search foreach(Field field; record) { int res = cmp(field.name, fieldName); if( 0 == res && ( null is fieldValue || field.value == fieldValue)) { records ~= record; break; } else if(res > 0) { break; } } } else { foreach(Field field; record) { if( field.name == fieldName && ( null is fieldValue || field.value == fieldValue)) { records ~= record; break; } } } } } return records; } /* \name Enumeration */ public: /** * */ int opApply(int delegate(inout Record record) dg) { int result = 0; foreach(Record record; m_records) { result = dg(record); if(0 != result) { break; } }; return result; } /** * */ int opApply(int delegate(inout Field field) dg) { int result = 0; foreach(Field field; m_fields) { result = dg(field); if(0 != result) { break; } }; return result; } // Members private: uint m_flags; size_type m_numLines; Record[] m_records; Field[] m_fields; } /* ////////////////////////////////////////////////////////////////////////// */ version(MainTest) { int main(char[][] args) { int flags = 0 | ORJ_FLAG.ORDER_FIELDS | ORJ_FLAG.ELIDE_BLANK_RECORDS | 0; if(args.length < 2) { printf("Need to specify jar file\n"); } else { PerformanceCounter counter = new PerformanceCounter(); try { printf( "std.openrj test:\n\tmodule: \t%.*s\n\tdescription: \t%.*s\n\tversion: \t%d.%d.%d.%d\n" , std.openrj.VERSION.name , std.openrj.VERSION.description , std.openrj.VERSION.major , std.openrj.VERSION.minor , std.openrj.VERSION.revision , std.openrj.VERSION.edit); counter.start(); char[] file = args[1]; char[] chars = cast(char[])std.file.read(file); Database database = new Database(chars, flags); // Database database = new Database(split(chars, "\n"), flags); counter.stop(); PerformanceCounter.interval_type loadTime = counter.microseconds(); counter.start(); int i = 0; foreach(Record record; database.records) { foreach(Field field; record) { i += field.name.length + field.value.length; } } counter.stop(); PerformanceCounter.interval_type enumerateTime = counter.microseconds(); printf("Open-RJ/D test: 100%%-D!!\n"); printf("Load time: %ld\n", loadTime); printf("Enumerate time: %ld\n", enumerateTime); return 0; printf("Records (%u)\n", database.numRecords); foreach(Record record; database) { printf(" Record\n"); foreach(Field field; record.fields) { printf(" Field: %.*s=%.*s\n", field.name, field.value); } } printf("Fields (%u)\n", database.numFields); foreach(Field field; database) { printf(" Field: %.*s=%.*s\n", field.name, field.value); } Record[] records = database.getRecordsContainingField("Name"); printf("Records containing 'Name' (%u)\n", records); foreach(Record record; records) { printf(" Record\n"); foreach(Field field; record.fields) { printf(" Field: %.*s=%.*s\n", field.name, field.value); } } } catch(Exception x) { printf("Exception: %.*s\n", x.toString()); } } return 0; } } // version(MainTest) /* ////////////////////////////////////////////////////////////////////////// */
D
// URL: https://atcoder.jp/contests/abc148/tasks/abc148_d import std; version(unittest) {} else void main() { int N; io.getV(N); int[] a; io.getA(N, a); auto i = 0, j = ptrdiff_t(0); while ((j = a.countUntil(i+1)) != -1) { ++i; a = a[j+1..$]; } io.putB(i == 0, -1, N-i); } auto io = IO!()(); import lib.io;
D
/Users/joshblatt/Projects/learning-casper/task1/tests/target/debug/build/indexmap-b4c82ff265633061/build_script_build-b4c82ff265633061: /Users/joshblatt/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.7.0/build.rs /Users/joshblatt/Projects/learning-casper/task1/tests/target/debug/build/indexmap-b4c82ff265633061/build_script_build-b4c82ff265633061.d: /Users/joshblatt/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.7.0/build.rs /Users/joshblatt/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.7.0/build.rs:
D
import std.stdio; int main(string[] args) { writefln("Running: usingfunctions.d"); return 0; }
D
module d.llvm.evaluator; import d.llvm.codegen; import d.ir.expression; import d.semantic.evaluator; import util.visitor; import llvm.c.core; import llvm.c.executionEngine; // In order to JIT, we redirect some call from libsdrt to druntime. extern(C) { /** * Memory allocation, forward to GC */ void* __sd_gc_alloc(size_t size) { import core.memory; return GC.malloc(size); } void* __sd_gc_array_alloc(size_t size) { import core.memory; return GC.malloc(size); } /** * Forward bound check routines. */ void _d_arraybounds(string, int); void __sd_array_outofbounds(string file, int line) { _d_arraybounds(file, line); } /** * Forward contract routines. */ void _d_assert(string, int); void __sd_assert_fail(string file, int line) { _d_assert(file, line); } void _d_assert_msg(string, string, int); void __sd_assert_fail_msg(string msg, string file, int line) { _d_assert_msg(msg, file, line); } /** * Exception facilities are using a subset of libsdrt compiled with * DMD called libsdmd. We need to anchor some functions here. */ void __sd_eh_throw(void*); immutable __anchor_sd_eh_throw = &__sd_eh_throw; } final class LLVMEvaluator : Evaluator { private CodeGen pass; alias pass this; this(CodeGen pass) { this.pass = pass; } CompileTimeExpression evaluate(Expression e) { if (auto ce = cast(CompileTimeExpression) e) { return ce; } // We agressively JIT all CTFE return jit!(function CompileTimeExpression(CodeGen pass, Expression e, void[] p) { return JitRepacker(pass, e.location, p).visit(e.type); })(e); } ulong evalIntegral(Expression e) in { auto t = e.type.getCanonical(); while (t.kind = TypeKing.Enum) { t = t.denum.type.getCanonical(); } assert(t.kind == TypeKind.Builtin); auto bt = t.builtin; assert(isIntegral(bt) || bt == BuiltinType.Bool); } do { return jit!(function ulong(ulong r) { return r; }, JitReturn.Direct)(e); } string evalString(Expression e) in { auto t = e.type.getCanonical(); assert(t.kind = TypeKind.Slice); auto et = t.element.getCanonical(); assert(et.builtin = BuiltinType.Char); } do { return jit!(function string(CodeGen pass, Expression e, void[] p) in { assert(p.length == string.sizeof); } do { auto s = *(cast(string*) p.ptr); return s.idup; } )(e); } private auto jit(alias handler, JitReturn R = JitReturn.Indirect)(Expression e) { scope(failure) LLVMDumpModule(dmodule); // Create a global variable to hold the returned blob. import d.llvm.type; auto type = TypeGen(pass).visit(e.type); static if (R == JitReturn.Direct) { auto returnType = type; } else { auto buffer = LLVMAddGlobal(dmodule, type, "__ctBuf"); scope(exit) LLVMDeleteGlobal(buffer); LLVMSetInitializer(buffer, LLVMGetUndef(type)); import llvm.c.target; auto size = LLVMStoreSizeOfType(targetData, type); auto returnType = i64; } // Generate function signature auto funType = LLVMFunctionType(returnType, null, 0, false); auto fun = LLVMAddFunction(dmodule, "__ctfe", funType); scope(exit) LLVMDeleteFunction(fun); // Generate function's body. Warning: horrible hack. import d.llvm.local; auto lg = LocalGen(pass, Mode.Eager); auto builder = lg.builder; auto bodyBB = LLVMAppendBasicBlockInContext(llvmCtx, fun, ""); LLVMPositionBuilderAtEnd(builder, bodyBB); import d.llvm.expression; auto value = ExpressionGen(&lg).visit(e); static if (R == JitReturn.Direct) { LLVMBuildRet(builder, value); } else { LLVMBuildStore(builder, value, buffer); // FIXME This is 64bit only code. auto ptrToInt = LLVMBuildPtrToInt(builder, buffer, i64, ""); LLVMBuildRet(builder, ptrToInt); } checkModule(); auto ee = createExecutionEngine(dmodule); scope(exit) destroyExecutionEngine(ee, dmodule); auto result = LLVMRunFunction(ee, fun, 0, null); scope(exit) LLVMDisposeGenericValue(result); static if (R == JitReturn.Direct) { return handler(LLVMGenericValueToInt(result, true)); } else { // FIXME This only works for 64 bit platforms because the retval // of the "__ctfe" is specifically a i64. This is due to MCJIT // not supporting pointer return values directly at this time. auto asInt = LLVMGenericValueToInt(result, false); return handler(pass, e, (cast(void*) asInt)[0 .. size]); } } import d.ir.symbol; auto createTestStub(Function f) { // Make sure the function we want to call is ready to go. import d.llvm.local; auto lg = LocalGen(pass, Mode.Eager); auto callee = lg.declare(f); // Generate function's body. Warning: horrible hack. auto builder = lg.builder; auto funType = LLVMFunctionType(i64, null, 0, false); auto fun = LLVMAddFunction(dmodule, "__unittest", funType); // Personality function to handle exceptions. LLVMSetPersonalityFn(fun, lg.declare(pass.object.getPersonality())); auto callBB = LLVMAppendBasicBlockInContext(llvmCtx, fun, "call"); auto thenBB = LLVMAppendBasicBlockInContext(llvmCtx, fun, "then"); auto lpBB = LLVMAppendBasicBlockInContext(llvmCtx, fun, "lp"); LLVMPositionBuilderAtEnd(builder, callBB); LLVMBuildInvoke2(builder, funType, callee, null, 0, thenBB, lpBB, ""); LLVMPositionBuilderAtEnd(builder, thenBB); LLVMBuildRet(builder, LLVMConstInt(i64, 0, false)); // Build the landing pad. LLVMTypeRef[2] lpTypes = [llvmPtr, i32]; auto lpType = LLVMStructTypeInContext(llvmCtx, lpTypes.ptr, lpTypes.length, false); LLVMPositionBuilderAtEnd(builder, lpBB); auto landingPad = LLVMBuildLandingPad(builder, lpType, null, 1, ""); LLVMAddClause(landingPad, llvmNull); // We don't care about cleanup for now. LLVMBuildRet(builder, LLVMConstInt(i64, 1, false)); return fun; } } package: auto createExecutionEngine(LLVMModuleRef dmodule) { char* errorPtr; LLVMExecutionEngineRef ee; auto creationError = LLVMCreateMCJITCompilerForModule(&ee, dmodule, null, 0, &errorPtr); if (creationError) { scope(exit) LLVMDisposeMessage(errorPtr); import core.stdc.string; auto error = errorPtr[0 .. strlen(errorPtr)].idup; import std.stdio; writeln(error); assert(0, "Cannot create execution engine ! Exiting..."); } return ee; } auto destroyExecutionEngine(LLVMExecutionEngineRef ee, LLVMModuleRef dmodule) { char* errorPtr; LLVMModuleRef outMod; auto removeError = LLVMRemoveModule(ee, dmodule, &outMod, &errorPtr); if (removeError) { scope(exit) LLVMDisposeMessage(errorPtr); import core.stdc.string; auto error = errorPtr[0 .. strlen(errorPtr)].idup; import std.stdio; writeln(error); assert(0, "Cannot remove module from execution engine ! Exiting..."); } LLVMDisposeExecutionEngine(ee); } private: enum JitReturn { Direct, Indirect, } struct JitRepacker { CodeGen pass; alias pass this; import source.location; Location location; void[] p; this(CodeGen pass, Location location, void[] p) { this.pass = pass; this.p = p; } import d.ir.type, d.ir.symbol; CompileTimeExpression visit(Type t) in { import d.llvm.type, llvm.c.target; auto size = LLVMStoreSizeOfType(targetData, TypeGen(pass).visit(t)); import std.conv; assert( size == p.length, "Buffer of length " ~ p.length.to!string() ~ " when " ~ size.to!string() ~ " was expected" ); } out(result) { // FIXME: This does not always pass now. // assert(result.type == t, "Result type do not match"); assert(p.length == 0, "Remaining data in the buffer"); } do { return t.accept(this); } T get(T)() { scope(exit) p = p[T.sizeof .. $]; return *(cast(T*) p.ptr); } CompileTimeExpression visit(BuiltinType t) { ulong raw; switch (t) with (BuiltinType) { case Bool: return new BooleanLiteral(location, get!bool()); case Byte, Ubyte: raw = get!ubyte(); goto HandleIntegral; case Short, Ushort: raw = get!ushort(); goto HandleIntegral; case Int, Uint: raw = get!uint(); goto HandleIntegral; case Long, Ulong: raw = get!ulong(); goto HandleIntegral; HandleIntegral: return new IntegerLiteral(location, raw, t); default: assert(0, "Not implemented"); } } CompileTimeExpression visitPointerOf(Type t) { assert(0, "Not implemented"); } CompileTimeExpression visitSliceOf(Type t) { if (t.kind == TypeKind.Builtin && t.builtin == BuiltinType.Char && t.qualifier == TypeQualifier.Immutable) { return new StringLiteral(location, get!string().idup); } assert(0, "Not Implemented."); } CompileTimeExpression visitArrayOf(uint size, Type t) { import d.llvm.type, llvm.c.target; uint elementSize = cast(uint) LLVMStoreSizeOfType(targetData, TypeGen(pass).visit(t)); CompileTimeExpression[] elements; elements.reserve(size); auto buf = p; uint start = 0; scope(exit) p = buf[start .. $]; for (uint i = 0; i < size; i++) { uint end = start + elementSize; p = buf[start .. end]; start = end; elements ~= visit(t); } return new CompileTimeTupleExpression(location, t.getArray(size), elements); } CompileTimeExpression visit(Struct s) { import d.llvm.type; auto type = TypeGen(pass).visit(s); import llvm.c.target; auto size = LLVMStoreSizeOfType(targetData, type); auto buf = p; scope(exit) p = buf[size .. $]; CompileTimeExpression[] elements; foreach (uint i, f; s.fields) { assert(f.index == i, "fields are out of order"); auto t = f.type; auto start = LLVMOffsetOfElement(targetData, type, i); auto elementType = LLVMStructGetTypeAtIndex(type, i); auto fieldSize = LLVMStoreSizeOfType(targetData, elementType); auto end = start + fieldSize; p = buf[start .. end]; elements ~= visit(t); } return new CompileTimeTupleExpression(location, Type.get(s), elements); } CompileTimeExpression visit(Class c) { assert(0, "Not Implemented."); } CompileTimeExpression visit(Enum e) { // TODO: build implicit cast. return visit(e.type); } CompileTimeExpression visit(TypeAlias a) { // TODO: build implicit cast. return visit(a.type); } CompileTimeExpression visit(Interface i) { assert(0, "Not Implemented."); } CompileTimeExpression visit(Union u) { assert(0, "Not Implemented."); } CompileTimeExpression visit(Function f) { assert(0, "Not Implemented."); } CompileTimeExpression visit(Type[] seq) { assert(0, "Not Implemented."); } CompileTimeExpression visit(FunctionType f) { assert(0, "Not Implemented."); } CompileTimeExpression visit(Pattern p) { assert(0, "Not implemented."); } import d.ir.error; CompileTimeExpression visit(CompileError e) { assert(0, "Not implemented."); } }
D
/Users/hdcui/blind_sig_project/bld_sig/target/rls/debug/deps/bls12_381-716087fcfdba0a16.rmeta: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/lib.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/util.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/notes/design.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/notes/serialization.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/scalar.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp2.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/g1.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/g2.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp12.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp6.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/pairings.rs /Users/hdcui/blind_sig_project/bld_sig/target/rls/debug/deps/bls12_381-716087fcfdba0a16.d: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/lib.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/util.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/notes/design.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/notes/serialization.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/scalar.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp2.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/g1.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/g2.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp12.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp6.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/pairings.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/lib.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/util.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/notes/design.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/notes/serialization.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/scalar.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp2.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/g1.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/g2.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp12.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp6.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/pairings.rs:
D
/** * Encryption utilities */ module crypto.encrypt; import util.array; /** * XOR two strings * * Params: * s1 = The first string * s2 = The second string * * Returns: * zip xor s1 s2 */ string fixedXor ( string s1, string s2 ) in { assert(s1.length == s2.length); } body { string result; foreach ( i, c; s1 ) { result ~= c ^ s2[i]; } return result; } /** * Encrypt the given string with the given key using repeating XOR * * Params: * str = The string * key = The key * * Returns: * The encrypted string */ string repeatingXor ( string str, string key ) in { assert(key.length <= str.length); } body { auto repeated_key = replicate(str.length / key.length, key).flatten(); auto remainder = str.length % key.length; if ( remainder > 0 ) { repeated_key ~= key[0 .. remainder]; } assert(repeated_key.length == str.length); return fixedXor(str, repeated_key); }
D
/Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/SQLite.build/Row/SQLiteDataType.swift.o : /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Row/SQLiteData.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteGeneric.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Utilities/Deprecated.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteBind.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Database/SQLiteStorage.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteCreateTable.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteTable.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteAlterTable.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteDataTypeStaticRepresentable.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteQueryExpressionRepresentable.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Row/SQLiteDataConvertible.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Row/SQLiteDataType.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Database/SQLiteDatabase.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Database/DatabaseIdentifier+SQLite.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteBoolLiteral.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteDefaultLiteral.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Row/SQLiteColumn.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteCollation.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Database/SQLiteConnection.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteFunction.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteAlterTableBuilder.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Codable/SQLiteDataDecoder.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Codable/SQLiteRowDecoder.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Codable/SQLiteDataEncoder.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Utilities/SQLiteError.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Utilities/Exports.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Database/SQLiteStatement.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteDropIndex.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLitePrimaryKey.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteQuery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/SQL.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/SQLite.build/SQLiteDataType~partial.swiftmodule : /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Row/SQLiteData.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteGeneric.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Utilities/Deprecated.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteBind.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Database/SQLiteStorage.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteCreateTable.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteTable.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteAlterTable.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteDataTypeStaticRepresentable.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteQueryExpressionRepresentable.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Row/SQLiteDataConvertible.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Row/SQLiteDataType.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Database/SQLiteDatabase.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Database/DatabaseIdentifier+SQLite.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteBoolLiteral.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteDefaultLiteral.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Row/SQLiteColumn.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteCollation.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Database/SQLiteConnection.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteFunction.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteAlterTableBuilder.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Codable/SQLiteDataDecoder.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Codable/SQLiteRowDecoder.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Codable/SQLiteDataEncoder.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Utilities/SQLiteError.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Utilities/Exports.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Database/SQLiteStatement.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteDropIndex.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLitePrimaryKey.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteQuery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/SQL.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/SQLite.build/SQLiteDataType~partial.swiftdoc : /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Row/SQLiteData.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteGeneric.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Utilities/Deprecated.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteBind.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Database/SQLiteStorage.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteCreateTable.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteTable.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteAlterTable.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteDataTypeStaticRepresentable.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteQueryExpressionRepresentable.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Row/SQLiteDataConvertible.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Row/SQLiteDataType.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Database/SQLiteDatabase.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Database/DatabaseIdentifier+SQLite.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteBoolLiteral.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteDefaultLiteral.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Row/SQLiteColumn.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteCollation.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Database/SQLiteConnection.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteFunction.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteAlterTableBuilder.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Codable/SQLiteDataDecoder.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Codable/SQLiteRowDecoder.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Codable/SQLiteDataEncoder.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Utilities/SQLiteError.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Utilities/Exports.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/Database/SQLiteStatement.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteDropIndex.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLitePrimaryKey.swift /Users/nice/HelloWord/.build/checkouts/sqlite.git--4454338443970141452/Sources/SQLite/SQL/SQLiteQuery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/SQL.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
module dcrypt.benchmark.sphincs256; import dcrypt.benchmark.Benchmark; import dcrypt.pqc.sphincs.sphincs256: Sphincs256; public class Sphincs256Benchmark: Benchmark { this (){ } @property static string[] header() { return ["sphincs256", "sign/s", "verify/s"]; } override string[] benchmark(ulong length) { StopWatch sw; ubyte[Sphincs256.secretkey_bytes] sk; ubyte[Sphincs256.publickey_bytes] pk = Sphincs256.pubkey(sk); ubyte[Sphincs256.sig_bytes] sig; ubyte[100] msg; // signature sw.reset(); sw.start(); foreach(size_t i; 0 .. length) { sig = Sphincs256.sign_detached(msg, sk); } sw.stop(); auto speedSign = (1.0e9 * length / sw.peek().nsecs()); // verification sw.reset(); sw.start(); foreach(size_t i; 0 .. length) { bool v = Sphincs256.verify(msg, sig, pk); assert(v); } sw.stop(); auto speedVerify = (1.0e9 * length / sw.peek().nsecs()); return ["", numberFormat(speedSign), numberFormat(speedVerify)]; } }
D
/+ dub.sdl: name "tests" description "TCP disconnect task issue" dependency "vibe-core" path="../" versions "VibeDefaultMain" +/ module test; import vibe.core.core; import vibe.core.net; import core.time : msecs; shared static this() { listenTCP(11375,(conn){ auto td = runTask!TCPConnection((conn) { ubyte [3] buf; try { conn.read(buf); assert(false, "Expected read() to throw an exception."); } catch (Exception) {} // expected }, conn); sleep(10.msecs); conn.close(); }); runTask({ try { auto conn = connectTCP("127.0.0.1", 11375); conn.write("a"); conn.close(); } catch (Exception e) assert(false, e.msg); try { auto conn = connectTCP("127.0.0.1", 11375); conn.close(); } catch (Exception e) assert(false, e.msg); sleep(50.msecs); exitEventLoop(); }); }
D
import std.stdio; import dpmatch; import dadt; mixin(genCodeFromSource(` type Option(T) = | Some of T | None [@@deriving show, eq] `)); import std.traits; Option!U opt_map(F, T = Parameters!F[0], U = ReturnType!F)(Option!T v_opt, F f) if (isCallable!F && arity!F == 1) { mixin(patternMatchADTReturn!(v_opt, OptionType, q{ | Some (x) -> <{ return some(f(x)); }> | None -> <{ return none!T(); }> })); } Option!U opt_bind(F, T = Parameters!F[0], RET = ReturnType!F, U = TemplateArgsOf!RET[0])( Option!T v_opt, F f) if (isCallable!F && arity!F == 1) { mixin(patternMatchADTReturn!(v_opt, OptionType, q{ | Some (x) -> <{ return f(x); }> | None -> <{ return none!U; }> })); } T opt_default(T)(Option!T v_opt, T _default) { mixin(patternMatchADTReturn!(v_opt, OptionType, q{ | Some (x) -> <{ return x; }> | None -> <{ return _default; }> })); } void opt_may(F, T = Parameters!F[0])(Option!T v_opt, F f) if (isCallable!F && arity!F == 1) { mixin(patternMatchADTReturn!(v_opt, OptionType, q{ | Some (x) -> <{ f(x); }> | None -> <{ }> })); } mixin(genCodeFromSource(` type Hoge = | A of int | B of string `)); void main() { writeln("opt_default(some(10), 0): ", opt_default(some(10), 0)); writeln("opt_default(none!int, 0): ", opt_default(none!int, 0)); Option!int v = some(100); mixin(patternMatchADTBind!(v, OptionType, q{ | Some (x) -> <{ return x; }> | None -> <{ return 200; }> }, "ret")); writeln(ret); v = none!int(); mixin(patternMatchADT!(v, OptionType, q{ | Some (x) -> <{ writeln("Some with ", x); }> | None -> <{ writeln("None"); }> })); int i1 = 10; int i2 = 0; Option!int opt_ans = (i2 == 0 ? none!int : some(i2)).opt_map((int d) => i1 / d); writeln(show_Option(opt_ans)); // None!(int) i2 = 2; opt_ans = (i2 == 0 ? none!int : some(i2)).opt_map((int d) => i1 / d); writeln(show_Option(opt_ans)); // Some!(int)(5) Hoge h = a(123); mixin(patternMatchADT!(h, HogeType, q{ | A (a) -> <{ writeln("a : ", a); }> | B (b) -> <{ writeln("b : ", b); }> })); h = b("str"); mixin(patternMatchADT!(h, HogeType, q{ | A (a) -> <{ writeln("a : ", a); }> | B (b) -> <{ writeln("b : ", b); }> })); }
D
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Vapor.build/WebSocket/WebSocketServer.swift.o : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Vapor.build/WebSocket/WebSocketServer~partial.swiftmodule : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Vapor.build/WebSocket/WebSocketServer~partial.swiftdoc : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
import io; import std.datetime, std.random; import std.parallelism; // Creates a 1 GiB file containing random data. // Takes ~2 seconds on my machine. void main() { auto sw = StopWatch(AutoStart.yes); auto f = tempFile(); f.length = 1024^^3; // 1 GiB auto map = f.memoryMap!size_t(Access.write); foreach (i, ref e; parallel(map[])) e = uniform!"[]"(size_t.min, size_t.max); println("Time Taken: ", cast(Duration)sw.peek); }
D
/******************************************************************************* * Copyright (c) 2000, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation * Port to the D programming language: * Frank Benoit <benoit@tionex.de> *******************************************************************************/ module dwtx.draw2d.geometry.Dimension; import dwtx.draw2d.geometry.Point; import dwt.dwthelper.utils; import dwtx.draw2d.geometry.Translatable; static import dwt.graphics.Point; static import dwt.graphics.Image; static import dwt.graphics.Rectangle; import tango.text.convert.Format; /** * Stores an integer width and height. This class provides various methods for * manipulating this Dimension or creating new derived Objects. */ public class Dimension : Cloneable/+, java.io.Serializable+/, Translatable { /**A singleton for use in short calculations. Use to avoid newing unnecessary objects.*/ private static Dimension SINGLETON_; public static Dimension SINGLETON(){ if( SINGLETON_ is null ){ synchronized( Dimension.classinfo ){ if( SINGLETON_ is null ){ SINGLETON_ = new Dimension(); } } } return SINGLETON_; } /**The width.*/ public int width; /**The height. */ public int height; static final long serialVersionUID = 1; /** * Constructs a Dimension of zero width and height. * * @since 2.0 */ public this() { } /** * Constructs a Dimension with the width and height of the passed Dimension. * * @param d the Dimension supplying the initial values * @since 2.0 */ public this(Dimension d) { width = d.width; height = d.height; } /** * Constructs a Dimension where the width and height are the x and y distances of the * input point from the origin. * * @param pt the Point supplying the initial values * @since 2.0 */ public this(dwt.graphics.Point.Point pt) { width = pt.x; height = pt.y; } /** * Constructs a Dimension with the supplied width and height values. * * @param w the width * @param h the height * @since 2.0 */ public this(int w, int h) { width = w; height = h; } /** * Constructs a Dimension with the width and height of the Image supplied as input. * * @param image the image supplying the dimensions * @since 2.0 */ public this(dwt.graphics.Image.Image image) { dwt.graphics.Rectangle.Rectangle r = image.getBounds(); width = r.width; height = r.height; } /** * Returns <code>true</code> if the input Dimension fits into this Dimension. A Dimension * of the same size is considered to "fit". * * @param d the dimension being tested * @return <code>true</code> if this Dimension contains <i>d</i> * @since 2.0 */ public bool contains(Dimension d) { return width >= d.width && height >= d.height; } /** * Returns <code>true</code> if this Dimension properly contains the one specified. * Proper containment is defined as containment using "<", instead of "<=". * * @param d the dimension being tested * @return <code>true</code> if this Dimension properly contains the one specified * @since 2.0 */ public bool containsProper(Dimension d) { return width > d.width && height > d.height; } /** * Copies the width and height values of the input Dimension to this Dimension. * * @param d the dimension supplying the values * @since 2.0 */ public void setSize(Dimension d) { width = d.width; height = d.height; } /** * Returns the area of this Dimension. * * @return the area * @since 2.0 */ public int getArea() { return width * height; } /** * Creates and returns a copy of this Dimension. * @return a copy of this Dimension * @since 2.0 */ public Dimension getCopy() { return new Dimension(this); } /** * Creates and returns a new Dimension representing the difference between this Dimension * and the one specified. * * @param d the dimension being compared * @return a new dimension representing the difference * @since 2.0 */ public Dimension getDifference(Dimension d) { return new Dimension(width - d.width, height - d.height); } /** * Creates and returns a Dimension representing the sum of this Dimension and the one * specified. * * @param d the dimension providing the expansion width and height * @return a new dimension expanded by <i>d</i> * @since 2.0 */ public Dimension getExpanded(Dimension d) { return new Dimension(width + d.width, height + d.height); } /** * Creates and returns a new Dimension representing the sum of this Dimension and the one * specified. * * @param w value by which the width of this is to be expanded * @param h value by which the height of this is to be expanded * @return a new Dimension expanded by the given values * @since 2.0 */ public Dimension getExpanded(int w, int h) { return new Dimension(width + w, height + h); } /** * Creates and returns a new Dimension representing the intersection of this Dimension and * the one specified. * * @param d the Dimension to intersect with * @return A new Dimension representing the intersection * @since 2.0 */ public Dimension getIntersected(Dimension d) { return (new Dimension(this)).intersect(d); } /** * Creates and returns a new Dimension with negated values. * * @return a new Dimension with negated values * @since 2.0 */ public Dimension getNegated() { return new Dimension(0 - width, 0 - height); } /** * Returns whether the input Object is equivalent to this Dimension. <code>true</code> if * the Object is a Dimension and its width and height are equal to this Dimension's width * and height, <code>false</code> otherwise. * * @param o the Object being tested for equality * @return <code>true</code> if the given object is equal to this dimension * @since 2.0 */ public override int opEquals(Object o) { if (auto d = cast(Dimension)o ) { return (d.width is width && d.height is height); } return false; } /** * Returns <code>true</code> if this Dimension's width and height are equal to the given * width and height. * * @param w the width * @param h the height * @return <code>true</code> if this dimension's width and height are equal to those given. * @since 2.0 */ public bool equals(int w, int h) { return width is w && height is h; } /** * Expands the size of this Dimension by the specified amount. * * @param d the Dimension providing the expansion width and height * @return <code>this</code> for convenience * @since 2.0 */ public Dimension expand(Dimension d) { width += d.width; height += d.height; return this; } /** * Expands the size of this Dimension by the specified amound. * * @param pt the Point supplying the dimensional values * @return <code>this</code> for convenience * @since 2.0 */ public Dimension expand(Point pt) { width += pt.x; height += pt.y; return this; } /** * Expands the size of this Dimension by the specified width and height. * * @param w Value by which the width should be increased * @param h Value by which the height should be increased * @return <code>this</code> for convenience * @since 2.0 */ public Dimension expand(int w, int h) { width += w; height += h; return this; } /** * Creates a new Dimension with its width and height scaled by the specified value. * * @param amount Value by which the width and height are scaled * @return a new dimension with the scale applied * @since 2.0 */ public Dimension getScaled(double amount) { return (new Dimension(this)) .scale(amount); } /** * Creates a new Dimension with its height and width swapped. Useful in orientation change * calculations. * * @return a new Dimension with its height and width swapped * @since 2.0 */ public Dimension getTransposed() { return (new Dimension(this)) .transpose(); } /** * Creates a new Dimension representing the union of this Dimension with the one * specified. Union is defined as the max() of the values from each Dimension. * * @param d the Dimension to be unioned * @return a new Dimension * @since 2.0 */ public Dimension getUnioned(Dimension d) { return (new Dimension(this)).union_(d); } /** * @see java.lang.Object#toHash() */ public override hash_t toHash() { return (width * height) ^ (width + height); } /** * This Dimension is intersected with the one specified. Intersection is performed by * taking the min() of the values from each dimension. * * @param d the Dimension used to perform the min() * @return <code>this</code> for convenience * @since 2.0 */ public Dimension intersect(Dimension d) { width = Math.min(d.width, width); height = Math.min(d.height, height); return this; } /** * Returns <code>true</code> if the Dimension has width or height greater than 0. * * @return <code>true</code> if this Dimension is empty * @since 2.0 */ public bool isEmpty() { return (width <= 0) || (height <= 0); } /** * Negates the width and height of this Dimension. * * @return <code>this</code> for convenience * @since 2.0 */ public Dimension negate() { width = 0 - width; height = 0 - height; return this; } /** * @see dwtx.draw2d.geometry.Translatable#performScale(double) */ public void performScale(double factor) { scale(factor); } /** * @see dwtx.draw2d.geometry.Translatable#performTranslate(int, int) */ public void performTranslate(int dx, int dy) { } /** * Scales the width and height of this Dimension by the amount supplied, and returns this * for convenience. * * @param amount value by which this Dimension's width and height are to be scaled * @return <code>this</code> for convenience * @since 2.0 */ public Dimension scale(double amount) { return scale(amount, amount); } /** * Scales the width of this Dimension by <i>w</i> and scales the height of this Dimension * by <i>h</i>. Returns this for convenience. * * @param w the value by which the width is to be scaled * @param h the value by which the height is to be scaled * @return <code>this</code> for convenience * @since 2.0 */ public Dimension scale(double w, double h) { width = cast(int)(Math.floor(width * w)); height = cast(int)(Math.floor(height * h)); return this; } /** * Reduces the width of this Dimension by <i>w</i>, and reduces the height of this * Dimension by <i>h</i>. Returns this for convenience. * * @param w the value by which the width is to be reduced * @param h the value by which the height is to be reduced * @return <code>this</code> for convenience * @since 2.0 */ public Dimension shrink(int w, int h) { return expand(-w, -h); } /** * @see Object#toString() */ public override String toString() { return Format("Dimension({}, {})", width, height); } /** * Swaps the width and height of this Dimension, and returns this for convenience. Can be * useful in orientation changes. * * @return <code>this</code> for convenience * @since 2.0 */ public Dimension transpose() { int temp = width; width = height; height = temp; return this; } /** * Sets the width of this Dimension to the greater of this Dimension's width and * <i>d</i>.width. Likewise for this Dimension's height. * * @param d the Dimension to union with this Dimension * @return <code>this</code> for convenience * @since 2.0 */ public Dimension union_ (Dimension d) { width = Math.max(width, d.width); height = Math.max(height, d.height); return this; } /** * Returns <code>double</code> width * * @return <code>double</code> width * @since 3.4 */ public double preciseWidth() { return width; } /** * Returns <code>double</code> height * * @return <code>double</code> height * @since 3.4 */ public double preciseHeight() { return height; } }
D
# FIXED ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/icall/src/icall.c ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/hal/Hwi.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/std.h ICall/icall.obj: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/stdarg.h ICall/icall.obj: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/sys/_types.h ICall/icall.obj: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/sys/cdefs.h ICall/icall.obj: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/machine/_types.h ICall/icall.obj: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/stddef.h ICall/icall.obj: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/_ti_config.h ICall/icall.obj: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/linkage.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/targets/arm/elf/std.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/targets/arm/elf/M3.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/targets/std.h ICall/icall.obj: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/stdint.h ICall/icall.obj: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/_stdint40.h ICall/icall.obj: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/sys/stdint.h ICall/icall.obj: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/machine/_stdint.h ICall/icall.obj: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/sys/_stdint.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/xdc.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types__prologue.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/package/package.defs.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types__epilogue.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/hal/Hwi__prologue.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/hal/package/package.defs.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error__prologue.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Main.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IHeap.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Memory.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IHeap.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/package/Memory_HeapProxy.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IHeap.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/package/Main_Module_GateProxy.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error__epilogue.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/interfaces/IHwi.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/interfaces/package/package.defs.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/hal/package/Hwi_HwiProxy.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/interfaces/IHwi.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/hal/Hwi__epilogue.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi__prologue.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/family/arm/m3/package/package.defs.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags__prologue.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Main.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags__epilogue.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Log.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Log__prologue.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Main.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Text.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Log__epilogue.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert__prologue.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Main.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert__epilogue.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/BIOS.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/BIOS__prologue.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/package/package.defs.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/package/BIOS_RtsGateProxy.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/BIOS__epilogue.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/interfaces/IHwi.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi__epilogue.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/hal/package/Hwi_HwiProxy.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/gates/GateHwi.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/gates/package/package.defs.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Swi.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/package/package.defs.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Log.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Queue.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Clock.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Log.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/interfaces/ITimer.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Queue.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Swi.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/package/Clock_TimerProxy.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/interfaces/ITimer.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/package/Clock_TimerProxy.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Task.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Task__prologue.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Log.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IHeap.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Queue.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/interfaces/ITaskSupport.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Clock.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/package/Task_SupportProxy.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/interfaces/ITaskSupport.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Task__epilogue.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/package/Task_SupportProxy.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Semaphore.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Log.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Queue.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Task.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Clock.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Event.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Event__prologue.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Log.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Queue.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Clock.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Task.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Event__epilogue.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Event.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/BIOS.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/package/BIOS_RtsGateProxy.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/cfg/global.h ICall/icall.obj: C:/Users/deada/workspace_v9/ble5_project_zero_cc2640r2lp_app/FlashROM_StackLibrary/configPkg/package/cfg/app_ble_pem3.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/heaps/HeapCallback.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/heaps/package/package.defs.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Memory.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IHeap.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/icall/src/inc/icall.h ICall/icall.obj: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/stdbool.h ICall/icall.obj: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/stdlib.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/hal/src/inc/hal_assert.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/hal/src/target/_common/hal_types.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/hal/src/target/_common/../_common/cc26xx/_hal_types.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/hal/src/inc/hal_defs.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/icall/src/icall_platform.h ICall/icall.obj: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/stdlib.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/icall/inc/icall_addrs.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/hal/src/target/_common/hal_types.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/icall/inc/ble_user_config.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/icall/src/inc/icall_user_config.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/hal/src/target/_common/cc26xx/rf_hal.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/hal/src/target/_common/hal_types.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/rf/RF.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/dpl/ClockP.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/dpl/SemaphoreP.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/utils/List.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/DeviceFamily.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/rf_common_cmd.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/rf_mailbox.h ICall/icall.obj: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/string.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/rf_prop_cmd.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/rf_ble_cmd.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/icall/inc/ble_dispatch.h ICall/icall.obj: C:/Users/deada/workspace_v9/ble5_project_zero_cc2640r2lp_app/Startup/board.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/ADC.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/ADCBuf.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/PWM.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/SPI.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/UART.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/Watchdog.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/Board.h ICall/icall.obj: C:/Users/deada/workspace_v9/ble5_project_zero_cc2640r2lp_app/Startup/CC2640R2_LAUNCHXL.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/PIN.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/ioc.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../inc/hw_types.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../inc/../inc/hw_chip_def.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../inc/hw_memmap.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../inc/hw_ioc.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../inc/hw_ints.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/interrupt.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../inc/hw_nvic.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/debug.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/cpu.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../inc/hw_cpu_scs.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../driverlib/rom.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/gpio.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../inc/hw_gpio.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/heapmgr/rtos_heaposal.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/heaps/HeapCallback.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/heaps/HeapMem.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Memory.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IHeap.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/heaps/package/HeapMem_Module_GateProxy.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h ICall/icall.obj: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/heaps/package/HeapMem_Module_GateProxy.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/System.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/ISystemSupport.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/package/System_SupportProxy.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/ISystemSupport.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/package/System_Module_GateProxy.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/package/System_SupportProxy.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/package/System_Module_GateProxy.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Memory.h ICall/icall.obj: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/package/Memory_HeapProxy.h C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/icall/src/icall.c: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/hal/Hwi.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/std.h: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/stdarg.h: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/sys/_types.h: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/sys/cdefs.h: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/machine/_types.h: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/stddef.h: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/_ti_config.h: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/linkage.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/targets/arm/elf/std.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/targets/arm/elf/M3.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/targets/std.h: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/stdint.h: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/_stdint40.h: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/sys/stdint.h: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/machine/_stdint.h: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/sys/_stdint.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/xdc.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types__prologue.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/package/package.defs.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types__epilogue.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/hal/Hwi__prologue.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/hal/package/package.defs.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error__prologue.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Main.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IHeap.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Memory.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IHeap.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/package/Memory_HeapProxy.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IHeap.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/package/Main_Module_GateProxy.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error__epilogue.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/interfaces/IHwi.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/interfaces/package/package.defs.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/hal/package/Hwi_HwiProxy.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/interfaces/IHwi.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/hal/Hwi__epilogue.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi__prologue.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/family/arm/m3/package/package.defs.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags__prologue.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Main.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags__epilogue.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Log.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Log__prologue.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Main.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Text.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Log__epilogue.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert__prologue.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Main.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert__epilogue.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/BIOS.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/BIOS__prologue.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/package/package.defs.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/package/BIOS_RtsGateProxy.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/BIOS__epilogue.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/interfaces/IHwi.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi__epilogue.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/hal/package/Hwi_HwiProxy.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/gates/GateHwi.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/gates/package/package.defs.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Swi.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/package/package.defs.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Log.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Queue.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Clock.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Log.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/interfaces/ITimer.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Queue.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Swi.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/package/Clock_TimerProxy.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/interfaces/ITimer.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/package/Clock_TimerProxy.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Task.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Task__prologue.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Log.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IHeap.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Queue.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/interfaces/ITaskSupport.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Clock.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/package/Task_SupportProxy.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/interfaces/ITaskSupport.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Task__epilogue.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/package/Task_SupportProxy.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Semaphore.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Log.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Queue.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Task.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Clock.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Event.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Event__prologue.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Log.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Queue.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Clock.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Task.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Event__epilogue.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/knl/Event.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/BIOS.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/package/BIOS_RtsGateProxy.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/cfg/global.h: C:/Users/deada/workspace_v9/ble5_project_zero_cc2640r2lp_app/FlashROM_StackLibrary/configPkg/package/cfg/app_ble_pem3.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/heaps/HeapCallback.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/heaps/package/package.defs.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Memory.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IHeap.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/icall/src/inc/icall.h: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/stdbool.h: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/stdlib.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/hal/src/inc/hal_assert.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/hal/src/target/_common/hal_types.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/hal/src/target/_common/../_common/cc26xx/_hal_types.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/hal/src/inc/hal_defs.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/icall/src/icall_platform.h: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/stdlib.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/icall/inc/icall_addrs.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/hal/src/target/_common/hal_types.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/icall/inc/ble_user_config.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/icall/src/inc/icall_user_config.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/hal/src/target/_common/cc26xx/rf_hal.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/hal/src/target/_common/hal_types.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/rf/RF.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/dpl/ClockP.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/dpl/SemaphoreP.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/utils/List.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/DeviceFamily.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/rf_common_cmd.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/rf_mailbox.h: C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include/string.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/rf_prop_cmd.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/rf_ble_cmd.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/icall/inc/ble_dispatch.h: C:/Users/deada/workspace_v9/ble5_project_zero_cc2640r2lp_app/Startup/board.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/ADC.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/ADCBuf.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/PWM.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/SPI.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/UART.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/Watchdog.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/Board.h: C:/Users/deada/workspace_v9/ble5_project_zero_cc2640r2lp_app/Startup/CC2640R2_LAUNCHXL.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/drivers/PIN.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/ioc.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../inc/hw_types.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../inc/../inc/hw_chip_def.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../inc/hw_memmap.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../inc/hw_ioc.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../inc/hw_ints.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/interrupt.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../inc/hw_nvic.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/debug.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/cpu.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../inc/hw_cpu_scs.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../driverlib/rom.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/gpio.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/devices/cc26x0r2/driverlib/../inc/hw_gpio.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/heapmgr/rtos_heaposal.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/heaps/HeapCallback.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/heaps/HeapMem.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Memory.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IHeap.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/heaps/package/HeapMem_Module_GateProxy.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h: C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/kernel/tirtos/packages/ti/sysbios/heaps/package/HeapMem_Module_GateProxy.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/System.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Assert.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/ISystemSupport.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/package/System_SupportProxy.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/ISystemSupport.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/package/System_Module_GateProxy.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/IGateProvider.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/package/System_SupportProxy.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/package/System_Module_GateProxy.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/Memory.h: C:/ti/xdctools_3_51_03_28_core/packages/xdc/runtime/package/Memory_HeapProxy.h:
D
import std.stdio, std.algorithm, std.range, std.conv; string sierpinskiCarpet(in int n) /*pure nothrow*/ { static bool inCarpet(int x, int y) pure nothrow { while (x != 0 && y != 0) { if (x % 3 == 1 && y % 3 == 1) return false; x /= 3; y /= 3; } return true; } return iota(3 ^^ n) .map!(i => iota(3 ^^ n) .map!(j=> cast(dchar)(inCarpet(i,j)? '#' : ' '))) .joiner("\n") .text; } void main() { 3.sierpinskiCarpet.writeln; }
D
/* * Copyright (c) 2018, Christopher Atherton <the8lack8ox@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ import std.encoding; import std.getopt; import std.algorithm : all, countUntil, min; import std.bitmanip : nativeToBigEndian; import std.conv : to; import std.datetime; import std.exception : enforce; import std.file; import std.path : baseName; import std.stdio : stderr, writeln; immutable string ERROR_STR_EOF = "Unexpected end of file!"; immutable string[256] ID3V1_GENRES = [ "Blues", "Classic Rock", "Country", "Dance", "Disco", "Funk", "Grunge", "Hip-Hop", "Jazz", "Metal", "New Age", "Oldies", "Other", "Pop", "R&B", "Rap", "Reggae", "Rock", "Techno", "Industrial", "Alternative", "Ska", "Death Metal", "Pranks", "Soundtrack", "Euro-Techno", "Ambient", "Trip-Hop", "Vocal", "Jazz+Funk", "Fusion", "Trance", "Classical", "Instrumental", "Acid", "House", "Game", "Sound Clip", "Gospel", "Noise", "AlternRock", "Bass", "Soul", "Punk", "Space", "Meditative", "Instrumental Pop", "Instrumental Rock", "Ethnic", "Gothic", "Darkwave", "Techno-Industrial", "Electronic", "Pop-Folk", "Eurodance", "Dream", "Southern Rock", "Comedy", "Cult", "Gangsta", "Top 40", "Christian Rap", "Pop/Funk", "Jungle", "Native American", "Cabaret", "New Wave", "Psychadelic", "Rave", "Showtunes", "Trailer", "Lo-Fi", "Tribal", "Acid Punk", "Acid Jazz", "Polka", "Retro", "Musical", "Rock & Roll", "Hard Rock", "Folk", "Folk-Rock", "National Folk", "Swing", "Fast Fusion", "Bebob", "Latin", "Revival", "Celtic", "Bluegrass", "Avantgarde", "Gothic Rock", "Progressive Rock", "Psychedelic Rock", "Symphonic Rock", "Slow Rock", "Big Band", "Chorus", "Easy Listening", "Acoustic", "Humour", "Speech", "Chanson", "Opera", "Chamber Music", "Sonata", "Symphony", "Booty Bass", "Primus", "Porn Groove", "Satire", "Slow Jam", "Club", "Tango", "Samba", "Folklore", "Ballad", "Power Ballad", "Rhythmic Soul", "Freestyle", "Duet", "Punk Rock", "Drum Solo", "A capella", "Euro-House", "Dance Hall", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown", "Unknown" ]; immutable uint ID3V2_SYNCWORD = 0x49443302; // ID3\x02 immutable uint ID3V3_SYNCWORD = 0x49443303; // ID3\x03 immutable uint ID3V4_SYNCWORD = 0x49443304; // ID3\x04 immutable uint ID3V2_TITLE_FID = 0x545432; // TT2 immutable uint ID3V2_ARTIST_FID = 0x545031; // TP1 immutable uint ID3V2_PERFORMER_FID = 0xFFFFFFFF; immutable uint ID3V2_ALBUM_FID = 0x54414C; // TAL immutable uint ID3V2_TRACK_FID = 0x54524B; // TRK immutable uint ID3V2_DISC_FID = 0x545041; // TPA immutable uint ID3V2_GENRE_FID = 0x54434F; // TCO immutable uint ID3V2_YEAR_FID = 0x545945; // TYE immutable uint ID3V2_COMMENT_FID = 0x434F4D; // COM immutable uint ID3V2_COVER_FID = 0x504943; // PIC immutable uint ID3V3_TITLE_FID = 0x54495432; // TIT2 immutable uint ID3V3_ARTIST_FID = 0x54504531; // TPE1 immutable uint ID3V3_PERFORMER_FID = 0xFFFFFFFF; immutable uint ID3V3_ALBUM_FID = 0x54414C42; // TALB immutable uint ID3V3_TRACK_FID = 0x5452434B; // TRCK immutable uint ID3V3_DISC_FID = 0x54504F53; // TPOS immutable uint ID3V3_GENRE_FID = 0x54434F4E; // TCON immutable uint ID3V3_YEAR_FID = 0x54594552; // TYER immutable uint ID3V3_COMMENT_FID = 0x434F4D4D; // COMM immutable uint ID3V3_COVER_FID = 0x41504943; // APIC immutable uint ID3V4_TIMESTAMP_FID = 0x54445447; // TDTG struct Tag { string title; string artist; string performer; string album; uint track; uint disc; string genre; uint year; string comment; immutable( ubyte )[] cover; bool removeTitle; bool removeArtist; bool removePerformer; bool removeAlbum; bool removeTrack; bool removeDisc; bool removeGenre; bool removeYear; bool removeComment; bool removeCover; string timestamp; @property bool empty() { return title.length == 0 && performer.length == 0 && album.length == 0 && track == 0 && disc == 0 && genre.length == 0 && year == 0 && comment.length == 0 && cover.length == 0 && ! removeTitle && ! removeArtist && ! removePerformer && ! removeAlbum && ! removeTrack && ! removeDisc && ! removeGenre && ! removeYear && ! removeComment && ! removeCover; } Tag update( in Tag other ) { if( other.title.length > 0 ) { title = other.title; removeTitle = false; } else if( other.removeTitle ) { title = title.init; removeTitle = true; } if( other.artist.length > 0 ) { artist = other.artist; removeArtist = false; } else if( other.removeArtist ) { artist = artist.init; removeArtist = true; } if( other.performer.length > 0 ) { performer = other.performer; removePerformer = false; } else if( other.removePerformer ) { performer = performer.init; removePerformer = true; } if( other.album.length > 0 ) { album = other.album; removeAlbum = false; } else if( other.removeAlbum ) { album = album.init; removeAlbum = true; } if( other.track > 0 ) { track = other.track; removeTrack = false; } else if( other.removeTrack ) { track = track.init; removeTrack = true; } if( other.disc > 0 ) { disc = other.disc; removeDisc = false; } else if( other.removeDisc ) { disc = disc.init; removeDisc = true; } if( other.genre.length > 0 ) { genre = other.genre; removeGenre = false; } else if( other.removeGenre ) { genre = genre.init; removeGenre = true; } if( other.year > 0 ) { year = other.year; removeYear = false; } else if( other.removeYear ) { year = year.init; removeYear = true; } if( other.comment.length > 0 ) { comment = other.comment; removeComment = false; } else if( other.removeComment ) { comment = comment.init; removeComment = true; } if( other.cover.length > 0 ) { cover = other.cover.dup; removeCover = false; } else if( other.removeCover ) { cover = cover.init; removeCover = true; } //timestamp = other.timestamp; return this; } } immutable( ubyte )[] encodeSynchSafeInt( uint n ) pure { return [ cast( ubyte )( ( n & 0x0FE00000 ) >> 21 ), cast( ubyte )( ( n & 0x001FC000 ) >> 14 ), cast( ubyte )( ( n & 0x00003F80 ) >> 7 ), cast( ubyte )( n & 0x0000007F ) ]; } uint readId3Int( ref immutable( ubyte )[] buffer, size_t len, bool synch = false ) pure { enforce( buffer.length >= len, ERROR_STR_EOF ); uint ret; foreach( size_t i, uint c; buffer[0 .. len] ) { if( synch ) { enforce( ! ( c & 0x80 ), "Bad synchsafe integer" ); ret |= c << ( 7 * ( len - i - 1 ) ); } else { ret |= c << ( 8 * ( len - i - 1 ) ); } } buffer = buffer[len .. $]; return ret; } string readId3Text( ref immutable( ubyte )[] buffer, uint encoding ) { string ret; switch( encoding ) { case 0: case 3: long len = countUntil( buffer, "\x00" ); if( len == -1 ) { ret = cast( string )buffer; buffer = buffer[$ .. $]; } else { ret = cast( string )buffer[0 .. len]; buffer = buffer[len+1 .. $]; } break; case 1: case 2: wchar[] tmp; long len = countUntil( buffer, "\x00\x00" ); enforce( buffer.length >= 2, ERROR_STR_EOF ); if( buffer[0] == 0xFE && buffer[1] == 0xFF ) { if( len == -1 ) { version( BigEndian ) { tmp = buffer[wchar.sizeof .. $]; buffer = buffer[$ .. $]; } version( LittleEndian ) { tmp = new wchar[buffer.length-wchar.sizeof]; foreach( size_t i, wchar c; buffer[wchar.sizeof .. $] ) { tmp[i] = ( ( 0xFF00 & c ) >> 8 ) | ( ( 0x00FF & c ) << 8 ); } buffer = buffer[$ .. $]; } } else { version( BigEndian ) { tmp = buffer[wchar.sizeof .. len]; buffer = buffer[len+2 .. $]; } version( LittleEndian ) { tmp = new wchar[len-wchar.sizeof]; foreach( size_t i, wchar c; buffer[wchar.sizeof .. len] ) { tmp[i] = ( ( 0xFF00 & c ) >> 8 ) | ( ( 0x00FF & c ) << 8 ); } buffer = buffer[len+2 .. $]; } } } else if( buffer[0] == 0xFF && buffer[1] == 0xFE ) { if( len == -1 ) { version( BigEndian ) { tmp = new wchar[buffer.length-wchar.sizeof]; foreach( size_t i, wchar c; buffer[wchar.sizeof .. $] ) { tmp[i] = ( ( 0xFF00 & c ) >> 8 ) | ( ( 0x00FF & c ) << 8 ); } buffer = buffer[$ .. $]; } version( LittleEndian ) { tmp = cast( wchar[] )( buffer[wchar.sizeof .. $] ); buffer = buffer[$ .. $]; } } else { version( BigEndian ) { tmp = new wchar[len-wchar.sizeof]; foreach( size_t i, wchar c; buffer[wchar.sizeof .. len] ) { tmp[i] = ( ( 0xFF00 & c ) >> 8 ) | ( ( 0x00FF & c ) << 8 ); } buffer = buffer[len+2 .. $]; } version( LittleEndian ) { tmp = cast( wchar[] )( buffer[wchar.sizeof .. len] ); buffer = buffer[len+2 .. $]; } } } else { if( len == -1 ) { tmp = cast( wchar[] )buffer[0 .. $]; buffer = buffer[$ .. $]; } else { tmp = cast( wchar[] )buffer[0 .. len]; buffer = buffer[len+2 .. $]; } } transcode( tmp.idup, ret ); break; default: throw new Exception( "Unknown text encoding!" ); } return ret; } Tag readId3v1Tag( in immutable( ubyte )[] file ) { Tag ret; if( file.length >= 128 && file[$-128 .. $-125] == "TAG" ) { immutable( ubyte )[] titleLastSixty; immutable( ubyte )[] artistLastSixty; immutable( ubyte )[] albumLastSixty; if( file.length >= 355 && file[$-355 .. $-351] == "TAG+" ) { titleLastSixty = file[$-351 .. $-291]; artistLastSixty = file[$-291 .. $-231]; albumLastSixty = file[$-231 .. $-171]; immutable( ubyte )[] genre = file[$-170 .. $-140]; transcode( cast( AsciiString )genre[0 .. min( countUntil( genre, '\x00' ), 30 )], ret.genre ); } immutable( ubyte )[] title = file[$-125 .. $-95] ~ titleLastSixty; immutable( ubyte )[] artist = file[$-95 .. $-65] ~ artistLastSixty; immutable( ubyte )[] album = file[$-65 .. $-35] ~ albumLastSixty; size_t titleLen = countUntil( title, '\x00' ); if( titleLen == -1 ) titleLen = title.length; size_t artistLen = countUntil( artist, '\x00' ); if( artistLen == -1 ) artistLen = artist.length; size_t albumLen = countUntil( album, '\x00' ); if( albumLen == -1 ) albumLen = album.length; transcode( cast( AsciiString )title[0 .. titleLen], ret.title ); transcode( cast( AsciiString )artist[0 .. artistLen], ret.artist ); transcode( cast( AsciiString )album[0 .. albumLen], ret.album ); if( all( file[$-35 .. $-31] ) ) { string yearStr; transcode( cast( AsciiString )file[$-35 .. $-31], yearStr ); ret.year = to!uint( yearStr ); } if( file[$-3] == 0 ) { immutable( ubyte )[] comment = file[$-31 .. $-3]; auto commentLen = countUntil( comment, '\x00' ); if( commentLen == -1 ) commentLen = 28; transcode( cast( AsciiString )comment[0 .. commentLen], ret.comment ); ret.track = file[$-2]; } else if( file[$-3] > 0x7F ) { immutable( ubyte )[] comment = file[$-31 .. $-3]; auto commentLen = countUntil( comment, '\x00' ); if( commentLen == -1 ) commentLen = 28; transcode( cast( AsciiString )comment[0 .. commentLen], ret.comment ); } else { immutable( ubyte )[] comment = file[$-31 .. $-1]; auto commentLen = countUntil( comment, '\x00' ); if( commentLen == -1 ) commentLen = 30; transcode( cast( AsciiString )comment[0 .. commentLen], ret.comment ); } if( ret.genre.length == 0 ) ret.genre = ID3V1_GENRES[file[$-1]]; } return ret; } Tag readId3v2Tag( in immutable( ubyte )[] file ) { Tag ret; immutable( ubyte )[] pos = file; // Universal ID3v2 header uint magic = readId3Int( pos, 4 ); enforce( readId3Int( pos, 1 ) == 0, "Unknown ID3 version" ); uint flags = readId3Int( pos, 1 ); uint totalLen = readId3Int( pos, 4, true ); pos = pos[0 .. totalLen]; if( magic == ID3V2_SYNCWORD ) { // ID3v2.2 while( pos.length > 9 && pos[0] != 0 ) { uint frameId = readId3Int( pos, 3 ); uint frameLen = readId3Int( pos, 3 ); enforce( pos.length >= frameLen, ERROR_STR_EOF ); immutable( ubyte )[] sub = pos[0 .. frameLen]; pos = pos[frameLen .. $]; switch( frameId ) { case ID3V2_TITLE_FID: uint enc = readId3Int( sub, 1 ); ret.title = readId3Text( sub, enc ); break; case ID3V2_ARTIST_FID: uint enc = readId3Int( sub, 1 ); ret.artist = readId3Text( sub, enc ); break; case ID3V2_ALBUM_FID: uint enc = readId3Int( sub, 1 ); ret.album = readId3Text( sub, enc ); break; case ID3V2_TRACK_FID: uint enc = readId3Int( sub, 1 ); ret.track = to!uint( readId3Text( sub, enc ) ); break; case ID3V2_DISC_FID: uint enc = readId3Int( sub, 1 ); ret.disc = to!uint( readId3Text( sub, enc ) ); break; case ID3V2_GENRE_FID: // TODO Parse numbers uint enc = readId3Int( sub, 1 ); ret.genre = readId3Text( sub, enc ); break; case ID3V2_YEAR_FID: uint enc = readId3Int( sub, 1 ); ret.year = to!uint( readId3Text( sub, enc ) ); break; case ID3V2_COMMENT_FID: uint enc = readId3Int( sub, 1 ); // Encoding readId3Int( sub, 3 ); // Language readId3Text( sub, enc ); // Content description ret.comment = readId3Text( sub, enc ); // Comment break; case ID3V2_COVER_FID: uint enc = readId3Int( sub, 1 ); // Encoding readId3Int( sub, 3 ); // Image format readId3Int( sub, 1 ); // Type readId3Text( sub, enc ); // Description ret.cover = sub.idup; // Picture data break; default: break; } } } else if( magic == ID3V3_SYNCWORD || magic == ID3V4_SYNCWORD ) { // ID3v2.3 or ID3v2.4 // Extended header if( flags & 0x40 ) { enforce( 10 <= pos.length, ERROR_STR_EOF ); uint extLen = readId3Int( pos, 4, true ); enforce( extLen <= pos.length, ERROR_STR_EOF ); pos = pos[extLen .. $]; } // Frames while( pos.length > 10 && pos[0] != 0 ) { uint frameId = readId3Int( pos, 4 ); uint frameLen = readId3Int( pos, 4 ); uint frameFlags = readId3Int( pos, 2 ); enforce( pos.length >= frameLen, ERROR_STR_EOF ); immutable( ubyte )[] sub = pos[0 .. frameLen]; pos = pos[frameLen .. $]; switch( frameId ) { case ID3V3_TITLE_FID: uint enc = readId3Int( sub, 1 ); ret.title = readId3Text( sub, enc ); break; case ID3V3_ARTIST_FID: uint enc = readId3Int( sub, 1 ); ret.artist = readId3Text( sub, enc ); break; case ID3V3_ALBUM_FID: uint enc = readId3Int( sub, 1 ); ret.album = readId3Text( sub, enc ); break; case ID3V3_TRACK_FID: uint enc = readId3Int( sub, 1 ); string trackStr = readId3Text( sub, enc ); auto len = countUntil( trackStr, '/' ); if( len == -1 ) ret.track = to!uint( trackStr ); else ret.track = to!uint( trackStr[0 .. len] ); break; case ID3V3_DISC_FID: uint enc = readId3Int( sub, 1 ); string discStr = readId3Text( sub, enc ); auto len = countUntil( discStr, '/' ); if( len == -1 ) ret.disc = to!uint( discStr ); else ret.disc = to!uint( discStr[0 .. len] ); break; case ID3V3_GENRE_FID: uint enc = readId3Int( sub, 1 ); ret.genre = readId3Text( sub, enc ); break; case ID3V3_YEAR_FID: uint enc = readId3Int( sub, 1 ); ret.year = to!uint( readId3Text( sub, enc ) ); break; case ID3V3_COMMENT_FID: uint enc = readId3Int( sub, 1 ); // Encoding readId3Int( sub, 3 ); // Language readId3Text( sub, enc ); // Content description ret.comment = readId3Text( sub, enc ); // Comment break; case ID3V3_COVER_FID: uint enc = readId3Int( sub, 1 ); // Encoding readId3Text( sub, 0 ); // MIME readId3Int( sub, 1 ); // Picture type readId3Text( sub, enc ); // Description ret.cover = sub.idup; // Picture data break; case ID3V4_TIMESTAMP_FID: uint enc = readId3Int( sub, 1 ); ret.timestamp = readId3Text( sub, enc ); break; default: break; } // /FrameType } // /FrameLoop } // /ID3Ver return ret; } void stripId3v1Tag( ref immutable( ubyte )[] file ) pure { if( file.length >= 355 ) { if( file[$-128 .. $-125] == "TAG" ) { if( file[$-355 .. $-351] == "TAG+" ) file = file[0 .. $-355]; else file = file[0 .. $-128]; } } else if( file.length >= 128 ) { if( file[$-128 .. $-125] == "TAG" ) file = file[0 .. $-128]; } } void stripId3v2Tag( ref immutable( ubyte )[] file ) pure { if( file.length >= 10 ) { if( readId3Int( file, 3 ) == 0x494433 ) { uint ver = readId3Int( file, 1 ); enforce( readId3Int( file, 1 ) == 0, "Unknown ID3 version" ); if( ver == 2 || ver == 3 ) { readId3Int( file, 1 ); // flags uint len = readId3Int( file, 4, true ); enforce( len <= file.length, ERROR_STR_EOF ); file = file[len .. $]; } else if( ver == 4 ) { uint flags = readId3Int( file, 1 ); uint len = readId3Int( file, 4, true ); if( flags & 0x10 ) { enforce( len + 10 <= file.length ); file = file[len+10 .. $]; } else { enforce( len <= file.length, ERROR_STR_EOF ); file = file[len .. $]; } } } } } ubyte[] writeId3v2Tag( ref Tag tag ) { immutable ubyte[2] ZERO_FLAGS = [ 0, 0 ]; immutable ubyte[1] LATIN1_TEXT = [ 0 ]; immutable ubyte[1] UTF8_TEXT = [ 3 ]; immutable ubyte[1] ONE_ZERO = [ 0 ]; immutable ubyte[2] TWO_ZEROS = [ 0, 0 ]; immutable ubyte[3] COMM_UND = [ 0x75, 0x6E, 0x64 ]; uint totalLen; // TIT2 -- title ubyte[] titleFrame; if( tag.title.length > 0 ) { titleFrame = nativeToBigEndian( ID3V3_TITLE_FID ) ~ nativeToBigEndian( 1 + cast( uint )tag.title.length ) ~ ZERO_FLAGS ~ UTF8_TEXT ~ cast( ubyte[] )tag.title; totalLen += titleFrame.length; } // TPE1 -- artist ubyte[] artistFrame; if( tag.artist.length > 0 ) { artistFrame = nativeToBigEndian( ID3V3_ARTIST_FID ) ~ nativeToBigEndian( 1 + cast( uint )tag.artist.length ) ~ ZERO_FLAGS ~ UTF8_TEXT ~ cast( ubyte[] )tag.artist; totalLen += artistFrame.length; } /+ // TPE1 -- artist ubyte[] performerFrame; if( tag.performer.length > 0 ) { performerFrame = nativeToBigEndian( ID3V3_PERFORMER_FID ) ~ nativeToBigEndian( 1 + cast( uint )tag.artist.length ) ~ ZERO_FLAGS ~ UTF8_TEXT ~ cast( ubyte[] )tag.performer; totalLen += performerFrame.length; } +/ // TALB -- album ubyte[] albumFrame; if( tag.album.length > 0 ) { albumFrame = nativeToBigEndian( ID3V3_ALBUM_FID ) ~ nativeToBigEndian( 1 + cast( uint )tag.album.length ) ~ ZERO_FLAGS ~ UTF8_TEXT ~ cast( ubyte[] )tag.album; totalLen += albumFrame.length; } // TRCK -- track# ubyte[] trackFrame; if( tag.track > 0 ) { string str = to!string( tag.track ); trackFrame = nativeToBigEndian( ID3V3_TRACK_FID ) ~ nativeToBigEndian( 1 + cast( uint )str.length ) ~ ZERO_FLAGS ~ UTF8_TEXT ~ cast( ubyte[] )str; totalLen += trackFrame.length; } // TPOS -- disc# ubyte[] discFrame; if( tag.disc > 0 ) { string str = to!string( tag.disc ); discFrame = nativeToBigEndian( ID3V3_DISC_FID ) ~ nativeToBigEndian( 1 + cast( uint )str.length ) ~ ZERO_FLAGS ~ UTF8_TEXT ~ cast( ubyte[] )str; totalLen += discFrame.length; } // TCON -- genre ubyte[] genreFrame; if( tag.genre.length > 0 ) { genreFrame = nativeToBigEndian( ID3V3_GENRE_FID ) ~ nativeToBigEndian( 1 + cast( uint )tag.genre.length ) ~ ZERO_FLAGS ~ UTF8_TEXT ~ cast( ubyte[] )tag.genre; totalLen += genreFrame.length; } // TYER -- year ubyte[] yearFrame; if( tag.year > 0 ) { string str = to!string( tag.year ); yearFrame = nativeToBigEndian( ID3V3_YEAR_FID ) ~ nativeToBigEndian( 1 + cast( uint )str.length ) ~ ZERO_FLAGS ~ UTF8_TEXT ~ cast( ubyte[] )str; totalLen += yearFrame.length; } // COMM -- comment ubyte[] commentFrame; if( tag.comment.length > 0 ) { commentFrame = nativeToBigEndian( ID3V3_COMMENT_FID ) ~ nativeToBigEndian( 5 + cast( uint )tag.comment.length ) ~ ZERO_FLAGS ~ UTF8_TEXT ~ COMM_UND ~ ONE_ZERO ~ cast( ubyte[] )tag.comment; totalLen += commentFrame.length; } // APIC -- cover art ubyte[] coverFrame; if( tag.cover.length > 0 ) { immutable( ubyte )[] COVER_PICTURE = [ cast( ubyte )3 ]; coverFrame = nativeToBigEndian( ID3V3_COVER_FID ) ~ nativeToBigEndian( cast( uint )( 4 + tag.cover.length ) ) ~ ZERO_FLAGS ~ UTF8_TEXT ~ ONE_ZERO ~ COVER_PICTURE ~ ONE_ZERO ~ tag.cover; totalLen += coverFrame.length; } // TDTG -- time stamp tag.timestamp = Clock.currTime( UTC() ).toISOExtString(); ubyte[] timestampFrame = nativeToBigEndian( ID3V4_TIMESTAMP_FID ) ~ nativeToBigEndian( cast( uint )( 1 + tag.timestamp.length ) ) ~ ZERO_FLAGS ~ UTF8_TEXT ~ cast( ubyte[] )tag.timestamp; totalLen += timestampFrame.length; return nativeToBigEndian( ID3V4_SYNCWORD ) ~ TWO_ZEROS ~ encodeSynchSafeInt( totalLen ) ~ titleFrame ~ artistFrame ~ albumFrame ~ trackFrame ~ discFrame ~ genreFrame ~ yearFrame ~ commentFrame ~ coverFrame ~ timestampFrame; } int main( string[] args ) { int exitStatus = 0; try { Tag newTag; bool discardOldTag; string coverArtPath; string exportCoverArtPath; auto helpInfo = getopt ( args, std.getopt.config.caseSensitive, "discard|r", "Remove all previous tag data.", &discardOldTag, "title|t", "Set title.", &newTag.title, "artist|a", "Set artist.", &newTag.artist, "performer|p", "Set performer.", &newTag.performer, "album|l", "Set album.", &newTag.album, "track|n", "Set track number.", &newTag.track, "disc|m", "Set disc number.", &newTag.disc, "genre|g", "Set genre.", &newTag.genre, "year|y", "Set year.", &newTag.year, "comment|c", "Set comment.", &newTag.comment, "cover|f", "Set cover art.", &coverArtPath, "remove-title|T", "Delete existing title.", &newTag.removeTitle, "remove-artist|A", "Delete existing artist.", &newTag.removeArtist, "remove-performer|P", "Delete existing performer.", &newTag.removePerformer, "remove-album|L", "Delete existing album.", &newTag.removeAlbum, "remove-track|N", "Delete existing track number.", &newTag.removeTrack, "remove-disc|M", "Delete existing disc number.", &newTag.removeDisc, "remove-genre|G", "Delete existing genre.", &newTag.removeGenre, "remove-year|Y", "Delete existing year.", &newTag.removeYear, "remove-comment|C", "Delete existing comment.", &newTag.removeComment, "remove-cover|F", "Delete existing cover art.", &newTag.removeCover, "export-cover|e", "Export existing cover art.", &exportCoverArtPath ); if( helpInfo.helpWanted ) { defaultGetoptPrinter( "MP3 ID3 tag editor", helpInfo.options ); return 0; } if( coverArtPath.length > 0 ) { newTag.cover = cast( immutable( ubyte )[] )read( coverArtPath ); } // Process input(s) foreach( arg; args[1 .. $] ) { try { // Get old tag Tag tag; immutable( ubyte )[] file = cast( immutable( ubyte )[] )read( arg ); if( ! discardOldTag ) { tag = readId3v1Tag( file ); tag.update( readId3v2Tag( file ) ); } // Export cover art if( exportCoverArtPath.length > 0 ) std.file.write( exportCoverArtPath, tag.cover ); // Check for tag alteration if( ! newTag.empty || discardOldTag ) { // Remove old tag stripId3v2Tag( file ); stripId3v1Tag( file ); // Insert new tag fields tag.update( newTag ); // Update file std.file.write( arg, writeId3v2Tag( tag ) ~ file ); } // Print tag writeln( "Filename:\t", baseName( arg ) ); if( tag.title.length > 0 ) writeln( "Title:\t\t", tag.title ); if( tag.artist.length > 0 ) writeln( "Artist:\t\t", tag.artist ); if( tag.performer.length > 0 ) writeln( "Performer:\t", tag.performer ); if( tag.album.length > 0 ) writeln( "Album:\t\t", tag.album ); if( tag.track > 0 ) writeln( "Track#:\t\t", tag.track ); if( tag.genre.length > 0 ) writeln( "Genre:\t\t", tag.genre ); if( tag.disc > 0 ) writeln( "Disc#:\t\t", tag.disc ); if( tag.year > 0 ) writeln( "Year:\t\t", tag.year ); if( tag.comment.length > 0 ) writeln( "Comment:\t", tag.comment ); if( tag.timestamp.length > 0 ) writeln( "Timestamp:\t", tag.timestamp ); writeln( "Cover:\t\t", ( tag.cover.length > 0 ) ); writeln(); } catch( Exception err ) { stderr.writeln( "ERROR: ", err.msg ); stderr.writeln( "ERROR: Problem processing \"", arg, "\"!" ); exitStatus = 1; } } } catch( Exception err ) { stderr.writeln( "ERROR: ", err.msg ); stderr.writeln( "ERROR: Fatal error occurred!" ); exitStatus = 1; } if( exitStatus != 0 ) stderr.writeln( "Exiting with failure ..." ); return exitStatus; } // vim: ts=4:sw=4:noet:si
D
a line corresponding to the surface of the water when the vessel is afloat on an even keel
D
/Users/parkingsq1/Documents/PushPill/PushPillClient/DerivedData/PushPill/Build/Intermediates/PushPill.build/Debug-iphoneos/PushPill.build/Objects-normal/arm64/DoctorPillModifyViewController.o : /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/SignupViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorSigninViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/PatientPillDetailViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorAlertViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/Pill.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/Patient.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorMainViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPillModifyViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPillAddViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/AppDelegate.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/Doctor.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPatientListViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPatientAddViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/SigninViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/PatientPillListViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPillDetailViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorAccountViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/Config.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPillListViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorSignupViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorAlramListTableViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Users/parkingsq1/Documents/PushPill/PushPillClient/DerivedData/PushPill/Build/Intermediates/PushPill.build/Debug-iphoneos/PushPill.build/Objects-normal/arm64/DoctorPillModifyViewController~partial.swiftmodule : /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/SignupViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorSigninViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/PatientPillDetailViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorAlertViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/Pill.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/Patient.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorMainViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPillModifyViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPillAddViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/AppDelegate.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/Doctor.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPatientListViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPatientAddViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/SigninViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/PatientPillListViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPillDetailViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorAccountViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/Config.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPillListViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorSignupViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorAlramListTableViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Users/parkingsq1/Documents/PushPill/PushPillClient/DerivedData/PushPill/Build/Intermediates/PushPill.build/Debug-iphoneos/PushPill.build/Objects-normal/arm64/DoctorPillModifyViewController~partial.swiftdoc : /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/SignupViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorSigninViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/PatientPillDetailViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorAlertViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/Pill.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/Patient.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorMainViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPillModifyViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPillAddViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/AppDelegate.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/Doctor.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPatientListViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPatientAddViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/SigninViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/PatientPillListViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPillDetailViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorAccountViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/Config.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorPillListViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorSignupViewController.swift /Users/parkingsq1/Documents/PushPill/PushPillClient/PushPill/DoctorAlramListTableViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule
D
module mach.math.ints.intdiff; private: import mach.traits : isIntegral, isUnsigned, Unsigned; /++ Docs The `intdiff` function returns the positive difference of two integers as an unsigned integer. For unsigned inputs this is a trivial operation but for signed inputs some extra logic is required to get the difference between values without causing integer overflow. (Hence the existence of this function.) +/ unittest{ /// Example assert(intdiff(int.min, int.max) == uint.max); assert(intdiff(ulong.min, ulong.max) == ulong.max); } public: /// Get the positive difference of two signed or unsigned integers as an /// unsigned integer. T intdiff(T)(in T a, in T b) if(isIntegral!T){ static if(isUnsigned!T){ return a > b ? a - b : b - a; }else{ if(b < 0 && a >= 0) return cast(Unsigned!T) a + cast(Unsigned!T) -b; else if(a < 0 && b >= 0) return cast(Unsigned!T) b + cast(Unsigned!T) -a; else return cast(Unsigned!T)(a > b ? a - b : b - a); } } unittest{ assert(intdiff(int(0), int(0)) == 0); assert(intdiff(uint(0), uint(0)) == 0); assert(intdiff(int(0), int(100)) == 100); assert(intdiff(uint(0), uint(100)) == 100); assert(intdiff(int.min, int.max) == uint.max); assert(intdiff(uint.min, uint.max) == uint.max); assert(intdiff(long.min, long.max) == ulong.max); assert(intdiff(ulong.min, ulong.max) == ulong.max); }
D
instance VLK_6024_SCATTY(Npc_Default) { name[0] = "Скатти"; guild = GIL_MIL; id = 6024; voice = 1; flags = 0; npcType = NPCTYPE_BL_MAIN; B_SetAttributesToChapter(self,5); fight_tactic = FAI_HUMAN_MASTER; EquipItem(self,ItMw_Schwert5); B_SetNpcVisual(self,MALE,"Hum_Head_FatBald",Face_L_Scatty,BodyTex_L,ItAr_MIL_M); Mdl_SetModelFatness(self,1.6); Mdl_ApplyOverlayMds(self,"Humans_Militia.mds"); B_GiveNpcTalents(self); B_SetFightSkills(self,75); daily_routine = rtn_start_6024; }; func void rtn_start_6024() { TA_Sit_Bench(6,55,14,0,"NW_CITY_SCATTY"); TA_Stand_Guarding(14,0,20,30,"NW_CITY_HABOUR_KASERN_WIRT"); TA_Practice_Sword(20,30,6,55,"NW_CITY_HABOUR_KASERN_CENTRE_03"); }; func void rtn_orcatcbegan_6024() { TA_Sit_Chair(6,55,20,30,"NW_FARM2_HOUSE_IN_07"); TA_Sit_Chair(20,30,6,55,"NW_FARM2_HOUSE_IN_07"); }; func void rtn_follow_6024() { TA_Follow_Player(5,0,20,0,"NW_FARM2_HOUSE_IN_07"); TA_Follow_Player(20,0,5,0,"NW_FARM2_HOUSE_IN_07"); }; func void rtn_farmrest_6024() { TA_Sit_Campfire(5,0,20,0,"NW_BIGFARM_SCATTY"); TA_Sit_Campfire(20,0,5,0,"NW_BIGFARM_SCATTY"); }; func void rtn_killhim_6024() { TA_Stand_WP(5,0,20,0,"NW_FARM2_PATH_01"); TA_Stand_WP(20,0,5,0,"NW_FARM2_PATH_01"); }; func void rtn_inbattle_6024() { ta_bigfight(8,0,22,0,"NW_BIGFIGHT_HUM_05"); ta_bigfight(22,0,8,0,"NW_BIGFIGHT_HUM_05"); };
D
/Users/joshblatt/Projects/learning-casper/erc20/tests/target/debug/deps/ff-4b4d7fb8530b58dc.rmeta: /Users/joshblatt/.cargo/registry/src/github.com-1ecc6299db9ec823/ff-0.8.0/src/lib.rs /Users/joshblatt/Projects/learning-casper/erc20/tests/target/debug/deps/libff-4b4d7fb8530b58dc.rlib: /Users/joshblatt/.cargo/registry/src/github.com-1ecc6299db9ec823/ff-0.8.0/src/lib.rs /Users/joshblatt/Projects/learning-casper/erc20/tests/target/debug/deps/ff-4b4d7fb8530b58dc.d: /Users/joshblatt/.cargo/registry/src/github.com-1ecc6299db9ec823/ff-0.8.0/src/lib.rs /Users/joshblatt/.cargo/registry/src/github.com-1ecc6299db9ec823/ff-0.8.0/src/lib.rs:
D
Roman martyr Welsh soldier who from 1916 to 1918 organized the Arab revolt against the Turks English portrait painter remembered for the series of portraits of the leaders of the alliance against Napoleon (1769-1830) English actress (1898-1952) United States physicist who developed the cyclotron (1901-1958) English novelist and poet and essayist whose work condemned industrial society and explored sexual relationships (1885-1930) a town in northeastern Kansas on the Kansas River
D
module wx.DateTime; public import wx.common; //private import std.дата; alias ВизДатаВремя ДатаВремя; enum ПДеньНед { Sun, Mon, Tue, Wed, Thu, Fri, Sat, Инв_ДеньНед }; /* ВизДатаВремя imprementation is class { longlong } */ //! \cond EXTERN extern (C) ЦелУкз wxDefaultDateTime_Get(); extern (C) ЦелУкз wxDateTime_ctor(); extern (C) ЦелУкз wxDateTime_Now(); extern (C) проц wxDateTime_dtor(ЦелУкз сам); extern (C) проц wxDateTime_Set(ЦелУкз сам, бкрат день, цел месяц, цел год, бкрат час, бкрат минута, бкрат секунда, бкрат миллисекунда); extern (C) бкрат wxDateTime_GetYear(ЦелУкз сам); extern (C) цел wxDateTime_GetMonth(ЦелУкз сам); extern (C) бкрат wxDateTime_GetDay(ЦелУкз сам); extern (C) бкрат wxDateTime_GetHour(ЦелУкз сам); extern (C) бкрат wxDateTime_GetMinute(ЦелУкз сам); extern (C) бкрат wxDateTime_GetSecond(ЦелУкз сам); extern (C) бкрат wxDateTime_GetMillisecond(ЦелУкз сам); //! \endcond //----------------------------------------------------------------------------- /// ВизДатаВремя class represents an absolute moment in time. export class ВизДатаВремя : ВизОбъект { static ВизДатаВремя ДефДатаВремя; static this() { ДефДатаВремя = new ВизДатаВремя(wxDefaultDateTime_Get()); } export this(ЦелУкз вхобъ) { super(вхобъ); } private this(ЦелУкз вхобъ, бул памСобств) { super(вхобъ); this.памСобств = памСобств; } export this() { this(wxDateTime_ctor(), да); } //--------------------------------------------------------------------- override protected проц dtor() { wxDateTime_dtor(this.м_вхобъ); } //---------------------------- export ~this(){this.dtor();} //---------------------------- //----------------------------------------------------------------------------- export проц установи(бкрат день, цел месяц, цел год, бкрат час, бкрат минута, бкрат секунда, бкрат миллисекунда) { wxDateTime_Set(this.м_вхобъ, день, месяц, год, час, минута, секунда, миллисекунда); } //----------------------------------------------------------------------------- export бкрат год() { return wxDateTime_GetYear(this.м_вхобъ); } export цел месяц() { return wxDateTime_GetMonth(this.м_вхобъ); } export бкрат день() { return wxDateTime_GetDay(this.м_вхобъ); } export бкрат час() { return wxDateTime_GetHour(this.м_вхобъ); } export бкрат минута() { return wxDateTime_GetMinute(this.м_вхобъ); } export бкрат секунда() { return wxDateTime_GetSecond(this.м_вхобъ); } export бкрат миллисекунда() { return wxDateTime_GetMillisecond(this.м_вхобъ); } static ВизДатаВремя сейчас() { return new ВизДатаВремя(wxDateTime_Now()); } //----------------------------------------------------------------------------- /+ export static implicit operator ДатаВремя (ВизДатаВремя wdt) { ДатаВремя dt = new ДатаВремя(wdt.год, cast(цел)wdt.месяц+1, cast(цел)wdt.день, cast(цел)wdt.час, cast(цел)wdt.минута, cast(цел)wdt.секунда, cast(цел)wdt.миллисекунда); return dt; } export static implicit operator ВизДатаВремя (ДатаВремя dt) { ВизДатаВремя wdt = new ВизДатаВремя(); wdt.установи((бкрат)dt.день, dt.месяц-1, dt.год, (бкрат)dt.час, (бкрат)dt.минута, (бкрат)dt.секунда, (бкрат)dt.миллисекунда); return wdt; } +/ //----------------------------------------------------------------------------- }
D
a gradual sinking to a lower level settle into a position, usually on a surface or ground bring to an end settle conclusively take up residence and become established come to terms go under, "The raft sank and its occupants drowned" become settled or established and stable in one's residence or life style become resolved, fixed, established, or quiet establish or develop as a residence come to rest arrange or fix in the desired order accept despite lack of complete satisfaction end a legal dispute by arriving at a settlement dispose of become clear by the sinking of particles cause to become clear by forming a sediment (of liquids) sink down or precipitate fix firmly get one's revenge for a wrong or an injury make final form a community come as if by falling
D
/Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/DerivedData/RelayMusicPlayer/Build/Intermediates.noindex/RelayMusicPlayer.build/Debug-iphoneos/RelayMusicPlayer.build/Objects-normal/arm64/User.o : /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyExternalID.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyExternalURL.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyImage.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/AppDelegate.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyCategoriesComposite.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyAlbumsComposite.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyPlaylistsComposite.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyCursorPaging.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyPaging.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Song.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifySearch.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifySavedTrack.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyPlaylistTrack.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyTrack.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyTrackLink.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyProtocol.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Album.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifySavedAlbum.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyAlbum.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Action.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyRestriction.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyAPIHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyBrowseHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifySearchHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyPersonalizationHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/MusicPlayerHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyProfilesHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyTracksHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyAlbumsHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyPlaylistsHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyArtistsHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyFollowHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyLibraryHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/MusicPlayerViewController.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/User.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyUser.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/MusicPlayer.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SystemMusicPlayer.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/ApplicationMusicPlayer.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyError.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyCursor.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyTracks.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyAlbums.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyFollowers.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyArtists.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyCopyright.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Event.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifySnapshot.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Request.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Playlist.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyPlaylist.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Artist.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyArtist.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyContext.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Play.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyCategory.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyPlayHistory.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/BaseEntity.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/MediaPlayer.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTPlaybackMetadata.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTDiskCache.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTPlaybackState.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTDiskCaching.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTAuth.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SpotifyAudioPlayback.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTSession.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SpotifyAuthentication.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTConnectButton.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/RelayMusicPlayer-Bridging-Header.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTCircularBuffer.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTAudioStreamingController.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTCoreAudioController.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTStoreViewController.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTAuthViewController.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTAudioStreamingController_ErrorCodes.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTEmbeddedImages.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTAudioPlaybackTypes.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SpPlaybackEvent.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/DerivedData/RelayMusicPlayer/Build/Intermediates.noindex/RelayMusicPlayer.build/Debug-iphoneos/RelayMusicPlayer.build/Objects-normal/arm64/User~partial.swiftmodule : /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyExternalID.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyExternalURL.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyImage.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/AppDelegate.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyCategoriesComposite.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyAlbumsComposite.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyPlaylistsComposite.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyCursorPaging.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyPaging.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Song.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifySearch.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifySavedTrack.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyPlaylistTrack.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyTrack.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyTrackLink.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyProtocol.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Album.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifySavedAlbum.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyAlbum.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Action.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyRestriction.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyAPIHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyBrowseHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifySearchHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyPersonalizationHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/MusicPlayerHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyProfilesHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyTracksHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyAlbumsHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyPlaylistsHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyArtistsHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyFollowHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyLibraryHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/MusicPlayerViewController.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/User.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyUser.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/MusicPlayer.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SystemMusicPlayer.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/ApplicationMusicPlayer.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyError.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyCursor.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyTracks.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyAlbums.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyFollowers.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyArtists.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyCopyright.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Event.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifySnapshot.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Request.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Playlist.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyPlaylist.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Artist.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyArtist.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyContext.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Play.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyCategory.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyPlayHistory.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/BaseEntity.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/MediaPlayer.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTPlaybackMetadata.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTDiskCache.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTPlaybackState.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTDiskCaching.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTAuth.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SpotifyAudioPlayback.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTSession.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SpotifyAuthentication.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTConnectButton.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/RelayMusicPlayer-Bridging-Header.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTCircularBuffer.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTAudioStreamingController.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTCoreAudioController.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTStoreViewController.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTAuthViewController.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTAudioStreamingController_ErrorCodes.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTEmbeddedImages.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTAudioPlaybackTypes.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SpPlaybackEvent.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/DerivedData/RelayMusicPlayer/Build/Intermediates.noindex/RelayMusicPlayer.build/Debug-iphoneos/RelayMusicPlayer.build/Objects-normal/arm64/User~partial.swiftdoc : /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyExternalID.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyExternalURL.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyImage.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/AppDelegate.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyCategoriesComposite.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyAlbumsComposite.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyPlaylistsComposite.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyCursorPaging.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyPaging.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Song.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifySearch.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifySavedTrack.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyPlaylistTrack.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyTrack.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyTrackLink.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyProtocol.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Album.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifySavedAlbum.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyAlbum.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Action.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyRestriction.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyAPIHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyBrowseHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifySearchHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyPersonalizationHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/MusicPlayerHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyProfilesHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyTracksHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyAlbumsHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyPlaylistsHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyArtistsHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyFollowHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifyWrapper/SpotifyLibraryHandler.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/MusicPlayerViewController.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/User.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyUser.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/MusicPlayer.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SystemMusicPlayer.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/ApplicationMusicPlayer.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyError.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyCursor.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyTracks.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyAlbums.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyFollowers.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyListObjects/SpotifyArtists.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyCopyright.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Event.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifySnapshot.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Request.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Playlist.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyPlaylist.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Artist.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyArtist.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyContext.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/Play.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyCategory.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/SpotifyModel/SpotifyPlayHistory.swift /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/Model/BaseEntity.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/MediaPlayer.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTPlaybackMetadata.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTDiskCache.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTPlaybackState.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTDiskCaching.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTAuth.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SpotifyAudioPlayback.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTSession.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SpotifyAuthentication.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTConnectButton.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/RelayMusicPlayer-Bridging-Header.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTCircularBuffer.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTAudioStreamingController.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTCoreAudioController.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTStoreViewController.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTAuthViewController.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTAudioStreamingController_ErrorCodes.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAuthentication.framework/Headers/SPTEmbeddedImages.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SPTAudioPlaybackTypes.h /Users/theckraft/Documents/Programming/Xcode/RelayMusicPlayer/RelayMusicPlayer/SpotifySDKFramworks/SpotifyAudioPlayback.framework/Headers/SpPlaybackEvent.h
D
/Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Date/DateMiddleware.swift.o : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Vapor.build/DateMiddleware~partial.swiftmodule : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Vapor.build/DateMiddleware~partial.swiftdoc : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
D
func int C_Npc_GetDistToWP(var C_NPC pointMan, var string waypoint, var int Dist, var int MoreOrLess) { if(MoreOrLess == More) { if(Npc_GetDistToWP(pointMan,waypoint) > Dist) {return TRUE;} else {return FALSE;}; } else { if(Npc_GetDistToWP(pointMan,waypoint) <= Dist) {return TRUE;} else {return FALSE;}; }; return FALSE; }; func int C_Npc_GetDistToNpc(var C_NPC pointMan, var C_NPC targetMan, var int Dist, var int MoreOrLess) { if(MoreOrLess == More) { if(Npc_GetDistToNpc(pointMan,targetMan) > Dist) {return TRUE;} else {return FALSE;}; } else { if(Npc_GetDistToNpc(pointMan,targetMan) <= Dist) {return TRUE;} else {return FALSE;}; }; return FALSE; };
D
module gccbuild.build.hostlibs; import gccbuild, scriptlike; void buildHostLibs() { startSection("Building host libraries"); buildGMP(); buildMPFR(); buildMPC(); endSection(); } void buildGMP() { buildLibrary(build.gmp, "GMP"); } void buildMPFR() { buildLibrary(build.mpfr, "MPFR"); } void buildMPC() { buildLibrary(build.mpc, "MPC"); } private void buildLibrary(Component comp, string name) { if (!comp.mainBuildCommand.matchesBuildType) return; writeBulletPoint(name ~ ": " ~ comp.baseDirName.toString()); auto saveCWD = comp.prepareBuildDir(); runBuildCommands(comp.mainBuildCommand.commands, ["CONFIGURE" : comp.configureFile.toString()]); if (!keepBuildFiles) rmdirRecurse(comp.buildFolder); endBulletPoint(); }
D
module html5.elements.edit; import html5; class InsElement : Html5Element!("ins"){ mixin(ElementConstructorTemplate!()); } class DelElement : Html5Element!("del"){ mixin(ElementConstructorTemplate!()); }
D
/Users/miladmehrpoo/Desktop/Helloworld/.build/debug/TurnstileCrypto.build/Random.swift.o : /Users/miladmehrpoo/Desktop/Helloworld/Packages/Turnstile-1.0.3/Sources/TurnstileCrypto/BCrypt.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Turnstile-1.0.3/Sources/TurnstileCrypto/Random.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Turnstile-1.0.3/Sources/TurnstileCrypto/URandom.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/TurnstileCrypto.build/Random~partial.swiftmodule : /Users/miladmehrpoo/Desktop/Helloworld/Packages/Turnstile-1.0.3/Sources/TurnstileCrypto/BCrypt.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Turnstile-1.0.3/Sources/TurnstileCrypto/Random.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Turnstile-1.0.3/Sources/TurnstileCrypto/URandom.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/TurnstileCrypto.build/Random~partial.swiftdoc : /Users/miladmehrpoo/Desktop/Helloworld/Packages/Turnstile-1.0.3/Sources/TurnstileCrypto/BCrypt.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Turnstile-1.0.3/Sources/TurnstileCrypto/Random.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Turnstile-1.0.3/Sources/TurnstileCrypto/URandom.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule
D
/** * Parse .mo files and find translated messages. * Authors: * $(LINK2 https://github.com/FreeSlave, Roman Chistokhodov) * Copyright: * Roman Chistokhodov, 2018 * License: * $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0). * See_Also: * $(LINK2 https://www.gnu.org/software/gettext/manual/html_node/MO-Files.html, The Format of GNU MO Files) */ module mofile; /// class PluralFormException : Exception { pure nothrow @nogc @safe this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable nextInChain = null) { super(msg, file, line, nextInChain); } } /// class MoFileException : Exception { pure nothrow @nogc @safe this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable nextInChain = null) { super(msg, file, line, nextInChain); } } private @safe { import std.conv : parse; import std.ascii; enum : ushort { SHL = ubyte.max + 1, SHR, AND, OR, LTE, GTE, EQ, NEQ, NUM, } class Plural { pure: abstract int opCall(int n = 0) const; abstract Plural clone(); } class Unary : Plural { pure: this(Plural op) { op1 = op; } protected: Plural op1; } class Binary : Plural { pure: this(Plural first, Plural second) { op1 = first; op2 = second; } protected: Plural op1, op2; } final class Number : Plural { pure: this(int number) { num = number; } override Plural clone() { return new Number(num); } override int opCall(int) const { return num; } private: int num; } final class UnaryOp(string op) : Unary { pure: this(Plural op1) { super(op1); } override int opCall(int n) const { return mixin(op ~ " op1(n)"); } override Plural clone() { return new UnaryOp!(op)(op1.clone()); } } final class BinaryOp(string op) : Binary { pure: this(Plural first, Plural second) { super(first, second); } override int opCall(int n) const { return mixin("op1(n)" ~ op ~ "op2(n)"); } override Plural clone() { return new BinaryOp!(op)(op1.clone(), op2.clone()); } } final class BinaryOpD(string op) : Binary { pure: this(Plural first, Plural second) { super(first, second); } override int opCall(int n) const { int v2 = op2(n); if (v2 == 0) { throw new PluralFormException("Division by zero during plural form computation"); } return mixin("op1(n)" ~ op ~ "v2"); } override Plural clone() { return new BinaryOp!(op)(op1.clone(), op2.clone()); } } alias UnaryOp!"!" Not; alias UnaryOp!"-" Minus; alias UnaryOp!"~" Invert; alias BinaryOp!"*" Mul; alias BinaryOpD!"/" Div; alias BinaryOpD!"%" Mod; alias BinaryOp!"+" Add; alias BinaryOp!"-" Sub; alias BinaryOp!"<<" Shl; alias BinaryOp!">>" Shr; alias BinaryOp!">" Gt; alias BinaryOp!"<" Lt; alias BinaryOp!">=" Gte; alias BinaryOp!"<=" Lte; alias BinaryOp!"==" Eq; alias BinaryOp!"!=" Neq; alias BinaryOp!"&" BinAnd; alias BinaryOp!"^" BinXor; alias BinaryOp!"|" BinOr; alias BinaryOp!"&&" And; alias BinaryOp!"||" Or; unittest { Plural op = new Mul(new Number(5), new Minus(new Number(10))); assert(op() == -50); op = new Eq(new Number(42), new Add(new Number(20), new Number(22))); assert(op() == 1); op = new Div(new Number(12), new Number(3)); assert(op() == 4); } struct Tokenizer { pure: this(string contents) { content = contents; get(); } @property ushort front() const pure nothrow @nogc { return current; } @property bool empty() const pure nothrow @nogc { return current == 0; } void popFront() { get(); } int getNumber() { if (current == NUM) return number; else throw new PluralFormException("Not a number"); } private: @trusted void get() { while(content.length > pos && isWhite(content[pos])) { pos++; } if (pos >= content.length) { current = 0; return; } if (content.length >= pos+2) { pos += 2; switch(content[pos-2..pos]) { case "<<": current = SHL; return; case ">>": current = SHR; return; case "&&": current = AND; return; case "||": current = OR; return; case "<=": current = LTE; return; case ">=": current = GTE; return; case "==": current = EQ; return; case "!=": current = NEQ; return; default: pos -= 2; break; } } if (isDigit(content[pos])) { auto tmp = content[pos..$]; number = parse!int(tmp); current = NUM; pos += tmp.ptr - (content.ptr + pos); } else { current = cast(ushort)content[pos]; pos++; } } int number; ushort current; size_t pos; string content; } unittest { string contents = "n %10 ==1\n"; auto tokenizer = Tokenizer(contents); assert(!tokenizer.empty); assert(tokenizer.front == 'n'); tokenizer.popFront(); assert(tokenizer.front == '%'); tokenizer.popFront(); assert(tokenizer.front == NUM); assert(tokenizer.getNumber == 10); tokenizer.popFront(); assert(tokenizer.front == EQ); tokenizer.popFront(); assert(tokenizer.front == NUM); assert(tokenizer.getNumber == 1); tokenizer.popFront(); assert(tokenizer.empty); tokenizer = Tokenizer(""); assert(tokenizer.empty); } final class Variable : Plural { pure: this() { } override int opCall(int n) const { return n; } override Plural clone() { return new Variable(); } } final class Conditional : Plural { pure: this(Plural cond, Plural res, Plural alt) { this.cond = cond; this.res = res; this.alt = alt; } override int opCall(int n) const { return cond(n) ? res(n) : alt(n); } override Plural clone() { return new Conditional(cond, res, alt); } private: Plural cond, res, alt; } struct Parser { pure: this(Tokenizer tokenizer) { t = tokenizer; } this(string content) { this(Tokenizer(content)); } Plural compile() { Plural expr = condExpr(); if (expr && !t.empty) { throw new PluralFormException("Not in the end"); } return expr; } private: Plural valueExpr() { if (t.front == '(') { t.popFront(); Plural op = condExpr(); if (op is null) return null; if (t.front != ')') throw new PluralFormException("Missing ')' in expression"); t.popFront(); return op; } else if (t.front == NUM) { int number = t.getNumber(); t.popFront(); return new Number(number); } else if (t.front == 'n') { t.popFront(); return new Variable(); } else { throw new PluralFormException("Unknown operand"); } assert(false); } Plural unaryExpr() { Plural op1; ushort op = t.front; if (op == '-' || op == '~' || op == '!') { t.popFront(); op1 = unaryExpr(); if (op1) { switch(op) { case '-': return new Minus(op1); case '~': return new Invert(op1); case '!': return new Not(op1); default: assert(false); } } else { return null; } } else { return valueExpr(); } } static int getPrec(const ushort op) { switch(op) { case '/': case '*': case '%': return 10; case '+': case '-': return 9; case SHL: case SHR: return 8; case '>': case '<': case GTE: case LTE: return 7; case EQ: case NEQ: return 6; case '&': return 5; case '^': return 4; case '|': return 3; case AND: return 2; case OR: return 1; default: return 0; } } static Plural binaryFactory(const ushort op, Plural left, Plural right) { switch(op) { case '/': return new Div(left,right); case '*': return new Mul(left,right); case '%': return new Mod(left,right); case '+': return new Add(left,right); case '-': return new Sub(left,right); case SHL: return new Shl(left,right); case SHR: return new Shr(left,right); case '>': return new Gt(left,right); case '<': return new Lt(left,right); case GTE: return new Gte(left,right); case LTE: return new Lte(left,right); case EQ: return new Eq(left,right); case NEQ: return new Neq(left,right); case '&': return new BinAnd(left,right); case '^': return new BinXor(left,right); case '|': return new BinOr(left,right); case AND: return new And(left,right); case OR: return new Or(left,right); default: return null; } } Plural binaryExpr(const int prec = 1) { assert(prec >= 1 && prec <= 11); Plural op1,op2; if (prec == 11) op1 = unaryExpr(); else op1 = binaryExpr(prec+1); if (op1 is null) return null; if (prec != 11) { while(getPrec(t.front) == prec) { ushort o = t.front; t.popFront(); op2 = binaryExpr(prec+1); if (op2 is null) return null; op1 = binaryFactory(o, op1, op2); } } return op1; } Plural condExpr() { Plural cond, case1, case2; cond = binaryExpr(); if(cond is null) return null; if(t.front == '?') { t.popFront(); case1 = condExpr(); if(case1 is null) return null; if(t.front != ':') throw new PluralFormException("Missing ':' in conditional operator"); t.popFront(); case2 = condExpr(); if(case2 is null) return null; } else { return cond; } return new Conditional(cond,case1,case2); } Tokenizer t; } unittest { auto parser = new Parser("(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)"); auto expr = parser.compile(); assert(expr !is null); assert(expr(1) == 0); assert(expr(101) == 0); assert(expr(2) == 1); assert(expr(24) == 1); assert(expr(104) == 1); assert(expr(222) == 1); assert(expr(11) == 2); assert(expr(14) == 2); assert(expr(111) == 2); assert(expr(210) == 2); import std.exception : assertThrown; assertThrown!PluralFormException(new Parser("").compile()); assertThrown!PluralFormException(new Parser("n?1").compile()); assertThrown!PluralFormException(new Parser("(2-1").compile()); assertThrown!PluralFormException(new Parser("p").compile()); assertThrown!PluralFormException(new Parser("1+2;").compile()); } } import std.exception : assumeUnique, enforce; import std.range : iota, assumeSorted, drop, dropOne; import std.algorithm.iteration : map, splitter; import std.algorithm.searching : all, find, findSkip, skipOver; import std.algorithm.sorting : isSorted; import std.string : lineSplitter; import std.typecons : tuple; private enum int moMagic = 0x950412de; /** * Struct representing .mo file. * * Default constructed object returns untranslated messages. */ @safe struct MoFile { /** * Read from file. * * $(D mofile.MoFileException) if data is in invalid or unsupported format. * $(D mofile.PluralFormException) if plural form expression could not be parsed. * $(B FileException) on file reading error. */ @trusted this(string fileName) { import std.file : read; this(read(fileName).assumeUnique); } private static string stripRight(string line, string chars) nothrow @safe pure { import std.string : indexOf; for (; line.length > 0; line = line[0 .. $ - 1]) { if (chars.indexOf(line[$ - 1]) == -1) break; } return line; } unittest { assert(stripRight("hello\n\r", "\n\r") == "hello"); assert(stripRight("hello\r\n", "\n\r") == "hello"); assert(stripRight("hello\r", "\n\r") == "hello"); assert(stripRight("hello\n", "\n\r") == "hello"); assert(stripRight("hello", "\n\r") == "hello"); } /** * Constructor from data. * Data must be immutable and live as long as translated messages are used, because it's used to return strings. * Throws: * $(D mofile.MoFileException) if data is in invalid or unsupported format. * $(D mofile.PluralFormException) if plural form expression could not be parsed. */ @safe this(immutable(void)[] data) pure { this.data = data; const magic = readValue!int(0); if (magic != moMagic) { throw new MoFileException("Wrong magic"); } const revision = readValue!int(int.sizeof); if (revision != 0) { throw new MoFileException("Unknown revision"); } baseOffsetOrig = readValue!int(int.sizeof*3); baseOffsetTr = readValue!int(int.sizeof*4); count = readValue!int(int.sizeof*2); if (count <= 0) { throw new MoFileException("Invalid count of msgids, must be at least 1"); } auto mapped = iota(0,count).map!(i => getMessage(baseOffsetOrig, i)); enforce!MoFileException(mapped.isSorted, "Invalid .mo file: message ids are not sorted"); if (!mapped.empty && mapped.front.length == 0) { enforce!MoFileException(mapped.dropOne.all!"!a.empty", "Some msgid besides the reserved one is empty"); } string header = getMessage(baseOffsetTr, 0); foreach(line; header.lineSplitter) { if (line.skipOver("Plural-Forms:")) { if (line.findSkip("plural=")) { string expr = stripRight(line, "\n\r;"); auto parser = new Parser(expr); compiled = parser.compile(); } } } } /** * .mo file header that includes some info like creation date, language and translator's name. */ string header() pure const { return gettext(""); } /** * Get translated message. * Params: * msgid = Message id (usually untranslated string) * Returns: Translated message for the msgid. * If translation for this msgid does not exist or MoFile is default constructed the msgid is returned. */ string gettext(string msgid) pure const { int index = getIndex(msgid); if (index >= 0) { string translated = getMessage(baseOffsetTr, index); auto splitted = translated.splitter('\0'); if (!splitted.empty && splitted.front.length) return splitted.front; } return msgid; } /** * Get translated message considering plural forms. * Params: * msgid = Untranslated message in singular form * msgid_plural = Untranslated message in plural form. * n = Number to calculate a plural form. * Returns: Translated string in plural form dependent on number n. * If translation for this msgid does not exist or MoFile is default constructed then the msgid is returned if n == 1 and msgid_plural otherwise. */ string ngettext(string msgid, string msgid_plural, int n) pure const { int index = getIndex(msgid); if (compiled !is null && index >= 0) { string translated = getMessage(baseOffsetTr, index); auto splitted = translated.splitter('\0'); if (!splitted.empty && splitted.front.length) { int pluralForm = compiled(n); auto forms = splitted.drop(pluralForm); if (!forms.empty) return forms.front; } } return n == 1 ? msgid : msgid_plural; } private: @trusted int getIndex(string message) pure const { if (data.length == 0) return -1; auto sorted = iota(0, count).map!(i => tuple(i, getMessageSingular(baseOffsetOrig, i))).assumeSorted!"a[1] < b[1]"; auto found = sorted.equalRange(tuple(0, message)); if (found.empty) { return -1; } else { return found.front[0]; } } @trusted T readValue(T)(size_t offset) pure const { if (data.length >= offset + T.sizeof) { T value = *(cast(const(T)*)data[offset..(offset+T.sizeof)].ptr); return value; } else { throw new MoFileException("Value is out of bounds"); } } @trusted string readString(int len, int offset) pure const { if (data.length >= offset + len) { string s = cast(string)data[offset..offset+len]; return s; } else { throw new MoFileException("String is out of bounds"); } } @trusted string getMessage(int offset, int i) pure const { return readString(readValue!int(offset + i*int.sizeof*2), readValue!int(offset + i*int.sizeof*2 + int.sizeof)); } @trusted string getMessageSingular(int offset, int i) pure const { auto splitted = getMessage(offset, i).splitter('\0'); if (splitted.empty) { return ""; } else { return splitted.front; } } int count; int baseOffsetOrig; int baseOffsetTr; immutable(void)[] data; Plural compiled; } unittest { MoFile moFile; assert(moFile.header.length == 0); assert(moFile.gettext("") == ""); assert(moFile.gettext("Hello") == "Hello"); assert(moFile.ngettext("File", "Files", 1) == "File"); assert(moFile.ngettext("File", "Files", 2) == "Files"); assert(moFile.ngettext("File", "Files", 0) == "Files"); } unittest { import std.bitmanip : nativeToLittleEndian; import std.string : representation; immutable(ubyte)[] moHeader = (nativeToLittleEndian(moMagic)[] ~ nativeToLittleEndian(0)[] ~ nativeToLittleEndian(1)[] ~ nativeToLittleEndian(20) ~ nativeToLittleEndian(28)).assumeUnique; immutable(ubyte)[] offsets = (nativeToLittleEndian(4)[] ~ nativeToLittleEndian(36)[] ~ nativeToLittleEndian(4)[] ~ nativeToLittleEndian(40)[]).assumeUnique; immutable(ubyte)[] data = moHeader ~ offsets ~ "abcd".representation ~ "efgh".representation; assert(data.length == 44); MoFile moFile; import std.exception : assertThrown, assertNotThrown; assertNotThrown(moFile = MoFile(data)); assert(moFile.gettext("abcd") == "efgh"); }
D
/Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Fluent.build/Database/Driver.swift.o : /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Database/Database.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Database/Driver.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Entity/Entity.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Filters.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Group.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Sort.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/MemoryDriver.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Database+Preparation.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Migration.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Preparation.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/PreparationError.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Action.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Comparison.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Filter.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Group.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Join.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Limit.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Query.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Scope.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Sort.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Children.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Parent.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/RelationError.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Siblings.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Database+Schema.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Creator.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Field.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Modifier.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL+Query.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL+Schema.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQLSerializer.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Utilities/Fluent+Node.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Node.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/PathIndexable.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Polymorphic.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Fluent.build/Driver~partial.swiftmodule : /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Database/Database.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Database/Driver.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Entity/Entity.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Filters.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Group.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Sort.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/MemoryDriver.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Database+Preparation.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Migration.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Preparation.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/PreparationError.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Action.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Comparison.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Filter.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Group.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Join.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Limit.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Query.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Scope.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Sort.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Children.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Parent.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/RelationError.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Siblings.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Database+Schema.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Creator.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Field.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Modifier.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL+Query.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL+Schema.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQLSerializer.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Utilities/Fluent+Node.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Node.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/PathIndexable.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Polymorphic.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Fluent.build/Driver~partial.swiftdoc : /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Database/Database.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Database/Driver.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Entity/Entity.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Filters.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Group.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Sort.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/MemoryDriver.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Database+Preparation.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Migration.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Preparation.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/PreparationError.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Action.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Comparison.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Filter.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Group.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Join.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Limit.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Query.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Scope.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Sort.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Children.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Parent.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/RelationError.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Siblings.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Database+Schema.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Creator.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Field.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Modifier.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL+Query.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL+Schema.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQLSerializer.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Utilities/Fluent+Node.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Node.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/PathIndexable.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Polymorphic.swiftmodule
D
module src.features; /******************************************************************************* * */ interface AppInterface { /*************************************************************************** * */ void run(); /*************************************************************************** * */ void command(in string[] args); } /******************************************************************************* * */ interface UserInterfaceFeatures { /*************************************************************************** * */ void run(); /*************************************************************************** * */ shared void command(in string[] args); } /******************************************************************************* * */ shared interface CommInterface { /*************************************************************************** * */ void command(in string[] args); }
D
/* TEST_OUTPUT: --- fail_compilation/fail4082.d(14): Error: destructor `fail4082.Foo.~this` is not nothrow fail_compilation/fail4082.d(12): Error: nothrow function `fail4082.test1` may throw --- */ struct Foo { ~this() { throw new Exception(""); } } nothrow void test1() { Foo f; goto NEXT; NEXT: ; } /* TEST_OUTPUT: --- fail_compilation/fail4082.d(32): Error: destructor `fail4082.Bar.~this` is not nothrow fail_compilation/fail4082.d(32): Error: nothrow function `fail4082.test2` may throw --- */ struct Bar { ~this() { throw new Exception(""); } } nothrow void test2(Bar t) { }
D
/Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Settings.build/Env/Env.swift.o : /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Config+Arguments.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Config+Directory.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Config.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/KeyAccessible+Merge.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/KeyAccessible.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Node+Merge.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Source.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Env/Env.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Env/Node+Env.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Env/String+Env.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/CLibreSSL.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Core.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/libc.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/JSON.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Jay.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Node.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/PathIndexable.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Polymorphic.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Settings.build/Env~partial.swiftmodule : /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Config+Arguments.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Config+Directory.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Config.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/KeyAccessible+Merge.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/KeyAccessible.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Node+Merge.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Source.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Env/Env.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Env/Node+Env.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Env/String+Env.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/CLibreSSL.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Core.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/libc.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/JSON.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Jay.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Node.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/PathIndexable.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Polymorphic.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Settings.build/Env~partial.swiftdoc : /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Config+Arguments.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Config+Directory.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Config.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/KeyAccessible+Merge.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/KeyAccessible.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Node+Merge.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Source.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Env/Env.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Env/Node+Env.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Vapor-1.3.11/Sources/Settings/Env/String+Env.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/CLibreSSL.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Core.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/libc.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/JSON.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Jay.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Node.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/PathIndexable.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Polymorphic.swiftmodule
D
/Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraNet.build/FastCGI/FastCGIRecordCreate.swift.o : /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGI.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/HTTP.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ServerResponse.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGIServerResponse.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/HTTPServerResponse.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ClientResponse.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGIRecordCreate.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Server/ServerDelegate.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/KeepAliveState.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Server/ServerState.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ListenerGroup.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ConnectionUpgrader.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/IncomingSocketManager.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/IncomingSocketHandler.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Server/ServerLifecycleListener.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HeadersContainer.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTPParser/URLParser.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTPParser/HTTPParser.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGIRecordParser.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Server/Server.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGIServer.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/HTTPServer.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Error.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/IncomingHTTPSocketProcessor.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/IncomingSocketProcessor.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/IncomingSocketProcessorCreator.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Server/ServerMonitor.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/SPIUtils.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTPParser/ParseResults.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTPParser/HTTPParserStatus.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ServerRequest.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGIServerRequest.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/HTTPServerRequest.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ClientRequest.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/BufferList.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ConnectionUpgradeFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/LoggerAPI.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/SSLService.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/Socket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/CHTTPParser.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/http_parser.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/utils.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/CHTTPParser.build/module.modulemap /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CCurl/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraNet.build/FastCGIRecordCreate~partial.swiftmodule : /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGI.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/HTTP.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ServerResponse.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGIServerResponse.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/HTTPServerResponse.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ClientResponse.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGIRecordCreate.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Server/ServerDelegate.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/KeepAliveState.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Server/ServerState.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ListenerGroup.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ConnectionUpgrader.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/IncomingSocketManager.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/IncomingSocketHandler.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Server/ServerLifecycleListener.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HeadersContainer.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTPParser/URLParser.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTPParser/HTTPParser.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGIRecordParser.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Server/Server.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGIServer.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/HTTPServer.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Error.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/IncomingHTTPSocketProcessor.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/IncomingSocketProcessor.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/IncomingSocketProcessorCreator.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Server/ServerMonitor.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/SPIUtils.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTPParser/ParseResults.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTPParser/HTTPParserStatus.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ServerRequest.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGIServerRequest.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/HTTPServerRequest.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ClientRequest.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/BufferList.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ConnectionUpgradeFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/LoggerAPI.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/SSLService.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/Socket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/CHTTPParser.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/http_parser.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/utils.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/CHTTPParser.build/module.modulemap /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CCurl/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraNet.build/FastCGIRecordCreate~partial.swiftdoc : /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGI.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/HTTP.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ServerResponse.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGIServerResponse.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/HTTPServerResponse.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ClientResponse.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGIRecordCreate.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Server/ServerDelegate.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/KeepAliveState.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Server/ServerState.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ListenerGroup.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ConnectionUpgrader.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/IncomingSocketManager.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/IncomingSocketHandler.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Server/ServerLifecycleListener.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HeadersContainer.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTPParser/URLParser.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTPParser/HTTPParser.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGIRecordParser.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Server/Server.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGIServer.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/HTTPServer.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Error.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/IncomingHTTPSocketProcessor.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/IncomingSocketProcessor.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/IncomingSocketProcessorCreator.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/Server/ServerMonitor.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/SPIUtils.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTPParser/ParseResults.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTPParser/HTTPParserStatus.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ServerRequest.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/FastCGI/FastCGIServerRequest.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/HTTP/HTTPServerRequest.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ClientRequest.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/BufferList.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/KituraNet/ConnectionUpgradeFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/LoggerAPI.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/SSLService.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/Socket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/CHTTPParser.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/http_parser.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/utils.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/CHTTPParser.build/module.modulemap /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CCurl/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
module hurrican.http.exception; class HttpException : Exception { public this(string message) { super(message); } } class NotImplementedException : HttpException { public this(string message) { super(message); } public this() { this("Not implemented"); } } class BadRequestException : HttpException { public this(string message) { super(message); } public this() { this("Bad request"); } } class NotFoundException : HttpException { public this(string message) { super(message); } public this() { this("Not found"); } }
D
/Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Intermediates.noindex/RNTrackPlayer.build/Debug-iphonesimulator/RNTrackPlayer.build/Objects-normal/x86_64/Capabilities.o : /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Models/MediaURL.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/RemoteCommandController/RemoteCommand.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AVPlayerWrapper/AVPlayerWrapperDelegate.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AVPlayerWrapper/AVPlayerWrapperState.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/NowPlayingInfoKeyValue.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Models/Track.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/NowPlayingInfoControllerProtocol.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AVPlayerWrapper/AVPlayerWrapperProtocol.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AudioItem.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AudioSessionController/AudioSession.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/QueueManager.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/RemoteCommandController/RemoteCommandController.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AudioSessionController/AudioSessionController.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/NowPlayingInfoController.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AVPlayerWrapper/AVPlayerWrapper.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/NowPlayingInfoCenter.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/Observer/AVPlayerTimeObserver.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/Observer/AVPlayerItemObserver.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/Observer/AVPlayerItemNotificationObserver.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/Observer/AVPlayerObserver.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/RNTrackPlayer.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AudioPlayer.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/QueuedAudioPlayer.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/APError.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Models/SessionCategories.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Models/Capabilities.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Models/PitchAlgorithms.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/Event.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/TimeEventFrequency.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/MediaItemProperty.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/NowPlayingInfoProperty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/MediaPlayer.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTBridge.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeModule.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTFrameUpdate.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeDelegate.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTInvalidating.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Support/RNTrackPlayer-Bridging-Header.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTJavaScriptLoader.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTEventEmitter.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTDefines.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Intermediates.noindex/RNTrackPlayer.build/Debug-iphonesimulator/RNTrackPlayer.build/Objects-normal/x86_64/Capabilities~partial.swiftmodule : /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Models/MediaURL.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/RemoteCommandController/RemoteCommand.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AVPlayerWrapper/AVPlayerWrapperDelegate.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AVPlayerWrapper/AVPlayerWrapperState.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/NowPlayingInfoKeyValue.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Models/Track.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/NowPlayingInfoControllerProtocol.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AVPlayerWrapper/AVPlayerWrapperProtocol.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AudioItem.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AudioSessionController/AudioSession.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/QueueManager.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/RemoteCommandController/RemoteCommandController.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AudioSessionController/AudioSessionController.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/NowPlayingInfoController.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AVPlayerWrapper/AVPlayerWrapper.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/NowPlayingInfoCenter.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/Observer/AVPlayerTimeObserver.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/Observer/AVPlayerItemObserver.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/Observer/AVPlayerItemNotificationObserver.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/Observer/AVPlayerObserver.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/RNTrackPlayer.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AudioPlayer.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/QueuedAudioPlayer.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/APError.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Models/SessionCategories.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Models/Capabilities.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Models/PitchAlgorithms.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/Event.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/TimeEventFrequency.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/MediaItemProperty.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/NowPlayingInfoProperty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/MediaPlayer.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTBridge.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeModule.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTFrameUpdate.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeDelegate.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTInvalidating.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Support/RNTrackPlayer-Bridging-Header.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTJavaScriptLoader.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTEventEmitter.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTDefines.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Intermediates.noindex/RNTrackPlayer.build/Debug-iphonesimulator/RNTrackPlayer.build/Objects-normal/x86_64/Capabilities~partial.swiftdoc : /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Models/MediaURL.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/RemoteCommandController/RemoteCommand.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AVPlayerWrapper/AVPlayerWrapperDelegate.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AVPlayerWrapper/AVPlayerWrapperState.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/NowPlayingInfoKeyValue.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Models/Track.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/NowPlayingInfoControllerProtocol.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AVPlayerWrapper/AVPlayerWrapperProtocol.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AudioItem.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AudioSessionController/AudioSession.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/QueueManager.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/RemoteCommandController/RemoteCommandController.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AudioSessionController/AudioSessionController.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/NowPlayingInfoController.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AVPlayerWrapper/AVPlayerWrapper.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/NowPlayingInfoCenter.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/Observer/AVPlayerTimeObserver.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/Observer/AVPlayerItemObserver.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/Observer/AVPlayerItemNotificationObserver.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/Observer/AVPlayerObserver.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/RNTrackPlayer.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/AudioPlayer.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/QueuedAudioPlayer.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/APError.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Models/SessionCategories.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Models/Capabilities.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Models/PitchAlgorithms.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/Event.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/TimeEventFrequency.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/MediaItemProperty.swift /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Vendor/AudioPlayer/NowPlayingInfoController/NowPlayingInfoProperty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/MediaPlayer.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTBridge.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeModule.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTFrameUpdate.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeDelegate.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTInvalidating.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/node_modules/react-native-track-player/ios/RNTrackPlayer/Support/RNTrackPlayer-Bridging-Header.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTJavaScriptLoader.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTEventEmitter.h /Volumes/iMacProjetos/Curso/Rocketseat/GoNative/module4/ios/build/module4/Build/Products/Debug-iphonesimulator/include/React/RCTDefines.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/* * Copyright (c) 2007-2013 Scott Lembcke and Howling Moon Software * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ module dchip.cpPivotJoint; import std.string; import dchip.constraints_util; import dchip.chipmunk; import dchip.chipmunk_types; import dchip.chipmunk_structs; import dchip.cpBody; import dchip.cpConstraint; import dchip.cpVect; import dchip.cpTransform; //~ const cpConstraintClass* cpPivotJointGetClass(); /// @private // TODO : DELETE /*struct cpPivotJoint { cpConstraint constraint; cpVect anchr1, anchr2; cpVect r1, r2; cpMat2x2 k; cpVect jAcc; cpVect bias; } mixin CP_DefineConstraintProperty!("cpPivotJoint", cpVect, "anchr1", "Anchr1"); mixin CP_DefineConstraintProperty!("cpPivotJoint", cpVect, "anchr2", "Anchr2"); */ void preStep(cpPivotJoint* joint, cpFloat dt) { cpBody* a = joint.constraint.a; cpBody* b = joint.constraint.b; /* TODO : DELETE joint.r1 = cpvrotate(joint.anchr1, a.rot); joint.r2 = cpvrotate(joint.anchr2, b.rot); */ // TODO : UNCOMMENT AFTER ACTUALIZE cpBody, DELETE /*0*/ /* joint.r1 = cpTransformVect(a.transform, cpvsub(joint.anchorA, a.cog)); joint.r2 = cpTransformVect(b.transform, cpvsub(joint.anchorB, b.cog)); */ /*0*/ joint.r1 = cpvrotate(joint.anchorA, a.rot); joint.r2 = cpvrotate(joint.anchorB, b.rot); // Calculate mass tensor joint.k = k_tensor(a, b, joint.r1, joint.r2); // calculate bias velocity cpVect delta = cpvsub(cpvadd(b.p, joint.r2), cpvadd(a.p, joint.r1)); joint.bias = cpvclamp(cpvmult(delta, -bias_coef(joint.constraint.errorBias, dt) / dt), joint.constraint.maxBias); } void applyCachedImpulse(cpPivotJoint* joint, cpFloat dt_coef) { cpBody* a = joint.constraint.a; cpBody* b = joint.constraint.b; apply_impulses(a, b, joint.r1, joint.r2, cpvmult(joint.jAcc, dt_coef)); } void applyImpulse(cpPivotJoint* joint, cpFloat dt) { cpBody* a = joint.constraint.a; cpBody* b = joint.constraint.b; cpVect r1 = joint.r1; cpVect r2 = joint.r2; // compute relative velocity cpVect vr = relative_velocity(a, b, r1, r2); // compute normal impulse cpVect j = cpMat2x2Transform(joint.k, cpvsub(joint.bias, vr)); cpVect jOld = joint.jAcc; joint.jAcc = cpvclamp(cpvadd(joint.jAcc, j), joint.constraint.maxForce * dt); j = cpvsub(joint.jAcc, jOld); // apply impulse apply_impulses(a, b, joint.r1, joint.r2, j); } cpFloat getImpulse(cpConstraint* joint) { return cpvlength((cast(cpPivotJoint*)joint).jAcc); } __gshared cpConstraintClass klass = cpConstraintClass( cast(cpConstraintPreStepImpl)&preStep, cast(cpConstraintApplyCachedImpulseImpl)&applyCachedImpulse, cast(cpConstraintApplyImpulseImpl)&applyImpulse, cast(cpConstraintGetImpulseImpl)&getImpulse, ); // TODO : DELETE /*void _initModuleCtor_cpPivotJoint() { klass = cpConstraintClass( cast(cpConstraintPreStepImpl)&preStep, cast(cpConstraintApplyCachedImpulseImpl)&applyCachedImpulse, cast(cpConstraintApplyImpulseImpl)&applyImpulse, cast(cpConstraintGetImpulseImpl)&getImpulse, ); }; const(cpConstraintClass *) cpPivotJointGetClass() { return cast(cpConstraintClass*)&klass; }*/ /// Allocate a pivot joint cpPivotJoint* cpPivotJointAlloc() { return cast(cpPivotJoint*)cpcalloc(1, cpPivotJoint.sizeof); } /// Initialize a pivot joint. // TODO : DELETE //cpPivotJoint* cpPivotJointInit(cpPivotJoint* joint, cpBody* a, cpBody* b, cpVect anchr1, cpVect anchr2) cpPivotJoint* cpPivotJointInit(cpPivotJoint *joint, cpBody *a, cpBody *b, cpVect anchorA, cpVect anchorB) { cpConstraintInit(cast(cpConstraint*)joint, &klass, a, b); // TODO : DELETE /*joint.anchr1 = anchr1; joint.anchr2 = anchr2;*/ joint.anchorA = anchorA; joint.anchorB = anchorB; joint.jAcc = cpvzero; return joint; } /// Allocate and initialize a pivot joint with specific anchors. // TODO : DELETE /*cpConstraint* cpPivotJointNew2(cpBody* a, cpBody* b, cpVect anchr1, cpVect anchr2) { return cast(cpConstraint*)cpPivotJointInit(cpPivotJointAlloc(), a, b, anchr1, anchr2); }*/ cpConstraint* cpPivotJointNew2(cpBody* a, cpBody* b, cpVect anchorA, cpVect anchorB) { return cast(cpConstraint*)cpPivotJointInit(cpPivotJointAlloc(), a, b, anchorA, anchorB); } /// Allocate and initialize a pivot joint // TODO : DELETE /*cpConstraint* cpPivotJointNew(cpBody* a, cpBody* b, cpVect pivot) { cpVect anchr1 = (a ? cpBodyWorld2Local(a, pivot) : pivot); cpVect anchr2 = (b ? cpBodyWorld2Local(b, pivot) : pivot); return cpPivotJointNew2(a, b, anchr1, anchr2); }*/ cpConstraint* cpPivotJointNew(cpBody* a, cpBody* b, cpVect pivot) { // TODO : CHANGE cpBodyWorld2Local to cpBodyWorldToLocal /*cpVect anchorA = (a ? cpBodyWorldToLocal(a, pivot) : pivot); cpVect anchorB = (b ? cpBodyWorldToLocal(b, pivot) : pivot);*/ cpVect anchorA = (a ? cpBodyWorld2Local(a, pivot) : pivot); cpVect anchorB = (b ? cpBodyWorld2Local(b, pivot) : pivot); return cpPivotJointNew2(a, b, anchorA, anchorB); } /// Check if a constraint is a pivot joint. cpBool cpConstraintIsPivotJoint(const cpConstraint* constraint) { return (constraint.klass == &klass); } /// Get the location of the first anchor relative to the first body. cpVect cpPivotJointGetAnchorA(const cpConstraint* constraint) { cpAssertHard(cpConstraintIsPivotJoint(constraint), "Constraint is not a pivot joint."); return (cast(cpPivotJoint*)constraint).anchorA; } /// Set the location of the first anchor relative to the first body. void cpPivotJointSetAnchorA(cpConstraint* constraint, cpVect anchorA) { cpAssertHard(cpConstraintIsPivotJoint(constraint), "Constraint is not a pivot joint."); cpConstraintActivateBodies(constraint); (cast(cpPivotJoint*)constraint).anchorA = anchorA; } /// Get the location of the second anchor relative to the second body. cpVect cpPivotJointGetAnchorB(const cpConstraint* constraint) { cpAssertHard(cpConstraintIsPivotJoint(constraint), "Constraint is not a pivot joint."); return (cast(cpPivotJoint*)constraint).anchorB; } /// Set the location of the second anchor relative to the second body. void cpPivotJointSetAnchorB(cpConstraint* constraint, cpVect anchorB) { cpAssertHard(cpConstraintIsPivotJoint(constraint), "Constraint is not a pivot joint."); cpConstraintActivateBodies(constraint); (cast(cpPivotJoint*)constraint).anchorB = anchorB; }
D
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package android.hardware.camera2.utils; import android.graphics.Matrix; import android.graphics.Rect; import android.graphics.RectF; import android.hardware.camera2.CaptureRequest; import android.util.Rational; import android.util.Size; import static com.android.internal.util.Preconditions.*; /** * Various assortment of params utilities. */ public class ParamsUtils { /** Arbitrary denominator used to estimate floats as rationals */ private static final int RATIONAL_DENOMINATOR = 1000000; // 1million /** * Create a {@link Rect} from a {@code Size} by creating a new rectangle with * left, top = {@code (0, 0)} and right, bottom = {@code (width, height)} * * @param size a non-{@code null} size * * @return a {@code non-null} rectangle * * @throws NullPointerException if {@code size} was {@code null} */ public static Rect createRect(Size size) { checkNotNull(size, "size must not be null"); return new Rect(/*left*/0, /*top*/0, size.getWidth(), size.getHeight()); } /** * Create a {@link Rect} from a {@code RectF} by creating a new rectangle with * each corner (left, top, right, bottom) rounded towards the nearest integer bounding box. * * <p>In particular (left, top) is floored, and (right, bottom) is ceiled.</p> * * @param size a non-{@code null} rect * * @return a {@code non-null} rectangle * * @throws NullPointerException if {@code rect} was {@code null} */ public static Rect createRect(RectF rect) { checkNotNull(rect, "rect must not be null"); Rect r = new Rect(); rect.roundOut(r); return r; } /** * Map the rectangle in {@code rect} with the transform in {@code transform} into * a new rectangle, with each corner (left, top, right, bottom) rounded towards the nearest * integer bounding box. * * <p>None of the arguments are mutated.</p> * * @param transform a non-{@code null} transformation matrix * @param rect a non-{@code null} rectangle * @return a new rectangle that was transformed by {@code transform} * * @throws NullPointerException if any of the args were {@code null} */ public static Rect mapRect(Matrix transform, Rect rect) { checkNotNull(transform, "transform must not be null"); checkNotNull(rect, "rect must not be null"); RectF rectF = new RectF(rect); transform.mapRect(rectF); return createRect(rectF); } /** * Create a {@link Size} from a {@code Rect} by creating a new size whose width * and height are the same as the rectangle's width and heights. * * @param rect a non-{@code null} rectangle * * @return a {@code non-null} size * * @throws NullPointerException if {@code rect} was {@code null} */ public static Size createSize(Rect rect) { checkNotNull(rect, "rect must not be null"); return new Size(rect.width(), rect.height()); } /** * Create a {@link Rational} value by approximating the float value as a rational. * * <p>Floating points too large to be represented as an integer will be converted to * to {@link Integer#MAX_VALUE}; floating points too small to be represented as an integer * will be converted to {@link Integer#MIN_VALUE}.</p> * * @param value a floating point value * @return the rational representation of the float */ public static Rational createRational(float value) { if (Float.isNaN(value)) { return Rational.NaN; } else if (value == Float.POSITIVE_INFINITY) { return Rational.POSITIVE_INFINITY; } else if (value == Float.NEGATIVE_INFINITY) { return Rational.NEGATIVE_INFINITY; } else if (value == 0.0f) { return Rational.ZERO; } // normal finite value: approximate it /* * Start out trying to approximate with denominator = 1million, * but if the numerator doesn't fit into an Int then keep making the denominator * smaller until it does. */ int den = RATIONAL_DENOMINATOR; float numF; do { numF = value * den; if ((numF > Integer.MIN_VALUE && numF < Integer.MAX_VALUE) || (den == 1)) { break; } den /= 10; } while (true); /* * By float -> int narrowing conversion in JLS 5.1.3, this will automatically become * MIN_VALUE or MAX_VALUE if numF is too small/large to be represented by an integer */ int num = (int) numF; return new Rational(num, den); } /** * Convert an integral rectangle ({@code source}) to a floating point rectangle * ({@code destination}) in-place. * * @param source the originating integer rectangle will be read from here * @param destination the resulting floating point rectangle will be written out to here * * @throws NullPointerException if {@code rect} was {@code null} */ public static void convertRectF(Rect source, RectF destination) { checkNotNull(source, "source must not be null"); checkNotNull(destination, "destination must not be null"); destination.left = source.left; destination.right = source.right; destination.bottom = source.bottom; destination.top = source.top; } /** * Return the value set by the key, or the {@code defaultValue} if no value was set. * * @throws NullPointerException if any of the args were {@code null} */ public static <T> T getOrDefault(CaptureRequest r, CaptureRequest.Key<T> key, T defaultValue) { checkNotNull(r, "r must not be null"); checkNotNull(key, "key must not be null"); checkNotNull(defaultValue, "defaultValue must not be null"); T value = r.get(key); if (value == null) { return defaultValue; } else { return value; } } private ParamsUtils() { throw new AssertionError(); } }
D
/home/liyun/clink/clink_mpc/target/debug/deps/regex_syntax-8ac7e73c68f1ae51.rmeta: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/lib.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/ast/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/ast/parse.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/ast/print.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/ast/visitor.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/either.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/error.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/interval.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/literal/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/print.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/translate.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/visitor.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/parser.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/age.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/case_folding_simple.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/general_category.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/grapheme_cluster_break.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/perl_word.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/property_bool.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/property_names.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/property_values.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/script.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/script_extension.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/sentence_break.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/word_break.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/utf8.rs /home/liyun/clink/clink_mpc/target/debug/deps/libregex_syntax-8ac7e73c68f1ae51.rlib: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/lib.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/ast/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/ast/parse.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/ast/print.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/ast/visitor.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/either.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/error.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/interval.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/literal/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/print.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/translate.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/visitor.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/parser.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/age.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/case_folding_simple.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/general_category.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/grapheme_cluster_break.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/perl_word.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/property_bool.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/property_names.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/property_values.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/script.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/script_extension.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/sentence_break.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/word_break.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/utf8.rs /home/liyun/clink/clink_mpc/target/debug/deps/regex_syntax-8ac7e73c68f1ae51.d: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/lib.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/ast/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/ast/parse.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/ast/print.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/ast/visitor.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/either.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/error.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/interval.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/literal/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/print.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/translate.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/visitor.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/parser.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/age.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/case_folding_simple.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/general_category.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/grapheme_cluster_break.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/perl_word.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/property_bool.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/property_names.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/property_values.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/script.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/script_extension.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/sentence_break.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/word_break.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/utf8.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/lib.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/ast/mod.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/ast/parse.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/ast/print.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/ast/visitor.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/either.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/error.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/mod.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/interval.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/literal/mod.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/print.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/translate.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/hir/visitor.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/parser.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/mod.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/age.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/case_folding_simple.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/general_category.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/grapheme_cluster_break.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/perl_word.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/property_bool.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/property_names.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/property_values.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/script.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/script_extension.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/sentence_break.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/unicode_tables/word_break.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/regex-syntax-0.6.25/src/utf8.rs:
D
/* * gc.d * * This module implements the D runtime functions for interfacing the * garbage collector. * */ module runtime.gc; void gc_init() { } void gc_term() { } void gc_enable() { } void gc_disable() { } void gc_collect() { } uint gc_getAttr(void* p) { return 0; } uint gc_setAttr(void* p, uint a) { return 0; } uint gc_clrAttr(void* p, uint a) { return 0; } void* gc_malloc(size_t sz, uint ba = 0) { return null; } void* gc_calloc(size_t sz, uint ba = 0) { return null; } void* gc_realloc(void* p, size_t sz, uint ba = 0) { return null; } size_t gc_extend(void* p, size_t mx, size_t sz) { return 0; } void gc_free(void* p) { } size_t gc_sizeOf(void* p) { return 0; } void gc_addRoot(void* p) { } void gc_addRange(void* p, size_t sz) { } void gc_removeRoot(void* p) { } void gc_removeRange(void* p) { } bool onCollectResource(Object obj) { return false; }
D
instance GRD_224_PACHO(NPC_DEFAULT) { name[0] = "Пако"; npctype = NPCTYPE_MAIN; guild = GIL_GRD; level = 10; voice = 13; id = 224; attribute[ATR_STRENGTH] = 35; attribute[ATR_DEXTERITY] = 35; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 160; attribute[ATR_HITPOINTS] = 160; Mdl_SetVisual(self,"HUMANS.MDS"); Mdl_ApplyOverlayMds(self,"Humans_Militia.mds"); Mdl_SetVisualBody(self,"hum_body_Naked0",0,3,"Hum_Head_Fighter",4,1,grd_armor_l); b_scale(self); Mdl_SetModelFatness(self,0); Npc_SetTalentSkill(self,NPC_TALENT_1H,1); Npc_SetTalentSkill(self,NPC_TALENT_2H,1); Npc_SetTalentSkill(self,NPC_TALENT_CROSSBOW,1); CreateInvItem(self,itmw_1h_sword_01); CreateInvItem(self,itrw_crossbow_01); CreateInvItems(self,itambolt,30); CreateInvItem(self,itfoapple); CreateInvItems(self,itminugget,10); daily_routine = rtn_start_224; fight_tactic = FAI_HUMAN_STRONG; }; func void rtn_start_224() { ta_standaround(0,0,12,0,"OW_PATH_018"); ta_standaround(12,0,24,0,"OW_PATH_018"); }; func void rtn_start2_224() { ta_sit(0,0,12,0,"OW_PATH_018"); ta_sit(12,0,24,0,"OW_PATH_018"); }; func void rtn_fmtaken_224() { ta_practicesword(0,0,12,0,"OW_PATH_1_16_1"); ta_practicesword(12,0,24,0,"OW_PATH_1_16_1"); };
D
// Written in the D programming language. /** * Compress/decompress data using the $(LINK2 http://www._zlib.net, zlib library). * * References: * $(LINK2 http://en.wikipedia.org/wiki/Zlib, Wikipedia) * * Macros: * WIKI = Phobos/StdZlib * * Copyright: Copyright Digital Mars 2000 - 2011. * License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. * Authors: $(WEB digitalmars.com, Walter Bright) * Source: $(PHOBOSSRC std/_zlib.d) */ /* Copyright Digital Mars 2000 - 2011. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ module std.zlib; //debug=zlib; // uncomment to turn on debugging printf's private import etc.c.zlib, std.conv; // Values for 'mode' enum { Z_NO_FLUSH = 0, Z_SYNC_FLUSH = 2, Z_FULL_FLUSH = 3, Z_FINISH = 4, } /************************************* * Errors throw a ZlibException. */ class ZlibException : Exception { this(int errnum) { string msg; switch (errnum) { case Z_STREAM_END: msg = "stream end"; break; case Z_NEED_DICT: msg = "need dict"; break; case Z_ERRNO: msg = "errno"; break; case Z_STREAM_ERROR: msg = "stream error"; break; case Z_DATA_ERROR: msg = "data error"; break; case Z_MEM_ERROR: msg = "mem error"; break; case Z_BUF_ERROR: msg = "buf error"; break; case Z_VERSION_ERROR: msg = "version error"; break; default: msg = "unknown error"; break; } super(msg); } } /************************************************** * Compute the Adler32 checksum of the data in buf[]. adler is the starting * value when computing a cumulative checksum. */ uint adler32(uint adler, const(void)[] buf) { import std.range : chunks; foreach(chunk; (cast(ubyte[])buf).chunks(0xFFFF0000)) { adler = etc.c.zlib.adler32(adler, chunk.ptr, cast(uint)chunk.length); } return adler; } unittest { static ubyte[] data = [1,2,3,4,5,6,7,8,9,10]; uint adler; debug(zlib) printf("D.zlib.adler32.unittest\n"); adler = adler32(0u, cast(void[])data); debug(zlib) printf("adler = %x\n", adler); assert(adler == 0xdc0037); } /********************************* * Compute the CRC32 checksum of the data in buf[]. crc is the starting value * when computing a cumulative checksum. */ uint crc32(uint crc, const(void)[] buf) { import std.range : chunks; foreach(chunk; (cast(ubyte[])buf).chunks(0xFFFF0000)) { crc = etc.c.zlib.crc32(crc, chunk.ptr, cast(uint)chunk.length); } return crc; } unittest { static ubyte[] data = [1,2,3,4,5,6,7,8,9,10]; uint crc; debug(zlib) printf("D.zlib.crc32.unittest\n"); crc = crc32(0u, cast(void[])data); debug(zlib) printf("crc = %x\n", crc); assert(crc == 0x2520577b); } /********************************************* * Compresses the data in srcbuf[] using compression _level level. * The default value * for level is 6, legal values are 1..9, with 1 being the least compression * and 9 being the most. * Returns the compressed data. */ const(void)[] compress(const(void)[] srcbuf, int level) in { assert(-1 <= level && level <= 9); } body { auto destlen = srcbuf.length + ((srcbuf.length + 1023) / 1024) + 12; auto destbuf = new ubyte[destlen]; auto err = etc.c.zlib.compress2(destbuf.ptr, &destlen, cast(ubyte *)srcbuf.ptr, srcbuf.length, level); if (err) { delete destbuf; throw new ZlibException(err); } destbuf.length = destlen; return destbuf; } /********************************************* * ditto */ const(void)[] compress(const(void)[] buf) { return compress(buf, Z_DEFAULT_COMPRESSION); } /********************************************* * Decompresses the data in srcbuf[]. * Params: * srcbuf = buffer containing the compressed data. * destlen = size of the uncompressed data. * It need not be accurate, but the decompression will be faster * if the exact size is supplied. * winbits = the base two logarithm of the maximum window size. * Returns: the decompressed data. */ void[] uncompress(void[] srcbuf, size_t destlen = 0u, int winbits = 15) { int err; ubyte[] destbuf; if (!destlen) destlen = srcbuf.length * 2 + 1; etc.c.zlib.z_stream zs; zs.next_in = cast(typeof(zs.next_in)) srcbuf; zs.avail_in = to!uint(srcbuf.length); err = etc.c.zlib.inflateInit2(&zs, winbits); if (err) { throw new ZlibException(err); } size_t olddestlen = 0u; loop: while (true) { destbuf.length = destlen; zs.next_out = cast(typeof(zs.next_out)) &destbuf[olddestlen]; zs.avail_out = to!uint(destlen - olddestlen); olddestlen = destlen; err = etc.c.zlib.inflate(&zs, Z_NO_FLUSH); switch (err) { case Z_OK: destlen = destbuf.length * 2; continue loop; case Z_STREAM_END: destbuf.length = zs.total_out; err = etc.c.zlib.inflateEnd(&zs); if (err != Z_OK) throw new ZlibException(err); return destbuf; default: etc.c.zlib.inflateEnd(&zs); throw new ZlibException(err); } } assert(0); } unittest { ubyte[] src = cast(ubyte[]) "the quick brown fox jumps over the lazy dog\r the quick brown fox jumps over the lazy dog\r "; ubyte[] dst; ubyte[] result; //arrayPrint(src); dst = cast(ubyte[])compress(cast(void[])src); //arrayPrint(dst); result = cast(ubyte[])uncompress(cast(void[])dst); //arrayPrint(result); assert(result == src); } unittest { ubyte[] src = new ubyte[1000000]; ubyte[] dst; ubyte[] result; src[] = 0x80; dst = cast(ubyte[])compress(cast(void[])src); assert(dst.length*2 + 1 < src.length); result = cast(ubyte[])uncompress(cast(void[])dst); assert(result == src); } /+ void arrayPrint(ubyte[] array) { //printf("array %p,%d\n", cast(void*)array, array.length); for (size_t i = 0; i < array.length; i++) { printf("%02x ", array[i]); if (((i + 1) & 15) == 0) printf("\n"); } printf("\n\n"); } +/ /// the header format the compressed stream is wrapped in enum HeaderFormat { deflate, /// a standard zlib header gzip, /// a gzip file format header determineFromData /// used when decompressing. Try to automatically detect the stream format by looking at the data } /********************************************* * Used when the data to be compressed is not all in one buffer. */ class Compress { private: z_stream zs; int level = Z_DEFAULT_COMPRESSION; int inited; immutable bool gzip; void error(int err) { if (inited) { deflateEnd(&zs); inited = 0; } throw new ZlibException(err); } public: /** * Construct. level is the same as for D.zlib.compress(). header can be used to make a gzip compatible stream. */ this(int level, HeaderFormat header = HeaderFormat.deflate) in { assert(1 <= level && level <= 9); } body { this.level = level; this.gzip = header == HeaderFormat.gzip; } /// ditto this(HeaderFormat header = HeaderFormat.deflate) { this.gzip = header == HeaderFormat.gzip; } ~this() { int err; if (inited) { inited = 0; deflateEnd(&zs); } } /** * Compress the data in buf and return the compressed data. * The buffers * returned from successive calls to this should be concatenated together. */ const(void)[] compress(const(void)[] buf) { int err; ubyte[] destbuf; if (buf.length == 0) return null; if (!inited) { err = deflateInit2(&zs, level, Z_DEFLATED, 15 + (gzip ? 16 : 0), 8, Z_DEFAULT_STRATEGY); if (err) error(err); inited = 1; } destbuf = new ubyte[zs.avail_in + buf.length]; zs.next_out = destbuf.ptr; zs.avail_out = to!uint(destbuf.length); if (zs.avail_in) buf = zs.next_in[0 .. zs.avail_in] ~ cast(ubyte[]) buf; zs.next_in = cast(typeof(zs.next_in)) buf.ptr; zs.avail_in = to!uint(buf.length); err = deflate(&zs, Z_NO_FLUSH); if (err != Z_STREAM_END && err != Z_OK) { delete destbuf; error(err); } destbuf.length = destbuf.length - zs.avail_out; return destbuf; } /*** * Compress and return any remaining data. * The returned data should be appended to that returned by compress(). * Params: * mode = one of the following: * $(DL $(DT Z_SYNC_FLUSH ) $(DD Syncs up flushing to the next byte boundary. Used when more data is to be compressed later on.) $(DT Z_FULL_FLUSH ) $(DD Syncs up flushing to the next byte boundary. Used when more data is to be compressed later on, and the decompressor needs to be restartable at this point.) $(DT Z_FINISH) $(DD (default) Used when finished compressing the data. ) ) */ void[] flush(int mode = Z_FINISH) in { assert(mode == Z_FINISH || mode == Z_SYNC_FLUSH || mode == Z_FULL_FLUSH); } body { ubyte[] destbuf; ubyte[512] tmpbuf = void; int err; if (!inited) return null; /* may be zs.avail_out+<some constant> * zs.avail_out is set nonzero by deflate in previous compress() */ //tmpbuf = new void[zs.avail_out]; zs.next_out = tmpbuf.ptr; zs.avail_out = tmpbuf.length; while( (err = deflate(&zs, mode)) != Z_STREAM_END) { if (err == Z_OK) { if (zs.avail_out != 0 && mode != Z_FINISH) break; else if(zs.avail_out == 0) { destbuf ~= tmpbuf; zs.next_out = tmpbuf.ptr; zs.avail_out = tmpbuf.length; continue; } err = Z_BUF_ERROR; } delete destbuf; error(err); } destbuf ~= tmpbuf[0 .. (tmpbuf.length - zs.avail_out)]; if (mode == Z_FINISH) { err = deflateEnd(&zs); inited = 0; if (err) error(err); } return destbuf; } } /****** * Used when the data to be decompressed is not all in one buffer. */ class UnCompress { private: z_stream zs; int inited; int done; size_t destbufsize; HeaderFormat format; void error(int err) { if (inited) { inflateEnd(&zs); inited = 0; } throw new ZlibException(err); } public: /** * Construct. destbufsize is the same as for D.zlib.uncompress(). */ this(uint destbufsize) { this.destbufsize = destbufsize; } /** ditto */ this(HeaderFormat format = HeaderFormat.determineFromData) { this.format = format; } ~this() { int err; if (inited) { inited = 0; inflateEnd(&zs); } done = 1; } /** * Decompress the data in buf and return the decompressed data. * The buffers returned from successive calls to this should be concatenated * together. */ const(void)[] uncompress(const(void)[] buf) in { assert(!done); } body { int err; ubyte[] destbuf; if (buf.length == 0) return null; if (!inited) { int windowBits = 15; if(format == HeaderFormat.gzip) windowBits += 16; else if(format == HeaderFormat.determineFromData) windowBits += 32; err = inflateInit2(&zs, windowBits); if (err) error(err); inited = 1; } if (!destbufsize) destbufsize = to!uint(buf.length) * 2; destbuf = new ubyte[zs.avail_in * 2 + destbufsize]; zs.next_out = destbuf.ptr; zs.avail_out = to!uint(destbuf.length); if (zs.avail_in) buf = zs.next_in[0 .. zs.avail_in] ~ cast(ubyte[]) buf; zs.next_in = cast(ubyte*) buf; zs.avail_in = to!uint(buf.length); err = inflate(&zs, Z_NO_FLUSH); if (err != Z_STREAM_END && err != Z_OK) { delete destbuf; error(err); } destbuf.length = destbuf.length - zs.avail_out; return destbuf; } /** * Decompress and return any remaining data. * The returned data should be appended to that returned by uncompress(). * The UnCompress object cannot be used further. */ void[] flush() in { assert(!done); } out { assert(done); } body { ubyte[] extra; ubyte[] destbuf; int err; done = 1; if (!inited) return null; L1: destbuf = new ubyte[zs.avail_in * 2 + 100]; zs.next_out = destbuf.ptr; zs.avail_out = to!uint(destbuf.length); err = etc.c.zlib.inflate(&zs, Z_NO_FLUSH); if (err == Z_OK && zs.avail_out == 0) { extra ~= destbuf; goto L1; } if (err != Z_STREAM_END) { delete destbuf; if (err == Z_OK) err = Z_BUF_ERROR; error(err); } destbuf = destbuf.ptr[0 .. zs.next_out - destbuf.ptr]; err = etc.c.zlib.inflateEnd(&zs); inited = 0; if (err) error(err); if (extra.length) destbuf = extra ~ destbuf; return destbuf; } } /* ========================== unittest ========================= */ private import std.stdio; private import std.random; unittest // by Dave { debug(zlib) writeln("std.zlib.unittest"); bool CompressThenUncompress (ubyte[] src) { ubyte[] dst = cast(ubyte[])std.zlib.compress(cast(void[])src); double ratio = (dst.length / cast(double)src.length); debug(zlib) writef("src.length: %1$d, dst: %2$d, Ratio = %3$f", src.length, dst.length, ratio); ubyte[] uncompressedBuf; uncompressedBuf = cast(ubyte[])std.zlib.uncompress(cast(void[])dst); assert(src.length == uncompressedBuf.length); assert(src == uncompressedBuf); return true; } // smallish buffers for(int idx = 0; idx < 25; idx++) { char[] buf = new char[uniform(0, 100)]; // Alternate between more & less compressible foreach(ref char c; buf) c = cast(char) (' ' + (uniform(0, idx % 2 ? 91 : 2))); if(CompressThenUncompress(cast(ubyte[])buf)) { debug(zlib) writeln("; Success."); } else { return; } } // larger buffers for(int idx = 0; idx < 25; idx++) { char[] buf = new char[uniform(0, 1000/*0000*/)]; // Alternate between more & less compressible foreach(ref char c; buf) c = cast(char) (' ' + (uniform(0, idx % 2 ? 91 : 10))); if(CompressThenUncompress(cast(ubyte[])buf)) { debug(zlib) writefln("; Success."); } else { return; } } debug(zlib) writefln("PASSED std.zlib.unittest"); } unittest // by Artem Rebrov { Compress cmp = new Compress; UnCompress decmp = new UnCompress; const(void)[] input; input = "tesatdffadf"; const(void)[] buf = cmp.compress(input); buf ~= cmp.flush(); const(void)[] output = decmp.uncompress(buf); //writefln("input = '%s'", cast(char[])input); //writefln("output = '%s'", cast(char[])output); assert( output[] == input[] ); }
D
/root/ji/example-helloworld/src/cross-program-invocation/target/debug/deps/derivation_path-b021b4292e35209c.rmeta: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/derivation-path-0.1.3/src/lib.rs /root/ji/example-helloworld/src/cross-program-invocation/target/debug/deps/libderivation_path-b021b4292e35209c.rlib: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/derivation-path-0.1.3/src/lib.rs /root/ji/example-helloworld/src/cross-program-invocation/target/debug/deps/derivation_path-b021b4292e35209c.d: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/derivation-path-0.1.3/src/lib.rs /root/.cargo/registry/src/github.com-1ecc6299db9ec823/derivation-path-0.1.3/src/lib.rs:
D
// Copyright Ferdinand Majerech 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) /** * YAML node _representer. Prepares YAML nodes for output. A tutorial can be * found $(LINK2 ../tutorials/custom_types.html, here). * * Code based on $(LINK2 http://www.pyyaml.org, PyYAML). */ module dyaml.representer; import std.algorithm; import std.array; import std.base64; import std.container; import std.conv; import std.datetime; import std.exception; import std.format; import std.math; import std.stream; import dyaml.exception; import dyaml.node; import dyaml.serializer; import dyaml.style; import dyaml.tag; ///Exception thrown on Representer errors. class RepresenterException : YAMLException { mixin ExceptionCtors; } /** * Represents YAML nodes as scalar, sequence and mapping nodes ready for output. * * This class is used to add support for dumping of custom data types. * * It can also override default node formatting styles for output. */ final class Representer { private: ///Representer functions indexed by types. Node function(ref Node, Representer)[TypeInfo] representers_; ///Default style for scalar nodes. ScalarStyle defaultScalarStyle_ = ScalarStyle.Invalid; ///Default style for collection nodes. CollectionStyle defaultCollectionStyle_ = CollectionStyle.Invalid; public: @disable bool opEquals(ref Representer); @disable int opCmp(ref Representer); /** * Construct a Representer. * * Params: useDefaultRepresenters = Use default representer functions * for default YAML types? This can be * disabled to use custom representer * functions for default types. */ this(bool useDefaultRepresenters = true) { if(!useDefaultRepresenters){return;} addRepresenter!YAMLNull(&representNull); addRepresenter!string(&representString); addRepresenter!(ubyte[])(&representBytes); addRepresenter!bool(&representBool); addRepresenter!long(&representLong); addRepresenter!real(&representReal); addRepresenter!(Node[])(&representNodes); addRepresenter!(Node.Pair[])(&representPairs); addRepresenter!SysTime(&representSysTime); } ///Destroy the Representer. ~this() { clear(representers_); representers_ = null; } ///Set default _style for scalars. If style is $(D ScalarStyle.Invalid), the _style is chosen automatically. @property void defaultScalarStyle(ScalarStyle style) { defaultScalarStyle_ = style; } ///Set default _style for collections. If style is $(D CollectionStyle.Invalid), the _style is chosen automatically. @property void defaultCollectionStyle(CollectionStyle style) { defaultCollectionStyle_ = style; } /** * Add a function to represent nodes with a specific data type. * * The representer function takes references to a $(D Node) storing the data * type and to the $(D Representer). It returns the represented node and may * throw a $(D RepresenterException). See the example for more information. * * * Only one function may be specified for one data type. Default data * types already have representer functions unless disabled in the * $(D Representer) constructor. * * * Structs and classes must implement the $(D opCmp()) operator for D:YAML * support. The signature of the operator that must be implemented * is $(D const int opCmp(ref const MyStruct s)) for structs where * $(I MyStruct) is the struct type, and $(D int opCmp(Object o)) for * classes. Note that the class $(D opCmp()) should not alter the compared * values - it is not const for compatibility reasons. * * Params: representer = Representer function to add. * * Examples: * * Representing a simple struct: * -------------------- * import std.string; * * import yaml; * * struct MyStruct * { * int x, y, z; * * //Any D:YAML type must have a custom opCmp operator. * //This is used for ordering in mappings. * const int opCmp(ref const MyStruct s) * { * if(x != s.x){return x - s.x;} * if(y != s.y){return y - s.y;} * if(z != s.z){return z - s.z;} * return 0; * } * } * * Node representMyStruct(ref Node node, Representer representer) * { * //The node is guaranteed to be MyStruct as we add representer for MyStruct. * auto value = node.as!MyStruct; * //Using custom scalar format, x:y:z. * auto scalar = format(value.x, ":", value.y, ":", value.z); * //Representing as a scalar, with custom tag to specify this data type. * return representer.representScalar("!mystruct.tag", scalar); * } * * void main() * { * auto dumper = Dumper("file.yaml"); * auto representer = new Representer; * representer.addRepresenter!MyStruct(&representMyStruct); * dumper.representer = representer; * dumper.dump(Node(MyStruct(1,2,3))); * } * -------------------- * * Representing a class: * -------------------- * import std.string; * * import yaml; * * class MyClass * { * int x, y, z; * * this(int x, int y, int z) * { * this.x = x; * this.y = y; * this.z = z; * } * * //Any D:YAML type must have a custom opCmp operator. * //This is used for ordering in mappings. * override int opCmp(Object o) * { * MyClass s = cast(MyClass)o; * if(s is null){return -1;} * if(x != s.x){return x - s.x;} * if(y != s.y){return y - s.y;} * if(z != s.z){return z - s.z;} * return 0; * } * * ///Useful for Node.as!string . * override string toString() * { * return format("MyClass(", x, ", ", y, ", ", z, ")"); * } * } * * //Same as representMyStruct. * Node representMyClass(ref Node node, Representer representer) * { * //The node is guaranteed to be MyClass as we add representer for MyClass. * auto value = node.as!MyClass; * //Using custom scalar format, x:y:z. * auto scalar = format(value.x, ":", value.y, ":", value.z); * //Representing as a scalar, with custom tag to specify this data type. * return representer.representScalar("!myclass.tag", scalar); * } * * void main() * { * auto dumper = Dumper("file.yaml"); * auto representer = new Representer; * representer.addRepresenter!MyClass(&representMyClass); * dumper.representer = representer; * dumper.dump(Node(new MyClass(1,2,3))); * } * -------------------- */ void addRepresenter(T)(Node function(ref Node, Representer) representer) { assert((typeid(T) in representers_) is null, "Representer function for data type " ~ typeid(T).toString() ~ " already specified. Can't specify another one"); representers_[typeid(T)] = representer; } //If profiling shows a bottleneck on tag construction in these 3 methods, //we'll need to take Tag directly and have string based wrappers for //user code. /** * Represent a _scalar with specified _tag. * * This is used by representer functions that produce scalars. * * Params: tag = Tag of the _scalar. * scalar = Scalar value. * style = Style of the _scalar. If invalid, default _style will be used. * If the node was loaded before, previous _style will always be used. * * Returns: The represented node. * * Example: * -------------------- * struct MyStruct * { * int x, y, z; * * //Any D:YAML type must have a custom opCmp operator. * //This is used for ordering in mappings. * const int opCmp(ref const MyStruct s) * { * if(x != s.x){return x - s.x;} * if(y != s.y){return y - s.y;} * if(z != s.z){return z - s.z;} * return 0; * } * } * * Node representMyStruct(ref Node node, Representer representer) * { * auto value = node.as!MyStruct; * auto scalar = format(value.x, ":", value.y, ":", value.z); * return representer.representScalar("!mystruct.tag", scalar); * } * -------------------- */ Node representScalar(string tag, string scalar, ScalarStyle style = ScalarStyle.Invalid) { if(style == ScalarStyle.Invalid){style = defaultScalarStyle_;} return Node.rawNode(Node.Value(scalar), Mark(), Tag(tag), style, CollectionStyle.Invalid); } /** * Represent a _sequence with specified _tag, representing children first. * * This is used by representer functions that produce sequences. * * Params: tag = Tag of the _sequence. * sequence = Sequence of nodes. * style = Style of the _sequence. If invalid, default _style will be used. * If the node was loaded before, previous _style will always be used. * * Returns: The represented node. * * Throws: $(D RepresenterException) if a child could not be represented. * * Example: * -------------------- * struct MyStruct * { * int x, y, z; * * //Any D:YAML type must have a custom opCmp operator. * //This is used for ordering in mappings. * const int opCmp(ref const MyStruct s) * { * if(x != s.x){return x - s.x;} * if(y != s.y){return y - s.y;} * if(z != s.z){return z - s.z;} * return 0; * } * } * * Node representMyStruct(ref Node node, Representer representer) * { * auto value = node.as!MyStruct; * auto nodes = [Node(value.x), Node(value.y), Node(value.z)]; * //use flow style * return representer.representSequence("!mystruct.tag", nodes, * CollectionStyle.Flow); * } * -------------------- */ Node representSequence(string tag, Node[] sequence, CollectionStyle style = CollectionStyle.Invalid) { Node[] value; value.length = sequence.length; auto bestStyle = CollectionStyle.Flow; foreach(idx, ref item; sequence) { value[idx] = representData(item); const isScalar = value[idx].isScalar; const s = value[idx].scalarStyle; if(!isScalar || (s != ScalarStyle.Invalid && s != ScalarStyle.Plain)) { bestStyle = CollectionStyle.Block; } } if(style == CollectionStyle.Invalid) { style = defaultCollectionStyle_ != CollectionStyle.Invalid ? defaultCollectionStyle_ : bestStyle; } return Node.rawNode(Node.Value(value), Mark(), Tag(tag), ScalarStyle.Invalid, style); } /** * Represent a mapping with specified _tag, representing children first. * * This is used by representer functions that produce mappings. * * Params: tag = Tag of the mapping. * pairs = Key-value _pairs of the mapping. * style = Style of the mapping. If invalid, default _style will be used. * If the node was loaded before, previous _style will always be used. * * Returns: The represented node. * * Throws: $(D RepresenterException) if a child could not be represented. * * Example: * -------------------- * struct MyStruct * { * int x, y, z; * * //Any D:YAML type must have a custom opCmp operator. * //This is used for ordering in mappings. * const int opCmp(ref const MyStruct s) * { * if(x != s.x){return x - s.x;} * if(y != s.y){return y - s.y;} * if(z != s.z){return z - s.z;} * return 0; * } * } * * Node representMyStruct(ref Node node, Representer representer) * { * auto value = node.as!MyStruct; * auto pairs = [Node.Pair("x", value.x), * Node.Pair("y", value.y), * Node.Pair("z", value.z)]; * return representer.representMapping("!mystruct.tag", pairs); * } * -------------------- */ Node representMapping(string tag, Node.Pair[] pairs, CollectionStyle style = CollectionStyle.Invalid) { Node.Pair[] value; value.length = pairs.length; auto bestStyle = CollectionStyle.Flow; foreach(idx, ref pair; pairs) { value[idx] = Node.Pair(representData(pair.key), representData(pair.value)); const keyScalar = value[idx].key.isScalar; const valScalar = value[idx].value.isScalar; const keyStyle = value[idx].key.scalarStyle; const valStyle = value[idx].value.scalarStyle; if(!keyScalar || (keyStyle != ScalarStyle.Invalid && keyStyle != ScalarStyle.Plain)) { bestStyle = CollectionStyle.Block; } if(!valScalar || (valStyle != ScalarStyle.Invalid && valStyle != ScalarStyle.Plain)) { bestStyle = CollectionStyle.Block; } } if(style == CollectionStyle.Invalid) { style = defaultCollectionStyle_ != CollectionStyle.Invalid ? defaultCollectionStyle_ : bestStyle; } return Node.rawNode(Node.Value(value), Mark(), Tag(tag), ScalarStyle.Invalid, style); } package: //Represent a node based on its type, and return the represented result. Node representData(ref Node data) { //User types are wrapped in YAMLObject. auto type = data.isUserType ? data.as!YAMLObject.type : data.type; enforce((type in representers_) !is null, new RepresenterException("No representer function for type " ~ type.toString() ~ " , cannot represent.")); Node result = representers_[type](data, this); //Override tag if specified. if(!data.tag_.isNull()){result.tag_ = data.tag_;} //Remember style if this was loaded before. if(data.scalarStyle != ScalarStyle.Invalid) { result.scalarStyle = data.scalarStyle; } if(data.collectionStyle != CollectionStyle.Invalid) { result.collectionStyle = data.collectionStyle; } return result; } //Represent a node, serializing with specified Serializer. void represent(ref Serializer serializer, ref Node node) { auto data = representData(node); serializer.serialize(data); } } ///Represent a _null _node as a _null YAML value. Node representNull(ref Node node, Representer representer) { return representer.representScalar("tag:yaml.org,2002:null", "null"); } ///Represent a string _node as a string scalar. Node representString(ref Node node, Representer representer) { string value = node.as!string; return value is null ? representNull(node, representer) : representer.representScalar("tag:yaml.org,2002:str", value); } ///Represent a bytes _node as a binary scalar. Node representBytes(ref Node node, Representer representer) { const ubyte[] value = node.as!(ubyte[]); if(value is null){return representNull(node, representer);} return representer.representScalar("tag:yaml.org,2002:binary", cast(string)Base64.encode(value), ScalarStyle.Literal); } ///Represent a bool _node as a bool scalar. Node representBool(ref Node node, Representer representer) { return representer.representScalar("tag:yaml.org,2002:bool", node.as!bool ? "true" : "false"); } ///Represent a long _node as an integer scalar. Node representLong(ref Node node, Representer representer) { return representer.representScalar("tag:yaml.org,2002:int", to!string(node.as!long)); } ///Represent a real _node as a floating point scalar. Node representReal(ref Node node, Representer representer) { real f = node.as!real; string value = isNaN(f) ? ".nan": f == real.infinity ? ".inf": f == -1.0 * real.infinity ? "-.inf": {auto a = appender!string; formattedWrite(a, "%12f", f); return a.data;}(); return representer.representScalar("tag:yaml.org,2002:float", value); } ///Represent a SysTime _node as a timestamp. Node representSysTime(ref Node node, Representer representer) { return representer.representScalar("tag:yaml.org,2002:timestamp", node.as!SysTime.toISOExtString()); } ///Represent a sequence _node as sequence/set. Node representNodes(ref Node node, Representer representer) { auto nodes = node.as!(Node[]); if(node.tag_ == Tag("tag:yaml.org,2002:set")) { ///YAML sets are mapping with null values. Node.Pair[] pairs; pairs.length = nodes.length; Node dummy; foreach(idx, ref key; nodes) { pairs[idx] = Node.Pair(key, representNull(dummy, representer)); } return representer.representMapping(node.tag_.get, pairs); } else { return representer.representSequence("tag:yaml.org,2002:seq", nodes); } } ///Represent a mapping _node as map/ordered map/pairs. Node representPairs(ref Node node, Representer representer) { auto pairs = node.as!(Node.Pair[]); bool hasDuplicates(Node.Pair[] pairs) { //TODO this should be replaced by something with deterministic memory allocation. auto keys = redBlackTree!Node(); scope(exit){clear(keys);} foreach(ref pair; pairs) { if(pair.key in keys){return true;} keys.insert(pair.key); } return false; } Node[] mapToSequence(Node.Pair[] pairs) { Node[] nodes; nodes.length = pairs.length; foreach(idx, ref pair; pairs) { nodes[idx] = representer.representMapping("tag:yaml.org,2002:map", [pair]); } return nodes; } if(node.tag_ == Tag("tag:yaml.org,2002:omap")) { enforce(!hasDuplicates(pairs), new RepresenterException("Duplicate entry in an ordered map")); return representer.representSequence(node.tag_.get, mapToSequence(pairs)); } else if(node.tag_ == Tag("tag:yaml.org,2002:pairs")) { return representer.representSequence(node.tag_.get, mapToSequence(pairs)); } else { enforce(!hasDuplicates(pairs), new RepresenterException("Duplicate entry in an unordered map")); return representer.representMapping("tag:yaml.org,2002:map", pairs); } } //Unittests private: import std.string; import dyaml.dumper; struct MyStruct { int x, y, z; const int opCmp(ref const MyStruct s) { if(x != s.x){return x - s.x;} if(y != s.y){return y - s.y;} if(z != s.z){return z - s.z;} return 0; } } Node representMyStruct(ref Node node, Representer representer) { //The node is guaranteed to be MyStruct as we add representer for MyStruct. auto value = node.as!MyStruct; //Using custom scalar format, x:y:z. auto scalar = format(value.x, ":", value.y, ":", value.z); //Representing as a scalar, with custom tag to specify this data type. return representer.representScalar("!mystruct.tag", scalar); } Node representMyStructSeq(ref Node node, Representer representer) { auto value = node.as!MyStruct; auto nodes = [Node(value.x), Node(value.y), Node(value.z)]; return representer.representSequence("!mystruct.tag", nodes); } Node representMyStructMap(ref Node node, Representer representer) { auto value = node.as!MyStruct; auto pairs = [Node.Pair("x", value.x), Node.Pair("y", value.y), Node.Pair("z", value.z)]; return representer.representMapping("!mystruct.tag", pairs); } class MyClass { int x, y, z; this(int x, int y, int z) { this.x = x; this.y = y; this.z = z; } override int opCmp(Object o) { MyClass s = cast(MyClass)o; if(s is null){return -1;} if(x != s.x){return x - s.x;} if(y != s.y){return y - s.y;} if(z != s.z){return z - s.z;} return 0; } ///Useful for Node.as!string . override string toString() { return format("MyClass(", x, ", ", y, ", ", z, ")"); } } //Same as representMyStruct. Node representMyClass(ref Node node, Representer representer) { //The node is guaranteed to be MyClass as we add representer for MyClass. auto value = node.as!MyClass; //Using custom scalar format, x:y:z. auto scalar = format(value.x, ":", value.y, ":", value.z); //Representing as a scalar, with custom tag to specify this data type. return representer.representScalar("!myclass.tag", scalar); } unittest { foreach(r; [&representMyStruct, &representMyStructSeq, &representMyStructMap]) { auto dumper = Dumper(new MemoryStream()); auto representer = new Representer; representer.addRepresenter!MyStruct(r); dumper.representer = representer; dumper.dump(Node(MyStruct(1,2,3))); } } unittest { auto dumper = Dumper(new MemoryStream()); auto representer = new Representer; representer.addRepresenter!MyClass(&representMyClass); dumper.representer = representer; dumper.dump(Node(new MyClass(1,2,3))); }
D
/* Copyright (c) 2019-2022 Timur Gafarov Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following: The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ module dagon.postproc.shaders.denoise; import std.stdio; import dlib.core.memory; import dlib.core.ownership; import dlib.math.vector; import dlib.math.matrix; import dlib.math.transformation; import dlib.math.interpolation; import dlib.image.color; import dlib.text.str; import dagon.core.bindings; import dagon.graphics.shader; import dagon.graphics.state; class DenoiseShader: Shader { String vs, fs; bool enabled = true; float factor = 0.5f; this(Owner owner) { vs = Shader.load("data/__internal/shaders/Denoise/Denoise.vert.glsl"); fs = Shader.load("data/__internal/shaders/Denoise/Denoise.frag.glsl"); auto myProgram = New!ShaderProgram(vs, fs, this); super(myProgram, owner); } ~this() { vs.free(); fs.free(); } override void bindParameters(GraphicsState* state) { setParameter("viewSize", state.resolution); setParameter("factor", factor); // Texture 0 - color buffer glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, state.colorTexture); setParameter("colorBuffer", 0); glActiveTexture(GL_TEXTURE0); super.bindParameters(state); } override void unbindParameters(GraphicsState* state) { super.unbindParameters(state); glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, 0); glActiveTexture(GL_TEXTURE0); } }
D
// ************ // SPL_FireRain // ************ const int SPL_Cost_FireRain = 35; const int SPL_Damage_FireRain = 260; INSTANCE Spell_FireRain (C_Spell_Proto) { time_per_mana = 0; damage_per_level = SPL_Damage_FireRain; damageType = DAM_MAGIC; targetCollectAlgo = TARGET_COLLECT_NONE; }; func int Spell_Logic_Firerain (var int manaInvested) { if (Npc_GetActiveSpellIsScroll(self) && (self.attribute[ATR_MANA] >= SPL_Cost_Scroll)) { return SPL_SENDCAST; } else if (self.attribute[ATR_MANA] >= SPL_Cost_FireRain) { return SPL_SENDCAST; } else //nicht genug Mana { return SPL_SENDSTOP; }; }; func void Spell_Cast_Firerain() { if (Npc_GetActiveSpellIsScroll(self)) { self.attribute[ATR_MANA] = self.attribute[ATR_MANA] - SPL_Cost_Scroll; } else { self.attribute[ATR_MANA] = self.attribute[ATR_MANA] - SPL_Cost_FireRain; }; self.aivar[AIV_SelectSpell] += 1; };
D
import std.stdio, std.string, std.numeric, std.algorithm, std.traits; alias TMMul_helper(M1, M2) = Unqual!(ForeachType!(ForeachType!M1)) [M2.init[0].length][M1.length]; void matrixMul(T, T2, size_t k, size_t m, size_t n) (in ref T[m][k] A, in ref T[n][m] B, /*out*/ ref T2[n][k] result) pure nothrow /*@safe*/ @nogc if (is(T2 == Unqual!T)) { static if (hasIndirections!T) T2[m] aux; else T2[m] aux = void; foreach (immutable j; 0 .. n) { foreach (immutable i, const ref bi; B) aux[i] = bi[j]; foreach (immutable i, const ref ai; A) result[i][j] = dotProduct(ai, aux); } } void main() { immutable int[2][3] a = [[1, 2], [3, 4], [3, 6]]; immutable int[3][2] b = [[-3, -8, 3,], [-2, 1, 4]]; enum form = "[%([%(%d, %)],\n %)]]"; writefln("A = \n" ~ form ~ "\n", a); writefln("B = \n" ~ form ~ "\n", b); TMMul_helper!(typeof(a), typeof(b)) result = void; matrixMul(a, b, result); writefln("A * B = \n" ~ form, result); }
D
module saillog; import std.stdio; import std.process; import core.sync.mutex; import core.thread; import col; import config; import api; /** Logs everything, on console and/or on files Todo: May be wise to create a thread if the mutex is locked so it doesn't slow the main process */ class SailLog { public: /** Posts a Warning, and immediately writes it to disk */ static void Warning(T...)(T args){//Variadic function with undefined number of parameters CheckInstance(); synchronized(m_inst.m_mtx){ auto uptime = GetUptime(); API.log("Warning", uptime, args); stderr.writeln(var.faded~uptime~"|"~var.end~bg.lightyellow~fg.red~var.bold~"Warning: "~var.end,args); m_inst.m_logfile.writeln(var.faded~uptime~"|"~var.end~bg.lightyellow~fg.red~var.bold~"Warning: "~var.end,args); m_inst.m_logfile.flush();//It is is important to save this } } /** Posts a Critical Error, and immediately writes it to disk */ static void Critical(T...)(T args){ CheckInstance(); synchronized(m_inst.m_mtx){ auto uptime = GetUptime(); API.log("Critical", uptime, args); stderr.writeln(var.faded~uptime~"|"~var.end~bg.red~fg.white~var.bold~"CRIT ERR: "~var.end,args); m_inst.m_logfile.writeln(var.faded~uptime~"|"~var.end~bg.red~fg.white~var.bold~"CRIT ERR: "~var.end,args); m_inst.m_logfile.flush(); } } /** Posts a Success, and writes it to disk */ static void Success(T...)(T args){ CheckInstance(); synchronized(m_inst.m_mtx){ auto uptime = GetUptime(); API.log("Success", uptime, args); writeln(var.faded~uptime~"|"~var.end~fg.green~var.bold~"Success: "~var.end,args); m_inst.m_logfile.writeln(var.faded~uptime~"|"~var.end~fg.green~var.bold~"Success: "~var.end,args); debug { m_inst.m_logfile.flush(); } } } /** Posts a Notification, and writes it to disk */ static void Notify(T...)(T args){ CheckInstance(); synchronized(m_inst.m_mtx){ auto uptime = GetUptime(); API.log("Notify", uptime, args); writeln(var.faded~uptime~"|"~var.end~fg.lightblack~var.bold~"Notify: "~var.end,args); m_inst.m_logfile.writeln(var.faded~uptime~"|"~var.end~fg.lightblack~var.bold~"Notify: "~var.end,args); debug { m_inst.m_logfile.flush(); } } } /** Posts a Success, without writing it to disk */ static void Post(T...)(T args){ CheckInstance(); synchronized(m_inst.m_mtx){ auto uptime = GetUptime(); API.log("Post", uptime, args); stdout.writeln(var.faded~uptime~"|"~var.end~var.faded~"Post: "~var.end,args); } } static string GetUptime(){ import std.string; import std.datetime; return format("%.1f", Clock.currAppTick().to!("seconds", float)).rightJustify(7); } private: static __gshared SailLog m_inst;//Stored in global storage, not thread local storage (TLS) File m_logfile; Mutex m_mtx; static void CheckInstance(){ if(!m_inst){ m_inst = new SailLog(); } } static enum string MOTD = bg.white~" "~var.end~"\n" ~bg.white~" "~bg.lightgreen~fg.black~" AutoShip ©ISEN Brest "~bg.white~" "~var.end~"\n" ~bg.white~" "~bg.lightgreen~fg.black~" Thomas ABOT Thibaut CHARLES "~bg.white~" "~var.end~"\n" ~bg.white~" "~var.end~"\n"; this(){ writeln(var.bold~"Notify: "~var.end,typeof(this).stringof~" instantiation in ",Thread.getThis().name," thread..."); m_mtx = new Mutex(); synchronized(m_mtx) { try{ m_logfile.open(config.Config.Get!string("Global", "LogFile"), "a"); }catch(Exception e){ auto uptime = GetUptime(); stderr.writeln(var.faded~uptime~"|"~var.end~bg.red~fg.white~var.bold~"CRIT ERR: "~var.end,e, "\nNow logging to /tmp/logs"); m_logfile.open("/tmp/logs", "a"); m_logfile.writeln(var.faded~uptime~"|"~var.end~bg.red~fg.white~var.bold~"CRIT ERR: "~var.end,e, "\nNow logging to /tmp/logs"); } stdout.writeln(MOTD~execute("date").output); m_logfile.writeln(MOTD~execute("date").output); stdout.writeln(config.Config.toString); m_logfile.writeln(config.Config.toString); } auto uptime = GetUptime(); writeln(var.faded~uptime~"|"~var.end~fg.green~var.bold~"Success: "~var.end,typeof(this).stringof~" instantiated in ",Thread.getThis().name," thread"); m_logfile.writeln(var.faded~uptime~"|"~var.end~fg.green~var.bold~"Success: "~var.end,typeof(this).stringof~" instantiated in ",Thread.getThis().name," thread"); m_logfile.flush(); } ~this(){ m_logfile.flush(); m_logfile.close(); } }
D
a slippery or viscous liquid or liquefiable substance not miscible with water oil paint containing pigment that is used by an artist a dark oil consisting mainly of hydrocarbons any of a group of liquid edible fats that are obtained from plants cover with oil, as if by rubbing administer an oil or ointment to
D
module java.lang.Class; import java.lang.util; import java.lang.String; import java.lang.reflect.Method; import java.lang.reflect.Field; import java.lang.reflect.Package; import java.lang.reflect.Constructor; class Class { bool desiredAssertionStatus(){ implMissing(__FILE__, __LINE__ ); return false; } static Class forName(String className){ implMissing(__FILE__, __LINE__ ); return null; } static Class fromType(T)(){ return null; } static Class fromObject(T)(T t){ static assert( is(T==class)||is(T==interface)); return null; } //static Class forName(String name, bool initialize, ClassLoader loader){ // implMissing(__FILE__, __LINE__ ); // return null; //} Class[] getClasses(){ implMissing(__FILE__, __LINE__ ); return null; } //ClassLoader getClassLoader(){ // implMissing(__FILE__, __LINE__ ); // return null; //} Class getComponentType(){ implMissing(__FILE__, __LINE__ ); return null; } Constructor getConstructor(Class parameterTypes...){ implMissing(__FILE__, __LINE__ ); return null; } Constructor[] getConstructors(){ implMissing(__FILE__, __LINE__ ); return null; } Class[] getDeclaredClasses(){ implMissing(__FILE__, __LINE__ ); return null; } Constructor getDeclaredConstructor(Class parameterTypes...){ implMissing(__FILE__, __LINE__ ); return null; } Constructor[] getDeclaredConstructors(){ implMissing(__FILE__, __LINE__ ); return null; } Field getDeclaredField(String name){ implMissing(__FILE__, __LINE__ ); return null; } Field[] getDeclaredFields(){ implMissing(__FILE__, __LINE__ ); return null; } Method getDeclaredMethod(String name, Class parameterTypes...){ implMissing(__FILE__, __LINE__ ); return null; } Method[] getDeclaredMethods(){ implMissing(__FILE__, __LINE__ ); return null; } Class getDeclaringClass(){ implMissing(__FILE__, __LINE__ ); return null; } Field getField(String name){ implMissing(__FILE__, __LINE__ ); return null; } Field[] getFields(){ implMissing(__FILE__, __LINE__ ); return null; } Class[] getInterfaces(){ implMissing(__FILE__, __LINE__ ); return null; } Method getMethod(String name, Class[] parameterTypes...){ implMissing(__FILE__, __LINE__ ); return null; } Method[] getMethods(){ implMissing(__FILE__, __LINE__ ); return null; } int getModifiers(){ implMissing(__FILE__, __LINE__ ); return 0; } String getName(){ implMissing(__FILE__, __LINE__ ); return null; } Package getPackage(){ implMissing(__FILE__, __LINE__ ); return null; } //ProtectionDomain getProtectionDomain(){ // implMissing(__FILE__, __LINE__ ); // return null; //} //URL getResource(String name){ // implMissing(__FILE__, __LINE__ ); // return null; //} //InputStream getResourceAsStream(String name){ // implMissing(__FILE__, __LINE__ ); // return null; //} //Object[] getSigners(){ // implMissing(__FILE__, __LINE__ ); // return null; //} String getSimpleName(){ implMissing(__FILE__, __LINE__ ); return null; } Class getSuperclass(){ implMissing(__FILE__, __LINE__ ); return null; } bool isArray(){ implMissing(__FILE__, __LINE__ ); return false; } bool isAssignableFrom(Class cls){ implMissing(__FILE__, __LINE__ ); return false; } bool isInstance(Object obj){ implMissing(__FILE__, __LINE__ ); return false; } bool isInterface(){ implMissing(__FILE__, __LINE__ ); return false; } bool isPrimitive(){ implMissing(__FILE__, __LINE__ ); return false; } Object newInstance(){ implMissing(__FILE__, __LINE__ ); return null; } override String toString(){ implMissing(__FILE__, __LINE__ ); return null; } }
D
instance Mod_1299_SLD_Organisator_MT (Npc_Default) { //-------- primary data -------- name = Name_Organisator; Npctype = Npctype_mt_soeldner; guild = GIL_mil; level = 4; voice = 0; id = 1299; //-------- abilities -------- B_SetAttributesToChapter (self, 4); EquipItem (self, ItMw_GrobesKurzschwert); //-------- visuals -------- // animations Mdl_SetVisual (self,"HUMANS.MDS"); Mdl_ApplyOverlayMds (self,"Humans_Relaxed.mds"); // body mesh, head mesh, hairmesh, face-tex, hair-tex, skin Mdl_SetVisualBody (self,"hum_body_Naked0",1, 1,"Hum_Head_FatBald", 12 , 0, SLD_ARMOR_L); Mdl_SetModelFatness (self, 0); fight_tactic = FAI_HUMAN_STRONG; //-------- Talente -------- Npc_SetTalentSkill (self, NPC_TALENT_BOW,1); Npc_SetTalentSkill (self, NPC_TALENT_1H,1); Npc_SetTalentSkill (self, NPC_TALENT_SNEAK, 1); //-------- inventory -------- //-------------Daily Routine------------- daily_routine = Rtn_start_1299; }; FUNC VOID Rtn_start_1299 () { TA_Stand_Guarding (23,00,05,00,"OW_PATH_067_WHEEL"); TA_Stand_Guarding (05,00,23,00,"OW_PATH_067_WHEEL"); };
D
module android.java.java.nio.channels.SocketChannel; public import android.java.java.nio.channels.SocketChannel_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!SocketChannel; import import0 = android.java.java.nio.channels.SocketChannel; import import5 = android.java.java.nio.channels.NetworkChannel; import import10 = android.java.java.lang.Class; import import3 = android.java.java.net.Socket; import import11 = android.java.java.util.Set; import import9 = android.java.java.nio.channels.SelectableChannel; import import6 = android.java.java.nio.channels.spi.SelectorProvider; import import7 = android.java.java.nio.channels.SelectionKey;
D
module bio.std.hts.sam.utils.fastrecordparser; #line 1 "sam_alignment.rl" /* This file is part of BioD. Copyright (C) 2012 Artem Tarasov <lomereiter@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #line 28 "sam_alignment.d" static const int sam_alignment_start = 1; static const int sam_alignment_first_final = 191; static const int sam_alignment_error = 0; static const int sam_alignment_en_recover_from_invalid_qname = 169; static const int sam_alignment_en_recover_from_invalid_flag = 170; static const int sam_alignment_en_recover_from_invalid_rname = 171; static const int sam_alignment_en_recover_from_invalid_pos = 172; static const int sam_alignment_en_recover_from_invalid_mapq = 173; static const int sam_alignment_en_recover_from_invalid_cigar = 174; static const int sam_alignment_en_recover_from_invalid_rnext = 175; static const int sam_alignment_en_recover_from_invalid_pnext = 176; static const int sam_alignment_en_recover_from_invalid_tlen = 177; static const int sam_alignment_en_recover_from_invalid_seq = 178; static const int sam_alignment_en_recover_from_invalid_qual = 179; static const int sam_alignment_en_recover_from_invalid_tag = 180; static const int sam_alignment_en_alignment = 1; static const int sam_alignment_en_alignment_field_parsing_mandatoryfields_flag_parsing = 181; static const int sam_alignment_en_alignment_field_parsing_mandatoryfields_rname_parsing = 182; static const int sam_alignment_en_alignment_field_parsing_mandatoryfields_pos_parsing = 183; static const int sam_alignment_en_alignment_field_parsing_mandatoryfields_mapq_parsing = 184; static const int sam_alignment_en_alignment_field_parsing_mandatoryfields_cigar_parsing = 185; static const int sam_alignment_en_alignment_field_parsing_mandatoryfields_rnext_parsing = 186; static const int sam_alignment_en_alignment_field_parsing_mandatoryfields_pnext_parsing = 187; static const int sam_alignment_en_alignment_field_parsing_mandatoryfields_tlen_parsing = 188; static const int sam_alignment_en_alignment_field_parsing_mandatoryfields_seq_parsing = 189; static const int sam_alignment_en_alignment_field_parsing_mandatoryfields_qual_parsing = 190; static const int sam_alignment_en_alignment_tag_parsing = 251; #line 419 "sam_alignment.rl" import bio.std.hts.sam.header; import bio.std.hts.bam.cigar; import bio.std.hts.bam.read; import bio.std.hts.bam.bai.bin; import bio.core.utils.outbuffer; import bio.core.base; import std.conv; import std.array; import std.exception; BamRead parseAlignmentLine(string line, SamHeader header, OutBuffer buffer=null) { char* p = cast(char*)line.ptr; char* pe = p + line.length; char* eof = pe; int cs; if (buffer is null) buffer = new OutBuffer(8192); else buffer.clear(); size_t rollback_size; // needed in case of invalid data byte current_sign = 1; size_t read_name_beg; // position of beginning of QNAME size_t sequence_beg; // position of SEQ start int l_seq; // sequence length uint cigar_op_len; // length of CIGAR operation char cigar_op_chr; // CIGAR operation size_t quals_length; // number of QUAL characters char quals_last_char; // needed in order to handle '*' correctly size_t cigar_op_len_start; // position of start of CIGAR operation long int_value; // for storing temporary integers float float_value; // for storing temporary floats size_t float_beg; // position of start of current float char arraytype; // type of last array tag value size_t tag_array_length_offset; // where the length is stored in the buffer string read_name; ushort flag; int pos = -1; int end_pos; // for bin calculation int mate_pos = -1; ubyte mapping_quality = 255; int template_length = 0; size_t tag_key_beg, tagvalue_beg; ubyte[] tag_key; size_t rname_beg, rnext_beg; int ref_id = -1; #line 121 "sam_alignment.d" { cs = sam_alignment_start; } #line 480 "sam_alignment.rl" #line 128 "sam_alignment.d" { if ( p == pe ) goto _test_eof; switch ( cs ) { goto case; case 1: if ( (*p) == 9u ) goto tr1; if ( (*p) > 63u ) { if ( 65u <= (*p) && (*p) <= 126u ) goto tr2; } else if ( (*p) >= 33u ) goto tr2; goto tr0; tr0: #line 50 "sam_alignment.rl" { p--; {if (true) goto st169;} } goto st0; tr3: #line 58 "sam_alignment.rl" { p--; {if (true) goto st170;} } goto st0; tr7: #line 67 "sam_alignment.rl" { p--; {if (true) goto st171;} } goto st0; tr12: #line 75 "sam_alignment.rl" { p--; {if (true) goto st172;} } goto st0; tr16: #line 81 "sam_alignment.rl" { p--; {if (true) goto st173;} } goto st0; tr20: #line 124 "sam_alignment.rl" { auto ptr = cast(uint*)(buffer.data.ptr + 3 * uint.sizeof); *ptr = (*ptr) & 0xFFFF0000; buffer.shrink(rollback_size); end_pos = pos + 1; p--; {if (true) goto st174;} } goto st0; tr24: #line 162 "sam_alignment.rl" { p--; {if (true) goto st175;} } goto st0; tr30: #line 175 "sam_alignment.rl" { p--; {if (true) goto st176;} } goto st0; tr34: #line 187 "sam_alignment.rl" { p--; {if (true) goto st177;} } goto st0; tr39: #line 217 "sam_alignment.rl" { rollback_size = buffer.length; p--; {if (true) goto st178;} } goto st0; tr43: #line 243 "sam_alignment.rl" { buffer.shrink(rollback_size); for (size_t i = 0; i < l_seq; ++i) buffer.putUnsafe!ubyte(0xFF); rollback_size = buffer.length; p--; {if (true) goto st179;} } goto st0; tr49: #line 403 "sam_alignment.rl" { buffer.shrink(rollback_size); p--; {if (true) goto st180;} } goto st0; #line 209 "sam_alignment.d" st0: cs = 0; goto _out; tr1: #line 48 "sam_alignment.rl" { read_name_beg = p - line.ptr; } #line 49 "sam_alignment.rl" { read_name = line[read_name_beg .. p - line.ptr]; } goto st2; tr206: #line 49 "sam_alignment.rl" { read_name = line[read_name_beg .. p - line.ptr]; } goto st2; st2: if ( ++p == pe ) goto _test_eof2; goto case; case 2: #line 227 "sam_alignment.d" if ( 48u <= (*p) && (*p) <= 57u ) goto tr4; goto tr3; tr4: #line 28 "sam_alignment.rl" { int_value = 0; } #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st3; st3: if ( ++p == pe ) goto _test_eof3; goto case; case 3: #line 241 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr6; goto tr3; tr5: #line 56 "sam_alignment.rl" { flag = to!ushort(int_value); } goto st4; st4: if ( ++p == pe ) goto _test_eof4; goto case; case 4: #line 255 "sam_alignment.d" if ( (*p) == 42u ) goto st150; if ( (*p) > 60u ) { if ( 62u <= (*p) && (*p) <= 126u ) goto tr8; } else if ( (*p) >= 33u ) goto tr8; goto tr7; tr8: #line 62 "sam_alignment.rl" { rname_beg = p - line.ptr; } goto st5; st5: if ( ++p == pe ) goto _test_eof5; goto case; case 5: #line 272 "sam_alignment.d" if ( (*p) == 9u ) goto tr10; if ( 33u <= (*p) && (*p) <= 126u ) goto st5; goto tr7; tr10: #line 63 "sam_alignment.rl" { ref_id = header.getSequenceIndex(line[rname_beg .. p - line.ptr]); } goto st6; st6: if ( ++p == pe ) goto _test_eof6; goto case; case 6: #line 288 "sam_alignment.d" if ( 48u <= (*p) && (*p) <= 57u ) goto tr13; goto tr12; tr13: #line 28 "sam_alignment.rl" { int_value = 0; } #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st7; st7: if ( ++p == pe ) goto _test_eof7; goto case; case 7: #line 302 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr15; goto tr12; tr14: #line 73 "sam_alignment.rl" { end_pos = pos = to!uint(int_value); } goto st8; st8: if ( ++p == pe ) goto _test_eof8; goto case; case 8: #line 316 "sam_alignment.d" if ( 48u <= (*p) && (*p) <= 57u ) goto tr17; goto tr16; tr17: #line 28 "sam_alignment.rl" { int_value = 0; } #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st9; st9: if ( ++p == pe ) goto _test_eof9; goto case; case 9: #line 330 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr19; goto tr16; tr18: #line 79 "sam_alignment.rl" { mapping_quality = to!ubyte(int_value); } #line 85 "sam_alignment.rl" { buffer.capacity = 32 + read_name.length + 1; buffer.putUnsafe!int(ref_id); buffer.putUnsafe!int(pos - 1); enforce(read_name.length + 1 <= 255, "Read name " ~ read_name ~ " is too long!"); // bin will be set later auto bin_mq_nl = ((cast(uint)mapping_quality) << 8) | (read_name.length + 1); buffer.putUnsafe(cast(uint)bin_mq_nl); // number of CIGAR operations will be set later buffer.putUnsafe!uint(flag << 16); buffer.putUnsafe!int(0); buffer.putUnsafe!int(-1); // mate ref. id buffer.putUnsafe!int(-1); // mate pos buffer.putUnsafe!int(0); // tlen buffer.putUnsafe(cast(ubyte[])read_name); buffer.putUnsafe!ubyte(0); rollback_size = buffer.length; } goto st10; tr235: #line 85 "sam_alignment.rl" { buffer.capacity = 32 + read_name.length + 1; buffer.putUnsafe!int(ref_id); buffer.putUnsafe!int(pos - 1); enforce(read_name.length + 1 <= 255, "Read name " ~ read_name ~ " is too long!"); // bin will be set later auto bin_mq_nl = ((cast(uint)mapping_quality) << 8) | (read_name.length + 1); buffer.putUnsafe(cast(uint)bin_mq_nl); // number of CIGAR operations will be set later buffer.putUnsafe!uint(flag << 16); buffer.putUnsafe!int(0); buffer.putUnsafe!int(-1); // mate ref. id buffer.putUnsafe!int(-1); // mate pos buffer.putUnsafe!int(0); // tlen buffer.putUnsafe(cast(ubyte[])read_name); buffer.putUnsafe!ubyte(0); rollback_size = buffer.length; } goto st10; st10: if ( ++p == pe ) goto _test_eof10; goto case; case 10: #line 396 "sam_alignment.d" if ( (*p) == 42u ) goto st11; if ( 48u <= (*p) && (*p) <= 57u ) goto tr22; goto tr20; st11: if ( ++p == pe ) goto _test_eof11; goto case; case 11: if ( (*p) == 9u ) goto tr23; goto tr20; tr23: #line 137 "sam_alignment.rl" { if (end_pos == pos) ++end_pos; { auto bin = reg2bin(pos - 1, end_pos - 1); // 0-based [) interval auto ptr = cast(uint*)(buffer.data.ptr + 2 * uint.sizeof); *ptr = (*ptr) | ((cast(uint)bin) << 16); } } goto st12; tr155: #line 113 "sam_alignment.rl" { auto op = CigarOperation(cigar_op_len, cigar_op_chr); if (op.is_reference_consuming) end_pos += op.length; buffer.put!CigarOperation(op); { auto ptr = cast(uint*)(buffer.data.ptr + 3 * uint.sizeof); *ptr = (*ptr) + 1; } } #line 137 "sam_alignment.rl" { if (end_pos == pos) ++end_pos; { auto bin = reg2bin(pos - 1, end_pos - 1); // 0-based [) interval auto ptr = cast(uint*)(buffer.data.ptr + 2 * uint.sizeof); *ptr = (*ptr) | ((cast(uint)bin) << 16); } } goto st12; st12: if ( ++p == pe ) goto _test_eof12; goto case; case 12: #line 448 "sam_alignment.d" switch( (*p) ) { case 42u: goto st95; case 61u: goto st96; default: break; } if ( 33u <= (*p) && (*p) <= 126u ) goto tr25; goto tr24; tr25: #line 155 "sam_alignment.rl" { rnext_beg = p - line.ptr; } goto st13; st13: if ( ++p == pe ) goto _test_eof13; goto case; case 13: #line 465 "sam_alignment.d" if ( (*p) == 9u ) goto tr28; if ( 33u <= (*p) && (*p) <= 126u ) goto st13; goto tr24; tr28: #line 156 "sam_alignment.rl" { { auto ptr = cast(int*)(buffer.data.ptr + 5 * int.sizeof); *ptr = header.getSequenceIndex(line[rnext_beg .. p - line.ptr]); } } goto st14; tr136: #line 148 "sam_alignment.rl" { { auto ptr = cast(int*)(buffer.data.ptr + 5 * int.sizeof); *ptr = ref_id; } } goto st14; st14: if ( ++p == pe ) goto _test_eof14; goto case; case 14: #line 493 "sam_alignment.d" if ( 48u <= (*p) && (*p) <= 57u ) goto tr31; goto tr30; tr31: #line 28 "sam_alignment.rl" { int_value = 0; } #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st15; st15: if ( ++p == pe ) goto _test_eof15; goto case; case 15: #line 507 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr33; goto tr30; tr32: #line 169 "sam_alignment.rl" { { auto ptr = cast(int*)(buffer.data.ptr + 6 * int.sizeof); *ptr = to!int(int_value) - 1; } } goto st16; st16: if ( ++p == pe ) goto _test_eof16; goto case; case 16: #line 526 "sam_alignment.d" switch( (*p) ) { case 43u: goto tr35; case 45u: goto tr35; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr36; goto tr34; tr35: #line 27 "sam_alignment.rl" { current_sign = (*p) == '-' ? -1 : 1; } goto st17; st17: if ( ++p == pe ) goto _test_eof17; goto case; case 17: #line 543 "sam_alignment.d" if ( 48u <= (*p) && (*p) <= 57u ) goto tr36; goto tr34; tr36: #line 28 "sam_alignment.rl" { int_value = 0; } #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st18; st18: if ( ++p == pe ) goto _test_eof18; goto case; case 18: #line 557 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr38; goto tr34; tr37: #line 30 "sam_alignment.rl" { int_value *= current_sign; current_sign = 1; } #line 181 "sam_alignment.rl" { { auto ptr = cast(int*)(buffer.data.ptr + 7 * int.sizeof); *ptr = to!int(int_value); } } goto st19; st19: if ( ++p == pe ) goto _test_eof19; goto case; case 19: #line 578 "sam_alignment.d" switch( (*p) ) { case 42u: goto st20; case 46u: goto tr41; case 61u: goto tr41; default: break; } if ( (*p) > 90u ) { if ( 97u <= (*p) && (*p) <= 122u ) goto tr41; } else if ( (*p) >= 65u ) goto tr41; goto tr39; st20: if ( ++p == pe ) goto _test_eof20; goto case; case 20: if ( (*p) == 9u ) goto tr42; goto tr39; tr42: #line 223 "sam_alignment.rl" { rollback_size = buffer.length; } goto st21; tr101: #line 194 "sam_alignment.rl" { auto data = cast(ubyte[])line[sequence_beg .. p - line.ptr]; l_seq = cast(int)data.length; auto raw_len = (l_seq + 1) / 2; // reserve space for base qualities, too buffer.capacity = buffer.length + raw_len + l_seq; for (size_t i = 0; i < raw_len; ++i) { auto b = cast(ubyte)(Base(data[2 * i]).internal_code << 4); if (2 * i + 1 < l_seq) b |= cast(ubyte)(Base(data[2 * i + 1]).internal_code); buffer.putUnsafe!ubyte(b); } // set l_seq { auto ptr = cast(int*)(buffer.data.ptr + 4 * int.sizeof); *ptr = l_seq; } rollback_size = buffer.length; } goto st21; st21: if ( ++p == pe ) goto _test_eof21; goto case; case 21: #line 634 "sam_alignment.d" if ( 33u <= (*p) && (*p) <= 126u ) goto tr44; goto tr43; tr44: #line 230 "sam_alignment.rl" { ++quals_length; quals_last_char = (*p); buffer.putUnsafe!ubyte(cast(ubyte)((*p) - 33)); } goto st191; st191: if ( ++p == pe ) goto _test_eof191; goto case; case 191: #line 650 "sam_alignment.d" if ( (*p) == 9u ) goto tr239; if ( 33u <= (*p) && (*p) <= 126u ) goto tr44; goto tr43; tr239: #line 236 "sam_alignment.rl" { // '*' may correspond either to a one-base long sequence // or to absence of information if (quals_length == 1 && quals_last_char == '*' && l_seq == 0) buffer.shrink(rollback_size); } #line 253 "sam_alignment.rl" { if (buffer.length - rollback_size != l_seq) { buffer.shrink(rollback_size); for (size_t i = 0; i < l_seq; ++i) buffer.putUnsafe!ubyte(0xFF); } rollback_size = buffer.length; } goto st22; tr240: #line 410 "sam_alignment.rl" { rollback_size = buffer.length; } goto st22; tr241: #line 30 "sam_alignment.rl" { int_value *= current_sign; current_sign = 1; } #line 362 "sam_alignment.rl" { // here, we assume that compiler is smart enough to move switch out of loop. switch (arraytype) { case 'c': buffer.put(to!byte(int_value)); break; case 'C': buffer.put(to!ubyte(int_value)); break; case 's': buffer.put(to!short(int_value)); break; case 'S': buffer.put(to!ushort(int_value)); break; case 'i': buffer.put(to!int(int_value)); break; case 'I': buffer.put(to!uint(int_value)); break; default: assert(0); } { auto ptr = cast(uint*)(buffer.data.ptr + tag_array_length_offset); ++*ptr; } } #line 410 "sam_alignment.rl" { rollback_size = buffer.length; } goto st22; tr260: #line 38 "sam_alignment.rl" { float_value = to!float(line[float_beg .. p - line.ptr]); } #line 379 "sam_alignment.rl" { buffer.put!float(float_value); { auto ptr = cast(uint*)(buffer.data.ptr + tag_array_length_offset); ++*ptr; } } #line 410 "sam_alignment.rl" { rollback_size = buffer.length; } goto st22; tr263: #line 337 "sam_alignment.rl" { { auto data = cast(ubyte[])(line[tagvalue_beg .. p - line.ptr]); buffer.capacity = buffer.length + 4 + data.length; buffer.putUnsafe(tag_key); buffer.putUnsafe!char('H'); buffer.putUnsafe(data); buffer.putUnsafe!ubyte(0); } } #line 410 "sam_alignment.rl" { rollback_size = buffer.length; } goto st22; tr265: #line 326 "sam_alignment.rl" { { auto data = cast(ubyte[])(line[tagvalue_beg .. p - line.ptr]); buffer.capacity = buffer.length + 4 + data.length; buffer.putUnsafe(tag_key); buffer.putUnsafe!char('Z'); buffer.putUnsafe(data); buffer.putUnsafe!ubyte(0); } } #line 410 "sam_alignment.rl" { rollback_size = buffer.length; } goto st22; tr267: #line 38 "sam_alignment.rl" { float_value = to!float(line[float_beg .. p - line.ptr]); } #line 319 "sam_alignment.rl" { buffer.capacity = buffer.length + 7; buffer.putUnsafe(tag_key); buffer.putUnsafe!char('f'); buffer.putUnsafe!float(float_value); } #line 410 "sam_alignment.rl" { rollback_size = buffer.length; } goto st22; tr269: #line 30 "sam_alignment.rl" { int_value *= current_sign; current_sign = 1; } #line 285 "sam_alignment.rl" { buffer.capacity = buffer.length + 7; buffer.putUnsafe(tag_key); if (int_value < 0) { if (int_value >= byte.min) { buffer.putUnsafe!char('c'); buffer.putUnsafe(cast(byte)int_value); } else if (int_value >= short.min) { buffer.putUnsafe!char('s'); buffer.putUnsafe(cast(short)int_value); } else if (int_value >= int.min) { buffer.putUnsafe!char('i'); buffer.putUnsafe(cast(int)int_value); } else { throw new Exception("integer out of range"); } } else { if (int_value <= ubyte.max) { buffer.putUnsafe!char('C'); buffer.putUnsafe(cast(ubyte)int_value); } else if (int_value <= ushort.max) { buffer.putUnsafe!char('S'); buffer.putUnsafe(cast(ushort)int_value); } else if (int_value <= uint.max) { buffer.putUnsafe!char('I'); buffer.putUnsafe(cast(uint)int_value); } else { throw new Exception("integer out of range"); } } } #line 410 "sam_alignment.rl" { rollback_size = buffer.length; } goto st22; st22: if ( ++p == pe ) goto _test_eof22; goto case; case 22: #line 804 "sam_alignment.d" if ( (*p) > 90u ) { if ( 97u <= (*p) && (*p) <= 122u ) goto tr45; } else if ( (*p) >= 65u ) goto tr45; goto st0; tr45: #line 400 "sam_alignment.rl" { tag_key_beg = p - line.ptr; } goto st23; st23: if ( ++p == pe ) goto _test_eof23; goto case; case 23: #line 819 "sam_alignment.d" if ( (*p) < 65u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto st24; } else if ( (*p) > 90u ) { if ( 97u <= (*p) && (*p) <= 122u ) goto st24; } else goto st24; goto st0; st24: if ( ++p == pe ) goto _test_eof24; goto case; case 24: if ( (*p) == 58u ) goto tr48; goto st0; tr48: #line 401 "sam_alignment.rl" { tag_key = cast(ubyte[])(line[tag_key_beg .. p - line.ptr]); } goto st25; st25: if ( ++p == pe ) goto _test_eof25; goto case; case 25: #line 844 "sam_alignment.d" switch( (*p) ) { case 65u: goto st26; case 66u: goto st28; case 72u: goto st43; case 90u: goto st45; case 102u: goto st47; case 105u: goto st57; default: break; } goto tr49; st26: if ( ++p == pe ) goto _test_eof26; goto case; case 26: if ( (*p) == 58u ) goto st27; goto tr49; st27: if ( ++p == pe ) goto _test_eof27; goto case; case 27: if ( 33u <= (*p) && (*p) <= 126u ) goto tr57; goto tr49; tr57: #line 278 "sam_alignment.rl" { buffer.capacity = buffer.length + 4; buffer.putUnsafe(tag_key); buffer.putUnsafe!char('A'); buffer.putUnsafe!char((*p)); } goto st192; st192: if ( ++p == pe ) goto _test_eof192; goto case; case 192: #line 882 "sam_alignment.d" if ( (*p) == 9u ) goto tr240; goto tr49; st28: if ( ++p == pe ) goto _test_eof28; goto case; case 28: if ( (*p) == 58u ) goto st29; goto tr49; st29: if ( ++p == pe ) goto _test_eof29; goto case; case 29: switch( (*p) ) { case 67u: goto tr59; case 73u: goto tr59; case 83u: goto tr59; case 99u: goto tr59; case 102u: goto tr60; case 105u: goto tr59; case 115u: goto tr59; default: break; } goto tr49; tr59: #line 352 "sam_alignment.rl" { arraytype = (*p); buffer.capacity = buffer.length + 8; buffer.putUnsafe(tag_key); buffer.putUnsafe!char('B'); buffer.putUnsafe!char(arraytype); buffer.putUnsafe!uint(0); tag_array_length_offset = buffer.length - uint.sizeof; } goto st30; st30: if ( ++p == pe ) goto _test_eof30; goto case; case 30: #line 924 "sam_alignment.d" if ( (*p) == 44u ) goto st31; goto tr49; tr242: #line 30 "sam_alignment.rl" { int_value *= current_sign; current_sign = 1; } #line 362 "sam_alignment.rl" { // here, we assume that compiler is smart enough to move switch out of loop. switch (arraytype) { case 'c': buffer.put(to!byte(int_value)); break; case 'C': buffer.put(to!ubyte(int_value)); break; case 's': buffer.put(to!short(int_value)); break; case 'S': buffer.put(to!ushort(int_value)); break; case 'i': buffer.put(to!int(int_value)); break; case 'I': buffer.put(to!uint(int_value)); break; default: assert(0); } { auto ptr = cast(uint*)(buffer.data.ptr + tag_array_length_offset); ++*ptr; } } goto st31; st31: if ( ++p == pe ) goto _test_eof31; goto case; case 31: #line 953 "sam_alignment.d" switch( (*p) ) { case 43u: goto tr62; case 45u: goto tr62; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr63; goto tr49; tr62: #line 27 "sam_alignment.rl" { current_sign = (*p) == '-' ? -1 : 1; } goto st32; st32: if ( ++p == pe ) goto _test_eof32; goto case; case 32: #line 970 "sam_alignment.d" if ( 48u <= (*p) && (*p) <= 57u ) goto tr63; goto tr49; tr63: #line 28 "sam_alignment.rl" { int_value = 0; } #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st193; st193: if ( ++p == pe ) goto _test_eof193; goto case; case 193: #line 984 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr243; goto tr49; tr243: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st194; st194: if ( ++p == pe ) goto _test_eof194; goto case; case 194: #line 1001 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr244; goto tr49; tr244: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st195; st195: if ( ++p == pe ) goto _test_eof195; goto case; case 195: #line 1018 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr245; goto tr49; tr245: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st196; st196: if ( ++p == pe ) goto _test_eof196; goto case; case 196: #line 1035 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr246; goto tr49; tr246: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st197; st197: if ( ++p == pe ) goto _test_eof197; goto case; case 197: #line 1052 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr247; goto tr49; tr247: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st198; st198: if ( ++p == pe ) goto _test_eof198; goto case; case 198: #line 1069 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr248; goto tr49; tr248: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st199; st199: if ( ++p == pe ) goto _test_eof199; goto case; case 199: #line 1086 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr249; goto tr49; tr249: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st200; st200: if ( ++p == pe ) goto _test_eof200; goto case; case 200: #line 1103 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr250; goto tr49; tr250: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st201; st201: if ( ++p == pe ) goto _test_eof201; goto case; case 201: #line 1120 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr251; goto tr49; tr251: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st202; st202: if ( ++p == pe ) goto _test_eof202; goto case; case 202: #line 1137 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr252; goto tr49; tr252: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st203; st203: if ( ++p == pe ) goto _test_eof203; goto case; case 203: #line 1154 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr253; goto tr49; tr253: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st204; st204: if ( ++p == pe ) goto _test_eof204; goto case; case 204: #line 1171 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr254; goto tr49; tr254: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st205; st205: if ( ++p == pe ) goto _test_eof205; goto case; case 205: #line 1188 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr255; goto tr49; tr255: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st206; st206: if ( ++p == pe ) goto _test_eof206; goto case; case 206: #line 1205 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr256; goto tr49; tr256: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st207; st207: if ( ++p == pe ) goto _test_eof207; goto case; case 207: #line 1222 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr257; goto tr49; tr257: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st208; st208: if ( ++p == pe ) goto _test_eof208; goto case; case 208: #line 1239 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr258; goto tr49; tr258: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st209; st209: if ( ++p == pe ) goto _test_eof209; goto case; case 209: #line 1256 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr259; goto tr49; tr259: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st210; st210: if ( ++p == pe ) goto _test_eof210; goto case; case 210: #line 1273 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr241; case 44u: goto tr242; default: break; } goto tr49; tr60: #line 352 "sam_alignment.rl" { arraytype = (*p); buffer.capacity = buffer.length + 8; buffer.putUnsafe(tag_key); buffer.putUnsafe!char('B'); buffer.putUnsafe!char(arraytype); buffer.putUnsafe!uint(0); tag_array_length_offset = buffer.length - uint.sizeof; } goto st33; st33: if ( ++p == pe ) goto _test_eof33; goto case; case 33: #line 1296 "sam_alignment.d" if ( (*p) == 44u ) goto st34; goto tr49; tr261: #line 38 "sam_alignment.rl" { float_value = to!float(line[float_beg .. p - line.ptr]); } #line 379 "sam_alignment.rl" { buffer.put!float(float_value); { auto ptr = cast(uint*)(buffer.data.ptr + tag_array_length_offset); ++*ptr; } } goto st34; st34: if ( ++p == pe ) goto _test_eof34; goto case; case 34: #line 1318 "sam_alignment.d" switch( (*p) ) { case 43u: goto tr65; case 45u: goto tr65; case 46u: goto tr66; case 105u: goto tr68; case 110u: goto tr69; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr67; goto tr49; tr65: #line 37 "sam_alignment.rl" { float_beg = p - line.ptr; } goto st35; st35: if ( ++p == pe ) goto _test_eof35; goto case; case 35: #line 1338 "sam_alignment.d" switch( (*p) ) { case 46u: goto st36; case 105u: goto st39; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto st213; goto tr49; tr66: #line 37 "sam_alignment.rl" { float_beg = p - line.ptr; } goto st36; st36: if ( ++p == pe ) goto _test_eof36; goto case; case 36: #line 1355 "sam_alignment.d" if ( 48u <= (*p) && (*p) <= 57u ) goto st211; goto tr49; st211: if ( ++p == pe ) goto _test_eof211; goto case; case 211: switch( (*p) ) { case 9u: goto tr260; case 44u: goto tr261; case 69u: goto st37; case 101u: goto st37; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto st211; goto tr49; st37: if ( ++p == pe ) goto _test_eof37; goto case; case 37: switch( (*p) ) { case 43u: goto st38; case 45u: goto st38; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto st212; goto tr49; st38: if ( ++p == pe ) goto _test_eof38; goto case; case 38: if ( 48u <= (*p) && (*p) <= 57u ) goto st212; goto tr49; st212: if ( ++p == pe ) goto _test_eof212; goto case; case 212: switch( (*p) ) { case 9u: goto tr260; case 44u: goto tr261; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto st212; goto tr49; tr67: #line 37 "sam_alignment.rl" { float_beg = p - line.ptr; } goto st213; st213: if ( ++p == pe ) goto _test_eof213; goto case; case 213: #line 1412 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr260; case 44u: goto tr261; case 46u: goto st36; case 69u: goto st37; case 101u: goto st37; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto st213; goto tr49; tr68: #line 37 "sam_alignment.rl" { float_beg = p - line.ptr; } goto st39; st39: if ( ++p == pe ) goto _test_eof39; goto case; case 39: #line 1432 "sam_alignment.d" if ( (*p) == 110u ) goto st40; goto tr49; st40: if ( ++p == pe ) goto _test_eof40; goto case; case 40: if ( (*p) == 102u ) goto st214; goto tr49; st214: if ( ++p == pe ) goto _test_eof214; goto case; case 214: switch( (*p) ) { case 9u: goto tr260; case 44u: goto tr261; default: break; } goto tr49; tr69: #line 37 "sam_alignment.rl" { float_beg = p - line.ptr; } goto st41; st41: if ( ++p == pe ) goto _test_eof41; goto case; case 41: #line 1461 "sam_alignment.d" if ( (*p) == 97u ) goto st42; goto tr49; st42: if ( ++p == pe ) goto _test_eof42; goto case; case 42: if ( (*p) == 110u ) goto st214; goto tr49; st43: if ( ++p == pe ) goto _test_eof43; goto case; case 43: if ( (*p) == 58u ) goto st44; goto tr49; st44: if ( ++p == pe ) goto _test_eof44; goto case; case 44: if ( (*p) < 65u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr80; } else if ( (*p) > 70u ) { if ( 97u <= (*p) && (*p) <= 102u ) goto tr80; } else goto tr80; goto tr49; tr80: #line 317 "sam_alignment.rl" { tagvalue_beg = p - line.ptr; } goto st215; st215: if ( ++p == pe ) goto _test_eof215; goto case; case 215: #line 1500 "sam_alignment.d" if ( (*p) == 9u ) goto tr263; if ( (*p) < 65u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto st215; } else if ( (*p) > 70u ) { if ( 97u <= (*p) && (*p) <= 102u ) goto st215; } else goto st215; goto tr49; st45: if ( ++p == pe ) goto _test_eof45; goto case; case 45: if ( (*p) == 58u ) goto st46; goto tr49; st46: if ( ++p == pe ) goto _test_eof46; goto case; case 46: if ( 32u <= (*p) && (*p) <= 126u ) goto tr82; goto tr49; tr82: #line 317 "sam_alignment.rl" { tagvalue_beg = p - line.ptr; } goto st216; st216: if ( ++p == pe ) goto _test_eof216; goto case; case 216: #line 1534 "sam_alignment.d" if ( (*p) == 9u ) goto tr265; if ( 32u <= (*p) && (*p) <= 126u ) goto st216; goto tr49; st47: if ( ++p == pe ) goto _test_eof47; goto case; case 47: if ( (*p) == 58u ) goto st48; goto tr49; st48: if ( ++p == pe ) goto _test_eof48; goto case; case 48: switch( (*p) ) { case 43u: goto tr84; case 45u: goto tr84; case 46u: goto tr85; case 105u: goto tr87; case 110u: goto tr88; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr86; goto tr49; tr84: #line 37 "sam_alignment.rl" { float_beg = p - line.ptr; } goto st49; st49: if ( ++p == pe ) goto _test_eof49; goto case; case 49: #line 1570 "sam_alignment.d" switch( (*p) ) { case 46u: goto st50; case 105u: goto st53; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto st219; goto tr49; tr85: #line 37 "sam_alignment.rl" { float_beg = p - line.ptr; } goto st50; st50: if ( ++p == pe ) goto _test_eof50; goto case; case 50: #line 1587 "sam_alignment.d" if ( 48u <= (*p) && (*p) <= 57u ) goto st217; goto tr49; st217: if ( ++p == pe ) goto _test_eof217; goto case; case 217: switch( (*p) ) { case 9u: goto tr267; case 69u: goto st51; case 101u: goto st51; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto st217; goto tr49; st51: if ( ++p == pe ) goto _test_eof51; goto case; case 51: switch( (*p) ) { case 43u: goto st52; case 45u: goto st52; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto st218; goto tr49; st52: if ( ++p == pe ) goto _test_eof52; goto case; case 52: if ( 48u <= (*p) && (*p) <= 57u ) goto st218; goto tr49; st218: if ( ++p == pe ) goto _test_eof218; goto case; case 218: if ( (*p) == 9u ) goto tr267; if ( 48u <= (*p) && (*p) <= 57u ) goto st218; goto tr49; tr86: #line 37 "sam_alignment.rl" { float_beg = p - line.ptr; } goto st219; st219: if ( ++p == pe ) goto _test_eof219; goto case; case 219: #line 1640 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr267; case 46u: goto st50; case 69u: goto st51; case 101u: goto st51; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto st219; goto tr49; tr87: #line 37 "sam_alignment.rl" { float_beg = p - line.ptr; } goto st53; st53: if ( ++p == pe ) goto _test_eof53; goto case; case 53: #line 1659 "sam_alignment.d" if ( (*p) == 110u ) goto st54; goto tr49; st54: if ( ++p == pe ) goto _test_eof54; goto case; case 54: if ( (*p) == 102u ) goto st220; goto tr49; st220: if ( ++p == pe ) goto _test_eof220; goto case; case 220: if ( (*p) == 9u ) goto tr267; goto tr49; tr88: #line 37 "sam_alignment.rl" { float_beg = p - line.ptr; } goto st55; st55: if ( ++p == pe ) goto _test_eof55; goto case; case 55: #line 1685 "sam_alignment.d" if ( (*p) == 97u ) goto st56; goto tr49; st56: if ( ++p == pe ) goto _test_eof56; goto case; case 56: if ( (*p) == 110u ) goto st220; goto tr49; st57: if ( ++p == pe ) goto _test_eof57; goto case; case 57: if ( (*p) == 58u ) goto st58; goto tr49; st58: if ( ++p == pe ) goto _test_eof58; goto case; case 58: switch( (*p) ) { case 43u: goto tr99; case 45u: goto tr99; default: break; } if ( 48u <= (*p) && (*p) <= 57u ) goto tr100; goto tr49; tr99: #line 27 "sam_alignment.rl" { current_sign = (*p) == '-' ? -1 : 1; } goto st59; st59: if ( ++p == pe ) goto _test_eof59; goto case; case 59: #line 1723 "sam_alignment.d" if ( 48u <= (*p) && (*p) <= 57u ) goto tr100; goto tr49; tr100: #line 28 "sam_alignment.rl" { int_value = 0; } #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st221; st221: if ( ++p == pe ) goto _test_eof221; goto case; case 221: #line 1737 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr270; goto tr49; tr270: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st222; st222: if ( ++p == pe ) goto _test_eof222; goto case; case 222: #line 1751 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr271; goto tr49; tr271: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st223; st223: if ( ++p == pe ) goto _test_eof223; goto case; case 223: #line 1765 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr272; goto tr49; tr272: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st224; st224: if ( ++p == pe ) goto _test_eof224; goto case; case 224: #line 1779 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr273; goto tr49; tr273: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st225; st225: if ( ++p == pe ) goto _test_eof225; goto case; case 225: #line 1793 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr274; goto tr49; tr274: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st226; st226: if ( ++p == pe ) goto _test_eof226; goto case; case 226: #line 1807 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr275; goto tr49; tr275: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st227; st227: if ( ++p == pe ) goto _test_eof227; goto case; case 227: #line 1821 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr276; goto tr49; tr276: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st228; st228: if ( ++p == pe ) goto _test_eof228; goto case; case 228: #line 1835 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr277; goto tr49; tr277: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st229; st229: if ( ++p == pe ) goto _test_eof229; goto case; case 229: #line 1849 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr278; goto tr49; tr278: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st230; st230: if ( ++p == pe ) goto _test_eof230; goto case; case 230: #line 1863 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr279; goto tr49; tr279: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st231; st231: if ( ++p == pe ) goto _test_eof231; goto case; case 231: #line 1877 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr280; goto tr49; tr280: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st232; st232: if ( ++p == pe ) goto _test_eof232; goto case; case 232: #line 1891 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr281; goto tr49; tr281: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st233; st233: if ( ++p == pe ) goto _test_eof233; goto case; case 233: #line 1905 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr282; goto tr49; tr282: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st234; st234: if ( ++p == pe ) goto _test_eof234; goto case; case 234: #line 1919 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr283; goto tr49; tr283: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st235; st235: if ( ++p == pe ) goto _test_eof235; goto case; case 235: #line 1933 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr284; goto tr49; tr284: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st236; st236: if ( ++p == pe ) goto _test_eof236; goto case; case 236: #line 1947 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr285; goto tr49; tr285: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st237; st237: if ( ++p == pe ) goto _test_eof237; goto case; case 237: #line 1961 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; if ( 48u <= (*p) && (*p) <= 57u ) goto tr286; goto tr49; tr286: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st238; st238: if ( ++p == pe ) goto _test_eof238; goto case; case 238: #line 1975 "sam_alignment.d" if ( (*p) == 9u ) goto tr269; goto tr49; tr41: #line 193 "sam_alignment.rl" { sequence_beg = p - line.ptr; } goto st60; st60: if ( ++p == pe ) goto _test_eof60; goto case; case 60: #line 1987 "sam_alignment.d" switch( (*p) ) { case 9u: goto tr101; case 46u: goto st60; case 61u: goto st60; default: break; } if ( (*p) > 90u ) { if ( 97u <= (*p) && (*p) <= 122u ) goto st60; } else if ( (*p) >= 65u ) goto st60; goto tr39; tr38: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st61; st61: if ( ++p == pe ) goto _test_eof61; goto case; case 61: #line 2008 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr103; goto tr34; tr103: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st62; st62: if ( ++p == pe ) goto _test_eof62; goto case; case 62: #line 2022 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr104; goto tr34; tr104: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st63; st63: if ( ++p == pe ) goto _test_eof63; goto case; case 63: #line 2036 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr105; goto tr34; tr105: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st64; st64: if ( ++p == pe ) goto _test_eof64; goto case; case 64: #line 2050 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr106; goto tr34; tr106: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st65; st65: if ( ++p == pe ) goto _test_eof65; goto case; case 65: #line 2064 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr107; goto tr34; tr107: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st66; st66: if ( ++p == pe ) goto _test_eof66; goto case; case 66: #line 2078 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr108; goto tr34; tr108: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st67; st67: if ( ++p == pe ) goto _test_eof67; goto case; case 67: #line 2092 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr109; goto tr34; tr109: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st68; st68: if ( ++p == pe ) goto _test_eof68; goto case; case 68: #line 2106 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr110; goto tr34; tr110: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st69; st69: if ( ++p == pe ) goto _test_eof69; goto case; case 69: #line 2120 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr111; goto tr34; tr111: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st70; st70: if ( ++p == pe ) goto _test_eof70; goto case; case 70: #line 2134 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr112; goto tr34; tr112: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st71; st71: if ( ++p == pe ) goto _test_eof71; goto case; case 71: #line 2148 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr113; goto tr34; tr113: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st72; st72: if ( ++p == pe ) goto _test_eof72; goto case; case 72: #line 2162 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr114; goto tr34; tr114: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st73; st73: if ( ++p == pe ) goto _test_eof73; goto case; case 73: #line 2176 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr115; goto tr34; tr115: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st74; st74: if ( ++p == pe ) goto _test_eof74; goto case; case 74: #line 2190 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr116; goto tr34; tr116: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st75; st75: if ( ++p == pe ) goto _test_eof75; goto case; case 75: #line 2204 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr117; goto tr34; tr117: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st76; st76: if ( ++p == pe ) goto _test_eof76; goto case; case 76: #line 2218 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; if ( 48u <= (*p) && (*p) <= 57u ) goto tr118; goto tr34; tr118: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st77; st77: if ( ++p == pe ) goto _test_eof77; goto case; case 77: #line 2232 "sam_alignment.d" if ( (*p) == 9u ) goto tr37; goto tr34; tr33: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st78; st78: if ( ++p == pe ) goto _test_eof78; goto case; case 78: #line 2244 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr119; goto tr30; tr119: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st79; st79: if ( ++p == pe ) goto _test_eof79; goto case; case 79: #line 2258 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr120; goto tr30; tr120: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st80; st80: if ( ++p == pe ) goto _test_eof80; goto case; case 80: #line 2272 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr121; goto tr30; tr121: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st81; st81: if ( ++p == pe ) goto _test_eof81; goto case; case 81: #line 2286 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr122; goto tr30; tr122: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st82; st82: if ( ++p == pe ) goto _test_eof82; goto case; case 82: #line 2300 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr123; goto tr30; tr123: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st83; st83: if ( ++p == pe ) goto _test_eof83; goto case; case 83: #line 2314 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr124; goto tr30; tr124: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st84; st84: if ( ++p == pe ) goto _test_eof84; goto case; case 84: #line 2328 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr125; goto tr30; tr125: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st85; st85: if ( ++p == pe ) goto _test_eof85; goto case; case 85: #line 2342 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr126; goto tr30; tr126: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st86; st86: if ( ++p == pe ) goto _test_eof86; goto case; case 86: #line 2356 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr127; goto tr30; tr127: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st87; st87: if ( ++p == pe ) goto _test_eof87; goto case; case 87: #line 2370 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr128; goto tr30; tr128: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st88; st88: if ( ++p == pe ) goto _test_eof88; goto case; case 88: #line 2384 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr129; goto tr30; tr129: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st89; st89: if ( ++p == pe ) goto _test_eof89; goto case; case 89: #line 2398 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr130; goto tr30; tr130: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st90; st90: if ( ++p == pe ) goto _test_eof90; goto case; case 90: #line 2412 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr131; goto tr30; tr131: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st91; st91: if ( ++p == pe ) goto _test_eof91; goto case; case 91: #line 2426 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr132; goto tr30; tr132: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st92; st92: if ( ++p == pe ) goto _test_eof92; goto case; case 92: #line 2440 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr133; goto tr30; tr133: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st93; st93: if ( ++p == pe ) goto _test_eof93; goto case; case 93: #line 2454 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; if ( 48u <= (*p) && (*p) <= 57u ) goto tr134; goto tr30; tr134: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st94; st94: if ( ++p == pe ) goto _test_eof94; goto case; case 94: #line 2468 "sam_alignment.d" if ( (*p) == 9u ) goto tr32; goto tr30; st95: if ( ++p == pe ) goto _test_eof95; goto case; case 95: if ( (*p) == 9u ) goto st14; goto tr24; st96: if ( ++p == pe ) goto _test_eof96; goto case; case 96: if ( (*p) == 9u ) goto tr136; goto tr24; tr22: #line 28 "sam_alignment.rl" { int_value = 0; } #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st97; tr156: #line 113 "sam_alignment.rl" { auto op = CigarOperation(cigar_op_len, cigar_op_chr); if (op.is_reference_consuming) end_pos += op.length; buffer.put!CigarOperation(op); { auto ptr = cast(uint*)(buffer.data.ptr + 3 * uint.sizeof); *ptr = (*ptr) + 1; } } #line 28 "sam_alignment.rl" { int_value = 0; } #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st97; st97: if ( ++p == pe ) goto _test_eof97; goto case; case 97: #line 2513 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr137; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr137: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st98; st98: if ( ++p == pe ) goto _test_eof98; goto case; case 98: #line 2539 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr139; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr139: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st99; st99: if ( ++p == pe ) goto _test_eof99; goto case; case 99: #line 2565 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr140; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr140: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st100; st100: if ( ++p == pe ) goto _test_eof100; goto case; case 100: #line 2591 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr141; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr141: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st101; st101: if ( ++p == pe ) goto _test_eof101; goto case; case 101: #line 2617 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr142; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr142: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st102; st102: if ( ++p == pe ) goto _test_eof102; goto case; case 102: #line 2643 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr143; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr143: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st103; st103: if ( ++p == pe ) goto _test_eof103; goto case; case 103: #line 2669 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr144; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr144: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st104; st104: if ( ++p == pe ) goto _test_eof104; goto case; case 104: #line 2695 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr145; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr145: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st105; st105: if ( ++p == pe ) goto _test_eof105; goto case; case 105: #line 2721 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr146; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr146: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st106; st106: if ( ++p == pe ) goto _test_eof106; goto case; case 106: #line 2747 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr147; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr147: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st107; st107: if ( ++p == pe ) goto _test_eof107; goto case; case 107: #line 2773 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr148; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr148: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st108; st108: if ( ++p == pe ) goto _test_eof108; goto case; case 108: #line 2799 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr149; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr149: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st109; st109: if ( ++p == pe ) goto _test_eof109; goto case; case 109: #line 2825 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr150; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr150: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st110; st110: if ( ++p == pe ) goto _test_eof110; goto case; case 110: #line 2851 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr151; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr151: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st111; st111: if ( ++p == pe ) goto _test_eof111; goto case; case 111: #line 2877 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr152; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr152: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st112; st112: if ( ++p == pe ) goto _test_eof112; goto case; case 112: #line 2903 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr153; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr153: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st113; st113: if ( ++p == pe ) goto _test_eof113; goto case; case 113: #line 2929 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) < 72u ) { if ( 48u <= (*p) && (*p) <= 57u ) goto tr154; } else if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else goto tr138; goto tr20; tr154: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st114; st114: if ( ++p == pe ) goto _test_eof114; goto case; case 114: #line 2955 "sam_alignment.d" switch( (*p) ) { case 61u: goto tr138; case 68u: goto tr138; case 80u: goto tr138; case 83u: goto tr138; case 88u: goto tr138; default: break; } if ( (*p) > 73u ) { if ( 77u <= (*p) && (*p) <= 78u ) goto tr138; } else if ( (*p) >= 72u ) goto tr138; goto tr20; tr138: #line 111 "sam_alignment.rl" { cigar_op_len = to!uint(int_value); } #line 112 "sam_alignment.rl" { cigar_op_chr = (*p); } goto st115; st115: if ( ++p == pe ) goto _test_eof115; goto case; case 115: #line 2980 "sam_alignment.d" if ( (*p) == 9u ) goto tr155; if ( 48u <= (*p) && (*p) <= 57u ) goto tr156; goto tr20; tr19: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st116; st116: if ( ++p == pe ) goto _test_eof116; goto case; case 116: #line 2994 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr157; goto tr16; tr157: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st117; st117: if ( ++p == pe ) goto _test_eof117; goto case; case 117: #line 3008 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr158; goto tr16; tr158: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st118; st118: if ( ++p == pe ) goto _test_eof118; goto case; case 118: #line 3022 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr159; goto tr16; tr159: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st119; st119: if ( ++p == pe ) goto _test_eof119; goto case; case 119: #line 3036 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr160; goto tr16; tr160: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st120; st120: if ( ++p == pe ) goto _test_eof120; goto case; case 120: #line 3050 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr161; goto tr16; tr161: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st121; st121: if ( ++p == pe ) goto _test_eof121; goto case; case 121: #line 3064 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr162; goto tr16; tr162: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st122; st122: if ( ++p == pe ) goto _test_eof122; goto case; case 122: #line 3078 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr163; goto tr16; tr163: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st123; st123: if ( ++p == pe ) goto _test_eof123; goto case; case 123: #line 3092 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr164; goto tr16; tr164: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st124; st124: if ( ++p == pe ) goto _test_eof124; goto case; case 124: #line 3106 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr165; goto tr16; tr165: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st125; st125: if ( ++p == pe ) goto _test_eof125; goto case; case 125: #line 3120 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr166; goto tr16; tr166: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st126; st126: if ( ++p == pe ) goto _test_eof126; goto case; case 126: #line 3134 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr167; goto tr16; tr167: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st127; st127: if ( ++p == pe ) goto _test_eof127; goto case; case 127: #line 3148 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr168; goto tr16; tr168: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st128; st128: if ( ++p == pe ) goto _test_eof128; goto case; case 128: #line 3162 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr169; goto tr16; tr169: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st129; st129: if ( ++p == pe ) goto _test_eof129; goto case; case 129: #line 3176 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr170; goto tr16; tr170: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st130; st130: if ( ++p == pe ) goto _test_eof130; goto case; case 130: #line 3190 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr171; goto tr16; tr171: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st131; st131: if ( ++p == pe ) goto _test_eof131; goto case; case 131: #line 3204 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; if ( 48u <= (*p) && (*p) <= 57u ) goto tr172; goto tr16; tr172: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st132; st132: if ( ++p == pe ) goto _test_eof132; goto case; case 132: #line 3218 "sam_alignment.d" if ( (*p) == 9u ) goto tr18; goto tr16; tr15: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st133; st133: if ( ++p == pe ) goto _test_eof133; goto case; case 133: #line 3230 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr173; goto tr12; tr173: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st134; st134: if ( ++p == pe ) goto _test_eof134; goto case; case 134: #line 3244 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr174; goto tr12; tr174: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st135; st135: if ( ++p == pe ) goto _test_eof135; goto case; case 135: #line 3258 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr175; goto tr12; tr175: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st136; st136: if ( ++p == pe ) goto _test_eof136; goto case; case 136: #line 3272 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr176; goto tr12; tr176: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st137; st137: if ( ++p == pe ) goto _test_eof137; goto case; case 137: #line 3286 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr177; goto tr12; tr177: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st138; st138: if ( ++p == pe ) goto _test_eof138; goto case; case 138: #line 3300 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr178; goto tr12; tr178: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st139; st139: if ( ++p == pe ) goto _test_eof139; goto case; case 139: #line 3314 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr179; goto tr12; tr179: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st140; st140: if ( ++p == pe ) goto _test_eof140; goto case; case 140: #line 3328 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr180; goto tr12; tr180: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st141; st141: if ( ++p == pe ) goto _test_eof141; goto case; case 141: #line 3342 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr181; goto tr12; tr181: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st142; st142: if ( ++p == pe ) goto _test_eof142; goto case; case 142: #line 3356 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr182; goto tr12; tr182: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st143; st143: if ( ++p == pe ) goto _test_eof143; goto case; case 143: #line 3370 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr183; goto tr12; tr183: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st144; st144: if ( ++p == pe ) goto _test_eof144; goto case; case 144: #line 3384 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr184; goto tr12; tr184: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st145; st145: if ( ++p == pe ) goto _test_eof145; goto case; case 145: #line 3398 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr185; goto tr12; tr185: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st146; st146: if ( ++p == pe ) goto _test_eof146; goto case; case 146: #line 3412 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr186; goto tr12; tr186: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st147; st147: if ( ++p == pe ) goto _test_eof147; goto case; case 147: #line 3426 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr187; goto tr12; tr187: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st148; st148: if ( ++p == pe ) goto _test_eof148; goto case; case 148: #line 3440 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; if ( 48u <= (*p) && (*p) <= 57u ) goto tr188; goto tr12; tr188: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st149; st149: if ( ++p == pe ) goto _test_eof149; goto case; case 149: #line 3454 "sam_alignment.d" if ( (*p) == 9u ) goto tr14; goto tr12; st150: if ( ++p == pe ) goto _test_eof150; goto case; case 150: if ( (*p) == 9u ) goto st6; goto tr7; tr6: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st151; st151: if ( ++p == pe ) goto _test_eof151; goto case; case 151: #line 3473 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr190; goto tr3; tr190: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st152; st152: if ( ++p == pe ) goto _test_eof152; goto case; case 152: #line 3487 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr191; goto tr3; tr191: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st153; st153: if ( ++p == pe ) goto _test_eof153; goto case; case 153: #line 3501 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr192; goto tr3; tr192: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st154; st154: if ( ++p == pe ) goto _test_eof154; goto case; case 154: #line 3515 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr193; goto tr3; tr193: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st155; st155: if ( ++p == pe ) goto _test_eof155; goto case; case 155: #line 3529 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr194; goto tr3; tr194: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st156; st156: if ( ++p == pe ) goto _test_eof156; goto case; case 156: #line 3543 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr195; goto tr3; tr195: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st157; st157: if ( ++p == pe ) goto _test_eof157; goto case; case 157: #line 3557 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr196; goto tr3; tr196: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st158; st158: if ( ++p == pe ) goto _test_eof158; goto case; case 158: #line 3571 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr197; goto tr3; tr197: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st159; st159: if ( ++p == pe ) goto _test_eof159; goto case; case 159: #line 3585 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr198; goto tr3; tr198: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st160; st160: if ( ++p == pe ) goto _test_eof160; goto case; case 160: #line 3599 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr199; goto tr3; tr199: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st161; st161: if ( ++p == pe ) goto _test_eof161; goto case; case 161: #line 3613 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr200; goto tr3; tr200: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st162; st162: if ( ++p == pe ) goto _test_eof162; goto case; case 162: #line 3627 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr201; goto tr3; tr201: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st163; st163: if ( ++p == pe ) goto _test_eof163; goto case; case 163: #line 3641 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr202; goto tr3; tr202: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st164; st164: if ( ++p == pe ) goto _test_eof164; goto case; case 164: #line 3655 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr203; goto tr3; tr203: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st165; st165: if ( ++p == pe ) goto _test_eof165; goto case; case 165: #line 3669 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr204; goto tr3; tr204: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st166; st166: if ( ++p == pe ) goto _test_eof166; goto case; case 166: #line 3683 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; if ( 48u <= (*p) && (*p) <= 57u ) goto tr205; goto tr3; tr205: #line 29 "sam_alignment.rl" { int_value *= 10; int_value += (*p) - '0'; } goto st167; st167: if ( ++p == pe ) goto _test_eof167; goto case; case 167: #line 3697 "sam_alignment.d" if ( (*p) == 9u ) goto tr5; goto tr3; tr2: #line 48 "sam_alignment.rl" { read_name_beg = p - line.ptr; } goto st168; st168: if ( ++p == pe ) goto _test_eof168; goto case; case 168: #line 3709 "sam_alignment.d" if ( (*p) == 9u ) goto tr206; if ( (*p) > 63u ) { if ( 65u <= (*p) && (*p) <= 126u ) goto st168; } else if ( (*p) >= 33u ) goto st168; goto tr0; st169: if ( ++p == pe ) goto _test_eof169; goto case; case 169: if ( (*p) == 9u ) goto tr209; goto st169; tr209: #line 51 "sam_alignment.rl" { p--; {if (true) goto st181;} } goto st239; st239: if ( ++p == pe ) goto _test_eof239; goto case; case 239: #line 3733 "sam_alignment.d" goto st0; st170: if ( ++p == pe ) goto _test_eof170; goto case; case 170: if ( (*p) == 9u ) goto tr211; goto st170; tr211: #line 59 "sam_alignment.rl" { p--; {if (true) goto st182;} } goto st240; st240: if ( ++p == pe ) goto _test_eof240; goto case; case 240: #line 3750 "sam_alignment.d" goto st0; st171: if ( ++p == pe ) goto _test_eof171; goto case; case 171: if ( (*p) == 9u ) goto tr213; goto st171; tr213: #line 68 "sam_alignment.rl" { p--; {if (true) goto st183;} } goto st241; st241: if ( ++p == pe ) goto _test_eof241; goto case; case 241: #line 3767 "sam_alignment.d" goto st0; st172: if ( ++p == pe ) goto _test_eof172; goto case; case 172: if ( (*p) == 9u ) goto tr215; goto st172; tr215: #line 76 "sam_alignment.rl" { p--; {if (true) goto st184;} } goto st242; st242: if ( ++p == pe ) goto _test_eof242; goto case; case 242: #line 3784 "sam_alignment.d" goto st0; st173: if ( ++p == pe ) goto _test_eof173; goto case; case 173: if ( (*p) == 9u ) goto tr217; goto st173; tr217: #line 82 "sam_alignment.rl" { p--; {if (true) goto st185;} } goto st243; st243: if ( ++p == pe ) goto _test_eof243; goto case; case 243: #line 3801 "sam_alignment.d" goto st0; st174: if ( ++p == pe ) goto _test_eof174; goto case; case 174: if ( (*p) == 9u ) goto tr219; goto st174; tr219: #line 131 "sam_alignment.rl" { p--; {if (true) goto st186;} } goto st244; st244: if ( ++p == pe ) goto _test_eof244; goto case; case 244: #line 3818 "sam_alignment.d" goto st0; st175: if ( ++p == pe ) goto _test_eof175; goto case; case 175: if ( (*p) == 9u ) goto tr221; goto st175; tr221: #line 163 "sam_alignment.rl" { p--; {if (true) goto st187;} } goto st245; st245: if ( ++p == pe ) goto _test_eof245; goto case; case 245: #line 3835 "sam_alignment.d" goto st0; st176: if ( ++p == pe ) goto _test_eof176; goto case; case 176: if ( (*p) == 9u ) goto tr223; goto st176; tr223: #line 176 "sam_alignment.rl" { p--; {if (true) goto st188;} } goto st246; st246: if ( ++p == pe ) goto _test_eof246; goto case; case 246: #line 3852 "sam_alignment.d" goto st0; st177: if ( ++p == pe ) goto _test_eof177; goto case; case 177: if ( (*p) == 9u ) goto tr225; goto st177; tr225: #line 188 "sam_alignment.rl" { p--; {if (true) goto st189;} } goto st247; st247: if ( ++p == pe ) goto _test_eof247; goto case; case 247: #line 3869 "sam_alignment.d" goto st0; st178: if ( ++p == pe ) goto _test_eof178; goto case; case 178: if ( (*p) == 9u ) goto tr227; goto st178; tr227: #line 221 "sam_alignment.rl" { p--; {if (true) goto st190;} } goto st248; st248: if ( ++p == pe ) goto _test_eof248; goto case; case 248: #line 3886 "sam_alignment.d" goto st0; st179: if ( ++p == pe ) goto _test_eof179; goto case; case 179: if ( (*p) == 9u ) goto tr229; goto st179; tr229: #line 251 "sam_alignment.rl" { p--; {if (true) goto st251;} } goto st249; st249: if ( ++p == pe ) goto _test_eof249; goto case; case 249: #line 3903 "sam_alignment.d" goto st0; st180: if ( ++p == pe ) goto _test_eof180; goto case; case 180: if ( (*p) == 9u ) goto tr231; goto st180; tr231: #line 408 "sam_alignment.rl" { p--; {if (true) goto st251;} } goto st250; st250: if ( ++p == pe ) goto _test_eof250; goto case; case 250: #line 3920 "sam_alignment.d" goto st0; st181: if ( ++p == pe ) goto _test_eof181; goto case; case 181: if ( (*p) == 9u ) goto st2; goto st0; st182: if ( ++p == pe ) goto _test_eof182; goto case; case 182: if ( (*p) == 9u ) goto st4; goto st0; st183: if ( ++p == pe ) goto _test_eof183; goto case; case 183: if ( (*p) == 9u ) goto st6; goto st0; st184: if ( ++p == pe ) goto _test_eof184; goto case; case 184: if ( (*p) == 9u ) goto st8; goto st0; st185: if ( ++p == pe ) goto _test_eof185; goto case; case 185: if ( (*p) == 9u ) goto tr235; goto st0; st186: if ( ++p == pe ) goto _test_eof186; goto case; case 186: if ( (*p) == 9u ) goto tr23; goto st0; st187: if ( ++p == pe ) goto _test_eof187; goto case; case 187: if ( (*p) == 9u ) goto st14; goto st0; st188: if ( ++p == pe ) goto _test_eof188; goto case; case 188: if ( (*p) == 9u ) goto st16; goto st0; st189: if ( ++p == pe ) goto _test_eof189; goto case; case 189: if ( (*p) == 9u ) goto st19; goto st0; st190: if ( ++p == pe ) goto _test_eof190; goto case; case 190: if ( (*p) == 9u ) goto st21; goto st0; st251: if ( ++p == pe ) goto _test_eof251; goto case; case 251: if ( (*p) == 9u ) goto st22; goto st0; default: break; } _test_eof2: cs = 2; goto _test_eof; _test_eof3: cs = 3; goto _test_eof; _test_eof4: cs = 4; goto _test_eof; _test_eof5: cs = 5; goto _test_eof; _test_eof6: cs = 6; goto _test_eof; _test_eof7: cs = 7; goto _test_eof; _test_eof8: cs = 8; goto _test_eof; _test_eof9: cs = 9; goto _test_eof; _test_eof10: cs = 10; goto _test_eof; _test_eof11: cs = 11; goto _test_eof; _test_eof12: cs = 12; goto _test_eof; _test_eof13: cs = 13; goto _test_eof; _test_eof14: cs = 14; goto _test_eof; _test_eof15: cs = 15; goto _test_eof; _test_eof16: cs = 16; goto _test_eof; _test_eof17: cs = 17; goto _test_eof; _test_eof18: cs = 18; goto _test_eof; _test_eof19: cs = 19; goto _test_eof; _test_eof20: cs = 20; goto _test_eof; _test_eof21: cs = 21; goto _test_eof; _test_eof191: cs = 191; goto _test_eof; _test_eof22: cs = 22; goto _test_eof; _test_eof23: cs = 23; goto _test_eof; _test_eof24: cs = 24; goto _test_eof; _test_eof25: cs = 25; goto _test_eof; _test_eof26: cs = 26; goto _test_eof; _test_eof27: cs = 27; goto _test_eof; _test_eof192: cs = 192; goto _test_eof; _test_eof28: cs = 28; goto _test_eof; _test_eof29: cs = 29; goto _test_eof; _test_eof30: cs = 30; goto _test_eof; _test_eof31: cs = 31; goto _test_eof; _test_eof32: cs = 32; goto _test_eof; _test_eof193: cs = 193; goto _test_eof; _test_eof194: cs = 194; goto _test_eof; _test_eof195: cs = 195; goto _test_eof; _test_eof196: cs = 196; goto _test_eof; _test_eof197: cs = 197; goto _test_eof; _test_eof198: cs = 198; goto _test_eof; _test_eof199: cs = 199; goto _test_eof; _test_eof200: cs = 200; goto _test_eof; _test_eof201: cs = 201; goto _test_eof; _test_eof202: cs = 202; goto _test_eof; _test_eof203: cs = 203; goto _test_eof; _test_eof204: cs = 204; goto _test_eof; _test_eof205: cs = 205; goto _test_eof; _test_eof206: cs = 206; goto _test_eof; _test_eof207: cs = 207; goto _test_eof; _test_eof208: cs = 208; goto _test_eof; _test_eof209: cs = 209; goto _test_eof; _test_eof210: cs = 210; goto _test_eof; _test_eof33: cs = 33; goto _test_eof; _test_eof34: cs = 34; goto _test_eof; _test_eof35: cs = 35; goto _test_eof; _test_eof36: cs = 36; goto _test_eof; _test_eof211: cs = 211; goto _test_eof; _test_eof37: cs = 37; goto _test_eof; _test_eof38: cs = 38; goto _test_eof; _test_eof212: cs = 212; goto _test_eof; _test_eof213: cs = 213; goto _test_eof; _test_eof39: cs = 39; goto _test_eof; _test_eof40: cs = 40; goto _test_eof; _test_eof214: cs = 214; goto _test_eof; _test_eof41: cs = 41; goto _test_eof; _test_eof42: cs = 42; goto _test_eof; _test_eof43: cs = 43; goto _test_eof; _test_eof44: cs = 44; goto _test_eof; _test_eof215: cs = 215; goto _test_eof; _test_eof45: cs = 45; goto _test_eof; _test_eof46: cs = 46; goto _test_eof; _test_eof216: cs = 216; goto _test_eof; _test_eof47: cs = 47; goto _test_eof; _test_eof48: cs = 48; goto _test_eof; _test_eof49: cs = 49; goto _test_eof; _test_eof50: cs = 50; goto _test_eof; _test_eof217: cs = 217; goto _test_eof; _test_eof51: cs = 51; goto _test_eof; _test_eof52: cs = 52; goto _test_eof; _test_eof218: cs = 218; goto _test_eof; _test_eof219: cs = 219; goto _test_eof; _test_eof53: cs = 53; goto _test_eof; _test_eof54: cs = 54; goto _test_eof; _test_eof220: cs = 220; goto _test_eof; _test_eof55: cs = 55; goto _test_eof; _test_eof56: cs = 56; goto _test_eof; _test_eof57: cs = 57; goto _test_eof; _test_eof58: cs = 58; goto _test_eof; _test_eof59: cs = 59; goto _test_eof; _test_eof221: cs = 221; goto _test_eof; _test_eof222: cs = 222; goto _test_eof; _test_eof223: cs = 223; goto _test_eof; _test_eof224: cs = 224; goto _test_eof; _test_eof225: cs = 225; goto _test_eof; _test_eof226: cs = 226; goto _test_eof; _test_eof227: cs = 227; goto _test_eof; _test_eof228: cs = 228; goto _test_eof; _test_eof229: cs = 229; goto _test_eof; _test_eof230: cs = 230; goto _test_eof; _test_eof231: cs = 231; goto _test_eof; _test_eof232: cs = 232; goto _test_eof; _test_eof233: cs = 233; goto _test_eof; _test_eof234: cs = 234; goto _test_eof; _test_eof235: cs = 235; goto _test_eof; _test_eof236: cs = 236; goto _test_eof; _test_eof237: cs = 237; goto _test_eof; _test_eof238: cs = 238; goto _test_eof; _test_eof60: cs = 60; goto _test_eof; _test_eof61: cs = 61; goto _test_eof; _test_eof62: cs = 62; goto _test_eof; _test_eof63: cs = 63; goto _test_eof; _test_eof64: cs = 64; goto _test_eof; _test_eof65: cs = 65; goto _test_eof; _test_eof66: cs = 66; goto _test_eof; _test_eof67: cs = 67; goto _test_eof; _test_eof68: cs = 68; goto _test_eof; _test_eof69: cs = 69; goto _test_eof; _test_eof70: cs = 70; goto _test_eof; _test_eof71: cs = 71; goto _test_eof; _test_eof72: cs = 72; goto _test_eof; _test_eof73: cs = 73; goto _test_eof; _test_eof74: cs = 74; goto _test_eof; _test_eof75: cs = 75; goto _test_eof; _test_eof76: cs = 76; goto _test_eof; _test_eof77: cs = 77; goto _test_eof; _test_eof78: cs = 78; goto _test_eof; _test_eof79: cs = 79; goto _test_eof; _test_eof80: cs = 80; goto _test_eof; _test_eof81: cs = 81; goto _test_eof; _test_eof82: cs = 82; goto _test_eof; _test_eof83: cs = 83; goto _test_eof; _test_eof84: cs = 84; goto _test_eof; _test_eof85: cs = 85; goto _test_eof; _test_eof86: cs = 86; goto _test_eof; _test_eof87: cs = 87; goto _test_eof; _test_eof88: cs = 88; goto _test_eof; _test_eof89: cs = 89; goto _test_eof; _test_eof90: cs = 90; goto _test_eof; _test_eof91: cs = 91; goto _test_eof; _test_eof92: cs = 92; goto _test_eof; _test_eof93: cs = 93; goto _test_eof; _test_eof94: cs = 94; goto _test_eof; _test_eof95: cs = 95; goto _test_eof; _test_eof96: cs = 96; goto _test_eof; _test_eof97: cs = 97; goto _test_eof; _test_eof98: cs = 98; goto _test_eof; _test_eof99: cs = 99; goto _test_eof; _test_eof100: cs = 100; goto _test_eof; _test_eof101: cs = 101; goto _test_eof; _test_eof102: cs = 102; goto _test_eof; _test_eof103: cs = 103; goto _test_eof; _test_eof104: cs = 104; goto _test_eof; _test_eof105: cs = 105; goto _test_eof; _test_eof106: cs = 106; goto _test_eof; _test_eof107: cs = 107; goto _test_eof; _test_eof108: cs = 108; goto _test_eof; _test_eof109: cs = 109; goto _test_eof; _test_eof110: cs = 110; goto _test_eof; _test_eof111: cs = 111; goto _test_eof; _test_eof112: cs = 112; goto _test_eof; _test_eof113: cs = 113; goto _test_eof; _test_eof114: cs = 114; goto _test_eof; _test_eof115: cs = 115; goto _test_eof; _test_eof116: cs = 116; goto _test_eof; _test_eof117: cs = 117; goto _test_eof; _test_eof118: cs = 118; goto _test_eof; _test_eof119: cs = 119; goto _test_eof; _test_eof120: cs = 120; goto _test_eof; _test_eof121: cs = 121; goto _test_eof; _test_eof122: cs = 122; goto _test_eof; _test_eof123: cs = 123; goto _test_eof; _test_eof124: cs = 124; goto _test_eof; _test_eof125: cs = 125; goto _test_eof; _test_eof126: cs = 126; goto _test_eof; _test_eof127: cs = 127; goto _test_eof; _test_eof128: cs = 128; goto _test_eof; _test_eof129: cs = 129; goto _test_eof; _test_eof130: cs = 130; goto _test_eof; _test_eof131: cs = 131; goto _test_eof; _test_eof132: cs = 132; goto _test_eof; _test_eof133: cs = 133; goto _test_eof; _test_eof134: cs = 134; goto _test_eof; _test_eof135: cs = 135; goto _test_eof; _test_eof136: cs = 136; goto _test_eof; _test_eof137: cs = 137; goto _test_eof; _test_eof138: cs = 138; goto _test_eof; _test_eof139: cs = 139; goto _test_eof; _test_eof140: cs = 140; goto _test_eof; _test_eof141: cs = 141; goto _test_eof; _test_eof142: cs = 142; goto _test_eof; _test_eof143: cs = 143; goto _test_eof; _test_eof144: cs = 144; goto _test_eof; _test_eof145: cs = 145; goto _test_eof; _test_eof146: cs = 146; goto _test_eof; _test_eof147: cs = 147; goto _test_eof; _test_eof148: cs = 148; goto _test_eof; _test_eof149: cs = 149; goto _test_eof; _test_eof150: cs = 150; goto _test_eof; _test_eof151: cs = 151; goto _test_eof; _test_eof152: cs = 152; goto _test_eof; _test_eof153: cs = 153; goto _test_eof; _test_eof154: cs = 154; goto _test_eof; _test_eof155: cs = 155; goto _test_eof; _test_eof156: cs = 156; goto _test_eof; _test_eof157: cs = 157; goto _test_eof; _test_eof158: cs = 158; goto _test_eof; _test_eof159: cs = 159; goto _test_eof; _test_eof160: cs = 160; goto _test_eof; _test_eof161: cs = 161; goto _test_eof; _test_eof162: cs = 162; goto _test_eof; _test_eof163: cs = 163; goto _test_eof; _test_eof164: cs = 164; goto _test_eof; _test_eof165: cs = 165; goto _test_eof; _test_eof166: cs = 166; goto _test_eof; _test_eof167: cs = 167; goto _test_eof; _test_eof168: cs = 168; goto _test_eof; _test_eof169: cs = 169; goto _test_eof; _test_eof239: cs = 239; goto _test_eof; _test_eof170: cs = 170; goto _test_eof; _test_eof240: cs = 240; goto _test_eof; _test_eof171: cs = 171; goto _test_eof; _test_eof241: cs = 241; goto _test_eof; _test_eof172: cs = 172; goto _test_eof; _test_eof242: cs = 242; goto _test_eof; _test_eof173: cs = 173; goto _test_eof; _test_eof243: cs = 243; goto _test_eof; _test_eof174: cs = 174; goto _test_eof; _test_eof244: cs = 244; goto _test_eof; _test_eof175: cs = 175; goto _test_eof; _test_eof245: cs = 245; goto _test_eof; _test_eof176: cs = 176; goto _test_eof; _test_eof246: cs = 246; goto _test_eof; _test_eof177: cs = 177; goto _test_eof; _test_eof247: cs = 247; goto _test_eof; _test_eof178: cs = 178; goto _test_eof; _test_eof248: cs = 248; goto _test_eof; _test_eof179: cs = 179; goto _test_eof; _test_eof249: cs = 249; goto _test_eof; _test_eof180: cs = 180; goto _test_eof; _test_eof250: cs = 250; goto _test_eof; _test_eof181: cs = 181; goto _test_eof; _test_eof182: cs = 182; goto _test_eof; _test_eof183: cs = 183; goto _test_eof; _test_eof184: cs = 184; goto _test_eof; _test_eof185: cs = 185; goto _test_eof; _test_eof186: cs = 186; goto _test_eof; _test_eof187: cs = 187; goto _test_eof; _test_eof188: cs = 188; goto _test_eof; _test_eof189: cs = 189; goto _test_eof; _test_eof190: cs = 190; goto _test_eof; _test_eof251: cs = 251; goto _test_eof; _test_eof: {} if ( p == eof ) { switch ( cs ) { case 1: case 168: #line 50 "sam_alignment.rl" { p--; {if (true) goto st169;} } break; case 2: case 3: case 151: case 152: case 153: case 154: case 155: case 156: case 157: case 158: case 159: case 160: case 161: case 162: case 163: case 164: case 165: case 166: case 167: #line 58 "sam_alignment.rl" { p--; {if (true) goto st170;} } break; case 4: case 5: case 150: #line 67 "sam_alignment.rl" { p--; {if (true) goto st171;} } break; case 6: case 7: case 133: case 134: case 135: case 136: case 137: case 138: case 139: case 140: case 141: case 142: case 143: case 144: case 145: case 146: case 147: case 148: case 149: #line 75 "sam_alignment.rl" { p--; {if (true) goto st172;} } break; case 8: case 9: case 116: case 117: case 118: case 119: case 120: case 121: case 122: case 123: case 124: case 125: case 126: case 127: case 128: case 129: case 130: case 131: case 132: #line 81 "sam_alignment.rl" { p--; {if (true) goto st173;} } break; case 10: case 11: case 97: case 98: case 99: case 100: case 101: case 102: case 103: case 104: case 105: case 106: case 107: case 108: case 109: case 110: case 111: case 112: case 113: case 114: case 115: #line 124 "sam_alignment.rl" { auto ptr = cast(uint*)(buffer.data.ptr + 3 * uint.sizeof); *ptr = (*ptr) & 0xFFFF0000; buffer.shrink(rollback_size); end_pos = pos + 1; p--; {if (true) goto st174;} } break; case 12: case 13: case 95: case 96: #line 162 "sam_alignment.rl" { p--; {if (true) goto st175;} } break; case 14: case 15: case 78: case 79: case 80: case 81: case 82: case 83: case 84: case 85: case 86: case 87: case 88: case 89: case 90: case 91: case 92: case 93: case 94: #line 175 "sam_alignment.rl" { p--; {if (true) goto st176;} } break; case 16: case 17: case 18: case 61: case 62: case 63: case 64: case 65: case 66: case 67: case 68: case 69: case 70: case 71: case 72: case 73: case 74: case 75: case 76: case 77: #line 187 "sam_alignment.rl" { p--; {if (true) goto st177;} } break; case 19: case 20: case 60: #line 217 "sam_alignment.rl" { rollback_size = buffer.length; p--; {if (true) goto st178;} } break; case 21: #line 243 "sam_alignment.rl" { buffer.shrink(rollback_size); for (size_t i = 0; i < l_seq; ++i) buffer.putUnsafe!ubyte(0xFF); rollback_size = buffer.length; p--; {if (true) goto st179;} } break; case 25: case 26: case 27: case 28: case 29: case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: case 58: case 59: #line 403 "sam_alignment.rl" { buffer.shrink(rollback_size); p--; {if (true) goto st180;} } break; case 192: #line 410 "sam_alignment.rl" { rollback_size = buffer.length; } break; case 191: #line 236 "sam_alignment.rl" { // '*' may correspond either to a one-base long sequence // or to absence of information if (quals_length == 1 && quals_last_char == '*' && l_seq == 0) buffer.shrink(rollback_size); } #line 253 "sam_alignment.rl" { if (buffer.length - rollback_size != l_seq) { buffer.shrink(rollback_size); for (size_t i = 0; i < l_seq; ++i) buffer.putUnsafe!ubyte(0xFF); } rollback_size = buffer.length; } break; case 216: #line 326 "sam_alignment.rl" { { auto data = cast(ubyte[])(line[tagvalue_beg .. p - line.ptr]); buffer.capacity = buffer.length + 4 + data.length; buffer.putUnsafe(tag_key); buffer.putUnsafe!char('Z'); buffer.putUnsafe(data); buffer.putUnsafe!ubyte(0); } } #line 410 "sam_alignment.rl" { rollback_size = buffer.length; } break; case 215: #line 337 "sam_alignment.rl" { { auto data = cast(ubyte[])(line[tagvalue_beg .. p - line.ptr]); buffer.capacity = buffer.length + 4 + data.length; buffer.putUnsafe(tag_key); buffer.putUnsafe!char('H'); buffer.putUnsafe(data); buffer.putUnsafe!ubyte(0); } } #line 410 "sam_alignment.rl" { rollback_size = buffer.length; } break; case 221: case 222: case 223: case 224: case 225: case 226: case 227: case 228: case 229: case 230: case 231: case 232: case 233: case 234: case 235: case 236: case 237: case 238: #line 30 "sam_alignment.rl" { int_value *= current_sign; current_sign = 1; } #line 285 "sam_alignment.rl" { buffer.capacity = buffer.length + 7; buffer.putUnsafe(tag_key); if (int_value < 0) { if (int_value >= byte.min) { buffer.putUnsafe!char('c'); buffer.putUnsafe(cast(byte)int_value); } else if (int_value >= short.min) { buffer.putUnsafe!char('s'); buffer.putUnsafe(cast(short)int_value); } else if (int_value >= int.min) { buffer.putUnsafe!char('i'); buffer.putUnsafe(cast(int)int_value); } else { throw new Exception("integer out of range"); } } else { if (int_value <= ubyte.max) { buffer.putUnsafe!char('C'); buffer.putUnsafe(cast(ubyte)int_value); } else if (int_value <= ushort.max) { buffer.putUnsafe!char('S'); buffer.putUnsafe(cast(ushort)int_value); } else if (int_value <= uint.max) { buffer.putUnsafe!char('I'); buffer.putUnsafe(cast(uint)int_value); } else { throw new Exception("integer out of range"); } } } #line 410 "sam_alignment.rl" { rollback_size = buffer.length; } break; case 193: case 194: case 195: case 196: case 197: case 198: case 199: case 200: case 201: case 202: case 203: case 204: case 205: case 206: case 207: case 208: case 209: case 210: #line 30 "sam_alignment.rl" { int_value *= current_sign; current_sign = 1; } #line 362 "sam_alignment.rl" { // here, we assume that compiler is smart enough to move switch out of loop. switch (arraytype) { case 'c': buffer.put(to!byte(int_value)); break; case 'C': buffer.put(to!ubyte(int_value)); break; case 's': buffer.put(to!short(int_value)); break; case 'S': buffer.put(to!ushort(int_value)); break; case 'i': buffer.put(to!int(int_value)); break; case 'I': buffer.put(to!uint(int_value)); break; default: assert(0); } { auto ptr = cast(uint*)(buffer.data.ptr + tag_array_length_offset); ++*ptr; } } #line 410 "sam_alignment.rl" { rollback_size = buffer.length; } break; case 217: case 218: case 219: case 220: #line 38 "sam_alignment.rl" { float_value = to!float(line[float_beg .. p - line.ptr]); } #line 319 "sam_alignment.rl" { buffer.capacity = buffer.length + 7; buffer.putUnsafe(tag_key); buffer.putUnsafe!char('f'); buffer.putUnsafe!float(float_value); } #line 410 "sam_alignment.rl" { rollback_size = buffer.length; } break; case 211: case 212: case 213: case 214: #line 38 "sam_alignment.rl" { float_value = to!float(line[float_beg .. p - line.ptr]); } #line 379 "sam_alignment.rl" { buffer.put!float(float_value); { auto ptr = cast(uint*)(buffer.data.ptr + tag_array_length_offset); ++*ptr; } } #line 410 "sam_alignment.rl" { rollback_size = buffer.length; } break; #line 4659 "sam_alignment.d" default: break; } } _out: {} } #line 481 "sam_alignment.rl" BamRead read; read.raw_data = buffer.data[]; return read; } unittest { import std.algorithm; import std.math; auto line = "ERR016155.15021091\t185\t20\t60033\t25\t66S35M\t=\t60033\t0\tAGAAAAAACTGGAAGTTAATAGAGTGGTGACTCAGATCCAGTGGTGGAAGGGTAAGGGATCTTGGAACCCTATAGAGTTGCTGTGTGCCAGGGCCAGATCC\t#####################################################################################################\tX0:i:1\tX1:i:0\tXC:i:35\tMD:Z:17A8A8\tRG:Z:ERR016155\tAM:i:0\tNM:i:2\tSM:i:25\tXT:A:U\tBQ:Z:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\tY0:B:c,1,2,3\tY1:B:f,13.263,-3.1415,52.63461"; auto header = new SamHeader("@SQ\tSN:20\tLN:1234567"); auto alignment = parseAlignmentLine(line, header); assert(alignment.name == "ERR016155.15021091"); assert(equal(alignment.sequence(), "AGAAAAAACTGGAAGTTAATAGAGTGGTGACTCAGATCCAGTGGTGGAAGGGTAAGGGATCTTGGAACCCTATAGAGTTGCTGTGTGCCAGGGCCAGATCC")); assert(alignment.cigarString() == "66S35M"); assert(alignment.flag == 185); assert(alignment.position == 60032); assert(alignment.mapping_quality == 25); assert(alignment.mate_position == 60032); assert(alignment.ref_id == 0); assert(alignment.mate_ref_id == 0); assert(to!ubyte(alignment["AM"]) == 0); assert(to!ubyte(alignment["SM"]) == 25); assert(to!string(alignment["MD"]) == "17A8A8"); assert(equal(to!(byte[])(alignment["Y0"]), [1, 2, 3])); assert(equal!approxEqual(to!(float[])(alignment["Y1"]), [13.263, -3.1415, 52.63461])); assert(to!char(alignment["XT"]) == 'U'); import bio.std.hts.bam.reference; auto info = ReferenceSequenceInfo("20", 1234567); auto invalid_cigar_string = "1\t100\t20\t50000\t30\tMZABC\t=\t50000\t0\tACGT\t####"; alignment = parseAlignmentLine(invalid_cigar_string, header); assert(equal(alignment.sequence(), "ACGT")); auto invalid_tag_and_qual = "2\t100\t20\t5\t40\t27M30X5D\t=\t3\t10\tACT\t !\n\tX1:i:7\tX3:i:zzz\tX4:i:5"; alignment = parseAlignmentLine(invalid_tag_and_qual, header); assert(alignment.base_qualities == [255, 255, 255]); // i.e. invalid assert(to!ubyte(alignment["X1"]) == 7); assert(alignment["X3"].is_nothing); assert(to!ubyte(alignment["X4"]) == 5); }
D
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.0 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ module vtkVector3shortT; static import vtkd_im; static import core.stdc.config; static import std.conv; static import std.string; static import std.conv; static import std.string; static import vtkShortTuple3TN; class vtkVector3shortT : vtkShortTuple3TN.vtkShortTuple3TN { private void* swigCPtr; public this(void* cObject, bool ownCObject) { super(vtkd_im.vtkVector3shortT_Upcast(cObject), ownCObject); swigCPtr = cObject; } public static void* swigGetCPtr(vtkVector3shortT obj) { return (obj is null) ? null : obj.swigCPtr; } mixin vtkd_im.SwigOperatorDefinitions; ~this() { dispose(); } public override void dispose() { synchronized(this) { if (swigCPtr !is null) { if (swigCMemOwn) { swigCMemOwn = false; vtkd_im.delete_vtkVector3shortT(cast(void*)swigCPtr); } swigCPtr = null; super.dispose(); } } } public this() { this(vtkd_im.new_vtkVector3shortT__SWIG_0(), true); } public this(short scalar) { this(vtkd_im.new_vtkVector3shortT__SWIG_1(scalar), true); } public this(short* init) { this(vtkd_im.new_vtkVector3shortT__SWIG_2(cast(void*)init), true); } public short SquaredNorm() const { auto ret = vtkd_im.vtkVector3shortT_SquaredNorm(cast(void*)swigCPtr); return ret; } public double Norm() const { auto ret = vtkd_im.vtkVector3shortT_Norm(cast(void*)swigCPtr); return ret; } public double Normalize() { auto ret = vtkd_im.vtkVector3shortT_Normalize(cast(void*)swigCPtr); return ret; } public vtkVector3shortT Normalized() const { vtkVector3shortT ret = new vtkVector3shortT(vtkd_im.vtkVector3shortT_Normalized(cast(void*)swigCPtr), true); return ret; } public short Dot(vtkVector3shortT other) const { auto ret = vtkd_im.vtkVector3shortT_Dot(cast(void*)swigCPtr, vtkVector3shortT.swigGetCPtr(other)); if (vtkd_im.SwigPendingException.isPending) throw vtkd_im.SwigPendingException.retrieve(); return ret; } }
D
/******************************************************************************* * Copyright (c) 2007, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation * Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation * - bug fix for bug 187189, 182800, 215069 * Port to the D programming language: * Frank Benoit <benoit@tionex.de> *******************************************************************************/ module dwtx.jface.viewers.SWTFocusCellManager; import dwtx.jface.viewers.CellNavigationStrategy; import dwtx.jface.viewers.ColumnViewer; import dwtx.jface.viewers.ViewerCell; import dwtx.jface.viewers.ViewerRow; import dwtx.jface.viewers.FocusCellHighlighter; import dwtx.jface.viewers.Viewer; import dwtx.jface.viewers.ISelectionChangedListener; import dwtx.jface.viewers.SelectionChangedEvent; import dwt.DWT; import dwt.events.DisposeEvent; import dwt.events.DisposeListener; import dwt.graphics.Point; import dwt.widgets.Event; import dwt.widgets.Listener; import dwtx.core.runtime.Assert; /** * This class is responsible to provide cell management base features for the * DWT-Controls {@link dwt.widgets.Table} and * {@link dwt.widgets.Tree}. * * @since 3.3 * */ abstract class SWTFocusCellManager { private CellNavigationStrategy navigationStrategy; private ColumnViewer viewer; private ViewerCell focusCell; private FocusCellHighlighter cellHighlighter; private DisposeListener itemDeletionListener; /** * @param viewer * @param focusDrawingDelegate * @param navigationDelegate */ public this(ColumnViewer viewer, FocusCellHighlighter focusDrawingDelegate, CellNavigationStrategy navigationDelegate) { itemDeletionListener = new class DisposeListener { public void widgetDisposed(DisposeEvent e) { setFocusCell(null); } }; this.viewer = viewer; this.cellHighlighter = focusDrawingDelegate; this.navigationStrategy = navigationDelegate; hookListener(viewer); } /** * This method is called by the framework to initialize this cell manager. */ void init() { this.cellHighlighter.init_package(); this.navigationStrategy.init_package(); } private void handleMouseDown(Event event) { ViewerCell cell = viewer.getCell(new Point(event.x, event.y)); if (cell !is null) { if (!cell.opEquals(focusCell)) { setFocusCell(cell); } } } private void handleKeyDown(Event event) { ViewerCell tmp = null; if (navigationStrategy.isCollapseEvent(viewer, focusCell, event)) { navigationStrategy.collapse(viewer, focusCell, event); } else if (navigationStrategy.isExpandEvent(viewer, focusCell, event)) { navigationStrategy.expand(viewer, focusCell, event); } else if (navigationStrategy.isNavigationEvent(viewer, event)) { tmp = navigationStrategy.findSelectedCell(viewer, focusCell, event); if (tmp !is null) { if (!tmp.opEquals(focusCell)) { setFocusCell(tmp); } } } if (navigationStrategy.shouldCancelEvent(viewer, event)) { event.doit = false; } } private void handleSelection(Event event) { if ((event.detail & DWT.CHECK) is 0 && focusCell !is null && focusCell.getItem() !is event.item && event.item !is null ) { ViewerRow row = viewer.getViewerRowFromItem_package(event.item); Assert .isNotNull(row, "Internal Structure invalid. Row item has no row ViewerRow assigned"); //$NON-NLS-1$ ViewerCell tmp = row.getCell(focusCell.getColumnIndex()); if (!focusCell.opEquals(tmp)) { setFocusCell(tmp); } } } private void handleFocusIn(Event event) { if (focusCell is null) { setFocusCell(getInitialFocusCell()); } } abstract ViewerCell getInitialFocusCell(); private void hookListener(ColumnViewer viewer) { Listener listener = new class Listener { public void handleEvent(Event event) { switch (event.type) { case DWT.MouseDown: handleMouseDown(event); break; case DWT.KeyDown: handleKeyDown(event); break; case DWT.Selection: handleSelection(event); break; case DWT.FocusIn: handleFocusIn(event); break; default: } } }; viewer.getControl().addListener(DWT.MouseDown, listener); viewer.getControl().addListener(DWT.KeyDown, listener); viewer.getControl().addListener(DWT.Selection, listener); viewer.addSelectionChangedListener(new class ISelectionChangedListener { public void selectionChanged(SelectionChangedEvent event) { if( event.getSelection_package.isEmpty() ) { setFocusCell(null); } } }); viewer.getControl().addListener(DWT.FocusIn, listener); } /** * @return the cell with the focus * */ public ViewerCell getFocusCell() { return focusCell; } void setFocusCell(ViewerCell focusCell) { ViewerCell oldCell = this.focusCell; if( this.focusCell !is null && ! this.focusCell.getItem().isDisposed() ) { this.focusCell.getItem().removeDisposeListener(itemDeletionListener); } this.focusCell = focusCell; if( this.focusCell !is null && ! this.focusCell.getItem().isDisposed() ) { this.focusCell.getItem().addDisposeListener(itemDeletionListener); } this.cellHighlighter.focusCellChanged_package(focusCell,oldCell); } ColumnViewer getViewer() { return viewer; } }
D
/** * D header file for C99. * * $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/_stdarg.h.html, _stdarg.h) * * Copyright: Copyright Digital Mars 2000 - 2020. * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). * Authors: Walter Bright, Hauke Duden * Standards: ISO/IEC 9899:1999 (E) * Source: $(DRUNTIMESRC core/stdc/_stdarg.d) */ module core.stdc.stdarg; @nogc: nothrow: version (X86_64) { version (Windows) { /* different ABI */ } else version = SysV_x64; } version (GNU) { import gcc.builtins; } else version (SysV_x64) { static import core.internal.vararg.sysv_x64; version (DigitalMars) { align(16) struct __va_argsave_t { size_t[6] regs; // RDI,RSI,RDX,RCX,R8,R9 real[8] fpregs; // XMM0..XMM7 __va_list va; } } } version (ARM) version = ARM_Any; version (AArch64) version = ARM_Any; version (MIPS32) version = MIPS_Any; version (MIPS64) version = MIPS_Any; version (PPC) version = PPC_Any; version (PPC64) version = PPC_Any; version (RISCV32) version = RISCV_Any; version (RISCV64) version = RISCV_Any; version (GNU) { // Uses gcc.builtins } else version (ARM_Any) { // Darwin uses a simpler varargs implementation version (OSX) {} else version (iOS) {} else version (TVOS) {} else version (WatchOS) {} else: version (ARM) { version = AAPCS32; } else version (AArch64) { version = AAPCS64; static import core.internal.vararg.aarch64; } } T alignUp(size_t alignment = size_t.sizeof, T)(T base) pure { enum mask = alignment - 1; static assert(alignment > 0 && (alignment & mask) == 0, "alignment must be a power of 2"); auto b = cast(size_t) base; b = (b + mask) & ~mask; return cast(T) b; } unittest { assert(1.alignUp == size_t.sizeof); assert(31.alignUp!16 == 32); assert(32.alignUp!16 == 32); assert(33.alignUp!16 == 48); assert((-9).alignUp!8 == -8); } version (BigEndian) { // Adjusts a size_t-aligned pointer for types smaller than size_t. T* adjustForBigEndian(T)(T* p, size_t size) pure { return size >= size_t.sizeof ? p : cast(T*) ((cast(void*) p) + (size_t.sizeof - size)); } } /** * The argument pointer type. */ version (GNU) { alias va_list = __gnuc_va_list; alias __gnuc_va_list = __builtin_va_list; } else version (SysV_x64) { alias va_list = core.internal.vararg.sysv_x64.va_list; public import core.internal.vararg.sysv_x64 : __va_list, __va_list_tag; } else version (AAPCS32) { alias va_list = __va_list; // need std::__va_list for C++ mangling compatibility (AAPCS32 section 8.1.4) extern (C++, std) struct __va_list { void* __ap; } } else version (AAPCS64) { alias va_list = core.internal.vararg.aarch64.va_list; } else version (RISCV_Any) { // The va_list type is void*, according to RISCV Calling Convention // https://github.com/riscv-non-isa/riscv-elf-psabi-doc/blob/master/riscv-cc.adoc alias va_list = void*; } else { alias va_list = char*; // incl. unknown platforms } /** * Initialize ap. * parmn should be the last named parameter. */ version (GNU) { void va_start(T)(out va_list ap, ref T parmn); } else version (LDC) { pragma(LDC_va_start) void va_start(T)(out va_list ap, ref T parmn) @nogc; } else version (DigitalMars) { version (X86) { void va_start(T)(out va_list ap, ref T parmn) { ap = cast(va_list) ((cast(void*) &parmn) + T.sizeof.alignUp); } } else { void va_start(T)(out va_list ap, ref T parmn); // intrinsic; parmn should be __va_argsave for non-Windows x86_64 targets } } /** * Retrieve and return the next value that is of type T. */ version (GNU) T va_arg(T)(ref va_list ap); // intrinsic else T va_arg(T)(ref va_list ap) { version (X86) { auto p = cast(T*) ap; ap += T.sizeof.alignUp; return *p; } else version (Win64) { // LDC passes slices as 2 separate 64-bit values, not as 128-bit struct version (LDC) enum isLDC = true; else enum isLDC = false; static if (isLDC && is(T == E[], E)) { auto p = cast(T*) ap; ap += T.sizeof; return *p; } else { // passed indirectly by value if > 64 bits or of a size that is not a power of 2 static if (T.sizeof > size_t.sizeof || (T.sizeof & (T.sizeof - 1)) != 0) auto p = *cast(T**) ap; else auto p = cast(T*) ap; ap += size_t.sizeof; return *p; } } else version (SysV_x64) { return core.internal.vararg.sysv_x64.va_arg!T(ap); } else version (AAPCS32) { // AAPCS32 section 6.5 B.5: type with alignment >= 8 is 8-byte aligned // instead of normal 4-byte alignment (APCS doesn't do this). if (T.alignof >= 8) ap.__ap = ap.__ap.alignUp!8; auto p = cast(T*) ap.__ap; version (BigEndian) static if (T.sizeof < size_t.sizeof) p = adjustForBigEndian(p, T.sizeof); ap.__ap += T.sizeof.alignUp; return *p; } else version (AAPCS64) { return core.internal.vararg.aarch64.va_arg!T(ap); } else version (ARM_Any) { auto p = cast(T*) ap; version (BigEndian) static if (T.sizeof < size_t.sizeof) p = adjustForBigEndian(p, T.sizeof); ap += T.sizeof.alignUp; return *p; } else version (PPC_Any) { /* * The rules are described in the 64bit PowerPC ELF ABI Supplement 1.9, * available here: * http://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi-1.9.html#PARAM-PASS */ // Chapter 3.1.4 and 3.2.3: alignment may require the va_list pointer to first // be aligned before accessing a value if (T.alignof >= 8) ap = ap.alignUp!8; auto p = cast(T*) ap; version (BigEndian) static if (T.sizeof < size_t.sizeof) p = adjustForBigEndian(p, T.sizeof); ap += T.sizeof.alignUp; return *p; } else version (MIPS_Any) { auto p = cast(T*) ap; version (BigEndian) static if (T.sizeof < size_t.sizeof) p = adjustForBigEndian(p, T.sizeof); ap += T.sizeof.alignUp; return *p; } else version (RISCV_Any) { static if (T.sizeof > (size_t.sizeof << 1)) auto p = *cast(T**) ap; else { static if (T.alignof == (size_t.sizeof << 1)) ap = ap.alignUp!(size_t.sizeof << 1); auto p = cast(T*) ap; } ap += T.sizeof.alignUp; return *p; } else static assert(0, "Unsupported platform"); } /** * Retrieve and store in parmn the next value that is of type T. */ version (GNU) void va_arg(T)(ref va_list ap, ref T parmn); // intrinsic else void va_arg(T)(ref va_list ap, ref T parmn) { parmn = va_arg!T(ap); } /** * End use of ap. */ version (GNU) { alias va_end = __builtin_va_end; } else version (LDC) { pragma(LDC_va_end) void va_end(va_list ap); } else version (DigitalMars) { void va_end(va_list ap) {} } /** * Make a copy of ap. */ version (GNU) { alias va_copy = __builtin_va_copy; } else version (LDC) { pragma(LDC_va_copy) void va_copy(out va_list dest, va_list src); } else version (DigitalMars) { version (SysV_x64) { void va_copy(out va_list dest, va_list src, void* storage = alloca(__va_list_tag.sizeof)) { // Instead of copying the pointers, and aliasing the source va_list, // the default argument alloca will allocate storage in the caller's // stack frame. This is still not correct (it should be allocated in // the place where the va_list variable is declared) but most of the // time the caller's stack frame _is_ the place where the va_list is // allocated, so in most cases this will now work. dest = cast(va_list) storage; *dest = *src; } import core.stdc.stdlib : alloca; } else { void va_copy(out va_list dest, va_list src) { dest = src; } } }
D
module hunt.database.query.Expr; import hunt.database.query.Expression; import hunt.database.query.Common; import hunt.database.query.Comparison; import hunt.logging; class Expr { Comparison!T eq(T)(string key,T value) { return new Comparison!T(key,CompareType.eq,value); } Comparison!T ne(T)(string key,T value) { return new Comparison!T(key,CompareType.ne,value); } Comparison!T gt(T)(string key,T value) { return new Comparison!T(key,CompareType.gt,value); } Comparison!T lt(T)(string key,T value) { return new Comparison!T(key,CompareType.lt,value); } Comparison!T ge(T)(string key,T value) { return new Comparison!T(key,CompareType.ge,value); } Comparison!T le(T)(string key,T value) { return new Comparison!T(key,CompareType.le,value); } Comparison!T like(T)(string key,T value) { return new Comparison!T(key,CompareType.like,value); } string andX(string[] args...) { string cond; cond ~= " ( "; foreach(idx ,arg ; args) { cond ~= arg; if (idx != args.length - 1) cond ~= " AND "; } cond ~= " ) "; return cond; } string orX(string[] args...) { string cond; cond ~= " ( "; foreach(idx ,arg ; args) { cond ~= arg; if (idx != args.length - 1) cond ~= " OR "; } cond ~= " ) "; // logDebug("orX : ",cond); return cond; } }
D
module vksdk.client.ApiRequest; import std.experimental.logger; import std.algorithm.searching : find; import vibe.data.json; import std.json; import vksdk.client.ClientResponse; import vksdk.client.TransportClient; import vksdk.exceptions.ApiException; import vksdk.exceptions.ClientException; import vksdk.exceptions.ExceptionMapper; import vksdk.objects.base.BaseError; abstract class ApiRequest(T) { private TransportClient client; private string url; this(string url, TransportClient client) { this.client = client; this.url = url; } protected string getUrl() { return url; } protected TransportClient getClient() { return client; } T execute() { string textResponse = executeAsString(); JSONValue json = parseJSON(textResponse); if (auto errorElement = "error" in json) { //if (json["error"].type != JSON_TYPE.NULL) { //JSONValue errorElement = json["error"]; BaseError error; try { error = deserializeJson!BaseError(errorElement.toString()); } catch (Exception e) { log("Invalid JSON: %s\n%s", textResponse, e.msg); throw new ClientException("Can't parse json response"); } ApiException exception = ExceptionMapper.parseException(error); log("API error: ", exception.msg); throw exception; } //JSONValue response = json; //if (json["response"].type != JSON_TYPE.NULL) { // response = json["response"]; //} JSONValue response = "response" in json ? json["response"] : json; try { return deserializeJson!T(response.toString()); } catch (Exception e) { log("Invalid JSON: %s\n%s", textResponse, e.msg); throw new ClientException("Can't parse json response"); } } string executeAsString() { ClientResponse response; try { response = client.post(url, getBody()); } catch (Exception e) { log("Problems with request: %s\n%s", url, e.msg); throw new ClientException("I/O exception"); } if (response.getStatusCode() != 200) { throw new ClientException("Internal API server error"); } if ("Content-Type" !in response.getHeaders()) { throw new ClientException("No content type header"); } if (response.getHeaders()["Content-Type"].find("application/json").length > 0) { throw new ClientException("Invalid content type"); } return response.getContent(); } protected abstract string getBody(); }
D
/** * D header file for C99. * * $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/_locale.h.html, _locale.h) * * Copyright: Copyright Sean Kelly 2005 - 2009. * License: Distributed under the * $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0). * (See accompanying file LICENSE) * Authors: Sean Kelly * Source: $(DRUNTIMESRC core/stdc/_locale.d) * Standards: ISO/IEC 9899:1999 (E) */ module core.stdc.locale; version (OSX) version = Darwin; else version (iOS) version = Darwin; else version (TVOS) version = Darwin; else version (WatchOS) version = Darwin; extern (C): @trusted: // Only setlocale operates on C strings. nothrow: @nogc: /// struct lconv { char* decimal_point; char* thousands_sep; char* grouping; char* int_curr_symbol; char* currency_symbol; char* mon_decimal_point; char* mon_thousands_sep; char* mon_grouping; char* positive_sign; char* negative_sign; byte int_frac_digits; byte frac_digits; byte p_cs_precedes; byte p_sep_by_space; byte n_cs_precedes; byte n_sep_by_space; byte p_sign_posn; byte n_sign_posn; byte int_p_cs_precedes; byte int_p_sep_by_space; byte int_n_cs_precedes; byte int_n_sep_by_space; byte int_p_sign_posn; byte int_n_sign_posn; } version(CRuntime_Glibc) { /// enum LC_CTYPE = 0; /// enum LC_NUMERIC = 1; /// enum LC_TIME = 2; /// enum LC_COLLATE = 3; /// enum LC_MONETARY = 4; /// enum LC_MESSAGES = 5; /// enum LC_ALL = 6; /// enum LC_PAPER = 7; // non-standard /// enum LC_NAME = 8; // non-standard /// enum LC_ADDRESS = 9; // non-standard /// enum LC_TELEPHONE = 10; // non-standard /// enum LC_MEASUREMENT = 11; // non-standard /// enum LC_IDENTIFICATION = 12; // non-standard } else version(Windows) { /// enum LC_ALL = 0; /// enum LC_COLLATE = 1; /// enum LC_CTYPE = 2; /// enum LC_MONETARY = 3; /// enum LC_NUMERIC = 4; /// enum LC_TIME = 5; } else version(Darwin) { /// enum LC_ALL = 0; /// enum LC_COLLATE = 1; /// enum LC_CTYPE = 2; /// enum LC_MONETARY = 3; /// enum LC_NUMERIC = 4; /// enum LC_TIME = 5; /// enum LC_MESSAGES = 6; } else version(FreeBSD) { /// enum LC_ALL = 0; /// enum LC_COLLATE = 1; /// enum LC_CTYPE = 2; /// enum LC_MONETARY = 3; /// enum LC_NUMERIC = 4; /// enum LC_TIME = 5; /// enum LC_MESSAGES = 6; } else version(NetBSD) { /// enum LC_ALL = 0; /// enum LC_COLLATE = 1; /// enum LC_CTYPE = 2; /// enum LC_MONETARY = 3; /// enum LC_NUMERIC = 4; /// enum LC_TIME = 5; /// enum LC_MESSAGES = 6; } else version(OpenBSD) { /// enum LC_ALL = 0; /// enum LC_COLLATE = 1; /// enum LC_CTYPE = 2; /// enum LC_MONETARY = 3; /// enum LC_NUMERIC = 4; /// enum LC_TIME = 5; /// enum LC_MESSAGES = 6; } else version(CRuntime_Bionic) { enum { /// LC_CTYPE = 0, /// LC_NUMERIC = 1, /// LC_TIME = 2, /// LC_COLLATE = 3, /// LC_MONETARY = 4, /// LC_MESSAGES = 5, /// LC_ALL = 6, /// LC_PAPER = 7, /// LC_NAME = 8, /// LC_ADDRESS = 9, /// LC_TELEPHONE = 10, /// LC_MEASUREMENT = 11, /// LC_IDENTIFICATION = 12, } } else version(Solaris) { /// enum LC_CTYPE = 0; /// enum LC_NUMERIC = 1; /// enum LC_TIME = 2; /// enum LC_COLLATE = 3; /// enum LC_MONETARY = 4; /// enum LC_MESSAGES = 5; /// enum LC_ALL = 6; } else version(CRuntime_Musl) { /// enum LC_CTYPE = 0; /// enum LC_NUMERIC = 1; /// enum LC_TIME = 2; /// enum LC_COLLATE = 3; /// enum LC_MONETARY = 4; /// enum LC_MESSAGES = 5; /// enum LC_ALL = 6; } else { static assert(false, "Unsupported platform"); } /// @system char* setlocale(int category, in char* locale); /// lconv* localeconv();
D