code
stringlengths
3
10M
language
stringclasses
31 values
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.numeric; ulong[100] TS; T lcm(T)(T a, T b) { return a / gcd(a, b) * b; } void main() { auto N = readln.chomp.to!int; foreach (i; 0..N) { TS[i] = readln.chomp.to!ulong; } auto res = TS[0]; foreach (t; TS[1..N]) { res = lcm(res, t); } writeln(res); }
D
<?xml version="1.0" encoding="UTF-8"?> <di:SashWindowsMngr xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi"> <pageList> <availablePage> <emfPageIdentifier href="recurPackages.notation#_beRuwFHjEeOVNcdOt_t1Sw"/> </availablePage> </pageList> <sashModel currentSelection="//@sashModel/@windows.0/@children.0"> <windows> <children xsi:type="di:TabFolder"> <children> <emfPageIdentifier href="recurPackages.notation#_beRuwFHjEeOVNcdOt_t1Sw"/> </children> </children> </windows> </sashModel> </di:SashWindowsMngr>
D
/******************************************************************************* * Copyright (c) 2000, 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.text.source.ILineDifferExtension2; import dwtx.jface.text.source.ISharedTextColors; // packageimport import dwtx.jface.text.source.ILineRange; // packageimport import dwtx.jface.text.source.IAnnotationPresentation; // packageimport import dwtx.jface.text.source.IVerticalRulerInfoExtension; // packageimport import dwtx.jface.text.source.ICharacterPairMatcher; // packageimport import dwtx.jface.text.source.TextInvocationContext; // packageimport import dwtx.jface.text.source.LineChangeHover; // packageimport import dwtx.jface.text.source.IChangeRulerColumn; // packageimport import dwtx.jface.text.source.IAnnotationMap; // packageimport import dwtx.jface.text.source.IAnnotationModelListenerExtension; // packageimport import dwtx.jface.text.source.ISourceViewerExtension2; // packageimport import dwtx.jface.text.source.IAnnotationHover; // packageimport import dwtx.jface.text.source.ContentAssistantFacade; // packageimport import dwtx.jface.text.source.IAnnotationAccess; // packageimport import dwtx.jface.text.source.IVerticalRulerExtension; // packageimport import dwtx.jface.text.source.IVerticalRulerColumn; // packageimport import dwtx.jface.text.source.LineNumberRulerColumn; // packageimport import dwtx.jface.text.source.MatchingCharacterPainter; // packageimport import dwtx.jface.text.source.IAnnotationModelExtension; // packageimport import dwtx.jface.text.source.ILineDifferExtension; // packageimport import dwtx.jface.text.source.DefaultCharacterPairMatcher; // packageimport import dwtx.jface.text.source.LineNumberChangeRulerColumn; // packageimport import dwtx.jface.text.source.IAnnotationAccessExtension; // packageimport import dwtx.jface.text.source.ISourceViewer; // packageimport import dwtx.jface.text.source.AnnotationModel; // packageimport import dwtx.jface.text.source.IAnnotationModelListener; // packageimport import dwtx.jface.text.source.IVerticalRuler; // packageimport import dwtx.jface.text.source.DefaultAnnotationHover; // packageimport import dwtx.jface.text.source.SourceViewer; // packageimport import dwtx.jface.text.source.SourceViewerConfiguration; // packageimport import dwtx.jface.text.source.AnnotationBarHoverManager; // packageimport import dwtx.jface.text.source.CompositeRuler; // packageimport import dwtx.jface.text.source.ImageUtilities; // packageimport import dwtx.jface.text.source.VisualAnnotationModel; // packageimport import dwtx.jface.text.source.IAnnotationModel; // packageimport import dwtx.jface.text.source.ISourceViewerExtension3; // packageimport import dwtx.jface.text.source.ILineDiffInfo; // packageimport import dwtx.jface.text.source.VerticalRulerEvent; // packageimport import dwtx.jface.text.source.ChangeRulerColumn; // packageimport import dwtx.jface.text.source.ILineDiffer; // packageimport import dwtx.jface.text.source.AnnotationModelEvent; // packageimport import dwtx.jface.text.source.AnnotationColumn; // packageimport import dwtx.jface.text.source.AnnotationRulerColumn; // packageimport import dwtx.jface.text.source.IAnnotationHoverExtension; // packageimport import dwtx.jface.text.source.AbstractRulerColumn; // packageimport import dwtx.jface.text.source.ISourceViewerExtension; // packageimport import dwtx.jface.text.source.AnnotationMap; // packageimport import dwtx.jface.text.source.IVerticalRulerInfo; // packageimport import dwtx.jface.text.source.IAnnotationModelExtension2; // packageimport import dwtx.jface.text.source.LineRange; // packageimport import dwtx.jface.text.source.IAnnotationAccessExtension2; // packageimport import dwtx.jface.text.source.VerticalRuler; // packageimport import dwtx.jface.text.source.JFaceTextMessages; // packageimport import dwtx.jface.text.source.IOverviewRuler; // packageimport import dwtx.jface.text.source.Annotation; // packageimport import dwtx.jface.text.source.IVerticalRulerListener; // packageimport import dwtx.jface.text.source.ISourceViewerExtension4; // packageimport import dwtx.jface.text.source.AnnotationPainter; // packageimport import dwtx.jface.text.source.IAnnotationHoverExtension2; // packageimport import dwtx.jface.text.source.OverviewRuler; // packageimport import dwtx.jface.text.source.OverviewRulerHoverManager; // packageimport import dwt.dwthelper.utils; /** * Extension interface for {@link ILineDiffer}. * <p> * Allows to query the suspension state. * </p> * * @since 3.3 */ public interface ILineDifferExtension2 { /** * Returns <code>true</code> if the receiver is suspended, <code>false</code> otherwise. * * @return <code>true</code> if the receiver is suspended, <code>false</code> otherwise */ bool isSuspended(); }
D
instance Mod_1065_VLK_Buergerin_NW (Npc_Default) { // ------ NSC ------ name = Name_Buergerin; guild = GIL_PAL; id = 1065; voice = 16; flags = 0; npctype = NPCTYPE_AMBIENT; //-----------AIVARS---------------- aivar[AIV_ToughGuy] = TRUE; // ------ Attribute ------ B_SetAttributesToChapter (self, 1); // ------ Kampf-Taktik ------ fight_tactic = FAI_HUMAN_COWARD; // ------ Equippte Waffen ------ // ------ Inventory ------ B_CreateAmbientInv (self); EquipItem (self, ItMw_1H_quantarie_Schwert_01); // ------ visuals ------ B_SetNpcVisual (self, FEMALE, "Hum_Head_BabeHair", FaceBabe_N_HairAndCloth, BodyTex_N, ITAR_BuergerinNew_01); Mdl_ApplyOverlayMds (self, "Humans_Babe.mds"); // ------ NSC-relevante Talente vergeben ------ B_GiveNpcTalents (self); // ------ Kampf-Talente ------ B_SetFightSkills (self, 15); // ------ TA anmelden ------ daily_routine = Rtn_PreStart_1065; }; FUNC VOID Rtn_PreStart_1065 () { TA_Sit_Bench (05,10,08,00,"NW_CITY_HABOUR_BENCH_02"); TA_Listen_Monty (08,00,20,00,"WP_MONTY_BLUBBER_03"); TA_Sit_Bench (20,00,22,55,"NW_CITY_HABOUR_BENCH_02"); TA_Sleep (22,55,05,10,"NW_CITY_HABOUR_POOR_AREA_HUT_05_BED_01"); }; FUNC VOID Rtn_Start_1065 () { TA_Sit_Bench (05,10,10,10,"NW_CITY_HABOUR_BENCH_02"); TA_Stand_Sweeping (10,10,12,10,"NW_CITY_HABOUR_POOR_AREA_HUT_05_IN"); TA_Stomp_Herb (12,10,16,05,"NW_CITY_HABOUR_POOR_AREA_PATH_06_B"); TA_Smalltalk (16,05,19,05,"NW_CITY_HABOUR_POOR_AREA_PATH_06"); TA_Sit_Bench (19,05,22,55,"NW_CITY_HABOUR_BENCH_02"); TA_Sleep (22,55,05,10,"NW_CITY_HABOUR_POOR_AREA_HUT_05_BED_01"); };
D
module d3d.core.render.itexture; import d3d.core; interface ITexture { void create(Bitmap bmp); Bitmap toBitmap(); void destroy(); void resize(Bitmap bmp); void bind(uint unit); @property uint id(); @property uint width(); @property uint height(); static @property ITexture white(); } interface ITexture3D { void create(Bitmap bmp, int depth); void destroy(); void resize(Bitmap bmp, int depth); void bind(uint unit); @property uint id(); @property uint width(); @property uint height(); @property uint depth(); }
D
/** * Evaluate compile-time conditionals, such as `static if` `version` and `debug`. * * Specification: $(LINK2 https://dlang.org/spec/version.html, Conditional Compilation) * * Copyright: Copyright (C) 1999-2021 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/cond.d, _cond.d) * Documentation: https://dlang.org/phobos/dmd_cond.html * Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/cond.d */ module dmd.cond; import core.stdc.string; import dmd.arraytypes; import dmd.astenums; import dmd.ast_node; import dmd.dcast; import dmd.dmodule; import dmd.dscope; import dmd.dsymbol; import dmd.errors; import dmd.expression; import dmd.expressionsem; import dmd.globals; import dmd.identifier; import dmd.mtype; import dmd.typesem; import dmd.common.outbuffer; import dmd.root.rootobject; import dmd.root.string; import dmd.tokens; import dmd.utils; import dmd.visitor; import dmd.id; import dmd.statement; import dmd.declaration; import dmd.dstruct; import dmd.func; /*********************************************************** */ enum Include : ubyte { notComputed, /// not computed yet yes, /// include the conditional code no, /// do not include the conditional code } extern (C++) abstract class Condition : ASTNode { Loc loc; Include inc; override final DYNCAST dyncast() const { return DYNCAST.condition; } extern (D) this(const ref Loc loc) { this.loc = loc; } abstract Condition syntaxCopy(); abstract int include(Scope* sc); inout(DebugCondition) isDebugCondition() inout { return null; } inout(VersionCondition) isVersionCondition() inout { return null; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * Implements common functionality for StaticForeachDeclaration and * StaticForeachStatement This performs the necessary lowerings before * dmd.statementsem.makeTupleForeach can be used to expand the * corresponding `static foreach` declaration or statement. */ extern (C++) final class StaticForeach : RootObject { extern(D) static immutable tupleFieldName = "tuple"; // used in lowering Loc loc; /*************** * Not `null` iff the `static foreach` is over an aggregate. In * this case, it contains the corresponding ForeachStatement. For * StaticForeachDeclaration, the body is `null`. */ ForeachStatement aggrfe; /*************** * Not `null` iff the `static foreach` is over a range. Exactly * one of the `aggrefe` and `rangefe` fields is not null. See * `aggrfe` field for more details. */ ForeachRangeStatement rangefe; /*************** * true if it is necessary to expand a tuple into multiple * variables (see lowerNonArrayAggregate). */ bool needExpansion = false; extern (D) this(const ref Loc loc, ForeachStatement aggrfe, ForeachRangeStatement rangefe) { assert(!!aggrfe ^ !!rangefe); this.loc = loc; this.aggrfe = aggrfe; this.rangefe = rangefe; } StaticForeach syntaxCopy() { return new StaticForeach( loc, aggrfe ? aggrfe.syntaxCopy() : null, rangefe ? rangefe.syntaxCopy() : null ); } /***************************************** * Turn an aggregate which is an array into an expression tuple * of its elements. I.e., lower * static foreach (x; [1, 2, 3, 4]) { ... } * to * static foreach (x; AliasSeq!(1, 2, 3, 4)) { ... } */ private extern(D) void lowerArrayAggregate(Scope* sc) { auto aggr = aggrfe.aggr; Expression el = new ArrayLengthExp(aggr.loc, aggr); sc = sc.startCTFE(); el = el.expressionSemantic(sc); sc = sc.endCTFE(); el = el.optimize(WANTvalue); el = el.ctfeInterpret(); if (el.op == EXP.int64) { Expressions *es = void; if (auto ale = aggr.isArrayLiteralExp()) { // Directly use the elements of the array for the TupleExp creation es = ale.elements; } else { const length = cast(size_t)el.toInteger(); es = new Expressions(length); foreach (i; 0 .. length) { auto index = new IntegerExp(loc, i, Type.tsize_t); auto value = new IndexExp(aggr.loc, aggr, index); (*es)[i] = value; } } aggrfe.aggr = new TupleExp(aggr.loc, es); aggrfe.aggr = aggrfe.aggr.expressionSemantic(sc); aggrfe.aggr = aggrfe.aggr.optimize(WANTvalue); aggrfe.aggr = aggrfe.aggr.ctfeInterpret(); } else { aggrfe.aggr = ErrorExp.get(); } } /***************************************** * Wrap a statement into a function literal and call it. * * Params: * loc = The source location. * s = The statement. * Returns: * AST of the expression `(){ s; }()` with location loc. */ private extern(D) Expression wrapAndCall(const ref Loc loc, Statement s) { auto tf = new TypeFunction(ParameterList(), null, LINK.default_, 0); auto fd = new FuncLiteralDeclaration(loc, loc, tf, TOK.reserved, null); fd.fbody = s; auto fe = new FuncExp(loc, fd); auto ce = new CallExp(loc, fe, new Expressions()); return ce; } /***************************************** * Create a `foreach` statement from `aggrefe/rangefe` with given * `foreach` variables and body `s`. * * Params: * loc = The source location. * parameters = The foreach variables. * s = The `foreach` body. * Returns: * `foreach (parameters; aggregate) s;` or * `foreach (parameters; lower .. upper) s;` * Where aggregate/lower, upper are as for the current StaticForeach. */ private extern(D) Statement createForeach(const ref Loc loc, Parameters* parameters, Statement s) { if (aggrfe) { return new ForeachStatement(loc, aggrfe.op, parameters, aggrfe.aggr.syntaxCopy(), s, loc); } else { assert(rangefe && parameters.dim == 1); return new ForeachRangeStatement(loc, rangefe.op, (*parameters)[0], rangefe.lwr.syntaxCopy(), rangefe.upr.syntaxCopy(), s, loc); } } /***************************************** * For a `static foreach` with multiple loop variables, the * aggregate is lowered to an array of tuples. As D does not have * built-in tuples, we need a suitable tuple type. This generates * a `struct` that serves as the tuple type. This type is only * used during CTFE and hence its typeinfo will not go to the * object file. * * Params: * loc = The source location. * e = The expressions we wish to store in the tuple. * sc = The current scope. * Returns: * A struct type of the form * struct Tuple * { * typeof(AliasSeq!(e)) tuple; * } */ private extern(D) TypeStruct createTupleType(const ref Loc loc, Expressions* e, Scope* sc) { // TODO: move to druntime? auto sid = Identifier.generateId("Tuple"); auto sdecl = new StructDeclaration(loc, sid, false); sdecl.storage_class |= STC.static_; sdecl.members = new Dsymbols(); auto fid = Identifier.idPool(tupleFieldName.ptr, tupleFieldName.length); auto ty = new TypeTypeof(loc, new TupleExp(loc, e)); sdecl.members.push(new VarDeclaration(loc, ty, fid, null, 0)); auto r = cast(TypeStruct)sdecl.type; if (global.params.useTypeInfo && Type.dtypeinfo) r.vtinfo = TypeInfoStructDeclaration.create(r); // prevent typeinfo from going to object file return r; } /***************************************** * Create the AST for an instantiation of a suitable tuple type. * * Params: * loc = The source location. * type = A Tuple type, created with createTupleType. * e = The expressions we wish to store in the tuple. * Returns: * An AST for the expression `Tuple(e)`. */ private extern(D) Expression createTuple(const ref Loc loc, TypeStruct type, Expressions* e) { // TODO: move to druntime? return new CallExp(loc, new TypeExp(loc, type), e); } /***************************************** * Lower any aggregate that is not an array to an array using a * regular foreach loop within CTFE. If there are multiple * `static foreach` loop variables, an array of tuples is * generated. In thise case, the field `needExpansion` is set to * true to indicate that the static foreach loop expansion will * need to expand the tuples into multiple variables. * * For example, `static foreach (x; range) { ... }` is lowered to: * * static foreach (x; { * typeof({ * foreach (x; range) return x; * }())[] __res; * foreach (x; range) __res ~= x; * return __res; * }()) { ... } * * Finally, call `lowerArrayAggregate` to turn the produced * array into an expression tuple. * * Params: * sc = The current scope. */ private void lowerNonArrayAggregate(Scope* sc) { auto nvars = aggrfe ? aggrfe.parameters.dim : 1; auto aloc = aggrfe ? aggrfe.aggr.loc : rangefe.lwr.loc; // We need three sets of foreach loop variables because the // lowering contains three foreach loops. Parameters*[3] pparams = [new Parameters(), new Parameters(), new Parameters()]; foreach (i; 0 .. nvars) { foreach (params; pparams) { auto p = aggrfe ? (*aggrfe.parameters)[i] : rangefe.prm; params.push(new Parameter(p.storageClass, p.type, p.ident, null, null)); } } Expression[2] res; TypeStruct tplty = null; if (nvars == 1) // only one `static foreach` variable, generate identifiers. { foreach (i; 0 .. 2) { res[i] = new IdentifierExp(aloc, (*pparams[i])[0].ident); } } else // multiple `static foreach` variables, generate tuples. { foreach (i; 0 .. 2) { auto e = new Expressions(pparams[0].dim); foreach (j, ref elem; *e) { auto p = (*pparams[i])[j]; elem = new IdentifierExp(aloc, p.ident); } if (!tplty) { tplty = createTupleType(aloc, e, sc); } res[i] = createTuple(aloc, tplty, e); } needExpansion = true; // need to expand the tuples later } // generate remaining code for the new aggregate which is an // array (see documentation comment). if (rangefe) { sc = sc.startCTFE(); rangefe.lwr = rangefe.lwr.expressionSemantic(sc); rangefe.lwr = resolveProperties(sc, rangefe.lwr); rangefe.upr = rangefe.upr.expressionSemantic(sc); rangefe.upr = resolveProperties(sc, rangefe.upr); sc = sc.endCTFE(); rangefe.lwr = rangefe.lwr.optimize(WANTvalue); rangefe.lwr = rangefe.lwr.ctfeInterpret(); rangefe.upr = rangefe.upr.optimize(WANTvalue); rangefe.upr = rangefe.upr.ctfeInterpret(); } auto s1 = new Statements(); auto sfe = new Statements(); if (tplty) sfe.push(new ExpStatement(loc, tplty.sym)); sfe.push(new ReturnStatement(aloc, res[0])); s1.push(createForeach(aloc, pparams[0], new CompoundStatement(aloc, sfe))); s1.push(new ExpStatement(aloc, new AssertExp(aloc, IntegerExp.literal!0))); Type ety = new TypeTypeof(aloc, wrapAndCall(aloc, new CompoundStatement(aloc, s1))); auto aty = ety.arrayOf(); auto idres = Identifier.generateId("__res"); auto vard = new VarDeclaration(aloc, aty, idres, null); auto s2 = new Statements(); // Run 'typeof' gagged to avoid duplicate errors and if it fails just create // an empty foreach to expose them. uint olderrors = global.startGagging(); ety = ety.typeSemantic(aloc, sc); if (global.endGagging(olderrors)) s2.push(createForeach(aloc, pparams[1], null)); else { s2.push(new ExpStatement(aloc, vard)); auto catass = new CatAssignExp(aloc, new IdentifierExp(aloc, idres), res[1]); s2.push(createForeach(aloc, pparams[1], new ExpStatement(aloc, catass))); s2.push(new ReturnStatement(aloc, new IdentifierExp(aloc, idres))); } Expression aggr = void; Type indexty = void; if (rangefe && (indexty = ety).isintegral()) { rangefe.lwr.type = indexty; rangefe.upr.type = indexty; auto lwrRange = getIntRange(rangefe.lwr); auto uprRange = getIntRange(rangefe.upr); const lwr = rangefe.lwr.toInteger(); auto upr = rangefe.upr.toInteger(); size_t length = 0; if (lwrRange.imin <= uprRange.imax) length = cast(size_t) (upr - lwr); auto exps = new Expressions(length); if (rangefe.op == TOK.foreach_) { foreach (i; 0 .. length) (*exps)[i] = new IntegerExp(aloc, lwr + i, indexty); } else { --upr; foreach (i; 0 .. length) (*exps)[i] = new IntegerExp(aloc, upr - i, indexty); } aggr = new ArrayLiteralExp(aloc, indexty.arrayOf(), exps); } else { aggr = wrapAndCall(aloc, new CompoundStatement(aloc, s2)); sc = sc.startCTFE(); aggr = aggr.expressionSemantic(sc); aggr = resolveProperties(sc, aggr); sc = sc.endCTFE(); aggr = aggr.optimize(WANTvalue); aggr = aggr.ctfeInterpret(); } assert(!!aggrfe ^ !!rangefe); aggrfe = new ForeachStatement(loc, TOK.foreach_, pparams[2], aggr, aggrfe ? aggrfe._body : rangefe._body, aggrfe ? aggrfe.endloc : rangefe.endloc); rangefe = null; lowerArrayAggregate(sc); // finally, turn generated array into expression tuple } /***************************************** * Perform `static foreach` lowerings that are necessary in order * to finally expand the `static foreach` using * `dmd.statementsem.makeTupleForeach`. */ extern(D) void prepare(Scope* sc) { assert(sc); if (aggrfe) { sc = sc.startCTFE(); aggrfe.aggr = aggrfe.aggr.expressionSemantic(sc); sc = sc.endCTFE(); } if (aggrfe && aggrfe.aggr.type.toBasetype().ty == Terror) { return; } if (!ready()) { if (aggrfe && aggrfe.aggr.type.toBasetype().ty == Tarray) { lowerArrayAggregate(sc); } else { lowerNonArrayAggregate(sc); } } } /***************************************** * Returns: * `true` iff ready to call `dmd.statementsem.makeTupleForeach`. */ extern(D) bool ready() { return aggrfe && aggrfe.aggr && aggrfe.aggr.type && aggrfe.aggr.type.toBasetype().ty == Ttuple; } } /*********************************************************** */ extern (C++) class DVCondition : Condition { uint level; Identifier ident; Module mod; extern (D) this(const ref Loc loc, Module mod, uint level, Identifier ident) { super(loc); this.mod = mod; this.level = level; this.ident = ident; } override final DVCondition syntaxCopy() { return this; // don't need to copy } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class DebugCondition : DVCondition { /** * Add an user-supplied identifier to the list of global debug identifiers * * Can be called from either the driver or a `debug = Ident;` statement. * Unlike version identifier, there isn't any reserved debug identifier * so no validation takes place. * * Params: * ident = identifier to add */ deprecated("Kept for C++ compat - Use the string overload instead") static void addGlobalIdent(const(char)* ident) { addGlobalIdent(ident[0 .. ident.strlen]); } /// Ditto extern(D) static void addGlobalIdent(string ident) { // Overload necessary for string literals addGlobalIdent(cast(const(char)[])ident); } /// Ditto extern(D) static void addGlobalIdent(const(char)[] ident) { if (!global.debugids) global.debugids = new Identifiers(); global.debugids.push(Identifier.idPool(ident)); } /** * Instantiate a new `DebugCondition` * * Params: * mod = Module this node belongs to * level = Minimum global level this condition needs to pass. * Only used if `ident` is `null`. * ident = Identifier required for this condition to pass. * If `null`, this conditiion will use an integer level. * loc = Location in the source file */ extern (D) this(const ref Loc loc, Module mod, uint level, Identifier ident) { super(loc, mod, level, ident); } override int include(Scope* sc) { //printf("DebugCondition::include() level = %d, debuglevel = %d\n", level, global.params.debuglevel); if (inc == Include.notComputed) { inc = Include.no; bool definedInModule = false; if (ident) { if (findCondition(mod.debugids, ident)) { inc = Include.yes; definedInModule = true; } else if (findCondition(global.debugids, ident)) inc = Include.yes; else { if (!mod.debugidsNot) mod.debugidsNot = new Identifiers(); mod.debugidsNot.push(ident); } } else if (level <= global.params.debuglevel || level <= mod.debuglevel) inc = Include.yes; if (!definedInModule) printDepsConditional(sc, this, "depsDebug "); } return (inc == Include.yes); } override inout(DebugCondition) isDebugCondition() inout { return this; } override void accept(Visitor v) { v.visit(this); } override const(char)* toChars() const { return ident ? ident.toChars() : "debug".ptr; } } /** * Node to represent a version condition * * A version condition is of the form: * --- * version (Identifier) * --- * In user code. * This class also provides means to add version identifier * to the list of global (cross module) identifiers. */ extern (C++) final class VersionCondition : DVCondition { /** * Check if a given version identifier is reserved. * * Params: * ident = identifier being checked * * Returns: * `true` if it is reserved, `false` otherwise */ extern(D) private static bool isReserved(const(char)[] ident) { // This list doesn't include "D_*" versions, see the last return switch (ident) { case "AArch64": case "AIX": case "all": case "Alpha": case "Alpha_HardFloat": case "Alpha_SoftFloat": case "Android": case "ARM": case "ARM_HardFloat": case "ARM_SoftFloat": case "ARM_SoftFP": case "ARM_Thumb": case "AsmJS": case "assert": case "AVR": case "BigEndian": case "BSD": case "CppRuntime_Clang": case "CppRuntime_DigitalMars": case "CppRuntime_Gcc": case "CppRuntime_Microsoft": case "CppRuntime_Sun": case "CRuntime_Bionic": case "CRuntime_DigitalMars": case "CRuntime_Glibc": case "CRuntime_Microsoft": case "CRuntime_Musl": case "CRuntime_Newlib": case "CRuntime_UClibc": case "CRuntime_WASI": case "Cygwin": case "DigitalMars": case "DragonFlyBSD": case "Emscripten": case "ELFv1": case "ELFv2": case "Epiphany": case "FreeBSD": case "FreeStanding": case "GNU": case "Haiku": case "HPPA": case "HPPA64": case "Hurd": case "IA64": case "iOS": case "LDC": case "linux": case "LittleEndian": case "MinGW": case "MIPS32": case "MIPS64": case "MIPS_EABI": case "MIPS_HardFloat": case "MIPS_N32": case "MIPS_N64": case "MIPS_O32": case "MIPS_O64": case "MIPS_SoftFloat": case "MSP430": case "NetBSD": case "none": case "NVPTX": case "NVPTX64": case "OpenBSD": case "OSX": case "PlayStation": case "PlayStation4": case "Posix": case "PPC": case "PPC64": case "PPC_HardFloat": case "PPC_SoftFloat": case "RISCV32": case "RISCV64": case "S390": case "S390X": case "SDC": case "SH": case "SkyOS": case "Solaris": case "SPARC": case "SPARC64": case "SPARC_HardFloat": case "SPARC_SoftFloat": case "SPARC_V8Plus": case "SystemZ": case "SysV3": case "SysV4": case "TVOS": case "unittest": case "WASI": case "WatchOS": case "WebAssembly": case "Win32": case "Win64": case "Windows": case "X86": case "X86_64": return true; default: // Anything that starts with "D_" is reserved return (ident.length >= 2 && ident[0 .. 2] == "D_"); } } /** * Raises an error if a version identifier is reserved. * * Called when setting a version identifier, e.g. `-version=identifier` * parameter to the compiler or `version = Foo` in user code. * * Params: * loc = Where the identifier is set * ident = identifier being checked (ident[$] must be '\0') */ extern(D) static void checkReserved(const ref Loc loc, const(char)[] ident) { if (isReserved(ident)) error(loc, "version identifier `%s` is reserved and cannot be set", ident.ptr); } /** * Add an user-supplied global identifier to the list * * Only called from the driver for `-version=Ident` parameters. * Will raise an error if the identifier is reserved. * * Params: * ident = identifier to add */ deprecated("Kept for C++ compat - Use the string overload instead") static void addGlobalIdent(const(char)* ident) { addGlobalIdent(ident[0 .. ident.strlen]); } /// Ditto extern(D) static void addGlobalIdent(string ident) { // Overload necessary for string literals addGlobalIdent(cast(const(char)[])ident); } /// Ditto extern(D) static void addGlobalIdent(const(char)[] ident) { checkReserved(Loc.initial, ident); addPredefinedGlobalIdent(ident); } /** * Add any global identifier to the list, without checking * if it's predefined * * Only called from the driver after platform detection, * and internally. * * Params: * ident = identifier to add (ident[$] must be '\0') */ deprecated("Kept for C++ compat - Use the string overload instead") static void addPredefinedGlobalIdent(const(char)* ident) { addPredefinedGlobalIdent(ident.toDString()); } /// Ditto extern(D) static void addPredefinedGlobalIdent(string ident) { // Forward: Overload necessary for string literal addPredefinedGlobalIdent(cast(const(char)[])ident); } /// Ditto extern(D) static void addPredefinedGlobalIdent(const(char)[] ident) { if (!global.versionids) global.versionids = new Identifiers(); global.versionids.push(Identifier.idPool(ident)); } /** * Instantiate a new `VersionCondition` * * Params: * mod = Module this node belongs to * level = Minimum global level this condition needs to pass. * Only used if `ident` is `null`. * ident = Identifier required for this condition to pass. * If `null`, this conditiion will use an integer level. * loc = Location in the source file */ extern (D) this(const ref Loc loc, Module mod, uint level, Identifier ident) { super(loc, mod, level, ident); } override int include(Scope* sc) { //printf("VersionCondition::include() level = %d, versionlevel = %d\n", level, global.params.versionlevel); //if (ident) printf("\tident = '%s'\n", ident.toChars()); if (inc == Include.notComputed) { inc = Include.no; bool definedInModule = false; if (ident) { if (findCondition(mod.versionids, ident)) { inc = Include.yes; definedInModule = true; } else if (findCondition(global.versionids, ident)) inc = Include.yes; else { if (!mod.versionidsNot) mod.versionidsNot = new Identifiers(); mod.versionidsNot.push(ident); } } else if (level <= global.params.versionlevel || level <= mod.versionlevel) inc = Include.yes; if (!definedInModule && (!ident || (!isReserved(ident.toString()) && ident != Id._unittest && ident != Id._assert))) { printDepsConditional(sc, this, "depsVersion "); } } return (inc == Include.yes); } override inout(VersionCondition) isVersionCondition() inout { return this; } override void accept(Visitor v) { v.visit(this); } override const(char)* toChars() const { return ident ? ident.toChars() : "version".ptr; } } /*********************************************************** */ extern (C++) final class StaticIfCondition : Condition { Expression exp; extern (D) this(const ref Loc loc, Expression exp) { super(loc); this.exp = exp; } override StaticIfCondition syntaxCopy() { return new StaticIfCondition(loc, exp.syntaxCopy()); } override int include(Scope* sc) { // printf("StaticIfCondition::include(sc = %p) this=%p inc = %d\n", sc, this, inc); int errorReturn() { if (!global.gag) inc = Include.no; // so we don't see the error message again return 0; } if (inc == Include.notComputed) { if (!sc) { error(loc, "`static if` conditional cannot be at global scope"); inc = Include.no; return 0; } import dmd.staticcond; bool errors; if (!exp) return errorReturn(); bool result = evalStaticCondition(sc, exp, exp, errors); // Prevent repeated condition evaluation. // See: fail_compilation/fail7815.d if (inc != Include.notComputed) return (inc == Include.yes); if (errors) return errorReturn(); if (result) inc = Include.yes; else inc = Include.no; } return (inc == Include.yes); } override void accept(Visitor v) { v.visit(this); } override const(char)* toChars() const { return exp ? exp.toChars() : "static if".ptr; } } /**************************************** * Find `ident` in an array of identifiers. * Params: * ids = array of identifiers * ident = identifier to search for * Returns: * true if found */ bool findCondition(Identifiers* ids, Identifier ident) @safe nothrow pure { if (ids) { foreach (id; *ids) { if (id == ident) return true; } } return false; } // Helper for printing dependency information private void printDepsConditional(Scope* sc, DVCondition condition, const(char)[] depType) { if (!global.params.moduleDeps || global.params.moduleDepsFile) return; OutBuffer* ob = global.params.moduleDeps; Module imod = sc ? sc._module : condition.mod; if (!imod) return; ob.writestring(depType); ob.writestring(imod.toPrettyChars()); ob.writestring(" ("); escapePath(ob, imod.srcfile.toChars()); ob.writestring(") : "); if (condition.ident) ob.writestring(condition.ident.toString()); else ob.print(condition.level); ob.writeByte('\n'); }
D
remove the triggering device from
D
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/GoogleCloud.build/Common/OAuth/OAuthComputeEngine+AppEngineFlex.swift.o : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/ObjectACLAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/DefaultObjectACLAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/BucketAccessControlAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/ChannelsAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/StorageNotificationsAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/StorageObjectAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/StorageBucketAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthPayload.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthRefreshable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/Enums/StorageScope.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/GoogleCloudAPIConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/StorageConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthAccessToken.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthCredentialLoader.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Provider.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/GoogleCloudError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/CloudStorageError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Extensions.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/Credentials/Loaders.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/Enums/StorageClass.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/StorageObject.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/StorageBucket.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/Credentials/ApplicationDefault.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthApplicationDefault.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/StorageClient.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/Credentials/ServiceAccount.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthServiceAccount.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/StorageRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/StorageBucketList.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthComputeEngine+AppEngineFlex.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/IAMPolicy.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/JWT.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Validation.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/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Vapor.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOWebSocket.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/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/asn1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/tls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/md5.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509.h /usr/local/Cellar/libressl/2.9.2/include/openssl/sha.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rsa.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/2.9.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/hmac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ec.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rand.h /usr/local/Cellar/libressl/2.9.2/include/openssl/conf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/lhash.h /usr/local/Cellar/libressl/2.9.2/include/openssl/stack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/safestack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bn.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bio.h /usr/local/Cellar/libressl/2.9.2/include/openssl/crypto.h /usr/local/Cellar/libressl/2.9.2/include/openssl/srtp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/evp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.9.2/include/openssl/buffer.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.9.2/include/openssl/err.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.9.2/include/openssl/objects.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslv.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509_vfy.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl-support/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/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.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/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/GoogleCloud.build/Common/OAuth/OAuthComputeEngine+AppEngineFlex~partial.swiftmodule : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/ObjectACLAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/DefaultObjectACLAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/BucketAccessControlAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/ChannelsAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/StorageNotificationsAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/StorageObjectAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/StorageBucketAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthPayload.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthRefreshable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/Enums/StorageScope.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/GoogleCloudAPIConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/StorageConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthAccessToken.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthCredentialLoader.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Provider.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/GoogleCloudError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/CloudStorageError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Extensions.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/Credentials/Loaders.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/Enums/StorageClass.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/StorageObject.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/StorageBucket.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/Credentials/ApplicationDefault.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthApplicationDefault.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/StorageClient.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/Credentials/ServiceAccount.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthServiceAccount.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/StorageRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/StorageBucketList.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthComputeEngine+AppEngineFlex.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/IAMPolicy.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/JWT.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Validation.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/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Vapor.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOWebSocket.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/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/asn1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/tls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/md5.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509.h /usr/local/Cellar/libressl/2.9.2/include/openssl/sha.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rsa.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/2.9.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/hmac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ec.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rand.h /usr/local/Cellar/libressl/2.9.2/include/openssl/conf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/lhash.h /usr/local/Cellar/libressl/2.9.2/include/openssl/stack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/safestack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bn.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bio.h /usr/local/Cellar/libressl/2.9.2/include/openssl/crypto.h /usr/local/Cellar/libressl/2.9.2/include/openssl/srtp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/evp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.9.2/include/openssl/buffer.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.9.2/include/openssl/err.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.9.2/include/openssl/objects.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslv.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509_vfy.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl-support/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/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.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/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/GoogleCloud.build/Common/OAuth/OAuthComputeEngine+AppEngineFlex~partial.swiftdoc : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/ObjectACLAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/DefaultObjectACLAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/BucketAccessControlAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/ChannelsAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/StorageNotificationsAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/StorageObjectAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/API/StorageBucketAPI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthPayload.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthRefreshable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/Enums/StorageScope.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/GoogleCloudAPIConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/StorageConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthAccessToken.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthCredentialLoader.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Provider.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/GoogleCloudError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/CloudStorageError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Extensions.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/Credentials/Loaders.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/Enums/StorageClass.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/StorageObject.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/StorageBucket.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/Credentials/ApplicationDefault.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthApplicationDefault.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/StorageClient.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/Credentials/ServiceAccount.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthServiceAccount.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/StorageRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/StorageBucketList.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Common/OAuth/OAuthComputeEngine+AppEngineFlex.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/google-cloud-provider/Sources/GoogleCloud/Storage/Models/IAMPolicy.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/JWT.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Validation.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/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Vapor.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOWebSocket.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/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/asn1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/tls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/md5.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509.h /usr/local/Cellar/libressl/2.9.2/include/openssl/sha.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rsa.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/2.9.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/hmac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ec.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rand.h /usr/local/Cellar/libressl/2.9.2/include/openssl/conf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/lhash.h /usr/local/Cellar/libressl/2.9.2/include/openssl/stack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/safestack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bn.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bio.h /usr/local/Cellar/libressl/2.9.2/include/openssl/crypto.h /usr/local/Cellar/libressl/2.9.2/include/openssl/srtp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/evp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.9.2/include/openssl/buffer.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.9.2/include/openssl/err.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.9.2/include/openssl/objects.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslv.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509_vfy.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl-support/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/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.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
@safe: import std; void main(string[] args) { auto n = args.length > 1 ? args[1] : ""; writeln(format("Hello world %s!", n)); }
D
/++ $(H1 Annotated value) License: $(HTTP www.apache.org/licenses/LICENSE-2.0, Apache-2.0) Authors: Ilya Yaroshenko Macros: +/ module mir.annotated; import mir.serde: serdeRegister, serdeAnnotation, serdeIsDynamicAlgebraic; static immutable excMsg = "At least one annotation is required to create an annotated value."; version (D_Exceptions) static immutable exc = new Exception(excMsg); /++ A convenience definition of an annotated value. A structure that behaves like a recursive algebraic type should define `enum _serdeRecursiveAlgebraic;` member. +/ @serdeRegister @serdeAnnotation struct Annotated(T) { /// @serdeAnnotation string[] annotations; static if (!(is(T == union) || is(T == struct))) private enum _alloc_ = false; else static if (__traits(hasMember, T, "_serdeRecursiveAlgebraic")) private enum _alloc_ = true; else { import mir.algebraic: isVariant; static if (isVariant!T) private enum _alloc_ = true; else private enum _alloc_ = false; } static if (_alloc_) { /// private T* _value; /// ref inout(T) value() inout @property { return *_value; } /// ref T value(T value) @property { if (_value is null) { _value = new T; import core.lifetime: move; *_value = move(value); } return *_value; } /// bool opEquals(const Annotated rhs) const { return annotations == rhs.annotations && value == rhs.value; } } else { /// T value; } /++ Params: annotations = non-empty array of annotations args = arguments to construct value with +/ this(Args...)(string[] annotations, Args args) @safe pure { if (annotations.length == 0) { version (D_Exceptions) throw exc; else assert(0, excMsg); } import core.lifetime: forward; this.annotations = annotations; static if (_alloc_) this._value = new T(forward!args); else static if (__traits(compiles, value = args)) this.value = args; else static if (is(T == class)) this.value = new T(forward!args); else this.value = T(forward!args); } } /// unittest { auto annotations = ["annotation"]; static struct S {double x;} auto as = Annotated!S(annotations, 5); assert(as.annotations == annotations); assert(as.value.x == 5); static struct C {double x;} auto ac = Annotated!S(annotations, 5); assert(ac.annotations == annotations); assert(ac.value.x == 5); } /// unittest { import mir.algebraic; auto annotations = ["annotation"]; static struct S {double x;} auto as = Annotated!(Variant!S)(annotations, 5); assert(as.annotations == annotations); assert(as.value.x == 5); static struct C {double x;} auto ac = Annotated!(Variant!S)(annotations, 5); assert(ac.annotations == annotations); assert(ac.value.x == 5); }
D
module util; import std.file : read; ushort[] loadBinary(string path, bool littleEndian = true) @trusted { auto words = cast(ushort[]) read(path); nativeToBigEndian(words, littleEndian); return words; } void nativeToBigEndian(ushort[] words, bool littleEndian = true) @safe { if (littleEndian) return; foreach (ref w; words) w = cast(ushort)((w << 8) | (w >> 8)); }
D
/** JSON serialization and value handling. This module provides the Json struct for reading, writing and manipulating JSON values. De(serialization) of arbitrary D types is also supported and is recommended for handling JSON in performance sensitive applications. Copyright: © 2012-2015 RejectedSoftware e.K. License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Sönke Ludwig */ module vibe.data.json; /// @safe unittest { void manipulateJson(Json j) { import std.stdio; // retrieving the values is done using get() assert(j["name"].get!string == "Example"); assert(j["id"].get!int == 1); // semantic conversions can be done using to() assert(j["id"].to!string == "1"); // prints: // name: "Example" // id: 1 foreach (key, value; j.byKeyValue) writefln("%s: %s", key, value); // print out as JSON: {"name": "Example", "id": 1} writefln("JSON: %s", j.toString()); // DEPRECATED: object members can be accessed using member syntax, just like in JavaScript //j = Json.emptyObject; //j.name = "Example"; //j.id = 1; } } /// Constructing `Json` objects @safe unittest { // construct a JSON object {"field1": "foo", "field2": 42, "field3": true} // using the constructor Json j1 = Json(["field1": Json("foo"), "field2": Json(42), "field3": Json(true)]); // using piecewise construction Json j2 = Json.emptyObject; j2["field1"] = "foo"; j2["field2"] = 42.0; j2["field3"] = true; // using serialization struct S { string field1; double field2; bool field3; } Json j3 = S("foo", 42, true).serializeToJson(); // using serialization, converting directly to a JSON string string j4 = S("foo", 32, true).serializeToJsonString(); } public import vibe.data.serialization; public import std.json : JSONException; import std.algorithm; import std.array; import std.bigint; import std.conv; import std.datetime; import std.exception; import std.format; import std.json : JSONValue, JSON_TYPE; import std.range; import std.string; import std.traits; import std.typecons : Tuple; /******************************************************************************/ /* public types */ /******************************************************************************/ /** Represents a single JSON value. Json values can have one of the types defined in the Json.Type enum. They behave mostly like values in ECMA script in the way that you can transparently perform operations on them. However, strict typechecking is done, so that operations between differently typed JSON values will throw a JSONException. Additionally, an explicit cast or using get!() or to!() is required to convert a JSON value to the corresponding static D type. */ align(8) // ensures that pointers stay on 64-bit boundaries on x64 so that they get scanned by the GC struct Json { @safe: static assert(!hasElaborateDestructor!BigInt && !hasElaborateCopyConstructor!BigInt, "struct Json is missing required ~this and/or this(this) members for BigInt."); private { // putting all fields in a union results in many false pointers leading to // memory leaks and, worse, std.algorithm.swap triggering an assertion // because of internal pointers. This crude workaround seems to fix // the issues. enum m_size = max((BigInt.sizeof+(void*).sizeof), 2); // NOTE : DMD 2.067.1 doesn't seem to init void[] correctly on its own. // Explicity initializing it works around this issue. Using a void[] // array here to guarantee that it's scanned by the GC. void[m_size] m_data = (void[m_size]).init; static assert(m_data.offsetof == 0, "m_data must be the first struct member."); static assert(BigInt.alignof <= 8, "Json struct alignment of 8 isn't sufficient to store BigInt."); ref inout(T) getDataAs(T)() inout @trusted { static assert(T.sizeof <= m_data.sizeof); return (cast(inout(T)[1])m_data[0 .. T.sizeof])[0]; } @property ref inout(BigInt) m_bigInt() inout { return getDataAs!BigInt(); } @property ref inout(long) m_int() inout { return getDataAs!long(); } @property ref inout(double) m_float() inout { return getDataAs!double(); } @property ref inout(bool) m_bool() inout { return getDataAs!bool(); } @property ref inout(string) m_string() inout { return getDataAs!string(); } @property ref inout(Json[string]) m_object() inout { return getDataAs!(Json[string])(); } @property ref inout(Json[]) m_array() inout { return getDataAs!(Json[])(); } Type m_type = Type.undefined; version (VibeJsonFieldNames) { string m_name; } } /** Represents the run time type of a JSON value. */ enum Type { undefined, /// A non-existent value in a JSON object null_, /// Null value bool_, /// Boolean value int_, /// 64-bit integer value bigInt, /// BigInt values float_, /// 64-bit floating point value string, /// UTF-8 string array, /// Array of JSON values object, /// JSON object aka. dictionary from string to Json Undefined = undefined, /// Compatibility alias - will be deprecated soon Null = null_, /// Compatibility alias - will be deprecated soon Bool = bool_, /// Compatibility alias - will be deprecated soon Int = int_, /// Compatibility alias - will be deprecated soon Float = float_, /// Compatibility alias - will be deprecated soon String = string, /// Compatibility alias - will be deprecated soon Array = array, /// Compatibility alias - will be deprecated soon Object = object /// Compatibility alias - will be deprecated soon } /// New JSON value of Type.Undefined static @property Json undefined() { return Json(); } /// New JSON value of Type.Object static @property Json emptyObject() { return Json(cast(Json[string])null); } /// New JSON value of Type.Array static @property Json emptyArray() { return Json(cast(Json[])null); } version(JsonLineNumbers) int line; /** Constructor for a JSON object. */ this(typeof(null)) @trusted { m_type = Type.null_; } /// ditto this(bool v) @trusted { m_type = Type.bool_; m_bool = v; } /// ditto this(byte v) { this(cast(long)v); } /// ditto this(ubyte v) { this(cast(long)v); } /// ditto this(short v) { this(cast(long)v); } /// ditto this(ushort v) { this(cast(long)v); } /// ditto this(int v) { this(cast(long)v); } /// ditto this(uint v) { this(cast(long)v); } /// ditto this(long v) @trusted { m_type = Type.int_; m_int = v; } /// ditto this(BigInt v) @trusted { m_type = Type.bigInt; initBigInt(); m_bigInt = v; } /// ditto this(double v) @trusted { m_type = Type.float_; m_float = v; } /// ditto this(string v) @trusted { m_type = Type.string; m_string = v; } /// ditto this(Json[] v) @trusted { m_type = Type.array; m_array = v; } /// ditto this(Json[string] v) @trusted { m_type = Type.object; m_object = v; } /** Converts a std.json.JSONValue object to a vibe Json object. */ this(in JSONValue value) @safe { final switch (value.type) { case JSON_TYPE.NULL: this = null; break; case JSON_TYPE.OBJECT: this = emptyObject; () @trusted { foreach (string k, ref const JSONValue v; value.object) this[k] = Json(v); } (); break; case JSON_TYPE.ARRAY: this = (() @trusted => Json(value.array.map!(a => Json(a)).array))(); break; case JSON_TYPE.STRING: this = value.str; break; case JSON_TYPE.INTEGER: this = value.integer; break; case JSON_TYPE.UINTEGER: this = BigInt(value.uinteger); break; case JSON_TYPE.FLOAT: this = value.floating; break; case JSON_TYPE.TRUE: this = true; break; case JSON_TYPE.FALSE: this = false; break; } } /** Allows assignment of D values to a JSON value. */ ref Json opAssign(Json v) { if (v.type != Type.bigInt) runDestructors(); auto old_type = m_type; m_type = v.m_type; final switch(m_type){ case Type.undefined: m_string = null; break; case Type.null_: m_string = null; break; case Type.bool_: m_bool = v.m_bool; break; case Type.int_: m_int = v.m_int; break; case Type.bigInt: if (old_type != Type.bigInt) initBigInt(); m_bigInt = v.m_bigInt; break; case Type.float_: m_float = v.m_float; break; case Type.string: m_string = v.m_string; break; case Type.array: opAssign(v.m_array); break; case Type.object: opAssign(v.m_object); break; } return this; } /// ditto void opAssign(typeof(null)) { runDestructors(); m_type = Type.null_; m_string = null; } /// ditto bool opAssign(bool v) { runDestructors(); m_type = Type.bool_; m_bool = v; return v; } /// ditto int opAssign(int v) { runDestructors(); m_type = Type.int_; m_int = v; return v; } /// ditto long opAssign(long v) { runDestructors(); m_type = Type.int_; m_int = v; return v; } /// ditto BigInt opAssign(BigInt v) { if (m_type != Type.bigInt) initBigInt(); m_type = Type.bigInt; m_bigInt = v; return v; } /// ditto double opAssign(double v) { runDestructors(); m_type = Type.float_; m_float = v; return v; } /// ditto string opAssign(string v) { runDestructors(); m_type = Type.string; m_string = v; return v; } /// ditto Json[] opAssign(Json[] v) { runDestructors(); m_type = Type.array; m_array = v; version (VibeJsonFieldNames) { foreach (idx, ref av; m_array) av.m_name = format("%s[%s]", m_name, idx); } return v; } /// ditto Json[string] opAssign(Json[string] v) { runDestructors(); m_type = Type.object; m_object = v; version (VibeJsonFieldNames) { foreach (key, ref av; m_object) av.m_name = format("%s.%s", m_name, key); } return v; } /** Allows removal of values from Type.Object Json objects. */ void remove(string item) { checkType!(Json[string])(); m_object.remove(item); } /** The current type id of this JSON object. */ @property Type type() const @safe { return m_type; } /** Clones a JSON value recursively. */ Json clone() const { final switch (m_type) { case Type.undefined: return Json.undefined; case Type.null_: return Json(null); case Type.bool_: return Json(m_bool); case Type.int_: return Json(m_int); case Type.bigInt: return Json(m_bigInt); case Type.float_: return Json(m_float); case Type.string: return Json(m_string); case Type.array: auto ret = Json.emptyArray; foreach (v; this.byValue) ret ~= v.clone(); return ret; case Type.object: auto ret = Json.emptyObject; foreach (name, v; this.byKeyValue) ret[name] = v.clone(); return ret; } } /** Allows direct indexing of array typed JSON values. */ ref inout(Json) opIndex(size_t idx) inout { checkType!(Json[])(); return m_array[idx]; } /// unittest { Json value = Json.emptyArray; value ~= 1; value ~= true; value ~= "foo"; assert(value[0] == 1); assert(value[1] == true); assert(value[2] == "foo"); } /** Allows direct indexing of object typed JSON values using a string as the key. Returns an object of `Type.undefined` if the key was not found. */ const(Json) opIndex(string key) const { checkType!(Json[string])(); if( auto pv = key in m_object ) return *pv; Json ret = Json.undefined; ret.m_string = key; version (VibeJsonFieldNames) ret.m_name = format("%s.%s", m_name, key); return ret; } /// ditto ref Json opIndex(string key) { checkType!(Json[string])(); if( auto pv = key in m_object ) return *pv; if (m_object is null) { m_object = ["": Json.init]; m_object.remove(""); } m_object[key] = Json.init; auto nv = key in m_object; assert(m_object !is null); assert(nv !is null, "Failed to insert key '"~key~"' into AA!?"); nv.m_type = Type.undefined; assert(nv.type == Type.undefined); nv.m_string = key; version (VibeJsonFieldNames) nv.m_name = format("%s.%s", m_name, key); return *nv; } /// unittest { Json value = Json.emptyObject; value["a"] = 1; value["b"] = true; value["c"] = "foo"; assert(value["a"] == 1); assert(value["b"] == true); assert(value["c"] == "foo"); assert(value["not-existing"].type() == Type.undefined); } /** Returns a slice of a JSON array. */ inout(Json[]) opSlice() inout { checkType!(Json[])(); return m_array; } /// inout(Json[]) opSlice(size_t from, size_t to) inout { checkType!(Json[])(); return m_array[from .. to]; } /** Returns the number of entries of string, array or object typed JSON values. */ @property size_t length() const @trusted { checkType!(string, Json[], Json[string])("property length"); switch(m_type){ case Type.string: return m_string.length; case Type.array: return m_array.length; case Type.object: return m_object.length; default: assert(false); } } /** Allows foreach iterating over JSON objects and arrays. */ int opApply(scope int delegate(ref Json obj) del) @system { checkType!(Json[], Json[string])("opApply"); if( m_type == Type.array ){ foreach( ref v; m_array ) if( auto ret = del(v) ) return ret; return 0; } else { foreach( ref v; m_object ) if( v.type != Type.undefined ) if( auto ret = del(v) ) return ret; return 0; } } /// ditto int opApply(scope int delegate(ref const Json obj) del) const @system { checkType!(Json[], Json[string])("opApply"); if( m_type == Type.array ){ foreach( ref v; m_array ) if( auto ret = del(v) ) return ret; return 0; } else { foreach( ref v; m_object ) if( v.type != Type.undefined ) if( auto ret = del(v) ) return ret; return 0; } } /// ditto int opApply(scope int delegate(ref size_t idx, ref Json obj) del) @system { checkType!(Json[])("opApply"); foreach( idx, ref v; m_array ) if( auto ret = del(idx, v) ) return ret; return 0; } /// ditto int opApply(scope int delegate(ref size_t idx, ref const Json obj) del) const @system { checkType!(Json[])("opApply"); foreach( idx, ref v; m_array ) if( auto ret = del(idx, v) ) return ret; return 0; } /// ditto int opApply(scope int delegate(ref string idx, ref Json obj) del) @system { checkType!(Json[string])("opApply"); foreach( idx, ref v; m_object ) if( v.type != Type.undefined ) if( auto ret = del(idx, v) ) return ret; return 0; } /// ditto int opApply(scope int delegate(ref string idx, ref const Json obj) del) const @system { checkType!(Json[string])("opApply"); foreach( idx, ref v; m_object ) if( v.type != Type.undefined ) if( auto ret = del(idx, v) ) return ret; return 0; } private alias KeyValue = Tuple!(string, "key", Json, "value"); /// Iterates over all key/value pairs of an object. @property auto byKeyValue() @trusted { checkType!(Json[string])("byKeyValue"); return m_object.byKeyValue.map!(kv => KeyValue(kv.key, kv.value)).trustedRange; } /// ditto @property auto byKeyValue() const @trusted { checkType!(Json[string])("byKeyValue"); return m_object.byKeyValue.map!(kv => const(KeyValue)(kv.key, kv.value)).trustedRange; } /// Iterates over all index/value pairs of an array. @property auto byIndexValue() { checkType!(Json[])("byIndexValue"); return zip(iota(0, m_array.length), m_array); } /// ditto @property auto byIndexValue() const { checkType!(Json[])("byIndexValue"); return zip(iota(0, m_array.length), m_array); } /// Iterates over all values of an object or array. @property auto byValue() @trusted { checkType!(Json[], Json[string])("byValue"); static struct Rng { private { bool isArray; Json[] array; typeof(Json.init.m_object.byValue) object; } bool empty() @trusted { if (isArray) return array.length == 0; else return object.empty; } auto front() @trusted { if (isArray) return array[0]; else return object.front; } void popFront() @trusted { if (isArray) array = array[1 .. $]; else object.popFront(); } } if (m_type == Type.array) return Rng(true, m_array); else return Rng(false, null, m_object.byValue); } /// ditto @property auto byValue() const @trusted { checkType!(Json[], Json[string])("byValue"); static struct Rng { @safe: private { bool isArray; const(Json)[] array; typeof(const(Json).init.m_object.byValue) object; } bool empty() @trusted { if (isArray) return array.length == 0; else return object.empty; } auto front() @trusted { if (isArray) return array[0]; else return object.front; } void popFront() @trusted { if (isArray) array = array[1 .. $]; else object.popFront(); } } if (m_type == Type.array) return Rng(true, m_array); else return Rng(false, null, m_object.byValue); } /** Converts this Json object to a std.json.JSONValue object */ T opCast(T)() const @safe if (is(T == JSONValue)) { final switch (type) { case Json.Type.undefined: case Json.Type.null_: return JSONValue(null); case Json.Type.bool_: return JSONValue(get!bool); case Json.Type.int_: return JSONValue(get!long); case Json.Type.bigInt: auto bi = get!BigInt; if (bi > long.max) return JSONValue((() @trusted => cast(ulong)get!BigInt)()); else return JSONValue((() @trusted => cast(long)get!BigInt)()); case Json.Type.float_: return JSONValue(get!double); case Json.Type.string: return JSONValue(get!string); case Json.Type.array: JSONValue[] ret; foreach (ref const Json e; byValue) ret ~= cast(JSONValue)e; return JSONValue(ret); case Json.Type.object: JSONValue[string] ret; foreach (string k, ref const Json e; byKeyValue) { if( e.type == Json.Type.undefined ) continue; ret[k] = cast(JSONValue)e; } return JSONValue(ret); } } /** Converts the JSON value to the corresponding D type - types must match exactly. Available_Types: $(UL $(LI `bool` (`Type.bool_`)) $(LI `double` (`Type.float_`)) $(LI `float` (Converted from `double`)) $(LI `long` (`Type.int_`)) $(LI `ulong`, `int`, `uint`, `short`, `ushort`, `byte`, `ubyte` (Converted from `long`)) $(LI `string` (`Type.string`)) $(LI `Json[]` (`Type.array`)) $(LI `Json[string]` (`Type.object`)) ) See_Also: `opt`, `to`, `deserializeJson` */ inout(T) opCast(T)() inout if (!is(T == JSONValue)) { return get!T; } /// ditto @property inout(T) get(T)() inout @trusted { static if (!is(T : bool) && is(T : long)) checkType!(long, BigInt)(); else checkType!T(); static if (is(T == bool)) return m_bool; else static if (is(T == double)) return m_float; else static if (is(T == float)) return cast(T)m_float; else static if (is(T == string)) return m_string; else static if (is(T == Json[])) return m_array; else static if (is(T == Json[string])) return m_object; else static if (is(T == BigInt)) return m_type == Type.bigInt ? m_bigInt : BigInt(m_int); else static if (is(T : long)) { if (m_type == Type.bigInt) { enforceJson(m_bigInt <= T.max && m_bigInt >= T.min, "Integer conversion out of bounds error"); return cast(T)m_bigInt.toLong(); } else { enforceJson(m_int <= T.max && m_int >= T.min, "Integer conversion out of bounds error"); return cast(T)m_int; } } else static assert(0, "JSON can only be cast to (bool, long, std.bigint.BigInt, double, string, Json[] or Json[string]. Not "~T.stringof~"."); } /** Returns the native type for this JSON if it matches the current runtime type. If the runtime type does not match the given native type, the 'def' parameter is returned instead. See_Also: `get` */ @property const(T) opt(T)(const(T) def = T.init) const { if( typeId!T != m_type ) return def; return get!T; } /// ditto @property T opt(T)(T def = T.init) { if( typeId!T != m_type ) return def; return get!T; } /** Converts the JSON value to the corresponding D type - types are converted as necessary. Automatically performs conversions between strings and numbers. See `get` for the list of available types. For converting/deserializing JSON to complex data types see `deserializeJson`. See_Also: `get`, `deserializeJson` */ @property inout(T) to(T)() inout { static if( is(T == bool) ){ final switch( m_type ){ case Type.undefined: return false; case Type.null_: return false; case Type.bool_: return m_bool; case Type.int_: return m_int != 0; case Type.bigInt: return m_bigInt != 0; case Type.float_: return m_float != 0; case Type.string: return m_string.length > 0; case Type.array: return m_array.length > 0; case Type.object: return m_object.length > 0; } } else static if( is(T == double) ){ final switch( m_type ){ case Type.undefined: return T.init; case Type.null_: return 0; case Type.bool_: return m_bool ? 1 : 0; case Type.int_: return m_int; case Type.bigInt: return bigIntToLong(); case Type.float_: return m_float; case Type.string: return .to!double(cast(string)m_string); case Type.array: return double.init; case Type.object: return double.init; } } else static if( is(T == float) ){ final switch( m_type ){ case Type.undefined: return T.init; case Type.null_: return 0; case Type.bool_: return m_bool ? 1 : 0; case Type.int_: return m_int; case Type.bigInt: return bigIntToLong(); case Type.float_: return m_float; case Type.string: return .to!float(cast(string)m_string); case Type.array: return float.init; case Type.object: return float.init; } } else static if( is(T == long) ){ final switch( m_type ){ case Type.undefined: return 0; case Type.null_: return 0; case Type.bool_: return m_bool ? 1 : 0; case Type.int_: return m_int; case Type.bigInt: return cast(long)bigIntToLong(); case Type.float_: return cast(long)m_float; case Type.string: return .to!long(m_string); case Type.array: return 0; case Type.object: return 0; } } else static if( is(T : long) ){ final switch( m_type ){ case Type.undefined: return 0; case Type.null_: return 0; case Type.bool_: return m_bool ? 1 : 0; case Type.int_: return cast(T)m_int; case Type.bigInt: return cast(T)bigIntToLong(); case Type.float_: return cast(T)m_float; case Type.string: return cast(T).to!long(cast(string)m_string); case Type.array: return 0; case Type.object: return 0; } } else static if( is(T == string) ){ switch( m_type ){ default: return toString(); case Type.string: return m_string; } } else static if( is(T == Json[]) ){ switch( m_type ){ default: return Json([this]); case Type.array: return m_array; } } else static if( is(T == Json[string]) ){ switch( m_type ){ default: return Json(["value": this]); case Type.object: return m_object; } } else static if( is(T == BigInt) ){ final switch( m_type ){ case Type.undefined: return BigInt(0); case Type.null_: return BigInt(0); case Type.bool_: return BigInt(m_bool ? 1 : 0); case Type.int_: return BigInt(m_int); case Type.bigInt: return m_bigInt; case Type.float_: return BigInt(cast(long)m_float); case Type.string: return BigInt(.to!long(m_string)); case Type.array: return BigInt(0); case Type.object: return BigInt(0); } } else static if (is(T == JSONValue)) { return cast(JSONValue)this; } else static assert(0, "JSON can only be cast to (bool, long, std.bigint.BigInt, double, string, Json[] or Json[string]. Not "~T.stringof~"."); } /** Performs unary operations on the JSON value. The following operations are supported for each type: $(DL $(DT Null) $(DD none) $(DT Bool) $(DD ~) $(DT Int) $(DD +, -, ++, --) $(DT Float) $(DD +, -, ++, --) $(DT String) $(DD none) $(DT Array) $(DD none) $(DT Object) $(DD none) ) */ Json opUnary(string op)() const { static if( op == "~" ){ checkType!bool(); return Json(~m_bool); } else static if( op == "+" || op == "-" || op == "++" || op == "--" ){ checkType!(BigInt, long, double)("unary "~op); if( m_type == Type.int_ ) mixin("return Json("~op~"m_int);"); else if( m_type == Type.bigInt ) mixin("return Json("~op~"m_bigInt);"); else if( m_type == Type.float_ ) mixin("return Json("~op~"m_float);"); else assert(false); } else static assert(0, "Unsupported operator '"~op~"' for type JSON."); } /** Performs binary operations between JSON values. The two JSON values must be of the same run time type or a JSONException will be thrown. Only the operations listed are allowed for each of the types. $(DL $(DT Null) $(DD none) $(DT Bool) $(DD &&, ||) $(DT Int) $(DD +, -, *, /, %) $(DT Float) $(DD +, -, *, /, %) $(DT String) $(DD ~) $(DT Array) $(DD ~) $(DT Object) $(DD in) ) */ Json opBinary(string op)(ref const(Json) other) const { enforceJson(m_type == other.m_type, "Binary operation '"~op~"' between "~.to!string(m_type)~" and "~.to!string(other.m_type)~" JSON objects."); static if( op == "&&" ){ checkType!(bool)(op); return Json(m_bool && other.m_bool); } else static if( op == "||" ){ checkType!(bool)(op); return Json(m_bool || other.m_bool); } else static if( op == "+" ){ checkType!(BigInt, long, double)(op); if( m_type == Type.int_ ) return Json(m_int + other.m_int); else if( m_type == Type.bigInt ) return Json(() @trusted { return m_bigInt + other.m_bigInt; } ()); else if( m_type == Type.float_ ) return Json(m_float + other.m_float); else assert(false); } else static if( op == "-" ){ checkType!(BigInt, long, double)(op); if( m_type == Type.int_ ) return Json(m_int - other.m_int); else if( m_type == Type.bigInt ) return Json(() @trusted { return m_bigInt - other.m_bigInt; } ()); else if( m_type == Type.float_ ) return Json(m_float - other.m_float); else assert(false); } else static if( op == "*" ){ checkType!(BigInt, long, double)(op); if( m_type == Type.int_ ) return Json(m_int * other.m_int); else if( m_type == Type.bigInt ) return Json(() @trusted { return m_bigInt * other.m_bigInt; } ()); else if( m_type == Type.float_ ) return Json(m_float * other.m_float); else assert(false); } else static if( op == "/" ){ checkType!(BigInt, long, double)(op); if( m_type == Type.int_ ) return Json(m_int / other.m_int); else if( m_type == Type.bigInt ) return Json(() @trusted { return m_bigInt / other.m_bigInt; } ()); else if( m_type == Type.float_ ) return Json(m_float / other.m_float); else assert(false); } else static if( op == "%" ){ checkType!(BigInt, long, double)(op); if( m_type == Type.int_ ) return Json(m_int % other.m_int); else if( m_type == Type.bigInt ) return Json(() @trusted { return m_bigInt % other.m_bigInt; } ()); else if( m_type == Type.float_ ) return Json(m_float % other.m_float); else assert(false); } else static if( op == "~" ){ checkType!(string, Json[])(op); if( m_type == Type.string ) return Json(m_string ~ other.m_string); else if (m_type == Type.array) return Json(m_array ~ other.m_array); else assert(false); } else static assert(0, "Unsupported operator '"~op~"' for type JSON."); } /// ditto Json opBinary(string op)(Json other) if( op == "~" ) { static if( op == "~" ){ checkType!(string, Json[])(op); if( m_type == Type.string ) return Json(m_string ~ other.m_string); else if( m_type == Type.array ) return Json(m_array ~ other.m_array); else assert(false); } else static assert(0, "Unsupported operator '"~op~"' for type JSON."); } /// ditto void opOpAssign(string op)(Json other) if (op == "+" || op == "-" || op == "*" || op == "/" || op == "%" || op =="~") { enforceJson(m_type == other.m_type || op == "~" && m_type == Type.array, "Binary operation '"~op~"=' between "~.to!string(m_type)~" and "~.to!string(other.m_type)~" JSON objects."); static if( op == "+" ){ if( m_type == Type.int_ ) m_int += other.m_int; else if( m_type == Type.bigInt ) m_bigInt += other.m_bigInt; else if( m_type == Type.float_ ) m_float += other.m_float; else enforceJson(false, "'+=' only allowed for scalar types, not "~.to!string(m_type)~"."); } else static if( op == "-" ){ if( m_type == Type.int_ ) m_int -= other.m_int; else if( m_type == Type.bigInt ) m_bigInt -= other.m_bigInt; else if( m_type == Type.float_ ) m_float -= other.m_float; else enforceJson(false, "'-=' only allowed for scalar types, not "~.to!string(m_type)~"."); } else static if( op == "*" ){ if( m_type == Type.int_ ) m_int *= other.m_int; else if( m_type == Type.bigInt ) m_bigInt *= other.m_bigInt; else if( m_type == Type.float_ ) m_float *= other.m_float; else enforceJson(false, "'*=' only allowed for scalar types, not "~.to!string(m_type)~"."); } else static if( op == "/" ){ if( m_type == Type.int_ ) m_int /= other.m_int; else if( m_type == Type.bigInt ) m_bigInt /= other.m_bigInt; else if( m_type == Type.float_ ) m_float /= other.m_float; else enforceJson(false, "'/=' only allowed for scalar types, not "~.to!string(m_type)~"."); } else static if( op == "%" ){ if( m_type == Type.int_ ) m_int %= other.m_int; else if( m_type == Type.bigInt ) m_bigInt %= other.m_bigInt; else if( m_type == Type.float_ ) m_float %= other.m_float; else enforceJson(false, "'%=' only allowed for scalar types, not "~.to!string(m_type)~"."); } else static if( op == "~" ){ if (m_type == Type.string) m_string ~= other.m_string; else if (m_type == Type.array) { if (other.m_type == Type.array) m_array ~= other.m_array; else appendArrayElement(other); } else enforceJson(false, "'~=' only allowed for string and array types, not "~.to!string(m_type)~"."); } else static assert(0, "Unsupported operator '"~op~"=' for type JSON."); } /// ditto void opOpAssign(string op, T)(T other) if (!is(T == Json) && is(typeof(Json(other)))) { opOpAssign!op(Json(other)); } /// ditto Json opBinary(string op)(bool other) const { checkType!bool(); mixin("return Json(m_bool "~op~" other);"); } /// ditto Json opBinary(string op)(long other) const { checkType!(long, BigInt)(); if (m_type == Type.bigInt) mixin("return Json(m_bigInt "~op~" other);"); else mixin("return Json(m_int "~op~" other);"); } /// ditto Json opBinary(string op)(BigInt other) const { checkType!(long, BigInt)(); if (m_type == Type.bigInt) mixin("return Json(m_bigInt "~op~" other);"); else mixin("return Json(m_int "~op~" other);"); } /// ditto Json opBinary(string op)(double other) const { checkType!double(); mixin("return Json(m_float "~op~" other);"); } /// ditto Json opBinary(string op)(string other) const { checkType!string(); mixin("return Json(m_string "~op~" other);"); } /// ditto Json opBinary(string op)(Json[] other) { checkType!(Json[])(); mixin("return Json(m_array "~op~" other);"); } /// ditto Json opBinaryRight(string op)(bool other) const { checkType!bool(); mixin("return Json(other "~op~" m_bool);"); } /// ditto Json opBinaryRight(string op)(long other) const { checkType!(long, BigInt)(); if (m_type == Type.bigInt) mixin("return Json(other "~op~" m_bigInt);"); else mixin("return Json(other "~op~" m_int);"); } /// ditto Json opBinaryRight(string op)(BigInt other) const { checkType!(long, BigInt)(); if (m_type == Type.bigInt) mixin("return Json(other "~op~" m_bigInt);"); else mixin("return Json(other "~op~" m_int);"); } /// ditto Json opBinaryRight(string op)(double other) const { checkType!double(); mixin("return Json(other "~op~" m_float);"); } /// ditto Json opBinaryRight(string op)(string other) const if(op == "~") { checkType!string(); return Json(other ~ m_string); } /// ditto Json opBinaryRight(string op)(Json[] other) { checkType!(Json[])(); mixin("return Json(other "~op~" m_array);"); } /** Checks wheter a particular key is set and returns a pointer to it. For field that don't exist or have a type of `Type.undefined`, the `in` operator will return `null`. */ inout(Json)* opBinaryRight(string op)(string other) inout if(op == "in") { checkType!(Json[string])(); auto pv = other in m_object; if (!pv) return null; if (pv.type == Type.undefined) return null; return pv; } /// unittest { auto j = Json.emptyObject; j["a"] = "foo"; j["b"] = Json.undefined; assert("a" in j); assert(("a" in j).get!string == "foo"); assert("b" !in j); assert("c" !in j); } /** * The append operator will append arrays. This method always appends it's argument as an array element, so nested arrays can be created. */ void appendArrayElement(Json element) { enforceJson(m_type == Type.array, "'appendArrayElement' only allowed for array types, not "~.to!string(m_type)~"."); m_array ~= element; } /** Compares two JSON values for equality. If the two values have different types, they are considered unequal. This differs with ECMA script, which performs a type conversion before comparing the values. */ bool opEquals(ref const Json other) const { if( m_type != other.m_type ) return false; final switch(m_type){ case Type.undefined: return false; case Type.null_: return true; case Type.bool_: return m_bool == other.m_bool; case Type.int_: return m_int == other.m_int; case Type.bigInt: return m_bigInt == other.m_bigInt; case Type.float_: return m_float == other.m_float; case Type.string: return m_string == other.m_string; case Type.array: return m_array == other.m_array; case Type.object: return m_object == other.m_object; } } /// ditto bool opEquals(const Json other) const { return opEquals(other); } /// ditto bool opEquals(typeof(null)) const { return m_type == Type.null_; } /// ditto bool opEquals(bool v) const { return m_type == Type.bool_ && m_bool == v; } /// ditto bool opEquals(int v) const { return (m_type == Type.int_ && m_int == v) || (m_type == Type.bigInt && m_bigInt == v); } /// ditto bool opEquals(long v) const { return (m_type == Type.int_ && m_int == v) || (m_type == Type.bigInt && m_bigInt == v); } /// ditto bool opEquals(BigInt v) const { return (m_type == Type.int_ && m_int == v) || (m_type == Type.bigInt && m_bigInt == v); } /// ditto bool opEquals(double v) const { return m_type == Type.float_ && m_float == v; } /// ditto bool opEquals(string v) const { return m_type == Type.string && m_string == v; } /** Compares two JSON values. If the types of the two values differ, the value with the smaller type id is considered the smaller value. This differs from ECMA script, which performs a type conversion before comparing the values. JSON values of type Object cannot be compared and will throw an exception. */ int opCmp(ref const Json other) const { if( m_type != other.m_type ) return m_type < other.m_type ? -1 : 1; final switch(m_type){ case Type.undefined: return 0; case Type.null_: return 0; case Type.bool_: return m_bool < other.m_bool ? -1 : m_bool == other.m_bool ? 0 : 1; case Type.int_: return m_int < other.m_int ? -1 : m_int == other.m_int ? 0 : 1; case Type.bigInt: return () @trusted { return m_bigInt < other.m_bigInt; } () ? -1 : m_bigInt == other.m_bigInt ? 0 : 1; case Type.float_: return m_float < other.m_float ? -1 : m_float == other.m_float ? 0 : 1; case Type.string: return m_string < other.m_string ? -1 : m_string == other.m_string ? 0 : 1; case Type.array: return m_array < other.m_array ? -1 : m_array == other.m_array ? 0 : 1; case Type.object: enforceJson(false, "JSON objects cannot be compared."); assert(false); } } alias opDollar = length; /** Returns the type id corresponding to the given D type. */ static @property Type typeId(T)() { static if( is(T == typeof(null)) ) return Type.null_; else static if( is(T == bool) ) return Type.bool_; else static if( is(T == double) ) return Type.float_; else static if( is(T == float) ) return Type.float_; else static if( is(T : long) ) return Type.int_; else static if( is(T == string) ) return Type.string; else static if( is(T == Json[]) ) return Type.array; else static if( is(T == Json[string]) ) return Type.object; else static if( is(T == BigInt) ) return Type.bigInt; else static assert(false, "Unsupported JSON type '"~T.stringof~"'. Only bool, long, std.bigint.BigInt, double, string, Json[] and Json[string] are allowed."); } /** Returns the JSON object as a string. For large JSON values use writeJsonString instead as this function will store the whole string in memory, whereas writeJsonString writes it out bit for bit. See_Also: writeJsonString, toPrettyString */ string toString() const @trusted { // DMD BUG: this should actually be all @safe, but for some reason // @safe inference for writeJsonString doesn't work. auto ret = appender!string(); writeJsonString(ret, this); return ret.data; } /// ditto void toString(scope void delegate(const(char)[]) @safe sink, FormatSpec!char fmt) @trusted { // DMD BUG: this should actually be all @safe, but for some reason // @safe inference for writeJsonString doesn't work. static struct DummyRangeS { void delegate(const(char)[]) @safe sink; void put(const(char)[] str) @safe { sink(str); } void put(char ch) @trusted { sink((&ch)[0 .. 1]); } } auto r = DummyRangeS(sink); writeJsonString(r, this); } /// ditto void toString(scope void delegate(const(char)[]) @system sink, FormatSpec!char fmt) @system { // DMD BUG: this should actually be all @safe, but for some reason // @safe inference for writeJsonString doesn't work. static struct DummyRange { void delegate(const(char)[]) sink; @trusted: void put(const(char)[] str) { sink(str); } void put(char ch) { sink((&ch)[0 .. 1]); } } auto r = DummyRange(sink); writeJsonString(r, this); } /** Returns the JSON object as a "pretty" string. --- auto json = Json(["foo": Json("bar")]); writeln(json.toPrettyString()); // output: // { // "foo": "bar" // } --- Params: level = Specifies the base amount of indentation for the output. Indentation is always done using tab characters. See_Also: writePrettyJsonString, toString */ string toPrettyString(int level = 0) const @trusted { auto ret = appender!string(); writePrettyJsonString(ret, this, level); return ret.data; } private void checkType(TYPES...)(string op = null) const { bool matched = false; foreach (T; TYPES) if (m_type == typeId!T) matched = true; if (matched) return; string name; version (VibeJsonFieldNames) { if (m_name.length) name = m_name ~ " of type " ~ m_type.to!string; else name = "JSON of type " ~ m_type.to!string; } else name = "JSON of type " ~ m_type.to!string; string expected; static if (TYPES.length == 1) expected = typeId!(TYPES[0]).to!string; else { foreach (T; TYPES) { if (expected.length > 0) expected ~= ", "; expected ~= typeId!T.to!string; } } if (!op.length) throw new JSONException(format("Got %s, expected %s.", name, expected)); else throw new JSONException(format("Got %s, expected %s for %s.", name, expected, op)); } private void initBigInt() @trusted { BigInt[1] init_; // BigInt is a struct, and it has a special BigInt.init value, which differs from null. // m_data has no special initializer and when it tries to first access to BigInt // via m_bigInt(), we should explicitly initialize m_data with BigInt.init m_data[0 .. BigInt.sizeof] = cast(void[])init_; } private void runDestructors() { if (m_type != Type.bigInt) return; BigInt init_; // After swaping, init_ contains the real number from Json, and it // will be destroyed when this function is finished. // m_bigInt now contains static BigInt.init value and destruction may // be ommited for it. swap(init_, m_bigInt); } private long bigIntToLong() inout { assert(m_type == Type.bigInt, format("Converting non-bigInt type with bitIntToLong!?: %s", cast(Type)m_type)); enforceJson(m_bigInt >= long.min && m_bigInt <= long.max, "Number out of range while converting BigInt("~format("%d", m_bigInt)~") to long."); return m_bigInt.toLong(); } /*invariant() { assert(m_type >= Type.Undefined && m_type <= Type.Object); }*/ } @safe unittest { // issue #1234 - @safe toString auto j = Json(true); j.toString((str) @safe {}, FormatSpec!char("s")); assert(j.toString() == "true"); } /******************************************************************************/ /* public functions */ /******************************************************************************/ /** Parses the given range as a JSON string and returns the corresponding Json object. The range is shrunk during parsing, leaving any remaining text that is not part of the JSON contents. Throws a JSONException if any parsing error occured. */ Json parseJson(R)(ref R range, int* line = null, string filename = null) if( is(R == string) ) { Json ret; enforceJson(!range.empty, "JSON string is empty.", filename, 0); skipWhitespace(range, line); enforceJson(!range.empty, "JSON string contains only whitespaces.", filename, 0); version(JsonLineNumbers) { int curline = line ? *line : 0; } bool minus = false; switch( range.front ){ case 'f': enforceJson(range[1 .. $].startsWith("alse"), "Expected 'false', got '"~range[0 .. min(5, $)]~"'.", filename, line); range.popFrontN(5); ret = false; break; case 'n': enforceJson(range[1 .. $].startsWith("ull"), "Expected 'null', got '"~range[0 .. min(4, $)]~"'.", filename, line); range.popFrontN(4); ret = null; break; case 't': enforceJson(range[1 .. $].startsWith("rue"), "Expected 'true', got '"~range[0 .. min(4, $)]~"'.", filename, line); range.popFrontN(4); ret = true; break; case '-': case '0': .. case '9': bool is_long_overflow; bool is_float; auto num = skipNumber(range, is_float, is_long_overflow); if( is_float ) { ret = to!double(num); } else if (is_long_overflow) { ret = () @trusted { return BigInt(num.to!string); } (); } else { ret = to!long(num); } break; case '\"': ret = skipJsonString(range); break; case '[': auto arr = appender!(Json[]); range.popFront(); while (true) { skipWhitespace(range, line); enforceJson(!range.empty, "Missing ']' before EOF.", filename, line); if(range.front == ']') break; arr ~= parseJson(range, line, filename); skipWhitespace(range, line); enforceJson(!range.empty, "Missing ']' before EOF.", filename, line); enforceJson(range.front == ',' || range.front == ']', format("Expected ']' or ',' - got '%s'.", range.front), filename, line); if( range.front == ']' ) break; else range.popFront(); } range.popFront(); ret = arr.data; break; case '{': Json[string] obj; range.popFront(); while (true) { skipWhitespace(range, line); enforceJson(!range.empty, "Missing '}' before EOF.", filename, line); if(range.front == '}') break; string key = skipJsonString(range); skipWhitespace(range, line); enforceJson(range.startsWith(":"), "Expected ':' for key '" ~ key ~ "'", filename, line); range.popFront(); skipWhitespace(range, line); Json itm = parseJson(range, line, filename); obj[key] = itm; skipWhitespace(range, line); enforceJson(!range.empty, "Missing '}' before EOF.", filename, line); enforceJson(range.front == ',' || range.front == '}', format("Expected '}' or ',' - got '%s'.", range.front), filename, line); if (range.front == '}') break; else range.popFront(); } range.popFront(); ret = obj; break; default: enforceJson(false, format("Expected valid JSON token, got '%s'.", range[0 .. min(12, $)]), filename, line); assert(false); } assert(ret.type != Json.Type.undefined); version(JsonLineNumbers) ret.line = curline; return ret; } /** Parses the given JSON string and returns the corresponding Json object. Throws a JSONException if any parsing error occurs. */ Json parseJsonString(string str, string filename = null) @safe { auto strcopy = str; int line = 0; auto ret = parseJson(strcopy, () @trusted { return &line; } (), filename); enforceJson(strcopy.strip().length == 0, "Expected end of string after JSON value.", filename, line); return ret; } @safe unittest { // These currently don't work at compile time assert(parseJsonString("17559991181826658461") == Json(BigInt(17559991181826658461UL))); assert(parseJsonString("99999999999999999999999999") == () @trusted { return Json(BigInt("99999999999999999999999999")); } ()); auto json = parseJsonString(`{"hey": "This is @à test éhééhhéhéé !%/??*&?\ud83d\udcec"}`); assert(json.toPrettyString() == parseJsonString(json.toPrettyString()).toPrettyString()); bool test() { assert(parseJsonString("null") == Json(null)); assert(parseJsonString("true") == Json(true)); assert(parseJsonString("false") == Json(false)); assert(parseJsonString("1") == Json(1)); assert(parseJsonString("2.0") == Json(2.0)); assert(parseJsonString("\"test\"") == Json("test")); assert(parseJsonString("[1, 2, 3]") == Json([Json(1), Json(2), Json(3)])); assert(parseJsonString("{\"a\": 1}") == Json(["a": Json(1)])); assert(parseJsonString(`"\\\/\b\f\n\r\t\u1234"`).get!string == "\\/\b\f\n\r\t\u1234"); return true; } // Run at compile time and runtime assert(test()); static assert(test()); } @safe unittest { bool test() { try parseJsonString(" \t\n "); catch (Exception e) assert(e.msg.endsWith("JSON string contains only whitespaces.")); try parseJsonString(`{"a": 1`); catch (Exception e) assert(e.msg.endsWith("Missing '}' before EOF.")); try parseJsonString(`{"a": 1 x`); catch (Exception e) assert(e.msg.endsWith("Expected '}' or ',' - got 'x'.")); try parseJsonString(`[1`); catch (Exception e) assert(e.msg.endsWith("Missing ']' before EOF.")); try parseJsonString(`[1 x`); catch (Exception e) assert(e.msg.endsWith("Expected ']' or ',' - got 'x'.")); return true; } // Run at compile time and runtime assert(test()); static assert(test()); } /** Serializes the given value to JSON. The following types of values are supported: $(DL $(DT `Json`) $(DD Used as-is) $(DT `null`) $(DD Converted to `Json.Type.null_`) $(DT `bool`) $(DD Converted to `Json.Type.bool_`) $(DT `float`, `double`) $(DD Converted to `Json.Type.float_`) $(DT `short`, `ushort`, `int`, `uint`, `long`, `ulong`) $(DD Converted to `Json.Type.int_`) $(DT `BigInt`) $(DD Converted to `Json.Type.bigInt`) $(DT `string`) $(DD Converted to `Json.Type.string`) $(DT `T[]`) $(DD Converted to `Json.Type.array`) $(DT `T[string]`) $(DD Converted to `Json.Type.object`) $(DT `struct`) $(DD Converted to `Json.Type.object`) $(DT `class`) $(DD Converted to `Json.Type.object` or `Json.Type.null_`) ) All entries of an array or an associative array, as well as all R/W properties and all public fields of a struct/class are recursively serialized using the same rules. Fields ending with an underscore will have the last underscore stripped in the serialized output. This makes it possible to use fields with D keywords as their name by simply appending an underscore. The following methods can be used to customize the serialization of structs/classes: --- Json toJson() const; static T fromJson(Json src); string toString() const; static T fromString(string src); --- The methods will have to be defined in pairs. The first pair that is implemented by the type will be used for serialization (i.e. `toJson` overrides `toString`). See_Also: `deserializeJson`, `vibe.data.serialization` */ Json serializeToJson(T)(T value) { return serialize!JsonSerializer(value); } /// ditto void serializeToJson(R, T)(R destination, T value) if (isOutputRange!(R, char) || isOutputRange!(R, ubyte)) { serialize!(JsonStringSerializer!R)(value, destination); } /// ditto string serializeToJsonString(T)(T value) { auto ret = appender!string; serializeToJson(ret, value); return ret.data; } /// @safe unittest { struct Foo { int number; string str; } Foo f; f.number = 12; f.str = "hello"; string json = serializeToJsonString(f); assert(json == `{"number":12,"str":"hello"}`); Json jsonval = serializeToJson(f); assert(jsonval.type == Json.Type.object); assert(jsonval["number"] == Json(12)); assert(jsonval["str"] == Json("hello")); } /** Serializes the given value to a pretty printed JSON string. See_also: `serializeToJson`, `vibe.data.serialization` */ void serializeToPrettyJson(R, T)(R destination, T value) if (isOutputRange!(R, char) || isOutputRange!(R, ubyte)) { serialize!(JsonStringSerializer!(R, true))(value, destination); } /// ditto string serializeToPrettyJson(T)(T value) { auto ret = appender!string; serializeToPrettyJson(ret, value); return ret.data; } /// @safe unittest { struct Foo { int number; string str; } Foo f; f.number = 12; f.str = "hello"; string json = serializeToPrettyJson(f); assert(json == `{ "number": 12, "str": "hello" }`); } /** Deserializes a JSON value into the destination variable. The same types as for `serializeToJson()` are supported and handled inversely. See_Also: `serializeToJson`, `serializeToJsonString`, `vibe.data.serialization` */ void deserializeJson(T)(ref T dst, Json src) { dst = deserializeJson!T(src); } /// ditto T deserializeJson(T)(Json src) { return deserialize!(JsonSerializer, T)(src); } /// ditto T deserializeJson(T, R)(R input) if (!is(R == Json) && isInputRange!R) { return deserialize!(JsonStringSerializer!R, T)(input); } /// @safe unittest { struct Foo { int number; string str; } Foo f = deserializeJson!Foo(`{"number": 12, "str": "hello"}`); assert(f.number == 12); assert(f.str == "hello"); } @safe unittest { import std.stdio; enum Foo : string { k = "test" } enum Boo : int { l = 5 } static struct S { float a; double b; bool c; int d; string e; byte f; ubyte g; long h; ulong i; float[] j; Foo k; Boo l; } immutable S t = {1.5, -3.0, true, int.min, "Test", -128, 255, long.min, ulong.max, [1.1, 1.2, 1.3], Foo.k, Boo.l}; S u; deserializeJson(u, serializeToJson(t)); assert(t.a == u.a); assert(t.b == u.b); assert(t.c == u.c); assert(t.d == u.d); assert(t.e == u.e); assert(t.f == u.f); assert(t.g == u.g); assert(t.h == u.h); assert(t.i == u.i); assert(t.j == u.j); assert(t.k == u.k); assert(t.l == u.l); } @safe unittest { assert(uint.max == serializeToJson(uint.max).deserializeJson!uint); assert(ulong.max == serializeToJson(ulong.max).deserializeJson!ulong); } unittest { static struct A { int value; static A fromJson(Json val) @safe { return A(val.get!int); } Json toJson() const @safe { return Json(value); } } static struct C { int value; static C fromString(string val) @safe { return C(val.to!int); } string toString() const @safe { return value.to!string; } } static struct D { int value; } assert(serializeToJson(const A(123)) == Json(123)); assert(serializeToJson(A(123)) == Json(123)); assert(serializeToJson(const C(123)) == Json("123")); assert(serializeToJson(C(123)) == Json("123")); assert(serializeToJson(const D(123)) == serializeToJson(["value": 123])); assert(serializeToJson(D(123)) == serializeToJson(["value": 123])); } unittest { auto d = Date(2001,1,1); deserializeJson(d, serializeToJson(Date.init)); assert(d == Date.init); deserializeJson(d, serializeToJson(Date(2001,1,1))); assert(d == Date(2001,1,1)); struct S { immutable(int)[] x; } S s; deserializeJson(s, serializeToJson(S([1,2,3]))); assert(s == S([1,2,3])); struct T { @optional S s; @optional int i; @optional float f_; // underscore strip feature @optional double d; @optional string str; } auto t = T(S([1,2,3])); deserializeJson(t, parseJsonString(`{ "s" : null, "i" : null, "f" : null, "d" : null, "str" : null }`)); assert(text(t) == text(T())); } unittest { static class C { @safe: int a; private int _b; @property int b() const { return _b; } @property void b(int v) { _b = v; } @property int test() const { return 10; } void test2() {} } C c = new C; c.a = 1; c.b = 2; C d; deserializeJson(d, serializeToJson(c)); assert(c.a == d.a); assert(c.b == d.b); } unittest { static struct C { @safe: int value; static C fromString(string val) { return C(val.to!int); } string toString() const { return value.to!string; } } enum Color { Red, Green, Blue } { static class T { @safe: string[Color] enumIndexedMap; string[C] stringableIndexedMap; this() { enumIndexedMap = [ Color.Red : "magenta", Color.Blue : "deep blue" ]; stringableIndexedMap = [ C(42) : "forty-two" ]; } } T original = new T; original.enumIndexedMap[Color.Green] = "olive"; T other; deserializeJson(other, serializeToJson(original)); assert(serializeToJson(other) == serializeToJson(original)); } { static struct S { string[Color] enumIndexedMap; string[C] stringableIndexedMap; } S *original = new S; original.enumIndexedMap = [ Color.Red : "magenta", Color.Blue : "deep blue" ]; original.enumIndexedMap[Color.Green] = "olive"; original.stringableIndexedMap = [ C(42) : "forty-two" ]; S other; deserializeJson(other, serializeToJson(original)); assert(serializeToJson(other) == serializeToJson(original)); } } unittest { import std.typecons : Nullable; struct S { Nullable!int a, b; } S s; s.a = 2; auto j = serializeToJson(s); assert(j["a"].type == Json.Type.int_); assert(j["b"].type == Json.Type.null_); auto t = deserializeJson!S(j); assert(!t.a.isNull() && t.a == 2); assert(t.b.isNull()); } unittest { // #840 int[2][2] nestedArray = 1; assert(nestedArray.serializeToJson.deserializeJson!(typeof(nestedArray)) == nestedArray); } unittest { // #1109 static class C { @safe: int mem; this(int m) { mem = m; } static C fromJson(Json j) { return new C(j.get!int-1); } Json toJson() const { return Json(mem+1); } } const c = new C(13); assert(serializeToJson(c) == Json(14)); assert(deserializeJson!C(Json(14)).mem == 13); } unittest { // const and mutable json Json j = Json(1); const k = Json(2); assert(serializeToJson(j) == Json(1)); assert(serializeToJson(k) == Json(2)); } unittest { // issue #1660 - deserialize AA whose key type is string-based enum enum Foo: string { Bar = "bar", Buzz = "buzz" } struct S { int[Foo] f; } const s = S([Foo.Bar: 2000]); assert(serializeToJson(s)["f"] == Json([Foo.Bar: Json(2000)])); auto j = Json.emptyObject; j["f"] = [Foo.Bar: Json(2000)]; assert(deserializeJson!S(j).f == [Foo.Bar: 2000]); } /** Serializer for a plain Json representation. See_Also: vibe.data.serialization.serialize, vibe.data.serialization.deserialize, serializeToJson, deserializeJson */ struct JsonSerializer { template isJsonBasicType(T) { enum isJsonBasicType = std.traits.isNumeric!T || isBoolean!T || is(T == string) || is(T == typeof(null)) || isJsonSerializable!T; } template isSupportedValueType(T) { enum isSupportedValueType = isJsonBasicType!T || is(T == Json) || is (T == JSONValue); } private { Json m_current; Json[] m_compositeStack; } this(Json data) @safe { m_current = data; } @disable this(this); // // serialization // Json getSerializedResult() @safe { return m_current; } void beginWriteDictionary(Traits)() { m_compositeStack ~= Json.emptyObject; } void endWriteDictionary(Traits)() { m_current = m_compositeStack[$-1]; m_compositeStack.length--; } void beginWriteDictionaryEntry(Traits)(string name) {} void endWriteDictionaryEntry(Traits)(string name) { m_compositeStack[$-1][name] = m_current; } void beginWriteArray(Traits)(size_t) { m_compositeStack ~= Json.emptyArray; } void endWriteArray(Traits)() { m_current = m_compositeStack[$-1]; m_compositeStack.length--; } void beginWriteArrayEntry(Traits)(size_t) {} void endWriteArrayEntry(Traits)(size_t) { m_compositeStack[$-1].appendArrayElement(m_current); } void writeValue(Traits, T)(in T value) if (!is(T == Json)) { static if (is(T == JSONValue)) { m_current = Json(value); } else static if (isJsonSerializable!T) { static if (!__traits(compiles, () @safe { return value.toJson(); } ())) pragma(msg, "Non-@safe toJson/fromJson methods are deprecated - annotate "~T.stringof~".toJson() with @safe."); m_current = () @trusted { return value.toJson(); } (); } else m_current = Json(value); } void writeValue(Traits, T)(Json value) if (is(T == Json)) { m_current = value; } void writeValue(Traits, T)(in Json value) if (is(T == Json)) { m_current = value.clone; } // // deserialization // void readDictionary(Traits)(scope void delegate(string) @safe field_handler) { enforceJson(m_current.type == Json.Type.object, "Expected JSON object, got "~m_current.type.to!string); auto old = m_current; foreach (string key, value; m_current.get!(Json[string])) { m_current = value; field_handler(key); } m_current = old; } void beginReadDictionaryEntry(Traits)(string name) {} void endReadDictionaryEntry(Traits)(string name) {} void readArray(Traits)(scope void delegate(size_t) @safe size_callback, scope void delegate() @safe entry_callback) { enforceJson(m_current.type == Json.Type.array, "Expected JSON array, got "~m_current.type.to!string); auto old = m_current; size_callback(m_current.length); foreach (ent; old.get!(Json[])) { m_current = ent; entry_callback(); } m_current = old; } void beginReadArrayEntry(Traits)(size_t index) {} void endReadArrayEntry(Traits)(size_t index) {} T readValue(Traits, T)() @safe { static if (is(T == Json)) return m_current; else static if (is(T == JSONValue)) return cast(JSONValue)m_current; else static if (isJsonSerializable!T) { static if (!__traits(compiles, () @safe { return T.fromJson(m_current); } ())) pragma(msg, "Non-@safe toJson/fromJson methods are deprecated - annotate "~T.stringof~".fromJson() with @safe."); return () @trusted { return T.fromJson(m_current); } (); } else static if (is(T == float) || is(T == double)) { switch (m_current.type) { default: return cast(T)m_current.get!long; case Json.Type.null_: goto case; case Json.Type.undefined: return T.nan; case Json.Type.float_: return cast(T)m_current.get!double; case Json.Type.bigInt: return cast(T)m_current.bigIntToLong(); } } else { return m_current.get!T(); } } bool tryReadNull(Traits)() { return m_current.type == Json.Type.null_; } } /** Serializer for a range based plain JSON string representation. See_Also: vibe.data.serialization.serialize, vibe.data.serialization.deserialize, serializeToJson, deserializeJson */ struct JsonStringSerializer(R, bool pretty = false) if (isInputRange!R || isOutputRange!(R, char)) { private { R m_range; size_t m_level = 0; } template isJsonBasicType(T) { enum isJsonBasicType = std.traits.isNumeric!T || isBoolean!T || is(T == string) || is(T == typeof(null)) || isJsonSerializable!T; } template isSupportedValueType(T) { enum isSupportedValueType = isJsonBasicType!T || is(T == Json) || is(T == JSONValue); } this(R range) { m_range = range; } @disable this(this); // // serialization // static if (isOutputRange!(R, char)) { private { bool m_firstInComposite; } void getSerializedResult() {} void beginWriteDictionary(Traits)() { startComposite(); m_range.put('{'); } void endWriteDictionary(Traits)() { endComposite(); m_range.put("}"); } void beginWriteDictionaryEntry(Traits)(string name) { startCompositeEntry(); m_range.put('"'); m_range.jsonEscape(name); static if (pretty) m_range.put(`": `); else m_range.put(`":`); } void endWriteDictionaryEntry(Traits)(string name) {} void beginWriteArray(Traits)(size_t) { startComposite(); m_range.put('['); } void endWriteArray(Traits)() { endComposite(); m_range.put(']'); } void beginWriteArrayEntry(Traits)(size_t) { startCompositeEntry(); } void endWriteArrayEntry(Traits)(size_t) {} void writeValue(Traits, T)(in T value) { static if (is(T == typeof(null))) m_range.put("null"); else static if (is(T == bool)) m_range.put(value ? "true" : "false"); else static if (is(T : long)) m_range.formattedWrite("%s", value); else static if (is(T == BigInt)) () @trusted { m_range.formattedWrite("%d", value); } (); else static if (is(T : real)) value == value ? m_range.formattedWrite("%.16g", value) : m_range.put("null"); else static if (is(T == string)) { m_range.put('"'); m_range.jsonEscape(value); m_range.put('"'); } else static if (is(T == Json)) m_range.writeJsonString(value); else static if (is(T == JSONValue)) m_range.writeJsonString(Json(value)); else static if (isJsonSerializable!T) { static if (!__traits(compiles, () @safe { return value.toJson(); } ())) pragma(msg, "Non-@safe toJson/fromJson methods are deprecated - annotate "~T.stringof~".toJson() with @safe."); m_range.writeJsonString!(R, pretty)(() @trusted { return value.toJson(); } (), m_level); } else static assert(false, "Unsupported type: " ~ T.stringof); } private void startComposite() { static if (pretty) m_level++; m_firstInComposite = true; } private void startCompositeEntry() { if (!m_firstInComposite) { m_range.put(','); } else { m_firstInComposite = false; } static if (pretty) indent(); } private void endComposite() { static if (pretty) { m_level--; if (!m_firstInComposite) indent(); } m_firstInComposite = false; } private void indent() { m_range.put('\n'); foreach (i; 0 .. m_level) m_range.put('\t'); } } // // deserialization // static if (isInputRange!(R)) { private { int m_line = 0; } void readDictionary(Traits)(scope void delegate(string) @safe entry_callback) { m_range.skipWhitespace(&m_line); enforceJson(!m_range.empty && m_range.front == '{', "Expecting object."); m_range.popFront(); bool first = true; while(true) { m_range.skipWhitespace(&m_line); enforceJson(!m_range.empty, "Missing '}'."); if (m_range.front == '}') { m_range.popFront(); break; } else if (!first) { enforceJson(m_range.front == ',', "Expecting ',' or '}', not '"~m_range.front.to!string~"'."); m_range.popFront(); m_range.skipWhitespace(&m_line); } else first = false; auto name = m_range.skipJsonString(&m_line); m_range.skipWhitespace(&m_line); enforceJson(!m_range.empty && m_range.front == ':', "Expecting ':', not '"~m_range.front.to!string~"'."); m_range.popFront(); entry_callback(name); } } void beginReadDictionaryEntry(Traits)(string name) {} void endReadDictionaryEntry(Traits)(string name) {} void readArray(Traits)(scope void delegate(size_t) @safe size_callback, scope void delegate() @safe entry_callback) { m_range.skipWhitespace(&m_line); enforceJson(!m_range.empty && m_range.front == '[', "Expecting array."); m_range.popFront(); bool first = true; while(true) { m_range.skipWhitespace(&m_line); enforceJson(!m_range.empty, "Missing ']'."); if (m_range.front == ']') { m_range.popFront(); break; } else if (!first) { enforceJson(m_range.front == ',', "Expecting ',' or ']'."); m_range.popFront(); } else first = false; entry_callback(); } } void beginReadArrayEntry(Traits)(size_t index) {} void endReadArrayEntry(Traits)(size_t index) {} T readValue(Traits, T)() { m_range.skipWhitespace(&m_line); static if (is(T == typeof(null))) { enforceJson(m_range.take(4).equal("null"), "Expecting 'null'."); return null; } else static if (is(T == bool)) { bool ret = m_range.front == 't'; string expected = ret ? "true" : "false"; foreach (ch; expected) { enforceJson(m_range.front == ch, "Expecting 'true' or 'false'."); m_range.popFront(); } return ret; } else static if (is(T : long)) { bool is_float; bool is_long_overflow; auto num = m_range.skipNumber(is_float, is_long_overflow); enforceJson(!is_float, "Expecting integer number."); enforceJson(!is_long_overflow, num.to!string~" is too big for long."); return to!T(num); } else static if (is(T : BigInt)) { bool is_float; bool is_long_overflow; auto num = m_range.skipNumber(is_float, is_long_overflow); enforceJson(!is_float, "Expecting integer number."); return BigInt(num); } else static if (is(T : real)) { bool is_float; bool is_long_overflow; auto num = m_range.skipNumber(is_float, is_long_overflow); return to!T(num); } else static if (is(T == string)) return m_range.skipJsonString(&m_line); else static if (is(T == Json)) return m_range.parseJson(&m_line); else static if (is(T == JSONValue)) return cast(JSONValue)m_range.parseJson(&m_line); else static if (isJsonSerializable!T) { static if (!__traits(compiles, () @safe { return T.fromJson(Json.init); } ())) pragma(msg, "Non-@safe toJson/fromJson methods are deprecated - annotate "~T.stringof~".fromJson() with @safe."); return () @trusted { return T.fromJson(m_range.parseJson(&m_line)); } (); } else static assert(false, "Unsupported type: " ~ T.stringof); } bool tryReadNull(Traits)() { m_range.skipWhitespace(&m_line); if (m_range.front != 'n') return false; foreach (ch; "null") { enforceJson(m_range.front == ch, "Expecting 'null'."); m_range.popFront(); } assert(m_range.empty || m_range.front != 'l'); return true; } } } unittest { assert(serializeToJsonString(double.nan) == "null"); assert(serializeToJsonString(Json()) == "null"); assert(serializeToJsonString(Json(["bar":Json("baz"),"foo":Json()])) == `{"bar":"baz"}`); struct Foo{Json bar = Json();} Foo f; assert(serializeToJsonString(f) == `{"bar":null}`); } /** Writes the given JSON object as a JSON string into the destination range. This function will convert the given JSON value to a string without adding any white space between tokens (no newlines, no indentation and no padding). The output size is thus minimized, at the cost of bad human readability. Params: dst = References the string output range to which the result is written. json = Specifies the JSON value that is to be stringified. See_Also: Json.toString, writePrettyJsonString */ void writeJsonString(R, bool pretty = false)(ref R dst, in Json json, size_t level = 0) @safe // if( isOutputRange!R && is(ElementEncodingType!R == char) ) { final switch( json.type ){ case Json.Type.undefined: dst.put("null"); break; case Json.Type.null_: dst.put("null"); break; case Json.Type.bool_: dst.put(json.get!bool ? "true" : "false"); break; case Json.Type.int_: formattedWrite(dst, "%d", json.get!long); break; case Json.Type.bigInt: () @trusted { formattedWrite(dst, "%d", json.get!BigInt); } (); break; case Json.Type.float_: auto d = json.get!double; if (d != d) dst.put("null"); // JSON has no NaN value so set null else formattedWrite(dst, "%.16g", json.get!double); break; case Json.Type.string: dst.put('\"'); jsonEscape(dst, json.get!string); dst.put('\"'); break; case Json.Type.array: dst.put('['); bool first = true; foreach (ref const Json e; json.byValue) { if( !first ) dst.put(","); first = false; static if (pretty) { dst.put('\n'); foreach (tab; 0 .. level+1) dst.put('\t'); } if (e.type == Json.Type.undefined) dst.put("null"); else writeJsonString!(R, pretty)(dst, e, level+1); } static if (pretty) { if (json.length > 0) { dst.put('\n'); foreach (tab; 0 .. level) dst.put('\t'); } } dst.put(']'); break; case Json.Type.object: dst.put('{'); bool first = true; foreach (string k, ref const Json e; json.byKeyValue) { if( e.type == Json.Type.undefined ) continue; if( !first ) dst.put(','); first = false; static if (pretty) { dst.put('\n'); foreach (tab; 0 .. level+1) dst.put('\t'); } dst.put('\"'); jsonEscape(dst, k); dst.put(pretty ? `": ` : `":`); writeJsonString!(R, pretty)(dst, e, level+1); } static if (pretty) { if (json.length > 0) { dst.put('\n'); foreach (tab; 0 .. level) dst.put('\t'); } } dst.put('}'); break; } } unittest { auto a = Json.emptyObject; a["a"] = Json.emptyArray; a["b"] = Json.emptyArray; a["b"] ~= Json(1); a["b"] ~= Json.emptyObject; assert(a.toString() == `{"a":[],"b":[1,{}]}` || a.toString() == `{"b":[1,{}],"a":[]}`); assert(a.toPrettyString() == `{ "a": [], "b": [ 1, {} ] }` || a.toPrettyString() == `{ "b": [ 1, {} ], "a": [] }`); } unittest { // #735 auto a = Json.emptyArray; a ~= "a"; a ~= Json(); a ~= "b"; a ~= null; a ~= "c"; assert(a.toString() == `["a",null,"b",null,"c"]`); } unittest { auto a = Json.emptyArray; a ~= Json(1); a ~= Json(2); a ~= Json(3); a ~= Json(4); a ~= Json(5); auto b = Json(a[0..a.length]); assert(a == b); auto c = Json(a[0..$]); assert(a == c); assert(b == c); auto d = [Json(1),Json(2),Json(3)]; assert(d == a[0..a.length-2]); assert(d == a[0..$-2]); } unittest { auto j = Json(double.init); assert(j.toString == "null"); // A double nan should serialize to null j = 17.04f; assert(j.toString == "17.04"); // A proper double should serialize correctly double d; deserializeJson(d, Json.undefined); // Json.undefined should deserialize to nan assert(d != d); deserializeJson(d, Json(null)); // Json.undefined should deserialize to nan assert(d != d); } /** Writes the given JSON object as a prettified JSON string into the destination range. The output will contain newlines and indents to make the output human readable. Params: dst = References the string output range to which the result is written. json = Specifies the JSON value that is to be stringified. level = Specifies the base amount of indentation for the output. Indentation is always done using tab characters. See_Also: Json.toPrettyString, writeJsonString */ void writePrettyJsonString(R)(ref R dst, in Json json, int level = 0) // if( isOutputRange!R && is(ElementEncodingType!R == char) ) { writeJsonString!(R, true)(dst, json, level); } /** Helper function that escapes all Unicode characters in a JSON string. */ string convertJsonToASCII(string json) { auto ret = appender!string; jsonEscape!true(ret, json); return ret.data; } /// private private void jsonEscape(bool escape_unicode = false, R)(ref R dst, string s) { size_t startPos = 0; void putInterval(size_t curPos) { if (curPos > startPos) dst.put(s[startPos..curPos]); startPos = curPos + 1; } for (size_t pos = 0; pos < s.length; pos++) { immutable(char) ch = s[pos]; switch (ch) { default: static if (escape_unicode) { if (ch <= 0x20 || ch >= 0x80) { putInterval(pos); import std.utf : decode; int len; dchar codepoint = decode(s, pos); /* codepoint is in BMP */ if(codepoint < 0x10000) { dst.formattedWrite("\\u%04X", codepoint); } /* not in BMP -> construct a UTF-16 surrogate pair */ else { int first, last; codepoint -= 0x10000; first = 0xD800 | ((codepoint & 0xffc00) >> 10); last = 0xDC00 | (codepoint & 0x003ff); dst.formattedWrite("\\u%04X\\u%04X", first, last); } startPos = pos; pos -= 1; } } else { if (ch < 0x20) { putInterval(pos); dst.formattedWrite("\\u%04X", ch); } } break; case '\\': putInterval(pos); dst.put("\\\\"); break; case '\r': putInterval(pos); dst.put("\\r"); break; case '\n': putInterval(pos); dst.put("\\n"); break; case '\t': putInterval(pos); dst.put("\\t"); break; case '\"': putInterval(pos); dst.put("\\\""); break; case '/': // this avoids the sequence "</" in the output, which is prone // to cross site scripting attacks when inserted into web pages if (pos > 0 && s[pos-1] == '<') { putInterval(pos); dst.put("\\/"); } break; } } // last interval putInterval(s.length); } /// private private string jsonUnescape(R)(ref R range) { auto ret = appender!string(); while(!range.empty){ auto ch = range.front; switch( ch ){ case '"': return ret.data; case '\\': range.popFront(); enforceJson(!range.empty, "Unterminated string escape sequence."); switch(range.front){ default: enforceJson(false, "Invalid string escape sequence."); break; case '"': ret.put('\"'); range.popFront(); break; case '\\': ret.put('\\'); range.popFront(); break; case '/': ret.put('/'); range.popFront(); break; case 'b': ret.put('\b'); range.popFront(); break; case 'f': ret.put('\f'); range.popFront(); break; case 'n': ret.put('\n'); range.popFront(); break; case 'r': ret.put('\r'); range.popFront(); break; case 't': ret.put('\t'); range.popFront(); break; case 'u': dchar decode_unicode_escape() { enforceJson(range.front == 'u'); range.popFront(); dchar uch = 0; foreach( i; 0 .. 4 ){ uch *= 16; enforceJson(!range.empty, "Unicode sequence must be '\\uXXXX'."); auto dc = range.front; range.popFront(); if( dc >= '0' && dc <= '9' ) uch += dc - '0'; else if( dc >= 'a' && dc <= 'f' ) uch += dc - 'a' + 10; else if( dc >= 'A' && dc <= 'F' ) uch += dc - 'A' + 10; else enforceJson(false, "Unicode sequence must be '\\uXXXX'."); } return uch; } auto uch = decode_unicode_escape(); if(0xD800 <= uch && uch <= 0xDBFF) { /* surrogate pair */ range.popFront(); // backslash '\' auto uch2 = decode_unicode_escape(); enforceJson(0xDC00 <= uch2 && uch2 <= 0xDFFF, "invalid Unicode"); { /* valid second surrogate */ uch = ((uch - 0xD800) << 10) + (uch2 - 0xDC00) + 0x10000; } } ret.put(uch); break; } break; default: ret.put(ch); range.popFront(); break; } } return ret.data; } private auto skipNumber(R)(ref R s, out bool is_float, out bool is_long_overflow) @safe if (isNarrowString!R) { auto r = s.representation; version (assert) auto rEnd = (() @trusted => r.ptr + r.length - 1)(); auto res = skipNumber(r, is_float, is_long_overflow); version (assert) assert(rEnd == (() @trusted => r.ptr + r.length - 1)()); // check nothing taken off the end s = s[$ - r.length .. $]; return res.assumeUTF(); } /// private private auto skipNumber(R)(ref R s, out bool is_float, out bool is_long_overflow) if (!isNarrowString!R && isForwardRange!R) { auto sOrig = s.save; size_t idx = 0; is_float = false; is_long_overflow = false; ulong int_part = 0; if (s.front == '-') { s.popFront(); ++idx; } if (s.front == '0') { s.popFront(); ++idx; } else { enforceJson(isDigit(s.front), "Digit expected at beginning of number."); int_part = s.front - '0'; s.popFront(); ++idx; while( !s.empty && isDigit(s.front) ) { if (!is_long_overflow) { auto dig = s.front - '0'; if ((long.max / 10) > int_part || ((long.max / 10) == int_part && (long.max % 10) >= dig)) { int_part *= 10; int_part += dig; } else { is_long_overflow = true; } } s.popFront(); ++idx; } } if( !s.empty && s.front == '.' ) { s.popFront(); ++idx; is_float = true; while( !s.empty && isDigit(s.front) ) { s.popFront(); ++idx; } } if( !s.empty && (s.front == 'e' || s.front == 'E') ) { s.popFront(); ++idx; is_float = true; if( !s.empty && (s.front == '+' || s.front == '-') ) { s.popFront(); ++idx; } enforceJson( !s.empty && isDigit(s.front), "Expected exponent." ~ sOrig.takeExactly(idx).to!string); s.popFront(); ++idx; while( !s.empty && isDigit(s.front) ) { s.popFront(); ++idx; } } return sOrig.takeExactly(idx); } unittest { import std.meta : AliasSeq; // test for string and for a simple range foreach (foo; AliasSeq!(to!string, map!"a")) { auto test_1 = foo("9223372036854775806"); // lower then long.max auto test_2 = foo("9223372036854775807"); // long.max auto test_3 = foo("9223372036854775808"); // greater then long.max bool is_float; bool is_long_overflow; test_1.skipNumber(is_float, is_long_overflow); assert(!is_long_overflow); test_2.skipNumber(is_float, is_long_overflow); assert(!is_long_overflow); test_3.skipNumber(is_float, is_long_overflow); assert(is_long_overflow); } } /// private private string skipJsonString(R)(ref R s, int* line = null) { // TODO: count or disallow any newlines inside of the string enforceJson(!s.empty && s.front == '"', "Expected '\"' to start string."); s.popFront(); string ret = jsonUnescape(s); enforceJson(!s.empty && s.front == '"', "Expected '\"' to terminate string."); s.popFront(); return ret; } /// private private void skipWhitespace(R)(ref R s, int* line = null) { while (!s.empty) { switch (s.front) { default: return; case ' ', '\t': s.popFront(); break; case '\n': s.popFront(); if (!s.empty && s.front == '\r') s.popFront(); if (line) (*line)++; break; case '\r': s.popFront(); if (!s.empty && s.front == '\n') s.popFront(); if (line) (*line)++; break; } } } private bool isDigit(dchar ch) @safe nothrow pure { return ch >= '0' && ch <= '9'; } private string underscoreStrip(string field_name) @safe nothrow pure { if( field_name.length < 1 || field_name[$-1] != '_' ) return field_name; else return field_name[0 .. $-1]; } /// private package template isJsonSerializable(T) { enum isJsonSerializable = is(typeof(T.init.toJson()) == Json) && is(typeof(T.fromJson(Json())) == T); } private void enforceJson(string file = __FILE__, size_t line = __LINE__)(bool cond, lazy string message = "JSON exception") { import vibe.internal.exception : enforce; enforce!JSONException(cond, message, file, line); } private void enforceJson(string file = __FILE__, size_t line = __LINE__)(bool cond, lazy string message, string err_file, int err_line) { import vibe.internal.exception : enforce; enforce!JSONException(cond, format("%s(%s): Error: %s", err_file, err_line+1, message), file, line); } private void enforceJson(string file = __FILE__, size_t line = __LINE__)(bool cond, lazy string message, string err_file, int* err_line) { enforceJson!(file, line)(cond, message, err_file, err_line ? *err_line : -1); } private auto trustedRange(R)(R range) { static struct Rng { private R range; @property bool empty() @trusted { return range.empty; } @property auto front() @trusted { return range.front; } void popFront() @trusted { range.popFront(); } } return Rng(range); } // test for vibe.utils.DictionaryList @safe unittest { import vibe.utils.dictionarylist; static assert(isCustomSerializable!(DictionaryList!int)); DictionaryList!(int, false) b; b.addField("a", 1); b.addField("A", 2); auto app = appender!string(); serializeToJson(app, b); assert(app.data == `[{"key":"a","value":1},{"key":"A","value":2}]`, app.data); DictionaryList!(int, true, 2) c; c.addField("a", 1); c.addField("b", 2); c.addField("a", 3); c.remove("b"); auto appc = appender!string(); serializeToJson(appc, c); assert(appc.data == `[{"key":"a","value":1},{"key":"a","value":3}]`, appc.data); } // make sure Json is usable for CTFE @safe unittest { static assert(is(typeof({ struct Test { Json object_ = Json.emptyObject; Json array = Json.emptyArray; } })), "CTFE for Json type failed."); static Json test() { Json j; j = Json(42); j = Json([Json(true)]); j = Json(["foo": Json(null)]); j = Json("foo"); return j; } enum j = test(); static assert(j == Json("foo")); } @safe unittest { // XSS prevention assert(Json("</script>some/path").toString() == `"<\/script>some/path"`); assert(serializeToJsonString("</script>some/path") == `"<\/script>some/path"`); } @system unittest { // Recursive structures static struct Bar { Bar[] foos; int i; } auto b = deserializeJson!Bar(`{"i":1,"foos":[{"foos":[],"i":2}]}`); assert(b.i == 1); assert(b.foos.length == 1); assert(b.foos[0].i == 2); assert(b.foos[0].foos.length == 0); } @safe unittest { // Json <-> std.json.JSONValue auto astr = `{ "null": null, "string": "Hello", "integer": 123456, "uinteger": 18446744073709551614, "float": 12.34, "object": { "hello": "world" }, "array": [1, 2, "string"], "true": true, "false": false }`; auto a = parseJsonString(astr); // test JSONValue -> Json conversion assert(Json(cast(JSONValue)a) == a); // test Json -> JSONValue conversion auto v = cast(JSONValue)a; assert(deserializeJson!JSONValue(serializeToJson(v)) == v); // test JSON strint <-> JSONValue serialization assert(deserializeJson!JSONValue(astr) == v); assert(parseJsonString(serializeToJsonString(v)) == a); // test using std.conv for the conversion import std.conv : to; assert(a.to!JSONValue.to!Json == a); assert(to!Json(to!JSONValue(a)) == a); }
D
// Compiler implementation of the D programming language // Copyright (c) 1999-2015 by Digital Mars // All Rights Reserved // written by Walter Bright // http://www.digitalmars.com // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt module ddmd.dstruct; import ddmd.aggregate; import ddmd.argtypes; import ddmd.arraytypes; import ddmd.backend; import ddmd.clone; import ddmd.declaration; import ddmd.dmodule; import ddmd.doc; import ddmd.dscope; import ddmd.dsymbol; import ddmd.dtemplate; import ddmd.errors; import ddmd.expression; import ddmd.func; import ddmd.globals; import ddmd.hdrgen; import ddmd.id; import ddmd.identifier; import ddmd.init; import ddmd.mtype; import ddmd.opover; import ddmd.root.outbuffer; import ddmd.statement; import ddmd.tokens; import ddmd.typinf; import ddmd.visitor; /*************************************** * Search toString member function for TypeInfo_Struct. * string toString(); */ extern (C++) FuncDeclaration search_toString(StructDeclaration sd) { Dsymbol s = search_function(sd, Id.tostring); FuncDeclaration fd = s ? s.isFuncDeclaration() : null; if (fd) { static __gshared TypeFunction tftostring; if (!tftostring) { tftostring = new TypeFunction(null, Type.tstring, 0, LINKd); tftostring = cast(TypeFunction)tftostring.merge(); } fd = fd.overloadExactMatch(tftostring); } return fd; } /*************************************** * Request additonal semantic analysis for TypeInfo generation. */ extern (C++) void semanticTypeInfo(Scope* sc, Type t) { extern (C++) final class FullTypeInfoVisitor : Visitor { alias visit = super.visit; public: Scope* sc; void visit(Type t) { Type tb = t.toBasetype(); if (tb != t) tb.accept(this); } void visit(TypeNext t) { if (t.next) t.next.accept(this); } void visit(TypeBasic t) { } void visit(TypeVector t) { t.basetype.accept(this); } void visit(TypeAArray t) { t.index.accept(this); visit(cast(TypeNext)t); } void visit(TypeFunction t) { visit(cast(TypeNext)t); // Currently TypeInfo_Function doesn't store parameter types. } void visit(TypeStruct t) { StructDeclaration sd = t.sym; if (!sd.members) return; // opaque struct if (sd.semanticRun >= PASSsemantic3) return; // semantic3 will be done if (!sd.xeq && !sd.xcmp && !sd.postblit && !sd.dtor && !sd.xhash && !search_toString(sd)) return; // none of TypeInfo-specific members // If the struct is in a non-root module, run semantic3 to get // correct symbols for the member function. if (TemplateInstance ti = sd.isInstantiated()) { if (ti.minst && !ti.minst.isRoot()) Module.addDeferredSemantic3(sd); } else { if (sd.inNonRoot()) { //printf("deferred sem3 for TypeInfo - sd = %s, inNonRoot = %d\n", sd->toChars(), sd->inNonRoot()); Module.addDeferredSemantic3(sd); } } if (!sc) // inline may request TypeInfo. { Scope scx; scx._module = sd.getModule(); getTypeInfoType(t, &scx); } else getTypeInfoType(t, sc); if (!sc || sc.minst) sd.requestTypeInfo = true; } void visit(TypeClass t) { } void visit(TypeTuple t) { if (t.arguments) { for (size_t i = 0; i < t.arguments.dim; i++) { Type tprm = (*t.arguments)[i].type; if (tprm) tprm.accept(this); } } } } scope FullTypeInfoVisitor v = new FullTypeInfoVisitor(); v.sc = sc; t.accept(v); } struct StructFlags { alias Type = uint; enum Enum : int { hasPointers = 0x1, // NB: should use noPointers as in ClassFlags } alias hasPointers = Enum.hasPointers; } enum StructPOD : int { ISPODno, // struct is not POD ISPODyes, // struct is POD ISPODfwd, // POD not yet computed } alias ISPODno = StructPOD.ISPODno; alias ISPODyes = StructPOD.ISPODyes; alias ISPODfwd = StructPOD.ISPODfwd; extern (C++) class StructDeclaration : AggregateDeclaration { public: int zeroInit; // !=0 if initialize with 0 fill bool hasIdentityAssign; // true if has identity opAssign bool hasIdentityEquals; // true if has identity opEquals FuncDeclarations postblits; // Array of postblit functions FuncDeclaration postblit; // aggregate postblit FuncDeclaration xeq; // TypeInfo_Struct.xopEquals FuncDeclaration xcmp; // TypeInfo_Struct.xopCmp FuncDeclaration xhash; // TypeInfo_Struct.xtoHash extern (C++) static __gshared FuncDeclaration xerreq; // object.xopEquals extern (C++) static __gshared FuncDeclaration xerrcmp; // object.xopCmp structalign_t alignment; // alignment applied outside of the struct StructPOD ispod; // if struct is POD // For 64 bit Efl function call/return ABI Type arg1type; Type arg2type; // Even if struct is defined as non-root symbol, some built-in operations // (e.g. TypeidExp, NewExp, ArrayLiteralExp, etc) request its TypeInfo. // For those, today TypeInfo_Struct is generated in COMDAT. bool requestTypeInfo; /********************************* StructDeclaration ****************************/ final extern (D) this(Loc loc, Identifier id) { super(loc, id); zeroInit = 0; // assume false until we do semantic processing hasIdentityAssign = false; hasIdentityEquals = false; postblit = null; xeq = null; xcmp = null; xhash = null; alignment = 0; ispod = ISPODfwd; arg1type = null; arg2type = null; requestTypeInfo = false; // For forward references type = new TypeStruct(this); if (id == Id.ModuleInfo && !Module.moduleinfo) Module.moduleinfo = this; } Dsymbol syntaxCopy(Dsymbol s) { StructDeclaration sd = s ? cast(StructDeclaration)s : new StructDeclaration(loc, ident); return ScopeDsymbol.syntaxCopy(sd); } final void semantic(Scope* sc) { //printf("+StructDeclaration::semantic(this=%p, %s '%s', sizeok = %d)\n", this, parent->toChars(), toChars(), sizeok); //static int count; if (++count == 20) halt(); if (semanticRun >= PASSsemanticdone) return; uint dprogress_save = Module.dprogress; int errors = global.errors; Scope* scx = null; if (_scope) { sc = _scope; scx = _scope; // save so we don't make redundant copies _scope = null; } if (!parent) { assert(sc.parent && sc.func); parent = sc.parent; } assert(parent && !isAnonymous()); type = type.semantic(loc, sc); if (type.ty == Tstruct && (cast(TypeStruct)type).sym != this) { TemplateInstance ti = (cast(TypeStruct)type).sym.isInstantiated(); if (ti && isError(ti)) (cast(TypeStruct)type).sym = this; } // Ungag errors when not speculative Ungag ungag = ungagSpeculative(); if (semanticRun == PASSinit) { protection = sc.protection; alignment = sc.structalign; storage_class |= sc.stc; if (storage_class & STCdeprecated) isdeprecated = true; if (storage_class & STCabstract) error("structs, unions cannot be abstract"); userAttribDecl = sc.userAttribDecl; } else if (symtab && !scx) { semanticRun = PASSsemanticdone; return; } semanticRun = PASSsemantic; if (!members) // if opaque declaration { semanticRun = PASSsemanticdone; return; } if (!symtab) symtab = new DsymbolTable(); if (sizeok == SIZEOKnone) // if not already done the addMember step { for (size_t i = 0; i < members.dim; i++) { Dsymbol s = (*members)[i]; //printf("adding member '%s' to '%s'\n", s->toChars(), this->toChars()); s.addMember(sc, this); } } Scope* sc2 = sc.push(this); sc2.stc &= STCsafe | STCtrusted | STCsystem; sc2.parent = this; if (isUnionDeclaration()) sc2.inunion = 1; sc2.protection = Prot(PROTpublic); sc2.explicitProtection = 0; sc2.structalign = STRUCTALIGN_DEFAULT; sc2.userAttribDecl = null; if (sizeok == SIZEOKdone) goto LafterSizeok; sizeok = SIZEOKnone; /* Set scope so if there are forward references, we still might be able to * resolve individual members like enums. */ for (size_t i = 0; i < members.dim; i++) { Dsymbol s = (*members)[i]; //printf("struct: setScope %s %s\n", s->kind(), s->toChars()); s.setScope(sc2); } for (size_t i = 0; i < members.dim; i++) { Dsymbol s = (*members)[i]; s.importAll(sc2); } for (size_t i = 0; i < members.dim; i++) { Dsymbol s = (*members)[i]; s.semantic(sc2); } finalizeSize(sc2); if (sizeok == SIZEOKfwd) { // semantic() failed because of forward references. // Unwind what we did, and defer it for later for (size_t i = 0; i < fields.dim; i++) { VarDeclaration v = fields[i]; v.offset = 0; } fields.setDim(0); structsize = 0; alignsize = 0; sc2.pop(); _scope = scx ? scx : sc.copy(); _scope.setNoFree(); _scope._module.addDeferredSemantic(this); Module.dprogress = dprogress_save; //printf("\tdeferring %s\n", toChars()); return; } Module.dprogress++; //printf("-StructDeclaration::semantic(this=%p, '%s')\n", this, toChars()); LafterSizeok: // The additions of special member functions should have its own // sub-semantic analysis pass, and have to be deferred sometimes. // See the case in compilable/test14838.d for (size_t i = 0; i < fields.dim; i++) { VarDeclaration v = fields[i]; Type tb = v.type.baseElemOf(); if (tb.ty != Tstruct) continue; StructDeclaration sd = (cast(TypeStruct)tb).sym; if (sd.semanticRun >= PASSsemanticdone) continue; sc2.pop(); _scope = scx ? scx : sc.copy(); _scope.setNoFree(); _scope._module.addDeferredSemantic(this); //printf("\tdeferring %s\n", toChars()); return; } /* Look for special member functions. */ aggNew = cast(NewDeclaration)search(Loc(), Id.classNew); aggDelete = cast(DeleteDeclaration)search(Loc(), Id.classDelete); // this->ctor is already set in finalizeSize() dtor = buildDtor(this, sc2); postblit = buildPostBlit(this, sc2); buildOpAssign(this, sc2); buildOpEquals(this, sc2); xeq = buildXopEquals(this, sc2); xcmp = buildXopCmp(this, sc2); xhash = buildXtoHash(this, sc2); /* Even if the struct is merely imported and its semantic3 is not run, * the TypeInfo object would be speculatively stored in each object * files. To set correct function pointer, run semantic3 for xeq and xcmp. */ //if ((xeq && xeq != xerreq || xcmp && xcmp != xerrcmp) && isImportedSym(this)) // Module::addDeferredSemantic3(this); /* Defer requesting semantic3 until TypeInfo generation is actually invoked. * See semanticTypeInfo(). */ inv = buildInv(this, sc2); sc2.pop(); if (ctor) { Dsymbol scall = search(Loc(), Id.call); if (scall) { uint xerrors = global.startGagging(); sc = sc.push(); sc.tinst = null; sc.minst = null; FuncDeclaration fcall = resolveFuncCall(loc, sc, scall, null, null, null, 1); sc = sc.pop(); global.endGagging(xerrors); if (fcall && fcall.isStatic()) { error(fcall.loc, "static opCall is hidden by constructors and can never be called"); errorSupplemental(fcall.loc, "Please use a factory method instead, or replace all constructors with static opCall."); } } } Module.dprogress++; semanticRun = PASSsemanticdone; TypeTuple tup = toArgTypes(type); size_t dim = tup.arguments.dim; if (dim >= 1) { assert(dim <= 2); arg1type = (*tup.arguments)[0].type; if (dim == 2) arg2type = (*tup.arguments)[1].type; } if (sc.func) semantic2(sc); if (global.errors != errors) { // The type is no good. type = Type.terror; this.errors = true; if (deferred) deferred.errors = true; } if (deferred && !global.gag) { deferred.semantic2(sc); deferred.semantic3(sc); } version (none) { if (type.ty == Tstruct && (cast(TypeStruct)type).sym != this) { printf("this = %p %s\n", this, this.toChars()); printf("type = %d sym = %p\n", type.ty, (cast(TypeStruct)type).sym); } } assert(type.ty != Tstruct || (cast(TypeStruct)type).sym == this); } final void semanticTypeInfoMembers() { if (xeq && xeq._scope && xeq.semanticRun < PASSsemantic3done) { uint errors = global.startGagging(); xeq.semantic3(xeq._scope); if (global.endGagging(errors)) xeq = xerreq; } if (xcmp && xcmp._scope && xcmp.semanticRun < PASSsemantic3done) { uint errors = global.startGagging(); xcmp.semantic3(xcmp._scope); if (global.endGagging(errors)) xcmp = xerrcmp; } FuncDeclaration ftostr = search_toString(this); if (ftostr && ftostr._scope && ftostr.semanticRun < PASSsemantic3done) { ftostr.semantic3(ftostr._scope); } if (xhash && xhash._scope && xhash.semanticRun < PASSsemantic3done) { xhash.semantic3(xhash._scope); } if (postblit && postblit._scope && postblit.semanticRun < PASSsemantic3done) { postblit.semantic3(postblit._scope); } if (dtor && dtor._scope && dtor.semanticRun < PASSsemantic3done) { dtor.semantic3(dtor._scope); } } final Dsymbol search(Loc loc, Identifier ident, int flags = IgnoreNone) { //printf("%s.StructDeclaration::search('%s')\n", toChars(), ident->toChars()); if (_scope && !symtab) semantic(_scope); if (!members || !symtab) // opaque or semantic() is not yet called { error("is forward referenced when looking for '%s'", ident.toChars()); return null; } return ScopeDsymbol.search(loc, ident, flags); } const(char)* kind() { return "struct"; } final void finalizeSize(Scope* sc) { //printf("StructDeclaration::finalizeSize() %s\n", toChars()); if (sizeok != SIZEOKnone) return; // Set the offsets of the fields and determine the size of the struct uint offset = 0; bool isunion = isUnionDeclaration() !is null; for (size_t i = 0; i < members.dim; i++) { Dsymbol s = (*members)[i]; s.setFieldOffset(this, &offset, isunion); } if (sizeok == SIZEOKfwd) return; // 0 sized struct's are set to 1 byte if (structsize == 0) { structsize = 1; alignsize = 1; } // Round struct size up to next alignsize boundary. // This will ensure that arrays of structs will get their internals // aligned properly. if (alignment == STRUCTALIGN_DEFAULT) structsize = (structsize + alignsize - 1) & ~(alignsize - 1); else structsize = (structsize + alignment - 1) & ~(alignment - 1); sizeok = SIZEOKdone; // Calculate fields[i]->overlapped fill(loc, null, true); // Determine if struct is all zeros or not zeroInit = 1; for (size_t i = 0; i < fields.dim; i++) { VarDeclaration vd = fields[i]; if (!vd.isDataseg()) { if (vd._init) { // Should examine init to see if it is really all 0's zeroInit = 0; break; } else { if (!vd.type.isZeroInit(loc)) { zeroInit = 0; break; } } } } // Look for the constructor, for the struct literal/constructor call expression ctor = searchCtor(); if (ctor) { // Finish all constructors semantics to determine this->noDefaultCtor. struct SearchCtor { extern (C++) static int fp(Dsymbol s, void* ctxt) { CtorDeclaration f = s.isCtorDeclaration(); if (f && f.semanticRun == PASSinit) f.semantic(null); return 0; } } for (size_t i = 0; i < members.dim; i++) { Dsymbol s = (*members)[i]; s.apply(&SearchCtor.fp, null); } } } /*************************************** * Fit elements[] to the corresponding type of field[]. * Input: * loc * sc * elements The explicit arguments that given to construct object. * stype The constructed object type. * Returns false if any errors occur. * Otherwise, returns true and elements[] are rewritten for the output. */ final bool fit(Loc loc, Scope* sc, Expressions* elements, Type stype) { if (!elements) return true; size_t nfields = fields.dim - isNested(); size_t offset = 0; for (size_t i = 0; i < elements.dim; i++) { Expression e = (*elements)[i]; if (!e) continue; e = resolveProperties(sc, e); if (i >= nfields) { if (i == fields.dim - 1 && isNested() && e.op == TOKnull) { // CTFE sometimes creates null as hidden pointer; we'll allow this. continue; } .error(loc, "more initializers than fields (%d) of %s", nfields, toChars()); return false; } VarDeclaration v = fields[i]; if (v.offset < offset) { .error(loc, "overlapping initialization for %s", v.toChars()); return false; } offset = cast(uint)(v.offset + v.type.size()); Type t = v.type; if (stype) t = t.addMod(stype.mod); Type origType = t; Type tb = t.toBasetype(); /* Look for case of initializing a static array with a too-short * string literal, such as: * char[5] foo = "abc"; * Allow this by doing an explicit cast, which will lengthen the string * literal. */ if (e.op == TOKstring && tb.ty == Tsarray) { StringExp se = cast(StringExp)e; Type typeb = se.type.toBasetype(); TY tynto = tb.nextOf().ty; if (!se.committed && (typeb.ty == Tarray || typeb.ty == Tsarray) && (tynto == Tchar || tynto == Twchar || tynto == Tdchar) && se.length(cast(int)tb.nextOf().size()) < (cast(TypeSArray)tb).dim.toInteger()) { e = se.castTo(sc, t); goto L1; } } while (!e.implicitConvTo(t) && tb.ty == Tsarray) { /* Static array initialization, as in: * T[3][5] = e; */ t = tb.nextOf(); tb = t.toBasetype(); } if (!e.implicitConvTo(t)) t = origType; // restore type for better diagnostic e = e.implicitCastTo(sc, t); L1: if (e.op == TOKerror) return false; (*elements)[i] = e.isLvalue() ? callCpCtor(sc, e) : valueNoDtor(e); } return true; } /*************************************** * Fill out remainder of elements[] with default initializers for fields[]. * Input: * loc * elements explicit arguments which given to construct object. * ctorinit true if the elements will be used for default initialization. * Returns false if any errors occur. * Otherwise, returns true and the missing arguments will be pushed in elements[]. */ final bool fill(Loc loc, Expressions* elements, bool ctorinit) { //printf("StructDeclaration::fill() %s\n", toChars()); assert(sizeok == SIZEOKdone); size_t nfields = fields.dim - isNested(); bool errors = false; if (elements) { size_t dim = elements.dim; elements.setDim(nfields); for (size_t i = dim; i < nfields; i++) (*elements)[i] = null; } // Fill in missing any elements with default initializers for (size_t i = 0; i < nfields; i++) { if (elements && (*elements)[i]) continue; VarDeclaration vd = fields[i]; VarDeclaration vx = vd; if (vd._init && vd._init.isVoidInitializer()) vx = null; // Find overlapped fields with the hole [vd->offset .. vd->offset->size()]. size_t fieldi = i; for (size_t j = 0; j < nfields; j++) { if (i == j) continue; VarDeclaration v2 = fields[j]; if (!vd.isOverlappedWith(v2)) continue; // vd and v2 are overlapping. If either has destructors, postblits, etc., then error //printf("overlapping fields %s and %s\n", vd->toChars(), v2->toChars()); VarDeclaration v = vd; for (int k = 0; k < 2; ++k, v = v2) { Type tv = v.type.baseElemOf(); Dsymbol sv = tv.toDsymbol(null); if (sv && !errors) { StructDeclaration sd = sv.isStructDeclaration(); if (sd && (sd.dtor || sd.inv || sd.postblit)) { error("destructors, postblits and invariants are not allowed in overlapping fields %s and %s", vd.toChars(), v2.toChars()); errors = true; break; } } } if (elements) { if ((*elements)[j]) { vx = null; break; } } else { vd.overlapped = true; } if (v2._init && v2._init.isVoidInitializer()) continue; if (elements) { /* Prefer first found non-void-initialized field * union U { int a; int b = 2; } * U u; // Error: overlapping initialization for field a and b */ if (!vx) vx = v2, fieldi = j; else if (v2._init) { .error(loc, "overlapping initialization for field %s and %s", v2.toChars(), vd.toChars()); } } else { // Will fix Bugzilla 1432 by enabling this path always /* Prefer explicitly initialized field * union U { int a; int b = 2; } * U u; // OK (u.b == 2) */ if (!vx || !vx._init && v2._init) vx = v2, fieldi = j; else if (vx != vd && !(vx.offset < v2.offset + v2.type.size() && v2.offset < vx.offset + vx.type.size())) { // Both vx and v2 fills vd, but vx and v2 does not overlap } else if (vx._init && v2._init) { .error(loc, "overlapping default initialization for field %s and %s", v2.toChars(), vd.toChars()); } else assert(vx._init || !vx._init && !v2._init); } } if (elements && vx) { Expression e; if (vx.type.size() == 0) { e = null; } else if (vx._init) { assert(!vx._init.isVoidInitializer()); e = vx.getConstInitializer(false); } else { if ((vx.storage_class & STCnodefaultctor) && !ctorinit) { .error(loc, "field %s.%s must be initialized because it has no default constructor", type.toChars(), vx.toChars()); } /* Bugzilla 12509: Get the element of static array type. */ Type telem = vx.type; if (telem.ty == Tsarray) { /* We cannot use Type::baseElemOf() here. * If the bottom of the Tsarray is an enum type, baseElemOf() * will return the base of the enum, and its default initializer * would be different from the enum's. */ while (telem.toBasetype().ty == Tsarray) telem = (cast(TypeSArray)telem.toBasetype()).next; if (telem.ty == Tvoid) telem = Type.tuns8.addMod(telem.mod); } if (telem.needsNested() && ctorinit) e = telem.defaultInit(loc); else e = telem.defaultInitLiteral(loc); } (*elements)[fieldi] = e; } } if (elements) { for (size_t i = 0; i < elements.dim; i++) { Expression e = (*elements)[i]; if (e && e.op == TOKerror) return false; } } return !errors; } /*************************************** * Return true if struct is POD (Plain Old Data). * This is defined as: * not nested * no postblits, destructors, or assignment operators * no 'ref' fields or fields that are themselves non-POD * The idea being these are compatible with C structs. */ final bool isPOD() { // If we've already determined whether this struct is POD. if (ispod != ISPODfwd) return (ispod == ISPODyes); ispod = ISPODyes; if (enclosing || postblit || dtor) ispod = ISPODno; // Recursively check all fields are POD. for (size_t i = 0; i < fields.dim; i++) { VarDeclaration v = fields[i]; if (v.storage_class & STCref) { ispod = ISPODno; break; } Type tv = v.type.baseElemOf(); if (tv.ty == Tstruct) { TypeStruct ts = cast(TypeStruct)tv; StructDeclaration sd = ts.sym; if (!sd.isPOD()) { ispod = ISPODno; break; } } } return (ispod == ISPODyes); } final StructDeclaration isStructDeclaration() { return this; } void accept(Visitor v) { v.visit(this); } } extern (C++) final class UnionDeclaration : StructDeclaration { public: /********************************* UnionDeclaration ****************************/ extern (D) this(Loc loc, Identifier id) { super(loc, id); } Dsymbol syntaxCopy(Dsymbol s) { assert(!s); auto ud = new UnionDeclaration(loc, ident); return StructDeclaration.syntaxCopy(ud); } const(char)* kind() { return "union"; } UnionDeclaration isUnionDeclaration() { return this; } void accept(Visitor v) { v.visit(this); } }
D
// Copyright Ferdinand Majerech 2010 - 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) ///Game class. module pong.game; @safe import pong.player; import pong.hud; import pong.scorescreen; import pong.ball; import pong.wall; import pong.paddle; import pong.ballspawner; import scene.scenemanager; import physics.physicsbody; import physics.physicsengine; import spatial.spatialmanager; import spatial.gridspatialmanager; import gui.guielement; import video.videodriver; import platform.platform; import time.timer; import math.math; import math.vector2; import math.rectangle; import monitor.monitormanager; import util.signal; import util.weaksingleton; /** * Class holding all GUI used by Game (HUD, etc.). * * Signal: * public mixin Signal!() score_expired * * Emitted when the score screen expires. */ class GameGUI { private: ///Parent of all game GUI elements. GUIElement parent_; ///HUD. HUD hud_; ///Score screen shown at the end of game. ScoreScreen score_screen_; public: ///Emitted when the score screen expires. mixin Signal!() score_expired; /** * Construct a GameGUI with specified parameters. * * Params: parent = GUI element to attach all game GUI elements to. * time_limit = Time limit of the game. */ this(GUIElement parent, in real time_limit) { parent_ = parent; hud_ = new HUD(parent, time_limit); hud_.hide(); } ///Show the HUD. void show_hud(){hud_.show();} /** * Show score screen. * * Should only be called at the end of game. * Hides the HUD. When the score screen expires, * score_expired is emitted. * * Params: time_total = Total time the game took, in game time. * player_1 = First player of the game. * player_2 = Second player of the game. */ void show_scores(in real time_total, in Player player_1, in Player player_2) in{assert(score_screen_ is null, "Can't show score screen twice");} body { hud_.hide(); score_screen_ = new ScoreScreen(parent_, player_1, player_2, time_total); score_screen_.expired.connect(&score_expired.emit); } /** * Update the game GUI. * * Params: time_left = Time left in the game, in game time. * player_1 = First player of the game. * player_2 = Second player of the game. */ void update(in real time_left, in Player player_1, in Player player_2) { hud_.update(time_left, player_1, player_2); if(score_screen_ !is null){score_screen_.update();} } ///Destroy the game GUI. ~this() { clear(hud_); if(score_screen_ !is null){clear(score_screen_);} score_expired.disconnect_all(); } } ///Class managing a single game between players. class Game { mixin WeakSingleton; private: ///Platform used for input. Platform platform_; ///Scene manager. SceneManager scene_manager_; ///Game area in world space. static immutable Rectanglef game_area_ = Rectanglef(0.0f, 0.0f, 800.0f, 600.0f); ///Current game ball. Ball ball_; ///Default ball radius. real ball_radius_ = 6.0; ///Default ball speed. real ball_speed_ = 185.0; ///BallSpawner spawn time. real spawn_time_ = 4.0; ///BallSpawner spawn spread. real spawn_spread_ = 0.28; ///Dummy balls. Ball[] dummies_; ///Number of dummy balls. uint dummy_count_ = 20; ///Right wall of the game area. Wall wall_right_; ///Left wall of the game area. Wall wall_left_; ///Top goal of the game area. Wall goal_up_; ///Bottom goal of the game area. Wall goal_down_; ///Player 1 paddle. Paddle paddle_1_; ///Player 2 paddle. Paddle paddle_2_; ///Player 1. Player player_1_; ///Player 2. Player player_2_; ///Continue running? bool continue_; ///Score limit. immutable uint score_limit_; ///Time limit in game time. immutable real time_limit_; ///Timer determining when the game ends. Timer game_timer_; ///GUI of the game, e.g. HUD, score screen. GameGUI gui_; ///True while the players are (still) playing the game. bool playing_; ///Has the game started? bool started_; ///Timer determining when to end the intro and start the game. Timer intro_timer_; public: /** * Update the game. * * Returns: True if the game should continue to run, false otherwise. */ bool run() { const real time = scene_manager_.game_time; if(playing_) { //update player state player_1_.update(this); player_2_.update(this); //check for victory conditions if(player_1_.score >= score_limit_ || player_2_.score >= score_limit_) { game_won(); } if(game_timer_.expired(time) && player_1_.score != player_2_.score) { game_won(); } } if(continue_) { const real time_left = time_limit_ - game_timer_.age(time); gui_.update(time_left, player_1_, player_2_); } if(!started_ && intro_timer_.expired(time)){start_game(time);} scene_manager_.update(); return continue_; } ///Start game intro. void intro() { intro_timer_ = Timer(2.5, scene_manager_.game_time); playing_ = started_ = false; continue_ = true; //construct walls and goals with(new WallFactory) { box_max = Vector2f(32.0f, 536.0f); //walls slowly move into place when game starts velocity = Vector2f(73.6f, 0.0f); position = Vector2f(-64.0f, 32.0f); wall_left_ = produce(scene_manager_); velocity = Vector2f(-73.6f, 0.0f); position = Vector2f(832.0, 32.0f); wall_right_ = produce(scene_manager_); box_max = Vector2f(560.0f, 28.0f); velocity = Vector2f(320.0f, 0.0f); position = Vector2f(-680.0f, 4.0f); goal_up_ = produce(scene_manager_); velocity = Vector2f(-320.0f, 0.0f); position = Vector2f(920.0f, 568.0f); goal_down_ = produce(scene_manager_); } //construct paddles. const float limits_min_x = 152.0f + 2.0 * ball_radius_; const float limits_max_x = 648.0f - 2.0 * ball_radius_; with(new PaddleFactory) { box_min = Vector2f(-32.0f, -4.0f); box_max = Vector2f(32.0f, 4.0f); position = Vector2f(400.0f, 56.0f); limits_min = Vector2f(limits_min_x, 36.0f); limits_max = Vector2f(limits_max_x, 76.0f); speed = 135.0; paddle_1_ = produce(scene_manager_); position = Vector2f(400.0f, 544.0f); limits_min = Vector2f(limits_min_x, 524.0f); limits_max = Vector2f(limits_max_x, 564.0f); paddle_2_ = produce(scene_manager_); } player_1_ = new AIPlayer("AI", paddle_1_, 0.15); player_2_ = new HumanPlayer(platform_, "Human", paddle_2_); platform_.key.connect(&key_handler); } ///Returns an array of balls currently used in the game. @property Ball[] balls() { return ball_ !is null ? [ball_] : []; } /** * Draw the game. * * Params: driver = VideoDriver to draw with. */ void draw(VideoDriver driver){scene_manager_.draw(driver);} ///Get game area. @property static Rectanglef game_area(){return game_area_;} ///End the game, regardless of whether it has been won or not. void end_game() { if(started_){scene_manager_.time_speed = 1.0;} scene_manager_.clear(); clear(player_1_); clear(player_2_); playing_ = continue_ = false; platform_.key.disconnect(&key_handler); } private: /** * Construct a Game. * * Params: platform = Platform used for input. * scene_manager = SceneManager managing actors. * gui = Game GUI. * score_limit = Score limit of the game. * time_limit = Time limit of the game in game time. */ this(Platform platform, SceneManager scene_manager, GameGUI gui, in uint score_limit, in real time_limit) { singleton_ctor(); gui_ = gui; platform_ = platform; scene_manager_ = scene_manager; score_limit_ = score_limit; time_limit_ = time_limit; } ///Destroy the Game. ~this(){singleton_dtor();} ///Start the game, at specified game time. void start_game(in real start_time) { //spawn dummy balls with(new DummyBallFactory) { radius = 6.0; foreach(dummy; 0 .. dummy_count_) { position = random_position!(float)(game_area_.center, 26.0f); velocity = 2.4 * ball_speed_ * random_direction!(float)(); dummies_ ~= produce(scene_manager_); } } //should be set from options and INI when that is implemented. started_ = playing_ = true; wall_left_.velocity = Vector2f(0.0, 0.0); wall_right_.velocity = Vector2f(0.0, 0.0); goal_up_.velocity = Vector2f(0.0, 0.0); goal_down_.velocity = Vector2f(0.0, 0.0); with(new BallSpawnerFactory(start_time)) { time = spawn_time_; spread = spawn_spread_; ball_speed = this.ball_speed_; position = game_area_.center; auto spawner = produce(scene_manager_); spawner.spawn_ball.connect(&spawn_ball); } goal_up_.ball_hit.connect(&player_2_.score); goal_down_.ball_hit.connect(&player_1_.score); goal_up_.ball_hit.connect(&destroy_ball); goal_down_.ball_hit.connect(&destroy_ball); gui_.show_hud(); game_timer_ = Timer(time_limit_, start_time); } ///Destroy ball with specified ball body. void destroy_ball(const BallBody ball_body) in { assert(ball_ !is null && ball_body is ball_.physics_body, "Only one ball is supported right now yet " "a ball body not belonging to this ball is used"); } body { ball_.die(scene_manager_.update_index); ball_ = null; with(new BallSpawnerFactory(scene_manager_.game_time)) { time = spawn_time_; spread = spawn_spread_; ball_speed = this.ball_speed_; position = game_area_.center; auto spawner = produce(scene_manager_); spawner.spawn_ball.connect(&spawn_ball); } } /** * Spawn a ball. * * Params: direction = Direction to spawn the ball in. * speed = Speed to spawn the ball at. */ void spawn_ball(Vector2f direction, real speed) { with(new BallFactory) { position = game_area_.center; velocity = direction * speed; radius = ball_radius_; ball_ = produce(scene_manager_); } } ///Called when one of the players wins the game. void game_won() { //show the score screen and end the game after it expires gui_.show_scores(game_timer_.age(scene_manager_.game_time), player_1_, player_2_); gui_.score_expired.connect(&end_game); scene_manager_.time_speed = 0.0; playing_ = false; } /** * Process keyboard input. * * Params: state = State of the key. * key = Keyboard key. * unicode = Unicode value of the key. */ void key_handler(KeyState state, Key key, dchar unicode) { if(state == KeyState.Pressed) switch(key) { case Key.Escape: end_game(); break; case Key.K_P: //pause const paused = equals(scene_manager_.time_speed, cast(real)0.0); scene_manager_.time_speed = paused ? 1.0 : 0.0; break; default: break; } } } ///Container managing dependencies and construction of Game. class GameContainer { private: ///Spatial manager used by the physics engine for coarse collision detection. SpatialManager!(PhysicsBody) spatial_physics_; ///Physics engine used by the scene manager. PhysicsEngine physics_engine_; ///Scene manager used by the game. SceneManager scene_manager_; ///GUI of the game. GameGUI gui_; ///Game itself. Game game_; ///MonitorManager to add game subsystem monitors to. MonitorManager monitor_; public: /** * Produce a Game and return a reference to it. * * Params: platform = Platform to use for user input. * monitor = MonitorManager to monitor game subsystems. * gui_parent = Parent for all GUI elements used by the game. * * Returns: Produced Game. */ Game produce(Platform platform, MonitorManager monitor, GUIElement gui_parent) in { assert(spatial_physics_ is null && physics_engine_ is null && scene_manager_ is null && game_ is null, "Can't produce two games at once with GameContainer"); } body { monitor_ = monitor; spatial_physics_ = new GridSpatialManager!PhysicsBody (Vector2f(400.0f, 300.0f), 25.0f, 32); physics_engine_ = new PhysicsEngine(spatial_physics_); scene_manager_ = new SceneManager(physics_engine_); gui_ = new GameGUI(gui_parent, 300.0); game_ = new Game(platform, scene_manager_, gui_, 10, 300.0); monitor_.add_monitorable(spatial_physics_, "Spatial(P)"); monitor_.add_monitorable(physics_engine_, "Physics"); monitor_.add_monitorable(scene_manager_, "Scene"); return game_; } ///Destroy the contained Game. void destroy() { clear(game_); clear(gui_); monitor_.remove_monitorable("Scene"); clear(scene_manager_); monitor_.remove_monitorable("Physics"); clear(physics_engine_); monitor_.remove_monitorable("Spatial(P)"); clear(spatial_physics_); game_ = null; scene_manager_ = null; physics_engine_ = null; spatial_physics_ = null; monitor_ = null; } }
D
/** * Compiler implementation of the * $(LINK2 http://www.dlang.org, D programming language). * * Copyright: Copyright (c) 1999-2017 by Digital Mars, 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: $(DMDSRC _declaration.d) */ module ddmd.declaration; import core.stdc.stdio; import ddmd.aggregate; import ddmd.arraytypes; import ddmd.dcast; import ddmd.dclass; import ddmd.delegatize; import ddmd.dscope; import ddmd.dstruct; import ddmd.dsymbol; import ddmd.dtemplate; import ddmd.errors; import ddmd.expression; import ddmd.func; import ddmd.globals; import ddmd.hdrgen; import ddmd.id; import ddmd.identifier; import ddmd.init; import ddmd.intrange; import ddmd.mtype; import ddmd.root.outbuffer; import ddmd.root.rootobject; import ddmd.sideeffect; import ddmd.target; import ddmd.tokens; import ddmd.visitor; /************************************ * Check to see the aggregate type is nested and its context pointer is * accessible from the current scope. * Returns true if error occurs. */ extern (C++) bool checkFrameAccess(Loc loc, Scope* sc, AggregateDeclaration ad, size_t iStart = 0) { Dsymbol sparent = ad.toParent2(); Dsymbol s = sc.func; if (ad.isNested() && s) { //printf("ad = %p %s [%s], parent:%p\n", ad, ad.toChars(), ad.loc.toChars(), ad.parent); //printf("sparent = %p %s [%s], parent: %s\n", sparent, sparent.toChars(), sparent.loc.toChars(), sparent.parent,toChars()); if (!ensureStaticLinkTo(s, sparent)) { error(loc, "cannot access frame pointer of %s", ad.toPrettyChars()); return true; } } bool result = false; for (size_t i = iStart; i < ad.fields.dim; i++) { VarDeclaration vd = ad.fields[i]; Type tb = vd.type.baseElemOf(); if (tb.ty == Tstruct) { result |= checkFrameAccess(loc, sc, (cast(TypeStruct)tb).sym); } } return result; } /****************************************** */ extern (C++) void ObjectNotFound(Identifier id) { Type.error(Loc(), "%s not found. object.d may be incorrectly installed or corrupt.", id.toChars()); fatal(); } enum STCundefined = 0L; enum STCstatic = (1L << 0); enum STCextern = (1L << 1); enum STCconst = (1L << 2); enum STCfinal = (1L << 3); enum STCabstract = (1L << 4); enum STCparameter = (1L << 5); enum STCfield = (1L << 6); enum STCoverride = (1L << 7); enum STCauto = (1L << 8); enum STCsynchronized = (1L << 9); enum STCdeprecated = (1L << 10); enum STCin = (1L << 11); // in parameter enum STCout = (1L << 12); // out parameter enum STClazy = (1L << 13); // lazy parameter enum STCforeach = (1L << 14); // variable for foreach loop // (1L << 15) enum STCvariadic = (1L << 16); // the 'variadic' parameter in: T foo(T a, U b, V variadic...) enum STCctorinit = (1L << 17); // can only be set inside constructor enum STCtemplateparameter = (1L << 18); // template parameter enum STCscope = (1L << 19); enum STCimmutable = (1L << 20); enum STCref = (1L << 21); enum STCinit = (1L << 22); // has explicit initializer enum STCmanifest = (1L << 23); // manifest constant enum STCnodtor = (1L << 24); // don't run destructor enum STCnothrow = (1L << 25); // never throws exceptions enum STCpure = (1L << 26); // pure function enum STCtls = (1L << 27); // thread local enum STCalias = (1L << 28); // alias parameter enum STCshared = (1L << 29); // accessible from multiple threads enum STCgshared = (1L << 30); // accessible from multiple threads, but not typed as "shared" enum STCwild = (1L << 31); // for "wild" type constructor enum STCproperty = (1L << 32); enum STCsafe = (1L << 33); enum STCtrusted = (1L << 34); enum STCsystem = (1L << 35); enum STCctfe = (1L << 36); // can be used in CTFE, even if it is static enum STCdisable = (1L << 37); // for functions that are not callable enum STCresult = (1L << 38); // for result variables passed to out contracts enum STCnodefaultctor = (1L << 39); // must be set inside constructor enum STCtemp = (1L << 40); // temporary variable enum STCrvalue = (1L << 41); // force rvalue for variables enum STCnogc = (1L << 42); // @nogc enum STCvolatile = (1L << 43); // destined for volatile in the back end enum STCreturn = (1L << 44); // 'return ref' or 'return scope' for function parameters enum STCautoref = (1L << 45); // Mark for the already deduced 'auto ref' parameter enum STCinference = (1L << 46); // do attribute inference enum STCexptemp = (1L << 47); // temporary variable that has lifetime restricted to an expression enum STCmaybescope = (1L << 48); // parameter might be 'scope' enum STCscopeinferred = (1L << 49); // 'scope' has been inferred and should not be part of mangling enum STC_TYPECTOR = (STCconst | STCimmutable | STCshared | STCwild); enum STC_FUNCATTR = (STCref | STCnothrow | STCnogc | STCpure | STCproperty | STCsafe | STCtrusted | STCsystem); extern (C++) __gshared const(StorageClass) STCStorageClass = (STCauto | STCscope | STCstatic | STCextern | STCconst | STCfinal | STCabstract | STCsynchronized | STCdeprecated | STCoverride | STClazy | STCalias | STCout | STCin | STCmanifest | STCimmutable | STCshared | STCwild | STCnothrow | STCnogc | STCpure | STCref | STCtls | STCgshared | STCproperty | STCsafe | STCtrusted | STCsystem | STCdisable); struct Match { int count; // number of matches found MATCH last; // match level of lastf FuncDeclaration lastf; // last matching function we found FuncDeclaration nextf; // current matching function FuncDeclaration anyf; // pick a func, any func, to use for error recovery } /*********************************************************** */ extern (C++) abstract class Declaration : Dsymbol { Type type; Type originalType; // before semantic analysis StorageClass storage_class; Prot protection; LINK linkage; int inuse; // used to detect cycles // overridden symbol with pragma(mangle, "...") const(char)* mangleOverride; final extern (D) this(Identifier id) { super(id); storage_class = STCundefined; protection = Prot(PROTundefined); linkage = LINKdefault; } override void semantic(Scope* sc) { } override const(char)* kind() const { return "declaration"; } override final d_uns64 size(Loc loc) { assert(type); return type.size(); } /************************************* * Check to see if declaration can be modified in this context (sc). * Issue error if not. */ final int checkModify(Loc loc, Scope* sc, Type t, Expression e1, int flag) { VarDeclaration v = isVarDeclaration(); if (v && v.canassign) return 2; if (isParameter() || isResult()) { for (Scope* scx = sc; scx; scx = scx.enclosing) { if (scx.func == parent && (scx.flags & SCOPEcontract)) { const(char)* s = isParameter() && parent.ident != Id.ensure ? "parameter" : "result"; if (!flag) error(loc, "cannot modify %s '%s' in contract", s, toChars()); return 2; // do not report type related errors } } } if (v && (isCtorinit() || isField())) { // It's only modifiable if inside the right constructor if ((storage_class & (STCforeach | STCref)) == (STCforeach | STCref)) return 2; return modifyFieldVar(loc, sc, v, e1) ? 2 : 1; } return 1; } override final Dsymbol search(Loc loc, Identifier ident, int flags = SearchLocalsOnly) { Dsymbol s = Dsymbol.search(loc, ident, flags); if (!s && type) { s = type.toDsymbol(_scope); if (s) s = s.search(loc, ident, flags); } return s; } final bool isStatic() { return (storage_class & STCstatic) != 0; } bool isDelete() { return false; } bool isDataseg() { return false; } bool isThreadlocal() { return false; } bool isCodeseg() { return false; } final bool isCtorinit() { return (storage_class & STCctorinit) != 0; } final bool isFinal() { return (storage_class & STCfinal) != 0; } final bool isAbstract() { return (storage_class & STCabstract) != 0; } final bool isConst() { return (storage_class & STCconst) != 0; } final bool isImmutable() { return (storage_class & STCimmutable) != 0; } final bool isWild() { return (storage_class & STCwild) != 0; } final bool isAuto() { return (storage_class & STCauto) != 0; } final bool isScope() { return (storage_class & STCscope) != 0; } final bool isSynchronized() { return (storage_class & STCsynchronized) != 0; } final bool isParameter() { return (storage_class & STCparameter) != 0; } override final bool isDeprecated() { return (storage_class & STCdeprecated) != 0; } final bool isOverride() { return (storage_class & STCoverride) != 0; } final bool isResult() { return (storage_class & STCresult) != 0; } final bool isField() { return (storage_class & STCfield) != 0; } final bool isIn() { return (storage_class & STCin) != 0; } final bool isOut() { return (storage_class & STCout) != 0; } final bool isRef() { return (storage_class & STCref) != 0; } override final Prot prot() { return protection; } override final inout(Declaration) isDeclaration() inout { return this; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TupleDeclaration : Declaration { Objects* objects; bool isexp; // true: expression tuple TypeTuple tupletype; // !=null if this is a type tuple extern (D) this(Loc loc, Identifier id, Objects* objects) { super(id); this.loc = loc; this.objects = objects; } override Dsymbol syntaxCopy(Dsymbol s) { assert(0); } override const(char)* kind() const { return "tuple"; } override Type getType() { /* If this tuple represents a type, return that type */ //printf("TupleDeclaration::getType() %s\n", toChars()); if (isexp) return null; if (!tupletype) { /* It's only a type tuple if all the Object's are types */ for (size_t i = 0; i < objects.dim; i++) { RootObject o = (*objects)[i]; if (o.dyncast() != DYNCAST.type) { //printf("\tnot[%d], %p, %d\n", i, o, o.dyncast()); return null; } } /* We know it's a type tuple, so build the TypeTuple */ Types* types = cast(Types*)objects; auto args = new Parameters(); args.setDim(objects.dim); OutBuffer buf; int hasdeco = 1; for (size_t i = 0; i < types.dim; i++) { Type t = (*types)[i]; //printf("type = %s\n", t.toChars()); version (none) { buf.printf("_%s_%d", ident.toChars(), i); const len = buf.offset; const name = cast(const(char)*)buf.extractData(); auto id = Identifier.idPool(name, len); auto arg = new Parameter(STCin, t, id, null); } else { auto arg = new Parameter(0, t, null, null); } (*args)[i] = arg; if (!t.deco) hasdeco = 0; } tupletype = new TypeTuple(args); if (hasdeco) return tupletype.semantic(Loc(), null); } return tupletype; } override Dsymbol toAlias2() { //printf("TupleDeclaration::toAlias2() '%s' objects = %s\n", toChars(), objects.toChars()); for (size_t i = 0; i < objects.dim; i++) { RootObject o = (*objects)[i]; if (Dsymbol s = isDsymbol(o)) { s = s.toAlias2(); (*objects)[i] = s; } } return this; } override bool needThis() { //printf("TupleDeclaration::needThis(%s)\n", toChars()); for (size_t i = 0; i < objects.dim; i++) { RootObject o = (*objects)[i]; if (o.dyncast() == DYNCAST.expression) { Expression e = cast(Expression)o; if (e.op == TOKdsymbol) { DsymbolExp ve = cast(DsymbolExp)e; Declaration d = ve.s.isDeclaration(); if (d && d.needThis()) { return true; } } } } return false; } override inout(TupleDeclaration) isTupleDeclaration() inout { return this; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class AliasDeclaration : Declaration { Dsymbol aliassym; Dsymbol overnext; // next in overload list Dsymbol _import; // !=null if unresolved internal alias for selective import extern (D) this(Loc loc, Identifier id, Type type) { super(id); //printf("AliasDeclaration(id = '%s', type = %p)\n", id.toChars(), type); //printf("type = '%s'\n", type.toChars()); this.loc = loc; this.type = type; assert(type); } extern (D) this(Loc loc, Identifier id, Dsymbol s) { super(id); //printf("AliasDeclaration(id = '%s', s = %p)\n", id.toChars(), s); assert(s != this); this.loc = loc; this.aliassym = s; assert(s); } override Dsymbol syntaxCopy(Dsymbol s) { //printf("AliasDeclaration::syntaxCopy()\n"); assert(!s); AliasDeclaration sa = type ? new AliasDeclaration(loc, ident, type.syntaxCopy()) : new AliasDeclaration(loc, ident, aliassym.syntaxCopy(null)); sa.storage_class = storage_class; return sa; } override void semantic(Scope* sc) { if (semanticRun >= PASSsemanticdone) return; assert(semanticRun <= PASSsemantic); storage_class |= sc.stc & STCdeprecated; protection = sc.protection; userAttribDecl = sc.userAttribDecl; if (!sc.func && inNonRoot()) return; aliasSemantic(sc); } final void aliasSemantic(Scope* sc) { //printf("AliasDeclaration::semantic() %s\n", toChars()); if (aliassym) { auto fd = aliassym.isFuncLiteralDeclaration(); auto td = aliassym.isTemplateDeclaration(); if (fd || td && td.literal) { if (fd && fd.semanticRun >= PASSsemanticdone) return; Expression e = new FuncExp(loc, aliassym); e = e.semantic(sc); if (e.op == TOKfunction) { FuncExp fe = cast(FuncExp)e; aliassym = fe.td ? cast(Dsymbol)fe.td : fe.fd; } else { aliassym = null; type = Type.terror; } return; } if (aliassym.isTemplateInstance()) aliassym.semantic(sc); return; } inuse = 1; // Given: // alias foo.bar.abc def; // it is not knowable from the syntax whether this is an alias // for a type or an alias for a symbol. It is up to the semantic() // pass to distinguish. // If it is a type, then type is set and getType() will return that // type. If it is a symbol, then aliassym is set and type is NULL - // toAlias() will return aliasssym. uint errors = global.errors; Type oldtype = type; // Ungag errors when not instantiated DeclDefs scope alias auto ungag = Ungag(global.gag); //printf("%s parent = %s, gag = %d, instantiated = %d\n", toChars(), parent, global.gag, isInstantiated()); if (parent && global.gag && !isInstantiated() && !toParent2().isFuncDeclaration()) { //printf("%s type = %s\n", toPrettyChars(), type.toChars()); global.gag = 0; } /* This section is needed because Type.resolve() will: * const x = 3; * alias y = x; * try to convert identifier x to 3. */ auto s = type.toDsymbol(sc); if (errors != global.errors) { s = null; type = Type.terror; } if (s && s == this) { error("cannot resolve"); s = null; type = Type.terror; } if (!s || !s.isEnumMember()) { Type t; Expression e; Scope* sc2 = sc; if (storage_class & (STCref | STCnothrow | STCnogc | STCpure | STCdisable)) { // For 'ref' to be attached to function types, and picked // up by Type.resolve(), it has to go into sc. sc2 = sc.push(); sc2.stc |= storage_class & (STCref | STCnothrow | STCnogc | STCpure | STCshared | STCdisable); } type = type.addSTC(storage_class); type.resolve(loc, sc2, &e, &t, &s); if (sc2 != sc) sc2.pop(); if (e) // Try to convert Expression to Dsymbol { s = getDsymbol(e); if (!s) { if (e.op != TOKerror) error("cannot alias an expression %s", e.toChars()); t = Type.terror; } } type = t; } if (s == this) { assert(global.errors); type = Type.terror; s = null; } if (!s) // it's a type alias { //printf("alias %s resolved to type %s\n", toChars(), type.toChars()); type = type.semantic(loc, sc); aliassym = null; } else // it's a symbolic alias { //printf("alias %s resolved to %s %s\n", toChars(), s.kind(), s.toChars()); type = null; aliassym = s; } if (global.gag && errors != global.errors) { type = oldtype; aliassym = null; } inuse = 0; semanticRun = PASSsemanticdone; if (auto sx = overnext) { overnext = null; if (!overloadInsert(sx)) ScopeDsymbol.multiplyDefined(Loc(), sx, this); } } override bool overloadInsert(Dsymbol s) { //printf("[%s] AliasDeclaration::overloadInsert('%s') s = %s %s @ [%s]\n", // loc.toChars(), toChars(), s.kind(), s.toChars(), s.loc.toChars()); /** Aliases aren't overloadable themselves, but if their Aliasee is * overloadable they are converted to an overloadable Alias (either * FuncAliasDeclaration or OverDeclaration). * * This is done by moving the Aliasee into such an overloadable alias * which is then used to replace the existing Aliasee. The original * Alias (_this_) remains a useless shell. * * This is a horrible mess. It was probably done to avoid replacing * existing AST nodes and references, but it needs a major * simplification b/c it's too complex to maintain. * * A simpler approach might be to merge any colliding symbols into a * simple Overload class (an array) and then later have that resolve * all collisions. */ if (semanticRun >= PASSsemanticdone) { /* Semantic analysis is already finished, and the aliased entity * is not overloadable. */ if (type) return false; /* When s is added in member scope by static if, mixin("code") or others, * aliassym is determined already. See the case in: test/compilable/test61.d */ auto sa = aliassym.toAlias(); if (auto fd = sa.isFuncDeclaration()) { auto fa = new FuncAliasDeclaration(ident, fd); fa.protection = protection; fa.parent = parent; aliassym = fa; return aliassym.overloadInsert(s); } if (auto td = sa.isTemplateDeclaration()) { auto od = new OverDeclaration(ident, td); od.protection = protection; od.parent = parent; aliassym = od; return aliassym.overloadInsert(s); } if (auto od = sa.isOverDeclaration()) { if (sa.ident != ident || sa.parent != parent) { od = new OverDeclaration(ident, od); od.protection = protection; od.parent = parent; aliassym = od; } return od.overloadInsert(s); } if (auto os = sa.isOverloadSet()) { if (sa.ident != ident || sa.parent != parent) { os = new OverloadSet(ident, os); // TODO: protection is lost here b/c OverloadSets have no protection attribute // Might no be a practical issue, b/c the code below fails to resolve the overload anyhow. // ---- // module os1; // import a, b; // private alias merged = foo; // private alias to overload set of a.foo and b.foo // ---- // module os2; // import a, b; // public alias merged = bar; // public alias to overload set of a.bar and b.bar // ---- // module bug; // import os1, os2; // void test() { merged(123); } // should only look at os2.merged // // os.protection = protection; os.parent = parent; aliassym = os; } os.push(s); return true; } return false; } /* Don't know yet what the aliased symbol is, so assume it can * be overloaded and check later for correctness. */ if (overnext) return overnext.overloadInsert(s); if (s is this) return true; overnext = s; return true; } override const(char)* kind() const { return "alias"; } override Type getType() { if (type) return type; return toAlias().getType(); } override Dsymbol toAlias() { //printf("[%s] AliasDeclaration::toAlias('%s', this = %p, aliassym = %p, kind = '%s', inuse = %d)\n", // loc.toChars(), toChars(), this, aliassym, aliassym ? aliassym.kind() : "", inuse); assert(this != aliassym); //static int count; if (++count == 10) *(char*)0=0; if (inuse == 1 && type && _scope) { inuse = 2; uint olderrors = global.errors; Dsymbol s = type.toDsymbol(_scope); //printf("[%s] type = %s, s = %p, this = %p\n", loc.toChars(), type.toChars(), s, this); if (global.errors != olderrors) goto Lerr; if (s) { s = s.toAlias(); if (global.errors != olderrors) goto Lerr; aliassym = s; inuse = 0; } else { Type t = type.semantic(loc, _scope); if (t.ty == Terror) goto Lerr; if (global.errors != olderrors) goto Lerr; //printf("t = %s\n", t.toChars()); inuse = 0; } } if (inuse) { error("recursive alias declaration"); Lerr: // Avoid breaking "recursive alias" state during errors gagged if (global.gag) return this; aliassym = new AliasDeclaration(loc, ident, Type.terror); type = Type.terror; return aliassym; } if (semanticRun >= PASSsemanticdone) { // semantic is already done. // Do not see aliassym !is null, because of lambda aliases. // Do not see type.deco !is null, even so "alias T = const int;` needs // semantic analysis to take the storage class `const` as type qualifier. } else { if (_import && _import._scope) { /* If this is an internal alias for selective/renamed import, * load the module first. */ _import.semantic(null); } if (_scope) { aliasSemantic(_scope); } } inuse = 1; Dsymbol s = aliassym ? aliassym.toAlias() : this; inuse = 0; return s; } override Dsymbol toAlias2() { if (inuse) { error("recursive alias declaration"); return this; } inuse = 1; Dsymbol s = aliassym ? aliassym.toAlias2() : this; inuse = 0; return s; } override bool isOverloadable() { // assume overloadable until alias is resolved return semanticRun < PASSsemanticdone || aliassym && aliassym.isOverloadable(); } override inout(AliasDeclaration) isAliasDeclaration() inout { return this; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class OverDeclaration : Declaration { Dsymbol overnext; // next in overload list Dsymbol aliassym; bool hasOverloads; extern (D) this(Identifier ident, Dsymbol s, bool hasOverloads = true) { super(ident); this.aliassym = s; this.hasOverloads = hasOverloads; if (hasOverloads) { if (OverDeclaration od = aliassym.isOverDeclaration()) this.hasOverloads = od.hasOverloads; } else { // for internal use assert(!aliassym.isOverDeclaration()); } } override const(char)* kind() const { return "overload alias"; // todo } override void semantic(Scope* sc) { } override bool equals(RootObject o) { if (this == o) return true; Dsymbol s = isDsymbol(o); if (!s) return false; OverDeclaration od1 = this; if (OverDeclaration od2 = s.isOverDeclaration()) { return od1.aliassym.equals(od2.aliassym) && od1.hasOverloads == od2.hasOverloads; } if (aliassym == s) { if (hasOverloads) return true; if (FuncDeclaration fd = s.isFuncDeclaration()) { return fd.isUnique() !is null; } if (TemplateDeclaration td = s.isTemplateDeclaration()) { return td.overnext is null; } } return false; } override bool overloadInsert(Dsymbol s) { //printf("OverDeclaration::overloadInsert('%s') aliassym = %p, overnext = %p\n", s.toChars(), aliassym, overnext); if (overnext) return overnext.overloadInsert(s); if (s == this) return true; overnext = s; return true; } override bool isOverloadable() { return true; } Dsymbol isUnique() { if (!hasOverloads) { if (aliassym.isFuncDeclaration() || aliassym.isTemplateDeclaration()) { return aliassym; } } Dsymbol result = null; overloadApply(aliassym, (Dsymbol s) { if (result) { result = null; return 1; // ambiguous, done } else { result = s; return 0; } }); return result; } override inout(OverDeclaration) isOverDeclaration() inout { return this; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) class VarDeclaration : Declaration { Initializer _init; uint offset; uint sequenceNumber; // order the variables are declared __gshared uint nextSequenceNumber; // the counter for sequenceNumber FuncDeclarations nestedrefs; // referenced by these lexically nested functions bool isargptr; // if parameter that _argptr points to structalign_t alignment; bool ctorinit; // it has been initialized in a ctor // Both these mean the var is not rebindable once assigned, // and the destructor gets run when it goes out of scope bool onstack; // it is a class that was allocated on the stack bool mynew; // it is a class new'd with custom operator new int canassign; // it can be assigned to bool overlapped; // if it is a field and has overlapping bool overlapUnsafe; // if it is an overlapping field and the overlaps are unsafe bool doNotInferScope; // do not infer 'scope' for this variable ubyte isdataseg; // private data for isDataseg 0 unset, 1 true, 2 false Dsymbol aliassym; // if redone as alias to another symbol VarDeclaration lastVar; // Linked list of variables for goto-skips-init detection uint endlinnum; // line number of end of scope that this var lives in // When interpreting, these point to the value (NULL if value not determinable) // The index of this variable on the CTFE stack, -1 if not allocated int ctfeAdrOnStack; Expression edtor; // if !=null, does the destruction of the variable IntRange* range; // if !=null, the variable is known to be within the range final extern (D) this(Loc loc, Type type, Identifier id, Initializer _init, StorageClass storage_class = STCundefined) { super(id); //printf("VarDeclaration('%s')\n", id.toChars()); assert(id); debug { if (!type && !_init) { printf("VarDeclaration('%s')\n", id.toChars()); //*(char*)0=0; } } assert(type || _init); this.type = type; this._init = _init; this.loc = loc; ctfeAdrOnStack = -1; this.storage_class = storage_class; sequenceNumber = ++nextSequenceNumber; } override Dsymbol syntaxCopy(Dsymbol s) { //printf("VarDeclaration::syntaxCopy(%s)\n", toChars()); assert(!s); auto v = new VarDeclaration(loc, type ? type.syntaxCopy() : null, ident, _init ? _init.syntaxCopy() : null, storage_class); return v; } override void semantic(Scope* sc) { version (none) { printf("VarDeclaration::semantic('%s', parent = '%s') sem = %d\n", toChars(), sc.parent ? sc.parent.toChars() : null, sem); printf(" type = %s\n", type ? type.toChars() : "null"); printf(" stc = x%x\n", sc.stc); printf(" storage_class = x%llx\n", storage_class); printf("linkage = %d\n", sc.linkage); //if (strcmp(toChars(), "mul") == 0) assert(0); } //if (semanticRun > PASSinit) // return; //semanticRun = PSSsemantic; if (semanticRun >= PASSsemanticdone) return; Scope* scx = null; if (_scope) { sc = _scope; scx = sc; _scope = null; } if (!sc) return; semanticRun = PASSsemantic; /* Pick up storage classes from context, but except synchronized, * override, abstract, and final. */ storage_class |= (sc.stc & ~(STCsynchronized | STCoverride | STCabstract | STCfinal)); if (storage_class & STCextern && _init) error("extern symbols cannot have initializers"); userAttribDecl = sc.userAttribDecl; AggregateDeclaration ad = isThis(); if (ad) storage_class |= ad.storage_class & STC_TYPECTOR; /* If auto type inference, do the inference */ int inferred = 0; if (!type) { inuse++; // Infering the type requires running semantic, // so mark the scope as ctfe if required bool needctfe = (storage_class & (STCmanifest | STCstatic)) != 0; if (needctfe) sc = sc.startCTFE(); //printf("inferring type for %s with init %s\n", toChars(), _init.toChars()); _init = _init.inferType(sc); type = _init.toExpression().type; if (needctfe) sc = sc.endCTFE(); inuse--; inferred = 1; /* This is a kludge to support the existing syntax for RAII * declarations. */ storage_class &= ~STCauto; originalType = type.syntaxCopy(); } else { if (!originalType) originalType = type.syntaxCopy(); /* Prefix function attributes of variable declaration can affect * its type: * pure nothrow void function() fp; * static assert(is(typeof(fp) == void function() pure nothrow)); */ Scope* sc2 = sc.push(); sc2.stc |= (storage_class & STC_FUNCATTR); inuse++; type = type.semantic(loc, sc2); inuse--; sc2.pop(); } //printf(" semantic type = %s\n", type ? type.toChars() : "null"); if (type.ty == Terror) errors = true; type.checkDeprecated(loc, sc); linkage = sc.linkage; this.parent = sc.parent; //printf("this = %p, parent = %p, '%s'\n", this, parent, parent.toChars()); protection = sc.protection; /* If scope's alignment is the default, use the type's alignment, * otherwise the scope overrrides. */ alignment = sc.alignment(); if (alignment == STRUCTALIGN_DEFAULT) alignment = type.alignment(); // use type's alignment //printf("sc.stc = %x\n", sc.stc); //printf("storage_class = x%x\n", storage_class); if (global.params.vcomplex) type.checkComplexTransition(loc); // Calculate type size + safety checks if (sc.func && !sc.intypeof) { if (storage_class & STCgshared && !isMember()) { if (sc.func.setUnsafe()) error("__gshared not allowed in safe functions; use shared"); } } Dsymbol parent = toParent(); Type tb = type.toBasetype(); Type tbn = tb.baseElemOf(); if (tb.ty == Tvoid && !(storage_class & STClazy)) { if (inferred) { error("type %s is inferred from initializer %s, and variables cannot be of type void", type.toChars(), _init.toChars()); } else error("variables cannot be of type void"); type = Type.terror; tb = type; } if (tb.ty == Tfunction) { error("cannot be declared to be a function"); type = Type.terror; tb = type; } if (tb.ty == Tstruct) { TypeStruct ts = cast(TypeStruct)tb; if (!ts.sym.members) { error("no definition of struct %s", ts.toChars()); } } if ((storage_class & STCauto) && !inferred) error("storage class 'auto' has no effect if type is not inferred, did you mean 'scope'?"); if (tb.ty == Ttuple) { /* Instead, declare variables for each of the tuple elements * and add those. */ TypeTuple tt = cast(TypeTuple)tb; size_t nelems = Parameter.dim(tt.arguments); Expression ie = (_init && !_init.isVoidInitializer()) ? _init.toExpression() : null; if (ie) ie = ie.semantic(sc); if (nelems > 0 && ie) { auto iexps = new Expressions(); iexps.push(ie); auto exps = new Expressions(); for (size_t pos = 0; pos < iexps.dim; pos++) { Lexpand1: Expression e = (*iexps)[pos]; Parameter arg = Parameter.getNth(tt.arguments, pos); arg.type = arg.type.semantic(loc, sc); //printf("[%d] iexps.dim = %d, ", pos, iexps.dim); //printf("e = (%s %s, %s), ", Token::tochars[e.op], e.toChars(), e.type.toChars()); //printf("arg = (%s, %s)\n", arg.toChars(), arg.type.toChars()); if (e != ie) { if (iexps.dim > nelems) goto Lnomatch; if (e.type.implicitConvTo(arg.type)) continue; } if (e.op == TOKtuple) { TupleExp te = cast(TupleExp)e; if (iexps.dim - 1 + te.exps.dim > nelems) goto Lnomatch; iexps.remove(pos); iexps.insert(pos, te.exps); (*iexps)[pos] = Expression.combine(te.e0, (*iexps)[pos]); goto Lexpand1; } else if (isAliasThisTuple(e)) { auto v = copyToTemp(0, "__tup", e); v.semantic(sc); auto ve = new VarExp(loc, v); ve.type = e.type; exps.setDim(1); (*exps)[0] = ve; expandAliasThisTuples(exps, 0); for (size_t u = 0; u < exps.dim; u++) { Lexpand2: Expression ee = (*exps)[u]; arg = Parameter.getNth(tt.arguments, pos + u); arg.type = arg.type.semantic(loc, sc); //printf("[%d+%d] exps.dim = %d, ", pos, u, exps.dim); //printf("ee = (%s %s, %s), ", Token::tochars[ee.op], ee.toChars(), ee.type.toChars()); //printf("arg = (%s, %s)\n", arg.toChars(), arg.type.toChars()); size_t iexps_dim = iexps.dim - 1 + exps.dim; if (iexps_dim > nelems) goto Lnomatch; if (ee.type.implicitConvTo(arg.type)) continue; if (expandAliasThisTuples(exps, u) != -1) goto Lexpand2; } if ((*exps)[0] != ve) { Expression e0 = (*exps)[0]; (*exps)[0] = new CommaExp(loc, new DeclarationExp(loc, v), e0); (*exps)[0].type = e0.type; iexps.remove(pos); iexps.insert(pos, exps); goto Lexpand1; } } } if (iexps.dim < nelems) goto Lnomatch; ie = new TupleExp(_init.loc, iexps); } Lnomatch: if (ie && ie.op == TOKtuple) { TupleExp te = cast(TupleExp)ie; size_t tedim = te.exps.dim; if (tedim != nelems) { .error(loc, "tuple of %d elements cannot be assigned to tuple of %d elements", cast(int)tedim, cast(int)nelems); for (size_t u = tedim; u < nelems; u++) // fill dummy expression te.exps.push(new ErrorExp()); } } auto exps = new Objects(); exps.setDim(nelems); for (size_t i = 0; i < nelems; i++) { Parameter arg = Parameter.getNth(tt.arguments, i); OutBuffer buf; buf.printf("__%s_field_%llu", ident.toChars(), cast(ulong)i); auto id = Identifier.idPool(buf.peekSlice()); Initializer ti; if (ie) { Expression einit = ie; if (ie.op == TOKtuple) { TupleExp te = cast(TupleExp)ie; einit = (*te.exps)[i]; if (i == 0) einit = Expression.combine(te.e0, einit); } ti = new ExpInitializer(einit.loc, einit); } else ti = _init ? _init.syntaxCopy() : null; StorageClass storage_class = STCtemp | storage_class; if (arg.storageClass & STCparameter) storage_class |= arg.storageClass; auto v = new VarDeclaration(loc, arg.type, id, ti, storage_class); //printf("declaring field %s of type %s\n", v.toChars(), v.type.toChars()); v.semantic(sc); if (sc.scopesym) { //printf("adding %s to %s\n", v.toChars(), sc.scopesym.toChars()); if (sc.scopesym.members) // Note this prevents using foreach() over members, because the limits can change sc.scopesym.members.push(v); } Expression e = new DsymbolExp(loc, v); (*exps)[i] = e; } auto v2 = new TupleDeclaration(loc, ident, exps); v2.parent = this.parent; v2.isexp = true; aliassym = v2; semanticRun = PASSsemanticdone; return; } /* Storage class can modify the type */ type = type.addStorageClass(storage_class); /* Adjust storage class to reflect type */ if (type.isConst()) { storage_class |= STCconst; if (type.isShared()) storage_class |= STCshared; } else if (type.isImmutable()) storage_class |= STCimmutable; else if (type.isShared()) storage_class |= STCshared; else if (type.isWild()) storage_class |= STCwild; if (StorageClass stc = storage_class & (STCsynchronized | STCoverride | STCabstract | STCfinal)) { if (stc == STCfinal) error("cannot be final, perhaps you meant const?"); else { OutBuffer buf; stcToBuffer(&buf, stc); error("cannot be %s", buf.peekString()); } storage_class &= ~stc; // strip off } if (storage_class & STCscope) { StorageClass stc = storage_class & (STCstatic | STCextern | STCmanifest | STCtls | STCgshared); if (stc) { OutBuffer buf; stcToBuffer(&buf, stc); error("cannot be 'scope' and '%s'", buf.peekString()); } else if (isMember()) { error("field cannot be 'scope'"); } else if (!type.hasPointers()) { storage_class &= ~STCscope; // silently ignore; may occur in generic code } } if (storage_class & (STCstatic | STCextern | STCmanifest | STCtemplateparameter | STCtls | STCgshared | STCctfe)) { } else { AggregateDeclaration aad = parent.isAggregateDeclaration(); if (aad) { if (global.params.vfield && storage_class & (STCconst | STCimmutable) && _init && !_init.isVoidInitializer()) { const(char)* p = loc.toChars(); const(char)* s = (storage_class & STCimmutable) ? "immutable" : "const"; fprintf(global.stdmsg, "%s: %s.%s is %s field\n", p ? p : "", ad.toPrettyChars(), toChars(), s); } storage_class |= STCfield; if (tbn.ty == Tstruct && (cast(TypeStruct)tbn).sym.noDefaultCtor) { if (!isThisDeclaration() && !_init) aad.noDefaultCtor = true; } } InterfaceDeclaration id = parent.isInterfaceDeclaration(); if (id) { error("field not allowed in interface"); } else if (aad && aad.sizeok == SIZEOKdone) { error("cannot be further field because it will change the determined %s size", aad.toChars()); } /* Templates cannot add fields to aggregates */ TemplateInstance ti = parent.isTemplateInstance(); if (ti) { // Take care of nested templates while (1) { TemplateInstance ti2 = ti.tempdecl.parent.isTemplateInstance(); if (!ti2) break; ti = ti2; } // If it's a member template AggregateDeclaration ad2 = ti.tempdecl.isMember(); if (ad2 && storage_class != STCundefined) { error("cannot use template to add field to aggregate '%s'", ad2.toChars()); } } } if ((storage_class & (STCref | STCparameter | STCforeach | STCtemp | STCresult)) == STCref && ident != Id.This) { error("only parameters or foreach declarations can be ref"); } if (type.hasWild()) { if (storage_class & (STCstatic | STCextern | STCtls | STCgshared | STCmanifest | STCfield) || isDataseg()) { error("only parameters or stack based variables can be inout"); } FuncDeclaration func = sc.func; if (func) { if (func.fes) func = func.fes.func; bool isWild = false; for (FuncDeclaration fd = func; fd; fd = fd.toParent2().isFuncDeclaration()) { if ((cast(TypeFunction)fd.type).iswild) { isWild = true; break; } } if (!isWild) { error("inout variables can only be declared inside inout functions"); } } } if (!(storage_class & (STCctfe | STCref | STCresult)) && tbn.ty == Tstruct && (cast(TypeStruct)tbn).sym.noDefaultCtor) { if (!_init) { if (isField()) { /* For fields, we'll check the constructor later to make sure it is initialized */ storage_class |= STCnodefaultctor; } else if (storage_class & STCparameter) { } else error("default construction is disabled for type %s", type.toChars()); } } FuncDeclaration fd = parent.isFuncDeclaration(); if (type.isscope() && !(storage_class & STCnodtor)) { if (storage_class & (STCfield | STCout | STCref | STCstatic | STCmanifest | STCtls | STCgshared) || !fd) { error("globals, statics, fields, manifest constants, ref and out parameters cannot be scope"); } if (!(storage_class & STCscope)) { if (!(storage_class & STCparameter) && ident != Id.withSym) error("reference to scope class must be scope"); } } // Calculate type size + safety checks if (sc.func && !sc.intypeof) { if (_init && _init.isVoidInitializer() && type.hasPointers()) // get type size { if (sc.func.setUnsafe()) error("void initializers for pointers not allowed in safe functions"); } else if (!_init && !(storage_class & (STCstatic | STCextern | STCtls | STCgshared | STCmanifest | STCfield | STCparameter)) && type.hasVoidInitPointers()) { if (sc.func.setUnsafe()) error("void initializers for pointers not allowed in safe functions"); } } if (!_init && !fd) { // If not mutable, initializable by constructor only storage_class |= STCctorinit; } if (_init) storage_class |= STCinit; // remember we had an explicit initializer else if (storage_class & STCmanifest) error("manifest constants must have initializers"); bool isBlit = false; d_uns64 sz; if (!_init && !sc.inunion && !(storage_class & (STCstatic | STCgshared | STCextern)) && fd && (!(storage_class & (STCfield | STCin | STCforeach | STCparameter | STCresult)) || (storage_class & STCout)) && (sz = type.size()) != 0) { // Provide a default initializer //printf("Providing default initializer for '%s'\n", toChars()); if (sz == SIZE_INVALID && type.ty != Terror) error("size of type %s is invalid", type.toChars()); Type tv = type; while (tv.ty == Tsarray) // Don't skip Tenum tv = tv.nextOf(); if (tv.needsNested()) { /* Nested struct requires valid enclosing frame pointer. * In StructLiteralExp::toElem(), it's calculated. */ assert(tbn.ty == Tstruct); checkFrameAccess(loc, sc, (cast(TypeStruct)tbn).sym); Expression e = tv.defaultInitLiteral(loc); e = new BlitExp(loc, new VarExp(loc, this), e); e = e.semantic(sc); _init = new ExpInitializer(loc, e); goto Ldtor; } if (tv.ty == Tstruct && (cast(TypeStruct)tv).sym.zeroInit == 1) { /* If a struct is all zeros, as a special case * set it's initializer to the integer 0. * In AssignExp::toElem(), we check for this and issue * a memset() to initialize the struct. * Must do same check in interpreter. */ Expression e = new IntegerExp(loc, 0, Type.tint32); e = new BlitExp(loc, new VarExp(loc, this), e); e.type = type; // don't type check this, it would fail _init = new ExpInitializer(loc, e); goto Ldtor; } if (type.baseElemOf().ty == Tvoid) { error("%s does not have a default initializer", type.toChars()); } else if (auto e = type.defaultInit(loc)) { _init = new ExpInitializer(loc, e); } // Default initializer is always a blit isBlit = true; } if (_init) { sc = sc.push(); sc.stc &= ~(STC_TYPECTOR | STCpure | STCnothrow | STCnogc | STCref | STCdisable); ExpInitializer ei = _init.isExpInitializer(); if (ei) // https://issues.dlang.org/show_bug.cgi?id=13424 // Preset the required type to fail in FuncLiteralDeclaration::semantic3 ei.exp = inferType(ei.exp, type); // If inside function, there is no semantic3() call if (sc.func || sc.intypeof == 1) { // If local variable, use AssignExp to handle all the various // possibilities. if (fd && !(storage_class & (STCmanifest | STCstatic | STCtls | STCgshared | STCextern)) && !_init.isVoidInitializer()) { //printf("fd = '%s', var = '%s'\n", fd.toChars(), toChars()); if (!ei) { ArrayInitializer ai = _init.isArrayInitializer(); Expression e; if (ai && tb.ty == Taarray) e = ai.toAssocArrayLiteral(); else e = _init.toExpression(); if (!e) { // Run semantic, but don't need to interpret _init = _init.semantic(sc, type, INITnointerpret); e = _init.toExpression(); if (!e) { error("is not a static and cannot have static initializer"); e = new ErrorExp(); } } ei = new ExpInitializer(_init.loc, e); _init = ei; } Expression exp = ei.exp; Expression e1 = new VarExp(loc, this); if (isBlit) exp = new BlitExp(loc, e1, exp); else exp = new ConstructExp(loc, e1, exp); canassign++; exp = exp.semantic(sc); canassign--; exp = exp.optimize(WANTvalue); if (exp.op == TOKerror) { _init = new ErrorInitializer(); ei = null; } else ei.exp = exp; if (ei && isScope()) { Expression ex = ei.exp; while (ex.op == TOKcomma) ex = (cast(CommaExp)ex).e2; if (ex.op == TOKblit || ex.op == TOKconstruct) ex = (cast(AssignExp)ex).e2; if (ex.op == TOKnew) { // See if initializer is a NewExp that can be allocated on the stack NewExp ne = cast(NewExp)ex; if (type.toBasetype().ty == Tclass) { if (ne.newargs && ne.newargs.dim > 1) { mynew = true; } else { ne.onstack = 1; onstack = true; } } } else if (ex.op == TOKfunction) { // or a delegate that doesn't escape a reference to the function FuncDeclaration f = (cast(FuncExp)ex).fd; f.tookAddressOf--; } } } else { // https://issues.dlang.org/show_bug.cgi?id=14166 // Don't run CTFE for the temporary variables inside typeof _init = _init.semantic(sc, type, sc.intypeof == 1 ? INITnointerpret : INITinterpret); } } else if (parent.isAggregateDeclaration()) { _scope = scx ? scx : sc.copy(); _scope.setNoFree(); } else if (storage_class & (STCconst | STCimmutable | STCmanifest) || type.isConst() || type.isImmutable()) { /* Because we may need the results of a const declaration in a * subsequent type, such as an array dimension, before semantic2() * gets ordinarily run, try to run semantic2() now. * Ignore failure. */ if (!inferred) { uint errors = global.errors; inuse++; if (ei) { Expression exp = ei.exp.syntaxCopy(); bool needctfe = isDataseg() || (storage_class & STCmanifest); if (needctfe) sc = sc.startCTFE(); exp = exp.semantic(sc); exp = resolveProperties(sc, exp); if (needctfe) sc = sc.endCTFE(); Type tb2 = type.toBasetype(); Type ti = exp.type.toBasetype(); /* The problem is the following code: * struct CopyTest { * double x; * this(double a) { x = a * 10.0;} * this(this) { x += 2.0; } * } * const CopyTest z = CopyTest(5.3); // ok * const CopyTest w = z; // not ok, postblit not run * static assert(w.x == 55.0); * because the postblit doesn't get run on the initialization of w. */ if (ti.ty == Tstruct) { StructDeclaration sd = (cast(TypeStruct)ti).sym; /* Look to see if initializer involves a copy constructor * (which implies a postblit) */ // there is a copy constructor // and exp is the same struct if (sd.postblit && tb2.toDsymbol(null) == sd) { // The only allowable initializer is a (non-copy) constructor if (exp.isLvalue()) error("of type struct %s uses this(this), which is not allowed in static initialization", tb2.toChars()); } } ei.exp = exp; } _init = _init.semantic(sc, type, INITinterpret); inuse--; if (global.errors > errors) { _init = new ErrorInitializer(); type = Type.terror; } } else { _scope = scx ? scx : sc.copy(); _scope.setNoFree(); } } sc = sc.pop(); } Ldtor: /* Build code to execute destruction, if necessary */ edtor = callScopeDtor(sc); if (edtor) { if (sc.func && storage_class & (STCstatic | STCgshared)) edtor = edtor.semantic(sc._module._scope); else edtor = edtor.semantic(sc); version (none) { // currently disabled because of std.stdio.stdin, stdout and stderr if (isDataseg() && !(storage_class & STCextern)) error("static storage variables cannot have destructors"); } } semanticRun = PASSsemanticdone; if (type.toBasetype().ty == Terror) errors = true; if(sc.scopesym && !sc.scopesym.isAggregateDeclaration()) { for (ScopeDsymbol sym = sc.scopesym; sym && endlinnum == 0; sym = sym.parent ? sym.parent.isScopeDsymbol() : null) endlinnum = sym.endlinnum; } } override final void setFieldOffset(AggregateDeclaration ad, uint* poffset, bool isunion) { //printf("VarDeclaration::setFieldOffset(ad = %s) %s\n", ad.toChars(), toChars()); if (aliassym) { // If this variable was really a tuple, set the offsets for the tuple fields TupleDeclaration v2 = aliassym.isTupleDeclaration(); assert(v2); for (size_t i = 0; i < v2.objects.dim; i++) { RootObject o = (*v2.objects)[i]; assert(o.dyncast() == DYNCAST.expression); Expression e = cast(Expression)o; assert(e.op == TOKdsymbol); DsymbolExp se = cast(DsymbolExp)e; se.s.setFieldOffset(ad, poffset, isunion); } return; } if (!isField()) return; assert(!(storage_class & (STCstatic | STCextern | STCparameter | STCtls))); //printf("+VarDeclaration::setFieldOffset(ad = %s) %s\n", ad.toChars(), toChars()); /* Fields that are tuples appear both as part of TupleDeclarations and * as members. That means ignore them if they are already a field. */ if (offset) { // already a field *poffset = ad.structsize; // https://issues.dlang.org/show_bug.cgi?id=13613 return; } for (size_t i = 0; i < ad.fields.dim; i++) { if (ad.fields[i] == this) { // already a field *poffset = ad.structsize; // https://issues.dlang.org/show_bug.cgi?id=13613 return; } } // Check for forward referenced types which will fail the size() call Type t = type.toBasetype(); if (storage_class & STCref) { // References are the size of a pointer t = Type.tvoidptr; } Type tv = t.baseElemOf(); if (tv.ty == Tstruct) { auto ts = cast(TypeStruct)tv; assert(ts.sym != ad); // already checked in ad.determineFields() if (!ts.sym.determineSize(loc)) { type = Type.terror; errors = true; return; } } // List in ad.fields. Even if the type is error, it's necessary to avoid // pointless error diagnostic "more initializers than fields" on struct literal. ad.fields.push(this); if (t.ty == Terror) return; const sz = t.size(loc); assert(sz != SIZE_INVALID && sz < uint.max); uint memsize = cast(uint)sz; // size of member uint memalignsize = Target.fieldalign(t); // size of member for alignment purposes offset = AggregateDeclaration.placeField( poffset, memsize, memalignsize, alignment, &ad.structsize, &ad.alignsize, isunion); //printf("\t%s: memalignsize = %d\n", toChars(), memalignsize); //printf(" addField '%s' to '%s' at offset %d, size = %d\n", toChars(), ad.toChars(), offset, memsize); } override final void semantic2(Scope* sc) { if (semanticRun < PASSsemanticdone && inuse) return; //printf("VarDeclaration::semantic2('%s')\n", toChars()); if (_init && !toParent().isFuncDeclaration()) { inuse++; version (none) { ExpInitializer ei = _init.isExpInitializer(); if (ei) { ei.exp.print(); printf("type = %p\n", ei.exp.type); } } // https://issues.dlang.org/show_bug.cgi?id=14166 // Don't run CTFE for the temporary variables inside typeof _init = _init.semantic(sc, type, sc.intypeof == 1 ? INITnointerpret : INITinterpret); inuse--; } if (_init && storage_class & STCmanifest) { /* Cannot initializer enums with CTFE classreferences and addresses of struct literals. * Scan initializer looking for them. Issue error if found. */ if (ExpInitializer ei = _init.isExpInitializer()) { static bool hasInvalidEnumInitializer(Expression e) { static bool arrayHasInvalidEnumInitializer(Expressions* elems) { foreach (e; *elems) { if (e && hasInvalidEnumInitializer(e)) return true; } return false; } if (e.op == TOKclassreference) return true; if (e.op == TOKaddress && (cast(AddrExp)e).e1.op == TOKstructliteral) return true; if (e.op == TOKarrayliteral) return arrayHasInvalidEnumInitializer((cast(ArrayLiteralExp)e).elements); if (e.op == TOKstructliteral) return arrayHasInvalidEnumInitializer((cast(StructLiteralExp)e).elements); if (e.op == TOKassocarrayliteral) { AssocArrayLiteralExp ae = cast(AssocArrayLiteralExp)e; return arrayHasInvalidEnumInitializer(ae.values) || arrayHasInvalidEnumInitializer(ae.keys); } return false; } if (hasInvalidEnumInitializer(ei.exp)) error(": Unable to initialize enum with class or pointer to struct. Use static const variable instead."); } } else if (_init && isThreadlocal()) { if ((type.ty == Tclass) && type.isMutable() && !type.isShared()) { ExpInitializer ei = _init.isExpInitializer(); if (ei && ei.exp.op == TOKclassreference) error("is mutable. Only const or immutable class thread local variable are allowed, not %s", type.toChars()); } else if (type.ty == Tpointer && type.nextOf().ty == Tstruct && type.nextOf().isMutable() && !type.nextOf().isShared()) { ExpInitializer ei = _init.isExpInitializer(); if (ei && ei.exp.op == TOKaddress && (cast(AddrExp)ei.exp).e1.op == TOKstructliteral) { error("is a pointer to mutable struct. Only pointers to const, immutable or shared struct thread local variable are allowed, not %s", type.toChars()); } } } semanticRun = PASSsemantic2done; } override const(char)* kind() const { return "variable"; } override final AggregateDeclaration isThis() { AggregateDeclaration ad = null; if (!(storage_class & (STCstatic | STCextern | STCmanifest | STCtemplateparameter | STCtls | STCgshared | STCctfe))) { for (Dsymbol s = this; s; s = s.parent) { ad = s.isMember(); if (ad) break; if (!s.parent || !s.parent.isTemplateMixin()) break; } } return ad; } override final bool needThis() { //printf("VarDeclaration::needThis(%s, x%x)\n", toChars(), storage_class); return isField(); } override final bool isExport() { return protection.kind == PROTexport; } override final bool isImportedSymbol() { if (protection.kind == PROTexport && !_init && (storage_class & STCstatic || parent.isModule())) return true; return false; } /******************************* * Does symbol go into data segment? * Includes extern variables. */ override final bool isDataseg() { version (none) { printf("VarDeclaration::isDataseg(%p, '%s')\n", this, toChars()); printf("%llx, isModule: %p, isTemplateInstance: %p, isNspace: %p\n", storage_class & (STCstatic | STCconst), parent.isModule(), parent.isTemplateInstance(), parent.isNspace()); printf("parent = '%s'\n", parent.toChars()); } if (isdataseg == 0) // the value is not cached { isdataseg = 2; // The Variables does not go into the datasegment if (!canTakeAddressOf()) { return false; } Dsymbol parent = toParent(); if (!parent && !(storage_class & STCstatic)) { error("forward referenced"); type = Type.terror; } else if (storage_class & (STCstatic | STCextern | STCtls | STCgshared) || parent.isModule() || parent.isTemplateInstance() || parent.isNspace()) { isdataseg = 1; // It is in the DataSegment } } return (isdataseg == 1); } /************************************ * Does symbol go into thread local storage? */ override final bool isThreadlocal() { //printf("VarDeclaration::isThreadlocal(%p, '%s')\n", this, toChars()); /* Data defaults to being thread-local. It is not thread-local * if it is immutable, const or shared. */ bool i = isDataseg() && !(storage_class & (STCimmutable | STCconst | STCshared | STCgshared)); //printf("\treturn %d\n", i); return i; } /******************************************** * Can variable be read and written by CTFE? */ final bool isCTFE() { return (storage_class & STCctfe) != 0; // || !isDataseg(); } final bool isOverlappedWith(VarDeclaration v) { const vsz = v.type.size(); const tsz = type.size(); assert(vsz != SIZE_INVALID && tsz != SIZE_INVALID); return offset < v.offset + vsz && v.offset < offset + tsz; } override final bool hasPointers() { //printf("VarDeclaration::hasPointers() %s, ty = %d\n", toChars(), type.ty); return (!isDataseg() && type.hasPointers()); } /************************************* * Return true if we can take the address of this variable. */ final bool canTakeAddressOf() { return !(storage_class & STCmanifest); } /****************************************** * Return true if variable needs to call the destructor. */ final bool needsScopeDtor() { //printf("VarDeclaration::needsScopeDtor() %s\n", toChars()); return edtor && !(storage_class & STCnodtor); } /****************************************** * If a variable has a scope destructor call, return call for it. * Otherwise, return NULL. */ final Expression callScopeDtor(Scope* sc) { //printf("VarDeclaration::callScopeDtor() %s\n", toChars()); // Destruction of STCfield's is handled by buildDtor() if (storage_class & (STCnodtor | STCref | STCout | STCfield)) { return null; } Expression e = null; // Destructors for structs and arrays of structs Type tv = type.baseElemOf(); if (tv.ty == Tstruct) { StructDeclaration sd = (cast(TypeStruct)tv).sym; if (!sd.dtor || sd.errors) return null; const sz = type.size(); assert(sz != SIZE_INVALID); if (!sz) return null; if (type.toBasetype().ty == Tstruct) { // v.__xdtor() e = new VarExp(loc, this); /* This is a hack so we can call destructors on const/immutable objects. * Need to add things like "const ~this()" and "immutable ~this()" to * fix properly. */ e.type = e.type.mutableOf(); // Enable calling destructors on shared objects. // The destructor is always a single, non-overloaded function, // and must serve both shared and non-shared objects. e.type = e.type.unSharedOf; e = new DotVarExp(loc, e, sd.dtor, false); e = new CallExp(loc, e); } else { // _ArrayDtor(v[0 .. n]) e = new VarExp(loc, this); const sdsz = sd.type.size(); assert(sdsz != SIZE_INVALID && sdsz != 0); const n = sz / sdsz; e = new SliceExp(loc, e, new IntegerExp(loc, 0, Type.tsize_t), new IntegerExp(loc, n, Type.tsize_t)); // Prevent redundant bounds check (cast(SliceExp)e).upperIsInBounds = true; (cast(SliceExp)e).lowerIsLessThanUpper = true; // This is a hack so we can call destructors on const/immutable objects. e.type = sd.type.arrayOf(); e = new CallExp(loc, new IdentifierExp(loc, Id._ArrayDtor), e); } return e; } // Destructors for classes if (storage_class & (STCauto | STCscope) && !(storage_class & STCparameter)) { for (ClassDeclaration cd = type.isClassHandle(); cd; cd = cd.baseClass) { /* We can do better if there's a way with onstack * classes to determine if there's no way the monitor * could be set. */ //if (cd.isInterfaceDeclaration()) // error("interface %s cannot be scope", cd.toChars()); if (cd.cpp) { // Destructors are not supported on extern(C++) classes break; } if (mynew || onstack || cd.dtors.dim) // if any destructors { // delete this; Expression ec; ec = new VarExp(loc, this); e = new DeleteExp(loc, ec, true); e.type = Type.tvoid; break; } } } return e; } /******************************************* * If variable has a constant expression initializer, get it. * Otherwise, return null. */ final Expression getConstInitializer(bool needFullType = true) { assert(type && _init); // Ungag errors when not speculative uint oldgag = global.gag; if (global.gag) { Dsymbol sym = toParent().isAggregateDeclaration(); if (sym && !sym.isSpeculative()) global.gag = 0; } if (_scope) { inuse++; _init = _init.semantic(_scope, type, INITinterpret); _scope = null; inuse--; } Expression e = _init.toExpression(needFullType ? type : null); global.gag = oldgag; return e; } /******************************************* * Helper function for the expansion of manifest constant. */ final Expression expandInitializer(Loc loc) { assert((storage_class & STCmanifest) && _init); auto e = getConstInitializer(); if (!e) { .error(loc, "cannot make expression out of initializer for %s", toChars()); return new ErrorExp(); } e = e.copy(); e.loc = loc; // for better error message return e; } override final void checkCtorConstInit() { version (none) { /* doesn't work if more than one static ctor */ if (ctorinit == 0 && isCtorinit() && !isField()) error("missing initializer in static constructor for const variable"); } } /************************************ * Check to see if this variable is actually in an enclosing function * rather than the current one. * Returns true if error occurs. */ final bool checkNestedReference(Scope* sc, Loc loc) { //printf("VarDeclaration::checkNestedReference() %s\n", toChars()); if (sc.intypeof == 1 || (sc.flags & SCOPEctfe)) return false; if (!parent || parent == sc.parent) return false; if (isDataseg() || (storage_class & STCmanifest)) return false; // The current function FuncDeclaration fdthis = sc.parent.isFuncDeclaration(); if (!fdthis) return false; // out of function scope Dsymbol p = toParent2(); // Function literals from fdthis to p must be delegates ensureStaticLinkTo(fdthis, p); // The function that this variable is in FuncDeclaration fdv = p.isFuncDeclaration(); if (!fdv || fdv == fdthis) return false; // Add fdthis to nestedrefs[] if not already there for (size_t i = 0; 1; i++) { if (i == nestedrefs.dim) { nestedrefs.push(fdthis); break; } if (nestedrefs[i] == fdthis) break; } /* __require and __ensure will always get called directly, * so they never make outer functions closure. */ if (fdthis.ident == Id.require || fdthis.ident == Id.ensure) return false; //printf("\tfdv = %s\n", fdv.toChars()); //printf("\tfdthis = %s\n", fdthis.toChars()); if (loc.filename) { int lv = fdthis.getLevel(loc, sc, fdv); if (lv == -2) // error return true; } // Add this to fdv.closureVars[] if not already there for (size_t i = 0; 1; i++) { if (i == fdv.closureVars.dim) { if (!sc.intypeof && !(sc.flags & SCOPEcompile)) fdv.closureVars.push(this); break; } if (fdv.closureVars[i] == this) break; } //printf("fdthis is %s\n", fdthis.toChars()); //printf("var %s in function %s is nested ref\n", toChars(), fdv.toChars()); // __dollar creates problems because it isn't a real variable // https://issues.dlang.org/show_bug.cgi?id=3326 if (ident == Id.dollar) { .error(loc, "cannnot use $ inside a function literal"); return true; } if (ident == Id.withSym) // https://issues.dlang.org/show_bug.cgi?id=1759 { ExpInitializer ez = _init.isExpInitializer(); assert(ez); Expression e = ez.exp; if (e.op == TOKconstruct || e.op == TOKblit) e = (cast(AssignExp)e).e2; return lambdaCheckForNestedRef(e, sc); } return false; } override final Dsymbol toAlias() { //printf("VarDeclaration::toAlias('%s', this = %p, aliassym = %p)\n", toChars(), this, aliassym); if ((!type || !type.deco) && _scope) semantic(_scope); assert(this != aliassym); Dsymbol s = aliassym ? aliassym.toAlias() : this; return s; } // Eliminate need for dynamic_cast override final inout(VarDeclaration) isVarDeclaration() inout { return this; } override void accept(Visitor v) { v.visit(this); } /********************************** * Determine if `this` has a lifetime that lasts past * the destruction of `v` * Params: * v = variable to test against * Returns: * true if it does */ final bool enclosesLifetimeOf(VarDeclaration v) const pure { return sequenceNumber < v.sequenceNumber; } } /*********************************************************** * This is a shell around a back end symbol */ extern (C++) final class SymbolDeclaration : Declaration { StructDeclaration dsym; extern (D) this(Loc loc, StructDeclaration dsym) { super(dsym.ident); this.loc = loc; this.dsym = dsym; storage_class |= STCconst; } // Eliminate need for dynamic_cast override inout(SymbolDeclaration) isSymbolDeclaration() inout { return this; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) class TypeInfoDeclaration : VarDeclaration { Type tinfo; final extern (D) this(Type tinfo) { super(Loc(), Type.dtypeinfo.type, tinfo.getTypeInfoIdent(), null); this.tinfo = tinfo; storage_class = STCstatic | STCgshared; protection = Prot(PROTpublic); linkage = LINKc; alignment = Target.ptrsize; } static TypeInfoDeclaration create(Type tinfo) { return new TypeInfoDeclaration(tinfo); } override final Dsymbol syntaxCopy(Dsymbol s) { assert(0); // should never be produced by syntax } override final void semantic(Scope* sc) { assert(linkage == LINKc); } override final const(char)* toChars() { //printf("TypeInfoDeclaration::toChars() tinfo = %s\n", tinfo.toChars()); OutBuffer buf; buf.writestring("typeid("); buf.writestring(tinfo.toChars()); buf.writeByte(')'); return buf.extractString(); } override final inout(TypeInfoDeclaration) isTypeInfoDeclaration() inout { return this; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TypeInfoStructDeclaration : TypeInfoDeclaration { extern (D) this(Type tinfo) { super(tinfo); if (!Type.typeinfostruct) { ObjectNotFound(Id.TypeInfo_Struct); } type = Type.typeinfostruct.type; } static TypeInfoStructDeclaration create(Type tinfo) { return new TypeInfoStructDeclaration(tinfo); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TypeInfoClassDeclaration : TypeInfoDeclaration { extern (D) this(Type tinfo) { super(tinfo); if (!Type.typeinfoclass) { ObjectNotFound(Id.TypeInfo_Class); } type = Type.typeinfoclass.type; } static TypeInfoClassDeclaration create(Type tinfo) { return new TypeInfoClassDeclaration(tinfo); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TypeInfoInterfaceDeclaration : TypeInfoDeclaration { extern (D) this(Type tinfo) { super(tinfo); if (!Type.typeinfointerface) { ObjectNotFound(Id.TypeInfo_Interface); } type = Type.typeinfointerface.type; } static TypeInfoInterfaceDeclaration create(Type tinfo) { return new TypeInfoInterfaceDeclaration(tinfo); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TypeInfoPointerDeclaration : TypeInfoDeclaration { extern (D) this(Type tinfo) { super(tinfo); if (!Type.typeinfopointer) { ObjectNotFound(Id.TypeInfo_Pointer); } type = Type.typeinfopointer.type; } static TypeInfoPointerDeclaration create(Type tinfo) { return new TypeInfoPointerDeclaration(tinfo); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TypeInfoArrayDeclaration : TypeInfoDeclaration { extern (D) this(Type tinfo) { super(tinfo); if (!Type.typeinfoarray) { ObjectNotFound(Id.TypeInfo_Array); } type = Type.typeinfoarray.type; } static TypeInfoArrayDeclaration create(Type tinfo) { return new TypeInfoArrayDeclaration(tinfo); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TypeInfoStaticArrayDeclaration : TypeInfoDeclaration { extern (D) this(Type tinfo) { super(tinfo); if (!Type.typeinfostaticarray) { ObjectNotFound(Id.TypeInfo_StaticArray); } type = Type.typeinfostaticarray.type; } static TypeInfoStaticArrayDeclaration create(Type tinfo) { return new TypeInfoStaticArrayDeclaration(tinfo); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TypeInfoAssociativeArrayDeclaration : TypeInfoDeclaration { extern (D) this(Type tinfo) { super(tinfo); if (!Type.typeinfoassociativearray) { ObjectNotFound(Id.TypeInfo_AssociativeArray); } type = Type.typeinfoassociativearray.type; } static TypeInfoAssociativeArrayDeclaration create(Type tinfo) { return new TypeInfoAssociativeArrayDeclaration(tinfo); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TypeInfoEnumDeclaration : TypeInfoDeclaration { extern (D) this(Type tinfo) { super(tinfo); if (!Type.typeinfoenum) { ObjectNotFound(Id.TypeInfo_Enum); } type = Type.typeinfoenum.type; } static TypeInfoEnumDeclaration create(Type tinfo) { return new TypeInfoEnumDeclaration(tinfo); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TypeInfoFunctionDeclaration : TypeInfoDeclaration { extern (D) this(Type tinfo) { super(tinfo); if (!Type.typeinfofunction) { ObjectNotFound(Id.TypeInfo_Function); } type = Type.typeinfofunction.type; } static TypeInfoFunctionDeclaration create(Type tinfo) { return new TypeInfoFunctionDeclaration(tinfo); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TypeInfoDelegateDeclaration : TypeInfoDeclaration { extern (D) this(Type tinfo) { super(tinfo); if (!Type.typeinfodelegate) { ObjectNotFound(Id.TypeInfo_Delegate); } type = Type.typeinfodelegate.type; } static TypeInfoDelegateDeclaration create(Type tinfo) { return new TypeInfoDelegateDeclaration(tinfo); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TypeInfoTupleDeclaration : TypeInfoDeclaration { extern (D) this(Type tinfo) { super(tinfo); if (!Type.typeinfotypelist) { ObjectNotFound(Id.TypeInfo_Tuple); } type = Type.typeinfotypelist.type; } static TypeInfoTupleDeclaration create(Type tinfo) { return new TypeInfoTupleDeclaration(tinfo); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TypeInfoConstDeclaration : TypeInfoDeclaration { extern (D) this(Type tinfo) { super(tinfo); if (!Type.typeinfoconst) { ObjectNotFound(Id.TypeInfo_Const); } type = Type.typeinfoconst.type; } static TypeInfoConstDeclaration create(Type tinfo) { return new TypeInfoConstDeclaration(tinfo); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TypeInfoInvariantDeclaration : TypeInfoDeclaration { extern (D) this(Type tinfo) { super(tinfo); if (!Type.typeinfoinvariant) { ObjectNotFound(Id.TypeInfo_Invariant); } type = Type.typeinfoinvariant.type; } static TypeInfoInvariantDeclaration create(Type tinfo) { return new TypeInfoInvariantDeclaration(tinfo); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TypeInfoSharedDeclaration : TypeInfoDeclaration { extern (D) this(Type tinfo) { super(tinfo); if (!Type.typeinfoshared) { ObjectNotFound(Id.TypeInfo_Shared); } type = Type.typeinfoshared.type; } static TypeInfoSharedDeclaration create(Type tinfo) { return new TypeInfoSharedDeclaration(tinfo); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TypeInfoWildDeclaration : TypeInfoDeclaration { extern (D) this(Type tinfo) { super(tinfo); if (!Type.typeinfowild) { ObjectNotFound(Id.TypeInfo_Wild); } type = Type.typeinfowild.type; } static TypeInfoWildDeclaration create(Type tinfo) { return new TypeInfoWildDeclaration(tinfo); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** */ extern (C++) final class TypeInfoVectorDeclaration : TypeInfoDeclaration { extern (D) this(Type tinfo) { super(tinfo); if (!Type.typeinfovector) { ObjectNotFound(Id.TypeInfo_Vector); } type = Type.typeinfovector.type; } static TypeInfoVectorDeclaration create(Type tinfo) { return new TypeInfoVectorDeclaration(tinfo); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * For the "this" parameter to member functions */ extern (C++) final class ThisDeclaration : VarDeclaration { extern (D) this(Loc loc, Type t) { super(loc, t, Id.This, null); storage_class |= STCnodtor; } override Dsymbol syntaxCopy(Dsymbol s) { assert(0); // should never be produced by syntax } override inout(ThisDeclaration) isThisDeclaration() inout { return this; } override void accept(Visitor v) { v.visit(this); } }
D
/Users/chenxuewen/testrust/learnrust/rust-outter-crate/target/rls/debug/deps/rand-8fc6e9e10d0e291f.rmeta: /Users/chenxuewen/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.3.23/src/lib.rs /Users/chenxuewen/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.3.23/src/distributions/mod.rs /Users/chenxuewen/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.3.23/src/rand_impls.rs /Users/chenxuewen/testrust/learnrust/rust-outter-crate/target/rls/debug/deps/rand-8fc6e9e10d0e291f.d: /Users/chenxuewen/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.3.23/src/lib.rs /Users/chenxuewen/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.3.23/src/distributions/mod.rs /Users/chenxuewen/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.3.23/src/rand_impls.rs /Users/chenxuewen/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.3.23/src/lib.rs: /Users/chenxuewen/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.3.23/src/distributions/mod.rs: /Users/chenxuewen/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.3.23/src/rand_impls.rs:
D
var int Martin_ItemsGiven_Chapter_1; var int Martin_ItemsGiven_Chapter_2; var int Martin_ItemsGiven_Chapter_3; var int Martin_ItemsGiven_Chapter_4; var int Martin_ItemsGiven_Chapter_5; var int Martin_ItemsGiven_JoinGuild; func void B_GiveTradeInv_Addon_Martin(var C_Npc slf) { if((Kapitel >= 1) && (Martin_ItemsGiven_Chapter_1 == FALSE)) { CreateInvItems(slf,ItSc_PalHolyBolt,1); CreateInvItems(slf,ItSc_PalMediumHeal,1); CreateInvItems(slf,ItSc_PalLight,10); CreateInvItems(slf,ItMw_ShortSword1,2); CreateInvItems(slf,ItMw_ShortSword2,2); CreateInvItems(slf,ItMw_1h_Mil_Sword,2); CreateInvItems(slf,ItMw_ShortSword5,2); CreateInvItems(slf,ItRi_Mana_01,1); Martin_ItemsGiven_Chapter_1 = TRUE; }; if((Kapitel >= 1) && (Martin_ItemsGiven_JoinGuild == FALSE) && hero.guild != GIL_NONE) { CreateInvItems(slf,ItMw_1H_Common_01,2); CreateInvItems(slf,ItSc_PalHolyBolt,1); CreateInvItems(slf,ItSc_PalRepelEvil,1); CreateInvItems(slf,ItSc_PalMediumHeal,1); CreateInvItems(slf,ItMi_Moleratlubric_MIS,1); Martin_ItemsGiven_JoinGuild = TRUE; }; if((Kapitel >= 2) && (Martin_ItemsGiven_Chapter_2 == FALSE)) { CreateInvItems(slf,ItSc_PalHolyBolt,2); CreateInvItems(slf,ItSc_PalMediumHeal,1); CreateInvItems(slf,ItSc_PalRepelEvil,1); CreateInvItems(slf,ItMw_Addon_PIR1hSword,2); CreateInvItems(slf,ItMW_Addon_Hacker_2h_02,2); CreateInvItems(slf,ItSc_PalFullHeal,1); Martin_ItemsGiven_Chapter_2 = TRUE; }; if((Kapitel >= 3) && (Martin_ItemsGiven_Chapter_3 == FALSE)) { CreateInvItems(slf,ItSc_PalHolyBolt,2); CreateInvItems(slf,ItSc_PalMediumHeal,1); CreateInvItems(slf,ItSc_PalRepelEvil,1); CreateInvItems(slf,ItMw_Schwert3,2); CreateInvItems(slf,ItMW_Addon_Hacker_1h_01,2); CreateInvItems(slf,ItMW_Addon_Hacker_2h_01,2); CreateInvItems(slf,ItMi_Nugget,1); CreateInvItems(slf,ItMw_Runenschwert,2); CreateInvItems(slf,ItMw_Meisterdegen,2); CreateInvItems(slf,ItSc_PalFullHeal,2); Martin_ItemsGiven_Chapter_3 = TRUE; }; if((Kapitel >= 4) && (Martin_ItemsGiven_Chapter_4 == FALSE)) { CreateInvItems(slf,ItSc_PalHolyBolt,2); CreateInvItems(slf,ItSc_PalMediumHeal,1); CreateInvItems(slf,ItSc_PalDestroyEvil,1); CreateInvItems(slf,ItSc_PalRepelEvil,2); CreateInvItems(slf,ItSc_PalFullHeal,3); Martin_ItemsGiven_Chapter_4 = TRUE; }; if((Kapitel >= 5) && (Martin_ItemsGiven_Chapter_5 == FALSE)) { CreateInvItems(slf,ItSc_PalHolyBolt,2); CreateInvItems(slf,ItSc_PalMediumHeal,1); CreateInvItems(slf,ItSc_PalDestroyEvil,2); CreateInvItems(slf,ItSc_PalRepelEvil,3); CreateInvItems(slf,ItSc_PalFullHeal,2); Martin_ItemsGiven_Chapter_5 = TRUE; }; };
D
import std.stdio; import std.getopt; import std.algorithm; import std.regex; import std.uri; import std.net.browser; int main(string[] args) { if (args.length < 2) { writeln("dman: Look up D topics in the manual Usage: dman [-man] topic "); return 1; } bool man; getopt(args, "man", { man = true; }); if (man) browse("http://www.digitalmars.com/"); else if (args.length != 2) { writeln("dman: no topic"); return 1; } auto topic = args[1]; auto url = topic2url(topic); if (url) { browse(url); } else { writefln("dman: topic '%s' not found", topic); return 1; } return 0; } string topic2url(string topic) { /* Instead of hardwiring these, dman should read from a .json database pointed to * by sc.ini or dmd.conf. */ string url; url = DmcCommands(topic); if (!url) url = CHeader(topic); if (!url) url = Clib(topic); if (!url) url = Misc(topic); if (!url) url = Phobos(topic); if (!url) // Try "I'm Feeling Lucky" url = "http://www.google.com/search?q=" ~ std.uri.encode(topic) ~ "&as_oq=site:d-programming-language.org+site:digitalmars.com&btnI=I%27m+Feeling+Lucky"; return url; } string DmcCommands(string topic) { static string[] dmccmds = [ "bcc", "chmod", "cl", "coff2omf", "coffimplib", "dmc", "diff", "diffdir", "dman", "dump", "dumpobj", "dumpexe", "exe2bin", "flpyimg", "grep", "hc", "htod", "implib", "lib", "libunres", "link", "linker", "make", "makedep", "me", "obj2asm", "optlink", "patchobj", "rc", "rcc", "sc", "shell", "smake", "touch", "unmangle", "whereis", ]; if (find(dmccmds, topic).length) { if (topic == "dmc") topic = "sc"; else if (topic == "link") topic = "optlink"; else if (topic == "linker") topic = "optlink"; return "http://www.digitalmars.com/ctg/" ~ topic ~ ".html"; } return null; } string CHeader(string topic) { static string[] dmccmds = [ "assert.h", "complex.h", "ctype.h", "fenv.h", "float.h", "locale.h", "math.h", "setjmp.h," "signal.h", "stdarg.h", "stddef.h", "stdio.h", "stdlib.h", "string.h", "time.h", "gc.h", "bios.h", "cerror.h", "disp.h", "dos.h", "emm.h", "handle.h", "int.h", "msmouse.h", "sound.h", "swap.h", "tsr.h", "winio.h", "bitops.h", "conio.h", "controlc.h", "direct.h", "fltpnt.h", "io.h", "page.h", "process.h", "search.h", "sys/stat.h", "tabsize.h", "trace.h", "utime.h", "unmangle.h", "util.h", "regexp.h", "complex.h", "iostream.h", ]; if (find(dmccmds, topic).length) { return "http://www.digitalmars.com/rtl/" ~ topic ~ "tml"; } return null; } string Clib(string topic) { /***********************************************/ static string[] isxxxxfuncs = [ "isalnum", "isalpha", "__isascii", "iscntrl", "__iscsym", "__iscsymf", "isdigit", "isgraph", "islower", "isprint", "ispunct", "isspace", "isupper", "isxdigit", ]; if (find(isxxxxfuncs, topic).length) return "http://www.digitalmars.com/rtl/ctype.html#isxxxx"; static string[] toxxxxfuncs = [ "_tolower", "tolower", "_toupper", "toupper", ]; if (find(toxxxxfuncs, topic).length) return "http://www.digitalmars.com/rtl/ctype.html#_toxxxx"; if (topic == "__toascii") return "http://www.digitalmars.com/rtl/ctype.html#__toascii"; /***********************************************/ static string[] dispfuncs = [ "disp_box", "disp_close", "disp_eeol", "disp_eeop", "disp_endstand", "disp_fillbox", "disp_flush", "disp_getattr", "disp_getmode", "disp_hidecursor", "disp_move", "disp_open", "disp_peekbox", "disp_peekw", "disp_pokebox", "disp_pokew", "disp_printf", "disp_putc", "disp_puts", "disp_reset43", "disp_scroll", "disp_set43", "disp_setattr", "disp_setcursortype", "disp_setmode", "disp_showcursor", "disp_startstand", "disp_usebios", ]; if (find(dispfuncs, topic).length) return "http://www.digitalmars.com/rtl/disp.html#" ~ topic; /***********************************************/ static string[] stdiofuncs = [ "_fcloseall", "_fdopen", "_fgetchar", "_fileno", "_flushall", "_fputchar", "_fsopen", "_getw", "_okbigbuf", "_putw", "_rmtmp", "_stdaux", "_stdprn", "_tempnam", "clearerr", "fclose", "feof", "ferror", "fflush", "fgetc", "fgetpos", "fgets", "fopen", "printf", "fputc", "fputs", "fread", "freopen", "scanf", "fseek", "fsetpos", "ftell", "fwrite", "getc", "getchar", "gets", "putc", "putchar", "puts", "rewind", "setbuf", "setvbuf", "stderr", "stdin", "stdout", "tmpfile", "tmpnam", "ungetc", "vprintf", ]; switch (topic) { case "fprintf": case "sprintf": case "_snprintf": topic = "printf"; break; case "fscanf": case "sscanf": topic = "scanf"; break; default: break; } if (find(stdiofuncs, topic).length) return "http://www.digitalmars.com/rtl/stdio.html#" ~ topic; /***********************************************/ static string[] stringfuncs = [ "memchr", "memcmp", "_memccpy", "memcpy", "_memicmp", "memmove", "memset", "_movedata", "movmem", "_strdup", "_stricmp", "_strlwr", "strncmpi", "_strnset", "_strrev", "_strset", "_strtime", "_strupr", "_swab", "stpcpy", "strcat", "strchr", "strcmp", "strcoll", "strcpy", "strcspn", "strerror", "strlen", "strncat", "strncmp", "strncmpi", "strncpy", "strpbrk", "strrchr", "strspn", "strstr", "strtok", "strxfrm", "_sys_errlist", "_sys_nerr", ]; switch (topic) { case "_fmemccpy": topic = "_memccpy"; break; case "_fmemicmp": topic = "_memicmp"; break; case "_fmemmove": topic = "_memmove"; break; case "setmem": case "_fmemset": topic = "memset"; break; case "_fstrdup": topic = "_strdup"; break; case "_fstricmp": topic = "_stricmp"; break; case "_fstrlwr": topic = "_strlwr"; break; case "_strnicmp": case "_fstrnicmp": case "strncmpl": topic = "strncmpi"; break; case "_fstrnset": topic = "_strnset"; break; case "_fstrrev": topic = "_strrev"; break; case "_fstrset": topic = "_strset"; break; case "_fstrupr": topic = "_strupr"; break; case "_fmemchr": case "_fmemcmp": case "_fmemcpy": case "_fstrcat": case "_fstrchr": case "_fstrcpy": case "_fstrcspn": case "_fstrlen": case "_fstrncat": case "_fstrncmp": case "_fstrncpy": case "_fstrpbrk": case "_fstrrchr": case "_fstrspn": case "_fstrstr": case "_fstrtok": topic = topic[2..$]; break; default: break; } if (find(stringfuncs, topic).length) return "http://www.digitalmars.com/rtl/string.html#" ~ topic; /***********************************************/ return null; } string Misc(string topic) { string[string] misc = [ "D1": "http://www.digitalmars.com/d/1.0/", "D2": "http://www.d-programming-language.org/", "faq": "http://d-programming-language.org/faq.html", ]; auto purl = topic in misc; if (purl) return *purl; return null; } string Phobos(string topic) { string phobos = "http://www.d-programming-language.org/phobos/"; if (find(topic, '.').length) { topic = replace(topic, regex("\\.", "g"), "_"); return phobos ~ topic ~ ".html"; } return null; }
D
/* https://issues.dlang.org/show_bug.cgi?id=15399 TEST_OUTPUT: --- fail_compilation/test15399.d(32): Error: field `S1.ptr` cannot modify misaligned pointers in `@safe` code fail_compilation/test15399.d(33): Error: field `S2.ptr` cannot modify misaligned pointers in `@safe` code fail_compilation/test15399.d(34): Error: field `S1.ptr` cannot modify misaligned pointers in `@safe` code fail_compilation/test15399.d(35): Error: field `S2.ptr` cannot modify misaligned pointers in `@safe` code fail_compilation/test15399.d(36): Error: field `S1.ptr` cannot modify misaligned pointers in `@safe` code fail_compilation/test15399.d(37): Error: field `S2.ptr` cannot modify misaligned pointers in `@safe` code fail_compilation/test15399.d(38): Error: field `S1.ptr` cannot modify misaligned pointers in `@safe` code fail_compilation/test15399.d(39): Error: field `S2.ptr` cannot modify misaligned pointers in `@safe` code --- */ struct S1 { char c; align (1) int* ptr; } align (1) struct S2 { int* ptr; } @safe void test(S1* s1, S2* s2) { int* p = s1.ptr; p = s2.ptr; s1.ptr = null; s2.ptr = null; int** pp = &s1.ptr; pp = &s2.ptr; bar(s1.ptr); bar(s2.ptr); sinister(s1.ptr); sinister(s2.ptr); cbar(s1.ptr); cbar(s2.ptr); } @safe void bar(ref int*); @safe void cbar(ref const int*); @safe void sinister(out int*);
D
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/FormData.build/ContentDispositionParser.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/multipart.git-4210556629793786970/Sources/FormData/Field.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/multipart.git-4210556629793786970/Sources/FormData/Parser.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/multipart.git-4210556629793786970/Sources/FormData/ContentDispositionParser.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/multipart.git-4210556629793786970/Sources/FormData/Serializer.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/FormData.build/ContentDispositionParser~partial.swiftmodule : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/multipart.git-4210556629793786970/Sources/FormData/Field.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/multipart.git-4210556629793786970/Sources/FormData/Parser.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/multipart.git-4210556629793786970/Sources/FormData/ContentDispositionParser.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/multipart.git-4210556629793786970/Sources/FormData/Serializer.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/FormData.build/ContentDispositionParser~partial.swiftdoc : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/multipart.git-4210556629793786970/Sources/FormData/Field.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/multipart.git-4210556629793786970/Sources/FormData/Parser.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/multipart.git-4210556629793786970/Sources/FormData/ContentDispositionParser.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/multipart.git-4210556629793786970/Sources/FormData/Serializer.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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 B_AssessDrawWeapon() { if(Npc_IsInFightMode(other,FMODE_NONE)) { return FALSE; }; if(Npc_GetDistToNpc(self,other) > PERC_DIST_DIALOG) { return FALSE; }; if(!C_NpcIsBotheredByWeapon(self,other)) { return FALSE; }; if(Npc_IsInState(self,ZS_ReactToWeapon)) { return FALSE; }; if(Npc_IsInState(self,ZS_ObservePlayer) && Npc_WasInState(self,ZS_WatchFight)) { return FALSE; }; if(!Npc_CanSeeNpc(self,other)) { return FALSE; }; Npc_ClearAIQueue(self); B_ClearPerceptions(self); AI_StartState(self,ZS_ReactToWeapon,0,""); return TRUE; };
D
// Written in the D programming language. /** This module contains simple scrollbar-like controls implementation. ScrollBar - scrollbar control SliderWidget - slider control Synopsis: ---- import dlangui.widgets.scrollbar; ---- Copyright: Vadim Lopatin, 2014 License: Boost License 1.0 Authors: Vadim Lopatin, coolreader.org@gmail.com */ module dlangui.widgets.scrollbar; import dlangui.widgets.widget; import dlangui.widgets.layouts; import dlangui.widgets.controls; import dlangui.core.events; import dlangui.core.stdaction; private import std.algorithm; private import std.conv : to; private import std.utf : toUTF32; /// scroll event handler interface interface OnScrollHandler { /// handle scroll event bool onScrollEvent(AbstractSlider source, ScrollEvent event); } /// base class for widgets like scrollbars and sliders class AbstractSlider : WidgetGroup { protected int _minValue = 0; protected int _maxValue = 100; protected int _pageSize = 30; protected int _position = 20; /// create with ID parameter this(string ID) { super(ID); } /// scroll event listeners Signal!OnScrollHandler scrollEvent; /// returns slider position @property int position() const { return _position; } /// sets new slider position @property AbstractSlider position(int newPosition) { if (_position != newPosition) { _position = newPosition; onPositionChanged(); } return this; } protected void onPositionChanged() { requestLayout(); } /// returns slider range min value @property int minValue() const { return _minValue; } /// sets slider range min value @property AbstractSlider minValue(int v) { _minValue = v; return this; } /// returns slider range max value @property int maxValue() const { return _maxValue; } /// sets slider range max value @property AbstractSlider maxValue(int v) { _maxValue = v; return this; } /// page size (visible area size) @property int pageSize() const { return _pageSize; } /// set page size (visible area size) @property AbstractSlider pageSize(int size) { if (_pageSize != size) { _pageSize = size; requestLayout(); } return this; } /// set int property value, for ML loaders //mixin(generatePropertySettersMethodOverride("setIntProperty", "int", // "minValue", "maxValue", "pageSize", "position")); /// set int property value, for ML loaders override bool setIntProperty(string name, int value) { if (name.equal("orientation")) { // use same value for all sides orientation = cast(Orientation)value; return true; } mixin(generatePropertySetters("minValue", "maxValue", "pageSize", "position")); return super.setIntProperty(name, value); } /// set new range (min and max values for slider) AbstractSlider setRange(int min, int max) { if (_minValue != min || _maxValue != max) { _minValue = min; _maxValue = max; requestLayout(); } return this; } bool sendScrollEvent(ScrollAction action) { return sendScrollEvent(action, _position); } bool sendScrollEvent(ScrollAction action, int position) { if (!scrollEvent.assigned) return false; ScrollEvent event = new ScrollEvent(action, _minValue, _maxValue, _pageSize, position); bool res = scrollEvent(this, event); if (event.positionChanged) { _position = event.position; if (_position > _maxValue) _position = _maxValue; if (_position < _minValue) _position = _minValue; onPositionChanged(); } return true; } protected Orientation _orientation = Orientation.Vertical; /// returns scrollbar orientation (Vertical, Horizontal) @property Orientation orientation() { return _orientation; } /// sets scrollbar orientation @property AbstractSlider orientation(Orientation value) { if (_orientation != value) { _orientation = value; requestLayout(); } return this; } } /// scroll bar - either vertical or horizontal class ScrollBar : AbstractSlider, OnClickHandler { protected ImageButton _btnBack; protected ImageButton _btnForward; protected SliderButton _indicator; protected PageScrollButton _pageUp; protected PageScrollButton _pageDown; protected Rect _scrollArea; protected int _btnSize; protected int _minIndicatorSize; class PageScrollButton : Widget { this(string ID) { super(ID); styleId = STYLE_PAGE_SCROLL; trackHover = true; clickable = true; } } class SliderButton : ImageButton { Point _dragStart; int _dragStartPosition; bool _dragging; Rect _dragStartRect; this(string resourceId) { super("SLIDER", resourceId); styleId = STYLE_SCROLLBAR_BUTTON; trackHover = true; } /// process mouse event; return true if event is processed by widget. override bool onMouseEvent(MouseEvent event) { // support onClick if (event.action == MouseAction.ButtonDown && event.button == MouseButton.Left) { setState(State.Pressed); _dragging = true; _dragStart.x = event.x; _dragStart.y = event.y; _dragStartPosition = _position; _dragStartRect = _pos; sendScrollEvent(ScrollAction.SliderPressed, _position); return true; } if (event.action == MouseAction.FocusOut && _dragging) { debug(scrollbar) Log.d("ScrollBar slider dragging - FocusOut"); return true; } if (event.action == MouseAction.FocusIn && _dragging) { debug(scrollbar) Log.d("ScrollBar slider dragging - FocusIn"); return true; } if (event.action == MouseAction.Move && _dragging) { int delta = _orientation == Orientation.Vertical ? event.y - _dragStart.y : event.x - _dragStart.x; debug(scrollbar) Log.d("ScrollBar slider dragging - Move delta=", delta); Rect rc = _dragStartRect; int offset; int space; if (_orientation == Orientation.Vertical) { rc.top += delta; rc.bottom += delta; if (rc.top < _scrollArea.top) { rc.top = _scrollArea.top; rc.bottom = _scrollArea.top + _dragStartRect.height; } else if (rc.bottom > _scrollArea.bottom) { rc.top = _scrollArea.bottom - _dragStartRect.height; rc.bottom = _scrollArea.bottom; } offset = rc.top - _scrollArea.top; space = _scrollArea.height - rc.height; } else { rc.left += delta; rc.right += delta; if (rc.left < _scrollArea.left) { rc.left = _scrollArea.left; rc.right = _scrollArea.left + _dragStartRect.width; } else if (rc.right > _scrollArea.right) { rc.left = _scrollArea.right - _dragStartRect.width; rc.right = _scrollArea.right; } offset = rc.left - _scrollArea.left; space = _scrollArea.width - rc.width; } layoutButtons(rc); //_pos = rc; int position = cast(int)(space > 0 ? _minValue + cast(long)offset * (_maxValue - _minValue - _pageSize) / space : 0); invalidate(); onIndicatorDragging(_dragStartPosition, position); return true; } if (event.action == MouseAction.ButtonUp && event.button == MouseButton.Left) { resetState(State.Pressed); if (_dragging) { sendScrollEvent(ScrollAction.SliderReleased, _position); _dragging = false; } return true; } if (event.action == MouseAction.Move && trackHover) { if (!(state & State.Hovered)) { debug(scrollbar) Log.d("Hover ", id); setState(State.Hovered); } return true; } if (event.action == MouseAction.Leave && trackHover) { debug(scrollbar) Log.d("Leave ", id); resetState(State.Hovered); return true; } if (event.action == MouseAction.Cancel && trackHover) { debug(scrollbar) Log.d("Cancel ? trackHover", id); resetState(State.Hovered); resetState(State.Pressed); _dragging = false; return true; } if (event.action == MouseAction.Cancel) { debug(scrollbar) Log.d("SliderButton.onMouseEvent event.action == MouseAction.Cancel"); resetState(State.Pressed); _dragging = false; return true; } return false; } } protected bool onIndicatorDragging(int initialPosition, int currentPosition) { _position = currentPosition; return sendScrollEvent(ScrollAction.SliderMoved, currentPosition); } private bool calcButtonSizes(int availableSize, ref int spaceBackSize, ref int spaceForwardSize, ref int indicatorSize) { int dv = _maxValue - _minValue; if (_pageSize >= dv) { // full size spaceBackSize = spaceForwardSize = 0; indicatorSize = availableSize; return false; } if (dv < 0) dv = 0; indicatorSize = dv ? _pageSize * availableSize / dv : _minIndicatorSize; if (indicatorSize < _minIndicatorSize) indicatorSize = _minIndicatorSize; if (indicatorSize >= availableSize) { // full size spaceBackSize = spaceForwardSize = 0; indicatorSize = availableSize; return false; } int spaceLeft = availableSize - indicatorSize; int topv = _position - _minValue; int bottomv = _position + _pageSize - _minValue; if (topv < 0) topv = 0; if (bottomv > dv) bottomv = dv; bottomv = dv - bottomv; spaceBackSize = cast(int)(cast(long)spaceLeft * topv / (topv + bottomv)); spaceForwardSize = spaceLeft - spaceBackSize; return true; } /// returns scrollbar orientation (Vertical, Horizontal) override @property Orientation orientation() { return _orientation; } /// sets scrollbar orientation override @property AbstractSlider orientation(Orientation value) { if (_orientation != value) { _orientation = value; _btnBack.drawableId = style.customDrawableId(_orientation == Orientation.Vertical ? ATTR_SCROLLBAR_BUTTON_UP : ATTR_SCROLLBAR_BUTTON_LEFT); _btnForward.drawableId = style.customDrawableId(_orientation == Orientation.Vertical ? ATTR_SCROLLBAR_BUTTON_DOWN : ATTR_SCROLLBAR_BUTTON_RIGHT); _indicator.drawableId = style.customDrawableId(_orientation == Orientation.Vertical ? ATTR_SCROLLBAR_INDICATOR_VERTICAL : ATTR_SCROLLBAR_INDICATOR_HORIZONTAL); requestLayout(); } return this; } /// set string property value, for ML loaders override bool setStringProperty(string name, string value) { if (name.equal("orientation")) { if (value.equal("Vertical") || value.equal("vertical")) orientation = Orientation.Vertical; else orientation = Orientation.Horizontal; return true; } return super.setStringProperty(name, value); } /// empty parameter list constructor - for usage by factory this() { this(null, Orientation.Vertical); } /// create with ID parameter this(string ID, Orientation orient = Orientation.Vertical) { super(ID); styleId = STYLE_SCROLLBAR; _orientation = orient; _btnBack = new ImageButton("BACK", style.customDrawableId(_orientation == Orientation.Vertical ? ATTR_SCROLLBAR_BUTTON_UP : ATTR_SCROLLBAR_BUTTON_LEFT)); _btnForward = new ImageButton("FORWARD", style.customDrawableId(_orientation == Orientation.Vertical ? ATTR_SCROLLBAR_BUTTON_DOWN : ATTR_SCROLLBAR_BUTTON_RIGHT)); _pageUp = new PageScrollButton("PAGE_UP"); _pageDown = new PageScrollButton("PAGE_DOWN"); _btnBack.styleId = STYLE_SCROLLBAR_BUTTON_TRANSPARENT; _btnForward.styleId = STYLE_SCROLLBAR_BUTTON_TRANSPARENT; _indicator = new SliderButton(style.customDrawableId(_orientation == Orientation.Vertical ? ATTR_SCROLLBAR_INDICATOR_VERTICAL : ATTR_SCROLLBAR_INDICATOR_HORIZONTAL)); addChild(_btnBack); addChild(_btnForward); addChild(_indicator); addChild(_pageUp); addChild(_pageDown); _btnBack.focusable = false; _btnForward.focusable = false; _indicator.focusable = false; _pageUp.focusable = false; _pageDown.focusable = false; _btnBack.click = &onClick; _btnForward.click = &onClick; _pageUp.click = &onClick; _pageDown.click = &onClick; } override void measure(int parentWidth, int parentHeight) { Point sz; _btnBack.measure(parentWidth, parentHeight); _btnForward.measure(parentWidth, parentHeight); _indicator.measure(parentWidth, parentHeight); _pageUp.measure(parentWidth, parentHeight); _pageDown.measure(parentWidth, parentHeight); _btnSize = _btnBack.measuredWidth; _minIndicatorSize = _orientation == Orientation.Vertical ? _indicator.measuredHeight : _indicator.measuredWidth; if (_btnSize < _minIndicatorSize) _btnSize = _minIndicatorSize; if (_btnSize < _btnForward.measuredWidth) _btnSize = _btnForward.measuredWidth; if (_btnSize < _btnForward.measuredHeight) _btnSize = _btnForward.measuredHeight; if (_btnSize < _btnBack.measuredHeight) _btnSize = _btnBack.measuredHeight; static if (BACKEND_GUI) { if (_btnSize < 16) _btnSize = 16; } if (_orientation == Orientation.Vertical) { // vertical sz.x = _btnSize; sz.y = _btnSize * 5; // min height } else { // horizontal sz.y = _btnSize; sz.x = _btnSize * 5; // min height } measuredContent(parentWidth, parentHeight, sz.x, sz.y); } override protected void onPositionChanged() { if (!needLayout) layoutButtons(); } /// hide controls when scroll is not possible protected void updateState() { bool canScroll = _maxValue - _minValue > _pageSize; if (canScroll) { _btnBack.setState(State.Enabled); _btnForward.setState(State.Enabled); _indicator.visibility = Visibility.Visible; _pageUp.visibility = Visibility.Visible; _pageDown.visibility = Visibility.Visible; } else { _btnBack.resetState(State.Enabled); _btnForward.resetState(State.Enabled); _indicator.visibility = Visibility.Gone; _pageUp.visibility = Visibility.Gone; _pageDown.visibility = Visibility.Gone; } cancelLayout(); } override void cancelLayout() { _btnBack.cancelLayout(); _btnForward.cancelLayout(); _indicator.cancelLayout(); _pageUp.cancelLayout(); _pageDown.cancelLayout(); super.cancelLayout(); } protected void layoutButtons() { Rect irc = _scrollArea; if (_orientation == Orientation.Vertical) { // vertical int spaceBackSize, spaceForwardSize, indicatorSize; bool indicatorVisible = calcButtonSizes(_scrollArea.height, spaceBackSize, spaceForwardSize, indicatorSize); irc.top += spaceBackSize; irc.bottom -= spaceForwardSize; layoutButtons(irc); } else { // horizontal int spaceBackSize, spaceForwardSize, indicatorSize; bool indicatorVisible = calcButtonSizes(_scrollArea.width, spaceBackSize, spaceForwardSize, indicatorSize); irc.left += spaceBackSize; irc.right -= spaceForwardSize; layoutButtons(irc); } updateState(); cancelLayout(); } protected void layoutButtons(Rect irc) { Rect r; _indicator.visibility = Visibility.Visible; if (_orientation == Orientation.Vertical) { _indicator.layout(irc); if (_scrollArea.top < irc.top) { r = _scrollArea; r.bottom = irc.top; _pageUp.layout(r); _pageUp.visibility = Visibility.Visible; } else { _pageUp.visibility = Visibility.Invisible; } if (_scrollArea.bottom > irc.bottom) { r = _scrollArea; r.top = irc.bottom; _pageDown.layout(r); _pageDown.visibility = Visibility.Visible; } else { _pageDown.visibility = Visibility.Invisible; } } else { _indicator.layout(irc); if (_scrollArea.left < irc.left) { r = _scrollArea; r.right = irc.left; _pageUp.layout(r); _pageUp.visibility = Visibility.Visible; } else { _pageUp.visibility = Visibility.Invisible; } if (_scrollArea.right > irc.right) { r = _scrollArea; r.left = irc.right; _pageDown.layout(r); _pageDown.visibility = Visibility.Visible; } else { _pageDown.visibility = Visibility.Invisible; } } } override void layout(Rect rc) { _needLayout = false; applyMargins(rc); applyPadding(rc); Rect r; if (_orientation == Orientation.Vertical) { // vertical // buttons int backbtnpos = rc.top + _btnSize; int fwdbtnpos = rc.bottom - _btnSize; r = rc; r.bottom = backbtnpos; _btnBack.layout(r); r = rc; r.top = fwdbtnpos; _btnForward.layout(r); // indicator r = rc; r.top = backbtnpos; r.bottom = fwdbtnpos; _scrollArea = r; } else { // horizontal int backbtnpos = rc.left + _btnSize; int fwdbtnpos = rc.right - _btnSize; r = rc; r.right = backbtnpos; _btnBack.layout(r); r = rc; r.left = fwdbtnpos; _btnForward.layout(r); // indicator r = rc; r.left = backbtnpos; r.right = fwdbtnpos; _scrollArea = r; } layoutButtons(); _pos = rc; } override bool onClick(Widget source) { Log.d("Scrollbar.onClick ", source.id); if (source.compareId("BACK")) return sendScrollEvent(ScrollAction.LineUp, position); if (source.compareId("FORWARD")) return sendScrollEvent(ScrollAction.LineDown, position); if (source.compareId("PAGE_UP")) return sendScrollEvent(ScrollAction.PageUp, position); if (source.compareId("PAGE_DOWN")) return sendScrollEvent(ScrollAction.PageDown, position); return true; } /// handle mouse wheel events override bool onMouseEvent(MouseEvent event) { if (visibility != Visibility.Visible) return false; if (event.action == MouseAction.Wheel) { int delta = event.wheelDelta; if (delta > 0) sendScrollEvent(ScrollAction.LineUp, position); else if (delta < 0) sendScrollEvent(ScrollAction.LineDown, position); return true; } return true; //return super.onMouseEvent(event); } /// Draw widget at its position to buffer override void onDraw(DrawBuf buf) { if (visibility != Visibility.Visible && !buf.isClippedOut(_pos)) return; super.onDraw(buf); Rect rc = _pos; applyMargins(rc); applyPadding(rc); auto saver = ClipRectSaver(buf, rc, alpha); _btnForward.onDraw(buf); _btnBack.onDraw(buf); _pageUp.onDraw(buf); _pageDown.onDraw(buf); _indicator.onDraw(buf); } } /// scroll bar - either vertical or horizontal class SliderWidget : AbstractSlider, OnClickHandler { protected SliderButton _indicator; protected PageScrollButton _pageUp; protected PageScrollButton _pageDown; protected Rect _scrollArea; protected int _btnSize; protected int _minIndicatorSize; class PageScrollButton : Widget { this(string ID) { super(ID); styleId = STYLE_PAGE_SCROLL; trackHover = true; clickable = true; } } class SliderButton : ImageButton { Point _dragStart; int _dragStartPosition; bool _dragging; Rect _dragStartRect; this(string resourceId) { super("SLIDER", resourceId); styleId = STYLE_SCROLLBAR_BUTTON; trackHover = true; } /// process mouse event; return true if event is processed by widget. override bool onMouseEvent(MouseEvent event) { // support onClick if (event.action == MouseAction.ButtonDown && event.button == MouseButton.Left) { setState(State.Pressed); _dragging = true; _dragStart.x = event.x; _dragStart.y = event.y; _dragStartPosition = _position; _dragStartRect = _pos; sendScrollEvent(ScrollAction.SliderPressed, _position); return true; } if (event.action == MouseAction.FocusOut && _dragging) { debug(scrollbar) Log.d("ScrollBar slider dragging - FocusOut"); return true; } if (event.action == MouseAction.FocusIn && _dragging) { debug(scrollbar) Log.d("ScrollBar slider dragging - FocusIn"); return true; } if (event.action == MouseAction.Move && _dragging) { int delta = _orientation == Orientation.Vertical ? event.y - _dragStart.y : event.x - _dragStart.x; debug(scrollbar) Log.d("ScrollBar slider dragging - Move delta=", delta); Rect rc = _dragStartRect; int offset; int space; if (_orientation == Orientation.Vertical) { rc.top += delta; rc.bottom += delta; if (rc.top < _scrollArea.top) { rc.top = _scrollArea.top; rc.bottom = _scrollArea.top + _dragStartRect.height; } else if (rc.bottom > _scrollArea.bottom) { rc.top = _scrollArea.bottom - _dragStartRect.height; rc.bottom = _scrollArea.bottom; } offset = rc.top - _scrollArea.top; space = _scrollArea.height - rc.height; } else { rc.left += delta; rc.right += delta; if (rc.left < _scrollArea.left) { rc.left = _scrollArea.left; rc.right = _scrollArea.left + _dragStartRect.width; } else if (rc.right > _scrollArea.right) { rc.left = _scrollArea.right - _dragStartRect.width; rc.right = _scrollArea.right; } offset = rc.left - _scrollArea.left; space = _scrollArea.width - rc.width; } layoutButtons(rc); //_pos = rc; int position = cast(int)(space > 0 ? _minValue + cast(long)offset * (_maxValue - _minValue - _pageSize) / space : 0); invalidate(); onIndicatorDragging(_dragStartPosition, position); return true; } if (event.action == MouseAction.ButtonUp && event.button == MouseButton.Left) { resetState(State.Pressed); if (_dragging) { sendScrollEvent(ScrollAction.SliderReleased, _position); _dragging = false; } return true; } if (event.action == MouseAction.Move && trackHover) { if (!(state & State.Hovered)) { debug(scrollbar) Log.d("Hover ", id); setState(State.Hovered); } return true; } if (event.action == MouseAction.Leave && trackHover) { debug(scrollbar) Log.d("Leave ", id); resetState(State.Hovered); return true; } if (event.action == MouseAction.Cancel && trackHover) { debug(scrollbar) Log.d("Cancel ? trackHover", id); resetState(State.Hovered); resetState(State.Pressed); _dragging = false; return true; } if (event.action == MouseAction.Cancel) { debug(scrollbar) Log.d("SliderButton.onMouseEvent event.action == MouseAction.Cancel"); resetState(State.Pressed); _dragging = false; return true; } return false; } } protected bool onIndicatorDragging(int initialPosition, int currentPosition) { _position = currentPosition; return sendScrollEvent(ScrollAction.SliderMoved, currentPosition); } private bool calcButtonSizes(int availableSize, ref int spaceBackSize, ref int spaceForwardSize, ref int indicatorSize) { int dv = _maxValue - _minValue; if (_pageSize >= dv) { // full size spaceBackSize = spaceForwardSize = 0; indicatorSize = availableSize; return false; } if (dv < 0) dv = 0; indicatorSize = dv ? _pageSize * availableSize / dv : _minIndicatorSize; if (indicatorSize < _minIndicatorSize) indicatorSize = _minIndicatorSize; if (indicatorSize >= availableSize) { // full size spaceBackSize = spaceForwardSize = 0; indicatorSize = availableSize; return false; } int spaceLeft = availableSize - indicatorSize; int topv = _position - _minValue; int bottomv = _position + _pageSize - _minValue; if (topv < 0) topv = 0; if (bottomv > dv) bottomv = dv; bottomv = dv - bottomv; spaceBackSize = cast(int)(cast(long)spaceLeft * topv / (topv + bottomv)); spaceForwardSize = spaceLeft - spaceBackSize; return true; } /// returns scrollbar orientation (Vertical, Horizontal) override @property Orientation orientation() { return _orientation; } /// sets scrollbar orientation override @property AbstractSlider orientation(Orientation value) { if (_orientation != value) { _orientation = value; _indicator.drawableId = style.customDrawableId(_orientation == Orientation.Vertical ? ATTR_SCROLLBAR_INDICATOR_VERTICAL : ATTR_SCROLLBAR_INDICATOR_HORIZONTAL); requestLayout(); } return this; } /// set string property value, for ML loaders override bool setStringProperty(string name, string value) { if (name.equal("orientation")) { if (value.equal("Vertical") || value.equal("vertical")) orientation = Orientation.Vertical; else orientation = Orientation.Horizontal; return true; } return super.setStringProperty(name, value); } /// empty parameter list constructor - for usage by factory this() { this(null, Orientation.Horizontal); } /// create with ID parameter this(string ID, Orientation orient = Orientation.Horizontal) { super(ID); styleId = STYLE_SLIDER; _orientation = orient; _pageSize = 1; _pageUp = new PageScrollButton("PAGE_UP"); _pageDown = new PageScrollButton("PAGE_DOWN"); _indicator = new SliderButton(style.customDrawableId(_orientation == Orientation.Vertical ? ATTR_SCROLLBAR_INDICATOR_VERTICAL : ATTR_SCROLLBAR_INDICATOR_HORIZONTAL)); addChild(_indicator); addChild(_pageUp); addChild(_pageDown); _indicator.focusable = false; _pageUp.focusable = false; _pageDown.focusable = false; _pageUp.click = &onClick; _pageDown.click = &onClick; } override void measure(int parentWidth, int parentHeight) { Point sz; _indicator.measure(parentWidth, parentHeight); _pageUp.measure(parentWidth, parentHeight); _pageDown.measure(parentWidth, parentHeight); _minIndicatorSize = _orientation == Orientation.Vertical ? _indicator.measuredHeight : _indicator.measuredWidth; _btnSize = _minIndicatorSize; if (_btnSize < _minIndicatorSize) _btnSize = _minIndicatorSize; static if (BACKEND_GUI) { if (_btnSize < 16) _btnSize = 16; } if (_orientation == Orientation.Vertical) { // vertical sz.x = _btnSize; sz.y = _btnSize * 5; // min height } else { // horizontal sz.y = _btnSize; sz.x = _btnSize * 5; // min height } measuredContent(parentWidth, parentHeight, sz.x, sz.y); } override protected void onPositionChanged() { if (!needLayout) layoutButtons(); } /// hide controls when scroll is not possible protected void updateState() { bool canScroll = _maxValue - _minValue > _pageSize; if (canScroll) { _indicator.visibility = Visibility.Visible; _pageUp.visibility = Visibility.Visible; _pageDown.visibility = Visibility.Visible; } else { _indicator.visibility = Visibility.Gone; _pageUp.visibility = Visibility.Gone; _pageDown.visibility = Visibility.Gone; } cancelLayout(); } override void cancelLayout() { _indicator.cancelLayout(); _pageUp.cancelLayout(); _pageDown.cancelLayout(); super.cancelLayout(); } protected void layoutButtons() { Rect irc = _scrollArea; if (_orientation == Orientation.Vertical) { // vertical int spaceBackSize, spaceForwardSize, indicatorSize; bool indicatorVisible = calcButtonSizes(_scrollArea.height, spaceBackSize, spaceForwardSize, indicatorSize); irc.top += spaceBackSize; irc.bottom -= spaceForwardSize; layoutButtons(irc); } else { // horizontal int spaceBackSize, spaceForwardSize, indicatorSize; bool indicatorVisible = calcButtonSizes(_scrollArea.width, spaceBackSize, spaceForwardSize, indicatorSize); irc.left += spaceBackSize; irc.right -= spaceForwardSize; layoutButtons(irc); } updateState(); cancelLayout(); } protected void layoutButtons(Rect irc) { Rect r; _indicator.visibility = Visibility.Visible; if (_orientation == Orientation.Vertical) { _indicator.layout(irc); if (_scrollArea.top < irc.top) { r = _scrollArea; r.bottom = irc.top; _pageUp.layout(r); _pageUp.visibility = Visibility.Visible; } else { _pageUp.visibility = Visibility.Invisible; } if (_scrollArea.bottom > irc.bottom) { r = _scrollArea; r.top = irc.bottom; _pageDown.layout(r); _pageDown.visibility = Visibility.Visible; } else { _pageDown.visibility = Visibility.Invisible; } } else { _indicator.layout(irc); if (_scrollArea.left < irc.left) { r = _scrollArea; r.right = irc.left; _pageUp.layout(r); _pageUp.visibility = Visibility.Visible; } else { _pageUp.visibility = Visibility.Invisible; } if (_scrollArea.right > irc.right) { r = _scrollArea; r.left = irc.right; _pageDown.layout(r); _pageDown.visibility = Visibility.Visible; } else { _pageDown.visibility = Visibility.Invisible; } } } override void layout(Rect rc) { _needLayout = false; applyMargins(rc); applyPadding(rc); Rect r; if (_orientation == Orientation.Vertical) { // vertical // buttons // indicator r = rc; _scrollArea = r; } else { // horizontal // indicator r = rc; _scrollArea = r; } layoutButtons(); _pos = rc; } override bool onClick(Widget source) { Log.d("Scrollbar.onClick ", source.id); if (source.compareId("PAGE_UP")) return sendScrollEvent(ScrollAction.PageUp, position); if (source.compareId("PAGE_DOWN")) return sendScrollEvent(ScrollAction.PageDown, position); return true; } /// handle mouse wheel events override bool onMouseEvent(MouseEvent event) { if (visibility != Visibility.Visible) return false; if (event.action == MouseAction.Wheel) { int delta = event.wheelDelta; if (delta > 0) sendScrollEvent(ScrollAction.LineUp, position); else if (delta < 0) sendScrollEvent(ScrollAction.LineDown, position); return true; } return super.onMouseEvent(event); } /// Draw widget at its position to buffer override void onDraw(DrawBuf buf) { if (visibility != Visibility.Visible && !buf.isClippedOut(_pos)) return; Rect rc = _pos; applyMargins(rc); auto saver = ClipRectSaver(buf, rc, alpha); DrawableRef bg = backgroundDrawable; if (!bg.isNull) { Rect r = rc; if (_orientation == Orientation.Vertical) { int dw = bg.width; r.left += (rc.width - dw)/2; r.right = r.left + dw; } else { int dw = bg.height; r.top += (rc.height - dw)/2; r.bottom = r.top + dw; } bg.drawTo(buf, r, state); } applyPadding(rc); if (state & State.Focused) { rc.expand(FOCUS_RECT_PADDING, FOCUS_RECT_PADDING); drawFocusRect(buf, rc); } _needDraw = false; _pageUp.onDraw(buf); _pageDown.onDraw(buf); _indicator.onDraw(buf); } }
D
/Users/jesse/Desktop/blockx/foRust/reentrancyGuard/target/debug/build/crunchy-e6b50443d8677a3b/build_script_build-e6b50443d8677a3b: /Users/jesse/.cargo/registry/src/github.com-1ecc6299db9ec823/crunchy-0.1.6/build.rs /Users/jesse/Desktop/blockx/foRust/reentrancyGuard/target/debug/build/crunchy-e6b50443d8677a3b/build_script_build-e6b50443d8677a3b.d: /Users/jesse/.cargo/registry/src/github.com-1ecc6299db9ec823/crunchy-0.1.6/build.rs /Users/jesse/.cargo/registry/src/github.com-1ecc6299db9ec823/crunchy-0.1.6/build.rs:
D
# FIXED F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/source/F2837xD_Ipc.c F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_device.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/c2000_15.12.3.LTS/include/assert.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/c2000_15.12.3.LTS/include/linkage.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/c2000_15.12.3.LTS/include/stdarg.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/c2000_15.12.3.LTS/include/stdbool.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/c2000_15.12.3.LTS/include/stddef.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/c2000_15.12.3.LTS/include/stdint.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_adc.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_analogsubsys.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_cla.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_cmpss.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_cputimer.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_dac.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_dcsm.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_dma.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_ecap.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_emif.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_epwm.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_epwm_xbar.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_eqep.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_flash.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_gpio.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_i2c.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_input_xbar.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_ipc.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_mcbsp.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_memconfig.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_nmiintrupt.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_output_xbar.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_piectrl.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_pievect.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_sci.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_sdfm.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_spi.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_sysctrl.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_upp.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_xbar.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_xint.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Examples.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_GlobalPrototypes.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_cputimervars.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Cla_defines.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_EPwm_defines.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Adc_defines.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Emif_defines.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Gpio_defines.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_I2c_defines.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Ipc_defines.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Pie_defines.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Dma_defines.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_SysCtrl_defines.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Upp_defines.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_defaultisr.h F2837xD_Ipc.obj: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/c2000_15.12.3.LTS/include/string.h C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/source/F2837xD_Ipc.c: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_device.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/c2000_15.12.3.LTS/include/assert.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/c2000_15.12.3.LTS/include/linkage.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/c2000_15.12.3.LTS/include/stdarg.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/c2000_15.12.3.LTS/include/stdbool.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/c2000_15.12.3.LTS/include/stddef.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/c2000_15.12.3.LTS/include/stdint.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_adc.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_analogsubsys.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_cla.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_cmpss.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_cputimer.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_dac.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_dcsm.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_dma.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_ecap.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_emif.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_epwm.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_epwm_xbar.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_eqep.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_flash.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_gpio.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_i2c.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_input_xbar.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_ipc.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_mcbsp.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_memconfig.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_nmiintrupt.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_output_xbar.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_piectrl.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_pievect.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_sci.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_sdfm.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_spi.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_sysctrl.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_upp.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_xbar.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_headers/include/F2837xD_xint.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Examples.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_GlobalPrototypes.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_cputimervars.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Cla_defines.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_EPwm_defines.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Adc_defines.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Emif_defines.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Gpio_defines.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_I2c_defines.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Ipc_defines.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Pie_defines.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Dma_defines.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_SysCtrl_defines.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_Upp_defines.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/F2837xD_common/include/F2837xD_defaultisr.h: C:/GitHub/MIT-Pico-Grid/Project/New_MG/Firmware/EVAL/c2000_15.12.3.LTS/include/string.h:
D
module ogre.bindings.mini_xaw; import ogre.config; static if(!OGRE_GTK && OgrePosix) { import ogre.bindings.mini_x11; pragma(lib, "Xaw"); pragma(lib, "Xt"); alias uint _XtAppStruct; alias _XtAppStruct * XtAppContext; alias XID _XRegion; alias XID _XtEventRec; alias XID _XtStateRec; alias XID _TranslationData; alias void * XtActionHookId; alias void * XtCacheRef; alias void * XtPointer; alias void * XtRequestId; alias void * XtVarArgsList; //enum int False = 0; //enum int True = 1; enum XIMStatusDataType : int { XIMTextType = 0, XIMBitmapType = 1 } enum XtListPosition : int { XtListHead = 0, XtListTail = 1 } enum XtCommandHighlight : int { HighlightNone = 0, HighlightWhenUnset = 1, HighlightAlways = 2 } enum XawEdgeType : int { XawChainTop = 0, XawChainBottom = 1, XawChainLeft = 2, XawChainRight = 3, XawRubber = 4 } enum XtGrabKind : int { XtGrabNone = 0, XtGrabNonexclusive = 1, XtGrabExclusive = 2 } enum XtCallbackStatus : int { XtCallbackNoList = 0, XtCallbackHasNone = 1, XtCallbackHasSome = 2 } enum XtGeometryResult : int { XtGeometryYes = 0, XtGeometryNo = 1, XtGeometryAlmost = 2, XtGeometryDone = 3 } enum XawTextJustifyMode : int { XawjustifyLeft = 0, XawjustifyRight = 1, XawjustifyCenter = 2, XawjustifyFull = 3 } enum LayoutState : int { LayoutPending = 0, LayoutInProgress = 1, LayoutDone = 2 } enum XawTextSelectionMode : int { XawsmTextSelect = 0, XawsmTextExtend = 1 } enum XawTextSelectType : int { XawselectNull = 0, XawselectPosition = 1, XawselectChar = 2, XawselectWord = 3, XawselectLine = 4, XawselectParagraph = 5, XawselectAll = 6, XawselectAlphaNumeric = 7 } enum XawTextScanType : int { XawstPositions = 0, XawstWhiteSpace = 1, XawstEOL = 2, XawstParagraph = 3, XawstAll = 4, XawstAlphaNumeric = 5 } enum XOrientation : int { XOMOrientation_LTR_TTB = 0, XOMOrientation_RTL_TTB = 1, XOMOrientation_TTB_LTR = 2, XOMOrientation_TTB_RTL = 3, XOMOrientation_Context = 4 } enum XtAddressMode : int { XtAddress = 0, XtBaseOffset = 1, XtImmediate = 2, XtResourceString = 3, XtResourceQuark = 4, XtWidgetBaseOffset = 5, XtProcedureArg = 6 } enum XrmBinding : int { XrmBindTightly = 0, XrmBindLoosely = 1 } enum XawTextScrollMode : int { XawtextScrollNever = 0, XawtextScrollWhenNeeded = 1, XawtextScrollAlways = 2 } enum XawTextWrapMode : int { XawtextWrapNever = 0, XawtextWrapLine = 1, XawtextWrapWord = 2 } enum XawTextResizeMode : int { XawtextResizeNever = 0, XawtextResizeWidth = 1, XawtextResizeHeight = 2, XawtextResizeBoth = 3 } enum XrmOptionKind : int { XrmoptionNoArg = 0, XrmoptionIsArg = 1, XrmoptionStickyArg = 2, XrmoptionSepArg = 3, XrmoptionResArg = 4, XrmoptionSkipArg = 5, XrmoptionSkipLine = 6, XrmoptionSkipNArgs = 7 } enum XawTextSelectionAction : int { XawactionStart = 0, XawactionAdjust = 1, XawactionEnd = 2 } enum XIMCaretStyle : int { XIMIsInvisible = 0, XIMIsPrimary = 1, XIMIsSecondary = 2 } enum XtJustify : int { XtJustifyLeft = 0, XtJustifyCenter = 1, XtJustifyRight = 2 } enum XawTextInsertState : int { XawisOn = 0, XawisOff = 1 } enum XtOrientation : int { XtorientHorizontal = 0, XtorientVertical = 1 } enum XawTextScanDirection : int { XawsdLeft = 0, XawsdRight = 1 } enum XawTextEditType : int { XawtextRead = 0, XawtextAppend = 1, XawtextEdit = 2 } enum highlightType : int { Normal = 0, Selected = 1 } enum XawAsciiType : int { XawAsciiFile = 0, XawAsciiString = 1 } enum XIMCaretDirection : int { XIMForwardChar = 0, XIMBackwardChar = 1, XIMForwardWord = 2, XIMBackwardWord = 3, XIMCaretUp = 4, XIMCaretDown = 5, XIMNextLine = 6, XIMPreviousLine = 7, XIMLineStart = 8, XIMLineEnd = 9, XIMAbsolutePosition = 10, XIMDontChange = 11 } struct _XtActionsRec { char* str; void function(_WidgetRec *, XEvent *, char * *, uint *) * proc; } struct Arg { char * name; int value; } struct _CoreClassPart { _WidgetClassRec * superclass; char * class_name; uint widget_size; void function() class_initialize; void function(_WidgetClassRec *) class_part_initialize; ubyte class_inited; void function(_WidgetRec *, _WidgetRec *, Arg *, uint *) initialize; void function(_WidgetRec *, Arg *, uint *) initialize_hook; void function(_WidgetRec *, int *, XSetWindowAttributes *) realize; _XtActionsRec * actions; uint num_actions; _XtResource * resources; uint num_resources; int xrm_class; char compress_motion; ubyte compress_exposure; char compress_enterleave; char visible_interest; void function(_WidgetRec *) destroy; void function(_WidgetRec *) resize; void function(_WidgetRec *, XEvent *, _XRegion *) expose; char function(_WidgetRec *, _WidgetRec *, _WidgetRec *, Arg *, uint *) set_values; char function(_WidgetRec *, Arg *, uint *) set_values_hook; void function(_WidgetRec *, _WidgetRec *, XtWidgetGeometry *, XtWidgetGeometry *) set_values_almost; void function(_WidgetRec *, Arg *, uint *) get_values_hook; char function(_WidgetRec *, int *) accept_focus; int version_; void * callback_private; char * tm_table; XtGeometryResult function(_WidgetRec *, XtWidgetGeometry *, XtWidgetGeometry *) query_geometry; void function(_WidgetRec *, char *) display_accelerator; void * extension; } struct _WidgetClassRec { _CoreClassPart core_class; } struct _CorePart { _WidgetRec * self; _WidgetClassRec * widget_class; _WidgetRec * parent; int xrm_name; char being_destroyed; _XtCallbackRec * destroy_callbacks; void * constraints; short x; short y; ushort width; ushort height; ushort border_width; char managed; char sensitive; char ancestor_sensitive; _XtEventRec * event_table; _XtTMRec tm; _TranslationData * accelerators; int border_pixel; int border_pixmap; _WidgetRec * * popup_list; uint num_popups; char * name; Screen * screen; int colormap; int window; uint depth; int background_pixel; int background_pixmap; char visible; char mapped_when_managed; } struct _WidgetRec { _CorePart core; } alias _WidgetRec* Widget; /*struct XSetWindowAttributes { int background_pixmap; int background_pixel; int border_pixmap; int border_pixel; int bit_gravity; int win_gravity; int backing_store; int backing_planes; int backing_pixel; int save_under; int event_mask; int do_not_propagate_mask; int override_redirect; int colormap; int cursor; }*/ struct _XtResource { char * resource_name; char * resource_class; char * resource_type; uint resource_size; uint resource_offset; char * default_type; void * default_addr; } struct XtWidgetGeometry { uint request_mode; short x; short y; ushort width; ushort height; ushort border_width; _WidgetRec * sibling; int stack_mode; } struct _XtCallbackRec { void function(_WidgetRec *, void *, void *) callback; void * closure; } struct XrmOptionDescRec { char * option; char * specifier; XrmOptionKind argKind; char * value; } struct _XtTMRec { _TranslationData * translations; void function(_WidgetRec *, XEvent *, char * *, uint *) * proc_table; _XtStateRec * current_state; int lastEventTime; } extern (C) { alias void function(_WidgetRec *, void *, void *) XtCallbackProc; //Note the two 'extern'. Access global data. extern __gshared _WidgetClassRec * sessionShellWidgetClass; extern __gshared _WidgetClassRec * formWidgetClass; extern __gshared _WidgetClassRec * menuButtonWidgetClass; extern __gshared _WidgetClassRec * labelWidgetClass; extern __gshared _WidgetClassRec * simpleMenuWidgetClass; extern __gshared _WidgetClassRec * smeBSBObjectClass; extern __gshared _WidgetClassRec * commandWidgetClass; void XtUnrealizeWidget(Widget); void XtDestroyWidget(Widget); Widget XtVaOpenApplication(_XtAppStruct * *, char *, XrmOptionDescRec *, uint, int *, char * *, char * *, _WidgetClassRec *, ...); Display* XtDisplay(Widget); void XtVaSetValues(Widget, ...); Widget XtVaCreateManagedWidget(char *, _WidgetClassRec *, _WidgetRec *, ...); Widget XtVaCreatePopupShell(char *, _WidgetClassRec *, _WidgetRec *, ...); void XtAddCallbacks(_WidgetRec *, char *, _XtCallbackRec *, ...); void XtAddCallback(_WidgetRec *, char *, void function(_WidgetRec *, void *, void *) cb, void *); void XtRealizeWidget(Widget); void XtAppMainLoop(_XtAppStruct *); void XtAppNextEvent(_XtAppStruct *, XEvent *); void XtAppProcessEvent(_XtAppStruct *, int); void XtAppSetExitFlag(_XtAppStruct *); } }
D
a man who is a native or inhabitant of England
D
instance PC_Hero(Npc_Default) { name[0] = "ß"; guild = GIL_NONE; id = 0; voice = 15; level = 0; npcType = npctype_main; bodyStateInterruptableOverride = TRUE; exp = 0; exp_next = 500; lp = 0; attribute[ATR_STRENGTH] = 10; attribute[ATR_DEXTERITY] = 10; attribute[ATR_MANA_MAX] = 10; attribute[ATR_MANA] = 10; attribute[ATR_HITPOINTS_MAX] = 40; attribute[ATR_HITPOINTS] = 40; Mdl_SetVisual(self,"HUMANS.MDS"); Mdl_SetVisualBody(self,"hum_body_Naked0",9,0,"Hum_Head_Pony",Face_N_Player,0,NO_ARMOR); B_SetFightSkills(self,10); }; instance PC_L10(Npc_Default) { name[0] = "ß"; guild = GIL_MIL; id = 0; voice = 15; level = 10; npcType = npctype_main; bodyStateInterruptableOverride = TRUE; exp = 500 * ((level + 1) / 2) * (level + 1); exp_next = 500 * ((level + 2) / 2) * (level + 1); lp = 0; attribute[ATR_STRENGTH] = 83; attribute[ATR_DEXTERITY] = 32; attribute[ATR_MANA_MAX] = 64; attribute[ATR_MANA] = 64; attribute[ATR_HITPOINTS_MAX] = 148; attribute[ATR_HITPOINTS] = 148; B_SetNpcVisual(self,MALE,"Hum_Head_Pony",Face_N_Player,BodyTex_N,ITAR_MIL_L); B_AddFightSkill(self,NPC_TALENT_1H,30); B_AddFightSkill(self,NPC_TALENT_2H,10); B_AddFightSkill(self,NPC_TALENT_BOW,10); B_AddFightSkill(self,NPC_TALENT_CROSSBOW,10); CreateInvItems(self,ItMi_Gold,500); CreateInvItems(self,ItRw_Arrow,100); EquipItem(self,ItMw_Nagelkeule2); EquipItem(self,ItRw_Bow_L_01); }; instance PC_L20(Npc_Default) { name[0] = "ß"; guild = GIL_MIL; id = 0; voice = 15; level = 20; npcType = npctype_main; bodyStateInterruptableOverride = TRUE; exp = 500 * ((level + 1) / 2) * (level + 1); exp_next = 500 * ((level + 2) / 2) * (level + 1); lp = 40; attribute[ATR_STRENGTH] = 106; attribute[ATR_DEXTERITY] = 54; attribute[ATR_MANA_MAX] = 118; attribute[ATR_MANA] = 35; attribute[ATR_HITPOINTS_MAX] = 280; attribute[ATR_HITPOINTS] = 280; B_SetNpcVisual(self,MALE,"Hum_Head_Pony",Face_N_Player,BodyTex_N,ITAR_RANGER_Addon); B_AddFightSkill(self,NPC_TALENT_1H,60); B_AddFightSkill(self,NPC_TALENT_2H,30); B_AddFightSkill(self,NPC_TALENT_BOW,10); B_AddFightSkill(self,NPC_TALENT_CROSSBOW,10); CreateInvItems(self,ItMi_Gold,1000); CreateInvItems(self,ItRw_Arrow,100); CreateInvItems(self,ItRw_Bolt,100); EquipItem(self,ItMw_Rubinklinge); EquipItem(self,ItRw_Crossbow_M_02); CreateInvItems(self,ItRu_PalLight,1); CreateInvItems(self,ItRu_PalLightHeal,1); CreateInvItems(self,ItRu_PalHolyBolt,1); }; instance PC_L40(Npc_Default) { name[0] = "ß"; guild = GIL_PAL; id = 0; voice = 15; level = 40; npcType = npctype_main; bodyStateInterruptableOverride = TRUE; exp = 500 * ((level + 1) / 2) * (level + 1); exp_next = 500 * ((level + 2) / 2) * (level + 1); lp = 60; attribute[ATR_STRENGTH] = 159; attribute[ATR_DEXTERITY] = 76; attribute[ATR_MANA_MAX] = 172; attribute[ATR_MANA] = 172; attribute[ATR_HITPOINTS_MAX] = 520; attribute[ATR_HITPOINTS] = 520; B_SetNpcVisual(self,MALE,"Hum_Head_Pony",Face_N_Player,BodyTex_N,ITAR_PAL_M); B_AddFightSkill(self,NPC_TALENT_1H,90); B_AddFightSkill(self,NPC_TALENT_2H,60); B_AddFightSkill(self,NPC_TALENT_BOW,10); B_AddFightSkill(self,NPC_TALENT_CROSSBOW,10); Npc_SetTalentSkill(self,NPC_TALENT_PICKLOCK,1); CreateInvItems(self,ItMi_Gold,2000); CreateInvItems(self,ItRw_Bolt,100); EquipItem(self,ItMw_1H_Blessed_02); EquipItem(self,ItRw_Crossbow_M_02); CreateInvItems(self,ItKe_Lockpick,10); CreateInvItems(self,ItMi_Flask,2); CreateInvItems(self,ItPo_Health_02,10); CreateInvItems(self,ItPo_Speed,5); CreateInvItems(self,ItLsTorch,50); CreateInvItems(self,ItRu_PalLight,1); CreateInvItems(self,ItRu_PalLightHeal,1); CreateInvItems(self,ItRu_PalHolyBolt,1); CreateInvItems(self,ItRu_PalMediumHeal,1); CreateInvItems(self,ItRu_PalRepelEvil,1); }; instance PC_L60(Npc_Default) { name[0] = "ß"; guild = GIL_PAL; id = 0; voice = 15; level = 60; npcType = npctype_main; bodyStateInterruptableOverride = TRUE; exp = 500 * ((level + 1) / 2) * (level + 1); exp_next = 500 * ((level + 2) / 2) * (level + 1); lp = 60; attribute[ATR_STRENGTH] = 228; attribute[ATR_DEXTERITY] = 98; attribute[ATR_MANA_MAX] = 234; attribute[ATR_MANA] = 234; attribute[ATR_HITPOINTS_MAX] = 760; attribute[ATR_HITPOINTS] = 760; B_SetNpcVisual(self,MALE,"Hum_Head_Pony",Face_N_Player,BodyTex_N,ITAR_PAL_H); B_AddFightSkill(self,NPC_TALENT_1H,90); B_AddFightSkill(self,NPC_TALENT_2H,60); B_AddFightSkill(self,NPC_TALENT_BOW,10); B_AddFightSkill(self,NPC_TALENT_CROSSBOW,10); CreateInvItems(self,ItMi_Gold,3000); CreateInvItems(self,ItRw_Bolt,100); EquipItem(self,ItMw_1H_Blessed_03); EquipItem(self,ItRw_Crossbow_M_02); CreateInvItems(self,ItRu_PalLight,1); CreateInvItems(self,ItRu_PalLightHeal,1); CreateInvItems(self,ItRu_PalHolyBolt,1); CreateInvItems(self,ItRu_PalMediumHeal,1); CreateInvItems(self,ItRu_PalRepelEvil,1); CreateInvItems(self,ItRu_PalFullHeal,1); CreateInvItems(self,ItRu_PalDestroyEvil,1); }; instance PC_E3Mage(Npc_Default) { name[0] = "ß"; guild = GIL_KDF; id = 0; voice = 15; level = 31; npcType = npctype_main; bodyStateInterruptableOverride = TRUE; exp = 248000; exp_next = 264000; lp = 0; attribute[ATR_STRENGTH] = 50; attribute[ATR_DEXTERITY] = 50; attribute[ATR_MANA_MAX] = 200; attribute[ATR_MANA] = 200; attribute[ATR_HITPOINTS_MAX] = 500; attribute[ATR_HITPOINTS] = 500; B_SetNpcVisual(self,MALE,"Hum_Head_Pony",Face_N_Player,BodyTex_N,ITAR_KDF_H); B_AddFightSkill(self,NPC_TALENT_1H,40); B_AddFightSkill(self,NPC_TALENT_2H,30); B_AddFightSkill(self,NPC_TALENT_BOW,20); B_AddFightSkill(self,NPC_TALENT_CROSSBOW,10); Npc_SetTalentSkill(self,NPC_TALENT_MAGE,6); Npc_SetTalentSkill(self,NPC_TALENT_PICKLOCK,1); Npc_SetTalentSkill(self,NPC_TALENT_SNEAK,1); Npc_SetTalentSkill(self,NPC_TALENT_RUNES,1); Npc_SetTalentSkill(self,NPC_TALENT_ALCHEMY,1); Npc_SetTalentSkill(self,NPC_TALENT_TAKEANIMALTROPHY,1); PLAYER_TALENT_ALCHEMY[POTION_Health_01] = TRUE; PLAYER_TALENT_ALCHEMY[POTION_Health_02] = TRUE; PLAYER_TALENT_ALCHEMY[POTION_Health_03] = TRUE; PLAYER_TALENT_ALCHEMY[POTION_Mana_01] = TRUE; PLAYER_TALENT_ALCHEMY[POTION_Mana_02] = TRUE; PLAYER_TALENT_ALCHEMY[POTION_Mana_03] = TRUE; PLAYER_TALENT_ALCHEMY[POTION_Speed] = TRUE; PLAYER_TALENT_ALCHEMY[POTION_Perm_STR] = TRUE; PLAYER_TALENT_ALCHEMY[POTION_Perm_DEX] = TRUE; PLAYER_TALENT_ALCHEMY[POTION_Perm_Mana] = TRUE; PLAYER_TALENT_ALCHEMY[POTION_Perm_Health] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_Teeth] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_Claws] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_Fur] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_Heart] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_ShadowHorn] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_FireTongue] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_BFWing] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_BFSting] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_Mandibles] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_CrawlerPlate] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_DrgSnapperHorn] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_DragonScale] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_DragonBlood] = TRUE; PLAYER_TALENT_RUNES[SPL_Light] = TRUE; PLAYER_TALENT_RUNES[SPL_Firebolt] = TRUE; PLAYER_TALENT_RUNES[SPL_Icebolt] = TRUE; PLAYER_TALENT_RUNES[SPL_LightHeal] = TRUE; PLAYER_TALENT_RUNES[SPL_SummonGoblinSkeleton] = TRUE; PLAYER_TALENT_RUNES[SPL_InstantFireball] = TRUE; PLAYER_TALENT_RUNES[SPL_Zap] = TRUE; PLAYER_TALENT_RUNES[SPL_SummonWolf] = TRUE; PLAYER_TALENT_RUNES[SPL_WindFist] = TRUE; PLAYER_TALENT_RUNES[SPL_Sleep] = TRUE; PLAYER_TALENT_RUNES[SPL_MediumHeal] = TRUE; PLAYER_TALENT_RUNES[SPL_LightningFlash] = TRUE; PLAYER_TALENT_RUNES[SPL_ChargeFireball] = TRUE; PLAYER_TALENT_RUNES[SPL_SummonSkeleton] = TRUE; PLAYER_TALENT_RUNES[SPL_Fear] = TRUE; PLAYER_TALENT_RUNES[SPL_IceCube] = TRUE; PLAYER_TALENT_RUNES[SPL_ChargeZap] = TRUE; PLAYER_TALENT_RUNES[SPL_SummonGolem] = TRUE; PLAYER_TALENT_RUNES[SPL_DestroyUndead] = TRUE; PLAYER_TALENT_RUNES[SPL_Pyrokinesis] = TRUE; PLAYER_TALENT_RUNES[SPL_Firestorm] = TRUE; PLAYER_TALENT_RUNES[SPL_IceWave] = TRUE; PLAYER_TALENT_RUNES[SPL_SummonDemon] = TRUE; PLAYER_TALENT_RUNES[SPL_FullHeal] = TRUE; PLAYER_TALENT_RUNES[SPL_Firerain] = TRUE; PLAYER_TALENT_RUNES[SPL_BreathOfDeath] = TRUE; PLAYER_TALENT_RUNES[SPL_MassDeath] = TRUE; PLAYER_TALENT_RUNES[SPL_ArmyOfDarkness] = TRUE; PLAYER_TALENT_RUNES[SPL_Shrink] = TRUE; EquipItem(self,ItMw_1h_MISC_Sword); EquipItem(self,ItAm_Mana_01); EquipItem(self,ItRu_Light); EquipItem(self,ItRu_InstantFireball); EquipItem(self,ItRu_IceCube); EquipItem(self,ItRu_FullHeal); EquipItem(self,ItRu_Firerain); EquipItem(self,ItRu_LightningFlash); EquipItem(self,ItRu_Shrink); CreateInvItems(self,ItMi_Gold,100); CreateInvItems(self,ItRu_MassDeath,1); CreateInvItems(self,ItRu_ArmyOfDarkness,1); CreateInvItems(self,ItRu_SumGol,1); CreateInvItems(self,ItSc_TrfSheep,5); CreateInvItems(self,ItSc_TrfWolf,5); CreateInvItems(self,ItSc_TrfDragonSnapper,3); CreateInvItems(self,ItMi_Flask,10); CreateInvItems(self,ItMi_RuneBlank,10); CreateInvItems(self,ItMi_Sulfur,10); CreateInvItems(self,ItMi_Quartz,10); CreateInvItems(self,ItMi_Pitch,10); CreateInvItems(self,ItMi_Rockcrystal,10); CreateInvItems(self,ItMi_Aquamarine,10); CreateInvItems(self,ItMi_HolyWater,10); CreateInvItems(self,ItMi_Coal,10); CreateInvItems(self,ItMi_DarkPearl,10); CreateInvItems(self,ItPl_SwampHerb,10); CreateInvItems(self,ItPl_Mana_Herb_01,10); CreateInvItems(self,ItPl_Mana_Herb_02,10); CreateInvItems(self,ItPl_Mana_Herb_03,10); CreateInvItems(self,ItPl_Health_Herb_01,10); CreateInvItems(self,ItPl_Health_Herb_02,10); CreateInvItems(self,ItPl_Health_Herb_03,10); CreateInvItems(self,ItPl_Dex_Herb_01,10); CreateInvItems(self,ItPl_Strength_Herb_01,10); CreateInvItems(self,ItPl_Speed_Herb_01,10); CreateInvItems(self,ItPl_Mushroom_01,10); CreateInvItems(self,ItPl_Mushroom_02,10); CreateInvItems(self,ItPl_Forestberry,10); CreateInvItems(self,ItPl_Blueplant,10); CreateInvItems(self,ItPl_Planeberry,10); CreateInvItems(self,ItPl_Temp_Herb,10); CreateInvItems(self,ItPl_Perm_Herb,10); CreateInvItems(self,ItPo_Mana_01,10); CreateInvItems(self,ItPo_Mana_02,5); CreateInvItems(self,ItPo_Mana_03,1); CreateInvItems(self,ItPo_Health_01,10); CreateInvItems(self,ItPo_Health_02,5); CreateInvItems(self,ItPo_Health_03,1); CreateInvItems(self,ItPo_Speed,5); }; instance PC_E3Paladin(Npc_Default) { name[0] = "ß"; guild = GIL_PAL; id = 0; voice = 15; level = 31; npcType = npctype_main; bodyStateInterruptableOverride = TRUE; exp = 248000; exp_next = 264000; lp = 0; attribute[ATR_STRENGTH] = 100; attribute[ATR_DEXTERITY] = 100; attribute[ATR_MANA_MAX] = 50; attribute[ATR_MANA] = 50; attribute[ATR_HITPOINTS_MAX] = 500; attribute[ATR_HITPOINTS] = 500; B_SetNpcVisual(self,MALE,"Hum_Head_Pony",Face_N_Player,BodyTex_N,ITAR_PAL_H); B_AddFightSkill(self,NPC_TALENT_1H,100); B_AddFightSkill(self,NPC_TALENT_2H,90); B_AddFightSkill(self,NPC_TALENT_BOW,80); B_AddFightSkill(self,NPC_TALENT_CROSSBOW,70); Npc_SetTalentSkill(self,NPC_TALENT_MAGE,0); Npc_SetTalentSkill(self,NPC_TALENT_PICKLOCK,1); Npc_SetTalentSkill(self,NPC_TALENT_SNEAK,1); Npc_SetTalentSkill(self,NPC_TALENT_SMITH,1); Npc_SetTalentSkill(self,NPC_TALENT_TAKEANIMALTROPHY,1); PLAYER_TALENT_SMITH[WEAPON_Common] = TRUE; PLAYER_TALENT_SMITH[WEAPON_1H_Special_01] = TRUE; PLAYER_TALENT_SMITH[WEAPON_2H_Special_01] = TRUE; PLAYER_TALENT_SMITH[WEAPON_1H_Special_02] = TRUE; PLAYER_TALENT_SMITH[WEAPON_2H_Special_02] = TRUE; PLAYER_TALENT_SMITH[WEAPON_1H_Special_03] = TRUE; PLAYER_TALENT_SMITH[WEAPON_2H_Special_03] = TRUE; PLAYER_TALENT_SMITH[WEAPON_1H_Special_04] = TRUE; PLAYER_TALENT_SMITH[WEAPON_2H_Special_04] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_Teeth] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_Claws] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_Fur] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_Heart] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_ShadowHorn] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_FireTongue] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_BFWing] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_BFSting] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_Mandibles] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_CrawlerPlate] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_DrgSnapperHorn] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_DragonScale] = TRUE; PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_DragonBlood] = TRUE; EquipItem(self,ItMw_2h_Pal_Sword); EquipItem(self,ItRw_Bow_H_01); CreateInvItems(self,ItRw_Crossbow_H_01,1); CreateInvItems(self,ItRw_Arrow,1000); CreateInvItems(self,ItRw_Bolt,1000); EquipItem(self,ItAm_Strg_01); EquipItem(self,ItRu_PalMediumHeal); EquipItem(self,ItRu_PalRepelEvil); CreateInvItems(self,ItMi_Gold,100); CreateInvItems(self,ItMi_Nugget,50); CreateInvItems(self,ItMiSwordraw,10); CreateInvItems(self,ItAt_DragonBlood,10); CreateInvItems(self,ItSc_InstantFireball,10); CreateInvItems(self,ItSc_TrfSheep,5); CreateInvItems(self,ItSc_TrfWolf,5); CreateInvItems(self,ItSc_TrfDragonSnapper,3); CreateInvItems(self,ItMi_Flask,10); CreateInvItems(self,ItMi_RuneBlank,10); CreateInvItems(self,ItPo_Mana_01,10); CreateInvItems(self,ItPo_Mana_02,5); CreateInvItems(self,ItPo_Mana_03,1); CreateInvItems(self,ItPo_Health_01,10); CreateInvItems(self,ItPo_Health_02,5); CreateInvItems(self,ItPo_Health_03,1); CreateInvItems(self,ItPo_Speed,5); }; instance PC_Bandit(Npc_Default) { name[0] = "ß"; guild = GIL_NONE; id = 0; voice = 15; level = 10; npcType = npctype_main; bodyStateInterruptableOverride = TRUE; exp = 0; exp_next = 500; lp = 0; attribute[ATR_STRENGTH] = 60; attribute[ATR_DEXTERITY] = 10; attribute[ATR_MANA_MAX] = 10; attribute[ATR_MANA] = 10; attribute[ATR_HITPOINTS_MAX] = 200; attribute[ATR_HITPOINTS] = 200; PLAYER_TALENT_SMITH[WEAPON_1H_Harad_01] = TRUE; PLAYER_TALENT_SMITH[WEAPON_1H_Harad_02] = TRUE; PLAYER_TALENT_SMITH[WEAPON_1H_Harad_03] = TRUE; PLAYER_TALENT_SMITH[WEAPON_1H_Harad_04] = TRUE; Npc_SetTalentSkill(self,NPC_TALENT_PICKPOCKET,1); B_AddFightSkill(self,NPC_TALENT_1H,60); Mdl_SetVisual(self,"HUMANS.MDS"); Mdl_SetVisualBody(self,"hum_body_Naked0",9,0,"Hum_Head_Pony",Face_N_Player,0,ITAR_Thorus_Addon); EquipItem(self,ItMw_BeliarWeapon_1H_02); CreateInvItems(self,ItMi_Gold,1000); CreateInvItems(self,ItMi_GoldNugget_Addon,5); CreateInvItems(self,ItMw_BeliarWeapon_1H_01,1); CreateInvItems(self,ItMw_1h_Vlk_Dagger,1); CreateInvItems(self,ItMw_1H_Mace_L_01,1); CreateInvItems(self,ItAm_Addon_STR,1); CreateInvItems(self,ItRi_Addon_STR_01,1); CreateInvItems(self,ItRi_Addon_STR_02,1); CreateInvItems(self,ITAR_Leather_L,1); CreateInvItems(self,ITAR_SLD_L,1); CreateInvItems(self,ITAR_SLD_M,1); CreateInvItems(self,ITAR_SLD_H,1); CreateInvItems(self,ITAR_MIL_M,1); CreateInvItems(self,ITAR_KDF_H,1); CreateInvItems(self,ITAR_NOV_L,1); CreateInvItems(self,ItBE_Addon_Leather_01,1); CreateInvItems(self,ItBE_Addon_SLD_01,1); CreateInvItems(self,ItBE_Addon_MIL_01,1); CreateInvItems(self,ItBE_Addon_MC,1); CreateInvItems(self,ItBE_Addon_KDF_01,1); CreateInvItems(self,ItBE_Addon_NOV_01,1); CreateInvItems(self,ItMi_Addon_Joint_01,2); CreateInvItems(self,ItPo_Addon_Geist_01,2); CreateInvItems(self,ItPo_Addon_Geist_02,2); CreateInvItems(self,ItWr_Addon_BookXP250,1); CreateInvItems(self,ItWr_Addon_BookXP500,1); CreateInvItems(self,ItWr_Addon_BookXP1000,1); CreateInvItems(self,ItWr_Addon_BookLP2,1); CreateInvItems(self,ItWr_Addon_BookLP3,1); CreateInvItems(self,ItWr_Addon_BookLP5,1); CreateInvItems(self,ItWr_Addon_BookLP8,1); CreateInvItems(self,ItFo_Addon_SchlafHammer,1); CreateInvItems(self,ItFo_Addon_LousHammer,1); CreateInvItems(self,ItFo_Booze,5); CreateInvItems(self,ItMw_2H_Axe_L_01,1); CreateInvItems(self,ItPl_SwampHerb,10); CreateInvItems(self,ItPl_Beet,10); CreateInvItems(self,ItAt_SharkTeeth,10); CreateInvItems(self,ItFo_Addon_Rum,20); };
D
/** * Implement CTFE for intrinsic (builtin) functions. * * Currently includes functions from `std.math`, `core.math` and `core.bitop`. * * 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/builtin.d, _builtin.d) * Documentation: https://dlang.org/phobos/dmd_builtin.html * Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/builtin.d */ module dmd.builtin; import core.stdc.math; import core.stdc.string; import dmd.arraytypes; import dmd.dmangle; import dmd.errors; import dmd.expression; import dmd.func; import dmd.globals; import dmd.mtype; import dmd.root.ctfloat; import dmd.root.stringtable; import dmd.tokens; import dmd.id; static import core.bitop; /********************************** * Determine if function is a builtin one that we can * evaluate at compile time. */ public extern (C++) BUILTIN isBuiltin(FuncDeclaration fd) { if (fd.builtin == BUILTIN.unknown) { fd.builtin = determine_builtin(fd); } return fd.builtin; } /************************************** * Evaluate builtin function. * Return result; NULL if cannot evaluate it. */ public extern (C++) Expression eval_builtin(Loc loc, FuncDeclaration fd, Expressions* arguments) { if (fd.builtin == BUILTIN.unimp) return null; switch (fd.builtin) { foreach(e; __traits(allMembers, BUILTIN)) { static if (e == "unknown") case BUILTIN.unknown: assert(false); else mixin("case BUILTIN."~e~": return eval_"~e~"(loc, fd, arguments);"); } default: assert(0); } } private: /** * Handler for evaluating builtins during CTFE. * * Params: * loc = The call location, for error reporting. * fd = The callee declaration, e.g. to disambiguate between different overloads * in a single handler (LDC). * arguments = The function call arguments. * Returns: * An Expression containing the return value of the call. */ BUILTIN determine_builtin(FuncDeclaration func) { auto fd = func.toAliasFunc(); if (fd.isDeprecated()) return BUILTIN.unimp; auto m = fd.getModule(); if (!m || !m.md) return BUILTIN.unimp; const md = m.md; const id2 = md.id; // Look for core.math, core.bitop and std.math if (id2 != Id.math && id2 != Id.bitop) return BUILTIN.unimp; if (!md.packages) return BUILTIN.unimp; if (md.packages.length != 1) return BUILTIN.unimp; const id1 = (*md.packages)[0]; if (id1 != Id.core && id1 != Id.std) return BUILTIN.unimp; const id3 = fd.ident; if (id1 == Id.core && id2 == Id.bitop) { if (id3 == Id.bsf) return BUILTIN.bsf; if (id3 == Id.bsr) return BUILTIN.bsr; if (id3 == Id.bswap) return BUILTIN.bswap; if (id3 == Id._popcnt) return BUILTIN.popcnt; return BUILTIN.unimp; } // Math if (id3 == Id.sin) return BUILTIN.sin; if (id3 == Id.cos) return BUILTIN.cos; if (id3 == Id.tan) return BUILTIN.tan; if (id3 == Id.atan2) return BUILTIN.unimp; // N.B unimplmeneted if (id3 == Id._sqrt) return BUILTIN.sqrt; if (id3 == Id.fabs) return BUILTIN.fabs; if (id3 == Id.exp) return BUILTIN.exp; if (id3 == Id.expm1) return BUILTIN.expm1; if (id3 == Id.exp2) return BUILTIN.exp2; if (id3 == Id.yl2x) return CTFloat.yl2x_supported ? BUILTIN.yl2x : BUILTIN.unimp; if (id3 == Id.yl2xp1) return CTFloat.yl2xp1_supported ? BUILTIN.yl2xp1 : BUILTIN.unimp; if (id3 == Id.log) return BUILTIN.log; if (id3 == Id.log2) return BUILTIN.log2; if (id3 == Id.log10) return BUILTIN.log10; if (id3 == Id.ldexp) return BUILTIN.ldexp; if (id3 == Id.round) return BUILTIN.round; if (id3 == Id.floor) return BUILTIN.floor; if (id3 == Id.ceil) return BUILTIN.ceil; if (id3 == Id.trunc) return BUILTIN.trunc; if (id3 == Id.fmin) return BUILTIN.fmin; if (id3 == Id.fmax) return BUILTIN.fmax; if (id3 == Id.fma) return BUILTIN.fma; if (id3 == Id.copysign) return BUILTIN.copysign; if (id3 == Id.isnan) return BUILTIN.isnan; if (id3 == Id.isInfinity) return BUILTIN.isinfinity; if (id3 == Id.isfinite) return BUILTIN.isfinite; // Only match pow(fp,fp) where fp is a floating point type if (id3 == Id._pow) { if ((*fd.parameters)[0].type.isfloating() && (*fd.parameters)[1].type.isfloating()) return BUILTIN.pow; return BUILTIN.unimp; } if (id3 != Id.toPrec) return BUILTIN.unimp; const(char)* me = mangleExact(fd); final switch (me["_D4core4math__T6toPrecHT".length]) { case 'd': return BUILTIN.toPrecDouble; case 'e': return BUILTIN.toPrecReal; case 'f': return BUILTIN.toPrecFloat; } } Expression eval_unimp(Loc loc, FuncDeclaration fd, Expressions* arguments) { return null; } Expression eval_sin(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return new RealExp(loc, CTFloat.sin(arg0.toReal()), arg0.type); } Expression eval_cos(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return new RealExp(loc, CTFloat.cos(arg0.toReal()), arg0.type); } Expression eval_tan(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return new RealExp(loc, CTFloat.tan(arg0.toReal()), arg0.type); } Expression eval_sqrt(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return new RealExp(loc, CTFloat.sqrt(arg0.toReal()), arg0.type); } Expression eval_fabs(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return new RealExp(loc, CTFloat.fabs(arg0.toReal()), arg0.type); } Expression eval_ldexp(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); Expression arg1 = (*arguments)[1]; assert(arg1.op == TOK.int64); return new RealExp(loc, CTFloat.ldexp(arg0.toReal(), cast(int) arg1.toInteger()), arg0.type); } Expression eval_log(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return new RealExp(loc, CTFloat.log(arg0.toReal()), arg0.type); } Expression eval_log2(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return new RealExp(loc, CTFloat.log2(arg0.toReal()), arg0.type); } Expression eval_log10(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return new RealExp(loc, CTFloat.log10(arg0.toReal()), arg0.type); } Expression eval_exp(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return new RealExp(loc, CTFloat.exp(arg0.toReal()), arg0.type); } Expression eval_expm1(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return new RealExp(loc, CTFloat.expm1(arg0.toReal()), arg0.type); } Expression eval_exp2(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return new RealExp(loc, CTFloat.exp2(arg0.toReal()), arg0.type); } Expression eval_round(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return new RealExp(loc, CTFloat.round(arg0.toReal()), arg0.type); } Expression eval_floor(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return new RealExp(loc, CTFloat.floor(arg0.toReal()), arg0.type); } Expression eval_ceil(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return new RealExp(loc, CTFloat.ceil(arg0.toReal()), arg0.type); } Expression eval_trunc(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return new RealExp(loc, CTFloat.trunc(arg0.toReal()), arg0.type); } Expression eval_copysign(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); Expression arg1 = (*arguments)[1]; assert(arg1.op == TOK.float64); return new RealExp(loc, CTFloat.copysign(arg0.toReal(), arg1.toReal()), arg0.type); } Expression eval_pow(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); Expression arg1 = (*arguments)[1]; assert(arg1.op == TOK.float64); return new RealExp(loc, CTFloat.pow(arg0.toReal(), arg1.toReal()), arg0.type); } Expression eval_fmin(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); Expression arg1 = (*arguments)[1]; assert(arg1.op == TOK.float64); return new RealExp(loc, CTFloat.fmin(arg0.toReal(), arg1.toReal()), arg0.type); } Expression eval_fmax(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); Expression arg1 = (*arguments)[1]; assert(arg1.op == TOK.float64); return new RealExp(loc, CTFloat.fmax(arg0.toReal(), arg1.toReal()), arg0.type); } Expression eval_fma(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); Expression arg1 = (*arguments)[1]; assert(arg1.op == TOK.float64); Expression arg2 = (*arguments)[2]; assert(arg2.op == TOK.float64); return new RealExp(loc, CTFloat.fma(arg0.toReal(), arg1.toReal(), arg2.toReal()), arg0.type); } Expression eval_isnan(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return IntegerExp.createBool(CTFloat.isNaN(arg0.toReal())); } Expression eval_isinfinity(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); return IntegerExp.createBool(CTFloat.isInfinity(arg0.toReal())); } Expression eval_isfinite(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); const value = !CTFloat.isNaN(arg0.toReal()) && !CTFloat.isInfinity(arg0.toReal()); return IntegerExp.createBool(value); } Expression eval_bsf(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.int64); uinteger_t n = arg0.toInteger(); if (n == 0) error(loc, "`bsf(0)` is undefined"); return new IntegerExp(loc, core.bitop.bsf(n), Type.tint32); } Expression eval_bsr(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.int64); uinteger_t n = arg0.toInteger(); if (n == 0) error(loc, "`bsr(0)` is undefined"); return new IntegerExp(loc, core.bitop.bsr(n), Type.tint32); } Expression eval_bswap(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.int64); uinteger_t n = arg0.toInteger(); TY ty = arg0.type.toBasetype().ty; if (ty == Tint64 || ty == Tuns64) return new IntegerExp(loc, core.bitop.bswap(cast(ulong) n), arg0.type); else return new IntegerExp(loc, core.bitop.bswap(cast(uint) n), arg0.type); } Expression eval_popcnt(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.int64); uinteger_t n = arg0.toInteger(); return new IntegerExp(loc, core.bitop.popcnt(n), Type.tint32); } Expression eval_yl2x(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); Expression arg1 = (*arguments)[1]; assert(arg1.op == TOK.float64); const x = arg0.toReal(); const y = arg1.toReal(); real_t result = CTFloat.zero; CTFloat.yl2x(&x, &y, &result); return new RealExp(loc, result, arg0.type); } Expression eval_yl2xp1(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == TOK.float64); Expression arg1 = (*arguments)[1]; assert(arg1.op == TOK.float64); const x = arg0.toReal(); const y = arg1.toReal(); real_t result = CTFloat.zero; CTFloat.yl2xp1(&x, &y, &result); return new RealExp(loc, result, arg0.type); } Expression eval_toPrecFloat(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; float f = cast(real)arg0.toReal(); return new RealExp(loc, real_t(f), Type.tfloat32); } Expression eval_toPrecDouble(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; double d = cast(real)arg0.toReal(); return new RealExp(loc, real_t(d), Type.tfloat64); } Expression eval_toPrecReal(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; return new RealExp(loc, arg0.toReal(), Type.tfloat80); } // These built-ins are reserved for GDC and LDC. Expression eval_gcc(Loc, FuncDeclaration, Expressions*) { assert(0); } Expression eval_llvm(Loc, FuncDeclaration, Expressions*) { assert(0); }
D
in an intensive manner
D
/Users/olegp/Desktop/XCoordinatorPlayground/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/RefCountDisposable.o : /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Deprecated.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Cancelable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObserverType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Reactive.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/RecursiveLock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Errors.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/AtomicInt.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Event.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/First.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/Platform.Linux.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.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/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 /Users/olegp/Desktop/XCoordinatorPlayground/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/olegp/Desktop/XCoordinatorPlayground/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /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/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/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/Security.framework/Headers/Security.apinotes /Users/olegp/Desktop/XCoordinatorPlayground/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/RefCountDisposable~partial.swiftmodule : /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Deprecated.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Cancelable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObserverType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Reactive.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/RecursiveLock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Errors.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/AtomicInt.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Event.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/First.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/Platform.Linux.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.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/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 /Users/olegp/Desktop/XCoordinatorPlayground/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/olegp/Desktop/XCoordinatorPlayground/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /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/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/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/Security.framework/Headers/Security.apinotes /Users/olegp/Desktop/XCoordinatorPlayground/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/RefCountDisposable~partial.swiftdoc : /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Deprecated.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Cancelable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObserverType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Reactive.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/RecursiveLock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Errors.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/AtomicInt.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Event.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/First.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/Platform.Linux.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.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/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 /Users/olegp/Desktop/XCoordinatorPlayground/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/olegp/Desktop/XCoordinatorPlayground/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /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/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/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/Security.framework/Headers/Security.apinotes
D
/* * hunt-proton: AMQP Protocol library for D programming language. * * Copyright (C) 2018-2019 HuntLabs * * Website: https://www.huntlabs.net/ * * Licensed under the Apache-2.0 License. * */ module hunt.proton.amqp.transport.ErrorCondition; import hunt.proton.amqp.Symbol; import hunt.logging; import hunt.Object; import hunt.String; class ErrorCondition { private Symbol _condition; private String _description; private IObject _info; this() { } this(Symbol condition, String description) { _condition = condition; _description = description; } public Symbol getCondition() { return _condition; } public void setCondition(Symbol condition) { if( condition is null ) { logError("the condition field is mandatory"); } _condition = condition; } public String getDescription() { return _description; } public void setDescription(String description) { _description = description; } public IObject getInfo() { return _info; } public void setInfo(IObject info) { _info = info; } public void clear() { _condition = null; _description = null; _info = null; } public void copyFrom(ErrorCondition condition) { _condition = condition._condition; _description = condition._description; _info = condition._info; } public int hashCode() { int result = _condition !is null ? _condition.hashCode() : 0; result = 31 * result + (_description !is null ? cast(int)(((cast(string)(_description.getBytes())).hashOf)) : 0); result = 31 * result + (_info !is null ? cast(int) _info.toHash() : 0); return result; } override bool opEquals(Object o) { if (this is o) { return true; } if (o is null || cast(ErrorCondition)o is null) { return false; } ErrorCondition that = cast(ErrorCondition)o; if (_condition !is null ? _condition != (that.getCondition()) : that.getCondition() !is null) { return false; } if (_description !is null ? _description != (that.getDescription()) : that.getDescription() !is null) { return false; } if (_info !is null ? _info != (that.getInfo()) : that.getInfo() !is null) { return false; } return true; } }
D
/* REQUIRED_ARGS: -preview=rvaluerefparam PERMUTE_ARGS: EXTRA_FILES: imports/testmangle.d TEST_OUTPUT: --- func double All good 1 All good 2 All good 3 _D7imports10testmangle12detectMangleFPSQBlQBg6DetectZQq _D7imports10testmangle__T10DetectTmplTiZQpFNaNbNiNfZv true false uint int[] int[] const(K5886) 4 ; const(K5886) 8 ; const(K5886) K5886 immutable(K5886) 4 ; K5886 4 ; immutable(K5886) 1 ; K5886 2 ; const(K5886) 3 ; immutable(K5886) 8 ; K5886 9 ; const(K5886) 10 ; immutable(K5886) > U = int, N:$?:64=ulong = 3LU|32=uint = 3u$ K=string, V=int K=char, V=string T = SA, E = int, dim = $?:64=5LU|32=5u$ T = DA, E = int T = AA, K = string, V = int pure nothrow @nogc @safe void(int t) pure nothrow @nogc @safe void(int t) T = byte T = char --- RUN_OUTPUT: --- typeof(T)=double typeof(S)=int typeof(T)=double typeof(S)=int typeof(T)=float typeof(S)=int Success --- */ module breaker; import core.stdc.stdio, core.vararg; /**********************************/ U foo(T, U)(U i) { return i + 1; } int foo(T)(int i) { return i + 2; } void test1() { auto i = foo!(int)(2L); // assert(i == 4); // now returns 3 } /**********************************/ U foo2(T, U)(U i) { return i + 1; } void test2() { auto i = foo2!(int)(2L); assert(i == 3); } /**********************************/ class Foo3 { T bar(T,U)(U u) { return cast(T)u; } } void test3() { Foo3 foo = new Foo3; int i = foo.bar!(int)(1.0); assert(i == 1); } /**********************************/ T* begin4(T)(T[] a) { return a.ptr; } void copy4(string pred = "", Ranges...)(Ranges rs) { alias rs[$ - 1] target; pragma(msg, typeof(target).stringof); auto tb = begin4(target);//, te = end(target); } void test4() { int[] a, b, c; copy4(a, b, c); // comment the following line to prevent compiler from crashing copy4!("a > 1")(a, b, c); } /**********************************/ template foo5(T,S) { void foo5(T t, S s) { const tstr = typeid(T).toString(); const sstr = typeid(S).toString(); printf("typeof(T)=%.*s typeof(S)=%.*s\n", cast(int)tstr.length, tstr.ptr, cast(int)sstr.length, sstr.ptr); } } template bar5(T,S) { void bar5(S s) { const tstr = typeid(T).toString(); const sstr = typeid(S).toString(); printf("typeof(T)=%.*s typeof(S)=%.*s\n", cast(int)tstr.length, tstr.ptr, cast(int)sstr.length, sstr.ptr); } } void test5() { foo5(1.0,33); bar5!(double,int)(33); bar5!(float)(33); } /**********************************/ int foo6(T...)(auto ref T x) { int result; foreach (i, v; x) { if (v == 10) assert(__traits(isRef, x[i])); else assert(!__traits(isRef, x[i])); result += v; } return result; } void test6() { int y = 10; int r; r = foo6(8); assert(r == 8); r = foo6(y); assert(r == 10); r = foo6(3, 4, y); assert(r == 17); r = foo6(4, 5, y); assert(r == 19); r = foo6(y, 6, y); assert(r == 26); } /**********************************/ auto ref min(T, U)(auto ref T lhs, auto ref U rhs) { return lhs > rhs ? rhs : lhs; } void test7() { int x = 7, y = 8; int i; i = min(4, 3); assert(i == 3); i = min(x, y); assert(i == 7); min(x, y) = 10; assert(x == 10); static assert(!__traits(compiles, min(3, y) = 10)); static assert(!__traits(compiles, min(y, 3) = 10)); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=5946 template TTest8() { int call(){ return this.g(); } } class CTest8 { int f() { mixin TTest8!(); return call(); } int g() { return 10; } } void test8() { assert((new CTest8()).f() == 10); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=693 template TTest9(alias sym) { int call(){ return sym.g(); } } class CTest9 { int f1() { mixin TTest9!(this); return call(); } int f2() { mixin TTest9!this; return call(); } int g() { return 10; } } void test9() { assert((new CTest9()).f1() == 10); assert((new CTest9()).f2() == 10); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=1780 template Tuple1780(Ts ...) { alias Ts Tuple1780; } template Decode1780( T ) { alias Tuple1780!() Types; } template Decode1780( T : TT!(Us), alias TT, Us... ) { alias Us Types; } void test1780() { struct S1780(T1, T2) {} // should extract tuple (bool,short) but matches the first specialisation alias Decode1780!( S1780!(bool,short) ).Types SQ1780; // --> SQ2 is empty tuple! static assert(is(SQ1780 == Tuple1780!(bool, short))); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=1659 class Foo1659 { } class Bar1659 : Foo1659 { } void f1659(T : Foo1659)() { } void f1659(alias T)() { static assert(false); } void test1659() { f1659!Bar1659(); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=2025 struct S2025 {} void f2025() {} template Foo2025(int i) { enum Foo2025 = 1; } template Foo2025(TL...) { enum Foo2025 = 2; } static assert(Foo2025!1 == 1); static assert(Foo2025!int == 2); static assert(Foo2025!S2025 == 2); static assert(Foo2025!f2025 == 2); template Bar2025(T) { enum Bar2025 = 1; } template Bar2025(A...) { enum Bar2025 = 2; } static assert(Bar2025!1 == 2); static assert(Bar2025!int == 1); // 2 -> 1 static assert(Bar2025!S2025 == 1); // 2 -> 1 static assert(Bar2025!f2025 == 2); template Baz2025(T) { enum Baz2025 = 1; } template Baz2025(alias A) { enum Baz2025 = 2; } static assert(Baz2025!1 == 2); static assert(Baz2025!int == 1); static assert(Baz2025!S2025 == 1); // 2 -> 1 static assert(Baz2025!f2025 == 2); /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=3608 template foo3608(T, U){} template BaseTemplate3608(alias TTT : U!V, alias U, V...) { alias U BaseTemplate3608; } template TemplateParams3608(alias T : U!V, alias U, V...) { alias V TemplateParams3608; } template TyueTuple3608(T...) { alias T TyueTuple3608; } void test3608() { alias foo3608!(int, long) Foo3608; static assert(__traits(isSame, BaseTemplate3608!Foo3608, foo3608)); static assert(is(TemplateParams3608!Foo3608 == TyueTuple3608!(int, long))); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=5015 import breaker; static if (is(ElemType!(int))){} template ElemType(T) { alias _ElemType!(T).type ElemType; } template _ElemType(T) { alias r type; } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=5185 class C5185(V) { void f() { C5185!(C5185!(int)) c; } } void test5185() { C5185!(C5185!(int)) c; } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=5893 class C5893 { int concatAssign(C5893 other) { return 1; } int concatAssign(int other) { return 2; } // to demonstrate overloading template opOpAssign(string op) if (op == "~") { alias concatAssign opOpAssign; } int opOpAssign(string op)(int other) if (op == "+") { return 3; } } void test5893() { auto c = new C5893; assert(c.opOpAssign!"~"(c) == 1); // works assert(c.opOpAssign!"~"(1) == 2); // works assert((c ~= 1) == 2); assert((c += 1) == 3); // overload } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=5988 template Templ5988(alias T) { alias T!int Templ5988; } class C5988a(T) { Templ5988!C5988a foo; } //Templ5988!C5988a foo5988a; // Commented version void test5988a() { C5988a!int a; } // Was error, now works class C5988b(T) { Templ5988!C5988b foo; } Templ5988!C5988b foo5988b; // Uncomment version void test5988b() { C5988b!int a; } // Works /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=6404 // receive only rvalue void rvalue(T)(auto ref T x) if (!__traits(isRef, x)) {} void rvalueVargs(T...)(auto ref T x) if (!__traits(isRef, x[0])) {} // receive only lvalue void lvalue(T)(auto ref T x) if ( __traits(isRef, x)) {} void lvalueVargs(T...)(auto ref T x) if ( __traits(isRef, x[0])) {} void test6404() { int n; static assert(!__traits(compiles, rvalue(n))); static assert( __traits(compiles, rvalue(0))); static assert( __traits(compiles, lvalue(n))); static assert(!__traits(compiles, lvalue(0))); static assert(!__traits(compiles, rvalueVargs(n))); static assert( __traits(compiles, rvalueVargs(0))); static assert( __traits(compiles, lvalueVargs(n))); static assert(!__traits(compiles, lvalueVargs(0))); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=2246 class A2246(T,d){ T p; } class B2246(int rk){ int[rk] p; } class C2246(T,int rk){ T[rk] p; } template f2246(T:A2246!(U,d),U,d){ void f2246(){ } } template f2246(T:B2246!(rank),int rank){ void f2246(){ } } template f2246(T:C2246!(U,rank),U,int rank){ void f2246(){ } } void test2246(){ A2246!(int,long) a; B2246!(2) b; C2246!(int,2) c; f2246!(A2246!(int,long))(); f2246!(B2246!(2))(); f2246!(C2246!(int,2))(); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=2296 void foo2296(size_t D)(int[D] i...){} void test2296() { foo2296(1, 2, 3); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=1684 template Test1684( uint memberOffset ){} class MyClass1684 { int flags2; mixin Test1684!(cast(uint)flags2.offsetof) t1; // compiles ok mixin Test1684!(cast(int)flags2.offsetof) t2; // compiles ok mixin Test1684!(flags2.offsetof) t3; // Error: no property 'offsetof' for type 'int' } /**********************************/ void bug4984a(int n)() if (n > 0 && is(typeof(bug4984a!(n-1) ()))) { } void bug4984a(int n : 0)() { } void bug4984b(U...)(U args) if ( is(typeof( bug4984b(args[1..$]) )) ) { } void bug4984b(U)(U u) { } void bug4984() { // Note: compiling this overflows the stack if dmd is build with DEBUG //bug4984a!400(); bug4984a!200(); bug4984b(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19); } /***************************************/ // https://issues.dlang.org/show_bug.cgi?id=2579 void foo2579(T)(T delegate(in Object) dlg) { } void test2579() { foo2579( (in Object o) { return 15; } ); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=2803 auto foo2803(T)(T t = 0) { return t; } struct S2803 {} S2803 s2803; ref S2803 getS2803() { return s2803; } auto fun2803(T, U)(T t, ref U u = getS2803) { static assert(is(U == S2803)); return &u; } // from the past version of std.conv template to2803(T) { T to2803(S)(S src) { return T.init; } } auto toImpl2803a(T, S)(S s, in T left, in T sep = ", ", in T right = "]") {} auto toImpl2803b(T, S)(S s, in T left = to2803!T(S.stringof~"("), in T right = ")") {} auto toImpl2803c(T, S)(S s, in T left = S.stringof~"(" , in T right = ")") {} // combination with enh 13944 // from std.range.package in 2.067a. auto enumerate2803(En = size_t, R)(R r, En start = 0) { // The type of 'start' should be size_t, it's the defaultArg of En, // rather than the deduced type from its defualtArg '0'. static assert(is(typeof(start) == size_t)); return start; } // from std.numeric. alias ElementType2803(R) = typeof(R.init[0].init); void normalize2803(R)(R range, ElementType2803!R sum = 1) { // The type of 'sum' should be determined to ElementType!(double[]) == double // before the type deduction from its defaultArg '1'. static assert(is(typeof(sum) == double)); } auto foo14468(T)(T[]...) { return 1; } auto foo14468(bool flag, T)(T[]...) { return 2; } void test2803() { assert(foo2803() == 0); assert(foo2803(1) == 1); S2803 s; assert(fun2803(1) is &s2803); assert(fun2803(1, s) is &s); // regression cases toImpl2803a!string(1, "["); toImpl2803b! string(1); toImpl2803b!wstring(1); toImpl2803b!dstring(1); toImpl2803c! string(1); toImpl2803c!wstring(1); // requires enhancement 13944 toImpl2803c!dstring(1); // requires enhancement 13944 enumerate2803([1]); double[] a = []; normalize2803(a); assert(foo14468!int() == 1); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=6613 alias Tuple6613(T...) = T; void f6613(T...)(int x = 0, T xs = Tuple6613!()) { assert(x == 0); static assert(T.length == 0); } void test6613() { f6613(); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=4953 void bug4953(T = void)(short x) {} static assert(is(typeof(bug4953(3)))); /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=5886 // https://issues.dlang.org/show_bug.cgi?id=5393 mixin template Foo5886(T) { void foo(U : T, this X)() const { static assert(is(X == const K5886)); } } struct K5886 { void get1(this T)() const { pragma(msg, T); } void get2(int N=4, this T)() const { pragma(msg, N, " ; ", T); } mixin Foo5886!double; mixin Foo5886!string; void test() const { get1; // OK get2; // OK get2!8; // NG foo!(int); foo!(typeof(null)); } } void test5886() { K5886 km; const(K5886) kc; immutable(K5886) ki; km.get1; // OK kc.get1; // OK ki.get1; // OK km.get2; // OK kc.get2; // OK ki.get2; // OK km.get2!(1, K5886); // Ugly kc.get2!(2, const(K5886)); // Ugly ki.get2!(3, immutable(K5886)); // Ugly km.get2!8; // Error kc.get2!9; // Error ki.get2!10; // Error } // -------- void test5393() { class A { void opDispatch (string name, this T) () { } } class B : A {} auto b = new B; b.foobar(); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=5896 struct X5896 { T opCast(T)(){ return 1; } const T opCast(T)(){ return 2; } immutable T opCast(T)(){ return 3; } shared T opCast(T)(){ return 4; } const shared T opCast(T)(){ return 5; } } void test5896() { auto xm = X5896 (); auto xc = const(X5896) (); auto xi = immutable(X5896) (); auto xs = shared(X5896) (); auto xcs= const(shared(X5896))(); assert(cast(int)xm == 1); assert(cast(int)xc == 2); assert(cast(int)xi == 3); assert(cast(int)xs == 4); assert(cast(int)xcs== 5); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=6312 void h6312() {} class Bla6312 { mixin wrap6312!h6312; } mixin template wrap6312(alias f) { void blub(alias g = f)() { g(); } } void test6312() { Bla6312 b = new Bla6312(); b.blub(); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=6825 void test6825() { struct File { void write(S...)(S args) {} } void dump(void delegate(string) d) {} auto o = File(); dump(&o.write!string); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=6789 template isStaticArray6789(T) { static if (is(T U : U[N], size_t N)) // doesn't match { pragma(msg, "> U = ", U, ", N:", typeof(N), " = ", N); enum isStaticArray6789 = true; } else enum isStaticArray6789 = false; } void test6789() { alias int[3] T; static assert(isStaticArray6789!T); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=2778 struct ArrayWrapper2778(T) { T[] data; alias data this; } void doStuffFunc2778(int[] data) {} void doStuffTempl2778(T)(T[] data) {} int doStuffTemplOver2778(T)(void* data) { return 1; } int doStuffTemplOver2778(T)(ArrayWrapper2778!T w) { return 2; } void test2778() { ArrayWrapper2778!(int) foo; doStuffFunc2778(foo); // Works. doStuffTempl2778!(int)(foo); // Works. doStuffTempl2778(foo); // Error assert(doStuffTemplOver2778(foo) == 2); } // ---- void test2778aa() { void foo(K, V)(V[K] aa){ pragma(msg, "K=", K, ", V=", V); } int[string] aa1; foo(aa1); // OK struct SubTypeOf(T) { T val; alias val this; } SubTypeOf!(string[char]) aa2; foo(aa2); // NG } // ---- void test2778get() { void foo(ubyte[]){} static struct S { ubyte[] val = [1,2,3]; @property ref ubyte[] get() return { return val; } alias get this; } S s; foo(s); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=6208 int getRefNonref(T)(ref T s){ return 1; } int getRefNonref(T)( T s){ return 2; } int getAutoRef(T)(auto ref T s){ return __traits(isRef, s) ? 1 : 2; } void getOut(T)(out T s){ {} } void getLazy1(T=int)(lazy void s){ s(), s(); } void getLazy2(T)(lazy T s){ s(), s(); } void test6208a() { int lvalue; int rvalue(){ int t; return t; } assert(getRefNonref(lvalue ) == 1); assert(getRefNonref(rvalue()) == 2); assert(getAutoRef(lvalue ) == 1); assert(getAutoRef(rvalue()) == 2); static assert( __traits(compiles, getOut(lvalue ))); static assert(!__traits(compiles, getOut(rvalue()))); int n1; getLazy1(++n1); assert(n1 == 2); int n2; getLazy2(++n2); assert(n2 == 2); struct X { int f(T)(auto ref T t){ return 1; } int f(T)(auto ref T t, ...){ return -1; } } auto xm = X (); auto xc = const(X)(); int n; assert(xm.f!int(n) == 1); // resolved 'auto ref' assert(xm.f!int(0) == 1); // ditto } void test6208b() { void foo(T)(const T value) if (!is(T == int)) {} int mn; const int cn; static assert(!__traits(compiles, foo(mn))); // OK -> OK static assert(!__traits(compiles, foo(cn))); // NG -> OK } void test6208c() { struct S { // Original test case. int foo(V)(in V v) { return 1; } int foo(Args...)(auto ref const Args args) { return 2; } // Reduced test cases int hoo(V)(const V v) { return 1; } // typeof(10) : const V -> MATCHconst int hoo(Args...)(const Args args) { return 2; } // typeof(10) : const Args[0] -> MATCHconst // If deduction matching level is same, tuple parameter is less specialized than others. int bar(V)(V v) { return 1; } // typeof(10) : V -> MATCHexact int bar(Args...)(const Args args) { return 2; } // typeof(10) : const Args[0] -> MATCHconst int baz(V)(const V v) { return 1; } // typeof(10) : const V -> MATCHconst int baz(Args...)(Args args) { return 2; } // typeof(10) : Args[0] -> MATCHexact inout(int) war(V)(inout V v) { return 1; } inout(int) war(Args...)(inout Args args){ return 2; } inout(int) waz(Args...)(inout Args args){ return 0; } // wild deduction test } S s; int nm = 10; assert(s.foo(nm) == 1); assert(s.hoo(nm) == 1); assert(s.bar(nm) == 1); assert(s.baz(nm) == 2); assert(s.war(nm) == 1); static assert(is(typeof(s.waz(nm)) == int)); const int nc = 10; assert(s.foo(nc) == 1); assert(s.hoo(nc) == 1); assert(s.bar(nc) == 1); assert(s.baz(nc) == 1); assert(s.war(nc) == 1); static assert(is(typeof(s.waz(nc)) == const(int))); immutable int ni = 10; assert(s.foo(ni) == 1); assert(s.hoo(ni) == 1); assert(s.bar(ni) == 1); assert(s.baz(ni) == 2); assert(s.war(ni) == 1); static assert(is(typeof(s.waz(ni)) == immutable(int))); static assert(is(typeof(s.waz(nm, nm)) == int)); static assert(is(typeof(s.waz(nm, nc)) == const(int))); static assert(is(typeof(s.waz(nm, ni)) == const(int))); static assert(is(typeof(s.waz(nc, nm)) == const(int))); static assert(is(typeof(s.waz(nc, nc)) == const(int))); static assert(is(typeof(s.waz(nc, ni)) == const(int))); static assert(is(typeof(s.waz(ni, nm)) == const(int))); static assert(is(typeof(s.waz(ni, nc)) == const(int))); static assert(is(typeof(s.waz(ni, ni)) == immutable(int))); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=6805 struct T6805 { template opDispatch(string name) { alias int Type; } } static assert(is(T6805.xxx.Type == int)); /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=6738 struct Foo6738 { int _val = 10; @property int val()() { return _val; } int get() { return val; } // fail } void test6738() { Foo6738 foo; auto x = foo.val; // ok assert(x == 10); assert(foo.get() == 10); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7498 template IndexMixin(){ void insert(T)(T value){ } } class MultiIndexContainer{ mixin IndexMixin!() index0; class Index0{ void baburk(){ this.outer.index0.insert(1); } } } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=6780 @property int foo6780()(){ return 10; } int g6780; @property void bar6780()(int n){ g6780 = n; } void test6780() { auto n = foo6780; assert(n == 10); bar6780 = 10; assert(g6780 == 10); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=6810 int f6810(int n)(int) { return 1;} int f6810(U...)(U) { assert(0); } int f6810(U...)(U a) { assert(0); } int f6810(U...)(U) if (true) { assert(0); } int f6810(U...)(U a) if (true) { assert(0); } void test6810() { assert(f6810!0(0) == 1); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=6891 struct S6891(int N, T) { void f(U)(S6891!(N, U) u) { } } void test6891() { alias S6891!(1, void) A; A().f(A()); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=6994 struct Foo6994 { T get(T)(){ return T.init; } T func1(T)() if (__traits(compiles, get!T())) { return get!T; } T func2(T)() if (__traits(compiles, this.get!T())) // add explicit 'this' { return get!T; } } void test6994() { Foo6994 foo; foo.get!int(); // OK foo.func1!int(); // OK foo.func2!int(); // NG } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=6764 enum N6764 = 1; //use const for D1 alias size_t[N6764] T6764; //workaround void f6764()(T6764 arr...) { } void g6764()(size_t[1] arr...) { } void h6764()(size_t[N6764] arr...) { } void test6764() { f6764(0); //good g6764(0); //good h6764!()(0); //good h6764(0); //Error: template main.f() does not match any function template declaration } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=3467 // https://issues.dlang.org/show_bug.cgi?id=6806 struct Foo3467( uint n ) { Foo3467!( n ) bar( ) { typeof( return ) result; return result; } } struct Vec3467(size_t N) { void opBinary(string op:"~", size_t M)(Vec3467!M) {} } void test3467() { Foo3467!( 4 ) baz; baz = baz.bar;// FAIL Vec3467!2 a1; Vec3467!3 a2; a1 ~ a2; // line 7, Error } struct TS6806(uint n) { pragma(msg, typeof(n)); } static assert(is(TS6806!(1u) == TS6806!(1))); /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=4413 struct Foo4413 { alias typeof(this) typeof_this; void bar1(typeof_this other) {} void bar2()(typeof_this other) {} void bar3(typeof(this) other) {} void bar4()(typeof(this) other) {} } void test4413() { Foo4413 f; f.bar1(f); // OK f.bar2(f); // OK f.bar3(f); // OK f.bar4(f); // ERR } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=4675 template isNumeric(T) { enum bool test1 = is(T : long); // should be hidden enum bool test2 = is(T : real); // should be hidden enum bool isNumeric = test1 || test2; } void test4675() { static assert( isNumeric!int); static assert(!isNumeric!string); static assert(!__traits(compiles, isNumeric!int.test1)); // should be an error static assert(!__traits(compiles, isNumeric!int.test2)); // should be an error static assert(!__traits(compiles, isNumeric!int.isNumeric)); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=5525 template foo5525(T) { T foo5525(T t) { return t; } T foo5525(T t, T u) { return t + u; } } void test5525() { alias foo5525!int f; assert(f(1) == 1); assert(f(1, 2) == 3); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=5801 int a5801; void bar5801(T = double)(typeof(a5801) i) {} void baz5801(T)(typeof(a5801) i, T t) {} void test5801() { bar5801(2); // Does not compile. baz5801(3, "baz"); // Does not compile. } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=5832 struct Bar5832(alias v) {} template isBar5832a(T) { static if (is(T _ : Bar5832!(v), alias v)) enum isBar5832a = true; else enum isBar5832a = false; } template isBar5832b(T) { static if (is(T _ : Bar5832!(v), alias int v)) enum isBar5832b = true; else enum isBar5832b = false; } template isBar5832c(T) { static if (is(T _ : Bar5832!(v), alias string v)) enum isBar5832c = true; else enum isBar5832c = false; } static assert( isBar5832a!(Bar5832!1234)); static assert( isBar5832b!(Bar5832!1234)); static assert(!isBar5832c!(Bar5832!1234)); /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=2550 template pow10_2550(long n) { const long pow10_2550 = 0; static if (n < 0) const long pow10_2550 = 0; else const long pow10_2550 = 10 * pow10_2550!(n - 1); } template pow10_2550(long n:0) { const long pow10_2550 = 1; } static assert(pow10_2550!(0) == 1); /**********************************/ // [2.057] Remove top const in IFTI, 9198 void foo10a(T )(T) { static assert(is(T == const(int)[])); } void foo10b(T...)(T) { static assert(is(T[0] == const(int)[])); } // ref parameter doesn't remove top const void boo10a(T )(ref T) { static assert(is(T == const(int[]))); } void boo10b(T...)(ref T) { static assert(is(T[0] == const(int[]))); } // auto ref with lvalue doesn't void goo10a(T )(auto ref T) { static assert(is(T == const(int[]))); } void goo10b(T...)(auto ref T) { static assert(is(T[0] == const(int[]))); } // auto ref with rvalue does void hoo10a(T )(auto ref T) { static assert(is(T == const(int)[])); } void hoo10b(T...)(auto ref T) { static assert(is(T[0] == const(int)[])); } void bar10a(T )(T) { static assert(is(T == const(int)*)); } void bar10b(T...)(T) { static assert(is(T[0] == const(int)*)); } void test10() { const a = [1,2,3]; static assert(is(typeof(a) == const(int[]))); foo10a(a); foo10b(a); boo10a(a); boo10b(a); goo10a(a); goo10b(a); hoo10a(cast(const)[1,2,3]); hoo10b(cast(const)[1,2,3]); int n; const p = &n; static assert(is(typeof(p) == const(int*))); bar10a(p); bar10b(p); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=3092 template Foo3092(A...) { alias A[0] Foo3092; } static assert(is(Foo3092!(int, "foo") == int)); /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7037 struct Foo7037 {} struct Bar7037 { Foo7037 f; alias f this; } void works7037( T )( T value ) if ( is( T : Foo7037 ) ) {} void doesnotwork7037( T : Foo7037 )( T value ) {} void test7037() { Bar7037 b; works7037( b ); doesnotwork7037( b ); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7110 struct S7110 { int opSlice(int, int) const { return 0; } int opSlice() const { return 0; } int opIndex(int, int) const { return 0; } int opIndex(int) const { return 0; } } enum e7110 = S7110(); template T7110(alias a) { } // or T7110(a...) alias T7110!( S7110 ) T71100; // passes alias T7110!((S7110)) T71101; // passes alias T7110!( S7110()[0..0] ) A0; // passes alias T7110!( (e7110[0..0]) ) A1; // passes alias T7110!( e7110[0..0] ) A2; // passes alias T7110!( S7110()[0, 0] ) B0; // passes alias T7110!( (e7110[0, 0]) ) B1; // passes alias T7110!( e7110[0, 0] ) B2; // passes alias T7110!( S7110()[] ) C0; // passes alias T7110!( (e7110[]) ) C1; // passes alias T7110!( e7110[] ) C2; // fails: e7110 is used as a type alias T7110!( S7110()[0] ) D0; // passes alias T7110!( (e7110[0]) ) D1; // passes alias T7110!( e7110[0] ) D2; // fails: e7110 must be an array or pointer type, not S7110 /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7124 template StaticArrayOf(T : E[dim], E, size_t dim) { pragma(msg, "T = ", T, ", E = ", E, ", dim = ", dim); alias E[dim] StaticArrayOf; } template DynamicArrayOf(T : E[], E) { pragma(msg, "T = ", T, ", E = ", E); alias E[] DynamicArrayOf; } template AssocArrayOf(T : V[K], K, V) { pragma(msg, "T = ", T, ", K = ", K, ", V = ", V); alias V[K] AssocArrayOf; } void test7124() { struct SA { int[5] sa; alias sa this; } static assert(is(StaticArrayOf!SA == int[5])); struct DA { int[] da; alias da this; } static assert(is(DynamicArrayOf!DA == int[])); struct AA { int[string] aa; alias aa this; } static assert(is(AssocArrayOf!AA == int[string])); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7359 bool foo7359(T)(T[] a ...) { return true; } void test7359() { assert(foo7359(1,1,1,1,1,1)); // OK assert(foo7359("abc","abc","abc","abc")); // NG } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7363 template t7363() { enum e = 0; static if (true) enum t7363 = 0; } static assert(!__traits(compiles, t7363!().t7363 == 0)); // Assertion fails static assert(t7363!() == 0); // Error: void has no value template u7363() { static if (true) { enum e = 0; enum u73631 = 0; } alias u73631 u7363; } static assert(!__traits(compiles, u7363!().u7363 == 0)); // Assertion fails static assert(u7363!() == 0); // Error: void has no value /**********************************/ struct S4371(T ...) { } alias S4371!("hi!") t; static if (is(t U == S4371!(U))) { } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7416 void t7416(alias a)() if(is(typeof(a()))) {} void test7416() { void f() {} alias t7416!f x; } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7563 class Test7563 { void test(T, bool a = true)(T t) { } } void test7563() { auto test = new Test7563; pragma(msg, typeof(test.test!(int, true)).stringof); pragma(msg, typeof(test.test!(int)).stringof); // Error: expression (test.test!(int)) has no type } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7572 class F7572 { Tr fn7572(Tr, T...)(T t) { return 1; } } Tr Fn7572(Tr, T...)(T t) { return 2; } void test7572() { F7572 f = new F7572(); int delegate() dg = &f.fn7572!int; assert(dg() == 1); int function() fn = &Fn7572!int; assert(fn() == 2); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7580 struct S7580(T) { void opAssign()(T value) {} } struct X7580(T) { private T val; @property ref inout(T) get()() inout { return val; } // template alias get this; } struct Y7580(T) { private T val; @property ref auto get()() inout { return val; } // template + auto return alias get this; } void test7580() { S7580!(int) s; X7580!int x; Y7580!int y; s = x; s = y; shared(X7580!int) sx; static assert(!__traits(compiles, s = sx)); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7585 extern(C) alias void function() Callback; template W7585a(alias dg) { //pragma(msg, typeof(dg)); extern(C) void W7585a() { dg(); } } void test7585() { static void f7585a(){} Callback cb1 = &W7585a!(f7585a); // OK static assert(!__traits(compiles, { void f7585b(){} Callback cb2 = &W7585a!(f7585b); // NG })); Callback cb3 = &W7585a!((){}); // NG -> OK Callback cb4 = &W7585a!(function(){}); // OK static assert(!__traits(compiles, { Callback cb5 = &W7585a!(delegate(){}); // NG })); static int global; // global data Callback cb6 = &W7585a!((){return global;}); // NG -> OK static assert(!__traits(compiles, { int n; Callback cb7 = &W7585a!((){return n;}); // NG })); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7643 template T7643(A...){ alias A T7643; } alias T7643!(long, "x", string, "y") Specs7643; alias T7643!( Specs7643[] ) U7643; // Error: tuple A is used as a type /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7671 inout(int)[3] id7671n1 ( inout(int)[3] ); inout( U )[n] id7671x1(U, size_t n)( inout( U )[n] ); shared(inout int)[3] id7671n2 ( shared(inout int)[3] ); shared(inout U )[n] id7671x2(U, size_t n)( shared(inout U )[n] ); void test7671() { static assert(is( typeof( id7671n1( (immutable(int)[3]).init ) ) == immutable(int[3]) )); static assert(is( typeof( id7671x1( (immutable(int)[3]).init ) ) == immutable(int[3]) )); static assert(is( typeof( id7671n2( (immutable(int)[3]).init ) ) == immutable(int[3]) )); static assert(is( typeof( id7671x2( (immutable(int)[3]).init ) ) == immutable(int[3]) )); } /************************************/ // https://issues.dlang.org/show_bug.cgi?id=7672 T foo7672(T)(T a){ return a; } void test7672(inout(int[]) a = null, inout(int*) p = null) { static assert(is( typeof( a ) == inout(int[]) )); static assert(is( typeof(foo7672(a)) == inout(int)[] )); static assert(is( typeof( p ) == inout(int*) )); static assert(is( typeof(foo7672(p)) == inout(int)* )); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7684 U[] id7684(U)( U[] ); shared(U[]) id7684(U)( shared(U[]) ); void test7684() { shared(int)[] x; static assert(is( typeof(id7684(x)) == shared(int)[] )); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7694 void match7694(alias m)() { m.foo(); //removing this line suppresses ice in both cases } struct T7694 { void foo(){} void bootstrap() { //next line causes ice match7694!(this)(); //while this works: alias this p; match7694!(p)(); } } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7755 template to7755(T) { T to7755(A...)(A args) { return toImpl7755!T(args); } } T toImpl7755(T, S)(S value) { return T.init; } template Foo7755(T){} struct Bar7755 { void qux() { if (is(typeof(to7755!string(Foo7755!int)))){} } } /**********************************/ U[] id11a(U)( U[] ); inout(U)[] id11a(U)( inout(U)[] ); inout(U[]) id11a(U)( inout(U[]) ); inout(shared(U[])) id11a(U)( inout(shared(U[])) ); void test11a(inout int _ = 0) { shared(const(int))[] x; static assert(is( typeof(id11a(x)) == shared(const(int))[] )); shared(int)[] y; static assert(is( typeof(id11a(y)) == shared(int)[] )); inout(U)[n] idz(U, size_t n)( inout(U)[n] ); inout(shared(bool[1])) z; static assert(is( typeof(idz(z)) == inout(shared(bool[1])) )); } inout(U[]) id11b(U)( inout(U[]) ); void test11b() { alias const(shared(int)[]) T; static assert(is(typeof(id11b(T.init)) == const(shared(int)[]))); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7769 void f7769(K)(inout(K) value){} void test7769() { f7769("abc"); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7812 template A7812(T...) {} template B7812(alias C) if (C) {} template D7812() { alias B7812!(A7812!(NonExistent!())) D7812; } static assert(!__traits(compiles, D7812!())); /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7873 inout(T)* foo(T)(inout(T)* t) { static assert(is(T == int*)); return t; } inout(T)* bar(T)(inout(T)* t) { return foo(t); } void test7873() { int *i; bar(&i); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=7933 struct Boo7933(size_t dim){int a;} struct Baa7933(size_t dim) { Boo7933!dim a; //Boo7933!1 a; //(1) This version causes no errors } auto foo7933()(Boo7933!1 b){return b;} //auto fuu7933(Boo7933!1 b){return b;} //(2) This line neutralizes the error void test7933() { Baa7933!1 a; //(3) This line causes the error message auto b = foo7933(Boo7933!1(1)); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=8094 struct Tuple8094(T...) {} template getParameters8094(T, alias P) { static if (is(T t == P!U, U...)) alias U getParameters8094; else static assert(false); } void test8094() { alias getParameters8094!(Tuple8094!(int, string), Tuple8094) args; } /**********************************/ struct Tuple12(T...) { void foo(alias P)() { alias Tuple12 X; static if (is(typeof(this) t == X!U, U...)) alias U getParameters; else static assert(false); } } void test12() { Tuple12!(int, string) t; t.foo!Tuple12(); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=14290 struct Foo14290(int i) {} alias Foo14290a = Foo14290!1; static assert(!is(Foo14290!2 == Foo14290a!T, T...)); /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=8125 void foo8125(){} struct X8125(alias a) {} template Y8125a(T : A!f, alias A, alias f) {} //OK template Y8125b(T : A!foo8125, alias A) {} //NG void test8125() { alias Y8125a!(X8125!foo8125) y1; alias Y8125b!(X8125!foo8125) y2; } /**********************************/ struct A13() {} struct B13(TT...) {} struct C13(T1) {} struct D13(T1, TT...) {} struct E13(T1, T2) {} struct F13(T1, T2, TT...) {} template Test13(alias X) { static if (is(X x : P!U, alias P, U...)) enum Test13 = true; else enum Test13 = false; } void test13() { static assert(Test13!( A13!() )); static assert(Test13!( B13!(int) )); static assert(Test13!( B13!(int, double) )); static assert(Test13!( B13!(int, double, string) )); static assert(Test13!( C13!(int) )); static assert(Test13!( D13!(int) )); static assert(Test13!( D13!(int, double) )); static assert(Test13!( D13!(int, double, string) )); static assert(Test13!( E13!(int, double) )); static assert(Test13!( F13!(int, double) )); static assert(Test13!( F13!(int, double, string) )); static assert(Test13!( F13!(int, double, string, bool) )); } /**********************************/ struct A14(T, U, int n = 1) { } template Test14(alias X) { static if (is(X x : P!U, alias P, U...)) alias U Test14; else static assert(0); } void test14() { alias A14!(int, double) Type; alias Test14!Type Params; static assert(Params.length == 3); static assert(is(Params[0] == int)); static assert(is(Params[1] == double)); static assert( Params[2] == 1); } /**********************************/ // test for evaluateConstraint assertion bool canSearchInCodeUnits15(C)(dchar c) if (is(C == char)) { return true; } void test15() { int needle = 0; auto b = canSearchInCodeUnits15!char(needle); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=8129 class X8129 {} class A8129 {} class B8129 : A8129 {} int foo8129(T : A8129)(X8129 x) { return 1; } int foo8129(T : A8129)(X8129 x, void function (T) block) { return 2; } int bar8129(T, R)(R range, T value) { return 1; } int baz8129(T, R)(R range, T value) { return 1; } int baz8129(T, R)(R range, Undefined value) { return 2; } void test8129() { auto x = new X8129; assert(x.foo8129!B8129() == 1); assert(x.foo8129!B8129((a){}) == 2); assert(foo8129!B8129(x) == 1); assert(foo8129!B8129(x, (a){}) == 2); assert(foo8129!B8129(x) == 1); assert(foo8129!B8129(x, (B8129 b){}) == 2); ubyte[] buffer = [0, 1, 2]; assert(bar8129!ushort(buffer, 915) == 1); // While deduction, parameter type 'Undefined' shows semantic error. static assert(!__traits(compiles, { baz8129!ushort(buffer, 915); })); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=8238 void test8238() { static struct S { template t(){ int t; } } S s1, s2; assert(cast(void*)&s1 != cast(void*)&s2 ); assert(cast(void*)&s1 != cast(void*)&s1.t!()); assert(cast(void*)&s2 != cast(void*)&s2.t!()); assert(cast(void*)&s1.t!() == cast(void*)&s2.t!()); s1.t!() = 256; assert(s2.t!() == 256); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=8669 struct X8669 { void mfoo(this T)() { static assert(is(typeof(this) == T)); } void cfoo(this T)() const { static assert(is(typeof(this) == const(T))); } void sfoo(this T)() shared { static assert(is(typeof(this) == shared(T))); } void scfoo(this T)() shared const { static assert(is(typeof(this) == shared(const(T)))); } void ifoo(this T)() immutable { static assert(is(typeof(this) == immutable(T))); } } void test8669() { X8669 mx; const X8669 cx; immutable X8669 ix; shared X8669 sx; shared const X8669 scx; mx.mfoo(); cx.mfoo(); ix.mfoo(); sx.mfoo(); scx.mfoo(); mx.cfoo(); cx.cfoo(); ix.cfoo(); sx.cfoo(); scx.cfoo(); static assert(!is(typeof( mx.sfoo() ))); static assert(!is(typeof( cx.sfoo() ))); ix.sfoo(); sx.sfoo(); scx.sfoo(); static assert(!is(typeof( mx.scfoo() ))); static assert(!is(typeof( cx.scfoo() ))); ix.scfoo(); sx.scfoo(); scx.scfoo(); static assert(!is(typeof( mx.ifoo() ))); static assert(!is(typeof( cx.ifoo() ))); ix.ifoo(); static assert(!is(typeof( sx.ifoo() ))); static assert(!is(typeof( scx.ifoo() ))); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=8833 template TypeTuple8833(T...) { alias TypeTuple = T; } void func8833(alias arg)() { } void test8833() { int x, y; alias TypeTuple8833!( func8833!(x), func8833!(y), ) Map; } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=8976 void f8976(ref int) { } void g8976()() { f8976(0); // line 5 } void h8976()() { g8976!()(); } static assert( __traits(compiles, h8976!()() ) ); // causes error static assert(is(typeof( h8976!()() ))); void test8976() { static assert( __traits(compiles, h8976!()() ) ); static assert(is(typeof( h8976!()() ))); } /****************************************/ // https://issues.dlang.org/show_bug.cgi?id=8940 const int n8940; // or `immutable` shared static this() { n8940 = 3; } void f8940(T)(ref int val) { assert(val == 3); ++val; } static assert(!__traits(compiles, f8940!void(n8940))); // fails void test8940() { assert(n8940 == 3); static assert(!__traits(compiles, f8940!void(n8940))); //assert(n8940 == 3); // may pass as compiler caches comparison result //assert(n8940 != 4); // may pass but likely will fail } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=6969 // https://issues.dlang.org/show_bug.cgi?id=8990 class A6969() { alias C6969!() C1; } class B6969 { alias A6969!() A1; } class C6969() : B6969 {} struct A8990(T) { T t; } struct B8990(T) { A8990!T* a; } struct C8990 { B8990!C8990* b; } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=9018 template Inst9018(alias Template, T) { alias Template!T Inst; } template Template9018(T) { enum Template9018 = T; } static assert(!__traits(compiles, Inst9018!(Template9018, int))); // Assert passes static assert(!__traits(compiles, Inst9018!(Template9018, int))); // Assert fails /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=9022 class C9022 { struct X {} alias B = X; } class D9022 { struct X {} } void test9022() { auto c = new C9022(); auto d = new D9022(); auto cx = C9022.X(); auto dx = D9022.X(); void foo1(T)(T, T.X) { static assert(is(T == C9022)); } void foo2(T)(T.X, T) { static assert(is(T == C9022)); } foo1(c, cx); foo2(cx, c); void hoo1(T)(T, T.B) { static assert(is(T == C9022)); } void hoo2(T)(T.B, T) { static assert(is(T == C9022)); } hoo1(c, cx); hoo1(c, cx); void bar1(alias A)(A.C9022, A.D9022) { static assert(A.stringof == "module breaker"); } void bar2(alias A)(A.D9022, A.C9022) { static assert(A.stringof == "module breaker"); } bar1(c, d); bar2(d, c); void var1(alias A)(A.C9022, A.D9022.X) { static assert(A.stringof == "module breaker"); } void var2(alias A)(A.D9022.X, A.C9022) { static assert(A.stringof == "module breaker"); } var1(c, dx); var2(dx, c); void baz(T)(T.X t, T.X u) { } static assert(!__traits(compiles, baz(cx, dx))); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=9026 mixin template node9026() { static if (is(this == struct)) alias typeof(this)* E; else alias typeof(this) E; E prev, next; } struct list9026(alias N) { N.E head; N.E tail; } class A9026 { mixin node9026 L1; mixin node9026 L2; } list9026!(A9026.L1) g9026_l1; list9026!(A9026.L2) g9026_l2; void test9026() { list9026!(A9026.L1) l9026_l1; list9026!(A9026.L2) l9026_l2; } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=9038 mixin template Foo9038() { string data = "default"; } class Bar9038 { string data; mixin Foo9038 f; } void check_data9038(alias M, T)(T obj) { //writeln(M.stringof); assert(obj.data == "Bar"); assert(obj.f.data == "F"); } void test9038() { auto bar = new Bar9038; bar.data = "Bar"; bar.f.data = "F"; assert(bar.data == "Bar"); assert(bar.f.data == "F"); check_data9038!(Bar9038)(bar); check_data9038!(Bar9038.f)(bar); check_data9038!(bar.f)(bar); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=9050 struct A9050(T) {} struct B9050(T) { void f() { foo9050(A9050!int()); } } auto foo9050()(A9050!int base) pure { return B9050!int(); } auto s9050 = foo9050(A9050!int()); /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=10936 (dup of 9050) struct Vec10936(string s) { auto foo(string v)() { return Vec10936!(v)(); } static void bar() { Vec10936!"" v; auto p = v.foo!"sup"; } } Vec10936!"" v; /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=9076 template forward9076(args...) { @property forward9076()(){ return args[0]; } } void test9076() { int a = 1; int b = 1; assert(a == forward9076!b); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=9083 template isFunction9083(X...) if (X.length == 1) { enum isFunction9083 = true; } struct S9083 { static string func(alias Class)() { foreach (m; __traits(allMembers, Class)) { pragma(msg, m); // prints "func" enum x1 = isFunction9083!(mixin(m)); //NG enum x2 = isFunction9083!(func); //OK } return ""; } } enum nothing9083 = S9083.func!S9083(); class C9083 { int x; // some class members void func() { void templateFunc(T)(const T obj) { enum x1 = isFunction9083!(mixin("x")); // NG enum x2 = isFunction9083!(x); // NG } templateFunc(this); } } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=9100 template Id(alias A) { alias Id = A; } template ErrId(alias A) { static assert(0); } template TypeTuple9100(TL...) { alias TypeTuple9100 = TL; } class C9100 { int value; int fun() { return value; } int tfun(T)() { return value; } TypeTuple9100!(int, long) field; void test() { this.value = 1; auto c = new C9100(); c.value = 2; alias t1a = Id!(c.fun); // OK alias t1b = Id!(this.fun); // Prints weird error, bad // -> internally given TOKdotvar assert(t1a() == this.value); assert(t1b() == this.value); alias t2a = Id!(c.tfun); // OK static assert(!__traits(compiles, ErrId!(this.tfun))); alias t2b = Id!(this.tfun); // No error occurs, why? // -> internally given TOKdottd assert(t2a!int() == this.value); assert(t2b!int() == this.value); alias t3a = Id!(foo9100); // OK alias t3b = Id!(mixin("foo9100")); // Prints weird error, bad // -> internally given TOKtemplate assert(t3a() == 10); assert(t3b() == 10); assert(field[0] == 0); alias t4a = TypeTuple9100!(field); // NG alias t4b = TypeTuple9100!(GetField9100!()); // NG t4a[0] = 1; assert(field[0] == 1); t4b[0] = 2; assert(field[0] == 2); } } int foo9100()() { return 10; } template GetField9100() { alias GetField9100 = C9100.field[0]; } void test9100() { (new C9100()).test(); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=9101 class Node9101 { template ForwardCtorNoId() { this() {} // default constructor void foo() { 0 = 1; } // wrong code } } enum x9101 = __traits(compiles, Node9101.ForwardCtorNoId!()); /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=9124 struct Foo9124a(N...) { enum SIZE = N[0]; private int _val; public void opAssign (T) (T other) if (is(T unused == Foo9124a!(_N), _N...)) { _val = other._val; // compile error this._val = other._val; // explicit this make it work } public auto opUnary (string op) () if (op == "~") { Foo9124a!(SIZE) result = this; return result; } } void test9124a() { Foo9124a!(28) a; Foo9124a!(28) b = ~a; } // -------- template Foo9124b(T, U, string OP) { enum N = T.SIZE; alias Foo9124b = Foo9124b!(false, true, N); } struct Foo9124b(bool S, bool L, N...) { enum SIZE = 5; long[1] _a = 0; void someFunction() const { auto data1 = _a; // Does not compile auto data2 = this._a; // <--- Compiles } auto opBinary(string op, T)(T) { Foo9124b!(typeof(this), T, op) test; } } void test9124b() { auto p = Foo9124b!(false, false, 5)(); auto q = Foo9124b!(false, false, 5)(); p|q; p&q; } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=9143 struct Foo9143a(bool S, bool L) { auto noCall() { Foo9143a!(S, false) x1; // compiles if this line commented static if(S) Foo9143a!(true, false) x2; else Foo9143a!(false, false) x2; } this(T)(T other) // constructor if (is(T unused == Foo9143a!(P, Q), bool P, bool Q)) { } } struct Foo9143b(bool L, size_t N) { void baaz0() { bar!(Foo9143b!(false, N))(); // line 7 // -> move to before the baaz semantic } void baaz() { bar!(Foo9143b!(false, 2LU))(); // line 3 bar!(Foo9143b!(true, 2LU))(); // line 4 bar!(Foo9143b!(L, N))(); // line 5 bar!(Foo9143b!(true, N))(); // line 6 bar!(Foo9143b!(false, N))(); // line 7 } void bar(T)() if (is(T unused == Foo9143b!(_L, _N), bool _L, size_t _N)) {} } void test9143() { Foo9143a!(false, true) k = Foo9143a!(false, false)(); auto p = Foo9143b!(true, 2LU)(); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=9266 template Foo9266(T...) { T Foo9266; } struct Bar9266() { alias Foo9266!int f; } void test9266() { Bar9266!() a, b; } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=9361 struct Unit9361(A) { void butPleaseDontUseMe()() if (is(unitType9361!((this)))) // ! {} } template isUnit9361(alias T) if ( is(T)) {} template isUnit9361(alias T) if (!is(T)) {} template unitType9361(alias T) if (isUnit9361!T) {} void test9361() { Unit9361!int u; static assert(!__traits(compiles, u.butPleaseDontUseMe())); // crashes } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=9536 struct S9536 { static A foo(A)(A a) { return a * 2; } int bar() const { return foo(42); } } void test9536() { S9536 s; assert(s.bar() == 84); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=9578 template t9578(alias f) { void tf()() { f(); } } void g9578a(alias f)() { f(); } // Error -> OK void g9578b(alias ti)() { ti.tf(); } // Error -> OK void test9578() { int i = 0; int m() { return i; } g9578a!(t9578!m.tf)(); g9578b!(t9578!m)(); } /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=9596 int foo9596a(K, V)(inout( V [K])) { return 1; } int foo9596a(K, V)(inout(shared(V) [K])) { return 2; } int foo9596b(K, V)(inout( V [K])) { return 1; } int foo9596b(K, V)(inout( const(V) [K])) { return 3; } int foo9596c(K, V)(inout(shared(V) [K])) { return 2; } int foo9596c(K, V)(inout( const(V) [K])) { return 3; } int foo9596d(K, V)(inout( V [K])) { return 1; } int foo9596d(K, V)(inout(shared(V) [K])) { return 2; } int foo9596d(K, V)(inout( const(V) [K])) { return 3; } int foo9596e(K, V)(inout(shared(V) [K])) { return 2; } int foo9596e(K, V)(inout( V [K])) { return 1; } int foo9596e(K, V)(inout( const(V) [K])) { return 3; } void test9596() { shared(int)[int] aa; static assert(!__traits(compiles, foo9596a(aa))); assert(foo9596b(aa) == 1); assert(foo9596c(aa) == 2); static assert(!__traits(compiles, foo9596d(aa))); static assert(!__traits(compiles, foo9596e(aa))); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=9806 struct S9806a(alias x) { alias S9806a!0 N; } enum expr9806a = 0 * 0; alias S9806a!expr9806a T9806a; // -------- struct S9806b(alias x) { template Next() { enum expr = x + 1; alias S9806b!expr Next; } } alias S9806b!1 One9806b; alias S9806b!0.Next!() OneAgain9806b; // -------- struct S9806c(x...) { template Next() { enum expr = x[0] + 1; alias S9806c!expr Next; } } alias S9806c!1 One9806c; alias S9806c!0.Next!() OneAgain9806c; /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=9837 void test9837() { enum DA : int[] { a = [1,2,3] } DA da; int[] bda = da; static assert(is(DA : int[])); void fda1(int[] a) {} void fda2(T)(T[] a) {} fda1(da); fda2(da); enum SA : int[3] { a = [1,2,3] } SA sa; int[3] bsa = sa; static assert(is(SA : int[3])); void fsa1(int[3] a) {} void fsa2(T)(T[3] a) {} void fsa3(size_t d)(int[d] a) {} void fsa4(T, size_t d)(T[d] a) {} fsa1(sa); fsa2(sa); fsa3(sa); fsa4(sa); enum AA : int[int] { a = null } AA aa; int[int] baa = aa; static assert(is(AA : int[int])); void faa1(int[int] a) {} void faa2(V)(V[int] a) {} void faa3(K)(int[K] a) {} void faa4(K, V)(V[K] a) {} faa1(aa); faa2(aa); faa3(aa); faa4(aa); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=9874 bool foo9874() { return true; } void bar9874(T)(T) if (foo9874()) {} // OK void baz9874(T)(T) if (foo9874) {} // error void test9874() { foo9874; // OK bar9874(0); baz9874(0); } /******************************************/ void test9885() { void foo(int[1][]) {} void boo()(int[1][]){} struct X(T...) { static void xoo(T){} } struct Y(T...) { static void yoo()(T){} } struct Z(T...) { static void zoo(U...)(T, U){} } struct V(T...) { static void voo()(T, ...){} } struct W(T...) { static void woo()(T...){} } struct R(T...) { static void roo(U...)(int, U, T){} } // OK foo([[10]]); boo([[10]]); // OK X!(int[1][]).xoo([[10]]); // NG! Y!().yoo(); Y!(int).yoo(1); Y!(int, int[]).yoo(1, [10]); static assert(!__traits(compiles, Y!().yoo(1))); static assert(!__traits(compiles, Y!(int).yoo("a"))); static assert(!__traits(compiles, Y!().yoo!(int)())); // NG! Z!().zoo(); Z!().zoo([1], [1:1]); Z!(int, string).zoo(1, "a"); Z!(int, string).zoo(1, "a", [1], [1:1]); Z!().zoo!()(); static assert(!__traits(compiles, Z!().zoo!()(1))); // (none) <- 1 static assert(!__traits(compiles, Z!(int).zoo!()())); // int <- (none) static assert(!__traits(compiles, Z!(int).zoo!()(""))); // int <- "" static assert(!__traits(compiles, Z!().zoo!(int)())); // int <- (none) static assert(!__traits(compiles, Z!().zoo!(int)(""))); // int <- "" V!().voo(1,2,3); V!(int).voo(1,2,3); V!(int, long).voo(1,2,3); static assert(!__traits(compiles, V!(int).voo())); // int <- (none) static assert(!__traits(compiles, V!(int, long).voo(1))); // long <- (none) static assert(!__traits(compiles, V!(int, string).voo(1,2,3))); // string <- 2 W!().woo(); //W!().woo(1, 2, 3); // Access Violation { // this behavior is consistent with: //alias TL = TypeTuple!(); //void foo(TL...) {} //foo(1, 2, 3); // Access Violation //pragma(msg, typeof(foo)); // void(...) -> D-style variadic function? } W!(int,int[]).woo(1,2,3); W!(int,int[2]).woo(1,2,3); static assert(!__traits(compiles, W!(int,int,int).woo(1,2,3))); // int... <- 2 static assert(!__traits(compiles, W!(int,int).woo(1,2))); // int... <- 2 static assert(!__traits(compiles, W!(int,int[2]).woo(1,2))); // int[2]... <- 2 R!().roo(1, "", []); R!(int).roo(1, "", [], 1); R!(int, string).roo(1, "", [], 1, ""); R!(int, string).roo(1, 2, ""); static assert(!__traits(compiles, R!(int).roo(1, "", []))); // int <- [] static assert(!__traits(compiles, R!(int, int).roo(1, "", []))); // int <- [] static assert(!__traits(compiles, R!(int, string).roo(1, 2, 3))); // string <- 3 // test case struct Tuple(T...) { this()(T values) {} } alias T = Tuple!(int[1][]); auto t = T([[10]]); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=9971 void goo9971()() { auto g = &goo9971; } struct S9971 { void goo()() { auto g = &goo; static assert(is(typeof(g) == delegate)); } } void test9971() { goo9971!()(); S9971.init.goo!()(); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=9977 void test9977() { struct S1(T) { T value; } auto func1(T)(T value) { return value; } static assert(is(S1!int == struct)); assert(func1(10) == 10); template S2(T) { struct S2 { T value; } } template func2(T) { auto func2(T value) { return value; } } static assert(is(S2!int == struct)); assert(func2(10) == 10); template X(T) { alias X = T[3]; } static assert(is(X!int == int[3])); int a; template Y(T) { alias Y = T[typeof(a)]; } static assert(is(Y!double == double[int])); int v = 10; template Z() { alias Z = v; } assert(v == 10); Z!() = 20; assert(v == 20); } /******************************************/ enum T8848a(int[] a) = a; enum T8848b(int[int] b) = b; enum T8848c(void* c) = c; static assert(T8848a!([1,2,3]) == [1,2,3]); static assert(T8848b!([1:2,3:4]) == [1:2,3:4]); static assert(T8848c!(null) == null); /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=9990 auto initS9990() { return "hi"; } class C9990(alias init) {} alias SC9990 = C9990!(initS9990); /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=10067 struct assumeSize10067(alias F) {} template useItemAt10067(size_t idx, T) { void impl(){ } alias useItemAt10067 = assumeSize10067!(impl); } useItemAt10067!(0, char) mapS10067; /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=4072 void bug4072(T)(T x) if (is(typeof(bug4072(x)))) {} static assert(!is(typeof(bug4072(7)))); /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=10074 template foo10074(F) { enum foo10074 = false; } bool foo10074(F)(F f) if (foo10074!F) { return false; } static assert(!is(typeof(foo10074(1)))); /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=10083 // [a-c] IFTI can find syntactic eponymous member template foo10083a(T) { int foo10083a(double) { return 1; } int foo10083a(T) { return 2; } } template foo10083b(T) { int foo10083b(T) { return 1; } int foo10083b(T, T) { return 2; } } template foo10083c1(T) { int foo10083c1(T) { return 1; } static if (true) { int x; } } template foo10083c2(T) { int foo10083c2(T) { return 1; } static if (true) { int x; } else { int y; } } // [d-f] IFTI cannot find syntactic eponymous member template foo10083d1(T) { static if (true) { int foo10083d1(T) { return 1; } } else { } } template foo10083d2(T) { static if (true) { } else { int foo10083d2(T) { return 1; } } } template foo10083e(T) { static if (true) { int foo10083e(double arg) { return 1; } } int foo10083e(T arg) { return 2; } } template foo10083f(T) { static if (true) { int foo10083f(T) { return 1; } } else { int foo10083f(T) { return 2; } } } void test10083() { assert(foo10083a(1) == 2); assert(foo10083a!int(1) == 2); assert(foo10083a!int(1.0) == 1); static assert(!__traits(compiles, foo10083a!double(1))); static assert(!__traits(compiles, foo10083a!double(1.0))); static assert(!__traits(compiles, foo10083a!real(1))); assert(foo10083a!real(1.0) == 1); assert(foo10083a!real(1.0L) == 2); assert(foo10083b(2) == 1); assert(foo10083b(3, 4) == 2); static assert(!__traits(compiles, foo10083b(2, ""))); assert(foo10083c1(1) == 1); assert(foo10083c2(1) == 1); static assert(!__traits(compiles, foo10083d1(2))); static assert(!__traits(compiles, foo10083d2(2))); static assert(!__traits(compiles, foo10083e(3))); static assert(!__traits(compiles, foo10083f(3))); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=10134 template ReturnType10134(alias func) { static if (is(typeof(func) R == return)) alias R ReturnType10134; else static assert(0); } struct Result10134(T) {} template getResultType10134(alias func) { static if(is(ReturnType10134!(func.exec) _ == Result10134!(T), T)) { alias getResultType10134 = T; } } template f10134(alias func) { Result10134!(getResultType10134!(func)) exec(int i) { return typeof(return)(); } } template a10134() { Result10134!(double) exec(int i) { return b10134!().exec(i); } } template b10134() { Result10134!(double) exec(int i) { return f10134!(a10134!()).exec(i); } } pragma(msg, getResultType10134!(a10134!())); /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=10313 void test10313() { struct Nullable(T) { this()(inout T value) inout {} } struct S { S[] array; } S s; auto ns = Nullable!S(s); class C { C[] array; } C c; auto nc = Nullable!C(c); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=10498 template triggerIssue10498a() { enum triggerIssue10498a = __traits(compiles, { T10498a; }); } template PackedGenericTuple10498a(Args...) { alias Args Tuple; enum e = triggerIssue10498a!(); } struct S10498a { } template T10498a() { alias PackedGenericTuple10498a!S10498a T10498a; } void test10498a() { alias T10498a!() t; static assert(is(t.Tuple[0])); // Fails -> OK } // -------- template triggerIssue10498b(A...) { enum triggerIssue10498b = __traits(compiles, { auto a = A[0]; }); } template PackedGenericTuple10498b(Args...) { alias Args Tuple; enum e = triggerIssue10498b!Args; } template T10498b() { struct S {} // The fact `S` is in `T` causes the problem alias PackedGenericTuple10498b!S T10498b; } void test10498b() { alias T10498b!() t; static assert(is(t.Tuple[0])); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=10537 struct Iota10537 { int s,e,i; mixin Yield10537!q{ ; }; } auto skipStrings10537(T)(T source) { return ""; } mixin template Yield10537(dstring code) { alias X = typeof({ enum x = rewriteCode10537(code); }()); } dstring rewriteCode10537(dstring code) { skipStrings10537(code); // IFTI causes forward reference return ""; } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=10558 template Template10558() {} struct Struct10558(alias T){} alias bar10558 = foo10558!(Template10558!()); template foo10558(alias T) { alias foobar = Struct10558!T; void fun() { alias a = foo10558!T; } } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=10592 void test10592() { struct A(E) { int put()(const(E)[] data) { return 1; } int put()(const(dchar)[] data) if (!is(E == dchar)) { return 2; } int put(C)(const(C)[] data) if (!is(C == dchar) && !is(E == C)) { return 3; } } A!char x; assert(x.put("abcde"c) == 1); // OK: hit 1 assert(x.put("abcde"w) == 3); // NG: this should hit 3 assert(x.put("abcde"d) == 2); // OK: hit 2 } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=11242 inout(T[]) fromString11242(T)(inout(char[]) s, T[] dst) { return s; } void test11242() { char[] a; fromString11242(a, a); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=10811 void foo10811a(R1, R2)(R1, R2) {} template foo10811a(alias pred) { void foo10811a(R1, R2)(R1, R2) {} } template foo10811b(alias pred) { void foo10811b(R1, R2)(R1, R2) {} } void foo10811b(R1, R2)(R1, R2) {} void test10811() { foo10811a(1, 2); foo10811a!(a => a)(1, 2); foo10811b(1, 2); foo10811b!(a => a)(1, 2); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=10969 template A10969(T, U...) { alias A10969 = T; } void foo10969(T, U...)(A10969!(T, U) a) {} template B10969(T, U) { alias B10969 = T; } void bar10969(T, U...)(B10969!(T, U[0]) a) {} void test10969() { foo10969!(int, float)(3); bar10969!(int, float)(3); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=11271 struct SmartPtr11271(T) { ~this() {} void opAssign(U)(auto ref U rh) {} } void test11271() { SmartPtr11271!Object a; a = SmartPtr11271!Object(); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=11533 version (none) { struct S11533 { void put(alias fun)() { fun!int(); } } void test11533a() { static void foo(T)() {} S11533 s; s.put!foo(); } void test11533b() { static void bar(alias fun)() { fun(); } void nested() {} bar!nested(); } void test11533c() { static struct Foo(alias fun) { auto call() { return fun(); } } int var = 1; auto getVar() { return var; } Foo!getVar foo; assert(foo.call() == var); var += 1; assert(foo.call() == var); } void test11533() { test11533a(); test11533b(); test11533c(); } } else { void test11533() { } } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=11553 struct Pack11553(T ...) { alias Unpack = T; enum length = T.length; } template isPack11553(TList ...) { static if (TList.length == 1 && is(Pack11553!(TList[0].Unpack) == TList[0])) { enum isPack11553 = true; } else { enum isPack11553 = false; } } template PartialApply11553(alias T, uint argLoc, Arg ...) if (Arg.length == 1) { template PartialApply11553(L ...) { alias PartialApply11553 = T!(L[0 .. argLoc], Arg, L[argLoc .. $]); } } template _hasLength11553(size_t len, T) { static if (T.length == len) { enum _hasLength11553 = true; } else { enum _hasLength11553 = false; } } alias _hasLength11553(size_t len) = PartialApply11553!(._hasLength11553, 0, len); alias hl11553 = _hasLength11553!1; // this segfaults static if (!isPack11553!hl11553) { pragma(msg, "All good 1"); } // these are fine static if ( hl11553!(Pack11553!(5))) { pragma(msg, "All good 2"); } static if (!hl11553!(Pack11553!( ))) { pragma(msg, "All good 3"); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=11818 enum E11818 { e0, e1 } struct SortedRange11818 { void fun(E11818 e = true ? E11818.e0 : E11818.e1)() { } } void test11818() { SortedRange11818 s; s.fun(); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=11843 void test11843() { struct Foo { int[string] x; } struct Bar(alias foo) {} enum bar1 = Bar!(Foo(["a": 1]))(); enum bar2 = Bar!(Foo(["a": 1]))(); static assert(is(typeof(bar1) == typeof(bar2))); enum foo1 = Foo(["a": 1]); enum foo2 = Foo(["b": -1]); static assert(!__traits(isSame, foo1, foo2)); enum bar3 = Bar!foo1(); enum bar4 = Bar!foo2(); static assert(!is(typeof(bar3) == typeof(bar4))); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=11872 class Foo11872 { auto test(int v)() {} auto test(int v)(string) {} template Bar(T) { void test(T) {} } } void test11872() { auto foo = new Foo11872(); with (foo) { // ScopeExp(ti) -> DotTemplateInstanceExp(wthis, ti) foo.test!2(); // works test!2(); // works <- fails test!2; // works <- fails // ScopeExp(ti) -> DotTemplateInstanceExp(wthis, ti) -> DotExp(wthis, ScopeExp) foo.Bar!int.test(1); // works Bar!int.test(1); // works <- fails } } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12042 struct S12042 { int[] t; void m()() { t = null; // CTFE error -> OK } } int test12042() { S12042 s; with (s) m!()(); return 1; } static assert(test12042()); /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12077 struct S12077(A) {} alias T12077(alias T : Base!Args, alias Base, Args...) = Base; static assert(__traits(isSame, T12077!(S12077!int), S12077)); alias U12077(alias T : Base!Args, alias Base, Args...) = Base; alias U12077( T : Base!Args, alias Base, Args...) = Base; static assert(__traits(isSame, U12077!(S12077!int), S12077)); /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12262 template Inst12262(T) { int x; } enum fqnSym12262(alias a) = 1; enum fqnSym12262(alias a : B!A, alias B, A...) = 2; static assert(fqnSym12262!(Inst12262!(Object)) == 2); static assert(fqnSym12262!(Inst12262!(Object).x) == 1); /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12264 struct S12264(A) {} template AX12264(alias A1) { enum AX12264 = 1; } template AX12264(alias A2 : B!A, alias B, A...) { enum AX12264 = 2; } template AY12264(alias A1) { enum AY12264 = 1; } template AY12264(alias A2 : B!int, alias B) { enum AY12264 = 2; } template AZ12264(alias A1) { enum AZ12264 = 1; } template AZ12264(alias A2 : S12264!T, T) { enum AZ12264 = 2; } static assert(AX12264!(S12264!int) == 2); static assert(AY12264!(S12264!int) == 2); static assert(AZ12264!(S12264!int) == 2); template TX12264(T1) { enum TX12264 = 1; } template TX12264(T2 : B!A, alias B, A...) { enum TX12264 = 2; } template TY12264(T1) { enum TY12264 = 1; } template TY12264(T2 : B!int, alias B) { enum TY12264 = 2; } template TZ12264(T1) { enum TZ12264 = 1; } template TZ12264(T2 : S12264!T, T) { enum TZ12264 = 2; } static assert(TX12264!(S12264!int) == 2); static assert(TY12264!(S12264!int) == 2); static assert(TZ12264!(S12264!int) == 2); /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12122 enum N12122 = 1; void foo12122(T)(T[N12122]) if(is(T == int)) {} void test12122() { int[N12122] data; foo12122(data); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12186 template map_front12186(fun...) { auto map_front12186(Range)(Range r) { return fun[0](r[0]); } } void test12186() { immutable int[][] mat; mat.map_front12186!((in r) => 0); // OK mat.map_front12186!((const r) => 0); // OK mat.map_front12186!((immutable int[] r) => 0); // OK mat.map_front12186!((immutable r) => 0); // OK <- Error } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12207 void test12207() { static struct S { static void f(T)(T) {} } immutable S s; s.f(1); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12263 template A12263(alias a) { int x; } template B12263(alias a) { int x; } template fqnSym12263(alias T : B12263!A, alias B12263, A...) { enum fqnSym12263 = true; } static assert(fqnSym12263!(A12263!(Object))); static assert(fqnSym12263!(B12263!(Object))); /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12290 void test12290() { short[] arrS; float[] arrF; double[] arrD; real[] arrR; string cstr; wstring wstr; dstring dstr; short[short] aa; auto func1a(E)(E[], E) { return E.init; } auto func1b(E)(E, E[]) { return E.init; } static assert(is(typeof(func1a(arrS, 1)) == short)); static assert(is(typeof(func1b(1, arrS)) == short)); static assert(is(typeof(func1a(arrF, 1.0)) == float)); static assert(is(typeof(func1b(1.0, arrF)) == float)); static assert(is(typeof(func1a(arrD, 1.0L)) == double)); static assert(is(typeof(func1b(1.0L, arrD)) == double)); static assert(is(typeof(func1a(arrR, 1)) == real)); static assert(is(typeof(func1b(1, arrR)) == real)); static assert(is(typeof(func1a("str" , 'a')) == immutable char)); static assert(is(typeof(func1b('a', "str" )) == immutable char)); static assert(is(typeof(func1a("str"c, 'a')) == immutable char)); static assert(is(typeof(func1b('a', "str"c)) == immutable char)); static assert(is(typeof(func1a("str"w, 'a')) == immutable wchar)); static assert(is(typeof(func1b('a', "str"w)) == immutable wchar)); static assert(is(typeof(func1a("str"d, 'a')) == immutable dchar)); static assert(is(typeof(func1b('a', "str"d)) == immutable dchar)); static assert(is(typeof(func1a([1,2,3], 1L)) == long)); static assert(is(typeof(func1b(1L, [1,2,3])) == long)); static assert(is(typeof(func1a([1,2,3], 1.5)) == double)); static assert(is(typeof(func1b(1.5, [1,2,3])) == double)); static assert(is(typeof(func1a(["a","b"], "s"c)) == string)); static assert(is(typeof(func1b("s"c, ["a","b"])) == string)); static assert(is(typeof(func1a(["a","b"], "s"w)) == wstring)); static assert(is(typeof(func1b("s"w, ["a","b"])) == wstring)); static assert(is(typeof(func1a(["a","b"], "s"d)) == dstring)); static assert(is(typeof(func1b("s"d, ["a","b"])) == dstring)); auto func2a(K, V)(V[K], K, V) { return V[K].init; } auto func2b(K, V)(V, K, V[K]) { return V[K].init; } static assert(is(typeof(func2a(aa, 1, 1)) == short[short])); static assert(is(typeof(func2b(1, 1, aa)) == short[short])); static assert(is(typeof(func2a([1:10,2:20,3:30], 1L, 10L)) == long[long])); static assert(is(typeof(func2b(1L, 10L, [1:20,2:20,3:30])) == long[long])); auto func3a(T)(T, T) { return T.init; } auto func3b(T)(T, T) { return T.init; } static assert(is(typeof(func3a(arrS, null)) == short[])); static assert(is(typeof(func3b(null, arrS)) == short[])); static assert(is(typeof(func3a(arrR, null)) == real[])); static assert(is(typeof(func3b(null, arrR)) == real[])); static assert(is(typeof(func3a(cstr, "str")) == string)); static assert(is(typeof(func3b("str", cstr)) == string)); static assert(is(typeof(func3a(wstr, "str")) == wstring)); static assert(is(typeof(func3b("str", wstr)) == wstring)); static assert(is(typeof(func3a(dstr, "str")) == dstring)); static assert(is(typeof(func3b("str", dstr)) == dstring)); static assert(is(typeof(func3a("str1" , "str2"c)) == string)); static assert(is(typeof(func3b("str1"c, "str2" )) == string)); static assert(is(typeof(func3a("str1" , "str2"w)) == wstring)); static assert(is(typeof(func3b("str1"w, "str2" )) == wstring)); static assert(is(typeof(func3a("str1" , "str2"d)) == dstring)); static assert(is(typeof(func3b("str1"d, "str2" )) == dstring)); inout(V) get(K, V)(inout(V[K]) aa, K key, lazy V defaultValue) { return V.init; } short[short] hash12220; short res12220 = get(hash12220, 1, 1); short[short] hash12221; enum Key12221 : short { a } get(hash12221, Key12221.a, Key12221.a); int[][string] mapping13026; int[] v = get(mapping13026, "test", []); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12292 void test12292() { void fun(T : string)(T data) {} ubyte[3] sa; static assert(!__traits(compiles, fun(sa))); static assert(!__traits(compiles, { alias f = fun!(ubyte[3]); })); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12376 static auto encode12376(size_t sz)(dchar ch) if (sz > 1) { undefined; } void test12376() { enum x = __traits(compiles, encode12376!2(x)); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12447 enum test12447(string str) = str; // [1] string test12447(T...)(T args) if (T.length) { return args[0]; } // [2] // With [1]: The template parameter str cannot be be deduced -> no match // With [2]: T is deduced to a type tuple (string), then match to the function call. static assert(test12447("foo") == "foo"); // With [1]: template parameter str is deduced to "bar", then match. // With [2]: T is deduced to an expression tuple ("bar"), but it will make invalid the function signature (T args). // The failure should be masked silently and prefer the 1st version. static assert(test12447!("bar") == "bar"); /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12651 alias TemplateArgsOf12651(alias T : Base!Args, alias Base, Args...) = Args; struct S12651(T) { } static assert(!__traits(compiles, TemplateArgsOf12651!(S12651!int, S, float))); /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12719 struct A12719 { B12719!int b(); } struct B12719(T) { A12719 a; void m() { auto v = B12719!T.init; } } // -------- enum canDoIt12719(R) = is(typeof(W12719!R)); struct W12719(R) { R r; static if (canDoIt12719!R) {} } W12719!int a12719; /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12746 template foo12746() { void bar() { static assert(!__traits(compiles, bar(1))); } alias foo12746 = bar; } void foo12746(int) { assert(0); } void test12746() { foo12746(); // instantiate } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12748 void foo12748(S, C : typeof(S.init[0]))(S s, C c) { } void test12748() { foo12748("abc", 'd'); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=9708 struct S9708 { void f()(inout(Object)) inout {} } void test9708() { S9708 s; s.f(new Object); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=12880 void f12880(T)(in T value) { static assert(is(T == string)); } void test12880() { f12880(string.init); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13087 struct Vec13087 { int x; void m() { auto n = component13087!(this, 'x'); } void c() const { auto n = component13087!(this, 'x'); } void w() inout { auto n = component13087!(this, 'x'); } void wc() inout const { auto n = component13087!(this, 'x'); } void s() shared { auto n = component13087!(this, 'x'); } void sc() shared const { auto n = component13087!(this, 'x'); } void sw() shared inout { auto n = component13087!(this, 'x'); } void swc() shared inout const { auto n = component13087!(this, 'x'); } void i() immutable { auto n = component13087!(this, 'x'); } } template component13087(alias vec, char c) { alias component13087 = vec.x; } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13127 /+void test13127(inout int = 0) { int [] ma1; const(int)[] ca1; const(int[]) ca2; inout( int)[] wma1; inout( int[]) wma2; inout(const int)[] wca1; inout(const int[]) wca2; immutable(int)[] ia1; immutable(int[]) ia2; shared( int)[] sma1; shared( int[]) sma2; shared( const int)[] sca1; shared( const int[]) sca2; shared(inout int)[] swma1; shared(inout int[]) swma2; shared(inout const int)[] swca1; shared(inout const int[]) swca2; /* In all cases, U should be deduced to top-unqualified type. */ /* Parameter is (shared) mutable */ U f_m(U)( U) { return null; } U fsm(U)(shared U) { return null; } // 9 * 2 - 1 static assert(is(typeof(f_m( ma1)) == int [])); static assert(is(typeof(f_m( ca1)) == const(int)[])); static assert(is(typeof(f_m( ca2)) == const(int)[])); static assert(is(typeof(f_m( wma1)) == inout( int)[])); static assert(is(typeof(f_m( wma2)) == inout( int)[])); static assert(is(typeof(f_m( wca1)) == inout(const int)[])); static assert(is(typeof(f_m( wca2)) == inout(const int)[])); static assert(is(typeof(f_m( ia1)) == immutable(int)[])); static assert(is(typeof(f_m( ia2)) == immutable(int)[])); static assert(is(typeof(f_m( sma1)) == shared( int)[])); static assert(is(typeof(f_m( sma2)) == shared( int)[])); // <- shared(int[]) static assert(is(typeof(f_m( sca1)) == shared( const int)[])); static assert(is(typeof(f_m( sca2)) == shared( const int)[])); // <- shared(const(int)[]) static assert(is(typeof(f_m(swma1)) == shared(inout int)[])); static assert(is(typeof(f_m(swma2)) == shared(inout int)[])); // <- shared(inout(int[])) static assert(is(typeof(f_m(swca1)) == shared(inout const int)[])); static assert(is(typeof(f_m(swca2)) == shared(inout const int)[])); // <- shared(inout(const(int))[]) // 9 * 2 - 1 static assert(is(typeof(fsm( ma1))) == false); static assert(is(typeof(fsm( ca1))) == false); static assert(is(typeof(fsm( ca2))) == false); static assert(is(typeof(fsm( wma1))) == false); static assert(is(typeof(fsm( wma2))) == false); static assert(is(typeof(fsm( wca1))) == false); static assert(is(typeof(fsm( wca2))) == false); static assert(is(typeof(fsm( ia1))) == false); static assert(is(typeof(fsm( ia2))) == false); static assert(is(typeof(fsm( sma1)) == shared( int)[])); // <- NG static assert(is(typeof(fsm( sma2)) == shared( int)[])); static assert(is(typeof(fsm( sca1)) == shared( const int)[])); // <- NG static assert(is(typeof(fsm( sca2)) == shared( const int)[])); static assert(is(typeof(fsm(swma1)) == shared(inout int)[])); // <- NG static assert(is(typeof(fsm(swma2)) == shared(inout int)[])); static assert(is(typeof(fsm(swca1)) == shared(inout const int)[])); // <- NG static assert(is(typeof(fsm(swca2)) == shared(inout const int)[])); /* Parameter is (shared) const */ U f_c(U)( const U) { return null; } U fsc(U)(shared const U) { return null; } // 9 * 2 - 1 static assert(is(typeof(f_c( ma1)) == int [])); static assert(is(typeof(f_c( ca1)) == const(int)[])); static assert(is(typeof(f_c( ca2)) == const(int)[])); static assert(is(typeof(f_c( wma1)) == inout( int)[])); static assert(is(typeof(f_c( wma2)) == inout( int)[])); static assert(is(typeof(f_c( wca1)) == inout(const int)[])); static assert(is(typeof(f_c( wca2)) == inout(const int)[])); static assert(is(typeof(f_c( ia1)) == immutable(int)[])); static assert(is(typeof(f_c( ia2)) == immutable(int)[])); static assert(is(typeof(f_c( sma1)) == shared( int)[])); static assert(is(typeof(f_c( sma2)) == shared( int)[])); // <- shared(int[]) static assert(is(typeof(f_c( sca1)) == shared( const int)[])); static assert(is(typeof(f_c( sca2)) == shared( const int)[])); // <- shared(const(int)[]) static assert(is(typeof(f_c(swma1)) == shared(inout int)[])); static assert(is(typeof(f_c(swma2)) == shared(inout int)[])); // shared(inout(int)[]) static assert(is(typeof(f_c(swca1)) == shared(inout const int)[])); static assert(is(typeof(f_c(swca2)) == shared(inout const int)[])); // shared(inout(const(int))[]) // 9 * 2 - 1 static assert(is(typeof(fsc( ma1))) == false); static assert(is(typeof(fsc( ca1))) == false); static assert(is(typeof(fsc( ca2))) == false); static assert(is(typeof(fsc( wma1))) == false); static assert(is(typeof(fsc( wma2))) == false); static assert(is(typeof(fsc( wca1))) == false); static assert(is(typeof(fsc( wca2))) == false); static assert(is(typeof(fsc( ia1)) == immutable(int)[])); // <- NG static assert(is(typeof(fsc( ia2)) == immutable(int)[])); // <- NG static assert(is(typeof(fsc( sma1)) == shared( int)[])); // <- NG static assert(is(typeof(fsc( sma2)) == shared( int)[])); static assert(is(typeof(fsc( sca1)) == shared( const int)[])); // <- NG static assert(is(typeof(fsc( sca2)) == shared( const int)[])); static assert(is(typeof(fsc(swma1)) == shared(inout int)[])); // <- NG static assert(is(typeof(fsc(swma2)) == shared(inout int)[])); static assert(is(typeof(fsc(swca1)) == shared(inout const int)[])); // <- NG static assert(is(typeof(fsc(swca2)) == shared(inout const int)[])); /* Parameter is immutable */ U fi(U)(immutable U) { return null; } // 9 * 2 - 1 static assert(is(typeof(fi( ma1))) == false); static assert(is(typeof(fi( ca1))) == false); static assert(is(typeof(fi( ca2))) == false); static assert(is(typeof(fi( wma1))) == false); static assert(is(typeof(fi( wma2))) == false); static assert(is(typeof(fi( wca1))) == false); static assert(is(typeof(fi( wca2))) == false); static assert(is(typeof(fi( ia1)) == immutable(int)[])); // <- NG static assert(is(typeof(fi( ia2)) == immutable(int)[])); // <- NG static assert(is(typeof(fi( sma1))) == false); static assert(is(typeof(fi( sma2))) == false); static assert(is(typeof(fi( sca1))) == false); static assert(is(typeof(fi( sca2))) == false); static assert(is(typeof(fi(swma1))) == false); static assert(is(typeof(fi(swma2))) == false); static assert(is(typeof(fi(swca1))) == false); static assert(is(typeof(fi(swca2))) == false); /* Parameter is (shared) inout */ U f_w(U)( inout U) { return null; } U fsw(U)(shared inout U) { return null; } // 9 * 2 - 1 static assert(is(typeof(f_w( ma1)) == int [])); static assert(is(typeof(f_w( ca1)) == int [])); // <- const(int)[] static assert(is(typeof(f_w( ca2)) == int [])); // <- const(int)[] static assert(is(typeof(f_w( wma1)) == int [])); // <- inout(int)[] static assert(is(typeof(f_w( wma2)) == int [])); // <- inout(int)[] static assert(is(typeof(f_w( wca1)) == const(int)[])); // <- inout(const(int))[] static assert(is(typeof(f_w( wca2)) == const(int)[])); // <- inout(const(int))[] static assert(is(typeof(f_w( ia1)) == int [])); // <- immutable(int)[] static assert(is(typeof(f_w( ia2)) == int [])); // <- immutable(int)[] static assert(is(typeof(f_w( sma1)) == shared( int)[])); static assert(is(typeof(f_w( sma2)) == shared( int)[])); // <- shared(int[]) static assert(is(typeof(f_w( sca1)) == shared( int)[])); // <- shared(const(int))[] static assert(is(typeof(f_w( sca2)) == shared( int)[])); // <- shared(const(int)[]) static assert(is(typeof(f_w(swma1)) == shared( int)[])); // <- shared(inout(int))[] static assert(is(typeof(f_w(swma2)) == shared( int)[])); // <- shared(inout(int)[]) static assert(is(typeof(f_w(swca1)) == shared(const int)[])); // <- shared(inout(const(int)))[] static assert(is(typeof(f_w(swca2)) == shared(const int)[])); // <- shared(inout(const(int))[]) // 9 * 2 - 1 static assert(is(typeof(fsw( ma1))) == false); static assert(is(typeof(fsw( ca1))) == false); static assert(is(typeof(fsw( ca2))) == false); static assert(is(typeof(fsw( wma1))) == false); static assert(is(typeof(fsw( wma2))) == false); static assert(is(typeof(fsw( wca1))) == false); static assert(is(typeof(fsw( wca2))) == false); static assert(is(typeof(fsw( ia1)) == int [])); // <- NG static assert(is(typeof(fsw( ia2)) == int [])); // <- NG static assert(is(typeof(fsw( sma1)) == int [])); // <- NG static assert(is(typeof(fsw( sma2)) == int [])); static assert(is(typeof(fsw( sca1)) == int [])); // <- NG static assert(is(typeof(fsw( sca2)) == int [])); // const(int)[] static assert(is(typeof(fsw(swma1)) == int [])); // <- NG static assert(is(typeof(fsw(swma2)) == int [])); // inout(int)[] static assert(is(typeof(fsw(swca1)) == const(int)[])); // <- NG static assert(is(typeof(fsw(swca2)) == const(int)[])); // <- inout(const(int))[] /* Parameter is (shared) inout const */ U f_wc(U)( inout const U) { return null; } U fswc(U)(shared inout const U) { return null; } // 9 * 2 - 1 static assert(is(typeof(f_wc( ma1)) == int [])); static assert(is(typeof(f_wc( ca1)) == int [])); // <- const(int)[] static assert(is(typeof(f_wc( ca2)) == int [])); // <- const(int)[] static assert(is(typeof(f_wc( wma1)) == int [])); // <- inout(int)[] static assert(is(typeof(f_wc( wma2)) == int [])); // <- inout(int)[] static assert(is(typeof(f_wc( wca1)) == int [])); // <- inout(const(int))[] static assert(is(typeof(f_wc( wca2)) == int [])); // <- inout(const(int))[] static assert(is(typeof(f_wc( ia1)) == int [])); // <- immutable(int)[] static assert(is(typeof(f_wc( ia2)) == int [])); // <- immutable(int)[] static assert(is(typeof(f_wc( sma1)) == shared(int)[])); static assert(is(typeof(f_wc( sma2)) == shared(int)[])); // <- shared(int[]) static assert(is(typeof(f_wc( sca1)) == shared(int)[])); // <- shared(const(int))[] static assert(is(typeof(f_wc( sca2)) == shared(int)[])); // <- shared(const(int)[]) static assert(is(typeof(f_wc(swma1)) == shared(int)[])); // <- shared(inout(int))[] static assert(is(typeof(f_wc(swma2)) == shared(int)[])); // <- shared(inout(int)[]) static assert(is(typeof(f_wc(swca1)) == shared(int)[])); // <- shared(inout(const(int)))[] static assert(is(typeof(f_wc(swca2)) == shared(int)[])); // <- shared(inout(const(int))[]) // 9 * 2 - 1 static assert(is(typeof(fswc( ma1))) == false); static assert(is(typeof(fswc( ca1))) == false); static assert(is(typeof(fswc( ca2))) == false); static assert(is(typeof(fswc( wma1))) == false); static assert(is(typeof(fswc( wma2))) == false); static assert(is(typeof(fswc( wca1))) == false); static assert(is(typeof(fswc( wca2))) == false); static assert(is(typeof(fswc( ia1)) == int [])); // <- NG static assert(is(typeof(fswc( ia2)) == int [])); // <- NG static assert(is(typeof(fswc( sma1)) == int [])); // <- NG static assert(is(typeof(fswc( sma2)) == int [])); static assert(is(typeof(fswc( sca1)) == int [])); // <- NG static assert(is(typeof(fswc( sca2)) == int [])); // <- const(int)[] static assert(is(typeof(fswc(swma1)) == int [])); // <- NG static assert(is(typeof(fswc(swma2)) == int [])); // <- inout(int)[] static assert(is(typeof(fswc(swca1)) == int [])); // <- NG static assert(is(typeof(fswc(swca2)) == int [])); // <- inout(const(int))[] }+/ void test13127a() { void foo(T)(in T[] src, T[] dst) { static assert(is(T == int[])); } int[][] a; foo(a, a); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13159 template maxSize13159(T...) { static if (T.length == 1) { enum size_t maxSize13159 = T[0].sizeof; } else { enum size_t maxSize13159 = T[0].sizeof >= maxSize13159!(T[1 .. $]) ? T[0].sizeof : maxSize13159!(T[1 .. $]); } } struct Node13159 { struct Pair { Node13159 value; } //alias Algebraic!(Node[], int) Value; enum n = maxSize13159!(Node13159[], int); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13180 void test13180() { inout(V) get1a(K, V)(inout(V[K]) aa, lazy inout(V) defaultValue) { static assert(is(V == string)); static assert(is(K == string)); return defaultValue; } inout(V) get1b(K, V)(lazy inout(V) defaultValue, inout(V[K]) aa) { static assert(is(V == string)); static assert(is(K == string)); return defaultValue; } inout(V) get2a(K, V)(inout(V)[K] aa, lazy inout(V) defaultValue) { static assert(is(V == string)); static assert(is(K == string)); return defaultValue; } inout(V) get2b(K, V)(lazy inout(V) defaultValue, inout(V)[K] aa) { static assert(is(V == string)); static assert(is(K == string)); return defaultValue; } string def; string[string] aa; string s1a = get1a(aa, def); string s1b = get1b(def, aa); string s2a = get2a(aa, def); string s2b = get2b(def, aa); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13204 struct A13204(uint v) { alias whatever = A13204y; static assert(is(whatever == A13204)); } alias A13204x = A13204!1; alias A13204y = A13204x; struct B13204(uint v) { alias whatever = B13204z; static assert(is(whatever == B13204)); } alias B13204x = B13204!1; alias B13204y = B13204x; alias B13204z = B13204y; void test13204() { static assert(is(A13204x == A13204!1)); static assert(is(A13204x == A13204!1.whatever)); static assert(is(A13204x == A13204y)); static assert(is(B13204x == B13204!1)); static assert(is(B13204x == B13204!1.whatever)); static assert(is(B13204x == B13204y)); static assert(is(B13204x == B13204z)); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=8462 (dup of 13204) alias FP8462 = void function(C8462.Type arg); class C8462 { enum Type { Foo } alias funcPtrPtr = FP8462*; } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13218 template isCallable13218(T...) if (T.length == 1) { static assert(0); } template ParameterTypeTuple13218(func...) if (func.length == 1 && isCallable13218!func) { static assert(0); } struct R13218 { private static string mangleFuncPtr(ArgTypes...)() { string result = "fnp_"; foreach (T; ArgTypes) result ~= T.mangleof; return result; } void function(int) fnp_i; double delegate(double) fnp_d; void opAssign(FnT)(FnT func) { mixin(mangleFuncPtr!( ParameterTypeTuple13218!FnT) ~ " = func;"); // parsed as TypeInstance //mixin(mangleFuncPtr!(.ParameterTypeTuple13218!FnT) ~ " = func;"); // parsed as DotTemplateInstanceExp -> works } } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13219 struct Map13219(V) {} void test13219a(alias F, VA, VB)(Map13219!VA a, Map13219!VB b) if (is(VA : typeof(F(VA.init, VB.init)))) {} void test13219b(alias F)() { test13219a!((a, b) => b)(Map13219!int.init, Map13219!int.init); } void test13219() { int x; test13219b!x(); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13223 void test13223() { T[] f1(T)(T[] a1, T[] a2) { static assert(is(T == int)); return a1 ~ a2; } T[] f2(T)(T[] a1, T[] a2) { static assert(is(T == int)); return a1 ~ a2; } int[] a = [1, 2]; static assert(is(typeof(f1(a, [])) == int[])); static assert(is(typeof(f2([], a)) == int[])); static assert(is(typeof(f1(a, null)) == int[])); static assert(is(typeof(f2(null, a)) == int[])); T[] f3(T)(T[] a) { return a; } static assert(is(typeof(f3([])) == void[])); static assert(is(typeof(f3(null)) == void[])); T f4(T)(T a) { return a; } static assert(is(typeof(f4([])) == void[])); static assert(is(typeof(f4(null)) == typeof(null))); T[][] f5(T)(T[][] a) { return a; } static assert(is(typeof(f5([])) == void[][])); static assert(is(typeof(f5(null)) == void[][])); void translate(C = immutable char)(const(C)[] toRemove) { static assert(is(C == char)); } translate(null); } void test13223a() { T f(T)(T, T) { return T.init; } immutable i = 0; const c = 0; auto m = 0; shared s = 0; static assert(is(typeof(f(i, i)) == immutable int)); static assert(is(typeof(f(i, c)) == const int)); static assert(is(typeof(f(c, i)) == const int)); static assert(is(typeof(f(i, m)) == int)); static assert(is(typeof(f(m, i)) == int)); static assert(is(typeof(f(c, m)) == int)); static assert(is(typeof(f(m, c)) == int)); static assert(is(typeof(f(m, m)) == int)); static assert(is(typeof(f(i, s)) == shared int)); static assert(is(typeof(f(s, i)) == shared int)); static assert(is(typeof(f(c, s)) == shared int)); static assert(is(typeof(f(s, c)) == shared int)); static assert(is(typeof(f(s, s)) == shared int)); static assert(is(typeof(f(s, m)) == int)); static assert(is(typeof(f(m, s)) == int)); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13235 struct Tuple13235(T...) { T expand; alias expand field; this(T values) { field = values; } } struct Foo13235 { Tuple13235!(int, Foo13235)* foo; } template Inst13235(T...) { struct Tuple { T expand; alias expand field; this(T values) { field = values; } } alias Inst13235 = Tuple*; } struct Bar13235 { Inst13235!(int, Bar13235) bar; } void test13235() { alias Tup1 = Tuple13235!(int, Foo13235); assert(Tup1(1, Foo13235()).expand[0] == 1); alias Tup2 = typeof(*Inst13235!(int, Bar13235).init); assert(Tup2(1, Bar13235()).expand[0] == 1); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13252 alias TypeTuple13252(T...) = T; static assert(is(typeof(TypeTuple13252!(cast(int )1)[0]) == int )); static assert(is(typeof(TypeTuple13252!(cast(long)1)[0]) == long)); static assert(is(typeof(TypeTuple13252!(cast(float )3.14)[0]) == float )); static assert(is(typeof(TypeTuple13252!(cast(double)3.14)[0]) == double)); static assert(is(typeof(TypeTuple13252!(cast(string )null)[0]) == string )); static assert(is(typeof(TypeTuple13252!(cast(string[])null)[0]) == string[])); // OK <- NG static assert(is(typeof(TypeTuple13252!(cast(wstring)"abc")[0]) == wstring)); static assert(is(typeof(TypeTuple13252!(cast(dstring)"abc")[0]) == dstring)); static assert(is(typeof(TypeTuple13252!(cast(int[] )[])[0]) == int[] )); static assert(is(typeof(TypeTuple13252!(cast(long[])[])[0]) == long[])); // OK <- NG struct S13252 { } static assert(is(typeof(TypeTuple13252!(const S13252())[0]) == const(S13252))); static assert(is(typeof(TypeTuple13252!(immutable S13252())[0]) == immutable(S13252))); // OK <- NG /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13294 void test13294() { void f(T)(const ref T src, ref T dst) { pragma(msg, "T = ", T); static assert(!is(T == const)); } { const byte src; byte dst; f(src, dst); } { const char src; char dst; f(src, dst); } // https://issues.dlang.org/show_bug.cgi?id=13351 T add(T)(in T x, in T y) { T z; z = x + y; return z; } const double a = 1.0; const double b = 2.0; double c; c = add(a,b); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13299 struct Foo13299 { Foo13299 opDispatch(string name)(int a, int[] b...) if (name == "bar") { return Foo13299(); } Foo13299 opDispatch(string name)() if (name != "bar") { return Foo13299(); } } void test13299() { Foo13299() .bar(0) .bar(1) .bar(2); Foo13299() .opDispatch!"bar"(0) .opDispatch!"bar"(1) .opDispatch!"bar"(2); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13333 template AliasThisTypeOf13333(T) { static assert(0, T.stringof); // T.stringof is important } template StaticArrayTypeOf13333(T) { static if (is(AliasThisTypeOf13333!T AT)) alias X = StaticArrayTypeOf13333!AT; else alias X = T; static if (is(X : E[n], E, size_t n)) alias StaticArrayTypeOf13333 = X; else static assert(0, T.stringof~" is not a static array type"); } enum bool isStaticArray13333(T) = is(StaticArrayTypeOf13333!T); struct VaraiantN13333(T) { static if (isStaticArray13333!T) ~this() { static assert(0); } } struct DummyScope13333 { alias A = VaraiantN13333!C; static class C { A entity; } } void test13333() { struct DummyScope { alias A = VaraiantN13333!C; static class C { A entity; } } } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13374 int f13374(alias a)() { return 1; } int f13374(string s)() { return 2; } void x13374(int i) {} void test13374() { assert(f13374!x13374() == 1); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=14109 string f14109() { return "a"; } string g14109()() { return "a"; } struct S14109(string s) { static assert(s == "a"); } alias X14109 = S14109!(f14109); alias Y14109 = S14109!(g14109!()); static assert(is(X14109 == Y14109)); /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13378 struct Vec13378(size_t n, T, string as) { T[n] data; } void doSome13378(size_t n, T, string as)(Vec13378!(n,T,as) v) {} void test13378() { auto v = Vec13378!(3, float, "xyz")([1,2,3]); doSome13378(v); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13379 void test13379() { match13379(""); } auto match13379(RegEx )(RegEx re) if (is(RegEx == Regex13379!char)) // #1 Regex!char (speculative && tinst == NULL) {} auto match13379(String)(String re) {} struct Regex13379(Char) { ShiftOr13379!Char kickstart; // #2 ShiftOr!char (speculative && tinst == Regex!char) } struct ShiftOr13379(Char) { this(ref Regex13379!Char re) // #3 Regex!Char (speculative && tinst == ShiftOr!char) { uint n_length; uint idx; n_length = min13379(idx, n_length); } } template MinType13379(T...) { alias MinType13379 = T[0]; } MinType13379!T min13379(T...)(T args) // #4 MinType!uint (speculative && thist == ShiftOr!char) { alias a = args[0]; alias b = args[$-1]; return cast(typeof(return)) (a < b ? a : b); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13417 struct V13417(size_t N, E, alias string AS) { } auto f13417(E)(in V13417!(4, E, "ijka")) { return V13417!(3, E, "xyz")(); } void test13417() { f13417(V13417!(4, float, "ijka")()); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13484 int foo13484()(void delegate() hi) { return 1; } int foo13484(T)(void delegate(T) hi) { return 2; } void test13484() { assert(foo13484({}) == 1); // works assert(foo13484((float v){}) == 2); // works <- throws error } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13675 enum E13675; bool foo13675(T : E13675)() { return false; } void test13675() { if (foo13675!E13675) {} } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13694 auto foo13694(T)(string A, T[] G ...) { return 1; } auto foo13694(T)(string A, long E, T[] G ...) { return 2; } void test13694() { struct S {} S v; assert(foo13694("A", v) == 1); // <- OK assert(foo13694("A", 0, v) == 2); // <- used to be OK but now fails assert(foo13694!S("A", 0, v) == 2); // <- workaround solution } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13760 void test13760() { void func(K, V)(inout(V[K]) aa, inout(V) val) {} class C {} C[int] aa; func(aa, new C); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13714 struct JSONValue13714 { this(T)(T arg) { } this(T : JSONValue13714)(inout T arg) inout { //store = arg.store; } void opAssign(T)(T arg) { } } void test13714() { enum DummyStringEnum { foo = "bar" } JSONValue13714[string] aa; aa["A"] = DummyStringEnum.foo; } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=13807 T f13807(T)(inout(T)[] arr) { return T.init; } void test13807() { static assert(is(typeof(f13807([1, 2, 3])) == int)); // OK static assert(is(typeof(f13807(["a", "b"])) == string)); // OK <- Error static assert(is(typeof(f13807!string(["a", "b"])) == string)); // OK } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=14174 import imports.testmangle; struct Config14174(a, b) {} struct N14174 {} alias defConfig14174 = Config14174!(N14174, N14174); @safe @nogc pure nothrow void accepter14174a(Config : Config14174!(T) = defConfig14174, T...)() { static assert(equalDemangle(accepter14174a.mangleof, "_D7breaker131__T14"~ "accepter14174a"~ "HTS7breaker51__T11Config14174TS7breaker6N14174TS7breaker6N14174Z11Config14174TS7breaker6N14174TS7breaker6N14174Z14"~ "accepter14174a"~ "FNaNbNiNfZv")); } @safe @nogc pure nothrow void accepter14174b(Config : Config14174!(T) = defConfig14174, T...)() { static assert(equalDemangle(accepter14174b.mangleof, "_D7breaker131__T14"~ "accepter14174b"~ "HTS7breaker51__T11Config14174TS7breaker6N14174TS7breaker6N14174Z11Config14174TS7breaker6N14174TS7breaker6N14174Z14"~ "accepter14174b"~ "FNaNbNiNfZv")); } void test14174() { accepter14174a!()(); accepter14174b!()(); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=14836 template a14836x(alias B, C...) { int a14836x(D...)() if (D.length == 0) { return 1; } int a14836x(D...)(D d) if (D.length > 0) { return 2; } } template a14836y(alias B, C...) { int a14836y(T, D...)(T t) if (D.length == 0) { return 1; } int a14836y(T, D...)(T t, D d) if (D.length > 0) { return 2; } } void test14836() { int v; assert(a14836x!(v)() == 1); assert(a14836x!(v)(1) == 2); assert(a14836y!(v)(1) == 1); assert(a14836y!(v)(1, 2) == 2); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=14357 template Qux14357(T : U*, U : V*, V) { pragma(msg, T); // no match <- float** pragma(msg, U); // no match <- float* pragma(msg, V); // no match <- int enum Qux14357 = T.sizeof + V.sizeof; } static assert(!__traits(compiles, Qux14357!(float**, int*))); /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=14481 template someT14481(alias e) { alias someT14481 = e; } mixin template Mix14481(alias e) { alias SomeAlias = someT14481!e; } struct Hoge14481 { mixin Mix14481!e; enum e = 10; } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=14520 template M14520(alias a) { enum M14520 = 1; } template M14520(string s) { enum M14520 = 2; } int f14520a(); string f14520b() { assert(0); } string f14520c() { return "a"; } static assert(M14520!f14520a == 1); static assert(M14520!f14520b == 1); static assert(M14520!f14520c == 1); /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=14568 struct Interval14568() { auto left = INVALID; auto opAssign()(Interval14568) { left; } } auto interval14568(T)(T point) { Interval14568!(); } alias Instantiate14568(alias symbol, Args...) = symbol!Args; template Match14568(patterns...) { static if (__traits(compiles, Instantiate14568!(patterns[0]))) { alias Match14568 = patterns[0]; } else static if (patterns.length == 1) {} } template SubOps14568(Args...) { auto opIndex() { template IntervalType(T...) { alias Point() = typeof(T.interval14568); alias IntervalType = Match14568!(Point); } alias Subspace = IntervalType!(Args); } } struct Nat14568 { mixin SubOps14568!(null); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=14603 // https://issues.dlang.org/show_bug.cgi?id=14604 struct S14603 { template opDispatch(string name) { void opDispatch()() {} } } alias a14603 = S14603.opDispatch!"go"; // OK alias b14603 = S14603.go; // OK <- NG struct S14604 { template opDispatch(string name) { void opDispatch()() {} } } alias Id14604(alias thing) = thing; alias c14604 = Id14604!(S14604.opDispatch!"go"); // ok // https://issues.dlang.org/show_bug.cgi?id=14604 alias d14604 = Id14604!(S14604.go); // 'Error: template instance opDispatch!"go" cannot resolve forward reference' /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=14735 enum CS14735 { yes, no } int indexOf14735a(Range )(Range s, in dchar c) { return 1; } int indexOf14735a(T, size_t n)(ref T[n] s, in dchar c) { return 2; } int indexOf14735b(Range )(Range s, in dchar c, in CS14735 cs = CS14735.yes) { return 1; } int indexOf14735b(T, size_t n)(ref T[n] s, in dchar c, in CS14735 cs = CS14735.yes) { return 2; } void test14735() { char[64] buf; // Supported from 2.063: (https://dlang.org/changelog/2.063.html#implicitarraycast) assert(indexOf14735a(buf[0..32], '\0') == 2); assert(indexOf14735b(buf[0..32], '\0') == 2); // Have to work as same as above. assert(indexOf14735a(buf[], '\0') == 2); assert(indexOf14735b(buf[], '\0') == 2); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=14743 class A14743 { auto func1 = (A14743 a) { a.func2!int(); }; auto func2(T)() {} } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=14802 void test14802() { auto func(T)(T x, T y) { return x; } struct S1 { double x; alias x this; } struct S2 { double x; alias x this; } S1 s1; S2 s2; enum E1 : double { a = 1.0 } enum E2 : double { a = 1.0 } static assert(is(typeof( func(1 , 1 ) ) == int)); static assert(is(typeof( func(1u, 1u) ) == uint)); static assert(is(typeof( func(1u, 1 ) ) == uint)); static assert(is(typeof( func(1 , 1u) ) == uint)); static assert(is(typeof( func(1.0f, 1.0f) ) == float)); static assert(is(typeof( func(1.0 , 1.0 ) ) == double)); static assert(is(typeof( func(1.0 , 1.0f) ) == double)); static assert(is(typeof( func(1.0f, 1.0 ) ) == double)); static assert(is(typeof( func(s1, s1) ) == S1)); static assert(is(typeof( func(s2, s2) ) == S2)); static assert(is(typeof( func(s1, s2) ) == double)); static assert(is(typeof( func(s2, s1) ) == double)); static assert(is(typeof( func(E1.a, E1.a) ) == E1)); static assert(is(typeof( func(E2.a, E2.a) ) == E2)); static assert(is(typeof( func(E1.a, 1.0) ) == double)); static assert(is(typeof( func(E2.a, 1.0) ) == double)); static assert(is(typeof( func(1.0, E1.a) ) == double)); static assert(is(typeof( func(1.0, E2.a) ) == double)); static assert(is(typeof( func(E1.a, E2.a) ) == double)); static assert(is(typeof( func(E2.a, E1.a) ) == double)); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=14886 void test14886() { alias R = int[100_000]; auto front(T)(T[] a) {} front(R.init); auto bar1(T)(T, T[] a) { return T.init; } auto bar2(T)(T[] a, T) { return T.init; } static assert(is(typeof(bar1(1L, R.init)) == long)); static assert(is(typeof(bar2(R.init, 1L)) == long)); // <-- T should be deduced to int because R.init is rvalue...? ubyte x; static assert(is(typeof(bar1(x, R.init)) == int)); static assert(is(typeof(bar2(R.init, x)) == int)); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=15156 // https://issues.dlang.org/show_bug.cgi?id=15156 auto f15116a(T)(string s, string arg2) { return 1; } auto f15116b(T)(int i, string arg2) { return 2; } template bish15116(T) { alias bish15116 = f15116a!T; alias bish15116 = f15116b!T; } void test15116() { alias func = bish15116!string; assert(func("", "") == 1); assert(func(12, "") == 2); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=15152 void test15152() { void func(string M)() { } struct S { enum name = "a"; } enum s = S.init; func!(s.name); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=15352 struct S15352(T, T delegate(uint idx) supplier) { } auto make15352a(T, T delegate(uint idx) supplier)() { enum local = supplier; // OK S15352!(T, local) ret; return ret; } auto make15352b(T, T delegate(uint idx) supplier)() { S15352!(T, supplier) ret; // OK <- Error return ret; } void test15352() { enum dg = delegate(uint idx) => idx; auto s1 = S15352!(uint, dg)(); auto s2 = make15352a!(uint, dg)(); auto s3 = make15352b!(uint, dg)(); assert(is(typeof(s1) == typeof(s2))); assert(is(typeof(s1) == typeof(s3))); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=15623 struct WithFoo15623a { void foo() {} } struct WithFoo15623b { void foo() {} } struct WithFoo15623c { void foo() {} } struct WithFoo15623d { void foo() {} } struct WithoutFoo15623a {} struct WithoutFoo15623b {} struct WithoutFoo15623c {} struct WithoutFoo15623d {} struct CallsFoo15623(T) { T t; void bar() { t.foo(); } // error occurs during TemplateInstance.semantic3 } // Instantiations outside of function bodies static assert( is(CallsFoo15623!WithFoo15623a)); static assert(!is(CallsFoo15623!WithoutFoo15623a)); // OK <- NG static assert( __traits(compiles, CallsFoo15623!WithFoo15623b)); static assert(!__traits(compiles, CallsFoo15623!WithoutFoo15623b)); // OK <- NG // Instantiations inside function bodies (OK) static assert( is(typeof({ alias Baz = CallsFoo15623!WithFoo15623c; return Baz.init; }()))); static assert(!is(typeof({ alias Baz = CallsFoo15623!WithoutFoo15623c; return Baz.init; }()))); static assert( __traits(compiles, { alias Baz = CallsFoo15623!WithFoo15623d; return Baz.init; }())); static assert(!__traits(compiles, { alias Baz = CallsFoo15623!WithoutFoo15623d; return Baz.init; }())); /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=15781 void test15781() { static struct S { int value; } T foo(T)(T a, T b) { return T(); } const S cs; S ms; static assert(is(typeof(foo(ms, ms)) == S)); static assert(is(typeof(foo(ms, cs)) == const S)); static assert(is(typeof(foo(cs, ms)) == const S)); static assert(is(typeof(foo(cs, cs)) == const S)); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=16042 struct Foo16042 {} auto map16042(alias func, T)(T t) { return func(t); } auto toChars16042(R)(R r) if (is(R == int[])) { Foo16042 f; assert(toChars16042(f) == 1); // OK assert(map16042!(toChars16042)(f) == 1); // OK <- NG assert(map16042!((toChars16042))(f) == 1); // OK } auto toChars16042(Foo16042 f) { return 1; } void test16042() { [1].toChars16042(); } // --- auto fn16042(R)(R r) if (is(R == int[])) {} auto fn16042(Foo16042 f) { return 1; } struct Namespace16042 { alias fn = fn16042!(int[]); } void test16042b() { Foo16042 f; with (Namespace16042) { static assert(!__traits(compiles, fn(f))); // NG static assert(!__traits(compiles, map16042!(fn)(f))); // should be NG -> actually NG static assert(!__traits(compiles, map16042!((fn))(f))); // NG } } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=15243 struct S15243(Types...) { void apply1(U)(U delegate(Types[0]) f0) {} void apply2(U)(U delegate(Types) f0) {} void apply3(U)(U delegate(Types[1..$]) f0) {} } void test15243() { int f1(int) { return 0; } int f2(int, long) { return 0; } int f3(long, string) { return 0; } S15243!(int) s1; s1.apply1(&f1); s1.apply2(&f1); S15243!(int, long) s2; s2.apply2(&f2); S15243!(int, long, string) s3; s3.apply3(&f3); } /******************************************/ // https://issues.dlang.org/show_bug.cgi?id=15653 alias TypeTuple15653(T...) = T; void test15653() { void foo(U, T)(const T x) { static assert(is(T == U)); } void bar(U, T)(immutable T x) { static assert(is(T == U)); } struct X { int a; long[2] b; } struct Y { int* a; long[] b; } foreach (U; TypeTuple15653!( byte, short, int, long, ubyte, ushort, uint, ulong, float, double, real, void delegate(), int[2], X, X[2])) { foo!U(U.init); // OK bar!U(U.init); // Was error, now OK U u; foo!U(u); // OK bar!U(u); // Was error, now OK } foreach (U; TypeTuple15653!(void*, int**, long[], double*[2])) { foo!U(U.init); // OK bar!U(U.init); // Was error, now OK U u; foo!U(u); static assert(!__traits(compiles, bar!U(u)), U.stringof); } foreach (U; TypeTuple15653!(Object, Y, Y[2], int[int])) { foo!U(U.init); // OK static assert(!__traits(compiles, bar!U(U.init)), U.stringof); U u; foo!U(u); // OK static assert(!__traits(compiles, bar!U(u)), U.stringof); } } /******************************************/ int main() { test1(); test2(); test3(); test4(); test5(); test6(); test7(); test8(); test9(); test1780(); test3608(); test5893(); test6404(); test2246(); test2296(); bug4984(); test2579(); test2803(); test6613(); test5886(); test5393(); test5896(); test6825(); test6789(); test2778(); test2778aa(); test2778get(); test6208a(); test6208b(); test6208c(); test6738(); test6780(); test6810(); test6891(); test6994(); test6764(); test3467(); test4413(); test5525(); test5801(); test10(); test7037(); test7124(); test7359(); test7416(); test7563(); test7572(); test7580(); test7585(); test7671(); test7672(); test7684(); test11a(); test11b(); test7769(); test7873(); test7933(); test8094(); test12(); test8125(); test13(); test14(); test8129(); test8238(); test8669(); test8833(); test8976(); test8940(); test9022(); test9026(); test9038(); test9076(); test9100(); test9124a(); test9124b(); test9143(); test9266(); test9536(); test9578(); test9596(); test9837(); test9874(); test9885(); test9971(); test9977(); test10083(); test10592(); test11242(); test10811(); test10969(); test11271(); test11533(); test11818(); test11843(); test11872(); test12122(); test12207(); test12376(); test13235(); test13294(); test13299(); test13374(); test13378(); test13379(); test13484(); test13694(); test14836(); test14735(); test14802(); test15116(); test16042(); test16042b(); test15243(); test15653(); printf("Success\n"); return 0; }
D
/Users/ruru/Desktop/CloudsAPP-2017-07-24/DerivedData/CloudsAPP/Build/Intermediates/Alamofire.build/Debug-iphonesimulator/Alamofire\ iOS.build/Objects-normal/x86_64/Alamofire.o : /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/MultipartFormData.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Timeline.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Alamofire.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Response.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/TaskDelegate.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/SessionDelegate.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/ParameterEncoding.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Validation.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/ResponseSerialization.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/SessionManager.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/NetworkReachabilityManager.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/AFError.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Notifications.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Result.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Request.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /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/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.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/Dispatch.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/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/SwiftOnoneSupport.swiftmodule /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Alamofire.h /Users/ruru/Desktop/CloudsAPP-2017-07-24/DerivedData/CloudsAPP/Build/Intermediates/Alamofire.build/Debug-iphonesimulator/Alamofire\ iOS.build/unextended-module.modulemap /Users/ruru/Desktop/CloudsAPP-2017-07-24/DerivedData/CloudsAPP/Build/Intermediates/Alamofire.build/Debug-iphonesimulator/Alamofire\ iOS.build/Objects-normal/x86_64/Alamofire~partial.swiftmodule : /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/MultipartFormData.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Timeline.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Alamofire.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Response.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/TaskDelegate.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/SessionDelegate.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/ParameterEncoding.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Validation.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/ResponseSerialization.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/SessionManager.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/NetworkReachabilityManager.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/AFError.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Notifications.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Result.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Request.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /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/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.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/Dispatch.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/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/SwiftOnoneSupport.swiftmodule /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Alamofire.h /Users/ruru/Desktop/CloudsAPP-2017-07-24/DerivedData/CloudsAPP/Build/Intermediates/Alamofire.build/Debug-iphonesimulator/Alamofire\ iOS.build/unextended-module.modulemap /Users/ruru/Desktop/CloudsAPP-2017-07-24/DerivedData/CloudsAPP/Build/Intermediates/Alamofire.build/Debug-iphonesimulator/Alamofire\ iOS.build/Objects-normal/x86_64/Alamofire~partial.swiftdoc : /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/MultipartFormData.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Timeline.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Alamofire.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Response.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/TaskDelegate.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/SessionDelegate.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/ParameterEncoding.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Validation.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/ResponseSerialization.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/SessionManager.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/NetworkReachabilityManager.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/AFError.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Notifications.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Result.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Request.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /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/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.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/Dispatch.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/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/SwiftOnoneSupport.swiftmodule /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/Alamofire.h /Users/ruru/Desktop/CloudsAPP-2017-07-24/DerivedData/CloudsAPP/Build/Intermediates/Alamofire.build/Debug-iphonesimulator/Alamofire\ iOS.build/unextended-module.modulemap
D
/** Generator for project files Copyright: © 2012-2013 Matthias Dondorff, © 2013-2016 Sönke Ludwig License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Matthias Dondorff */ module dub.generators.generator; import dub.compilers.compiler; import dub.generators.cmake; import dub.generators.build; import dub.generators.sublimetext; import dub.generators.visuald; import dub.internal.vibecompat.core.file; import dub.internal.vibecompat.core.log; import dub.internal.vibecompat.inet.path; import dub.package_; import dub.packagemanager; import dub.project; import std.algorithm : map, filter, canFind, balancedParens; import std.array : array; import std.array; import std.exception; import std.file; import std.string; /** Common interface for project generators/builders. */ class ProjectGenerator { /** Information about a single binary target. A binary target can either be an executable or a static/dynamic library. It consists of one or more packages. */ struct TargetInfo { /// The root package of this target Package pack; /// All packages compiled into this target Package[] packages; /// The configuration used for building the root package string config; /** Build settings used to build the target. The build settings include all sources of all contained packages. Depending on the specific generator implementation, it may be necessary to add any static or dynamic libraries generated for child targets ($(D linkDependencies)). */ BuildSettings buildSettings; /** List of all dependencies. This list includes dependencies that are not the root of a binary target. */ string[] dependencies; /** List of all binary dependencies. This list includes all dependencies that are the root of a binary target. */ string[] linkDependencies; } protected { Project m_project; } this(Project project) { m_project = project; } /** Performs the full generator process. */ final void generate(GeneratorSettings settings) { import dub.compilers.utils : enforceBuildRequirements; if (!settings.config.length) settings.config = m_project.getDefaultConfiguration(settings.platform); string[string] configs = m_project.getPackageConfigs(settings.platform, settings.config); TargetInfo[string] targets; foreach (pack; m_project.getTopologicalPackageList(true, null, configs)) { BuildSettings buildSettings; auto config = configs[pack.name]; buildSettings.processVars(m_project, pack, pack.getBuildSettings(settings.platform, config), settings, true); targets[pack.name] = TargetInfo(pack, [pack], config, buildSettings); prepareGeneration(pack, m_project, settings, buildSettings); } string[] mainfiles = configurePackages(m_project.rootPackage, targets, settings); addBuildTypeSettings(targets, settings); foreach (ref t; targets.byValue) enforceBuildRequirements(t.buildSettings); auto bs = &targets[m_project.rootPackage.name].buildSettings; if (bs.targetType == TargetType.executable) bs.addSourceFiles(mainfiles); generateTargets(settings, targets); foreach (pack; m_project.getTopologicalPackageList(true, null, configs)) { BuildSettings buildsettings; buildsettings.processVars(m_project, pack, pack.getBuildSettings(settings.platform, configs[pack.name]), settings, true); bool generate_binary = !(buildsettings.options & BuildOption.syntaxOnly); finalizeGeneration(pack, m_project, settings, buildsettings, NativePath(bs.targetPath), generate_binary); } performPostGenerateActions(settings, targets); } /** Overridden in derived classes to implement the actual generator functionality. The function should go through all targets recursively. The first target (which is guaranteed to be there) is $(D targets[m_project.rootPackage.name]). The recursive descent is then done using the $(D TargetInfo.linkDependencies) list. This method is also potentially responsible for running the pre and post build commands, while pre and post generate commands are already taken care of by the $(D generate) method. Params: settings = The generator settings used for this run targets = A map from package name to TargetInfo that contains all binary targets to be built. */ protected abstract void generateTargets(GeneratorSettings settings, in TargetInfo[string] targets); /** Overridable method to be invoked after the generator process has finished. An examples of functionality placed here is to run the application that has just been built. */ protected void performPostGenerateActions(GeneratorSettings settings, in TargetInfo[string] targets) {} /** Configure `rootPackage` and all of it's dependencies. 1. Merge versions, debugVersions, and inheritable build settings from dependents to their dependencies. 2. Define version identifiers Have_dependency_xyz for all direct dependencies of all packages. 3. Merge versions, debugVersions, and inheritable build settings from dependencies to their dependents, so that importer and importee are ABI compatible. This also transports all Have_dependency_xyz version identifiers to `rootPackage`. Note: The upwards inheritance is done at last so that siblings do not influence each other, also see https://github.com/dlang/dub/pull/1128. Note: Targets without output are integrated into their dependents and removed from `targets`. */ private string[] configurePackages(Package rootPackage, TargetInfo[string] targets, GeneratorSettings genSettings) { import std.algorithm : remove, sort; import std.range : repeat; // 0. do shallow configuration (not including dependencies) of all packages TargetType determineTargetType(const ref TargetInfo ti) { TargetType tt = ti.buildSettings.targetType; if (ti.pack is rootPackage) { if (tt == TargetType.autodetect || tt == TargetType.library) tt = TargetType.staticLibrary; } else { if (tt == TargetType.autodetect || tt == TargetType.library) tt = genSettings.combined ? TargetType.sourceLibrary : TargetType.staticLibrary; else if (tt == TargetType.dynamicLibrary) { logWarn("Dynamic libraries are not yet supported as dependencies - building as static library."); tt = TargetType.staticLibrary; } } if (tt != TargetType.none && tt != TargetType.sourceLibrary && ti.buildSettings.sourceFiles.empty) { logWarn(`Configuration '%s' of package %s contains no source files. Please add {"targetType": "none"} to its package description to avoid building it.`, ti.config, ti.pack.name); tt = TargetType.none; } return tt; } string[] mainSourceFiles; bool[string] hasOutput; foreach (ref ti; targets.byValue) { auto bs = &ti.buildSettings; // determine the actual target type bs.targetType = determineTargetType(ti); switch (bs.targetType) { case TargetType.none: // ignore any build settings for targetType none (only dependencies will be processed) *bs = BuildSettings.init; bs.targetType = TargetType.none; break; case TargetType.executable: break; case TargetType.dynamicLibrary: // set -fPIC for dynamic library builds ti.buildSettings.addOptions(BuildOption.pic); goto default; default: // remove any mainSourceFile from non-executable builds if (bs.mainSourceFile.length) { bs.sourceFiles = bs.sourceFiles.remove!(f => f == bs.mainSourceFile); mainSourceFiles ~= bs.mainSourceFile; } break; } bool generatesBinary = bs.targetType != TargetType.sourceLibrary && bs.targetType != TargetType.none; hasOutput[ti.pack.name] = generatesBinary || ti.pack is rootPackage; } // mark packages as visited (only used during upwards propagation) void[0][Package] visited; // collect all dependencies void collectDependencies(Package pack, ref TargetInfo ti, TargetInfo[string] targets, size_t level = 0) { // use `visited` here as pkgs cannot depend on themselves if (pack in visited) return; // transitive dependencies must be visited multiple times, see #1350 immutable transitive = !hasOutput[pack.name]; if (!transitive) visited[pack] = typeof(visited[pack]).init; auto bs = &ti.buildSettings; if (hasOutput[pack.name]) logDebug("%sConfiguring target %s (%s %s %s)", ' '.repeat(2 * level), pack.name, bs.targetType, bs.targetPath, bs.targetName); else logDebug("%sConfiguring target without output %s", ' '.repeat(2 * level), pack.name); // get specified dependencies, e.g. vibe-d ~0.8.1 auto deps = pack.getDependencies(targets[pack.name].config); logDebug("deps: %s -> %(%s, %)", pack.name, deps.byKey); foreach (depname; deps.keys.sort()) { auto depspec = deps[depname]; // get selected package for that dependency, e.g. vibe-d 0.8.2-beta.2 auto deppack = m_project.getDependency(depname, depspec.optional); if (deppack is null) continue; // optional and not selected // if dependency has no output if (!hasOutput[depname]) { // add itself ti.packages ~= deppack; // and it's transitive dependencies to current target collectDependencies(deppack, ti, targets, level + 1); continue; } auto depti = &targets[depname]; const depbs = &depti.buildSettings; if (depbs.targetType == TargetType.executable && ti.buildSettings.targetType != TargetType.none) continue; // add to (link) dependencies ti.dependencies ~= depname; ti.linkDependencies ~= depname; // recurse collectDependencies(deppack, *depti, targets, level + 1); // also recursively add all link dependencies of static libraries // preserve topological sorting of dependencies for correct link order if (depbs.targetType == TargetType.staticLibrary) ti.linkDependencies = ti.linkDependencies.filter!(d => !depti.linkDependencies.canFind(d)).array ~ depti.linkDependencies; } enforce(!(ti.buildSettings.targetType == TargetType.none && ti.dependencies.empty), "Package with target type \"none\" must have dependencies to build."); } collectDependencies(rootPackage, targets[rootPackage.name], targets); static if (__VERSION__ > 2070) visited.clear(); else destroy(visited); // 1. downwards inherits versions, debugVersions, and inheritable build settings static void configureDependencies(in ref TargetInfo ti, TargetInfo[string] targets, size_t level = 0) { // do not use `visited` here as dependencies must inherit // configurations from *all* of their parents logDebug("%sConfigure dependencies of %s, deps:%(%s, %)", ' '.repeat(2 * level), ti.pack.name, ti.dependencies); foreach (depname; ti.dependencies) { auto pti = &targets[depname]; mergeFromDependent(ti.buildSettings, pti.buildSettings); configureDependencies(*pti, targets, level + 1); } } configureDependencies(targets[rootPackage.name], targets); // 2. add Have_dependency_xyz for all direct dependencies of a target // (includes incorporated non-target dependencies and their dependencies) foreach (ref ti; targets.byValue) { import std.range : chain; import dub.internal.utils : stripDlangSpecialChars; auto bs = &ti.buildSettings; auto pkgnames = ti.packages.map!(p => p.name).chain(ti.dependencies); bs.addVersions(pkgnames.map!(pn => "Have_" ~ stripDlangSpecialChars(pn)).array); } // 3. upwards inherit full build configurations (import paths, versions, debugVersions, ...) void configureDependents(ref TargetInfo ti, TargetInfo[string] targets, size_t level = 0) { // use `visited` here as pkgs cannot depend on themselves if (ti.pack in visited) return; visited[ti.pack] = typeof(visited[ti.pack]).init; logDiagnostic("%sConfiguring dependent %s, deps:%(%s, %)", ' '.repeat(2 * level), ti.pack.name, ti.dependencies); // embedded non-binary dependencies foreach (deppack; ti.packages[1 .. $]) ti.buildSettings.add(targets[deppack.name].buildSettings); // binary dependencies foreach (depname; ti.dependencies) { auto pdepti = &targets[depname]; configureDependents(*pdepti, targets, level + 1); mergeFromDependency(pdepti.buildSettings, ti.buildSettings); } } configureDependents(targets[rootPackage.name], targets); static if (__VERSION__ > 2070) visited.clear(); else destroy(visited); // 4. override string import files in dependencies static void overrideStringImports(ref TargetInfo ti, TargetInfo[string] targets, string[] overrides) { // do not use visited here as string imports can be overridden by *any* parent // // special support for overriding string imports in parent packages // this is a candidate for deprecation, once an alternative approach // has been found if (ti.buildSettings.stringImportPaths.length) { // override string import files (used for up to date checking) foreach (ref f; ti.buildSettings.stringImportFiles) { foreach (o; overrides) { NativePath op; if (f != o && NativePath(f).head == (op = NativePath(o)).head) { logDebug("string import %s overridden by %s", f, o); f = o; ti.buildSettings.prependStringImportPaths(op.parentPath.toNativeString); } } } } // add to overrides for recursion overrides ~= ti.buildSettings.stringImportFiles; // override dependencies foreach (depname; ti.dependencies) overrideStringImports(targets[depname], targets, overrides); } overrideStringImports(targets[rootPackage.name], targets, null); // remove targets without output foreach (name; targets.keys) { if (!hasOutput[name]) targets.remove(name); } return mainSourceFiles; } private static void mergeFromDependent(in ref BuildSettings parent, ref BuildSettings child) { child.addVersions(parent.versions); child.addDebugVersions(parent.debugVersions); child.addOptions(BuildOptions(cast(BuildOptions)parent.options & inheritedBuildOptions)); } private static void mergeFromDependency(in ref BuildSettings child, ref BuildSettings parent) { import dub.compilers.utils : isLinkerFile; parent.addDFlags(child.dflags); parent.addVersions(child.versions); parent.addDebugVersions(child.debugVersions); parent.addImportPaths(child.importPaths); parent.addStringImportPaths(child.stringImportPaths); // linking of static libraries is done by parent if (child.targetType == TargetType.staticLibrary) { parent.addSourceFiles(child.sourceFiles.filter!isLinkerFile.array); parent.addLibs(child.libs); parent.addLFlags(child.lflags); } } // configure targets for build types such as release, or unittest-cov private void addBuildTypeSettings(TargetInfo[string] targets, in GeneratorSettings settings) { foreach (ref ti; targets.byValue) { ti.buildSettings.add(settings.buildSettings); // add build type settings and convert plain DFLAGS to build options m_project.addBuildTypeSettings(ti.buildSettings, settings, ti.pack is m_project.rootPackage); settings.compiler.extractBuildOptions(ti.buildSettings); auto tt = ti.buildSettings.targetType; enforce (tt != TargetType.sourceLibrary || ti.pack !is m_project.rootPackage || (ti.buildSettings.options & BuildOption.syntaxOnly), format("Main package must not have target type \"%s\". Cannot build.", tt)); } } } struct GeneratorSettings { BuildPlatform platform; Compiler compiler; string config; string buildType; BuildSettings buildSettings; BuildMode buildMode = BuildMode.separate; bool combined; // compile all in one go instead of each dependency separately // only used for generator "build" bool run, force, direct, rdmd, tempBuild, parallelBuild; string[] runArgs; void delegate(int status, string output) compileCallback; void delegate(int status, string output) linkCallback; void delegate(int status, string output) runCallback; } /** Determines the mode in which the compiler and linker are invoked. */ enum BuildMode { separate, /// Compile and link separately allAtOnce, /// Perform compile and link with a single compiler invocation singleFile, /// Compile each file separately //multipleObjects, /// Generate an object file per module //multipleObjectsPerModule, /// Use the -multiobj switch to generate multiple object files per module //compileOnly /// Do not invoke the linker (can be done using a post build command) } /** Creates a project generator of the given type for the specified project. */ ProjectGenerator createProjectGenerator(string generator_type, Project project) { assert(project !is null, "Project instance needed to create a generator."); generator_type = generator_type.toLower(); switch(generator_type) { default: throw new Exception("Unknown project generator: "~generator_type); case "build": logDebug("Creating build generator."); return new BuildGenerator(project); case "mono-d": throw new Exception("The Mono-D generator has been removed. Use Mono-D's built in DUB support instead."); case "visuald": logDebug("Creating VisualD generator."); return new VisualDGenerator(project); case "sublimetext": logDebug("Creating SublimeText generator."); return new SublimeTextGenerator(project); case "cmake": logDebug("Creating CMake generator."); return new CMakeGenerator(project); } } /** Runs pre-build commands and performs other required setup before project files are generated. */ private void prepareGeneration(in Package pack, in Project proj, in GeneratorSettings settings, in BuildSettings buildsettings) { if (buildsettings.preGenerateCommands.length && !isRecursiveInvocation(pack.name)) { logInfo("Running pre-generate commands for %s...", pack.name); runBuildCommands(buildsettings.preGenerateCommands, pack, proj, settings, buildsettings); } } /** Runs post-build commands and copies required files to the binary directory. */ private void finalizeGeneration(in Package pack, in Project proj, in GeneratorSettings settings, in BuildSettings buildsettings, NativePath target_path, bool generate_binary) { import std.path : globMatch; if (buildsettings.postGenerateCommands.length && !isRecursiveInvocation(pack.name)) { logInfo("Running post-generate commands for %s...", pack.name); runBuildCommands(buildsettings.postGenerateCommands, pack, proj, settings, buildsettings); } if (generate_binary) { if (!exists(buildsettings.targetPath)) mkdirRecurse(buildsettings.targetPath); if (buildsettings.copyFiles.length) { void copyFolderRec(NativePath folder, NativePath dstfolder) { mkdirRecurse(dstfolder.toNativeString()); foreach (de; iterateDirectory(folder.toNativeString())) { if (de.isDirectory) { copyFolderRec(folder ~ de.name, dstfolder ~ de.name); } else { try hardLinkFile(folder ~ de.name, dstfolder ~ de.name, true); catch (Exception e) { logWarn("Failed to copy file %s: %s", (folder ~ de.name).toNativeString(), e.msg); } } } } void tryCopyDir(string file) { auto src = NativePath(file); if (!src.absolute) src = pack.path ~ src; auto dst = target_path ~ NativePath(file).head; if (src == dst) { logDiagnostic("Skipping copy of %s (same source and destination)", file); return; } logDiagnostic(" %s to %s", src.toNativeString(), dst.toNativeString()); try { copyFolderRec(src, dst); } catch(Exception e) logWarn("Failed to copy %s to %s: %s", src.toNativeString(), dst.toNativeString(), e.msg); } void tryCopyFile(string file) { auto src = NativePath(file); if (!src.absolute) src = pack.path ~ src; auto dst = target_path ~ NativePath(file).head; if (src == dst) { logDiagnostic("Skipping copy of %s (same source and destination)", file); return; } logDiagnostic(" %s to %s", src.toNativeString(), dst.toNativeString()); try { hardLinkFile(src, dst, true); } catch(Exception e) logWarn("Failed to copy %s to %s: %s", src.toNativeString(), dst.toNativeString(), e.msg); } logInfo("Copying files for %s...", pack.name); string[] globs; foreach (f; buildsettings.copyFiles) { if (f.canFind("*", "?") || (f.canFind("{") && f.balancedParens('{', '}')) || (f.canFind("[") && f.balancedParens('[', ']'))) { globs ~= f; } else { if (f.isDir) tryCopyDir(f); else tryCopyFile(f); } } if (globs.length) // Search all files for glob matches { foreach (f; dirEntries(pack.path.toNativeString(), SpanMode.breadth)) { foreach (glob; globs) { if (f.name().globMatch(glob)) { if (f.isDir) tryCopyDir(f); else tryCopyFile(f); break; } } } } } } } /** Runs a list of build commands for a particular package. This function sets all DUB speficic environment variables and makes sure that recursive dub invocations are detected and don't result in infinite command execution loops. The latter could otherwise happen when a command runs "dub describe" or similar functionality. */ void runBuildCommands(in string[] commands, in Package pack, in Project proj, in GeneratorSettings settings, in BuildSettings build_settings) { import std.conv; import std.process; import dub.internal.utils; string[string] env = environment.toAA(); // TODO: do more elaborate things here // TODO: escape/quote individual items appropriately env["DFLAGS"] = join(cast(string[])build_settings.dflags, " "); env["LFLAGS"] = join(cast(string[])build_settings.lflags," "); env["VERSIONS"] = join(cast(string[])build_settings.versions," "); env["LIBS"] = join(cast(string[])build_settings.libs," "); env["IMPORT_PATHS"] = join(cast(string[])build_settings.importPaths," "); env["STRING_IMPORT_PATHS"] = join(cast(string[])build_settings.stringImportPaths," "); env["DC"] = settings.platform.compilerBinary; env["DC_BASE"] = settings.platform.compiler; env["D_FRONTEND_VER"] = to!string(settings.platform.frontendVersion); env["DUB_PLATFORM"] = join(cast(string[])settings.platform.platform," "); env["DUB_ARCH"] = join(cast(string[])settings.platform.architecture," "); env["DUB_TARGET_TYPE"] = to!string(build_settings.targetType); env["DUB_TARGET_PATH"] = build_settings.targetPath; env["DUB_TARGET_NAME"] = build_settings.targetName; env["DUB_WORKING_DIRECTORY"] = build_settings.workingDirectory; env["DUB_MAIN_SOURCE_FILE"] = build_settings.mainSourceFile; env["DUB_CONFIG"] = settings.config; env["DUB_BUILD_TYPE"] = settings.buildType; env["DUB_BUILD_MODE"] = to!string(settings.buildMode); env["DUB_PACKAGE"] = pack.name; env["DUB_PACKAGE_DIR"] = pack.path.toNativeString(); env["DUB_ROOT_PACKAGE"] = proj.rootPackage.name; env["DUB_ROOT_PACKAGE_DIR"] = proj.rootPackage.path.toNativeString(); env["DUB_PACKAGE_VERSION"] = pack.version_.toString(); env["DUB_COMBINED"] = settings.combined? "TRUE" : ""; env["DUB_RUN"] = settings.run? "TRUE" : ""; env["DUB_FORCE"] = settings.force? "TRUE" : ""; env["DUB_DIRECT"] = settings.direct? "TRUE" : ""; env["DUB_RDMD"] = settings.rdmd? "TRUE" : ""; env["DUB_TEMP_BUILD"] = settings.tempBuild? "TRUE" : ""; env["DUB_PARALLEL_BUILD"] = settings.parallelBuild? "TRUE" : ""; env["DUB_RUN_ARGS"] = (cast(string[])settings.runArgs).map!(escapeShellFileName).join(" "); auto depNames = proj.dependencies.map!((a) => a.name).array(); storeRecursiveInvokations(env, proj.rootPackage.name ~ depNames); runCommands(commands, env); } private bool isRecursiveInvocation(string pack) { import std.algorithm : canFind, splitter; import std.process : environment; return environment .get("DUB_PACKAGES_USED", "") .splitter(",") .canFind(pack); } private void storeRecursiveInvokations(string[string] env, string[] packs) { import std.algorithm : canFind, splitter; import std.range : chain; import std.process : environment; env["DUB_PACKAGES_USED"] = environment .get("DUB_PACKAGES_USED", "") .splitter(",") .chain(packs) .join(","); }
D
~ NAME : Sentences ~ NOTE : ~ AUTH : Devine Lu Linvega @ ENGLISH RUSSIAN Yes Да No Нет Maybe Может быть Welcome Добро пожаловать! Hello Здравствуйте! Hello Привет! Hello Алло? How are you? Как дела? Thank you, good! And you? Спасибо, хорошо. А у вас? Long time no see Сколько лет, сколько зим! What is your name? Как тебя зовут? My name is Devine Меня зовут Devine Where are you from? Oткуда вы? I'm from Canada Я из Canada Pleased to meet you Очень приятно Good morning Доброе утро! Good afternoon Добрый день! Good evening Добрый вечер! Good night Спокойной ночи! Goodbye До свидания! Good luck Удачи! Cheers! Good Health! За здоровье! Have a nice day Хорошего дня! Bon appetit Приятного аппетита! Bon voyage Счастливого пути! I don't know Я не знаю I understand Я понимаю I don't understand Я не понимаю Please speak more slowly Помедленнее, пожалуйста! Please say that again Повторите, пожалуйста Please write it down Запишите, пожалуйста Do you speak English? Вы говорите по-английски? Do you speak Russian? Вы говорите по-русски? My Russian is bad Я плохо говорю по-русски Could you speak more slowly? Говорите, пожалуйста, медленнее Yes, a little Да, немного How do you say X in Russian? Как сказать X по-русски? Speak to me in Russian Говорите со мной по-русски Excuse me Извините! How much is this? Сколько это стоит? Sorry Простите! Please Пожалуйста Thank you Спасибо! Reply to thank you Не за что! Where's the toilet? Где находится туалет? This gentleman will pay for everything Этот мужчина платит за всё This lady will pay for everything Эта дама платит за всё Would you like to dance with me? Хотите потанцевать? I miss you Я скучаю по тебе I love you Я тебя люблю! Get well soon Выздоравливай Go away! Оставьте меня в покое! Help! Помогите! Fire! Пожар! Stop! Стой! Call the police! Позвоните в полицию! Christmas and New Year greetings С Рождеством Христовым! Birthday greetings С днём рождения! One language is never enough Одного языка никогда недостаточно
D
instance DIA_Darrion_Exit(C_Info) { npc = NOV_1312_Darrion; nr = 999; condition = DIA_Darrion_Exit_Condition; information = DIA_Darrion_Exit_Info; important = 0; permanent = 1; description = DIALOG_ENDE; }; func int DIA_Darrion_Exit_Condition() { return 1; }; func void DIA_Darrion_Exit_Info() { AI_StopProcessInfos(self); }; instance DIA_Darrion_Hello(C_Info) { npc = NOV_1312_Darrion; nr = 1; condition = DIA_Darrion_Hello_Condition; information = DIA_Darrion_Hello_Info; permanent = 0; description = "Zdar - jsem tady nový a chtěl bych se něco dovědět o táboře."; }; func int DIA_Darrion_Hello_Condition() { return 1; }; func void DIA_Darrion_Hello_Info() { AI_Output(other,self,"DIA_Darrion_Hello_15_00"); //Zdar - jsem tady nový a chtěl bych se něco dovědět o táboru. AI_Output(self,other,"DIA_Darrion_Hello_11_01"); //Pak jsi přišel na špatné místo. Od té doby, co se templáři začali připravovat k boji, tu máme ve dne v noci napilno. AI_Output(self,other,"DIA_Darrion_Hello_11_02"); //Nemám moc času na otázky. Tak mě nevyrušuj - pokud si nechceš něco koupit. Log_CreateTopic(GE_TraderPSI,LOG_NOTE); B_LogEntry(GE_TraderPSI,"Novic Darrion obchoduje se ZBRANĚMI. Tráví většinu času v kovárně."); }; instance DIA_Darrion_Trade(C_Info) { npc = NOV_1312_Darrion; nr = 800; condition = DIA_Darrion_Trade_Condition; information = DIA_Darrion_Trade_Info; permanent = 1; description = "Chtěl bych s tebou obchodovat!"; trade = 1; }; func int DIA_Darrion_Trade_Condition() { if(Npc_KnowsInfo(hero,DIA_Darrion_Hello)) { return TRUE; }; }; func void DIA_Darrion_Trade_Info() { AI_Output(other,self,"DIA_Darrion_Trade_15_00"); //Chtěl bych s tebou obchodovat! AI_Output(self,other,"DIA_Darrion_Trade_11_01"); //Dobře! Tady - to jsou zbraně, které mám zrovna k dispozici. if(Npc_HasItems(self,ItMiSwordraw) < 5) { CreateInvItems(self,ItMiSwordraw,5); }; if(Npc_HasItems(self,ItMiSwordrawhot) < 5) { CreateInvItems(self,ItMiSwordrawhot,5); }; if(Npc_HasItems(self,ItMiSwordbladehot) < 5) { CreateInvItems(self,ItMiSwordbladehot,5); }; if(Npc_HasItems(self,ItMiSwordblade) < 5) { CreateInvItems(self,ItMiSwordblade,5); }; };
D
/Users/velislavayanchina/Projects/pangofc/pangofc-sys/target/debug/deps/tempdir-640b29888f9ff7db.rmeta: /Users/velislavayanchina/.cargo/registry/src/github.com-1ecc6299db9ec823/tempdir-0.3.7/src/lib.rs /Users/velislavayanchina/Projects/pangofc/pangofc-sys/target/debug/deps/libtempdir-640b29888f9ff7db.rlib: /Users/velislavayanchina/.cargo/registry/src/github.com-1ecc6299db9ec823/tempdir-0.3.7/src/lib.rs /Users/velislavayanchina/Projects/pangofc/pangofc-sys/target/debug/deps/tempdir-640b29888f9ff7db.d: /Users/velislavayanchina/.cargo/registry/src/github.com-1ecc6299db9ec823/tempdir-0.3.7/src/lib.rs /Users/velislavayanchina/.cargo/registry/src/github.com-1ecc6299db9ec823/tempdir-0.3.7/src/lib.rs:
D
import std.stdio; import std.typecons; import std.algorithm; void main() { long n, m; scanf("%ld %ld", &n, &m); Tuple!(long, long)[] ss; foreach(i;0..n) { long a, b; scanf("%ld %ld", &a, &b); ss ~= tuple(a, b); } ss.sort!((a, b) => a[0] < b[0]); long p; foreach(s; ss) { if (m <= 0) break; p += s[0] * min(m, s[1]); m -= s[1]; } write(p); }
D
/Users/edward.wangcrypto.com/study/substrate_lesson_homework_template/node-template-benchmark/target/release/wbuild/node-template-runtime/target/release/build/node-template-runtime-1e645d4af955b1ac/build_script_build-1e645d4af955b1ac: /Users/edward.wangcrypto.com/study/substrate_lesson_homework_template/node-template-benchmark/runtime/build.rs /Users/edward.wangcrypto.com/study/substrate_lesson_homework_template/node-template-benchmark/target/release/wbuild/node-template-runtime/target/release/build/node-template-runtime-1e645d4af955b1ac/build_script_build-1e645d4af955b1ac.d: /Users/edward.wangcrypto.com/study/substrate_lesson_homework_template/node-template-benchmark/runtime/build.rs /Users/edward.wangcrypto.com/study/substrate_lesson_homework_template/node-template-benchmark/runtime/build.rs:
D
module EdrTest; import core.memory; import core.runtime; import core.thread; import std.conv; import std.math; import std.range; import std.string; import std.utf; //~ extern(C) int _D5mydll12__ModuleInfoZ; auto toUTF16z(S)(S s) { return toUTFz!(const(wchar)*)(s); } pragma(lib, "gdi32.lib"); pragma(lib, "comdlg32.lib"); import win32.windef; import win32.winuser; import win32.wingdi; import win32.winbase; import win32.commdlg; import EdrLib; string appName = "StrProg"; string description = "DLL Demonstration Program"; HINSTANCE hinst; // @BUG@ DMD assumes a module info symbol is always present when importing a module, // however a DLL doesn't export its moduleinfo symbol, therefore we add a dummy symbol // here to silence the linker. extern(C) int D6EdrLib12__ModuleInfoZ; extern(C) int _D6EdrLib12__ModuleInfoZ; //~ extern(C) int _D5win327winuser13CreateWindowWFPxuPxukiiiiPvPvPvPvZPv; extern (Windows) int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow) { int result; void exceptionHandler(Throwable e) { throw e; } try { Runtime.initialize(&exceptionHandler); result = myWinMain(hInstance, hPrevInstance, lpCmdLine, iCmdShow); Runtime.terminate(&exceptionHandler); } catch (Throwable o) { MessageBox(null, o.toString().toUTF16z, "Error", MB_OK | MB_ICONEXCLAMATION); result = 0; } return result; } int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow) { hinst = hInstance; HACCEL hAccel; HWND hwnd; MSG msg; WNDCLASS wndclass; wndclass.style = CS_HREDRAW | CS_VREDRAW; wndclass.lpfnWndProc = &WndProc; wndclass.cbClsExtra = 0; wndclass.cbWndExtra = 0; wndclass.hInstance = hInstance; wndclass.hIcon = LoadIcon(NULL, IDI_APPLICATION); wndclass.hCursor = LoadCursor(NULL, IDC_ARROW); wndclass.hbrBackground = cast(HBRUSH) GetStockObject(WHITE_BRUSH); wndclass.lpszMenuName = appName.toUTF16z; wndclass.lpszClassName = appName.toUTF16z; if (!RegisterClass(&wndclass)) { MessageBox(NULL, "This program requires Windows NT!", appName.toUTF16z, MB_ICONERROR); return 0; } hwnd = CreateWindow(appName.toUTF16z, // window class name description.toUTF16z, // window caption WS_OVERLAPPEDWINDOW, // window style CW_USEDEFAULT, // initial x position CW_USEDEFAULT, // initial y position CW_USEDEFAULT, // initial x size CW_USEDEFAULT, // initial y size NULL, // parent window handle NULL, // window menu handle hInstance, // program instance handle NULL); // creation parameters ShowWindow(hwnd, iCmdShow); UpdateWindow(hwnd); while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return msg.wParam; } extern (Windows) LRESULT WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { HDC hdc; PAINTSTRUCT ps; RECT rect; switch (message) { case WM_PAINT: hdc = BeginPaint(hwnd, &ps); GetClientRect(hwnd, &rect); EdrCenterText(hdc, &rect, "This string was displayed by a DLL"); EndPaint(hwnd, &ps); return 0; case WM_DESTROY: PostQuitMessage(0); return 0; default: } return DefWindowProc(hwnd, message, wParam, lParam); }
D
module misc.rect; import derelict.sdl2.sdl; import misc.coords; bool pointInRect(Vec_T)( Vec_T point, Vec_T rectTopLeft, Vec_T rectDimensions ) { auto pointDiff = point - rectTopLeft; return ( pointDiff.x > 0 && pointDiff.y > 0 && pointDiff.x < rectDimensions.x && pointDiff.y < rectDimensions.y ); } SDL_Rect getRectFromVectors( RenderCoords topLeft, RenderCoords botRight ) { SDL_Rect rect; rect.x = topLeft.x; rect.y = topLeft.y; auto dimensions = botRight - topLeft; rect.w = dimensions.x; rect.h = dimensions.y; return rect; }
D
/* * Copyright (c) 2004-2008 Derelict Developers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * 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. * * * Neither the names 'Derelict', 'DerelictGL', nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * 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 OWNER 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 derelict.opengl.extension.nv.gpu_program4; private { import derelict.opengl.gltypes; import derelict.opengl.gl; import derelict.opengl.extension.loader; import derelict.util.wrapper; } private bool enabled = false; struct NVGpuProgram4 { static bool load(char[] extString) { if(extString.findStr("GL_NV_gpu_program4") == -1) return false; if(!glBindExtFunc(cast(void**)&glProgramLocalParameterI4iNV, "glProgramLocalParameterI4iNV")) return false; if(!glBindExtFunc(cast(void**)&glProgramLocalParameterI4ivNV, "glProgramLocalParameterI4ivNV")) return false; if(!glBindExtFunc(cast(void**)&glProgramLocalParametersI4ivNV, "glProgramLocalParametersI4ivNV")) return false; if(!glBindExtFunc(cast(void**)&glProgramLocalParameterI4uiNV, "glProgramLocalParameterI4uiNV")) return false; if(!glBindExtFunc(cast(void**)&glProgramLocalParameterI4uivNV, "glProgramLocalParameterI4uivNV")) return false; if(!glBindExtFunc(cast(void**)&glProgramLocalParametersI4uivNV, "glProgramLocalParametersI4uivNV")) return false; if(!glBindExtFunc(cast(void**)&glProgramEnvParameterI4iNV, "glProgramEnvParameterI4iNV")) return false; if(!glBindExtFunc(cast(void**)&glProgramEnvParameterI4ivNV, "glProgramEnvParameterI4ivNV")) return false; if(!glBindExtFunc(cast(void**)&glProgramEnvParametersI4ivNV, "glProgramEnvParametersI4ivNV")) return false; if(!glBindExtFunc(cast(void**)&glProgramEnvParameterI4uiNV, "glProgramEnvParameterI4uiNV")) return false; if(!glBindExtFunc(cast(void**)&glProgramEnvParameterI4uivNV, "glProgramEnvParameterI4uivNV")) return false; if(!glBindExtFunc(cast(void**)&glProgramEnvParametersI4uivNV, "glProgramEnvParametersI4uivNV")) return false; if(!glBindExtFunc(cast(void**)&glGetProgramLocalParameterIivNV, "glGetProgramLocalParameterIivNV")) return false; if(!glBindExtFunc(cast(void**)&glGetProgramLocalParameterIuivNV, "glGetProgramLocalParameterIuivNV")) return false; if(!glBindExtFunc(cast(void**)&glGetProgramEnvParameterIivNV, "glGetProgramEnvParameterIivNV")) return false; if(!glBindExtFunc(cast(void**)&glGetProgramEnvParameterIuivNV, "glGetProgramEnvParameterIuivNV")) return false; enabled = true; return true; } static bool isEnabled() { return enabled; } } version(DerelictGL_NoExtensionLoaders) { } else { static this() { DerelictGL.registerExtensionLoader(&NVGpuProgram4.load); } } enum : GLenum { GL_MIN_PROGRAM_TEXEL_OFFSET_NV = 0x8904, GL_MAX_PROGRAM_TEXEL_OFFSET_NV = 0x8905, GL_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8906, GL_PROGRAM_RESULT_COMPONENTS_NV = 0x8907, GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8908, GL_MAX_PROGRAM_RESULT_COMPONENTS_NV = 0x8909, GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV = 0x8DA5, GL_MAX_PROGRAM_GENERIC_RESULTS_NV = 0x8DA6, } extern(System): typedef void function(GLenum, GLuint, GLint, GLint, GLint, GLint) pfglProgramLocalParameterI4iNV; typedef void function(GLenum, GLuint, GLint*) pfglProgramLocalParameterI4ivNV; typedef void function(GLenum, GLuint, GLsizei, GLint*) pfglProgramLocalParametersI4ivNV; typedef void function(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint) pfglProgramLocalParameterI4uiNV; typedef void function(GLenum, GLuint, GLuint*) pfglProgramLocalParameterI4uivNV; typedef void function(GLenum, GLuint, GLsizei, GLuint*) pfglProgramLocalParametersI4uivNV; typedef void function(GLenum, GLuint,. GLint, GLint, GLint, GLint) pfglProgramEnvParameterI4iNV; typedef void function(GLenum, GLuint, GLint*) pfglProgramEnvParameterI4ivNV; typedef void function(GLenum, GLuint, GLsizei, GLint*) pfglProgramEnvParametersI4ivNV; typedef void function(GLenum, GLuint,. GLuint, GLuint, GLuint, GLuint) pfglProgramEnvParameterI4uiNV; typedef void function(GLenum, GLuint, GLuint*) pfglProgramEnvParameterI4uivNV; typedef void function(GLenum, GLuint, GLsizei, GLuint*) pfglProgramEnvParametersI4uivNV; typedef void function(GLenum, GLuint, GLint*) pfglGetProgramLocalParameterIivNV; typedef void function(GLenum, GLuint, GLuint*) pfglGetProgramLocalParameterIuivNV; typedef void function(GLenum, GLuint, GLint*) pfglGetProgramEnvParameterIivNV; typedef void function(GLenum, GLuint, GLuint*) pfglGetProgramEnvParameterIuivNV; pfglProgramLocalParameterI4iNV glProgramLocalParameterI4iNV; pfglProgramLocalParameterI4ivNV glProgramLocalParameterI4ivNV; pfglProgramLocalParametersI4ivNV glProgramLocalParametersI4ivNV; pfglProgramLocalParameterI4uiNV glProgramLocalParameterI4uiNV; pfglProgramLocalParameterI4uivNV glProgramLocalParameterI4uivNV; pfglProgramLocalParametersI4uivNV glProgramLocalParametersI4uivNV; pfglProgramEnvParameterI4iNV glProgramEnvParameterI4iNV; pfglProgramEnvParameterI4ivNV glProgramEnvParameterI4ivNV; pfglProgramEnvParametersI4ivNV glProgramEnvParametersI4ivNV; pfglProgramEnvParameterI4uiNV glProgramEnvParameterI4uiNV; pfglProgramEnvParameterI4uivNV glProgramEnvParameterI4uivNV; pfglProgramEnvParametersI4uivNV glProgramEnvParametersI4uivNV; pfglGetProgramLocalParameterIivNV glGetProgramLocalParameterIivNV; pfglGetProgramLocalParameterIuivNV glGetProgramLocalParameterIuivNV; pfglGetProgramEnvParameterIivNV glGetProgramEnvParameterIivNV; pfglGetProgramEnvParameterIuivNV glGetProgramEnvParameterIuivNV;
D
/** * Windows API header module * * Translated from MinGW Windows headers * * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(DRUNTIMESRC core/sys/windows/_lmbrowsr.d) */ module core.sys.windows.lmbrowsr; version (Windows): import core.sys.windows.lmcons, core.sys.windows.windef; enum BROWSER_ROLE_PDC = 1; enum BROWSER_ROLE_BDC = 2; struct BROWSER_STATISTICS { LARGE_INTEGER StatisticsStartTime; LARGE_INTEGER NumberOfServerAnnouncements; LARGE_INTEGER NumberOfDomainAnnouncements; ULONG NumberOfElectionPackets; ULONG NumberOfMailslotWrites; ULONG NumberOfGetBrowserServerListRequests; ULONG NumberOfServerEnumerations; ULONG NumberOfDomainEnumerations; ULONG NumberOfOtherEnumerations; ULONG NumberOfMissedServerAnnouncements; ULONG NumberOfMissedMailslotDatagrams; ULONG NumberOfMissedGetBrowserServerListRequests; ULONG NumberOfFailedServerAnnounceAllocations; ULONG NumberOfFailedMailslotAllocations; ULONG NumberOfFailedMailslotReceives; ULONG NumberOfFailedMailslotWrites; ULONG NumberOfFailedMailslotOpens; ULONG NumberOfDuplicateMasterAnnouncements; LARGE_INTEGER NumberOfIllegalDatagrams; } alias BROWSER_STATISTICS* PBROWSER_STATISTICS, LPBROWSER_STATISTICS; struct BROWSER_STATISTICS_100 { LARGE_INTEGER StartTime; LARGE_INTEGER NumberOfServerAnnouncements; LARGE_INTEGER NumberOfDomainAnnouncements; ULONG NumberOfElectionPackets; ULONG NumberOfMailslotWrites; ULONG NumberOfGetBrowserServerListRequests; LARGE_INTEGER NumberOfIllegalDatagrams; } alias BROWSER_STATISTICS_100* PBROWSER_STATISTICS_100; struct BROWSER_STATISTICS_101 { LARGE_INTEGER StartTime; LARGE_INTEGER NumberOfServerAnnouncements; LARGE_INTEGER NumberOfDomainAnnouncements; ULONG NumberOfElectionPackets; ULONG NumberOfMailslotWrites; ULONG NumberOfGetBrowserServerListRequests; LARGE_INTEGER NumberOfIllegalDatagrams; ULONG NumberOfMissedServerAnnouncements; ULONG NumberOfMissedMailslotDatagrams; ULONG NumberOfMissedGetBrowserServerListRequests; ULONG NumberOfFailedServerAnnounceAllocations; ULONG NumberOfFailedMailslotAllocations; ULONG NumberOfFailedMailslotReceives; ULONG NumberOfFailedMailslotWrites; ULONG NumberOfFailedMailslotOpens; ULONG NumberOfDuplicateMasterAnnouncements; } alias BROWSER_STATISTICS_101* PBROWSER_STATISTICS_101; extern (Windows) { NET_API_STATUS I_BrowserServerEnum(LPCWSTR, LPCWSTR, LPCWSTR, DWORD, PBYTE*, DWORD, PDWORD, PDWORD, DWORD, LPCWSTR, PDWORD); NET_API_STATUS I_BrowserServerEnumEx(LPCWSTR, LPCWSTR, LPCWSTR, DWORD, PBYTE*, DWORD, PDWORD, PDWORD, DWORD, LPCWSTR, LPCWSTR); NET_API_STATUS I_BrowserQueryEmulatedDomains(LPWSTR, PBYTE*, PDWORD); NET_API_STATUS I_BrowserQueryOtherDomains(LPCWSTR, PBYTE*, PDWORD, PDWORD); NET_API_STATUS I_BrowserResetNetlogonState(LPCWSTR); NET_API_STATUS I_BrowserSetNetlogonState(LPWSTR, LPWSTR, LPWSTR, DWORD); NET_API_STATUS I_BrowserQueryStatistics(LPCWSTR, LPBROWSER_STATISTICS*); NET_API_STATUS I_BrowserResetStatistics(LPCWSTR); WORD I_BrowserServerEnumForXactsrv(LPCWSTR, LPCWSTR, ULONG, USHORT, PVOID, WORD, DWORD, PDWORD, PDWORD, DWORD, LPCWSTR, LPCWSTR, PWORD); NET_API_STATUS I_BrowserDebugTrace(PWCHAR, PCHAR); }
D
module android.java.android.view.textclassifier.TextLanguage_Builder; public import android.java.android.view.textclassifier.TextLanguage_Builder_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!TextLanguage_Builder; import import3 = android.java.android.view.textclassifier.TextLanguage; import import4 = android.java.java.lang.Class; import import0 = android.java.android.view.textclassifier.TextLanguage_Builder;
D
import std.stdio, std.string, std.array, std.conv; import core.bitop; void printBitBoard(ulong board) { for (int i=63; i>=0; i--) { if ((to!ulong(1)<<i) & board) write("X "); else write("- "); if ((i % 8) == 0) {writeln;} } writeln; } /* ulong set(ulong bitboard, ulong mask) { return bitboard | mask; } ulong unset(ulong bitboard, ulong mask) { return bitboard ^ mask; } */ /* int PopCnt(ulong a) { int c = 0; while (a) { c++; a &= a - 1; } return (c); } */ int PopCnt(ulong a) { uint x,y; x = to!uint((a) & 0xffffffff); y = to!uint((a>>32) & 0xffffffff); return (popcnt(x) + popcnt(y)); } /* class Bits { ushort lsb[65536]; ushort msb[65536]; ushort i,j; this() { foreach (i; 0 .. 65536) { msb[i] = 0; lsb[i] = 0; } msb[0] = 64; lsb[0] = 16; foreach (i; 1 .. 65536) { lsb[i] = 16; foreach (j; 0 .. 16) { if (i & (1 << j)) { msb[i] = cast(short)j; if (lsb[i] == 16) lsb[i] = cast(short)j; } } } } */ /* int MSB(ulong arg1) { if (arg1 >> 48) return (msb[arg1 >> 48] + 48); if ((arg1 >> 32) & 65535) return (msb[(arg1 >> 32) & 65535] + 32); if ((arg1 >> 16) & 65535) return (msb[(arg1 >> 16) & 65535] + 16); return (msb[arg1 & 65535]); } */ /* int LSB(ulong arg1) { if (arg1 & 65535) return (lsb[arg1 & 65535]); if ((arg1 >> 16) & 65535) return (lsb[(arg1 >> 16) & 65535] + 16); if ((arg1 >> 32) & 65535) return (lsb[(arg1 >> 32) & 65535] + 32); return (lsb[arg1 >> 48] + 48); } */ /* int MSB(ulong arg1) { return (bsr(arg1)); } int LSB(ulong arg1) { return (bsf(arg1)); } */ //}
D
// creal module std.typeinfo.ti_creal; class TypeInfo_c : TypeInfo { char[] toString() { return "creal"; } hash_t getHash(void *p) { return (cast(uint *)p)[0] + (cast(uint *)p)[1] + (cast(uint *)p)[2] + (cast(uint *)p)[3] + (cast(uint *)p)[4]; } static int _equals(creal f1, creal f2) { return f1 == f2; } static int _compare(creal f1, creal f2) { int result; if (f1.re < f2.re) result = -1; else if (f1.re > f2.re) result = 1; else if (f1.im < f2.im) result = -1; else if (f1.im > f2.im) result = 1; else result = 0; return result; } int equals(void *p1, void *p2) { return _equals(*cast(creal *)p1, *cast(creal *)p2); } int compare(void *p1, void *p2) { return _compare(*cast(creal *)p1, *cast(creal *)p2); } size_t tsize() { return creal.sizeof; } void swap(void *p1, void *p2) { creal t; t = *cast(creal *)p1; *cast(creal *)p1 = *cast(creal *)p2; *cast(creal *)p2 = t; } void[] init() { static creal r; return (cast(creal *)&r)[0 .. 1]; } }
D
module UnrealScript.Engine.InterpTrackVisibility; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.Engine.InterpTrack; extern(C++) interface InterpTrackVisibility : InterpTrack { public extern(D): private static __gshared ScriptClass mStaticClass; @property final static ScriptClass StaticClass() { mixin(MGSCC("Class Engine.InterpTrackVisibility")); } private static __gshared InterpTrackVisibility mDefaultProperties; @property final static InterpTrackVisibility DefaultProperties() { mixin(MGDPC("InterpTrackVisibility", "InterpTrackVisibility Engine.Default__InterpTrackVisibility")); } enum EVisibilityTrackCondition : ubyte { EVTC_Always = 0, EVTC_GoreEnabled = 1, EVTC_GoreDisabled = 2, EVTC_MAX = 3, } enum EVisibilityTrackAction : ubyte { EVTA_Hide = 0, EVTA_Show = 1, EVTA_Toggle = 2, EVTA_MAX = 3, } struct VisibilityTrackKey { private ubyte __buffer__[6]; public extern(D): private static __gshared ScriptStruct mStaticClass; @property final static ScriptStruct StaticClass() { mixin(MGSCS("ScriptStruct Engine.InterpTrackVisibility.VisibilityTrackKey")); } @property final auto ref { InterpTrackVisibility.EVisibilityTrackCondition ActiveCondition() { mixin(MGPS("InterpTrackVisibility.EVisibilityTrackCondition", 5)); } InterpTrackVisibility.EVisibilityTrackAction Action() { mixin(MGPS("InterpTrackVisibility.EVisibilityTrackAction", 4)); } float Time() { mixin(MGPS("float", 0)); } } } @property final { @property final auto ref ScriptArray!(InterpTrackVisibility.VisibilityTrackKey) VisibilityTrack() { mixin(MGPC("ScriptArray!(InterpTrackVisibility.VisibilityTrackKey)", 128)); } bool bFireEventsWhenJumpingForwards() { mixin(MGBPC(140, 0x4)); } bool bFireEventsWhenJumpingForwards(bool val) { mixin(MSBPC(140, 0x4)); } bool bFireEventsWhenBackwards() { mixin(MGBPC(140, 0x2)); } bool bFireEventsWhenBackwards(bool val) { mixin(MSBPC(140, 0x2)); } bool bFireEventsWhenForwards() { mixin(MGBPC(140, 0x1)); } bool bFireEventsWhenForwards(bool val) { mixin(MSBPC(140, 0x1)); } } }
D
/* * Hunt - A refined core library for D programming language. * * Copyright (C) 2018-2019 HuntLabs * * Website: https://www.huntlabs.net/ * * Licensed under the Apache-2.0 License. * */ module hunt.util.Timer; import hunt.event; import hunt.event.timer; import hunt.logging.ConsoleLogger; import hunt.Exceptions; import core.time; /** */ class Timer : AbstractTimer { this(Selector loop) { super(loop); this.interval = 1000; } this(Selector loop, size_t interval) { super(loop); this.interval = interval; } this(Selector loop, Duration duration) { super(loop); this.interval = duration; } protected: override void onRead() { bool canRead = true; while (canRead && _isRegistered) { canRead = readTimer((Object obj) { BaseTypeObject!uint tm = cast(BaseTypeObject!uint) obj; if (tm is null) return; while (tm.data > 0) { if (ticked !is null) ticked(this); tm.data--; } }); if (this.isError) { canRead = false; this.close(); error("the Timer Read is error: ", this.errorMessage); } } } } // dfmt off version (HAVE_IOCP) : // dfmt on import std.datetime; import std.exception; import std.process; import core.sys.windows.windows; import core.thread; import core.time; /** */ abstract class AbstractNativeTimer : ITimer { protected bool _isActive = false; protected size_t _interval = 1000; /// Timer tick handler TickedEventHandler ticked; this() { this(1000); } this(size_t interval) { this.interval = interval; } this(Duration duration) { this.interval = duration; } /// @property bool isActive() { return _isActive; } /// in ms @property size_t interval() { return _interval; } /// ditto @property ITimer interval(size_t v) { _interval = v; return this; } /// ditto @property ITimer interval(Duration duration) { _interval = cast(size_t) duration.total!("msecs"); return this; } /// The handler will be handled in another thread. ITimer onTick(TickedEventHandler handler) { this.ticked = handler; return this; } /// immediately: true to call first event immediately /// once: true to call timed event only once abstract void start(bool immediately = false, bool once = false); void start(uint interval) { this.interval = interval; start(); } abstract void stop(); abstract void reset(bool immediately = false, bool once = false); void reset(size_t interval) { this.interval = interval; reset(); } void reset(Duration duration) { this.interval = duration; reset(); } protected void onTick() { // trace("tick thread id: ", getTid()); if (ticked !is null) ticked(this); } } /** * See_also: * https://www.codeproject.com/articles/146617/simple-c-timer-wrapper * https://msdn.microsoft.com/en-us/library/ms687003(v=vs.85) */ class NativeTimer : AbstractNativeTimer { protected HANDLE _handle = null; this() { super(1000); } this(size_t interval) { super(interval); } this(Duration duration) { super(duration); } /// immediately: true to call first event immediately /// once: true to call timed event only once override void start(bool immediately = false, bool once = false) { version (HUNT_DEBUG) trace("main thread id: ", thisThreadID()); if (_isActive) return; BOOL r = CreateTimerQueueTimer(&_handle, null, &timerProc, cast(PVOID) this, immediately ? 0 : cast(int) interval, once ? 0 : cast(int) interval, WT_EXECUTEINTIMERTHREAD); assert(r != 0); _isActive = true; } override void stop() { if (_isActive) { DeleteTimerQueueTimer(null, _handle, null); _isActive = false; } } override void reset(bool immediately = false, bool once = false) { if (_isActive) { assert(ChangeTimerQueueTimer(null, _handle, immediately ? 0 : cast(int) interval, once ? 0 : cast(int) interval) != 0); } } /// https://msdn.microsoft.com/en-us/library/ms687066(v=vs.85) extern (Windows) static private void timerProc(PVOID param, bool timerCalled) { version (HUNT_DEBUG) trace("handler thread id: ", thisThreadID()); AbstractNativeTimer timer = cast(AbstractNativeTimer)(param); assert(timer !is null); timer.onTick(); } }
D
#!/usr/bin/env rdmd-dev-module /** Computer Science Units. Copyright: Per Nordlöw 2018-. License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: $(WEB Per Nordlöw) */ module csunits; /** Prefix Multipliers. See_Also: http://searchstorage.techtarget.com/definition/Kilo-mega-giga-tera-peta-and-all-that */ enum PrefixMultipliers { yocto = -24, // y zepto = -21, // z atto = -18, // a femto = -15, // f pico = -12, // p nano = -9, // n micro = -6, // m milli = -3, // m centi = -2, // c deci = -1, // d none = 0, deka = 1, // D hecto = 2, // h kilo = 3, // k mega = 6, // M giga = 9, // G tera = 12, // T peta = 15, // P exa = 18, // E zetta = 21, // Z yotta = 24, // Y } /** Bytes (Count) Unit. */ struct Bytes(T: ulong) { alias _value this; inout(T) value() @property inout @safe pure nothrow { return _value; } /** See_Also: http://searchstorage.techtarget.com/definition/Kilo-mega-giga-tera-peta-and-all-that See_Also: https://en.wikipedia.org/wiki/Exabyte */ string toString(bool inBits = false) const @property @trusted /* pure nothrow */ { // import std.traits : Unqual; string name = void; T val = void; if (inBits) { name = "Bits"; // Unqual!(typeof(this)).stringof; // Unqual: "const(Bytes)" => "Bytes" val = 8*_value; } else { name = "Bytes"; // Unqual!(typeof(this)).stringof; // Unqual: "const(Bytes)" => "Bytes" val = _value; } import std.conv : to; if (val < 1024^^1) { return to!string(val) ~ " " ~ name; } else if (val < 1024^^2) { return to!string(cast(real)val / 1024^^1) ~ " kilo" ~ name; } else if (val < 1024^^3) { return to!string(cast(real)val / 1024^^2) ~ " Mega" ~ name; } else if (val < 1024^^4) { return to!string(cast(real)val / 1024^^3) ~ " Giga" ~ name; } else if (val < 1024^^5) { return to!string(cast(real)val / 1024^^4) ~ " Tera" ~ name; } else if (val < 1024^^6) { return to!string(cast(real)val / 1024^^5) ~ " Peta" ~ name; } else if (val < 1024^^7) { return to!string(cast(real)val / 1024^^6) ~ " Exa" ~ name; } else if (val < 1024^^8) { return to!string(cast(real)val / 1024^^7) ~ " Zetta" ~ name; } else /* if (val < 1024^^9) */ { return to!string(cast(real)val / 1024^^8) ~ " Yotta" ~ name; /* } else { */ /* return to!string(val) ~ " " ~ name; */ } } T opUnary(string op, string file = __FILE__, int line = __LINE__)() { T tmp = void; mixin("tmp = " ~ op ~ " _value;"); return tmp; } T opBinary(string op, string file = __FILE__, int line = __LINE__)(T rhs) { T tmp = void; mixin("tmp = _value " ~ op ~ "rhs;"); return tmp; } T opOpAssign(string op, string file = __FILE__, int line = __LINE__)(T rhs) { mixin("_value = _value " ~ op ~ "rhs;"); return _value; } T opAssign(T rhs, string file = __FILE__, int line = __LINE__) { return _value = rhs; } /* private: */ T _value; } /** $(D Bytes) Instantiator. */ auto bytes(T)(T value) { return Bytes!T(value); } @safe pure nothrow @nogc unittest { immutable a = bytes(1); immutable b = bytes(1); immutable c = a + b; assert(c == 2); assert(1.bytes == 1); } auto inPercent (T)(T a) { return to!string(a * 1e2) ~ " \u0025"; } auto inPerMille (T)(T a) { return to!string(a * 1e3) ~ " \u2030"; } auto inPerTenThousand(T)(T a) { return to!string(a * 1e4) ~ " \u2031"; } auto inDegrees (T)(T a) { return to!string(a ) ~ " \u00B0"; }
D
/Users/Mandy_Cho/Documents/GetSwifty/Voice/DerivedData/Voice/Build/Intermediates/Voice.build/Debug-iphonesimulator/Voice.build/Objects-normal/x86_64/SwiftyJSON.o : /Users/Mandy_Cho/Documents/GetSwifty/Voice/Voice/DetailViewController.swift /Users/Mandy_Cho/Documents/GetSwifty/Voice/Voice/MasterViewController.swift /Users/Mandy_Cho/Documents/GetSwifty/Voice/Voice/AppDelegate.swift /Users/Mandy_Cho/Documents/GetSwifty/Voice/Voice/SwiftyJSON.swift /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/Foundation.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/Dispatch.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/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/Mandy_Cho/Documents/GetSwifty/Voice/DerivedData/Voice/Build/Intermediates/Voice.build/Debug-iphonesimulator/Voice.build/Objects-normal/x86_64/SwiftyJSON~partial.swiftmodule : /Users/Mandy_Cho/Documents/GetSwifty/Voice/Voice/DetailViewController.swift /Users/Mandy_Cho/Documents/GetSwifty/Voice/Voice/MasterViewController.swift /Users/Mandy_Cho/Documents/GetSwifty/Voice/Voice/AppDelegate.swift /Users/Mandy_Cho/Documents/GetSwifty/Voice/Voice/SwiftyJSON.swift /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/Foundation.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/Dispatch.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/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/Mandy_Cho/Documents/GetSwifty/Voice/DerivedData/Voice/Build/Intermediates/Voice.build/Debug-iphonesimulator/Voice.build/Objects-normal/x86_64/SwiftyJSON~partial.swiftdoc : /Users/Mandy_Cho/Documents/GetSwifty/Voice/Voice/DetailViewController.swift /Users/Mandy_Cho/Documents/GetSwifty/Voice/Voice/MasterViewController.swift /Users/Mandy_Cho/Documents/GetSwifty/Voice/Voice/AppDelegate.swift /Users/Mandy_Cho/Documents/GetSwifty/Voice/Voice/SwiftyJSON.swift /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/Foundation.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/Dispatch.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/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
D
/* * Copyright (c) 2017-2018 sel-project * * 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. * */ /** * Copyright: 2017-2018 sel-project * License: MIT * Authors: Kripth * Source: $(HTTP github.com/sel-project/selery/source/selery/entity/util.d, selery/entity/util.d) */ module selery.entity.util; import std.traits : isFinalClass, isAbstractClass; import selery.entity.entity : Entity; /** * Example: * --- * alias ZombieProjection = Projection!(Noai!Zombie, "direction-10,y+5"); * auto zombie = world.spawn!ZombieProjection; * zombie.attach(player); * --- */ template Projection(T:Entity, string algorithm="") if(!isFinalClass!T && !isAbstractClass!T) { //TODO check algorithm class Projection : T { public this(E...)(E args) { super(args); } public override void tick() { super.tick(); //TODO do programmed moves } public void attach(Player player) { player += &move_event; } public void move_event(PlayerMoveEvent event) { int x = event.position.x; int y = event.position.y; int z = event.position.z; //TODO move using the algorithm directives // [x y z direction] [+ - * / pow log] [float auto] } } } /** * Example: * --- * alias ChickenFollower = Follower!(Noai!Chicken); * auto chicken = world.spawn!ChickenFollower(); * chicken.follow(player!"Kripth"); * --- */ template Follower(T:Entity) if(!isFinalClass!T && !isAbstractClass!T) { class Follower : T { public this(E...)(E args) { super(args); } public void follow(Entity entity) {} public void unfollow() {} } }
D
module content.sound; import content, sound.sound, util.strings; struct SoundID { import derelict.sdl2.mixer; uint index; } struct SoundManager { alias Table = ResourceTable!(Sound, sound.sound.obliterate); private static Table resources; static init(A)(ref A allocator, uint capacity) { resources = Table(allocator, capacity); import content.reloading; FileExtention[5] exts = [ FileExtention.ogg, FileExtention.wav, FileExtention.aiff, FileExtention.riff, FileExtention.voc ]; ContentReloader.registerReloader(AssetType.sound, exts, &auto_reload); } static void shutdown() { foreach(ref resource; resources) resource.obliterate(); } void auto_reload(const(char)[] path) { reload(path); } static SoundID load(const(char)[] path) { auto index = resources.indexOf(path); if(index != -1) return SoundID(index); import std.path; const(char)* c_path = buildPath(resourceDir, path).toCString(); auto sound = loadSound(c_path); index = resources.add(sound, path); return SoundID(index); } static void unload(const(char)[] path) { resources.remove(path); } static SoundID reload(const(char)[] path, uint paramConfig = 0) { auto index = resources.indexOf(path); if (index == -1) { return load(path); } import std.path; const(char)* c_path = buildPath(resourceDir, path).toCString(); auto tex = loadSound(c_path); resources.replace(tex, path); return SoundID(index); } static bool isLoaded(const(char)[] path) { import std.algorithm; return resources.indexOf(path) != -1; } static ref Sound lookup(SoundID id) { return resources[id.index]; } } Sound loadSound(const(char*) path) { import derelict.sdl2.mixer, std.conv; Mix_Chunk* chunk = Mix_LoadWAV(path); assert(chunk, text("Failed to load sound! ", path)); return Sound(chunk); }
D
//This is the base file to be imported, which automatically includes all //of the essential parts of the Magra game engine. module magra.base; public import derelict.sdl2.sdl; public import derelict.sdl2.mixer; public import derelict.sdl2.image; public import derelict.sdl2.ttf; public import magra.actor; public import magra.actorlist; public import magra.gameloop; public import magra.video; public import magra.canvas; public import magra.layer; public import magra.drawer; public import magra.sound; public import magra.input; public import magra.confighandler; public import magra.init; public import magra.resource; public import magra.globals; public import magra.directories;
D
/Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Cipher/CipherProtocol.swift.o : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/CipherProtocol~partial.swiftmodule : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/CipherProtocol~partial.swiftdoc : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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
import std.stdio; import entity; import std.json; @Table("user") class User { @AutoIncrement @PrimaryKey int id; @NotNull string name; float money; string status; } @Table("blog") class Blog { @AutoIncrement @PrimaryKey int id; int uid; string title; string context; } string display(User user) { with(user) { JSONValue json; json["id"] = id; json["name"] = name; json["money"] = money; json["status"] = status; return json.toString; } } void main() { writeln("Edit source/app.d to start your project."); DatabaseConfig config = new DatabaseConfig("mysql://dev:111111@10.1.11.31:3306/blog?charset=utf-8"); config.setMaximumConnection = 1; EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("mysql",config); EntityManager entitymanager = entityManagerFactory.createEntityManager!(User,Blog); auto dialect = entitymanager.dialect; int test = 1; writeln(dialect.toSqlValue!(int)(test)); }
D
module std.container.util; import std.algorithm; /** Returns an initialized object. This function is mainly for eliminating construction differences between structs and classes. It allows code to not worry about whether the type it's constructing is a struct or a class. */ template make(T) if (is(T == struct) || is(T == class)) { T make(Args...)(Args arguments) if (is(T == struct) && __traits(compiles, T(arguments))) { return T(arguments); } T make(Args...)(Args arguments) if (is(T == class) && __traits(compiles, new T(arguments))) { return new T(arguments); } } /// unittest { import std.container; auto arr = make!(Array!int)([4, 2, 3, 1]); assert(equal(arr[], [4, 2, 3, 1])); auto rbt = make!(RedBlackTree!(int, "a > b"))([4, 2, 3, 1]); assert(equal(rbt[], [4, 3, 2, 1])); alias makeList = make!(SList!int); auto slist = makeList(1, 2, 3); assert(equal(slist[], [1, 2, 3])); } unittest { import std.container; auto arr1 = make!(Array!dchar)(); assert(arr1.empty); auto arr2 = make!(Array!dchar)("hello"d); assert(equal(arr2[], "hello"d)); auto rtb1 = make!(RedBlackTree!dchar)(); assert(rtb1.empty); auto rtb2 = make!(RedBlackTree!dchar)('h', 'e', 'l', 'l', 'o'); assert(equal(rtb2[], "ehlo"d)); } // Issue 8895 unittest { import std.container; auto a = make!(DList!int)(1,2,3,4); auto b = make!(DList!int)(1,2,3,4); auto c = make!(DList!int)(1,2,3,5); auto d = make!(DList!int)(1,2,3,4,5); assert(a == b); // this better terminate! assert(a != c); assert(a != d); } /** * Convenience function for constructing a generic container. */ template make(alias Container, Args...) if(!is(Container)) { import std.range : isInputRange; import std.traits : isDynamicArray; auto make(Range)(Range range) if(!isDynamicArray!Range && isInputRange!Range) { import std.range : ElementType; return .make!(Container!(ElementType!Range, Args))(range); } auto make(T)(T[] items...) { return .make!(Container!(T, Args))(items); } } /// unittest { import std.container.array, std.container.rbtree, std.container.slist; import std.range : iota; auto arr = make!Array(iota(5)); assert(equal(arr[], [0, 1, 2, 3, 4])); auto rbtmax = make!(RedBlackTree, "a > b")(iota(5)); assert(equal(rbtmax[], [4, 3, 2, 1, 0])); auto rbtmin = make!RedBlackTree(4, 1, 3, 2); assert(equal(rbtmin[], [1, 2, 3, 4])); alias makeList = make!SList; auto list = makeList(1, 7, 42); assert(equal(list[], [1, 7, 42])); } unittest { import std.container.rbtree; auto rbtmin = make!(RedBlackTree, "a < b", false)(3, 2, 2, 1); assert(equal(rbtmin[], [1, 2, 3])); }
D
INSTANCE Info_Mod_Skinner_Hi (C_INFO) { npc = Mod_964_BDT_Skinner_MT; nr = 1; condition = Info_Mod_Skinner_Hi_Condition; information = Info_Mod_Skinner_Hi_Info; permanent = 0; important = 0; description = "Hallo ..."; }; FUNC INT Info_Mod_Skinner_Hi_Condition() { if (Npc_KnowsInfo(hero, Info_Mod_Dexter_Hi)) { return 1; }; }; FUNC VOID Info_Mod_Skinner_Hi_Info() { AI_Output(hero, self, "Info_Mod_Skinner_Hi_15_00"); //Hallo ... AI_Output(self, hero, "Info_Mod_Skinner_Hi_24_01"); //(mürrisch) Warum weckst du mich? Siehst du nicht, dass ich mich gerade ausruhe? AI_Output(hero, self, "Info_Mod_Skinner_Hi_15_02"); //Ich ... AI_Output(self, hero, "Info_Mod_Skinner_Hi_24_03"); //Aber warte, du bist doch der Neue. Jetzt, da du schon mal hier bist, kann ich dir ein großartiges Angebot unterbreiten. AI_Output(hero, self, "Info_Mod_Skinner_Hi_15_04"); //Worum geht’s? AI_Output(self, hero, "Info_Mod_Skinner_Hi_24_05"); //Du bist ja noch nicht lange dabei und willst sicher schnell im Lager aufsteigen, Ansehen gewinnen. Ich kann dir dabei helfen. AI_Output(self, hero, "Info_Mod_Skinner_Hi_24_06"); //Dazu musst du nur ein paar Sachen meinen Geschäftspartnern vorbeibringen, dich von ihnen bezahlen lassen und mir Gold und Sonstiges, was du von ihnen bekommst, herbringen. AI_Output(hero, self, "Info_Mod_Skinner_Hi_15_07"); //Was springt für mich dabei raus? AI_Output(self, hero, "Info_Mod_Skinner_Hi_24_08"); //Was?! Ist es nicht schon Entlohnung genug, dass du mir ... äh, dem Lager helfen kannst? AI_Output(self, hero, "Info_Mod_Skinner_Hi_24_09"); //Aber warte, da fällt mir etwas ein. Ich habe da noch einen mächtigen magischen Ring, der deine Stärke erheblich beeinflusst. AI_Output(self, hero, "Info_Mod_Skinner_Hi_24_10"); //Den kriegst du dann noch zusätzlich zu dem ganzen Ruhm. Was sagst du? Info_ClearChoices (Info_Mod_Skinner_Hi); Info_AddChoice (Info_Mod_Skinner_Hi, "Ich spiel doch nicht deinen Laufburschen.", Info_Mod_Skinner_Hi_B); Info_AddChoice (Info_Mod_Skinner_Hi, "Ich mach's.", Info_Mod_Skinner_Hi_A); }; FUNC VOID Info_Mod_Skinner_Hi_B() { AI_Output(hero, self, "Info_Mod_Skinner_Hi_B_15_00"); //Ich spiel doch nicht deinen Laufburschen. AI_Output(self, hero, "Info_Mod_Skinner_Hi_B_24_01"); //(verärgert) Dann eben nicht. Und jetzt verpiss dich! Info_ClearChoices (Info_Mod_Skinner_Hi); AI_StopProcessInfos (self); }; FUNC VOID Info_Mod_Skinner_Hi_A() { AI_Output(hero, self, "Info_Mod_Skinner_Hi_A_15_00"); //Ich mach's. AI_Output(self, hero, "Info_Mod_Skinner_Hi_A_24_01"); //Na also, du weißt, was ein gutes Angebot ist. AI_Output(self, hero, "Info_Mod_Skinner_Hi_A_24_02"); //Also, ich habe hier dieses Sumpfkraut. Habe ich mal einem Spinner abgenommen, der sich selbst Baal Netbek nannte, aber das tut nichts zur Sache. AI_Output(self, hero, "Info_Mod_Skinner_Hi_A_24_03"); //Du wirst es jedenfalls meinen Kunden bringen. CreateInvItems (hero, ItMi_Traumruf, 10); CreateInvItems (hero, ItMi_Addon_Joint_01, 7); CreateInvItems (hero, ItMi_Addon_Joint_02, 12); B_ShowGivenThings ("Sumpfkrautstängel erhalten"); AI_Output(self, hero, "Info_Mod_Skinner_Hi_A_24_04"); //Bei den Dämonenkriegern gibt es da Eduard. Der raucht massenweise Traumrufe weg. 4 bis 8 Stück solltest du schon bei ihm wegbekommen. Pro Traumruf sind 80 Gold fällig. AI_Output(self, hero, "Info_Mod_Skinner_Hi_A_24_05"); //Dann gibt es noch Andokai bei den Dämonenmagiern. Er raucht das Zeug, sagt er, um in Trance seinem Meister näher sein zu können. AI_Output(self, hero, "Info_Mod_Skinner_Hi_A_24_06"); //Er nimmt dir auf jeden Fall ein paar Traumrufe und bestimmt noch einige schwarze Weise ab. Für jeden schwarzen Weisen sind 40 Goldstücke fällig und für jeden grünen Novizen 20. AI_Output(self, hero, "Info_Mod_Skinner_Hi_A_24_07"); //Ach ja, mein Kumpel Edgor hat noch was gut bei mir. Ich denke mit 3 grünen Novizen sollte das abgegolten sein. AI_Output(self, hero, "Info_Mod_Skinner_Hi_A_24_08"); //Den Rest verscherbelst du in der Stadt im unteren Viertel. Da gibt’s immer Abnehmer. Alles klar? AI_Output(self, hero, "Info_Mod_Skinner_Hi_A_24_09"); //Ich erwarte dann mindestens 1200 Gold von dir. Den Rest kannst du behalten und bekommst dann noch die versprochene Belohnung bei mir. Mod_SkinnerQuest = 1; Info_ClearChoices (Info_Mod_Skinner_Hi); B_StartOtherRoutine (self, "WANTTOTELLMORE"); }; INSTANCE Info_Mod_Skinner_Laufbursche (C_INFO) { npc = Mod_964_BDT_Skinner_MT; nr = 1; condition = Info_Mod_Skinner_Laufbursche_Condition; information = Info_Mod_Skinner_Laufbursche_Info; permanent = 0; important = 1; }; FUNC INT Info_Mod_Skinner_Laufbursche_Condition() { if (Npc_KnowsInfo(hero, Info_Mod_Skinner_Hi)) && (Mod_SkinnerQuest == 1) { return 1; }; }; FUNC VOID Info_Mod_Skinner_Laufbursche_Info() { AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche_24_00"); //Ach ja, fast hätte ich es noch vergessen. Ich habe da noch was Schönes, was du Myxir vorbeibringen sollst. Er experimentiert gerade an irgendwelchen neuen Beschwörungszaubern. AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche_24_01"); //Erst mal einige Skelettknochen ... B_GiveInvItems (self, hero, ItAt_SkeletonBone, 20); AI_Output(hero, self, "Info_Mod_Skinner_Laufbursche_15_02"); //Aha ... AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche_24_03"); //... ein paar Goblinknochen ... B_GiveInvItems (self, hero, ItAt_GoblinBone, 14); AI_Output(hero, self, "Info_Mod_Skinner_Laufbursche_15_04"); //Schön ... AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche_24_05"); //... Totenschädel ... B_GiveInvItems (self, hero, ItAt_SkeletonHead, 4); AI_Output(hero, self, "Info_Mod_Skinner_Laufbursche_15_06"); //Was noch? AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche_24_07"); //... zwei Köpfe ... B_GiveInvItems (self, hero, ItMi_Addon_Bloodwyn_Kopf, 2); AI_Output(hero, self, "Info_Mod_Skinner_Laufbursche_15_08"); //Wie nett ... AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche_24_09"); //Ach, und hier noch der ganze Rest. CreateInvItems (hero, ItPo_Blood, 17); CreateInvItems (hero, ItFoMuttonZombie, 12); CreateInvItems (hero, ItAt_DemonHeart, 1); AI_Output(hero, self, "Info_Mod_Skinner_Laufbursche_15_10"); //Woher ... AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche_24_11"); //Frag besser nicht, willst du gar nicht wissen. AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche_24_12"); //Du kriegst dann im Gegenzug je eine Beschwörungsspruchrolle für Wolf, Golem und Dämon von ihm. AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche_24_13"); //Dafür kriege ich einen guten Preis bei den Verwandlungsmagiern, die sich dafür interessieren, inwieweit ihre Verwandlungsmagie den unheiligen Beschwörungszaubern für Tiere ähnelt. AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche_24_14"); //Soll mir recht sein, solange sie genug Gold haben. Ach ja, da wir schon dabei sind: Das kannst du auch gleich machen. AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche_24_15"); //Kostet die Jungs 800 Gold und eine Verwandlung-Hase-Spruchrolle. AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche_24_16"); //Das Geschäft machst du mit Albert, der draußen, links vom Eingang des verfallenen Klosters über einen umgestürzten Baumstamm zu erreichen ist. AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche_24_17"); //Jetzt mach dich aber auf den Weg. Das Zeug beginnt nämlich langsam zu riechen. Log_CreateTopic (TOPIC_MOD_BDT_SKINNER, LOG_MISSION); B_SetTopicStatus (TOPIC_MOD_BDT_SKINNER, LOG_RUNNING); B_LogEntry (TOPIC_MOD_BDT_SKINNER, "Na schön, da habe ich jetzt einige Laufarbeit vor mir. Eduard kriegt Traumrufe für 80 Gold das Stück, Edgor bekommt drei grüne Novizen geschenkt, Andokai erhält für 80 Gold Traumrufe und für 40 Gold schwarze Weise. Den Rest soll ich in der Stadt loswerden, wobei 20 Gold für den grünen Novizen zu erwarten sind. Dann muss ich noch einen Haufen Aas dämonischer und untoter Geschöpfe Myxir überbringen und soll dafür drei Beschwörungsspruchrollen bekommen. Diese sollen dann wiederrum zurück ins Minental zu den Verwandlungsmagiern, wo ich von Albert, den ich außerhalb des Klosters links vom Eingang finden kann, dafür 800 Gold und eine Verwandlungsspruchrolle Hase erhalten soll. Skinner erwartet dann insgesamt 2000 Gold und die Hasenspruchrolle von mir. Dafür hat er mir einen magischen Ring in Aussicht gestellt, der die Stärke des Trägers 'erheblich beeinflussen' soll. Ich hoffe, dieser ist die ganze Mühe wert."); B_StartOtherRoutine (self, "START"); }; INSTANCE Info_Mod_Skinner_Laufbursche2 (C_INFO) { npc = Mod_964_BDT_Skinner_MT; nr = 1; condition = Info_Mod_Skinner_Laufbursche2_Condition; information = Info_Mod_Skinner_Laufbursche2_Info; permanent = 0; important = 0; description = "Da bin ich wieder."; }; FUNC INT Info_Mod_Skinner_Laufbursche2_Condition() { if (Npc_KnowsInfo(hero, Info_Mod_Skinner_Laufbursche)) && ((Mod_SkinnerQuest == 1) || (Mod_SkinnerQuest == 2)) && (Npc_KnowsInfo(hero, Info_Mod_Eduard_Skinner)) && (Npc_KnowsInfo(hero, Info_Mod_Andokai_Skinner)) && (Npc_KnowsInfo(hero, Info_Mod_Myxir_Skinner)) && (Npc_KnowsInfo(hero, Info_Mod_Edgor_Skinner)) && (Npc_KnowsInfo(hero, Info_Mod_Albert_Skinner)) && (Npc_HasItems(hero, ItMi_Gold) >= 2000) && (Npc_HasItems(hero, ItSc_TrfRabbit) >= 1) { return 1; }; }; FUNC VOID Info_Mod_Skinner_Laufbursche2_Info() { AI_Output(hero, self, "Info_Mod_Skinner_Laufbursche2_15_00"); //Hier, ich habe alles abgeworfen, was du mir mitgegeben hast und auch alles dabei, was du dafür haben wolltest. AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche2_24_01"); //Ah, gut, gib her. Mod_SkinnerQuest = 2; Info_ClearChoices (Info_Mod_Skinner_Laufbursche2); Info_AddChoice (Info_Mod_Skinner_Laufbursche2, "Ich denke, ich behalte das Gold und die Spruchrollen.", Info_Mod_Skinner_Laufbursche2_C); Info_AddChoice (Info_Mod_Skinner_Laufbursche2, "Was ist mit dem Ring?", Info_Mod_Skinner_Laufbursche2_B); Info_AddChoice (Info_Mod_Skinner_Laufbursche2, "Hier hast du das Gold und die Verwandlungsspruchrolle.", Info_Mod_Skinner_Laufbursche2_A); }; FUNC VOID Info_Mod_Skinner_Laufbursche2_C() { AI_Output(hero, self, "Info_Mod_Skinner_Laufbursche2_C_15_00"); //Ich denke, ich behalte das Gold und die Spruchrollen. Info_ClearChoices (Info_Mod_Skinner_Laufbursche2); AI_StopProcessInfos (self); B_Attack (self, hero, AR_None, 0); B_SetTopicStatus (TOPIC_MOD_BDT_SKINNER, LOG_FAILED); }; FUNC VOID Info_Mod_Skinner_Laufbursche2_B() { AI_Output(hero, self, "Info_Mod_Skinner_Laufbursche2_B_15_00"); //Was ist mit dem Ring? AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche2_B_24_01"); //Ja, hier hast du den Ring und die Sachen nehme ich an mich. CreateInvItems (hero, ItRi_SkinnersRing, 1); Npc_RemoveInvItems (hero, ItSc_TrfRabbit, 1); Npc_RemoveInvItems (hero, ItMi_Gold, 2000); B_ShowGivenThings ("Verwitterter Ring erhalten und Spruchrolle und Gold gegeben"); AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche2_B_24_02"); //Habe ich zu viel versprochen? (lacht hämisch) Aber bei deinem Botengang ist ja auch bestimmt genug für dich abgefallen. Info_ClearChoices (Info_Mod_Skinner_Laufbursche2); B_GivePlayerXP (500); B_SetTopicStatus (TOPIC_MOD_BDT_SKINNER, LOG_SUCCESS); B_Göttergefallen(3, 1); }; FUNC VOID Info_Mod_Skinner_Laufbursche2_A() { AI_Output(hero, self, "Info_Mod_Skinner_Laufbursche2_A_15_00"); //Hier hast du das Gold und die Verwandlungsspruchrolle. Npc_RemoveInvItems (hero, ItSc_TrfRabbit, 1); Npc_RemoveInvItems (hero, ItMi_Gold, 2000); B_ShowGivenThings ("Spruchrolle und Gold gegeben"); AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche2_A_24_01"); //Sehr gut, hier hast du den Ring. B_GiveInvItems (self, hero, ItRi_SkinnersRing, 1); AI_Output(self, hero, "Info_Mod_Skinner_Laufbursche2_B_24_02"); //Habe ich zu viel versprochen? (lacht hämisch) Aber bei deinem Botengang ist ja auch bestimmt genug für dich abgefallen. Info_ClearChoices (Info_Mod_Skinner_Laufbursche2); B_GivePlayerXP (500); B_SetTopicStatus (TOPIC_MOD_BDT_SKINNER, LOG_SUCCESS); }; INSTANCE Info_Mod_Skinner_Orkjagd (C_INFO) { npc = Mod_964_BDT_Skinner_MT; nr = 1; condition = Info_Mod_Skinner_Orkjagd_Condition; information = Info_Mod_Skinner_Orkjagd_Info; permanent = 0; important = 0; description = "Es gibt was zu tun. Komm heute um Mitternacht vors Lager."; }; FUNC INT Info_Mod_Skinner_Orkjagd_Condition() { if (Npc_KnowsInfo(hero, Info_Mod_Morgahard_OrkQuest)) && (Mod_Orks_Morgahard == 1) { return 1; }; }; FUNC VOID Info_Mod_Skinner_Orkjagd_Info() { AI_Output(hero, self, "Info_Mod_Skinner_Orkjagd_15_00"); //Es gibt was zu tun. Komm heute Nacht um Mitternacht vors Lager. Wir gehen auf Orkjagd. AI_Output(self, hero, "Info_Mod_Skinner_Orkjagd_24_01"); //(mürrisch) Mir ist aber nicht danach Orks zu jagen. Außerdem habe ich noch was anderes zu tun. AI_StopProcessInfos (self); CreateInvItems (self, ItFo_Booze, 1); B_UseItem (self, ItFo_Booze); }; INSTANCE Info_Mod_Skinner_Orkjagd2 (C_INFO) { npc = Mod_964_BDT_Skinner_MT; nr = 1; condition = Info_Mod_Skinner_Orkjagd2_Condition; information = Info_Mod_Skinner_Orkjagd2_Info; permanent = 0; important = 0; description = "Das war keine Bitte, sondern ein Befehl von Morgahard."; }; FUNC INT Info_Mod_Skinner_Orkjagd2_Condition() { if (Npc_KnowsInfo(hero, Info_Mod_Skinner_Orkjagd)) && (Mod_Orks_Morgahard == 1) { return 1; }; }; FUNC VOID Info_Mod_Skinner_Orkjagd2_Info() { AI_Output(hero, self, "Info_Mod_Skinner_Orkjagd2_15_00"); //Das war keine Bitte, sondern ein Befehl von Morgahard. AI_Output(self, hero, "Info_Mod_Skinner_Orkjagd2_24_01"); //(mürrisch) Ah, meinetwegen. AI_StopProcessInfos (self); }; INSTANCE Info_Mod_Skinner_Orkjagd3 (C_INFO) { npc = Mod_964_BDT_Skinner_MT; nr = 1; condition = Info_Mod_Skinner_Orkjagd3_Condition; information = Info_Mod_Skinner_Orkjagd3_Info; permanent = 0; important = 0; description = "Skinner, aufstehen, mitkommen, jetzt!"; }; FUNC INT Info_Mod_Skinner_Orkjagd3_Condition() { if (Npc_KnowsInfo(hero, Info_Mod_Skinner_Orkjagd2)) && (Mod_Orks_Morgahard == 3) { return 1; }; }; FUNC VOID Info_Mod_Skinner_Orkjagd3_Info() { AI_Output(hero, self, "Info_Mod_Skinner_Orkjagd3_15_00"); //(energisch) Skinner, aufstehen, mitkommen, jetzt! AI_Output(self, hero, "Info_Mod_Skinner_Orkjagd3_24_01"); //Bah, ich komme ja schon. AI_StopProcessInfos (self); B_StartOtherRoutine (self, "LAGER"); }; INSTANCE Info_Mod_Skinner_Orkjagd4 (C_INFO) { npc = Mod_964_BDT_Skinner_MT; nr = 1; condition = Info_Mod_Skinner_Orkjagd4_Condition; information = Info_Mod_Skinner_Orkjagd4_Info; permanent = 0; important = 1; }; FUNC INT Info_Mod_Skinner_Orkjagd4_Condition() { if (Npc_KnowsInfo(hero, Info_Mod_Skinner_Orkjagd3)) && (Npc_GetDistToWP(self, "OW_PATH_188") < 300) { return 1; }; }; FUNC VOID Info_Mod_Skinner_Orkjagd4_Info() { AI_Output(self, hero, "Info_Mod_Skinner_Orkjagd4_24_00"); //Na, lass uns endlich losgehen. Ich habe noch Besseres zu tun. AI_StopProcessInfos (self); B_StartOtherRoutine (self, "ORKJAGD"); self.aivar[AIV_Partymember] = TRUE; if (Npc_GetDistToWP(Mod_4072_BDT_Bandit_MT, "OW_PATH_188") < 500) { B_StartOtherRoutine (Mod_4072_BDT_Bandit_MT, "HOEHLE"); Mod_4072_BDT_Bandit_MT.aivar[AIV_Partymember] = TRUE; }; if (Npc_GetDistToWP(Mod_4073_BDT_Bandit_MT, "OW_PATH_188") < 500) { B_StartOtherRoutine (Mod_4073_BDT_Bandit_MT, "HOEHLE"); Mod_4073_BDT_Bandit_MT.aivar[AIV_Partymember] = TRUE; }; if (Npc_GetDistToWP(Mod_4074_BDT_Bandit_MT, "OW_PATH_188") < 500) { B_StartOtherRoutine (Mod_4074_BDT_Bandit_MT, "HOEHLE"); Mod_4074_BDT_Bandit_MT.aivar[AIV_Partymember] = TRUE; }; if (Npc_GetDistToWP(Mod_4075_BDT_Bandit_MT, "OW_PATH_188") < 500) { B_StartOtherRoutine (Mod_4075_BDT_Bandit_MT, "HOEHLE"); Mod_4075_BDT_Bandit_MT.aivar[AIV_Partymember] = TRUE; }; }; INSTANCE Info_Mod_Skinner_Orkjagd5 (C_INFO) { npc = Mod_964_BDT_Skinner_MT; nr = 1; condition = Info_Mod_Skinner_Orkjagd5_Condition; information = Info_Mod_Skinner_Orkjagd5_Info; permanent = 0; important = 1; }; FUNC INT Info_Mod_Skinner_Orkjagd5_Condition() { if (Npc_KnowsInfo(hero, Info_Mod_Skinner_Orkjagd3)) && (Npc_GetDistToWP(self, "OW_PATH_188") < 300) { return 1; }; }; FUNC VOID Info_Mod_Skinner_Orkjagd5_Info() { AI_Output(self, hero, "Info_Mod_Skinner_Orkjagd5_24_00"); //So, jetzt aber leise. AI_StopProcessInfos (self); }; INSTANCE Info_Mod_Skinner_Orkjagd6 (C_INFO) { npc = Mod_964_BDT_Skinner_MT; nr = 1; condition = Info_Mod_Skinner_Orkjagd6_Condition; information = Info_Mod_Skinner_Orkjagd6_Info; permanent = 0; important = 1; }; FUNC INT Info_Mod_Skinner_Orkjagd6_Condition() { if (Npc_KnowsInfo(hero, Info_Mod_Skinner_Orkjagd3)) && (Npc_IsDead(OrkWarrior_BDTPatroullie)) && (Npc_IsDead(OrkScout_BDTPatroullie_01)) && (Npc_IsDead(OrkScout_BDTPatroullie_02)) && (Npc_IsDead(OrkScout_BDTPatroullie_03)) { return 1; }; }; FUNC VOID Info_Mod_Skinner_Orkjagd6_Info() { AI_Output(self, hero, "Info_Mod_Skinner_Orkjagd6_24_00"); //So, ich gehe wieder zurück, das war genug Stress für heute. AI_StopProcessInfos (self); Mod_Orks_Morgahard = 4; B_LogEntry (TOPIC_MOD_BDT_MORGAHARD, "Unser Überfall war erfolgreich und die Orks liegen im Staub. Jetzt muss ich nur noch Morgahard von dem Gelingen berichten."); B_StartOtherRoutine (self, "START"); self.aivar[AIV_Partymember] = FALSE; B_StartOtherRoutine (Mod_4072_BDT_Bandit_MT, "START"); Mod_4072_BDT_Bandit_MT.aivar[AIV_Partymember] = FALSE; B_StartOtherRoutine (Mod_4073_BDT_Bandit_MT, "START"); Mod_4073_BDT_Bandit_MT.aivar[AIV_Partymember] = FALSE; B_StartOtherRoutine (Mod_4074_BDT_Bandit_MT, "START"); Mod_4074_BDT_Bandit_MT.aivar[AIV_Partymember] = FALSE; B_StartOtherRoutine (Mod_4075_BDT_Bandit_MT, "START"); Mod_4075_BDT_Bandit_MT.aivar[AIV_Partymember] = FALSE; }; INSTANCE Info_Mod_Skinner_Lehrer (C_INFO) { npc = Mod_964_BDT_Skinner_MT; nr = 1; condition = Info_Mod_Skinner_Lehrer_Condition; information = Info_Mod_Skinner_Lehrer_Info; permanent = 0; important = 0; description = "Kannst du mir was beibringen?"; }; FUNC INT Info_Mod_Skinner_Lehrer_Condition() { if (Npc_KnowsInfo(hero, Info_Mod_Skinner_Hi)) && (Mod_Schwierigkeit != 4) { return 1; }; }; FUNC VOID Info_Mod_Skinner_Lehrer_Info() { B_Say (hero, self, "$KANNSTDUMIRWASBEIBRINGEN"); AI_Output(self, hero, "Info_Mod_Skinner_Lehrer_24_01"); //Ich kann dir den Umgang mit Einhändern beibringen. Log_CreateTopic (TOPIC_MOD_LEHRER_BANDITEN, LOG_NOTE); B_LogEntry (TOPIC_MOD_LEHRER_BANDITEN, "Skinner kann mich im Umgang mit Einhändern unterweisen."); }; INSTANCE Info_Mod_Skinner_Lernen (C_INFO) { npc = Mod_964_BDT_Skinner_MT; nr = 1; condition = Info_Mod_Skinner_Lernen_Condition; information = Info_Mod_Skinner_Lernen_Info; permanent = 1; important = 0; description = "Ich will lernen."; }; FUNC INT Info_Mod_Skinner_Lernen_Condition() { if (Npc_KnowsInfo(hero, Info_Mod_Skinner_Lehrer)) && (Mod_Schwierigkeit != 4) { return 1; }; }; FUNC VOID Info_Mod_Skinner_Lernen_Info() { AI_Output(hero, self, "Info_Mod_Skinner_Lernen_15_00"); //Ich will lernen. Info_ClearChoices (Info_Mod_Skinner_Lernen); Info_AddChoice (Info_Mod_Skinner_Lernen, DIALOG_BACK, Info_Mod_Skinner_Lernen_BACK); Info_AddChoice (Info_Mod_Skinner_Lernen, B_BuildLearnString(PRINT_Learn1h5 , B_GetLearnCostTalent_New(hero, NPC_TALENT_1H)), Info_Mod_Skinner_Lernen_1H_5); Info_AddChoice (Info_Mod_Skinner_Lernen, B_BuildLearnString(PRINT_Learn1h1 , B_GetLearnCostTalent(hero, NPC_TALENT_1H, 1)), Info_Mod_Skinner_Lernen_1H_1); }; FUNC VOID Info_Mod_Skinner_Lernen_BACK() { Info_ClearChoices (Info_Mod_Skinner_Lernen); }; FUNC VOID Info_Mod_Skinner_Lernen_1H_5() { if B_TeachFightTalentPercent_New (self, hero, NPC_TALENT_1H, 5, 60) { Info_ClearChoices (Info_Mod_Skinner_Lernen); Info_AddChoice (Info_Mod_Skinner_Lernen, DIALOG_BACK, Info_Mod_Skinner_Lernen_BACK); Info_AddChoice (Info_Mod_Skinner_Lernen, B_BuildLearnString(PRINT_Learn1h5 , B_GetLearnCostTalent_New(hero, NPC_TALENT_1H)), Info_Mod_Skinner_Lernen_1H_5); Info_AddChoice (Info_Mod_Skinner_Lernen, B_BuildLearnString(PRINT_Learn1h1 , B_GetLearnCostTalent(hero, NPC_TALENT_1H, 1)), Info_Mod_Skinner_Lernen_1H_1); }; }; FUNC VOID Info_Mod_Skinner_Lernen_1H_1() { if B_TeachFightTalentPercent (self, hero, NPC_TALENT_1H, 1, 60) { Info_ClearChoices (Info_Mod_Skinner_Lernen); Info_AddChoice (Info_Mod_Skinner_Lernen, DIALOG_BACK, Info_Mod_Skinner_Lernen_BACK); Info_AddChoice (Info_Mod_Skinner_Lernen, B_BuildLearnString(PRINT_Learn1h5 , B_GetLearnCostTalent_New(hero, NPC_TALENT_1H)), Info_Mod_Skinner_Lernen_1H_5); Info_AddChoice (Info_Mod_Skinner_Lernen, B_BuildLearnString(PRINT_Learn1h1 , B_GetLearnCostTalent(hero, NPC_TALENT_1H, 1)), Info_Mod_Skinner_Lernen_1H_1); }; }; INSTANCE Info_Mod_Skinner_Pickpocket (C_INFO) { npc = Mod_964_BDT_Skinner_MT; nr = 1; condition = Info_Mod_Skinner_Pickpocket_Condition; information = Info_Mod_Skinner_Pickpocket_Info; permanent = 1; important = 0; description = Pickpocket_90; }; FUNC INT Info_Mod_Skinner_Pickpocket_Condition() { C_Beklauen (61, ItMi_Gold, 25); }; FUNC VOID Info_Mod_Skinner_Pickpocket_Info() { Info_ClearChoices (Info_Mod_Skinner_Pickpocket); Info_AddChoice (Info_Mod_Skinner_Pickpocket, DIALOG_BACK, Info_Mod_Skinner_Pickpocket_BACK); Info_AddChoice (Info_Mod_Skinner_Pickpocket, DIALOG_PICKPOCKET, Info_Mod_Skinner_Pickpocket_DoIt); }; FUNC VOID Info_Mod_Skinner_Pickpocket_BACK() { Info_ClearChoices (Info_Mod_Skinner_Pickpocket); }; FUNC VOID Info_Mod_Skinner_Pickpocket_DoIt() { if (B_Beklauen() == TRUE) { Info_ClearChoices (Info_Mod_Skinner_Pickpocket); } else { Info_ClearChoices (Info_Mod_Skinner_Pickpocket); Info_AddChoice (Info_Mod_Skinner_Pickpocket, DIALOG_PP_BESCHIMPFEN, Info_Mod_Skinner_Pickpocket_Beschimpfen); Info_AddChoice (Info_Mod_Skinner_Pickpocket, DIALOG_PP_BESTECHUNG, Info_Mod_Skinner_Pickpocket_Bestechung); Info_AddChoice (Info_Mod_Skinner_Pickpocket, DIALOG_PP_HERAUSREDEN, Info_Mod_Skinner_Pickpocket_Herausreden); }; }; FUNC VOID Info_Mod_Skinner_Pickpocket_Beschimpfen() { B_Say (hero, self, "$PICKPOCKET_BESCHIMPFEN"); B_Say (self, hero, "$DIRTYTHIEF"); Info_ClearChoices (Info_Mod_Skinner_Pickpocket); AI_StopProcessInfos (self); B_Attack (self, hero, AR_Theft, 1); }; FUNC VOID Info_Mod_Skinner_Pickpocket_Bestechung() { B_Say (hero, self, "$PICKPOCKET_BESTECHUNG"); var int rnd; rnd = r_max(99); if (rnd < 25) || ((rnd >= 25) && (rnd < 50) && (Npc_HasItems(hero, ItMi_Gold) < 50)) || ((rnd >= 50) && (rnd < 75) && (Npc_HasItems(hero, ItMi_Gold) < 100)) || ((rnd >= 75) && (rnd < 100) && (Npc_HasItems(hero, ItMi_Gold) < 200)) { B_Say (self, hero, "$DIRTYTHIEF"); Info_ClearChoices (Info_Mod_Skinner_Pickpocket); AI_StopProcessInfos (self); B_Attack (self, hero, AR_Theft, 1); } else { if (rnd >= 75) { B_GiveInvItems (hero, self, ItMi_Gold, 200); } else if (rnd >= 50) { B_GiveInvItems (hero, self, ItMi_Gold, 100); } else if (rnd >= 25) { B_GiveInvItems (hero, self, ItMi_Gold, 50); }; B_Say (self, hero, "$PICKPOCKET_BESTECHUNG_01"); Info_ClearChoices (Info_Mod_Skinner_Pickpocket); AI_StopProcessInfos (self); }; }; FUNC VOID Info_Mod_Skinner_Pickpocket_Herausreden() { B_Say (hero, self, "$PICKPOCKET_HERAUSREDEN"); if (r_max(99) < Mod_Verhandlungsgeschick) { B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_01"); Info_ClearChoices (Info_Mod_Skinner_Pickpocket); } else { B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_02"); }; }; INSTANCE Info_Mod_Skinner_EXIT (C_INFO) { npc = Mod_964_BDT_Skinner_MT; nr = 1; condition = Info_Mod_Skinner_EXIT_Condition; information = Info_Mod_Skinner_EXIT_Info; permanent = 1; important = 0; description = DIALOG_ENDE; }; FUNC INT Info_Mod_Skinner_EXIT_Condition() { return 1; }; FUNC VOID Info_Mod_Skinner_EXIT_Info() { AI_StopProcessInfos (self); };
D
/* * Copyright 2015-2018 HuntLabs.cn * * 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.sql.ast.statement.SQLColumnConstraint; import hunt.sql.ast.statement.SQLConstraint; public interface SQLColumnConstraint : SQLConstraint { SQLColumnConstraint clone(); }
D
/Users/varaprasadp/Desktop/React/Example/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChartDataEntry.o : /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/Legend.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/Description.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/LegendEntry.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /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/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.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/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/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/varaprasadp/Desktop/React/Example/ios/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChartDataEntry~partial.swiftmodule : /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/Legend.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/Description.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/LegendEntry.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /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/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.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/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/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/varaprasadp/Desktop/React/Example/ios/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChartDataEntry~partial.swiftdoc : /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/Legend.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/Description.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Components/LegendEntry.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /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/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.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/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/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/varaprasadp/Desktop/React/Example/ios/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap
D
// @file pointers.d import std.stdio; void main(){ int x = 7; int* px = &x; writeln(x); writeln(*px); }
D
/* * fontconfig/fontconfig/fontconfig.h * * Copyright © 2001 Keith Packard * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyright notice and this permission notice appear in supporting * documentation, and that the name of Keith Packard not be used in * advertising or publicity pertaining to distribution of the software without * specific, written prior permission. Keith Packard makes no * representations about the suitability of this software for any purpose. It * is provided "as is" without express or implied warranty. * * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ module fontconfig.fontconfig; import std.string : toStringz; pragma(lib, "fontconfig"); version(Posix) { import core.sys.posix.sys.stat; alias stat_t* STATP; } else { alias void* STATP; } extern(C): alias char FcChar8; alias ushort FcChar16; alias uint FcChar32; alias int FcBool; /* * Current Fontconfig version number. This same number * must appear in the fontconfig configure.in file. Yes, * it'a a pain to synchronize version numbers like this. */ enum FC_MAJOR = 2; enum FC_MINOR = 8; enum FC_REVISION = 0; enum FC_VERSION = ((FC_MAJOR * 10000) + (FC_MINOR * 100) + (FC_REVISION)); /* * Current font cache file format version * This is appended to the cache files so that multiple * versions of the library will peacefully coexist * * Change this value whenever the disk format for the cache file * changes in any non-compatible way. Try to avoid such changes as * it means multiple copies of the font information. */ enum FC_CACHE_VERSION = "3"; enum FcTrue = 1; enum FcFalse = 0; enum FC_FAMILY = "family"; /* String */ enum FC_STYLE = "style"; /* String */ enum FC_SLANT = "slant"; /* Int */ enum FC_WEIGHT = "weight"; /* Int */ enum FC_SIZE = "size"; /* Double */ enum FC_ASPECT = "aspect"; /* Double */ enum FC_PIXEL_SIZE = "pixelsize"; /* Double */ enum FC_SPACING = "spacing"; /* Int */ enum FC_FOUNDRY = "foundry"; /* String */ enum FC_ANTIALIAS = "antialias"; /* Bool (depends) */ enum FC_HINTING = "hinting"; /* Bool (true) */ enum FC_HINT_STYLE = "hintstyle"; /* Int */ enum FC_VERTICAL_LAYOUT = "verticallayout"; /* Bool (false) */ enum FC_AUTOHINT = "autohint"; /* Bool (false) */ enum FC_GLOBAL_ADVANCE = "globaladvance"; /* Bool (true) */ enum FC_WIDTH = "width"; /* Int */ enum FC_FILE = "file"; /* String */ enum FC_INDEX = "index"; /* Int */ enum FC_FT_FACE = "ftface"; /* FT_Face */ enum FC_RASTERIZER = "rasterizer"; /* String */ enum FC_OUTLINE = "outline"; /* Bool */ enum FC_SCALABLE = "scalable"; /* Bool */ enum FC_SCALE = "scale"; /* double */ enum FC_DPI = "dpi"; /* double */ enum FC_RGBA = "rgba"; /* Int */ enum FC_MINSPACE = "minspace"; /* Bool use minimum line spacing */ enum FC_SOURCE = "source"; /* String (deprecated) */ enum FC_CHARSET = "charset"; /* CharSet */ enum FC_LANG = "lang"; /* String RFC 3066 langs */ enum FC_FONTVERSION = "fontversion"; /* Int from 'head' table */ enum FC_FULLNAME = "fullname"; /* String */ enum FC_FAMILYLANG = "familylang"; /* String RFC 3066 langs */ enum FC_STYLELANG = "stylelang"; /* String RFC 3066 langs */ enum FC_FULLNAMELANG = "fullnamelang"; /* String RFC 3066 langs */ enum FC_CAPABILITY = "capability"; /* String */ enum FC_FONTFORMAT = "fontformat"; /* String */ enum FC_EMBOLDEN = "embolden"; /* Bool - true if emboldening needed*/ enum FC_EMBEDDED_BITMAP = "embeddedbitmap"; /* Bool - true to enable embedded bitmaps */ enum FC_DECORATIVE = "decorative"; /* Bool - true if style is a decorative variant */ enum FC_LCD_FILTER = "lcdfilter"; /* Int */ enum FC_CACHE_SUFFIX = ".cache-" ~ FC_CACHE_VERSION; enum FC_DIR_CACHE_FILE = "fonts.cache-" ~ FC_CACHE_VERSION; enum FC_USER_CACHE_FILE = ".fonts.cache-" ~ FC_CACHE_VERSION; /* Adjust outline rasterizer */ enum FC_CHAR_WIDTH = "charwidth"; /* Int */ enum FC_CHAR_HEIGHT = "charheight";/* Int */ enum FC_MATRIX = "matrix"; /* FcMatrix */ enum FC_WEIGHT_THIN = 0; enum FC_WEIGHT_EXTRALIGHT = 40; enum FC_WEIGHT_ULTRALIGHT = FC_WEIGHT_EXTRALIGHT; enum FC_WEIGHT_LIGHT = 50; enum FC_WEIGHT_BOOK = 75; enum FC_WEIGHT_REGULAR = 80; enum FC_WEIGHT_NORMAL = FC_WEIGHT_REGULAR; enum FC_WEIGHT_MEDIUM = 100; enum FC_WEIGHT_DEMIBOLD = 180; enum FC_WEIGHT_SEMIBOLD = FC_WEIGHT_DEMIBOLD; enum FC_WEIGHT_BOLD = 200; enum FC_WEIGHT_EXTRABOLD = 205; enum FC_WEIGHT_ULTRABOLD = FC_WEIGHT_EXTRABOLD; enum FC_WEIGHT_BLACK = 210; enum FC_WEIGHT_HEAVY = FC_WEIGHT_BLACK; enum FC_WEIGHT_EXTRABLACK = 215; enum FC_WEIGHT_ULTRABLACK = FC_WEIGHT_EXTRABLACK; enum FC_SLANT_ROMAN = 0; enum FC_SLANT_ITALIC = 100; enum FC_SLANT_OBLIQUE = 110; enum FC_WIDTH_ULTRACONDENSED = 50; enum FC_WIDTH_EXTRACONDENSED = 63; enum FC_WIDTH_CONDENSED = 75; enum FC_WIDTH_SEMICONDENSED = 87; enum FC_WIDTH_NORMAL = 100; enum FC_WIDTH_SEMIEXPANDED = 113; enum FC_WIDTH_EXPANDED = 125; enum FC_WIDTH_EXTRAEXPANDED = 150; enum FC_WIDTH_ULTRAEXPANDED = 200; enum FC_PROPORTIONAL = 0; enum FC_DUAL = 90; enum FC_MONO = 100; enum FC_CHARCELL = 110; /* sub-pixel order */ enum FC_RGBA_UNKNOWN = 0; enum FC_RGBA_RGB = 1; enum FC_RGBA_BGR = 2; enum FC_RGBA_VRGB = 3; enum FC_RGBA_VBGR = 4; enum FC_RGBA_NONE = 5; /* hinting style */ enum FC_HINT_NONE = 0; enum FC_HINT_SLIGHT = 1; enum FC_HINT_MEDIUM = 2; enum FC_HINT_FULL = 3; /* LCD filter */ enum FC_LCD_NONE = 0; enum FC_LCD_DEFAULT = 1; enum FC_LCD_LIGHT = 2; enum FC_LCD_LEGACY = 3; enum FcType { Void, Integer, Double, String, Bool, Matrix, CharSet, FTFace, LangSet, } struct FcMatrix { double xx=0, xy=0, yx=0, yy=0; }; /* * A data structure to represent the available glyphs in a font. * This is represented as a sparse boolean btree. */ struct FcCharSet; struct FcObjectType { const char *object; FcType type; }; struct FcConstant { const FcChar8 *name; const char *object; int value; }; enum FcResult { Match, NoMatch, TypeMismatch, NoId, OutOfMemory, } struct FcPattern; struct FcLangSet; extern(C) struct FcValue { this(string str) { type = FcType.String; this.s = toStringz(str); } this(int i) { type = FcType.Integer; this.i = i; } this(bool b) { type = FcType.Bool; this.b = b; } this(double d) { type = FcType.Double; this.d = d; } this(const(FcMatrix)* m) { type = FcType.Matrix; this.m = m; } this(const(FcCharSet)* c) { type = FcType.CharSet; this.c = c; } this(void* f) { type = FcType.Void; this.f = f; } this(const(FcLangSet)* l) { type = FcType.LangSet; this.l = l; } FcType type; union { const(FcChar8)* s; int i; FcBool b; double d; const(FcMatrix)* m; const(FcCharSet)* c; void *f; const(FcLangSet)* l; }; }; struct FcFontSet { int nfont; int sfont; FcPattern **fonts; }; struct FcObjectSet { int nobject; int sobject; const char **objects; }; enum FcMatchKind { Pattern, Font, Scan, } enum FcLangResult { Equal = 0, DifferentCountry = 1, DifferentTerritory = 1, DifferentLang = 2, } enum FcSetName { System = 0, Application = 1, } struct FcAtomic; enum FcEndian { Big, Little, } struct FcConfig; struct FcFileCache; struct FcBlanks; struct FcStrList; struct FcStrSet; struct FcCache; /* fcblanks.c */ FcBlanks * FcBlanksCreate (); void FcBlanksDestroy (FcBlanks *b); FcBool FcBlanksAdd (FcBlanks *b, FcChar32 ucs4); FcBool FcBlanksIsMember (FcBlanks *b, FcChar32 ucs4); /* fccache.c */ const(FcChar8)* FcCacheDir(const(FcCache)* c); FcFontSet * FcCacheCopySet(const(FcCache)* c); const(FcChar8)* FcCacheSubdir (const(FcCache)* c, int i); int FcCacheNumSubdir (const(FcCache)* c); int FcCacheNumFont (const(FcCache)* c); FcBool FcDirCacheUnlink (const(FcChar8)*dir, FcConfig *config); FcBool FcDirCacheValid (const(FcChar8)*cache_file); /* fccfg.c */ FcChar8 * FcConfigHome (); FcBool FcConfigEnableHome (FcBool enable); FcChar8 * FcConfigFilename (const(FcChar8)*url); FcConfig * FcConfigCreate (); FcConfig * FcConfigReference (FcConfig *config); void FcConfigDestroy (FcConfig *config); FcBool FcConfigSetCurrent (FcConfig *config); FcConfig * FcConfigGetCurrent (); FcBool FcConfigUptoDate (FcConfig *config); FcBool FcConfigBuildFonts (FcConfig *config); FcStrList * FcConfigGetFontDirs (FcConfig *config); FcStrList * FcConfigGetConfigDirs (FcConfig *config); FcStrList * FcConfigGetConfigFiles (FcConfig *config); FcChar8 * FcConfigGetCache (FcConfig *config); FcBlanks * FcConfigGetBlanks (FcConfig *config); FcStrList * FcConfigGetCacheDirs (FcConfig *config); int FcConfigGetRescanInterval (FcConfig *config); FcBool FcConfigSetRescanInterval (FcConfig *config, int rescanInterval); FcFontSet * FcConfigGetFonts (FcConfig *config, FcSetName set); FcBool FcConfigAppFontAddFile (FcConfig *config, const FcChar8 *file); FcBool FcConfigAppFontAddDir (FcConfig *config, const FcChar8 *dir); void FcConfigAppFontClear (FcConfig *config); FcBool FcConfigSubstituteWithPat (FcConfig *config, FcPattern *p, FcPattern *p_pat, FcMatchKind kind); FcBool FcConfigSubstitute (FcConfig *config, FcPattern *p, FcMatchKind kind); /* fccharset.c */ FcCharSet* FcCharSetCreate (); /* deprecated alias for FcCharSetCreate */ FcCharSet * FcCharSetNew (); void FcCharSetDestroy (FcCharSet *fcs); FcBool FcCharSetAddChar (FcCharSet *fcs, FcChar32 ucs4); FcCharSet* FcCharSetCopy (FcCharSet *src); FcBool FcCharSetEqual (const(FcCharSet)* a, const(FcCharSet)* b); FcCharSet* FcCharSetIntersect (const(FcCharSet)* a, const(FcCharSet)* b); FcCharSet* FcCharSetUnion (const(FcCharSet)* a, const(FcCharSet)* b); FcCharSet* FcCharSetSubtract (const(FcCharSet)* a, const(FcCharSet)* b); FcBool FcCharSetMerge (FcCharSet *a, const(FcCharSet)* b, FcBool *changed); FcBool FcCharSetHasChar (const(FcCharSet)* fcs, FcChar32 ucs4); FcChar32 FcCharSetCount (const(FcCharSet)* a); FcChar32 FcCharSetIntersectCount (const(FcCharSet)* a, const(FcCharSet)* b); FcChar32 FcCharSetSubtractCount (const(FcCharSet)* a, const(FcCharSet)* b); FcBool FcCharSetIsSubset (const(FcCharSet)* a, const(FcCharSet)* b); enum FC_CHARSET_MAP_SIZE = (256/32); enum FC_CHARSET_DONE = uint.max; FcChar32 FcCharSetFirstPage (const(FcCharSet)* a, ref FcChar32[FC_CHARSET_MAP_SIZE] map, FcChar32 *next); FcChar32 FcCharSetNextPage (const FcCharSet *a, ref FcChar32[FC_CHARSET_MAP_SIZE] map, FcChar32 *next); /* * old coverage API, rather hard to use correctly */ FcChar32 FcCharSetCoverage (const(FcCharSet)* a, FcChar32 page, FcChar32 *result); /* fcdbg.c */ void FcValuePrint (const FcValue v); void FcPatternPrint (const(FcPattern)* p); void FcFontSetPrint (const(FcFontSet)* s); /* fcdefault.c */ void FcDefaultSubstitute (FcPattern *pattern); /* fcdir.c */ FcBool FcFileIsDir (const(FcChar8)* file); FcBool FcFileScan (FcFontSet *set, FcStrSet *dirs, FcFileCache *cache, FcBlanks *blanks, const FcChar8 *file, FcBool force); FcBool FcDirScan (FcFontSet *set, FcStrSet *dirs, FcFileCache *cache, FcBlanks *blanks, const FcChar8 *dir, FcBool force); FcBool FcDirSave (FcFontSet *set, FcStrSet *dirs, const(FcChar8)* dir); FcCache * FcDirCacheLoad (const(FcChar8)* dir, FcConfig *config, FcChar8 **cache_file); FcCache * FcDirCacheRead (const(FcChar8)* dir, FcBool force, FcConfig *config); FcCache * FcDirCacheLoadFile (const(FcChar8)* cache_file, STATP file_stat = null); void FcDirCacheUnload (FcCache *cache); /* fcfreetype.c */ FcPattern * FcFreeTypeQuery (const(FcChar8)* file, int id, FcBlanks *blanks, int *count); /* fcfs.c */ FcFontSet * FcFontSetCreate (); void FcFontSetDestroy (FcFontSet *s); FcBool FcFontSetAdd (FcFontSet *s, FcPattern *font); /* fcinit.c */ FcConfig * FcInitLoadConfig (); FcConfig * FcInitLoadConfigAndFonts (); FcBool FcInit (); void FcFini (); int FcGetVersion (); FcBool FcInitReinitialize (); FcBool FcInitBringUptoDate (); /* fclang.c */ FcStrSet * FcGetLangs (); const(FcCharSet)* FcLangGetCharSet (const(FcChar8)* lang); FcLangSet* FcLangSetCreate (); void FcLangSetDestroy (FcLangSet *ls); FcLangSet* FcLangSetCopy (const(FcLangSet)* ls); FcBool FcLangSetAdd (FcLangSet *ls, const(FcChar8)* lang); FcLangResult FcLangSetHasLang (const(FcLangSet)* ls, const(FcChar8)* lang); FcLangResult FcLangSetCompare (const(FcLangSet)* lsa, const(FcLangSet)* lsb); FcBool FcLangSetContains (const(FcLangSet)* lsa, const(FcLangSet)* lsb); FcBool FcLangSetEqual (const(FcLangSet)* lsa, const(FcLangSet)* lsb); FcChar32 FcLangSetHash (const(FcLangSet)* ls); FcStrSet * FcLangSetGetLangs (const(FcLangSet)* ls); /* fclist.c */ FcObjectSet * FcObjectSetCreate (); FcBool FcObjectSetAdd (FcObjectSet *os, const char *object); void FcObjectSetDestroy (FcObjectSet *os); //FcObjectSet * //FcObjectSetVaBuild (const char *first, va_list va); FcObjectSet * FcObjectSetBuild (const char *first, ...); FcFontSet * FcFontSetList (FcConfig *config, FcFontSet **sets, int nsets, FcPattern *p, FcObjectSet *os); FcFontSet * FcFontList (FcConfig *config, FcPattern *p, FcObjectSet *os); /* fcatomic.c */ FcAtomic * FcAtomicCreate (const FcChar8 *file); FcBool FcAtomicLock (FcAtomic *atomic); FcChar8 * FcAtomicNewFile (FcAtomic *atomic); FcChar8 * FcAtomicOrigFile (FcAtomic *atomic); FcBool FcAtomicReplaceOrig (FcAtomic *atomic); void FcAtomicDeleteNew (FcAtomic *atomic); void FcAtomicUnlock (FcAtomic *atomic); void FcAtomicDestroy (FcAtomic *atomic); /* fcmatch.c */ FcPattern * FcFontSetMatch (FcConfig *config, FcFontSet **sets, int nsets, FcPattern *p, FcResult *result); FcPattern * FcFontMatch (FcConfig *config, FcPattern *p, FcResult *result); FcPattern * FcFontRenderPrepare (FcConfig *config, FcPattern *pat, FcPattern *font); FcFontSet * FcFontSetSort (FcConfig *config, FcFontSet **sets, int nsets, FcPattern *p, FcBool trim, FcCharSet **csp, FcResult *result); FcFontSet * FcFontSort (FcConfig *config, FcPattern *p, FcBool trim, FcCharSet **csp, FcResult *result); void FcFontSetSortDestroy (FcFontSet *fs); /* fcmatrix.c */ FcMatrix * FcMatrixCopy (const(FcMatrix)* mat); FcBool FcMatrixEqual (const(FcMatrix)* mat1, const(FcMatrix)* mat2); void FcMatrixMultiply (FcMatrix *result, const(FcMatrix)* a, const(FcMatrix)* b); void FcMatrixRotate (FcMatrix *m, double c, double s); void FcMatrixScale (FcMatrix *m, double sx, double sy); void FcMatrixShear (FcMatrix *m, double sh, double sv); /* fcname.c */ FcBool FcNameRegisterObjectTypes (const(FcObjectType)* types, int ntype); FcBool FcNameUnregisterObjectTypes (const(FcObjectType)* types, int ntype); const(FcObjectType)* FcNameGetObjectType (const char *object); FcBool FcNameRegisterConstants (const(FcConstant)* consts, int nconsts); FcBool FcNameUnregisterConstants (const(FcConstant)* consts, int nconsts); const(FcConstant)* FcNameGetConstant (FcChar8 *string); FcBool FcNameConstant (FcChar8 *string, int *result); FcPattern * FcNameParse (const(FcChar8)* name); FcChar8 * FcNameUnparse (FcPattern *pat); /* fcpat.c */ FcPattern * FcPatternCreate (); FcPattern * FcPatternDuplicate (const(FcPattern)* p); void FcPatternReference (FcPattern *p); FcPattern * FcPatternFilter (FcPattern *p, const(FcObjectSet)* os); void FcValueDestroy (FcValue v); FcBool FcValueEqual (FcValue va, FcValue vb); FcValue FcValueSave (FcValue v); void FcPatternDestroy (FcPattern *p); FcBool FcPatternEqual (const(FcPattern)* pa, const(FcPattern)* pb); FcBool FcPatternEqualSubset (const(FcPattern)* pa, const(FcPattern)* pb, const(FcObjectSet)* os); FcChar32 FcPatternHash (const(FcPattern)* p); extern(C) FcBool FcPatternAdd (FcPattern *p, const(char)* object, FcValue value, FcBool append); FcBool FcPatternAddWeak (FcPattern *p, const char *object, FcValue value, FcBool append); FcResult FcPatternGet (const(FcPattern)* p, const char *object, int id, FcValue *v); FcBool FcPatternDel (FcPattern *p, const char *object); FcBool FcPatternRemove (FcPattern *p, const char *object, int id); FcBool FcPatternAddInteger (FcPattern *p, const char *object, int i); FcBool FcPatternAddDouble (FcPattern *p, const char *object, double d); FcBool FcPatternAddString (FcPattern *p, const char *object, const(FcChar8)* s); FcBool FcPatternAddMatrix (FcPattern *p, const char *object, const(FcMatrix)* s); FcBool FcPatternAddCharSet (FcPattern *p, const char *object, const(FcCharSet)* c); FcBool FcPatternAddBool (FcPattern *p, const char *object, FcBool b); FcBool FcPatternAddLangSet (FcPattern *p, const char *object, const(FcLangSet)* ls); FcResult FcPatternGetInteger (const(FcPattern)* p, const char *object, int n, int *i); FcResult FcPatternGetDouble (const(FcPattern)* p, const char *object, int n, double *d); FcResult FcPatternGetString (const(FcPattern)* p, const char *object, int n, FcChar8 ** s); FcResult FcPatternGetMatrix (const(FcPattern)* p, const char *object, int n, FcMatrix **s); FcResult FcPatternGetCharSet (const(FcPattern)* p, const char *object, int n, FcCharSet **c); FcResult FcPatternGetBool (const(FcPattern)* p, const char *object, int n, FcBool *b); FcResult FcPatternGetLangSet (const(FcPattern)* p, const char *object, int n, FcLangSet **ls); //FcPattern * //FcPatternVaBuild (FcPattern *p, va_list va); FcPattern * FcPatternBuild (FcPattern *p, ...); FcChar8 * FcPatternFormat (FcPattern *pat, const(FcChar8)* format); /* fcstr.c */ FcChar8 * FcStrCopy (const(FcChar8)* s); FcChar8 * FcStrCopyFilename (const(FcChar8)* s); FcChar8 * FcStrPlus (const(FcChar8)* s1, const(FcChar8)* s2); void FcStrFree (FcChar8 *s); /* These are ASCII only, suitable only for pattern element names */ bool FcIsUpper(FcChar8 c) { return ((0x41 <= c && c <= 0x5A)); } bool FcIsLower(FcChar8 c) { return ((0x61 <= c && c <= 0x7A)); } FcChar8 FcToLower(FcChar8 c) { return c + FcIsUpper(c) ? 0x20 : 0; } FcChar8 * FcStrDowncase (const(FcChar8)* s); int FcStrCmpIgnoreCase (const(FcChar8)* s1, const(FcChar8)* s2); int FcStrCmp (const(FcChar8)* s1, const(FcChar8)* s2); const(FcChar8)* FcStrStrIgnoreCase (const(FcChar8)* s1, const(FcChar8)* s2); const(FcChar8)* FcStrStr (const(FcChar8)* s1, const(FcChar8)* s2); int FcUtf8ToUcs4 (const(FcChar8)* src_orig, FcChar32 *dst, int len); FcBool FcUtf8Len (const FcChar8 *string, int len, int *nchar, int *charwidth); enum FC_UTF8_MAX_LEN = 6; int FcUcs4ToUtf8 (FcChar32 ucs4, ref FcChar8[FC_UTF8_MAX_LEN] dest); int FcUtf16ToUcs4 (const FcChar8 *src_orig, FcEndian endian, FcChar32 *dst, int len); /* in bytes */ FcBool FcUtf16Len (const FcChar8 *string, FcEndian endian, int len, /* in bytes */ int *nchar, int *charwidth); FcChar8 * FcStrDirname (const(FcChar8)* file); FcChar8 * FcStrBasename (const(FcChar8)* file); FcStrSet * FcStrSetCreate (); FcBool FcStrSetMember (FcStrSet *set, const(FcChar8)* s); FcBool FcStrSetEqual (FcStrSet *sa, FcStrSet *sb); FcBool FcStrSetAdd (FcStrSet *set, const(FcChar8)* s); FcBool FcStrSetAddFilename (FcStrSet *set, const(FcChar8)* s); FcBool FcStrSetDel (FcStrSet *set, const(FcChar8)* s); void FcStrSetDestroy (FcStrSet *set); FcStrList * FcStrListCreate (FcStrSet *set); FcChar8 * FcStrListNext (FcStrList *list); void FcStrListDone (FcStrList *list); /* fcxml.c */ FcBool FcConfigParseAndLoad (FcConfig *config, const(FcChar8)* file, FcBool complain);
D
module sdpc.combinators; public import sdpc.combinators.combinators;
D
// REQUIRED_ARGS: -d // PERMUTE_ARGS: -dw // EXTRA_SOURCES: imports/circularA.d // This bug is typedef-specific. // https://issues.dlang.org/show_bug.cgi?id=4543 import core.stdc.stdio; import imports.circularA; class bclass {}; alias bclass Tclass; struct bstruct {} alias bstruct Tstruct; /************************************/ int main() { printf("Success\n"); return 0; }
D
module imports.pr98067; enum MAP_ANON = 0x10;
D
/* * Copyright 2015-2018 HuntLabs.cn * * 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.sql.ast.statement.SQLCreateUserStatement; import hunt.sql.ast.SQLExpr; import hunt.sql.ast.SQLName; import hunt.sql.ast.SQLStatementImpl; import hunt.sql.visitor.SQLASTVisitor; public class SQLCreateUserStatement : SQLStatementImpl { private SQLName user; private SQLExpr password; // oracle private SQLName defaultTableSpace; public this() { } public SQLName getUser() { return user; } public void setUser(SQLName user) { if (user !is null) { user.setParent(this); } this.user = user; } public SQLExpr getPassword() { return password; } public void setPassword(SQLExpr password) { if (password !is null) { password.setParent(this); } this.password = password; } override protected void accept0(SQLASTVisitor visitor) { if (visitor.visit(this)) { acceptChild(visitor, user); acceptChild(visitor, password); } visitor.endVisit(this); } }
D
module test.http.router.handler.body; import hunt.http.$; import hunt.http.codec.http.model; import hunt.http.server.Http2ServerBuilder; import hunt.Assert; import hunt.util.Test; import test.http.router.handler.AbstractHttpHandlerTest; import javax.servlet.http.Part; import java.io.IOException; import java.io.InputStream; import java.net.URISyntaxException; import hunt.collection.ByteBuffer; import java.nio.file.Path; import java.nio.file.Paths; import hunt.collection.ArrayList; import hunt.collection.List; import hunt.concurrency.Phaser; /** * */ public class TestMultiPartContentProvider extends AbstractHttpHandlerTest { public void test() { MultiPartContentProvider multiPartProvider = new MultiPartContentProvider(); writeln(multiPartProvider.getContentType()); multiPartProvider.addFieldPart("test1", new StringContentProvider("hello multi part1"), null); multiPartProvider.addFieldPart("test2", new StringContentProvider("hello multi part2"), null); multiPartProvider.close(); multiPartProvider.setListener(() -> writeln("on content")); List!(ByteBuffer) list = new ArrayList<>(); for (ByteBuffer buf : multiPartProvider) { list.add(buf); } string value = $.buffer.toString(list); writeln(value); writeln(multiPartProvider.getLength()); Assert.assertThat(multiPartProvider.getLength(), greaterThan(0L)); } public void testInputStreamContent() { InputStream inputStream = $.class.getResourceAsStream("/poem.txt"); InputStreamContentProvider inputStreamContentProvider = new InputStreamContentProvider(inputStream); MultiPartContentProvider multiPartProvider = new MultiPartContentProvider(); writeln(multiPartProvider.getContentType()); multiPartProvider.addFilePart("poetry", "poem.txt", inputStreamContentProvider, null); multiPartProvider.close(); multiPartProvider.setListener(() -> writeln("on content")); List!(ByteBuffer) list = new ArrayList<>(); for (ByteBuffer buf : multiPartProvider) { list.add(buf); } string value = $.buffer.toString(list); Assert.assertThat(value.length, greaterThan(0)); writeln(multiPartProvider.getLength()); Assert.assertThat(multiPartProvider.getLength(), lessThan(0L)); } public void testPathContent() throws URISyntaxException, IOException { Path path = Paths.get($.class.getResource("/poem.txt").toURI()); writeln(path.toAbsolutePath()); PathContentProvider pathContentProvider = new PathContentProvider(path); MultiPartContentProvider multiPartProvider = new MultiPartContentProvider(); multiPartProvider.addFilePart("poetry", "poem.txt", pathContentProvider, null); multiPartProvider.close(); multiPartProvider.setListener(() -> writeln("on content")); List!(ByteBuffer) list = new ArrayList<>(); for (ByteBuffer buf : multiPartProvider) { list.add(buf); } writeln(multiPartProvider.getLength()); Assert.assertThat(multiPartProvider.getLength(), greaterThan(0L)); Assert.assertThat(multiPartProvider.getLength(), is($.buffer.remaining(list))); } public void testMultiPart() { Phaser phaser = new Phaser(3); Http2ServerBuilder httpServer = $.httpServer(); httpServer.router().post("/upload/string").handler(ctx -> { // small multi part data test case Assert.assertThat(ctx.getParts().size(), is(2)); Part test1 = ctx.getPart("test1"); Part test2 = ctx.getPart("test2"); try (InputStream input1 = test1.getInputStream(); InputStream input2 = test2.getInputStream()) { string value = $.io.toString(input1); writeln(value); Assert.assertThat(value, is("hello multi part1")); string value2 = $.io.toString(input2); writeln(value2); Assert.assertThat(value2, is("hello multi part2")); } catch (IOException e) { e.printStackTrace(); } ctx.end("server received multi part data"); }).router().post("/upload/poetry").handler(ctx -> { // upload poetry writeln(ctx.getFields()); Part poetry = ctx.getPart("poetry"); Assert.assertThat(poetry.getSubmittedFileName(), is("poem.txt")); try (InputStream inputStream = $.class.getResourceAsStream("/poem.txt"); InputStream in = poetry.getInputStream()) { string poem = $.io.toString(inputStream); writeln(poem); Assert.assertThat(poem, is($.io.toString(in))); } catch (IOException e) { e.printStackTrace(); } ctx.end("server received poetry"); }).listen(host, port); $.httpClient().post(uri ~ "/upload/string") .addFieldPart("test1", new StringContentProvider("hello multi part1"), null) .addFieldPart("test2", new StringContentProvider("hello multi part2"), null) .submit() .thenAccept(res -> { writeln(res.getStringBody()); Assert.assertThat(res.getStatus(), is(HttpStatus.OK_200)); phaser.arrive(); }); InputStream inputStream = $.class.getResourceAsStream("/poem.txt"); InputStreamContentProvider inputStreamContentProvider = new InputStreamContentProvider(inputStream); $.httpClient().post(uri ~ "/upload/poetry") .addFilePart("poetry", "poem.txt", inputStreamContentProvider, null) .submit() .thenAccept(res -> { writeln(res.getStringBody()); Assert.assertThat(res.getStatus(), is(HttpStatus.OK_200)); $.io.close(inputStreamContentProvider); $.io.close(inputStream); phaser.arrive(); }); phaser.arriveAndAwaitAdvance(); httpServer.stop(); $.httpClient().stop(); } }
D
/* * Simple Brainfuck interpreter and x86-compiler written in D2 * 2011 * */ import Brainfuck.Compiler; import Brainfuck.Interpreter; import Brainfuck.Parser; import Brainfuck.EvalLoop; import std.stdio; import std.array; import std.conv; const version_num = 2; string usage = "Usage: bfc <OPTION> <SOURCE FILE> <OUT FILE> Options: -i run <SOURCE FILE> in interpreter or run eval lopp if <SOURCE FILE> isn't set -c compile <SOURCE FILE> and write result to <OUT FILE> -h print this help and exit -v print version and exit\n"; string intro = "This is interactive mode. Press ^D to exit. Avaliable commands: !dp print data pointer !dp <value> set data pointer !ds <begin> <end> print data\n"; int main(string[] args) { if((args.length < 2) || (args.length > 4)) { write(usage); return 1; } if(args[1] == "-h") { write(usage); } else if(args[1] == "-v") { writeln(version_num*0.1); } else if(args[1] == "-c") { if(args.length < 4) { writeln("No source or output file set"); write(usage); return 1; } if(!CompilerIntelELF32.Compile(args[2],args[3])) { writeln("FAIL!"); return 1; } else writeln("SUCCESS!"); } else if(args[1] == "-i") { if(args.length < 3) { write(intro); EvalLoop lp = new EvalLoop(); write("# "); char buf[]; while(readln(buf)) { lp.Eval(buf.idup); write("# "); } writeln("\n\nGood bye!"); } else { Interpreter bf_interp = new Interpreter(); if(!bf_interp.LoadFile(args[2])) { writeln("FAIL!"); return 1; } else { bf_interp.Run(); } } } else { writeln("Wrong option"); write(usage); return 1; } return 0; }
D
/Users/wox/Desktop/ios11/Weapons/DerivedData/Weapons/Build/Intermediates.noindex/Weapons.build/Debug-iphonesimulator/Weapons.build/Objects-normal/x86_64/RateController.o : /Users/wox/Desktop/ios11/Weapons/Weapons/AppDelegate.swift /Users/wox/Desktop/ios11/Weapons/Weapons/CardCell.swift /Users/wox/Desktop/ios11/Weapons/Weapons/DetailCell.swift /Users/wox/Desktop/ios11/Weapons/Weapons/pickerViewFill.swift /Users/wox/Desktop/ios11/Weapons/Weapons/Weapon.swift /Users/wox/Desktop/ios11/Weapons/Weapons/RateController.swift /Users/wox/Desktop/ios11/Weapons/Weapons/DetailController.swift /Users/wox/Desktop/ios11/Weapons/Weapons/NewWeaponController.swift /Users/wox/Desktop/ios11/Weapons/Weapons/WeaponsTableViewController.swift /Users/wox/Desktop/ios11/Weapons/Weapons/UIViewHelper.swift /Users/wox/Desktop/ios11/Weapons/Weapons/MediaSelect.swift /Users/wox/Desktop/ios11/Weapons/Weapons/NaviExt.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/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 /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/AVKit.framework/Headers/AVKit.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/wox/Desktop/ios11/Weapons/DerivedData/Weapons/Build/Intermediates.noindex/Weapons.build/Debug-iphonesimulator/Weapons.build/Objects-normal/x86_64/RateController~partial.swiftmodule : /Users/wox/Desktop/ios11/Weapons/Weapons/AppDelegate.swift /Users/wox/Desktop/ios11/Weapons/Weapons/CardCell.swift /Users/wox/Desktop/ios11/Weapons/Weapons/DetailCell.swift /Users/wox/Desktop/ios11/Weapons/Weapons/pickerViewFill.swift /Users/wox/Desktop/ios11/Weapons/Weapons/Weapon.swift /Users/wox/Desktop/ios11/Weapons/Weapons/RateController.swift /Users/wox/Desktop/ios11/Weapons/Weapons/DetailController.swift /Users/wox/Desktop/ios11/Weapons/Weapons/NewWeaponController.swift /Users/wox/Desktop/ios11/Weapons/Weapons/WeaponsTableViewController.swift /Users/wox/Desktop/ios11/Weapons/Weapons/UIViewHelper.swift /Users/wox/Desktop/ios11/Weapons/Weapons/MediaSelect.swift /Users/wox/Desktop/ios11/Weapons/Weapons/NaviExt.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/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 /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/AVKit.framework/Headers/AVKit.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/wox/Desktop/ios11/Weapons/DerivedData/Weapons/Build/Intermediates.noindex/Weapons.build/Debug-iphonesimulator/Weapons.build/Objects-normal/x86_64/RateController~partial.swiftdoc : /Users/wox/Desktop/ios11/Weapons/Weapons/AppDelegate.swift /Users/wox/Desktop/ios11/Weapons/Weapons/CardCell.swift /Users/wox/Desktop/ios11/Weapons/Weapons/DetailCell.swift /Users/wox/Desktop/ios11/Weapons/Weapons/pickerViewFill.swift /Users/wox/Desktop/ios11/Weapons/Weapons/Weapon.swift /Users/wox/Desktop/ios11/Weapons/Weapons/RateController.swift /Users/wox/Desktop/ios11/Weapons/Weapons/DetailController.swift /Users/wox/Desktop/ios11/Weapons/Weapons/NewWeaponController.swift /Users/wox/Desktop/ios11/Weapons/Weapons/WeaponsTableViewController.swift /Users/wox/Desktop/ios11/Weapons/Weapons/UIViewHelper.swift /Users/wox/Desktop/ios11/Weapons/Weapons/MediaSelect.swift /Users/wox/Desktop/ios11/Weapons/Weapons/NaviExt.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/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 /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/AVKit.framework/Headers/AVKit.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
$(H1 Chapter 9. Styles of Programming) $(P p1 ) $(P p2 )
D
import b; void main() { test(); }
D
module ecs.exceptions.entity; public: import ecs.exceptions.entity.entityDoesNotContainComponentException; import ecs.exceptions.entity.entityAlreadyContainsComponentException; import ecs.exceptions.entity.entityComponentIsNotDisabledException; import ecs.exceptions.entity.entityDoesNotExistException;
D
/* 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 flow.engine.impl.cmd.GetTableMetaDataCmd; import flow.common.api.FlowableIllegalArgumentException; import flow.common.api.management.TableMetaData; import flow.common.interceptor.Command; import flow.common.interceptor.CommandContext; import flow.engine.impl.util.CommandContextUtil; /** * @author Joram Barrez */ class GetTableMetaDataCmd : Command!TableMetaData { protected string tableName; this(string tableName) { this.tableName = tableName; } public TableMetaData execute(CommandContext commandContext) { if (tableName is null) { throw new FlowableIllegalArgumentException("tableName is null"); } return CommandContextUtil.getTableDataManager(commandContext).getTableMetaData(tableName); } }
D
# FIXED HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_trng_wrapper.c HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/hw_types.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdint.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/stdint.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/cdefs.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_types.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_types.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_stdint.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_stdint.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdbool.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/../inc/hw_chip_def.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/hw_sysctl.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_trng_wrapper.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_types.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/../_common/cc26xx/_hal_types.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/trng.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_trng.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_memmap.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_ints.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/debug.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/interrupt.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_nvic.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/cpu.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_cpu_scs.h HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../driverlib/rom.h C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_trng_wrapper.c: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/hw_types.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdint.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/stdint.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/cdefs.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_types.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_types.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_stdint.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_stdint.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdbool.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/../inc/hw_chip_def.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/hw_sysctl.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_trng_wrapper.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_types.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/../_common/cc26xx/_hal_types.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/trng.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_trng.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_memmap.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_ints.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/debug.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/interrupt.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_nvic.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/cpu.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_cpu_scs.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../driverlib/rom.h:
D
/Users/lincolnnguyen/Downloads/yelpy_starter_1/DerivedData/Yelpy/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Combine.o : /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/MultipartFormData.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/MultipartUpload.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/AlamofireExtended.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Protected.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/HTTPMethod.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/URLConvertible+URLRequestConvertible.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Combine.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/OperationQueue+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/StringEncoding+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/URLSessionConfiguration+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Result+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/URLRequest+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Response.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/SessionDelegate.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/ParameterEncoding.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Session.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Validation.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/ServerTrustEvaluation.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/ResponseSerialization.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/RequestTaskMap.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/URLEncodedFormEncoder.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/ParameterEncoder.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/CachedResponseHandler.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/RedirectHandler.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/AFError.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/EventMonitor.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/AuthenticationInterceptor.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/RequestInterceptor.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Notifications.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/HTTPHeaders.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Request.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/RetryPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Users/lincolnnguyen/Downloads/yelpy_starter_1/DerivedData/Yelpy/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.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/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/lincolnnguyen/Downloads/yelpy_starter_1/DerivedData/Yelpy/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Combine~partial.swiftmodule : /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/MultipartFormData.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/MultipartUpload.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/AlamofireExtended.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Protected.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/HTTPMethod.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/URLConvertible+URLRequestConvertible.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Combine.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/OperationQueue+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/StringEncoding+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/URLSessionConfiguration+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Result+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/URLRequest+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Response.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/SessionDelegate.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/ParameterEncoding.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Session.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Validation.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/ServerTrustEvaluation.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/ResponseSerialization.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/RequestTaskMap.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/URLEncodedFormEncoder.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/ParameterEncoder.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/CachedResponseHandler.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/RedirectHandler.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/AFError.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/EventMonitor.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/AuthenticationInterceptor.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/RequestInterceptor.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Notifications.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/HTTPHeaders.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Request.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/RetryPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Users/lincolnnguyen/Downloads/yelpy_starter_1/DerivedData/Yelpy/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.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/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/lincolnnguyen/Downloads/yelpy_starter_1/DerivedData/Yelpy/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Combine~partial.swiftdoc : /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/MultipartFormData.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/MultipartUpload.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/AlamofireExtended.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Protected.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/HTTPMethod.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/URLConvertible+URLRequestConvertible.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Combine.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/OperationQueue+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/StringEncoding+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/URLSessionConfiguration+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Result+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/URLRequest+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Response.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/SessionDelegate.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/ParameterEncoding.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Session.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Validation.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/ServerTrustEvaluation.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/ResponseSerialization.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/RequestTaskMap.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/URLEncodedFormEncoder.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/ParameterEncoder.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/CachedResponseHandler.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/RedirectHandler.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/AFError.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/EventMonitor.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/AuthenticationInterceptor.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/RequestInterceptor.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Notifications.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/HTTPHeaders.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Request.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/RetryPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Users/lincolnnguyen/Downloads/yelpy_starter_1/DerivedData/Yelpy/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.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/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/lincolnnguyen/Downloads/yelpy_starter_1/DerivedData/Yelpy/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Combine~partial.swiftsourceinfo : /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/MultipartFormData.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/MultipartUpload.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/AlamofireExtended.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Protected.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/HTTPMethod.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/URLConvertible+URLRequestConvertible.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Combine.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/OperationQueue+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/StringEncoding+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/URLSessionConfiguration+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Result+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/URLRequest+Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Alamofire.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Response.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/SessionDelegate.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/ParameterEncoding.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Session.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Validation.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/ServerTrustEvaluation.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/ResponseSerialization.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/RequestTaskMap.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/URLEncodedFormEncoder.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/ParameterEncoder.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/CachedResponseHandler.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/RedirectHandler.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/AFError.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/EventMonitor.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/AuthenticationInterceptor.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/RequestInterceptor.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Notifications.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/HTTPHeaders.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/Request.swift /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Alamofire/Source/RetryPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/lincolnnguyen/Downloads/yelpy_starter_1/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Users/lincolnnguyen/Downloads/yelpy_starter_1/DerivedData/Yelpy/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.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/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/SNIHandler.swift.o : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/NIOTLS/SNIHandler.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/NIOTLS/ApplicationProtocolNegotiationHandler.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/NIOTLS/TLSEvents.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.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/Swift.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/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /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 /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/SNIHandler~partial.swiftmodule : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/NIOTLS/SNIHandler.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/NIOTLS/ApplicationProtocolNegotiationHandler.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/NIOTLS/TLSEvents.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.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/Swift.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/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /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 /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/SNIHandler~partial.swiftdoc : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/NIOTLS/SNIHandler.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/NIOTLS/ApplicationProtocolNegotiationHandler.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/NIOTLS/TLSEvents.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.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/Swift.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/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /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 /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/SNIHandler~partial.swiftsourceinfo : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/NIOTLS/SNIHandler.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/NIOTLS/ApplicationProtocolNegotiationHandler.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/NIOTLS/TLSEvents.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.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/Swift.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/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /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
D
cause fear in drive out by frightening
D
module player; import laziness; import unit; import tec; import job; abstract class Player{ mixin Values!PlayerValues; protected PUnit instance; PUnit ins(){ if(instance is null){ instance = create; } return instance; } bool member; private this(){ } abstract protected void createInner(PUnit p); protected PUnit create(){ PUnit p = new PUnit(this); p.exists = true; p.name = this.toString; p.prm!"MAX_MP".base = Unit.DEF_MAX_MP; p.prm!"MAX_TP".base = Unit.DEF_MAX_TP; createInner(p); p.hp = p.prm!"MAX_HP".total; foreach(tec; p.tecs){ p.setLearned(tec, true); } return p; } } private class PlayerValues{ //------------------------------------------------------------------ @Value static Player empty(){static Player res; return res !is null ? res : (res = new class Player{ override protected PUnit create(){return new PUnit(this);} override protected void createInner(PUnit){} });} @Value static Player スメラギ(){static Player res; return res !is null ? res : (res = new class Player{ override protected void createInner(PUnit p){ p.tecs = [Tec.殴る, Tec.二刀, Tec.empty, Tec.empty, Tec.empty, Tec.empty]; p.prm!"MAX_HP".base = 30; p.prm!"STR".base = 5; } });} @Value static Player よしこ(){static Player res; return res !is null ? res : (res = new class Player{ override protected void createInner(PUnit p){ p.job = Job.魔法使い; p.setJobLv( Job.魔法使い, 1 );//転職画面で表示するために p.tecs = [Tec.殴る, Tec.ヴァハ, Tec.empty, Tec.empty, Tec.empty, Tec.empty]; p.prm!"MAX_HP".base = 20; p.prm!"STR".base = 3; p.prm!"MAG".base = 8; } });} //------------------------------------------------------------------ // //------------------------------------------------------------------ }
D
/Users/chrisconner/Desktop/Checklists/DerivedData/Checklists/Build/Intermediates.noindex/Checklists.build/Debug-iphonesimulator/Checklists.build/Objects-normal/x86_64/AppDelegate.o : /Users/chrisconner/Desktop/Checklists/Checklists/AppDelegate.swift /Users/chrisconner/Desktop/Checklists/Checklists/ChecklistItem.swift /Users/chrisconner/Desktop/Checklists/Checklists/ChecklistViewController.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.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/chrisconner/Desktop/Checklists/DerivedData/Checklists/Build/Intermediates.noindex/Checklists.build/Debug-iphonesimulator/Checklists.build/Objects-normal/x86_64/AppDelegate~partial.swiftmodule : /Users/chrisconner/Desktop/Checklists/Checklists/AppDelegate.swift /Users/chrisconner/Desktop/Checklists/Checklists/ChecklistItem.swift /Users/chrisconner/Desktop/Checklists/Checklists/ChecklistViewController.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.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/chrisconner/Desktop/Checklists/DerivedData/Checklists/Build/Intermediates.noindex/Checklists.build/Debug-iphonesimulator/Checklists.build/Objects-normal/x86_64/AppDelegate~partial.swiftdoc : /Users/chrisconner/Desktop/Checklists/Checklists/AppDelegate.swift /Users/chrisconner/Desktop/Checklists/Checklists/ChecklistItem.swift /Users/chrisconner/Desktop/Checklists/Checklists/ChecklistViewController.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.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
D
a large mountain system in south-central Europe any high mountain
D
/home/top/Workstation/LocalDriveB/Test/Rust/Rust-Wasm-contract (Kovan)/Rust-kovan-parity-/contract/target/wasm32-unknown-unknown/release/deps/libcfg_if-6a4e2b8bafca8b87.rlib: /home/top/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.6/src/lib.rs /home/top/Workstation/LocalDriveB/Test/Rust/Rust-Wasm-contract (Kovan)/Rust-kovan-parity-/contract/target/wasm32-unknown-unknown/release/deps/cfg_if-6a4e2b8bafca8b87.d: /home/top/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.6/src/lib.rs /home/top/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.6/src/lib.rs:
D
// Written in the D programming language. /** Source: $(PHOBOSSRC std/experimental/logger/core.d) */ module std.experimental.logger.core; import core.sync.mutex : Mutex; import std.datetime.date : DateTime; import std.datetime.systime : Clock, SysTime; import std.range.primitives; import std.traits; import std.experimental.logger.filelogger; /** This template evaluates if the passed `LogLevel` is active. The previously described version statements are used to decide if the `LogLevel` is active. The version statements only influence the compile unit they are used with, therefore this function can only disable logging this specific compile unit. */ template isLoggingActiveAt(LogLevel ll) { version (StdLoggerDisableLogging) { enum isLoggingActiveAt = false; } else { static if (ll == LogLevel.trace) { version (StdLoggerDisableTrace) enum isLoggingActiveAt = false; } else static if (ll == LogLevel.info) { version (StdLoggerDisableInfo) enum isLoggingActiveAt = false; } else static if (ll == LogLevel.warning) { version (StdLoggerDisableWarning) enum isLoggingActiveAt = false; } else static if (ll == LogLevel.error) { version (StdLoggerDisableError) enum isLoggingActiveAt = false; } else static if (ll == LogLevel.critical) { version (StdLoggerDisableCritical) enum isLoggingActiveAt = false; } else static if (ll == LogLevel.fatal) { version (StdLoggerDisableFatal) enum isLoggingActiveAt = false; } // If `isLoggingActiveAt` didn't get defined above to false, // we default it to true. static if (!is(typeof(isLoggingActiveAt) == bool)) { enum isLoggingActiveAt = true; } } } /// This compile-time flag is `true` if logging is not statically disabled. enum isLoggingActive = isLoggingActiveAt!(LogLevel.all); /** This functions is used at runtime to determine if a `LogLevel` is active. The same previously defined version statements are used to disable certain levels. Again the version statements are associated with a compile unit and can therefore not disable logging in other compile units. pure bool isLoggingEnabled()(LogLevel ll) @safe nothrow @nogc */ bool isLoggingEnabled()(LogLevel ll, LogLevel loggerLL, LogLevel globalLL, lazy bool condition = true) @safe { switch (ll) { case LogLevel.trace: version (StdLoggerDisableTrace) return false; else break; case LogLevel.info: version (StdLoggerDisableInfo) return false; else break; case LogLevel.warning: version (StdLoggerDisableWarning) return false; else break; case LogLevel.critical: version (StdLoggerDisableCritical) return false; else break; case LogLevel.fatal: version (StdLoggerDisableFatal) return false; else break; default: break; } return ll >= globalLL && ll >= loggerLL && ll != LogLevel.off && globalLL != LogLevel.off && loggerLL != LogLevel.off && condition; } /** This template returns the `LogLevel` named "logLevel" of type $(D LogLevel) defined in a user defined module where the filename has the suffix "_loggerconfig.d". This `LogLevel` sets the minimal `LogLevel` of the module. A minimal `LogLevel` can be defined on a per module basis. In order to define a module `LogLevel` a file with a modulename "MODULENAME_loggerconfig" must be found. If no such module exists and the module is a nested module, it is checked if there exists a "PARENT_MODULE_loggerconfig" module with such a symbol. If this module exists and it contains a `LogLevel` called logLevel this $(D LogLevel) will be used. This parent lookup is continued until there is no parent module. Then the moduleLogLevel is `LogLevel.all`. */ template moduleLogLevel(string moduleName) if (!moduleName.length) { // default enum moduleLogLevel = LogLevel.all; } /// @system unittest { static assert(moduleLogLevel!"" == LogLevel.all); } /// ditto template moduleLogLevel(string moduleName) if (moduleName.length) { import std.string : format; mixin(q{ static if (__traits(compiles, {import %1$s : logLevel;})) { import %1$s : logLevel; static assert(is(typeof(logLevel) : LogLevel), "Expect 'logLevel' to be of Type 'LogLevel'."); // don't enforce enum here alias moduleLogLevel = logLevel; } else // use logLevel of package or default alias moduleLogLevel = moduleLogLevel!(parentOf(moduleName)); }.format(moduleName ~ "_loggerconfig")); } /// @system unittest { static assert(moduleLogLevel!"not.amodule.path" == LogLevel.all); } private string parentOf(string mod) { foreach_reverse (i, c; mod) if (c == '.') return mod[0 .. i]; return null; } /* This function formates a `SysTime` into an `OutputRange`. The `SysTime` is formatted similar to $(LREF std.datatime.DateTime.toISOExtString) except the fractional second part. The fractional second part is in milliseconds and is always 3 digits. */ void systimeToISOString(OutputRange)(OutputRange o, const ref SysTime time) if (isOutputRange!(OutputRange,string)) { import std.format.write : formattedWrite; const auto dt = cast(DateTime) time; const auto fsec = time.fracSecs.total!"msecs"; formattedWrite(o, "%04d-%02d-%02dT%02d:%02d:%02d.%03d", dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second, fsec); } /** This function logs data. In order for the data to be processed, the `LogLevel` of the log call must be greater or equal to the `LogLevel` of the `sharedLog` and the `defaultLogLevel`; additionally the condition passed must be `true`. Params: ll = The `LogLevel` used by this log call. condition = The condition must be `true` for the data to be logged. args = The data that should be logged. Example: -------------------- log(LogLevel.warning, true, "Hello World", 3.1415); -------------------- */ void log(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(const LogLevel ll, lazy bool condition, lazy A args) if (args.length != 1) { static if (isLoggingActive) { if (ll >= moduleLogLevel!moduleName) { stdThreadLocalLog.log!(line, file, funcName, prettyFuncName, moduleName) (ll, condition, args); } } } /// Ditto void log(T, string moduleName = __MODULE__)(const LogLevel ll, lazy bool condition, lazy T arg, int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__) { static if (isLoggingActive) { if (ll >= moduleLogLevel!moduleName) { stdThreadLocalLog.log!(T,moduleName)(ll, condition, arg, line, file, funcName, prettyFuncName); } } } /** This function logs data. In order for the data to be processed the `LogLevel` of the log call must be greater or equal to the `LogLevel` of the `sharedLog`. Params: ll = The `LogLevel` used by this log call. args = The data that should be logged. Example: -------------------- log(LogLevel.warning, "Hello World", 3.1415); -------------------- */ void log(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(const LogLevel ll, lazy A args) if (args.length > 1 && !is(Unqual!(A[0]) : bool)) { static if (isLoggingActive) { if (ll >= moduleLogLevel!moduleName) { stdThreadLocalLog.log!(line, file, funcName, prettyFuncName, moduleName) (ll, args); } } } /// Ditto void log(T, string moduleName = __MODULE__)(const LogLevel ll, lazy T arg, int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__) { static if (isLoggingActive) { if (ll >= moduleLogLevel!moduleName) { stdThreadLocalLog.log!T(ll, arg, line, file, funcName, prettyFuncName, moduleName); } } } /** This function logs data. In order for the data to be processed the `LogLevel` of the `sharedLog` must be greater or equal to the `defaultLogLevel` add the condition passed must be `true`. Params: condition = The condition must be `true` for the data to be logged. args = The data that should be logged. Example: -------------------- log(true, "Hello World", 3.1415); -------------------- */ void log(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(lazy bool condition, lazy A args) if (args.length != 1) { static if (isLoggingActive) { stdThreadLocalLog.log!(line, file, funcName, prettyFuncName, moduleName) (stdThreadLocalLog.logLevel, condition, args); } } /// Ditto void log(T, string moduleName = __MODULE__)(lazy bool condition, lazy T arg, int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__) { static if (isLoggingActive) { stdThreadLocalLog.log!(T,moduleName)(stdThreadLocalLog.logLevel, condition, arg, line, file, funcName, prettyFuncName); } } /** This function logs data. In order for the data to be processed the `LogLevel` of the `sharedLog` must be greater or equal to the `defaultLogLevel`. Params: args = The data that should be logged. Example: -------------------- log("Hello World", 3.1415); -------------------- */ void log(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(lazy A args) if ((args.length > 1 && !is(Unqual!(A[0]) : bool) && !is(Unqual!(A[0]) == LogLevel)) || args.length == 0) { static if (isLoggingActive) { stdThreadLocalLog.log!(line, file, funcName, prettyFuncName, moduleName)(stdThreadLocalLog.logLevel, args); } } void log(T)(lazy T arg, int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__) { static if (isLoggingActive) { stdThreadLocalLog.log!T(stdThreadLocalLog.logLevel, arg, line, file, funcName, prettyFuncName, moduleName); } } /** This function logs data in a `printf`-style manner. In order for the data to be processed the `LogLevel` of the log call must be greater or equal to the `LogLevel` of the `sharedLog` and the `defaultLogLevel` additionally the condition passed must be `true`. Params: ll = The `LogLevel` used by this log call. condition = The condition must be `true` for the data to be logged. msg = The `printf`-style string. args = The data that should be logged. Example: -------------------- logf(LogLevel.warning, true, "Hello World %f", 3.1415); -------------------- */ void logf(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(const LogLevel ll, lazy bool condition, lazy string msg, lazy A args) { static if (isLoggingActive) { if (ll >= moduleLogLevel!moduleName) { stdThreadLocalLog.logf!(line, file, funcName, prettyFuncName, moduleName) (ll, condition, msg, args); } } } /** This function logs data in a `printf`-style manner. In order for the data to be processed the `LogLevel` of the log call must be greater or equal to the `LogLevel` of the `sharedLog` and the `defaultLogLevel`. Params: ll = The `LogLevel` used by this log call. msg = The `printf`-style string. args = The data that should be logged. Example: -------------------- logf(LogLevel.warning, "Hello World %f", 3.1415); -------------------- */ void logf(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(const LogLevel ll, lazy string msg, lazy A args) { static if (isLoggingActive) { if (ll >= moduleLogLevel!moduleName) { stdThreadLocalLog.logf!(line, file, funcName, prettyFuncName, moduleName) (ll, msg, args); } } } /** This function logs data in a `printf`-style manner. In order for the data to be processed the `LogLevel` of the log call must be greater or equal to the `defaultLogLevel` additionally the condition passed must be `true`. Params: condition = The condition must be `true` for the data to be logged. msg = The `printf`-style string. args = The data that should be logged. Example: -------------------- logf(true, "Hello World %f", 3.1415); -------------------- */ void logf(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(lazy bool condition, lazy string msg, lazy A args) { static if (isLoggingActive) { stdThreadLocalLog.logf!(line, file, funcName, prettyFuncName, moduleName) (stdThreadLocalLog.logLevel, condition, msg, args); } } /** This function logs data in a `printf`-style manner. In order for the data to be processed the `LogLevel` of the log call must be greater or equal to the `defaultLogLevel`. Params: msg = The `printf`-style string. args = The data that should be logged. Example: -------------------- logf("Hello World %f", 3.1415); -------------------- */ void logf(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(lazy string msg, lazy A args) { static if (isLoggingActive) { stdThreadLocalLog.logf!(line, file, funcName,prettyFuncName, moduleName) (stdThreadLocalLog.logLevel, msg, args); } } /** This template provides the global log functions with the `LogLevel` is encoded in the function name. The aliases following this template create the public names of these log functions. */ template defaultLogFunction(LogLevel ll) { void defaultLogFunction(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(lazy A args) if ((args.length > 0 && !is(Unqual!(A[0]) : bool)) || args.length == 0) { static if (isLoggingActiveAt!ll && ll >= moduleLogLevel!moduleName) { stdThreadLocalLog.memLogFunctions!(ll).logImpl!(line, file, funcName, prettyFuncName, moduleName)(args); } } void defaultLogFunction(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(lazy bool condition, lazy A args) { static if (isLoggingActiveAt!ll && ll >= moduleLogLevel!moduleName) { stdThreadLocalLog.memLogFunctions!(ll).logImpl!(line, file, funcName, prettyFuncName, moduleName)(condition, args); } } } /** This function logs data to the `stdThreadLocalLog`, optionally depending on a condition. In order for the resulting log message to be logged the `LogLevel` must be greater or equal than the `LogLevel` of the `stdThreadLocalLog` and must be greater or equal than the global `LogLevel`. Additionally the `LogLevel` must be greater or equal than the `LogLevel` of the `stdSharedLogger`. If a condition is given, it must evaluate to `true`. Params: condition = The condition must be `true` for the data to be logged. args = The data that should be logged. Example: -------------------- trace(1337, "is number"); info(1337, "is number"); error(1337, "is number"); critical(1337, "is number"); fatal(1337, "is number"); trace(true, 1337, "is number"); info(false, 1337, "is number"); error(true, 1337, "is number"); critical(false, 1337, "is number"); fatal(true, 1337, "is number"); -------------------- */ alias trace = defaultLogFunction!(LogLevel.trace); /// Ditto alias info = defaultLogFunction!(LogLevel.info); /// Ditto alias warning = defaultLogFunction!(LogLevel.warning); /// Ditto alias error = defaultLogFunction!(LogLevel.error); /// Ditto alias critical = defaultLogFunction!(LogLevel.critical); /// Ditto alias fatal = defaultLogFunction!(LogLevel.fatal); /** This template provides the global `printf`-style log functions with the `LogLevel` is encoded in the function name. The aliases following this template create the public names of the log functions. */ template defaultLogFunctionf(LogLevel ll) { void defaultLogFunctionf(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(lazy string msg, lazy A args) { static if (isLoggingActiveAt!ll && ll >= moduleLogLevel!moduleName) { stdThreadLocalLog.memLogFunctions!(ll).logImplf!(line, file, funcName, prettyFuncName, moduleName)(msg, args); } } void defaultLogFunctionf(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(lazy bool condition, lazy string msg, lazy A args) { static if (isLoggingActiveAt!ll && ll >= moduleLogLevel!moduleName) { stdThreadLocalLog.memLogFunctions!(ll).logImplf!(line, file, funcName, prettyFuncName, moduleName)(condition, msg, args); } } } /** This function logs data to the `sharedLog` in a `printf`-style manner. In order for the resulting log message to be logged the `LogLevel` must be greater or equal than the `LogLevel` of the `sharedLog` and must be greater or equal than the global `LogLevel`. Additionally the `LogLevel` must be greater or equal than the `LogLevel` of the `stdSharedLogger`. Params: msg = The `printf`-style string. args = The data that should be logged. Example: -------------------- tracef("is number %d", 1); infof("is number %d", 2); errorf("is number %d", 3); criticalf("is number %d", 4); fatalf("is number %d", 5); -------------------- The second version of the function logs data to the `sharedLog` in a $(D printf)-style manner. In order for the resulting log message to be logged the `LogLevel` must be greater or equal than the `LogLevel` of the `sharedLog` and must be greater or equal than the global `LogLevel`. Additionally the `LogLevel` must be greater or equal than the `LogLevel` of the `stdSharedLogger`. Params: condition = The condition must be `true` for the data to be logged. msg = The `printf`-style string. args = The data that should be logged. Example: -------------------- tracef(false, "is number %d", 1); infof(false, "is number %d", 2); errorf(true, "is number %d", 3); criticalf(true, "is number %d", 4); fatalf(someFunct(), "is number %d", 5); -------------------- */ alias tracef = defaultLogFunctionf!(LogLevel.trace); /// Ditto alias infof = defaultLogFunctionf!(LogLevel.info); /// Ditto alias warningf = defaultLogFunctionf!(LogLevel.warning); /// Ditto alias errorf = defaultLogFunctionf!(LogLevel.error); /// Ditto alias criticalf = defaultLogFunctionf!(LogLevel.critical); /// Ditto alias fatalf = defaultLogFunctionf!(LogLevel.fatal); private struct MsgRange { import std.traits : isSomeString, isSomeChar; private Logger log; this(Logger log) @safe { this.log = log; } void put(T)(T msg) @safe if (isSomeString!T) { log.logMsgPart(msg); } void put(dchar elem) @safe { import std.utf : encode; char[4] buffer; size_t len = encode(buffer, elem); log.logMsgPart(buffer[0 .. len]); } } private void formatString(A...)(MsgRange oRange, A args) { import std.format.write : formattedWrite; foreach (arg; args) { formattedWrite(oRange, "%s", arg); } } @system unittest { void dummy() @safe { auto tl = new TestLogger(); auto dst = MsgRange(tl); formatString(dst, "aaa", "bbb"); } dummy(); } /** There are eight usable logging level. These level are $(I all), $(I trace), $(I info), $(I warning), $(I error), $(I critical), $(I fatal), and $(I off). If a log function with `LogLevel.fatal` is called the shutdown handler of that logger is called. */ enum LogLevel : ubyte { all = 1, /** Lowest possible assignable `LogLevel`. */ trace = 32, /** `LogLevel` for tracing the execution of the program. */ info = 64, /** This level is used to display information about the program. */ warning = 96, /** warnings about the program should be displayed with this level. */ error = 128, /** Information about errors should be logged with this level.*/ critical = 160, /** Messages that inform about critical errors should be logged with this level. */ fatal = 192, /** Log messages that describe fatal errors should use this level. */ off = ubyte.max /** Highest possible `LogLevel`. */ } /** This class is the base of every logger. In order to create a new kind of logger a deriving class needs to implement the `writeLogMsg` method. By default this is not thread-safe. It is also possible to `override` the three methods `beginLogMsg`, `logMsgPart` and `finishLogMsg` together, this option gives more flexibility. */ abstract class Logger { import std.array : appender, Appender; import std.concurrency : thisTid, Tid; /** LogEntry is a aggregation combining all information associated with a log message. This aggregation will be passed to the method writeLogMsg. */ protected struct LogEntry { /// the filename the log function was called from string file; /// the line number the log function was called from int line; /// the name of the function the log function was called from string funcName; /// the pretty formatted name of the function the log function was /// called from string prettyFuncName; /// the name of the module the log message is coming from string moduleName; /// the `LogLevel` associated with the log message LogLevel logLevel; /// thread id of the log message Tid threadId; /// the time the message was logged SysTime timestamp; /// the message of the log message string msg; /// A refernce to the `Logger` used to create this `LogEntry` Logger logger; } /** Every subclass of `Logger` has to call this constructor from their constructor. It sets the `LogLevel`, and creates a fatal handler. The fatal handler will throw an `Error` if a log call is made with level `LogLevel.fatal`. Params: lv = `LogLevel` to use for this `Logger` instance. */ this(LogLevel lv) @safe { this.logLevel_ = lv; this.fatalHandler_ = delegate() { throw new Error("A fatal log message was logged"); }; this.mutex = new Mutex(); } /** A custom logger must implement this method in order to work in a `MultiLogger` and `ArrayLogger`. Params: payload = All information associated with call to log function. See_Also: beginLogMsg, logMsgPart, finishLogMsg */ abstract protected void writeLogMsg(ref LogEntry payload) @safe; /* The default implementation will use an `std.array.appender` internally to construct the message string. This means dynamic, GC memory allocation. A logger can avoid this allocation by reimplementing `beginLogMsg`, `logMsgPart` and `finishLogMsg`. `beginLogMsg` is always called first, followed by any number of calls to `logMsgPart` and one call to `finishLogMsg`. As an example for such a custom `Logger` compare this: ---------------- class CLogger : Logger { override void beginLogMsg(string file, int line, string funcName, string prettyFuncName, string moduleName, LogLevel logLevel, Tid threadId, SysTime timestamp) { ... logic here } override void logMsgPart(const(char)[] msg) { ... logic here } override void finishLogMsg() { ... logic here } void writeLogMsg(ref LogEntry payload) { this.beginLogMsg(payload.file, payload.line, payload.funcName, payload.prettyFuncName, payload.moduleName, payload.logLevel, payload.threadId, payload.timestamp, payload.logger); this.logMsgPart(payload.msg); this.finishLogMsg(); } } ---------------- */ protected void beginLogMsg(string file, int line, string funcName, string prettyFuncName, string moduleName, LogLevel logLevel, Tid threadId, SysTime timestamp, Logger logger) @safe { static if (isLoggingActive) { msgAppender = appender!string(); header = LogEntry(file, line, funcName, prettyFuncName, moduleName, logLevel, threadId, timestamp, null, logger); } } /** Logs a part of the log message. */ protected void logMsgPart(scope const(char)[] msg) @safe { static if (isLoggingActive) { msgAppender.put(msg); } } /** Signals that the message has been written and no more calls to `logMsgPart` follow. */ protected void finishLogMsg() @safe { static if (isLoggingActive) { header.msg = msgAppender.data; this.writeLogMsg(header); } } /** The `LogLevel` determines if the log call are processed or dropped by the `Logger`. In order for the log call to be processed the `LogLevel` of the log call must be greater or equal to the `LogLevel` of the `logger`. These two methods set and get the `LogLevel` of the used `Logger`. Example: ----------- auto f = new FileLogger(stdout); f.logLevel = LogLevel.info; assert(f.logLevel == LogLevel.info); ----------- */ @property final LogLevel logLevel() const pure @safe @nogc { return trustedLoad(this.logLevel_); } /// Ditto @property final void logLevel(const LogLevel lv) @safe @nogc { synchronized (mutex) this.logLevel_ = lv; } /** This `delegate` is called in case a log message with `LogLevel.fatal` gets logged. By default an `Error` will be thrown. */ @property final void delegate() fatalHandler() @safe @nogc { synchronized (mutex) return this.fatalHandler_; } /// Ditto @property final void fatalHandler(void delegate() @safe fh) @safe @nogc { synchronized (mutex) this.fatalHandler_ = fh; } /** This method allows forwarding log entries from one logger to another. `forwardMsg` will ensure proper synchronization and then call `writeLogMsg`. This is an API for implementing your own loggers and should not be called by normal user code. A notable difference from other logging functions is that the `globalLogLevel` wont be evaluated again since it is assumed that the caller already checked that. */ void forwardMsg(ref LogEntry payload) @trusted { static if (isLoggingActive) synchronized (mutex) { if (isLoggingEnabled(payload.logLevel, this.logLevel_, globalLogLevel)) { this.writeLogMsg(payload); if (payload.logLevel == LogLevel.fatal) this.fatalHandler_(); } } } /** This template provides the log functions for the `Logger` `class` with the `LogLevel` encoded in the function name. For further information see the the two functions defined inside of this template. The aliases following this template create the public names of these log functions. */ template memLogFunctions(LogLevel ll) { /** This function logs data to the used `Logger`. In order for the resulting log message to be logged the `LogLevel` must be greater or equal than the `LogLevel` of the used `Logger` and must be greater or equal than the global `LogLevel`. Params: args = The data that should be logged. Example: -------------------- auto s = new FileLogger(stdout); s.trace(1337, "is number"); s.info(1337, "is number"); s.error(1337, "is number"); s.critical(1337, "is number"); s.fatal(1337, "is number"); -------------------- */ void logImpl(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(lazy A args) if (args.length == 0 || (args.length > 0 && !is(A[0] : bool))) { static if (isLoggingActiveAt!ll && ll >= moduleLogLevel!moduleName) synchronized (mutex) { if (isLoggingEnabled(ll, this.logLevel_, globalLogLevel)) { this.beginLogMsg(file, line, funcName, prettyFuncName, moduleName, ll, thisTid, Clock.currTime, this); auto writer = MsgRange(this); formatString(writer, args); this.finishLogMsg(); static if (ll == LogLevel.fatal) this.fatalHandler_(); } } } /** This function logs data to the used `Logger` depending on a condition. In order for the resulting log message to be logged the `LogLevel` must be greater or equal than the `LogLevel` of the used `Logger` and must be greater or equal than the global `LogLevel` additionally the condition passed must be `true`. Params: condition = The condition must be `true` for the data to be logged. args = The data that should be logged. Example: -------------------- auto s = new FileLogger(stdout); s.trace(true, 1337, "is number"); s.info(false, 1337, "is number"); s.error(true, 1337, "is number"); s.critical(false, 1337, "is number"); s.fatal(true, 1337, "is number"); -------------------- */ void logImpl(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(lazy bool condition, lazy A args) { static if (isLoggingActiveAt!ll && ll >= moduleLogLevel!moduleName) synchronized (mutex) { if (isLoggingEnabled(ll, this.logLevel_, globalLogLevel, condition)) { this.beginLogMsg(file, line, funcName, prettyFuncName, moduleName, ll, thisTid, Clock.currTime, this); auto writer = MsgRange(this); formatString(writer, args); this.finishLogMsg(); static if (ll == LogLevel.fatal) this.fatalHandler_(); } } } /** This function logs data to the used `Logger` in a `printf`-style manner. In order for the resulting log message to be logged the `LogLevel` must be greater or equal than the `LogLevel` of the used `Logger` and must be greater or equal than the global `LogLevel` additionally the passed condition must be `true`. Params: condition = The condition must be `true` for the data to be logged. msg = The `printf`-style string. args = The data that should be logged. Example: -------------------- auto s = new FileLogger(stderr); s.tracef(true, "is number %d", 1); s.infof(true, "is number %d", 2); s.errorf(false, "is number %d", 3); s.criticalf(someFunc(), "is number %d", 4); s.fatalf(true, "is number %d", 5); -------------------- */ void logImplf(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(lazy bool condition, lazy string msg, lazy A args) { static if (isLoggingActiveAt!ll && ll >= moduleLogLevel!moduleName) synchronized (mutex) { import std.format.write : formattedWrite; if (isLoggingEnabled(ll, this.logLevel_, globalLogLevel, condition)) { this.beginLogMsg(file, line, funcName, prettyFuncName, moduleName, ll, thisTid, Clock.currTime, this); auto writer = MsgRange(this); formattedWrite(writer, msg, args); this.finishLogMsg(); static if (ll == LogLevel.fatal) this.fatalHandler_(); } } } /** This function logs data to the used `Logger` in a `printf`-style manner. In order for the resulting log message to be logged the `LogLevel` must be greater or equal than the `LogLevel` of the used `Logger` and must be greater or equal than the global `LogLevel`. Params: msg = The `printf`-style string. args = The data that should be logged. Example: -------------------- auto s = new FileLogger(stderr); s.tracef("is number %d", 1); s.infof("is number %d", 2); s.errorf("is number %d", 3); s.criticalf("is number %d", 4); s.fatalf("is number %d", 5); -------------------- */ void logImplf(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(lazy string msg, lazy A args) { static if (isLoggingActiveAt!ll && ll >= moduleLogLevel!moduleName) synchronized (mutex) { import std.format.write : formattedWrite; if (isLoggingEnabled(ll, this.logLevel_, globalLogLevel)) { this.beginLogMsg(file, line, funcName, prettyFuncName, moduleName, ll, thisTid, Clock.currTime, this); auto writer = MsgRange(this); formattedWrite(writer, msg, args); this.finishLogMsg(); static if (ll == LogLevel.fatal) this.fatalHandler_(); } } } } /// Ditto alias trace = memLogFunctions!(LogLevel.trace).logImpl; /// Ditto alias tracef = memLogFunctions!(LogLevel.trace).logImplf; /// Ditto alias info = memLogFunctions!(LogLevel.info).logImpl; /// Ditto alias infof = memLogFunctions!(LogLevel.info).logImplf; /// Ditto alias warning = memLogFunctions!(LogLevel.warning).logImpl; /// Ditto alias warningf = memLogFunctions!(LogLevel.warning).logImplf; /// Ditto alias error = memLogFunctions!(LogLevel.error).logImpl; /// Ditto alias errorf = memLogFunctions!(LogLevel.error).logImplf; /// Ditto alias critical = memLogFunctions!(LogLevel.critical).logImpl; /// Ditto alias criticalf = memLogFunctions!(LogLevel.critical).logImplf; /// Ditto alias fatal = memLogFunctions!(LogLevel.fatal).logImpl; /// Ditto alias fatalf = memLogFunctions!(LogLevel.fatal).logImplf; /** This method logs data with the `LogLevel` of the used `Logger`. This method takes a `bool` as first argument. In order for the data to be processed the `bool` must be `true` and the `LogLevel` of the Logger must be greater or equal to the global `LogLevel`. Params: args = The data that should be logged. condition = The condition must be `true` for the data to be logged. args = The data that is to be logged. Returns: The logger used by the logging function as reference. Example: -------------------- auto l = new StdioLogger(); l.log(1337); -------------------- */ void log(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(const LogLevel ll, lazy bool condition, lazy A args) if (args.length != 1) { static if (isLoggingActive) synchronized (mutex) { if (isLoggingEnabled(ll, this.logLevel_, globalLogLevel, condition)) { this.beginLogMsg(file, line, funcName, prettyFuncName, moduleName, ll, thisTid, Clock.currTime, this); auto writer = MsgRange(this); formatString(writer, args); this.finishLogMsg(); if (ll == LogLevel.fatal) this.fatalHandler_(); } } } /// Ditto void log(T, string moduleName = __MODULE__)(const LogLevel ll, lazy bool condition, lazy T args, int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__) { static if (isLoggingActive) synchronized (mutex) { if (isLoggingEnabled(ll, this.logLevel_, globalLogLevel, condition) && ll >= moduleLogLevel!moduleName) { this.beginLogMsg(file, line, funcName, prettyFuncName, moduleName, ll, thisTid, Clock.currTime, this); auto writer = MsgRange(this); formatString(writer, args); this.finishLogMsg(); if (ll == LogLevel.fatal) this.fatalHandler_(); } } } /** This function logs data to the used `Logger` with a specific `LogLevel`. In order for the resulting log message to be logged the `LogLevel` must be greater or equal than the `LogLevel` of the used `Logger` and must be greater or equal than the global `LogLevel`. Params: ll = The specific `LogLevel` used for logging the log message. args = The data that should be logged. Example: -------------------- auto s = new FileLogger(stdout); s.log(LogLevel.trace, 1337, "is number"); s.log(LogLevel.info, 1337, "is number"); s.log(LogLevel.warning, 1337, "is number"); s.log(LogLevel.error, 1337, "is number"); s.log(LogLevel.fatal, 1337, "is number"); -------------------- */ void log(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(const LogLevel ll, lazy A args) if ((args.length > 1 && !is(Unqual!(A[0]) : bool)) || args.length == 0) { static if (isLoggingActive) synchronized (mutex) { if (isLoggingEnabled(ll, this.logLevel_, globalLogLevel)) { this.beginLogMsg(file, line, funcName, prettyFuncName, moduleName, ll, thisTid, Clock.currTime, this); auto writer = MsgRange(this); formatString(writer, args); this.finishLogMsg(); if (ll == LogLevel.fatal) this.fatalHandler_(); } } } /// Ditto void log(T)(const LogLevel ll, lazy T args, int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__) { static if (isLoggingActive) synchronized (mutex) { if (isLoggingEnabled(ll, this.logLevel_, globalLogLevel)) { this.beginLogMsg(file, line, funcName, prettyFuncName, moduleName, ll, thisTid, Clock.currTime, this); auto writer = MsgRange(this); formatString(writer, args); this.finishLogMsg(); if (ll == LogLevel.fatal) this.fatalHandler_(); } } } /** This function logs data to the used `Logger` depending on a explicitly passed condition with the `LogLevel` of the used `Logger`. In order for the resulting log message to be logged the `LogLevel` of the used `Logger` must be greater or equal than the global `LogLevel` and the condition must be `true`. Params: condition = The condition must be `true` for the data to be logged. args = The data that should be logged. Example: -------------------- auto s = new FileLogger(stdout); s.log(true, 1337, "is number"); s.log(true, 1337, "is number"); s.log(true, 1337, "is number"); s.log(false, 1337, "is number"); s.log(false, 1337, "is number"); -------------------- */ void log(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(lazy bool condition, lazy A args) if (args.length != 1) { static if (isLoggingActive) synchronized (mutex) { if (isLoggingEnabled(this.logLevel_, this.logLevel_, globalLogLevel, condition)) { this.beginLogMsg(file, line, funcName, prettyFuncName, moduleName, this.logLevel_, thisTid, Clock.currTime, this); auto writer = MsgRange(this); formatString(writer, args); this.finishLogMsg(); if (this.logLevel_ == LogLevel.fatal) this.fatalHandler_(); } } } /// Ditto void log(T)(lazy bool condition, lazy T args, int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__) { static if (isLoggingActive) synchronized (mutex) { if (isLoggingEnabled(this.logLevel_, this.logLevel_, globalLogLevel, condition)) { this.beginLogMsg(file, line, funcName, prettyFuncName, moduleName, this.logLevel_, thisTid, Clock.currTime, this); auto writer = MsgRange(this); formatString(writer, args); this.finishLogMsg(); if (this.logLevel_ == LogLevel.fatal) this.fatalHandler_(); } } } /** This function logs data to the used `Logger` with the `LogLevel` of the used `Logger`. In order for the resulting log message to be logged the `LogLevel` of the used `Logger` must be greater or equal than the global `LogLevel`. Params: args = The data that should be logged. Example: -------------------- auto s = new FileLogger(stdout); s.log(1337, "is number"); s.log(info, 1337, "is number"); s.log(1337, "is number"); s.log(1337, "is number"); s.log(1337, "is number"); -------------------- */ void log(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(lazy A args) if ((args.length > 1 && !is(Unqual!(A[0]) : bool) && !is(immutable A[0] == immutable LogLevel)) || args.length == 0) { static if (isLoggingActive) synchronized (mutex) { if (isLoggingEnabled(this.logLevel_, this.logLevel_, globalLogLevel)) { this.beginLogMsg(file, line, funcName, prettyFuncName, moduleName, this.logLevel_, thisTid, Clock.currTime, this); auto writer = MsgRange(this); formatString(writer, args); this.finishLogMsg(); if (this.logLevel_ == LogLevel.fatal) this.fatalHandler_(); } } } /// Ditto void log(T)(lazy T arg, int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__) { static if (isLoggingActive) synchronized (mutex) { if (isLoggingEnabled(this.logLevel_, this.logLevel_, globalLogLevel)) { this.beginLogMsg(file, line, funcName, prettyFuncName, moduleName, this.logLevel_, thisTid, Clock.currTime, this); auto writer = MsgRange(this); formatString(writer, arg); this.finishLogMsg(); if (this.logLevel_ == LogLevel.fatal) this.fatalHandler_(); } } } /** This function logs data to the used `Logger` with a specific `LogLevel` and depending on a condition in a `printf`-style manner. In order for the resulting log message to be logged the `LogLevel` must be greater or equal than the `LogLevel` of the used `Logger` and must be greater or equal than the global `LogLevel` and the condition must be `true`. Params: ll = The specific `LogLevel` used for logging the log message. condition = The condition must be `true` for the data to be logged. msg = The format string used for this log call. args = The data that should be logged. Example: -------------------- auto s = new FileLogger(stdout); s.logf(LogLevel.trace, true ,"%d %s", 1337, "is number"); s.logf(LogLevel.info, true ,"%d %s", 1337, "is number"); s.logf(LogLevel.warning, true ,"%d %s", 1337, "is number"); s.logf(LogLevel.error, false ,"%d %s", 1337, "is number"); s.logf(LogLevel.fatal, true ,"%d %s", 1337, "is number"); -------------------- */ void logf(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(const LogLevel ll, lazy bool condition, lazy string msg, lazy A args) { static if (isLoggingActive) synchronized (mutex) { import std.format.write : formattedWrite; if (isLoggingEnabled(ll, this.logLevel_, globalLogLevel, condition)) { this.beginLogMsg(file, line, funcName, prettyFuncName, moduleName, ll, thisTid, Clock.currTime, this); auto writer = MsgRange(this); formattedWrite(writer, msg, args); this.finishLogMsg(); if (ll == LogLevel.fatal) this.fatalHandler_(); } } } /** This function logs data to the used `Logger` with a specific `LogLevel` in a `printf`-style manner. In order for the resulting log message to be logged the `LogLevel` must be greater or equal than the `LogLevel` of the used `Logger` and must be greater or equal than the global `LogLevel`. Params: ll = The specific `LogLevel` used for logging the log message. msg = The format string used for this log call. args = The data that should be logged. Example: -------------------- auto s = new FileLogger(stdout); s.logf(LogLevel.trace, "%d %s", 1337, "is number"); s.logf(LogLevel.info, "%d %s", 1337, "is number"); s.logf(LogLevel.warning, "%d %s", 1337, "is number"); s.logf(LogLevel.error, "%d %s", 1337, "is number"); s.logf(LogLevel.fatal, "%d %s", 1337, "is number"); -------------------- */ void logf(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(const LogLevel ll, lazy string msg, lazy A args) { static if (isLoggingActive) synchronized (mutex) { import std.format.write : formattedWrite; if (isLoggingEnabled(ll, this.logLevel_, globalLogLevel)) { this.beginLogMsg(file, line, funcName, prettyFuncName, moduleName, ll, thisTid, Clock.currTime, this); auto writer = MsgRange(this); formattedWrite(writer, msg, args); this.finishLogMsg(); if (ll == LogLevel.fatal) this.fatalHandler_(); } } } /** This function logs data to the used `Logger` depending on a condition with the `LogLevel` of the used `Logger` in a `printf`-style manner. In order for the resulting log message to be logged the `LogLevel` of the used `Logger` must be greater or equal than the global `LogLevel` and the condition must be `true`. Params: condition = The condition must be `true` for the data to be logged. msg = The format string used for this log call. args = The data that should be logged. Example: -------------------- auto s = new FileLogger(stdout); s.logf(true ,"%d %s", 1337, "is number"); s.logf(true ,"%d %s", 1337, "is number"); s.logf(true ,"%d %s", 1337, "is number"); s.logf(false ,"%d %s", 1337, "is number"); s.logf(true ,"%d %s", 1337, "is number"); -------------------- */ void logf(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(lazy bool condition, lazy string msg, lazy A args) { static if (isLoggingActive) synchronized (mutex) { import std.format.write : formattedWrite; if (isLoggingEnabled(this.logLevel_, this.logLevel_, globalLogLevel, condition)) { this.beginLogMsg(file, line, funcName, prettyFuncName, moduleName, this.logLevel_, thisTid, Clock.currTime, this); auto writer = MsgRange(this); formattedWrite(writer, msg, args); this.finishLogMsg(); if (this.logLevel_ == LogLevel.fatal) this.fatalHandler_(); } } } /** This method logs data to the used `Logger` with the `LogLevel` of the this `Logger` in a `printf`-style manner. In order for the data to be processed the `LogLevel` of the `Logger` must be greater or equal to the global `LogLevel`. Params: msg = The format string used for this log call. args = The data that should be logged. Example: -------------------- auto s = new FileLogger(stdout); s.logf("%d %s", 1337, "is number"); s.logf("%d %s", 1337, "is number"); s.logf("%d %s", 1337, "is number"); s.logf("%d %s", 1337, "is number"); s.logf("%d %s", 1337, "is number"); -------------------- */ void logf(int line = __LINE__, string file = __FILE__, string funcName = __FUNCTION__, string prettyFuncName = __PRETTY_FUNCTION__, string moduleName = __MODULE__, A...)(lazy string msg, lazy A args) { static if (isLoggingActive) synchronized (mutex) { import std.format.write : formattedWrite; if (isLoggingEnabled(this.logLevel_, this.logLevel_, globalLogLevel)) { this.beginLogMsg(file, line, funcName, prettyFuncName, moduleName, this.logLevel_, thisTid, Clock.currTime, this); auto writer = MsgRange(this); formattedWrite(writer, msg, args); this.finishLogMsg(); if (this.logLevel_ == LogLevel.fatal) this.fatalHandler_(); } } } private void delegate() @safe fatalHandler_; private shared LogLevel logLevel_ = LogLevel.info; private Mutex mutex; protected Appender!string msgAppender; protected LogEntry header; } // Thread Global private __gshared Logger stdSharedDefaultLogger; private shared Logger stdSharedLogger; private shared LogLevel stdLoggerGlobalLogLevel = LogLevel.all; /* This method returns the global default Logger. * Marked @trusted because of excessive reliance on __gshared data */ private @property Logger defaultSharedLoggerImpl() @trusted { import core.lifetime : emplace; import std.stdio : stderr; __gshared align(FileLogger.alignof) void[__traits(classInstanceSize, FileLogger)] _buffer; import std.concurrency : initOnce; initOnce!stdSharedDefaultLogger({ auto buffer = cast(ubyte[]) _buffer; return emplace!FileLogger(buffer, stderr, LogLevel.info); }()); return stdSharedDefaultLogger; } /** This property sets and gets the default `Logger`. Unless set to another logger by the user, the default logger's log level is LogLevel.info. Example: ------------- sharedLog = new FileLogger(yourFile); ------------- The example sets a new `FileLogger` as new `sharedLog`. If at some point you want to use the original default logger again, you can use $(D sharedLog = null;). This will put back the original. Note: While getting and setting `sharedLog` is thread-safe, it has to be considered that the returned reference is only a current snapshot and in the following code, you must make sure no other thread reassigns to it between reading and writing `sharedLog`. `sharedLog` is only thread-safe if the the used `Logger` is thread-safe. The default `Logger` is thread-safe. ------------- if (sharedLog !is myLogger) sharedLog = new myLogger; ------------- */ @property Logger sharedLog() @safe { static auto trustedLoad(ref shared Logger logger) @trusted { import core.atomic : atomicLoad, MemoryOrder; return cast() atomicLoad!(MemoryOrder.acq)(logger); //FIXME: Casting shared away here. Not good. See issue 16232. } // If we have set up our own logger use that if (auto logger = trustedLoad(stdSharedLogger)) { return logger; } else { // Otherwise resort to the default logger return defaultSharedLoggerImpl; } } /// Ditto @property void sharedLog(Logger logger) @trusted { import core.atomic : atomicStore, MemoryOrder; atomicStore!(MemoryOrder.rel)(stdSharedLogger, cast(shared) logger); } /** This methods get and set the global `LogLevel`. Every log message with a `LogLevel` lower as the global `LogLevel` will be discarded before it reaches `writeLogMessage` method of any `Logger`. */ /* Implementation note: For any public logging call, the global log level shall only be queried once on entry. Otherwise when another threads changes the level, we would work with different levels at different spots in the code. */ @property LogLevel globalLogLevel() @safe @nogc { return trustedLoad(stdLoggerGlobalLogLevel); } /// Ditto @property void globalLogLevel(LogLevel ll) @safe { trustedStore(stdLoggerGlobalLogLevel, ll); } // Thread Local /** The `StdForwardLogger` will always forward anything to the sharedLog. The `StdForwardLogger` will not throw if data is logged with $(D LogLevel.fatal). */ class StdForwardLogger : Logger { /** The default constructor for the `StdForwardLogger`. Params: lv = The `LogLevel` for the `MultiLogger`. By default the $(D LogLevel) is `all`. */ this(const LogLevel lv = LogLevel.all) @safe { super(lv); this.fatalHandler = delegate() {}; } override protected void writeLogMsg(ref LogEntry payload) { sharedLog.forwardMsg(payload); } } /// @safe unittest { auto nl1 = new StdForwardLogger(LogLevel.all); } /** This `LogLevel` is unqiue to every thread. The thread local `Logger` will use this `LogLevel` to filter log calls every same way as presented earlier. */ //public LogLevel threadLogLevel = LogLevel.all; private Logger stdLoggerThreadLogger; private Logger stdLoggerDefaultThreadLogger; /* This method returns the thread local default Logger. */ private @property Logger stdThreadLocalLogImpl() @trusted { import core.lifetime : emplace; static void*[(__traits(classInstanceSize, StdForwardLogger) - 1) / (void*).sizeof + 1] _buffer; auto buffer = cast(ubyte[]) _buffer; if (stdLoggerDefaultThreadLogger is null) { stdLoggerDefaultThreadLogger = emplace!StdForwardLogger(buffer, LogLevel.all); } return stdLoggerDefaultThreadLogger; } /** This function returns a thread unique `Logger`, that by default propergates all data logged to it to the `sharedLog`. These properties can be used to set and get this `Logger`. Every modification to this `Logger` will only be visible in the thread the modification has been done from. This `Logger` is called by the free standing log functions. This allows to create thread local redirections and still use the free standing log functions. */ @property Logger stdThreadLocalLog() @safe { // If we have set up our own logger use that if (auto logger = stdLoggerThreadLogger) return logger; else // Otherwise resort to the default logger return stdThreadLocalLogImpl; } /// Ditto @property void stdThreadLocalLog(Logger logger) @safe { stdLoggerThreadLogger = logger; } /// Ditto @system unittest { import std.experimental.logger.filelogger : FileLogger; import std.file : deleteme, remove; Logger l = stdThreadLocalLog; stdThreadLocalLog = new FileLogger(deleteme ~ "-someFile.log"); scope(exit) remove(deleteme ~ "-someFile.log"); auto tempLog = stdThreadLocalLog; stdThreadLocalLog = l; destroy(tempLog); } @safe unittest { LogLevel ll = globalLogLevel; globalLogLevel = LogLevel.fatal; assert(globalLogLevel == LogLevel.fatal); globalLogLevel = ll; } package class TestLogger : Logger { int line = -1; string file = null; string func = null; string prettyFunc = null; string msg = null; LogLevel lvl; this(const LogLevel lv = LogLevel.all) @safe { super(lv); } override protected void writeLogMsg(ref LogEntry payload) @safe { this.line = payload.line; this.file = payload.file; this.func = payload.funcName; this.prettyFunc = payload.prettyFuncName; this.lvl = payload.logLevel; this.msg = payload.msg; } } version (StdUnittest) private void testFuncNames(Logger logger) @safe { string s = "I'm here"; logger.log(s); } @safe unittest { auto tl1 = new TestLogger(); testFuncNames(tl1); assert(tl1.func == "std.experimental.logger.core.testFuncNames", tl1.func); assert(tl1.prettyFunc == "void std.experimental.logger.core.testFuncNames(Logger logger) @safe", tl1.prettyFunc); assert(tl1.msg == "I'm here", tl1.msg); } @safe unittest { auto tl1 = new TestLogger(LogLevel.all); tl1.log(); assert(tl1.line == __LINE__ - 1); tl1.log(true); assert(tl1.line == __LINE__ - 1); tl1.log(false); assert(tl1.line == __LINE__ - 3); tl1.log(LogLevel.info); assert(tl1.line == __LINE__ - 1); tl1.log(LogLevel.off); assert(tl1.line == __LINE__ - 3); tl1.log(LogLevel.info, true); assert(tl1.line == __LINE__ - 1); tl1.log(LogLevel.info, false); assert(tl1.line == __LINE__ - 3); auto oldunspecificLogger = sharedLog; scope(exit) { sharedLog = oldunspecificLogger; } sharedLog = tl1; log(); assert(tl1.line == __LINE__ - 1); log(LogLevel.info); assert(tl1.line == __LINE__ - 1); log(true); assert(tl1.line == __LINE__ - 1); log(LogLevel.warning, true); assert(tl1.line == __LINE__ - 1); trace(); assert(tl1.line == __LINE__ - 1); } @safe unittest { import std.experimental.logger.multilogger : MultiLogger; auto tl1 = new TestLogger; auto tl2 = new TestLogger; auto ml = new MultiLogger(); ml.insertLogger("one", tl1); ml.insertLogger("two", tl2); string msg = "Hello Logger World"; ml.log(msg); int lineNumber = __LINE__ - 1; assert(tl1.msg == msg); assert(tl1.line == lineNumber); assert(tl2.msg == msg); assert(tl2.line == lineNumber); ml.removeLogger("one"); ml.removeLogger("two"); auto n = ml.removeLogger("one"); assert(n is null); } @safe unittest { bool errorThrown = false; auto tl = new TestLogger; auto dele = delegate() { errorThrown = true; }; tl.fatalHandler = dele; tl.fatal(); assert(errorThrown); } @safe unittest { import std.conv : to; import std.exception : assertThrown, assertNotThrown; import std.format : format; auto l = new TestLogger(LogLevel.all); string msg = "Hello Logger World"; l.log(msg); int lineNumber = __LINE__ - 1; assert(l.msg == msg); assert(l.line == lineNumber); assert(l.logLevel == LogLevel.all); l.log(true, msg); lineNumber = __LINE__ - 1; assert(l.msg == msg, l.msg); assert(l.line == lineNumber); assert(l.logLevel == LogLevel.all); l.log(false, msg); assert(l.msg == msg); assert(l.line == lineNumber, to!string(l.line)); assert(l.logLevel == LogLevel.all); msg = "%s Another message"; l.logf(msg, "Yet"); lineNumber = __LINE__ - 1; assert(l.msg == msg.format("Yet")); assert(l.line == lineNumber); assert(l.logLevel == LogLevel.all); l.logf(true, msg, "Yet"); lineNumber = __LINE__ - 1; assert(l.msg == msg.format("Yet")); assert(l.line == lineNumber); assert(l.logLevel == LogLevel.all); l.logf(false, msg, "Yet"); assert(l.msg == msg.format("Yet")); assert(l.line == lineNumber); assert(l.logLevel == LogLevel.all); () @trusted { assertThrown!Throwable(l.logf(LogLevel.fatal, msg, "Yet")); } (); lineNumber = __LINE__ - 2; assert(l.msg == msg.format("Yet")); assert(l.line == lineNumber); assert(l.logLevel == LogLevel.all); () @trusted { assertThrown!Throwable(l.logf(LogLevel.fatal, true, msg, "Yet")); } (); lineNumber = __LINE__ - 2; assert(l.msg == msg.format("Yet")); assert(l.line == lineNumber); assert(l.logLevel == LogLevel.all); assertNotThrown(l.logf(LogLevel.fatal, false, msg, "Yet")); assert(l.msg == msg.format("Yet")); assert(l.line == lineNumber); assert(l.logLevel == LogLevel.all); auto oldunspecificLogger = sharedLog; assert(oldunspecificLogger.logLevel == LogLevel.info, to!string(oldunspecificLogger.logLevel)); assert(l.logLevel == LogLevel.all); sharedLog = l; assert(globalLogLevel == LogLevel.all, to!string(globalLogLevel)); scope(exit) { sharedLog = oldunspecificLogger; } assert(sharedLog.logLevel == LogLevel.all); assert(stdThreadLocalLog.logLevel == LogLevel.all); assert(globalLogLevel == LogLevel.all); msg = "Another message"; log(msg); lineNumber = __LINE__ - 1; assert(l.logLevel == LogLevel.all); assert(l.line == lineNumber, to!string(l.line)); assert(l.msg == msg, l.msg); log(true, msg); lineNumber = __LINE__ - 1; assert(l.msg == msg); assert(l.line == lineNumber); assert(l.logLevel == LogLevel.all); log(false, msg); assert(l.msg == msg); assert(l.line == lineNumber); assert(l.logLevel == LogLevel.all); msg = "%s Another message"; logf(msg, "Yet"); lineNumber = __LINE__ - 1; assert(l.msg == msg.format("Yet")); assert(l.line == lineNumber); assert(l.logLevel == LogLevel.all); logf(true, msg, "Yet"); lineNumber = __LINE__ - 1; assert(l.msg == msg.format("Yet")); assert(l.line == lineNumber); assert(l.logLevel == LogLevel.all); logf(false, msg, "Yet"); assert(l.msg == msg.format("Yet")); assert(l.line == lineNumber); assert(l.logLevel == LogLevel.all); msg = "%s Another message"; () @trusted { assertThrown!Throwable(logf(LogLevel.fatal, msg, "Yet")); } (); lineNumber = __LINE__ - 2; assert(l.msg == msg.format("Yet")); assert(l.line == lineNumber); assert(l.logLevel == LogLevel.all); () @trusted { assertThrown!Throwable(logf(LogLevel.fatal, true, msg, "Yet")); } (); lineNumber = __LINE__ - 2; assert(l.msg == msg.format("Yet")); assert(l.line == lineNumber); assert(l.logLevel == LogLevel.all); assertNotThrown(logf(LogLevel.fatal, false, msg, "Yet")); assert(l.msg == msg.format("Yet")); assert(l.line == lineNumber); assert(l.logLevel == LogLevel.all); } @system unittest // default logger { import std.file : deleteme, exists, remove; import std.stdio : File; import std.string : indexOf; string filename = deleteme ~ __FUNCTION__ ~ ".tempLogFile"; FileLogger l = new FileLogger(filename); auto oldunspecificLogger = sharedLog; sharedLog = l; scope(exit) { remove(filename); assert(!exists(filename)); sharedLog = oldunspecificLogger; globalLogLevel = LogLevel.all; } string notWritten = "this should not be written to file"; string written = "this should be written to file"; globalLogLevel = LogLevel.critical; assert(globalLogLevel == LogLevel.critical); log(LogLevel.warning, notWritten); log(LogLevel.critical, written); l.file.flush(); l.file.close(); auto file = File(filename, "r"); assert(!file.eof); string readLine = file.readln(); assert(readLine.indexOf(written) != -1, readLine); assert(readLine.indexOf(notWritten) == -1, readLine); file.close(); } @system unittest { import std.file : deleteme, remove; import std.stdio : File; import std.string : indexOf; string filename = deleteme ~ __FUNCTION__ ~ ".tempLogFile"; auto oldunspecificLogger = sharedLog; scope(exit) { remove(filename); sharedLog = oldunspecificLogger; globalLogLevel = LogLevel.all; } string notWritten = "this should not be written to file"; string written = "this should be written to file"; auto l = new FileLogger(filename); sharedLog = l; sharedLog.logLevel = LogLevel.critical; log(LogLevel.error, false, notWritten); log(LogLevel.critical, true, written); destroy(l); auto file = File(filename, "r"); auto readLine = file.readln(); assert(!readLine.empty, readLine); assert(readLine.indexOf(written) != -1); assert(readLine.indexOf(notWritten) == -1); file.close(); } @safe unittest { import std.conv : to; auto tl = new TestLogger(LogLevel.all); int l = __LINE__; tl.info("a"); assert(tl.line == l+1); assert(tl.msg == "a"); assert(tl.logLevel == LogLevel.all); assert(globalLogLevel == LogLevel.all); l = __LINE__; tl.trace("b"); assert(tl.msg == "b", tl.msg); assert(tl.line == l+1, to!string(tl.line)); } // testing possible log conditions @safe unittest { import std.conv : to; import std.format : format; import std.string : indexOf; auto oldunspecificLogger = sharedLog; auto mem = new TestLogger; mem.fatalHandler = delegate() {}; sharedLog = mem; scope(exit) { sharedLog = oldunspecificLogger; globalLogLevel = LogLevel.all; } int value = 0; foreach (gll; [cast(LogLevel) LogLevel.all, LogLevel.trace, LogLevel.info, LogLevel.warning, LogLevel.error, LogLevel.critical, LogLevel.fatal, LogLevel.off]) { globalLogLevel = gll; foreach (ll; [cast(LogLevel) LogLevel.all, LogLevel.trace, LogLevel.info, LogLevel.warning, LogLevel.error, LogLevel.critical, LogLevel.fatal, LogLevel.off]) { mem.logLevel = ll; foreach (cond; [true, false]) { foreach (condValue; [true, false]) { foreach (memOrG; [true, false]) { foreach (prntf; [true, false]) { foreach (ll2; [cast(LogLevel) LogLevel.all, LogLevel.trace, LogLevel.info, LogLevel.warning, LogLevel.error, LogLevel.critical, LogLevel.fatal, LogLevel.off]) { foreach (singleMulti; 0 .. 2) { int lineCall; mem.msg = "-1"; if (memOrG) { if (prntf) { if (cond) { if (singleMulti == 0) { mem.logf(ll2, condValue, "%s", value); lineCall = __LINE__; } else { mem.logf(ll2, condValue, "%d %d", value, value); lineCall = __LINE__; } } else { if (singleMulti == 0) { mem.logf(ll2, "%s", value); lineCall = __LINE__; } else { mem.logf(ll2, "%d %d", value, value); lineCall = __LINE__; } } } else { if (cond) { if (singleMulti == 0) { mem.log(ll2, condValue, to!string(value)); lineCall = __LINE__; } else { mem.log(ll2, condValue, to!string(value), value); lineCall = __LINE__; } } else { if (singleMulti == 0) { mem.log(ll2, to!string(value)); lineCall = __LINE__; } else { mem.log(ll2, to!string(value), value); lineCall = __LINE__; } } } } else { if (prntf) { if (cond) { if (singleMulti == 0) { logf(ll2, condValue, "%s", value); lineCall = __LINE__; } else { logf(ll2, condValue, "%s %d", value, value); lineCall = __LINE__; } } else { if (singleMulti == 0) { logf(ll2, "%s", value); lineCall = __LINE__; } else { logf(ll2, "%s %s", value, value); lineCall = __LINE__; } } } else { if (cond) { if (singleMulti == 0) { log(ll2, condValue, to!string(value)); lineCall = __LINE__; } else { log(ll2, condValue, value, to!string(value)); lineCall = __LINE__; } } else { if (singleMulti == 0) { log(ll2, to!string(value)); lineCall = __LINE__; } else { log(ll2, value, to!string(value)); lineCall = __LINE__; } } } } string valueStr = to!string(value); ++value; bool ll2Off = (ll2 != LogLevel.off); bool gllOff = (gll != LogLevel.off); bool llOff = (ll != LogLevel.off); bool condFalse = (cond ? condValue : true); bool ll2VSgll = (ll2 >= gll); bool ll2VSll = (ll2 >= ll); bool shouldLog = ll2Off && gllOff && llOff && condFalse && ll2VSgll && ll2VSll; /* writefln( "go(%b) ll2o(%b) c(%b) lg(%b) ll(%b) s(%b)" , gll != LogLevel.off, ll2 != LogLevel.off, cond ? condValue : true, ll2 >= gll, ll2 >= ll, shouldLog); */ if (shouldLog) { assert(mem.msg.indexOf(valueStr) != -1, format( "lineCall(%d) ll2Off(%u) gll(%u) ll(%u) ll2(%u) " ~ "cond(%b) condValue(%b)" ~ " memOrG(%b) shouldLog(%b) %s == %s" ~ " %b %b %b %b %b", lineCall, ll2Off, gll, ll, ll2, cond, condValue, memOrG, shouldLog, mem.msg, valueStr, gllOff, llOff, condFalse, ll2VSgll, ll2VSll )); } else { assert(mem.msg.indexOf(valueStr), format( "lineCall(%d) ll2Off(%u) gll(%u) ll(%u) ll2(%u) " ~ "cond(%b) condValue(%b)" ~ " memOrG(%b) shouldLog(%b) %s == %s" ~ " %b %b %b %b %b", lineCall, ll2Off, gll, ll, ll2, cond, condValue, memOrG, shouldLog, mem.msg, valueStr, gllOff, llOff, condFalse, ll2VSgll, ll2VSll )); } } } } } } } } } } // more testing @safe unittest { import std.conv : to; import std.format : format; import std.string : indexOf; auto oldunspecificLogger = sharedLog; auto mem = new TestLogger; mem.fatalHandler = delegate() {}; sharedLog = mem; scope(exit) { sharedLog = oldunspecificLogger; globalLogLevel = LogLevel.all; } int value = 0; foreach (gll; [cast(LogLevel) LogLevel.all, LogLevel.trace, LogLevel.info, LogLevel.warning, LogLevel.error, LogLevel.critical, LogLevel.fatal, LogLevel.off]) { globalLogLevel = gll; foreach (ll; [cast(LogLevel) LogLevel.all, LogLevel.trace, LogLevel.info, LogLevel.warning, LogLevel.error, LogLevel.critical, LogLevel.fatal, LogLevel.off]) { mem.logLevel = ll; foreach (tll; [cast(LogLevel) LogLevel.all, LogLevel.trace, LogLevel.info, LogLevel.warning, LogLevel.error, LogLevel.critical, LogLevel.fatal, LogLevel.off]) { stdThreadLocalLog.logLevel = tll; foreach (cond; [true, false]) { foreach (condValue; [true, false]) { foreach (memOrG; [true, false]) { foreach (prntf; [true, false]) { foreach (singleMulti; 0 .. 2) { int lineCall; mem.msg = "-1"; if (memOrG) { if (prntf) { if (cond) { if (singleMulti == 0) { mem.logf(condValue, "%s", value); lineCall = __LINE__; } else { mem.logf(condValue, "%d %d", value, value); lineCall = __LINE__; } } else { if (singleMulti == 0) { mem.logf("%s", value); lineCall = __LINE__; } else { mem.logf("%d %d", value, value); lineCall = __LINE__; } } } else { if (cond) { if (singleMulti == 0) { mem.log(condValue, to!string(value)); lineCall = __LINE__; } else { mem.log(condValue, to!string(value), value); lineCall = __LINE__; } } else { if (singleMulti == 0) { mem.log(to!string(value)); lineCall = __LINE__; } else { mem.log(to!string(value), value); lineCall = __LINE__; } } } } else { if (prntf) { if (cond) { if (singleMulti == 0) { logf(condValue, "%s", value); lineCall = __LINE__; } else { logf(condValue, "%s %d", value, value); lineCall = __LINE__; } } else { if (singleMulti == 0) { logf("%s", value); lineCall = __LINE__; } else { logf("%s %s", value, value); lineCall = __LINE__; } } } else { if (cond) { if (singleMulti == 0) { log(condValue, to!string(value)); lineCall = __LINE__; } else { log(condValue, value, to!string(value)); lineCall = __LINE__; } } else { if (singleMulti == 0) { log(to!string(value)); lineCall = __LINE__; } else { log(value, to!string(value)); lineCall = __LINE__; } } } } string valueStr = to!string(value); ++value; bool gllOff = (gll != LogLevel.off); bool llOff = (ll != LogLevel.off); bool tllOff = (tll != LogLevel.off); bool llVSgll = (ll >= gll); bool tllVSll = (stdThreadLocalLog.logLevel >= ll); bool condFalse = (cond ? condValue : true); bool shouldLog = gllOff && llOff && (memOrG ? true : tllOff) && (memOrG ? (ll >= gll) : (tll >= gll && tll >= ll)) && condFalse; if (shouldLog) { assert(mem.msg.indexOf(valueStr) != -1, format("\ngll(%s) ll(%s) tll(%s) " ~ "cond(%s) condValue(%s) " ~ "memOrG(%s) prntf(%s) " ~ "singleMulti(%s)", gll, ll, tll, cond, condValue, memOrG, prntf, singleMulti) ~ format(" gllOff(%s) llOff(%s) " ~ "llVSgll(%s) tllVSll(%s) " ~ "tllOff(%s) condFalse(%s) " ~ "shoudlLog(%s)", gll != LogLevel.off, ll != LogLevel.off, llVSgll, tllVSll, tllOff, condFalse, shouldLog) ~ format("msg(%s) line(%s) " ~ "lineCall(%s) valueStr(%s)", mem.msg, mem.line, lineCall, valueStr) ); } else { assert(mem.msg.indexOf(valueStr) == -1, format("\ngll(%s) ll(%s) tll(%s) " ~ "cond(%s) condValue(%s) " ~ "memOrG(%s) prntf(%s) " ~ "singleMulti(%s)", gll, ll, tll, cond, condValue, memOrG, prntf, singleMulti) ~ format(" gllOff(%s) llOff(%s) " ~ "llVSgll(%s) tllVSll(%s) " ~ "tllOff(%s) condFalse(%s) " ~ "shoudlLog(%s)", gll != LogLevel.off, ll != LogLevel.off, llVSgll, tllVSll, tllOff, condFalse, shouldLog) ~ format("msg(%s) line(%s) " ~ "lineCall(%s) valueStr(%s)", mem.msg, mem.line, lineCall, valueStr) ); } } } } } } } } } } // testing more possible log conditions @safe unittest { bool fatalLog; auto mem = new TestLogger; mem.fatalHandler = delegate() { fatalLog = true; }; auto oldunspecificLogger = sharedLog; stdThreadLocalLog.logLevel = LogLevel.all; sharedLog = mem; scope(exit) { sharedLog = oldunspecificLogger; globalLogLevel = LogLevel.all; } foreach (gll; [cast(LogLevel) LogLevel.all, LogLevel.trace, LogLevel.info, LogLevel.warning, LogLevel.error, LogLevel.critical, LogLevel.fatal, LogLevel.off]) { globalLogLevel = gll; foreach (ll; [cast(LogLevel) LogLevel.all, LogLevel.trace, LogLevel.info, LogLevel.warning, LogLevel.error, LogLevel.critical, LogLevel.fatal, LogLevel.off]) { mem.logLevel = ll; foreach (tll; [cast(LogLevel) LogLevel.all, LogLevel.trace, LogLevel.info, LogLevel.warning, LogLevel.error, LogLevel.critical, LogLevel.fatal, LogLevel.off]) { stdThreadLocalLog.logLevel = tll; foreach (cond; [true, false]) { assert(globalLogLevel == gll); assert(mem.logLevel == ll); bool gllVSll = LogLevel.trace >= globalLogLevel; bool llVSgll = ll >= globalLogLevel; bool lVSll = LogLevel.trace >= ll; bool gllOff = globalLogLevel != LogLevel.off; bool llOff = mem.logLevel != LogLevel.off; bool tllOff = stdThreadLocalLog.logLevel != LogLevel.off; bool tllVSll = tll >= ll; bool tllVSgll = tll >= gll; bool lVSgll = LogLevel.trace >= tll; bool test = llVSgll && gllVSll && lVSll && gllOff && llOff && cond; bool testG = gllOff && llOff && tllOff && lVSgll && tllVSll && tllVSgll && cond; mem.line = -1; /* writefln("gll(%3u) ll(%3u) cond(%b) test(%b)", gll, ll, cond, test); writefln("%b %b %b %b %b %b test2(%b)", llVSgll, gllVSll, lVSll, gllOff, llOff, cond, test2); */ mem.trace(__LINE__); int line = __LINE__; assert(test ? mem.line == line : true); line = -1; trace(__LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; mem.trace(cond, __LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; trace(cond, __LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; mem.tracef("%d", __LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; tracef("%d", __LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; mem.tracef(cond, "%d", __LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; tracef(cond, "%d", __LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; llVSgll = ll >= globalLogLevel; lVSll = LogLevel.info >= ll; lVSgll = LogLevel.info >= tll; test = llVSgll && gllVSll && lVSll && gllOff && llOff && cond; testG = gllOff && llOff && tllOff && tllVSll && tllVSgll && lVSgll && cond; mem.info(__LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; info(__LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; mem.info(cond, __LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; info(cond, __LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; mem.infof("%d", __LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; infof("%d", __LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; mem.infof(cond, "%d", __LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; infof(cond, "%d", __LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; llVSgll = ll >= globalLogLevel; lVSll = LogLevel.warning >= ll; lVSgll = LogLevel.warning >= tll; test = llVSgll && gllVSll && lVSll && gllOff && llOff && cond; testG = gllOff && llOff && tllOff && tllVSll && tllVSgll && lVSgll && cond; mem.warning(__LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; warning(__LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; mem.warning(cond, __LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; warning(cond, __LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; mem.warningf("%d", __LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; warningf("%d", __LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; mem.warningf(cond, "%d", __LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; warningf(cond, "%d", __LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; llVSgll = ll >= globalLogLevel; lVSll = LogLevel.critical >= ll; lVSgll = LogLevel.critical >= tll; test = llVSgll && gllVSll && lVSll && gllOff && llOff && cond; testG = gllOff && llOff && tllOff && tllVSll && tllVSgll && lVSgll && cond; mem.critical(__LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; critical(__LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; mem.critical(cond, __LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; critical(cond, __LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; mem.criticalf("%d", __LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; criticalf("%d", __LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; mem.criticalf(cond, "%d", __LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; criticalf(cond, "%d", __LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; llVSgll = ll >= globalLogLevel; lVSll = LogLevel.fatal >= ll; lVSgll = LogLevel.fatal >= tll; test = llVSgll && gllVSll && lVSll && gllOff && llOff && cond; testG = gllOff && llOff && tllOff && tllVSll && tllVSgll && lVSgll && cond; mem.fatal(__LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; assert(test ? fatalLog : true); fatalLog = false; fatal(__LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; assert(testG ? fatalLog : true); fatalLog = false; mem.fatal(cond, __LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; assert(test ? fatalLog : true); fatalLog = false; fatal(cond, __LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; assert(testG ? fatalLog : true); fatalLog = false; mem.fatalf("%d", __LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; assert(test ? fatalLog : true); fatalLog = false; fatalf("%d", __LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; assert(testG ? fatalLog : true); fatalLog = false; mem.fatalf(cond, "%d", __LINE__); line = __LINE__; assert(test ? mem.line == line : true); line = -1; assert(test ? fatalLog : true); fatalLog = false; fatalf(cond, "%d", __LINE__); line = __LINE__; assert(testG ? mem.line == line : true); line = -1; assert(testG ? fatalLog : true); fatalLog = false; } } } } } // Issue #5 @safe unittest { import std.string : indexOf; auto oldunspecificLogger = sharedLog; scope(exit) { sharedLog = oldunspecificLogger; globalLogLevel = LogLevel.all; } auto tl = new TestLogger(LogLevel.info); sharedLog = tl; trace("trace"); assert(tl.msg.indexOf("trace") == -1); } // Issue #5 @safe unittest { import std.experimental.logger.multilogger : MultiLogger; import std.string : indexOf; stdThreadLocalLog.logLevel = LogLevel.all; auto oldunspecificLogger = sharedLog; scope(exit) { sharedLog = oldunspecificLogger; globalLogLevel = LogLevel.all; } auto logger = new MultiLogger(LogLevel.error); auto tl = new TestLogger(LogLevel.info); logger.insertLogger("required", tl); sharedLog = logger; trace("trace"); assert(tl.msg.indexOf("trace") == -1); info("info"); assert(tl.msg.indexOf("info") == -1); error("error"); assert(tl.msg.indexOf("error") == 0); } @system unittest { import std.exception : assertThrown; auto tl = new TestLogger(); assertThrown!Throwable(tl.fatal("fatal")); } // log objects with non-safe toString @system unittest { struct Test { string toString() const @system { return "test"; } } auto tl = new TestLogger(); tl.info(Test.init); assert(tl.msg == "test"); } // Workaround for atomics not allowed in @safe code private auto trustedLoad(T)(ref shared T value) @trusted { import core.atomic : atomicLoad, MemoryOrder; return atomicLoad!(MemoryOrder.acq)(value); } // ditto private void trustedStore(T)(ref shared T dst, ref T src) @trusted { import core.atomic : atomicStore, MemoryOrder; atomicStore!(MemoryOrder.rel)(dst, src); } // check that thread-local logging does not propagate // to shared logger @system unittest { import core.atomic, core.thread, std.concurrency; static shared logged_count = 0; class TestLog : Logger { Tid tid; this() { super (LogLevel.trace); this.tid = thisTid; } override void writeLogMsg(ref LogEntry payload) @trusted { assert(thisTid == this.tid); atomicOp!"+="(logged_count, 1); } } class IgnoredLog : Logger { this() { super (LogLevel.trace); } override void writeLogMsg(ref LogEntry payload) @trusted { assert(false); } } auto oldSharedLog = sharedLog; scope(exit) { sharedLog = oldSharedLog; } sharedLog = new IgnoredLog; Thread[] spawned; foreach (i; 0 .. 4) { spawned ~= new Thread({ stdThreadLocalLog = new TestLog; trace("zzzzzzzzzz"); }); spawned[$-1].start(); } foreach (t; spawned) t.join(); assert(atomicOp!"=="(logged_count, 4)); } @safe unittest { auto dl = cast(FileLogger) sharedLog; assert(dl !is null); assert(dl.logLevel == LogLevel.info); assert(globalLogLevel == LogLevel.all); auto tl = cast(StdForwardLogger) stdThreadLocalLog; assert(tl !is null); stdThreadLocalLog.logLevel = LogLevel.all; } // https://issues.dlang.org/show_bug.cgi?id=14940 @safe unittest { import std.typecons : Nullable; Nullable!int a = 1; auto l = new TestLogger(); l.infof("log: %s", a); assert(l.msg == "log: 1"); } // Ensure @system toString methods work @system unittest { enum SystemToStringMsg = "SystemToString"; static struct SystemToString { string toString() @system { return SystemToStringMsg; } } auto tl = new TestLogger(); SystemToString sts; tl.logf("%s", sts); assert(tl.msg == SystemToStringMsg); } // https://issues.dlang.org/show_bug.cgi?id=17328 @safe unittest { import std.format : format; ubyte[] data = [0]; string s = format("%(%02x%)", data); // format 00 assert(s == "00"); auto tl = new TestLogger(); tl.infof("%(%02x%)", data); // infof 000 size_t i; string fs = tl.msg; for (; i < s.length; ++i) { assert(s[s.length - 1 - i] == fs[fs.length - 1 - i], fs); } assert(fs.length == 2); } // https://issues.dlang.org/show_bug.cgi?id=15954 @safe unittest { import std.conv : to; auto tl = new TestLogger(); tl.log("123456789".to!wstring); assert(tl.msg == "123456789"); } // https://issues.dlang.org/show_bug.cgi?id=16256 @safe unittest { import std.conv : to; auto tl = new TestLogger(); tl.log("123456789"d); assert(tl.msg == "123456789"); } // https://issues.dlang.org/show_bug.cgi?id=15517 @system unittest { import std.file : exists, remove, tempDir; import std.path : buildPath; import std.stdio : File; import std.string : indexOf; string fn = tempDir.buildPath("logfile.log"); if (exists(fn)) { remove(fn); } auto oldShared = sharedLog; scope(exit) { sharedLog = oldShared; if (exists(fn)) { remove(fn); } } auto ts = [ "Test log 1", "Test log 2", "Test log 3"]; auto fl = new FileLogger(fn); sharedLog = fl; assert(exists(fn)); foreach (t; ts) { log(t); } auto f = File(fn); auto l = f.byLine(); assert(!l.empty); size_t idx; foreach (it; l) { assert(it.indexOf(ts[idx]) != -1, it); ++idx; } assert(exists(fn)); fl.file.close(); }
D
/***********************************************************************\ * lmapibuf.d * * * * Windows API header module * * * * Translated from MinGW Windows headers * * * * Placed into public domain * \***********************************************************************/ module win32.lmapibuf; pragma(lib, "netapi32.lib"); private import win32.lmcons, win32.windef; extern (Windows) { NET_API_STATUS NetApiBufferAllocate(DWORD, PVOID*); NET_API_STATUS NetApiBufferFree(PVOID); NET_API_STATUS NetApiBufferReallocate(PVOID, DWORD, PVOID*); NET_API_STATUS NetApiBufferSize(PVOID, PDWORD); NET_API_STATUS NetapipBufferAllocate(DWORD, PVOID*); }
D
module android.java.java.util.concurrent.ScheduledThreadPoolExecutor_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import9 = android.java.java.util.Collection_d_interface; import import4 = android.java.java.util.concurrent.TimeUnit_d_interface; import import6 = android.java.java.util.concurrent.Future_d_interface; import import2 = android.java.java.util.concurrent.ScheduledFuture_d_interface; import import10 = android.java.java.lang.Class_d_interface; import import0 = android.java.java.util.concurrent.ThreadFactory_d_interface; import import5 = android.java.java.util.concurrent.Callable_d_interface; import import8 = android.java.java.util.concurrent.BlockingQueue_d_interface; import import1 = android.java.java.util.concurrent.RejectedExecutionHandler_d_interface; import import3 = android.java.java.lang.Runnable_d_interface; import import7 = android.java.java.util.List_d_interface; final class ScheduledThreadPoolExecutor : IJavaObject { static immutable string[] _d_canCastTo = [ "java/util/concurrent/ScheduledExecutorService", ]; @Import this(int); @Import this(int, import0.ThreadFactory); @Import this(int, import1.RejectedExecutionHandler); @Import this(int, import0.ThreadFactory, import1.RejectedExecutionHandler); @Import import2.ScheduledFuture schedule(import3.Runnable, long, import4.TimeUnit); @Import import2.ScheduledFuture schedule(import5.Callable, long, import4.TimeUnit); @Import import2.ScheduledFuture scheduleAtFixedRate(import3.Runnable, long, long, import4.TimeUnit); @Import import2.ScheduledFuture scheduleWithFixedDelay(import3.Runnable, long, long, import4.TimeUnit); @Import void execute(import3.Runnable); @Import import6.Future submit(import3.Runnable); @Import import6.Future submit(import3.Runnable, IJavaObject); @Import import6.Future submit(import5.Callable); @Import void setContinueExistingPeriodicTasksAfterShutdownPolicy(bool); @Import bool getContinueExistingPeriodicTasksAfterShutdownPolicy(); @Import void setExecuteExistingDelayedTasksAfterShutdownPolicy(bool); @Import bool getExecuteExistingDelayedTasksAfterShutdownPolicy(); @Import void setRemoveOnCancelPolicy(bool); @Import bool getRemoveOnCancelPolicy(); @Import void shutdown(); @Import import7.List shutdownNow(); @Import import8.BlockingQueue getQueue(); @Import bool isShutdown(); @Import bool isTerminating(); @Import bool isTerminated(); @Import bool awaitTermination(long, import4.TimeUnit); @Import void setThreadFactory(import0.ThreadFactory); @Import import0.ThreadFactory getThreadFactory(); @Import void setRejectedExecutionHandler(import1.RejectedExecutionHandler); @Import import1.RejectedExecutionHandler getRejectedExecutionHandler(); @Import void setCorePoolSize(int); @Import int getCorePoolSize(); @Import bool prestartCoreThread(); @Import int prestartAllCoreThreads(); @Import bool allowsCoreThreadTimeOut(); @Import void allowCoreThreadTimeOut(bool); @Import void setMaximumPoolSize(int); @Import int getMaximumPoolSize(); @Import void setKeepAliveTime(long, import4.TimeUnit); @Import long getKeepAliveTime(import4.TimeUnit); @Import bool remove(import3.Runnable); @Import void purge(); @Import int getPoolSize(); @Import int getActiveCount(); @Import int getLargestPoolSize(); @Import long getTaskCount(); @Import long getCompletedTaskCount(); @Import @JavaName("toString") string toString_(); override string toString() { return arsd.jni.javaObjectToString(this); } @Import IJavaObject invokeAny(import9.Collection); @Import IJavaObject invokeAny(import9.Collection, long, import4.TimeUnit); @Import import7.List invokeAll(import9.Collection); @Import import7.List invokeAll(import9.Collection, long, import4.TimeUnit); @Import import10.Class getClass(); @Import int hashCode(); @Import bool equals(IJavaObject); @Import void notify(); @Import void notifyAll(); @Import void wait(long); @Import void wait(long, int); @Import void wait(); mixin IJavaObjectImplementation!(false); public static immutable string _javaParameterString = "Ljava/util/concurrent/ScheduledThreadPoolExecutor;"; }
D
module ddebug.windows.mago; version(Windows): version(USE_MAGO): import ddebug.windows.msdbg; import dlangui.core.logger; import core.atomic; import std.string; //const GUID CLSID_MAGO = {0xE348A53A, 0x470A, 0x4A70, [0x9B, 0x55, 0x1E, 0x02, 0xF3, 0x52, 0x79, 0x0D]}; const GUID IID_MAGO_NATIVE_ENGINE = {0x97348AC0, 0x2B6B, 0x4B99, [0xA2, 0x45, 0x4C, 0x7E, 0x2C, 0x09, 0xD4, 0x03]}; //const GUID CLSID_PORT_SUPPLIER = {0x3484EFB2, 0x0A52, 0x4EB2, [0x86, 0x9C, 0x1F, 0x7E, 0x66, 0x8E, 0x1B, 0x87]}; //const GUID CLSID_PORT_SUPPLIER = {0x3B476D38, 0xA401, 0x11D2, [0xAA, 0xD4, 0x00, 0xC0, 0x4F, 0x99, 0x01, 0x71]}; //3B476D38-A401-11D2-AAD4-00C04F990171 const GUID CLSID_PORT_SUPPLIER = {0x708C1ECA, 0xFF48, 0x11D2, [0x90, 0x4F, 0x00, 0xC0, 0x4F, 0xA3, 0x02, 0xA1]}; //{708C1ECA-FF48-11D2-904F-00C04FA302A1} //const GUID CLSID_PORT_SUPPLIER = {0xF561BF8D, 0xBFBA, 0x4FC6, [0xAE, 0xA7, 0x24, 0x45, 0xD0, 0xEA, 0xC1, 0xC5]}; //const GUID CLSID_PORT_SUPPLIER = {0x708C1ECA, 0xFF48, 0x11D2, [0x90, 0x4F, 0x00, 0x04, 0xA3, 0x2, 0xA1]}; class ComObject : IUnknown { extern (Windows): HRESULT QueryInterface(GUID* riid, void** ppv) { if (*riid == IID_IUnknown) { *ppv = cast(void*)cast(IUnknown)this; AddRef(); return S_OK; } else { *ppv = null; return E_NOINTERFACE; } } ULONG AddRef() { return atomicOp!"+="(*cast(shared)&count, 1); } ULONG Release() { LONG lRef = atomicOp!"-="(*cast(shared)&count, 1); if (lRef == 0) { // free object // If we delete this object, then the postinvariant called upon // return from Release() will fail. // Just let the GC reap it. //delete this; return 0; } return cast(ULONG)lRef; } LONG count = 0; // object reference count } class DebugCallback : ComObject, IDebugEventCallback2 { override HRESULT Event( /+[in]+/ IDebugEngine2 pEngine, /+[in]+/ IDebugProcess2 pProcess, /+[in]+/ IDebugProgram2 pProgram, /+[in]+/ IDebugThread2 pThread, /+[in]+/ IDebugEvent2 pEvent, in IID* riidEvent, in DWORD dwAttrib) { // Log.d("debug event"); return 0; } } string formatHResult(HRESULT hr) { switch(hr) { case S_OK: return "S_OK"; case S_FALSE: return "S_FALSE"; case E_NOTIMPL: return "E_NOTIMPL"; case E_NOINTERFACE: return "E_NOINTERFACE"; case E_FAIL: return "E_FAIL"; case E_HANDLE: return "E_HANDLE"; case 0x80040154: return "REGDB_E_CLASSNOTREG"; default: return format("%08x", hr); } } IDebugPortSupplier2 createPortSupplier() { HRESULT hr; IDebugPortSupplier2 portSupplier = null; LPOLESTR str; StringFromCLSID(&CLSID_PORT_SUPPLIER, &str); hr = CoCreateInstance(&CLSID_PORT_SUPPLIER, //CLSID_MAGO, null, CLSCTX_INPROC, //CLSCTX_ALL, &IID_IDebugPortSupplier2, //IID_MAGO_NATIVE_ENGINE, cast(void**)&portSupplier); //piUnknown); if (FAILED(hr) || !portSupplier) { Log.e("Failed to create port supplier ", formatHResult(hr)); return null; } Log.i("Port supplier is created"); return portSupplier; } class DebugPortRequest : ComObject, IDebugPortRequest2 { static const wchar[] portName = "magoDebuggerPort\0"; HRESULT GetPortName(/+[out]+/ BSTR* pbstrPortName) { pbstrPortName = cast(BSTR*)portName.ptr; return S_OK; } } void testMago() { HRESULT hr; IUnknown* piUnknown; IDebugEngine2 debugEngine = null; IDebugEngineLaunch2 debugEngineLaunch = null; hr=CoInitialize(null); // Initialize OLE if (FAILED(hr)) { Log.e("OLE 2 failed to initialize", formatHResult(hr)); return; } IDebugPortSupplier2 portSupplier = createPortSupplier(); if (!portSupplier) { Log.e("Failed to create port supplier"); return; } if (portSupplier.CanAddPort() != S_OK) { Log.e("Cannot add debug port ", portSupplier.CanAddPort()); return; } IDebugPort2 debugPort = null; DebugPortRequest debugPortRequest = new DebugPortRequest(); // Add a port hr = portSupplier.AddPort( /+[in]+/ debugPortRequest, /+[out]+/ &debugPort); if (FAILED(hr) || !debugPort) { Log.e("Failed to create debub port ", formatHResult(hr)); return; } //hr = CoCreateInstance(&CLSID_MAGO, null, CLSCTX_ALL, &IID_IDebugEngine2, cast(void**)&piUnknown); hr = CoCreateInstance(&IID_MAGO_NATIVE_ENGINE, //CLSID_MAGO, null, CLSCTX_INPROC, //CLSCTX_ALL, &IID_IDebugEngine2, //IID_MAGO_NATIVE_ENGINE, cast(void**)&debugEngine); //piUnknown); if (debugEngine) { Log.d("Debug interface is not null"); } if (FAILED(hr) || !debugEngine) { Log.e("Failed to create MAGO interface instance ", formatHResult(hr)); return; } Log.d("Debug interface initialized ok"); GUID eid; debugEngine.GetEngineId(&eid); Log.d("Engine id: ", eid); hr = debugEngine.QueryInterface(cast(GUID*)&IID_IDebugEngineLaunch2, cast(void**)&debugEngineLaunch); if (FAILED(hr) || !debugEngineLaunch) { Log.e("Failed to get IID_IDebugEngineLaunch2 interface ", formatHResult(hr)); return; } IDebugProcess2 process = null; DebugCallback callback = new DebugCallback(); wchar[] exe = `D:\projects\d\dlangide\workspaces\tetris\bin\tetris.exe`w.dup; wchar[] args; wchar[] dir = `D:\projects\d\dlangide\workspaces\tetris\bin`w.dup; wchar[] envblock; wchar[] opts; exe ~= 0; args ~= 0; dir ~= 0; envblock ~= 0; opts ~= 0; IDebugPort2 port; hr = debugEngineLaunch.LaunchSuspended ( null, port, exe.ptr,//LPCOLESTR args.ptr, dir.ptr, envblock.ptr, opts.ptr, LAUNCH_DEBUG, //LAUNCH_NODEBUG 0, 0, 0, callback, &process ); if (FAILED(hr) || !process) { Log.e("Failed to run process ", formatHResult(hr)); return; } Log.d("LaunchSuspended executed ok"); }
D
// Written in the D programming language. /** Standard I/O functions that extend $(B core.stdc.stdio). $(B core.stdc.stdio) is $(D_PARAM public)ally imported when importing $(B std.stdio). Source: $(PHOBOSSRC std/_stdio.d) Copyright: Copyright Digital Mars 2007-. License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: $(HTTP digitalmars.com, Walter Bright), $(HTTP erdani.org, Andrei Alexandrescu), Alex Rønne Petersen */ module std.stdio; public import core.stdc.stdio; import core.stdc.stddef; // wchar_t import std.algorithm.mutation; // copy import std.range.primitives; // ElementEncodingType, empty, front, // isBidirectionalRange, isInputRange, put import std.stdiobase; import std.traits; // isSomeChar, isSomeString, Unqual import std.typecons; // Flag /++ If flag $(D KeepTerminator) is set to $(D KeepTerminator.yes), then the delimiter is included in the strings returned. +/ alias KeepTerminator = Flag!"keepTerminator"; version (CRuntime_Microsoft) { version = MICROSOFT_STDIO; } else version (CRuntime_DigitalMars) { // Specific to the way Digital Mars C does stdio version = DIGITAL_MARS_STDIO; } version (CRuntime_Glibc) { // Specific to the way Gnu C does stdio version = GCC_IO; version = HAS_GETDELIM; } version (OSX) { version = GENERIC_IO; version = HAS_GETDELIM; } version (FreeBSD) { version = GENERIC_IO; version = HAS_GETDELIM; } version (NetBSD) { version = GENERIC_IO; version = HAS_GETDELIM; } version (Solaris) { version = GENERIC_IO; version = NO_GETDELIM; } version (CRuntime_Bionic) { version = GENERIC_IO; version = NO_GETDELIM; } // Character type used for operating system filesystem APIs version (Windows) { private alias FSChar = wchar; } else version (Posix) { private alias FSChar = char; } else static assert(0); version(Windows) { // core.stdc.stdio.fopen expects file names to be // encoded in CP_ACP on Windows instead of UTF-8. /+ Waiting for druntime pull 299 +/ extern (C) nothrow @nogc FILE* _wfopen(in wchar* filename, in wchar* mode); import core.sys.windows.windows : HANDLE; } version (DIGITAL_MARS_STDIO) { extern (C) { /* ** * Digital Mars under-the-hood C I/O functions. * Use _iobuf* for the unshared version of FILE*, * usable when the FILE is locked. */ nothrow: @nogc: int _fputc_nlock(int, _iobuf*); int _fputwc_nlock(int, _iobuf*); int _fgetc_nlock(_iobuf*); int _fgetwc_nlock(_iobuf*); int __fp_lock(FILE*); void __fp_unlock(FILE*); int setmode(int, int); } alias FPUTC = _fputc_nlock; alias FPUTWC = _fputwc_nlock; alias FGETC = _fgetc_nlock; alias FGETWC = _fgetwc_nlock; alias FLOCK = __fp_lock; alias FUNLOCK = __fp_unlock; alias _setmode = setmode; enum _O_BINARY = 0x8000; int _fileno(FILE* f) { return f._file; } alias fileno = _fileno; } else version (MICROSOFT_STDIO) { extern (C) { /* ** * Microsoft under-the-hood C I/O functions */ nothrow: @nogc: int _fputc_nolock(int, _iobuf*); int _fputwc_nolock(int, _iobuf*); int _fgetc_nolock(_iobuf*); int _fgetwc_nolock(_iobuf*); void _lock_file(FILE*); void _unlock_file(FILE*); int _setmode(int, int); int _fileno(FILE*); FILE* _fdopen(int, const (char)*); int _fseeki64(FILE*, long, int); long _ftelli64(FILE*); } alias FPUTC = _fputc_nolock; alias FPUTWC = _fputwc_nolock; alias FGETC = _fgetc_nolock; alias FGETWC = _fgetwc_nolock; alias FLOCK = _lock_file; alias FUNLOCK = _unlock_file; alias setmode = _setmode; alias fileno = _fileno; enum { _O_RDONLY = 0x0000, _O_APPEND = 0x0004, _O_TEXT = 0x4000, _O_BINARY = 0x8000, } } else version (GCC_IO) { /* ** * Gnu under-the-hood C I/O functions; see * http://gnu.org/software/libc/manual/html_node/I_002fO-on-Streams.html */ extern (C) { nothrow: @nogc: int fputc_unlocked(int, _iobuf*); int fputwc_unlocked(wchar_t, _iobuf*); int fgetc_unlocked(_iobuf*); int fgetwc_unlocked(_iobuf*); void flockfile(FILE*); void funlockfile(FILE*); private size_t fwrite_unlocked(const(void)* ptr, size_t size, size_t n, _iobuf *stream); } alias FPUTC = fputc_unlocked; alias FPUTWC = fputwc_unlocked; alias FGETC = fgetc_unlocked; alias FGETWC = fgetwc_unlocked; alias FLOCK = flockfile; alias FUNLOCK = funlockfile; } else version (GENERIC_IO) { nothrow: @nogc: extern (C) { void flockfile(FILE*); void funlockfile(FILE*); } int fputc_unlocked(int c, _iobuf* fp) { return fputc(c, cast(shared) fp); } int fputwc_unlocked(wchar_t c, _iobuf* fp) { import core.stdc.wchar_ : fputwc; return fputwc(c, cast(shared) fp); } int fgetc_unlocked(_iobuf* fp) { return fgetc(cast(shared) fp); } int fgetwc_unlocked(_iobuf* fp) { import core.stdc.wchar_ : fgetwc; return fgetwc(cast(shared) fp); } alias FPUTC = fputc_unlocked; alias FPUTWC = fputwc_unlocked; alias FGETC = fgetc_unlocked; alias FGETWC = fgetwc_unlocked; alias FLOCK = flockfile; alias FUNLOCK = funlockfile; } else { static assert(0, "unsupported C I/O system"); } version(HAS_GETDELIM) extern(C) nothrow @nogc { ptrdiff_t getdelim(char**, size_t*, int, FILE*); // getline() always comes together with getdelim() ptrdiff_t getline(char**, size_t*, FILE*); } //------------------------------------------------------------------------------ struct ByRecord(Fields...) { private: import std.typecons : Tuple; File file; char[] line; Tuple!(Fields) current; string format; public: this(File f, string format) { assert(f.isOpen); file = f; this.format = format; popFront(); // prime the range } /// Range primitive implementations. @property bool empty() { return !file.isOpen; } /// Ditto @property ref Tuple!(Fields) front() { return current; } /// Ditto void popFront() { import std.conv : text; import std.exception : enforce; import std.format : formattedRead; import std.string : chomp; enforce(file.isOpen, "ByRecord: File must be open"); file.readln(line); if (!line.length) { file.detach(); } else { line = chomp(line); formattedRead(line, format, &current); enforce(line.empty, text("Leftover characters in record: `", line, "'")); } } } template byRecord(Fields...) { ByRecord!(Fields) byRecord(File f, string format) { return typeof(return)(f, format); } } /** Encapsulates a $(D FILE*). Generally D does not attempt to provide thin wrappers over equivalent functions in the C standard library, but manipulating $(D FILE*) values directly is unsafe and error-prone in many ways. The $(D File) type ensures safe manipulation, automatic file closing, and a lot of convenience. The underlying $(D FILE*) handle is maintained in a reference-counted manner, such that as soon as the last $(D File) variable bound to a given $(D FILE*) goes out of scope, the underlying $(D FILE*) is automatically closed. Example: ---- // test.d void main(string[] args) { auto f = File("test.txt", "w"); // open for writing f.write("Hello"); if (args.length > 1) { auto g = f; // now g and f write to the same file // internal reference count is 2 g.write(", ", args[1]); // g exits scope, reference count decreases to 1 } f.writeln("!"); // f exits scope, reference count falls to zero, // underlying $(D FILE*) is closed. } ---- $(CONSOLE % rdmd test.d Jimmy % cat test.txt Hello, Jimmy! % __ ) */ struct File { import std.range.primitives : ElementEncodingType; import std.traits : isScalarType, isArray; enum Orientation { unknown, narrow, wide } private struct Impl { FILE * handle = null; // Is null iff this Impl is closed by another File uint refs = uint.max / 2; bool isPopened; // true iff the stream has been created by popen() Orientation orientation; } private Impl* _p; private string _name; package this(FILE* handle, string name, uint refs = 1, bool isPopened = false) @trusted { import core.stdc.stdlib : malloc; import std.exception : enforce; assert(!_p); _p = cast(Impl*) enforce(malloc(Impl.sizeof), "Out of memory"); _p.handle = handle; _p.refs = refs; _p.isPopened = isPopened; _p.orientation = Orientation.unknown; _name = name; } /** Constructor taking the name of the file to open and the open mode. Copying one $(D File) object to another results in the two $(D File) objects referring to the same underlying file. The destructor automatically closes the file as soon as no $(D File) object refers to it anymore. Params: name = range or string representing the file _name stdioOpenmode = range or string represting the open mode (with the same semantics as in the C standard library $(HTTP cplusplus.com/reference/clibrary/cstdio/fopen.html, fopen) function) Throws: $(D ErrnoException) if the file could not be opened. */ this(string name, in char[] stdioOpenmode = "rb") @safe { import std.conv : text; import std.exception : errnoEnforce; this(errnoEnforce(.fopen(name, stdioOpenmode), text("Cannot open file `", name, "' in mode `", stdioOpenmode, "'")), name); // MSVCRT workaround (issue 14422) version (MICROSOFT_STDIO) { bool append, update; foreach (c; stdioOpenmode) if (c == 'a') append = true; else if (c == '+') update = true; if (append && !update) seek(size); } } /// ditto this(R1, R2)(R1 name) if (isInputRange!R1 && isSomeChar!(ElementEncodingType!R1)) { import std.conv : to; this(name.to!string, "rb"); } /// ditto this(R1, R2)(R1 name, R2 mode) if (isInputRange!R1 && isSomeChar!(ElementEncodingType!R1) && isInputRange!R2 && isSomeChar!(ElementEncodingType!R2)) { import std.conv : to; this(name.to!string, mode.to!string); } @safe unittest { static import std.file; import std.utf : byChar; auto deleteme = testFilename(); auto f = File(deleteme.byChar, "w".byChar); f.close(); std.file.remove(deleteme); } ~this() @safe { detach(); } this(this) @safe nothrow { if (!_p) return; assert(_p.refs); ++_p.refs; } /** Assigns a file to another. The target of the assignment gets detached from whatever file it was attached to, and attaches itself to the new file. */ void opAssign(File rhs) @safe { import std.algorithm.mutation : swap; swap(this, rhs); } /** First calls $(D detach) (throwing on failure), and then attempts to _open file $(D name) with mode $(D stdioOpenmode). The mode has the same semantics as in the C standard library $(HTTP cplusplus.com/reference/clibrary/cstdio/fopen.html, fopen) function. Throws: $(D ErrnoException) in case of error. */ void open(string name, in char[] stdioOpenmode = "rb") @safe { detach(); this = File(name, stdioOpenmode); } /** First calls $(D detach) (throwing on failure), and then runs a command by calling the C standard library function $(HTTP opengroup.org/onlinepubs/007908799/xsh/_popen.html, _popen). Throws: $(D ErrnoException) in case of error. */ version(Posix) void popen(string command, in char[] stdioOpenmode = "r") @safe { import std.exception : errnoEnforce; detach(); this = File(errnoEnforce(.popen(command, stdioOpenmode), "Cannot run command `"~command~"'"), command, 1, true); } /** First calls $(D detach) (throwing on failure), and then attempts to associate the given file descriptor with the $(D File). The mode must be compatible with the mode of the file descriptor. Throws: $(D ErrnoException) in case of error. */ void fdopen(int fd, in char[] stdioOpenmode = "rb") @safe { fdopen(fd, stdioOpenmode, null); } package void fdopen(int fd, in char[] stdioOpenmode, string name) @trusted { import std.exception : errnoEnforce; import std.internal.cstring : tempCString; auto modez = stdioOpenmode.tempCString(); detach(); version (DIGITAL_MARS_STDIO) { // This is a re-implementation of DMC's fdopen, but without the // mucking with the file descriptor. POSIX standard requires the // new fdopen'd file to retain the given file descriptor's // position. import core.stdc.stdio : fopen; auto fp = fopen("NUL", modez); errnoEnforce(fp, "Cannot open placeholder NUL stream"); FLOCK(fp); auto iob = cast(_iobuf*)fp; .close(iob._file); iob._file = fd; iob._flag &= ~_IOTRAN; FUNLOCK(fp); } else { version (Windows) // MSVCRT auto fp = _fdopen(fd, modez); else version (Posix) { import core.sys.posix.stdio : fdopen; auto fp = fdopen(fd, modez); } errnoEnforce(fp); } this = File(fp, name); } // Declare a dummy HANDLE to allow generating documentation // for Windows-only methods. version(StdDdoc) { version(Windows) {} else alias HANDLE = int; } /** First calls $(D detach) (throwing on failure), and then attempts to associate the given Windows $(D HANDLE) with the $(D File). The mode must be compatible with the access attributes of the handle. Windows only. Throws: $(D ErrnoException) in case of error. */ version(StdDdoc) void windowsHandleOpen(HANDLE handle, in char[] stdioOpenmode); version(Windows) void windowsHandleOpen(HANDLE handle, in char[] stdioOpenmode) { import std.exception : errnoEnforce; import std.format : format; import core.stdc.stdint : intptr_t; // Create file descriptors from the handles version (DIGITAL_MARS_STDIO) auto fd = _handleToFD(handle, FHND_DEVICE); else // MSVCRT { int mode; modeLoop: foreach (c; stdioOpenmode) switch (c) { case 'r': mode |= _O_RDONLY; break; case '+': mode &=~_O_RDONLY; break; case 'a': mode |= _O_APPEND; break; case 'b': mode |= _O_BINARY; break; case 't': mode |= _O_TEXT; break; case ',': break modeLoop; default: break; } auto fd = _open_osfhandle(cast(intptr_t)handle, mode); } errnoEnforce(fd >= 0, "Cannot open Windows HANDLE"); fdopen(fd, stdioOpenmode, "HANDLE(%s)".format(handle)); } /** Returns $(D true) if the file is opened. */ @property bool isOpen() const @safe pure nothrow { return _p !is null && _p.handle; } /** Returns $(D true) if the file is at end (see $(HTTP cplusplus.com/reference/clibrary/cstdio/feof.html, feof)). Throws: $(D Exception) if the file is not opened. */ @property bool eof() const @trusted pure { import std.exception : enforce; enforce(_p && _p.handle, "Calling eof() against an unopened file."); return .feof(cast(FILE*) _p.handle) != 0; } /** Returns the name of the last opened file, if any. If a $(D File) was created with $(LREF tmpfile) and $(LREF wrapFile) it has no name.*/ @property string name() const @safe pure nothrow { return _name; } /** If the file is not opened, returns $(D true). Otherwise, returns $(HTTP cplusplus.com/reference/clibrary/cstdio/ferror.html, ferror) for the file handle. */ @property bool error() const @trusted pure nothrow { return !isOpen || .ferror(cast(FILE*) _p.handle); } @safe unittest { // Issue 12349 static import std.file; auto deleteme = testFilename(); auto f = File(deleteme, "w"); scope(exit) std.file.remove(deleteme); f.close(); assert(f.error); } /** Detaches from the underlying file. If the sole owner, calls $(D close). Throws: $(D ErrnoException) on failure if closing the file. */ void detach() @safe { if (!_p) return; if (_p.refs == 1) close(); else { assert(_p.refs); --_p.refs; _p = null; } } @safe unittest { static import std.file; auto deleteme = testFilename(); scope(exit) std.file.remove(deleteme); auto f = File(deleteme, "w"); { auto f2 = f; f2.detach(); } assert(f._p.refs == 1); f.close(); } /** If the file was unopened, succeeds vacuously. Otherwise closes the file (by calling $(HTTP cplusplus.com/reference/clibrary/cstdio/fclose.html, fclose)), throwing on error. Even if an exception is thrown, afterwards the $(D File) object is empty. This is different from $(D detach) in that it always closes the file; consequently, all other $(D File) objects referring to the same handle will see a closed file henceforth. Throws: $(D ErrnoException) on error. */ void close() @trusted { import core.stdc.stdlib : free; import std.exception : errnoEnforce; if (!_p) return; // succeed vacuously scope(exit) { assert(_p.refs); if (!--_p.refs) free(_p); _p = null; // start a new life } if (!_p.handle) return; // Impl is closed by another File scope(exit) _p.handle = null; // nullify the handle anyway version (Posix) { import core.sys.posix.stdio : pclose; import std.format : format; if (_p.isPopened) { auto res = pclose(_p.handle); errnoEnforce(res != -1, "Could not close pipe `"~_name~"'"); errnoEnforce(res == 0, format("Command returned %d", res)); return; } } errnoEnforce(.fclose(_p.handle) == 0, "Could not close file `"~_name~"'"); } /** If the file is not opened, succeeds vacuously. Otherwise, returns $(HTTP cplusplus.com/reference/clibrary/cstdio/_clearerr.html, _clearerr) for the file handle. */ void clearerr() @safe pure nothrow { _p is null || _p.handle is null || .clearerr(_p.handle); } /** Flushes the C $(D FILE) buffers. Calls $(HTTP cplusplus.com/reference/clibrary/cstdio/_fflush.html, _fflush) for the file handle. Throws: $(D Exception) if the file is not opened or if the call to $(D fflush) fails. */ void flush() @trusted { import std.exception : enforce, errnoEnforce; enforce(isOpen, "Attempting to flush() in an unopened file"); errnoEnforce(.fflush(_p.handle) == 0); } @safe unittest { // Issue 12349 static import std.file; import std.exception : assertThrown; auto deleteme = testFilename(); auto f = File(deleteme, "w"); scope(exit) std.file.remove(deleteme); f.close(); assertThrown(f.flush()); } /** Forces any data buffered by the OS to be written to disk. Call $(LREF flush) before calling this function to flush the C $(D FILE) buffers first. This function calls $(HTTP msdn.microsoft.com/en-us/library/windows/desktop/aa364439%28v=vs.85%29.aspx, $(D FlushFileBuffers)) on Windows and $(HTTP pubs.opengroup.org/onlinepubs/7908799/xsh/fsync.html, $(D fsync)) on POSIX for the file handle. Throws: $(D Exception) if the file is not opened or if the OS call fails. */ void sync() @trusted { import std.exception : enforce; enforce(isOpen, "Attempting to sync() an unopened file"); version (Windows) { import core.sys.windows.windows : FlushFileBuffers; wenforce(FlushFileBuffers(windowsHandle), "FlushFileBuffers failed"); } else { import core.sys.posix.unistd : fsync; import std.exception : errnoEnforce; errnoEnforce(fsync(fileno) == 0, "fsync failed"); } } /** Calls $(HTTP cplusplus.com/reference/clibrary/cstdio/fread.html, fread) for the file handle. The number of items to read and the size of each item is inferred from the size and type of the input array, respectively. Returns: The slice of $(D buffer) containing the data that was actually read. This will be shorter than $(D buffer) if EOF was reached before the buffer could be filled. Throws: $(D Exception) if $(D buffer) is empty. $(D ErrnoException) if the file is not opened or the call to $(D fread) fails. $(D rawRead) always reads in binary mode on Windows. */ T[] rawRead(T)(T[] buffer) { import std.exception : errnoEnforce; if (!buffer.length) throw new Exception("rawRead must take a non-empty buffer"); version(Windows) { immutable fd = ._fileno(_p.handle); immutable mode = ._setmode(fd, _O_BINARY); scope(exit) ._setmode(fd, mode); version(DIGITAL_MARS_STDIO) { import core.atomic : atomicOp; // @@@BUG@@@ 4243 immutable info = __fhnd_info[fd]; atomicOp!"&="(__fhnd_info[fd], ~FHND_TEXT); scope(exit) __fhnd_info[fd] = info; } } immutable freadResult = fread(buffer.ptr, T.sizeof, buffer.length, _p.handle); assert (freadResult <= buffer.length); // fread return guarantee if (freadResult != buffer.length) // error or eof { errnoEnforce(!error); return buffer[0 .. freadResult]; } return buffer; } /// @system unittest { static import std.file; auto testFile = testFilename(); std.file.write(testFile, "\r\n\n\r\n"); scope(exit) std.file.remove(testFile); auto f = File(testFile, "r"); auto buf = f.rawRead(new char[5]); f.close(); assert(buf == "\r\n\n\r\n"); } /** Calls $(HTTP cplusplus.com/reference/clibrary/cstdio/fwrite.html, fwrite) for the file handle. The number of items to write and the size of each item is inferred from the size and type of the input array, respectively. An error is thrown if the buffer could not be written in its entirety. $(D rawWrite) always writes in binary mode on Windows. Throws: $(D ErrnoException) if the file is not opened or if the call to $(D fwrite) fails. */ void rawWrite(T)(in T[] buffer) { import std.conv : text; import std.exception : errnoEnforce; version(Windows) { flush(); // before changing translation mode immutable fd = ._fileno(_p.handle); immutable mode = ._setmode(fd, _O_BINARY); scope(exit) ._setmode(fd, mode); version(DIGITAL_MARS_STDIO) { import core.atomic : atomicOp; // @@@BUG@@@ 4243 immutable info = __fhnd_info[fd]; atomicOp!"&="(__fhnd_info[fd], ~FHND_TEXT); scope(exit) __fhnd_info[fd] = info; } scope(exit) flush(); // before restoring translation mode } auto result = .fwrite(buffer.ptr, T.sizeof, buffer.length, _p.handle); if (result == result.max) result = 0; errnoEnforce(result == buffer.length, text("Wrote ", result, " instead of ", buffer.length, " objects of type ", T.stringof, " to file `", _name, "'")); } /// @system unittest { static import std.file; auto testFile = testFilename(); auto f = File(testFile, "w"); scope(exit) std.file.remove(testFile); f.rawWrite("\r\n\n\r\n"); f.close(); assert(std.file.read(testFile) == "\r\n\n\r\n"); } /** Calls $(HTTP cplusplus.com/reference/clibrary/cstdio/fseek.html, fseek) for the file handle. Throws: $(D Exception) if the file is not opened. $(D ErrnoException) if the call to $(D fseek) fails. */ void seek(long offset, int origin = SEEK_SET) @trusted { import std.conv : to, text; import std.exception : enforce, errnoEnforce; enforce(isOpen, "Attempting to seek() in an unopened file"); version (Windows) { version (CRuntime_Microsoft) { alias fseekFun = _fseeki64; alias off_t = long; } else { alias fseekFun = fseek; alias off_t = int; } } else version (Posix) { import core.sys.posix.stdio : fseeko, off_t; alias fseekFun = fseeko; } errnoEnforce(fseekFun(_p.handle, to!off_t(offset), origin) == 0, "Could not seek in file `"~_name~"'"); } @system unittest { static import std.file; import std.conv : text; auto deleteme = testFilename(); auto f = File(deleteme, "w+"); scope(exit) { f.close(); std.file.remove(deleteme); } f.rawWrite("abcdefghijklmnopqrstuvwxyz"); f.seek(7); assert(f.readln() == "hijklmnopqrstuvwxyz"); version (CRuntime_DigitalMars) auto bigOffset = int.max - 100; else version (CRuntime_Bionic) auto bigOffset = int.max - 100; else auto bigOffset = cast(ulong) int.max + 100; f.seek(bigOffset); assert(f.tell == bigOffset, text(f.tell)); // Uncomment the tests below only if you want to wait for // a long time // f.rawWrite("abcdefghijklmnopqrstuvwxyz"); // f.seek(-3, SEEK_END); // assert(f.readln() == "xyz"); } /** Calls $(HTTP cplusplus.com/reference/clibrary/cstdio/ftell.html, ftell) for the managed file handle. Throws: $(D Exception) if the file is not opened. $(D ErrnoException) if the call to $(D ftell) fails. */ @property ulong tell() const @trusted { import std.exception : enforce, errnoEnforce; enforce(isOpen, "Attempting to tell() in an unopened file"); version (Windows) { version (CRuntime_Microsoft) immutable result = _ftelli64(cast(FILE*) _p.handle); else immutable result = ftell(cast(FILE*) _p.handle); } else version (Posix) { import core.sys.posix.stdio : ftello; immutable result = ftello(cast(FILE*) _p.handle); } errnoEnforce(result != -1, "Query ftell() failed for file `"~_name~"'"); return result; } /// @system unittest { static import std.file; import std.conv : text; auto testFile = testFilename(); std.file.write(testFile, "abcdefghijklmnopqrstuvwqxyz"); scope(exit) { std.file.remove(testFile); } auto f = File(testFile); auto a = new ubyte[4]; f.rawRead(a); assert(f.tell == 4, text(f.tell)); } /** Calls $(HTTP cplusplus.com/reference/clibrary/cstdio/_rewind.html, _rewind) for the file handle. Throws: $(D Exception) if the file is not opened. */ void rewind() @safe { import std.exception : enforce; enforce(isOpen, "Attempting to rewind() an unopened file"); .rewind(_p.handle); } /** Calls $(HTTP cplusplus.com/reference/clibrary/cstdio/_setvbuf.html, _setvbuf) for the file handle. Throws: $(D Exception) if the file is not opened. $(D ErrnoException) if the call to $(D setvbuf) fails. */ void setvbuf(size_t size, int mode = _IOFBF) @trusted { import std.exception : enforce, errnoEnforce; enforce(isOpen, "Attempting to call setvbuf() on an unopened file"); errnoEnforce(.setvbuf(_p.handle, null, mode, size) == 0, "Could not set buffering for file `"~_name~"'"); } /** Calls $(HTTP cplusplus.com/reference/clibrary/cstdio/_setvbuf.html, _setvbuf) for the file handle. Throws: $(D Exception) if the file is not opened. $(D ErrnoException) if the call to $(D setvbuf) fails. */ void setvbuf(void[] buf, int mode = _IOFBF) @trusted { import std.exception : enforce, errnoEnforce; enforce(isOpen, "Attempting to call setvbuf() on an unopened file"); errnoEnforce(.setvbuf(_p.handle, cast(char*) buf.ptr, mode, buf.length) == 0, "Could not set buffering for file `"~_name~"'"); } version(Windows) { import core.sys.windows.windows : ULARGE_INTEGER, OVERLAPPED, BOOL; private BOOL lockImpl(alias F, Flags...)(ulong start, ulong length, Flags flags) { if (!start && !length) length = ulong.max; ULARGE_INTEGER liStart = void, liLength = void; liStart.QuadPart = start; liLength.QuadPart = length; OVERLAPPED overlapped; overlapped.Offset = liStart.LowPart; overlapped.OffsetHigh = liStart.HighPart; overlapped.hEvent = null; return F(windowsHandle, flags, 0, liLength.LowPart, liLength.HighPart, &overlapped); } private static T wenforce(T)(T cond, string str) { import std.windows.syserror : sysErrorString, GetLastError; if (cond) return cond; throw new Exception(str ~ ": " ~ sysErrorString(GetLastError())); } } version(Posix) { private int lockImpl(int operation, short l_type, ulong start, ulong length) { import core.sys.posix.fcntl : fcntl, flock, off_t; import core.sys.posix.unistd : getpid; import std.conv : to; flock fl = void; fl.l_type = l_type; fl.l_whence = SEEK_SET; fl.l_start = to!off_t(start); fl.l_len = to!off_t(length); fl.l_pid = getpid(); return fcntl(fileno, operation, &fl); } } /** Locks the specified file segment. If the file segment is already locked by another process, waits until the existing lock is released. If both $(D start) and $(D length) are zero, the entire file is locked. Locks created using $(D lock) and $(D tryLock) have the following properties: $(UL $(LI All locks are automatically released when the process terminates.) $(LI Locks are not inherited by child processes.) $(LI Closing a file will release all locks associated with the file. On POSIX, even locks acquired via a different $(D File) will be released as well.) $(LI Not all NFS implementations correctly implement file locking.) ) */ void lock(LockType lockType = LockType.readWrite, ulong start = 0, ulong length = 0) { import std.exception : enforce; enforce(isOpen, "Attempting to call lock() on an unopened file"); version (Posix) { import std.exception : errnoEnforce; import core.sys.posix.fcntl : F_RDLCK, F_SETLKW, F_WRLCK; immutable short type = lockType == LockType.readWrite ? F_WRLCK : F_RDLCK; errnoEnforce(lockImpl(F_SETLKW, type, start, length) != -1, "Could not set lock for file `"~_name~"'"); } else version(Windows) { import core.sys.windows.windows : LockFileEx, LOCKFILE_EXCLUSIVE_LOCK; immutable type = lockType == LockType.readWrite ? LOCKFILE_EXCLUSIVE_LOCK : 0; wenforce(lockImpl!LockFileEx(start, length, type), "Could not set lock for file `"~_name~"'"); } else static assert(false); } /** Attempts to lock the specified file segment. If both $(D start) and $(D length) are zero, the entire file is locked. Returns: $(D true) if the lock was successful, and $(D false) if the specified file segment was already locked. */ bool tryLock(LockType lockType = LockType.readWrite, ulong start = 0, ulong length = 0) { import std.exception : enforce; enforce(isOpen, "Attempting to call tryLock() on an unopened file"); version (Posix) { import std.exception : errnoEnforce; import core.stdc.errno : EACCES, EAGAIN, errno; import core.sys.posix.fcntl : F_RDLCK, F_SETLK, F_WRLCK; immutable short type = lockType == LockType.readWrite ? F_WRLCK : F_RDLCK; immutable res = lockImpl(F_SETLK, type, start, length); if (res == -1 && (errno == EACCES || errno == EAGAIN)) return false; errnoEnforce(res != -1, "Could not set lock for file `"~_name~"'"); return true; } else version(Windows) { import core.sys.windows.windows : GetLastError, LockFileEx, LOCKFILE_EXCLUSIVE_LOCK, ERROR_IO_PENDING, ERROR_LOCK_VIOLATION, LOCKFILE_FAIL_IMMEDIATELY; immutable type = lockType == LockType.readWrite ? LOCKFILE_EXCLUSIVE_LOCK : 0; immutable res = lockImpl!LockFileEx(start, length, type | LOCKFILE_FAIL_IMMEDIATELY); if (!res && (GetLastError() == ERROR_IO_PENDING || GetLastError() == ERROR_LOCK_VIOLATION)) return false; wenforce(res, "Could not set lock for file `"~_name~"'"); return true; } else static assert(false); } /** Removes the lock over the specified file segment. */ void unlock(ulong start = 0, ulong length = 0) { import std.exception : enforce; enforce(isOpen, "Attempting to call unlock() on an unopened file"); version (Posix) { import std.exception : errnoEnforce; import core.sys.posix.fcntl : F_SETLK, F_UNLCK; errnoEnforce(lockImpl(F_SETLK, F_UNLCK, start, length) != -1, "Could not remove lock for file `"~_name~"'"); } else version(Windows) { import core.sys.windows.windows : UnlockFileEx; wenforce(lockImpl!UnlockFileEx(start, length), "Could not remove lock for file `"~_name~"'"); } else static assert(false); } version(Windows) @system unittest { static import std.file; auto deleteme = testFilename(); scope(exit) std.file.remove(deleteme); auto f = File(deleteme, "wb"); assert(f.tryLock()); auto g = File(deleteme, "wb"); assert(!g.tryLock()); assert(!g.tryLock(LockType.read)); f.unlock(); f.lock(LockType.read); assert(!g.tryLock()); assert(g.tryLock(LockType.read)); f.unlock(); g.unlock(); } version(Posix) @system unittest { static import std.file; auto deleteme = testFilename(); scope(exit) std.file.remove(deleteme); // Since locks are per-process, we cannot test lock failures within // the same process. fork() is used to create a second process. static void runForked(void delegate() code) { import core.stdc.stdlib : exit; import core.sys.posix.sys.wait : wait; import core.sys.posix.unistd : fork; int child, status; if ((child = fork()) == 0) { code(); exit(0); } else { assert(wait(&status) != -1); assert(status == 0, "Fork crashed"); } } auto f = File(deleteme, "w+b"); runForked ({ auto g = File(deleteme, "a+b"); assert(g.tryLock()); g.unlock(); assert(g.tryLock(LockType.read)); }); assert(f.tryLock()); runForked ({ auto g = File(deleteme, "a+b"); assert(!g.tryLock()); assert(!g.tryLock(LockType.read)); }); f.unlock(); f.lock(LockType.read); runForked ({ auto g = File(deleteme, "a+b"); assert(!g.tryLock()); assert(g.tryLock(LockType.read)); g.unlock(); }); f.unlock(); } /** Writes its arguments in text format to the file. Throws: $(D Exception) if the file is not opened. $(D ErrnoException) on an error writing to the file. */ void write(S...)(S args) { import std.traits : isBoolean, isIntegral, isAggregateType; auto w = lockingTextWriter(); foreach (arg; args) { alias A = typeof(arg); static if (isAggregateType!A || is(A == enum)) { import std.format : formattedWrite; formattedWrite(w, "%s", arg); } else static if (isSomeString!A) { put(w, arg); } else static if (isIntegral!A) { import std.conv : toTextRange; toTextRange(arg, w); } else static if (isBoolean!A) { put(w, arg ? "true" : "false"); } else static if (isSomeChar!A) { put(w, arg); } else { import std.format : formattedWrite; // Most general case formattedWrite(w, "%s", arg); } } } /** Writes its arguments in text format to the file, followed by a newline. Throws: $(D Exception) if the file is not opened. $(D ErrnoException) on an error writing to the file. */ void writeln(S...)(S args) { write(args, '\n'); } /** Writes its arguments in text format to the file, according to the format in the first argument. Throws: $(D Exception) if the file is not opened. $(D ErrnoException) on an error writing to the file. */ void writef(Char, A...)(in Char[] fmt, A args) { import std.format : formattedWrite; formattedWrite(lockingTextWriter(), fmt, args); } /** Writes its arguments in text format to the file, according to the format in the first argument, followed by a newline. Throws: $(D Exception) if the file is not opened. $(D ErrnoException) on an error writing to the file. */ void writefln(Char, A...)(in Char[] fmt, A args) { import std.format : formattedWrite; auto w = lockingTextWriter(); formattedWrite(w, fmt, args); w.put('\n'); } /** Read line from the file handle and return it as a specified type. This version manages its own read buffer, which means one memory allocation per call. If you are not retaining a reference to the read data, consider the $(D File.readln(buf)) version, which may offer better performance as it can reuse its read buffer. Params: S = Template parameter; the type of the allocated buffer, and the type returned. Defaults to $(D string). terminator = Line terminator (by default, $(D '\n')). Note: String terminators are not supported due to ambiguity with readln(buf) below. Returns: The line that was read, including the line terminator character. Throws: $(D StdioException) on I/O error, or $(D UnicodeException) on Unicode conversion error. Example: --- // Reads $(D stdin) and writes it to $(D stdout). import std.stdio; void main() { string line; while ((line = stdin.readln()) !is null) write(line); } --- */ S readln(S = string)(dchar terminator = '\n') if (isSomeString!S) { Unqual!(ElementEncodingType!S)[] buf; readln(buf, terminator); return cast(S)buf; } @system unittest { static import std.file; import std.algorithm.comparison : equal; import std.meta : AliasSeq; auto deleteme = testFilename(); std.file.write(deleteme, "hello\nworld\n"); scope(exit) std.file.remove(deleteme); foreach (String; AliasSeq!(string, char[], wstring, wchar[], dstring, dchar[])) { auto witness = [ "hello\n", "world\n" ]; auto f = File(deleteme); uint i = 0; String buf; while ((buf = f.readln!String()).length) { assert(i < witness.length); assert(equal(buf, witness[i++])); } assert(i == witness.length); } } @system unittest { static import std.file; import std.typecons : Tuple; auto deleteme = testFilename(); std.file.write(deleteme, "cześć \U0002000D"); scope(exit) std.file.remove(deleteme); uint[] lengths = [12,8,7]; foreach (uint i, C; Tuple!(char, wchar, dchar).Types) { immutable(C)[] witness = "cześć \U0002000D"; auto buf = File(deleteme).readln!(immutable(C)[])(); assert(buf.length == lengths[i]); assert(buf == witness); } } /** Read line from the file handle and write it to $(D buf[]), including terminating character. This can be faster than $(D line = File.readln()) because you can reuse the buffer for each call. Note that reusing the buffer means that you must copy the previous contents if you wish to retain them. Params: buf = Buffer used to store the resulting line data. buf is resized as necessary. terminator = Line terminator (by default, $(D '\n')). Use $(REF newline, std,ascii) for portability (unless the file was opened in text mode). Returns: 0 for end of file, otherwise number of characters read Throws: $(D StdioException) on I/O error, or $(D UnicodeException) on Unicode conversion error. Example: --- // Read lines from $(D stdin) into a string // Ignore lines starting with '#' // Write the string to $(D stdout) void main() { string output; char[] buf; while (stdin.readln(buf)) { if (buf[0] == '#') continue; output ~= buf; } write(output); } --- This method can be more efficient than the one in the previous example because $(D stdin.readln(buf)) reuses (if possible) memory allocated for $(D buf), whereas $(D line = stdin.readln()) makes a new memory allocation for every line. For even better performance you can help $(D readln) by passing in a large buffer to avoid memory reallocations. This can be done by reusing the largest buffer returned by $(D readln): Example: --- // Read lines from $(D stdin) and count words void main() { char[] buf; size_t words = 0; while (!stdin.eof) { char[] line = buf; stdin.readln(line); if (line.length > buf.length) buf = line; words += line.split.length; } writeln(words); } --- This is actually what $(LREF byLine) does internally, so its usage is recommended if you want to process a complete file. */ size_t readln(C)(ref C[] buf, dchar terminator = '\n') if (isSomeChar!C && is(Unqual!C == C) && !is(C == enum)) { import std.exception : enforce; static if (is(C == char)) { enforce(_p && _p.handle, "Attempt to read from an unopened file."); if (_p.orientation == Orientation.unknown) { import core.stdc.wchar_ : fwide; auto w = fwide(_p.handle, 0); if (w < 0) _p.orientation = Orientation.narrow; else if (w > 0) _p.orientation = Orientation.wide; } return readlnImpl(_p.handle, buf, terminator, _p.orientation); } else { // TODO: optimize this string s = readln(terminator); buf.length = 0; if (!s.length) return 0; foreach (C c; s) { buf ~= c; } return buf.length; } } @system unittest { // @system due to readln static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "123\n456789"); scope(exit) std.file.remove(deleteme); auto file = File(deleteme); char[] buffer = new char[10]; char[] line = buffer; file.readln(line); auto beyond = line.length; buffer[beyond] = 'a'; file.readln(line); // should not write buffer beyond line assert(buffer[beyond] == 'a'); } @system unittest // bugzilla 15293 { // @system due to readln static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "a\n\naa"); scope(exit) std.file.remove(deleteme); auto file = File(deleteme); char[] buffer; char[] line; file.readln(buffer, '\n'); line = buffer; file.readln(line, '\n'); line = buffer; file.readln(line, '\n'); assert(line[0 .. 1].capacity == 0); } /** ditto */ size_t readln(C, R)(ref C[] buf, R terminator) if (isSomeChar!C && is(Unqual!C == C) && !is(C == enum) && isBidirectionalRange!R && is(typeof(terminator.front == dchar.init))) { import std.algorithm.mutation : swap; import std.algorithm.searching : endsWith; import std.range.primitives : back; auto last = terminator.back; C[] buf2; swap(buf, buf2); for (;;) { if (!readln(buf2, last) || endsWith(buf2, terminator)) { if (buf.empty) { buf = buf2; } else { buf ~= buf2; } break; } buf ~= buf2; } return buf.length; } unittest { static import std.file; import std.typecons : Tuple; auto deleteme = testFilename(); std.file.write(deleteme, "hello\n\rworld\nhow\n\rare ya"); scope(exit) std.file.remove(deleteme); foreach (C; Tuple!(char, wchar, dchar).Types) { immutable(C)[][] witness = [ "hello\n\r", "world\nhow\n\r", "are ya" ]; auto f = File(deleteme); uint i = 0; C[] buf; while (f.readln(buf, "\n\r")) { assert(i < witness.length); assert(buf == witness[i++]); } assert(buf.length==0); } } /** * Read data from the file according to the specified * $(LINK2 std_format.html#_format-string, format specifier) using * $(REF formattedRead, std,_format). */ uint readf(Data...)(in char[] format, Data data) { import std.format : formattedRead; assert(isOpen); auto input = LockingTextReader(this); return formattedRead(input, format, data); } /// @system unittest { // @system due to readf static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "hello\nworld\ntrue\nfalse\n"); scope(exit) std.file.remove(deleteme); string s; auto f = File(deleteme); f.readf("%s\n", &s); assert(s == "hello", "["~s~"]"); f.readf("%s\n", &s); assert(s == "world", "["~s~"]"); // Issue 11698 bool b1, b2; f.readf("%s\n%s\n", &b1, &b2); assert(b1 == true && b2 == false); } /** Returns a temporary file by calling $(HTTP cplusplus.com/reference/clibrary/cstdio/_tmpfile.html, _tmpfile). Note that the created file has no $(LREF name).*/ static File tmpfile() @safe { import std.exception : errnoEnforce; return File(errnoEnforce(.tmpfile(), "Could not create temporary file with tmpfile()"), null); } /** Unsafe function that wraps an existing $(D FILE*). The resulting $(D File) never takes the initiative in closing the file. Note that the created file has no $(LREF name)*/ /*private*/ static File wrapFile(FILE* f) @safe { import std.exception : enforce; return File(enforce(f, "Could not wrap null FILE*"), null, /*uint.max / 2*/ 9999); } /** Returns the $(D FILE*) corresponding to this object. */ FILE* getFP() @safe pure { import std.exception : enforce; enforce(_p && _p.handle, "Attempting to call getFP() on an unopened file"); return _p.handle; } @system unittest { static import core.stdc.stdio; assert(stdout.getFP() == core.stdc.stdio.stdout); } /** Returns the file number corresponding to this object. */ @property int fileno() const @trusted { import std.exception : enforce; enforce(isOpen, "Attempting to call fileno() on an unopened file"); return .fileno(cast(FILE*) _p.handle); } /** Returns the underlying operating system $(D HANDLE) (Windows only). */ version(StdDdoc) @property HANDLE windowsHandle(); version(Windows) @property HANDLE windowsHandle() { version (DIGITAL_MARS_STDIO) return _fdToHandle(fileno); else return cast(HANDLE)_get_osfhandle(fileno); } // Note: This was documented until 2013/08 /* Range that reads one line at a time. Returned by $(LREF byLine). Allows to directly use range operations on lines of a file. */ struct ByLine(Char, Terminator) { private: import std.typecons : RefCounted, RefCountedAutoInitialize; /* Ref-counting stops the source range's Impl * from getting out of sync after the range is copied, e.g. * when accessing range.front, then using std.range.take, * then accessing range.front again. */ alias PImpl = RefCounted!(Impl, RefCountedAutoInitialize.no); PImpl impl; static if (isScalarType!Terminator) enum defTerm = '\n'; else enum defTerm = cast(Terminator)"\n"; public: this(File f, KeepTerminator kt = KeepTerminator.no, Terminator terminator = defTerm) { impl = PImpl(f, kt, terminator); } @property bool empty() { return impl.refCountedPayload.empty; } @property Char[] front() { return impl.refCountedPayload.front; } void popFront() { impl.refCountedPayload.popFront(); } private: struct Impl { private: File file; Char[] line; Char[] buffer; Terminator terminator; KeepTerminator keepTerminator; public: this(File f, KeepTerminator kt, Terminator terminator) { file = f; this.terminator = terminator; keepTerminator = kt; popFront(); } // Range primitive implementations. @property bool empty() { return line is null; } @property Char[] front() { return line; } void popFront() { import std.algorithm.searching : endsWith; assert(file.isOpen); line = buffer; file.readln(line, terminator); if (line.length > buffer.length) { buffer = line; } if (line.empty) { file.detach(); line = null; } else if (keepTerminator == KeepTerminator.no && endsWith(line, terminator)) { static if (isScalarType!Terminator) enum tlen = 1; else static if (isArray!Terminator) { static assert( is(Unqual!(ElementEncodingType!Terminator) == Char)); const tlen = terminator.length; } else static assert(false); line = line.ptr[0 .. line.length - tlen]; } } } } /** Returns an input range set up to read from the file handle one line at a time. The element type for the range will be $(D Char[]). Range primitives may throw $(D StdioException) on I/O error. Note: Each $(D front) will not persist after $(D popFront) is called, so the caller must copy its contents (e.g. by calling $(D to!string)) when retention is needed. If the caller needs to retain a copy of every line, use the $(LREF byLineCopy) function instead. Params: Char = Character type for each line, defaulting to $(D char). keepTerminator = Use $(D KeepTerminator.yes) to include the terminator at the end of each line. terminator = Line separator ($(D '\n') by default). Use $(REF newline, std,ascii) for portability (unless the file was opened in text mode). Example: ---- import std.algorithm, std.stdio, std.string; // Count words in a file using ranges. void main() { auto file = File("file.txt"); // Open for reading const wordCount = file.byLine() // Read lines .map!split // Split into words .map!(a => a.length) // Count words per line .sum(); // Total word count writeln(wordCount); } ---- Example: ---- import std.range, std.stdio; // Read lines using foreach. void main() { auto file = File("file.txt"); // Open for reading auto range = file.byLine(); // Print first three lines foreach (line; range.take(3)) writeln(line); // Print remaining lines beginning with '#' foreach (line; range) { if (!line.empty && line[0] == '#') writeln(line); } } ---- Notice that neither example accesses the line data returned by $(D front) after the corresponding $(D popFront) call is made (because the contents may well have changed). */ auto byLine(Terminator = char, Char = char) (KeepTerminator keepTerminator = KeepTerminator.no, Terminator terminator = '\n') if (isScalarType!Terminator) { return ByLine!(Char, Terminator)(this, keepTerminator, terminator); } /// ditto auto byLine(Terminator, Char = char) (KeepTerminator keepTerminator, Terminator terminator) if (is(Unqual!(ElementEncodingType!Terminator) == Char)) { return ByLine!(Char, Terminator)(this, keepTerminator, terminator); } @system unittest { static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "hi"); scope(success) std.file.remove(deleteme); import std.meta : AliasSeq; foreach (T; AliasSeq!(char, wchar, dchar)) { auto blc = File(deleteme).byLine!(T, T); assert(blc.front == "hi"); // check front is cached assert(blc.front is blc.front); } } private struct ByLineCopy(Char, Terminator) { private: import std.typecons : RefCounted, RefCountedAutoInitialize; /* Ref-counting stops the source range's ByLineCopyImpl * from getting out of sync after the range is copied, e.g. * when accessing range.front, then using std.range.take, * then accessing range.front again. */ alias Impl = RefCounted!(ByLineCopyImpl!(Char, Terminator), RefCountedAutoInitialize.no); Impl impl; public: this(File f, KeepTerminator kt, Terminator terminator) { impl = Impl(f, kt, terminator); } @property bool empty() { return impl.refCountedPayload.empty; } @property Char[] front() { return impl.refCountedPayload.front; } void popFront() { impl.refCountedPayload.popFront(); } } private struct ByLineCopyImpl(Char, Terminator) { ByLine!(Unqual!Char, Terminator).Impl impl; bool gotFront; Char[] line; public: this(File f, KeepTerminator kt, Terminator terminator) { impl = ByLine!(Unqual!Char, Terminator).Impl(f, kt, terminator); } @property bool empty() { return impl.empty; } @property front() { if (!gotFront) { line = impl.front.dup; gotFront = true; } return line; } void popFront() { impl.popFront(); gotFront = false; } } /** Returns an input range set up to read from the file handle one line at a time. Each line will be newly allocated. $(D front) will cache its value to allow repeated calls without unnecessary allocations. Note: Due to caching byLineCopy can be more memory-efficient than $(D File.byLine.map!idup). The element type for the range will be $(D Char[]). Range primitives may throw $(D StdioException) on I/O error. Params: Char = Character type for each line, defaulting to $(D immutable char). keepTerminator = Use $(D KeepTerminator.yes) to include the terminator at the end of each line. terminator = Line separator ($(D '\n') by default). Use $(REF newline, std,ascii) for portability (unless the file was opened in text mode). Example: ---- import std.algorithm, std.array, std.stdio; // Print sorted lines of a file. void main() { auto sortedLines = File("file.txt") // Open for reading .byLineCopy() // Read persistent lines .array() // into an array .sort(); // then sort them foreach (line; sortedLines) writeln(line); } ---- See_Also: $(REF readText, std,file) */ auto byLineCopy(Terminator = char, Char = immutable char) (KeepTerminator keepTerminator = KeepTerminator.no, Terminator terminator = '\n') if (isScalarType!Terminator) { return ByLineCopy!(Char, Terminator)(this, keepTerminator, terminator); } /// ditto auto byLineCopy(Terminator, Char = immutable char) (KeepTerminator keepTerminator, Terminator terminator) if (is(Unqual!(ElementEncodingType!Terminator) == Unqual!Char)) { return ByLineCopy!(Char, Terminator)(this, keepTerminator, terminator); } @safe unittest { static assert(is(typeof(File("").byLine.front) == char[])); static assert(is(typeof(File("").byLineCopy.front) == string)); static assert( is(typeof(File("").byLineCopy!(char, char).front) == char[])); } @system unittest { static import std.file; import std.algorithm.comparison : equal; scope(failure) printf("Failed test at line %d\n", __LINE__); auto deleteme = testFilename(); std.file.write(deleteme, ""); scope(success) std.file.remove(deleteme); // Test empty file auto f = File(deleteme); foreach (line; f.byLine()) { assert(false); } f.detach(); assert(!f.isOpen); void test(Terminator)(string txt, in string[] witness, KeepTerminator kt, Terminator term, bool popFirstLine = false) { import std.algorithm.sorting : sort; import std.array : array; import std.conv : text; import std.range.primitives : walkLength; uint i; std.file.write(deleteme, txt); auto f = File(deleteme); scope(exit) { f.close(); assert(!f.isOpen); } auto lines = f.byLine(kt, term); if (popFirstLine) { lines.popFront(); i = 1; } assert(lines.empty || lines.front is lines.front); foreach (line; lines) { assert(line == witness[i++]); } assert(i == witness.length, text(i, " != ", witness.length)); // Issue 11830 auto walkedLength = File(deleteme).byLine(kt, term).walkLength; assert(walkedLength == witness.length, text(walkedLength, " != ", witness.length)); // test persistent lines assert(File(deleteme).byLineCopy(kt, term).array.sort() == witness.dup.sort()); } KeepTerminator kt = KeepTerminator.no; test("", null, kt, '\n'); test("\n", [ "" ], kt, '\n'); test("asd\ndef\nasdf", [ "asd", "def", "asdf" ], kt, '\n'); test("asd\ndef\nasdf", [ "asd", "def", "asdf" ], kt, '\n', true); test("asd\ndef\nasdf\n", [ "asd", "def", "asdf" ], kt, '\n'); test("foo", [ "foo" ], kt, '\n', true); test("bob\r\nmarge\r\nsteve\r\n", ["bob", "marge", "steve"], kt, "\r\n"); test("sue\r", ["sue"], kt, '\r'); kt = KeepTerminator.yes; test("", null, kt, '\n'); test("\n", [ "\n" ], kt, '\n'); test("asd\ndef\nasdf", [ "asd\n", "def\n", "asdf" ], kt, '\n'); test("asd\ndef\nasdf\n", [ "asd\n", "def\n", "asdf\n" ], kt, '\n'); test("asd\ndef\nasdf\n", [ "asd\n", "def\n", "asdf\n" ], kt, '\n', true); test("foo", [ "foo" ], kt, '\n'); test("bob\r\nmarge\r\nsteve\r\n", ["bob\r\n", "marge\r\n", "steve\r\n"], kt, "\r\n"); test("sue\r", ["sue\r"], kt, '\r'); } @system unittest { import std.algorithm.comparison : equal; import std.range : drop, take; version(Win64) { static import std.file; /* the C function tmpfile doesn't seem to work, even when called from C */ auto deleteme = testFilename(); auto file = File(deleteme, "w+"); scope(success) std.file.remove(deleteme); } else version(CRuntime_Bionic) { static import std.file; /* the C function tmpfile doesn't work when called from a shared library apk: https://code.google.com/p/android/issues/detail?id=66815 */ auto deleteme = testFilename(); auto file = File(deleteme, "w+"); scope(success) std.file.remove(deleteme); } else auto file = File.tmpfile(); file.write("1\n2\n3\n"); // bug 9599 file.rewind(); File.ByLine!(char, char) fbl = file.byLine(); auto fbl2 = fbl; assert(fbl.front == "1"); assert(fbl.front is fbl2.front); assert(fbl.take(1).equal(["1"])); assert(fbl.equal(["2", "3"])); assert(fbl.empty); assert(file.isOpen); // we still have a valid reference file.rewind(); fbl = file.byLine(); assert(!fbl.drop(2).empty); assert(fbl.equal(["3"])); assert(fbl.empty); assert(file.isOpen); file.detach(); assert(!file.isOpen); } @system unittest { static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "hi"); scope(success) std.file.remove(deleteme); auto blc = File(deleteme).byLineCopy; assert(!blc.empty); // check front is cached assert(blc.front is blc.front); } /** Creates an input range set up to parse one line at a time from the file into a tuple. Range primitives may throw $(D StdioException) on I/O error. Params: file = file handle to parse from format = tuple record $(REF_ALTTEXT _format, formattedRead, std, _format) Returns: The input range set up to parse one line at a time into a record tuple. See_Also: It is similar to $(LREF byLine) and uses $(REF_ALTTEXT _format, formattedRead, std, _format) under the hood. */ template byRecord(Fields...) { ByRecord!(Fields) byRecord(string format) { return typeof(return)(this, format); } } /// @system unittest { static import std.file; import std.typecons : tuple; // prepare test file auto testFile = testFilename(); scope(failure) printf("Failed test at line %d\n", __LINE__); std.file.write(testFile, "1 2\n4 1\n5 100"); scope(exit) std.file.remove(testFile); File f = File(testFile); scope(exit) f.close(); auto expected = [tuple(1, 2), tuple(4, 1), tuple(5, 100)]; uint i; foreach (e; f.byRecord!(int, int)("%s %s")) { assert(e == expected[i++]); } } // Note: This was documented until 2013/08 /* * Range that reads a chunk at a time. */ struct ByChunk { private: File file_; ubyte[] chunk_; void prime() { chunk_ = file_.rawRead(chunk_); if (chunk_.length == 0) file_.detach(); } public: this(File file, size_t size) { this(file, new ubyte[](size)); } this(File file, ubyte[] buffer) { import std.exception : enforce; enforce(buffer.length, "size must be larger than 0"); file_ = file; chunk_ = buffer; prime(); } // $(D ByChunk)'s input range primitive operations. @property nothrow bool empty() const { return !file_.isOpen; } /// Ditto @property nothrow ubyte[] front() { version(assert) { import core.exception : RangeError; if (empty) throw new RangeError(); } return chunk_; } /// Ditto void popFront() { version(assert) { import core.exception : RangeError; if (empty) throw new RangeError(); } prime(); } } /** Returns an input range set up to read from the file handle a chunk at a time. The element type for the range will be $(D ubyte[]). Range primitives may throw $(D StdioException) on I/O error. Example: --------- void main() { // Read standard input 4KB at a time foreach (ubyte[] buffer; stdin.byChunk(4096)) { ... use buffer ... } } --------- The parameter may be a number (as shown in the example above) dictating the size of each chunk. Alternatively, $(D byChunk) accepts a user-provided buffer that it uses directly. Example: --------- void main() { // Read standard input 4KB at a time foreach (ubyte[] buffer; stdin.byChunk(new ubyte[4096])) { ... use buffer ... } } --------- In either case, the content of the buffer is reused across calls. That means $(D front) will not persist after $(D popFront) is called, so if retention is needed, the caller must copy its contents (e.g. by calling $(D buffer.dup)). In the example above, $(D buffer.length) is 4096 for all iterations, except for the last one, in which case $(D buffer.length) may be less than 4096 (but always greater than zero). With the mentioned limitations, $(D byChunks) works with any algorithm compatible with input ranges. Example: --- // Efficient file copy, 1MB at a time. import std.algorithm, std.stdio; void main() { stdin.byChunk(1024 * 1024).copy(stdout.lockingTextWriter()); } --- $(REF joiner, std,algorithm,iteration) can be used to join chunks together into a single range lazily. Example: --- import std.algorithm, std.stdio; void main() { //Range of ranges static assert(is(typeof(stdin.byChunk(4096).front) == ubyte[])); //Range of elements static assert(is(typeof(stdin.byChunk(4096).joiner.front) == ubyte)); } --- Returns: A call to $(D byChunk) returns a range initialized with the $(D File) object and the appropriate buffer. Throws: If the user-provided size is zero or the user-provided buffer is empty, throws an $(D Exception). In case of an I/O error throws $(D StdioException). */ auto byChunk(size_t chunkSize) { return ByChunk(this, chunkSize); } /// Ditto ByChunk byChunk(ubyte[] buffer) { return ByChunk(this, buffer); } @system unittest { static import std.file; scope(failure) printf("Failed test at line %d\n", __LINE__); auto deleteme = testFilename(); std.file.write(deleteme, "asd\ndef\nasdf"); auto witness = ["asd\n", "def\n", "asdf" ]; auto f = File(deleteme); scope(exit) { f.close(); assert(!f.isOpen); std.file.remove(deleteme); } uint i; foreach (chunk; f.byChunk(4)) assert(chunk == cast(ubyte[])witness[i++]); assert(i == witness.length); } @system unittest { static import std.file; scope(failure) printf("Failed test at line %d\n", __LINE__); auto deleteme = testFilename(); std.file.write(deleteme, "asd\ndef\nasdf"); auto witness = ["asd\n", "def\n", "asdf" ]; auto f = File(deleteme); scope(exit) { f.close(); assert(!f.isOpen); std.file.remove(deleteme); } uint i; foreach (chunk; f.byChunk(new ubyte[4])) assert(chunk == cast(ubyte[])witness[i++]); assert(i == witness.length); } // Note: This was documented until 2013/08 /* $(D Range) that locks the file and allows fast writing to it. */ struct LockingTextWriter { private: import std.range.primitives : ElementType, isInfinite, isInputRange; // the shared file handle FILE* fps_; // the unshared version of fps @property _iobuf* handle_() @trusted { return cast(_iobuf*) fps_; } // the file's orientation (byte- or wide-oriented) int orientation_; public: this(ref File f) @trusted { import core.stdc.wchar_ : fwide; import std.exception : enforce; enforce(f._p && f._p.handle, "Attempting to write to closed File"); fps_ = f._p.handle; orientation_ = fwide(fps_, 0); FLOCK(fps_); } ~this() @trusted { if (fps_) { FUNLOCK(fps_); fps_ = null; } } this(this) @trusted { if (fps_) { FLOCK(fps_); } } /// Range primitive implementations. void put(A)(A writeme) if (is(ElementType!A : const(dchar)) && isInputRange!A && !isInfinite!A) { import std.exception : errnoEnforce; alias C = ElementEncodingType!A; static assert(!is(C == void)); static if (isSomeString!A && C.sizeof == 1) { if (orientation_ <= 0) { //file.write(writeme); causes infinite recursion!!! //file.rawWrite(writeme); static auto trustedFwrite(in void* ptr, size_t size, size_t nmemb, FILE* stream) @trusted { return .fwrite(ptr, size, nmemb, stream); } auto result = trustedFwrite(writeme.ptr, C.sizeof, writeme.length, fps_); if (result != writeme.length) errnoEnforce(0); return; } } // put each character in turn foreach (dchar c; writeme) { put(c); } } /// ditto void put(C)(C c) @safe if (is(C : const(dchar))) { import std.traits : Parameters; static auto trustedFPUTC(int ch, _iobuf* h) @trusted { return FPUTC(ch, h); } static auto trustedFPUTWC(Parameters!FPUTWC[0] ch, _iobuf* h) @trusted { return FPUTWC(ch, h); } static if (c.sizeof == 1) { // simple char if (orientation_ <= 0) trustedFPUTC(c, handle_); else trustedFPUTWC(c, handle_); } else static if (c.sizeof == 2) { import std.utf : toUTF8; if (orientation_ <= 0) { if (c <= 0x7F) { trustedFPUTC(c, handle_); } else { char[4] buf; auto b = toUTF8(buf, c); foreach (i ; 0 .. b.length) trustedFPUTC(b[i], handle_); } } else { trustedFPUTWC(c, handle_); } } else // 32-bit characters { import std.utf : toUTF8; if (orientation_ <= 0) { if (c <= 0x7F) { trustedFPUTC(c, handle_); } else { char[4] buf = void; auto b = toUTF8(buf, c); foreach (i ; 0 .. b.length) trustedFPUTC(b[i], handle_); } } else { version (Windows) { import std.utf : isValidDchar; assert(isValidDchar(c)); if (c <= 0xFFFF) { trustedFPUTWC(c, handle_); } else { trustedFPUTWC(cast(wchar) ((((c - 0x10000) >> 10) & 0x3FF) + 0xD800), handle_); trustedFPUTWC(cast(wchar) (((c - 0x10000) & 0x3FF) + 0xDC00), handle_); } } else version (Posix) { trustedFPUTWC(c, handle_); } else { static assert(0); } } } } } /** Returns an output range that locks the file and allows fast writing to it. See $(LREF byChunk) for an example. */ auto lockingTextWriter() @safe { return LockingTextWriter(this); } // An output range which optionally locks the file and puts it into // binary mode (similar to rawWrite). Because it needs to restore // the file mode on destruction, it is RefCounted on Windows. struct BinaryWriterImpl(bool locking) { import std.traits : hasIndirections; private: FILE* fps; string name; version (Windows) { int fd, oldMode; version (DIGITAL_MARS_STDIO) ubyte oldInfo; } package: this(ref File f) { import std.exception : enforce; enforce(f._p && f._p.handle); name = f._name; fps = f._p.handle; static if (locking) FLOCK(fps); version (Windows) { .fflush(fps); // before changing translation mode fd = ._fileno(fps); oldMode = ._setmode(fd, _O_BINARY); version (DIGITAL_MARS_STDIO) { import core.atomic : atomicOp; // @@@BUG@@@ 4243 oldInfo = __fhnd_info[fd]; atomicOp!"&="(__fhnd_info[fd], ~FHND_TEXT); } } } public: ~this() { if (!fps) return; version (Windows) { .fflush(fps); // before restoring translation mode version (DIGITAL_MARS_STDIO) { // @@@BUG@@@ 4243 __fhnd_info[fd] = oldInfo; } ._setmode(fd, oldMode); } FUNLOCK(fps); fps = null; } void rawWrite(T)(in T[] buffer) { import std.conv : text; import std.exception : errnoEnforce; auto result = .fwrite(buffer.ptr, T.sizeof, buffer.length, fps); if (result == result.max) result = 0; errnoEnforce(result == buffer.length, text("Wrote ", result, " instead of ", buffer.length, " objects of type ", T.stringof, " to file `", name, "'")); } version (Windows) { @disable this(this); } else { this(this) { if (fps) { FLOCK(fps); } } } void put(T)(auto ref in T value) if (!hasIndirections!T && !isInputRange!T) { rawWrite((&value)[0..1]); } void put(T)(in T[] array) if (!hasIndirections!T && !isInputRange!T) { rawWrite(array); } } /** Returns an output range that locks the file and allows fast writing to it. Example: Produce a grayscale image of the $(LUCKY Mandelbrot set) in binary $(LUCKY Netpbm format) to standard output. --- import std.algorithm, std.range, std.stdio; void main() { enum size = 500; writef("P5\n%d %d %d\n", size, size, ubyte.max); iota(-1, 3, 2.0/size).map!(y => iota(-1.5, 0.5, 2.0/size).map!(x => cast(ubyte)(1+ recurrence!((a, n) => x + y*1i + a[n-1]^^2)(0+0i) .take(ubyte.max) .countUntil!(z => z.re^^2 + z.im^^2 > 4)) ) ) .copy(stdout.lockingBinaryWriter); } --- */ auto lockingBinaryWriter() { alias LockingBinaryWriterImpl = BinaryWriterImpl!true; version (Windows) { import std.typecons : RefCounted; alias LockingBinaryWriter = RefCounted!LockingBinaryWriterImpl; } else alias LockingBinaryWriter = LockingBinaryWriterImpl; return LockingBinaryWriter(this); } @system unittest { static import std.file; import std.algorithm.mutation : reverse; import std.exception : collectException; import std.range : only, retro; import std.string : format; auto deleteme = testFilename(); scope(exit) collectException(std.file.remove(deleteme)); auto output = File(deleteme, "wb"); auto writer = output.lockingBinaryWriter(); auto input = File(deleteme, "rb"); T[] readExact(T)(T[] buf) { auto result = input.rawRead(buf); assert(result.length == buf.length, "Read %d out of %d bytes" .format(result.length, buf.length)); return result; } // test raw values ubyte byteIn = 42; byteIn.only.copy(writer); output.flush(); ubyte byteOut = readExact(new ubyte[1])[0]; assert(byteIn == byteOut); // test arrays ubyte[] bytesIn = [1, 2, 3, 4, 5]; bytesIn.copy(writer); output.flush(); ubyte[] bytesOut = readExact(new ubyte[bytesIn.length]); scope(failure) .writeln(bytesOut); assert(bytesIn == bytesOut); // test ranges of values bytesIn.retro.copy(writer); output.flush(); bytesOut = readExact(bytesOut); bytesOut.reverse(); assert(bytesIn == bytesOut); // test string "foobar".copy(writer); output.flush(); char[] charsOut = readExact(new char[6]); assert(charsOut == "foobar"); // test ranges of arrays only("foo", "bar").copy(writer); output.flush(); charsOut = readExact(charsOut); assert(charsOut == "foobar"); // test that we are writing arrays as is, // without UTF-8 transcoding "foo"d.copy(writer); output.flush(); dchar[] dcharsOut = readExact(new dchar[3]); assert(dcharsOut == "foo"); } /// Get the size of the file, ulong.max if file is not searchable, but still throws if an actual error occurs. @property ulong size() @safe { import std.exception : collectException; ulong pos = void; if (collectException(pos = tell)) return ulong.max; scope(exit) seek(pos); seek(0, SEEK_END); return tell; } } @system unittest { @system struct SystemToString { string toString() { return "system"; } } @trusted struct TrustedToString { string toString() { return "trusted"; } } @safe struct SafeToString { string toString() { return "safe"; } } @system void systemTests() { //system code can write to files/stdout with anything! if (false) { auto f = File(); f.write("just a string"); f.write("string with arg: ", 47); f.write(SystemToString()); f.write(TrustedToString()); f.write(SafeToString()); write("just a string"); write("string with arg: ", 47); write(SystemToString()); write(TrustedToString()); write(SafeToString()); f.writeln("just a string"); f.writeln("string with arg: ", 47); f.writeln(SystemToString()); f.writeln(TrustedToString()); f.writeln(SafeToString()); writeln("just a string"); writeln("string with arg: ", 47); writeln(SystemToString()); writeln(TrustedToString()); writeln(SafeToString()); f.writef("string with arg: %s", 47); f.writef("%s", SystemToString()); f.writef("%s", TrustedToString()); f.writef("%s", SafeToString()); writef("string with arg: %s", 47); writef("%s", SystemToString()); writef("%s", TrustedToString()); writef("%s", SafeToString()); f.writefln("string with arg: %s", 47); f.writefln("%s", SystemToString()); f.writefln("%s", TrustedToString()); f.writefln("%s", SafeToString()); writefln("string with arg: %s", 47); writefln("%s", SystemToString()); writefln("%s", TrustedToString()); writefln("%s", SafeToString()); } } @safe void safeTests() { auto f = File(); //safe code can write to files only with @safe and @trusted code... if (false) { f.write("just a string"); f.write("string with arg: ", 47); f.write(TrustedToString()); f.write(SafeToString()); write("just a string"); write("string with arg: ", 47); write(TrustedToString()); write(SafeToString()); f.writeln("just a string"); f.writeln("string with arg: ", 47); f.writeln(TrustedToString()); f.writeln(SafeToString()); writeln("just a string"); writeln("string with arg: ", 47); writeln(TrustedToString()); writeln(SafeToString()); f.writef("string with arg: %s", 47); f.writef("%s", TrustedToString()); f.writef("%s", SafeToString()); writef("string with arg: %s", 47); writef("%s", TrustedToString()); writef("%s", SafeToString()); f.writefln("string with arg: %s", 47); f.writefln("%s", TrustedToString()); f.writefln("%s", SafeToString()); writefln("string with arg: %s", 47); writefln("%s", TrustedToString()); writefln("%s", SafeToString()); } static assert(!__traits(compiles, f.write(SystemToString().toString()))); static assert(!__traits(compiles, f.writeln(SystemToString()))); static assert(!__traits(compiles, f.writef("%s", SystemToString()))); static assert(!__traits(compiles, f.writefln("%s", SystemToString()))); static assert(!__traits(compiles, write(SystemToString().toString()))); static assert(!__traits(compiles, writeln(SystemToString()))); static assert(!__traits(compiles, writef("%s", SystemToString()))); static assert(!__traits(compiles, writefln("%s", SystemToString()))); } systemTests(); safeTests(); } @safe unittest { static import std.file; import std.exception : collectException; auto deleteme = testFilename(); scope(exit) collectException(std.file.remove(deleteme)); std.file.write(deleteme, "1 2 3"); auto f = File(deleteme); assert(f.size == 5); assert(f.tell == 0); } @system unittest { // @system due to readln static import std.file; import std.range : chain, only, repeat; import std.range.primitives : isOutputRange; auto deleteme = testFilename(); scope(exit) std.file.remove(deleteme); { File f = File(deleteme, "w"); auto writer = f.lockingTextWriter(); static assert(isOutputRange!(typeof(writer), dchar)); writer.put("日本語"); writer.put("日本語"w); writer.put("日本語"d); writer.put('日'); writer.put(chain(only('本'), only('語'))); writer.put(repeat('#', 12)); // BUG 11945 } assert(File(deleteme).readln() == "日本語日本語日本語日本語############"); } @safe unittest { import std.exception : collectException; auto e = collectException({ File f; f.writeln("Hello!"); }()); assert(e && e.msg == "Attempting to write to closed File"); } /// Used to specify the lock type for $(D File.lock) and $(D File.tryLock). enum LockType { /// Specifies a _read (shared) lock. A _read lock denies all processes /// write access to the specified region of the file, including the /// process that first locks the region. All processes can _read the /// locked region. Multiple simultaneous _read locks are allowed, as /// long as there are no exclusive locks. read, /// Specifies a read/write (exclusive) lock. A read/write lock denies all /// other processes both read and write access to the locked file region. /// If a segment has an exclusive lock, it may not have any shared locks /// or other exclusive locks. readWrite } struct LockingTextReader { private File _f; private char _front; private bool _hasChar; this(File f) { import std.exception : enforce; enforce(f.isOpen, "LockingTextReader: File must be open"); _f = f; FLOCK(_f._p.handle); } this(this) { FLOCK(_f._p.handle); } ~this() { if (_hasChar) ungetc(_front, cast(FILE*)_f._p.handle); // File locking has its own reference count if (_f.isOpen) FUNLOCK(_f._p.handle); } void opAssign(LockingTextReader r) { import std.algorithm.mutation : swap; swap(this, r); } @property bool empty() { if (!_hasChar) { if (!_f.isOpen || _f.eof) return true; immutable int c = FGETC(cast(_iobuf*) _f._p.handle); if (c == EOF) { .destroy(_f); return true; } _front = cast(char)c; _hasChar = true; } return false; } @property char front() { if (!_hasChar) { version(assert) { import core.exception : RangeError; if (empty) throw new RangeError(); } else { empty; } } return _front; } void popFront() { if (!_hasChar) empty; _hasChar = false; } } @system unittest { // @system due to readf static import std.file; import std.range.primitives : isInputRange; static assert(isInputRange!LockingTextReader); auto deleteme = testFilename(); std.file.write(deleteme, "1 2 3"); scope(exit) std.file.remove(deleteme); int x, y; auto f = File(deleteme); f.readf("%s ", &x); assert(x == 1); f.readf("%d ", &x); assert(x == 2); f.readf("%d ", &x); assert(x == 3); } @system unittest // bugzilla 13686 { static import std.file; import std.algorithm.comparison : equal; import std.utf : byDchar; auto deleteme = testFilename(); std.file.write(deleteme, "Тест"); scope(exit) std.file.remove(deleteme); string s; File(deleteme).readf("%s", &s); assert(s == "Тест"); auto ltr = LockingTextReader(File(deleteme)).byDchar; assert(equal(ltr, "Тест".byDchar)); } @system unittest // bugzilla 12320 { static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "ab"); scope(exit) std.file.remove(deleteme); auto ltr = LockingTextReader(File(deleteme)); assert(ltr.front == 'a'); ltr.popFront(); assert(ltr.front == 'b'); ltr.popFront(); assert(ltr.empty); } @system unittest // bugzilla 14861 { // @system due to readf static import std.file; auto deleteme = testFilename(); File fw = File(deleteme, "w"); for (int i; i != 5000; i++) fw.writeln(i, ";", "Иванов;Пётр;Петрович"); fw.close(); scope(exit) std.file.remove(deleteme); // Test read File fr = File(deleteme, "r"); scope (exit) fr.close(); int nom; string fam, nam, ot; // Error format read while (!fr.eof) fr.readf("%s;%s;%s;%s\n", &nom, &fam, &nam, &ot); } /** * Indicates whether $(D T) is a file handle of some kind. */ template isFileHandle(T) { enum isFileHandle = is(T : FILE*) || is(T : File); } @safe unittest { static assert(isFileHandle!(FILE*)); static assert(isFileHandle!(File)); } /** * Property used by writeln/etc. so it can infer @safe since stdout is __gshared */ private @property File trustedStdout() @trusted { return stdout; } /*********************************** For each argument $(D arg) in $(D args), format the argument (as per $(LINK2 std_conv.html, to!(string)(arg))) and write the resulting string to $(D args[0]). A call without any arguments will fail to compile. Throws: In case of an I/O error, throws an $(D StdioException). */ void write(T...)(T args) if (!is(T[0] : File)) { trustedStdout.write(args); } @system unittest { static import std.file; scope(failure) printf("Failed test at line %d\n", __LINE__); void[] buf; if (false) write(buf); // test write auto deleteme = testFilename(); auto f = File(deleteme, "w"); f.write("Hello, ", "world number ", 42, "!"); f.close(); scope(exit) { std.file.remove(deleteme); } assert(cast(char[]) std.file.read(deleteme) == "Hello, world number 42!"); } /*********************************** * Equivalent to $(D write(args, '\n')). Calling $(D writeln) without * arguments is valid and just prints a newline to the standard * output. */ void writeln(T...)(T args) { import std.traits : isAggregateType; static if (T.length == 0) { import std.exception : enforce; enforce(fputc('\n', .trustedStdout._p.handle) == '\n', "fputc failed"); } else static if (T.length == 1 && is(typeof(args[0]) : const(char)[]) && !is(typeof(args[0]) == enum) && !is(Unqual!(typeof(args[0])) == typeof(null)) && !isAggregateType!(typeof(args[0]))) { import std.exception : enforce; import std.traits : isStaticArray; // Specialization for strings - a very frequent case auto w = .trustedStdout.lockingTextWriter(); static if (isStaticArray!(typeof(args[0]))) { w.put(args[0][]); } else { w.put(args[0]); } w.put('\n'); } else { // Most general instance trustedStdout.write(args, '\n'); } } @safe unittest { // Just make sure the call compiles if (false) writeln(); if (false) writeln("wyda"); // bug 8040 if (false) writeln(null); if (false) writeln(">", null, "<"); // Bugzilla 14041 if (false) { char[8] a; writeln(a); } } @system unittest { static import std.file; scope(failure) printf("Failed test at line %d\n", __LINE__); // test writeln auto deleteme = testFilename(); auto f = File(deleteme, "w"); scope(exit) { std.file.remove(deleteme); } f.writeln("Hello, ", "world number ", 42, "!"); f.close(); version (Windows) assert(cast(char[]) std.file.read(deleteme) == "Hello, world number 42!\r\n"); else assert(cast(char[]) std.file.read(deleteme) == "Hello, world number 42!\n"); // test writeln on stdout auto saveStdout = stdout; scope(exit) stdout = saveStdout; stdout.open(deleteme, "w"); writeln("Hello, ", "world number ", 42, "!"); stdout.close(); version (Windows) assert(cast(char[]) std.file.read(deleteme) == "Hello, world number 42!\r\n"); else assert(cast(char[]) std.file.read(deleteme) == "Hello, world number 42!\n"); stdout.open(deleteme, "w"); writeln("Hello!"c); writeln("Hello!"w); // bug 8386 writeln("Hello!"d); // bug 8386 writeln("embedded\0null"c); // bug 8730 stdout.close(); version (Windows) assert(cast(char[]) std.file.read(deleteme) == "Hello!\r\nHello!\r\nHello!\r\nembedded\0null\r\n"); else assert(cast(char[]) std.file.read(deleteme) == "Hello!\nHello!\nHello!\nembedded\0null\n"); } @system unittest { static import std.file; auto deleteme = testFilename(); auto f = File(deleteme, "w"); scope(exit) { std.file.remove(deleteme); } enum EI : int { A, B } enum ED : double { A, B } enum EC : char { A, B } enum ES : string { A = "aaa", B = "bbb" } f.writeln(EI.A); // false, but A on 2.058 f.writeln(EI.B); // true, but B on 2.058 f.writeln(ED.A); // A f.writeln(ED.B); // B f.writeln(EC.A); // A f.writeln(EC.B); // B f.writeln(ES.A); // A f.writeln(ES.B); // B f.close(); version (Windows) assert(cast(char[]) std.file.read(deleteme) == "A\r\nB\r\nA\r\nB\r\nA\r\nB\r\nA\r\nB\r\n"); else assert(cast(char[]) std.file.read(deleteme) == "A\nB\nA\nB\nA\nB\nA\nB\n"); } @system unittest { static auto useInit(T)(T ltw) { T val; val = ltw; val = T.init; return val; } useInit(stdout.lockingTextWriter()); } /*********************************** Writes formatted data to standard output (without a trailing newline). Params: args = The first argument $(D args[0]) should be the format string, specifying how to format the rest of the arguments. For a full description of the syntax of the format string and how it controls the formatting of the rest of the arguments, please refer to the documentation for $(REF formattedWrite, std,format). Note: In older versions of Phobos, it used to be possible to write: ------ writef(stderr, "%s", "message"); ------ to print a message to $(D stderr). This syntax is no longer supported, and has been superceded by: ------ stderr.writef("%s", "message"); ------ */ void writef(T...)(T args) { trustedStdout.writef(args); } @system unittest { static import std.file; scope(failure) printf("Failed test at line %d\n", __LINE__); // test writef auto deleteme = testFilename(); auto f = File(deleteme, "w"); scope(exit) { std.file.remove(deleteme); } f.writef("Hello, %s world number %s!", "nice", 42); f.close(); assert(cast(char[]) std.file.read(deleteme) == "Hello, nice world number 42!"); // test write on stdout auto saveStdout = stdout; scope(exit) stdout = saveStdout; stdout.open(deleteme, "w"); writef("Hello, %s world number %s!", "nice", 42); stdout.close(); assert(cast(char[]) std.file.read(deleteme) == "Hello, nice world number 42!"); } /*********************************** * Equivalent to $(D writef(args, '\n')). */ void writefln(T...)(T args) { trustedStdout.writefln(args); } @system unittest { static import std.file; scope(failure) printf("Failed test at line %d\n", __LINE__); // test writefln auto deleteme = testFilename(); auto f = File(deleteme, "w"); scope(exit) { std.file.remove(deleteme); } f.writefln("Hello, %s world number %s!", "nice", 42); f.close(); version (Windows) assert(cast(char[]) std.file.read(deleteme) == "Hello, nice world number 42!\r\n"); else assert(cast(char[]) std.file.read(deleteme) == "Hello, nice world number 42!\n", cast(char[]) std.file.read(deleteme)); } /** * Read data from $(D stdin) according to the specified * $(LINK2 std_format.html#format-string, format specifier) using * $(REF formattedRead, std,_format). */ uint readf(A...)(in char[] format, A args) { return stdin.readf(format, args); } @system unittest { float f; if (false) uint x = readf("%s", &f); char a; wchar b; dchar c; if (false) readf("%s %s %s", &a,&b,&c); } /********************************** * Read line from $(D stdin). * * This version manages its own read buffer, which means one memory allocation per call. If you are not * retaining a reference to the read data, consider the $(D readln(buf)) version, which may offer * better performance as it can reuse its read buffer. * * Returns: * The line that was read, including the line terminator character. * Params: * S = Template parameter; the type of the allocated buffer, and the type returned. Defaults to $(D string). * terminator = Line terminator (by default, $(D '\n')). * Note: * String terminators are not supported due to ambiguity with readln(buf) below. * Throws: * $(D StdioException) on I/O error, or $(D UnicodeException) on Unicode conversion error. * Example: * Reads $(D stdin) and writes it to $(D stdout). --- import std.stdio; void main() { string line; while ((line = readln()) !is null) write(line); } --- */ S readln(S = string)(dchar terminator = '\n') if (isSomeString!S) { return stdin.readln!S(terminator); } /********************************** * Read line from $(D stdin) and write it to buf[], including terminating character. * * This can be faster than $(D line = readln()) because you can reuse * the buffer for each call. Note that reusing the buffer means that you * must copy the previous contents if you wish to retain them. * * Returns: * $(D size_t) 0 for end of file, otherwise number of characters read * Params: * buf = Buffer used to store the resulting line data. buf is resized as necessary. * terminator = Line terminator (by default, $(D '\n')). Use $(REF newline, std,ascii) * for portability (unless the file was opened in text mode). * Throws: * $(D StdioException) on I/O error, or $(D UnicodeException) on Unicode conversion error. * Example: * Reads $(D stdin) and writes it to $(D stdout). --- import std.stdio; void main() { char[] buf; while (readln(buf)) write(buf); } --- */ size_t readln(C)(ref C[] buf, dchar terminator = '\n') if (isSomeChar!C && is(Unqual!C == C) && !is(C == enum)) { return stdin.readln(buf, terminator); } /** ditto */ size_t readln(C, R)(ref C[] buf, R terminator) if (isSomeChar!C && is(Unqual!C == C) && !is(C == enum) && isBidirectionalRange!R && is(typeof(terminator.front == dchar.init))) { return stdin.readln(buf, terminator); } @safe unittest { import std.meta : AliasSeq; //we can't actually test readln, so at the very least, //we test compilability void foo() { readln(); readln('\t'); foreach (String; AliasSeq!(string, char[], wstring, wchar[], dstring, dchar[])) { readln!String(); readln!String('\t'); } foreach (String; AliasSeq!(char[], wchar[], dchar[])) { String buf; readln(buf); readln(buf, '\t'); readln(buf, "<br />"); } } } /* * Convenience function that forwards to $(D core.sys.posix.stdio.fopen) * (to $(D _wfopen) on Windows) * with appropriately-constructed C-style strings. */ private FILE* fopen(R1, R2)(R1 name, R2 mode = "r") if ((isInputRange!R1 && isSomeChar!(ElementEncodingType!R1) || isSomeString!R1) && (isInputRange!R2 && isSomeChar!(ElementEncodingType!R2) || isSomeString!R2)) { import std.internal.cstring : tempCString; auto namez = name.tempCString!FSChar(); auto modez = mode.tempCString!FSChar(); static fopenImpl(const(FSChar)* namez, const(FSChar)* modez) @trusted nothrow @nogc { version(Windows) { return _wfopen(namez, modez); } else version(Posix) { /* * The new opengroup large file support API is transparently * included in the normal C bindings. http://opengroup.org/platform/lfs.html#1.0 * if _FILE_OFFSET_BITS in druntime is 64, off_t is 64 bit and * the normal functions work fine. If not, then large file support * probably isn't available. Do not use the old transitional API * (the native extern(C) fopen64, http://www.unix.org/version2/whatsnew/lfs20mar.html#3.0) */ import core.sys.posix.stdio : fopen; return fopen(namez, modez); } else { return .fopen(namez, modez); } } return fopenImpl(namez, modez); } version (Posix) { /*********************************** * Convenience function that forwards to $(D core.sys.posix.stdio.popen) * with appropriately-constructed C-style strings. */ FILE* popen(R1, R2)(R1 name, R2 mode = "r") @trusted nothrow @nogc if ((isInputRange!R1 && isSomeChar!(ElementEncodingType!R1) || isSomeString!R1) && (isInputRange!R2 && isSomeChar!(ElementEncodingType!R2) || isSomeString!R2)) { import std.internal.cstring : tempCString; auto namez = name.tempCString!FSChar(); auto modez = mode.tempCString!FSChar(); static popenImpl(const(FSChar)* namez, const(FSChar)* modez) @trusted nothrow @nogc { import core.sys.posix.stdio : popen; return popen(namez, modez); } return popenImpl(namez, modez); } } /* * Convenience function that forwards to $(D core.stdc.stdio.fwrite) * and throws an exception upon error */ private void binaryWrite(T)(FILE* f, T obj) { immutable result = fwrite(obj.ptr, obj[0].sizeof, obj.length, f); if (result != obj.length) StdioException(); } /** * Iterates through the lines of a file by using $(D foreach). * * Example: * --------- void main() { foreach (string line; lines(stdin)) { ... use line ... } } --------- The line terminator ($(D '\n') by default) is part of the string read (it could be missing in the last line of the file). Several types are supported for $(D line), and the behavior of $(D lines) changes accordingly: $(OL $(LI If $(D line) has type $(D string), $(D wstring), or $(D dstring), a new string of the respective type is allocated every read.) $(LI If $(D line) has type $(D char[]), $(D wchar[]), $(D dchar[]), the line's content will be reused (overwritten) across reads.) $(LI If $(D line) has type $(D immutable(ubyte)[]), the behavior is similar to case (1), except that no UTF checking is attempted upon input.) $(LI If $(D line) has type $(D ubyte[]), the behavior is similar to case (2), except that no UTF checking is attempted upon input.)) In all cases, a two-symbols versions is also accepted, in which case the first symbol (of integral type, e.g. $(D ulong) or $(D uint)) tracks the zero-based number of the current line. Example: ---- foreach (ulong i, string line; lines(stdin)) { ... use line ... } ---- In case of an I/O error, an $(D StdioException) is thrown. See_Also: $(LREF byLine) */ struct lines { private File f; private dchar terminator = '\n'; /** Constructor. Params: f = File to read lines from. terminator = Line separator ($(D '\n') by default). */ this(File f, dchar terminator = '\n') { this.f = f; this.terminator = terminator; } int opApply(D)(scope D dg) { import std.traits : Parameters; alias Parms = Parameters!(dg); static if (isSomeString!(Parms[$ - 1])) { enum bool duplicate = is(Parms[$ - 1] == string) || is(Parms[$ - 1] == wstring) || is(Parms[$ - 1] == dstring); int result = 0; static if (is(Parms[$ - 1] : const(char)[])) alias C = char; else static if (is(Parms[$ - 1] : const(wchar)[])) alias C = wchar; else static if (is(Parms[$ - 1] : const(dchar)[])) alias C = dchar; C[] line; static if (Parms.length == 2) Parms[0] i = 0; for (;;) { import std.conv : to; if (!f.readln(line, terminator)) break; auto copy = to!(Parms[$ - 1])(line); static if (Parms.length == 2) { result = dg(i, copy); ++i; } else { result = dg(copy); } if (result != 0) break; } return result; } else { // raw read return opApplyRaw(dg); } } // no UTF checking int opApplyRaw(D)(scope D dg) { import std.conv : to; import std.exception : assumeUnique; import std.traits : Parameters; alias Parms = Parameters!(dg); enum duplicate = is(Parms[$ - 1] : immutable(ubyte)[]); int result = 1; int c = void; FLOCK(f._p.handle); scope(exit) FUNLOCK(f._p.handle); ubyte[] buffer; static if (Parms.length == 2) Parms[0] line = 0; while ((c = FGETC(cast(_iobuf*)f._p.handle)) != -1) { buffer ~= to!(ubyte)(c); if (c == terminator) { static if (duplicate) auto arg = assumeUnique(buffer); else alias arg = buffer; // unlock the file while calling the delegate FUNLOCK(f._p.handle); scope(exit) FLOCK(f._p.handle); static if (Parms.length == 1) { result = dg(arg); } else { result = dg(line, arg); ++line; } if (result) break; static if (!duplicate) buffer.length = 0; } } // can only reach when FGETC returned -1 if (!f.eof) throw new StdioException("Error in reading file"); // error occured return result; } } @system unittest { static import std.file; import std.meta : AliasSeq; scope(failure) printf("Failed test at line %d\n", __LINE__); auto deleteme = testFilename(); scope(exit) { std.file.remove(deleteme); } alias TestedWith = AliasSeq!(string, wstring, dstring, char[], wchar[], dchar[]); foreach (T; TestedWith) { // test looping with an empty file std.file.write(deleteme, ""); auto f = File(deleteme, "r"); foreach (T line; lines(f)) { assert(false); } f.close(); // test looping with a file with three lines std.file.write(deleteme, "Line one\nline two\nline three\n"); f.open(deleteme, "r"); uint i = 0; foreach (T line; lines(f)) { if (i == 0) assert(line == "Line one\n"); else if (i == 1) assert(line == "line two\n"); else if (i == 2) assert(line == "line three\n"); else assert(false); ++i; } f.close(); // test looping with a file with three lines, last without a newline std.file.write(deleteme, "Line one\nline two\nline three"); f.open(deleteme, "r"); i = 0; foreach (T line; lines(f)) { if (i == 0) assert(line == "Line one\n"); else if (i == 1) assert(line == "line two\n"); else if (i == 2) assert(line == "line three"); else assert(false); ++i; } f.close(); } // test with ubyte[] inputs alias TestedWith2 = AliasSeq!(immutable(ubyte)[], ubyte[]); foreach (T; TestedWith2) { // test looping with an empty file std.file.write(deleteme, ""); auto f = File(deleteme, "r"); foreach (T line; lines(f)) { assert(false); } f.close(); // test looping with a file with three lines std.file.write(deleteme, "Line one\nline two\nline three\n"); f.open(deleteme, "r"); uint i = 0; foreach (T line; lines(f)) { if (i == 0) assert(cast(char[]) line == "Line one\n"); else if (i == 1) assert(cast(char[]) line == "line two\n", T.stringof ~ " " ~ cast(char[]) line); else if (i == 2) assert(cast(char[]) line == "line three\n"); else assert(false); ++i; } f.close(); // test looping with a file with three lines, last without a newline std.file.write(deleteme, "Line one\nline two\nline three"); f.open(deleteme, "r"); i = 0; foreach (T line; lines(f)) { if (i == 0) assert(cast(char[]) line == "Line one\n"); else if (i == 1) assert(cast(char[]) line == "line two\n"); else if (i == 2) assert(cast(char[]) line == "line three"); else assert(false); ++i; } f.close(); } foreach (T; AliasSeq!(ubyte[])) { // test looping with a file with three lines, last without a newline // using a counter too this time std.file.write(deleteme, "Line one\nline two\nline three"); auto f = File(deleteme, "r"); uint i = 0; foreach (ulong j, T line; lines(f)) { if (i == 0) assert(cast(char[]) line == "Line one\n"); else if (i == 1) assert(cast(char[]) line == "line two\n"); else if (i == 2) assert(cast(char[]) line == "line three"); else assert(false); ++i; } f.close(); } } /** Iterates through a file a chunk at a time by using $(D foreach). Example: --------- void main() { foreach (ubyte[] buffer; chunks(stdin, 4096)) { ... use buffer ... } } --------- The content of $(D buffer) is reused across calls. In the example above, $(D buffer.length) is 4096 for all iterations, except for the last one, in which case $(D buffer.length) may be less than 4096 (but always greater than zero). In case of an I/O error, an $(D StdioException) is thrown. */ auto chunks(File f, size_t size) { return ChunksImpl(f, size); } private struct ChunksImpl { private File f; private size_t size; // private string fileName; // Currently, no use this(File f, size_t size) in { assert(size, "size must be larger than 0"); } body { this.f = f; this.size = size; } int opApply(D)(scope D dg) { import core.stdc.stdlib : alloca; enum maxStackSize = 1024 * 16; ubyte[] buffer = void; if (size < maxStackSize) buffer = (cast(ubyte*) alloca(size))[0 .. size]; else buffer = new ubyte[size]; size_t r = void; int result = 1; uint tally = 0; while ((r = fread(buffer.ptr, buffer[0].sizeof, size, f._p.handle)) > 0) { assert(r <= size); if (r != size) { // error occured if (!f.eof) throw new StdioException(null); buffer.length = r; } static if (is(typeof(dg(tally, buffer)))) { if ((result = dg(tally, buffer)) != 0) break; } else { if ((result = dg(buffer)) != 0) break; } ++tally; } return result; } } @system unittest { static import std.file; scope(failure) printf("Failed test at line %d\n", __LINE__); auto deleteme = testFilename(); scope(exit) { std.file.remove(deleteme); } // test looping with an empty file std.file.write(deleteme, ""); auto f = File(deleteme, "r"); foreach (ubyte[] line; chunks(f, 4)) { assert(false); } f.close(); // test looping with a file with three lines std.file.write(deleteme, "Line one\nline two\nline three\n"); f = File(deleteme, "r"); uint i = 0; foreach (ubyte[] line; chunks(f, 3)) { if (i == 0) assert(cast(char[]) line == "Lin"); else if (i == 1) assert(cast(char[]) line == "e o"); else if (i == 2) assert(cast(char[]) line == "ne\n"); else break; ++i; } f.close(); } /** Writes an array or range to a file. Shorthand for $(D data.copy(File(fileName, "wb").lockingBinaryWriter)). Similar to $(REF write, std,file), strings are written as-is, rather than encoded according to the $(D File)'s $(HTTP en.cppreference.com/w/c/io#Narrow_and_wide_orientation, orientation). */ void toFile(T)(T data, string fileName) if (is(typeof(copy(data, stdout.lockingBinaryWriter)))) { copy(data, File(fileName, "wb").lockingBinaryWriter); } @system unittest { static import std.file; auto deleteme = testFilename(); scope(exit) { std.file.remove(deleteme); } "Test".toFile(deleteme); assert(std.file.readText(deleteme) == "Test"); } /********************* * Thrown if I/O errors happen. */ class StdioException : Exception { static import core.stdc.errno; /// Operating system error code. uint errno; /** Initialize with a message and an error code. */ this(string message, uint e = core.stdc.errno.errno) { import std.conv : to; errno = e; version (Posix) { import core.stdc.string : strerror_r; char[256] buf = void; version (CRuntime_Glibc) { auto s = strerror_r(errno, buf.ptr, buf.length); } else { strerror_r(errno, buf.ptr, buf.length); auto s = buf.ptr; } } else { import core.stdc.string : strerror; auto s = strerror(errno); } auto sysmsg = to!string(s); // If e is 0, we don't use the system error message. (The message // is "Success", which is rather pointless for an exception.) super(e == 0 ? message : (message.ptr ? message ~ " (" ~ sysmsg ~ ")" : sysmsg)); } /** Convenience functions that throw an $(D StdioException). */ static void opCall(string msg) { throw new StdioException(msg); } /// ditto static void opCall() { throw new StdioException(null, core.stdc.errno.errno); } } extern(C) void std_stdio_static_this() { static import core.stdc.stdio; //Bind stdin, stdout, stderr __gshared File.Impl stdinImpl; stdinImpl.handle = core.stdc.stdio.stdin; .stdin._p = &stdinImpl; // stdout __gshared File.Impl stdoutImpl; stdoutImpl.handle = core.stdc.stdio.stdout; .stdout._p = &stdoutImpl; // stderr __gshared File.Impl stderrImpl; stderrImpl.handle = core.stdc.stdio.stderr; .stderr._p = &stderrImpl; } //--------- __gshared { /** The standard input stream. Bugs: Due to $(WEB https://issues.dlang.org/show_bug.cgi?id=15768, bug 15768), it is thread un-safe to reassign `stdin` to a different `File` instance than the default. */ File stdin; /// @safe unittest { // Read stdin, sort lines, write to stdout import std.stdio, std.array, std.algorithm : sort, copy; void main() { stdin // read from stdin .byLineCopy(KeepTerminator.yes) // copying each line .array() // convert to array of lines .sort() // sort the lines .copy( // copy output of .sort to an OutputRange stdout.lockingTextWriter()); // the OutputRange } } /** The standard output stream. Bugs: Due to $(WEB https://issues.dlang.org/show_bug.cgi?id=15768, bug 15768), it is thread un-safe to reassign `stdout` to a different `File` instance than the default. */ File stdout; /** The standard error stream. Bugs: Due to $(WEB https://issues.dlang.org/show_bug.cgi?id=15768, bug 15768), it is thread un-safe to reassign `stderr` to a different `File` instance than the default. */ File stderr; } @system unittest { static import std.file; import std.typecons : tuple; scope(failure) printf("Failed test at line %d\n", __LINE__); auto deleteme = testFilename(); std.file.write(deleteme, "1 2\n4 1\n5 100"); scope(exit) std.file.remove(deleteme); { File f = File(deleteme); scope(exit) f.close(); auto t = [ tuple(1, 2), tuple(4, 1), tuple(5, 100) ]; uint i; foreach (e; f.byRecord!(int, int)("%s %s")) { //writeln(e); assert(e == t[i++]); } assert(i == 3); } } // roll our own appender, but with "safe" arrays private struct ReadlnAppender { char[] buf; size_t pos; bool safeAppend = false; void initialize(char[] b) { buf = b; pos = 0; } @property char[] data() { if (safeAppend) assumeSafeAppend(buf.ptr[0..pos]); return buf.ptr[0..pos]; } bool reserveWithoutAllocating(size_t n) { if (buf.length >= pos + n) // buf is already large enough return true; immutable curCap = buf.capacity; if (curCap >= pos + n) { buf.length = curCap; /* Any extra capacity we end up not using can safely be claimed by someone else. */ safeAppend = true; return true; } return false; } void reserve(size_t n) { import core.stdc.string : memcpy; if (!reserveWithoutAllocating(n)) { size_t ncap = buf.length * 2 + 128 + n; char[] nbuf = new char[ncap]; memcpy(nbuf.ptr, buf.ptr, pos); buf = nbuf; // Allocated a new buffer. No one else knows about it. safeAppend = true; } } void putchar(char c) { reserve(1); buf.ptr[pos++] = c; } void putdchar(dchar dc) { import std.utf : toUTF8; char[4] ubuf; char[] u = toUTF8(ubuf, dc); reserve(u.length); foreach (c; u) buf.ptr[pos++] = c; } void putonly(char[] b) { import core.stdc.string : memcpy; assert(pos == 0); // assume this is the only put call if (reserveWithoutAllocating(b.length)) memcpy(buf.ptr + pos, b.ptr, b.length); else buf = b.dup; pos = b.length; } } // Private implementation of readln version (DIGITAL_MARS_STDIO) private size_t readlnImpl(FILE* fps, ref char[] buf, dchar terminator, File.Orientation /*ignored*/) { FLOCK(fps); scope(exit) FUNLOCK(fps); /* Since fps is now locked, we can create an "unshared" version * of fp. */ auto fp = cast(_iobuf*)fps; ReadlnAppender app; app.initialize(buf); if (__fhnd_info[fp._file] & FHND_WCHAR) { /* Stream is in wide characters. * Read them and convert to chars. */ static assert(wchar_t.sizeof == 2); for (int c = void; (c = FGETWC(fp)) != -1; ) { if ((c & ~0x7F) == 0) { app.putchar(cast(char) c); if (c == terminator) break; } else { if (c >= 0xD800 && c <= 0xDBFF) { int c2 = void; if ((c2 = FGETWC(fp)) != -1 || c2 < 0xDC00 && c2 > 0xDFFF) { StdioException("unpaired UTF-16 surrogate"); } c = ((c - 0xD7C0) << 10) + (c2 - 0xDC00); } app.putdchar(cast(dchar)c); } } if (ferror(fps)) StdioException(); } else if (fp._flag & _IONBF) { /* Use this for unbuffered I/O, when running * across buffer boundaries, or for any but the common * cases. */ L1: int c; while ((c = FGETC(fp)) != -1) { app.putchar(cast(char) c); if (c == terminator) { buf = app.data; return buf.length; } } if (ferror(fps)) StdioException(); } else { int u = fp._cnt; char* p = fp._ptr; int i; if (fp._flag & _IOTRAN) { /* Translated mode ignores \r and treats ^Z as end-of-file */ char c; while (1) { if (i == u) // if end of buffer goto L1; // give up c = p[i]; i++; if (c != '\r') { if (c == terminator) break; if (c != 0x1A) continue; goto L1; } else { if (i != u && p[i] == terminator) break; goto L1; } } app.putonly(p[0..i]); app.buf.ptr[i - 1] = cast(char)terminator; if (terminator == '\n' && c == '\r') i++; } else { while (1) { if (i == u) // if end of buffer goto L1; // give up auto c = p[i]; i++; if (c == terminator) break; } app.putonly(p[0..i]); } fp._cnt -= i; fp._ptr += i; } buf = app.data; return buf.length; } version (MICROSOFT_STDIO) private size_t readlnImpl(FILE* fps, ref char[] buf, dchar terminator, File.Orientation /*ignored*/) { FLOCK(fps); scope(exit) FUNLOCK(fps); /* Since fps is now locked, we can create an "unshared" version * of fp. */ auto fp = cast(_iobuf*)fps; ReadlnAppender app; app.initialize(buf); int c; while ((c = FGETC(fp)) != -1) { app.putchar(cast(char) c); if (c == terminator) { buf = app.data; return buf.length; } } if (ferror(fps)) StdioException(); buf = app.data; return buf.length; } version (HAS_GETDELIM) private size_t readlnImpl(FILE* fps, ref char[] buf, dchar terminator, File.Orientation orientation) { import core.stdc.stdlib : free; import core.stdc.wchar_ : fwide; if (orientation == File.Orientation.wide) { /* Stream is in wide characters. * Read them and convert to chars. */ FLOCK(fps); scope(exit) FUNLOCK(fps); auto fp = cast(_iobuf*)fps; version (Windows) { buf.length = 0; for (int c = void; (c = FGETWC(fp)) != -1; ) { if ((c & ~0x7F) == 0) { buf ~= c; if (c == terminator) break; } else { if (c >= 0xD800 && c <= 0xDBFF) { int c2 = void; if ((c2 = FGETWC(fp)) != -1 || c2 < 0xDC00 && c2 > 0xDFFF) { StdioException("unpaired UTF-16 surrogate"); } c = ((c - 0xD7C0) << 10) + (c2 - 0xDC00); } import std.utf : encode; encode(buf, c); } } if (ferror(fp)) StdioException(); return buf.length; } else version (Posix) { buf.length = 0; for (int c; (c = FGETWC(fp)) != -1; ) { import std.utf : encode; if ((c & ~0x7F) == 0) buf ~= cast(char)c; else encode(buf, cast(dchar)c); if (c == terminator) break; } if (ferror(fps)) StdioException(); return buf.length; } else { static assert(0); } } static char *lineptr = null; static size_t n = 0; scope(exit) { if (n > 128 * 1024) { // Bound memory used by readln free(lineptr); lineptr = null; n = 0; } } auto s = getdelim(&lineptr, &n, terminator, fps); if (s < 0) { if (ferror(fps)) StdioException(); buf.length = 0; // end of file return 0; } if (s <= buf.length) { buf = buf.ptr[0 .. s]; buf[] = lineptr[0 .. s]; } else { buf = lineptr[0 .. s].dup; } return s; } version (NO_GETDELIM) private size_t readlnImpl(FILE* fps, ref char[] buf, dchar terminator, File.Orientation orientation) { import core.stdc.wchar_ : fwide; FLOCK(fps); scope(exit) FUNLOCK(fps); auto fp = cast(_iobuf*)fps; if (orientation == File.Orientation.wide) { /* Stream is in wide characters. * Read them and convert to chars. */ version (Windows) { buf.length = 0; for (int c; (c = FGETWC(fp)) != -1; ) { if ((c & ~0x7F) == 0) { buf ~= c; if (c == terminator) break; } else { if (c >= 0xD800 && c <= 0xDBFF) { int c2 = void; if ((c2 = FGETWC(fp)) != -1 || c2 < 0xDC00 && c2 > 0xDFFF) { StdioException("unpaired UTF-16 surrogate"); } c = ((c - 0xD7C0) << 10) + (c2 - 0xDC00); } import std.utf : encode; encode(buf, c); } } if (ferror(fp)) StdioException(); return buf.length; } else version (Posix) { import std.utf : encode; buf.length = 0; for (int c; (c = FGETWC(fp)) != -1; ) { if ((c & ~0x7F) == 0) buf ~= cast(char)c; else encode(buf, cast(dchar)c); if (c == terminator) break; } if (ferror(fps)) StdioException(); return buf.length; } else { static assert(0); } } // Narrow stream // First, fill the existing buffer for (size_t bufPos = 0; bufPos < buf.length; ) { immutable c = FGETC(fp); if (c == -1) { buf.length = bufPos; goto endGame; } buf.ptr[bufPos++] = cast(char) c; if (c == terminator) { // No need to test for errors in file buf.length = bufPos; return bufPos; } } // Then, append to it for (int c; (c = FGETC(fp)) != -1; ) { buf ~= cast(char)c; if (c == terminator) { // No need to test for errors in file return buf.length; } } endGame: if (ferror(fps)) StdioException(); return buf.length; } @system unittest { static import std.file; auto deleteme = testFilename(); scope(exit) std.file.remove(deleteme); std.file.write(deleteme, "abcd\n0123456789abcde\n1234\n"); File f = File(deleteme, "rb"); char[] ln = new char[2]; char* lnptr = ln.ptr; f.readln(ln); assert(ln == "abcd\n"); char[] t = ln[0..2]; t ~= 't'; assert(t == "abt"); assert(ln == "abcd\n"); // bug 13856: ln stomped to "abtd" // it can also stomp the array length ln = new char[4]; lnptr = ln.ptr; f.readln(ln); assert(ln == "0123456789abcde\n"); char[100] buf; ln = buf[]; f.readln(ln); assert(ln == "1234\n"); assert(ln.ptr == buf.ptr); // avoid allocation, buffer is good enough } /** Experimental network access via the File interface Opens a TCP connection to the given host and port, then returns a File struct with read and write access through the same interface as any other file (meaning writef and the byLine ranges work!). Authors: Adam D. Ruppe Bugs: Only works on Linux */ version(linux) { File openNetwork(string host, ushort port) { static import sock = core.sys.posix.sys.socket; static import core.sys.posix.unistd; import core.stdc.string : memcpy; import core.sys.posix.arpa.inet : htons; import core.sys.posix.netdb : gethostbyname; import core.sys.posix.netinet.in_ : sockaddr_in; import std.conv : to; import std.exception : enforce; import std.internal.cstring : tempCString; auto h = enforce( gethostbyname(host.tempCString()), new StdioException("gethostbyname")); int s = sock.socket(sock.AF_INET, sock.SOCK_STREAM, 0); enforce(s != -1, new StdioException("socket")); scope(failure) { // want to make sure it doesn't dangle if something throws. Upon // normal exit, the File struct's reference counting takes care of // closing, so we don't need to worry about success core.sys.posix.unistd.close(s); } sockaddr_in addr; addr.sin_family = sock.AF_INET; addr.sin_port = htons(port); memcpy(&addr.sin_addr.s_addr, h.h_addr, h.h_length); enforce(sock.connect(s, cast(sock.sockaddr*) &addr, addr.sizeof) != -1, new StdioException("Connect failed")); File f; f.fdopen(s, "w+", host ~ ":" ~ to!string(port)); return f; } } version(unittest) string testFilename(string file = __FILE__, size_t line = __LINE__) @safe { import std.conv : text; import std.file : deleteme; import std.path : baseName; // filename intentionally contains non-ASCII (Russian) characters for test Issue 7648 return text(deleteme, "-детка.", baseName(file), ".", line); }
D
/Users/apple/Desktop/save/HW9.01/build/HW9.01.build/Debug-iphonesimulator/HW9.01.build/Objects-normal/x86_64/CommHouseDetail.o : /Users/apple/Desktop/save/HW9.01/HW9.01/LegiTableViewController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiHouseTableViewController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillNewCellTableViewCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiSenateTableViewCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommJointCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavLegiController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillActiveController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommSenateCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillActiveDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavLegiDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommSenateDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavBillController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavCommDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiSenateDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommJointController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommSenateController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillNewControllerTableViewController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavLegiCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavBillDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavCommCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/AboutController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/SwiftSpinner.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavCommController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiStateDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommHouseCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillActiveCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillNewDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommHouseController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommHouseDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/AppDelegate.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommJointDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiSenateTableViewController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/Menu.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiStateTableViewCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiHouseDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiHouseTableViewCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavBillCell.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/apple/Desktop/save/HW9.01/HW9.01/HW9.01-Bridging-Header.h /Users/apple/Desktop/save/HW9.01/HW9.01/SWRevealViewController.h /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/Foundation.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/Dispatch.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/CoreGraphics.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/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Modules/AlamofireImage.swiftmodule/x86_64.swiftmodule /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Headers/AlamofireImage-Swift.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Headers/AlamofireImage-umbrella.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Modules/module.modulemap /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/SwiftyJSON.swiftmodule/x86_64.swiftmodule /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-Swift.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-umbrella.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule /Users/apple/Desktop/save/HW9.01/build/HW9.01.build/Debug-iphonesimulator/HW9.01.build/Objects-normal/x86_64/CommHouseDetail~partial.swiftmodule : /Users/apple/Desktop/save/HW9.01/HW9.01/LegiTableViewController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiHouseTableViewController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillNewCellTableViewCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiSenateTableViewCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommJointCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavLegiController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillActiveController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommSenateCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillActiveDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavLegiDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommSenateDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavBillController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavCommDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiSenateDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommJointController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommSenateController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillNewControllerTableViewController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavLegiCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavBillDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavCommCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/AboutController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/SwiftSpinner.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavCommController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiStateDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommHouseCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillActiveCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillNewDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommHouseController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommHouseDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/AppDelegate.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommJointDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiSenateTableViewController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/Menu.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiStateTableViewCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiHouseDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiHouseTableViewCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavBillCell.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/apple/Desktop/save/HW9.01/HW9.01/HW9.01-Bridging-Header.h /Users/apple/Desktop/save/HW9.01/HW9.01/SWRevealViewController.h /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/Foundation.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/Dispatch.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/CoreGraphics.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/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Modules/AlamofireImage.swiftmodule/x86_64.swiftmodule /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Headers/AlamofireImage-Swift.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Headers/AlamofireImage-umbrella.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Modules/module.modulemap /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/SwiftyJSON.swiftmodule/x86_64.swiftmodule /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-Swift.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-umbrella.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule /Users/apple/Desktop/save/HW9.01/build/HW9.01.build/Debug-iphonesimulator/HW9.01.build/Objects-normal/x86_64/CommHouseDetail~partial.swiftdoc : /Users/apple/Desktop/save/HW9.01/HW9.01/LegiTableViewController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiHouseTableViewController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillNewCellTableViewCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiSenateTableViewCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommJointCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavLegiController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillActiveController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommSenateCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillActiveDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavLegiDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommSenateDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavBillController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavCommDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiSenateDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommJointController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommSenateController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillNewControllerTableViewController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavLegiCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavBillDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavCommCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/AboutController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/SwiftSpinner.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavCommController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiStateDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommHouseCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillActiveCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/BillNewDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommHouseController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommHouseDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/AppDelegate.swift /Users/apple/Desktop/save/HW9.01/HW9.01/CommJointDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiSenateTableViewController.swift /Users/apple/Desktop/save/HW9.01/HW9.01/Menu.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiStateTableViewCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiHouseDetail.swift /Users/apple/Desktop/save/HW9.01/HW9.01/LegiHouseTableViewCell.swift /Users/apple/Desktop/save/HW9.01/HW9.01/FavBillCell.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/apple/Desktop/save/HW9.01/HW9.01/HW9.01-Bridging-Header.h /Users/apple/Desktop/save/HW9.01/HW9.01/SWRevealViewController.h /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/Foundation.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/Dispatch.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/CoreGraphics.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/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Modules/AlamofireImage.swiftmodule/x86_64.swiftmodule /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Headers/AlamofireImage-Swift.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Headers/AlamofireImage-umbrella.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Modules/module.modulemap /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/SwiftyJSON.swiftmodule/x86_64.swiftmodule /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-Swift.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-umbrella.h /Users/apple/Desktop/save/HW9.01/build/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule
D
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM WT ROCKTYPE 219.300003 -4.19999981 9.39999962 22.3999996 56 65 -10 121 7800 4.9000001 9.60000038 0.46641557 extrusives, basalts, andesites 321.100006 59.7999992 1.29999995 137.5 65 90 -43.5 146.800003 1350 2.4000001 2.5 0.518125744 sediments, limestones -65.400002 61.2999992 1.39999998 297 50 70 -31.6000004 145.600006 9339 2.20000005 2.20000005 0.547826958 sediments, saprolite 221.899994 42 8.80000019 0 63 75 -9.69999981 119.5 1211 5.30000019 9.69999981 0.504285497 intrusives, granodiorite, andesite dykes 264.399994 75 15.6000004 0 2 65 -8.80000019 126.699997 1206 10.3999996 18 0.29907762 extrusives, intrusives 346 61 9 41.2000008 35 100 -31.3999996 138.600006 1170 13 15 0.433019721 sediments 333 45 9 16.5 35 100 -30.3999996 139.399994 1161 17 18 0.433019721 sediments, tillite 317 57 5 200 35 100 -30.5 139.300003 1165 9 10 0.48836435 sediments, redbeds 329 58 25 4.0999999 35 100 -30.2000008 139 1166 41.5999985 45.5999985 0.14006072 sediments, sandstone, tillite 223 26 13 14.8000002 35 100 -30.2999992 139.5 1157 26 26 0.358838394 extrusives 320 63 9 15.5 34 65 -38 145.5 1854 16 16 0.433764138 extrusives 302.700012 66.8000031 6.80000019 35 34 65 -38 145.5 1819 10.8000002 12.1000004 0.46730279 extrusives 274 66 27.6000004 8.60000038 25 65 -41.2999992 145.899994 1873 39.7999992 46.9000015 0.104501791 intrusives, granite 321 64 6 27.5 25 65 -35.5999985 137.5 1874 10 11 0.474058173 sediments 269 40 30.996521 0 50 300 -32.5999985 151.5 1868 0 0 0.0631177871 extrusives, andesites 294 75 11 7 25 65 -41.0999985 146.100006 1871 16.2999992 18.8999996 0.394614083 sediments, sandstone 315 66 10.5 18 25 65 -41 145.5 1872 18.2000008 19.6000004 0.403852269 extrusives, sediments 298 58.7999992 2.4000001 0 35 65 -27 141.5 1972 3.79999995 3.79999995 0.510307452 sediments, weathered 297.200012 59.2000008 6 0 50 70 -30.5 151.5 1964 9.10000038 9.89999962 0.511558173 sediments, weathered 102 19.8999996 21.7000008 18.7999992 65 245 -32 116 1944 28.1000004 28.1000004 0.17837376 intrusives 271 63 2.9000001 352 50 80 -34 151 1595 3.5 4.5 0.524075665 intrusives 324 51 3.29999995 960 65 100 -34 151 1591 6.0999999 6.4000001 0.502330951 intrusives 272 66 4.80000019 191 60 100 -33.7000008 151.100006 1592 5.80000019 7.4000001 0.500044315 intrusives
D
import std.algorithm; import std.stdio; import std.typecons; struct Edge { int u; int v; int w; } class Result { int answer; Edge [] edges; } auto solve (int n, int k) { auto res = new Result (); with (res) { int total = 0; int cur = k - 1; foreach (step; 0..n - 1) { int u = step + 1; int v = step + 2; int w = cur; if (w == 1) { v = n; } if (w < 1) { break; } total += w; edges ~= Edge (u, v, w); cur -= 1; } if (edges.length != 1) { edges ~= Edge (1, n, k); answer = total - k; } if (edges.length < 2) { answer = 0; } } return res; } void main () { int tests; readf (" %s", &tests); foreach (test; 0..tests) { int n, k; readf (" %s %s", &n, &k); auto res = solve (n, k); writefln ("Case #%d: %s", test + 1, res.answer); writeln (res.edges.length); foreach (edge; res.edges) { writeln (edge.u, " ", edge.v, " ", edge.w); } } }
D
//T compiles:yes //T lexer:yes //T parser:yes //T semantic:yes //T retval:0 //T Test range foreach. int main() { int i = 0; foreach(j; 1 .. 5) { i += j; } assert(i == 10); string str = "foobar"; string str2 = "raboof"; foreach(size_t j; 0 .. str.length) { assert(str[j] == str2[(str2.length - j) - 1]); } i = 0; foreach(char* it; str.ptr .. str.ptr + str.length) { assert(*it == str[i]); i++; } i = 0; foreach(ref j; 1 .. 10) { i += j; if(j == 5) j = 8; } assert(i == 24); // Break. i = 0; foreach(j; 0 .. 10) { if (j == 5) break; i++; } assert(i == 5); // Continue. i = 0; foreach(j; 0 .. 10) { if(j < 5) continue; i++; } assert(i == 5); return 0; }
D
/Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/SQL.build/SQLError.swift.o : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLBind.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLJoinMethod.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLTable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLCreateTable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDropTable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLAlterTable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLSerializable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDataType.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLUpdate.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDelete.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLLiteral.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLBoolLiteral.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDefaultLiteral.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLTableConstraintAlgorithm.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLColumnConstraintAlgorithm.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLJoin.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLExpression.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLSelectExpression.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLCollation.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLForeignKeyAction.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLConnection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDirection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLFunction.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLColumnDefinition.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLCreateTableBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDropTableBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLAlterTableBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLPredicateBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLUpdateBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDeleteBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLColumnBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLPredicateGroupBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLSelectBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLInsertBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLRawBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLCreateIndexBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLQueryBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLQueryEncoder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLQueryFetcher.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLIndexModifier.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLIdentifier.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLTableIdentifier.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLColumnIdentifier.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLBinaryOperator.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/Exports.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLSelect.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDistinct.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLFunctionArgument.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLTableConstraint.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLColumnConstraint.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLInsert.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLCreateIndex.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDropIndex.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLGroupBy.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLOrderBy.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLForeignKey.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLPrimaryKey.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLQuery.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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/godemodegame/Desktop/ATMApp/.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/godemodegame/Desktop/ATMApp/.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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/godemodegame/Desktop/ATMApp/.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/godemodegame/Desktop/ATMApp/.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/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/ifaddrs-android.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/CNIODarwin.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/CNIOLinux.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/SQL.build/SQLError~partial.swiftmodule : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLBind.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLJoinMethod.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLTable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLCreateTable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDropTable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLAlterTable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLSerializable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDataType.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLUpdate.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDelete.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLLiteral.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLBoolLiteral.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDefaultLiteral.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLTableConstraintAlgorithm.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLColumnConstraintAlgorithm.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLJoin.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLExpression.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLSelectExpression.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLCollation.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLForeignKeyAction.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLConnection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDirection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLFunction.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLColumnDefinition.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLCreateTableBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDropTableBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLAlterTableBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLPredicateBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLUpdateBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDeleteBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLColumnBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLPredicateGroupBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLSelectBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLInsertBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLRawBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLCreateIndexBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLQueryBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLQueryEncoder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLQueryFetcher.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLIndexModifier.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLIdentifier.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLTableIdentifier.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLColumnIdentifier.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLBinaryOperator.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/Exports.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLSelect.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDistinct.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLFunctionArgument.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLTableConstraint.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLColumnConstraint.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLInsert.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLCreateIndex.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDropIndex.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLGroupBy.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLOrderBy.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLForeignKey.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLPrimaryKey.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLQuery.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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/godemodegame/Desktop/ATMApp/.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/godemodegame/Desktop/ATMApp/.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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/godemodegame/Desktop/ATMApp/.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/godemodegame/Desktop/ATMApp/.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/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/ifaddrs-android.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/CNIODarwin.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/CNIOLinux.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/SQL.build/SQLError~partial.swiftdoc : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLBind.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLJoinMethod.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLTable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLCreateTable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDropTable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLAlterTable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLSerializable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDataType.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLUpdate.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDelete.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLLiteral.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLBoolLiteral.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDefaultLiteral.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLTableConstraintAlgorithm.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLColumnConstraintAlgorithm.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLJoin.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLExpression.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLSelectExpression.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLCollation.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLForeignKeyAction.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLConnection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDirection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLFunction.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLColumnDefinition.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLCreateTableBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDropTableBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLAlterTableBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLPredicateBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLUpdateBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDeleteBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLColumnBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLPredicateGroupBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLSelectBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLInsertBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLRawBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLCreateIndexBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLQueryBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLQueryEncoder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLQueryFetcher.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLIndexModifier.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLIdentifier.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLTableIdentifier.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLColumnIdentifier.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLBinaryOperator.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/Exports.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLSelect.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDistinct.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLFunctionArgument.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLTableConstraint.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLColumnConstraint.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLInsert.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLCreateIndex.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLDropIndex.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLGroupBy.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLOrderBy.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLForeignKey.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLPrimaryKey.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/sql.git-2678105727451989607/Sources/SQL/SQLQuery.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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/godemodegame/Desktop/ATMApp/.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/godemodegame/Desktop/ATMApp/.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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/godemodegame/Desktop/ATMApp/.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/godemodegame/Desktop/ATMApp/.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/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/ifaddrs-android.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/CNIODarwin.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/CNIOLinux.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.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
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM WT ROCKTYPE 273 54 4 0 46 48 -33.5 151.300003 1769 6 6 0.982534559 intrusives, basalt 292.5 65.5 1.60000002 262.700012 34 39 -38.7999992 143.399994 7097 2.5 2.5 0.897163631 sediments, red-brown clays 264.399994 75 15.6000004 0 2 65 -8.80000019 126.699997 1206 10.3999996 18 0.402252223 extrusives, intrusives 346 61 9 41.2000008 35 100 -31.3999996 138.600006 1170 13 15 0.525327413 sediments 333 45 9 16.5 35 100 -30.3999996 139.399994 1161 17 18 0.525327413 sediments, tillite 317 57 5 200 35 100 -30.5 139.300003 1165 9 10 0.580672042 sediments, redbeds 329 58 25 4.0999999 35 100 -30.2000008 139 1166 41.5999985 45.5999985 0.232368412 sediments, sandstone, tillite 223 26 13 14.8000002 35 100 -30.2999992 139.5 1157 26 26 0.451146086 extrusives 320 63 9 15.5 34 65 -38 145.5 1854 16 16 0.643441557 extrusives 314 70 6 132 48 50 -33.2999992 151.199997 1844 9 10 0.711558173 intrusives, basalt 317 63 14 16 23 56 -32.5 151 1840 20 20 0.5355738 extrusives, basalts 302.700012 66.8000031 6.80000019 35 34 65 -38 145.5 1819 10.8000002 12.1000004 0.676980209 extrusives 305 73 17 29 23 56 -42 147 1821 25 29 0.475182194 extrusives, basalts 275.5 71.0999985 3.5 45.5 33 36 -31.7000008 150.199997 1891 4.80000019 4.80000019 0.653239148 extrusives 274 66 27.6000004 8.60000038 25 65 -41.2999992 145.899994 1873 39.7999992 46.9000015 0.267001791 intrusives, granite 321 64 6 27.5 25 65 -35.5999985 137.5 1874 10 11 0.636558173 sediments 294 75 11 7 25 65 -41.0999985 146.100006 1871 16.2999992 18.8999996 0.557114083 sediments, sandstone 315 66 10.5 18 25 65 -41 145.5 1872 18.2000008 19.6000004 0.566352269 extrusives, sediments 298 58.7999992 2.4000001 0 35 65 -27 141.5 1972 3.79999995 3.79999995 0.726974119 sediments, weathered 314 66 5.5999999 161 48 50 -33.2999992 151.199997 1969 8.5 9.80000019 0.716341973 intrusives, basalt 310.899994 68.5 5.19999981 0 40 60 -35 150 1927 5.19999981 5.19999981 0.695840415 extrusives, basalts 278 66 2.0999999 333 48 50 -33.2999992 151.199997 1596 2.5999999 3.29999995 0.745123932 intrusives, basalt
D
/Users/hannh/Documents/MyGitHub/ChartsTest2/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChartDataRendererBase.o : /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/Legend.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/MarkerImage.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/Range.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/AxisBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/ComponentBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/Fill.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/Platform.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/Description.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/IMarker.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/Transformer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Renderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Animation/Animator.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Filters/DataApproximator.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/XAxis.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/YAxis.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/ChartUtils.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/Highlight.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/MarkerView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/PieChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/LineChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/BarChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/RadarChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/LegendEntry.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /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/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.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/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/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/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Supporting\ Files/Charts.h /Users/hannh/Documents/MyGitHub/ChartsTest2/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Users/hannh/Documents/MyGitHub/ChartsTest2/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChartDataRendererBase~partial.swiftmodule : /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/Legend.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/MarkerImage.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/Range.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/AxisBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/ComponentBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/Fill.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/Platform.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/Description.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/IMarker.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/Transformer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Renderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Animation/Animator.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Filters/DataApproximator.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/XAxis.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/YAxis.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/ChartUtils.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/Highlight.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/MarkerView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/PieChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/LineChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/BarChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/RadarChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/LegendEntry.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /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/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.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/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/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/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Supporting\ Files/Charts.h /Users/hannh/Documents/MyGitHub/ChartsTest2/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Users/hannh/Documents/MyGitHub/ChartsTest2/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChartDataRendererBase~partial.swiftdoc : /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/Legend.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/MarkerImage.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/Range.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/AxisBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/ComponentBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/Fill.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/Platform.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/Description.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/IMarker.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/Transformer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Renderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Animation/Animator.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Filters/DataApproximator.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/XAxis.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/YAxis.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/ChartUtils.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Highlight/Highlight.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/MarkerView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/PieChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/LineChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/BarChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/RadarChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Components/LegendEntry.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /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/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.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/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/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/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Supporting\ Files/Charts.h /Users/hannh/Documents/MyGitHub/ChartsTest2/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap
D
/Users/bgaliev/Projects/PhotoViewer/PhotoViewer/XcodeBuild/Intermediates.noindex/PhotoViewer.build/Debug-iphonesimulator/PhotoViewer.build/Objects-normal/x86_64/Cancelable.o : /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Common/Entities/Page.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/Cancelable.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Wireframe/FeedWireframe.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/AppDelegate.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/FlickrAPI/PhotoFeed/PhotosSearch.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/Localization/LocalizationMock.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/View/PostCell.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/NetworkLayer/RemoteDataManager.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/FlickrAPI/FeedRemoteDataManager.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/View/FeedViewController.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Presenter/FeedPresenter.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/RemoteImageSetter.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/NetworkLayer/NetworkRouter.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Interactor/FeedInteractor.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Protocols/Protocols.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Common/Entities/Result.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Common/Extensions/UIViewController+ShowAlert.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Entities/Post.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/RemoteImageView.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/FlickrAPI/FlickrDataManagerFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.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/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/XcodeBuild/Intermediates.noindex/PhotoViewer.build/Debug-iphonesimulator/PhotoViewer.build/Objects-normal/x86_64/Cancelable~partial.swiftmodule : /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Common/Entities/Page.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/Cancelable.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Wireframe/FeedWireframe.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/AppDelegate.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/FlickrAPI/PhotoFeed/PhotosSearch.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/Localization/LocalizationMock.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/View/PostCell.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/NetworkLayer/RemoteDataManager.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/FlickrAPI/FeedRemoteDataManager.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/View/FeedViewController.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Presenter/FeedPresenter.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/RemoteImageSetter.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/NetworkLayer/NetworkRouter.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Interactor/FeedInteractor.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Protocols/Protocols.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Common/Entities/Result.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Common/Extensions/UIViewController+ShowAlert.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Entities/Post.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/RemoteImageView.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/FlickrAPI/FlickrDataManagerFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.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/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/XcodeBuild/Intermediates.noindex/PhotoViewer.build/Debug-iphonesimulator/PhotoViewer.build/Objects-normal/x86_64/Cancelable~partial.swiftdoc : /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Common/Entities/Page.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/Cancelable.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Wireframe/FeedWireframe.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/AppDelegate.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/FlickrAPI/PhotoFeed/PhotosSearch.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/Localization/LocalizationMock.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/View/PostCell.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/NetworkLayer/RemoteDataManager.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/FlickrAPI/FeedRemoteDataManager.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/View/FeedViewController.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Presenter/FeedPresenter.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/RemoteImageSetter.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/NetworkLayer/NetworkRouter.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Interactor/FeedInteractor.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Protocols/Protocols.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Common/Entities/Result.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Common/Extensions/UIViewController+ShowAlert.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Entities/Post.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/RemoteImageView.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/FlickrAPI/FlickrDataManagerFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.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/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/XcodeBuild/Intermediates.noindex/PhotoViewer.build/Debug-iphonesimulator/PhotoViewer.build/Objects-normal/x86_64/Cancelable~partial.swiftsourceinfo : /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Common/Entities/Page.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/Cancelable.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Wireframe/FeedWireframe.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/AppDelegate.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/FlickrAPI/PhotoFeed/PhotosSearch.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/Localization/LocalizationMock.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/View/PostCell.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/NetworkLayer/RemoteDataManager.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/FlickrAPI/FeedRemoteDataManager.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/View/FeedViewController.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Presenter/FeedPresenter.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/RemoteImageSetter.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/NetworkLayer/NetworkRouter.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Interactor/FeedInteractor.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Protocols/Protocols.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Common/Entities/Result.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Common/Extensions/UIViewController+ShowAlert.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Modules/PhotoFeed/Entities/Post.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/RemoteImageView.swift /Users/bgaliev/Projects/PhotoViewer/PhotoViewer/PhotoViewer/Utils/DataManagers/Remote/FlickrAPI/FlickrDataManagerFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.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/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
# FIXED FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/stream_buffer.c FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/stdint.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/stdint.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/cdefs.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_types.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/machine/_types.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/machine/_stdint.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/string.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/_ti_config.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/linkage.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/include/FreeRTOS.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/stddef.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/FreeRTOSConfig.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/driverlib.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/adc14.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/ccs_base/arm/include/msp.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/ccs_base/arm/include/msp432p401r.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/ccs_base/arm/include/msp_compatibility.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/ccs_base/arm/include/msp432p401r_classic.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/ccs_base/arm/include/CMSIS/core_cm4.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/ccs_base/arm/include/CMSIS/cmsis_compiler.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/ccs_base/arm/include/CMSIS/cmsis_ccs.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/ccs_base/arm/include/system_msp432p401r.h FreeRTOS_Source/stream_buffer.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/stdbool.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/aes256.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/comp_e.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/cpu.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/crc32.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/cs.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/dma.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/eusci.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/flash.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/fpu.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/gpio.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/i2c.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/interrupt.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/mpu.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/pcm.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/pmap.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/pss.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/ref_a.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/reset.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/rom.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/rom_map.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/rtc_c.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/spi.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/sysctl.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/systick.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/timer32.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/timer_a.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/uart.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/wdt_a.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/include/projdefs.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/include/portable.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/include/deprecated_definitions.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/portable/CCS/ARM_CM4F/portmacro.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/include/mpu_wrappers.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/include/task.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/include/list.h FreeRTOS_Source/stream_buffer.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/include/stream_buffer.h C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/stream_buffer.c: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/stdint.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/stdint.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/cdefs.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_types.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/machine/_types.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/machine/_stdint.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/string.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/_ti_config.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/linkage.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/include/FreeRTOS.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/stddef.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/FreeRTOSConfig.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/driverlib.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/adc14.h: C:/ti/ccsv8/ccs_base/arm/include/msp.h: C:/ti/ccsv8/ccs_base/arm/include/msp432p401r.h: C:/ti/ccsv8/ccs_base/arm/include/msp_compatibility.h: C:/ti/ccsv8/ccs_base/arm/include/msp432p401r_classic.h: C:/ti/ccsv8/ccs_base/arm/include/CMSIS/core_cm4.h: C:/ti/ccsv8/ccs_base/arm/include/CMSIS/cmsis_compiler.h: C:/ti/ccsv8/ccs_base/arm/include/CMSIS/cmsis_ccs.h: C:/ti/ccsv8/ccs_base/arm/include/system_msp432p401r.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/stdbool.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/aes256.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/comp_e.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/cpu.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/crc32.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/cs.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/dma.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/eusci.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/flash.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/fpu.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/gpio.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/i2c.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/interrupt.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/mpu.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/pcm.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/pmap.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/pss.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/ref_a.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/reset.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/rom.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/rom_map.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/rtc_c.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/spi.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/sysctl.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/systick.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/timer32.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/timer_a.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/uart.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/wdt_a.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/include/projdefs.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/include/portable.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/include/deprecated_definitions.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/portable/CCS/ARM_CM4F/portmacro.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/include/mpu_wrappers.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/include/task.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/include/list.h: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/include/stream_buffer.h:
D
/****************************************************************************** WIP License: Copyright (c) 2011 Jarrett Billingsley 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. ******************************************************************************/ module croc.interpreter; import tango.core.Tuple; import tango.text.convert.Integer; import tango.text.convert.Utf; alias tango.text.convert.Integer.format Integer_format; alias tango.text.convert.Utf.isValid Utf_isValid; alias tango.text.convert.Utf.toString Utf_toString; import tango.stdc.string; import croc.api_debug; import croc.api_interpreter; import croc.api_stack; import croc.base_alloc; import croc.base_gc; import croc.base_metamethods; import croc.base_opcodes; import croc.base_writebarrier; import croc.types; import croc.types_array; import croc.types_class; import croc.types_function; import croc.types_instance; import croc.types_memblock; import croc.types_namespace; import croc.types_string; import croc.types_table; import croc.types_thread; import croc.utils; import croc.vm; // ================================================================================================================================================ // Package // ================================================================================================================================================ package: const FinalizeLoopLimit = 1000; // Free all objects. void freeAll(CrocVM* vm) { gcCycle(vm, GCCycleType.BeginCleanup); auto limit = 0; do { limit++; if(limit > FinalizeLoopLimit) throw new Exception("Failed to clean up - you've got an awful lot of finalizable trash or something's broken."); runFinalizers(vm.mainThread); gcCycle(vm, GCCycleType.ContinueCleanup); } while(!vm.toFinalize.isEmpty()) gcCycle(vm, GCCycleType.FinishCleanup); if(!vm.toFinalize.isEmpty()) throw new Exception("Did you stick a finalizable object in a global metatable or something? I think you did. Stop doing that."); } void runFinalizers(CrocThread* t) { auto alloc = &t.vm.alloc; auto modBuffer = &alloc.modBuffer; auto decBuffer = &alloc.decBuffer; disableGC(t.vm); // FINALIZE. Go through the finalize buffer, setting reference count to 1, running the finalizer, and setting it to finalized. At this point, the // object may have been resurrected but we can't really tell unless we make the write barrier more complicated. Or something. So we just queue // a decrement for it and put it on the modified buffer. It'll get deallocated the next time around. foreach(i; t.vm.toFinalize) { // debug Stdout.formatln("Taking {} off toFinalize", i).flush; auto size = stackSize(t); try { push(t, CrocValue(i.parent.finalizer)); push(t, CrocValue(i)); commonCall(t, t.stackIndex - 2, 0, callPrologue(t, t.stackIndex - 2, 0, 1, null)); } catch(CrocException e) { catchException(t); getStdException(t, "FinalizerError"); pushNull(t); pushFormat(t, "Error finalizing instance of class '{}'", i.parent.name.toString()); rawCall(t, -3, 1); swap(t); fielda(t, -2, "cause"); throwException(t); } i.gcflags |= GCFlags.Finalized; decBuffer.add(*alloc, cast(GCObject*)i); } enableGC(t.vm); t.vm.toFinalize.reset(); } // ============================================================================ // Function Calling CrocNamespace* getEnv(CrocThread* t, uword depth = 0) { if(t.arIndex == 0) return t.vm.globals; else if(depth == 0) return t.currentAR.func.environment; for(word idx = t.arIndex - 1; idx >= 0; idx--) { if(depth == 0) return t.actRecs[cast(uword)idx].func.environment; else if(depth <= t.actRecs[cast(uword)idx].numTailcalls) throwStdException(t, "RuntimeException", "Attempting to get environment of function whose activation record was overwritten by a tail call"); depth -= (t.actRecs[cast(uword)idx].numTailcalls + 1); } return t.vm.globals; } uword commonCall(CrocThread* t, AbsStack slot, word numReturns, bool isScript) { t.nativeCallDepth++; scope(exit) t.nativeCallDepth--; if(isScript) execute(t); uword ret; if(numReturns == -1) ret = t.stackIndex - slot; else { t.stackIndex = slot + numReturns; ret = numReturns; } maybeGC(t); return ret; } bool commonMethodCall(CrocThread* t, AbsStack slot, CrocValue* self, CrocValue* lookup, CrocString* methodName, word numReturns, uword numParams) { CrocClass* proto; auto method = lookupMethod(t, lookup, methodName, proto); // Idea is like this: // If we're calling the real method, the object is moved to the 'this' slot and the method takes its place. // If we're calling opMethod, the object is left where it is (or the custom context is moved to its place), // the method name goes where the context was, and we use callPrologue2 with a closure that's not on the stack. if(method.type != CrocValue.Type.Null) { // don't change the fucking order of these statements. self could point to slot. t.stack[slot + 1] = *self; t.stack[slot] = method; return callPrologue(t, slot, numReturns, numParams, proto); } else { auto mm = getMM(t, lookup, MM.Method, proto); if(mm is null) { typeString(t, lookup); throwStdException(t, "MethodException", "No implementation of method '{}' or {} for type '{}'", methodName.toString(), MetaNames[MM.Method], getString(t, -1)); } t.stack[slot] = *self; t.stack[slot + 1] = methodName; return callPrologue2(t, mm, slot, numReturns, slot, numParams + 1, proto); } } CrocValue lookupMethod(CrocThread* t, CrocValue* v, CrocString* name, out CrocClass* proto) { switch(v.type) { case CrocValue.Type.Class: if(auto ret = classobj.getField(v.mClass, name, proto)) return *ret; goto default; case CrocValue.Type.Instance: return getInstanceMethod(v.mInstance, name, proto); case CrocValue.Type.Table: if(auto ret = table.get(v.mTable, CrocValue(name))) return *ret; goto default; case CrocValue.Type.Namespace: if(auto ret = namespace.get(v.mNamespace, name)) return *ret; else return CrocValue.nullValue; default: return getGlobalMetamethod(t, v.type, name); } } CrocValue getInstanceMethod(CrocInstance* inst, CrocString* name, out CrocClass* proto) { CrocValue owner; if(auto ret = instance.getField(inst, name, owner)) { if(owner == CrocValue(inst)) proto = inst.parent; else { assert(owner.type == CrocValue.Type.Class); proto = owner.mClass; } return *ret; } else return CrocValue.nullValue; } CrocValue getGlobalMetamethod(CrocThread* t, CrocValue.Type type, CrocString* name) { if(auto mt = getMetatable(t, type)) { if(auto ret = namespace.get(mt, name)) return *ret; } return CrocValue.nullValue; } CrocFunction* getMM(CrocThread* t, CrocValue* obj, MM method) { CrocClass* dummy = void; return getMM(t, obj, method, dummy); } CrocFunction* getMM(CrocThread* t, CrocValue* obj, MM method, out CrocClass* proto) { auto name = t.vm.metaStrings[method]; CrocValue ret = void; if(obj.type == CrocValue.Type.Instance) ret = getInstanceMethod(obj.mInstance, name, proto); else ret = getGlobalMetamethod(t, obj.type, name); if(ret.type == CrocValue.Type.Function) return ret.mFunction; return null; } template tryMMParams(int numParams, int n = 1) { static if(n <= numParams) const char[] tryMMParams = (n > 1 ? ", " : "") ~ "CrocValue* src" ~ n.stringof ~ tryMMParams!(numParams, n + 1); else const char[] tryMMParams = ""; } template tryMMSaves(int numParams, int n = 1) { static if(n <= numParams) const char[] tryMMSaves = "\tauto srcsave" ~ n.stringof ~ " = *src" ~ n.stringof ~ ";\n" ~ tryMMSaves!(numParams, n + 1); else const char[] tryMMSaves = ""; } template tryMMPushes(int numParams, int n = 1) { static if(n <= numParams) const char[] tryMMPushes = "\tpush(t, srcsave" ~ n.stringof ~ ");\n" ~ tryMMPushes!(numParams, n + 1); else const char[] tryMMPushes = ""; } template tryMMImpl(int numParams, bool hasDest) { const char[] tryMMImpl = "bool tryMM(CrocThread* t, MM mm, " ~ (hasDest? "CrocValue* dest, " : "") ~ tryMMParams!(numParams) ~ ")\n" "{\n" " CrocClass* proto = null;" " auto method = getMM(t, src1, mm, proto);\n" "\n" " if(method is null)\n" " return false;\n" "\n" ~ (hasDest? " bool shouldLoad = void;\n" " savePtr(t, dest, shouldLoad);\n" : "") ~ "\n" ~ tryMMSaves!(numParams) ~ "\n" " auto funcSlot = push(t, CrocValue(method));\n" ~ tryMMPushes!(numParams) ~ " commonCall(t, funcSlot + t.stackBase, " ~ (hasDest ? "1" : "0") ~ ", callPrologue(t, funcSlot + t.stackBase, " ~ (hasDest ? "1" : "0") ~ ", " ~ numParams.stringof ~ ", proto));\n" ~ (hasDest? " if(shouldLoad)\n" " loadPtr(t, dest);\n" " *dest = t.stack[t.stackIndex - 1];\n" " pop(t);\n" : "") ~ " return true;\n" "}"; } template tryMM(int numParams, bool hasDest) { static assert(numParams > 0, "Need at least one param"); mixin(tryMMImpl!(numParams, hasDest)); } bool callPrologue(CrocThread* t, AbsStack slot, word numReturns, uword numParams, CrocClass* proto) { assert(numParams > 0); auto func = &t.stack[slot]; switch(func.type) { case CrocValue.Type.Function: return callPrologue2(t, func.mFunction, slot, numReturns, slot + 1, numParams, proto); case CrocValue.Type.Class: auto cls = func.mClass; if(cls.allocator) { t.stack[slot] = cls.allocator; t.stack[slot + 1] = cls; commonCall(t, slot, 1, callPrologue(t, slot, 1, numParams, null)); if(t.stack[slot].type != CrocValue.Type.Instance) { typeString(t, &t.stack[slot]); throwStdException(t, "TypeException", "class allocator expected to return an 'instance', not a '{}'", getString(t, -1)); } } else { auto inst = instance.create(t.vm, cls); // call any constructor auto ctor = classobj.getField(cls, t.vm.ctorString); if(ctor !is null) { if(ctor.type != CrocValue.Type.Function) { typeString(t, ctor); throwStdException(t, "TypeException", "class constructor expected to be a 'function', not '{}'", getString(t, -1)); } t.nativeCallDepth++; scope(exit) t.nativeCallDepth--; t.stack[slot] = ctor.mFunction; t.stack[slot + 1] = inst; // do this instead of rawCall so the proto is set correctly if(callPrologue(t, slot, 0, numParams, cls)) execute(t); } t.stack[slot] = inst; } if(numReturns == -1) t.stackIndex = slot + 1; else { if(numReturns > 1) t.stack[slot + 1 .. slot + numReturns] = CrocValue.nullValue; if(t.arIndex == 0) { t.state = CrocThread.State.Dead; t.shouldHalt = false; t.stackIndex = slot + numReturns; if(t is t.vm.mainThread) t.vm.curThread = t; } else if(t.currentAR.savedTop < slot + numReturns) t.stackIndex = slot + numReturns; else t.stackIndex = t.currentAR.savedTop; } return false; case CrocValue.Type.Thread: auto thread = func.mThread; if(thread is t) throwStdException(t, "RuntimeException", "Thread attempting to resume itself"); if(thread is t.vm.mainThread) throwStdException(t, "RuntimeException", "Attempting to resume VM's main thread"); if(thread.state != CrocThread.State.Initial && thread.state != CrocThread.State.Suspended) throwStdException(t, "StateException", "Attempting to resume a {} coroutine", CrocThread.StateStrings[thread.state]); auto ar = pushAR(t); ar.base = slot; ar.savedTop = t.stackIndex; ar.vargBase = slot; ar.returnSlot = slot; ar.func = null; ar.pc = null; ar.numReturns = numReturns; ar.proto = null; ar.numTailcalls = 0; ar.firstResult = 0; ar.numResults = 0; ar.unwindCounter = 0; ar.unwindReturn = null; t.stackIndex = slot; uword numRets = void; try { if(thread.state == CrocThread.State.Initial) { checkStack(thread, cast(AbsStack)(numParams + 1)); thread.stack[1 .. 1 + numParams] = t.stack[slot + 1 .. slot + 1 + numParams]; thread.stackIndex += numParams; } else { // Get rid of 'this' numParams--; saveResults(thread, t, slot + 2, numParams); } auto savedState = t.state; t.state = CrocThread.State.Waiting; scope(exit) { t.state = savedState; t.vm.curThread = t; } numRets = resume(thread, numParams); } catch(CrocException e) { callEpilogue(t, false); continueTraceback(t, CrocValue(t.vm.exception)); throw e; } // Don't have to handle halt exceptions; they can't propagate out of a thread saveResults(t, thread, thread.stackIndex - numRets, numRets); thread.stackIndex -= numRets; callEpilogue(t, true); return false; default: auto method = getMM(t, func, MM.Call, proto); if(method is null) { typeString(t, func); throwStdException(t, "TypeException", "No implementation of {} for type '{}'", MetaNames[MM.Call], getString(t, -1)); } t.stack[slot + 1] = *func; *func = method; return callPrologue2(t, method, slot, numReturns, slot + 1, numParams, proto); } } bool callPrologue2(CrocThread* t, CrocFunction* func, AbsStack returnSlot, word numReturns, AbsStack paramSlot, word numParams, CrocClass* proto) { const char[] wrapEH = "catch(CrocException e) { callEpilogue(t, false); throw e; } catch(CrocHaltException e) { unwindEH(t); callEpilogue(t, false); throw e; }"; if(numParams > func.maxParams) throwStdException(t, "ParamException", "Function {} expected at most {} parameters but was given {}", func.name.toString(), func.maxParams - 1, numParams - 1); if(!func.isNative) { // Script function auto funcDef = func.scriptFunc; auto ar = pushAR(t); if(funcDef.isVararg && numParams > func.numParams) { // In this case, we move the formal parameters after the varargs and null out where the formal // params used to be. ar.base = paramSlot + numParams; ar.vargBase = paramSlot + func.numParams; checkStack(t, ar.base + funcDef.stackSize - 1); auto oldParams = t.stack[paramSlot .. paramSlot + func.numParams]; t.stack[ar.base .. ar.base + func.numParams] = oldParams; oldParams[] = CrocValue.nullValue; // For nulling out the stack. numParams = func.numParams; } else { // In this case, everything is where it needs to be already. ar.base = paramSlot; ar.vargBase = paramSlot; checkStack(t, ar.base + funcDef.stackSize - 1); // If we have too few params, the extra param slots will be nulled out. } // Null out the stack frame after the parameters. t.stack[ar.base + numParams .. ar.base + funcDef.stackSize] = CrocValue.nullValue; // Fill in the rest of the activation record. ar.returnSlot = returnSlot; ar.func = func; ar.pc = funcDef.code.ptr; ar.numReturns = numReturns; ar.firstResult = 0; ar.numResults = 0; ar.proto = proto is null ? null : proto.parent; ar.numTailcalls = 0; ar.savedTop = ar.base + funcDef.stackSize; ar.unwindCounter = 0; ar.unwindReturn = null; // Set the stack indices. t.stackBase = ar.base; t.stackIndex = ar.savedTop; // Call any hook. mixin( "if(t.hooks & CrocThread.Hook.Call) { try callHook(t, CrocThread.Hook.Call); " ~ wrapEH ~ " }"); return true; } else { // Native function t.stackIndex = paramSlot + numParams; checkStack(t, t.stackIndex); auto ar = pushAR(t); ar.base = paramSlot; ar.vargBase = paramSlot; ar.returnSlot = returnSlot; ar.func = func; ar.numReturns = numReturns; ar.firstResult = 0; ar.numResults = 0; ar.savedTop = t.stackIndex; ar.proto = proto is null ? null : proto.parent; ar.numTailcalls = 0; ar.unwindCounter = 0; ar.unwindReturn = null; t.stackBase = ar.base; uword actualReturns = void; mixin("try { if(t.hooks & CrocThread.Hook.Call) callHook(t, CrocThread.Hook.Call); t.nativeCallDepth++; scope(exit) t.nativeCallDepth--; auto savedState = t.state; t.state = CrocThread.State.Running; t.vm.curThread = t; scope(exit) t.state = savedState; actualReturns = func.nativeFunc(t); }" ~ wrapEH); saveResults(t, t, t.stackIndex - actualReturns, actualReturns); callEpilogue(t, true); return false; } } void callEpilogue(CrocThread* t, bool needResults) { if(t.hooks & CrocThread.Hook.Ret) callReturnHooks(t); auto destSlot = t.currentAR.returnSlot; auto numExpRets = t.currentAR.numReturns; auto results = loadResults(t); bool isMultRet = false; if(numExpRets == -1) { isMultRet = true; numExpRets = results.length; } popAR(t); if(needResults) { t.numYields = results.length; auto stk = t.stack; if(numExpRets <= results.length) stk[destSlot .. destSlot + numExpRets] = results[0 .. numExpRets]; else { stk[destSlot .. destSlot + results.length] = results[]; stk[destSlot + results.length .. destSlot + numExpRets] = CrocValue.nullValue; } } else t.numYields = 0; if(t.arIndex == 0) { t.state = CrocThread.State.Dead; t.shouldHalt = false; t.stackIndex = destSlot + numExpRets; if(t is t.vm.mainThread) t.vm.curThread = t; } else if(needResults && (isMultRet || t.currentAR.savedTop < destSlot + numExpRets)) // last case happens in native -> native calls t.stackIndex = destSlot + numExpRets; else t.stackIndex = t.currentAR.savedTop; } void saveResults(CrocThread* t, CrocThread* from, AbsStack first, uword num) { if(num == 0) return; if((t.results.length - t.resultIndex) < num) { auto newLen = t.results.length * 2; if(newLen - t.resultIndex < num) newLen = t.resultIndex + num; t.vm.alloc.resizeArray(t.results, newLen); } assert(t.currentAR.firstResult is 0 && t.currentAR.numResults is 0); auto tmp = from.stack[first .. first + num]; t.results[t.resultIndex .. t.resultIndex + num] = tmp; t.currentAR.firstResult = t.resultIndex; t.currentAR.numResults = num; t.resultIndex += num; } CrocValue[] loadResults(CrocThread* t) { auto first = t.currentAR.firstResult; auto num = t.currentAR.numResults; auto ret = t.results[first .. first + num]; t.currentAR.firstResult = 0; t.currentAR.numResults = 0; t.resultIndex -= num; return ret; } void unwindEH(CrocThread* t) { while(t.trIndex > 0 && t.currentTR.actRecord >= t.arIndex) popTR(t); } // ============================================================================ // Implementations word toStringImpl(CrocThread* t, CrocValue v, bool raw) { // ORDER CROCVALUE TYPE if(v.type <= CrocValue.Type.String) { char[80] buffer = void; switch(v.type) { case CrocValue.Type.Null: return pushString(t, "null"); case CrocValue.Type.Bool: return pushString(t, v.mBool ? "true" : "false"); case CrocValue.Type.Int: return pushString(t, Integer_format(buffer, v.mInt)); case CrocValue.Type.Float: uword pos = 0; auto size = t.vm.formatter.convert((char[] s) { if(pos + s.length > buffer.length) s.length = buffer.length - pos; buffer[pos .. pos + s.length] = s[]; pos += s.length; return cast(uint)s.length; // the cast is there to make things work on x64 :P }, "{}", v.mFloat); return pushString(t, buffer[0 .. pos]); case CrocValue.Type.Char: auto inbuf = v.mChar; if(!Utf_isValid(inbuf)) throwStdException(t, "UnicodeException", "Character '{:X}' is not a valid Unicode codepoint", cast(uint)inbuf); uint ate = 0; return pushString(t, Utf_toString((&inbuf)[0 .. 1], buffer, &ate)); case CrocValue.Type.String: return push(t, v); default: assert(false); } } if(!raw) { CrocClass* proto; if(auto method = getMM(t, &v, MM.ToString, proto)) { auto funcSlot = push(t, CrocValue(method)); push(t, v); commonCall(t, funcSlot + t.stackBase, 1, callPrologue(t, funcSlot + t.stackBase, 1, 1, proto)); if(t.stack[t.stackIndex - 1].type != CrocValue.Type.String) { typeString(t, &t.stack[t.stackIndex - 1]); throwStdException(t, "TypeException", "toString was supposed to return a string, but returned a '{}'", getString(t, -1)); } return stackSize(t) - 1; } } switch(v.type) { case CrocValue.Type.Function: auto f = v.mFunction; if(f.isNative) return pushFormat(t, "native {} {}", CrocValue.typeStrings[CrocValue.Type.Function], f.name.toString()); else { auto sf = f.scriptFunc; return pushFormat(t, "script {} {}({}({}:{}))", CrocValue.typeStrings[CrocValue.Type.Function], f.name.toString(), sf.locFile.toString(), sf.locLine, sf.locCol); } case CrocValue.Type.Class: return pushFormat(t, "{} {} (0x{:X8})", CrocValue.typeStrings[CrocValue.Type.Class], v.mClass.name.toString(), cast(void*)v.mClass); case CrocValue.Type.Instance: return pushFormat(t, "{} of {} (0x{:X8})", CrocValue.typeStrings[CrocValue.Type.Instance], v.mInstance.parent.name.toString(), cast(void*)v.mInstance); case CrocValue.Type.Namespace: if(raw) goto default; pushString(t, CrocValue.typeStrings[CrocValue.Type.Namespace]); pushChar(t, ' '); pushNamespaceNamestring(t, v.mNamespace); auto slot = t.stackIndex - 3; catImpl(t, slot, slot, 3); pop(t, 2); return slot - t.stackBase; case CrocValue.Type.FuncDef: auto d = v.mFuncDef; return pushFormat(t, "{} {}({}({}:{}))", CrocValue.typeStrings[CrocValue.Type.FuncDef], d.name.toString(), d.locFile.toString(), d.locLine, d.locCol); default: return pushFormat(t, "{} 0x{:X8}", CrocValue.typeStrings[v.type], cast(void*)v.mBaseObj); } } bool inImpl(CrocThread* t, CrocValue* item, CrocValue* container) { switch(container.type) { case CrocValue.Type.String: if(item.type == CrocValue.Type.Char) return string.contains(container.mString, item.mChar); else if(item.type == CrocValue.Type.String) return string.contains(container.mString, item.mString.toString()); else { typeString(t, item); throwStdException(t, "TypeException", "Can only use characters to look in strings, not '{}'", getString(t, -1)); } case CrocValue.Type.Table: return table.contains(container.mTable, *item); case CrocValue.Type.Array: return array.contains(container.mArray, *item); case CrocValue.Type.Namespace: if(item.type != CrocValue.Type.String) { typeString(t, item); throwStdException(t, "TypeException", "Can only use strings to look in namespaces, not '{}'", getString(t, -1)); } return namespace.contains(container.mNamespace, item.mString); default: CrocClass* proto; auto method = getMM(t, container, MM.In, proto); if(method is null) { typeString(t, container); throwStdException(t, "TypeException", "No implementation of {} for type '{}'", MetaNames[MM.In], getString(t, -1)); } auto containersave = *container; auto itemsave = *item; auto funcSlot = push(t, CrocValue(method)); push(t, containersave); push(t, itemsave); commonCall(t, funcSlot + t.stackBase, 1, callPrologue(t, funcSlot + t.stackBase, 1, 2, proto)); auto ret = !t.stack[t.stackIndex - 1].isFalse(); pop(t); return ret; } } void idxImpl(CrocThread* t, AbsStack dest, CrocValue* container, CrocValue* key) { switch(container.type) { case CrocValue.Type.Array: if(key.type != CrocValue.Type.Int) { typeString(t, key); throwStdException(t, "TypeException", "Attempting to index an array with a '{}'", getString(t, -1)); } auto index = key.mInt; auto arr = container.mArray; if(index < 0) index += arr.length; if(index < 0 || index >= arr.length) throwStdException(t, "BoundsException", "Invalid array index {} (length is {})", key.mInt, arr.length); t.stack[dest] = arr.toArray()[cast(uword)index].value; return; case CrocValue.Type.Memblock: if(key.type != CrocValue.Type.Int) { typeString(t, key); throwStdException(t, "TypeException", "Attempting to index a memblock with a '{}'", getString(t, -1)); } auto index = key.mInt; auto mb = container.mMemblock; if(index < 0) index += mb.data.length; if(index < 0 || index >= mb.data.length) throwStdException(t, "BoundsException", "Invalid memblock index {} (length is {})", key.mInt, mb.data.length); t.stack[dest] = cast(crocint)mb.data[cast(uword)index]; return; case CrocValue.Type.String: if(key.type != CrocValue.Type.Int) { typeString(t, key); throwStdException(t, "TypeException", "Attempting to index a string with a '{}'", getString(t, -1)); } auto index = key.mInt; auto str = container.mString; if(index < 0) index += str.cpLength; if(index < 0 || index >= str.cpLength) throwStdException(t, "BoundsException", "Invalid string index {} (length is {})", key.mInt, str.cpLength); t.stack[dest] = string.charAt(str, cast(uword)index); return; case CrocValue.Type.Table: return tableIdxImpl(t, dest, container, key); default: if(tryMM!(2, true)(t, MM.Index, &t.stack[dest], container, key)) return; typeString(t, container); throwStdException(t, "TypeException", "Attempting to index a value of type '{}'", getString(t, -1)); } } void tableIdxImpl(CrocThread* t, AbsStack dest, CrocValue* container, CrocValue* key) { if(auto v = table.get(container.mTable, *key)) t.stack[dest] = *v; else t.stack[dest] = CrocValue.nullValue; } void idxaImpl(CrocThread* t, AbsStack container, CrocValue* key, CrocValue* value) { switch(t.stack[container].type) { case CrocValue.Type.Array: if(key.type != CrocValue.Type.Int) { typeString(t, key); throwStdException(t, "TypeException", "Attempting to index-assign an array with a '{}'", getString(t, -1)); } auto index = key.mInt; auto arr = t.stack[container].mArray; if(index < 0) index += arr.length; if(index < 0 || index >= arr.length) throwStdException(t, "BoundsException", "Invalid array index {} (length is {})", key.mInt, arr.length); array.idxa(t.vm.alloc, arr, cast(uword)index, *value); return; case CrocValue.Type.Memblock: if(key.type != CrocValue.Type.Int) { typeString(t, key); throwStdException(t, "TypeException", "Attempting to index-assign a memblock with a '{}'", getString(t, -1)); } auto index = key.mInt; auto mb = t.stack[container].mMemblock; if(index < 0) index += mb.data.length; if(index < 0 || index >= mb.data.length) throwStdException(t, "BoundsException", "Invalid memblock index {} (length is {})", key.mInt, mb.data.length); if(value.type != CrocValue.Type.Int) { typeString(t, value); throwStdException(t, "TypeException", "Attempting to index-assign a value of type '{}' into a memblock", getString(t, -1)); } mb.data[cast(uword)index] = cast(ubyte)value.mInt; return; case CrocValue.Type.Table: return tableIdxaImpl(t, container, key, value); default: if(tryMM!(3, false)(t, MM.IndexAssign, &t.stack[container], key, value)) return; typeString(t, &t.stack[container]); throwStdException(t, "TypeException", "Attempting to index-assign a value of type '{}'", getString(t, -1)); } } void tableIdxaImpl(CrocThread* t, AbsStack container, CrocValue* key, CrocValue* value) { if(key.type == CrocValue.Type.Null) throwStdException(t, "TypeException", "Attempting to index-assign a table with a key of type 'null'"); table.idxa(t.vm.alloc, t.stack[container].mTable, *key, *value); } word commonField(CrocThread* t, AbsStack container, bool raw) { auto slot = t.stackIndex - 1; fieldImpl(t, slot, &t.stack[container], t.stack[slot].mString, raw); return stackSize(t) - 1; } void commonFielda(CrocThread* t, AbsStack container, bool raw) { auto slot = t.stackIndex - 2; fieldaImpl(t, container, t.stack[slot].mString, &t.stack[slot + 1], raw); pop(t, 2); } void fieldImpl(CrocThread* t, AbsStack dest, CrocValue* container, CrocString* name, bool raw) { switch(container.type) { case CrocValue.Type.Table: // This is right, tables do not distinguish between field access and indexing. return tableIdxImpl(t, dest, container, &CrocValue(name)); case CrocValue.Type.Class: auto v = classobj.getField(container.mClass, name); if(v is null) { typeString(t, container); throwStdException(t, "FieldException", "Attempting to access nonexistent field '{}' from '{}'", name.toString(), getString(t, -1)); } return t.stack[dest] = *v; case CrocValue.Type.Instance: auto v = instance.getField(container.mInstance, name); if(v is null) { if(!raw && tryMM!(2, true)(t, MM.Field, &t.stack[dest], container, &CrocValue(name))) return; typeString(t, container); throwStdException(t, "FieldException", "Attempting to access nonexistent field '{}' from '{}'", name.toString(), getString(t, -1)); } return t.stack[dest] = *v; case CrocValue.Type.Namespace: auto v = namespace.get(container.mNamespace, name); if(v is null) { toStringImpl(t, *container, false); throwStdException(t, "FieldException", "Attempting to access nonexistent field '{}' from '{}'", name.toString(), getString(t, -1)); } return t.stack[dest] = *v; default: if(!raw && tryMM!(2, true)(t, MM.Field, &t.stack[dest], container, &CrocValue(name))) return; typeString(t, container); throwStdException(t, "TypeException", "Attempting to access field '{}' from a value of type '{}'", name.toString(), getString(t, -1)); } } void fieldaImpl(CrocThread* t, AbsStack container, CrocString* name, CrocValue* value, bool raw) { switch(t.stack[container].type) { case CrocValue.Type.Table: // This is right, tables do not distinguish between field access and indexing. return tableIdxaImpl(t, container, &CrocValue(name), value); case CrocValue.Type.Class: return classobj.setField(t.vm.alloc, t.stack[container].mClass, name, value); case CrocValue.Type.Instance: auto i = t.stack[container].mInstance; // First try to update the field if it already exists if(!instance.setFieldIfExists(t.vm.alloc, i, name, value)) { // Doesn't exist in the instance.. look it up CrocValue owner; auto field = instance.getField(i, name, owner); if(field is null) { // Doesn't exist anywhere in the instance's inheritance hierarchy; first try opFieldAssign if(!raw && tryMM!(3, false)(t, MM.FieldAssign, &t.stack[container], &CrocValue(name), value)) return; } // Fallback: create field in instance instance.setField(t.vm.alloc, i, name, value); } return; case CrocValue.Type.Namespace: return namespace.set(t.vm.alloc, t.stack[container].mNamespace, name, value); default: if(!raw && tryMM!(3, false)(t, MM.FieldAssign, &t.stack[container], &CrocValue(name), value)) return; typeString(t, &t.stack[container]); throwStdException(t, "TypeException", "Attempting to assign field '{}' into a value of type '{}'", name.toString(), getString(t, -1)); } } crocint compareImpl(CrocThread* t, CrocValue* a, CrocValue* b) { if(a.type == CrocValue.Type.Int) { if(b.type == CrocValue.Type.Int) return Compare3(a.mInt, b.mInt); else if(b.type == CrocValue.Type.Float) return Compare3(cast(crocfloat)a.mInt, b.mFloat); } else if(a.type == CrocValue.Type.Float) { if(b.type == CrocValue.Type.Int) return Compare3(a.mFloat, cast(crocfloat)b.mInt); else if(b.type == CrocValue.Type.Float) return Compare3(a.mFloat, b.mFloat); } if(a.type == b.type) { switch(a.type) { case CrocValue.Type.Null: return 0; case CrocValue.Type.Bool: return (cast(crocint)a.mBool - cast(crocint)b.mBool); case CrocValue.Type.Char: return Compare3(a.mChar, b.mChar); case CrocValue.Type.String: return (a.mString is b.mString) ? 0 : string.compare(a.mString, b.mString); default: break; } } CrocClass* proto; if(a.type == b.type || b.type != CrocValue.Type.Instance) { if(auto method = getMM(t, a, MM.Cmp, proto)) return commonCompare(t, method, a, b, proto); else if(auto method = getMM(t, b, MM.Cmp, proto)) return -commonCompare(t, method, b, a, proto); } else { if(auto method = getMM(t, b, MM.Cmp, proto)) return -commonCompare(t, method, b, a, proto); else if(auto method = getMM(t, a, MM.Cmp, proto)) return commonCompare(t, method, a, b, proto); } auto bsave = *b; typeString(t, a); typeString(t, &bsave); throwStdException(t, "TypeException", "Can't compare types '{}' and '{}'", getString(t, -2), getString(t, -1)); assert(false); } crocint commonCompare(CrocThread* t, CrocFunction* method, CrocValue* a, CrocValue* b, CrocClass* proto) { auto asave = *a; auto bsave = *b; auto funcReg = push(t, CrocValue(method)); push(t, asave); push(t, bsave); commonCall(t, funcReg + t.stackBase, 1, callPrologue(t, funcReg + t.stackBase, 1, 2, proto)); auto ret = *getValue(t, -1); pop(t); if(ret.type != CrocValue.Type.Int) { typeString(t, &ret); throwStdException(t, "TypeException", "{} is expected to return an int, but '{}' was returned instead", MetaNames[MM.Cmp], getString(t, -1)); } return ret.mInt; } bool switchCmpImpl(CrocThread* t, CrocValue* a, CrocValue* b) { if(a.type != b.type) return false; if(a.opEquals(*b)) return true; CrocClass* proto; if(a.type == CrocValue.Type.Instance) { if(auto method = getMM(t, a, MM.Cmp, proto)) return commonCompare(t, method, a, b, proto) == 0; else if(auto method = getMM(t, b, MM.Cmp, proto)) return commonCompare(t, method, b, a, proto) == 0; } return false; } bool equalsImpl(CrocThread* t, CrocValue* a, CrocValue* b) { if(a.type == CrocValue.Type.Int) { if(b.type == CrocValue.Type.Int) return a.mInt == b.mInt; else if(b.type == CrocValue.Type.Float) return (cast(crocfloat)a.mInt) == b.mFloat; } else if(a.type == CrocValue.Type.Float) { if(b.type == CrocValue.Type.Int) return a.mFloat == (cast(crocfloat)b.mInt); else if(b.type == CrocValue.Type.Float) return a.mFloat == b.mFloat; } if(a.type == b.type) { switch(a.type) { case CrocValue.Type.Null: return true; case CrocValue.Type.Bool: return a.mBool == b.mBool; case CrocValue.Type.Char: return a.mChar == b.mChar; case CrocValue.Type.String: return a.mString is b.mString; default: break; } } CrocClass* proto; if(a.type == b.type || b.type != CrocValue.Type.Instance) { if(auto method = getMM(t, a, MM.Equals, proto)) return commonEquals(t, method, a, b, proto); else if(auto method = getMM(t, b, MM.Equals, proto)) return commonEquals(t, method, b, a, proto); } else { if(auto method = getMM(t, b, MM.Equals, proto)) return commonEquals(t, method, b, a, proto); else if(auto method = getMM(t, a, MM.Equals, proto)) return commonEquals(t, method, a, b, proto); } auto bsave = *b; typeString(t, a); typeString(t, &bsave); throwStdException(t, "TypeException", "Can't compare types '{}' and '{}' for equality", getString(t, -2), getString(t, -1)); assert(false); } bool commonEquals(CrocThread* t, CrocFunction* method, CrocValue* a, CrocValue* b, CrocClass* proto) { auto asave = *a; auto bsave = *b; auto funcReg = push(t, CrocValue(method)); push(t, asave); push(t, bsave); commonCall(t, funcReg + t.stackBase, 1, callPrologue(t, funcReg + t.stackBase, 1, 2, proto)); auto ret = *getValue(t, -1); pop(t); if(ret.type != CrocValue.Type.Bool) { typeString(t, &ret); throwStdException(t, "TypeException", "{} is expected to return a bool, but '{}' was returned instead", MetaNames[MM.Equals], getString(t, -1)); } return ret.mBool; } void lenImpl(CrocThread* t, AbsStack dest, CrocValue* src) { switch(src.type) { case CrocValue.Type.String: return t.stack[dest] = cast(crocint)src.mString.cpLength; case CrocValue.Type.Table: return t.stack[dest] = cast(crocint)table.length(src.mTable); case CrocValue.Type.Array: return t.stack[dest] = cast(crocint)src.mArray.length; case CrocValue.Type.Memblock: return t.stack[dest] = cast(crocint)src.mMemblock.data.length; case CrocValue.Type.Namespace: return t.stack[dest] = cast(crocint)namespace.length(src.mNamespace); default: if(tryMM!(1, true)(t, MM.Length, &t.stack[dest], src)) return; typeString(t, src); throwStdException(t, "TypeException", "Can't get the length of a '{}'", getString(t, -1)); } } void lenaImpl(CrocThread* t, AbsStack dest, CrocValue* len) { switch(t.stack[dest].type) { case CrocValue.Type.Array: if(len.type != CrocValue.Type.Int) { typeString(t, len); throwStdException(t, "TypeException", "Attempting to set the length of an array using a length of type '{}'", getString(t, -1)); } auto l = len.mInt; if(l < 0 || l > uword.max) throwStdException(t, "RangeException", "Invalid length ({})", l); return array.resize(t.vm.alloc, t.stack[dest].mArray, cast(uword)l); case CrocValue.Type.Memblock: if(len.type != CrocValue.Type.Int) { typeString(t, len); throwStdException(t, "TypeException", "Attempting to set the length of a memblock using a length of type '{}'", getString(t, -1)); } auto mb = t.stack[dest].mMemblock; if(!mb.ownData) throwStdException(t, "ValueException", "Attempting to resize a memblock which does not own its data"); auto l = len.mInt; if(l < 0 || l > uword.max) throwStdException(t, "RangeException", "Invalid length ({})", l); return memblock.resize(t.vm.alloc, mb, cast(uword)l); default: if(tryMM!(2, false)(t, MM.LengthAssign, &t.stack[dest], len)) return; typeString(t, &t.stack[dest]); throwStdException(t, "TypeException", "Can't set the length of a '{}'", getString(t, -1)); } } void sliceImpl(CrocThread* t, AbsStack dest, CrocValue* src, CrocValue* lo, CrocValue* hi) { switch(src.type) { case CrocValue.Type.Array: auto arr = src.mArray; crocint loIndex = void; crocint hiIndex = void; if(lo.type == CrocValue.Type.Null && hi.type == CrocValue.Type.Null) return t.stack[dest] = *src; if(!correctIndices(loIndex, hiIndex, lo, hi, arr.length)) { auto hisave = *hi; typeString(t, lo); typeString(t, &hisave); throwStdException(t, "TypeException", "Attempting to slice an array with indices of type '{}' and '{}'", getString(t, -2), getString(t, -1)); } if(!validIndices(loIndex, hiIndex, arr.length)) throwStdException(t, "BoundsException", "Invalid slice indices [{} .. {}] (array length = {})", loIndex, hiIndex, arr.length); return t.stack[dest] = array.slice(t.vm.alloc, arr, cast(uword)loIndex, cast(uword)hiIndex); case CrocValue.Type.Memblock: auto mb = src.mMemblock; crocint loIndex = void; crocint hiIndex = void; if(lo.type == CrocValue.Type.Null && hi.type == CrocValue.Type.Null) return t.stack[dest] = *src; if(!correctIndices(loIndex, hiIndex, lo, hi, mb.data.length)) { auto hisave = *hi; typeString(t, lo); typeString(t, &hisave); throwStdException(t, "TypeException", "Attempting to slice a memblock with indices of type '{}' and '{}'", getString(t, -2), getString(t, -1)); } if(!validIndices(loIndex, hiIndex, mb.data.length)) throwStdException(t, "BoundsException", "Invalid slice indices [{} .. {}] (memblock length = {})", loIndex, hiIndex, mb.data.length); return t.stack[dest] = memblock.slice(t.vm.alloc, mb, cast(uword)loIndex, cast(uword)hiIndex); case CrocValue.Type.String: auto str = src.mString; crocint loIndex = void; crocint hiIndex = void; if(lo.type == CrocValue.Type.Null && hi.type == CrocValue.Type.Null) return t.stack[dest] = *src; if(!correctIndices(loIndex, hiIndex, lo, hi, str.cpLength)) { auto hisave = *hi; typeString(t, lo); typeString(t, &hisave); throwStdException(t, "TypeException", "Attempting to slice a string with indices of type '{}' and '{}'", getString(t, -2), getString(t, -1)); } if(!validIndices(loIndex, hiIndex, str.cpLength)) throwStdException(t, "BoundsException", "Invalid slice indices [{} .. {}] (string length = {})", loIndex, hiIndex, str.cpLength); return t.stack[dest] = string.slice(t.vm, str, cast(uword)loIndex, cast(uword)hiIndex); default: if(tryMM!(3, true)(t, MM.Slice, &t.stack[dest], src, lo, hi)) return; typeString(t, src); throwStdException(t, "TypeException", "Attempting to slice a value of type '{}'", getString(t, -1)); } } void sliceaImpl(CrocThread* t, CrocValue* container, CrocValue* lo, CrocValue* hi, CrocValue* value) { switch(container.type) { case CrocValue.Type.Array: auto arr = container.mArray; crocint loIndex = void; crocint hiIndex = void; if(!correctIndices(loIndex, hiIndex, lo, hi, arr.length)) { auto hisave = *hi; typeString(t, lo); typeString(t, &hisave); throwStdException(t, "TypeException", "Attempting to slice-assign an array with indices of type '{}' and '{}'", getString(t, -2), getString(t, -1)); } if(!validIndices(loIndex, hiIndex, arr.length)) throwStdException(t, "BoundsException", "Invalid slice-assign indices [{} .. {}] (array length = {})", loIndex, hiIndex, arr.length); if(value.type == CrocValue.Type.Array) { if((hiIndex - loIndex) != value.mArray.length) throwStdException(t, "RangeException", "Array slice-assign lengths do not match (destination is {}, source is {})", hiIndex - loIndex, value.mArray.length); return array.sliceAssign(t.vm.alloc, arr, cast(uword)loIndex, cast(uword)hiIndex, value.mArray); } else { typeString(t, value); throwStdException(t, "TypeException", "Attempting to slice-assign a value of type '{}' into an array", getString(t, -1)); } default: if(tryMM!(4, false)(t, MM.SliceAssign, container, lo, hi, value)) return; typeString(t, container); throwStdException(t, "TypeException", "Attempting to slice-assign a value of type '{}'", getString(t, -1)); } } void binOpImpl(CrocThread* t, MM operation, AbsStack dest, CrocValue* RS, CrocValue* RT) { crocfloat f1 = void; crocfloat f2 = void; if(RS.type == CrocValue.Type.Int) { if(RT.type == CrocValue.Type.Int) { auto i1 = RS.mInt; auto i2 = RT.mInt; switch(operation) { case MM.Add: return t.stack[dest] = i1 + i2; case MM.Sub: return t.stack[dest] = i1 - i2; case MM.Mul: return t.stack[dest] = i1 * i2; case MM.Div: if(i2 == 0) throwStdException(t, "ValueException", "Integer divide by zero"); return t.stack[dest] = i1 / i2; case MM.Mod: if(i2 == 0) throwStdException(t, "ValueException", "Integer modulo by zero"); return t.stack[dest] = i1 % i2; default: assert(false); } } else if(RT.type == CrocValue.Type.Float) { f1 = RS.mInt; f2 = RT.mFloat; goto _float; } } else if(RS.type == CrocValue.Type.Float) { if(RT.type == CrocValue.Type.Int) { f1 = RS.mFloat; f2 = RT.mInt; goto _float; } else if(RT.type == CrocValue.Type.Float) { f1 = RS.mFloat; f2 = RT.mFloat; _float: switch(operation) { case MM.Add: return t.stack[dest] = f1 + f2; case MM.Sub: return t.stack[dest] = f1 - f2; case MM.Mul: return t.stack[dest] = f1 * f2; case MM.Div: return t.stack[dest] = f1 / f2; case MM.Mod: return t.stack[dest] = f1 % f2; default: assert(false); } } } return commonBinOpMM(t, operation, dest, RS, RT); } void commonBinOpMM(CrocThread* t, MM operation, AbsStack dest, CrocValue* RS, CrocValue* RT) { bool swap = false; CrocClass* proto; auto method = getMM(t, RS, operation, proto); if(method is null) { method = getMM(t, RT, MMRev[operation], proto); if(method !is null) swap = true; else { if(!MMCommutative[operation]) { auto RTsave = *RT; typeString(t, RS); typeString(t, &RTsave); throwStdException(t, "TypeException", "Cannot perform the arithmetic operation '{}' on a '{}' and a '{}'", MetaNames[operation], getString(t, -2), getString(t, -1)); } method = getMM(t, RS, MMRev[operation], proto); if(method is null) { method = getMM(t, RT, operation, proto); if(method is null) { auto RTsave = *RT; typeString(t, RS); typeString(t, &RTsave); throwStdException(t, "TypeException", "Cannot perform the arithmetic operation '{}' on a '{}' and a '{}'", MetaNames[operation], getString(t, -2), getString(t, -1)); } swap = true; } } } // bool shouldLoad = void; // savePtr(t, dest, shouldLoad); auto RSsave = *RS; auto RTsave = *RT; auto funcSlot = push(t, CrocValue(method)); if(swap) { push(t, RTsave); push(t, RSsave); } else { push(t, RSsave); push(t, RTsave); } commonCall(t, funcSlot + t.stackBase, 1, callPrologue(t, funcSlot + t.stackBase, 1, 2, proto)); // if(shouldLoad) // loadPtr(t, dest); t.stack[dest] = t.stack[t.stackIndex - 1]; pop(t); } void reflBinOpImpl(CrocThread* t, MM operation, AbsStack dest, CrocValue* src) { crocfloat f1 = void; crocfloat f2 = void; if(t.stack[dest].type == CrocValue.Type.Int) { if(src.type == CrocValue.Type.Int) { auto i2 = src.mInt; switch(operation) { case MM.AddEq: return t.stack[dest].mInt += i2; case MM.SubEq: return t.stack[dest].mInt -= i2; case MM.MulEq: return t.stack[dest].mInt *= i2; case MM.DivEq: if(i2 == 0) throwStdException(t, "ValueException", "Integer divide by zero"); return t.stack[dest].mInt /= i2; case MM.ModEq: if(i2 == 0) throwStdException(t, "ValueException", "Integer modulo by zero"); return t.stack[dest].mInt %= i2; default: assert(false); } } else if(src.type == CrocValue.Type.Float) { f1 = t.stack[dest].mInt; f2 = src.mFloat; goto _float; } } else if(t.stack[dest].type == CrocValue.Type.Float) { if(src.type == CrocValue.Type.Int) { f1 = t.stack[dest].mFloat; f2 = src.mInt; goto _float; } else if(src.type == CrocValue.Type.Float) { f1 = t.stack[dest].mFloat; f2 = src.mFloat; _float: t.stack[dest].type = CrocValue.Type.Float; switch(operation) { case MM.AddEq: return t.stack[dest].mFloat = f1 + f2; case MM.SubEq: return t.stack[dest].mFloat = f1 - f2; case MM.MulEq: return t.stack[dest].mFloat = f1 * f2; case MM.DivEq: return t.stack[dest].mFloat = f1 / f2; case MM.ModEq: return t.stack[dest].mFloat = f1 % f2; default: assert(false); } } } if(tryMM!(2, false)(t, operation, &t.stack[dest], src)) return; auto srcsave = *src; typeString(t, &t.stack[dest]); typeString(t, &srcsave); throwStdException(t, "TypeException", "Cannot perform the reflexive arithmetic operation '{}' on a '{}' and a '{}'", MetaNames[operation], getString(t, -2), getString(t, -1)); } void negImpl(CrocThread* t, AbsStack dest, CrocValue* src) { if(src.type == CrocValue.Type.Int) return t.stack[dest] = -src.mInt; else if(src.type == CrocValue.Type.Float) return t.stack[dest] = -src.mFloat; if(tryMM!(1, true)(t, MM.Neg, &t.stack[dest], src)) return; typeString(t, src); throwStdException(t, "TypeException", "Cannot perform negation on a '{}'", getString(t, -1)); } void binaryBinOpImpl(CrocThread* t, MM operation, AbsStack dest, CrocValue* RS, CrocValue* RT) { if(RS.type == CrocValue.Type.Int && RT.type == CrocValue.Type.Int) { switch(operation) { case MM.And: return t.stack[dest] = RS.mInt & RT.mInt; case MM.Or: return t.stack[dest] = RS.mInt | RT.mInt; case MM.Xor: return t.stack[dest] = RS.mInt ^ RT.mInt; case MM.Shl: return t.stack[dest] = RS.mInt << RT.mInt; case MM.Shr: return t.stack[dest] = RS.mInt >> RT.mInt; case MM.UShr: return t.stack[dest] = RS.mInt >>> RT.mInt; default: assert(false); } } return commonBinOpMM(t, operation, dest, RS, RT); } void reflBinaryBinOpImpl(CrocThread* t, MM operation, AbsStack dest, CrocValue* src) { if(t.stack[dest].type == CrocValue.Type.Int && src.type == CrocValue.Type.Int) { switch(operation) { case MM.AndEq: return t.stack[dest].mInt &= src.mInt; case MM.OrEq: return t.stack[dest].mInt |= src.mInt; case MM.XorEq: return t.stack[dest].mInt ^= src.mInt; case MM.ShlEq: return t.stack[dest].mInt <<= src.mInt; case MM.ShrEq: return t.stack[dest].mInt >>= src.mInt; case MM.UShrEq: return t.stack[dest].mInt >>>= src.mInt; default: assert(false); } } if(tryMM!(2, false)(t, operation, &t.stack[dest], src)) return; auto srcsave = *src; typeString(t, &t.stack[dest]); typeString(t, &srcsave); throwStdException(t, "TypeException", "Cannot perform reflexive binary operation '{}' on a '{}' and a '{}'", MetaNames[operation], getString(t, -2), getString(t, -1)); } void comImpl(CrocThread* t, AbsStack dest, CrocValue* src) { if(src.type == CrocValue.Type.Int) return t.stack[dest] = ~src.mInt; if(tryMM!(1, true)(t, MM.Com, &t.stack[dest], src)) return; typeString(t, src); throwStdException(t, "TypeException", "Cannot perform bitwise complement on a '{}'", getString(t, -1)); } void incImpl(CrocThread* t, AbsStack dest) { if(t.stack[dest].type == CrocValue.Type.Int) t.stack[dest].mInt++; else if(t.stack[dest].type == CrocValue.Type.Float) t.stack[dest].mFloat++; else { if(tryMM!(1, false)(t, MM.Inc, &t.stack[dest])) return; typeString(t, &t.stack[dest]); throwStdException(t, "TypeException", "Cannot increment a '{}'", getString(t, -1)); } } void decImpl(CrocThread* t, AbsStack dest) { if(t.stack[dest].type == CrocValue.Type.Int) t.stack[dest].mInt--; else if(t.stack[dest].type == CrocValue.Type.Float) t.stack[dest].mFloat--; else { if(tryMM!(1, false)(t, MM.Dec, &t.stack[dest])) return; typeString(t, &t.stack[dest]); throwStdException(t, "TypeException", "Cannot decrement a '{}'", getString(t, -1)); } } void catImpl(CrocThread* t, AbsStack dest, AbsStack firstSlot, uword num) { auto slot = firstSlot; auto endSlot = slot + num; auto endSlotm1 = endSlot - 1; auto stack = t.stack; // bool shouldLoad = void; // savePtr(t, dest, shouldLoad); while(slot < endSlotm1) { CrocFunction* method = null; CrocClass* proto = null; bool swap = false; switch(stack[slot].type) { case CrocValue.Type.String, CrocValue.Type.Char: uword len = 0; uword idx = slot; for(; idx < endSlot; idx++) { if(stack[idx].type == CrocValue.Type.String) len += stack[idx].mString.length; else if(stack[idx].type == CrocValue.Type.Char) { if(!Utf_isValid(stack[idx].mChar)) throwStdException(t, "UnicodeException", "Attempting to concatenate an invalid character (\\U{:x8})", cast(uint)stack[idx].mChar); len += charLen(stack[idx].mChar); } else break; } if(idx > (slot + 1)) { stringConcat(t, stack[slot], stack[slot + 1 .. idx], len); slot = idx - 1; } if(slot == endSlotm1) break; // to exit function if(stack[slot + 1].type == CrocValue.Type.Array) goto array; else if(stack[slot + 1].type == CrocValue.Type.Instance) goto cat_r; else { typeString(t, &stack[slot + 1]); throwStdException(t, "TypeException", "Can't concatenate 'string|char' and '{}'", getString(t, -1)); } case CrocValue.Type.Array: array: uword idx = slot + 1; uword len = stack[slot].type == CrocValue.Type.Array ? stack[slot].mArray.length : 1; for(; idx < endSlot; idx++) { if(stack[idx].type == CrocValue.Type.Array) len += stack[idx].mArray.length; else if(stack[idx].type == CrocValue.Type.Instance) { method = getMM(t, &stack[idx], MM.Cat_r, proto); if(method is null) len++; else break; } else len++; } if(idx > (slot + 1)) { arrayConcat(t, stack[slot .. idx], len); slot = idx - 1; } if(slot == endSlotm1) break; // to exit function assert(method !is null); goto cat_r; case CrocValue.Type.Instance: if(stack[slot + 1].type == CrocValue.Type.Array) { method = getMM(t, &stack[slot], MM.Cat, proto); if(method is null) goto array; } if(method is null) { method = getMM(t, &stack[slot], MM.Cat, proto); if(method is null) goto cat_r; } goto common_mm; default: // Basic if(stack[slot + 1].type == CrocValue.Type.Array) goto array; else { method = getMM(t, &stack[slot], MM.Cat, proto); if(method is null) goto cat_r; else goto common_mm; } cat_r: if(method is null) { method = getMM(t, &stack[slot + 1], MM.Cat_r, proto); if(method is null) goto error; } swap = true; // fall through common_mm: assert(method !is null); auto src1save = stack[slot]; auto src2save = stack[slot + 1]; auto funcSlot = push(t, CrocValue(method)); if(swap) { push(t, src2save); push(t, src1save); } else { push(t, src1save); push(t, src2save); } commonCall(t, funcSlot + t.stackBase, 1, callPrologue(t, funcSlot + t.stackBase, 1, 2, proto)); // stack might have changed. stack = t.stack; slot++; stack[slot] = stack[t.stackIndex - 1]; pop(t); continue; error: typeString(t, &t.stack[slot]); typeString(t, &stack[slot + 1]); throwStdException(t, "TypeException", "Can't concatenate '{}' and '{}'", getString(t, -2), getString(t, -1)); } break; } // if(shouldLoad) // loadPtr(t, dest); t.stack[dest] = stack[slot]; } void arrayConcat(CrocThread* t, CrocValue[] vals, uword len) { if(vals.length == 2 && vals[0].type == CrocValue.Type.Array) { if(vals[1].type == CrocValue.Type.Array) return vals[1] = array.cat(t.vm.alloc, vals[0].mArray, vals[1].mArray); else return vals[1] = array.cat(t.vm.alloc, vals[0].mArray, &vals[1]); } auto ret = array.create(t.vm.alloc, len); uword i = 0; foreach(ref v; vals) { if(v.type == CrocValue.Type.Array) { auto a = v.mArray; array.sliceAssign(t.vm.alloc, ret, i, i + a.length, a); i += a.length; } else { array.idxa(t.vm.alloc, ret, i, v); i++; } } vals[$ - 1] = ret; } void stringConcat(CrocThread* t, CrocValue first, CrocValue[] vals, uword len) { auto tmpBuffer = t.vm.alloc.allocArray!(char)(len); scope(exit) t.vm.alloc.freeArray(tmpBuffer); uword i = 0; void add(ref CrocValue v) { char[] s = void; if(v.type == CrocValue.Type.String) s = v.mString.toString(); else { dchar[1] inbuf = void; inbuf[0] = v.mChar; char[4] outbuf = void; uint ate = 0; s = Utf_toString(inbuf, outbuf, &ate); } tmpBuffer[i .. i + s.length] = s[]; i += s.length; } add(first); foreach(ref v; vals) add(v); vals[$ - 1] = createString(t, tmpBuffer); } void catEqImpl(CrocThread* t, AbsStack dest, AbsStack firstSlot, uword num) { assert(num >= 1); auto slot = firstSlot; auto endSlot = slot + num; auto stack = t.stack; switch(t.stack[dest].type) { case CrocValue.Type.String, CrocValue.Type.Char: uword len = void; if(t.stack[dest].type == CrocValue.Type.Char) { if(!Utf_isValid(t.stack[dest].mChar)) throwStdException(t, "UnicodeException", "Attempting to concatenate an invalid character (\\U{:x8})", t.stack[dest].mChar); len = charLen(t.stack[dest].mChar); } else len = t.stack[dest].mString.length; for(uword idx = slot; idx < endSlot; idx++) { if(stack[idx].type == CrocValue.Type.String) len += stack[idx].mString.length; else if(stack[idx].type == CrocValue.Type.Char) { if(!Utf_isValid(stack[idx].mChar)) throwStdException(t, "UnicodeException", "Attempting to concatenate an invalid character (\\U{:x8})", cast(uint)stack[idx].mChar); len += charLen(stack[idx].mChar); } else { typeString(t, &stack[idx]); throwStdException(t, "TypeException", "Can't append a '{}' to a 'string/char'", getString(t, -1)); } } auto first = t.stack[dest]; // bool shouldLoad = void; // savePtr(t, dest, shouldLoad); stringConcat(t, first, stack[slot .. endSlot], len); // if(shouldLoad) // loadPtr(t, dest); t.stack[dest] = stack[endSlot - 1]; return; case CrocValue.Type.Array: return arrayAppend(t, t.stack[dest].mArray, stack[slot .. endSlot]); default: CrocClass* proto; auto method = getMM(t, &t.stack[dest], MM.CatEq, proto); if(method is null) { typeString(t, &t.stack[dest]); throwStdException(t, "TypeException", "Can't append to a value of type '{}'", getString(t, -1)); } // bool shouldLoad = void; // savePtr(t, dest, shouldLoad); checkStack(t, t.stackIndex); // if(shouldLoad) // loadPtr(t, dest); for(auto i = t.stackIndex; i > firstSlot; i--) t.stack[i] = t.stack[i - 1]; t.stack[firstSlot] = t.stack[dest]; t.nativeCallDepth++; scope(exit) t.nativeCallDepth--; if(callPrologue2(t, method, firstSlot, 0, firstSlot, num + 1, proto)) execute(t); return; } } void arrayAppend(CrocThread* t, CrocArray* a, CrocValue[] vals) { uword len = a.length; foreach(ref val; vals) { if(val.type == CrocValue.Type.Array) len += val.mArray.length; else len++; } uword i = a.length; array.resize(t.vm.alloc, a, len); foreach(ref v; vals) { if(v.type == CrocValue.Type.Array) { auto arr = v.mArray; array.sliceAssign(t.vm.alloc, a, i, i + arr.length, arr); i += arr.length; } else { array.idxa(t.vm.alloc, a, i, v); i++; } } } word pushTraceback(CrocThread* t) { auto ret = newArray(t, 0); foreach_reverse(ref ar; t.actRecs[0 .. t.arIndex]) { pushDebugLoc(t, &ar); cateq(t, ret, 1); if(ar.numTailcalls > 0) { pushFormat(t, "<{} tailcall{}>", ar.numTailcalls, ar.numTailcalls == 1 ? "" : "s"); pushLocationObject(t, getString(t, -1), -1, CrocLocation.Script); cateq(t, ret, 1); pop(t); } } return ret; } void continueTraceback(CrocThread* t, CrocValue ex) { push(t, ex); field(t, -1, "traceback"); pushTraceback(t); cateq(t, -2, 1); pop(t, 2); } void throwImpl(CrocThread* t, CrocValue ex, bool rethrowing = false) { if(!rethrowing) { if(!asImpl(t, &ex, &CrocValue(t.vm.throwable))) { typeString(t, &ex); throwStdException(t, "TypeException", "Attempting to throw a '{}'; must be an instance of a class derived from Throwable", getString(t, -1)); } push(t, CrocValue(ex)); field(t, -1, "location"); field(t, -1, "col"); if(getInt(t, -1) == CrocLocation.Unknown) { pop(t, 2); pushTraceback(t); if(len(t, -1) > 0) idxi(t, -1, 0); else pushDebugLoc(t); fielda(t, -3, "location"); fielda(t, -2, "traceback"); } else pop(t, 2); auto size = stackSize(t); try toStringImpl(t, ex, false); catch(CrocException e) { catchException(t); setStackSize(t, size); toStringImpl(t, ex, true); } // dup'ing since we're removing the only Croc reference and handing it off to D auto msg = getString(t, -1).dup; pop(t, 2); if(t.vm.dexception is null) t.vm.dexception = new CrocException(null); t.vm.dexception.msg = msg; } t.vm.exception = ex.mInstance; t.vm.isThrowing = true; throw t.vm.dexception; } bool asImpl(CrocThread* t, CrocValue* o, CrocValue* p) { if(p.type != CrocValue.Type.Class) { typeString(t, p); throwStdException(t, "TypeException", "Attempting to use 'as' with a '{}' instead of a 'class' as the type", getString(t, -1)); } return o.type == CrocValue.Type.Instance && instance.derivesFrom(o.mInstance, p.mClass); } CrocValue superOfImpl(CrocThread* t, CrocValue* v) { if(v.type == CrocValue.Type.Class) { if(auto p = v.mClass.parent) return CrocValue(p); else return CrocValue.nullValue; } else if(v.type == CrocValue.Type.Instance) return CrocValue(v.mInstance.parent); else if(v.type == CrocValue.Type.Namespace) { if(auto p = v.mNamespace.parent) return CrocValue(p); else return CrocValue.nullValue; } else { typeString(t, v); throwStdException(t, "TypeException", "Can only get super of classes, instances, and namespaces, not values of type '{}'", getString(t, -1)); } assert(false); } // ============================================================================ // Helper functions CrocValue* getGlobalImpl(CrocThread* t, CrocString* name, CrocNamespace* env) { if(auto glob = namespace.get(env, name)) return glob; auto ns = env; for(; ns.parent !is null; ns = ns.parent){} if(ns !is env) { if(auto glob = namespace.get(ns, name)) return glob; } throwStdException(t, "NameException", "Attempting to get a nonexistent global '{}'", name.toString()); assert(false); } void setGlobalImpl(CrocThread* t, CrocString* name, CrocNamespace* env, CrocValue* val) { if(namespace.setIfExists(t.vm.alloc, env, name, val)) return; auto ns = env; for(; ns.parent !is null; ns = ns.parent){} if(ns !is env && namespace.setIfExists(t.vm.alloc, ns, name, val)) return; throwStdException(t, "NameException", "Attempting to set a nonexistent global '{}'", name.toString()); assert(false); } void newGlobalImpl(CrocThread* t, CrocString* name, CrocNamespace* env, CrocValue* val) { if(namespace.contains(env, name)) throwStdException(t, "NameException", "Attempting to create global '{}' that already exists", name.toString()); namespace.set(t.vm.alloc, env, name, val); } void savePtr(CrocThread* t, ref CrocValue* ptr, out bool shouldLoad) { if(ptr >= t.stack.ptr && ptr < t.stack.ptr + t.stack.length) { shouldLoad = true; ptr = cast(CrocValue*)(cast(uword)ptr - cast(uword)t.stack.ptr); } } void loadPtr(CrocThread* t, ref CrocValue* ptr) { ptr = cast(CrocValue*)(cast(uword)ptr + cast(uword)t.stack.ptr); } CrocNamespace* getMetatable(CrocThread* t, CrocValue.Type type) { // ORDER CROCVALUE TYPE assert(type >= CrocValue.Type.FirstUserType && type <= CrocValue.Type.LastUserType); return t.vm.metaTabs[type]; } bool correctIndices(out crocint loIndex, out crocint hiIndex, CrocValue* lo, CrocValue* hi, uword len) { if(lo.type == CrocValue.Type.Null) loIndex = 0; else if(lo.type == CrocValue.Type.Int) { loIndex = lo.mInt; if(loIndex < 0) loIndex += len; } else return false; if(hi.type == CrocValue.Type.Null) hiIndex = len; else if(hi.type == CrocValue.Type.Int) { hiIndex = hi.mInt; if(hiIndex < 0) hiIndex += len; } else return false; return true; } bool validIndices(crocint lo, crocint hi, uword len) { return lo >= 0 && hi <= len && lo <= hi; } uword charLen(dchar c) { dchar[1] inbuf = void; inbuf[0] = c; char[4] outbuf = void; uint ate = 0; return Utf_toString(inbuf, outbuf, &ate).length; } word pushNamespaceNamestring(CrocThread* t, CrocNamespace* ns) { uword namespaceName(CrocNamespace* ns) { if(ns.name.cpLength == 0) return 0; uword n = 0; if(ns.parent) { auto ret = namespaceName(ns.parent); if(ret > 0) { pushChar(t, '.'); n = ret + 1; } } push(t, CrocValue(ns.name)); return n + 1; } auto x = namespaceName(ns); if(x == 0) return pushString(t, ""); else { auto slot = t.stackIndex - x; catImpl(t, slot, slot, x); if(x > 1) pop(t, x - 1); return slot - t.stackBase; } } word typeString(CrocThread* t, CrocValue* v) { switch(v.type) { case CrocValue.Type.Null, CrocValue.Type.Bool, CrocValue.Type.Int, CrocValue.Type.Float, CrocValue.Type.Char, CrocValue.Type.String, CrocValue.Type.Table, CrocValue.Type.Array, CrocValue.Type.Memblock, CrocValue.Type.Function, CrocValue.Type.Namespace, CrocValue.Type.Thread, CrocValue.Type.WeakRef, CrocValue.Type.FuncDef: return pushString(t, CrocValue.typeStrings[v.type]); case CrocValue.Type.Class: // LEAVE ME UP HERE PLZ, don't inline, thx. (WHY, ME?!? WHY CAN'T I INLINE THIS FFFFF) (maybe cause v could point to the stack and we don't know what order DMD does shit in) auto n = v.mClass.name.toString(); return pushFormat(t, "{} {}", CrocValue.typeStrings[CrocValue.Type.Class], n); case CrocValue.Type.Instance: // don't inline me either. auto n = v.mInstance.parent.name.toString(); return pushFormat(t, "{} of {}", CrocValue.typeStrings[CrocValue.Type.Instance], n); case CrocValue.Type.NativeObj: pushString(t, CrocValue.typeStrings[CrocValue.Type.NativeObj]); pushChar(t, ' '); if(auto o = v.mNativeObj.obj) pushString(t, o.classinfo.name); else pushString(t, "(??? null)"); auto slot = t.stackIndex - 3; catImpl(t, slot, slot, 3); pop(t, 2); return slot - t.stackBase; default: assert(false); } } // ============================================================================ // Coroutines void yieldImpl(CrocThread* t, AbsStack firstValue, word numValues, word numReturns) { auto ar = pushAR(t); assert(t.arIndex > 1); *ar = t.actRecs[t.arIndex - 2]; ar.func = null; ar.returnSlot = firstValue; ar.numReturns = numReturns; ar.firstResult = 0; ar.numResults = 0; if(numValues == -1) t.numYields = t.stackIndex - firstValue; else { t.stackIndex = firstValue + numValues; t.numYields = numValues; } t.state = CrocThread.State.Suspended; } uword resume(CrocThread* t, uword numParams) { try { if(t.state == CrocThread.State.Initial) { push(t, CrocValue(t.coroFunc)); insert(t, 1); auto result = callPrologue(t, cast(AbsStack)1, -1, numParams, null); assert(result == true, "resume callPrologue must return true"); execute(t); } else { callEpilogue(t, true); execute(t, t.savedCallDepth); } } catch(CrocHaltException e) { assert(t.arIndex == 0); assert(t.upvalHead is null); assert(t.resultIndex == 0); assert(t.trIndex == 0); assert(t.nativeCallDepth == 0); } return t.numYields; } // ============================================================================ // Interpreter State ActRecord* pushAR(CrocThread* t) { if(t.arIndex >= t.actRecs.length) t.vm.alloc.resizeArray(t.actRecs, t.actRecs.length * 2); t.currentAR = &t.actRecs[t.arIndex]; t.arIndex++; return t.currentAR; } void popAR(CrocThread* t) { t.arIndex--; t.currentAR.func = null; t.currentAR.proto = null; if(t.arIndex > 0) { t.currentAR = &t.actRecs[t.arIndex - 1]; t.stackBase = t.currentAR.base; } else { t.currentAR = null; t.stackBase = 0; } } TryRecord* pushTR(CrocThread* t) { if(t.trIndex >= t.tryRecs.length) t.vm.alloc.resizeArray(t.tryRecs, t.tryRecs.length * 2); t.currentTR = &t.tryRecs[t.trIndex]; t.trIndex++; return t.currentTR; } final void popTR(CrocThread* t) { t.trIndex--; if(t.trIndex > 0) t.currentTR = &t.tryRecs[t.trIndex - 1]; else t.currentTR = null; } void close(CrocThread* t, AbsStack index) { auto base = &t.stack[index]; for(auto uv = t.upvalHead; uv !is null && uv.value >= base; uv = t.upvalHead) { t.upvalHead = uv.nextuv; uv.closedValue = *uv.value; uv.value = &uv.closedValue; } } CrocUpval* findUpvalue(CrocThread* t, uword num) { auto slot = &t.stack[t.currentAR.base + num]; auto puv = &t.upvalHead; for(auto uv = *puv; uv !is null && uv.value >= slot; puv = &uv.nextuv, uv = *puv) if(uv.value is slot) return uv; auto ret = t.vm.alloc.allocate!(CrocUpval)(); ret.value = slot; ret.nextuv = *puv; *puv = ret; return ret; } // ============================================================================ // Debugging void callHook(CrocThread* t, CrocThread.Hook hook) { if(!t.hooksEnabled || !t.hookFunc) return; auto savedTop = t.stackIndex; t.hooksEnabled = false; auto slot = push(t, CrocValue(t.hookFunc)); push(t, CrocValue(t)); switch(hook) { case CrocThread.Hook.Call: pushString(t, "call"); break; case CrocThread.Hook.Ret: pushString(t, "ret"); break; case CrocThread.Hook.TailRet: pushString(t, "tailret"); break; case CrocThread.Hook.Delay: pushString(t, "delay"); break; case CrocThread.Hook.Line: pushString(t, "line"); break; default: assert(false); } try commonCall(t, t.stackBase + slot, 0, callPrologue(t, t.stackBase + slot, 0, 1, null)); finally { t.hooksEnabled = true; t.stackIndex = savedTop; } } void callReturnHooks(CrocThread* t) { if(!t.hooksEnabled) return; callHook(t, CrocThread.Hook.Ret); if(!t.currentAR.func.isNative) { while(t.currentAR.numTailcalls > 0) { t.currentAR.numTailcalls--; callHook(t, CrocThread.Hook.TailRet); } } } // ============================================================================ // Main interpreter loop void execute(CrocThread* t, uword depth = 1) { CrocException currentException = null; CrocValue* RS; CrocValue* RT; _exceptionRetry: t.state = CrocThread.State.Running; t.vm.curThread = t; _reentry: auto stackBase = t.stackBase; auto constTable = t.currentAR.func.scriptFunc.constants; auto env = t.currentAR.func.environment; auto upvals = t.currentAR.func.scriptUpvals(); auto pc = &t.currentAR.pc; try { const char[] GetRS = "if((*pc).uimm & Instruction.constBit) RS = &constTable[(*pc).uimm & ~Instruction.constBit]; else RS = &t.stack[stackBase + (*pc).uimm]; (*pc)++;"; const char[] GetRT = "if((*pc).uimm & Instruction.constBit) RT = &constTable[(*pc).uimm & ~Instruction.constBit]; else RT = &t.stack[stackBase + (*pc).uimm]; (*pc)++;"; const char[] GetRTAndrt = "auto rt = (*pc).uimm; if(rt & Instruction.constBit) RT = &constTable[rt & ~Instruction.constBit]; else RT = &t.stack[stackBase + rt]; (*pc)++;"; const char[] GetUImm = "((*pc)++).uimm"; const char[] GetImm = "((*pc)++).imm"; Instruction* oldPC = null; _interpreterLoop: while(true) { if(t.shouldHalt) throw new CrocHaltException; pc = &t.currentAR.pc; Instruction* i = (*pc)++; if(t.hooksEnabled && t.hooks) { if(t.hooks & CrocThread.Hook.Delay) { assert(t.hookCounter > 0); t.hookCounter--; if(t.hookCounter == 0) { t.hookCounter = t.hookDelay; callHook(t, CrocThread.Hook.Delay); } } if(t.hooks & CrocThread.Hook.Line) { auto curPC = t.currentAR.pc - 1; // when oldPC is null, it means we've either just started executing this func, // or we've come back from a yield, or we've just caught an exception, or something // like that. // When curPC < oldPC, we've jumped back, like to the beginning of a loop. if(curPC is t.currentAR.func.scriptFunc.code.ptr || curPC < oldPC || pcToLine(t.currentAR, curPC) != pcToLine(t.currentAR, curPC - 1)) callHook(t, CrocThread.Hook.Line); } } oldPC = *pc; auto opcode = mixin(Instruction.GetOpcode("i")); auto rd = mixin(Instruction.GetRD("i")); switch(opcode) { // ==================================================================== // These opcodes match up with the MM enum to avoid a second lookup. // Binary Arithmetic case Op.Add: case Op.Sub: case Op.Mul: case Op.Div: case Op.Mod: mixin(GetRS); mixin(GetRT); binOpImpl(t, cast(MM)opcode, stackBase + rd, RS, RT); break; // Reflexive Arithmetic case Op.AddEq: case Op.SubEq: case Op.MulEq: case Op.DivEq: case Op.ModEq: mixin(GetRS); reflBinOpImpl(t, cast(MM)opcode, stackBase + rd, RS); break; // Binary Bitwise case Op.And: case Op.Or: case Op.Xor: case Op.Shl: case Op.Shr: case Op.UShr: mixin(GetRS); mixin(GetRT); binaryBinOpImpl(t, cast(MM)opcode, stackBase + rd, RS, RT); break; // Reflexive Bitwise case Op.AndEq: case Op.OrEq: case Op.XorEq: case Op.ShlEq: case Op.ShrEq: case Op.UShrEq: mixin(GetRS); reflBinaryBinOpImpl(t, cast(MM)opcode, stackBase + rd, RS); break; // ==================================================================== // From here on, there is no correlation between Op and MM. // Unary ops case Op.Neg: mixin(GetRS); negImpl(t, stackBase + rd, RS); break; case Op.Com: mixin(GetRS); comImpl(t, stackBase + rd, RS); break; // Crements case Op.Inc: incImpl(t, stackBase + rd); break; case Op.Dec: decImpl(t, stackBase + rd); break; // Data Transfer case Op.Move: mixin(GetRS); t.stack[stackBase + rd] = *RS; break; case Op.NewGlobal: newGlobalImpl(t, constTable[mixin(GetUImm)].mString, env, &t.stack[stackBase + rd]); break; case Op.GetGlobal: t.stack[stackBase + rd] = *getGlobalImpl(t, constTable[mixin(GetUImm)].mString, env); break; case Op.SetGlobal: setGlobalImpl(t, constTable[mixin(GetUImm)].mString, env, &t.stack[stackBase + rd]); break; case Op.GetUpval: t.stack[stackBase + rd] = *upvals[mixin(GetUImm)].value; break; case Op.SetUpval: auto uv = upvals[mixin(GetUImm)]; mixin(writeBarrier!("t.vm.alloc", "uv")); *uv.value = t.stack[stackBase + rd]; break; // Logical and Control Flow case Op.Not: mixin(GetRS); t.stack[stackBase + rd] = RS.isFalse(); break; case Op.Cmp3: mixin(GetRS); mixin(GetRT); t.stack[stackBase + rd] = compareImpl(t, RS, RT); break; case Op.Cmp: mixin(GetRS); mixin(GetRT); auto jump = mixin(GetImm); auto cmpValue = compareImpl(t, RS, RT); switch(cast(Comparison)rd) { case Comparison.LT: if(cmpValue < 0) (*pc) += jump; break; case Comparison.LE: if(cmpValue <= 0) (*pc) += jump; break; case Comparison.GT: if(cmpValue > 0) (*pc) += jump; break; case Comparison.GE: if(cmpValue >= 0) (*pc) += jump; break; default: assert(false, "invalid cmp comparison type"); } break; case Op.SwitchCmp: mixin(GetRS); mixin(GetRT); auto jump = mixin(GetImm); if(switchCmpImpl(t, RS, RT)) (*pc) += jump; break; case Op.Equals: mixin(GetRS); mixin(GetRT); auto jump = mixin(GetImm); if(equalsImpl(t, RS, RT) == cast(bool)rd) (*pc) += jump; break; case Op.Is: mixin(GetRS); mixin(GetRT); auto jump = mixin(GetImm); if(RS.opEquals(RT) == rd) (*pc) += jump; break; case Op.In: mixin(GetRS); mixin(GetRT); auto jump = mixin(GetImm); if(inImpl(t, RS, RT) == cast(bool)rd) (*pc) += jump; break; case Op.IsTrue: mixin(GetRS); auto jump = mixin(GetImm); if(RS.isFalse() != cast(bool)rd) (*pc) += jump; break; case Op.Jmp: // If we ever change the format of this opcode, check that it's the same length as Switch (codegen can turn Switch into Jmp)! auto jump = mixin(GetImm); if(rd != 0) (*pc) += jump; break; case Op.Switch: // If we ever change the format of this opcode, check that it's the same length as Jmp (codegen can turn Switch into Jmp)! auto st = &t.currentAR.func.scriptFunc.switchTables[rd]; mixin(GetRS); if(auto ptr = st.offsets.lookup(*RS)) (*pc) += *ptr; else { if(st.defaultOffset == -1) throwStdException(t, "SwitchError", "Switch without default"); (*pc) += st.defaultOffset; } break; case Op.Close: close(t, stackBase + rd); break; case Op.For: auto jump = mixin(GetImm); auto idx = &t.stack[stackBase + rd]; auto hi = idx + 1; auto step = hi + 1; if(idx.type != CrocValue.Type.Int || hi.type != CrocValue.Type.Int || step.type != CrocValue.Type.Int) throwStdException(t, "TypeException", "Numeric for loop low, high, and step values must be integers"); auto intIdx = idx.mInt; auto intHi = hi.mInt; auto intStep = step.mInt; if(intStep == 0) throwStdException(t, "ValueException", "Numeric for loop step value may not be 0"); if(intIdx > intHi && intStep > 0 || intIdx < intHi && intStep < 0) intStep = -intStep; if(intStep < 0) *idx = intIdx + intStep; *step = intStep; (*pc) += jump; break; case Op.ForLoop: auto jump = mixin(GetImm); auto idx = t.stack[stackBase + rd].mInt; auto hi = t.stack[stackBase + rd + 1].mInt; auto step = t.stack[stackBase + rd + 2].mInt; if(step > 0) { if(idx < hi) { t.stack[stackBase + rd + 3] = idx; t.stack[stackBase + rd] = idx + step; (*pc) += jump; } } else { if(idx >= hi) { t.stack[stackBase + rd + 3] = idx; t.stack[stackBase + rd] = idx + step; (*pc) += jump; } } break; case Op.Foreach: auto jump = mixin(GetImm); auto src = &t.stack[stackBase + rd]; if(src.type != CrocValue.Type.Function && src.type != CrocValue.Type.Thread) { CrocClass* proto; auto method = getMM(t, src, MM.Apply, proto); if(method is null) { typeString(t, src); throwStdException(t, "TypeException", "No implementation of {} for type '{}'", MetaNames[MM.Apply], getString(t, -1)); } t.stack[stackBase + rd + 2] = t.stack[stackBase + rd + 1]; t.stack[stackBase + rd + 1] = *src; t.stack[stackBase + rd] = method; t.stackIndex = stackBase + rd + 3; commonCall(t, stackBase + rd, 3, callPrologue(t, stackBase + rd, 3, 2, proto)); t.stackIndex = t.currentAR.savedTop; src = &t.stack[stackBase + rd]; if(src.type != CrocValue.Type.Function && src.type != CrocValue.Type.Thread) { typeString(t, src); throwStdException(t, "TypeException", "Invalid iterable type '{}' returned from opApply", getString(t, -1)); } } if(src.type == CrocValue.Type.Thread && src.mThread.state != CrocThread.State.Initial) throwStdException(t, "StateException", "Attempting to iterate over a thread that is not in the 'initial' state"); (*pc) += jump; break; case Op.ForeachLoop: auto numIndices = mixin(GetUImm); auto jump = mixin(GetImm); auto funcReg = rd + 3; t.stack[stackBase + funcReg + 2] = t.stack[stackBase + rd + 2]; t.stack[stackBase + funcReg + 1] = t.stack[stackBase + rd + 1]; t.stack[stackBase + funcReg] = t.stack[stackBase + rd]; t.stackIndex = stackBase + funcReg + 3; commonCall(t, stackBase + funcReg, numIndices, callPrologue(t, stackBase + funcReg, numIndices, 2, null)); t.stackIndex = t.currentAR.savedTop; auto src = &t.stack[stackBase + rd]; if(src.type == CrocValue.Type.Function) { if(t.stack[stackBase + funcReg].type != CrocValue.Type.Null) { t.stack[stackBase + rd + 2] = t.stack[stackBase + funcReg]; (*pc) += jump; } } else { if(src.mThread.state != CrocThread.State.Dead) (*pc) += jump; } break; // Exception Handling case Op.PushCatch, Op.PushFinally: auto offs = mixin(GetImm); auto tr = pushTR(t); tr.isCatch = opcode == Op.PushCatch; tr.slot = cast(RelStack)rd; tr.pc = (*pc) + offs; tr.actRecord = t.arIndex; break; case Op.PopCatch: popTR(t); break; case Op.PopFinally: currentException = null; popTR(t); break; case Op.EndFinal: if(currentException !is null) throw currentException; if(t.currentAR.unwindReturn !is null) goto _commonEHUnwind; break; case Op.Throw: mixin(GetRS); throwImpl(t, *RS, cast(bool)rd); break; // Function Calling { bool isScript = void; word numResults = void; uword numParams = void; const char[] AdjustParams = "if(numParams == 0) numParams = t.stackIndex - (stackBase + rd + 1); else { numParams--; t.stackIndex = stackBase + rd + 1 + numParams; }"; case Op.Method, Op.TailMethod: // These two opcodes have one more value mixin(GetRS); case Op.SuperMethod, Op.TailSuperMethod: mixin(GetRT); numParams = mixin(GetUImm); numResults = mixin(GetUImm) - 1; if(opcode == Op.TailMethod || opcode == Op.TailSuperMethod) numResults = -1; // the second uimm is a dummy for these opcodes if(RT.type != CrocValue.Type.String) { typeString(t, RT); throwStdException(t, "TypeException", "Attempting to get a method with a non-string name (type '{}' instead)", getString(t, -1)); } CrocValue* self = void; CrocValue lookup = void; if(opcode == Op.Method || opcode == Op.TailMethod) { self = RS; lookup = *RS; } else { if(t.currentAR.proto is null) throwStdException(t, "CallException", "Attempting to perform a supercall in a function where there is no super class"); self = &t.stack[stackBase]; lookup = CrocValue(t.currentAR.proto); if(self.type != CrocValue.Type.Instance && self.type != CrocValue.Type.Class) { typeString(t, self); throwStdException(t, "TypeException", "Attempting to perform a supercall in a function where 'this' is a '{}', not an 'instance' or 'class'", getString(t, -1)); } } mixin(AdjustParams); isScript = commonMethodCall(t, stackBase + rd, self, &lookup, RT.mString, numResults, numParams); if(opcode == Op.Method || opcode == Op.SuperMethod) goto _commonCall; else goto _commonTailcall; case Op.Call, Op.TailCall: numParams = mixin(GetUImm); numResults = mixin(GetUImm) - 1; if(opcode == Op.TailCall) numResults = -1; // second uimm is a dummy mixin(AdjustParams); auto self = &t.stack[stackBase + rd + 1]; CrocClass* proto = void; if(self.type == CrocValue.Type.Instance) proto = self.mInstance.parent; else if(self.type == CrocValue.Type.Class) proto = self.mClass; else proto = null; isScript = callPrologue(t, stackBase + rd, numResults, numParams, proto); if(opcode == Op.TailCall) goto _commonTailcall; // fall through _commonCall: maybeGC(t); if(isScript) { depth++; goto _reentry; } else { if(numResults >= 0) t.stackIndex = t.currentAR.savedTop; } break; _commonTailcall: maybeGC(t); if(isScript) { auto prevAR = t.currentAR - 1; close(t, prevAR.base); auto diff = cast(ptrdiff_t)(t.currentAR.returnSlot - prevAR.returnSlot); auto tc = prevAR.numTailcalls + 1; t.currentAR.numReturns = prevAR.numReturns; *prevAR = *t.currentAR; prevAR.numTailcalls = tc; prevAR.base -= diff; prevAR.savedTop -= diff; prevAR.vargBase -= diff; prevAR.returnSlot -= diff; popAR(t); //memmove(&t.stack[prevAR.returnSlot], &t.stack[prevAR.returnSlot + diff], (prevAR.savedTop - prevAR.returnSlot) * CrocValue.sizeof); for(auto idx = prevAR.returnSlot; idx < prevAR.savedTop; idx++) t.stack[idx] = t.stack[idx + diff]; goto _reentry; } // Do nothing for native calls. The following return instruction will catch it. break; } case Op.SaveRets: auto numResults = mixin(GetUImm); auto firstResult = stackBase + rd; if(numResults == 0) { saveResults(t, t, firstResult, t.stackIndex - firstResult); t.stackIndex = t.currentAR.savedTop; } else saveResults(t, t, firstResult, numResults - 1); break; case Op.Ret: unwindEH(t); close(t, stackBase); callEpilogue(t, true); depth--; if(depth == 0) return; goto _reentry; case Op.Unwind: t.currentAR.unwindReturn = (*pc); t.currentAR.unwindCounter = rd; // fall through _commonEHUnwind: while(t.currentAR.unwindCounter > 0) { assert(t.trIndex > 0); assert(t.currentTR.actRecord is t.arIndex); auto tr = *t.currentTR; popTR(t); close(t, t.stackBase + tr.slot); t.currentAR.unwindCounter--; if(!tr.isCatch) { // finally in the middle of an unwind (*pc) = tr.pc; continue _interpreterLoop; } } (*pc) = t.currentAR.unwindReturn; t.currentAR.unwindReturn = null; break; case Op.Vararg: uword numNeeded = mixin(GetUImm); auto numVarargs = stackBase - t.currentAR.vargBase; auto dest = stackBase + rd; if(numNeeded == 0) { numNeeded = numVarargs; t.stackIndex = dest + numVarargs; checkStack(t, t.stackIndex); } else numNeeded--; auto src = t.currentAR.vargBase; if(numNeeded <= numVarargs) memmove(&t.stack[dest], &t.stack[src], numNeeded * CrocValue.sizeof); else { memmove(&t.stack[dest], &t.stack[src], numVarargs * CrocValue.sizeof); t.stack[dest + numVarargs .. dest + numNeeded] = CrocValue.nullValue; } break; case Op.VargLen: t.stack[stackBase + rd] = cast(crocint)(stackBase - t.currentAR.vargBase); break; case Op.VargIndex: mixin(GetRS); auto numVarargs = stackBase - t.currentAR.vargBase; if(RS.type != CrocValue.Type.Int) { typeString(t, RS); throwStdException(t, "TypeException", "Attempting to index 'vararg' with a '{}'", getString(t, -1)); } auto index = RS.mInt; if(index < 0) index += numVarargs; if(index < 0 || index >= numVarargs) throwStdException(t, "BoundsException", "Invalid 'vararg' index: {} (only have {})", index, numVarargs); t.stack[stackBase + rd] = t.stack[t.currentAR.vargBase + cast(uword)index]; break; case Op.VargIndexAssign: mixin(GetRS); mixin(GetRT); auto numVarargs = stackBase - t.currentAR.vargBase; if(RS.type != CrocValue.Type.Int) { typeString(t, RS); throwStdException(t, "TypeException", "Attempting to index 'vararg' with a '{}'", getString(t, -1)); } auto index = RS.mInt; if(index < 0) index += numVarargs; if(index < 0 || index >= numVarargs) throwStdException(t, "BoundsException", "Invalid 'vararg' index: {} (only have {})", index, numVarargs); t.stack[t.currentAR.vargBase + cast(uword)index] = *RT; break; case Op.VargSlice: uint numNeeded = mixin(GetUImm); auto numVarargs = stackBase - t.currentAR.vargBase; crocint lo = void; crocint hi = void; auto loSrc = &t.stack[stackBase + rd]; auto hiSrc = &t.stack[stackBase + rd + 1]; if(!correctIndices(lo, hi, loSrc, hiSrc, numVarargs)) { typeString(t, &t.stack[stackBase + rd]); typeString(t, &t.stack[stackBase + rd + 1]); throwStdException(t, "TypeException", "Attempting to slice 'vararg' with '{}' and '{}'", getString(t, -2), getString(t, -1)); } if(lo > hi || lo < 0 || lo > numVarargs || hi < 0 || hi > numVarargs) throwStdException(t, "BoundsException", "Invalid vararg slice indices [{} .. {}]", lo, hi); auto sliceSize = cast(uword)(hi - lo); auto src = t.currentAR.vargBase + cast(uword)lo; auto dest = stackBase + cast(uword)rd; if(numNeeded == 0) { numNeeded = sliceSize; t.stackIndex = dest + sliceSize; checkStack(t, t.stackIndex); } else numNeeded--; if(numNeeded <= sliceSize) memmove(&t.stack[dest], &t.stack[src], numNeeded * CrocValue.sizeof); else { memmove(&t.stack[dest], &t.stack[src], sliceSize * CrocValue.sizeof); t.stack[dest + sliceSize .. dest + numNeeded] = CrocValue.nullValue; } break; case Op.Yield: auto numParams = cast(word)mixin(GetUImm) - 1; auto numResults = cast(word)mixin(GetUImm) - 1; if(t is t.vm.mainThread) throwStdException(t, "RuntimeException", "Attempting to yield out of the main thread"); if(t.nativeCallDepth > 0) throwStdException(t, "RuntimeException", "Attempting to yield across native / metamethod call boundary"); t.savedCallDepth = depth; yieldImpl(t, stackBase + rd, numParams, numResults); return; case Op.CheckParams: auto val = &t.stack[stackBase]; foreach(idx, mask; t.currentAR.func.scriptFunc.paramMasks) { if(!(mask & (1 << val.type))) { typeString(t, val); if(idx == 0) throwStdException(t, "TypeException", "'this' parameter: type '{}' is not allowed", getString(t, -1)); else throwStdException(t, "TypeException", "Parameter {}: type '{}' is not allowed", idx, getString(t, -1)); } val++; } break; case Op.CheckObjParam: auto RD = &t.stack[stackBase + rd]; mixin(GetRS); auto jump = mixin(GetImm); if(RD.type != CrocValue.Type.Instance) (*pc) += jump; else { if(RS.type != CrocValue.Type.Class) { typeString(t, RS); if(rd == 0) throwStdException(t, "TypeException", "'this' parameter: instance type constraint type must be 'class', not '{}'", getString(t, -1)); else throwStdException(t, "TypeException", "Parameter {}: instance type constraint type must be 'class', not '{}'", rd, getString(t, -1)); } if(instance.derivesFrom(RD.mInstance, RS.mClass)) (*pc) += jump; } break; case Op.ObjParamFail: typeString(t, &t.stack[stackBase + rd]); if(rd == 0) throwStdException(t, "TypeException", "'this' parameter: type '{}' is not allowed", getString(t, -1)); else throwStdException(t, "TypeException", "Parameter {}: type '{}' is not allowed", rd, getString(t, -1)); break; case Op.CustomParamFail: typeString(t, &t.stack[stackBase + rd]); mixin(GetRS); if(rd == 0) throwStdException(t, "TypeException", "'this' parameter: type '{}' does not satisfy constraint '{}'", getString(t, -1), RS.mString.toString()); else throwStdException(t, "TypeException", "Parameter {}: type '{}' does not satisfy constraint '{}'", rd, getString(t, -1), RS.mString.toString()); break; case Op.AssertFail: auto msg = t.stack[stackBase + rd]; if(msg.type != CrocValue.Type.String) { typeString(t, &msg); throwStdException(t, "AssertError", "Assertion failed, but the message is a '{}', not a 'string'", getString(t, -1)); } throwStdException(t, "AssertError", "{}", msg.mString.toString()); assert(false); // Array and List Operations case Op.Length: mixin(GetRS); lenImpl(t, stackBase + rd, RS); break; case Op.LengthAssign: mixin(GetRS); lenaImpl(t, stackBase + rd, RS); break; case Op.Append: mixin(GetRS); array.append(t.vm.alloc, t.stack[stackBase + rd].mArray, RS); break; case Op.SetArray: auto numVals = mixin(GetUImm); auto block = mixin(GetUImm); auto sliceBegin = stackBase + rd + 1; auto a = t.stack[stackBase + rd].mArray; if(numVals == 0) { array.setBlock(t.vm.alloc, a, block, t.stack[sliceBegin .. t.stackIndex]); t.stackIndex = t.currentAR.savedTop; } else array.setBlock(t.vm.alloc, a, block, t.stack[sliceBegin .. sliceBegin + numVals - 1]); break; case Op.Cat: auto rs = mixin(GetUImm); auto numVals = mixin(GetUImm); catImpl(t, stackBase + rd, stackBase + rs, numVals); maybeGC(t); break; case Op.CatEq: auto rs = mixin(GetUImm); auto numVals = mixin(GetUImm); catEqImpl(t, stackBase + rd, stackBase + rs, numVals); maybeGC(t); break; case Op.Index: mixin(GetRS); mixin(GetRT); idxImpl(t, stackBase + rd, RS, RT); break; case Op.IndexAssign: mixin(GetRS); mixin(GetRT); idxaImpl(t, stackBase + rd, RS, RT); break; case Op.Field: mixin(GetRS); mixin(GetRT); if(RT.type != CrocValue.Type.String) { typeString(t, RT); throwStdException(t, "TypeException", "Field name must be a string, not a '{}'", getString(t, -1)); } fieldImpl(t, stackBase + rd, RS, RT.mString, false); break; case Op.FieldAssign: mixin(GetRS); mixin(GetRT); if(RS.type != CrocValue.Type.String) { typeString(t, RS); throwStdException(t, "TypeException", "Field name must be a string, not a '{}'", getString(t, -1)); } fieldaImpl(t, stackBase + rd, RS.mString, RT, false); break; case Op.Slice: auto rs = mixin(GetUImm); auto base = &t.stack[stackBase + rs]; sliceImpl(t, stackBase + rd, base, base + 1, base + 2); break; case Op.SliceAssign: mixin(GetRS); auto base = &t.stack[stackBase + rd]; sliceaImpl(t, base, base + 1, base + 2, RS); break; // Value Creation case Op.NewArray: auto size = cast(uword)constTable[mixin(GetUImm)].mInt; t.stack[stackBase + rd] = array.create(t.vm.alloc, size); maybeGC(t); break; case Op.NewTable: t.stack[stackBase + rd] = table.create(t.vm.alloc); maybeGC(t); break; case Op.Closure, Op.ClosureWithEnv: auto closureIdx = mixin(GetUImm); auto newDef = t.currentAR.func.scriptFunc.innerFuncs[closureIdx]; auto funcEnv = opcode == Op.Closure ? env : t.stack[stackBase + rd].mNamespace; auto n = func.create(t.vm.alloc, funcEnv, newDef); if(n is null) { CrocValue def = newDef; toStringImpl(t, def, false); throwStdException(t, "RuntimeException", "Attempting to instantiate {} with a different namespace than was associated with it", getString(t, -1)); } auto uvTable = newDef.upvals; foreach(id, ref uv; n.scriptUpvals()) { if(uvTable[id].isUpvalue) uv = upvals[uvTable[id].index]; else uv = findUpvalue(t, uvTable[id].index); } t.stack[stackBase + rd] = n; maybeGC(t); break; case Op.Class: mixin(GetRS); mixin(GetRTAndrt); if(rt & Instruction.constBit && RT.type == CrocValue.Type.Null) t.stack[stackBase + rd] = classobj.create(t.vm.alloc, RS.mString, t.vm.object); else { if(RT.type != CrocValue.Type.Class) { typeString(t, RT); throwStdException(t, "TypeException", "Attempting to derive a class from a value of type '{}'", getString(t, -1)); } else t.stack[stackBase + rd] = classobj.create(t.vm.alloc, RS.mString, RT.mClass); } maybeGC(t); break; case Op.Namespace: auto name = constTable[mixin(GetUImm)].mString; mixin(GetRT); if(RT.type == CrocValue.Type.Null) t.stack[stackBase + rd] = namespace.create(t.vm.alloc, name); else if(RT.type != CrocValue.Type.Namespace) { typeString(t, RT); push(t, CrocValue(name)); throwStdException(t, "TypeException", "Attempted to use a '{}' as a parent namespace for namespace '{}'", getString(t, -2), getString(t, -1)); } else t.stack[stackBase + rd] = namespace.create(t.vm.alloc, name, RT.mNamespace); maybeGC(t); break; case Op.NamespaceNP: auto name = constTable[mixin(GetUImm)].mString; t.stack[stackBase + rd] = namespace.create(t.vm.alloc, name, env); maybeGC(t); break; // Class stuff case Op.As: mixin(GetRS); mixin(GetRT); if(asImpl(t, RS, RT)) t.stack[stackBase + rd] = *RS; else t.stack[stackBase + rd] = CrocValue.nullValue; break; case Op.SuperOf: mixin(GetRS); t.stack[stackBase + rd] = superOfImpl(t, RS); break; default: throwStdException(t, "VMError", "Unimplemented opcode {}", *i); } } } catch(CrocException e) { t.currentAR.unwindCounter = 0; t.currentAR.unwindReturn = null; while(depth > 0) { if(t.trIndex > 0 && t.currentTR.actRecord is t.arIndex) { auto tr = *t.currentTR; popTR(t); auto base = t.stackBase + tr.slot; close(t, base); // remove any results that may have been saved loadResults(t); if(tr.isCatch) { t.stack[base] = t.vm.exception; t.vm.exception = null; t.vm.isThrowing = false; currentException = null; t.stack[base + 1 .. t.stackIndex] = CrocValue.nullValue; t.currentAR.pc = tr.pc; } else { currentException = e; t.currentAR.pc = tr.pc; } goto _exceptionRetry; } close(t, t.stackBase); callEpilogue(t, false); depth--; } throw e; } catch(CrocHaltException e) { while(depth > 0) { close(t, t.stackBase); callEpilogue(t, false); depth--; } unwindEH(t); throw e; } }
D
/** * Configures and initializes the backend. * * Copyright: Copyright (C) 1999-2021 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/dmsc.d, _dmsc.d) * Documentation: https://dlang.org/phobos/dmd_dmsc.html * Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/dmsc.d */ module dmd.dmsc; import core.stdc.stdio; import core.stdc.string; import core.stdc.stddef; extern (C++): import dmd.globals; import dmd.dclass; import dmd.dmodule; import dmd.mars; import dmd.mtype; import dmd.target; import dmd.root.filename; import dmd.backend.cc; import dmd.backend.cdef; import dmd.backend.global; import dmd.backend.ty; import dmd.backend.type; extern (C) void out_config_init( int model, // 32: 32 bit code // 64: 64 bit code // Windows: bit 0 set to generate MS-COFF instead of OMF bool exe, // true: exe file // false: dll or shared library (generate PIC code) bool trace, // add profiling code bool nofloat, // do not pull in floating point code bool verbose, // verbose compile bool optimize, // optimize code int symdebug, // add symbolic debug information // 1: D // 2: fake it with C symbolic debug info bool alwaysframe, // always create standard function frame bool stackstomp, // add stack stomping code ubyte avx, // use AVX instruction set (0, 1, 2) PIC pic, // kind of position independent code bool useModuleInfo, // implement ModuleInfo bool useTypeInfo, // implement TypeInfo bool useExceptions, // implement exception handling ubyte dwarf, // DWARF version used string _version, // Compiler version exefmt_t exefmt // Executable file format ); void out_config_debug( bool debugb, bool debugc, bool debugf, bool debugr, bool debugw, bool debugx, bool debugy ); /************************************** * Initialize config variables. */ void backend_init() { //printf("out_config_init()\n"); Param *params = &global.params; exefmt_t exfmt; switch (target.os) { case Target.OS.Windows: exfmt = target.is64bit ? EX_WIN64 : EX_WIN32; break; case Target.OS.linux: exfmt = target.is64bit ? EX_LINUX64 : EX_LINUX; break; case Target.OS.OSX: exfmt = target.is64bit ? EX_OSX64 : EX_OSX; break; case Target.OS.FreeBSD: exfmt = target.is64bit ? EX_FREEBSD64 : EX_FREEBSD; break; case Target.OS.OpenBSD: exfmt = target.is64bit ? EX_OPENBSD64 : EX_OPENBSD; break; case Target.OS.Solaris: exfmt = target.is64bit ? EX_SOLARIS64 : EX_SOLARIS; break; case Target.OS.DragonFlyBSD: exfmt = EX_DRAGONFLYBSD64; break; default: assert(0); } bool exe; if (params.dll || params.pic != PIC.fixed) { } else if (params.run) exe = true; // EXE file only optimizations else if (params.link && !params.deffile) exe = true; // EXE file only optimizations else if (params.exefile.length && params.exefile.length >= 4 && FileName.equals(FileName.ext(params.exefile), "exe")) exe = true; // if writing out EXE file out_config_init( (target.is64bit ? 64 : 32) | (target.mscoff ? 1 : 0), exe, false, //params.trace, params.nofloat, params.verbose, params.optimize, params.symdebug, dmdParams.alwaysframe, params.stackstomp, target.cpu >= CPU.avx2 ? 2 : target.cpu >= CPU.avx ? 1 : 0, params.pic, params.useModuleInfo && Module.moduleinfo, params.useTypeInfo && Type.dtypeinfo, params.useExceptions && ClassDeclaration.throwable, dmdParams.dwarf, global.versionString(), exfmt ); debug { out_config_debug( dmdParams.debugb, dmdParams.debugc, dmdParams.debugf, dmdParams.debugr, false, dmdParams.debugx, dmdParams.debugy ); } } /*********************************** * Return aligned 'offset' if it is of size 'size'. */ targ_size_t _align(targ_size_t size, targ_size_t offset) { switch (size) { case 1: break; case 2: case 4: case 8: case 16: case 32: case 64: offset = (offset + size - 1) & ~(size - 1); break; default: if (size >= 16) offset = (offset + 15) & ~15; else offset = (offset + _tysize[TYnptr] - 1) & ~(_tysize[TYnptr] - 1); break; } return offset; } /******************************* * Get size of ty */ targ_size_t size(tym_t ty) { int sz = (tybasic(ty) == TYvoid) ? 1 : tysize(ty); debug { if (sz == -1) WRTYxx(ty); } assert(sz!= -1); return sz; } /**************************** * Generate symbol of type ty at DATA:offset */ Symbol *symboldata(targ_size_t offset,tym_t ty) { Symbol *s = symbol_generate(SClocstat, type_fake(ty)); s.Sfl = FLdata; s.Soffset = offset; s.Stype.Tmangle = mTYman_sys; // writes symbol unmodified in Obj::mangle symbol_keep(s); // keep around return s; } /************************************** */ void backend_term() { }
D
// Written in the D programming language. /** * Serializer and Stream Deserializer usage */ import std.array; import std.stdio; import msgpack; void main() { auto packer = packer(appender!(ubyte[])()); packer.packArray(null, true, "Hi!", -1, [1, 2]); auto unpacker = StreamingUnpacker(packer.stream.data); if (unpacker.execute()) { foreach (obj; unpacker.purge()) writeln(obj.type); } else { writeln("Serialized object is too large!"); } }
D
module unixtime; import core.checkedint : adds, subs, muls; import core.sys.posix.sys.time : time_t, timespec, timeval; import core.time : dur, convert; import std.conv : to; import std.exception : enforce, ErrnoException; import std.datetime : SysTime; import std.format : format; import std.math : abs; import std.string : split, StringException; import std.traits : Unqual; // TODO windows, other BSDes, Solaris version (linux) { import core.sys.linux.time; } else version (FreeBSD) { import core.sys.freebsd.time; } else version (darwin) { // TODO support Sierra native clock_gettime version = EmulatedDarwin; } else { static assert(false, "Unsupported OS"); } version (EmulatedDarwin) { import core.sys.posix.sys.time : gettimeofday; extern (C) nothrow @nogc { ulong mach_absolute_time(); struct mach_timebase_info_data_t { uint numer; uint denom; } int mach_timebase_info(immutable mach_timebase_info_data_t*); void clock_get_uptime(ulong*); } // some hackery to define clockid_t if not already defined static if (!__traits(compiles, clockid_t)) { alias clockid_t = int; immutable clockid_t CLOCK_REALTIME = 1; immutable clockid_t CLOCK_MONOTONIC = 2; immutable clockid_t CLOCK_SECOND = 3; } // Used to measure elapsed nanos since program start up static immutable ulong darwinTimeInit; // Used to determine program start up time static immutable timespec darwinTimespecInit; // Used to convert darwin mach ticks to actual time static immutable mach_timebase_info_data_t darwinTimebaseInfo; static this() { darwinTimeInit = mach_absolute_time(); timeval tv; if (gettimeofday(&tv, null) == 0) { timespec ts; darwinTimespecInit.tv_sec = tv.tv_sec; darwinTimespecInit.tv_nsec = tv.tv_usec * 1000; } else { assert(false, "Unable to initialize clock"); } if (mach_timebase_info(&darwinTimebaseInfo) != 0) { assert(false, "Unable to initialize timebase info"); } } } alias UnixTimeHiRes = SystemClock!true; alias UnixTime = SystemClock!false; enum ClockType { REALTIME, REALTIME_FAST, REALTIME_PRECISE, MONOTONIC, MONOTONIC_FAST, MONOTONIC_PRECISE, UPTIME, UPTIME_FAST, UPTIME_PRECISE, SECOND } @safe struct SystemClock(bool HiRes) { public: enum Epoch = SystemClock!HiRes(0); time_t seconds; static if (HiRes) { long nanos; } @nogc pure nothrow this(time_t seconds) { this.seconds = seconds; } @nogc pure nothrow this(timeval tv) { this.seconds = tv.tv_sec; static if (HiRes) { this.nanos = tv.tv_usec * 1000; } } static if (HiRes) { pure this(time_t seconds, long nanos) in { assert(nanos.abs < NANOS_IN_SECOND); } body { this.seconds = seconds; this.nanos = nanos; adjust(this.seconds, this.nanos); } } pure nothrow this(const SysTime sysTime) { this(sysTime); } pure nothrow this(const ref SysTime sysTime) { this.seconds = stdTimeToUnixTime(sysTime.stdTime); static if (HiRes) { // Need to massage a bit to prevent underflow if (sysTime.stdTime < long.min + UNIX_EPOCH_IN_STDTIME) { this.nanos = (sysTime.stdTime % 10_000_000 - UNIX_EPOCH_IN_STDTIME % 10_000_000) * 100; } else { this.nanos = (sysTime.stdTime - UNIX_EPOCH_IN_STDTIME) % 10_000_000 * 100; } } } pure SysTime opCast(T)() const if (is(T == SysTime)) in { static if (HiRes) { assert(this.nanos.abs < NANOS_IN_SECOND); } } body { enforce(this.seconds <= MAX_STDTIME_IN_UNIXTIME && this.seconds >= MIN_STDTIME_IN_UNIXTIME); static if (HiRes) { return SysTime(unixTimeToStdTime(this.seconds) + this.nanos / 100); } else { return SysTime(unixTimeToStdTime(this.seconds)); } } @nogc pure nothrow time_t opCast(T)() const if (is(T == time_t)) { return seconds; } static if (HiRes) { @nogc pure nothrow UnixTime opCast(T)() const if (is(T == UnixTime)) { return UnixTime(this.seconds); } pure UnixTimeHiRes opBinary(string op)(const UnixTime other) const if (op == "+") { return this + cast(UnixTimeHiRes) other.seconds; } pure UnixTimeHiRes opBinary(string op)(const UnixTimeHiRes other) const if (op == "+") { return opBinary!"+"(other); } pure UnixTimeHiRes opBinary(string op)(const ref UnixTimeHiRes other) const if (op == "+") in { static if (HiRes) { assert(this.nanos.abs < NANOS_IN_SECOND); assert(other.nanos.abs < NANOS_IN_SECOND); } } body { auto seconds = safelyAddSigned(this.seconds, other.seconds); static if (HiRes) { long nanos = this.nanos + other.nanos; adjust(seconds, nanos); return UnixTimeHiRes(seconds, nanos); } else { return UnixTimeHiRes(seconds); } } pure UnixTimeHiRes opBinary(string op)(const UnixTime other) const if (op == "-") { return this - cast(UnixTimeHiRes) other; } pure UnixTimeHiRes opBinary(string op)(const UnixTimeHiRes other) const if (op == "-") { return opBinary!"-"(other); } pure UnixTimeHiRes opBinary(string op)(const ref UnixTimeHiRes other) const if (op == "-") in { static if (HiRes) { assert(this.nanos.abs < NANOS_IN_SECOND); assert(other.nanos.abs < NANOS_IN_SECOND); } } body { auto seconds = safelySubSigned(this.seconds, other.seconds); static if (HiRes) { long nanos = this.nanos - other.nanos; adjust(seconds, nanos); return UnixTimeHiRes(seconds, nanos); } else { return UnixTimeHiRes(seconds); } } @nogc pure nothrow int opCmp(const UnixTimeHiRes other) const { return this.opCmp(other); } @nogc pure nothrow int opCmp(const ref UnixTimeHiRes other) const { return this.seconds > other.seconds ? 1 : this.seconds < other.seconds ? -1 : this.nanos > other.nanos ? 1 : this.nanos < other.nanos ? -1 : 0; } } else { @nogc pure nothrow UnixTimeHiRes opCast(T)() const if (is(T == UnixTimeHiRes)) { return UnixTimeHiRes(this.seconds); } pure UnixTime opBinary(string op)(const UnixTime other) const if (op == "+") { return UnixTime(safelyAddSigned(this.seconds, other.seconds)); } pure UnixTimeHiRes opBinary(string op)(const UnixTimeHiRes other) const if (op == "+") { return opBinary!"+"(other); } pure UnixTimeHiRes opBinary(string op)(const ref UnixTimeHiRes other) const if (op == "+") { return cast(UnixTimeHiRes) this + other; } pure UnixTime opBinary(string op)(const UnixTime other) const if (op == "-") { return UnixTime(safelySubSigned(this.seconds, other.seconds)); } pure UnixTimeHiRes opBinary(string op)(const UnixTimeHiRes other) const if (op == "-") { return opBinary!"-"(other); } pure UnixTimeHiRes opBinary(string op)(const ref UnixTimeHiRes other) const if (op == "-") { return cast(UnixTimeHiRes) this - other; } @nogc pure nothrow int opCmp(const UnixTime other) const { return this.opCmp(other); } @nogc pure nothrow int opCmp(const ref UnixTime other) const { return this.seconds > other.seconds ? 1 : this.seconds < other.seconds ? -1 : 0; } } pure string toString()() const if (!HiRes) { return "%d".format(this.seconds); } pure string toString()() const if (HiRes) { return "%d.%09d".format(this.seconds, this.nanos.abs); } pure static UnixTime parse()(string timestamp) if (!HiRes) { try { return UnixTime(to!time_t(timestamp)); } catch (Exception e) { } throw new StringException("Invalid timestamp: " ~ timestamp); } pure static UnixTimeHiRes parse()(string timestamp) if (HiRes) { try { auto parts = timestamp.split("."); if (parts.length == 1) { return UnixTimeHiRes(to!time_t(parts[0])); } else if (parts.length == 2) { if (parts[0].length == 0) { parts[0] = "0"; } if (parts[1].length > 9) { parts[1] = parts[1][0..10]; } return UnixTimeHiRes(to!time_t(parts[0]), to!long(parts[1]) * 10 ^^ (9 - parts[1].length)); } } catch (Exception e) { } throw new StringException("Invalid timestamp: " ~ timestamp); } static if (HiRes) { static UnixTimeHiRes now(ClockType clockType = ClockType.REALTIME)() { return now(clockType); } static UnixTimeHiRes now(ClockType clockType = ClockType.REALTIME) { UnixTimeHiRes timestamp; clockGettime(clockType, timestamp.seconds, timestamp.nanos); return timestamp; } static UnixTimeHiRes now(clockid_t clock) { UnixTimeHiRes timestamp; clockGettime(clock, timestamp.seconds, timestamp.nanos); return timestamp; } } else { static UnixTime now(ClockType clockType = ClockType.SECOND)() { return now(clockType); } static UnixTime now(ClockType clockType = ClockType.SECOND) { UnixTime timestamp; long nanos; clockGettime(clockType, timestamp.seconds, nanos); return timestamp; } static UnixTime now(clockid_t clockId) { UnixTime timestamp; long nanos; clockGettime(clockId, timestamp.seconds, nanos); return timestamp; } } @trusted static void clockGettime(const clockid_t clockId, out time_t seconds, out long nanos) { version(linux) { timespec ts; if(clock_gettime(clockId, &ts) != 0) { throw new ErrnoException("Call to clock_gettime() failed"); } seconds = ts.tv_sec; nanos = ts.tv_nsec; } else version(FreeBSD) { timespec ts; if(clock_gettime(clockId, &ts) != 0) { throw new ErrnoException("Call to clock_gettime() failed"); } seconds = ts.tv_sec; nanos = ts.tv_nsec; } else version(EmulatedDarwin) { if (clockId == CLOCK_REALTIME) { auto elapsedNanos = (mach_absolute_time() - darwinTimeInit) * darwinTimebaseInfo.numer / darwinTimebaseInfo.denom; seconds = darwinTimespecInit.tv_sec + elapsedNanos / NANOS_IN_SECOND; nanos = darwinTimespecInit.tv_nsec + elapsedNanos % NANOS_IN_SECOND; } else if (clockId == CLOCK_MONOTONIC) { auto elapsedNanos = mach_absolute_time() * darwinTimebaseInfo.numer / darwinTimebaseInfo.denom; seconds = elapsedNanos / NANOS_IN_SECOND; nanos = elapsedNanos % NANOS_IN_SECOND; } else if (clockId == CLOCK_SECOND) { timeval tv; if(gettimeofday(&tv, null) != 0) { throw new ErrnoException("Call to gettimeofday() failed"); } seconds = tv.tv_sec; nanos = 0; } else { throw new Exception("Unsupported emulated clockid_t: " ~ to!string(clockId)); } } else { assert(false, "Unsupported OS"); } } static void clockGettime(ClockType clockType, out time_t seconds, out long nanos) { clockGettime(getArchClock(clockType), seconds, nanos); } private: static immutable enum NANOS_IN_SECOND = 1_000_000_000; static immutable enum UNIX_EPOCH_IN_STDTIME = 621_355_968_000_000_000L; static immutable enum MIN_STDTIME_IN_UNIXTIME = stdTimeToUnixTime(SysTime.min.stdTime); static immutable enum MAX_STDTIME_IN_UNIXTIME = stdTimeToUnixTime(SysTime.max.stdTime); @nogc pure nothrow static time_t stdTimeToUnixTime(long stdTime) { // Need to do some massaging to prevent underflow in this case if (stdTime < long.min + UNIX_EPOCH_IN_STDTIME) { return stdTime / 10_000_000 - UNIX_EPOCH_IN_STDTIME / 10_000_000; } else { return (stdTime - UNIX_EPOCH_IN_STDTIME) / 10_000_000; } } @nogc pure nothrow static long unixTimeToStdTime(time_t unixTime) { return unixTime * 10_000_000 + UNIX_EPOCH_IN_STDTIME; } pure static auto getArchClock(ClockType clockType) { version(linux) { final switch(clockType) { case (ClockType.REALTIME): return CLOCK_REALTIME; case (ClockType.MONOTONIC): return CLOCK_MONOTONIC; case (ClockType.SECOND): return CLOCK_REALTIME; case (ClockType.REALTIME_PRECISE): return CLOCK_REALTIME; case (ClockType.REALTIME_FAST): return CLOCK_REALTIME_COARSE; case (ClockType.MONOTONIC_FAST): return CLOCK_MONOTONIC_COARSE; case (ClockType.MONOTONIC_PRECISE): return CLOCK_MONOTONIC_RAW; case (ClockType.UPTIME): case (ClockType.UPTIME_FAST): case (ClockType.UPTIME_PRECISE): return CLOCK_BOOTTIME; } } else version (FreeBSD) { final switch(clockType) { case (ClockType.REALTIME): return CLOCK_REALTIME; case (ClockType.MONOTONIC): return CLOCK_MONOTONIC; case (ClockType.SECOND): return CLOCK_SECOND; case (ClockType.REALTIME_PRECISE): return CLOCK_REALTIME_PRECISE; case (ClockType.REALTIME_FAST): return CLOCK_REALTIME_FAST; case (ClockType.MONOTONIC_FAST): return CLOCK_MONOTONIC_FAST; case (ClockType.MONOTONIC_PRECISE): return CLOCK_MONOTONIC_PRECISE; case (ClockType.UPTIME): return CLOCK_UPTIME; case (ClockType.UPTIME_FAST): return CLOCK_UPTIME_FAST; case (ClockType.UPTIME_PRECISE): return CLOCK_UPTIME_PRECISE; } } else version (EmulatedDarwin) { final switch(clockType) { case (ClockType.REALTIME): return CLOCK_REALTIME; case (ClockType.MONOTONIC): return CLOCK_MONOTONIC; case (ClockType.SECOND): return CLOCK_SECOND; case (ClockType.REALTIME_PRECISE): case (ClockType.REALTIME_FAST): return CLOCK_REALTIME; case (ClockType.MONOTONIC_FAST): case (ClockType.MONOTONIC_PRECISE): case (ClockType.UPTIME): case (ClockType.UPTIME_FAST): case (ClockType.UPTIME_PRECISE): return CLOCK_MONOTONIC; } } else { assert(false, "Unsupported OS"); } } pure static auto safelyAddSigned(First, Remaining...)(First first, Remaining operands) { bool overflow = false; Unqual!First accumulator = first; foreach(operand; operands) { accumulator = adds(accumulator, operand, overflow); } if (overflow) { throw new Exception("Overflowed"); } return accumulator; } pure static auto safelySubSigned(First, Remaining...)(First first, Remaining operands) { bool underflow = false; Unqual!First accumulator = first; foreach(operand; operands) { accumulator = subs(accumulator, operand, underflow); } if (underflow) { throw new Exception("Underflowed"); } return accumulator; } pure static void adjust(ref time_t seconds, ref long nanos) { if (seconds > 0) { if (nanos >= NANOS_IN_SECOND) { seconds = safelyAddSigned(seconds, 1); nanos -= NANOS_IN_SECOND; } else if (nanos < 0) { seconds--; nanos += NANOS_IN_SECOND; } } else if (seconds < 0) { if (nanos <= -NANOS_IN_SECOND) { seconds = safelySubSigned(seconds, 1); nanos += NANOS_IN_SECOND; } else if (nanos > 0) { seconds++; nanos -= NANOS_IN_SECOND; } } } } version(unittest) { import core.exception : AssertError; import std.array : join; import std.stdio : write, writeln; import std.exception : assertThrown; import core.sys.posix.sys.time : gettimeofday; } @safe unittest { writeln("[UnitTest UnixTimeHiRes] - constructor"); auto time = UnixTimeHiRes(0); assert(time.seconds == 0); assert(time.nanos == 0); time = UnixTimeHiRes(500, 1); assert(time.seconds == 500); assert(time.nanos == 1); time = UnixTimeHiRes(500, -1); assert(time.seconds == 499); assert(time.nanos == 999_999_999); time = UnixTimeHiRes(-500, -1); assert(time.seconds == -500); assert(time.nanos == -1); time = UnixTimeHiRes(-500, 1); assert(time.seconds == -499); assert(time.nanos == -999_999_999); } unittest { writeln("[UnitTest UnixTimeHiRes] - constructor timeval"); timeval tv; gettimeofday(&tv, null); auto time = UnixTimeHiRes(tv); assert(time.seconds == tv.tv_sec); assert(time.nanos == tv.tv_usec * 1000); } @safe unittest { writeln("[UnitTest UnixTimeHiRes] - SysTime constructor"); auto sysTime = SysTime(UnixTimeHiRes.UNIX_EPOCH_IN_STDTIME); auto time = UnixTimeHiRes(sysTime); assert(time.seconds == 0); assert(time.nanos == 0); sysTime = SysTime(UnixTimeHiRes.UNIX_EPOCH_IN_STDTIME + 1); time = UnixTimeHiRes(sysTime); assert(time.seconds == 0); assert(time.nanos == 100); sysTime = SysTime(UnixTimeHiRes.UNIX_EPOCH_IN_STDTIME - 1); time = UnixTimeHiRes(sysTime); assert(time.seconds == 0); assert(time.nanos == -100); sysTime = SysTime(UnixTimeHiRes.UNIX_EPOCH_IN_STDTIME + 10_000_000); time = UnixTimeHiRes(sysTime); assert(time.seconds == 1); assert(time.nanos == 0); sysTime = SysTime(UnixTimeHiRes.UNIX_EPOCH_IN_STDTIME - 10_000_000); time = UnixTimeHiRes(sysTime); assert(time.seconds == -1); assert(time.nanos == 0); sysTime = SysTime.min; time = UnixTimeHiRes(sysTime); assert(time.seconds == -984472800485); assert(time.nanos == -477580800); sysTime = SysTime.max; time = UnixTimeHiRes(sysTime); assert(time.seconds == 860201606885); assert(time.nanos == 477580700); } @safe unittest { writeln("[UnitTest UnixTimeHiRes] - parse"); auto time = UnixTimeHiRes.parse("0"); assert(time.seconds == 0); assert(time.nanos == 0); time = UnixTimeHiRes.parse("12345"); assert(time.seconds == 12345); assert(time.nanos == 0); time = UnixTimeHiRes.parse("12345.12345"); assert(time.seconds == 12345); assert(time.nanos == 123450000); time = UnixTimeHiRes.parse("0.999999999"); assert(time.seconds == 0); assert(time.nanos == 999_999_999); time = UnixTimeHiRes.parse("0.000000001"); assert(time.seconds == 0); assert(time.nanos == 1); time = UnixTimeHiRes.parse("0.000000000"); assert(time.seconds == 0); assert(time.nanos == 0); time = UnixTimeHiRes.parse("0.0000000009"); assert(time.seconds == 0); assert(time.nanos == 0); time = UnixTimeHiRes.parse(".9"); assert(time.seconds == 0); assert(time.nanos == 900_000_000); assertThrown!StringException(UnixTimeHiRes.parse("")); assertThrown!StringException(UnixTimeHiRes.parse("a")); assertThrown!StringException(UnixTimeHiRes.parse("0.1.2")); assertThrown!StringException(UnixTimeHiRes.parse("123..7")); static if (is(time_t == int)) { assertThrown!StringException(UnixTimeHiRes.parse("2147483648")); } else if (is(time_t == long)) { assertThrown!StringException(UnixTimeHiRes.parse("9223372036854775808")); } else { assert(false, "Unknown type for time_t. Must be int or long"); } } //@safe - assertThrow!AssertError not safe unittest { writeln("[UnitTest UnixTimeHiRes] - opAdd"); // Normal case, no overflow of either seconds or nanos auto sum = UnixTimeHiRes(1000, 1000) + UnixTimeHiRes(1000, 1000); assert(sum.seconds == 2000); assert(sum.nanos == 2000); // Overflow of nanos sum = UnixTimeHiRes(1000, 1000) + UnixTimeHiRes(1000, 999_999_999); assert(sum.seconds == 2001); assert(sum.nanos == 999); // Assertion failure when lhs nanos is >= NANOS_IN_SECOND auto time = UnixTimeHiRes(0, 0); time.nanos = UnixTimeHiRes.NANOS_IN_SECOND; assertThrown!AssertError(time + UnixTimeHiRes(0, 0)); assertThrown!AssertError(UnixTimeHiRes(0, 0) + time); // Boundary, just on overflow, no nanos overflow sum = UnixTimeHiRes(time_t.max - 1000) + UnixTimeHiRes(1000); assert(sum.seconds == time_t.max); assert(sum.nanos == 0); // Overflow of seconds assertThrown!Exception(UnixTimeHiRes(time_t.max - 999) + UnixTimeHiRes(1000)); // Overflow of nanos causing overflow of seconds assertThrown!Exception(UnixTimeHiRes(time_t.max - 1000, 500) + UnixTimeHiRes(1000, 999_999_500)); // Underflow of seconds assertThrown!Exception(UnixTimeHiRes(time_t.min) + UnixTimeHiRes(-1)); // Sum min and max times sum = UnixTimeHiRes(time_t.min, -999_999_999) + UnixTimeHiRes(time_t.max, 999_999_999); assert(sum.seconds == -1); assert(sum.nanos == 0); // Sum min times assertThrown!Exception(UnixTimeHiRes(time_t.min, -999_999_999) + UnixTimeHiRes(time_t.min, -999_999_999)); // Positive to negative sum = UnixTimeHiRes(0, 500) + UnixTimeHiRes(0, -1000); assert(sum.seconds == 0); assert(sum.nanos == -500); // Negative to positive sum = UnixTimeHiRes(0, -500) + UnixTimeHiRes(0, 1000); assert(sum.seconds == 0); assert(sum.nanos == 500); // Positive to zero sum = UnixTimeHiRes(1, -999_999_999) + UnixTimeHiRes(0, -1); assert(sum.seconds == 0); assert(sum.nanos == 0); } //@safe - assertThrow!AssertError not safe unittest { writeln("[UnitTest UnixTimeHiRes] - opSub"); // Normal case, no underflow of either seconds or nanos auto diff = UnixTimeHiRes(2000, 2000) - UnixTimeHiRes(1000, 1000); assert(diff.seconds == 1000); assert(diff.nanos == 1000); // Underflow of nanos diff = UnixTimeHiRes(2000, 2000) - UnixTimeHiRes(1000, 999_999_999); assert(diff.seconds == 999); assert(diff.nanos == 2001); // Assertion failure when lhs nanos is >= NANOS_IN_SECOND auto time = UnixTimeHiRes(0, 0); time.nanos = UnixTimeHiRes.NANOS_IN_SECOND; assertThrown!AssertError(time - UnixTimeHiRes(0, 0)); assertThrown!AssertError(UnixTimeHiRes(0, 0) - time); // Boundary, just on underflow, no nanos underflow diff = UnixTimeHiRes(time_t.min + 1000) - UnixTimeHiRes(1000); assert(diff.seconds == time_t.min); assert(diff.nanos == 0); // Underflow of seconds assertThrown!Exception(UnixTimeHiRes(time_t.min + 999) - UnixTimeHiRes(1000)); // Underflow of nanos causing underflow of seconds assertThrown!Exception(UnixTimeHiRes(time_t.min + 1000, -500) - UnixTimeHiRes(1000, 999_999_500)); // Diff max and max times diff = UnixTimeHiRes(time_t.max, 999_999_999) - UnixTimeHiRes(time_t.max, 999_999_999); assert(diff.seconds == 0); assert(diff.nanos == 0); // Positive to negative diff = UnixTimeHiRes(0, 500) - UnixTimeHiRes(0, 1000); assert(diff.seconds == 0); assert(diff.nanos == -500); // Negative to positive diff = UnixTimeHiRes(0, -500) - UnixTimeHiRes(0, -1000); assert(diff.seconds == 0); assert(diff.nanos == 500); // Negative to zero diff = UnixTimeHiRes(-1, 999_999_999) - UnixTimeHiRes(0, -1); assert(diff.seconds == 0); assert(diff.nanos == 0); } @safe unittest { writeln("[UnitTest UnixTimeHiRes] - opCast Systime"); enum hnsecsToUnixEpoch = UnixTime.unixTimeToStdTime(0); auto time = UnixTimeHiRes(0, 0); SysTime systime = cast(SysTime)time; assert(systime.toUnixTime() == 0); assert(systime.stdTime == hnsecsToUnixEpoch); time = UnixTimeHiRes(0, 999_999_999); systime = cast(SysTime)time; assert(systime.toUnixTime() == time.seconds); assert(systime.stdTime == hnsecsToUnixEpoch + convert!("nsecs", "hnsecs")(time.nanos)); time = UnixTimeHiRes(5_000, 0); systime = cast(SysTime)time; assert(systime.toUnixTime() == time.seconds); assert(systime.stdTime == hnsecsToUnixEpoch + convert!("seconds", "hnsecs")(time.seconds)); time = UnixTimeHiRes(1_470_014_173, 172_399); systime = cast(SysTime)time; assert(systime.toUnixTime() == time.seconds); assert(systime.stdTime == hnsecsToUnixEpoch + convert!("seconds", "hnsecs")(time.seconds) + convert!("nsecs", "hnsecs")(time.nanos)); time = UnixTimeHiRes(SysTime.max().toUnixTime(), 0); systime = cast(SysTime)time; assert(systime.toUnixTime() == time.seconds); assert(systime.stdTime == hnsecsToUnixEpoch + convert!("seconds", "hnsecs")(time.seconds)); time = UnixTimeHiRes(SysTime.max().toUnixTime(), SysTime.max().fracSecs.split!("seconds", "nsecs")().nsecs); systime = cast(SysTime)time; assert(systime.toUnixTime() == time.seconds); assert(systime.stdTime == hnsecsToUnixEpoch + convert!("seconds", "hnsecs")(time.seconds) + convert!("nsecs", "hnsecs")(time.nanos)); time = UnixTimeHiRes(SysTime.min().toUnixTime(), 0); systime = cast(SysTime)time; assert(systime.toUnixTime() == time.seconds); //TODO fix when phobos bug fixed //assert(systime.stdTime == hnsecsToUnixEpoch - convert!("seconds", "hnsecs")(time.seconds)); //time = UnixTimeHiRes(SysTime.min().toUnixTime(), SysTime.min().fracSecs.split!("seconds", "nsecs")().nanos); //systime = cast(SysTime)time; //assert(systime.toUnixTime() == time.seconds); //assert(systime.stdTime == hnsecsToUnixEpoch - convert!("seconds", "hnsecs")(time.seconds) - convert!("nsecs", "hnsecs")(time.nanos)); } @safe unittest { writeln("[UnitTest UnixTimeHiRes] - opCast time_t"); auto time = UnixTimeHiRes(0, 0); assert(cast(time_t)time == 0); time = UnixTimeHiRes(time_t.max, 999_999_999); assert(cast(time_t)time == time_t.max); time = UnixTimeHiRes(time_t.min, -999_999_999); assert(cast(time_t)time == time_t.min); } @safe unittest { writeln("[UnitTest UnixTimeHiRes] - templated now"); cast(void) UnixTimeHiRes.now!(ClockType.SECOND)(); cast(void) UnixTimeHiRes.now!(ClockType.REALTIME)(); cast(void) UnixTimeHiRes.now!(ClockType.REALTIME_FAST)(); cast(void) UnixTimeHiRes.now!(ClockType.REALTIME_PRECISE)(); cast(void) UnixTimeHiRes.now!(ClockType.MONOTONIC)(); cast(void) UnixTimeHiRes.now!(ClockType.MONOTONIC_FAST)(); cast(void) UnixTimeHiRes.now!(ClockType.MONOTONIC_PRECISE)(); cast(void) UnixTimeHiRes.now!(ClockType.UPTIME)(); cast(void) UnixTimeHiRes.now!(ClockType.UPTIME_FAST)(); cast(void) UnixTimeHiRes.now!(ClockType.UPTIME_PRECISE)(); } @safe unittest { writeln("[UnitTest UnixTimeHiRes] - now"); cast(void) UnixTimeHiRes.now(ClockType.SECOND); cast(void) UnixTimeHiRes.now(ClockType.REALTIME); cast(void) UnixTimeHiRes.now(ClockType.REALTIME_FAST); cast(void) UnixTimeHiRes.now(ClockType.REALTIME_PRECISE); cast(void) UnixTimeHiRes.now(ClockType.MONOTONIC); cast(void) UnixTimeHiRes.now(ClockType.MONOTONIC_FAST); cast(void) UnixTimeHiRes.now(ClockType.MONOTONIC_PRECISE); cast(void) UnixTimeHiRes.now(ClockType.UPTIME); cast(void) UnixTimeHiRes.now(ClockType.UPTIME_FAST); cast(void) UnixTimeHiRes.now(ClockType.UPTIME_PRECISE); } @safe unittest { writeln("[UnitTest UnixTimeHiRes] - toString"); assert(UnixTimeHiRes(0).toString() == "0.000000000"); assert(UnixTimeHiRes(-100).toString() == "-100.000000000"); assert(UnixTimeHiRes(-100, 1).toString() == "-99.999999999"); assert(UnixTimeHiRes(-100, -1).toString() == "-100.000000001"); assert(UnixTimeHiRes(-100, 999999999).toString() == "-99.000000001"); assert(UnixTimeHiRes(-100, -999999999).toString() == "-100.999999999"); assert(UnixTimeHiRes(100).toString() == "100.000000000"); assert(UnixTimeHiRes(100, 1).toString() == "100.000000001"); assert(UnixTimeHiRes(100, -1).toString() == "99.999999999"); assert(UnixTimeHiRes(100, 999999999).toString() == "100.999999999"); assert(UnixTimeHiRes(100, -999999999).toString() == "99.000000001"); } @safe unittest { writeln("[UnitTest UnixTimeHiRes] - now with clock_id"); // Invalid clockid_t assertThrown!Exception(UnixTimeHiRes.now(-1)); cast(void) UnixTimeHiRes.now(CLOCK_REALTIME); } @safe unittest { writeln("[UnitTest UnixTimeHiRes] - opCmp"); assert(UnixTimeHiRes(1) > UnixTimeHiRes(0)); assert(UnixTimeHiRes(1) == UnixTimeHiRes(1)); assert(UnixTimeHiRes(1) < UnixTimeHiRes(2)); assert(UnixTimeHiRes(-1) > UnixTimeHiRes(-2)); assert(UnixTimeHiRes(-1) == UnixTimeHiRes(-1)); assert(UnixTimeHiRes(-1) < UnixTimeHiRes(0)); assert(UnixTimeHiRes(1, 1) > UnixTimeHiRes(1, 0)); assert(UnixTimeHiRes(1, 1) == UnixTimeHiRes(1, 1)); assert(UnixTimeHiRes(1, 1) < UnixTimeHiRes(1, 2)); assert(UnixTimeHiRes(-1, -1) > UnixTimeHiRes(-1, -2)); assert(UnixTimeHiRes(-1, -1) == UnixTimeHiRes(-1, -1)); assert(UnixTimeHiRes(-1, -1) < UnixTimeHiRes(-1, 0)); } @safe unittest { writeln("[UnitTest UnixTime] - constructor"); auto time = UnixTime(0); assert(time.seconds == 0); time = UnixTime(500); assert(time.seconds == 500); time = UnixTime(-500); assert(time.seconds == -500); } unittest { writeln("UnitTest UnixTime] - constructor timeval"); timeval tv; gettimeofday(&tv, null); auto time = UnixTime(tv); assert(time.seconds == tv.tv_sec); } @safe unittest { writeln("[UnitTest UnixTime] - SysTime constructor"); auto sysTime = SysTime(UnixTime.UNIX_EPOCH_IN_STDTIME); auto time = UnixTime(sysTime); assert(time.seconds == 0); sysTime = SysTime(UnixTime.UNIX_EPOCH_IN_STDTIME + 1); time = UnixTime(sysTime); assert(time.seconds == 0); sysTime = SysTime(UnixTime.UNIX_EPOCH_IN_STDTIME - 1); time = UnixTime(sysTime); assert(time.seconds == 0); sysTime = SysTime(UnixTime.UNIX_EPOCH_IN_STDTIME + 10_000_000); time = UnixTime(sysTime); assert(time.seconds == 1); sysTime = SysTime(UnixTime.UNIX_EPOCH_IN_STDTIME - 10_000_000); time = UnixTime(sysTime); assert(time.seconds == -1); sysTime = SysTime.min; time = UnixTime(sysTime); assert(time.seconds == -984472800485); sysTime = SysTime.max; time = UnixTime(sysTime); assert(time.seconds == 860201606885); } @safe unittest { writeln("[UnixTest UnixTime] - parse"); assert(UnixTime.parse("0") == UnixTime(0)); assert(UnixTime.parse("-0") == UnixTime(0)); assert(UnixTime.parse("1") == UnixTime(1)); assert(UnixTime.parse("-1") == UnixTime(-1)); } @safe unittest { writeln("[UnitTest UnixTime] - opAdd"); assert(UnixTime(0) + UnixTime(100) == UnixTime(100)); assert(UnixTime(0) + UnixTime(-100) == UnixTime(-100)); assert(UnixTime(100) + UnixTime(100) == UnixTime(200)); assert(UnixTime(100) + UnixTime(-100) == UnixTime(0)); assert(UnixTime(-100) + UnixTime(100) == UnixTime(0)); assert(UnixTime(-100) + UnixTime(-100) == UnixTime(-200)); assert(UnixTime(0) + UnixTime(time_t.max) == UnixTime(time_t.max)); assert(UnixTime(0) + UnixTime(time_t.min) == UnixTime(time_t.min)); assert(UnixTime(-1) + UnixTime(-time_t.max) == UnixTime(time_t.min)); assertThrown!Exception(UnixTime(time_t.max) + UnixTime(1)); assertThrown!Exception(UnixTime(1) + UnixTime(time_t.max)); assertThrown!Exception(UnixTime(time_t.min) + UnixTime(-1)); assertThrown!Exception(UnixTime(-1) + UnixTime(time_t.min)); } @safe unittest { writeln("[UnitTest UnixTime] - opSub"); assert(UnixTime(0) - UnixTime(100) == UnixTime(-100)); assert(UnixTime(0) - UnixTime(-100) == UnixTime(100)); assert(UnixTime(100) - UnixTime(100) == UnixTime(0)); assert(UnixTime(100) - UnixTime(-100) == UnixTime(200)); assert(UnixTime(-100) - UnixTime(100) == UnixTime(-200)); assert(UnixTime(-100) - UnixTime(-100) == UnixTime(0)); assert(UnixTime(0) - UnixTime(time_t.max) == UnixTime(time_t.min + 1)); assert(UnixTime(-1) - UnixTime(time_t.min) == UnixTime(time_t.max)); assert(UnixTime(-1) - UnixTime(time_t.max) == UnixTime(time_t.min)); assertThrown!Exception(UnixTime(time_t.min) - UnixTime(1)); assertThrown!Exception(UnixTime(1) - UnixTime(time_t.min)); assertThrown!Exception(UnixTime(time_t.max) - UnixTime(-1)); assertThrown!Exception(UnixTime(-2) - UnixTime(time_t.max)); } @safe unittest { writeln("[UnitTest UnixTime] - opAdd mixed"); assert(UnixTime(0) + UnixTimeHiRes(0) == UnixTimeHiRes(0)); assert(UnixTime(123) + UnixTimeHiRes(123, 123) == UnixTimeHiRes(246, 123)); assert(UnixTime(-123) + UnixTimeHiRes(123, 123) == UnixTimeHiRes(0, 123)); assert(UnixTimeHiRes(0) + UnixTime(0) == UnixTimeHiRes(0)); assert(UnixTimeHiRes(123, 123) + UnixTime(123) == UnixTimeHiRes(246, 123)); assert(UnixTimeHiRes(123, 123) + UnixTime(-123) == UnixTimeHiRes(0, 123)); } @safe unittest { writeln("[UnitTest UnixTime] - opSub mixed"); assert(UnixTime.Epoch - UnixTimeHiRes.Epoch == UnixTimeHiRes(0)); assert(UnixTime(123) - UnixTimeHiRes(123, 123) == UnixTimeHiRes(0, -123)); assert(UnixTime(-123) - UnixTimeHiRes(123, 123) == UnixTimeHiRes(-246, -123)); assert(UnixTimeHiRes(0) - UnixTime(0) == UnixTimeHiRes(0)); assert(UnixTimeHiRes(123, 123) - UnixTime(123) == UnixTimeHiRes(0, 123)); assert(UnixTimeHiRes(123, 123) - UnixTime(-123) == UnixTimeHiRes(246, 123)); } @safe unittest { writeln("[UnitTest UnixTime] - opCast Systime"); enum hnsecsToUnixEpoch = UnixTime.unixTimeToStdTime(0); auto time = UnixTime(0); SysTime systime = cast(SysTime)time; assert(systime.toUnixTime() == 0); assert(systime.stdTime == hnsecsToUnixEpoch); time = UnixTime(5_000); systime = cast(SysTime)time; assert(systime.toUnixTime() == time.seconds); assert(systime.stdTime == hnsecsToUnixEpoch + convert!("seconds", "hnsecs")(time.seconds)); time = UnixTime(1_470_014_173); systime = cast(SysTime)time; assert(systime.toUnixTime() == time.seconds); assert(systime.stdTime == hnsecsToUnixEpoch + convert!("seconds", "hnsecs")(time.seconds)); time = UnixTime(SysTime.max().toUnixTime()); systime = cast(SysTime)time; assert(systime.toUnixTime() == time.seconds); assert(systime.stdTime == hnsecsToUnixEpoch + convert!("seconds", "hnsecs")(time.seconds)); time = UnixTime(SysTime.max().toUnixTime()); systime = cast(SysTime)time; assert(systime.toUnixTime() == time.seconds); assert(systime.stdTime == hnsecsToUnixEpoch + convert!("seconds", "hnsecs")(time.seconds)); time = UnixTime(SysTime.min().toUnixTime()); systime = cast(SysTime)time; assert(systime.toUnixTime() == time.seconds); //TODO fix when phobos bug fixed //assert(systime.stdTime == hnsecsToUnixEpoch - convert!("seconds", "hnsecs")(time.seconds)); //time = UnixTime(SysTime.min().toUnixTime()); //systime = cast(SysTime)time; //assert(systime.toUnixTime() == time.seconds); //assert(systime.stdTime == hnsecsToUnixEpoch - convert!("seconds", "hnsecs")(time.seconds)); } @safe unittest { writeln("[UnitTest UnixTime] - opCast time_t"); auto time = UnixTime(0); assert(cast(time_t)time == 0); time = UnixTime(time_t.max); assert(cast(time_t)time == time_t.max); time = UnixTime(time_t.min); assert(cast(time_t)time == time_t.min); } @safe unittest { writeln("[UnitTest UnixTime] - templated now"); cast(void) UnixTime.now!(ClockType.SECOND)(); cast(void) UnixTime.now!(ClockType.REALTIME)(); cast(void) UnixTime.now!(ClockType.REALTIME_FAST)(); cast(void) UnixTime.now!(ClockType.REALTIME_PRECISE)(); cast(void) UnixTime.now!(ClockType.MONOTONIC)(); cast(void) UnixTime.now!(ClockType.MONOTONIC_FAST)(); cast(void) UnixTime.now!(ClockType.MONOTONIC_PRECISE)(); cast(void) UnixTime.now!(ClockType.UPTIME)(); cast(void) UnixTime.now!(ClockType.UPTIME_FAST)(); cast(void) UnixTime.now!(ClockType.UPTIME_PRECISE)(); } @safe unittest { writeln("[UnitTest UnixTime] - now"); cast(void) UnixTime.now(ClockType.SECOND); cast(void) UnixTime.now(ClockType.REALTIME); cast(void) UnixTime.now(ClockType.REALTIME_FAST); cast(void) UnixTime.now(ClockType.REALTIME_PRECISE); cast(void) UnixTime.now(ClockType.MONOTONIC); cast(void) UnixTime.now(ClockType.MONOTONIC_FAST); cast(void) UnixTime.now(ClockType.MONOTONIC_PRECISE); cast(void) UnixTime.now(ClockType.UPTIME); cast(void) UnixTime.now(ClockType.UPTIME_FAST); cast(void) UnixTime.now(ClockType.UPTIME_PRECISE); } @safe unittest { writeln("[UnitTest UnixTime] - toString"); assert(UnixTime.Epoch.toString() == "0"); assert(UnixTime(100).toString() == "100"); assert(UnixTime(-100).toString() == "-100"); } @safe unittest { writeln("[UnitTest UnixTime] - now with clock_id"); // Invalid clockid_t assertThrown!Exception(UnixTime.now(-1)); cast(void) UnixTime.now(CLOCK_REALTIME); } @safe unittest { writeln("[UnitTest UnixTime] - opCmp"); assert(UnixTime(1) > UnixTime(0)); assert(UnixTime(1) == UnixTime(1)); assert(UnixTime(1) < UnixTime(2)); assert(UnixTime(-1) > UnixTime(-2)); assert(UnixTime(-1) == UnixTime(-1)); assert(UnixTime(-1) < UnixTime(0)); }
D
# FIXED HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/common/hal_assert.c HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/inc/hal_assert.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_types.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/../_common/cc26xx/_hal_types.h HAL/Common/hal_assert.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdint.h HAL/Common/hal_assert.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/stdint.h HAL/Common/hal_assert.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/cdefs.h HAL/Common/hal_assert.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_types.h HAL/Common/hal_assert.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_types.h HAL/Common/hal_assert.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_stdint.h HAL/Common/hal_assert.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_stdint.h HAL/Common/hal_assert.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdbool.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/inc/hal_defs.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_types.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/inc/hal_board.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_board_cfg.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_mcu.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_types.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/hw_nvic.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/hw_ints.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/hw_types.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/../inc/hw_chip_def.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/hw_gpio.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/hw_memmap.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/systick.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/debug.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/interrupt.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/cpu.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_cpu_scs.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../driverlib/rom.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/uart.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_uart.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/gpio.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/flash.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_flash.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_aon_pmctl.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_fcfg1.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/ioc.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_ioc.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/icall/src/inc/icall.h HAL/Common/hal_assert.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdlib.h HAL/Common/hal_assert.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/_ti_config.h HAL/Common/hal_assert.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/linkage.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_types.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/common/cc26xx/onboard.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/sys_ctrl.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_sysctl.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_prcm.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_aon_ioc.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_ddi_0_osc.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_rfc_pwr.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_adi_3_refsys.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_aon_rtc.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/pwr_ctrl.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_adi_2_refsys.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/osc.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_ddi.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/ddi.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_aux_smph.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/prcm.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/aon_ioc.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/adi.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_adi.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/vims.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_vims.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/inc/hal_sleep.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/osal/src/inc/osal.h HAL/Common/hal_assert.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/limits.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/osal/src/inc/comdef.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_types.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/osal/src/inc/osal_memory.h HAL/Common/hal_assert.obj: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/osal/src/inc/osal_timers.h C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/common/hal_assert.c: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/inc/hal_assert.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_types.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/../_common/cc26xx/_hal_types.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdint.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/stdint.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/cdefs.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_types.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_types.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_stdint.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_stdint.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdbool.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/inc/hal_defs.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_types.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/inc/hal_board.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_board_cfg.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_mcu.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_types.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/hw_nvic.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/hw_ints.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/hw_types.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/../inc/hw_chip_def.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/hw_gpio.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/inc/hw_memmap.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/systick.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/debug.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/interrupt.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/cpu.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_cpu_scs.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../driverlib/rom.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/uart.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_uart.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/gpio.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/flash.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_flash.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_aon_pmctl.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_fcfg1.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/ioc.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_ioc.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/icall/src/inc/icall.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdlib.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/_ti_config.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/linkage.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_types.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/common/cc26xx/onboard.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/sys_ctrl.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_sysctl.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_prcm.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_aon_ioc.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_ddi_0_osc.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_rfc_pwr.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_adi_3_refsys.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_aon_rtc.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/pwr_ctrl.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_adi_2_refsys.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/osc.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_ddi.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/ddi.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_aux_smph.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/prcm.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/aon_ioc.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/adi.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_adi.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/vims.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/devices/cc13x2_cc26x2_v1/driverlib/../inc/hw_vims.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/inc/hal_sleep.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/osal/src/inc/osal.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/limits.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/osal/src/inc/comdef.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/hal/src/target/_common/hal_types.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/osal/src/inc/osal_memory.h: C:/ti/simplelink_cc26x2_sdk_2_30_00_34/source/ti/ble5stack/osal/src/inc/osal_timers.h:
D
territory ruled by a prince
D