code
stringlengths
3
10M
language
stringclasses
31 values
/home/fisher/PROJECTS/intro_to_rust/03-Guessing_Game/target/debug/build/rand-b82e8e48909e54da/build_script_build-b82e8e48909e54da: /home/fisher/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/build.rs /home/fisher/PROJECTS/intro_to_rust/03-Guessing_Game/target/debug/build/rand-b82e8e48909e54da/build_script_build-b82e8e48909e54da.d: /home/fisher/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/build.rs /home/fisher/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/build.rs:
D
instance Mod_7257_TPL_Templer_MT (Npc_Default) { //-------- primary data -------- name = Name_Templer; npctype = NPCTYPE_MAIN; guild = GIL_out; level = 17; voice = 13; id = 7257; //-------- abilities -------- attribute[ATR_STRENGTH] = 130; attribute[ATR_DEXTERITY] = 65; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 244; attribute[ATR_HITPOINTS] = 244; //-------- visuals -------- // animations Mdl_SetVisual (self,"HUMANS.MDS"); Mdl_ApplyOverlayMds (self,"Humans_Militia.mds"); // Body-Mesh Body-Tex Skin-Color Head-MMS Head-Tex Teeth-Tex Armor-Tex Mdl_SetVisualBody (self,"hum_body_Naked0", 1, 1 ,"Hum_Head_Psionic", 61 , 1, TPL_ARMOR_L); Mdl_SetModelFatness(self,0); fight_tactic = FAI_HUMAN_STRONG; //-------- Talente -------- Npc_SetTalentSkill (self, NPC_TALENT_2H,1); //-------- inventory -------- EquipItem (self, ItMw_2H_Sword_Light_02); //-------------Daily Routine------------- daily_routine = Rtn_start_7257; }; FUNC VOID Rtn_Start_7257 () { TA_Stand_Guarding (07,45,23,45,"OW_PATH_198_ORCGRAVEYARD6"); TA_Stand_Guarding (23,45,07,45,"OW_PATH_198_ORCGRAVEYARD6"); }; FUNC VOID Rtn_Tot_7257() { TA_Stand_WP (08,00,20,00,"TOT"); TA_Stand_WP (20,00,08,00,"TOT"); };
D
/** Copyright: Copyright (c) 2015-2017 Andrey Penechko. License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Andrey Penechko. */ module voxelman.movement.plugin; import voxelman.log; import voxelman.math; import pluginlib; import voxelman.core.events; import voxelman.config.configmanager : ConfigOption, ConfigManager; import voxelman.block.plugin; import voxelman.dbg.plugin; import voxelman.eventdispatcher.plugin; import voxelman.graphics.plugin; import voxelman.gui.plugin; import voxelman.input.plugin; import voxelman.input.keybindingmanager; import voxelman.world.clientworld; import voxelman.text.textformatter; class MovementPlugin : IPlugin { EventDispatcherPlugin evDispatcher; GraphicsPlugin graphics; GuiPlugin guiPlugin; InputPlugin input; BlockPluginClient blockPlugin; ClientWorld clientWorld; Debugger dbg; ConfigOption fpsCameraSpeedOpt; ConfigOption fpsCameraBoostOpt; ConfigOption flightCameraSpeedOpt; ConfigOption flightCameraBoostOpt; bool onGround; bool isFlying; bool noclip; float eyesHeight = 1.7; float height = 1.75; float radius = 0.25; float friction = 0.9; float jumpHeight = 1.5; float jumpTime = 0.3; // calculated each tick from jumpHeight and jumpTime float gravity = 1; float jumpSpeed = 1; // ditto vec3 speed = vec3(0,0,0); float maxFallSpeed = 100; float airSpeed = 2; mixin IdAndSemverFrom!"voxelman.movement.plugininfo"; override void registerResources(IResourceManagerRegistry resmanRegistry) { auto keyBindingMan = resmanRegistry.getResourceManager!KeyBindingManager; keyBindingMan.registerKeyBinding(new KeyBinding(KeyCode.KEY_W, "key.forward")); keyBindingMan.registerKeyBinding(new KeyBinding(KeyCode.KEY_A, "key.left")); keyBindingMan.registerKeyBinding(new KeyBinding(KeyCode.KEY_S, "key.backward")); keyBindingMan.registerKeyBinding(new KeyBinding(KeyCode.KEY_D, "key.right")); keyBindingMan.registerKeyBinding(new KeyBinding(KeyCode.KEY_SPACE, "key.up")); keyBindingMan.registerKeyBinding(new KeyBinding(KeyCode.KEY_LEFT_CONTROL, "key.down")); keyBindingMan.registerKeyBinding(new KeyBinding(KeyCode.KEY_LEFT_SHIFT, "key.fast")); keyBindingMan.registerKeyBinding(new KeyBinding(KeyCode.KEY_KP_ADD, "key.speed_up", null, &speedUp)); keyBindingMan.registerKeyBinding(new KeyBinding(KeyCode.KEY_KP_SUBTRACT, "key.speed_down", null, &speedDown)); keyBindingMan.registerKeyBinding(new KeyBinding(KeyCode.KEY_F, "key.fly", null, &toggleFlying)); keyBindingMan.registerKeyBinding(new KeyBinding(KeyCode.KEY_N, "key.noclip", null, &toggleNoclip)); ConfigManager config = resmanRegistry.getResourceManager!ConfigManager; fpsCameraSpeedOpt = config.registerOption!int("fps_camera_speed", 5); fpsCameraBoostOpt = config.registerOption!int("fps_camera_boost", 2); flightCameraSpeedOpt = config.registerOption!int("flight_camera_speed", 20); flightCameraBoostOpt = config.registerOption!int("flight_camera_boost", 5); dbg = resmanRegistry.getResourceManager!Debugger; } override void init(IPluginManager pluginman) { evDispatcher = pluginman.getPlugin!EventDispatcherPlugin; graphics = pluginman.getPlugin!GraphicsPlugin; guiPlugin = pluginman.getPlugin!GuiPlugin; input = pluginman.getPlugin!InputPlugin; clientWorld = pluginman.getPlugin!ClientWorld; blockPlugin = pluginman.getPlugin!BlockPluginClient; auto debugClient = pluginman.getPlugin!DebugClient; debugClient.registerDebugGuiHandler(&showDebugSettings, SETTINGS_ORDER, "Movement"); evDispatcher.subscribeToEvent(&onPreUpdateEvent); evDispatcher.subscribeToEvent(&onPostUpdateEvent); } void speedUp(string) { if (isFlying) flightCameraSpeedOpt.set(clamp(flightCameraSpeedOpt.get!uint + 1, 1, 200)); else fpsCameraSpeedOpt.set(clamp(fpsCameraSpeedOpt.get!uint + 1, 1, 100)); } void speedDown(string) { if (isFlying) flightCameraSpeedOpt.set(clamp(flightCameraSpeedOpt.get!uint - 1, 1, 200)); else fpsCameraSpeedOpt.set(clamp(fpsCameraSpeedOpt.get!uint - 1, 1, 100)); } void toggleFlying(string) { isFlying = !isFlying; } void toggleNoclip(string) { noclip = !noclip; } void onPreUpdateEvent(ref PreUpdateEvent event) { if(guiPlugin.mouseLocked) handleMouse(); if (isCurrentChunkLoaded()) { gravity = (2*jumpHeight/(jumpTime*jumpTime)); jumpSpeed = sqrt(2*gravity*jumpHeight); float delta = clamp(event.deltaTime, 0, 2); vec3 eyesDelta = vec3(0, eyesHeight, 0); vec3 legsPos = graphics.camera.position - eyesDelta; vec3 targetDelta; if (isFlying) targetDelta = handleFlight(speed, delta); else targetDelta = handleWalk(speed, delta); vec3 newLegsPos; if (noclip) newLegsPos = legsPos + targetDelta; else newLegsPos = movePlayer(legsPos, targetDelta, delta); graphics.camera.position = newLegsPos + eyesDelta; graphics.camera.isUpdated = false; } } private void onPostUpdateEvent(ref PostUpdateEvent event) { dbg.setVar("On ground", onGround); dbg.setVar("Speed", speed.length); dbg.setVar("Loaded", isCurrentChunkLoaded()); } private void showDebugSettings() { //igCheckbox("[F]ly mode", &isFlying); //igCheckbox("[N]oclip", &noclip); } bool isCurrentChunkLoaded() { bool inBorders = clientWorld .currentDimensionBorders .contains(clientWorld.observerPosition.ivector3); bool chunkLoaded = clientWorld .chunkManager .isChunkLoaded(clientWorld.observerPosition); return chunkLoaded || (!inBorders); } // returns position delta vec3 handleWalk(ref vec3 speed, float dt) { InputState state = gatherInputs(); vec3 inputSpeed = vec3(0,0,0); vec3 inputAccel = vec3(0,0,0); uint cameraSpeed = fpsCameraSpeedOpt.get!uint; if (state.boost) cameraSpeed *= fpsCameraBoostOpt.get!uint; vec3 horInputs = vec3(state.inputs.x, 0, state.inputs.z); if (horInputs != vec3(0,0,0)) horInputs.normalize(); vec3 cameraMovement = toCameraCoordinateSystem(horInputs); if (onGround) { speed = vec3(0,0,0); if (state.jump) { speed.y = jumpSpeed; onGround = false; } if (dt > 0) { inputAccel.x = cameraMovement.x / dt; inputAccel.z = cameraMovement.z / dt; } inputAccel *= cameraSpeed; } else { inputSpeed = cameraMovement * airSpeed; } vec3 accel = vec3(0, -gravity, 0) + inputAccel; vec3 airFrictionAccel = vec3(0, limitingFriction(std_abs(speed.y), accel.y, maxFallSpeed), 0); vec3 fullAcceleration = airFrictionAccel + accel; speed += fullAcceleration * dt; vec3 targetDelta = (speed + inputSpeed) * dt; return targetDelta; } vec3 handleFlight(ref vec3 speed, float dt) { InputState state = gatherInputs(); uint cameraSpeed = flightCameraSpeedOpt.get!uint; if (state.boost) cameraSpeed *= flightCameraBoostOpt.get!uint; vec3 inputs = vec3(state.inputs); if (inputs != vec3(0,0,0)) inputs.normalize(); vec3 inputSpeed = toCameraCoordinateSystem(inputs); inputSpeed *= cameraSpeed; vec3 targetDelta = inputSpeed * dt; return targetDelta; } static struct InputState { ivec3 inputs = ivec3(0,0,0); bool boost; bool jump; bool hasHoriInput; } InputState gatherInputs() { InputState state; if(guiPlugin.mouseLocked) { if(input.isKeyPressed("key.fast")) state.boost = true; if(input.isKeyPressed("key.right")) { state.inputs.x = 1; state.hasHoriInput = true; } else if(input.isKeyPressed("key.left")) { state.inputs.x = -1; state.hasHoriInput = true; } if(input.isKeyPressed("key.forward")) { state.inputs.z = 1; state.hasHoriInput = true; } else if(input.isKeyPressed("key.backward")) { state.inputs.z = -1; state.hasHoriInput = true; } if(input.isKeyPressed("key.up")) { state.inputs.y = 1; state.jump = true; } else if(input.isKeyPressed("key.down")) state.inputs.y = -1; } return state; } void handleMouse() { ivec2 mousePos = input.mousePosition; mousePos -= cast(ivec2)(guiPlugin.window.size) / 2; // scale, so up and left is positive, as rotation is anti-clockwise // and coordinate system is right-hand and -z if forward mousePos *= -1; if(mousePos.x !=0 || mousePos.y !=0) { graphics.camera.rotate(vec2(mousePos)); } input.mousePosition = cast(ivec2)(guiPlugin.window.size) / 2; } vec3 toCameraCoordinateSystem(vec3 vector) { vec3 rightVec = graphics.camera.rotationQuatHor.rotate(vec3(1,0,0)); vec3 targetVec = graphics.camera.rotationQuatHor.rotate(vec3(0,0,-1)); return rightVec * vector.x + vec3(0,1,0) * vector.y + targetVec * vector.z; } vec3 movePlayer(vec3 pos, vec3 delta, float dt) { float distance = delta.length; int num_steps = cast(int)ceil(distance * 2); // num cells moved if (num_steps == 0) return pos; vec3 move_step = delta / num_steps; onGround = false; foreach(i; 0..num_steps) { pos += move_step; vec3 speed_mult = collide(pos, radius, height); speed *= speed_mult; } return pos; } vec3 collide(ref vec3 point, float radius, float height) { ivec3 cell = ivec3(floor(point.x), floor(point.y), floor(point.z)); vec3 speed_mult = vec3(1, 1, 1); Aabb body_aabb = Aabb(point+vec3(0, height/2, 0), vec3(radius, height/2, radius)); foreach(dy; -1..ceil(height+1)) { foreach(dx; [0, -1, 1]) { foreach(dz; [0, -1, 1]) { ivec3 local_cell = cell + ivec3(dx, dy, dz); if (clientWorld.isBlockSolid(local_cell)) { Aabb cell_aabb = Aabb(vec3(local_cell) + vec3(0.5,0.5,0.5), vec3(0.5,0.5,0.5)); bool collides = cell_aabb.collides(body_aabb); if (collides) { vec3 vector = cell_aabb.intersectionSize(body_aabb); int min_component; if (vector.x < vector.y) { if (vector.x < vector.z) min_component = 0; else min_component = 2; } else { if (vector.y < vector.z) min_component = 1; else min_component = 2; } if (min_component == 0) // x { int dir = cell_aabb.pos.x < body_aabb.pos.x ? 1 : -1; body_aabb.pos.x = body_aabb.pos.x + vector.x * dir; speed_mult.x = 0; } else if (min_component == 1) // y { int dir = cell_aabb.pos.y < body_aabb.pos.y ? 1 : -1; body_aabb.pos.y = body_aabb.pos.y + vector.y * dir; speed_mult.y = 0; if (dir == 1) { onGround = true; } } else // z { int dir = cell_aabb.pos.z < body_aabb.pos.z ? 1 : -1; body_aabb.pos.z = body_aabb.pos.z + vector.z * dir; speed_mult.z = 0; } } } } } } point.x = body_aabb.pos.x; point.z = body_aabb.pos.z; point.y = body_aabb.pos.y - body_aabb.size.y; return speed_mult; } } V limitingFriction(V)(V currentSpeed, V currentAcceleration, float maxSpeed) { float speedScalar = currentSpeed.length; float frictionMult = speedScalar / maxSpeed; V frictionAcceleraion = -currentAcceleration * frictionMult; return frictionAcceleraion; } float limitingFriction(float currentSpeed, float currentAcceleration, float maxSpeed) { float frictionMult = currentSpeed / maxSpeed; float frictionAcceleraion = -currentAcceleration * frictionMult; return frictionAcceleraion; } struct Aabb { vec3 pos; vec3 size; // returns collides, vector bool collides(Aabb other) { vec3 delta = (other.pos - pos).abs; vec3 min_distance = size + other.size; return delta.x < min_distance.x && delta.y < min_distance.y && delta.z < min_distance.z; } vec3 intersectionSize(Aabb other) { float x = pos.x - size.x; float y = pos.y - size.y; float z = pos.z - size.z; float x2 = x + size.x*2; float y2 = y + size.y*2; float z2 = z + size.z*2; float o_x = other.pos.x - other.size.x; float o_y = other.pos.y - other.size.y; float o_z = other.pos.z - other.size.z; float o_x2 = o_x + other.size.x*2; float o_y2 = o_y + other.size.y*2; float o_z2 = o_z + other.size.z*2; float x_min = max(x, o_x); float y_min = max(y, o_y); float z_min = max(z, o_z); float x_max = min(x2, o_x2); float y_max = min(y2, o_y2); float z_max = min(z2, o_z2); return vec3(x_max - x_min, y_max - y_min, z_max - z_min); } }
D
instance VLK_521_Buddler(Npc_Default) { name[0] = NAME_Buddler; npcType = npctype_ambient; guild = GIL_VLK; level = 2; voice = 2; id = 521; attribute[ATR_STRENGTH] = 25; attribute[ATR_DEXTERITY] = 20; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 94; attribute[ATR_HITPOINTS] = 94; Mdl_SetVisual(self,"HUMANS.MDS"); Mdl_ApplyOverlayMds(self,"Humans_Tired.mds"); Mdl_SetVisualBody(self,"hum_body_Naked0",2,1,"Hum_Head_Thief",67,1,-1); B_Scale(self); Mdl_SetModelFatness(self,0); fight_tactic = FAI_HUMAN_COWARD; EquipItem(self,ItMw_1H_Club_01); CreateInvItem(self,ItFoApple); daily_routine = Rtn_start_521; }; func void Rtn_start_521() { TA_Sleep(22,30,7,0,"OCR_HUT_45"); TA_Smalltalk(7,0,11,0,"OCR_OUTSIDE_HUT_47_SMALT2"); TA_RepairHut(11,0,13,0,"OCR_OUTSIDE_HUT_45"); TA_Smalltalk(13,0,16,0,"OCR_OUTSIDE_HUT_47_SMALT2"); TA_PlayTune(16,0,22,30,"OCR_OUTSIDE_HUT_48"); };
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-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/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.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.root.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 ? cast(ForeachStatement)aggrfe.syntaxCopy() : null, rangefe ? cast(ForeachRangeStatement)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 == TOK.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); } 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; 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))); auto 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(); 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.typeSemantic(aloc, sc)).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(); aggrfe.aggr = aggrfe.aggr.optimize(WANTvalue); auto tab = aggrfe.aggr.type.toBasetype(); if (tab.ty != Ttuple) { aggrfe.aggr = aggrfe.aggr.ctfeInterpret(); } } 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 Condition 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_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 Condition 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) { 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.instantiatingModule() : 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
/** * <hr /> * $(B Evanescent Applications: ) SUDOKU * * $(BR) * * Authors: Uwe Keller * License: MIT * * Version: 0.1.1 - April 2010 */ module evanescent.apps.sudoku.solver.transform.ISatTransformation; private import evanescent.deescover.core.Solver; private import evanescent.apps.sudoku.core.Puzzle; private import evanescent.apps.sudoku.solver.transform.PropositionalSignature; /** * Common interface for various transformations of * puzzles to SAT problems. * * A sat transformation takes a puzzle and converts it * into a propositional theory (that is adequate for the * purpose of the computation to be performed later on by * the SAT solver) * * The symbols to be used for representing the puzzle * are managed by a propositional signature. The signature * must be set before the transformation is invoked. * * The propositional theory is directly stored in a * SAT solver that has been set as the target solver before * the transformation is started. * * Authors: Uwe Keller */ interface ISatTransformation { /** * Sets the target solver in which to store the * generated propositional theory * * Params: * satSolver = the target solver working on the generated problem later on */ public void setTargetSolver(Solver satSolver); /** * Sets the propositional signature to be used during the transformation * Params: * signature = the propositional symbols to be used for representing the * properties of the puzzle formally */ public void setSignature(PropositionalSignature signature); /** * Transform a puzzle into a propositional theory * Params: * p = the puzzle to be transformed to a SAT problem */ public void transform(Puzzle p); /** * Reconstructs a puzzle from the model represented in the * SAT solver (if any). If the solver did not yet compute * a model, the result will be a puzzle object but typically * not represent a solution to the puzzle * * Returns: * the puzzle that corresponds to the propositional model * found by the SAT solver (if any). */ public Puzzle solution(); }
D
module android.java.java.net.URISyntaxException; public import android.java.java.net.URISyntaxException_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!URISyntaxException; import import4 = android.java.java.lang.Class; import import3 = android.java.java.lang.StackTraceElement; import import0 = android.java.java.lang.JavaThrowable;
D
var int Brian_ItemsGiven_Chapter_1; var int Brian_ItemsGiven_Chapter_2; var int Brian_ItemsGiven_Chapter_3; var int Brian_ItemsGiven_Chapter_4; var int Brian_ItemsGiven_Chapter_5; var int Brian_ItemsGiven_JoinGuild; func void B_GiveTradeInv_Brian(var C_Npc slf) { if((Kapitel >= 1) && (Brian_ItemsGiven_Chapter_1 == FALSE)) { CreateInvItems(slf,ItMi_Gold,20); CreateInvItems(slf,ItMiSwordraw,3); Brian_ItemsGiven_Chapter_1 = TRUE; }; if((Kapitel >= 1) && (Brian_ItemsGiven_JoinGuild == FALSE) && hero.guild != GIL_NONE) { CreateInvItems(slf,ItMi_Gold,20); CreateInvItems(slf,ItMiSwordraw,2); Brian_ItemsGiven_JoinGuild = TRUE; }; if((Kapitel >= 2) && (Brian_ItemsGiven_Chapter_2 == FALSE)) { CreateInvItems(slf,ItMi_Gold,20); CreateInvItems(slf,ItMiSwordraw,3); Brian_ItemsGiven_Chapter_2 = TRUE; }; if((Kapitel >= 3) && (Brian_ItemsGiven_Chapter_3 == FALSE)) { CreateInvItems(slf,ItMi_Gold,20); CreateInvItems(slf,ItMiSwordraw,3); Brian_ItemsGiven_Chapter_3 = TRUE; }; if((Kapitel >= 4) && (Brian_ItemsGiven_Chapter_4 == FALSE)) { CreateInvItems(slf,ItMi_Gold,20); CreateInvItems(slf,ItMiSwordraw,3); Brian_ItemsGiven_Chapter_4 = TRUE; }; if((Kapitel >= 5) && (Brian_ItemsGiven_Chapter_5 == FALSE)) { CreateInvItems(slf,ItMi_Gold,40); CreateInvItems(slf,ItMiSwordraw,3); Brian_ItemsGiven_Chapter_5 = TRUE; }; };
D
/* TEST_OUTPUT: --- fail_compilation/attributediagnostic.d(24): Error: `@safe` function `attributediagnostic.layer2` cannot call `@system` function `attributediagnostic.layer1` fail_compilation/attributediagnostic.d(26): which calls `attributediagnostic.layer0` fail_compilation/attributediagnostic.d(28): which calls `attributediagnostic.system` fail_compilation/attributediagnostic.d(30): which wasn't inferred `@safe` because of: fail_compilation/attributediagnostic.d(30): `asm` statement is assumed to be `@system` - mark it with `@trusted` if it is not fail_compilation/attributediagnostic.d(25): `attributediagnostic.layer1` is declared here fail_compilation/attributediagnostic.d(46): Error: `@safe` function `D main` cannot call `@system` function `attributediagnostic.system1` fail_compilation/attributediagnostic.d(35): which wasn't inferred `@safe` because of: fail_compilation/attributediagnostic.d(35): cast from `uint` to `int*` not allowed in safe code fail_compilation/attributediagnostic.d(33): `attributediagnostic.system1` is declared here fail_compilation/attributediagnostic.d(47): Error: `@safe` function `D main` cannot call `@system` function `attributediagnostic.system2` fail_compilation/attributediagnostic.d(41): which wasn't inferred `@safe` because of: fail_compilation/attributediagnostic.d(41): `@safe` function `system2` cannot call `@system` `fsys` fail_compilation/attributediagnostic.d(39): `attributediagnostic.system2` is declared here --- */ // Issue 17374 - Improve inferred attribute error message // https://issues.dlang.org/show_bug.cgi?id=17374 auto layer2() @safe { layer1(); } auto layer1() { layer0(); } auto layer0() { system(); } auto system() { asm {} } auto system1() { int* x = cast(int*) 0xDEADBEEF; } auto fsys = function void() @system {}; auto system2() { fsys(); } void main() @safe { system1(); system2(); }
D
/** * D header file for C99. * * $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/_assert.h.html, _assert.h) * * License: Distributed under the * $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0). * (See accompanying file LICENSE) * Source: $(DRUNTIMESRC core/stdc/_assert_.d) * Standards: ISO/IEC 9899:1999 (E) */ /**************************** * These are the various functions called by the assert() macro. * They are all noreturn functions, although D doesn't have a specific attribute for that. */ module core.stdc.assert_; extern (C): @trusted: nothrow: @nogc: version (CRuntime_DigitalMars) { /*** * Assert failure function in the Digital Mars C library. */ void _assert(const(void)* exp, const(void)* file, uint line); } else version (CRuntime_Microsoft) { /*** * Assert failure function in the Microsoft C library. * `_assert` is not in assert.h, but it is in the library. */ void _wassert(const(wchar)* exp, const(wchar)* file, uint line); /// void _assert(const(char)* exp, const(char)* file, uint line); } else version (OSX) { /*** * Assert failure function in the OSX C library. */ void __assert_rtn(const(char)* func, const(char)* file, uint line, const(char)* exp); } else version (FreeBSD) { /*** * Assert failure function in the FreeBSD C library. */ void __assert(const(char)* exp, const(char)* file, uint line); } else version (DragonFlyBSD) { /*** * Assert failure function in the DragonFlyBSD C library. */ void __assert(const(char)* exp, const(char)* file, uint line); } else version (CRuntime_Glibc) { /*** * Assert failure functions in the GLIBC library. */ void __assert(const(char)* exp, const(char)* file, uint line); /// void __assert_fail(const(char)* exp, const(char)* file, uint line, const(char)* func); /// void __assert_perror_fail(int errnum, const(char)* file, uint line, const(char)* func); } else version (CRuntime_Bionic) { void __assert(const(char)* __file, int __line, const(char)* __msg); } else version (CRuntime_Musl) { /*** * Assert failure function in the Musl C library. */ void __assert_fail(const(char)* exp, const(char)* file, uint line, const(char)* func); } else version (CRuntime_UClibc) { void __assert(const(char)* exp, const(char)* file, uint line, const(char)* func); } else version (Solaris) { void __assert_c99(const(char)* exp, const(char)* file, uint line, const(char)* func); } else { static assert(0); }
D
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.0 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ module SWIGTYPE_p_p_vtkCellData; static import vtkd_im; class SWIGTYPE_p_p_vtkCellData { private void* swigCPtr; public this(void* cObject, bool futureUse) { swigCPtr = cObject; } protected this() { swigCPtr = null; } public static void* swigGetCPtr(SWIGTYPE_p_p_vtkCellData obj) { return (obj is null) ? null : obj.swigCPtr; } mixin vtkd_im.SwigOperatorDefinitions; }
D
void main() { runSolver(); } void problem() { auto N = scan!int; auto solve() { return format("%02d:%02d", 21 + N/60, N%60); } outputForAtCoder(&solve); } // ---------------------------------------------- import std; T[][] combinations(T)(T[] s, in long m) { if (!m) return [[]]; if (s.empty) return []; return s[1 .. $].combinations(m - 1).map!(x => s[0] ~ x).array ~ s[1 .. $].combinations(m); } string scan(){ static string[] ss; while(!ss.length) ss = readln.chomp.split; string res = ss[0]; ss.popFront; return res; } T scan(T)(){ return scan.to!T; } T[] scan(T)(long n){ return n.iota.map!(i => scan!T()).array; } void deb(T ...)(T t){ debug writeln(t); } long[] divisors(long n) { long[] ret; for (long i = 1; i * i <= n; i++) { if (n % i == 0) { ret ~= i; if (i * i != n) ret ~= n / i; } } return ret.sort.array; } bool chmin(T)(ref T a, T b) { if (b < a) { a = b; return true; } else return false; } bool chmax(T)(ref T a, T b) { if (b > a) { a = b; return true; } else return false; } string charSort(alias S = "a < b")(string s) { return (cast(char[])((cast(byte[])s).sort!S.array)).to!string; } ulong comb(ulong a, ulong b) { if (b == 0) {return 1;}else{return comb(a - 1, b - 1) * a / b;}} string toAnswerString(R)(R r) { return r.map!"a.to!string".joiner(" ").array.to!string; } struct ModInt(uint MD) if (MD < int.max) {ulong v;this(string v) {this(v.to!long);}this(int v) {this(long(v));}this(long v) {this.v = (v%MD+MD)%MD;}void opAssign(long t) {v = (t%MD+MD)%MD;}static auto normS(ulong x) {return (x<MD)?x:x-MD;}static auto make(ulong x) {ModInt m; m.v = x; return m;}auto opBinary(string op:"+")(ModInt r) const {return make(normS(v+r.v));}auto opBinary(string op:"-")(ModInt r) const {return make(normS(v+MD-r.v));}auto opBinary(string op:"*")(ModInt r) const {return make((ulong(v)*r.v%MD).to!ulong);}auto opBinary(string op:"^^", T)(T r) const {long x=v;long y=1;while(r){if(r%2==1)y=(y*x)%MD;x=x^^2%MD;r/=2;} return make(y);}auto opBinary(string op:"/")(ModInt r) const {return this*memoize!inv(r);}static ModInt inv(ModInt x) {return x^^(MD-2);}string toString() const {return v.to!string;}auto opOpAssign(string op)(ModInt r) {return mixin ("this=this"~op~"r");}} alias MInt1 = ModInt!(10^^9 + 7); alias MInt9 = ModInt!(998_244_353); void outputForAtCoder(T)(T delegate() fn) { static if (is(T == float) || is(T == double) || is(T == real)) "%.16f".writefln(fn()); else static if (is(T == void)) fn(); else static if (is(T == string)) fn().writeln; else static if (isInputRange!T) { static if (!is(string == ElementType!T) && isInputRange!(ElementType!T)) foreach(r; fn()) r.toAnswerString.writeln; else foreach(r; fn()) r.writeln; } else fn().writeln; } void runSolver() { static import std.datetime.stopwatch; enum BORDER = "=================================="; debug { BORDER.writeln; while(!stdin.eof) { "<<< Process time: %s >>>".writefln(std.datetime.stopwatch.benchmark!problem(1)); BORDER.writeln; } } else problem(); } enum YESNO = [true: "Yes", false: "No"]; // -----------------------------------------------
D
/* Copyright (c) 2022-2023 Timur Gafarov Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following: The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /** * Copyright: Timur Gafarov 2022-2023. * License: $(LINK2 boost.org/LICENSE_1_0.txt, Boost License 1.0). * Authors: Timur Gafarov */ module dlib.audio.io; import std.path: extension; import dlib.audio.sound; public { import dlib.audio.io.wav; } class SoundLoadException: Exception { this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null) { super(msg, file, line, next); } } /** * Saves a sound to file, selects encoder by filename extension */ void saveSound(GenericSound snd, string filename) { switch(filename.extension) { case ".wav", ".WAV": snd.saveWAV(filename); break; default: assert(0, "Sound I/O error: unsupported sound format or illegal extension"); } } /** * Loads sound from a file, selects decoder by filename extension */ GenericSound loadSound(string filename) { switch(filename.extension) { case ".wav", ".WAV": return loadWAV(filename); default: assert(0, "Sound I/O error: unsupported sound format or illegal extension"); } }
D
module android.java.android.graphics.drawable.shapes.ArcShape_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import5 = android.java.android.graphics.drawable.shapes.Shape_d_interface; import import4 = android.java.android.graphics.drawable.shapes.RectShape_d_interface; import import0 = android.java.android.graphics.Canvas_d_interface; import import3 = android.java.android.graphics.drawable.shapes.ArcShape_d_interface; import import6 = android.java.java.lang.Class_d_interface; import import2 = android.java.android.graphics.Outline_d_interface; import import1 = android.java.android.graphics.Paint_d_interface; final class ArcShape : IJavaObject { static immutable string[] _d_canCastTo = [ ]; @Import this(float, float); @Import float getStartAngle(); @Import float getSweepAngle(); @Import void draw(import0.Canvas, import1.Paint); @Import void getOutline(import2.Outline); @Import import3.ArcShape clone(); @Import bool equals(IJavaObject); @Import int hashCode(); @Import float getWidth(); @Import float getHeight(); @Import void resize(float, float); @Import bool hasAlpha(); @Import import6.Class getClass(); @Import @JavaName("toString") string toString_(); override string toString() { return arsd.jni.javaObjectToString(this); } @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 = "Landroid/graphics/drawable/shapes/ArcShape;"; }
D
/** * Compiler implementation of the * $(LINK2 http://www.dlang.org, D programming language). * * Copyright: Copyright (C) 1999-2019 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/dcast.d, _dcast.d) * Documentation: https://dlang.org/phobos/dmd_dcast.html * Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/dcast.d */ module dmd.dcast; import core.stdc.stdio; import core.stdc.string; import dmd.aggregate; import dmd.aliasthis; import dmd.arrayop; import dmd.arraytypes; import dmd.dclass; import dmd.declaration; import dmd.dscope; import dmd.dstruct; import dmd.dsymbol; import dmd.errors; import dmd.escape; import dmd.expression; import dmd.expressionsem; import dmd.func; import dmd.globals; import dmd.impcnvtab; import dmd.id; import dmd.init; import dmd.intrange; import dmd.mtype; import dmd.opover; import dmd.root.ctfloat; import dmd.root.outbuffer; import dmd.root.rmem; import dmd.tokens; import dmd.typesem; import dmd.utf; import dmd.visitor; enum LOG = false; /************************************** * Do an implicit cast. * Issue error if it can't be done. */ Expression implicitCastTo(Expression e, Scope* sc, Type t) { extern (C++) final class ImplicitCastTo : Visitor { alias visit = Visitor.visit; public: Type t; Scope* sc; Expression result; extern (D) this(Scope* sc, Type t) { this.sc = sc; this.t = t; } override void visit(Expression e) { //printf("Expression.implicitCastTo(%s of type %s) => %s\n", e.toChars(), e.type.toChars(), t.toChars()); MATCH match = e.implicitConvTo(t); if (match) { if (match == MATCH.constant && (e.type.constConv(t) || !e.isLvalue() && e.type.equivalent(t))) { /* Do not emit CastExp for const conversions and * unique conversions on rvalue. */ result = e.copy(); result.type = t; return; } auto ad = isAggregate(e.type); if (ad && ad.aliasthis) { MATCH adMatch; if (ad.type.ty == Tstruct) adMatch = (cast(TypeStruct)(ad.type)).implicitConvToWithoutAliasThis(t); else adMatch = (cast(TypeClass)(ad.type)).implicitConvToWithoutAliasThis(t); if (!adMatch) { Type tob = t.toBasetype(); Type t1b = e.type.toBasetype(); AggregateDeclaration toad = isAggregate(tob); if (ad != toad) { if (t1b.ty == Tclass && tob.ty == Tclass) { ClassDeclaration t1cd = t1b.isClassHandle(); ClassDeclaration tocd = tob.isClassHandle(); int offset; if (tocd.isBaseOf(t1cd, &offset)) { result = new CastExp(e.loc, e, t); result.type = t; return; } } /* Forward the cast to our alias this member, rewrite to: * cast(to)e1.aliasthis */ result = resolveAliasThis(sc, e); result = result.castTo(sc, t); return; } } } result = e.castTo(sc, t); return; } result = e.optimize(WANTvalue); if (result != e) { result.accept(this); return; } if (t.ty != Terror && e.type.ty != Terror) { if (!t.deco) { e.error("forward reference to type `%s`", t.toChars()); } else { //printf("type %p ty %d deco %p\n", type, type.ty, type.deco); //type = type.typeSemantic(loc, sc); //printf("type %s t %s\n", type.deco, t.deco); auto ts = toAutoQualChars(e.type, t); e.error("cannot implicitly convert expression `%s` of type `%s` to `%s`", e.toChars(), ts[0], ts[1]); } } result = new ErrorExp(); } override void visit(StringExp e) { //printf("StringExp::implicitCastTo(%s of type %s) => %s\n", e.toChars(), e.type.toChars(), t.toChars()); visit(cast(Expression)e); if (result.op == TOK.string_) { // Retain polysemous nature if it started out that way (cast(StringExp)result).committed = e.committed; } } override void visit(ErrorExp e) { result = e; } override void visit(FuncExp e) { //printf("FuncExp::implicitCastTo type = %p %s, t = %s\n", e.type, e.type ? e.type.toChars() : NULL, t.toChars()); FuncExp fe; if (e.matchType(t, sc, &fe) > MATCH.nomatch) { result = fe; return; } visit(cast(Expression)e); } override void visit(ArrayLiteralExp e) { visit(cast(Expression)e); Type tb = result.type.toBasetype(); if (tb.ty == Tarray && global.params.useTypeInfo && Type.dtypeinfo) semanticTypeInfo(sc, (cast(TypeDArray)tb).next); } override void visit(SliceExp e) { visit(cast(Expression)e); if (result.op != TOK.slice) return; e = cast(SliceExp)result; if (e.e1.op == TOK.arrayLiteral) { ArrayLiteralExp ale = cast(ArrayLiteralExp)e.e1; Type tb = t.toBasetype(); Type tx; if (tb.ty == Tsarray) tx = tb.nextOf().sarrayOf(ale.elements ? ale.elements.dim : 0); else tx = tb.nextOf().arrayOf(); e.e1 = ale.implicitCastTo(sc, tx); } } } scope ImplicitCastTo v = new ImplicitCastTo(sc, t); e.accept(v); return v.result; } /******************************************* * Return MATCH level of implicitly converting e to type t. * Don't do the actual cast; don't change e. */ MATCH implicitConvTo(Expression e, Type t) { extern (C++) final class ImplicitConvTo : Visitor { alias visit = Visitor.visit; public: Type t; MATCH result; extern (D) this(Type t) { this.t = t; result = MATCH.nomatch; } override void visit(Expression e) { version (none) { printf("Expression::implicitConvTo(this=%s, type=%s, t=%s)\n", e.toChars(), e.type.toChars(), t.toChars()); } //static int nest; if (++nest == 10) assert(0); if (t == Type.terror) return; if (!e.type) { e.error("`%s` is not an expression", e.toChars()); e.type = Type.terror; } Expression ex = e.optimize(WANTvalue); if (ex.type.equals(t)) { result = MATCH.exact; return; } if (ex != e) { //printf("\toptimized to %s of type %s\n", e.toChars(), e.type.toChars()); result = ex.implicitConvTo(t); return; } MATCH match = e.type.implicitConvTo(t); if (match != MATCH.nomatch) { result = match; return; } /* See if we can do integral narrowing conversions */ if (e.type.isintegral() && t.isintegral() && e.type.isTypeBasic() && t.isTypeBasic()) { IntRange src = getIntRange(e); IntRange target = IntRange.fromType(t); if (target.contains(src)) { result = MATCH.convert; return; } } } /****** * Given expression e of type t, see if we can implicitly convert e * to type tprime, where tprime is type t with mod bits added. * Returns: * match level */ static MATCH implicitMod(Expression e, Type t, MOD mod) { Type tprime; if (t.ty == Tpointer) tprime = t.nextOf().castMod(mod).pointerTo(); else if (t.ty == Tarray) tprime = t.nextOf().castMod(mod).arrayOf(); else if (t.ty == Tsarray) tprime = t.nextOf().castMod(mod).sarrayOf(t.size() / t.nextOf().size()); else tprime = t.castMod(mod); return e.implicitConvTo(tprime); } static MATCH implicitConvToAddMin(BinExp e, Type t) { /* Is this (ptr +- offset)? If so, then ask ptr * if the conversion can be done. * This is to support doing things like implicitly converting a mutable unique * pointer to an immutable pointer. */ Type tb = t.toBasetype(); Type typeb = e.type.toBasetype(); if (typeb.ty != Tpointer || tb.ty != Tpointer) return MATCH.nomatch; Type t1b = e.e1.type.toBasetype(); Type t2b = e.e2.type.toBasetype(); if (t1b.ty == Tpointer && t2b.isintegral() && t1b.equivalent(tb)) { // ptr + offset // ptr - offset MATCH m = e.e1.implicitConvTo(t); return (m > MATCH.constant) ? MATCH.constant : m; } if (t2b.ty == Tpointer && t1b.isintegral() && t2b.equivalent(tb)) { // offset + ptr MATCH m = e.e2.implicitConvTo(t); return (m > MATCH.constant) ? MATCH.constant : m; } return MATCH.nomatch; } override void visit(AddExp e) { version (none) { printf("AddExp::implicitConvTo(this=%s, type=%s, t=%s)\n", e.toChars(), e.type.toChars(), t.toChars()); } visit(cast(Expression)e); if (result == MATCH.nomatch) result = implicitConvToAddMin(e, t); } override void visit(MinExp e) { version (none) { printf("MinExp::implicitConvTo(this=%s, type=%s, t=%s)\n", e.toChars(), e.type.toChars(), t.toChars()); } visit(cast(Expression)e); if (result == MATCH.nomatch) result = implicitConvToAddMin(e, t); } override void visit(IntegerExp e) { version (none) { printf("IntegerExp::implicitConvTo(this=%s, type=%s, t=%s)\n", e.toChars(), e.type.toChars(), t.toChars()); } MATCH m = e.type.implicitConvTo(t); if (m >= MATCH.constant) { result = m; return; } TY ty = e.type.toBasetype().ty; TY toty = t.toBasetype().ty; TY oldty = ty; if (m == MATCH.nomatch && t.ty == Tenum) return; if (t.ty == Tvector) { TypeVector tv = cast(TypeVector)t; TypeBasic tb = tv.elementType(); if (tb.ty == Tvoid) return; toty = tb.ty; } switch (ty) { case Tbool: case Tint8: case Tchar: case Tuns8: case Tint16: case Tuns16: case Twchar: ty = Tint32; break; case Tdchar: ty = Tuns32; break; default: break; } // Only allow conversion if no change in value immutable dinteger_t value = e.toInteger(); bool isLosslesslyConvertibleToFP(T)() { if (e.type.isunsigned()) { const f = cast(T) value; return cast(dinteger_t) f == value; } const f = cast(T) cast(sinteger_t) value; return cast(sinteger_t) f == cast(sinteger_t) value; } switch (toty) { case Tbool: if ((value & 1) != value) return; break; case Tint8: if (ty == Tuns64 && value & ~0x7FU) return; else if (cast(byte)value != value) return; break; case Tchar: if ((oldty == Twchar || oldty == Tdchar) && value > 0x7F) return; goto case Tuns8; case Tuns8: //printf("value = %llu %llu\n", (dinteger_t)(unsigned char)value, value); if (cast(ubyte)value != value) return; break; case Tint16: if (ty == Tuns64 && value & ~0x7FFFU) return; else if (cast(short)value != value) return; break; case Twchar: if (oldty == Tdchar && value > 0xD7FF && value < 0xE000) return; goto case Tuns16; case Tuns16: if (cast(ushort)value != value) return; break; case Tint32: if (ty == Tuns32) { } else if (ty == Tuns64 && value & ~0x7FFFFFFFU) return; else if (cast(int)value != value) return; break; case Tuns32: if (ty == Tint32) { } else if (cast(uint)value != value) return; break; case Tdchar: if (value > 0x10FFFFU) return; break; case Tfloat32: if (!isLosslesslyConvertibleToFP!float) return; break; case Tfloat64: if (!isLosslesslyConvertibleToFP!double) return; break; case Tfloat80: if (!isLosslesslyConvertibleToFP!real_t) return; break; case Tpointer: //printf("type = %s\n", type.toBasetype()->toChars()); //printf("t = %s\n", t.toBasetype()->toChars()); if (ty == Tpointer && e.type.toBasetype().nextOf().ty == t.toBasetype().nextOf().ty) { /* Allow things like: * const char* P = cast(char *)3; * char* q = P; */ break; } goto default; default: visit(cast(Expression)e); return; } //printf("MATCH.convert\n"); result = MATCH.convert; } override void visit(ErrorExp e) { // no match } override void visit(NullExp e) { version (none) { printf("NullExp::implicitConvTo(this=%s, type=%s, t=%s, committed = %d)\n", e.toChars(), e.type.toChars(), t.toChars(), e.committed); } if (e.type.equals(t)) { result = MATCH.exact; return; } /* Allow implicit conversions from immutable to mutable|const, * and mutable to immutable. It works because, after all, a null * doesn't actually point to anything. */ if (t.equivalent(e.type)) { result = MATCH.constant; return; } visit(cast(Expression)e); } override void visit(StructLiteralExp e) { version (none) { printf("StructLiteralExp::implicitConvTo(this=%s, type=%s, t=%s)\n", e.toChars(), e.type.toChars(), t.toChars()); } visit(cast(Expression)e); if (result != MATCH.nomatch) return; if (e.type.ty == t.ty && e.type.ty == Tstruct && (cast(TypeStruct)e.type).sym == (cast(TypeStruct)t).sym) { result = MATCH.constant; for (size_t i = 0; i < e.elements.dim; i++) { Expression el = (*e.elements)[i]; if (!el) continue; Type te = e.sd.fields[i].type.addMod(t.mod); MATCH m2 = el.implicitConvTo(te); //printf("\t%s => %s, match = %d\n", el.toChars(), te.toChars(), m2); if (m2 < result) result = m2; } } } override void visit(StringExp e) { version (none) { printf("StringExp::implicitConvTo(this=%s, committed=%d, type=%s, t=%s)\n", e.toChars(), e.committed, e.type.toChars(), t.toChars()); } if (!e.committed && t.ty == Tpointer && t.nextOf().ty == Tvoid) return; if (!(e.type.ty == Tsarray || e.type.ty == Tarray || e.type.ty == Tpointer)) return visit(cast(Expression)e); TY tyn = e.type.nextOf().ty; if (!(tyn == Tchar || tyn == Twchar || tyn == Tdchar)) return visit(cast(Expression)e); switch (t.ty) { case Tsarray: if (e.type.ty == Tsarray) { TY tynto = t.nextOf().ty; if (tynto == tyn) { if ((cast(TypeSArray)e.type).dim.toInteger() == (cast(TypeSArray)t).dim.toInteger()) { result = MATCH.exact; } return; } if (tynto == Tchar || tynto == Twchar || tynto == Tdchar) { if (e.committed && tynto != tyn) return; size_t fromlen = e.numberOfCodeUnits(tynto); size_t tolen = cast(size_t)(cast(TypeSArray)t).dim.toInteger(); if (tolen < fromlen) return; if (tolen != fromlen) { // implicit length extending result = MATCH.convert; return; } } if (!e.committed && (tynto == Tchar || tynto == Twchar || tynto == Tdchar)) { result = MATCH.exact; return; } } else if (e.type.ty == Tarray) { TY tynto = t.nextOf().ty; if (tynto == Tchar || tynto == Twchar || tynto == Tdchar) { if (e.committed && tynto != tyn) return; size_t fromlen = e.numberOfCodeUnits(tynto); size_t tolen = cast(size_t)(cast(TypeSArray)t).dim.toInteger(); if (tolen < fromlen) return; if (tolen != fromlen) { // implicit length extending result = MATCH.convert; return; } } if (tynto == tyn) { result = MATCH.exact; return; } if (!e.committed && (tynto == Tchar || tynto == Twchar || tynto == Tdchar)) { result = MATCH.exact; return; } } goto case; /+ fall through +/ case Tarray: case Tpointer: Type tn = t.nextOf(); MATCH m = MATCH.exact; if (e.type.nextOf().mod != tn.mod) { // https://issues.dlang.org/show_bug.cgi?id=16183 if (!tn.isConst() && !tn.isImmutable()) return; m = MATCH.constant; } if (!e.committed) { switch (tn.ty) { case Tchar: if (e.postfix == 'w' || e.postfix == 'd') m = MATCH.convert; result = m; return; case Twchar: if (e.postfix != 'w') m = MATCH.convert; result = m; return; case Tdchar: if (e.postfix != 'd') m = MATCH.convert; result = m; return; case Tenum: if ((cast(TypeEnum)tn).sym.isSpecial()) { /* Allow string literal -> const(wchar_t)[] */ if (TypeBasic tob = tn.toBasetype().isTypeBasic()) result = tn.implicitConvTo(tob); return; } break; default: break; } } break; default: break; } visit(cast(Expression)e); } override void visit(ArrayLiteralExp e) { version (none) { printf("ArrayLiteralExp::implicitConvTo(this=%s, type=%s, t=%s)\n", e.toChars(), e.type.toChars(), t.toChars()); } Type tb = t.toBasetype(); Type typeb = e.type.toBasetype(); if ((tb.ty == Tarray || tb.ty == Tsarray) && (typeb.ty == Tarray || typeb.ty == Tsarray)) { result = MATCH.exact; Type typen = typeb.nextOf().toBasetype(); if (tb.ty == Tsarray) { TypeSArray tsa = cast(TypeSArray)tb; if (e.elements.dim != tsa.dim.toInteger()) result = MATCH.nomatch; } Type telement = tb.nextOf(); if (!e.elements.dim) { if (typen.ty != Tvoid) result = typen.implicitConvTo(telement); } else { if (e.basis) { MATCH m = e.basis.implicitConvTo(telement); if (m < result) result = m; } for (size_t i = 0; i < e.elements.dim; i++) { Expression el = (*e.elements)[i]; if (result == MATCH.nomatch) break; if (!el) continue; MATCH m = el.implicitConvTo(telement); if (m < result) result = m; // remember worst match } } if (!result) result = e.type.implicitConvTo(t); return; } else if (tb.ty == Tvector && (typeb.ty == Tarray || typeb.ty == Tsarray)) { result = MATCH.exact; // Convert array literal to vector type TypeVector tv = cast(TypeVector)tb; TypeSArray tbase = cast(TypeSArray)tv.basetype; assert(tbase.ty == Tsarray); const edim = e.elements.dim; const tbasedim = tbase.dim.toInteger(); if (edim > tbasedim) { result = MATCH.nomatch; return; } Type telement = tv.elementType(); if (edim < tbasedim) { Expression el = typeb.nextOf.defaultInitLiteral(e.loc); MATCH m = el.implicitConvTo(telement); if (m < result) result = m; // remember worst match } foreach (i; 0 .. edim) { Expression el = (*e.elements)[i]; MATCH m = el.implicitConvTo(telement); if (m < result) result = m; // remember worst match if (result == MATCH.nomatch) break; // no need to check for worse } return; } visit(cast(Expression)e); } override void visit(AssocArrayLiteralExp e) { Type tb = t.toBasetype(); Type typeb = e.type.toBasetype(); if (!(tb.ty == Taarray && typeb.ty == Taarray)) return visit(cast(Expression)e); result = MATCH.exact; for (size_t i = 0; i < e.keys.dim; i++) { Expression el = (*e.keys)[i]; MATCH m = el.implicitConvTo((cast(TypeAArray)tb).index); if (m < result) result = m; // remember worst match if (result == MATCH.nomatch) break; // no need to check for worse el = (*e.values)[i]; m = el.implicitConvTo(tb.nextOf()); if (m < result) result = m; // remember worst match if (result == MATCH.nomatch) break; // no need to check for worse } } override void visit(CallExp e) { enum LOG = false; static if (LOG) { printf("CallExp::implicitConvTo(this=%s, type=%s, t=%s)\n", e.toChars(), e.type.toChars(), t.toChars()); } visit(cast(Expression)e); if (result != MATCH.nomatch) return; /* Allow the result of strongly pure functions to * convert to immutable */ if (e.f && e.f.isReturnIsolated() && (!global.params.vsafe || // lots of legacy code breaks with the following purity check e.f.isPure() >= PURE.strong || // Special case exemption for Object.dup() which we assume is implemented correctly e.f.ident == Id.dup && e.f.toParent2() == ClassDeclaration.object.toParent()) ) { result = e.type.immutableOf().implicitConvTo(t); if (result > MATCH.constant) // Match level is MATCH.constant at best. result = MATCH.constant; return; } /* Conversion is 'const' conversion if: * 1. function is pure (weakly pure is ok) * 2. implicit conversion only fails because of mod bits * 3. each function parameter can be implicitly converted to the mod bits */ Type tx = e.f ? e.f.type : e.e1.type; tx = tx.toBasetype(); if (tx.ty != Tfunction) return; TypeFunction tf = cast(TypeFunction)tx; if (tf.purity == PURE.impure) return; if (e.f && e.f.isNested()) return; /* See if fail only because of mod bits. * * https://issues.dlang.org/show_bug.cgi?id=14155 * All pure functions can access global immutable data. * So the returned pointer may refer an immutable global data, * and then the returned pointer that points non-mutable object * cannot be unique pointer. * * Example: * immutable g; * static this() { g = 1; } * const(int*) foo() pure { return &g; } * void test() { * immutable(int*) ip = foo(); // OK * int* mp = foo(); // should be disallowed * } */ if (e.type.immutableOf().implicitConvTo(t) < MATCH.constant && e.type.addMod(MODFlags.shared_).implicitConvTo(t) < MATCH.constant && e.type.implicitConvTo(t.addMod(MODFlags.shared_)) < MATCH.constant) { return; } // Allow a conversion to immutable type, or // conversions of mutable types between thread-local and shared. /* Get mod bits of what we're converting to */ Type tb = t.toBasetype(); MOD mod = tb.mod; if (tf.isref) { } else { Type ti = getIndirection(t); if (ti) mod = ti.mod; } static if (LOG) { printf("mod = x%x\n", mod); } if (mod & MODFlags.wild) return; // not sure what to do with this /* Apply mod bits to each function parameter, * and see if we can convert the function argument to the modded type */ size_t nparams = tf.parameterList.length; size_t j = tf.isDstyleVariadic(); // if TypeInfoArray was prepended if (e.e1.op == TOK.dotVariable) { /* Treat 'this' as just another function argument */ DotVarExp dve = cast(DotVarExp)e.e1; Type targ = dve.e1.type; if (targ.constConv(targ.castMod(mod)) == MATCH.nomatch) return; } for (size_t i = j; i < e.arguments.dim; ++i) { Expression earg = (*e.arguments)[i]; Type targ = earg.type.toBasetype(); static if (LOG) { printf("[%d] earg: %s, targ: %s\n", cast(int)i, earg.toChars(), targ.toChars()); } if (i - j < nparams) { Parameter fparam = tf.parameterList[i - j]; if (fparam.storageClass & STC.lazy_) return; // not sure what to do with this Type tparam = fparam.type; if (!tparam) continue; if (fparam.storageClass & (STC.out_ | STC.ref_)) { if (targ.constConv(tparam.castMod(mod)) == MATCH.nomatch) return; continue; } } static if (LOG) { printf("[%d] earg: %s, targm: %s\n", cast(int)i, earg.toChars(), targ.addMod(mod).toChars()); } if (implicitMod(earg, targ, mod) == MATCH.nomatch) return; } /* Success */ result = MATCH.constant; } override void visit(AddrExp e) { version (none) { printf("AddrExp::implicitConvTo(this=%s, type=%s, t=%s)\n", e.toChars(), e.type.toChars(), t.toChars()); } result = e.type.implicitConvTo(t); //printf("\tresult = %d\n", result); if (result != MATCH.nomatch) return; Type tb = t.toBasetype(); Type typeb = e.type.toBasetype(); // Look for pointers to functions where the functions are overloaded. if (e.e1.op == TOK.overloadSet && (tb.ty == Tpointer || tb.ty == Tdelegate) && tb.nextOf().ty == Tfunction) { OverExp eo = cast(OverExp)e.e1; FuncDeclaration f = null; for (size_t i = 0; i < eo.vars.a.dim; i++) { Dsymbol s = eo.vars.a[i]; FuncDeclaration f2 = s.isFuncDeclaration(); assert(f2); if (f2.overloadExactMatch(tb.nextOf())) { if (f) { /* Error if match in more than one overload set, * even if one is a 'better' match than the other. */ ScopeDsymbol.multiplyDefined(e.loc, f, f2); } else f = f2; result = MATCH.exact; } } } if (e.e1.op == TOK.variable && typeb.ty == Tpointer && typeb.nextOf().ty == Tfunction && tb.ty == Tpointer && tb.nextOf().ty == Tfunction) { /* I don't think this can ever happen - * it should have been * converted to a SymOffExp. */ assert(0); } //printf("\tresult = %d\n", result); } override void visit(SymOffExp e) { version (none) { printf("SymOffExp::implicitConvTo(this=%s, type=%s, t=%s)\n", e.toChars(), e.type.toChars(), t.toChars()); } result = e.type.implicitConvTo(t); //printf("\tresult = %d\n", result); if (result != MATCH.nomatch) return; Type tb = t.toBasetype(); Type typeb = e.type.toBasetype(); // Look for pointers to functions where the functions are overloaded. if (typeb.ty == Tpointer && typeb.nextOf().ty == Tfunction && (tb.ty == Tpointer || tb.ty == Tdelegate) && tb.nextOf().ty == Tfunction) { if (FuncDeclaration f = e.var.isFuncDeclaration()) { f = f.overloadExactMatch(tb.nextOf()); if (f) { if ((tb.ty == Tdelegate && (f.needThis() || f.isNested())) || (tb.ty == Tpointer && !(f.needThis() || f.isNested()))) { result = MATCH.exact; } } } } //printf("\tresult = %d\n", result); } override void visit(DelegateExp e) { version (none) { printf("DelegateExp::implicitConvTo(this=%s, type=%s, t=%s)\n", e.toChars(), e.type.toChars(), t.toChars()); } result = e.type.implicitConvTo(t); if (result != MATCH.nomatch) return; Type tb = t.toBasetype(); Type typeb = e.type.toBasetype(); // Look for pointers to functions where the functions are overloaded. if (typeb.ty == Tdelegate && tb.ty == Tdelegate) { if (e.func && e.func.overloadExactMatch(tb.nextOf())) result = MATCH.exact; } } override void visit(FuncExp e) { //printf("FuncExp::implicitConvTo type = %p %s, t = %s\n", e.type, e.type ? e.type.toChars() : NULL, t.toChars()); MATCH m = e.matchType(t, null, null, 1); if (m > MATCH.nomatch) { result = m; return; } visit(cast(Expression)e); } override void visit(AndExp e) { visit(cast(Expression)e); if (result != MATCH.nomatch) return; MATCH m1 = e.e1.implicitConvTo(t); MATCH m2 = e.e2.implicitConvTo(t); // Pick the worst match result = (m1 < m2) ? m1 : m2; } override void visit(OrExp e) { visit(cast(Expression)e); if (result != MATCH.nomatch) return; MATCH m1 = e.e1.implicitConvTo(t); MATCH m2 = e.e2.implicitConvTo(t); // Pick the worst match result = (m1 < m2) ? m1 : m2; } override void visit(XorExp e) { visit(cast(Expression)e); if (result != MATCH.nomatch) return; MATCH m1 = e.e1.implicitConvTo(t); MATCH m2 = e.e2.implicitConvTo(t); // Pick the worst match result = (m1 < m2) ? m1 : m2; } override void visit(CondExp e) { MATCH m1 = e.e1.implicitConvTo(t); MATCH m2 = e.e2.implicitConvTo(t); //printf("CondExp: m1 %d m2 %d\n", m1, m2); // Pick the worst match result = (m1 < m2) ? m1 : m2; } override void visit(CommaExp e) { e.e2.accept(this); } override void visit(CastExp e) { version (none) { printf("CastExp::implicitConvTo(this=%s, type=%s, t=%s)\n", e.toChars(), e.type.toChars(), t.toChars()); } result = e.type.implicitConvTo(t); if (result != MATCH.nomatch) return; if (t.isintegral() && e.e1.type.isintegral() && e.e1.implicitConvTo(t) != MATCH.nomatch) result = MATCH.convert; else visit(cast(Expression)e); } override void visit(NewExp e) { version (none) { printf("NewExp::implicitConvTo(this=%s, type=%s, t=%s)\n", e.toChars(), e.type.toChars(), t.toChars()); } visit(cast(Expression)e); if (result != MATCH.nomatch) return; /* Calling new() is like calling a pure function. We can implicitly convert the * return from new() to t using the same algorithm as in CallExp, with the function * 'arguments' being: * thisexp * newargs * arguments * .init * 'member' and 'allocator' need to be pure. */ /* See if fail only because of mod bits */ if (e.type.immutableOf().implicitConvTo(t.immutableOf()) == MATCH.nomatch) return; /* Get mod bits of what we're converting to */ Type tb = t.toBasetype(); MOD mod = tb.mod; if (Type ti = getIndirection(t)) mod = ti.mod; static if (LOG) { printf("mod = x%x\n", mod); } if (mod & MODFlags.wild) return; // not sure what to do with this /* Apply mod bits to each argument, * and see if we can convert the argument to the modded type */ if (e.thisexp) { /* Treat 'this' as just another function argument */ Type targ = e.thisexp.type; if (targ.constConv(targ.castMod(mod)) == MATCH.nomatch) return; } /* Check call to 'allocator', then 'member' */ FuncDeclaration fd = e.allocator; for (int count = 0; count < 2; ++count, (fd = e.member)) { if (!fd) continue; if (fd.errors || fd.type.ty != Tfunction) return; // error TypeFunction tf = cast(TypeFunction)fd.type; if (tf.purity == PURE.impure) return; // impure if (fd == e.member) { if (e.type.immutableOf().implicitConvTo(t) < MATCH.constant && e.type.addMod(MODFlags.shared_).implicitConvTo(t) < MATCH.constant && e.type.implicitConvTo(t.addMod(MODFlags.shared_)) < MATCH.constant) { return; } // Allow a conversion to immutable type, or // conversions of mutable types between thread-local and shared. } Expressions* args = (fd == e.allocator) ? e.newargs : e.arguments; size_t nparams = tf.parameterList.length; // if TypeInfoArray was prepended size_t j = tf.isDstyleVariadic(); for (size_t i = j; i < e.arguments.dim; ++i) { Expression earg = (*args)[i]; Type targ = earg.type.toBasetype(); static if (LOG) { printf("[%d] earg: %s, targ: %s\n", cast(int)i, earg.toChars(), targ.toChars()); } if (i - j < nparams) { Parameter fparam = tf.parameterList[i - j]; if (fparam.storageClass & STC.lazy_) return; // not sure what to do with this Type tparam = fparam.type; if (!tparam) continue; if (fparam.storageClass & (STC.out_ | STC.ref_)) { if (targ.constConv(tparam.castMod(mod)) == MATCH.nomatch) return; continue; } } static if (LOG) { printf("[%d] earg: %s, targm: %s\n", cast(int)i, earg.toChars(), targ.addMod(mod).toChars()); } if (implicitMod(earg, targ, mod) == MATCH.nomatch) return; } } /* If no 'member', then construction is by simple assignment, * and just straight check 'arguments' */ if (!e.member && e.arguments) { for (size_t i = 0; i < e.arguments.dim; ++i) { Expression earg = (*e.arguments)[i]; if (!earg) // https://issues.dlang.org/show_bug.cgi?id=14853 // if it's on overlapped field continue; Type targ = earg.type.toBasetype(); static if (LOG) { printf("[%d] earg: %s, targ: %s\n", cast(int)i, earg.toChars(), targ.toChars()); printf("[%d] earg: %s, targm: %s\n", cast(int)i, earg.toChars(), targ.addMod(mod).toChars()); } if (implicitMod(earg, targ, mod) == MATCH.nomatch) return; } } /* Consider the .init expression as an argument */ Type ntb = e.newtype.toBasetype(); if (ntb.ty == Tarray) ntb = ntb.nextOf().toBasetype(); if (ntb.ty == Tstruct) { // Don't allow nested structs - uplevel reference may not be convertible StructDeclaration sd = (cast(TypeStruct)ntb).sym; sd.size(e.loc); // resolve any forward references if (sd.isNested()) return; } if (ntb.isZeroInit(e.loc)) { /* Zeros are implicitly convertible, except for special cases. */ if (ntb.ty == Tclass) { /* With new() must look at the class instance initializer. */ ClassDeclaration cd = (cast(TypeClass)ntb).sym; cd.size(e.loc); // resolve any forward references if (cd.isNested()) return; // uplevel reference may not be convertible assert(!cd.isInterfaceDeclaration()); struct ClassCheck { extern (C++) static bool convertible(Loc loc, ClassDeclaration cd, MOD mod) { for (size_t i = 0; i < cd.fields.dim; i++) { VarDeclaration v = cd.fields[i]; Initializer _init = v._init; if (_init) { if (_init.isVoidInitializer()) { } else if (ExpInitializer ei = _init.isExpInitializer()) { Type tb = v.type.toBasetype(); if (implicitMod(ei.exp, tb, mod) == MATCH.nomatch) return false; } else { /* Enhancement: handle StructInitializer and ArrayInitializer */ return false; } } else if (!v.type.isZeroInit(loc)) return false; } return cd.baseClass ? convertible(loc, cd.baseClass, mod) : true; } } if (!ClassCheck.convertible(e.loc, cd, mod)) return; } } else { Expression earg = e.newtype.defaultInitLiteral(e.loc); Type targ = e.newtype.toBasetype(); if (implicitMod(earg, targ, mod) == MATCH.nomatch) return; } /* Success */ result = MATCH.constant; } override void visit(SliceExp e) { //printf("SliceExp::implicitConvTo e = %s, type = %s\n", e.toChars(), e.type.toChars()); visit(cast(Expression)e); if (result != MATCH.nomatch) return; Type tb = t.toBasetype(); Type typeb = e.type.toBasetype(); if (tb.ty == Tsarray && typeb.ty == Tarray) { typeb = toStaticArrayType(e); if (typeb) result = typeb.implicitConvTo(t); return; } /* If the only reason it won't convert is because of the mod bits, * then test for conversion by seeing if e1 can be converted with those * same mod bits. */ Type t1b = e.e1.type.toBasetype(); if (tb.ty == Tarray && typeb.equivalent(tb)) { Type tbn = tb.nextOf(); Type tx = null; /* If e.e1 is dynamic array or pointer, the uniqueness of e.e1 * is equivalent with the uniqueness of the referred data. And in here * we can have arbitrary typed reference for that. */ if (t1b.ty == Tarray) tx = tbn.arrayOf(); if (t1b.ty == Tpointer) tx = tbn.pointerTo(); /* If e.e1 is static array, at least it should be an rvalue. * If not, e.e1 is a reference, and its uniqueness does not link * to the uniqueness of the referred data. */ if (t1b.ty == Tsarray && !e.e1.isLvalue()) tx = tbn.sarrayOf(t1b.size() / tbn.size()); if (tx) { result = e.e1.implicitConvTo(tx); if (result > MATCH.constant) // Match level is MATCH.constant at best. result = MATCH.constant; } } // Enhancement 10724 if (tb.ty == Tpointer && e.e1.op == TOK.string_) e.e1.accept(this); } } scope ImplicitConvTo v = new ImplicitConvTo(t); e.accept(v); return v.result; } Type toStaticArrayType(SliceExp e) { if (e.lwr && e.upr) { // For the following code to work, e should be optimized beforehand. // (eg. $ in lwr and upr should be already resolved, if possible) Expression lwr = e.lwr.optimize(WANTvalue); Expression upr = e.upr.optimize(WANTvalue); if (lwr.isConst() && upr.isConst()) { size_t len = cast(size_t)(upr.toUInteger() - lwr.toUInteger()); return e.type.toBasetype().nextOf().sarrayOf(len); } } else { Type t1b = e.e1.type.toBasetype(); if (t1b.ty == Tsarray) return t1b; } return null; } // Try casting the alias this member. Return the expression if it succeeds, null otherwise. private Expression tryAliasThisCast(Expression e, Scope* sc, Type tob, Type t1b, Type t) { Expression result; AggregateDeclaration t1ad = isAggregate(t1b); if (!t1ad) return null; AggregateDeclaration toad = isAggregate(tob); if (t1ad == toad || !t1ad.aliasthis) return null; /* Forward the cast to our alias this member, rewrite to: * cast(to)e1.aliasthis */ result = resolveAliasThis(sc, e); const errors = global.startGagging(); result = result.castTo(sc, t); return global.endGagging(errors) ? null : result; } /************************************** * Do an explicit cast. * Assume that the 'this' expression does not have any indirections. */ Expression castTo(Expression e, Scope* sc, Type t) { extern (C++) final class CastTo : Visitor { alias visit = Visitor.visit; public: Type t; Scope* sc; Expression result; extern (D) this(Scope* sc, Type t) { this.sc = sc; this.t = t; } override void visit(Expression e) { //printf("Expression::castTo(this=%s, t=%s)\n", e.toChars(), t.toChars()); version (none) { printf("Expression::castTo(this=%s, type=%s, t=%s)\n", e.toChars(), e.type.toChars(), t.toChars()); } if (e.type.equals(t)) { result = e; return; } if (e.op == TOK.variable) { VarDeclaration v = (cast(VarExp)e).var.isVarDeclaration(); if (v && v.storage_class & STC.manifest) { result = e.ctfeInterpret(); /* https://issues.dlang.org/show_bug.cgi?id=18236 * * The expression returned by ctfeInterpret points * to the line where the manifest constant was declared * so we need to update the location before trying to cast */ result.loc = e.loc; result = result.castTo(sc, t); return; } } Type tob = t.toBasetype(); Type t1b = e.type.toBasetype(); if (tob.equals(t1b)) { result = e.copy(); // because of COW for assignment to e.type result.type = t; return; } /* Make semantic error against invalid cast between concrete types. * Assume that 'e' is never be any placeholder expressions. * The result of these checks should be consistent with CastExp::toElem(). */ // Fat Value types const(bool) tob_isFV = (tob.ty == Tstruct || tob.ty == Tsarray); const(bool) t1b_isFV = (t1b.ty == Tstruct || t1b.ty == Tsarray); // Fat Reference types const(bool) tob_isFR = (tob.ty == Tarray || tob.ty == Tdelegate); const(bool) t1b_isFR = (t1b.ty == Tarray || t1b.ty == Tdelegate); // Reference types const(bool) tob_isR = (tob_isFR || tob.ty == Tpointer || tob.ty == Taarray || tob.ty == Tclass); const(bool) t1b_isR = (t1b_isFR || t1b.ty == Tpointer || t1b.ty == Taarray || t1b.ty == Tclass); // Arithmetic types (== valueable basic types) const(bool) tob_isA = (tob.isintegral() || tob.isfloating()); const(bool) t1b_isA = (t1b.isintegral() || t1b.isfloating()); bool hasAliasThis; if (AggregateDeclaration t1ad = isAggregate(t1b)) { AggregateDeclaration toad = isAggregate(tob); if (t1ad != toad && t1ad.aliasthis) { if (t1b.ty == Tclass && tob.ty == Tclass) { ClassDeclaration t1cd = t1b.isClassHandle(); ClassDeclaration tocd = tob.isClassHandle(); int offset; if (tocd.isBaseOf(t1cd, &offset)) goto Lok; } hasAliasThis = true; } } else if (tob.ty == Tvector && t1b.ty != Tvector) { //printf("test1 e = %s, e.type = %s, tob = %s\n", e.toChars(), e.type.toChars(), tob.toChars()); TypeVector tv = cast(TypeVector)tob; result = new CastExp(e.loc, e, tv.elementType()); result = new VectorExp(e.loc, result, tob); result = result.expressionSemantic(sc); return; } else if (tob.ty != Tvector && t1b.ty == Tvector) { // T[n] <-- __vector(U[m]) if (tob.ty == Tsarray) { if (t1b.size(e.loc) == tob.size(e.loc)) goto Lok; } goto Lfail; } else if (t1b.implicitConvTo(tob) == MATCH.constant && t.equals(e.type.constOf())) { result = e.copy(); result.type = t; return; } // arithmetic values vs. other arithmetic values // arithmetic values vs. T* if (tob_isA && (t1b_isA || t1b.ty == Tpointer) || t1b_isA && (tob_isA || tob.ty == Tpointer)) { goto Lok; } // arithmetic values vs. references or fat values if (tob_isA && (t1b_isR || t1b_isFV) || t1b_isA && (tob_isR || tob_isFV)) { goto Lfail; } // Bugzlla 3133: A cast between fat values is possible only when the sizes match. if (tob_isFV && t1b_isFV) { if (hasAliasThis) { result = tryAliasThisCast(e, sc, tob, t1b, t); if (result) return; } if (t1b.size(e.loc) == tob.size(e.loc)) goto Lok; auto ts = toAutoQualChars(e.type, t); e.error("cannot cast expression `%s` of type `%s` to `%s` because of different sizes", e.toChars(), ts[0], ts[1]); result = new ErrorExp(); return; } // Fat values vs. null or references if (tob_isFV && (t1b.ty == Tnull || t1b_isR) || t1b_isFV && (tob.ty == Tnull || tob_isR)) { if (tob.ty == Tpointer && t1b.ty == Tsarray) { // T[n] sa; // cast(U*)sa; // ==> cast(U*)sa.ptr; result = new AddrExp(e.loc, e, t); return; } if (tob.ty == Tarray && t1b.ty == Tsarray) { // T[n] sa; // cast(U[])sa; // ==> cast(U[])sa[]; d_uns64 fsize = t1b.nextOf().size(); d_uns64 tsize = tob.nextOf().size(); if (((cast(TypeSArray)t1b).dim.toInteger() * fsize) % tsize != 0) { // copied from sarray_toDarray() in e2ir.c e.error("cannot cast expression `%s` of type `%s` to `%s` since sizes don't line up", e.toChars(), e.type.toChars(), t.toChars()); result = new ErrorExp(); return; } goto Lok; } goto Lfail; } /* For references, any reinterpret casts are allowed to same 'ty' type. * T* to U* * R1 function(P1) to R2 function(P2) * R1 delegate(P1) to R2 delegate(P2) * T[] to U[] * V1[K1] to V2[K2] * class/interface A to B (will be a dynamic cast if possible) */ if (tob.ty == t1b.ty && tob_isR && t1b_isR) goto Lok; // typeof(null) <-- non-null references or values if (tob.ty == Tnull && t1b.ty != Tnull) goto Lfail; // https://issues.dlang.org/show_bug.cgi?id=14629 // typeof(null) --> non-null references or arithmetic values if (t1b.ty == Tnull && tob.ty != Tnull) goto Lok; // Check size mismatch of references. // Tarray and Tdelegate are (void*).sizeof*2, but others have (void*).sizeof. if (tob_isFR && t1b_isR || t1b_isFR && tob_isR) { if (tob.ty == Tpointer && t1b.ty == Tarray) { // T[] da; // cast(U*)da; // ==> cast(U*)da.ptr; goto Lok; } if (tob.ty == Tpointer && t1b.ty == Tdelegate) { // void delegate() dg; // cast(U*)dg; // ==> cast(U*)dg.ptr; // Note that it happens even when U is a Tfunction! e.deprecation("casting from %s to %s is deprecated", e.type.toChars(), t.toChars()); goto Lok; } goto Lfail; } if (t1b.ty == Tvoid && tob.ty != Tvoid) { Lfail: /* if the cast cannot be performed, maybe there is an alias * this that can be used for casting. */ if (hasAliasThis) { result = tryAliasThisCast(e, sc, tob, t1b, t); if (result) return; } e.error("cannot cast expression `%s` of type `%s` to `%s`", e.toChars(), e.type.toChars(), t.toChars()); result = new ErrorExp(); return; } Lok: result = new CastExp(e.loc, e, t); result.type = t; // Don't call semantic() //printf("Returning: %s\n", result.toChars()); } override void visit(ErrorExp e) { result = e; } override void visit(RealExp e) { if (!e.type.equals(t)) { if ((e.type.isreal() && t.isreal()) || (e.type.isimaginary() && t.isimaginary())) { result = e.copy(); result.type = t; } else visit(cast(Expression)e); return; } result = e; } override void visit(ComplexExp e) { if (!e.type.equals(t)) { if (e.type.iscomplex() && t.iscomplex()) { result = e.copy(); result.type = t; } else visit(cast(Expression)e); return; } result = e; } override void visit(NullExp e) { //printf("NullExp::castTo(t = %s) %s\n", t.toChars(), toChars()); visit(cast(Expression)e); if (result.op == TOK.null_) { NullExp ex = cast(NullExp)result; ex.committed = 1; return; } } override void visit(StructLiteralExp e) { visit(cast(Expression)e); if (result.op == TOK.structLiteral) (cast(StructLiteralExp)result).stype = t; // commit type } override void visit(StringExp e) { /* This follows copy-on-write; any changes to 'this' * will result in a copy. * The this.string member is considered immutable. */ int copied = 0; //printf("StringExp::castTo(t = %s), '%s' committed = %d\n", t.toChars(), e.toChars(), e.committed); if (!e.committed && t.ty == Tpointer && t.nextOf().ty == Tvoid) { e.error("cannot convert string literal to `void*`"); result = new ErrorExp(); return; } StringExp se = e; if (!e.committed) { se = cast(StringExp)e.copy(); se.committed = 1; copied = 1; } if (e.type.equals(t)) { result = se; return; } Type tb = t.toBasetype(); Type typeb = e.type.toBasetype(); //printf("\ttype = %s\n", e.type.toChars()); if (tb.ty == Tdelegate && typeb.ty != Tdelegate) { visit(cast(Expression)e); return; } if (typeb.equals(tb)) { if (!copied) { se = cast(StringExp)e.copy(); copied = 1; } se.type = t; result = se; return; } /* Handle reinterpret casts: * cast(wchar[3])"abcd"c --> [\u6261, \u6463, \u0000] * cast(wchar[2])"abcd"c --> [\u6261, \u6463] * cast(wchar[1])"abcd"c --> [\u6261] * cast(char[4])"a" --> ['a', 0, 0, 0] */ if (e.committed && tb.ty == Tsarray && typeb.ty == Tarray) { se = cast(StringExp)e.copy(); d_uns64 szx = tb.nextOf().size(); assert(szx <= 255); se.sz = cast(ubyte)szx; se.len = cast(size_t)(cast(TypeSArray)tb).dim.toInteger(); se.committed = 1; se.type = t; /* If larger than source, pad with zeros. */ const fullSize = (se.len + 1) * se.sz; // incl. terminating 0 if (fullSize > (e.len + 1) * e.sz) { void* s = mem.xmalloc(fullSize); const srcSize = e.len * e.sz; const data = se.peekData(); memcpy(s, data.ptr, srcSize); memset(s + srcSize, 0, fullSize - srcSize); se.setData(s, se.len, se.sz); } result = se; return; } if (tb.ty != Tsarray && tb.ty != Tarray && tb.ty != Tpointer) { if (!copied) { se = cast(StringExp)e.copy(); copied = 1; } goto Lcast; } if (typeb.ty != Tsarray && typeb.ty != Tarray && typeb.ty != Tpointer) { if (!copied) { se = cast(StringExp)e.copy(); copied = 1; } goto Lcast; } if (typeb.nextOf().size() == tb.nextOf().size()) { if (!copied) { se = cast(StringExp)e.copy(); copied = 1; } if (tb.ty == Tsarray) goto L2; // handle possible change in static array dimension se.type = t; result = se; return; } if (e.committed) goto Lcast; auto X(T, U)(T tf, U tt) { return (cast(int)tf * 256 + cast(int)tt); } { OutBuffer buffer; size_t newlen = 0; int tfty = typeb.nextOf().toBasetype().ty; int ttty = tb.nextOf().toBasetype().ty; switch (X(tfty, ttty)) { case X(Tchar, Tchar): case X(Twchar, Twchar): case X(Tdchar, Tdchar): break; case X(Tchar, Twchar): for (size_t u = 0; u < e.len;) { dchar c; if (const s = utf_decodeChar(se.peekString(), u, c)) e.error("%.*s", cast(int)s.length, s.ptr); else buffer.writeUTF16(c); } newlen = buffer.length / 2; buffer.writeUTF16(0); goto L1; case X(Tchar, Tdchar): for (size_t u = 0; u < e.len;) { dchar c; if (const s = utf_decodeChar(se.peekString(), u, c)) e.error("%.*s", cast(int)s.length, s.ptr); buffer.write4(c); newlen++; } buffer.write4(0); goto L1; case X(Twchar, Tchar): for (size_t u = 0; u < e.len;) { dchar c; if (const s = utf_decodeWchar(se.peekWstring(), u, c)) e.error("%.*s", cast(int)s.length, s.ptr); else buffer.writeUTF8(c); } newlen = buffer.length; buffer.writeUTF8(0); goto L1; case X(Twchar, Tdchar): for (size_t u = 0; u < e.len;) { dchar c; if (const s = utf_decodeWchar(se.peekWstring(), u, c)) e.error("%.*s", cast(int)s.length, s.ptr); buffer.write4(c); newlen++; } buffer.write4(0); goto L1; case X(Tdchar, Tchar): for (size_t u = 0; u < e.len; u++) { uint c = se.peekDstring()[u]; if (!utf_isValidDchar(c)) e.error("invalid UCS-32 char \\U%08x", c); else buffer.writeUTF8(c); newlen++; } newlen = buffer.length; buffer.writeUTF8(0); goto L1; case X(Tdchar, Twchar): for (size_t u = 0; u < e.len; u++) { uint c = se.peekDstring()[u]; if (!utf_isValidDchar(c)) e.error("invalid UCS-32 char \\U%08x", c); else buffer.writeUTF16(c); newlen++; } newlen = buffer.length / 2; buffer.writeUTF16(0); goto L1; L1: if (!copied) { se = cast(StringExp)e.copy(); copied = 1; } { d_uns64 szx = tb.nextOf().size(); assert(szx <= 255); se.setData(buffer.extractSlice().ptr, newlen, cast(ubyte)szx); } break; default: assert(typeb.nextOf().size() != tb.nextOf().size()); goto Lcast; } } L2: assert(copied); // See if need to truncate or extend the literal if (tb.ty == Tsarray) { size_t dim2 = cast(size_t)(cast(TypeSArray)tb).dim.toInteger(); //printf("dim from = %d, to = %d\n", (int)se.len, (int)dim2); // Changing dimensions if (dim2 != se.len) { // Copy when changing the string literal const newsz = se.sz; const d = (dim2 < se.len) ? dim2 : se.len; void* s = mem.xmalloc((dim2 + 1) * newsz); memcpy(s, se.peekData().ptr, d * newsz); // Extend with 0, add terminating 0 memset(s + d * newsz, 0, (dim2 + 1 - d) * newsz); se.setData(s, dim2, newsz); } } se.type = t; result = se; return; Lcast: result = new CastExp(e.loc, se, t); result.type = t; // so semantic() won't be run on e } override void visit(AddrExp e) { version (none) { printf("AddrExp::castTo(this=%s, type=%s, t=%s)\n", e.toChars(), e.type.toChars(), t.toChars()); } result = e; Type tb = t.toBasetype(); Type typeb = e.type.toBasetype(); if (tb.equals(typeb)) { result = e.copy(); result.type = t; return; } // Look for pointers to functions where the functions are overloaded. if (e.e1.op == TOK.overloadSet && (tb.ty == Tpointer || tb.ty == Tdelegate) && tb.nextOf().ty == Tfunction) { OverExp eo = cast(OverExp)e.e1; FuncDeclaration f = null; for (size_t i = 0; i < eo.vars.a.dim; i++) { auto s = eo.vars.a[i]; auto f2 = s.isFuncDeclaration(); assert(f2); if (f2.overloadExactMatch(tb.nextOf())) { if (f) { /* Error if match in more than one overload set, * even if one is a 'better' match than the other. */ ScopeDsymbol.multiplyDefined(e.loc, f, f2); } else f = f2; } } if (f) { f.tookAddressOf++; auto se = new SymOffExp(e.loc, f, 0, false); se.expressionSemantic(sc); // Let SymOffExp::castTo() do the heavy lifting visit(se); return; } } if (e.e1.op == TOK.variable && typeb.ty == Tpointer && typeb.nextOf().ty == Tfunction && tb.ty == Tpointer && tb.nextOf().ty == Tfunction) { auto ve = cast(VarExp)e.e1; auto f = ve.var.isFuncDeclaration(); if (f) { assert(f.isImportedSymbol()); f = f.overloadExactMatch(tb.nextOf()); if (f) { result = new VarExp(e.loc, f, false); result.type = f.type; result = new AddrExp(e.loc, result, t); return; } } } if (auto f = isFuncAddress(e)) { if (f.checkForwardRef(e.loc)) { result = new ErrorExp(); return; } } visit(cast(Expression)e); } override void visit(TupleExp e) { if (e.type.equals(t)) { result = e; return; } TupleExp te = cast(TupleExp)e.copy(); te.e0 = e.e0 ? e.e0.copy() : null; te.exps = e.exps.copy(); for (size_t i = 0; i < te.exps.dim; i++) { Expression ex = (*te.exps)[i]; ex = ex.castTo(sc, t); (*te.exps)[i] = ex; } result = te; /* Questionable behavior: In here, result.type is not set to t. * Therefoe: * TypeTuple!(int, int) values; * auto values2 = cast(long)values; * // typeof(values2) == TypeTuple!(int, int) !! * * Only when the casted tuple is immediately expanded, it would work. * auto arr = [cast(long)values]; * // typeof(arr) == long[] */ } override void visit(ArrayLiteralExp e) { version (none) { printf("ArrayLiteralExp::castTo(this=%s, type=%s, => %s)\n", e.toChars(), e.type.toChars(), t.toChars()); } ArrayLiteralExp ae = e; Type tb = t.toBasetype(); if (tb.ty == Tarray && global.params.vsafe) { if (checkArrayLiteralEscape(sc, ae, false)) { result = new ErrorExp(); return; } } if (e.type == t) { result = e; return; } Type typeb = e.type.toBasetype(); if ((tb.ty == Tarray || tb.ty == Tsarray) && (typeb.ty == Tarray || typeb.ty == Tsarray)) { if (tb.nextOf().toBasetype().ty == Tvoid && typeb.nextOf().toBasetype().ty != Tvoid) { // Don't do anything to cast non-void[] to void[] } else if (typeb.ty == Tsarray && typeb.nextOf().toBasetype().ty == Tvoid) { // Don't do anything for casting void[n] to others } else { if (tb.ty == Tsarray) { TypeSArray tsa = cast(TypeSArray)tb; if (e.elements.dim != tsa.dim.toInteger()) goto L1; } ae = cast(ArrayLiteralExp)e.copy(); if (e.basis) ae.basis = e.basis.castTo(sc, tb.nextOf()); ae.elements = e.elements.copy(); for (size_t i = 0; i < e.elements.dim; i++) { Expression ex = (*e.elements)[i]; if (!ex) continue; ex = ex.castTo(sc, tb.nextOf()); (*ae.elements)[i] = ex; } ae.type = t; result = ae; return; } } else if (tb.ty == Tpointer && typeb.ty == Tsarray) { Type tp = typeb.nextOf().pointerTo(); if (!tp.equals(ae.type)) { ae = cast(ArrayLiteralExp)e.copy(); ae.type = tp; } } else if (tb.ty == Tvector && (typeb.ty == Tarray || typeb.ty == Tsarray)) { // Convert array literal to vector type TypeVector tv = cast(TypeVector)tb; TypeSArray tbase = cast(TypeSArray)tv.basetype; assert(tbase.ty == Tsarray); const edim = e.elements.dim; const tbasedim = tbase.dim.toInteger(); if (edim > tbasedim) goto L1; ae = cast(ArrayLiteralExp)e.copy(); ae.type = tbase; // https://issues.dlang.org/show_bug.cgi?id=12642 ae.elements = e.elements.copy(); Type telement = tv.elementType(); foreach (i; 0 .. edim) { Expression ex = (*e.elements)[i]; ex = ex.castTo(sc, telement); (*ae.elements)[i] = ex; } // Fill in the rest with the default initializer ae.elements.setDim(cast(size_t)tbasedim); foreach (i; edim .. cast(size_t)tbasedim) { Expression ex = typeb.nextOf.defaultInitLiteral(e.loc); ex = ex.castTo(sc, telement); (*ae.elements)[i] = ex; } Expression ev = new VectorExp(e.loc, ae, tb); ev = ev.expressionSemantic(sc); result = ev; return; } L1: visit(cast(Expression)ae); } override void visit(AssocArrayLiteralExp e) { //printf("AssocArrayLiteralExp::castTo(this=%s, type=%s, => %s)\n", e.toChars(), e.type.toChars(), t.toChars()); if (e.type == t) { result = e; return; } Type tb = t.toBasetype(); Type typeb = e.type.toBasetype(); if (tb.ty == Taarray && typeb.ty == Taarray && tb.nextOf().toBasetype().ty != Tvoid) { AssocArrayLiteralExp ae = cast(AssocArrayLiteralExp)e.copy(); ae.keys = e.keys.copy(); ae.values = e.values.copy(); assert(e.keys.dim == e.values.dim); for (size_t i = 0; i < e.keys.dim; i++) { Expression ex = (*e.values)[i]; ex = ex.castTo(sc, tb.nextOf()); (*ae.values)[i] = ex; ex = (*e.keys)[i]; ex = ex.castTo(sc, (cast(TypeAArray)tb).index); (*ae.keys)[i] = ex; } ae.type = t; result = ae; return; } visit(cast(Expression)e); } override void visit(SymOffExp e) { version (none) { printf("SymOffExp::castTo(this=%s, type=%s, t=%s)\n", e.toChars(), e.type.toChars(), t.toChars()); } if (e.type == t && !e.hasOverloads) { result = e; return; } Type tb = t.toBasetype(); Type typeb = e.type.toBasetype(); if (tb.equals(typeb)) { result = e.copy(); result.type = t; (cast(SymOffExp)result).hasOverloads = false; return; } // Look for pointers to functions where the functions are overloaded. if (e.hasOverloads && typeb.ty == Tpointer && typeb.nextOf().ty == Tfunction && (tb.ty == Tpointer || tb.ty == Tdelegate) && tb.nextOf().ty == Tfunction) { FuncDeclaration f = e.var.isFuncDeclaration(); f = f ? f.overloadExactMatch(tb.nextOf()) : null; if (f) { if (tb.ty == Tdelegate) { if (f.needThis() && hasThis(sc)) { result = new DelegateExp(e.loc, new ThisExp(e.loc), f, false); result = result.expressionSemantic(sc); } else if (f.needThis()) { e.error("no `this` to create delegate for `%s`", f.toChars()); result = new ErrorExp(); return; } else if (f.isNested()) { result = new DelegateExp(e.loc, IntegerExp.literal!0, f, false); result = result.expressionSemantic(sc); } else { e.error("cannot cast from function pointer to delegate"); result = new ErrorExp(); return; } } else { result = new SymOffExp(e.loc, f, 0, false); result.type = t; } f.tookAddressOf++; return; } } if (auto f = isFuncAddress(e)) { if (f.checkForwardRef(e.loc)) { result = new ErrorExp(); return; } } visit(cast(Expression)e); } override void visit(DelegateExp e) { version (none) { printf("DelegateExp::castTo(this=%s, type=%s, t=%s)\n", e.toChars(), e.type.toChars(), t.toChars()); } __gshared const(char)* msg = "cannot form delegate due to covariant return type"; Type tb = t.toBasetype(); Type typeb = e.type.toBasetype(); if (tb.equals(typeb) && !e.hasOverloads) { int offset; e.func.tookAddressOf++; if (e.func.tintro && e.func.tintro.nextOf().isBaseOf(e.func.type.nextOf(), &offset) && offset) e.error("%s", msg); result = e.copy(); result.type = t; return; } // Look for delegates to functions where the functions are overloaded. if (typeb.ty == Tdelegate && tb.ty == Tdelegate) { if (e.func) { auto f = e.func.overloadExactMatch(tb.nextOf()); if (f) { int offset; if (f.tintro && f.tintro.nextOf().isBaseOf(f.type.nextOf(), &offset) && offset) e.error("%s", msg); if (f != e.func) // if address not already marked as taken f.tookAddressOf++; result = new DelegateExp(e.loc, e.e1, f, false, e.vthis2); result.type = t; return; } if (e.func.tintro) e.error("%s", msg); } } if (auto f = isFuncAddress(e)) { if (f.checkForwardRef(e.loc)) { result = new ErrorExp(); return; } } visit(cast(Expression)e); } override void visit(FuncExp e) { //printf("FuncExp::castTo type = %s, t = %s\n", e.type.toChars(), t.toChars()); FuncExp fe; if (e.matchType(t, sc, &fe, 1) > MATCH.nomatch) { result = fe; return; } visit(cast(Expression)e); } override void visit(CondExp e) { if (!e.type.equals(t)) { result = new CondExp(e.loc, e.econd, e.e1.castTo(sc, t), e.e2.castTo(sc, t)); result.type = t; return; } result = e; } override void visit(CommaExp e) { Expression e2c = e.e2.castTo(sc, t); if (e2c != e.e2) { result = new CommaExp(e.loc, e.e1, e2c); result.type = e2c.type; } else { result = e; result.type = e.e2.type; } } override void visit(SliceExp e) { //printf("SliceExp::castTo e = %s, type = %s, t = %s\n", e.toChars(), e.type.toChars(), t.toChars()); Type tb = t.toBasetype(); Type typeb = e.type.toBasetype(); if (e.type.equals(t) || typeb.ty != Tarray || (tb.ty != Tarray && tb.ty != Tsarray)) { visit(cast(Expression)e); return; } if (tb.ty == Tarray) { if (typeb.nextOf().equivalent(tb.nextOf())) { // T[] to const(T)[] result = e.copy(); result.type = t; } else { visit(cast(Expression)e); } return; } // Handle the cast from Tarray to Tsarray with CT-known slicing TypeSArray tsa = cast(TypeSArray)toStaticArrayType(e); if (tsa && tsa.size(e.loc) == tb.size(e.loc)) { /* Match if the sarray sizes are equal: * T[a .. b] to const(T)[b-a] * T[a .. b] to U[dim] if (T.sizeof*(b-a) == U.sizeof*dim) * * If a SliceExp has Tsarray, it will become lvalue. * That's handled in SliceExp::isLvalue and toLvalue */ result = e.copy(); result.type = t; return; } if (tsa && tsa.dim.equals((cast(TypeSArray)tb).dim)) { /* Match if the dimensions are equal * with the implicit conversion of e.e1: * cast(float[2]) [2.0, 1.0, 0.0][0..2]; */ Type t1b = e.e1.type.toBasetype(); if (t1b.ty == Tsarray) t1b = tb.nextOf().sarrayOf((cast(TypeSArray)t1b).dim.toInteger()); else if (t1b.ty == Tarray) t1b = tb.nextOf().arrayOf(); else if (t1b.ty == Tpointer) t1b = tb.nextOf().pointerTo(); else assert(0); if (e.e1.implicitConvTo(t1b) > MATCH.nomatch) { Expression e1x = e.e1.implicitCastTo(sc, t1b); assert(e1x.op != TOK.error); e = cast(SliceExp)e.copy(); e.e1 = e1x; e.type = t; result = e; return; } } auto ts = toAutoQualChars(tsa ? tsa : e.type, t); e.error("cannot cast expression `%s` of type `%s` to `%s`", e.toChars(), ts[0], ts[1]); result = new ErrorExp(); } } scope CastTo v = new CastTo(sc, t); e.accept(v); return v.result; } /**************************************** * Set type inference target * t Target type * flag 1: don't put an error when inference fails */ Expression inferType(Expression e, Type t, int flag = 0) { extern (C++) final class InferType : Visitor { alias visit = Visitor.visit; public: Type t; int flag; Expression result; extern (D) this(Type t, int flag) { this.t = t; this.flag = flag; } override void visit(Expression e) { result = e; } override void visit(ArrayLiteralExp ale) { Type tb = t.toBasetype(); if (tb.ty == Tarray || tb.ty == Tsarray) { Type tn = tb.nextOf(); if (ale.basis) ale.basis = inferType(ale.basis, tn, flag); for (size_t i = 0; i < ale.elements.dim; i++) { Expression e = (*ale.elements)[i]; if (e) { e = inferType(e, tn, flag); (*ale.elements)[i] = e; } } } result = ale; } override void visit(AssocArrayLiteralExp aale) { Type tb = t.toBasetype(); if (tb.ty == Taarray) { TypeAArray taa = cast(TypeAArray)tb; Type ti = taa.index; Type tv = taa.nextOf(); for (size_t i = 0; i < aale.keys.dim; i++) { Expression e = (*aale.keys)[i]; if (e) { e = inferType(e, ti, flag); (*aale.keys)[i] = e; } } for (size_t i = 0; i < aale.values.dim; i++) { Expression e = (*aale.values)[i]; if (e) { e = inferType(e, tv, flag); (*aale.values)[i] = e; } } } result = aale; } override void visit(FuncExp fe) { //printf("FuncExp::inferType('%s'), to=%s\n", fe.type ? fe.type.toChars() : "null", t.toChars()); if (t.ty == Tdelegate || t.ty == Tpointer && t.nextOf().ty == Tfunction) { fe.fd.treq = t; } result = fe; } override void visit(CondExp ce) { Type tb = t.toBasetype(); ce.e1 = inferType(ce.e1, tb, flag); ce.e2 = inferType(ce.e2, tb, flag); result = ce; } } if (!t) return e; scope InferType v = new InferType(t, flag); e.accept(v); return v.result; } /**************************************** * Scale addition/subtraction to/from pointer. */ Expression scaleFactor(BinExp be, Scope* sc) { Type t1b = be.e1.type.toBasetype(); Type t2b = be.e2.type.toBasetype(); Expression eoff; if (t1b.ty == Tpointer && t2b.isintegral()) { // Need to adjust operator by the stride // Replace (ptr + int) with (ptr + (int * stride)) Type t = Type.tptrdiff_t; d_uns64 stride = t1b.nextOf().size(be.loc); if (!t.equals(t2b)) be.e2 = be.e2.castTo(sc, t); eoff = be.e2; be.e2 = new MulExp(be.loc, be.e2, new IntegerExp(Loc.initial, stride, t)); be.e2.type = t; be.type = be.e1.type; } else if (t2b.ty == Tpointer && t1b.isintegral()) { // Need to adjust operator by the stride // Replace (int + ptr) with (ptr + (int * stride)) Type t = Type.tptrdiff_t; Expression e; d_uns64 stride = t2b.nextOf().size(be.loc); if (!t.equals(t1b)) e = be.e1.castTo(sc, t); else e = be.e1; eoff = e; e = new MulExp(be.loc, e, new IntegerExp(Loc.initial, stride, t)); e.type = t; be.type = be.e2.type; be.e1 = be.e2; be.e2 = e; } else assert(0); if (sc.func && !sc.intypeof) { eoff = eoff.optimize(WANTvalue); if (eoff.op == TOK.int64 && eoff.toInteger() == 0) { } else if (sc.func.setUnsafe()) { be.error("pointer arithmetic not allowed in @safe functions"); return new ErrorExp(); } } return be; } /************************************** * Return true if e is an empty array literal with dimensionality * equal to or less than type of other array. * [], [[]], [[[]]], etc. * I.e., make sure that [1,2] is compatible with [], * [[1,2]] is compatible with [[]], etc. */ private bool isVoidArrayLiteral(Expression e, Type other) { while (e.op == TOK.arrayLiteral && e.type.ty == Tarray && ((cast(ArrayLiteralExp)e).elements.dim == 1)) { auto ale = cast(ArrayLiteralExp)e; e = ale[0]; if (other.ty == Tsarray || other.ty == Tarray) other = other.nextOf(); else return false; } if (other.ty != Tsarray && other.ty != Tarray) return false; Type t = e.type; return (e.op == TOK.arrayLiteral && t.ty == Tarray && t.nextOf().ty == Tvoid && (cast(ArrayLiteralExp)e).elements.dim == 0); } /************************************** * Combine types. * Output: * *pt merged type, if *pt is not NULL * *pe1 rewritten e1 * *pe2 rewritten e2 * Returns: * true success * false failed */ bool typeMerge(Scope* sc, TOK op, Type* pt, Expression* pe1, Expression* pe2) { //printf("typeMerge() %s op %s\n", pe1.toChars(), pe2.toChars()); MATCH m; Expression e1 = *pe1; Expression e2 = *pe2; Type t1 = e1.type; Type t2 = e2.type; Type t1b = e1.type.toBasetype(); Type t2b = e2.type.toBasetype(); Type t; bool Lret() { if (!*pt) *pt = t; *pe1 = e1; *pe2 = e2; version (none) { printf("-typeMerge() %s op %s\n", e1.toChars(), e2.toChars()); if (e1.type) printf("\tt1 = %s\n", e1.type.toChars()); if (e2.type) printf("\tt2 = %s\n", e2.type.toChars()); printf("\ttype = %s\n", t.toChars()); } return true; } bool Lt1() { e2 = e2.castTo(sc, t1); t = t1; return Lret(); } bool Lt2() { e1 = e1.castTo(sc, t2); t = t2; return Lret(); } bool Lincompatible() { return false; } if (op != TOK.question || t1b.ty != t2b.ty && (t1b.isTypeBasic() && t2b.isTypeBasic())) { if (op == TOK.question && t1b.ischar() && t2b.ischar()) { e1 = charPromotions(e1, sc); e2 = charPromotions(e2, sc); } else { e1 = integralPromotions(e1, sc); e2 = integralPromotions(e2, sc); } } t1 = e1.type; t2 = e2.type; assert(t1); t = t1; /* The start type of alias this type recursion. * In following case, we should save A, and stop recursion * if it appears again. * X -> Y -> [A] -> B -> A -> B -> ... */ Type att1 = null; Type att2 = null; //if (t1) printf("\tt1 = %s\n", t1.toChars()); //if (t2) printf("\tt2 = %s\n", t2.toChars()); debug { if (!t2) printf("\te2 = '%s'\n", e2.toChars()); } assert(t2); if (t1.mod != t2.mod && t1.ty == Tenum && t2.ty == Tenum && (cast(TypeEnum)t1).sym == (cast(TypeEnum)t2).sym) { ubyte mod = MODmerge(t1.mod, t2.mod); t1 = t1.castMod(mod); t2 = t2.castMod(mod); } Lagain: t1b = t1.toBasetype(); t2b = t2.toBasetype(); TY ty = cast(TY)impcnvResult[t1b.ty][t2b.ty]; if (ty != Terror) { TY ty1 = cast(TY)impcnvType1[t1b.ty][t2b.ty]; TY ty2 = cast(TY)impcnvType2[t1b.ty][t2b.ty]; if (t1b.ty == ty1) // if no promotions { if (t1.equals(t2)) { t = t1; return Lret(); } if (t1b.equals(t2b)) { t = t1b; return Lret(); } } t = Type.basic[ty]; t1 = Type.basic[ty1]; t2 = Type.basic[ty2]; e1 = e1.castTo(sc, t1); e2 = e2.castTo(sc, t2); return Lret(); } t1 = t1b; t2 = t2b; if (t1.ty == Ttuple || t2.ty == Ttuple) return Lincompatible(); if (t1.equals(t2)) { // merging can not result in new enum type if (t.ty == Tenum) t = t1b; } else if ((t1.ty == Tpointer && t2.ty == Tpointer) || (t1.ty == Tdelegate && t2.ty == Tdelegate)) { // Bring pointers to compatible type Type t1n = t1.nextOf(); Type t2n = t2.nextOf(); if (t1n.equals(t2n)) { } else if (t1n.ty == Tvoid) // pointers to void are always compatible t = t2; else if (t2n.ty == Tvoid) { } else if (t1.implicitConvTo(t2)) { return Lt2(); } else if (t2.implicitConvTo(t1)) { return Lt1(); } else if (t1n.ty == Tfunction && t2n.ty == Tfunction) { TypeFunction tf1 = cast(TypeFunction)t1n; TypeFunction tf2 = cast(TypeFunction)t2n; tf1.purityLevel(); tf2.purityLevel(); TypeFunction d = cast(TypeFunction)tf1.syntaxCopy(); if (tf1.purity != tf2.purity) d.purity = PURE.impure; assert(d.purity != PURE.fwdref); d.isnothrow = (tf1.isnothrow && tf2.isnothrow); d.isnogc = (tf1.isnogc && tf2.isnogc); if (tf1.trust == tf2.trust) d.trust = tf1.trust; else if (tf1.trust <= TRUST.system || tf2.trust <= TRUST.system) d.trust = TRUST.system; else d.trust = TRUST.trusted; Type tx = null; if (t1.ty == Tdelegate) { tx = new TypeDelegate(d); } else tx = d.pointerTo(); tx = tx.typeSemantic(e1.loc, sc); if (t1.implicitConvTo(tx) && t2.implicitConvTo(tx)) { t = tx; e1 = e1.castTo(sc, t); e2 = e2.castTo(sc, t); return Lret(); } return Lincompatible(); } else if (t1n.mod != t2n.mod) { if (!t1n.isImmutable() && !t2n.isImmutable() && t1n.isShared() != t2n.isShared()) return Lincompatible(); ubyte mod = MODmerge(t1n.mod, t2n.mod); t1 = t1n.castMod(mod).pointerTo(); t2 = t2n.castMod(mod).pointerTo(); t = t1; goto Lagain; } else if (t1n.ty == Tclass && t2n.ty == Tclass) { ClassDeclaration cd1 = t1n.isClassHandle(); ClassDeclaration cd2 = t2n.isClassHandle(); int offset; if (cd1.isBaseOf(cd2, &offset)) { if (offset) e2 = e2.castTo(sc, t); } else if (cd2.isBaseOf(cd1, &offset)) { t = t2; if (offset) e1 = e1.castTo(sc, t); } else return Lincompatible(); } else { t1 = t1n.constOf().pointerTo(); t2 = t2n.constOf().pointerTo(); if (t1.implicitConvTo(t2)) { return Lt2(); } else if (t2.implicitConvTo(t1)) { return Lt1(); } return Lincompatible(); } } else if ((t1.ty == Tsarray || t1.ty == Tarray) && (e2.op == TOK.null_ && t2.ty == Tpointer && t2.nextOf().ty == Tvoid || e2.op == TOK.arrayLiteral && t2.ty == Tsarray && t2.nextOf().ty == Tvoid && (cast(TypeSArray)t2).dim.toInteger() == 0 || isVoidArrayLiteral(e2, t1))) { /* (T[n] op void*) => T[] * (T[] op void*) => T[] * (T[n] op void[0]) => T[] * (T[] op void[0]) => T[] * (T[n] op void[]) => T[] * (T[] op void[]) => T[] */ goto Lx1; } else if ((t2.ty == Tsarray || t2.ty == Tarray) && (e1.op == TOK.null_ && t1.ty == Tpointer && t1.nextOf().ty == Tvoid || e1.op == TOK.arrayLiteral && t1.ty == Tsarray && t1.nextOf().ty == Tvoid && (cast(TypeSArray)t1).dim.toInteger() == 0 || isVoidArrayLiteral(e1, t2))) { /* (void* op T[n]) => T[] * (void* op T[]) => T[] * (void[0] op T[n]) => T[] * (void[0] op T[]) => T[] * (void[] op T[n]) => T[] * (void[] op T[]) => T[] */ goto Lx2; } else if ((t1.ty == Tsarray || t1.ty == Tarray) && (m = t1.implicitConvTo(t2)) != MATCH.nomatch) { // https://issues.dlang.org/show_bug.cgi?id=7285 // Tsarray op [x, y, ...] should to be Tsarray // https://issues.dlang.org/show_bug.cgi?id=14737 // Tsarray ~ [x, y, ...] should to be Tarray if (t1.ty == Tsarray && e2.op == TOK.arrayLiteral && op != TOK.concatenate) return Lt1(); if (m == MATCH.constant && (op == TOK.addAssign || op == TOK.minAssign || op == TOK.mulAssign || op == TOK.divAssign || op == TOK.modAssign || op == TOK.powAssign || op == TOK.andAssign || op == TOK.orAssign || op == TOK.xorAssign)) { // Don't make the lvalue const t = t2; return Lret(); } return Lt2(); } else if ((t2.ty == Tsarray || t2.ty == Tarray) && t2.implicitConvTo(t1)) { // https://issues.dlang.org/show_bug.cgi?id=7285 // https://issues.dlang.org/show_bug.cgi?id=14737 if (t2.ty == Tsarray && e1.op == TOK.arrayLiteral && op != TOK.concatenate) return Lt2(); return Lt1(); } else if ((t1.ty == Tsarray || t1.ty == Tarray || t1.ty == Tpointer) && (t2.ty == Tsarray || t2.ty == Tarray || t2.ty == Tpointer) && t1.nextOf().mod != t2.nextOf().mod) { /* If one is mutable and the other invariant, then retry * with both of them as const */ Type t1n = t1.nextOf(); Type t2n = t2.nextOf(); ubyte mod; if (e1.op == TOK.null_ && e2.op != TOK.null_) mod = t2n.mod; else if (e1.op != TOK.null_ && e2.op == TOK.null_) mod = t1n.mod; else if (!t1n.isImmutable() && !t2n.isImmutable() && t1n.isShared() != t2n.isShared()) return Lincompatible(); else mod = MODmerge(t1n.mod, t2n.mod); if (t1.ty == Tpointer) t1 = t1n.castMod(mod).pointerTo(); else t1 = t1n.castMod(mod).arrayOf(); if (t2.ty == Tpointer) t2 = t2n.castMod(mod).pointerTo(); else t2 = t2n.castMod(mod).arrayOf(); t = t1; goto Lagain; } else if (t1.ty == Tclass && t2.ty == Tclass) { if (t1.mod != t2.mod) { ubyte mod; if (e1.op == TOK.null_ && e2.op != TOK.null_) mod = t2.mod; else if (e1.op != TOK.null_ && e2.op == TOK.null_) mod = t1.mod; else if (!t1.isImmutable() && !t2.isImmutable() && t1.isShared() != t2.isShared()) return Lincompatible(); else mod = MODmerge(t1.mod, t2.mod); t1 = t1.castMod(mod); t2 = t2.castMod(mod); t = t1; goto Lagain; } goto Lcc; } else if (t1.ty == Tclass || t2.ty == Tclass) { Lcc: while (1) { MATCH i1 = e2.implicitConvTo(t1); MATCH i2 = e1.implicitConvTo(t2); if (i1 && i2) { // We have the case of class vs. void*, so pick class if (t1.ty == Tpointer) i1 = MATCH.nomatch; else if (t2.ty == Tpointer) i2 = MATCH.nomatch; } if (i2) { e2 = e2.castTo(sc, t2); return Lt2(); } else if (i1) { e1 = e1.castTo(sc, t1); return Lt1(); } else if (t1.ty == Tclass && t2.ty == Tclass) { TypeClass tc1 = cast(TypeClass)t1; TypeClass tc2 = cast(TypeClass)t2; /* Pick 'tightest' type */ ClassDeclaration cd1 = tc1.sym.baseClass; ClassDeclaration cd2 = tc2.sym.baseClass; if (cd1 && cd2) { t1 = cd1.type.castMod(t1.mod); t2 = cd2.type.castMod(t2.mod); } else if (cd1) t1 = cd1.type; else if (cd2) t2 = cd2.type; else return Lincompatible(); } else if (t1.ty == Tstruct && (cast(TypeStruct)t1).sym.aliasthis) { if (att1 && e1.type == att1) return Lincompatible(); if (!att1 && e1.type.checkAliasThisRec()) att1 = e1.type; //printf("att tmerge(c || c) e1 = %s\n", e1.type.toChars()); e1 = resolveAliasThis(sc, e1); t1 = e1.type; continue; } else if (t2.ty == Tstruct && (cast(TypeStruct)t2).sym.aliasthis) { if (att2 && e2.type == att2) return Lincompatible(); if (!att2 && e2.type.checkAliasThisRec()) att2 = e2.type; //printf("att tmerge(c || c) e2 = %s\n", e2.type.toChars()); e2 = resolveAliasThis(sc, e2); t2 = e2.type; continue; } else return Lincompatible(); } } else if (t1.ty == Tstruct && t2.ty == Tstruct) { if (t1.mod != t2.mod) { if (!t1.isImmutable() && !t2.isImmutable() && t1.isShared() != t2.isShared()) return Lincompatible(); ubyte mod = MODmerge(t1.mod, t2.mod); t1 = t1.castMod(mod); t2 = t2.castMod(mod); t = t1; goto Lagain; } TypeStruct ts1 = cast(TypeStruct)t1; TypeStruct ts2 = cast(TypeStruct)t2; if (ts1.sym != ts2.sym) { if (!ts1.sym.aliasthis && !ts2.sym.aliasthis) return Lincompatible(); MATCH i1 = MATCH.nomatch; MATCH i2 = MATCH.nomatch; Expression e1b = null; Expression e2b = null; if (ts2.sym.aliasthis) { if (att2 && e2.type == att2) return Lincompatible(); if (!att2 && e2.type.checkAliasThisRec()) att2 = e2.type; //printf("att tmerge(s && s) e2 = %s\n", e2.type.toChars()); e2b = resolveAliasThis(sc, e2); i1 = e2b.implicitConvTo(t1); } if (ts1.sym.aliasthis) { if (att1 && e1.type == att1) return Lincompatible(); if (!att1 && e1.type.checkAliasThisRec()) att1 = e1.type; //printf("att tmerge(s && s) e1 = %s\n", e1.type.toChars()); e1b = resolveAliasThis(sc, e1); i2 = e1b.implicitConvTo(t2); } if (i1 && i2) return Lincompatible(); if (i1) return Lt1(); else if (i2) return Lt2(); if (e1b) { e1 = e1b; t1 = e1b.type.toBasetype(); } if (e2b) { e2 = e2b; t2 = e2b.type.toBasetype(); } t = t1; goto Lagain; } } else if (t1.ty == Tstruct || t2.ty == Tstruct) { if (t1.ty == Tstruct && (cast(TypeStruct)t1).sym.aliasthis) { if (att1 && e1.type == att1) return Lincompatible(); if (!att1 && e1.type.checkAliasThisRec()) att1 = e1.type; //printf("att tmerge(s || s) e1 = %s\n", e1.type.toChars()); e1 = resolveAliasThis(sc, e1); t1 = e1.type; t = t1; goto Lagain; } if (t2.ty == Tstruct && (cast(TypeStruct)t2).sym.aliasthis) { if (att2 && e2.type == att2) return Lincompatible(); if (!att2 && e2.type.checkAliasThisRec()) att2 = e2.type; //printf("att tmerge(s || s) e2 = %s\n", e2.type.toChars()); e2 = resolveAliasThis(sc, e2); t2 = e2.type; t = t2; goto Lagain; } return Lincompatible(); } else if ((e1.op == TOK.string_ || e1.op == TOK.null_) && e1.implicitConvTo(t2)) { return Lt2(); } else if ((e2.op == TOK.string_ || e2.op == TOK.null_) && e2.implicitConvTo(t1)) { return Lt1(); } else if (t1.ty == Tsarray && t2.ty == Tsarray && e2.implicitConvTo(t1.nextOf().arrayOf())) { Lx1: t = t1.nextOf().arrayOf(); // T[] e1 = e1.castTo(sc, t); e2 = e2.castTo(sc, t); } else if (t1.ty == Tsarray && t2.ty == Tsarray && e1.implicitConvTo(t2.nextOf().arrayOf())) { Lx2: t = t2.nextOf().arrayOf(); e1 = e1.castTo(sc, t); e2 = e2.castTo(sc, t); } else if (t1.ty == Tvector && t2.ty == Tvector) { // https://issues.dlang.org/show_bug.cgi?id=13841 // all vector types should have no common types between // different vectors, even though their sizes are same. auto tv1 = cast(TypeVector)t1; auto tv2 = cast(TypeVector)t2; if (!tv1.basetype.equals(tv2.basetype)) return Lincompatible(); goto LmodCompare; } else if (t1.ty == Tvector && t2.ty != Tvector && e2.implicitConvTo(t1)) { e2 = e2.castTo(sc, t1); t2 = t1; t = t1; goto Lagain; } else if (t2.ty == Tvector && t1.ty != Tvector && e1.implicitConvTo(t2)) { e1 = e1.castTo(sc, t2); t1 = t2; t = t1; goto Lagain; } else if (t1.isintegral() && t2.isintegral()) { if (t1.ty != t2.ty) { if (t1.ty == Tvector || t2.ty == Tvector) return Lincompatible(); e1 = integralPromotions(e1, sc); e2 = integralPromotions(e2, sc); t1 = e1.type; t2 = e2.type; goto Lagain; } assert(t1.ty == t2.ty); LmodCompare: if (!t1.isImmutable() && !t2.isImmutable() && t1.isShared() != t2.isShared()) return Lincompatible(); ubyte mod = MODmerge(t1.mod, t2.mod); t1 = t1.castMod(mod); t2 = t2.castMod(mod); t = t1; e1 = e1.castTo(sc, t); e2 = e2.castTo(sc, t); goto Lagain; } else if (t1.ty == Tnull && t2.ty == Tnull) { ubyte mod = MODmerge(t1.mod, t2.mod); t = t1.castMod(mod); e1 = e1.castTo(sc, t); e2 = e2.castTo(sc, t); return Lret(); } else if (t2.ty == Tnull && (t1.ty == Tpointer || t1.ty == Taarray || t1.ty == Tarray)) { return Lt1(); } else if (t1.ty == Tnull && (t2.ty == Tpointer || t2.ty == Taarray || t2.ty == Tarray)) { return Lt2(); } else if (t1.ty == Tarray && isBinArrayOp(op) && isArrayOpOperand(e1)) { if (e2.implicitConvTo(t1.nextOf())) { // T[] op T // T[] op cast(T)U e2 = e2.castTo(sc, t1.nextOf()); t = t1.nextOf().arrayOf(); } else if (t1.nextOf().implicitConvTo(e2.type)) { // (cast(T)U)[] op T (https://issues.dlang.org/show_bug.cgi?id=12780) // e1 is left as U[], it will be handled in arrayOp() later. t = e2.type.arrayOf(); } else if (t2.ty == Tarray && isArrayOpOperand(e2)) { if (t1.nextOf().implicitConvTo(t2.nextOf())) { // (cast(T)U)[] op T[] (https://issues.dlang.org/show_bug.cgi?id=12780) // e1 is left as U[], it will be handled in arrayOp() later. t = t2.nextOf().arrayOf(); } else if (t2.nextOf().implicitConvTo(t1.nextOf())) { // T[] op (cast(T)U)[] (https://issues.dlang.org/show_bug.cgi?id=12780) // e2 is left as U[], it will be handled in arrayOp() later. t = t1.nextOf().arrayOf(); } else return Lincompatible(); } else return Lincompatible(); } else if (t2.ty == Tarray && isBinArrayOp(op) && isArrayOpOperand(e2)) { if (e1.implicitConvTo(t2.nextOf())) { // T op T[] // cast(T)U op T[] e1 = e1.castTo(sc, t2.nextOf()); t = t2.nextOf().arrayOf(); } else if (t2.nextOf().implicitConvTo(e1.type)) { // T op (cast(T)U)[] (https://issues.dlang.org/show_bug.cgi?id=12780) // e2 is left as U[], it will be handled in arrayOp() later. t = e1.type.arrayOf(); } else return Lincompatible(); //printf("test %s\n", Token::toChars(op)); e1 = e1.optimize(WANTvalue); if (isCommutative(op) && e1.isConst()) { /* Swap operands to minimize number of functions generated */ //printf("swap %s\n", Token::toChars(op)); Expression tmp = e1; e1 = e2; e2 = tmp; } } else { return Lincompatible(); } return Lret(); } /************************************ * Bring leaves to common type. * Returns: * null on success, ErrorExp if error occurs */ Expression typeCombine(BinExp be, Scope* sc) { Expression errorReturn() { Expression ex = be.incompatibleTypes(); if (ex.op == TOK.error) return ex; return new ErrorExp(); } Type t1 = be.e1.type.toBasetype(); Type t2 = be.e2.type.toBasetype(); if (be.op == TOK.min || be.op == TOK.add) { // struct+struct, and class+class are errors if (t1.ty == Tstruct && t2.ty == Tstruct) return errorReturn(); else if (t1.ty == Tclass && t2.ty == Tclass) return errorReturn(); else if (t1.ty == Taarray && t2.ty == Taarray) return errorReturn(); } if (!typeMerge(sc, be.op, &be.type, &be.e1, &be.e2)) return errorReturn(); // If the types have no value, return an error if (be.e1.op == TOK.error) return be.e1; if (be.e2.op == TOK.error) return be.e2; return null; } /*********************************** * Do integral promotions (convertchk). * Don't convert <array of> to <pointer to> */ Expression integralPromotions(Expression e, Scope* sc) { //printf("integralPromotions %s %s\n", e.toChars(), e.type.toChars()); switch (e.type.toBasetype().ty) { case Tvoid: e.error("void has no value"); return new ErrorExp(); case Tint8: case Tuns8: case Tint16: case Tuns16: case Tbool: case Tchar: case Twchar: e = e.castTo(sc, Type.tint32); break; case Tdchar: e = e.castTo(sc, Type.tuns32); break; default: break; } return e; } /*********************************** * Do char promotions. * char -> dchar * wchar -> dchar * dchar -> dchar */ Expression charPromotions(Expression e, Scope* sc) { //printf("charPromotions %s %s\n", e.toChars(), e.type.toChars()); switch (e.type.toBasetype().ty) { case Tchar: case Twchar: case Tdchar: e = e.castTo(sc, Type.tdchar); break; default: assert(0); } return e; } /****************************************************** * This provides a transition from the non-promoting behavior * of unary + - ~ to the C-like integral promotion behavior. * Params: * sc = context * ue = NegExp, UAddExp, or ComExp which is revised per rules * References: * https://issues.dlang.org/show_bug.cgi?id=16997 */ void fix16997(Scope* sc, UnaExp ue) { if (global.params.fix16997) ue.e1 = integralPromotions(ue.e1, sc); // desired C-like behavor else { switch (ue.e1.type.toBasetype.ty) { case Tint8: case Tuns8: case Tint16: case Tuns16: //case Tbool: // these operations aren't allowed on bool anyway case Tchar: case Twchar: case Tdchar: ue.deprecation("integral promotion not done for `%s`, use '-preview=intpromote' switch or `%scast(int)(%s)`", ue.toChars(), Token.toChars(ue.op), ue.e1.toChars()); break; default: break; } } } /*********************************** * See if both types are arrays that can be compared * for equality. Return true if so. * If they are arrays, but incompatible, issue error. * This is to enable comparing things like an immutable * array with a mutable one. */ extern (C++) bool arrayTypeCompatible(Loc loc, Type t1, Type t2) { t1 = t1.toBasetype().merge2(); t2 = t2.toBasetype().merge2(); if ((t1.ty == Tarray || t1.ty == Tsarray || t1.ty == Tpointer) && (t2.ty == Tarray || t2.ty == Tsarray || t2.ty == Tpointer)) { if (t1.nextOf().implicitConvTo(t2.nextOf()) < MATCH.constant && t2.nextOf().implicitConvTo(t1.nextOf()) < MATCH.constant && (t1.nextOf().ty != Tvoid && t2.nextOf().ty != Tvoid)) { error(loc, "array equality comparison type mismatch, `%s` vs `%s`", t1.toChars(), t2.toChars()); } return true; } return false; } /*********************************** * See if both types are arrays that can be compared * for equality without any casting. Return true if so. * This is to enable comparing things like an immutable * array with a mutable one. */ extern (C++) bool arrayTypeCompatibleWithoutCasting(Type t1, Type t2) { t1 = t1.toBasetype(); t2 = t2.toBasetype(); if ((t1.ty == Tarray || t1.ty == Tsarray || t1.ty == Tpointer) && t2.ty == t1.ty) { if (t1.nextOf().implicitConvTo(t2.nextOf()) >= MATCH.constant || t2.nextOf().implicitConvTo(t1.nextOf()) >= MATCH.constant) return true; } return false; } /******************************************************************/ /* Determine the integral ranges of an expression. * This is used to determine if implicit narrowing conversions will * be allowed. */ IntRange getIntRange(Expression e) { extern (C++) final class IntRangeVisitor : Visitor { alias visit = Visitor.visit; public: IntRange range; override void visit(Expression e) { range = IntRange.fromType(e.type); } override void visit(IntegerExp e) { range = IntRange(SignExtendedNumber(e.getInteger()))._cast(e.type); } override void visit(CastExp e) { range = getIntRange(e.e1)._cast(e.type); } override void visit(AddExp e) { IntRange ir1 = getIntRange(e.e1); IntRange ir2 = getIntRange(e.e2); range = (ir1 + ir2)._cast(e.type); } override void visit(MinExp e) { IntRange ir1 = getIntRange(e.e1); IntRange ir2 = getIntRange(e.e2); range = (ir1 - ir2)._cast(e.type); } override void visit(DivExp e) { IntRange ir1 = getIntRange(e.e1); IntRange ir2 = getIntRange(e.e2); range = (ir1 / ir2)._cast(e.type); } override void visit(MulExp e) { IntRange ir1 = getIntRange(e.e1); IntRange ir2 = getIntRange(e.e2); range = (ir1 * ir2)._cast(e.type); } override void visit(ModExp e) { IntRange ir1 = getIntRange(e.e1); IntRange ir2 = getIntRange(e.e2); // Modding on 0 is invalid anyway. if (!ir2.absNeg().imin.negative) { visit(cast(Expression)e); return; } range = (ir1 % ir2)._cast(e.type); } override void visit(AndExp e) { IntRange result; bool hasResult = false; result.unionOrAssign(getIntRange(e.e1) & getIntRange(e.e2), hasResult); assert(hasResult); range = result._cast(e.type); } override void visit(OrExp e) { IntRange result; bool hasResult = false; result.unionOrAssign(getIntRange(e.e1) | getIntRange(e.e2), hasResult); assert(hasResult); range = result._cast(e.type); } override void visit(XorExp e) { IntRange result; bool hasResult = false; result.unionOrAssign(getIntRange(e.e1) ^ getIntRange(e.e2), hasResult); assert(hasResult); range = result._cast(e.type); } override void visit(ShlExp e) { IntRange ir1 = getIntRange(e.e1); IntRange ir2 = getIntRange(e.e2); range = (ir1 << ir2)._cast(e.type); } override void visit(ShrExp e) { IntRange ir1 = getIntRange(e.e1); IntRange ir2 = getIntRange(e.e2); range = (ir1 >> ir2)._cast(e.type); } override void visit(UshrExp e) { IntRange ir1 = getIntRange(e.e1).castUnsigned(e.e1.type); IntRange ir2 = getIntRange(e.e2); range = (ir1 >>> ir2)._cast(e.type); } override void visit(AssignExp e) { range = getIntRange(e.e2)._cast(e.type); } override void visit(CondExp e) { // No need to check e.econd; assume caller has called optimize() IntRange ir1 = getIntRange(e.e1); IntRange ir2 = getIntRange(e.e2); range = ir1.unionWith(ir2)._cast(e.type); } override void visit(VarExp e) { Expression ie; VarDeclaration vd = e.var.isVarDeclaration(); if (vd && vd.range) range = vd.range._cast(e.type); else if (vd && vd._init && !vd.type.isMutable() && (ie = vd.getConstInitializer()) !is null) ie.accept(this); else visit(cast(Expression)e); } override void visit(CommaExp e) { e.e2.accept(this); } override void visit(ComExp e) { IntRange ir = getIntRange(e.e1); range = IntRange(SignExtendedNumber(~ir.imax.value, !ir.imax.negative), SignExtendedNumber(~ir.imin.value, !ir.imin.negative))._cast(e.type); } override void visit(NegExp e) { IntRange ir = getIntRange(e.e1); range = (-ir)._cast(e.type); } } scope IntRangeVisitor v = new IntRangeVisitor(); e.accept(v); return v.range; }
D
/Users/baris/contig-connectors/target/release/build/ryu-ad603101b521eb80/build_script_build-ad603101b521eb80: /Users/baris/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.5/build.rs /Users/baris/contig-connectors/target/release/build/ryu-ad603101b521eb80/build_script_build-ad603101b521eb80.d: /Users/baris/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.5/build.rs /Users/baris/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.5/build.rs:
D
#!/usr/bin/env dub /+ dub.sdl: name "median_filter" dependency "mir" path=".." dependency "imageformats" version="~>6.0.0" +/ import mir.ndslice; /++ A median filter is implemented as an example. The function `movingWindowByChannel` can also be used with other filters that use a sliding window as the argument, in particular with convolution matrices such as the $(LINK2 https://en.wikipedia.org/wiki/Sobel_operator, Sobel operator). `movingWindowByChannel` iterates over an image in sliding window mode. Each window is transferred to a `filter`, which calculates the value of the pixel that corresponds to the given window. This function does not calculate border cases in which a window overlaps the image partially. However, the function can still be used to carry out such calculations. That can be done by creating an amplified image, with the edges reflected from the original image, and then applying the given function to the new file. Note: You can find the example at $(LINK2 https://github.com/DlangScience/examples/tree/master/image_processing/median-filter, GitHub). Params: filter = unary function. Dimension window 2D is the argument. image = image dimensions `(h, w, c)`, where с is the number of channels in the image nr = number of rows in the window nс = number of columns in the window Returns: image dimensions `(h - nr + 1, w - nc + 1, c)`, where с is the number of channels in the image. Dense data layout is guaranteed. +/ Slice!(3, C*) movingWindowByChannel(alias filter, C) (Slice!(3, C*) image, size_t nr, size_t nc) { import std.algorithm.iteration: map; import std.array: array; // 0. 3D // The last dimension represents the color channel. auto wnds = image // 1. 2D composed of 1D // Packs the last dimension. .pack!1 // 2. 2D composed of 2D composed of 1D // Splits image into overlapping windows. .windows(nr, nc) // 3. 5D // Unpacks the windows. .unpack // 4. 5D // Brings the color channel dimension to the third position. .transposed!(0, 1, 4) // 5. 3D Composed of 2D // Packs the last two dimensions. .pack!2; return wnds // 6. Range composed of 2D // Gathers all windows in the range. .byElement // 7. Range composed of pixels // 2D to pixel lazy conversion. .map!filter // 8. `C[]` // The only memory allocation in this function. .array // 9. 3D // Returns slice with corresponding shape. .sliced(wnds.shape); } /++ Params: r = input range buf = buffer with length no less than the number of elements in `r` Returns: median value over the range `r` +/ T median(Range, T)(Range r, T[] buf) { import std.algorithm.sorting; size_t n; foreach (e; r) buf[n++] = e; immutable m = n >> 1; buf[0..n].topN(m); return buf[m]; } /++ This program works both with color and grayscale images. +/ void main(string[] args) { import std.conv: to; import std.getopt: getopt, defaultGetoptPrinter; import std.path: stripExtension; uint nr, nc, def = 3; auto helpInformation = args.getopt( "nr", "number of rows in window, default value is " ~ def.to!string, &nr, "nc", "number of columns in window, default value is equal to nr", &nc); if (helpInformation.helpWanted) { defaultGetoptPrinter( "Usage: median-filter [<options...>] [<file_names...>]\noptions:", helpInformation.options); return; } if (!nr) nr = def; if (!nc) nc = nr; auto buf = new ubyte[nr * nc]; if (args.length == 1) { import std.stdio: writeln; writeln("No input file given"); } foreach (name; args[1 .. $]) { import imageformats; // can be found at code.dlang.org IFImage image = read_image(name); auto ret = image.pixels .sliced(cast(size_t)image.h, cast(size_t)image.w, cast(size_t)image.c) .movingWindowByChannel !(window => median(window.byElement, buf)) (nr, nc); write_image( name.stripExtension ~ "_filtered.png", ret.length!1, ret.length!0, (&ret[0, 0, 0])[0 .. ret.elementsCount]); } }
D
/** Copyright: Copyright (c) 2017-2018 Andrey Penechko. License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Andrey Penechko. */ module voxelman.text.lexer; //import std.array; import std.range; import std.uni; import std.utf : byDchar, decodeFront; import std.stdio; struct Stack(T) { import std.array; T[] data; @property bool empty(){ return data.empty; } @property size_t length(){ return data.length; } void push(T val){ data ~= val; } T pop() { assert(!empty); auto val = data[$ - 1]; data = data[0 .. $ - 1]; if (!__ctfe) cast(void)data.assumeSafeAppend(); return val; } } enum TokenType { SOI, // start of input Invalid, Hexadecimal, Binary, Decimal, String, LabelDefinition, ReservedWord, BinaryOpCode, UnaryOpCode, Register, Identifier, OpenBracket, CloseBracket, Plus, Minus, Multiply, Divide, Comma, EOI // end of input } struct Token { TokenType type; StreamPos start; StreamPos end; } struct StreamPos { int pos = -1; } struct CharStream(R) if (isForwardRange!R && is(ElementType!R : dchar)) { R originalInput; struct StreamState { dchar current = '\2'; // start of text bool empty; StreamPos currentPos; R input; size_t currentOffset; } StreamState _state; alias _state this; Stack!StreamState _checkpointStack; this(R inp) { originalInput = input = inp; next(); } /// Returns false if input is empty /// Updates current and returns true otherwise bool next() { if (input.empty) { //writefln("next empty front %s ", current); if (!this.empty) // advance past last char { ++currentPos.pos; currentOffset = originalInput.length - this.input.length; current = '\3'; // end of text } this.empty = true; return false; } currentOffset = originalInput.length - this.input.length; current = decodeFront!(Yes.useReplacementDchar)(input); ++currentPos.pos; //input.popFront(); //writefln("next, state %s", _state); return true; } /// Skips zero or more whitespace chars consuming input void skipSpace() { while (isWhite(current) && next()) {} } /// Matches all chars from str consuming input and returns true /// If fails consumes no input and returns false bool match(R)(R str) if (isInputRange!R && is(ElementType!R : dchar)) { pushCheckpoint; foreach (dchar item; str.byDchar) { if (this.empty) { popCheckpoint; return false; } if (toLower(item) != toLower(current)) { popCheckpoint; return false; } next(); } discardCheckpoint; return true; } bool match(dchar chr) { //if (input.empty) return false; if (current == chr) { next(); return true; } return false; } bool matchCase(R)(R str) if (isInputRange!R && is(ElementType!R : dchar)) { pushCheckpoint; foreach (dchar item; str.byDchar) { if (this.empty) { popCheckpoint; return false; } if (item != current) { popCheckpoint; return false; } next(); } discardCheckpoint; return true; } /// Matches single char bool match(alias pred)() { //if (this.empty) return false; if (pred(current)) { next(); return true; } return false; } bool matchAnyOf(dchar[] options...) { //if (this.empty) return false; foreach (option; options) { if (option == current) { next(); return true; } } return false; } bool matchOpt(dchar optional) { match(optional); return true; } /// save current stream position void pushCheckpoint() { _checkpointStack.push(_state); } /// restore saved position void discardCheckpoint() { _checkpointStack.pop; } /// restore saved position void popCheckpoint() { _state = _checkpointStack.pop; } } /* TokenMatcher(ctRegex!(r"^(0x[0-9ABCDEF]+)\b","i"), TokenType.Hexadecimal), TokenMatcher(ctRegex!(r"^(0b[0-1]+)\b","i"), TokenType.Binary), TokenMatcher(ctRegex!(r"^([0-9]+)\b"), TokenType.Decimal), TokenMatcher(ctRegex!( "^(\".*\")"), TokenType.String), TokenMatcher(ctRegex!(r"^((:[0-9A-Za-z_]+)|([0-9A-Za-z_]+:))"), TokenType.LabelDefinition), TokenMatcher(ctRegex!(r"^(POP|PUSH|PEEK|PICK|DAT|DATA|DW|WORD)\b","i"), TokenType.ReservedWord), TokenMatcher(ctRegex!(r"^(SET|ADD|SUB|MUL|MLI|DIV|DVI|MOD|MDI|AND|BOR|XOR|SHR|ASR|SHL|IFB|IFC|IFE|IFN|IFG|IFA|IFL|IFU|ADX|SBX|STI|STD)\b","i"), TokenType.BinaryOpCode), TokenMatcher(ctRegex!(r"^(JSR|INT|IAG|IAS|RFI|IAQ|HWN|HWQ|HWI)\b", "i"), TokenType.UnaryOpCode), TokenMatcher(ctRegex!(r"^([ABCXYZIJ]|SP|PC|EX)\b","i"), TokenType.Register), TokenMatcher(ctRegex!(r"^([0-9A-Za-z_]+)"), TokenType.Identifier), TokenMatcher(ctRegex!(r"^\["), TokenType.OpenBracket), TokenMatcher(ctRegex!(r"^\+"), TokenType.Plus), TokenMatcher(ctRegex!(r"^-"), TokenType.Minus), TokenMatcher(ctRegex!(r"^\*"), TokenType.Multiply), TokenMatcher(ctRegex!(r"^/"), TokenType.Divide), TokenMatcher(ctRegex!(r"^\]"), TokenType.CloseBracket), TokenMatcher(ctRegex!("^,"), TokenType.Comma), */ bool isDigit(dchar chr) pure nothrow { return '0' <= chr && chr <= '9'; } bool isHexDigit(dchar chr) pure nothrow { return '0' <= chr && chr <= '9' || 'a' <= chr && chr <= 'f' || 'A' <= chr && chr <= 'F'; } struct TokenMatcher { bool delegate() matcher; TokenType type; } alias StringLexer = Lexer!string; struct Lexer(R) { CharStream!R input; TokenMatcher[] matchers; Token current; bool empty; int opApply(scope int delegate(in Token) del) { do { if (auto ret = del(current)) return ret; next(); } while (!empty); return 0; } bool matchHexNumber() { if (!input.match("0x")) return false; if (!input.match!isHexDigit) return false; while (input.match!isHexDigit) {} return true; } bool matchComment() { if (!input.match("/")) return false; if (!input.match!isHexDigit) return false; while (input.match!isHexDigit) {} return true; } private void next() { if (checkInputState) return; foreach (matcher; matchers) { input.pushCheckpoint; StreamPos startPos = input.currentPos; bool matchSuccess = matcher.matcher(); if (matchSuccess) { current = Token(matcher.type, startPos, input.currentPos); //writefln("success on %s, state %s", matcher.type, input._state); input.discardCheckpoint; return; } input.popCheckpoint; //writefln("fail %s", matcher.type); } current = Token(TokenType.Invalid, input.currentPos); } // returns true if no matching should be done private bool checkInputState() { if (input.empty) { if (current.type == TokenType.EOI) // on second try mark as empty and return { empty = true; } else // when input just became empty emit EOI token, but do not mark us as empty { current = Token(TokenType.EOI, input.currentPos); } return true; // exit matching } return false; // continue matching } }
D
/Users/michael/Desktop/Buildcoin/ChartTest/build/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChartDataProvider.o : /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/Legend.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/Description.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/LegendEntry.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 /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/michael/Desktop/Buildcoin/ChartTest/build/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/michael/Desktop/Buildcoin/ChartTest/build/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChartDataProvider~partial.swiftmodule : /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/Legend.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/Description.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/LegendEntry.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 /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/michael/Desktop/Buildcoin/ChartTest/build/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/michael/Desktop/Buildcoin/ChartTest/build/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChartDataProvider~partial.swiftdoc : /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/Legend.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/Description.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Charts/Source/Charts/Components/LegendEntry.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 /Users/michael/Desktop/Buildcoin/ChartTest/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/michael/Desktop/Buildcoin/ChartTest/build/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
D
/* * The MIT License (MIT) * * Copyright (c) 2014 Richard Andrew Cattermole * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ module livereload.impl.compilation; import livereload.defs; import vibe.inet.path; import vibe.core.file; mixin template Compilation() { import std.file : dirEntries, SpanMode; import std.traits : ReturnType; private shared { string[string] namesOfCodeUnitsBins; } bool compileCodeUnit(string name, string file) { import livereload.util; import std.path : dirName, globMatch; import std.string : indexOf; import ofile = std.file; import std.datetime : Clock; string[] files; string[] strImports; string[] binInfoCU; ReturnType!dirEntries entries; void discoverFiles() { if (isCodeUnitADirectory(name)) { file = codeUnitGlob(name); entries = dirEntries(buildPath(pathOfFiles, file), SpanMode.depth); // cache result removes like 30ms from running time. foreach(entry; entries) { if (isDExt(entry.name)) { files ~= entry.name; binInfoCU ~= entry.name; } } } else { files ~= buildPath(pathOfFiles, file); binInfoCU ~= file; } } void discoverDependencyFiles() { // determine dependency files bool[string] tfiles; foreach(file2; files) { file2 = Path(file2).relativeTo(Path(pathOfFiles)).toString(); foreach(r, globs; config.dirDependencies) { if (globMatch(file2, r)) { foreach(glob; globs) { foreach(entry; dirEntries(pathOfFiles, "*.{d,di}", SpanMode.depth)) { if (globMatch(entry.name, buildPath(pathOfFiles, glob))) { tfiles[entry.name] = true; } } } } } } files ~= tfiles.keys; tfiles = typeof(tfiles).init; } void discoverStrImports() { // determine dependency string imports bool[string] tfiles; foreach(file2; files) { file2 = Path(file2).relativeTo(Path(pathOfFiles)).toString(); foreach(r, globs; config.dirDependencies) { if (globMatch(file2, r)) { foreach(glob; globs) { foreach(entry; entries) { if (!isDExt(entry.name) && globMatch(entry.name, buildPath(pathOfFiles, glob))) { tfiles[dirName(entry.name)] = true; } } } } } } strImports ~= tfiles.keys; } void outputBinInfo() { string ofilePath = buildPath(pathOfFiles, config.outputDir, "bininfo.d"); string ret = "module livereload.bininfo;\r\nimport std.typecons : tuple;\r\n"; ret ~= "enum CODE_UNITS = tuple("; foreach(cu; binInfoCU) { string modul = getModuleFromFile(cu); if (modul !is null) ret ~= "\"" ~ modul ~ "\","; } ret ~= ");\r\n"; ret ~= "enum DFILES = tuple("; foreach(filez; files) { string modul = getModuleFromFile(filez); if (modul !is null) ret ~= "\"" ~ modul ~ "\","; } ret ~= ");\r\n"; files ~= ofilePath; ofile.write(ofilePath, ret); } isCompiling_ = true; scope(exit) isCompiling_ = false; discoverFiles(); discoverDependencyFiles(); discoverStrImports(); outputBinInfo(); string binFile = codeUnitBinaryPath(name, file); return dubCompile(name, lastNameOfPath(name, file), files, strImports); } void handleRecompilationRerun(string name, string file) { stopCodeUnit(name, file); import std.datetime; import core.time; auto start = Clock.currTime; if (compileCodeUnit(name, file)) { logInfo("Succesfull compilation took %s", (Clock.currTime-start).toString()); // TODO: log this? executeCodeUnit(name, file); } else { logInfo("Failure compilation took %s", (Clock.currTime-start).toString()); } } string codeUnitBinaryPath(string name, string file) { import std.path : dirName, baseName, buildPath; import std.datetime : Clock; import std.file : mkdirRecurse; string useName = name ~ (file is null ? "" : ""); string ret = name ~ "_" ~ baseName(file) ~ "_" ~ to!string(Path(dirName(file)).length) ~ "_" ~ to!string(Clock.currTime().toUnixTime()); mkdirRecurse(buildPath(config_.outputDir, ret)); ret = buildPath(ret, "out"); version(Windows) { ret ~= ".exe"; } synchronized namesOfCodeUnitsBins[useName] = cast(shared)ret; return ret; } string lastNameOfPath(string name, string file) { string useName = name ~ (file is null ? "" : ""); synchronized return cast()namesOfCodeUnitsBins[useName]; } } string getModuleFromFile(string file) { import std.regex : ctRegex, matchAll; import std.file : exists, isFile; if (exists(file) && isFile(file)){} else return null; string text = readFileUTF8(Path(file)); auto reg = ctRegex!`module (?P<name>[a-zA-Z_\.0-9]+);`; auto matches = matchAll(text, reg); foreach(match; matches) { return match["name"]; } return null; }
D
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/SQL.build/SQLDropTableBuilder.swift.o : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLBind.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLJoinMethod.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLTable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLCreateTable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDropTable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLAlterTable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLSerializable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDataType.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLUpdate.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDelete.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLLiteral.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLBoolLiteral.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDefaultLiteral.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLTableConstraintAlgorithm.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLColumnConstraintAlgorithm.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLJoin.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLExpression.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLSelectExpression.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLCollation.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLForeignKeyAction.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLConnection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDirection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLFunction.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLColumnDefinition.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLCreateTableBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDropTableBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLAlterTableBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLPredicateBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLUpdateBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDeleteBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLColumnBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLPredicateGroupBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLSelectBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLInsertBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLRawBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLCreateIndexBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLQueryBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLQueryEncoder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLQueryFetcher.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLIndexModifier.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLIdentifier.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLTableIdentifier.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLColumnIdentifier.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLBinaryOperator.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/Exports.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLSelect.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDistinct.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLFunctionArgument.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLTableConstraint.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLColumnConstraint.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLInsert.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLCreateIndex.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDropIndex.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLGroupBy.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLOrderBy.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLForeignKey.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLPrimaryKey.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLQuery.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/SQL.build/SQLDropTableBuilder~partial.swiftmodule : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLBind.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLJoinMethod.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLTable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLCreateTable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDropTable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLAlterTable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLSerializable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDataType.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLUpdate.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDelete.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLLiteral.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLBoolLiteral.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDefaultLiteral.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLTableConstraintAlgorithm.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLColumnConstraintAlgorithm.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLJoin.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLExpression.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLSelectExpression.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLCollation.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLForeignKeyAction.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLConnection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDirection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLFunction.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLColumnDefinition.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLCreateTableBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDropTableBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLAlterTableBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLPredicateBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLUpdateBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDeleteBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLColumnBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLPredicateGroupBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLSelectBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLInsertBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLRawBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLCreateIndexBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLQueryBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLQueryEncoder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLQueryFetcher.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLIndexModifier.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLIdentifier.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLTableIdentifier.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLColumnIdentifier.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLBinaryOperator.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/Exports.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLSelect.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDistinct.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLFunctionArgument.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLTableConstraint.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLColumnConstraint.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLInsert.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLCreateIndex.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDropIndex.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLGroupBy.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLOrderBy.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLForeignKey.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLPrimaryKey.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLQuery.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/SQL.build/SQLDropTableBuilder~partial.swiftdoc : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLBind.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLJoinMethod.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLTable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLCreateTable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDropTable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLAlterTable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLSerializable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDataType.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLUpdate.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDelete.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLLiteral.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLBoolLiteral.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDefaultLiteral.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLTableConstraintAlgorithm.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLColumnConstraintAlgorithm.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLJoin.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLExpression.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLSelectExpression.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLCollation.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLForeignKeyAction.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLConnection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDirection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLFunction.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLColumnDefinition.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLCreateTableBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDropTableBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLAlterTableBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLPredicateBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLUpdateBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDeleteBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLColumnBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLPredicateGroupBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLSelectBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLInsertBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLRawBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLCreateIndexBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLQueryBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLQueryEncoder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLQueryFetcher.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLIndexModifier.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLIdentifier.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLTableIdentifier.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLColumnIdentifier.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLBinaryOperator.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/Exports.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLSelect.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDistinct.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLFunctionArgument.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLTableConstraint.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLColumnConstraint.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLInsert.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLCreateIndex.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLDropIndex.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLGroupBy.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLOrderBy.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLForeignKey.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLPrimaryKey.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLQuery.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
format 76 no_msg end
D
/** * All image library abstractions and implementations * * License: * Copyright Devisualization (Richard Andrew Cattermole) 2014 - 2017. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ module devisualization.image; public import devisualization.image.primitives; public import devisualization.image.interfaces; public import devisualization.image.manipulation; public import devisualization.image.storage; public import devisualization.image.fileformats;
D
module syscalld.arch.syscall_x86; int syscall(int ident) { int ret; synchronized asm { mov EAX, ident; int 0x80; mov ret, EAX; } return ret; } int syscall(int ident, int n) { int ret; synchronized asm { mov EAX, ident; mov EBX, n[EBP]; int 0x80; mov ret, EAX; } return ret; } int syscall(int ident, int n, int arg1) { int ret; synchronized asm { mov EAX, ident; mov EBX, n[EBP]; mov ECX, arg1[EBP]; int 0x80; mov ret, EAX; } return ret; } int syscall(int ident, int n, int arg1, int arg2) { int ret; synchronized asm { mov EAX, ident; mov EBX, n[EBP]; mov ECX, arg1[EBP]; mov EDX, arg2[EBP]; int 0x80; mov ret, EAX; } return ret; } int syscall(int ident, int n, int arg1, int arg2, int arg3) { int ret; synchronized asm { mov EAX, ident; mov EBX, n[EBP]; mov ECX, arg1[EBP]; mov EDX, arg2[EBP]; mov ESI, arg3[EBP]; int 0x80; mov ret, EAX; } return ret; } int syscall(int ident, int n, int arg1, int arg2, int arg3, int arg4) { int ret; synchronized asm { mov EAX, ident; mov EBX, n[EBP]; mov ECX, arg1[EBP]; mov EDX, arg2[EBP]; mov ESI, arg3[EBP]; mov EDI, arg4[EBP]; int 0x80; mov ret, EAX; } return ret; } int syscall(int ident, int n, int arg1, int arg2, int arg3, int arg4, int arg5) { int ret; synchronized asm { mov EAX, ident; mov EBX, n[EBP]; mov ECX, arg1[EBP]; mov EDX, arg2[EBP]; mov ESI, arg3[EBP]; mov EDI, arg4[EBP]; mov EBP, arg5[EBP]; int 0x80; mov ret, EAX; } return ret; }
D
/** Helpers for working with user-defined attributes that can be attached to function or method to modify its behavior. In some sense those are similar to Python decorator. D does not support this feature natively but it can be emulated within certain code generation framework. Copyright: © 2013 RejectedSoftware e.K. License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Михаил Страшун */ module vibe.internal.meta.funcattr; import std.traits : isInstanceOf, ReturnType; /// example unittest { struct Context { int increment; string token; bool updated = false; } static int genID(Context* context) { static int id = 0; return (id += context.increment); } static string update(string result, Context* context) { context.updated = true; return result ~ context.token; } class API { @before!genID("id") @after!update() string handler(int id, string name, string text) { import std.string : format; return format("[%s] %s : %s", id, name, text); } } auto api = new API(); auto context = new Context(5, " | token"); auto funcattr = createAttributedFunction!(API.handler)(context); auto result = funcattr(&api.handler, "Developer", "Hello, World!"); assert (result == "[5] Developer : Hello, World! | token"); assert (context.updated); } /** Marks function/method for usage with `AttributedFunction`. Former will call a Hook before calling attributed function/method and provide its return value as input parameter. Params: Hook = function/method symbol to run before attributed function/method parameter_name = name in attributed function/method parameter list to bind result to Returns: internal attribute struct that embeds supplied information */ auto before(alias Hook)(string parameter_name) { return InputAttribute!Hook(parameter_name); } /// unittest { int genID() { return 42; } @before!genID("id") void foo(int id, double something) {} } /** Marks function/method for usage with `AttributedFunction`. Former will call a Hook after calling attributed function/method and provide its return value as a single input parameter for a Hook. There can be only one "after"-attribute attached to a single symbol. Params: Hook = function/method symbol to run after attributed function/method Returns: internal attribute struct that embeds supplied information */ auto after(alias Function)() { return OutputAttribute!Function(); } /// unittest { auto filter(int result) { return result; } @after!filter() int foo() { return 42; } } /** Checks if parameter is calculated by one of attached functions. Params: Function = function symbol to query for attributes name = parameter name to check Returns: `true` if it is calculated */ template IsAttributedParameter(alias Function, string name) { import std.traits : FunctionTypeOf; static assert (is(FunctionTypeOf!Function)); private { alias Data = AttributedParameterMetadata!Function; template Impl(T...) { static if (T.length == 0) { enum Impl = false; } else { static if (T[0].name == name) { enum Impl = true; } else { enum Impl = Impl!(T[1..$]); } } } } enum IsAttributedParameter = Impl!Data; } template HasFuncAttributes(alias Func) { import std.typetuple; enum HasFuncAttributes = (anySatisfy!(isOutputAttribute, __traits(getAttributes, Func)) || anySatisfy!(isInputAttribute, __traits(getAttributes, Func))); } unittest { string foo() { return "Hello"; } string bar(int) { return foo(); } @before!foo("b") void baz1(string b) {} @after!bar() string baz2() { return "Hi"; } @before!foo("b") @after!bar() string baz3(string b) { return "Hi"; } static assert (HasFuncAttributes!baz1); static assert (HasFuncAttributes!baz2); static assert (HasFuncAttributes!baz3); string foobar1(string b) { return b; } @("Irrelevant", 42) string foobar2(string b) { return b; } static assert (!HasFuncAttributes!foobar1); static assert (!HasFuncAttributes!foobar2); } /** Computes the given attributed parameter using the corresponding @before modifier. */ auto computeAttributedParameter(alias FUNCTION, string NAME, ARGS...)(ARGS args) { import std.typetuple : Filter; static assert(IsAttributedParameter!(FUNCTION, NAME), "Missing @before attribute for parameter "~NAME); alias input_attributes = Filter!(isInputAttribute, __traits(getAttributes, FUNCTION)); foreach (att; input_attributes) static if (att.parameter == NAME) { return att.evaluator(args); } assert(false); } /** Computes the given attributed parameter using the corresponding @before modifier. This overload tries to invoke the given function as a member of the $(D ctx) parameter. It also supports accessing private member functions using the $(D PrivateAccessProxy) mixin. */ auto computeAttributedParameterCtx(alias FUNCTION, string NAME, T, ARGS...)(T ctx, ARGS args) { import std.typetuple : Filter; static assert(IsAttributedParameter!(FUNCTION, NAME), "Missing @before attribute for parameter "~NAME); alias input_attributes = Filter!(isInputAttribute, __traits(getAttributes, FUNCTION)); foreach (att; input_attributes) static if (att.parameter == NAME) { static if (is(typeof(__traits(parent, att.evaluator).init) == T)) { static if (is(typeof(ctx.invokeProxy__!(att.evaluator)(args)))) return ctx.invokeProxy__!(att.evaluator)(args); else return __traits(getMember, ctx, __traits(identifier, att.evaluator))(args); } else { return att.evaluator(args); } } assert(false); } /** Helper mixin to support private member functions for $(D @before) attributes. */ mixin template PrivateAccessProxy() { auto invokeProxy__(alias MEMBER, ARGS...)(ARGS args) { return MEMBER(args); } } /// unittest { class MyClass { @before!computeParam("param") void method(bool param) { assert(param == true); } private bool computeParam() { return true; } } } /** Processes the function return value using all @after modifiers. */ ReturnType!FUNCTION evaluateOutputModifiers(alias FUNCTION)(ReturnType!FUNCTION result) { import std.typetuple : Filter; alias output_attributes = Filter!(isOutputAttribute, __traits(getAttributes, FUNCTION)); foreach (OA; output_attributes) { import std.typetuple : TypeTuple; static assert ( Compare!( Group!(ParameterTypeTuple!(OA.modificator)), Group!(ReturnType!Function, StoredArgTypes.expand) ), format( "Output attribute function '%s%s' argument list " ~ "does not match provided argument list %s", fullyQualifiedName!(OA.modificator), ParameterTypeTuple!(OA.modificator).stringof, TypeTuple!(ReturnType!Function, StoredArgTypes.expand).stringof ) ); result = OA.modificator(result, m_storedArgs); } return result; } /// unittest { int foo() { return 42; } @before!foo("name1") void bar(int name1, double name2) { } static assert (IsAttributedParameter!(bar, "name1")); static assert (!IsAttributedParameter!(bar, "name2")); static assert (!IsAttributedParameter!(bar, "oops")); } // internal attribute definitions private { struct InputAttribute(alias Function) { alias evaluator = Function; string parameter; } struct OutputAttribute(alias Function) { alias modificator = Function; } template isInputAttribute(T...) { enum isInputAttribute = (T.length == 1) && isInstanceOf!(InputAttribute, typeof(T[0])); } unittest { void foo() {} enum correct = InputAttribute!foo("name"); enum wrong = OutputAttribute!foo(); static assert (isInputAttribute!correct); static assert (!isInputAttribute!wrong); } template isOutputAttribute(T...) { enum isOutputAttribute = (T.length == 1) && isInstanceOf!(OutputAttribute, typeof(T[0])); } unittest { void foo() {} enum correct = OutputAttribute!foo(); enum wrong = InputAttribute!foo("name"); static assert (isOutputAttribute!correct); static assert (!isOutputAttribute!wrong); } } // tools to operate on InputAttribute tuple private { // stores metadata for single InputAttribute "effect" struct Parameter { // evaluated parameter name string name; // that parameter index in attributed function parameter list int index; // fully qualified return type of attached function string type; // for non-basic types - module to import string origin; } /** Used to accumulate various parameter-related metadata in one tuple in one go. Params: Function = attributed functon / method symbol Returns: TypeTuple of Parameter instances, one for every Function parameter that will be evaluated from attributes. */ template AttributedParameterMetadata(alias Function) { import std.array : join; import std.typetuple : Filter, staticMap, staticIndexOf; import std.traits : ParameterIdentifierTuple, ReturnType, fullyQualifiedName, moduleName; private alias attributes = Filter!( isInputAttribute, __traits(getAttributes, Function) ); private alias parameter_names = ParameterIdentifierTuple!Function; /* Creates single Parameter instance. Used in pair with staticMap. */ template BuildParameter(alias attribute) { enum name = attribute.parameter; static assert ( is (ReturnType!(attribute.evaluator)) && !(is(ReturnType!(attribute.evaluator) == void)), "hook functions attached for usage with `AttributedFunction` " ~ "must have a return type" ); static if (is(typeof(moduleName!(ReturnType!(attribute.evaluator))))) { enum origin = moduleName!(ReturnType!(attribute.evaluator)); } else { enum origin = ""; } enum BuildParameter = Parameter( name, staticIndexOf!(name, parameter_names), fullyQualifiedName!(ReturnType!(attribute.evaluator)), origin ); import std.string : format; static assert ( BuildParameter.index >= 0, format( "You are trying to attach function result to parameter '%s' " ~ "but there is no such parameter for '%s(%s)'", name, fullyQualifiedName!Function, join([ parameter_names ], ", ") ) ); } alias AttributedParameterMetadata = staticMap!(BuildParameter, attributes); } // no false attribute detection unittest { @(42) void foo() {} static assert (AttributedParameterMetadata!foo.length == 0); } // does not compile for wrong attribute data unittest { int attached1() { return int.init; } void attached2() {} @before!attached1("doesnotexist") void bar(int param) {} @before!attached2("param") void baz(int param) {} // wrong name static assert (!__traits(compiles, AttributedParameterMetadata!bar)); // no return type static assert (!__traits(compiles, AttributedParameterMetadata!baz)); } // generates expected tuple for valid input unittest { int attached1() { return int.init; } double attached2() { return double.init; } @before!attached1("two") @before!attached2("three") void foo(string one, int two, double three) {} alias result = AttributedParameterMetadata!foo; static assert (result.length == 2); static assert (result[0] == Parameter("two", 1, "int")); static assert (result[1] == Parameter("three", 2, "double")); } /** Combines types from arguments of initial `AttributedFunction` call with parameters (types) injected by attributes for that call. Used to verify that resulting argument list can be passed to underlying attributed function. Params: ParameterMeta = Group of Parameter instances for extra data to add into argument list ParameterList = Group of types from initial argument list Returns: type tuple of expected combined function argument list */ template MergeParameterTypes(alias ParameterMeta, alias ParameterList) { import vibe.internal.meta.typetuple : isGroup, Group; static assert (isGroup!ParameterMeta); static assert (isGroup!ParameterList); static if (ParameterMeta.expand.length) { enum Parameter meta = ParameterMeta.expand[0]; static assert (meta.index <= ParameterList.expand.length); static if (meta.origin != "") { mixin("static import " ~ meta.origin ~ ";"); } mixin("alias type = " ~ meta.type ~ ";"); alias PartialResult = Group!( ParameterList.expand[0..meta.index], type, ParameterList.expand[meta.index..$] ); alias MergeParameterTypes = MergeParameterTypes!( Group!(ParameterMeta.expand[1..$]), PartialResult ); } else { alias MergeParameterTypes = ParameterList.expand; } } // normal unittest { import vibe.internal.meta.typetuple : Group, Compare; alias meta = Group!( Parameter("one", 2, "int"), Parameter("two", 3, "string") ); alias initial = Group!( double, double, double ); alias merged = Group!(MergeParameterTypes!(meta, initial)); static assert ( Compare!(merged, Group!(double, double, int, string, double)) ); } // edge unittest { import vibe.internal.meta.typetuple : Group, Compare; alias meta = Group!( Parameter("one", 3, "int"), Parameter("two", 4, "string") ); alias initial = Group!( double, double, double ); alias merged = Group!(MergeParameterTypes!(meta, initial)); static assert ( Compare!(merged, Group!(double, double, double, int, string)) ); } // out-of-index unittest { import vibe.internal.meta.typetuple : Group; alias meta = Group!( Parameter("one", 20, "int"), ); alias initial = Group!( double ); static assert ( !__traits(compiles, MergeParameterTypes!(meta, initial)) ); } } /** Entry point for `funcattr` API. Helper struct that takes care of calling given Function in a such way that part of its arguments are evalutated by attached input attributes (see `before`) and output gets post-processed by output attribute (see `after`). One such structure embeds single attributed function to call and specific argument type list that can be passed to attached functions. Params: Function = attributed function StoredArgTypes = Group of argument types for attached functions */ struct AttributedFunction(alias Function, alias StoredArgTypes) { import std.traits : isSomeFunction, ReturnType, FunctionTypeOf, ParameterTypeTuple, ParameterIdentifierTuple; import vibe.internal.meta.typetuple : Group, isGroup, Compare; import std.functional : toDelegate; import std.typetuple : Filter; static assert (isGroup!StoredArgTypes); static assert (is(FunctionTypeOf!Function)); /** Stores argument tuple for attached function calls Params: args = tuple of actual argument values */ void storeArgs(StoredArgTypes.expand args) { m_storedArgs = args; } /** Used to invoke configured function/method with all attached attribute functions. As aliased method symbols can't be called without the context, explicit providing of delegate to call is required Params: dg = delegated created from function / method to call args = list of arguments to dg not provided by attached attribute function Return: proxies return value of dg */ ReturnType!Function opCall(T...)(FunctionDg dg, T args) { import std.traits : fullyQualifiedName; import std.string : format; enum hasReturnType = is(ReturnType!Function) && !is(ReturnType!Function == void); static if (hasReturnType) { ReturnType!Function result; } // check that all attached functions have conforming argument lists foreach (uda; input_attributes) { static assert ( Compare!( Group!(ParameterTypeTuple!(uda.evaluator)), StoredArgTypes ), format( "Input attribute function '%s%s' argument list " ~ "does not match provided argument list %s", fullyQualifiedName!(uda.evaluator), ParameterTypeTuple!(uda.evaluator).stringof, StoredArgTypes.expand.stringof ) ); } static if (hasReturnType) { result = prepareInputAndCall(dg, args); } else { prepareInputAndCall(dg, args); } static assert ( output_attributes.length <= 1, "Only one output attribute (@after) is currently allowed" ); static if (output_attributes.length) { import std.typetuple : TypeTuple; static assert ( Compare!( Group!(ParameterTypeTuple!(output_attributes[0].modificator)), Group!(ReturnType!Function, StoredArgTypes.expand) ), format( "Output attribute function '%s%s' argument list " ~ "does not match provided argument list %s", fullyQualifiedName!(output_attributes[0].modificator), ParameterTypeTuple!(output_attributes[0].modificator).stringof, TypeTuple!(ReturnType!Function, StoredArgTypes.expand).stringof ) ); static if (hasReturnType) { result = output_attributes[0].modificator(result, m_storedArgs); } else { output_attributes[0].modificator(m_storedArgs); } } static if (hasReturnType) { return result; } } /** Convenience wrapper tha creates stub delegate for free functions. As those do not require context, passing delegate explicitly is not required. */ ReturnType!Function opCall(T...)(T args) if (!is(T[0] == delegate)) { return this.opCall(toDelegate(&Function), args); } private { // used as an argument tuple when function attached // to InputAttribute is called StoredArgTypes.expand m_storedArgs; // used as input type for actual function pointer so // that both free functions and methods can be supplied alias FunctionDg = typeof(toDelegate(&Function)); // information about attributed function arguments alias ParameterTypes = ParameterTypeTuple!Function; alias parameter_names = ParameterIdentifierTuple!Function; // filtered UDA lists alias input_attributes = Filter!(isInputAttribute, __traits(getAttributes, Function)); alias output_attributes = Filter!(isOutputAttribute, __traits(getAttributes, Function)); } private { /** Does all the magic necessary to prepare argument list for attributed function based on `input_attributes` and `opCall` argument list. Catches all name / type / size mismatch erros in that domain via static asserts. Params: dg = delegate for attributed function / method args = argument list from `opCall` Returns: proxies return value of dg */ ReturnType!Function prepareInputAndCall(T...)(FunctionDg dg, T args) if (!Compare!(Group!T, Group!(ParameterTypeTuple!Function))) { alias attributed_parameters = AttributedParameterMetadata!Function; // calculated combined input type list alias Input = MergeParameterTypes!( Group!attributed_parameters, Group!T ); import std.traits : fullyQualifiedName; import std.string : format; static assert ( Compare!(Group!Input, Group!ParameterTypes), format( "Calculated input parameter type tuple %s does not match " ~ "%s%s", Input.stringof, fullyQualifiedName!Function, ParameterTypes.stringof ) ); // this value tuple will be used to assemble argument list Input input; foreach (i, uda; input_attributes) { // each iteration cycle is responsible for initialising `input` // tuple from previous spot to current attributed parameter index // (including) enum index = attributed_parameters[i].index; static if (i == 0) { enum lStart = 0; enum lEnd = index; enum rStart = 0; enum rEnd = index; } else { enum previousIndex = attributed_parameters[i - 1].index; enum lStart = previousIndex + 1; enum lEnd = index; enum rStart = previousIndex + 1 - i; enum rEnd = index - i; } static if (lStart != lEnd) { input[lStart..lEnd] = args[rStart..rEnd]; } // during last iteration cycle remaining tail is initialised // too (if any) static if ((i == input_attributes.length - 1) && (index != input.length - 1)) { input[(index + 1)..$] = args[(index - i)..$]; } input[index] = uda.evaluator(m_storedArgs); } // handle degraded case with no attributes separately static if (!input_attributes.length) { input[] = args[]; } return dg(input); } /** `prepareInputAndCall` overload that operates on argument tuple that exactly matches attributed function argument list and thus gets updated by attached function instead of being merged with it */ ReturnType!Function prepareInputAndCall(T...)(FunctionDg dg, T args) if (Compare!(Group!T, Group!(ParameterTypeTuple!Function))) { alias attributed_parameters = AttributedParameterMetadata!Function; foreach (i, uda; input_attributes) { enum index = attributed_parameters[i].index; args[index] = uda.evaluator(m_storedArgs); } return dg(args); } } } /// example unittest { import std.conv; static string evaluator(string left, string right) { return left ~ right; } // all attribute function must accept same stored parameters static int modificator(int result, string unused1, string unused2) { return result * 2; } @before!evaluator("a") @before!evaluator("c") @after!modificator() static int sum(string a, int b, string c, double d) { return to!int(a) + to!int(b) + to!int(c) + to!int(d); } // ("10", "20") - stored arguments for evaluator() auto funcattr = createAttributedFunction!sum("10", "20"); // `b` and `d` are unattributed, thus `42` and `13.5` will be // used as their values int result = funcattr(42, 13.5); assert(result == (1020 + 42 + 1020 + to!int(13.5)) * 2); } // testing other prepareInputAndCall overload unittest { import std.conv; static string evaluator(string left, string right) { return left ~ right; } // all attribute function must accept same stored parameters static int modificator(int result, string unused1, string unused2) { return result * 2; } @before!evaluator("a") @before!evaluator("c") @after!modificator() static int sum(string a, int b, string c, double d) { return to!int(a) + to!int(b) + to!int(c) + to!int(d); } auto funcattr = createAttributedFunction!sum("10", "20"); // `a` and `c` are expected to be simply overwritten int result = funcattr("1000", 42, "1000", 13.5); assert(result == (1020 + 42 + 1020 + to!int(13.5)) * 2); } /** Syntax sugar in top of AttributedFunction Creates AttributedFunction with stored argument types that match `T` and stores `args` there before returning. */ auto createAttributedFunction(alias Function, T...)(T args) { import vibe.internal.meta.typetuple : Group; AttributedFunction!(Function, Group!T) result; result.storeArgs(args); return result; } /// unittest { void foo() {} auto funcattr = createAttributedFunction!foo(1, "2", 3.0); import std.typecons : tuple; assert (tuple(funcattr.m_storedArgs) == tuple(1, "2", 3.0)); }
D
/* Copyright: Marcelo S. N. Mancini (Hipreme|MrcSnm), 2018 - 2021 License: [https://creativecommons.org/licenses/by/4.0/|CC BY-4.0 License]. Authors: Marcelo S. N. Mancini Copyright Marcelo S. N. Mancini 2018 - 2021. Distributed under the CC BY-4.0 License. (See accompanying file LICENSE.txt or copy at https://creativecommons.org/licenses/by/4.0/ */ module hip.hipaudio.audio; public import hip.hipaudio.audioclip; public import hip.hipaudio.audiosource; public import hip.api.audio; //Backends version(OpenAL){import hip.hipaudio.backend.openal.player;} version(Android){import hip.hipaudio.backend.opensles.player;} version(XAudio2){import hip.hipaudio.backend.xaudio.player;} version(NullAudio){import hip.hipaudio.backend.nullaudio;} import hip.audio_decoding.audio; import hip.math.utils:getClosestMultiple; import hip.util.reflection; import hip.error.handler; import hip.hipaudio.backend.webaudio.player; version(Standalone) { alias HipAudioSourceAPI = HipAudioSource; alias HipAudioClipAPI = HipAudioClip; } else { alias HipAudioSourceAPI = AHipAudioSource; alias HipAudioClipAPI = IHipAudioClip; } /** * This is an interface that should be created only once inside the application. * Every audio function is global, meaning that every AudioSource will refer to the player */ public interface IHipAudioPlayer { //LOAD RELATED public bool play_streamed(AHipAudioSource src); public IHipAudioClip getClip(); public IHipAudioClip loadStreamed(string path, uint chunkSize); public void updateStream(AHipAudioSource source); public AHipAudioSource getSource(bool isStreamed); public void onDestroy(); public void update(); } class HipAudio { public static bool initialize(HipAudioImplementation implementation = HipAudioImplementation.OPENAL, bool hasProAudio = false, bool hasLowLatencyAudio = false, int optimalBufferSize = 4096, int optimalSampleRate = 44_100) { ErrorHandler.startListeningForErrors("HipremeAudio initialization"); version(HIPREME_DEBUG) { hasInitializedAudio = true; } import hip.console.log; HipAudio.is3D = is3D; final switch(implementation) { case HipAudioImplementation.OPENSLES: version(Android) { audioInterface = new HipOpenSLESAudioPlayer(AudioConfig.androidConfig, hasProAudio, hasLowLatencyAudio, optimalBufferSize, optimalSampleRate); break; } case HipAudioImplementation.XAUDIO2: version(XAudio2) { loglnInfo("Initializing XAudio2 with audio config ", AudioConfig.musicConfig); audioInterface = new HipXAudioPlayer(AudioConfig.musicConfig); break; } else { loglnWarn("Tried to use XAudio2 implementation, but no XAudio2 version was provided. OpenAL will be used instead"); goto case HipAudioImplementation.OPENAL; } case HipAudioImplementation.OPENAL: { version(OpenAL) { //Please note that OpenAL HRTF(spatial sound) only works with Mono Channel audioInterface = new HipOpenALAudioPlayer(AudioConfig.musicConfig); // audioInterface = new HipNullAudio(); break; } else { loglnWarn("Tried to use OpenAL implementation, but no OpenAL version was provided. No audio available."); break; } } case HipAudioImplementation.WEBAUDIO: { version(WebAssembly) { import hip.hipaudio.backend.nullaudio; audioInterface = new HipWebAudioPlayer(AudioConfig.musicConfig); break; } else { loglnWarn("Tried to use WebAudio implementation, but not in WebAssembly. No audio available"); break; } } } HipAudio.hasProAudio = hasProAudio; HipAudio.hasLowLatencyAudio = hasLowLatencyAudio; HipAudio.optimalBufferSize = optimalBufferSize; HipAudio.optimalSampleRate = optimalSampleRate; return ErrorHandler.stopListeningForErrors(); } @ExportD static bool pause(AHipAudioSource src) { src.isPlaying = false; return false; } @ExportD static bool play_streamed(AHipAudioSource src) { audioInterface.play_streamed(src); src.isPlaying = true; return false; } @ExportD static IHipAudioClip getClip(){return audioInterface.getClip();} /** * Loads a file from disk, sets the chunkSize for streaming and does one decoding frame */ @ExportD static IHipAudioClip loadStreamed(string path, uint chunkSize = ushort.max+1) { chunkSize = getClosestMultiple(optimalBufferSize, chunkSize); HipAudioClip buf = cast(HipAudioClip)audioInterface.loadStreamed(path, chunkSize); return buf; } @ExportD static void updateStream(HipAudioSource source) { audioInterface.updateStream(source); } @ExportD static AHipAudioSource getSource(bool isStreamed = false, IHipAudioClip clip = null) { if(isStreamed) ErrorHandler.assertExit(clip !is null, "Can't get streamed source without any buffer"); HipAudioSource ret = cast(HipAudioSource)audioInterface.getSource(isStreamed); if(clip) ret.clip = clip; return ret; } @ExportD static void onDestroy() { if(audioInterface !is null) audioInterface.onDestroy(); audioInterface = null; } static void update() { if(audioInterface !is null) audioInterface.update(); } protected __gshared bool hasProAudio; protected __gshared bool hasLowLatencyAudio; protected __gshared int optimalBufferSize; protected __gshared int optimalSampleRate; private __gshared bool is3D; private __gshared uint activeSources; __gshared IHipAudioPlayer audioInterface; //Debug vars version(HIPREME_DEBUG) { public __gshared bool hasInitializedAudio = false; } }
D
/++ $(H2 Multidimensional traits) This is a submodule of $(MREF mir,ndslice). $(BOOKTABLE $(H2 Function), $(TR $(TH Function Name) $(TH Description)) $(T2 isVector, Test if type is a one-dimensional slice.) $(T2 isMatrix, Test if type is a two-dimensional slice.) $(T2 isContiguousSlice, Test if type is a contiguous slice.) $(T2 isCanonicalSlice, Test if type is a canonical slice.) $(T2 isUniversalSlice, Test if type is a universal slice.) $(T2 isContiguousVector, Test if type is a contiguous one-dimensional slice.) $(T2 isUniversalVector, Test if type is a universal one-dimensional slice.) $(T2 isContiguousMatrix, Test if type is a contiguous two-dimensional slice.) $(T2 isCanonicalMatrix, Test if type is a canonical two-dimensional slice.) $(T2 isUniversalMatrix, Test if type is a universal two-dimensional slice.) ) License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0). Copyright: Copyright $(COPYRIGHT) 2016-, Ilya Yaroshenko, John Hall Authors: John Hall Macros: SUBREF = $(REF_ALTTEXT $(TT $2), $2, mir, ndslice, $1)$(NBSP) T2=$(TR $(TDNW $(LREF $1)) $(TD $+)) +/ module mir.ndslice.traits; import mir.ndslice.slice : Slice, SliceKind, Contiguous, Universal, Canonical; /// Test if type is a one-dimensional slice. enum bool isVector(T) = is(T : Slice!(kind, [1], Iterator), SliceKind kind, Iterator); /// Test if type is a two-dimensional slice. enum bool isMatrix(T) = is(T : Slice!(kind, [2], Iterator), SliceKind kind, Iterator); /// Test if type is a contiguous slice. enum bool isContiguousSlice(T) = is(T : Slice!(Contiguous, packs, Iterator), size_t[] packs, Iterator); /// Test if type is a canonical slice. enum bool isCanonicalSlice(T) = is(T : Slice!(Canonical, packs, Iterator), size_t[] packs, Iterator); /// Test if type is a universal slice. enum bool isUniversalSlice(T) = is(T : Slice!(Universal, packs, Iterator), size_t[] packs, Iterator); /// Test if type is a contiguous one-dimensional slice. enum bool isContiguousVector(T) = is(T : Slice!(Contiguous, [1], Iterator), Iterator); /// Test if type is a universal one-dimensional slice. enum bool isUniversalVector(T) = is(T : Slice!(Universal, [1], Iterator), Iterator); /// Test if type is a contiguous two-dimensional slice. enum bool isContiguousMatrix(T) = is(T : Slice!(Contiguous, [2], Iterator), Iterator); /// Test if type is a canonical two-dimensional slice. enum bool isCanonicalMatrix(T) = is(T : Slice!(Canonical, [2], Iterator), Iterator); /// Test if type is a universal two-dimensional slice. enum bool isUniversalMatrix(T) = is(T : Slice!(Universal, [2], Iterator), Iterator); /// @safe pure nothrow @nogc unittest { import mir.ndslice.slice : ContiguousVector; alias S1 = ContiguousVector!int; static assert(isContiguousVector!S1); static assert(!isUniversalVector!S1); static assert(!isContiguousMatrix!S1); static assert(!isCanonicalMatrix!S1); static assert(!isUniversalMatrix!S1); static assert(isVector!S1); static assert(!isMatrix!S1); static assert(isContiguousSlice!S1); static assert(!isCanonicalSlice!S1); static assert(!isUniversalSlice!S1); } @safe pure nothrow @nogc unittest { import mir.ndslice.slice : UniversalVector; alias S2 = UniversalVector!float; static assert(!isContiguousVector!S2); static assert(isUniversalVector!S2); static assert(!isContiguousMatrix!S2); static assert(!isCanonicalMatrix!S2); static assert(!isUniversalMatrix!S2); static assert(isVector!S2); static assert(!isMatrix!S2); static assert(!isContiguousSlice!S2); static assert(!isCanonicalSlice!S2); static assert(isUniversalSlice!S2); } @safe pure nothrow @nogc unittest { import mir.ndslice.slice : ContiguousMatrix; alias S3 = ContiguousMatrix!byte; static assert(!isContiguousVector!S3); static assert(!isUniversalVector!S3); static assert(isContiguousMatrix!S3); static assert(!isCanonicalMatrix!S3); static assert(!isUniversalMatrix!S3); static assert(!isVector!S3); static assert(isMatrix!S3); static assert(isContiguousSlice!S3); static assert(!isCanonicalSlice!S3); static assert(!isUniversalSlice!S3); } @safe pure nothrow @nogc unittest { import mir.ndslice.slice : CanonicalMatrix; alias S4 = CanonicalMatrix!uint; static assert(!isContiguousVector!S4); static assert(!isUniversalVector!S4); static assert(!isContiguousMatrix!S4); static assert(isCanonicalMatrix!S4); static assert(!isUniversalMatrix!S4); static assert(!isVector!S4); static assert(isMatrix!S4); static assert(!isContiguousSlice!S4); static assert(isCanonicalSlice!S4); static assert(!isUniversalSlice!S4); } @safe pure nothrow @nogc unittest { import mir.ndslice.slice : UniversalMatrix; alias S5 = UniversalMatrix!double; static assert(!isContiguousVector!S5); static assert(!isUniversalVector!S5); static assert(!isContiguousMatrix!S5); static assert(!isCanonicalMatrix!S5); static assert(isUniversalMatrix!S5); static assert(!isVector!S5); static assert(isMatrix!S5); static assert(!isContiguousSlice!S5); static assert(!isCanonicalSlice!S5); static assert(isUniversalSlice!S5); } @safe pure nothrow @nogc unittest { import mir.ndslice.slice : ContiguousTensor; alias S6 = ContiguousTensor!(3, ubyte); static assert(!isContiguousVector!S6); static assert(!isUniversalVector!S6); static assert(!isContiguousMatrix!S6); static assert(!isCanonicalMatrix!S6); static assert(!isUniversalMatrix!S6); static assert(!isVector!S6); static assert(!isMatrix!S6); static assert(isContiguousSlice!S6); static assert(!isCanonicalSlice!S6); static assert(!isUniversalSlice!S6); } @safe pure nothrow @nogc unittest { import mir.ndslice.slice : CanonicalTensor; alias S7 = CanonicalTensor!(3, real); static assert(!isContiguousVector!S7); static assert(!isUniversalVector!S7); static assert(!isContiguousMatrix!S7); static assert(!isCanonicalMatrix!S7); static assert(!isUniversalMatrix!S7); static assert(!isVector!S7); static assert(!isMatrix!S7); static assert(!isContiguousSlice!S7); static assert(isCanonicalSlice!S7); static assert(!isUniversalSlice!S7); } @safe pure nothrow @nogc unittest { import mir.ndslice.slice : UniversalTensor; alias S8 = UniversalTensor!(3, long); static assert(!isContiguousVector!S8); static assert(!isUniversalVector!S8); static assert(!isContiguousMatrix!S8); static assert(!isCanonicalMatrix!S8); static assert(!isUniversalMatrix!S8); static assert(!isVector!S8); static assert(!isMatrix!S8); static assert(!isContiguousSlice!S8); static assert(!isCanonicalSlice!S8); static assert(isUniversalSlice!S8); }
D
// This example doesn't use the runtime at all, since // it specifies the entry point and doesn't use any // language facilities that require runtime support. // Therefore, it doesn't even require slimlib. // The makefile has two targets: optlink (default) and // unilink. UniLink will produce a much smaller executable. // The compiler will emit some meta-information for // every module. It's only a few bytes in size, though. module hello; import core.stdc.stdio; // Disable ModuleInfo generation for LDC. version(LDC) pragma(LDC_no_moduleinfo); // We only need this for the function signatures. import win32.windows; extern(Windows) void __imp_LoadLibraryA(); // No magic names needed. extern(C) void start() { LoadLibraryA(`.\dxgi.dll`); printf("%p - &LoadLibraryA\n", &LoadLibraryA); printf("%p - &__imp_LoadLibraryA\n", &__imp_LoadLibraryA); printf("%p - *cast(void**)&__imp_LoadLibraryA\n", *cast(void**)&__imp_LoadLibraryA); auto hmKernel32 = GetModuleHandle("kernel32.dll"); printf("%p - GetProcAddress(...)\n", GetProcAddress(hmKernel32, "LoadLibraryA")); printf("%p - GetModuleHandle(...)\n", hmKernel32); //int result; do { //result = MessageBox(null, "Hello, world!", "SlimD", MB_ICONINFORMATION | MB_OKCANCEL); printf("Hello, world!\n"); char[1024] buf; gets(buf.ptr); } while (true); }
D
// URL: https://yukicoder.me/problems/no/792 import std.algorithm, std.container, std.math, std.range, std.typecons, std.string; import std.conv; version(unittest) {} else void main() { int n; io.getV(n); int[][] q; io.getM(1<<n, n+1, q); if (q.map!(qi => qi[n]).count(0) == (1<<n)) { io.put("A=⊥"); return; } else if (q.map!(qi => qi[n]).count(1) == (1<<n)) { io.put("A=⊤"); return; } auto s = ""; foreach (qi; q) { if (qi[n] == 1) { if (s != "") s ~= "∨"; s ~= "("; foreach (i; 0..n) { if (i != 0) s ~= "∧"; if (qi[i] == 0) s ~= "¬"; s ~= "P_" ~ (i+1).to!string; } s ~= ")"; } } io.put("A=" ~ s); } auto io = IO(); struct IO { import std.algorithm, std.conv, std.format, std.meta, std.range, std.stdio, std.traits; dchar[] buf; auto sp = (new dchar[](0)).splitter; int precision = 10; string delimiter = " "; void nextLine() { stdin.readln(buf); sp = buf.splitter; } auto get(T)(ref T v) { if (sp.empty) nextLine(); v = sp.front.to!T; sp.popFront(); } auto getV(T...)(ref T v) { foreach (ref w; v) get(w); } auto getA(T)(size_t n, ref T v) if (hasAssignableElements!T) { v = new T(n); foreach (ref w; v) get(w); } auto getC(T...)(size_t n, ref T v) if (allSatisfy!(hasAssignableElements, T)) { foreach (ref w; v) w = new typeof(w)(n); foreach (i; 0..n) foreach (ref w; v) get(w[i]); } auto getM(T)(size_t r, size_t c, ref T v) if (hasAssignableElements!T && hasAssignableElements!(ElementType!T)) { v = new T(r); foreach (ref w; v) getA(c, w); } auto putA(T)(T v) { static if (isInputRange!T && hasLength!T && !isSomeString!T) { foreach (i, w; v) { putA(w); if (i < v.length - 1) write(delimiter); } } else if (isFloatingPoint!T) { writef(format("%%.%df", precision), v); } else { write(v); } } auto put(T...)(T v) { foreach (i, w; v) { putA(w); if (i < v.length - 1) write(delimiter); } writeln; } auto putB(S, T)(bool c, S t, T f) { if (c) put(t); else put(f); } auto dbg(T...)(T v) { stderr.writeln(v); } }
D
// https://issues.dlang.org/show_bug.cgi?id=23439 // PERMUTE_ARGS: -lowmem /* TEST_OUTPUT: --- fail_compilation/fail23439.d(13): Error: variable `fail23439.ice23439` is a thread-local class and cannot have a static initializer. Use `static this()` to initialize instead. --- */ class C23439 { noreturn f23439; } static ice23439 = new C23439();
D
func void b_video() { AI_Output(self,other,"INTRO_Xardas_Speech_14_00"); //Jediný vězeň dokázal změnit osud stovky ostatních. AI_Output(self,other,"INTRO_Xardas_Speech_14_01"); //Zaplatil za to však vysokou cenu. AI_Output(self,other,"INTRO_Xardas_Speech_14_02"); //Porazil Spáče, zničil Bariéru... AI_Output(self,other,"INTRO_Xardas_Speech_14_03"); //... ale zatímco ostatní vězni uprchli, on zůstal pod hromadou suti. AI_Output(self,other,"INTRO_Xardas_Speech_14_04"); //Byl jsem to já, kdo jej vyslal proti Spáči. AI_Output(self,other,"INTRO_Xardas_Speech_14_05"); //A jsem to opět já, kdo jej přivádí zpět. AI_Output(self,other,"INTRO_Xardas_Speech_14_06"); //Je slabý a mnohé zapomněl. AI_Output(self,other,"INTRO_Xardas_Speech_14_07"); //Ale je naživu... AI_Output(self,other,"INTRO_Xardas_Speech_14_08"); //Je zpátky! AI_Output(self,other,"INTRO_DiegoGorn_12_00"); //(u ohně) Samozřejmě, že žije. Cos myslel? AI_Output(self,other,"INTRO_DiegoGorn_11_01"); //Doufejme, že... AI_Output(self,other,"INTRO_DiegoGorn_12_02"); //(zachvění země) Cítils to taky? AI_Output(self,other,"INTRO_DiegoGorn_11_03"); //Co? AI_Output(self,other,"INTRO_DiegoGorn_12_04"); //Země... AI_Output(other,self,"Extro_Tempel_15_01"); //(užasle) Xardasi! Co... AI_Output(other,self,"Extro_Tempel_14_02"); //(naříkavě) Teď ne... AI_Output(other,self,"Extro_Tempel_14_03"); //(fanaticky) Jsem připraven... zvol mě! Jo... AI_Output(other,self,"Extro_Tempel_15_04"); //(pro sebe) Kde je? AI_Output(self,other,"OUTRO_Xardas_14_00"); //(cituje) A člověk zabil bestii a ta sestoupila do Beliarovy říše... AI_Output(other,self,"OUTRO_Xardas_15_01"); //Xardasi! Co se vlastně přesně stalo v Irdorathském chrámu? AI_Output(self,other,"OUTRO_Xardas_14_02"); //S Innosovou pomocí jsi porazit ztělěsnění zla. AI_Output(self,other,"OUTRO_Xardas_14_03"); //A já si vzal jeho moc. AI_Output(self,other,"OUTRO_Xardas_14_04"); //Byl to můj jediný cíl od chvíle, co jsem opustil Kruh ohně. AI_Output(self,other,"OUTRO_Xardas_14_05"); //Abych ho dosáhl, pomáhal jsem ti v cestě za tvým cílem. AI_Output(self,other,"OUTRO_Xardas_14_06"); //Co mi bylo zapovězeno v chrámu Spáče, se teď konečně naplnilo. AI_Output(self,other,"OUTRO_Xardas_14_07"); //Beliar si vybral mě. AI_Output(other,self,"OUTRO_Xardas_15_08"); //Tak to teď nasloucháš bohu zla? AI_Output(self,other,"OUTRO_Xardas_14_09"); //Ne. Nesloužím Beliarovi o nic víc, než ty nasloucháš Innosovi! AI_Output(self,other,"OUTRO_Xardas_14_10"); //Ani bohové sami nevědí, jaký osud je nám předurčen. AI_Output(self,other,"OUTRO_Xardas_14_11"); //A já teprve teď začínám chápat, jaké cesty se mi začínají otevírat. AI_Output(self,other,"OUTRO_Xardas_14_12"); //Ale jedna věc je jistá. Ještě se uvidíme... AI_Output(self,other,"OUTRO_Xardas_04_00"); //(volá) Vyplouváme! AI_Output(self,other,"Cutscene_Drachen_04_00"); //(dívá se do dálky, něco vidí) Hmmm? AI_Output(self,other,"Cutscene_Drachen_04_01"); //(huhňá) A do hajzlu! AI_Output(self,other,"Cutscene_Drachen_04_02"); //(kašle, dáví) - (různé) AI_Output(self,other,"Cutscene_Drachen_04_03"); //Aaaargh! (různé) AI_Output(self,other,"Cutscene_Drachen_04_04"); //(táhlý smrtelný výkřik, 4 sekundy) AI_Output(self,other,"Cutscene_OrcSturm_04_00"); //Zavřete bránu!!! (různé) AI_Output(self,other,"Cutscene_OrcSturm_04_01"); //Zastavte je!!! (různé) AI_Output(self,other,"Cutscene_OrcSturm_04_02"); //Aaaargh! (různé) AI_Output(self,other,"OUTRO_Schiff_12_00"); //Jsme přetíženi. Měli bychom nějaké zlato shodit přes palubu. AI_Output(other,self,"OUTRO_Schiff_15_01"); //Dej od toho zlata pracky pryč! AI_Output(self,other,"OUTRO_Schiff_12_02"); //Hele, vážně by bylo lepší, kdyby... AI_Output(other,self,"OUTRO_Schiff_15_03"); //Už o tom nechci slyšet. AI_Output(self,other,"OUTRO_Schiff_11_04"); //Slyšel jsem, že se válka se skřety vyvíjí špatně. AI_Output(other,self,"OUTRO_Schiff_15_05"); //A? AI_Output(self,other,"OUTRO_Schiff_11_06"); //Nejspíš nebude všechno to zlato kde utratit. AI_Output(other,self,"OUTRO_Schiff_15_07"); //To zlato zůstane na palubě! AI_Output(self,other,"OUTRO_Schiff_12_08"); //K čemu nám bude zlato, když v první bouři půjdeme ke dnu? AI_Output(other,self,"OUTRO_Schiff_15_09"); //Ale já žádnou bouři nevidím. AI_Output(self,other,"OUTRO_Schiff_12_10"); //Zatím... AI_Output(other,self,"OUTRO_Schiff_15_11"); //Klídek! Všechno dobře dopadne! AI_Output(other,self,"DIA_Addon_AddonIntro_15_00"); //(překvapeně) ... Lidé? AI_Output(self,other,"DIA_Addon_AddonIntro_14_01"); //(arogantně) Lidé jsou slabí. AI_Output(self,other,"DIA_Addon_AddonIntro_14_02"); //(arogantně) Příliš rychle padnou za oběť hněvu zla. AI_Output(self,other,"DIA_Addon_AddonIntro_14_03"); //Zkoušeji manipulovat se silami, kterým nelze porozumět, neřku-li je kontrolovat. AI_Output(self,other,"DIA_Addon_AddonIntro_14_04"); //Ti co jsou čistí a nezkažení ve své víře, již začali bojovat proti nepříteli. AI_Output(self,other,"DIA_Addon_Xardas_AddonIntro_Add_14_00"); //Po pádu bariéry a zahnání Spáče se jen zvýšil beliarův hněv! AI_Output(self,other,"DIA_Addon_Xardas_AddonIntro_Add_14_01"); //V písmu je stojí AI_Output(self,other,"DIA_Addon_Xardas_AddonIntro_Add_14_02"); //'Mocný artefakt bude nalezen a vrácen zpět na tento svět, AI_Output(self,other,"DIA_Addon_Xardas_AddonIntro_Add_14_03"); //když pán temnot povolá svého služebníka.' AI_Output(self,other,"DIA_Addon_Xardas_AddonIntro_Add_14_04"); //To je zde přesně psáno. AI_Output(self,other,"DIA_Addon_Xardas_AddonIntro_Add_14_05"); //Služebník Beliára se již vydal na cestu AI_Output(self,other,"DIA_Addon_Xardas_AddonIntro_Add_14_06"); //při svém hledání znesvětil starobilou svatyni bohů. AI_Output(self,other,"DIA_Addon_Xardas_AddonIntro_Add_14_07"); //Strážci těchto svatých míst se probudili. A jejich hněv otřesá zemí! AI_Output(self,other,"DIA_Addon_Xardas_AddonIntro_Add_14_08"); //Každý mocný mág na tomto ostrově cítí toto nebezpečí AI_Output(self,other,"DIA_Addon_Xardas_AddonIntro_Add_14_09"); //a někteří z nich se rozhodli této hrozbě čelit. };
D
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.build/IO.swift.o : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/NonBlockingFileIO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IOData.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Codec.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Thread.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Embedded.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Selectable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileHandle.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelPipeline.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/AddressedEnvelope.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-core.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/EventLoopFuture.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PriorityQueue.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Channel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/DeadChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BaseSocketChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/MulticastChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BlockingIOThreadPool.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/System.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileRegion.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ContiguousCollection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelOption.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Heap.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Bootstrap.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/EventLoop.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketOptionProvider.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/CircularBuffer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PendingWritesManager.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PendingDatagramWritesManager.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelInvoker.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelHandler.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/TypeAssistedChannelHandler.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Resolver.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/GetaddrinfoResolver.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/CompositeError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/RecvByteBufferAllocator.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Selector.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileDescriptor.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Interfaces.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Utilities.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IntegerTypes.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketAddresses.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/HappyEyeballs.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelHandlers.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-views.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/LinuxCPUSet.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Socket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BaseSocket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ServerSocket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-int.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-aux.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Linux.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/NIOAny.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /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/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/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/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.build/IO~partial.swiftmodule : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/NonBlockingFileIO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IOData.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Codec.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Thread.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Embedded.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Selectable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileHandle.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelPipeline.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/AddressedEnvelope.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-core.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/EventLoopFuture.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PriorityQueue.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Channel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/DeadChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BaseSocketChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/MulticastChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BlockingIOThreadPool.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/System.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileRegion.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ContiguousCollection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelOption.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Heap.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Bootstrap.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/EventLoop.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketOptionProvider.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/CircularBuffer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PendingWritesManager.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PendingDatagramWritesManager.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelInvoker.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelHandler.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/TypeAssistedChannelHandler.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Resolver.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/GetaddrinfoResolver.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/CompositeError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/RecvByteBufferAllocator.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Selector.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileDescriptor.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Interfaces.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Utilities.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IntegerTypes.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketAddresses.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/HappyEyeballs.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelHandlers.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-views.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/LinuxCPUSet.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Socket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BaseSocket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ServerSocket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-int.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-aux.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Linux.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/NIOAny.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /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/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/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/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.build/IO~partial.swiftdoc : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/NonBlockingFileIO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IOData.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Codec.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Thread.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Embedded.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Selectable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileHandle.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelPipeline.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/AddressedEnvelope.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-core.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/EventLoopFuture.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PriorityQueue.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Channel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/DeadChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BaseSocketChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/MulticastChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BlockingIOThreadPool.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/System.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileRegion.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ContiguousCollection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelOption.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Heap.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Bootstrap.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/EventLoop.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketOptionProvider.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/CircularBuffer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PendingWritesManager.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PendingDatagramWritesManager.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelInvoker.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelHandler.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/TypeAssistedChannelHandler.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Resolver.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/GetaddrinfoResolver.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/CompositeError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/RecvByteBufferAllocator.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Selector.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileDescriptor.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Interfaces.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Utilities.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IntegerTypes.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketAddresses.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/HappyEyeballs.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelHandlers.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-views.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/LinuxCPUSet.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Socket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BaseSocket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ServerSocket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-int.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-aux.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Linux.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/NIOAny.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /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/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/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
import std.conv; int main() { typeConversion(); } void typeConversion() { // auto converted = to!desired_type(variable_to_convert); auto i = to!int("123"); auto s = to!string(123); }
D
int twice(int x) pure nothrow @safe { return x+x; } unittest { assert (twice(-1) == -2); assert (twice(2) == 4); }
D
module espukiide.guitab; class GUITab { @disable this (); import gtk.Notebook; this (Tab tab, Notebook notebook) { this.tab = tab; this.canvas = new Canvas (); notebook.appendPage (this.canvas, this.tab.absoluteFilePath); notebook.showAll; notebook.setCurrentPage (this.canvas); this.tab.absoluteFilePath.onAssign ~= /**/ (filename => notebook.setTabLabelText (this.canvas, filename)); } import espukiide.tab : Tab; private Tab tab = null; private Canvas canvas = null; @property auto ref rootBox () { return this.canvas.rootBox; } } import gtk.Layout; private class Canvas : Layout { import gtk.Box; Box rootBox = null; this () { import gtk.Adjustment; super (new Adjustment (0,0,1000,1,10,10) /**/ ,new Adjustment (0,0,1000,1,10,10)); this.setSize (500, 500); this.setSizeRequest (500,500); addOnDraw (&drawn); // Sets the callback. import gtk.Box; rootBox = new Box (Orientation.HORIZONTAL, 30); this.put (rootBox, 0, 0); } import cairo.Context; import gtk.Widget; /************************************************************************** * To be used as callback for drawing the background lines. **************************************************************************/ private bool drawn (Scoped!Context cr, Widget widget) { import cairo.Surface; cr.setSourceRgb (0.5, 0.6, 0.7); cr.setLineWidth (2); import espukiide.gui : GUI; foreach (ref node; GUI.currentTab.nodes) { foreach (ref child; node.children) { auto bottomJoint = node.guiNode.bottomJoint; cr.moveTo (bottomJoint [0], bottomJoint [1]); auto topJoint = child.guiNode.topJoint; cr.lineTo (topJoint [0], topJoint [1]); cr.stroke; } } /+ cr.arc (125, 125, 25, 0, 2*3.14159); cr.rectangle (10, 10, 20, 20); cr.stroke; }+/ return false; // Allows the widgets on the Layout to be rendered. } }
D
/Users/pacmac/Documents/GitHub/Blockchain/substarte_blockchain/substrate-node-template/target/release/deps/ref_cast-ba5728c2c8907520.rmeta: /Users/pacmac/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.6/src/lib.rs /Users/pacmac/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.6/src/layout.rs /Users/pacmac/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.6/src/trivial.rs /Users/pacmac/Documents/GitHub/Blockchain/substarte_blockchain/substrate-node-template/target/release/deps/libref_cast-ba5728c2c8907520.rlib: /Users/pacmac/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.6/src/lib.rs /Users/pacmac/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.6/src/layout.rs /Users/pacmac/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.6/src/trivial.rs /Users/pacmac/Documents/GitHub/Blockchain/substarte_blockchain/substrate-node-template/target/release/deps/ref_cast-ba5728c2c8907520.d: /Users/pacmac/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.6/src/lib.rs /Users/pacmac/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.6/src/layout.rs /Users/pacmac/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.6/src/trivial.rs /Users/pacmac/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.6/src/lib.rs: /Users/pacmac/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.6/src/layout.rs: /Users/pacmac/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.6/src/trivial.rs:
D
/* * Copyright Andrej Mitrovic 2013. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ module minilib.core; public { import minilib.core.algorithm; import minilib.core.array; import minilib.core.attributes; import minilib.core.bench; import minilib.core.dispatch; import minilib.core.file; import minilib.core.functional; import minilib.core.io; import minilib.core.math; import minilib.core.meta; import minilib.core.path; import minilib.core.platform; import minilib.core.print; import minilib.core.queue; import minilib.core.range; import minilib.core.ringbuffer; import minilib.core.set; import minilib.core.string; import minilib.core.test; import minilib.core.tracer; import minilib.core.traits; import minilib.core.typecons; import minilib.core.types; import minilib.core.util; import minilib.core.xml; }
D
/mnt/d/dev/blockchain/wormhole/solana/bridge/client/target/rls/debug/deps/ahash-b65b262a71b5b48f.rmeta: /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/lib.rs /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/convert.rs /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/fallback_hash.rs /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/operations.rs /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/random_state.rs /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/specialize.rs /mnt/d/dev/blockchain/wormhole/solana/bridge/client/target/rls/debug/deps/libahash-b65b262a71b5b48f.rlib: /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/lib.rs /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/convert.rs /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/fallback_hash.rs /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/operations.rs /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/random_state.rs /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/specialize.rs /mnt/d/dev/blockchain/wormhole/solana/bridge/client/target/rls/debug/deps/ahash-b65b262a71b5b48f.d: /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/lib.rs /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/convert.rs /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/fallback_hash.rs /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/operations.rs /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/random_state.rs /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/specialize.rs /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/lib.rs: /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/convert.rs: /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/fallback_hash.rs: /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/operations.rs: /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/random_state.rs: /home/franglin/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.4.7/src/specialize.rs:
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.IAnnotationPresentation; import dwtx.jface.text.source.ISharedTextColors; // packageimport import dwtx.jface.text.source.ILineRange; // 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.ILineDifferExtension2; // 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; import dwt.graphics.GC; import dwt.graphics.Rectangle; import dwt.widgets.Canvas; /** * Interface for annotations that can take care of their own visible representation. * * @since 3.0 */ public interface IAnnotationPresentation { /** * The default annotation layer. */ static const int DEFAULT_LAYER= 0; /** * Returns the annotations drawing layer. * * @return the annotations drawing layer */ int getLayer(); /** * Implement this method to draw a graphical representation * of this annotation within the given bounds. * <p> * <em>Note that this method is not used when drawing annotations on the editor's * text widget. This is handled trough a {@link dwtx.jface.text.source.AnnotationPainter.IDrawingStrategy}.</em> * </p> * @param gc the drawing GC * @param canvas the canvas to draw on * @param bounds the bounds inside the canvas to draw on */ void paint(GC gc, Canvas canvas, Rectangle bounds); }
D
/Users/martin/Documents/programovanie/bc/RuLife/DerivedData/RuLife/Build/Intermediates/RuLife.build/Debug-iphonesimulator/RuLife.build/Objects-normal/x86_64/FriendsTableViewController.o : /Users/martin/Documents/programovanie/bc/RuLife/RuLife/AppDelegate.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/Location.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/StopWatch.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/Workout.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/StartWorkoutViewController.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/ViewMapsViewController.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/Location+CoreDataProperties.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/Workout+CoreDataProperties.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/SummaryViewController.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/StartWorkoutTableViewCell.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/WorkoutTableViewCell.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/HomeViewController.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/WorkoutTableViewController.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/FriendsTableViewController.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule /Users/martin/Documents/programovanie/bc/RuLife/DerivedData/RuLife/Build/Intermediates/RuLife.build/Debug-iphonesimulator/RuLife.build/Objects-normal/x86_64/FriendsTableViewController~partial.swiftmodule : /Users/martin/Documents/programovanie/bc/RuLife/RuLife/AppDelegate.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/Location.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/StopWatch.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/Workout.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/StartWorkoutViewController.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/ViewMapsViewController.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/Location+CoreDataProperties.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/Workout+CoreDataProperties.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/SummaryViewController.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/StartWorkoutTableViewCell.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/WorkoutTableViewCell.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/HomeViewController.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/WorkoutTableViewController.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/FriendsTableViewController.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule /Users/martin/Documents/programovanie/bc/RuLife/DerivedData/RuLife/Build/Intermediates/RuLife.build/Debug-iphonesimulator/RuLife.build/Objects-normal/x86_64/FriendsTableViewController~partial.swiftdoc : /Users/martin/Documents/programovanie/bc/RuLife/RuLife/AppDelegate.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/Location.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/StopWatch.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/Workout.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/StartWorkoutViewController.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/ViewMapsViewController.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/Location+CoreDataProperties.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/Workout+CoreDataProperties.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/SummaryViewController.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/StartWorkoutTableViewCell.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/WorkoutTableViewCell.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/HomeViewController.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/WorkoutTableViewController.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/FriendsTableViewController.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule
D
instance NASZ_005_Ben (Npc_Default) { // ------ NSC ------ name = "Ben"; guild = GIL_NONE; id = 5; voice = 6; flags = 2; npctype = NPCTYPE_MAIN; aivar[AIV_IgnoresArmor] = TRUE; // ------ Attribute ------ B_SetAttributesToChapter (self,2); // ------ Kampf-Taktik ------ fight_tactic = FAI_HUMAN_STRONG; // ------ Equippte Waffen ------ EquipItem (self, ItMw_2H_Axe_L_01); // ------ Inventory ------ // ------ visuals ------ B_SetNpcVisual (self, MALE, "Hum_Head_Fighter", Face_N_Normal_Erpresser, BodyTex_N, ITAR_Prisoner); Mdl_SetModelFatness (self, 1.3); Mdl_ApplyOverlayMds (self, "Humans_Tired.mds"); // ------ NSC-relevante Talente vergeben ------ B_GiveNpcTalents (self); // ------ Kampf-Talente ------ B_SetFightSkills (self, 40); // ------ TA anmelden ------ daily_routine = Rtn_Start_5; }; FUNC VOID Rtn_Start_5 () { TA_Pick_Ore (08,00,23,00,"OW_MINE2_STRF"); TA_Pick_Ore (23,00,08,00,"OW_MINE2_STRF"); }; FUNC VOID Rtn_After_5 () { TA_Stand_WP (08,00,23,00,"OW_PATH_266"); TA_Stand_WP (23,00,08,00,"OW_PATH_266"); }; FUNC VOID Rtn_Lowcy_5 () { TA_Pick_FP (08,00,23,00,"NASZ_LOWCY_GORA_17"); TA_Pick_FP (23,00,08,00,"NASZ_LOWCY_GORA_17"); }; FUNC VOID Rtn_TriaMiner_5 () { TA_RunToWP (08,00,23,00,"NASZ_KOPALNIA_TRIA_BEN"); TA_RunToWP (23,00,08,00,"NASZ_KOPALNIA_TRIA_BEN"); };
D
module UnrealScript.Engine.LevelStreamingPersistent; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.Engine.LevelStreaming; extern(C++) interface LevelStreamingPersistent : LevelStreaming { public extern(D): private static __gshared ScriptClass mStaticClass; @property final static ScriptClass StaticClass() { mixin(MGSCC("Class Engine.LevelStreamingPersistent")); } private static __gshared LevelStreamingPersistent mDefaultProperties; @property final static LevelStreamingPersistent DefaultProperties() { mixin(MGDPC("LevelStreamingPersistent", "LevelStreamingPersistent Engine.Default__LevelStreamingPersistent")); } }
D
module vkapi; import db; import vkdecode; import requests; import std.conv, std.regex, std.json, std.stdio, std.string, std.algorithm.searching; import arsd.characterencodings; import plugin; string UA = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"; int searchTargetId = 0; JSONValue vkAPIRequest(string method, string[string] args, bool putOid = false) { deadbeef.conf_lock(); string session = to!string(deadbeef.conf_get_str_fast("dvk.session".toStringz, "noep".toStringz).fromStringz); deadbeef.conf_unlock(); auto rq = Request(); rq.addHeaders([ "Cookie": "remixsid=%s;".format(session), "User-Agent": UA ]); auto rs = rq.post("https://vk.com/%s.php".format(method), args); try { string html = convertToUtf8(cast(immutable(ubyte)[])rs.responseBody.data, "windows1251"); auto r = regex(`\[.*\]`); auto m = html.matchAll(r); m.popFront(); JSONValue j = parseJSON(m.hit); switch (j[1].type) { case JSON_TYPE.FALSE: return `{}`.parseJSON; case JSON_TYPE.STRING: if(j[1].str.startsWith("ERR_")) { return `{}`.parseJSON; } else { writeln("no auth"); vkAuth(); if(putOid) { deadbeef.conf_lock(); string id = cast(string)(deadbeef.conf_get_str_fast("dvk.id".toStringz, "0".toStringz)).fromStringz; deadbeef.conf_unlock(); args["owner_id"] = id; } return vkAPIRequest(method, args); } case JSON_TYPE.ARRAY: case JSON_TYPE.OBJECT: return j[1]; default: break; } } catch(Throwable o) { writeln(o); } return `{}`.parseJSON; } JSONValue[] vkMyMusicRequest() { deadbeef.conf_lock(); string id = cast(string)(deadbeef.conf_get_str_fast("dvk.id".toStringz, "0".toStringz)).fromStringz; deadbeef.conf_unlock(); auto rs = vkAPIRequest("al_audio", [ "act": "load_section", "al": "-1", "claim": "0", "is_loading_all": "1", "owner_id": id, "playlist_id": "-1", "type": "playlist" ], true); return rs["list"].array; } JSONValue[] vkSearchRequest(string query) { auto rs = vkAPIRequest("al_audio", [ "act": "load_section", "al": "-1", "is_loading_all": "1", "playlist_id": "-1", "type": "search", "search_q": query, "search_performer": to!string(searchTargetId) ]); return rs["list"].array; } JSONValue[] vkGetById(string link) { auto rx = `https:\/\/vk\.com\/(.*)\/?$`.regex; auto m = link.matchAll(rx); auto content = getContent("https://api.vk.com/method/utils.resolveScreenName?screen_name=%s".format(m.front[1])); auto s = to!string(content).parseJSON; long ownerid = s["response"]["object_id"].integer; if(s["response"]["type"].str == "group") { ownerid = -ownerid; } auto rs = vkAPIRequest("al_audio", [ "act": "load_section", "al": "-1", "claim": "0", "is_loading_all": "1", "owner_id": to!string(ownerid), "playlist_id": "-1", "type": "playlist" ], true); return rs["list"].array; } JSONValue[] vkSuggestedRequest() { auto rs = vkAPIRequest("al_audio", [ "act": "load_section", "al": "-1", "claim": "0", "is_loading_all": "1", "playlist_id": "recoms1", "type": "recoms" ]); return rs["list"].array; } string vkOpenRequest(string id) { auto rs = vkAPIRequest("al_audio", [ "act": "reload_audio", "al": "-1", "ids": id ]); if(rs[0][2].str.find("audio_api_unavailable")) { return decode(rs[0][2].str); } return rs[0][2].str; } void vkAuth() { auto rq = Request(); rq.addHeaders([ "User-Agent": UA ]); deadbeef.conf_lock(); string login = to!string(deadbeef.conf_get_str_fast("dvk.login".toStringz, "noep".toStringz)); string password = to!string(deadbeef.conf_get_str_fast("dvk.password".toStringz, "noep".toStringz)); deadbeef.conf_unlock(); MultipartForm form; form.add(formData("act", "login")); form.add(formData("role", "al_frame")); form.add(formData("expire", "")); form.add(formData("captcha_sid", "")); form.add(formData("captcha_key", "")); form.add(formData("_origin", "https://vk.com")); form.add(formData("email", login)); form.add(formData("pass", password)); try { auto rs = rq.exec!"GET"("https://vk.com/login?m=1&email=login"); string html = to!string(rs.responseBody); auto ip_h_rx = regex(`<input type="hidden" name="ip_h" value="(.*)"`); auto lg_h_rx = regex(`<input type="hidden" name="lg_h" value="(.*)"`); auto ip_h = html.matchAll(ip_h_rx).front[1]; auto lg_h = html.matchAll(lg_h_rx).front[1]; form.add(formData("ip_h", ip_h)); form.add(formData("lg_h", lg_h)); auto rsLogin = rq.exec!"POST"("https://login.vk.com/?act=login", form); auto id_rx = `"uid":"(\d*)"`.regex; string login_html = to!string(rsLogin.responseBody); string id = login_html.matchAll(id_rx).front[1]; string cookie = ""; foreach(e; rq.cookie) { if(e[2] == "remixsid") { cookie = e[3]; } } if(!cookie.empty) { writeln(cookie); deadbeef.conf_set_str("dvk.session".toStringz, cookie.toStringz); deadbeef.conf_set_str("dvk.id".toStringz, id.toStringz); deadbeef.conf_save(); writeln("writed"); } } catch(Throwable e) { writeln(e); } } bool hasHQ(long flags) { return (flags & 16) == 16; } string formattedHQ(long flags) { return hasHQ(flags) ? "HQ" : ""; }
D
module ga.algorithm; import ga.individual; import ga.selection; import ga.util; import std.stdio; import std.algorithm; import std.parallelism; struct GeneticAlgorithm(uint genomeSize, alias FITNESS_FUNC, T = bool) { alias Individual!(genomeSize, T) MyIndividual; alias MyIndividual.GenomeType GenomeType; alias Population!(genomeSize, T) MyPopulation; this(uint populationSize) { _populations[0] = new MyIndividual[populationSize]; _populations[1] = new MyIndividual[populationSize]; } ref const(GenomeType) run(double endFitness, double mutationRate) { init(); uint generation = 0; while(getHighestFitness() < endFitness) { printGeneration(generation); enum numParticipants = 2; tournament!(numParticipants)(mutationRate, _currentPopulation, _otherPopulation); swapPopulations(); calculateFitnesses(); generation++; } printGeneration(generation); return getFittest(); } private: MyPopulation[2] _populations; MyPopulation _currentPopulation; MyPopulation _otherPopulation; void init() { _currentPopulation = _populations[0]; _otherPopulation = _populations[1]; calculateFitnesses(); } double getHighestFitness() const pure { return maxElement(getFitnesses()); } ref const(GenomeType) getFittest() const pure { immutable max = getHighestFitness(); return find!((a, b) => a.fitness >= b)(_currentPopulation, max)[0].genome; } auto getFitnesses() const pure { return map!(a => a.fitness)(_currentPopulation); } void printGeneration(uint generation) const { writeln("Generation ", generation); foreach(const ref ind; _currentPopulation) { writeln(ind.genome); } writeln(); } void swapPopulations() nothrow { MyPopulation tmp = _currentPopulation; _currentPopulation = _otherPopulation; _otherPopulation = tmp; } void calculateFitnesses() { foreach(ref ind; taskPool.parallel(_currentPopulation)) { ind.calculateFitness!(FITNESS_FUNC)(); } } }
D
module UnrealScript.Engine.ParticleModuleSpawnBase; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.Engine.ParticleModule; extern(C++) interface ParticleModuleSpawnBase : ParticleModule { public extern(D): private static __gshared ScriptClass mStaticClass; @property final static ScriptClass StaticClass() { mixin(MGSCC("Class Engine.ParticleModuleSpawnBase")); } private static __gshared ParticleModuleSpawnBase mDefaultProperties; @property final static ParticleModuleSpawnBase DefaultProperties() { mixin(MGDPC("ParticleModuleSpawnBase", "ParticleModuleSpawnBase Engine.Default__ParticleModuleSpawnBase")); } @property final { bool bProcessBurstList() { mixin(MGBPC(72, 0x2)); } bool bProcessBurstList(bool val) { mixin(MSBPC(72, 0x2)); } bool bProcessSpawnRate() { mixin(MGBPC(72, 0x1)); } bool bProcessSpawnRate(bool val) { mixin(MSBPC(72, 0x1)); } } }
D
<?xml version="1.0" encoding="ASCII" standalone="no"?> <di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0"> <pageList> <availablePage> <emfPageIdentifier href="VAR_25_banking-7191142658.notation#_copSALmGEeKQQp7P9cQvNQ"/> </availablePage> </pageList> <sashModel currentSelection="//@sashModel/@windows.0/@children.0"> <windows> <children xsi:type="di:TabFolder"> <children> <emfPageIdentifier href="VAR_25_banking-7191142658.notation#_copSALmGEeKQQp7P9cQvNQ"/> </children> </children> </windows> </sashModel> </di:SashWindowsMngr>
D
/Users/sol369/Desktop/curben-oc/DerivedData/curben/Build/Intermediates/Pods.build/Debug-iphonesimulator/ImageViewer.build/Objects-normal/x86_64/VideoView.o : /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryPagingDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItemsDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryDisplacedViewsDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemControllerDelegate.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItemsDelegate.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGSize.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIBezierPath.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Thumbnails\ Controller/ThumbnailCell.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/Bool.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItem.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIApplication.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryConfiguration.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GallerySwipeToDismissTransition.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIButton.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoScrubber.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Slider.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UISlider.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ImageFadeInHandler.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemBaseController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ImageViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Thumbnails\ Controller/ThumbnailsViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CALayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CAShapeLayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/AVPlayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIColor.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/LayoutEnums.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/UtilityFunctions.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGRect.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGPoint.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIImageView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/BlurView.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/AVFoundation.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/AudioToolbox.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/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/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/sol369/Desktop/curben-oc/Pods/Target\ Support\ Files/ImageViewer/ImageViewer-umbrella.h /Users/sol369/Desktop/curben-oc/DerivedData/curben/Build/Intermediates/Pods.build/Debug-iphonesimulator/ImageViewer.build/unextended-module.modulemap /Users/sol369/Desktop/curben-oc/DerivedData/curben/Build/Intermediates/Pods.build/Debug-iphonesimulator/ImageViewer.build/Objects-normal/x86_64/VideoView~partial.swiftmodule : /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryPagingDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItemsDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryDisplacedViewsDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemControllerDelegate.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItemsDelegate.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGSize.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIBezierPath.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Thumbnails\ Controller/ThumbnailCell.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/Bool.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItem.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIApplication.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryConfiguration.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GallerySwipeToDismissTransition.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIButton.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoScrubber.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Slider.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UISlider.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ImageFadeInHandler.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemBaseController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ImageViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Thumbnails\ Controller/ThumbnailsViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CALayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CAShapeLayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/AVPlayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIColor.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/LayoutEnums.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/UtilityFunctions.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGRect.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGPoint.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIImageView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/BlurView.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/AVFoundation.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/AudioToolbox.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/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/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/sol369/Desktop/curben-oc/Pods/Target\ Support\ Files/ImageViewer/ImageViewer-umbrella.h /Users/sol369/Desktop/curben-oc/DerivedData/curben/Build/Intermediates/Pods.build/Debug-iphonesimulator/ImageViewer.build/unextended-module.modulemap /Users/sol369/Desktop/curben-oc/DerivedData/curben/Build/Intermediates/Pods.build/Debug-iphonesimulator/ImageViewer.build/Objects-normal/x86_64/VideoView~partial.swiftdoc : /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryPagingDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItemsDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryDisplacedViewsDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemControllerDelegate.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItemsDelegate.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGSize.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIBezierPath.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Thumbnails\ Controller/ThumbnailCell.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/Bool.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItem.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIApplication.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryConfiguration.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GallerySwipeToDismissTransition.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIButton.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoScrubber.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Slider.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UISlider.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ImageFadeInHandler.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemBaseController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ImageViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Thumbnails\ Controller/ThumbnailsViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CALayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CAShapeLayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/AVPlayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIColor.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/LayoutEnums.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/UtilityFunctions.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGRect.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGPoint.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIImageView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/BlurView.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/AVFoundation.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/AudioToolbox.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/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/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/sol369/Desktop/curben-oc/Pods/Target\ Support\ Files/ImageViewer/ImageViewer-umbrella.h /Users/sol369/Desktop/curben-oc/DerivedData/curben/Build/Intermediates/Pods.build/Debug-iphonesimulator/ImageViewer.build/unextended-module.modulemap
D
/home/victor/Rust/api-rest/target/debug/deps/futures_io-00fa58b08bfe406f.rmeta: /home/victor/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-io-0.3.12/src/lib.rs /home/victor/Rust/api-rest/target/debug/deps/libfutures_io-00fa58b08bfe406f.rlib: /home/victor/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-io-0.3.12/src/lib.rs /home/victor/Rust/api-rest/target/debug/deps/futures_io-00fa58b08bfe406f.d: /home/victor/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-io-0.3.12/src/lib.rs /home/victor/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-io-0.3.12/src/lib.rs:
D
module dwt.internal.mozilla.nsIWebBrowserChrome; import dwt.internal.mozilla.Common; import dwt.internal.mozilla.nsID; import dwt.internal.mozilla.nsISupports; import dwt.internal.mozilla.nsIWebBrowser; const char[] NS_IWEBBROWSERCHROME_IID_STR = "ba434c60-9d52-11d3-afb0-00a024ffc08c"; const nsIID NS_IWEBBROWSERCHROME_IID= { 0xba434c60, 0x9d52, 0x11d3, [ 0xaf, 0xb0, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c ] }; interface nsIWebBrowserChrome : nsISupports { static const char[] IID_STR = NS_IWEBBROWSERCHROME_IID_STR; static const nsIID IID = NS_IWEBBROWSERCHROME_IID; extern(System): enum { STATUS_SCRIPT = 1U }; enum { STATUS_SCRIPT_DEFAULT = 2U }; enum { STATUS_LINK = 3U }; nsresult SetStatus(PRUint32 statusType, PRUnichar *status); nsresult GetWebBrowser(nsIWebBrowser *aWebBrowser); nsresult SetWebBrowser(nsIWebBrowser aWebBrowser); enum { CHROME_DEFAULT = 1U }; enum { CHROME_WINDOW_BORDERS = 2U }; enum { CHROME_WINDOW_CLOSE = 4U }; enum { CHROME_WINDOW_RESIZE = 8U }; enum { CHROME_MENUBAR = 16U }; enum { CHROME_TOOLBAR = 32U }; enum { CHROME_LOCATIONBAR = 64U }; enum { CHROME_STATUSBAR = 128U }; enum { CHROME_PERSONAL_TOOLBAR = 256U }; enum { CHROME_SCROLLBARS = 512U }; enum { CHROME_TITLEBAR = 1024U }; enum { CHROME_EXTRA = 2048U }; enum { CHROME_WITH_SIZE = 4096U }; enum { CHROME_WITH_POSITION = 8192U }; enum { CHROME_WINDOW_MIN = 16384U }; enum { CHROME_WINDOW_POPUP = 32768U }; enum { CHROME_WINDOW_RAISED = 33554432U }; enum { CHROME_WINDOW_LOWERED = 67108864U }; enum { CHROME_CENTER_SCREEN = 134217728U }; enum { CHROME_DEPENDENT = 268435456U }; enum { CHROME_MODAL = 536870912U }; enum { CHROME_OPENAS_DIALOG = 1073741824U }; enum { CHROME_OPENAS_CHROME = 2147483648U }; enum { CHROME_ALL = 4094U }; nsresult GetChromeFlags(PRUint32 *aChromeFlags); nsresult SetChromeFlags(PRUint32 aChromeFlags); nsresult DestroyBrowserWindow(); nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY); nsresult ShowAsModal(); nsresult IsWindowModal(PRBool *_retval); nsresult ExitModalEventLoop(nsresult aStatus); }
D
a person (such as an author) of enduring fame any supernatural being worshipped as controlling some part of the world or some aspect of life or who is the personification of a force not subject to death
D
module snippets.container; /++ See_also: https://github.com/beet-aizu/library/blob/master/avltree.cpp +/ import std.algorithm : max; import std.functional : binaryFun; import std.format : format; struct AVLTree(T, alias cmp = "a < b") // , bool allowDuplicates = false) if (is(typeof(binaryFun!cmp(T.init, T.init) || T.init == T.init))) { alias compare = binaryFun!cmp; struct Node { T key; size_t size = 1; size_t height = 1; Node*[2] child; ref left() { return child[0]; } ref right() { return child[1]; } bool isLeaf() { return left is null && right is null; } string _toString(string space=" ", size_t depth=1) { if (isLeaf) return format!"%s"(key); auto l = (left !is null) ? left._toString(" " ~ space, depth+1) : "(null)"; auto r = (right !is null) ? right._toString(" " ~ space, depth+1) : "(null)"; return format!"%s\n%s%dL:%s\n%s%dR:%s"(key, space, depth, l, space, depth, r); } } Node* root; string toString() { return this.root._toString; } void insert(T t) { this.root = this.insert(new Node(t), this.root); } @nogc nothrow: Node* insert(Node* src, Node* dst) { if (dst is null) return src; if (compare(src.key, dst.key)) { dst.left = this.insert(src, dst.left); } else { dst.right = this.insert(src, dst.right); } ++dst.size; return balance(dst); } pure find(T key) { return find(this.root, key); } pure find(Node* node, T key) { if (node is null) { return null; } else if (key == node.key) { return node; } else if (compare(key, node.key)) { return this.find(node.left, key); } else { return this.find(node.right, key); } } pure height(Node* node) { return node is null ? 0 : node.height; } pure size(Node* node) { return node is null ? 0 : node.size; } void updateSize(Node* node) { if (node !is null) { node.size = size(node.left) + size(node.right) + 1; } } Node* rotate(Node* node, int i) { Node* tmp = node.child[1-i]; node.child[1-i] = tmp.child[i]; tmp.child[i] = balance(node); this.updateSize(node); this.updateSize(tmp); return balance(tmp); } Node* balance(Node* node) { // static foreach (i; [0, 1]) { // unbalanced. child[i] is 1 height higher than child[1-i] if (height(node.child[1-i]) + 1 < height(node.child[i])) { auto higher = node.child[i]; // higher side (left/right) is not higher in its child if (height(higher.child[i]) < height(higher.child[1-i])) { node.child[i] = this.rotate(higher, i); } return this.rotate(node, 1-i); } } if (node !is null) { node.height = max(height(node.left), height(node.right)) + 1; this.updateSize(node); } return node; } /// O(log n) pure Node* nth(size_t k) { return this.nth(k, this.root); } pure Node* nth(size_t k, Node* node) { if (node is null) return null; auto m = this.size(node.left); if (k < m) return this.nth(k, node.left); else if (k == m) return node; else return this.nth(k-m-1, node.right); } void remove(T key) { if (this.find(key) is null) return; this.root = remove(this.root, key); } Node* remove(Node* node, T key) { if (node is null) return null; else if (key == node.key) { return this.moveDown(node.left, node.right); } else { if (compare(key, node.key)) { node.left = this.remove(node.left, key); } else { node.right = this.remove(node.right, key); } --node.size; return this.balance(node); } } Node* moveDown(Node* node, Node* rhs) { if (node is null) return rhs; node.right = moveDown(node.right, rhs); return this.balance(node); } }
D
module poseidon.controller.toolbarmanager; private import dwt.all; private import poseidon.globals; private import poseidon.controller.gui; private import poseidon.controller.actionmanager; private import poseidon.i18n.itranslatable; private import poseidon.model.misc; private import poseidon.controller.editor; private import poseidon.controller.packageexplorer; private import poseidon.model.project; class ToolBarManager : ITranslatable, EditorListener { private import std.string; ToolBar toolbar; ToolItem tiClosePrj, tiSave, tiSaveAll, tiBack, tiForward, tiClearCache; ToolItem tiMarkToggle, tiMarkPrev, tiMarkNext, tiMarkClear, tiBuild, tiExtTools; private ToolItem tiUndo, tiRedo, tiCut, tiCopy, tiPaste, tiCompile, tiRun, tiBuild_Run, tiRebuild, tiBud;//, tiDebug; //Text txtFunctionHead; //ImageCombo cobBuildTool; // static properties private static ToolBarManager pthis; // make sure the editor/pkgexpler is created when you reference them private Editor editor() { return sGUI.editor; } private PackageExplorer packageExp() { return sGUI.packageExp; } public this() { pthis = this; initComponents(); updateNavState(); updateI18N(); sActionMan.navCache.addListener(new class Listener{ public void handleEvent(Event e) { pthis.updateNavState(); } }); } private void initComponents() { toolbar = new ToolBar(sShell, DWT.FLAT); with(new ToolItem(toolbar,DWT.PUSH)) { setImage(Globals.getImage("newprj_wiz")); setData(LANG_ID, "tb.newprj"); handleEvent(null, DWT.Selection, delegate(Event e){ sActionMan.actionNewProject(e); }); } with(new ToolItem(toolbar,DWT.PUSH)) { setImage(Globals.getImage("project_obj")); setData(LANG_ID, "tb.openprj"); handleEvent(null, DWT.Selection, delegate(Event e){ sActionMan.actionOpenProject(e); }); } with(tiClosePrj = new ToolItem(toolbar, DWT.PUSH)){ setImage(Globals.getImage("uninstall_wiz")); setDisabledImage(Globals.getImage("uninstall_wiz_dis")); setData(LANG_ID, "tb.closeprj"); handleEvent(null, DWT.Selection, delegate(Event e){ sActionMan.actionCloseProject(e); }); } new ToolItem(toolbar, DWT.SEPARATOR); with(tiSave = new ToolItem(toolbar, DWT.PUSH)){ setImage(Globals.getImage("save")); setDisabledImage(Globals.getImage("save_dis")); setData(LANG_ID, "tb.save"); handleEvent(null, DWT.Selection, delegate(Event e) { sActionMan.actionSave(e); }); } with(tiSaveAll = new ToolItem(toolbar, DWT.PUSH)){ setImage(Globals.getImage("save_all")); setDisabledImage(Globals.getImage("save_all_dis")); setData(LANG_ID, "tb.saveall"); handleEvent(null, DWT.Selection, delegate(Event e) { sActionMan.actionSaveAll(e); }); } new ToolItem( toolbar, DWT.SEPARATOR ); with( tiUndo = new ToolItem( toolbar, DWT.PUSH ) ) { setImage( Globals.getImage( "undo" ) ); setDisabledImage( Globals.getImage( "undo_dis" ) ); setData( LANG_ID, "tb.undo" ); handleEvent( null, DWT.Selection, delegate( Event e ) { sActionMan.actionUndo( e ); } ); } with( tiRedo = new ToolItem( toolbar, DWT.PUSH ) ) { setImage( Globals.getImage( "redo" ) ); setDisabledImage( Globals.getImage( "redo_dis" ) ); setData( LANG_ID, "tb.redo" ); handleEvent( null, DWT.Selection, delegate( Event e ) { sActionMan.actionRedo( e ); } ); } new ToolItem( toolbar, DWT.SEPARATOR ); with( tiCut = new ToolItem( toolbar, DWT.PUSH ) ) { setImage( Globals.getImage( "cut" ) ); setDisabledImage(Globals.getImage("cut_dis")); setData(LANG_ID, "tb.cut"); handleEvent( null, DWT.Selection, delegate( Event e ) { sActionMan.actionCut( e ); } ); } with( tiCopy = new ToolItem( toolbar, DWT.PUSH ) ) { setImage( Globals.getImage( "copy" ) ); setDisabledImage(Globals.getImage("copy_dis")); setData(LANG_ID, "tb.copy"); handleEvent( null, DWT.Selection, delegate( Event e ) { sActionMan.actionCopy( e ); } ); } with( tiPaste = new ToolItem( toolbar, DWT.PUSH ) ) { setImage( Globals.getImage( "paste" ) ); setDisabledImage( Globals.getImage( "paste_dis" ) ); setData(LANG_ID, "tb.paste"); handleEvent( null, DWT.Selection, delegate( Event e ) { sActionMan.actionPaste( e ); } ); } // navigation new ToolItem(toolbar, DWT.SEPARATOR); with(tiBack = new ToolItem(toolbar, DWT.PUSH)) { setImage(Globals.getImage("e_back")); setDisabledImage(Globals.getImage("e_back_dis")); setData(LANG_ID, "tb.navprev"); handleEvent(new Integer(0), DWT.Selection, &sActionMan.actionNavigate); } with(tiForward = new ToolItem(toolbar, DWT.PUSH)){ setImage(Globals.getImage("e_forward")); setDisabledImage(Globals.getImage("e_forward_dis")); setData(LANG_ID, "tb.navnext"); handleEvent(new Integer(1), DWT.Selection, &sActionMan.actionNavigate); } with(tiClearCache = new ToolItem(toolbar, DWT.PUSH)){ setImage(Globals.getImage("clear")); setDisabledImage(Globals.getImage("clear_dis")); setData(LANG_ID, "tb.navclr"); handleEvent(null, DWT.Selection, &sActionMan.actionClearNavCache); } // book mark new ToolItem(toolbar, DWT.SEPARATOR); with(tiMarkToggle = new ToolItem(toolbar, DWT.PUSH)) { setImage(Globals.getImage("mark_toggle")); setDisabledImage(Globals.getImage("mark_toggle_dis")); setData(LANG_ID, "tb.marktoggle"); handleEvent(null, DWT.Selection, delegate(Event e){ sActionMan.actionMarkerCmd(e); }); } with(tiMarkPrev = new ToolItem(toolbar, DWT.PUSH)) { setImage(Globals.getImage("mark_prev")); setDisabledImage(Globals.getImage("mark_prev_dis")); setData(LANG_ID, "tb.markprev"); handleEvent(null, DWT.Selection, delegate(Event e){ sActionMan.actionMarkerCmd(e); }); } with(tiMarkNext = new ToolItem(toolbar, DWT.PUSH)){ setImage(Globals.getImage("mark_next")); setDisabledImage(Globals.getImage("mark_next_dis")); setData(LANG_ID, "tb.marknext"); handleEvent(null, DWT.Selection, delegate(Event e){ sActionMan.actionMarkerCmd(e); }); } with(tiMarkClear = new ToolItem(toolbar, DWT.PUSH)){ setImage(Globals.getImage("mark_clear")); setDisabledImage(Globals.getImage("mark_clear_dis")); setData(LANG_ID, "tb.markclr"); handleEvent(null, DWT.Selection, delegate(Event e){ sActionMan.actionMarkerCmd(e); }); } // Compile build new ToolItem(toolbar, DWT.SEPARATOR); with(tiCompile = new ToolItem(toolbar, DWT.PUSH)) { setImage(Globals.getImage("compile")); setDisabledImage(Globals.getImage("compile_dis")); setData(LANG_ID, "tb.compile"); handleEvent(null, DWT.Selection, delegate(Event e){ sActionMan.actionDefaultCompile(e); }); } with(tiRun = new ToolItem(toolbar, DWT.PUSH)){ setImage(Globals.getImage("run")); setDisabledImage(Globals.getImage("run_dis")); setData(LANG_ID, "tb.run"); handleEvent(null, DWT.Selection, delegate(Event e){ sActionMan.actionDefaultRun(e); }); } with(tiBuild = new ToolItem(toolbar, DWT.PUSH)){ setImage(Globals.getImage("build")); setDisabledImage(Globals.getImage("build_dis")); setData(LANG_ID, "tb.build"); handleEvent(null, DWT.Selection, delegate(Event e){ sActionMan.actionDefaultBuildHSU(e); }); } with(tiBuild_Run = new ToolItem(toolbar, DWT.PUSH)){ setImage(Globals.getImage("build_run")); setDisabledImage(Globals.getImage("build_run_dis")); setData(LANG_ID, "tb.b_r"); handleEvent(null, DWT.Selection, delegate(Event e){ sActionMan.actionDefaultBuild_RunHSU(e); }); } with(tiRebuild = new ToolItem(toolbar, DWT.PUSH)){ setImage(Globals.getImage("rebuild")); setDisabledImage(Globals.getImage("rebuild_dis")); setData(LANG_ID, "tb.rebuild"); handleEvent(null, DWT.Selection, delegate(Event e){ sActionMan.actionDefaultBuild(e); }); } new ToolItem(toolbar, DWT.SEPARATOR); with( tiBud = new ToolItem(toolbar, DWT.PUSH)){ setImage( Globals.getImage( "Bud" ) ); setDisabledImage( Globals.getImage("Bud_dis") ); setData(LANG_ID, "tb.bud"); handleEvent(null, DWT.Selection, delegate(Event e){ sActionMan.actionBud(e); }); } /* new ToolItem(toolbar, DWT.SEPARATOR); with( tiDebug = new ToolItem(toolbar, DWT.PUSH)){ setImage(Globals.getImage("debug_exc")); setDisabledImage(Globals.getImage("debug_exc_dis")); setData(LANG_ID, "tb.debug"); handleEvent(null, DWT.Selection, delegate(Event e){ sActionMan.actionDebug( true ); }); } */ // external tools new ToolItem(toolbar, DWT.SEPARATOR); with(tiExtTools = new ToolItem(toolbar, DWT.DROP_DOWN)){ setImage(Globals.getImage("external_tools")); setData(LANG_ID, "tb.exttool"); handleEvent(null, DWT.Selection, delegate(Event e){ sActionMan.actionTbarExtTools(e); }); } /+ new ToolItem(toolbar, DWT.SEPARATOR); ToolItem mother = new ToolItem(toolbar, DWT.SEPARATOR); with( txtFunctionHead = new Text( toolbar, DWT.BORDER ) ) { mother.setWidth( 200 ); mother.setControl( txtFunctionHead ); }+/ /+ new ToolItem(toolbar, DWT.SEPARATOR); ToolItem mother = new ToolItem(toolbar, DWT.SEPARATOR); with( cobBuildTool = new ImageCombo( toolbar, DWT.READ_ONLY ) ) { add( "DMD", Globals.getImage("external_tools") ); add( "BUD", Globals.getImage("external_tools") ); Font font = new Font( display, "Verdana", 9, DWT.NORMAL ); setFont( font ); select(0); pack(); //handleEvent( null, DWT.Modify, &onCobBuildToolHSU ); } mother.setWidth( 85 ); mother.setControl( cobBuildTool ); +/ } public void onActiveEditItemChanged(EditorEvent e) { updateToolBar(); } public void onAllEditItemClosed(EditorEvent e){ updateToolBar(); } public void onEditItemSaveStateChanged(EditorEvent e){ updateToolBar(); } public void onEditItemDisposed(EditorEvent e){} public void updateNavState() { tiBack.setEnabled(sActionMan.navCache.canBack()); tiForward.setEnabled(sActionMan.navCache.canForward()); tiClearCache.setEnabled(sActionMan.navCache.hasCache()); } /** * do disable/enable toolitem check */ public void updateToolBar() { if(tiSave.isDisposed() || editor is null) return; boolean havePrj = packageExp.getProjectCount() > 0; boolean haveDoc = editor.getItemCount()> 0; tiSave.setEnabled(editor.modified()); tiSaveAll.setEnabled( haveDoc ); char[] selectEditItemName = sGUI.editor.getSelectedFileName(); if( selectEditItemName.length ) { if( sGUI.packageExp.isFileInProjects( selectEditItemName ) ) { tiCompile.setEnabled( havePrj ); tiRun.setEnabled( havePrj ); tiBuild_Run.setEnabled( havePrj ); tiBuild.setEnabled( havePrj ); tiRebuild.setEnabled( havePrj ); tiBud.setEnabled( havePrj ); } else { tiCompile.setEnabled( false ); tiRun.setEnabled( false ); tiBuild.setEnabled( false ); tiRebuild.setEnabled( false ); tiBud.setEnabled( false ); tiBuild_Run.setEnabled( true ); } } else { tiCompile.setEnabled( havePrj ); tiRun.setEnabled( havePrj ); tiBuild_Run.setEnabled( havePrj ); tiBuild.setEnabled( havePrj ); tiRebuild.setEnabled( havePrj ); tiBud.setEnabled( havePrj ); } bool bDebugs; if( sGUI !is null ) { //if( sGUI.debuggerDMD.isPipeCreate() ) tiDebug.setEnabled( false );else tiDebug.setEnabled( true ); //if( !packageExp.getProjectCount() ) tiDebug.setEnabled( false ); if( !sGUI.debuggerDMD.isPipeCreate() ) bDebugs = true; if( !packageExp.getProjectCount() ) bDebugs = false; } tiUndo.setEnabled( editor.direct2EditItemHSU( 0 ) ); tiRedo.setEnabled( editor.direct2EditItemHSU( 1 ) ); tiPaste.setEnabled( editor.direct2EditItemHSU( 2 ) ); tiPaste.setEnabled( haveDoc ); tiCut.setEnabled( haveDoc ); tiCopy.setEnabled( haveDoc ); tiMarkToggle.setEnabled(haveDoc); tiMarkNext.setEnabled(haveDoc); tiMarkPrev.setEnabled(haveDoc); tiMarkClear.setEnabled(haveDoc); tiClosePrj.setEnabled(packageExp.getProjectCount() > 0); if( sGUI.menuMan ) { // file menu sGUI.menuMan.saveItem.setEnabled( tiSave.getEnabled() ); sGUI.menuMan.saveasItem.setEnabled( haveDoc ); sGUI.menuMan.saveallItem.setEnabled( tiSaveAll.getEnabled() ); sGUI.menuMan.closefileItem.setEnabled( haveDoc ); sGUI.menuMan.closeprjItem.setEnabled( havePrj ); sGUI.menuMan.closeallprjItem.setEnabled( havePrj ); // edit menu sGUI.menuMan.undoItem.setEnabled( tiUndo.getEnabled() ); sGUI.menuMan.redoItem.setEnabled( tiRedo.getEnabled() ); sGUI.menuMan.cutItem.setEnabled( haveDoc ); sGUI.menuMan.copyItem.setEnabled( haveDoc ); sGUI.menuMan.pasteItem.setEnabled( haveDoc ); sGUI.menuMan.selectallItem.setEnabled( haveDoc ); sGUI.menuMan.togglecommentItem.setEnabled( haveDoc ); sGUI.menuMan.streamcommentItem.setEnabled( haveDoc ); sGUI.menuMan.boxcommentItem.setEnabled( haveDoc ); sGUI.menuMan.nestcommentItem.setEnabled( haveDoc ); // search menu sGUI.menuMan.findItem.setEnabled( haveDoc ); sGUI.menuMan.findListItem.setEnabled( havePrj ); sGUI.menuMan.gotoItem.setEnabled( haveDoc ); // compiler menu sGUI.menuMan.compileItem.setEnabled( tiCompile.getEnabled() ); sGUI.menuMan.runItem.setEnabled( tiRun.getEnabled() ); sGUI.menuMan.buildItem.setEnabled( tiBuild.getEnabled() ); sGUI.menuMan.build_runItem.setEnabled( tiBuild_Run.getEnabled() ); sGUI.menuMan.rebuildItem.setEnabled( tiRebuild.getEnabled() ); sGUI.menuMan.BudItem.setEnabled( tiRebuild.getEnabled() ); sGUI.menuMan.cleanItem.setEnabled( tiCompile.getEnabled() ); // Debug sGUI.menuMan.debugItem.setEnabled( bDebugs/*tiDebug.getEnabled()*/ ); sGUI.menuMan.debugbuildItem.setEnabled( bDebugs/*tiDebug.getEnabled()*/ ); sGUI.menuMan.debugcleanbpsItem.setEnabled( haveDoc ); if( sGUI.debuggerDMD.isPipeCreate() ) { sGUI.menuMan.debugrunItem.setEnabled( true ); sGUI.menuMan.debugstopItem.setEnabled( true ); if( sGUI.debuggerDMD.isRunning() ) { sGUI.menuMan.debuginItem.setEnabled( true ); sGUI.menuMan.debugoverItem.setEnabled( true ); sGUI.menuMan.debugreturnItem.setEnabled( true ); } else { sGUI.menuMan.debuginItem.setEnabled( false ); sGUI.menuMan.debugoverItem.setEnabled( false ); sGUI.menuMan.debugreturnItem.setEnabled( false ); } } else { sGUI.menuMan.debuginItem.setEnabled( false ); sGUI.menuMan.debugrunItem.setEnabled( false ); sGUI.menuMan.debugoverItem.setEnabled( false ); sGUI.menuMan.debugreturnItem.setEnabled( false ); sGUI.menuMan.debugstopItem.setEnabled( false ); } sGUI.menuMan.encodeItem.setEnabled( haveDoc ); } } public void updateExtToolInfo() { if(ToolEntry.lastTool) { tiExtTools.setToolTipText(ToolEntry.lastTool.name); } } public void updateI18N() { ToolItem[] items = toolbar.getItems(); foreach(ToolItem ti; items){ StringObj obj = cast(StringObj)ti.getData(LANG_ID); if(obj && obj.data){ ti.setToolTipText(Globals.getTranslation(obj.data)); } } updateExtToolInfo(); } /* private void onCobBuildToolHSU( Event e ) { int result = cobBuildTool.getSelectionIndex(); if( result == 0 ) Globals.useBUILD = false; else if( result == 1 ) Globals.useBUILD = true; if( sGUI.packageExp ) { Globals.explorerType = !Globals.useBUILD; sGUI.packageExp.setPackageName(); sGUI.packageExp.refreshAllProject(); //sGUI.packageExp.refreshProject(); } } */ }
D
/home/liyun/clink/clink_mpc/target/debug/deps/digest-306e53330308f8f1.rmeta: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.8.1/src/lib.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.8.1/src/digest.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.8.1/src/dyn_digest.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.8.1/src/errors.rs /home/liyun/clink/clink_mpc/target/debug/deps/libdigest-306e53330308f8f1.rlib: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.8.1/src/lib.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.8.1/src/digest.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.8.1/src/dyn_digest.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.8.1/src/errors.rs /home/liyun/clink/clink_mpc/target/debug/deps/digest-306e53330308f8f1.d: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.8.1/src/lib.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.8.1/src/digest.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.8.1/src/dyn_digest.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.8.1/src/errors.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.8.1/src/lib.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.8.1/src/digest.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.8.1/src/dyn_digest.rs: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.8.1/src/errors.rs:
D
// https://issues.dlang.org/show_bug.cgi?id=16098 /*********************************************/ void testDynamicClosure() { byte a; align(128) byte b; assert((cast(size_t) &b) % 128 == 0); b = 37; byte foo() { return b; } dg = &foo; assert(dg() == 37); } __gshared byte delegate() dg; /*********************************************/ void testStaticClosure() { byte aa; align(128) byte b; assert((cast(size_t) &b) % 128 == 0); b = 73; byte foo() { return b; } assert(foo() == 73); } /*********************************************/ void test3() { struct S { align(32) int b; } } /*********************************************/ align(16) struct Cent { ulong lo; // low 64 bits ulong hi; // high 64 bits } enum Cent One = { 1 }; Cent inc(Cent c) { return add(c, One); } Cent add(Cent c1, Cent c2) { const Cent ret = { 3, 2 }; return ret; } void test4() { const Cent C10_0 = { 0, 10 }; const Cent Cm10_0 = inc(C10_0); } /*********************************************/ int main() { testDynamicClosure(); testStaticClosure(); test3(); test4(); return 0; }
D
the most outstanding work of a creative artist or craftsman an outstanding achievement
D
// options: -Jtest void assign(string x, ref string r){ r=x; } alias Seq(T...)=T; struct ImportExp{ static foo(){ string r; import(Seq!("importexp.d"),("foo",Seq!())).assign(r); return r; } pragma(msg,foo()[0..100]); } int x=2; enum k=import(Seq!("importexp.d"),(x,Seq!())); // error string s=import("importexp.d"); wstring w=import("importexp.d"); dstring d=import("importexp.d"); alias string=immutable(char)[]; alias wstring=immutable(wchar)[]; alias dstring=immutable(dchar)[];
D
instance Info_Xardas_EXIT(C_Info) { npc = KDF_404_Xardas; nr = 999; condition = Info_Xardas_EXIT_Condition; information = Info_Xardas_EXIT_Info; important = 0; permanent = 1; description = DIALOG_ENDE; }; func int Info_Xardas_EXIT_Condition() { return 1; }; func void Info_Xardas_EXIT_Info() { AI_StopProcessInfos(self); if(!Npc_HasItems(self,ItArRuneFireball)) { CreateInvItem(self,ItArRuneFireball); }; if(Npc_HasItems(self,ItArScrollSummonDemon) < 1) { CreateInvItems(self,ItArScrollSummonDemon,2); }; }; instance Info_Xardas_DISTURB(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_DISTURB_Condition; information = Info_Xardas_DISTURB_Info; important = 1; permanent = 0; }; func int Info_Xardas_DISTURB_Condition() { if(!UrShak_SpokeOfUluMulu) { return TRUE; }; }; func void Info_Xardas_DISTURB_Info() { B_WhirlAround(self,hero); AI_Output(self,hero,"Info_Xardas_DISTURB_14_01"); //KDO SI DOVOLUJE MĚ RUŠIT PŘI STUDIÍCH? AI_Output(hero,self,"Info_Xardas_DISTURB_15_02"); //Jmenuju se... AI_Output(self,hero,"Info_Xardas_DISTURB_14_03"); //Nezajímá mě, jak se jmenuješ. Je to nedůležité. AI_Output(self,hero,"Info_Xardas_DISTURB_14_04"); //Důležité je jen to, že jsi za ta léta první člověk, který rozřešil hádanku mých Golemů. }; instance Info_Xardas_OTHERS(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_OTHERS_Condition; information = Info_Xardas_OTHERS_Info; important = 0; permanent = 0; description = "Byli tu ještě jiní návštěvníci?"; }; func int Info_Xardas_OTHERS_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_DISTURB)) { return TRUE; }; }; func void Info_Xardas_OTHERS_Info() { AI_Output(hero,self,"Info_Xardas_OTHERS_15_01"); //Byli tu ještě jiní návštěvníci? AI_Output(self,hero,"Info_Xardas_OTHERS_14_02"); //Ne moc, ale jakmile mě začali obtěžovat, nechal jsem je konfrontovat s jednou z mých nadpřirozených příšer. AI_Output(hero,self,"Info_Xardas_OTHERS_15_03"); //Ty jsi nerad vyrušován, viď? }; instance Info_Xardas_SATURAS(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_SATURAS_Condition; information = Info_Xardas_SATURAS_Info; important = 0; permanent = 0; description = "Poslal mě Saturas. Potřebujeme tvoji pomoc!"; }; func int Info_Xardas_SATURAS_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_DISTURB)) { return TRUE; }; }; func void Info_Xardas_SATURAS_Info() { AI_Output(hero,self,"Info_Xardas_SATURAS_15_01"); //Poslal mě Saturas. Potřebujeme tvojí pomoc! AI_Output(hero,self,"Info_Xardas_SATURAS_15_02"); //Mágové Vody se chystají použít svojí velkou rudnou haldu... AI_Output(self,hero,"Info_Xardas_SATURAS_14_03"); //Rudná halda NENÍ správné řešení! AI_Output(hero,self,"Info_Xardas_SATURAS_15_04"); //Není? AI_Output(self,hero,"Info_Xardas_SATURAS_14_05"); //NE! }; instance Info_Xardas_KDW(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_KDW_Condition; information = Info_Xardas_KDW_Info; important = 0; permanent = 0; description = "Všichni mágové Ohně jsou mrtví!"; }; func int Info_Xardas_KDW_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_DISTURB)) { return TRUE; }; }; func void Info_Xardas_KDW_Info() { AI_Output(hero,self,"Info_Xardas_KDW_15_01"); //Všichni mágové Ohně jsou mrtví! AI_Output(hero,self,"Info_Xardas_KDW_15_02"); //Gomez je povraždil. AI_Output(self,hero,"Info_Xardas_KDW_14_03"); //To mě nepřekvapuje. Těm bláznivým barbarům na hradě, hlavně Gomezovi, nikdy není co věřit. AI_Output(self,hero,"Info_Xardas_KDW_14_04"); //Corristo a další mágové si sami zvolili šibenici, když pomáhali Gomezovi převzít moc. }; instance Info_Xardas_SLEEPER(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_SLEEPER_Condition; information = Info_Xardas_SLEEPER_Info; important = 0; permanent = 0; description = "O tom takzvaném 'Spáčovi' se říká, že je to zlý arcidémon."; }; func int Info_Xardas_SLEEPER_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_DISTURB)) { return TRUE; }; }; func void Info_Xardas_SLEEPER_Info() { AI_Output(hero,self,"Info_Xardas_SLEEPER_15_01"); //O tom takzvaném 'Spáčovi' se říká, že je to zlý arcidémon. AI_Output(hero,self,"Info_Xardas_SLEEPER_15_02"); //Toho si vytvořilo Bratrstvo z bažin. AI_Output(hero,self,"Info_Xardas_SLEEPER_15_03"); //Teď mágové Vody věří tomu, že jsou všichni v kolonii ve velkém nebezpečí. AI_Output(self,hero,"Info_Xardas_SLEEPER_14_04"); //Je to větší nebezpečí, než si kdokoliv uvnitř Bariéry dokáže představit. }; instance Info_Xardas_DANGER(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_DANGER_Condition; information = Info_Xardas_DANGER_Info; important = 0; permanent = 0; description = "Pokud exploze rudné haldy toto velké nebezpečí neodvrátí..."; }; func int Info_Xardas_DANGER_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_SLEEPER) && Npc_KnowsInfo(hero,Info_Xardas_SATURAS)) { return TRUE; }; }; func void Info_Xardas_DANGER_Info() { AI_Output(hero,self,"Info_Xardas_DANGER_15_01"); //Pokud exploze rudné haldy toto velké nebezpečí neodvrátí... AI_Output(self,hero,"Info_Xardas_DANGER_14_02"); //...Zapomeň na rudnou haldu! Její síla Bariéru neotevře. AI_Output(self,hero,"Info_Xardas_DANGER_14_03"); //Kdyby Corristo a Saturas neplýtvali v minulých letech časem na bláznivé a zbytečné záležitosti, pak by všichni věděli, co já vím. AI_Output(hero,self,"Info_Xardas_DANGER_15_04"); //A co? AI_Output(self,hero,"Info_Xardas_DANGER_14_05"); //Žádný z dvanácti mágů se od té doby nepřestal ptát, proč se jim vytvoření Bariéry vymklo z rukou a proč nabyla tak obrovských rozměrů. }; instance Info_Xardas_BARRIER(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_BARRIER_Condition; information = Info_Xardas_BARRIER_Info; important = 0; permanent = 0; description = "Přišel jsi na to, proč se to stalo?"; }; func int Info_Xardas_BARRIER_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_DANGER)) { return TRUE; }; }; func void Info_Xardas_BARRIER_Info() { AI_Output(hero,self,"Info_Xardas_BARRIER_15_01"); //Přišel jsi na to, proč se to stalo? AI_Output(self,hero,"Info_Xardas_BARRIER_14_02"); //Dobrá, jedno je jisté: odpověď leží hluboko pod městem skřetů. AI_Output(hero,self,"Info_Xardas_BARRIER_15_03"); //Pod městem skřetů? AI_Output(self,hero,"Info_Xardas_BARRIER_14_04"); //Skřeti nejsou zvířata, jak si mnozí myslí. Jejich kultura je tak stará jako lidská. AI_Output(self,hero,"Info_Xardas_BARRIER_14_05"); //Před několika stoletími vyvolalo pět skřetích šamanů velmi starého arcidémona, protože doufali, že dá jejich klanu sílu, se kterou by porazili své nepřátele. AI_Output(hero,self,"Info_Xardas_BARRIER_15_06"); //Ten arcidémon, to byl Spáč? AI_Output(self,hero,"Info_Xardas_BARRIER_14_07"); //Skřeti mu tohle jméno dali až mnohem později. Nemůžu ale říci, proč mu ho dali, ani proč se teď té nadpřirozené bytosti děsí! }; instance Info_Xardas_EVENT(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_EVENT_Condition; information = Info_Xardas_EVENT_Info; important = 0; permanent = 0; description = "Proč ne?"; }; func int Info_Xardas_EVENT_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_BARRIER)) { return TRUE; }; }; func void Info_Xardas_EVENT_Info() { AI_Output(hero,self,"Info_Xardas_EVENT_15_01"); //Proč ne? AI_Output(self,hero,"Info_Xardas_EVENT_14_02"); //Věřím, že ty bys mohl... NE, jsem si jist, ty budeš muset vykonat jiný úkol! AI_Output(hero,self,"Info_Xardas_EVENT_15_03"); //Jaký? AI_Output(self,hero,"Info_Xardas_EVENT_14_04"); //Pozorně poslouchej: Skřeti vyhostili z toho města jednoho šamana. }; instance Info_Xardas_EVENTWHY(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_EVENTWHY_Condition; information = Info_Xardas_EVENTWHY_Info; important = 0; permanent = 0; description = "Proč ho vyhostili?"; }; func int Info_Xardas_EVENTWHY_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_EVENT)) { return TRUE; }; }; func void Info_Xardas_EVENTWHY_Info() { AI_Output(hero,self,"Info_Xardas_EVENTWHY_15_01"); //Proč ho vyhostili? AI_Output(self,hero,"Info_Xardas_EVENTWHY_14_02"); //Umírající skřetí bojovník při výslechu jedním mým démonem nebyl schopen dlouho odpovídat na otázky. }; instance Info_Xardas_EVENTHOW(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_EVENTHOW_Condition; information = Info_Xardas_EVENTHOW_Info; important = 0; permanent = 0; description = "Co má ten skřetí šaman společného s mým úkolem?"; }; func int Info_Xardas_EVENTHOW_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_EVENT)) { return TRUE; }; }; func void Info_Xardas_EVENTHOW_Info() { AI_Output(hero,self,"Info_Xardas_EVENTHOW_15_01"); //Co má ten skřetí šaman společného s mým úkolem? AI_Output(self,hero,"Info_Xardas_EVENTHOW_14_02"); //Řekne ti zbytek toho příběhu o Spáčovi. AI_Output(hero,self,"Info_Xardas_EVENTHOW_15_03"); //Nějaký skřetí šaman bude asi sotva ochotný se mnou mluvit! AI_Output(self,hero,"Info_Xardas_EVENTHOW_14_04"); //Chceš, abych ti pomohl nebo ne? AI_Output(hero,self,"Info_Xardas_EVENTHOW_15_05"); //Ano, chci, ale... AI_Output(self,hero,"Info_Xardas_EVENTHOW_14_06"); //Pak už žádné otázky! AI_Output(self,hero,"Info_Xardas_EVENTHOW_14_07"); //Najdi toho šamana. Není už dlouhou dobu se svými bratry ve skřetím městě zadobře, takže tě možná vyslechne ještě předtím, než tě promění v živou pochodeň! AI_Output(hero,self,"Info_Xardas_EVENTHOW_15_08"); //Pěkná představa! }; instance Info_Xardas_EVENTWHERE(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_EVENTWHERE_Condition; information = Info_Xardas_EVENTWHERE_Info; important = 0; permanent = 0; description = "Kde je ten vyhoštěný šaman?"; }; func int Info_Xardas_EVENTWHERE_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_EVENT)) { return TRUE; }; }; func void Info_Xardas_EVENTWHERE_Info() { AI_Output(hero,self,"Info_Xardas_EVENTWHERE_15_01"); //Kde je ten vyhoštěný šaman? AI_Output(self,hero,"Info_Xardas_EVENTWHERE_14_02"); //Jdi na východ ke staré citadele. Nemůžeš ji minout, je na vrcholu hory, kterou uvidíš už z dálky. AI_Output(hero,self,"Info_Xardas_EVENTWHERE_15_03"); //Jak se dostanu dovnitř? AI_Output(self,hero,"Info_Xardas_EVENTWHERE_14_04"); //Říkají jí stará citadela, ale zbylo z ní sotva víc než základové zdi. Je to už po mnoho desetiletí zřícenina. }; instance Info_Xardas_ACCEPT(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_ACCEPT_Condition; information = Info_Xardas_ACCEPT_Info; important = 0; permanent = 0; description = "Dostanu od toho šamana odpovědi!"; }; func int Info_Xardas_ACCEPT_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_EVENTWHY) && Npc_KnowsInfo(hero,Info_Xardas_EVENTHOW) && Npc_KnowsInfo(hero,Info_Xardas_EVENTWHERE)) { return TRUE; }; }; func void Info_Xardas_ACCEPT_Info() { AI_Output(hero,self,"Info_Xardas_ACCEPT_15_01"); //Dostanu od toho šamana odpovědi! AI_Output(self,hero,"Info_Xardas_ACCEPT_14_02"); //Můj služebník ti už připravil teleportační runu na pentagram na podlaze. AI_Output(self,hero,"Info_Xardas_ACCEPT_14_03"); //To ti usnadní pozdější návrat zpět. B_Story_CordsPost(); B_Story_FindOrcShaman(); AI_StopProcessInfos(self); }; instance Kdf_404_Xardas_SELLMAGICSTUFF(C_Info) { npc = KDF_404_Xardas; condition = Kdf_404_Xardas_SELLMAGICSTUFF_Condition; information = Kdf_404_Xardas_SELLMAGICSTUFF_Info; important = 0; permanent = 1; trade = 1; description = "Hledám magické vědění."; }; func int Kdf_404_Xardas_SELLMAGICSTUFF_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_ACCEPT)) { return TRUE; }; }; func void Kdf_404_Xardas_SELLMAGICSTUFF_Info() { AI_Output(other,self,"Kdf_404_Xardas_SELLMAGICSTUFF_Info_15_01"); //Hledám magické vědění. }; instance Info_Xardas_RETURN(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_RETURN_Condition; information = Info_Xardas_RETURN_Info; important = 0; permanent = 0; description = "Mám odpovědi od skřetího šamana!"; }; func int Info_Xardas_RETURN_Condition() { if(UrShak_SpokeOfUluMulu && !EnteredTemple) { return TRUE; }; }; func void Info_Xardas_RETURN_Info() { AI_Output(hero,self,"Info_Xardas_RETURN_15_01"); //Mám odpovědi od skřetího šamana! AI_Output(self,hero,"Info_Xardas_RETURN_14_02"); //Výborně, tak povídej! AI_Output(hero,self,"Info_Xardas_RETURN_15_03"); //Pět skřetích šamanů vyvolalo Spáče, kterého vytvořili v podzemním chrámu, do kterého je vstup v skřetím městě. AI_Output(self,hero,"Info_Xardas_RETURN_14_04"); //To je pravda! AI_Output(hero,self,"Info_Xardas_RETURN_15_05"); //Protože byl nevděčný, zaklel jejich srdce a odsoudil je k věčnému bytí jako nesmrtelné stvůry! AI_Output(self,hero,"Info_Xardas_RETURN_14_06"); //Velmi dobře, velmi dobře! AI_Output(hero,self,"Info_Xardas_RETURN_15_07"); //Skřeti zavřeli chrám a začali přinášet oběti, aby toho démona usmířili! AI_Output(self,hero,"Info_Xardas_RETURN_14_08"); //Našel jsi cestu ke vchodu do toho chrámu? AI_Output(hero,self,"Info_Xardas_RETURN_15_09"); //Ano, je jeden skřet, který... AI_Output(self,hero,"Info_Xardas_RETURN_14_10"); //Bez těch podrobností! Jdi do podzemního chrámu! Tam najdeš způsob jak zničit Bariéru! AI_Output(hero,self,"Info_Xardas_RETURN_15_11"); //Nerozumím! AI_Output(self,hero,"Info_Xardas_RETURN_14_12"); //Nechtěl jsi snad po mně, abych ti pomáhal s odstraněním Bariéry? AI_Output(hero,self,"Info_Xardas_RETURN_15_13"); //To je pravda, ale... AI_Output(self,hero,"Info_Xardas_RETURN_14_14"); //PAK TEDY BĚŽ. Už se promrhalo spoustu času! Jdi do podzemního chrámu a najdi tam odpověď! B_Story_ReturnedFromUrShak(); }; instance Info_Xardas_FOUNDTEMPLE(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_FOUNDTEMPLE_Condition; information = Info_Xardas_FOUNDTEMPLE_Info; important = 0; permanent = 0; description = "Našel jsem cestu do podzemního chrámu!"; }; func int Info_Xardas_FOUNDTEMPLE_Condition() { if(EnteredTemple) { return TRUE; }; }; func void Info_Xardas_FOUNDTEMPLE_Info() { AI_Output(other,self,"Info_Xardas_FOUNDTEMPLE_15_01"); //Našel jsem cestu do podzemního chrámu! AI_Output(self,other,"Info_Xardas_FOUNDTEMPLE_14_02"); //NAŠEL... To je pozoruhodné! AI_Output(self,other,"Info_Xardas_FOUNDTEMPLE_14_03"); //Stal ses velmi mocný! Silnější než kdokoliv jiný uvnitř Bariéry. AI_Output(self,other,"Info_Xardas_FOUNDTEMPLE_14_04"); //Možná jsi doopravdy ten muž ze skřetího proroctví! }; instance Info_Xardas_PROPHECY(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_PROPHECY_Condition; information = Info_Xardas_PROPHECY_Info; important = 0; permanent = 0; description = "Proroctví? Jaké proroctví?"; }; func int Info_Xardas_PROPHECY_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_FOUNDTEMPLE)) { return TRUE; }; }; func void Info_Xardas_PROPHECY_Info() { AI_Output(other,self,"Info_Xardas_PROPHECY_15_01"); //Proroctví? Jaké proroctví? AI_Output(self,other,"Info_Xardas_PROPHECY_14_02"); //Prastaré skřetí dokumenty napsané krátce před uzavřením podzemního chrámu se zmiňovaly o 'Svatém nepříteli'. AI_Output(other,self,"Info_Xardas_PROPHECY_15_03"); //O Svatém nepříteli? AI_Output(self,other,"Info_Xardas_PROPHECY_14_04"); //Někdo, kdo provždy odstraní SPÁČE z našeho světa! AI_Output(other,self,"Info_Xardas_PROPHECY_15_05"); //A já mám být tím, kdo byl v tom starém proroctví zmíněn??? Musíš se mýlit, určitě! AI_Output(self,other,"Info_Xardas_PROPHECY_14_06"); //Možná... Možná ne! }; instance Info_Xardas_LOADSWORD(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_LOADSWORD_Condition; information = Info_Xardas_LOADSWORD_Info; important = 0; permanent = 0; description = "Našel jsem zvláštní meč."; }; func int Info_Xardas_LOADSWORD_Condition() { if(Npc_HasItems(hero,Mythrilklinge)) { return TRUE; }; }; func void Info_Xardas_LOADSWORD_Info() { AI_Output(other,self,"Info_Xardas_LOADSWORD_15_01"); //Našel jsem zvláštní meč. AI_Output(self,other,"Info_Xardas_LOADSWORD_14_02"); //Ukaž mi ho. CreateInvItem(self,Mythrilklinge01); AI_EquipBestMeleeWeapon(self); AI_ReadyMeleeWeapon(self); AI_PlayAni(self,"T_1HSINSPECT"); AI_RemoveWeapon(self); AI_UnequipWeapons(self); AI_Output(self,other,"Info_Xardas_LOADSWORD_14_03"); //To je zajímavé... Je na něm napsáno 'URIZIEL'. AI_Output(self,other,"Info_Xardas_LOADSWORD_14_04"); //Slyšel jsem o tom meči. Je to zbraň z dávných dob, kdy lidské plemeno bylo ještě mladé. AI_Output(self,other,"Info_Xardas_LOADSWORD_14_05"); //Ta zbraň je ukována z neznámého materiálu. A nikde není napsáno, kdo ji vytvořil! AI_Output(self,other,"Info_Xardas_LOADSWORD_14_06"); //Jeho ostří je obdařeno neuvěřitelnou mocí, ale nevidím žádnou kouzelnou auru! Npc_RemoveInvItem(hero,Mythrilklinge); CreateInvItem(hero,Mythrilklinge01); }; instance Info_Xardas_LOADSWORD01(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_LOADSWORD01_Condition; information = Info_Xardas_LOADSWORD01_Info; important = 0; permanent = 0; description = "URIZIEL je obdařen neuvěřitelnou mocí?"; }; func int Info_Xardas_LOADSWORD01_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_LOADSWORD)) { return TRUE; }; }; func void Info_Xardas_LOADSWORD01_Info() { Npc_RemoveInvItem(self,Mythrilklinge01); AI_Output(other,self,"Info_Xardas_LOADSWORD01_15_01"); //URIZIEL je obdařen neuvěřitelnou mocí? AI_Output(self,other,"Info_Xardas_LOADSWORD01_14_02"); //Stojí psáno, že majitel té zbraně dokázal protnout i to nejsilnější brnění a překonat i to nejmocnější ochranné kouzlo. AI_Output(other,self,"Info_Xardas_LOADSWORD01_15_03"); //Jak se mohla skřetům tahle mocná zbraň dostat do rukou? AI_Output(self,other,"Info_Xardas_LOADSWORD01_14_04"); //Tvrdí se, že ji skřeti vzali jednomu mocnému válečníkovi. Nevěděli, jak ji používat, ale ukryli ji! AI_Output(other,self,"Info_Xardas_LOADSWORD01_15_05"); //Neukryli ji ale dobře! }; instance Info_Xardas_LOADSWORD02(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_LOADSWORD02_Condition; information = Info_Xardas_LOADSWORD02_Info; important = 0; permanent = 0; description = "Je možné obnovit bývalou moc této zbraně?"; }; func int Info_Xardas_LOADSWORD02_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_LOADSWORD01)) { return TRUE; }; }; func void Info_Xardas_LOADSWORD02_Info() { AI_Output(other,self,"Info_Xardas_LOADSWORD02_15_01"); //Je možné obnovit bývalou moc této zbraně? AI_Output(self,other,"Info_Xardas_LOADSWORD02_14_02"); //Potřeboval bys k tomu velmi silný zdroj magické síly. AI_Output(other,self,"Info_Xardas_LOADSWORD02_15_03"); //Myslíš natolik silný, aby prorazil magickou Bariéru? AI_Output(self,other,"Info_Xardas_LOADSWORD02_14_04"); //Asi tak silný... AI_Output(self,other,"Info_Xardas_LOADSWORD02_14_05"); //A kromě toho bys potřeboval zvláštní magickou formuli, která by tu sílu přetransformovala. AI_Output(self,other,"Info_Xardas_LOADSWORD02_14_06"); //Dej mi trochu času a já tu magickou formuli vytvořím. B_Story_ShowedUrizielToXardas(); }; instance Info_Xardas_BETTERARMOR(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_BETTERARMOR_Condition; information = Info_Xardas_BETTERARMOR_Info; important = 0; permanent = 0; description = "Já se zatím podívám po nějaké lepší zbroji!"; }; func int Info_Xardas_BETTERARMOR_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_LOADSWORD02)) { return TRUE; }; }; func void Info_Xardas_BETTERARMOR_Info() { var C_Item armor; var int armorInstance; AI_Output(other,self,"Info_Xardas_BETTERARMOR_15_01"); //Já se zatím podívám po nějaké lepší zbroji! armor = Npc_GetEquippedArmor(hero); armorInstance = Hlp_GetInstanceID(armor); if(armorInstance == crw_armor_h) { AI_Output(other,self,"Info_Xardas_BETTERARMOR_15_02"); //Tahle zalátaná protičerví zbroj byla v podzemním chrámu mockrát proražena! } else if((armorInstance == kdw_armor_h) || (armorInstance == kdw_armor_l)) { AI_Output(other,self,"Info_Xardas_BETTERARMOR_15_03"); //Tyhle modré hadry by mě v podzemním chrámu sotva ochránily! } else { AI_Output(other,self,"Info_Xardas_BETTERARMOR_15_04"); //Ten nemrtvý zanechal v mé zbroji pořádné díry! }; AI_Output(self,other,"Info_Xardas_BETTERARMOR_14_05"); //Měl bys jít do mojí staré věže. AI_Output(other,self,"Info_Xardas_BETTERARMOR_15_06"); //Tvojí staré věže? AI_Output(self,other,"Info_Xardas_BETTERARMOR_14_07"); //Potopila se v jednom z východních jezer při jednom zemětřesení. Vrcholy jsou nad povrchem stále viditelné. AI_Output(self,other,"Info_Xardas_BETTERARMOR_14_08"); //Zůstalo v ní několik artefaktů. Nikdy jsem se nesnažil je dostat zpátky. AI_Output(other,self,"Info_Xardas_BETTERARMOR_15_09"); //Jak se tam dostanu? AI_Output(self,other,"Info_Xardas_BETTERARMOR_14_10"); //Od toho zemětřesení jsem tam nebyl, takže si k ní budeš muset najít cestu sám. AI_Output(self,other,"Info_Xardas_BETTERARMOR_14_11"); //Tady je klíč. Je od truhly, ve které jsem obvykle ukládal obzvlášť vzácné artefakty. B_Story_ExploreSunkenTower(); }; instance Info_Xardas_OREARMOR(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_OREARMOR_Condition; information = Info_Xardas_OREARMOR_Info; important = 1; permanent = 0; }; func int Info_Xardas_OREARMOR_Condition() { if(Npc_HasItems(hero,ore_armor_m) || Npc_HasItems(hero,ore_armor_h)) { return TRUE; }; }; func void Info_Xardas_OREARMOR_Info() { var C_Item armor; var int armorInstance; armor = Npc_GetEquippedArmor(hero); armorInstance = Hlp_GetInstanceID(armor); if((armorInstance == ore_armor_m) || (armorInstance == ore_armor_h)) { AI_Output(self,other,"Info_Xardas_OREARMOR_14_01"); //Aha! Vidím, že nosíš rudnou zbroj. } else { AI_Output(self,other,"Info_Xardas_OREARMOR_14_02"); //Jak vidím, našel jsi rudnou zbroj. }; AI_Output(other,self,"Info_Xardas_OREARMOR_15_03"); //Našel jsem ji v jedné z těch truhel v potopené věži. AI_Output(self,other,"Info_Xardas_OREARMOR_14_04"); //Patřila generálovi, který v bitvě proti skřetům používal URIZIEL. AI_Output(other,self,"Info_Xardas_OREARMOR_15_05"); //Doufám, že mi přinese víc štěstí než jemu! }; instance Info_Xardas_FORMULA(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_FORMULA_Condition; information = Info_Xardas_FORMULA_Info; important = 0; permanent = 0; description = "Máš hotovou tu formuli na obnovení síly URIZIELA?"; }; func int Info_Xardas_FORMULA_Condition() { if(Npc_HasItems(hero,ore_armor_m) || Npc_HasItems(hero,ore_armor_h) || Npc_HasItems(hero,ItArRuneTeleport1)) { return TRUE; }; }; func void Info_Xardas_FORMULA_Info() { AI_Output(other,self,"Info_Xardas_FORMULA_15_01"); //Máš hotovou tu formuli na obnovení síly URIZIELA? AI_Output(self,other,"Info_Xardas_FORMULA_14_02"); //Je hotová. Nebudeš ji moci ale použít sám. AI_Output(other,self,"Info_Xardas_FORMULA_15_03"); //Proč ne? AI_Output(self,other,"Info_Xardas_FORMULA_14_04"); //Musí být vyslovena nějakým mágem, zatímco ty se budeš dotýkat mečem zdroje síly. AI_Output(other,self,"Info_Xardas_FORMULA_15_05"); //Pak se budu muset porozhlédnout po nějaké pomoci! AI_Output(self,other,"Info_Xardas_FORMULA_14_06"); //Vyslov tu formuli a obnov dřívější sílu meče. Budeš ji potřebovat! B_Story_LoadSword(); }; instance Info_Xardas_ALTRUNE(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_ALTRUNE_Condition; information = Info_Xardas_ALTRUNE_Info; important = 0; permanent = 0; description = "Protože jsem mág, bude pro mě těžké vládnout URIZIELEM!"; }; func int Info_Xardas_ALTRUNE_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_FORMULA) && ((Npc_GetTrueGuild(hero) == GIL_KDW) || (Npc_GetTrueGuild(hero) == GIL_DMB))) { return TRUE; }; }; func void Info_Xardas_ALTRUNE_Info() { AI_Output(other,self,"Info_Xardas_ALTRUNE_15_01"); //Protože jsem mág, bude pro mě těžké vládnout URIZIELEM! AI_Output(self,other,"Info_Xardas_ALTRUNE_14_02"); //Je tu jedno řešení... AI_Output(self,other,"Info_Xardas_ALTRUNE_14_03"); //Nejdřív ale musíš obnovit dřívější sílu ostří! Pak se vrať! }; instance Info_Xardas_SWORDLOADED(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_SWORDLOADED_Condition; information = Info_Xardas_SWORDLOADED_Info; important = 0; permanent = 0; description = "Obnovil jsem sílu URIZIELA!"; }; func int Info_Xardas_SWORDLOADED_Condition() { if(Npc_HasItems(hero,Mythrilklinge02)) { return TRUE; }; }; func void Info_Xardas_SWORDLOADED_Info() { AI_Output(other,self,"Info_Xardas_SWORDLOADED_15_01"); //Obnovil jsem sílu URIZIELA! AI_Output(self,other,"Info_Xardas_SWORDLOADED_14_02"); //To je neuvěřitelné, meč znovu získal svou původní sílu. Teď máš opravdu mocnou zbraň! Wld_InsertItem(ItArScrollTeleport4,"OW_ORC_SHAMAN_ROOM2"); }; instance Info_Xardas_MAKERUNE(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_MAKERUNE_Condition; information = Info_Xardas_MAKERUNE_Info; important = 0; permanent = 0; description = "Říkal jsi, že existuje nějaký způsob, jak bych mohl URIZIEL ovládat, přestože jsem mág?"; }; func int Info_Xardas_MAKERUNE_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_ALTRUNE) && Npc_KnowsInfo(hero,Info_Xardas_SWORDLOADED)) { return TRUE; }; }; func void Info_Xardas_MAKERUNE_Info() { AI_Output(other,self,"Info_Xardas_MAKERUNE_15_01"); //Říkal jsi, že existuje nějaký způsob, jak bych mohl URIZIEL ovládat, přestože jsem mág? AI_Output(self,other,"Info_Xardas_MAKERUNE_14_02"); //Podívej se na URIZIEL zblízka. Všimneš si modrého drahokamu v čepeli. AI_Output(self,other,"Info_Xardas_MAKERUNE_14_03"); //V něm je obsažena magická síla ostří. AI_Output(self,other,"Info_Xardas_MAKERUNE_14_04"); //Když ten drahokam odstraním, budu moci vytvořit kouzelnou runu, která bude obsahovat atributy samotného URIZIELA. AI_Output(other,self,"Info_Xardas_MAKERUNE_15_05"); //Magická runa vytvořená z URIZIELA? AI_Output(self,other,"Info_Xardas_MAKERUNE_14_06"); //V boji bude ta runa stejně silná jako meč! AI_Output(self,other,"Info_Xardas_MAKERUNE_14_07"); //Nezapomeň ale, že jedině některý mág Šestého kruhu je schopen ovládat takhle mocnou runu! }; instance Info_Xardas_MAKERUNEDOIT(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_MAKERUNEDOIT_Condition; information = Info_Xardas_MAKERUNEDOIT_Info; important = 0; permanent = 1; description = "Odstraň z URIZIELA ten drahokam!"; }; func int Info_Xardas_MAKERUNEDOIT_Condition() { if(Npc_KnowsInfo(hero,Info_Xardas_MAKERUNE) && Npc_HasItems(hero,Mythrilklinge02)) { return TRUE; }; }; func void Info_Xardas_MAKERUNEDOIT_Info() { AI_Output(other,self,"Info_Xardas_MAKERUNEDOIT_15_01"); //Odstraň z URIZIELA ten drahokam! if(Npc_GetTalentSkill(hero,NPC_TALENT_MAGE) < 6) { AI_Output(self,other,"Info_Xardas_MAKERUNEDOIT_14_02"); //Nejsi ale ještě pod velením Šestého magického kruhu! }; AI_Output(self,other,"Info_Xardas_MAKERUNEDOIT_14_03"); //Tohle rozhodnutí je konečné. Opravdu chceš, abych ten drahokam odstranil? Info_ClearChoices(Info_Xardas_MAKERUNEDOIT); Info_AddChoice(Info_Xardas_MAKERUNEDOIT,"ANO, udělej to!",Info_Xardas_MAKERUNE_YES); Info_AddChoice(Info_Xardas_MAKERUNEDOIT,"NE, nedělej to!",Info_Xardas_MAKERUNE_NO); }; func void Info_Xardas_MAKERUNE_YES() { Info_ClearChoices(Info_Xardas_MAKERUNEDOIT); AI_Output(other,self,"Info_Xardas_MAKERUNEDOIT_15_04"); //ANO, udělej to! AI_Output(self,other,"Info_Xardas_MAKERUNEDOIT_14_05"); //Jestli to opravdu chceš... Tady je prázdný meč a runa! Npc_RemoveInvItem(hero,Mythrilklinge02); CreateInvItems(self,UrizielRune,2); B_GiveInvItems(self,hero,UrizielRune,2); Npc_RemoveInvItem(hero,UrizielRune); CreateInvItem(hero,Mythrilklinge03); B_LogEntry(CH5_Uriziel,"Xardas odstranil z URIZIELU kouzelný kámen. Síla této čepele spočívá v kouzelné runě nevídané moci."); Log_SetTopicStatus(CH5_Uriziel,LOG_SUCCESS); }; func void Info_Xardas_MAKERUNE_NO() { Info_ClearChoices(Info_Xardas_MAKERUNEDOIT); AI_Output(other,self,"Info_Xardas_MAKERUNEDOIT_15_06"); //NE, nedělej to! AI_Output(self,other,"Info_Xardas_MAKERUNEDOIT_14_07"); //Jak si přeješ. Ostří si zachová magickou moc! }; instance Info_Xardas_LOADSWORD09(C_Info) { npc = KDF_404_Xardas; condition = Info_Xardas_LOADSWORD09_Condition; information = Info_Xardas_LOADSWORD09_Info; important = 0; permanent = 1; description = B_BuildLearnString(NAME_LearnMage_6,LPCOST_TALENT_MAGE_6,0); }; func int Info_Xardas_LOADSWORD09_Condition() { if(EnteredTemple && (Npc_GetTrueGuild(hero) == GIL_KDW)) { return TRUE; }; }; func void Info_Xardas_LOADSWORD09_Info() { AI_Output(other,self,"Info_Xardas_LOADSWORD09_15_01"); //Můžeš mě učit? if(Npc_GetTalentSkill(hero,NPC_TALENT_MAGE) == 5) { if(B_GiveSkill(other,NPC_TALENT_MAGE,6,LPCOST_TALENT_MAGE_6)) { AI_Output(self,other,"Info_Xardas_LOADSWORD09_14_02"); //Přivedu tě k Šestému kruhu magie. AI_Output(self,other,"Info_Xardas_LOADSWORD09_14_03"); //Uvědom si, že jen ti nejmocnější mágové se mohou přidat k Šestému kruhu. Je vyhrazen pro ty, jejichž životy jsou znameními. AI_Output(self,other,"Info_Xardas_LOADSWORD09_14_04"); //Tvé znamení je sjednocení živlů. AI_Output(self,other,"Info_Xardas_LOADSWORD09_14_05"); //Šestý kruh ti umožní využít jakoukoliv runu. AI_Output(self,other,"Info_Xardas_LOADSWORD09_14_06"); //A nezapomeň: neuplatňuj moc, ale služ jí. CreateInvItem(hero,dmb_armor_m); AI_EquipBestArmor(hero); CreateInvItem(self,ItAmArrow); B_GiveInvItems(self,hero,ItAmArrow,1); Npc_RemoveInvItem(hero,ItAmArrow); hero.guild = GIL_DMB; Npc_SetTrueGuild(hero,GIL_DMB); Info_Xardas_LOADSWORD09.permanent = 0; AI_StopProcessInfos(self); }; } else { AI_Output(self,other,"Info_Xardas_LOADSWORD09_14_07"); //Ještě ne. Už jsi zběhlý, ale nemáš ještě dost vědomostí. Ať tě nejdříve cvičí Saturas, já ti dám pokyny později. AI_StopProcessInfos(self); }; };
D
func void ZS_Ebr_HangAround() { PrintDebugNpc(PD_TA_FRAME,"ZS_Ebr_HangAround"); ObservingPerception(); if(!C_BodyStateContains(self,BS_SIT)) { AI_SetWalkMode(self,NPC_WALK); if(Hlp_StrCmp(Npc_GetNearestWP(self),self.wp) == 0) { AI_GotoWP(self,self.wp); }; AI_UseMob(self,"THRONE",1); }; }; func void ZS_Ebr_HangAround_Loop() { PrintDebugNpc(PD_TA_LOOP,"ZS_Ebr_HangAround_Loop"); AI_Wait(self,1); }; func void ZS_Ebr_HangAround_End() { PrintDebugNpc(PD_TA_FRAME,"ZS_Ebr_HangAround_End"); AI_UseMob(self,"THRONE",-1); };
D
/Users/imutayuji/programming/rust_practice/chapter/target/debug/deps/chapter-5aa070c9e3eb5385.rmeta: src/main.rs /Users/imutayuji/programming/rust_practice/chapter/target/debug/deps/chapter-5aa070c9e3eb5385.d: src/main.rs src/main.rs:
D
/** As a reggae user I want to be able to write build descriptions in Python So I don't have to compile the build description */ module tests.it.runtime.python; import tests.it.runtime; @("Build description") @Tags(["ninja", "json_build", "python"]) unittest { with(immutable ReggaeSandbox()) { writeFile("reggaefile.py", [`from reggae import *`, `b = Build(executable(name='app', src_dirs=['src']))`]); writeHelloWorldApp; runReggae("-b", "ninja"); ninja.shouldExecuteOk(testPath); shouldSucceed("app").shouldEqual(["Hello world!"]); } } @("User variables") @Tags(["ninja", "json_build", "python"]) unittest { with(immutable ReggaeSandbox()) { writeFile("reggaefile.py", [`from reggae import *`, `name = user_vars.get('name', 'app')`, `b = Build(executable(name=name, src_dirs=['src']))`]); writeHelloWorldApp; runReggae("-b", "ninja", "-dname=foo"); ninja.shouldExecuteOk(testPath); shouldSucceed("foo").shouldEqual(["Hello world!"]); } } @("default options") @Tags(["ninja", "json_build", "python"]) unittest { with(immutable ReggaeSandbox()) { writeFile("reggaefile.py", [`from reggae import *`, `opts = DefaultOptions(dCompiler='nope')`, `b = Build(executable(name='app', src_dirs=['src']))`]); writeHelloWorldApp; runReggae("-b", "ninja"); // there's no binary named "nope" so the build fails ninja.shouldFailToExecute(testPath); } } @("Multiple runs will not crash") @Tags(["ninja", "json_build", "python"]) unittest { with(immutable ReggaeSandbox()) { writeFile("reggaefile.py", [`from reggae import *`, `b = Build(executable(name='app', src_dirs=['src']))`]); writeHelloWorldApp; runReggae("-b", "ninja", "-d", "foo=bar"); runReggae("-b", "ninja", "-d", "foo=baz"); } }
D
var int Mod_OTTeleportScene_Counter; FUNC VOID OTTeleportScene() { if (Mod_OTTeleportScene_Counter == 0) { AI_StandUP (hero); CutsceneAn = TRUE; AI_Output(hero, NULL, "Info_Mod_OTTeleportScene_15_00"); //Na prima, als Untoter kann ich mich nicht teleportieren. }; if (Mod_OTTeleportScene_Counter == 6) { AI_StandUP (hero); AI_Output(hero, NULL, "Info_Mod_OTTeleportScene_15_01"); //Ich muss zuerst einen Weg zurück ins Leben finden. }; if (Mod_OTTeleportScene_Counter == 12) { AI_StandUP (hero); AI_Output(hero, NULL, "Info_Mod_OTTeleportScene_15_02"); //Aber wie? Ich habe schon alles mitgenommen, was der Tempel zu bieten hat, bevor ich dem Schläfer gegenübergetreten bin. }; if (Mod_OTTeleportScene_Counter == 18) { AI_StandUP (hero); AI_Output(hero, NULL, "Info_Mod_OTTeleportScene_15_03"); //(überlegt) Hmm, vielleicht kann ich durch die Erdbeben an Orte gelangen, die mir vorher verwehrt geblieben sind ...? }; if (Mod_OTTeleportScene_Counter == 24) { TooLessMana = 2; B_LogEntry (TOPIC_MOD_ANFANG, "Na prima, als Untoter kann ich mich nicht teleportieren. Ich muss zuerst einen Weg zurück ins Leben finden. Aber wie? Ich habe schon alles mitgenommen, was der Tempel zu bieten hat, bevor ich dem Schläfer gegenübergetreten bin. (überlegt) Hmm, vielleicht kann ich durch die Erdbeben an Orte gelangen, die mir vorher verwehrt geblieben sind...?"); CutsceneAn = FALSE; }; Mod_OTTeleportScene_Counter += 1; };
D
/* * This file generated automatically from xfixes.xml by d_client.py. * Edit at your peril. */ /** * @defgroup XCB_XFixes_API XCB XFixes API * @brief XFixes XCB Protocol Implementation. * @{ **/ module xcb.xfixes; import xcb.xcb; import xcb.xproto; import xcb.render; import xcb.shape; extern (C): enum int XCB_XFIXES_MAJOR_VERSION = 5; enum int XCB_XFIXES_MINOR_VERSION = 0; extern (C) __gshared extern xcb_extension_t xcb_xfixes_id; /** * @brief xcb_xfixes_query_version_cookie_t **/ struct xcb_xfixes_query_version_cookie_t { uint sequence; /**< */ } /** Opcode for xcb_xfixes_query_version. */ enum XCB_XFIXES_QUERY_VERSION = 0; /** * @brief xcb_xfixes_query_version_request_t **/ struct xcb_xfixes_query_version_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ uint client_major_version; /**< */ uint client_minor_version; /**< */ } /** * @brief xcb_xfixes_query_version_reply_t **/ struct xcb_xfixes_query_version_reply_t { ubyte response_type; /**< */ ubyte pad0; /**< */ ushort sequence; /**< */ uint length; /**< */ uint major_version; /**< */ uint minor_version; /**< */ ubyte[16] pad1; /**< */ } enum xcb_xfixes_save_set_mode_t { XCB_XFIXES_SAVE_SET_MODE_INSERT = 0, XCB_XFIXES_SAVE_SET_MODE_DELETE = 1 } alias XCB_XFIXES_SAVE_SET_MODE_INSERT = xcb_xfixes_save_set_mode_t.XCB_XFIXES_SAVE_SET_MODE_INSERT; alias XCB_XFIXES_SAVE_SET_MODE_DELETE = xcb_xfixes_save_set_mode_t.XCB_XFIXES_SAVE_SET_MODE_DELETE; enum xcb_xfixes_save_set_target_t { XCB_XFIXES_SAVE_SET_TARGET_NEAREST = 0, XCB_XFIXES_SAVE_SET_TARGET_ROOT = 1 } alias XCB_XFIXES_SAVE_SET_TARGET_NEAREST = xcb_xfixes_save_set_target_t.XCB_XFIXES_SAVE_SET_TARGET_NEAREST; alias XCB_XFIXES_SAVE_SET_TARGET_ROOT = xcb_xfixes_save_set_target_t.XCB_XFIXES_SAVE_SET_TARGET_ROOT; enum xcb_xfixes_save_set_mapping_t { XCB_XFIXES_SAVE_SET_MAPPING_MAP = 0, XCB_XFIXES_SAVE_SET_MAPPING_UNMAP = 1 } alias XCB_XFIXES_SAVE_SET_MAPPING_MAP = xcb_xfixes_save_set_mapping_t.XCB_XFIXES_SAVE_SET_MAPPING_MAP; alias XCB_XFIXES_SAVE_SET_MAPPING_UNMAP = xcb_xfixes_save_set_mapping_t.XCB_XFIXES_SAVE_SET_MAPPING_UNMAP; /** Opcode for xcb_xfixes_change_save_set. */ enum XCB_XFIXES_CHANGE_SAVE_SET = 1; /** * @brief xcb_xfixes_change_save_set_request_t **/ struct xcb_xfixes_change_save_set_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ ubyte mode; /**< */ ubyte target; /**< */ ubyte map; /**< */ ubyte pad0; /**< */ xcb_window_t window; /**< */ } enum xcb_xfixes_selection_event_t { XCB_XFIXES_SELECTION_EVENT_SET_SELECTION_OWNER = 0, XCB_XFIXES_SELECTION_EVENT_SELECTION_WINDOW_DESTROY = 1, XCB_XFIXES_SELECTION_EVENT_SELECTION_CLIENT_CLOSE = 2 } alias XCB_XFIXES_SELECTION_EVENT_SET_SELECTION_OWNER = xcb_xfixes_selection_event_t.XCB_XFIXES_SELECTION_EVENT_SET_SELECTION_OWNER; alias XCB_XFIXES_SELECTION_EVENT_SELECTION_WINDOW_DESTROY = xcb_xfixes_selection_event_t.XCB_XFIXES_SELECTION_EVENT_SELECTION_WINDOW_DESTROY; alias XCB_XFIXES_SELECTION_EVENT_SELECTION_CLIENT_CLOSE = xcb_xfixes_selection_event_t.XCB_XFIXES_SELECTION_EVENT_SELECTION_CLIENT_CLOSE; enum xcb_xfixes_selection_event_mask_t { XCB_XFIXES_SELECTION_EVENT_MASK_SET_SELECTION_OWNER = 1, XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_WINDOW_DESTROY = 2, XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_CLIENT_CLOSE = 4 } alias XCB_XFIXES_SELECTION_EVENT_MASK_SET_SELECTION_OWNER = xcb_xfixes_selection_event_mask_t.XCB_XFIXES_SELECTION_EVENT_MASK_SET_SELECTION_OWNER; alias XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_WINDOW_DESTROY = xcb_xfixes_selection_event_mask_t.XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_WINDOW_DESTROY; alias XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_CLIENT_CLOSE = xcb_xfixes_selection_event_mask_t.XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_CLIENT_CLOSE; /** Opcode for xcb_xfixes_selection_notify. */ enum XCB_XFIXES_SELECTION_NOTIFY = 0; /** * @brief xcb_xfixes_selection_notify_event_t **/ struct xcb_xfixes_selection_notify_event_t { ubyte response_type; /**< */ ubyte subtype; /**< */ ushort sequence; /**< */ xcb_window_t window; /**< */ xcb_window_t owner; /**< */ xcb_atom_t selection; /**< */ xcb_timestamp_t timestamp; /**< */ xcb_timestamp_t selection_timestamp; /**< */ ubyte[8] pad0; /**< */ } /** Opcode for xcb_xfixes_select_selection_input. */ enum XCB_XFIXES_SELECT_SELECTION_INPUT = 2; /** * @brief xcb_xfixes_select_selection_input_request_t **/ struct xcb_xfixes_select_selection_input_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_window_t window; /**< */ xcb_atom_t selection; /**< */ uint event_mask; /**< */ } enum xcb_xfixes_cursor_notify_t { XCB_XFIXES_CURSOR_NOTIFY_DISPLAY_CURSOR = 0 } alias XCB_XFIXES_CURSOR_NOTIFY_DISPLAY_CURSOR = xcb_xfixes_cursor_notify_t.XCB_XFIXES_CURSOR_NOTIFY_DISPLAY_CURSOR; enum xcb_xfixes_cursor_notify_mask_t { XCB_XFIXES_CURSOR_NOTIFY_MASK_DISPLAY_CURSOR = 1 } alias XCB_XFIXES_CURSOR_NOTIFY_MASK_DISPLAY_CURSOR = xcb_xfixes_cursor_notify_mask_t.XCB_XFIXES_CURSOR_NOTIFY_MASK_DISPLAY_CURSOR; /** Opcode for xcb_xfixes_cursor_notify. */ enum XCB_XFIXES_CURSOR_NOTIFY = 1; /** * @brief xcb_xfixes_cursor_notify_event_t **/ struct xcb_xfixes_cursor_notify_event_t { ubyte response_type; /**< */ ubyte subtype; /**< */ ushort sequence; /**< */ xcb_window_t window; /**< */ uint cursor_serial; /**< */ xcb_timestamp_t timestamp; /**< */ xcb_atom_t name; /**< */ ubyte[12] pad0; /**< */ } /** Opcode for xcb_xfixes_select_cursor_input. */ enum XCB_XFIXES_SELECT_CURSOR_INPUT = 3; /** * @brief xcb_xfixes_select_cursor_input_request_t **/ struct xcb_xfixes_select_cursor_input_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_window_t window; /**< */ uint event_mask; /**< */ } /** * @brief xcb_xfixes_get_cursor_image_cookie_t **/ struct xcb_xfixes_get_cursor_image_cookie_t { uint sequence; /**< */ } /** Opcode for xcb_xfixes_get_cursor_image. */ enum XCB_XFIXES_GET_CURSOR_IMAGE = 4; /** * @brief xcb_xfixes_get_cursor_image_request_t **/ struct xcb_xfixes_get_cursor_image_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ } /** * @brief xcb_xfixes_get_cursor_image_reply_t **/ struct xcb_xfixes_get_cursor_image_reply_t { ubyte response_type; /**< */ ubyte pad0; /**< */ ushort sequence; /**< */ uint length; /**< */ short x; /**< */ short y; /**< */ ushort width; /**< */ ushort height; /**< */ ushort xhot; /**< */ ushort yhot; /**< */ uint cursor_serial; /**< */ ubyte[8] pad1; /**< */ } alias xcb_xfixes_region_t = uint; /** * @brief xcb_xfixes_region_iterator_t **/ struct xcb_xfixes_region_iterator_t { xcb_xfixes_region_t* data; /**< */ int rem; /**< */ int index; /**< */ } /** Opcode for xcb_xfixes_bad_region. */ enum XCB_XFIXES_BAD_REGION = 0; /** * @brief xcb_xfixes_bad_region_error_t **/ struct xcb_xfixes_bad_region_error_t { ubyte response_type; /**< */ ubyte error_code; /**< */ ushort sequence; /**< */ } enum xcb_xfixes_region_enum_t { XCB_XFIXES_REGION_NONE = 0 } alias XCB_XFIXES_REGION_NONE = xcb_xfixes_region_enum_t.XCB_XFIXES_REGION_NONE; /** Opcode for xcb_xfixes_create_region. */ enum XCB_XFIXES_CREATE_REGION = 5; /** * @brief xcb_xfixes_create_region_request_t **/ struct xcb_xfixes_create_region_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_region_t region; /**< */ } /** Opcode for xcb_xfixes_create_region_from_bitmap. */ enum XCB_XFIXES_CREATE_REGION_FROM_BITMAP = 6; /** * @brief xcb_xfixes_create_region_from_bitmap_request_t **/ struct xcb_xfixes_create_region_from_bitmap_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_region_t region; /**< */ xcb_pixmap_t bitmap; /**< */ } /** Opcode for xcb_xfixes_create_region_from_window. */ enum XCB_XFIXES_CREATE_REGION_FROM_WINDOW = 7; /** * @brief xcb_xfixes_create_region_from_window_request_t **/ struct xcb_xfixes_create_region_from_window_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_region_t region; /**< */ xcb_window_t window; /**< */ xcb_shape_kind_t kind; /**< */ ubyte[3] pad0; /**< */ } /** Opcode for xcb_xfixes_create_region_from_gc. */ enum XCB_XFIXES_CREATE_REGION_FROM_GC = 8; /** * @brief xcb_xfixes_create_region_from_gc_request_t **/ struct xcb_xfixes_create_region_from_gc_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_region_t region; /**< */ xcb_gcontext_t gc; /**< */ } /** Opcode for xcb_xfixes_create_region_from_picture. */ enum XCB_XFIXES_CREATE_REGION_FROM_PICTURE = 9; /** * @brief xcb_xfixes_create_region_from_picture_request_t **/ struct xcb_xfixes_create_region_from_picture_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_region_t region; /**< */ xcb_render_picture_t picture; /**< */ } /** Opcode for xcb_xfixes_destroy_region. */ enum XCB_XFIXES_DESTROY_REGION = 10; /** * @brief xcb_xfixes_destroy_region_request_t **/ struct xcb_xfixes_destroy_region_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_region_t region; /**< */ } /** Opcode for xcb_xfixes_set_region. */ enum XCB_XFIXES_SET_REGION = 11; /** * @brief xcb_xfixes_set_region_request_t **/ struct xcb_xfixes_set_region_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_region_t region; /**< */ } /** Opcode for xcb_xfixes_copy_region. */ enum XCB_XFIXES_COPY_REGION = 12; /** * @brief xcb_xfixes_copy_region_request_t **/ struct xcb_xfixes_copy_region_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_region_t source; /**< */ xcb_xfixes_region_t destination; /**< */ } /** Opcode for xcb_xfixes_union_region. */ enum XCB_XFIXES_UNION_REGION = 13; /** * @brief xcb_xfixes_union_region_request_t **/ struct xcb_xfixes_union_region_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_region_t source1; /**< */ xcb_xfixes_region_t source2; /**< */ xcb_xfixes_region_t destination; /**< */ } /** Opcode for xcb_xfixes_intersect_region. */ enum XCB_XFIXES_INTERSECT_REGION = 14; /** * @brief xcb_xfixes_intersect_region_request_t **/ struct xcb_xfixes_intersect_region_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_region_t source1; /**< */ xcb_xfixes_region_t source2; /**< */ xcb_xfixes_region_t destination; /**< */ } /** Opcode for xcb_xfixes_subtract_region. */ enum XCB_XFIXES_SUBTRACT_REGION = 15; /** * @brief xcb_xfixes_subtract_region_request_t **/ struct xcb_xfixes_subtract_region_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_region_t source1; /**< */ xcb_xfixes_region_t source2; /**< */ xcb_xfixes_region_t destination; /**< */ } /** Opcode for xcb_xfixes_invert_region. */ enum XCB_XFIXES_INVERT_REGION = 16; /** * @brief xcb_xfixes_invert_region_request_t **/ struct xcb_xfixes_invert_region_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_region_t source; /**< */ xcb_rectangle_t bounds; /**< */ xcb_xfixes_region_t destination; /**< */ } /** Opcode for xcb_xfixes_translate_region. */ enum XCB_XFIXES_TRANSLATE_REGION = 17; /** * @brief xcb_xfixes_translate_region_request_t **/ struct xcb_xfixes_translate_region_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_region_t region; /**< */ short dx; /**< */ short dy; /**< */ } /** Opcode for xcb_xfixes_region_extents. */ enum XCB_XFIXES_REGION_EXTENTS = 18; /** * @brief xcb_xfixes_region_extents_request_t **/ struct xcb_xfixes_region_extents_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_region_t source; /**< */ xcb_xfixes_region_t destination; /**< */ } /** * @brief xcb_xfixes_fetch_region_cookie_t **/ struct xcb_xfixes_fetch_region_cookie_t { uint sequence; /**< */ } /** Opcode for xcb_xfixes_fetch_region. */ enum XCB_XFIXES_FETCH_REGION = 19; /** * @brief xcb_xfixes_fetch_region_request_t **/ struct xcb_xfixes_fetch_region_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_region_t region; /**< */ } /** * @brief xcb_xfixes_fetch_region_reply_t **/ struct xcb_xfixes_fetch_region_reply_t { ubyte response_type; /**< */ ubyte pad0; /**< */ ushort sequence; /**< */ uint length; /**< */ xcb_rectangle_t extents; /**< */ ubyte[16] pad1; /**< */ } /** Opcode for xcb_xfixes_set_gc_clip_region. */ enum XCB_XFIXES_SET_GC_CLIP_REGION = 20; /** * @brief xcb_xfixes_set_gc_clip_region_request_t **/ struct xcb_xfixes_set_gc_clip_region_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_gcontext_t gc; /**< */ xcb_xfixes_region_t region; /**< */ short x_origin; /**< */ short y_origin; /**< */ } /** Opcode for xcb_xfixes_set_window_shape_region. */ enum XCB_XFIXES_SET_WINDOW_SHAPE_REGION = 21; /** * @brief xcb_xfixes_set_window_shape_region_request_t **/ struct xcb_xfixes_set_window_shape_region_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_window_t dest; /**< */ xcb_shape_kind_t dest_kind; /**< */ ubyte[3] pad0; /**< */ short x_offset; /**< */ short y_offset; /**< */ xcb_xfixes_region_t region; /**< */ } /** Opcode for xcb_xfixes_set_picture_clip_region. */ enum XCB_XFIXES_SET_PICTURE_CLIP_REGION = 22; /** * @brief xcb_xfixes_set_picture_clip_region_request_t **/ struct xcb_xfixes_set_picture_clip_region_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_render_picture_t picture; /**< */ xcb_xfixes_region_t region; /**< */ short x_origin; /**< */ short y_origin; /**< */ } /** Opcode for xcb_xfixes_set_cursor_name. */ enum XCB_XFIXES_SET_CURSOR_NAME = 23; /** * @brief xcb_xfixes_set_cursor_name_request_t **/ struct xcb_xfixes_set_cursor_name_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_cursor_t cursor; /**< */ ushort nbytes; /**< */ ubyte[2] pad0; /**< */ } /** * @brief xcb_xfixes_get_cursor_name_cookie_t **/ struct xcb_xfixes_get_cursor_name_cookie_t { uint sequence; /**< */ } /** Opcode for xcb_xfixes_get_cursor_name. */ enum XCB_XFIXES_GET_CURSOR_NAME = 24; /** * @brief xcb_xfixes_get_cursor_name_request_t **/ struct xcb_xfixes_get_cursor_name_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_cursor_t cursor; /**< */ } /** * @brief xcb_xfixes_get_cursor_name_reply_t **/ struct xcb_xfixes_get_cursor_name_reply_t { ubyte response_type; /**< */ ubyte pad0; /**< */ ushort sequence; /**< */ uint length; /**< */ xcb_atom_t atom; /**< */ ushort nbytes; /**< */ ubyte[18] pad1; /**< */ } /** * @brief xcb_xfixes_get_cursor_image_and_name_cookie_t **/ struct xcb_xfixes_get_cursor_image_and_name_cookie_t { uint sequence; /**< */ } /** Opcode for xcb_xfixes_get_cursor_image_and_name. */ enum XCB_XFIXES_GET_CURSOR_IMAGE_AND_NAME = 25; /** * @brief xcb_xfixes_get_cursor_image_and_name_request_t **/ struct xcb_xfixes_get_cursor_image_and_name_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ } /** * @brief xcb_xfixes_get_cursor_image_and_name_reply_t **/ struct xcb_xfixes_get_cursor_image_and_name_reply_t { ubyte response_type; /**< */ ubyte pad0; /**< */ ushort sequence; /**< */ uint length; /**< */ short x; /**< */ short y; /**< */ ushort width; /**< */ ushort height; /**< */ ushort xhot; /**< */ ushort yhot; /**< */ uint cursor_serial; /**< */ xcb_atom_t cursor_atom; /**< */ ushort nbytes; /**< */ ubyte[2] pad1; /**< */ } /** Opcode for xcb_xfixes_change_cursor. */ enum XCB_XFIXES_CHANGE_CURSOR = 26; /** * @brief xcb_xfixes_change_cursor_request_t **/ struct xcb_xfixes_change_cursor_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_cursor_t source; /**< */ xcb_cursor_t destination; /**< */ } /** Opcode for xcb_xfixes_change_cursor_by_name. */ enum XCB_XFIXES_CHANGE_CURSOR_BY_NAME = 27; /** * @brief xcb_xfixes_change_cursor_by_name_request_t **/ struct xcb_xfixes_change_cursor_by_name_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_cursor_t src; /**< */ ushort nbytes; /**< */ ubyte[2] pad0; /**< */ } /** Opcode for xcb_xfixes_expand_region. */ enum XCB_XFIXES_EXPAND_REGION = 28; /** * @brief xcb_xfixes_expand_region_request_t **/ struct xcb_xfixes_expand_region_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_region_t source; /**< */ xcb_xfixes_region_t destination; /**< */ ushort left; /**< */ ushort right; /**< */ ushort top; /**< */ ushort bottom; /**< */ } /** Opcode for xcb_xfixes_hide_cursor. */ enum XCB_XFIXES_HIDE_CURSOR = 29; /** * @brief xcb_xfixes_hide_cursor_request_t **/ struct xcb_xfixes_hide_cursor_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_window_t window; /**< */ } /** Opcode for xcb_xfixes_show_cursor. */ enum XCB_XFIXES_SHOW_CURSOR = 30; /** * @brief xcb_xfixes_show_cursor_request_t **/ struct xcb_xfixes_show_cursor_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_window_t window; /**< */ } alias xcb_xfixes_barrier_t = uint; /** * @brief xcb_xfixes_barrier_iterator_t **/ struct xcb_xfixes_barrier_iterator_t { xcb_xfixes_barrier_t* data; /**< */ int rem; /**< */ int index; /**< */ } enum xcb_xfixes_barrier_directions_t { XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_X = 1, XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_Y = 2, XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_X = 4, XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_Y = 8 } alias XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_X = xcb_xfixes_barrier_directions_t.XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_X; alias XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_Y = xcb_xfixes_barrier_directions_t.XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_Y; alias XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_X = xcb_xfixes_barrier_directions_t.XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_X; alias XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_Y = xcb_xfixes_barrier_directions_t.XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_Y; /** Opcode for xcb_xfixes_create_pointer_barrier. */ enum XCB_XFIXES_CREATE_POINTER_BARRIER = 31; /** * @brief xcb_xfixes_create_pointer_barrier_request_t **/ struct xcb_xfixes_create_pointer_barrier_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_barrier_t barrier; /**< */ xcb_window_t window; /**< */ ushort x1; /**< */ ushort y1; /**< */ ushort x2; /**< */ ushort y2; /**< */ uint directions; /**< */ ubyte[2] pad0; /**< */ ushort num_devices; /**< */ } /** Opcode for xcb_xfixes_delete_pointer_barrier. */ enum XCB_XFIXES_DELETE_POINTER_BARRIER = 32; /** * @brief xcb_xfixes_delete_pointer_barrier_request_t **/ struct xcb_xfixes_delete_pointer_barrier_request_t { ubyte major_opcode; /**< */ ubyte minor_opcode; /**< */ ushort length; /**< */ xcb_xfixes_barrier_t barrier; /**< */ } /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_xfixes_query_version_cookie_t xcb_xfixes_query_version(xcb_connection_t* c /**< */ , uint client_major_version /**< */ , uint client_minor_version /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will cause * a reply to be generated. Any returned error will be * placed in the event queue. */ xcb_xfixes_query_version_cookie_t xcb_xfixes_query_version_unchecked(xcb_connection_t* c /**< */ , uint client_major_version /**< */ , uint client_minor_version /**< */ ); /** * Return the reply * @param c The connection * @param cookie The cookie * @param e The xcb_generic_error_t supplied * * Returns the reply of the request asked by * * The parameter @p e supplied to this function must be NULL if * xcb_xfixes_query_version_unchecked(). is used. * Otherwise, it stores the error if any. * * The returned value must be freed by the caller using free(). */ xcb_xfixes_query_version_reply_t* xcb_xfixes_query_version_reply(xcb_connection_t* c /**< */ , xcb_xfixes_query_version_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_change_save_set_checked(xcb_connection_t* c /**< */ , ubyte mode /**< */ , ubyte target /**< */ , ubyte map /**< */ , xcb_window_t window /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_change_save_set(xcb_connection_t* c /**< */ , ubyte mode /**< */ , ubyte target /**< */ , ubyte map /**< */ , xcb_window_t window /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_select_selection_input_checked(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ , xcb_atom_t selection /**< */ , uint event_mask /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_select_selection_input(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ , xcb_atom_t selection /**< */ , uint event_mask /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_select_cursor_input_checked(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ , uint event_mask /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_select_cursor_input(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ , uint event_mask /**< */ ); int xcb_xfixes_get_cursor_image_sizeof(const void* _buffer /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_xfixes_get_cursor_image_cookie_t xcb_xfixes_get_cursor_image(xcb_connection_t* c /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will cause * a reply to be generated. Any returned error will be * placed in the event queue. */ xcb_xfixes_get_cursor_image_cookie_t xcb_xfixes_get_cursor_image_unchecked(xcb_connection_t* c /**< */ ); uint* xcb_xfixes_get_cursor_image_cursor_image(const xcb_xfixes_get_cursor_image_reply_t* R /**< */ ); int xcb_xfixes_get_cursor_image_cursor_image_length(const xcb_xfixes_get_cursor_image_reply_t* R /**< */ ); xcb_generic_iterator_t xcb_xfixes_get_cursor_image_cursor_image_end(const xcb_xfixes_get_cursor_image_reply_t* R /**< */ ); /** * Return the reply * @param c The connection * @param cookie The cookie * @param e The xcb_generic_error_t supplied * * Returns the reply of the request asked by * * The parameter @p e supplied to this function must be NULL if * xcb_xfixes_get_cursor_image_unchecked(). is used. * Otherwise, it stores the error if any. * * The returned value must be freed by the caller using free(). */ xcb_xfixes_get_cursor_image_reply_t* xcb_xfixes_get_cursor_image_reply(xcb_connection_t* c /**< */ , xcb_xfixes_get_cursor_image_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); /** * Get the next element of the iterator * @param i Pointer to a xcb_xfixes_region_iterator_t * * Get the next element in the iterator. The member rem is * decreased by one. The member data points to the next * element. The member index is increased by sizeof(xcb_xfixes_region_t) */ void xcb_xfixes_region_next(xcb_xfixes_region_iterator_t* i /**< */ ); /** * Return the iterator pointing to the last element * @param i An xcb_xfixes_region_iterator_t * @return The iterator pointing to the last element * * Set the current element in the iterator to the last element. * The member rem is set to 0. The member data points to the * last element. */ xcb_generic_iterator_t xcb_xfixes_region_end(xcb_xfixes_region_iterator_t i /**< */ ); int xcb_xfixes_create_region_sizeof(const void* _buffer /**< */ , uint rectangles_len /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_create_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , uint rectangles_len /**< */ , const xcb_rectangle_t* rectangles /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_create_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , uint rectangles_len /**< */ , const xcb_rectangle_t* rectangles /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_create_region_from_bitmap_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , xcb_pixmap_t bitmap /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_create_region_from_bitmap(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , xcb_pixmap_t bitmap /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_create_region_from_window_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , xcb_window_t window /**< */ , xcb_shape_kind_t kind /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_create_region_from_window(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , xcb_window_t window /**< */ , xcb_shape_kind_t kind /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_create_region_from_gc_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , xcb_gcontext_t gc /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_create_region_from_gc(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , xcb_gcontext_t gc /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_create_region_from_picture_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , xcb_render_picture_t picture /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_create_region_from_picture(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , xcb_render_picture_t picture /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_destroy_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_destroy_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ ); int xcb_xfixes_set_region_sizeof(const void* _buffer /**< */ , uint rectangles_len /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_set_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , uint rectangles_len /**< */ , const xcb_rectangle_t* rectangles /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_set_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , uint rectangles_len /**< */ , const xcb_rectangle_t* rectangles /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_copy_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source /**< */ , xcb_xfixes_region_t destination /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_copy_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source /**< */ , xcb_xfixes_region_t destination /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_union_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source1 /**< */ , xcb_xfixes_region_t source2 /**< */ , xcb_xfixes_region_t destination /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_union_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source1 /**< */ , xcb_xfixes_region_t source2 /**< */ , xcb_xfixes_region_t destination /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_intersect_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source1 /**< */ , xcb_xfixes_region_t source2 /**< */ , xcb_xfixes_region_t destination /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_intersect_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source1 /**< */ , xcb_xfixes_region_t source2 /**< */ , xcb_xfixes_region_t destination /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_subtract_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source1 /**< */ , xcb_xfixes_region_t source2 /**< */ , xcb_xfixes_region_t destination /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_subtract_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source1 /**< */ , xcb_xfixes_region_t source2 /**< */ , xcb_xfixes_region_t destination /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_invert_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source /**< */ , xcb_rectangle_t bounds /**< */ , xcb_xfixes_region_t destination /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_invert_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source /**< */ , xcb_rectangle_t bounds /**< */ , xcb_xfixes_region_t destination /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_translate_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , short dx /**< */ , short dy /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_translate_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , short dx /**< */ , short dy /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_region_extents_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source /**< */ , xcb_xfixes_region_t destination /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_region_extents(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source /**< */ , xcb_xfixes_region_t destination /**< */ ); int xcb_xfixes_fetch_region_sizeof(const void* _buffer /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_xfixes_fetch_region_cookie_t xcb_xfixes_fetch_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will cause * a reply to be generated. Any returned error will be * placed in the event queue. */ xcb_xfixes_fetch_region_cookie_t xcb_xfixes_fetch_region_unchecked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ ); xcb_rectangle_t* xcb_xfixes_fetch_region_rectangles(const xcb_xfixes_fetch_region_reply_t* R /**< */ ); int xcb_xfixes_fetch_region_rectangles_length(const xcb_xfixes_fetch_region_reply_t* R /**< */ ); xcb_rectangle_iterator_t xcb_xfixes_fetch_region_rectangles_iterator(const xcb_xfixes_fetch_region_reply_t* R /**< */ ); /** * Return the reply * @param c The connection * @param cookie The cookie * @param e The xcb_generic_error_t supplied * * Returns the reply of the request asked by * * The parameter @p e supplied to this function must be NULL if * xcb_xfixes_fetch_region_unchecked(). is used. * Otherwise, it stores the error if any. * * The returned value must be freed by the caller using free(). */ xcb_xfixes_fetch_region_reply_t* xcb_xfixes_fetch_region_reply(xcb_connection_t* c /**< */ , xcb_xfixes_fetch_region_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_set_gc_clip_region_checked(xcb_connection_t* c /**< */ , xcb_gcontext_t gc /**< */ , xcb_xfixes_region_t region /**< */ , short x_origin /**< */ , short y_origin /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_set_gc_clip_region(xcb_connection_t* c /**< */ , xcb_gcontext_t gc /**< */ , xcb_xfixes_region_t region /**< */ , short x_origin /**< */ , short y_origin /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_set_window_shape_region_checked(xcb_connection_t* c /**< */ , xcb_window_t dest /**< */ , xcb_shape_kind_t dest_kind /**< */ , short x_offset /**< */ , short y_offset /**< */ , xcb_xfixes_region_t region /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_set_window_shape_region(xcb_connection_t* c /**< */ , xcb_window_t dest /**< */ , xcb_shape_kind_t dest_kind /**< */ , short x_offset /**< */ , short y_offset /**< */ , xcb_xfixes_region_t region /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_set_picture_clip_region_checked(xcb_connection_t* c /**< */ , xcb_render_picture_t picture /**< */ , xcb_xfixes_region_t region /**< */ , short x_origin /**< */ , short y_origin /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_set_picture_clip_region(xcb_connection_t* c /**< */ , xcb_render_picture_t picture /**< */ , xcb_xfixes_region_t region /**< */ , short x_origin /**< */ , short y_origin /**< */ ); int xcb_xfixes_set_cursor_name_sizeof(const void* _buffer /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_set_cursor_name_checked(xcb_connection_t* c /**< */ , xcb_cursor_t cursor /**< */ , ushort nbytes /**< */ , const char* name /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_set_cursor_name(xcb_connection_t* c /**< */ , xcb_cursor_t cursor /**< */ , ushort nbytes /**< */ , const char* name /**< */ ); int xcb_xfixes_get_cursor_name_sizeof(const void* _buffer /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_xfixes_get_cursor_name_cookie_t xcb_xfixes_get_cursor_name(xcb_connection_t* c /**< */ , xcb_cursor_t cursor /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will cause * a reply to be generated. Any returned error will be * placed in the event queue. */ xcb_xfixes_get_cursor_name_cookie_t xcb_xfixes_get_cursor_name_unchecked(xcb_connection_t* c /**< */ , xcb_cursor_t cursor /**< */ ); char* xcb_xfixes_get_cursor_name_name(const xcb_xfixes_get_cursor_name_reply_t* R /**< */ ); int xcb_xfixes_get_cursor_name_name_length(const xcb_xfixes_get_cursor_name_reply_t* R /**< */ ); xcb_generic_iterator_t xcb_xfixes_get_cursor_name_name_end(const xcb_xfixes_get_cursor_name_reply_t* R /**< */ ); /** * Return the reply * @param c The connection * @param cookie The cookie * @param e The xcb_generic_error_t supplied * * Returns the reply of the request asked by * * The parameter @p e supplied to this function must be NULL if * xcb_xfixes_get_cursor_name_unchecked(). is used. * Otherwise, it stores the error if any. * * The returned value must be freed by the caller using free(). */ xcb_xfixes_get_cursor_name_reply_t* xcb_xfixes_get_cursor_name_reply(xcb_connection_t* c /**< */ , xcb_xfixes_get_cursor_name_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); int xcb_xfixes_get_cursor_image_and_name_sizeof(const void* _buffer /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_xfixes_get_cursor_image_and_name_cookie_t xcb_xfixes_get_cursor_image_and_name(xcb_connection_t* c /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will cause * a reply to be generated. Any returned error will be * placed in the event queue. */ xcb_xfixes_get_cursor_image_and_name_cookie_t xcb_xfixes_get_cursor_image_and_name_unchecked(xcb_connection_t* c /**< */ ); char* xcb_xfixes_get_cursor_image_and_name_name(const xcb_xfixes_get_cursor_image_and_name_reply_t* R /**< */ ); int xcb_xfixes_get_cursor_image_and_name_name_length(const xcb_xfixes_get_cursor_image_and_name_reply_t* R /**< */ ); xcb_generic_iterator_t xcb_xfixes_get_cursor_image_and_name_name_end(const xcb_xfixes_get_cursor_image_and_name_reply_t* R /**< */ ); uint* xcb_xfixes_get_cursor_image_and_name_cursor_image(const xcb_xfixes_get_cursor_image_and_name_reply_t* R /**< */ ); int xcb_xfixes_get_cursor_image_and_name_cursor_image_length(const xcb_xfixes_get_cursor_image_and_name_reply_t* R /**< */ ); xcb_generic_iterator_t xcb_xfixes_get_cursor_image_and_name_cursor_image_end(const xcb_xfixes_get_cursor_image_and_name_reply_t* R /**< */ ); /** * Return the reply * @param c The connection * @param cookie The cookie * @param e The xcb_generic_error_t supplied * * Returns the reply of the request asked by * * The parameter @p e supplied to this function must be NULL if * xcb_xfixes_get_cursor_image_and_name_unchecked(). is used. * Otherwise, it stores the error if any. * * The returned value must be freed by the caller using free(). */ xcb_xfixes_get_cursor_image_and_name_reply_t* xcb_xfixes_get_cursor_image_and_name_reply(xcb_connection_t* c /**< */ , xcb_xfixes_get_cursor_image_and_name_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_change_cursor_checked(xcb_connection_t* c /**< */ , xcb_cursor_t source /**< */ , xcb_cursor_t destination /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_change_cursor(xcb_connection_t* c /**< */ , xcb_cursor_t source /**< */ , xcb_cursor_t destination /**< */ ); int xcb_xfixes_change_cursor_by_name_sizeof(const void* _buffer /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_change_cursor_by_name_checked(xcb_connection_t* c /**< */ , xcb_cursor_t src /**< */ , ushort nbytes /**< */ , const char* name /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_change_cursor_by_name(xcb_connection_t* c /**< */ , xcb_cursor_t src /**< */ , ushort nbytes /**< */ , const char* name /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_expand_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source /**< */ , xcb_xfixes_region_t destination /**< */ , ushort left /**< */ , ushort right /**< */ , ushort top /**< */ , ushort bottom /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_expand_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source /**< */ , xcb_xfixes_region_t destination /**< */ , ushort left /**< */ , ushort right /**< */ , ushort top /**< */ , ushort bottom /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_hide_cursor_checked(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_hide_cursor(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_show_cursor_checked(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_show_cursor(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ ); /** * Get the next element of the iterator * @param i Pointer to a xcb_xfixes_barrier_iterator_t * * Get the next element in the iterator. The member rem is * decreased by one. The member data points to the next * element. The member index is increased by sizeof(xcb_xfixes_barrier_t) */ void xcb_xfixes_barrier_next(xcb_xfixes_barrier_iterator_t* i /**< */ ); /** * Return the iterator pointing to the last element * @param i An xcb_xfixes_barrier_iterator_t * @return The iterator pointing to the last element * * Set the current element in the iterator to the last element. * The member rem is set to 0. The member data points to the * last element. */ xcb_generic_iterator_t xcb_xfixes_barrier_end(xcb_xfixes_barrier_iterator_t i /**< */ ); int xcb_xfixes_create_pointer_barrier_sizeof(const void* _buffer /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_create_pointer_barrier_checked(xcb_connection_t* c /**< */ , xcb_xfixes_barrier_t barrier /**< */ , xcb_window_t window /**< */ , ushort x1 /**< */ , ushort y1 /**< */ , ushort x2 /**< */ , ushort y2 /**< */ , uint directions /**< */ , ushort num_devices /**< */ , const ushort* devices /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_create_pointer_barrier(xcb_connection_t* c /**< */ , xcb_xfixes_barrier_t barrier /**< */ , xcb_window_t window /**< */ , ushort x1 /**< */ , ushort y1 /**< */ , ushort x2 /**< */ , ushort y2 /**< */ , uint directions /**< */ , ushort num_devices /**< */ , const ushort* devices /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * * This form can be used only if the request will not cause * a reply to be generated. Any returned error will be * saved for handling by xcb_request_check(). */ xcb_void_cookie_t xcb_xfixes_delete_pointer_barrier_checked(xcb_connection_t* c /**< */ , xcb_xfixes_barrier_t barrier /**< */ ); /** * * @param c The connection * @return A cookie * * Delivers a request to the X server. * */ xcb_void_cookie_t xcb_xfixes_delete_pointer_barrier(xcb_connection_t* c /**< */ , xcb_xfixes_barrier_t barrier /**< */ ); /** * @} */
D
////////////////////////////////////////////////////////////////////////// // ZS_AssessFighter // ================ // Wird ausschließlich aus: // // - B_AssessFighter // // heraus aufgerufen. Dort wurde festgestellt, daß die gezogene // Waffe des SCs eine Bedrohung darstellt! Diese Funktion muß also // auf diese echte Bedrohung reagieren. Was passiert: // // 1. schon mal vom SC besiegt -> Zurückweichen // 2. NSC ist WACHE oder BOSS -> Aufforderung Waffe/Magie wegzustecken // 3. NSC ist ARBEITER // - stärker als SC -> Aufforderung Waffe/Magie // wegzustecken // - schwächer als SC -> Zurückweichen // // Bei Aufforderung, Waffe/Zauber wegzustecken, passiert folgendes: // // - Nahkampfwaffe: weggesteckt -> B_AssessRemoveWeapon // aus HAI_DIST_MELEE raus -> Abbruch // - Fernkampfwaffe: weggesteckt -> B_AssessRemoveWeapon // aus HAI_DIST_RANGED raus -> Abbruch // - Zauberspruch: weggesteckt -> B_AssessRemoveWeapon // aus HAI_DIST_RANGED raus -> Abbruch // - Wartezeit abgelaufen -> ZS_Attack ////////////////////////////////////////////////////////////////////////// func void ZS_AssessFighter () { PrintDebugNpc (PD_ZS_FRAME, "ZS_AssessFighter"); PrintGlobals (PD_ZS_CHECK); //-------- Wahrnehmungen -------- Npc_PercEnable (self, PERC_ASSESSENEMY , B_AssessEnemy ); Npc_PercEnable (self, PERC_ASSESSDAMAGE , ZS_ReactToDamage ); Npc_PercEnable (self, PERC_ASSESSMAGIC , B_AssessMagic ); Npc_PercEnable (self, PERC_ASSESSCASTER , B_AssessCaster ); Npc_PercEnable (self, PERC_ASSESSTHREAT , B_AssessThreat ); Npc_PercEnable (self, PERC_ASSESSMURDER , ZS_AssessMurder ); Npc_PercEnable (self, PERC_ASSESSDEFEAT , ZS_AssessDefeat ); Npc_PercEnable (self, PERC_ASSESSFIGHTSOUND , B_AssessFightSound ); Npc_PercEnable (self, PERC_ASSESSQUIETSOUND , B_AssessQuietSound ); Npc_PercEnable (self, PERC_ASSESSREMOVEWEAPON , B_AssessRemoveWeapon); self.aivar[AIV_FIGHTSPEACHFLAG] = 0; C_ZSInit (); B_FullStop (self); B_WhirlAround (self, other); //-------- Wird der NSC zurückweichen ? -------- if ( self.aivar[AIV_WASDEFEATEDBYSC] || // Wurde NSC schon mal besiegt, oder... (C_NpcIsWorker(self) && C_AmIWeaker(self, other)) ) // ...ist NSC ein schwächerer WORKER ? { PrintDebugNpc (PD_ZS_CHECK, "...NSC wird zurückweichen!"); if (Npc_GetPermAttitude(self,other)!=ATT_HOSTILE) { B_SayOverlay (self, other, "$YESYES"); }; if (Npc_GetDistToNpc(self,other)<HAI_DIST_MELEE) { AI_Dodge (self); }; if (Npc_GetPermAttitude(self,other)!=ATT_HOSTILE) { AI_Wait (self, 3); }; AI_ContinueRoutine(self); } //-------- ...KEIN Zurückweichen ! -------- else { Npc_PercEnable (self, PERC_ASSESSREMOVEWEAPON , B_AssessRemoveWeapon); // Wahrnehmung erst hier einschalten, damit ein zurückweichender NSC nicht auf ein schnelles Waffenwegstecken des SCs reagiert! Npc_PercEnable (self, PERC_ASSESSTHREAT , B_AssessThreat ); // dito B_DrawWeapon (self, other); }; }; func int ZS_AssessFighter_Loop () { PrintDebugNpc (PD_ZS_LOOP, "ZS_AssessFighter_Loop"); // EXIT LOOP IF... // ------ Spieler geht weg ------ if (Npc_GetDistToNpc(self,other) > 1000) { Npc_ClearAIQueue(self); AI_RemoveWeapon (self); C_StopLookAt (self); return LOOP_END; }; // ------ Spieler hat keine Waffe mehr ------ if (Npc_IsInFightMode(other, FMODE_NONE)) { Npc_ClearAIQueue(self); B_Say (self, other, "$WISEMOVE"); AI_RemoveWeapon (self); C_StopLookAt (self); return LOOP_END; }; //-------- Cutscene-Teilnehmer wird das Waffenziehen verzeihen -------- if (Npc_IsInCutscene(other)) // Befindet sich der "Waffenzieher" in einer Cutscene? { PrintDebugNpc (PD_ZS_CHECK, "...Waffenziehender in Cutscene!" ); return LOOP_END; //... dann verzeihen wir ihm natürlich -> Abbruch des Checks }; //######## SC in Nahkampfdistanz ! ######## if (Npc_GetDistToNpc(self,other) < HAI_DIST_ABORT_MELEE) { PrintDebugNpc (PD_ZS_CHECK, "...SC ist in Nahkampfdistanz!"); //---- Passender Kommentar ! ---- if (self.aivar[AIV_FIGHTSPEACHFLAG]==0) { if (Npc_IsInFightMode(other, FMODE_MAGIC)) { B_Say (self, other, "$STOPMAGIC"); } else { B_Say (self, other, "$WEAPONDOWN"); }; self.aivar [AIV_FIGHTSPEACHFLAG] = 1; }; //---- Wartezeit abgelaufen ? ---- if (Npc_GetStateTime(self) > 5) { PrintDebugNpc (PD_ZS_CHECK, "...Zeit abgelaufen!"); AI_StartState (self, ZS_AssessFighterWait, 0 , ""); }; } //######## SC in Fernkampfdistanz ! ######## else if (Npc_GetDistToNpc(self,other) < HAI_DIST_ABORT_RANGED) { PrintDebugNpc (PD_ZS_CHECK, "...SC ist in Fernkampfdistanz!"); if (!Npc_IsInFightMode(other, FMODE_FAR) && !Npc_IsInFightMode(other, FMODE_MAGIC) ) { return LOOP_END; }; } //######## SC ist ganz weit weg ! ######## else { PrintDebugNpc (PD_ZS_CHECK, "...SC ist außerhalb Fernkampfdistanz!"); return LOOP_END; }; //######## Schleife von vorne beginnen ######## B_SmartTurnToNpc (self, other); AI_Wait (self, 0.3); return LOOP_CONTINUE; }; func void ZS_AssessFighter_End () { //-------- SC hat sich entweder entfernt oder die Waffe weggesteckt ! -------- PrintDebugNpc (PD_ZS_FRAME, "ZS_AssessFighter_End" ); B_RemoveWeapon (self); }; ////////////////////////////////////////////////////////////////////////// // ZS_AssessFighterWait // ==================== // Wird von ZS_AssessFighter aufgerufen, falls der NSC dem SC eine // Chance gibt, die Waffe bzw. den Zauberspruch wegzustecken. ////////////////////////////////////////////////////////////////////////// func void ZS_AssessFighterWait () { PrintDebugNpc (PD_ZS_FRAME, "ZS_AssessFighterWait" ); //-------- Wahrnehmungen -------- Npc_PercEnable (self, PERC_ASSESSENEMY , B_AssessEnemy ); Npc_PercEnable (self, PERC_ASSESSDAMAGE , ZS_ReactToDamage ); Npc_PercEnable (self, PERC_ASSESSMAGIC , B_AssessMagic ); Npc_PercEnable (self, PERC_ASSESSCASTER , B_AssessCaster ); Npc_PercEnable (self, PERC_ASSESSTHREAT , B_AssessThreat ); Npc_PercEnable (self, PERC_ASSESSMURDER , ZS_AssessMurder ); Npc_PercEnable (self, PERC_ASSESSDEFEAT , ZS_AssessDefeat ); Npc_PercEnable (self, PERC_ASSESSFIGHTSOUND , B_AssessFightSound ); Npc_PercEnable (self, PERC_ASSESSREMOVEWEAPON , B_AssessRemoveWeapon); if (Npc_IsInFightMode(other, FMODE_MAGIC)) { B_Say (self, other, "$ISAIDSTOPMAGIC"); } else { B_Say (self, other, "$ISAIDWEAPONDOWN"); }; }; func int ZS_AssessFighterWait_Loop () { PrintDebugNpc (PD_ZS_LOOP, "ZS_AssessFighterWait_Loop" ); // EXIT LOOP IF... // ------ Spieler geht weg ------ if (Npc_GetDistToNpc(self,other) > 1000) { Npc_ClearAIQueue(self); AI_RemoveWeapon (self); C_StopLookAt (self); return LOOP_END; }; // ------ Spieler hat keine Waffe mehr ------ if (Npc_IsInFightMode(other, FMODE_NONE)) { Npc_ClearAIQueue(self); B_Say (self, other, "$WISEMOVE"); AI_RemoveWeapon (self); C_StopLookAt (self); return LOOP_END; }; //-------- Cutscene-Teilnehmer wird das Waffenziehen verzeihen -------- if (Npc_IsInCutscene(other)) // Befindet sich der "Waffenzieher" in einer Cutscene? { PrintDebugNpc (PD_ZS_CHECK, "...Waffenziehender in Cutscene!" ); return LOOP_END; //... dann verzeihen wir ihm natürlich -> Abbruch des Checks }; //-------- Hat sich der SC mittlerweile entfernt ? -------- if (Npc_GetDistToNpc(self,other) > HAI_DIST_ABORT_MELEE) { PrintDebugNpc (PD_ZS_CHECK, "...SC ist außerhalb Nahkampfreichweite!"); B_AssessRemoveWeapon(); }; //-------- Ist die Wartezeit abgelaufen ? -------- if (Npc_GetStateTime(self) > 5) { PrintDebugNpc (PD_ZS_CHECK, "...Wartezeit abgelaufen!"); Npc_SetTempAttitude (self, ATT_HOSTILE); Npc_SetTarget (self, other); B_SayOverlay (self, other, "$YOUASKEDFORIT"); AI_StartState (self, ZS_Attack, 0, ""); }; //-------- Schleife fortsetzen ! -------- AI_Wait (self, 1); return LOOP_CONTINUE; }; func void ZS_AssessFighterWait_End () { PrintDebugNpc (PD_ZS_FRAME, "ZS_AssessFighterWait_End"); };
D
/* * hunt-time: A time library for D programming language. * * Copyright (C) 2015-2018 HuntLabs * * Website: https://www.huntlabs.net/ * * Licensed under the Apache-2.0 License. * */ module hunt.time.chrono.ThaiBuddhistEra; // import hunt.time.temporal.ChronoField; // import hunt.time.Exceptions; // import hunt.time.format.DateTimeFormatterBuilder; // import hunt.time.format.TextStyle; // // import hunt.time.util.Locale; // /** // * An era _in the Thai Buddhist calendar system. // * !(p) // * The Thai Buddhist calendar system has two eras. // * The current era, for years from 1 onwards, is known as the 'Buddhist' era. // * All previous years, zero or earlier _in the proleptic count or one and greater // * _in the year-of-era count, are part of the 'Before Buddhist' era. // * // * <table class="striped" style="text-align:left"> // * <caption style="display:none">Buddhist years and eras</caption> // * !(thead) // * !(tr) // * <th scope="col">year-of-era</th> // * <th scope="col">era</th> // * <th scope="col">proleptic-year</th> // * <th scope="col">ISO proleptic-year</th> // * </tr> // * </thead> // * !(tbody) // * !(tr) // * !(td)2</td>!(td)BE</td><th scope="row">2</th>!(td)-542</td> // * </tr> // * !(tr) // * !(td)1</td>!(td)BE</td><th scope="row">1</th>!(td)-543</td> // * </tr> // * !(tr) // * !(td)1</td>!(td)BEFORE_BE</td><th scope="row">0</th>!(td)-544</td> // * </tr> // * !(tr) // * !(td)2</td>!(td)BEFORE_BE</td><th scope="row">-1</th>!(td)-545</td> // * </tr> // * </tbody> // * </table> // * !(p) // * !(b)Do not use {@code ordinal()} to obtain the numeric representation of {@code ThaiBuddhistEra}. // * Use {@code getValue()} instead.</b> // * // * @implSpec // * This is an immutable and thread-safe enum. // * // * @since 1.8 // */ // public class ThaiBuddhistEra : Era { // /** // * The singleton instance for the era before the current one, 'Before Buddhist Era', // * which has the numeric value 0. // */ // ThaiBuddhistEra BEFORE_BE = new ThaiBuddhistEra(); // /** // * The singleton instance for the current era, 'Buddhist Era', // * which has the numeric value 1. // */ // ThaiBuddhistEra BE = new ThaiBuddhistEra(); // //----------------------------------------------------------------------- // /** // * Obtains an instance of {@code ThaiBuddhistEra} from an {@code int} value. // * !(p) // * {@code ThaiBuddhistEra} is an enum representing the Thai Buddhist eras of BEFORE_BE/BE. // * This factory allows the enum to be obtained from the {@code int} value. // * // * @param thaiBuddhistEra the era to represent, from 0 to 1 // * @return the BuddhistEra singleton, never null // * @throws DateTimeException if the era is invalid // */ // public static ThaiBuddhistEra of(int thaiBuddhistEra) { // switch (thaiBuddhistEra) { // case 0: // return BEFORE_BE; // case 1: // return BE; // default: // throw new DateTimeException("Invalid era: " ~ thaiBuddhistEra); // } // } // //----------------------------------------------------------------------- // /** // * Gets the numeric era {@code int} value. // * !(p) // * The era BEFORE_BE has the value 0, while the era BE has the value 1. // * // * @return the era value, from 0 (BEFORE_BE) to 1 (BE) // */ // override // public int getValue() { // return ordinal(); // } // /** // * {@inheritDoc} // * // * @param style {@inheritDoc} // * @param locale {@inheritDoc} // */ // override // public string getDisplayName(TextStyle style, Locale locale) { // return new DateTimeFormatterBuilder() // .appendText(ERA, style) // .toFormatter(locale) // .withChronology(ThaiBuddhistChronology.INSTANCE) // .format(this == BE ? ThaiBuddhistDate.of(1, 1, 1) : ThaiBuddhistDate.of(0, 1, 1)); // } // }
D
/** Modules contains basic structures for job manager ex. FiberData, Counter. It also contains structures/functions which extens functionality of job manager like: - UniversalJob - job with parameters and return value - UniversalJobGroup - group of jobs - multithreated - makes foreach execute in parallel */ module job_manager.manager_utils; import core.atomic; import core.stdc.string : memset,memcpy; import core.thread : Fiber; import std.experimental.allocator; import std.experimental.allocator.mallocator; import std.format : format; import std.traits : Parameters; import job_manager.manager; uint jobManagerThreadNum;//thread local var alias JobDelegate=void delegate(); struct FiberData{ Fiber fiber; uint threadNum; } FiberData getFiberData(){ Fiber fiber=Fiber.getThis(); assert(fiber !is null); return FiberData(fiber,jobManagerThreadNum); } struct Counter{ align (64)shared uint count; align (64)FiberData waitingFiber; this(uint count){ this.count=count; } void decrement(){ assert(atomicLoad(count)<9000); assert(waitingFiber.fiber !is null); atomicOp!"-="(count, 1); bool ok=cas(&count,0,10000); if(ok){ jobManager.addFiber(waitingFiber); //waitingFiber.fiber=null;//makes deadlock maybe atomicStore would help or it shows some bug?? //atomicStore(waitingFiber.fiber,null);//has to be shared ignore for now } } } struct UniversalJob(Delegate){ alias UnDelegate=UniversalDelegate!Delegate; UnDelegate unDel;//user function to run, with parameters and return value JobDelegate runDel;//wraper to decrement counter on end Counter* counter; void runWithCounter(){ assert(counter !is null); unDel.callAndSaveReturn(); static if(multithreatedManagerON)counter.decrement(); } //had to be allcoated my Mallocator void runAndDeleteMyself(){ unDel.callAndSaveReturn(); Mallocator.instance.dispose(&this); } void initialize(Delegate del,Parameters!(Delegate) args){ unDel=makeUniversalDelegate!(Delegate)(del,args); //runDel=&run; } } //It is faster to add array of jobs struct UniversalJobGroup(Delegate){ alias UnJob=UniversalJob!(Delegate); Counter counter; uint jobsNum; uint jobsAdded; UnJob[] unJobs; JobDelegate*[] dels; this(uint jobsNum){ this.jobsNum=jobsNum; } void add(Delegate del,Parameters!(Delegate) args){ assert(unJobs.length>0 && jobsAdded<jobsNum); unJobs[jobsAdded].initialize(del,args); jobsAdded++; } //returns range so you can allocate it as you want //but remember: that data is stack allocated auto wait(){ assert(jobsAdded==jobsNum); counter.count=jobsNum; counter.waitingFiber=getFiberData(); foreach(i,ref unJob;unJobs){ unJob.counter=&counter; unJob.runDel=&unJob.runWithCounter; dels[i]=&unJob.runDel; } jobManager.addJobsAndYield(dels); import std.algorithm:map; static if(UnJob.UnDelegate.hasReturn){ return unJobs.map!(a => a.unDel.result); } } //used by getStackMemory void mallocatorAllocate(){ unJobs=Mallocator.instance.makeArray!(UnJob)(jobsNum); dels=Mallocator.instance.makeArray!(JobDelegate*)(jobsNum); } void mallocatorDeallocate(){ memset(unJobs.ptr,0,UnJob.sizeof*jobsNum); memset(dels.ptr,0,(JobDelegate*).sizeof*jobsNum); Mallocator.instance.dispose(unJobs); Mallocator.instance.dispose(dels); } } //Like getStackMemoryAlloca bt without Alloca //I dont see performance difference beetwen alloca and malloc //Use thi sbecause it certainly dont have any aligment problems string getStackMemory(string varName){ string code=format(" %s.mallocatorAllocate(); scope(exit){ %s.mallocatorDeallocate(); } ",varName,varName); return code; } ///allocates memory for UniversalJobGroup ///has to be a mixin because the code has to be executed in calling scope (alloca) string getStackMemoryAlloca(string varName){ string code=format( " import core.stdc.stdlib:alloca; bool ___useStack%s=%s.jobsNum<200; //TODO aligment? //if stack not used alloca 0 :] %s.unJobs=(cast(%s.UnJob*) alloca(%s.UnJob.sizeof *%s.jobsNum*___useStack%s))[0..%s.jobsNum*___useStack%s]; %s.dels =(cast(JobDelegate**)alloca((JobDelegate*).sizeof*%s.jobsNum*___useStack%s))[0..%s.jobsNum*___useStack%s]; if(!___useStack%s){ %s.mallocatorAllocate(); } scope(exit){if(!___useStack%s){ %s.mallocatorDeallocate(); }} ",varName,varName,varName,varName, varName,varName,varName,varName, varName,varName,varName,varName, varName,varName,varName,varName, varName,varName); return code; } auto callAndWait(Delegate)(Delegate del,Parameters!(Delegate) args){ UniversalJob!(Delegate) unJob; unJob.initialize(del,args); unJob.runDel=&unJob.runWithCounter; Counter counter; counter.count=1; counter.waitingFiber=getFiberData(); unJob.counter=&counter; jobManager.addJobAndYield(&unJob.runDel); static if(unJob.unDel.hasReturn){ return unJob.unDel.result; } } auto callAndNothing(Delegate)(Delegate del,Parameters!(Delegate) args){ UniversalJob!(Delegate)* unJob=Mallocator.instance.make!(UniversalJob!(Delegate)); unJob.initialize(del,args); unJob.runDel=&unJob.runAndDeleteMyself; jobManager.addJob(&unJob.runDel); static if(unJob.unDel.hasReturn){ return unJob.unDel.result; } } auto multithreated(T)(T[] slice){ static struct Tmp { import std.traits:ParameterTypeTuple; T[] array; int opApply(Dg)(scope Dg dg) { static assert (ParameterTypeTuple!Dg.length == 1 || ParameterTypeTuple!Dg.length == 2); enum hasI=ParameterTypeTuple!Dg.length == 2; static if(hasI)alias IType=ParameterTypeTuple!Dg[0]; static struct NoGcDelegateHelper{ Dg del; T[] arr; static if(hasI)IType iStart; void call() { foreach(int i,ref element;arr){ static if(hasI){ IType iSend=iStart+i; int result=del(iSend,element); }else{ int result=del(element); } assert(result==0,"Cant use break, continue, itp in multithreated foreach"); } } } enum partsNum=16;//constatnt number == easy usage of stack if(array.length<partsNum){ foreach(int i,ref element;array){ static if(hasI){ int result=dg(i,element); }else{ int result=dg(element); } assert(result==0,"Cant use break, continue, itp in multithreated foreach"); } }else{ NoGcDelegateHelper[partsNum] helpers; uint step=cast(uint)array.length/partsNum; alias ddd=void delegate(); UniversalJobGroup!ddd group=UniversalJobGroup!ddd(partsNum); mixin(getStackMemory("group")); foreach(int i;0..partsNum-1){ helpers[i].del=dg; helpers[i].arr=array[i*step..(i+1)*step]; static if(hasI)helpers[i].iStart=i*step; group.add(&helpers[i].call); } helpers[partsNum-1].del=dg; helpers[partsNum-1].arr=array[(partsNum-1)*step..array.length]; static if(hasI)helpers[partsNum-1].iStart=(partsNum-1)*step; group.add(&helpers[partsNum-1].call); group.wait(); } return 0; } } Tmp tmp; tmp.array=slice; return tmp; }
D
INSTANCE Info_Mod_Vanas_Hi (C_INFO) { npc = Mod_1537_WKR_Vanas_NW; nr = 1; condition = Info_Mod_Vanas_Hi_Condition; information = Info_Mod_Vanas_Hi_Info; permanent = 0; important = 0; description = "Hallo, ich bringe dir Erz und Sumpfkraut von Engardo."; }; FUNC INT Info_Mod_Vanas_Hi_Condition() { if (Mod_SLD_Engardo == 1) && (Npc_HasItems(hero, ItMi_Nugget) >= 12) && (Npc_HasItems(hero, ItMi_Joint) >= 12) { return 1; }; }; FUNC VOID Info_Mod_Vanas_Hi_Info() { AI_Output(hero, self, "Info_Mod_Vanas_Hi_15_00"); //Hallo, ich bringe dir Erz und Sumpfkraut von Engardo. B_ShowGivenThings ("12 Erzbrocken und 12 Stängel Sumpfkraut gegeben"); Npc_RemoveInvItems (hero, ItMi_Nugget, 12); Npc_RemoveInvItems (hero, ItMi_Joint, 12); AI_Output(self, hero, "Info_Mod_Vanas_Hi_06_01"); //Ahh, ausgezeichnet. Meinen Vorrat an magischer Energie habe ich kürzlich aufgebraucht. Das kommt mir sehr gelegen. AI_Output(hero, self, "Info_Mod_Vanas_Hi_15_02"); //Hast du was für mich? AI_Output(self, hero, "Info_Mod_Vanas_Hi_06_03"); //Ohh, ja, die Bezahlung. B_GiveInvItems (self, hero, ItMi_VanasPaket, 1); AI_PlayAni (self, "T_SEARCH"); AI_Output(self, hero, "Info_Mod_Vanas_Hi_06_04"); //(etwas leiser) Ich habe gerade leider nicht alles dabei. Fünf Stück Käse, eine Eispfeilspruchrolle und sechs Bier fehlen im Packet. AI_Output(self, hero, "Info_Mod_Vanas_Hi_06_05"); //Aber für jemanden, der in der Kunst Erz zu Schmieden begabt ist, habe ich vielleicht etwas Interessantes für dich. Info_ClearChoices (Info_Mod_Vanas_Hi); Info_AddChoice (Info_Mod_Vanas_Hi, "Das weckt meine Neugierde. Worum geht’s?", Info_Mod_Vanas_Hi_B); Info_AddChoice (Info_Mod_Vanas_Hi, "Kein Interesse. Gib mir einen Teil des Erzes und des Sumpfkrauts zurück.", Info_Mod_Vanas_Hi_A); }; FUNC VOID Info_Mod_Vanas_Hi_B() { AI_Output(hero, self, "Info_Mod_Vanas_Hi_B_15_00"); //Das weckt meine Neugierde. Worum geht’s? AI_Output(self, hero, "Info_Mod_Vanas_Hi_B_06_01"); //Mein Wasserkriegerkollege Everaldo hat einen Schmiedeplan der alten Kultur übersetzt. Geh zu ihm und sag ihm, dass du von mir kommst. Info_ClearChoices (Info_Mod_Vanas_Hi); Mod_SLD_Engardo = 2; B_LogEntry (TOPIC_MOD_SLD_ENGARDO, "Vanas hatte nicht alle Waren dabei. Dafür hat der Wasserkrieger Everaldo einen interessanten Schmiedebauplan für mich."); }; FUNC VOID Info_Mod_Vanas_Hi_A() { AI_Output(hero, self, "Info_Mod_Vanas_Hi_A_15_00"); //Kein Interesse. Gib mir einen Teil des Erzes und des Sumpfkrauts zurück. AI_Output(self, hero, "Info_Mod_Vanas_Hi_A_06_01"); //Schade. Da entgeht dir was. Hier hast du je vier Erz und Sumpfkraut zurück. B_ShowGivenThings ("4 Erzbrocken und 4 Stängel Sumpfkraut erhalten"); CreateInvItems (hero, ItMi_Nugget, 4); CreateInvItems (hero, ItMi_Joint, 4); Info_ClearChoices (Info_Mod_Vanas_Hi); Mod_SLD_Engardo = 3; B_LogEntry (TOPIC_MOD_SLD_ENGARDO, "Vanas hatte nicht alle Waren dabei. Ich habe einen Teil des Sumpfkrauts und des Erzes zurückgefordert und auch bekommen."); }; INSTANCE Info_Mod_Vanas_Pickpocket (C_INFO) { npc = Mod_1537_WKR_Vanas_NW; nr = 1; condition = Info_Mod_Vanas_Pickpocket_Condition; information = Info_Mod_Vanas_Pickpocket_Info; permanent = 1; important = 0; description = Pickpocket_90; }; FUNC INT Info_Mod_Vanas_Pickpocket_Condition() { C_Beklauen (65, ItMi_Gold, 22); }; FUNC VOID Info_Mod_Vanas_Pickpocket_Info() { Info_ClearChoices (Info_Mod_Vanas_Pickpocket); Info_AddChoice (Info_Mod_Vanas_Pickpocket, DIALOG_BACK, Info_Mod_Vanas_Pickpocket_BACK); Info_AddChoice (Info_Mod_Vanas_Pickpocket, DIALOG_PICKPOCKET, Info_Mod_Vanas_Pickpocket_DoIt); }; FUNC VOID Info_Mod_Vanas_Pickpocket_BACK() { Info_ClearChoices (Info_Mod_Vanas_Pickpocket); }; FUNC VOID Info_Mod_Vanas_Pickpocket_DoIt() { if (B_Beklauen() == TRUE) { Info_ClearChoices (Info_Mod_Vanas_Pickpocket); } else { Info_ClearChoices (Info_Mod_Vanas_Pickpocket); Info_AddChoice (Info_Mod_Vanas_Pickpocket, DIALOG_PP_BESCHIMPFEN, Info_Mod_Vanas_Pickpocket_Beschimpfen); Info_AddChoice (Info_Mod_Vanas_Pickpocket, DIALOG_PP_BESTECHUNG, Info_Mod_Vanas_Pickpocket_Bestechung); Info_AddChoice (Info_Mod_Vanas_Pickpocket, DIALOG_PP_HERAUSREDEN, Info_Mod_Vanas_Pickpocket_Herausreden); }; }; FUNC VOID Info_Mod_Vanas_Pickpocket_Beschimpfen() { B_Say (hero, self, "$PICKPOCKET_BESCHIMPFEN"); B_Say (self, hero, "$DIRTYTHIEF"); Info_ClearChoices (Info_Mod_Vanas_Pickpocket); AI_StopProcessInfos (self); B_Attack (self, hero, AR_Theft, 1); }; FUNC VOID Info_Mod_Vanas_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_Vanas_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_Vanas_Pickpocket); AI_StopProcessInfos (self); }; }; FUNC VOID Info_Mod_Vanas_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_Vanas_Pickpocket); } else { B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_02"); }; }; INSTANCE Info_Mod_Vanas_EXIT (C_INFO) { npc = Mod_1537_WKR_Vanas_NW; nr = 1; condition = Info_Mod_Vanas_EXIT_Condition; information = Info_Mod_Vanas_EXIT_Info; permanent = 1; important = 0; description = DIALOG_ENDE; }; FUNC INT Info_Mod_Vanas_EXIT_Condition() { return 1; }; FUNC VOID Info_Mod_Vanas_EXIT_Info() { AI_StopProcessInfos (self); };
D
/Users/DanielChang/Documents/Vapor/Hello/.build/debug/Core.build/Byte/Bytes+Base64.swift.o : /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Array.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Bool+String.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Box.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Collection+Safe.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Dispatch.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/DispatchTime+Utilities.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Equatable.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Extractable.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/FileProtocol.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Lock.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/PercentEncoding.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Portal.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Result.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/RFC1123.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Semaphore.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Sequence.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/StaticDataBuffer.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Strand.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/String+CaseInsensitiveCompare.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/String.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/UnsignedInteger.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/Byte+Random.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/Byte.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/ByteAliases.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/Bytes+Base64.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/Bytes.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/BytesConvertible.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/BytesSlice+PatternMatching.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/libc.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/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/Core.build/Bytes+Base64~partial.swiftmodule : /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Array.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Bool+String.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Box.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Collection+Safe.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Dispatch.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/DispatchTime+Utilities.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Equatable.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Extractable.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/FileProtocol.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Lock.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/PercentEncoding.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Portal.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Result.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/RFC1123.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Semaphore.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Sequence.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/StaticDataBuffer.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Strand.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/String+CaseInsensitiveCompare.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/String.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/UnsignedInteger.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/Byte+Random.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/Byte.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/ByteAliases.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/Bytes+Base64.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/Bytes.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/BytesConvertible.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/BytesSlice+PatternMatching.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/libc.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/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/Core.build/Bytes+Base64~partial.swiftdoc : /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Array.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Bool+String.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Box.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Collection+Safe.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Dispatch.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/DispatchTime+Utilities.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Equatable.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Extractable.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/FileProtocol.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Lock.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/PercentEncoding.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Portal.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Result.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/RFC1123.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Semaphore.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Sequence.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/StaticDataBuffer.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Strand.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/String+CaseInsensitiveCompare.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/String.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/UnsignedInteger.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/Byte+Random.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/Byte.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/ByteAliases.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/Bytes+Base64.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/Bytes.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/BytesConvertible.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Core-1.1.1/Sources/Core/Byte/BytesSlice+PatternMatching.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/libc.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/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule
D
instance GRD_260_Drake (Npc_Default) { //-------- primary data -------- name = "Drake"; npctype = npctype_main; guild = GIL_GRD; level = 4; voice = 11; id = 260; //-------- abilities -------- attribute[ATR_STRENGTH] = 51; attribute[ATR_DEXTERITY] = 35; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX]= 220; attribute[ATR_HITPOINTS] = 220; //-------- visuals -------- // animations Mdl_SetVisual (self,"HUMANS.MDS"); Mdl_ApplyOverlayMds (self,"Humans_Militia.mds"); // body mesh ,bdytex,skin,head mesh ,1headtex,teethtex,ruestung Mdl_SetVisualBody (self,"hum_body_Naked0",0,3,"Hum_Head_Fighter",110 ,1,GRD_ARMOR_M); B_Scale (self); Mdl_SetModelFatness(self,0); Npc_SetAivar(self,AIV_IMPORTANT, TRUE); fight_tactic = FAI_HUMAN_STRONG; //-------- Talente -------- Npc_SetTalentSkill (self,NPC_TALENT_1H,2); Npc_SetTalentSkill (self,NPC_TALENT_2H,1); Npc_SetTalentSkill (self,NPC_TALENT_CROSSBOW,1); //-------- inventory -------- EquipItem (self,GRD_MW_02); EquipItem (self,ItRw_Crossbow_01); CreateInvItems (self,ItAmBolt,30); CreateInvItem (self,ItFoCheese); CreateInvItems (self,ItMiNugget,10); CreateInvItem (self,ItLsTorch); //-------------Daily Routine------------- /*B_InitNPCAddins(self);*/ daily_routine = Rtn_start_260; }; FUNC VOID Rtn_start_260 () { TA_Guard (00,00,08,00,"OM_CAVE1_12"); TA_Guard (08,00,24,00,"OM_CAVE1_12"); };
D
import std.stdio; void main(){ string file = __FILE__; }
D
module basic; class Bar : Foo { } class Foo : Foo0 { void virtualMethod(); abstract int abstractMethod(string s) { return cast(int) s.length; } } import std.container.array; import std.typecons; package interface Foo0 : Foo1, Foo2 { string stringMethod(); Tuple!(int, string, Array!bool)[][] advancedMethod(int a, int b, string c); void normalMethod(); int attributeSuffixMethod() nothrow @property @nogc; private { void middleprivate1(); void middleprivate2(); } extern(C) @property @nogc ref immutable int attributePrefixMethod() const; final void alreadyImplementedMethod() {} deprecated("foo") void deprecatedMethod() {} static void staticMethod() {} protected void protectedMethod(); private: void barfoo(); } interface Foo1 { void hello(); int nothrowMethod() nothrow; int nogcMethod() @nogc; nothrow int prefixNothrowMethod(); @nogc int prefixNogcMethod(); } interface Foo2 { void world(); }
D
/** Helper functions for working with $(I C strings). This module is intended to provide fast, safe and garbage free way to work with $(I C strings). Copyright: Denis Shelomovskij 2013-2014 License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Denis Shelomovskij Macros: COREREF = $(HTTP dlang.org/phobos/core_$1.html#$2, $(D core.$1.$2)) */ module std.internal.cstring; /// unittest { version(Posix) { import core.stdc.stdlib : free; import core.sys.posix.stdlib : setenv; import std.exception : enforce; void setEnvironment(in char[] name, in char[] value) { enforce(setenv(name.tempCString(), value.tempCString(), 1) != -1); } } version(Windows) { import core.sys.windows.windows : SetEnvironmentVariableW; import std.exception : enforce; void setEnvironment(in char[] name, in char[] value) { enforce(SetEnvironmentVariableW(name.tempCStringW(), value.tempCStringW())); } } } import std.traits; import std.range; version(unittest) @property inout(C)[] asArray(C)(inout C* cstr) pure nothrow @nogc @trusted if (isSomeChar!C) in { assert(cstr); } body { size_t length = 0; while (cstr[length]) ++length; return cstr[0 .. length]; } /** Creates temporary 0-terminated $(I C string) with copy of passed text. Params: To = character type of returned C string str = string or input range to be converted Returns: The value returned is implicitly convertible to $(D const To*) and has two properties: $(D ptr) to access $(I C string) as $(D const To*) and $(D buffPtr) to access it as $(D To*). The temporary $(I C string) is valid unless returned object is destroyed. Thus if returned object is assigned to a variable the temporary is valid unless the variable goes out of scope. If returned object isn't assigned to a variable it will be destroyed at the end of creating primary expression. Implementation_note: For small strings tempCString will use stack allocated buffer, for large strings (approximately 250 characters and more) it will allocate temporary one using C's $(D malloc). Note: This function is intended to be used in function call expression (like $(D strlen(str.tempCString()))). Incorrect usage of this function may lead to memory corruption. See $(RED WARNING) in $(B Examples) section. */ auto tempCString(To = char, From)(From str) if (isSomeChar!To && (isInputRange!From || isSomeString!From) && isSomeChar!(ElementEncodingType!From)) { alias CF = Unqual!(ElementEncodingType!From); enum To* useStack = () @trusted { return cast(To*)size_t.max; }(); static struct Res { @trusted: nothrow @nogc: @disable this(); @disable this(this); alias ptr this; @property inout(To)* buffPtr() inout pure { return _ptr == useStack ? _buff.ptr : _ptr; } @property const(To)* ptr() const pure { return buffPtr; } ~this() { if (_ptr != useStack) { import core.stdc.stdlib : free; free(_ptr); } } private: To* _ptr; version (unittest) { enum buffLength = 16 / To.sizeof; // smaller size to trigger reallocations } else { enum buffLength = 256 / To.sizeof; // production size } To[256 / To.sizeof] _buff; // the 'small string optimization' static Res trustedVoidInit() { Res res = void; return res; } } Res res = Res.trustedVoidInit(); // expensive to fill _buff[] // Note: res._ptr can't point to res._buff as structs are movable. To[] p = res._buff[0 .. Res.buffLength]; size_t i; static To[] trustedRealloc(To[] buf, size_t i, To* resptr, size_t strLength) @trusted @nogc nothrow { pragma(inline, false); // because it's rarely called import core.exception : onOutOfMemoryError; import core.stdc.string : memcpy; import core.stdc.stdlib : malloc, realloc; auto ptr = buf.ptr; auto len = buf.length; if (len >= size_t.max / (2 * To.sizeof)) onOutOfMemoryError(); size_t newlen = len * 3 / 2; if (ptr == resptr) { if (newlen <= strLength) newlen = strLength + 1; // +1 for terminating 0 ptr = cast(To*)malloc(newlen * To.sizeof); if (!ptr) onOutOfMemoryError(); memcpy(ptr, resptr, i * To.sizeof); } else { ptr = cast(To*)realloc(ptr, newlen * To.sizeof); if (!ptr) onOutOfMemoryError(); } return ptr[0 .. newlen]; } size_t strLength; static if (hasLength!From) { strLength = str.length; } import std.utf : byUTF; static if (isSomeString!From) { auto r = cast(const(CF)[])str; // because inout(CF) causes problems with byUTF if (r is null) // Bugzilla 14980 { res._ptr = null; return res; } } else alias r = str; foreach (const c; byUTF!(Unqual!To)(r)) { if (i + 1 == p.length) { p = trustedRealloc(p, i, res._buff.ptr, strLength); } p[i++] = c; } p[i] = 0; res._ptr = (p.ptr == res._buff.ptr) ? useStack : p.ptr; return res; } /// nothrow @nogc unittest { import core.stdc.string; string str = "abc"; // Intended usage assert(strlen(str.tempCString()) == 3); // Correct usage auto tmp = str.tempCString(); assert(strlen(tmp) == 3); // or `tmp.ptr`, or `tmp.buffPtr` // $(RED WARNING): $(RED Incorrect usage) auto pInvalid1 = str.tempCString().ptr; const char* pInvalid2 = str.tempCString(); // Both pointers refer to invalid memory here as // returned values aren't assigned to a variable and // both primary expressions are ended. } @safe nothrow @nogc unittest { assert("abc".tempCString().asArray == "abc"); assert("abc"d.tempCString().ptr.asArray == "abc"); assert("abc".tempCString!wchar().buffPtr.asArray == "abc"w); import std.utf : byChar, byWchar; char[300] abc = 'a'; assert(tempCString(abc[].byChar).buffPtr.asArray == abc); assert(tempCString(abc[].byWchar).buffPtr.asArray == abc); } // Bugzilla 14980 nothrow @nogc unittest { const(char[]) str = null; auto res = tempCString(str); const char* ptr = res; assert(ptr is null); } version(Windows) alias tempCStringW = tempCString!(wchar, const(char)[]);
D
/** * Copyright: Copyright (c) 2013 Jacob Carlborg. All rights reserved. * Authors: Juan Manuel * Version: Initial created: Apr 14, 2013 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) */ module tests.CustomWithString; import orange.serialization.Serializer; import orange.serialization.archives.XmlArchive; import orange.test.UnitTester; import tests.Util; Serializer serializer; XmlArchive!(char) archive; class Foo { int a; string b; void toData (Serializer serializer, Serializer.Data key) { i++; serializer.serialize(a, "x"); serializer.serialize(b, "y"); } void fromData (Serializer serializer, Serializer.Data key) { i++; a = serializer.deserialize!(int)("x"); b = serializer.deserialize!(string)("y"); } } Foo foo; int i; unittest { archive = new XmlArchive!(char); serializer = new Serializer(archive); foo = new Foo; foo.a = 3; foo.b = "a string"; i = 3; describe("serialize object using custom serialization methods") in { it("should return a custom serialized object") in { auto expected = q"xml <?xml version="1.0" encoding="UTF-8"?> <archive version="1.0.0" type="org.dsource.orange.xml"> <data> <object runtimeType="tests.CustomWithString.Foo" type="tests.CustomWithString.Foo" key="0" id="0"> <int key="x" id="1">3</int> <string type="immutable(char)" length="8" key="y" id="2">a string</string> </object> </data> </archive> xml"; serializer.serialize(foo); assert(expected.equalToXml(archive.data)); }; }; describe("deserialize object using custom serialization methods") in { it("should deserialize the string field properly") in { auto f = serializer.deserialize!(Foo)(archive.untypedData); assert(foo.a == f.a); assert(foo.b == f.b); assert(i == 5); }; }; }
D
; Copyright (C) 2008 The Android Open Source Project ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; http://www.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writing, software ; distributed under the License is distributed on an "AS IS" BASIS, ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ; See the License for the specific language governing permissions and ; limitations under the License. .source T_rsub_int_lit8_9.java .class public dot.junit.opcodes.rsub_int_lit8.d.T_rsub_int_lit8_9 .super java/lang/Object .method public <init>()V .limit regs 1 invoke-direct {v0}, java/lang/Object/<init>()V return-void .end method .method public run(D)I .limit regs 4 rsub-int/lit8 v0, v2, 10 return v0 .end method
D
module save; public import save.ColonySave, save.GameSave, save.ShipSave, save.StationSave, save.WorldSave, save.SaveData;
D
/** * This file is part of DCD, a development tool for the D programming language. * Copyright (C) 2014 Brian Schott * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ module dsymbol.scope_; import dsymbol.symbol; import dsymbol.import_; import dsymbol.builtin.names; import containers.ttree; import containers.unrolledlist; import std.algorithm : canFind, any; import std.experimental.logger; import std.experimental.allocator.gc_allocator : GCAllocator; /** * Contains symbols and supports lookup of symbols by cursor position. */ struct Scope { @disable this(this); @disable this(); /** * Params: * begin = the beginning byte index * end = the ending byte index */ this (uint begin, uint end) { this.startLocation = begin; this.endLocation = end; } ~this() { foreach (child; children[]) typeid(Scope).destroy(child); foreach (symbol; _symbols) { if (symbol.owned) typeid(DSymbol).destroy(symbol.ptr); } } /** * Params: * cursorPosition = the cursor position in bytes * Returns: * the innermost scope that contains the given cursor position */ Scope* getScopeByCursor(size_t cursorPosition) return pure @nogc { if (cursorPosition < startLocation) return null; if (cursorPosition > endLocation) return null; foreach (child; children[]) { auto childScope = child.getScopeByCursor(cursorPosition); if (childScope !is null) return childScope; } return cast(typeof(return)) &this; } /** * Params: * cursorPosition = the cursor position in bytes * Returns: * all symbols in the scope containing the cursor position, as well as * the symbols in parent scopes of that scope. */ DSymbol*[] getSymbolsInCursorScope(size_t cursorPosition) { import std.array : array; import std.algorithm.iteration : map; auto s = getScopeByCursor(cursorPosition); if (s is null) return null; UnrolledList!(DSymbol*) retVal; Scope* sc = s; while (sc !is null) { foreach (item; sc._symbols[]) { if (item.ptr.kind == CompletionKind.withSymbol) { if (item.ptr.type !is null) foreach (i; item.ptr.type.opSlice()) retVal.insert(i); } else if (item.ptr.type !is null && item.ptr.kind == CompletionKind.importSymbol) { if (item.ptr.qualifier != SymbolQualifier.selectiveImport) { foreach (i; item.ptr.type.opSlice()) retVal.insert(i); } else retVal.insert(item.ptr.type); } else retVal.insert(item.ptr); } sc = sc.parent; } return array(retVal[]); } /** * Params: * name = the symbol name to search for * Returns: * all symbols in this scope or parent scopes with the given name */ inout(DSymbol)*[] getSymbolsByName(istring name) inout { import std.array : array, appender; import std.algorithm.iteration : map; DSymbol s = DSymbol(name); auto er = _symbols.equalRange(SymbolOwnership(&s)); if (!er.empty) return cast(typeof(return)) array(er.map!(a => a.ptr)); // Check symbols from "with" statement DSymbol ir2 = DSymbol(WITH_SYMBOL_NAME); auto r2 = _symbols.equalRange(SymbolOwnership(&ir2)); if (!r2.empty) { auto app = appender!(DSymbol*[])(); foreach (e; r2) { if (e.type is null) continue; foreach (withSymbol; e.type.getPartsByName(s.name)) app.put(cast(DSymbol*) withSymbol); } if (app.data.length > 0) return cast(typeof(return)) app.data; } if (name != CONSTRUCTOR_SYMBOL_NAME && name != DESTRUCTOR_SYMBOL_NAME && name != UNITTEST_SYMBOL_NAME && name != THIS_SYMBOL_NAME) { // Check imported symbols DSymbol ir = DSymbol(IMPORT_SYMBOL_NAME); auto app = appender!(DSymbol*[])(); foreach (e; _symbols.equalRange(SymbolOwnership(&ir))) { if (e.type is null) continue; if (e.qualifier == SymbolQualifier.selectiveImport && e.type.name == name) app.put(cast(DSymbol*) e.type); else foreach (importedSymbol; e.type.getPartsByName(s.name)) app.put(cast(DSymbol*) importedSymbol); } if (app.data.length > 0) return cast(typeof(return)) app.data; } if (parent is null) return []; return parent.getSymbolsByName(name); } /** * Params: * name = the symbol name to search for * cursorPosition = the cursor position in bytes * Returns: * all symbols with the given name in the scope containing the cursor * and its parent scopes */ DSymbol*[] getSymbolsByNameAndCursor(istring name, size_t cursorPosition) { auto s = getScopeByCursor(cursorPosition); if (s is null) return []; return s.getSymbolsByName(name); } DSymbol* getFirstSymbolByNameAndCursor(istring name, size_t cursorPosition) { auto s = getSymbolsByNameAndCursor(name, cursorPosition); return s.length > 0 ? s[0] : null; } /** * Returns an array of symbols that are present at global scope */ inout(DSymbol)*[] getSymbolsAtGlobalScope(istring name) inout { if (parent !is null) return parent.getSymbolsAtGlobalScope(name); return getSymbolsByName(name); } bool hasSymbolRecursive(const(DSymbol)* symbol) const { return _symbols[].canFind!(a => a == symbol) || children[].any!(a => a.hasSymbolRecursive(symbol)); } /// The scope that contains this one Scope* parent; /// Child scopes alias ChildrenAllocator = GCAllocator; // NOTE using `Mallocator` here fails when analysing Phobos alias Children = UnrolledList!(Scope*, ChildrenAllocator); Children children; /// Start location of this scope in bytes uint startLocation; /// End location of this scope in bytes uint endLocation; auto symbols() @property { return _symbols[]; } /** * Adds the given symbol to this scope. * Params: * symbol = the symbol to add * owns = if true, the symbol's destructor will be called when this * scope's destructor is called. */ void addSymbol(DSymbol* symbol, bool owns) { assert(symbol !is null); _symbols.insert(SymbolOwnership(symbol, owns)); } private: /// Symbols contained in this scope TTree!(SymbolOwnership, GCAllocator, true, "a.opCmp(b) < 0") _symbols; // NOTE using `Mallocator` here fails when analysing Phobos }
D
/Users/oyo02699/apps/easycrm/easycrm-api/target/rls/debug/deps/chrono-2092b52fe256423e.rmeta: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/lib.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/sys.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/sys/unix.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/div.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/offset/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/offset/fixed.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/offset/local.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/offset/utc.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/naive/date.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/naive/datetime.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/naive/internals.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/naive/isoweek.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/naive/time.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/date.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/datetime.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/format/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/format/parsed.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/format/parse.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/format/scan.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/format/strftime.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/round.rs /Users/oyo02699/apps/easycrm/easycrm-api/target/rls/debug/deps/chrono-2092b52fe256423e.d: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/lib.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/sys.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/sys/unix.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/div.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/offset/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/offset/fixed.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/offset/local.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/offset/utc.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/naive/date.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/naive/datetime.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/naive/internals.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/naive/isoweek.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/naive/time.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/date.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/datetime.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/format/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/format/parsed.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/format/parse.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/format/scan.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/format/strftime.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/round.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/lib.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/sys.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/sys/unix.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/div.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/offset/mod.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/offset/fixed.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/offset/local.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/offset/utc.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/naive/date.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/naive/datetime.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/naive/internals.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/naive/isoweek.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/naive/time.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/date.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/datetime.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/format/mod.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/format/parsed.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/format/parse.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/format/scan.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/format/strftime.rs: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/round.rs:
D
// PERMUTE_ARGS: // EXTRA_FILES: imports/test25a.d imports/test25b.d import imports.test25a, imports.test25b; import core.stdc.stdio; void main() { printf("hello\n"); }
D
/Users/rossroberts/Exercism/rust/reverse-string/target/debug/deps/reverse_string-b4de27e6b12b8581: tests/reverse-string.rs /Users/rossroberts/Exercism/rust/reverse-string/target/debug/deps/reverse_string-b4de27e6b12b8581.d: tests/reverse-string.rs tests/reverse-string.rs:
D
/Users/summer/Documents/EECS_498/Project/build/Seeing-Behind-Alpha.build/Debug-iphonesimulator/Seeing-Behind-Alpha.build/Objects-normal/x86_64/LoadController.o : /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/ViewControllerII.swift /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/AppDelegate.swift /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/LoadController.swift /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/MenuController.swift /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/summer/Documents/EECS_498/Project/build/Debug-iphonesimulator/MjpegStreamingKit.framework/Modules/MjpegStreamingKit.swiftmodule/x86_64.swiftmodule /Users/summer/Documents/EECS_498/Project/Carthage/Build/iOS/NVActivityIndicatorView.framework/Modules/NVActivityIndicatorView.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/libssh2.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSH.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSFTP.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSFTPFile.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHChannelDelegate.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHSessionDelegate.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHConfig.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHHostConfig.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHChannel.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHSession.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/libssh2_sftp.h /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/Seeing-Behind-Alpha-Bridging-Header.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHLogger.h /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/OpenCVWrapper.h /Users/summer/Documents/EECS_498/Project/build/Debug-iphonesimulator/MjpegStreamingKit.framework/Headers/MjpegStreamingKit-Swift.h /Users/summer/Documents/EECS_498/Project/Carthage/Build/iOS/NVActivityIndicatorView.framework/Headers/NVActivityIndicatorView-Swift.h /Users/summer/Documents/EECS_498/Project/build/Debug-iphonesimulator/MjpegStreamingKit.framework/Headers/MjpegStreamingKit.h /Users/summer/Documents/EECS_498/Project/Carthage/Build/iOS/NVActivityIndicatorView.framework/Headers/NVActivityIndicatorView.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Modules/module.modulemap /Users/summer/Documents/EECS_498/Project/NMSSH.framework/Modules/module.modulemap /Users/summer/Documents/EECS_498/Project/build/Debug-iphonesimulator/MjpegStreamingKit.framework/Modules/module.modulemap /Users/summer/Documents/EECS_498/Project/Carthage/Build/iOS/NVActivityIndicatorView.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Users/summer/Documents/EECS_498/Project/build/Seeing-Behind-Alpha.build/Debug-iphonesimulator/Seeing-Behind-Alpha.build/Objects-normal/x86_64/LoadController~partial.swiftmodule : /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/ViewControllerII.swift /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/AppDelegate.swift /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/LoadController.swift /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/MenuController.swift /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/summer/Documents/EECS_498/Project/build/Debug-iphonesimulator/MjpegStreamingKit.framework/Modules/MjpegStreamingKit.swiftmodule/x86_64.swiftmodule /Users/summer/Documents/EECS_498/Project/Carthage/Build/iOS/NVActivityIndicatorView.framework/Modules/NVActivityIndicatorView.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/libssh2.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSH.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSFTP.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSFTPFile.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHChannelDelegate.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHSessionDelegate.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHConfig.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHHostConfig.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHChannel.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHSession.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/libssh2_sftp.h /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/Seeing-Behind-Alpha-Bridging-Header.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHLogger.h /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/OpenCVWrapper.h /Users/summer/Documents/EECS_498/Project/build/Debug-iphonesimulator/MjpegStreamingKit.framework/Headers/MjpegStreamingKit-Swift.h /Users/summer/Documents/EECS_498/Project/Carthage/Build/iOS/NVActivityIndicatorView.framework/Headers/NVActivityIndicatorView-Swift.h /Users/summer/Documents/EECS_498/Project/build/Debug-iphonesimulator/MjpegStreamingKit.framework/Headers/MjpegStreamingKit.h /Users/summer/Documents/EECS_498/Project/Carthage/Build/iOS/NVActivityIndicatorView.framework/Headers/NVActivityIndicatorView.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Modules/module.modulemap /Users/summer/Documents/EECS_498/Project/NMSSH.framework/Modules/module.modulemap /Users/summer/Documents/EECS_498/Project/build/Debug-iphonesimulator/MjpegStreamingKit.framework/Modules/module.modulemap /Users/summer/Documents/EECS_498/Project/Carthage/Build/iOS/NVActivityIndicatorView.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Users/summer/Documents/EECS_498/Project/build/Seeing-Behind-Alpha.build/Debug-iphonesimulator/Seeing-Behind-Alpha.build/Objects-normal/x86_64/LoadController~partial.swiftdoc : /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/ViewControllerII.swift /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/AppDelegate.swift /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/LoadController.swift /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/MenuController.swift /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/summer/Documents/EECS_498/Project/build/Debug-iphonesimulator/MjpegStreamingKit.framework/Modules/MjpegStreamingKit.swiftmodule/x86_64.swiftmodule /Users/summer/Documents/EECS_498/Project/Carthage/Build/iOS/NVActivityIndicatorView.framework/Modules/NVActivityIndicatorView.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/libssh2.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSH.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSFTP.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSFTPFile.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHChannelDelegate.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHSessionDelegate.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHConfig.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHHostConfig.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHChannel.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHSession.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/libssh2_sftp.h /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/Seeing-Behind-Alpha-Bridging-Header.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Headers/NMSSHLogger.h /Users/summer/Documents/EECS_498/Project/Seeing-Behind-Alpha/OpenCVWrapper.h /Users/summer/Documents/EECS_498/Project/build/Debug-iphonesimulator/MjpegStreamingKit.framework/Headers/MjpegStreamingKit-Swift.h /Users/summer/Documents/EECS_498/Project/Carthage/Build/iOS/NVActivityIndicatorView.framework/Headers/NVActivityIndicatorView-Swift.h /Users/summer/Documents/EECS_498/Project/build/Debug-iphonesimulator/MjpegStreamingKit.framework/Headers/MjpegStreamingKit.h /Users/summer/Documents/EECS_498/Project/Carthage/Build/iOS/NVActivityIndicatorView.framework/Headers/NVActivityIndicatorView.h /Users/summer/Documents/EECS_498/Project/./NMSSH.framework/Modules/module.modulemap /Users/summer/Documents/EECS_498/Project/NMSSH.framework/Modules/module.modulemap /Users/summer/Documents/EECS_498/Project/build/Debug-iphonesimulator/MjpegStreamingKit.framework/Modules/module.modulemap /Users/summer/Documents/EECS_498/Project/Carthage/Build/iOS/NVActivityIndicatorView.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes
D
/* # What Is This: programming samples # Author: Makoto Takeshita <takeshita.sample@gmail.com> # URL: http://simplesandsamples.com # Version: UNBORN # # Usage: # 1. git clone https://github.com/takeshitamakoto/sss.git # 2. change the directory name to easy-to-use name. (e.g. sss -> sample) # 3. open sss/src/filename when you need any help. # */ import std.stdio; import std.string; void main() { auto cnt=0; string line; readln(); while( !stdin.eof() ){ readln(); cnt++; } writeln(cnt); }
D
/** * Implementation of associative arrays. * * Copyright: Copyright Digital Mars 2000 - 2015. * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). * Authors: Martin Nowak */ module rt.aaA; /// AA version for debuggers, bump whenever changing the layout extern (C) immutable int _aaVersion = 1; import core.memory : GC; // grow threshold private enum GROW_NUM = 4; private enum GROW_DEN = 5; // shrink threshold private enum SHRINK_NUM = 1; private enum SHRINK_DEN = 8; // grow factor private enum GROW_FAC = 4; // growing the AA doubles it's size, so the shrink threshold must be // smaller than half the grow threshold to have a hysteresis static assert(GROW_FAC * SHRINK_NUM * GROW_DEN < GROW_NUM * SHRINK_DEN); // initial load factor (for literals), mean of both thresholds private enum INIT_NUM = (GROW_DEN * SHRINK_NUM + GROW_NUM * SHRINK_DEN) / 2; private enum INIT_DEN = SHRINK_DEN * GROW_DEN; private enum INIT_NUM_BUCKETS = 8; // magic hash constants to distinguish empty, deleted, and filled buckets private enum HASH_EMPTY = 0; private enum HASH_DELETED = 0x1; private enum HASH_FILLED_MARK = size_t(1) << 8 * size_t.sizeof - 1; /// Opaque AA wrapper struct AA { Impl* impl; alias impl this; private @property bool empty() const pure nothrow @nogc { return impl is null || !impl.length; } } private struct Impl { private: this(scope const TypeInfo_AssociativeArray ti, size_t sz = INIT_NUM_BUCKETS) { keysz = cast(uint) ti.key.tsize; valsz = cast(uint) ti.value.tsize; buckets = allocBuckets(sz); firstUsed = cast(uint) buckets.length; valoff = cast(uint) talign(keysz, ti.value.talign); import rt.lifetime : hasPostblit, unqualify; if (hasPostblit(unqualify(ti.key))) flags |= Flags.keyHasPostblit; if ((ti.key.flags | ti.value.flags) & 1) flags |= Flags.hasPointers; entryTI = fakeEntryTI(this, ti.key, ti.value); } Bucket[] buckets; uint used; uint deleted; TypeInfo_Struct entryTI; uint firstUsed; immutable uint keysz; immutable uint valsz; immutable uint valoff; Flags flags; enum Flags : ubyte { none = 0x0, keyHasPostblit = 0x1, hasPointers = 0x2, } @property size_t length() const pure nothrow @nogc { assert(used >= deleted); return used - deleted; } @property size_t dim() const pure nothrow @nogc @safe { return buckets.length; } @property size_t mask() const pure nothrow @nogc { return dim - 1; } // find the first slot to insert a value with hash inout(Bucket)* findSlotInsert(size_t hash) inout pure nothrow @nogc { for (size_t i = hash & mask, j = 1;; ++j) { if (!buckets[i].filled) return &buckets[i]; i = (i + j) & mask; } } // lookup a key inout(Bucket)* findSlotLookup(size_t hash, scope const void* pkey, scope const TypeInfo keyti) inout { for (size_t i = hash & mask, j = 1;; ++j) { if (buckets[i].hash == hash && keyti.equals(pkey, buckets[i].entry)) return &buckets[i]; else if (buckets[i].empty) return null; i = (i + j) & mask; } } void grow(scope const TypeInfo keyti) { // If there are so many deleted entries, that growing would push us // below the shrink threshold, we just purge deleted entries instead. if (length * SHRINK_DEN < GROW_FAC * dim * SHRINK_NUM) resize(dim); else resize(GROW_FAC * dim); } void shrink(scope const TypeInfo keyti) { if (dim > INIT_NUM_BUCKETS) resize(dim / GROW_FAC); } void resize(size_t ndim) pure nothrow { auto obuckets = buckets; buckets = allocBuckets(ndim); foreach (ref b; obuckets[firstUsed .. $]) if (b.filled) *findSlotInsert(b.hash) = b; firstUsed = 0; used -= deleted; deleted = 0; GC.free(obuckets.ptr); // safe to free b/c impossible to reference } void clear() pure nothrow { import core.stdc.string : memset; // clear all data, but don't change bucket array length memset(&buckets[firstUsed], 0, (buckets.length - firstUsed) * Bucket.sizeof); deleted = used = 0; firstUsed = cast(uint) dim; } } //============================================================================== // Bucket //------------------------------------------------------------------------------ private struct Bucket { private pure nothrow @nogc: size_t hash; void* entry; @property bool empty() const { return hash == HASH_EMPTY; } @property bool deleted() const { return hash == HASH_DELETED; } @property bool filled() const @safe { return cast(ptrdiff_t) hash < 0; } } Bucket[] allocBuckets(size_t dim) @trusted pure nothrow { enum attr = GC.BlkAttr.NO_INTERIOR; immutable sz = dim * Bucket.sizeof; return (cast(Bucket*) GC.calloc(sz, attr))[0 .. dim]; } //============================================================================== // Entry //------------------------------------------------------------------------------ private void* allocEntry(scope const Impl* aa, scope const void* pkey) { import rt.lifetime : _d_newitemU; import core.stdc.string : memcpy, memset; immutable akeysz = aa.valoff; void* res = void; if (aa.entryTI) res = _d_newitemU(aa.entryTI); else { auto flags = (aa.flags & Impl.Flags.hasPointers) ? 0 : GC.BlkAttr.NO_SCAN; res = GC.malloc(akeysz + aa.valsz, flags); } memcpy(res, pkey, aa.keysz); // copy key memset(res + akeysz, 0, aa.valsz); // zero value return res; } package void entryDtor(void* p, const TypeInfo_Struct sti) { // key and value type info stored after the TypeInfo_Struct by tiEntry() auto sizeti = __traits(classInstanceSize, TypeInfo_Struct); auto extra = cast(const(TypeInfo)*)(cast(void*) sti + sizeti); extra[0].destroy(p); extra[1].destroy(p + talign(extra[0].tsize, extra[1].talign)); } private bool hasDtor(const TypeInfo ti) { import rt.lifetime : unqualify; if (typeid(ti) is typeid(TypeInfo_Struct)) if ((cast(TypeInfo_Struct) cast(void*) ti).xdtor) return true; if (typeid(ti) is typeid(TypeInfo_StaticArray)) return hasDtor(unqualify(ti.next)); return false; } private immutable(void)* getRTInfo(const TypeInfo ti) { // classes are references const isNoClass = ti && typeid(ti) !is typeid(TypeInfo_Class); return isNoClass ? ti.rtInfo() : rtinfoHasPointers; } // build type info for Entry with additional key and value fields TypeInfo_Struct fakeEntryTI(ref Impl aa, const TypeInfo keyti, const TypeInfo valti) { import rt.lifetime : unqualify; auto kti = unqualify(keyti); auto vti = unqualify(valti); // figure out whether RTInfo has to be generated (indicated by rtisize > 0) enum pointersPerWord = 8 * (void*).sizeof * (void*).sizeof; auto rtinfo = rtinfoNoPointers; size_t rtisize = 0; immutable(size_t)* keyinfo = void; immutable(size_t)* valinfo = void; if (aa.flags & Impl.Flags.hasPointers) { // classes are references keyinfo = cast(immutable(size_t)*) getRTInfo(keyti); valinfo = cast(immutable(size_t)*) getRTInfo(valti); if (keyinfo is rtinfoHasPointers && valinfo is rtinfoHasPointers) rtinfo = rtinfoHasPointers; else rtisize = 1 + (aa.valoff + aa.valsz + pointersPerWord - 1) / pointersPerWord; } bool entryHasDtor = hasDtor(kti) || hasDtor(vti); if (rtisize == 0 && !entryHasDtor) return null; // save kti and vti after type info for struct enum sizeti = __traits(classInstanceSize, TypeInfo_Struct); void* p = GC.malloc(sizeti + (2 + rtisize) * (void*).sizeof); import core.stdc.string : memcpy; memcpy(p, typeid(TypeInfo_Struct).initializer().ptr, sizeti); auto ti = cast(TypeInfo_Struct) p; auto extra = cast(TypeInfo*)(p + sizeti); extra[0] = cast() kti; extra[1] = cast() vti; static immutable tiName = __MODULE__ ~ ".Entry!(...)"; ti.name = tiName; ti.m_RTInfo = rtisize > 0 ? rtinfoEntry(aa, keyinfo, valinfo, cast(size_t*)(extra + 2), rtisize) : rtinfo; ti.m_flags = ti.m_RTInfo is rtinfoNoPointers ? cast(TypeInfo_Struct.StructFlags)0 : TypeInfo_Struct.StructFlags.hasPointers; // we don't expect the Entry objects to be used outside of this module, so we have control // over the non-usage of the callback methods and other entries and can keep these null // xtoHash, xopEquals, xopCmp, xtoString and xpostblit immutable entrySize = aa.valoff + aa.valsz; ti.m_init = (cast(ubyte*) null)[0 .. entrySize]; // init length, but not ptr if (entryHasDtor) { // xdtor needs to be built from the dtors of key and value for the GC ti.xdtorti = &entryDtor; ti.m_flags |= TypeInfo_Struct.StructFlags.isDynamicType; } ti.m_align = cast(uint) max(kti.talign, vti.talign); return ti; } // build appropriate RTInfo at runtime immutable(void)* rtinfoEntry(ref Impl aa, immutable(size_t)* keyinfo, immutable(size_t)* valinfo, size_t* rtinfoData, size_t rtinfoSize) { enum bitsPerWord = 8 * size_t.sizeof; rtinfoData[0] = aa.valoff + aa.valsz; rtinfoData[1..rtinfoSize] = 0; void copyKeyInfo(string src)() { size_t pos = 1; size_t keybits = aa.keysz / (void*).sizeof; while (keybits >= bitsPerWord) { rtinfoData[pos] = mixin(src); keybits -= bitsPerWord; pos++; } if (keybits > 0) rtinfoData[pos] = mixin(src) & ((cast(size_t) 1 << keybits) - 1); } if (keyinfo is rtinfoHasPointers) copyKeyInfo!"~cast(size_t) 0"(); else if (keyinfo !is rtinfoNoPointers) copyKeyInfo!"keyinfo[pos]"(); void copyValInfo(string src)() { size_t bitpos = aa.valoff / (void*).sizeof; size_t pos = 1; size_t dstpos = 1 + bitpos / bitsPerWord; size_t begoff = bitpos % bitsPerWord; size_t valbits = aa.valsz / (void*).sizeof; size_t endoff = (bitpos + valbits) % bitsPerWord; for (;;) { const bits = bitsPerWord - begoff; size_t s = mixin(src); rtinfoData[dstpos] |= s << begoff; if (begoff > 0 && valbits > bits) rtinfoData[dstpos+1] |= s >> bits; if (valbits < bitsPerWord) break; valbits -= bitsPerWord; dstpos++; pos++; } if (endoff > 0) rtinfoData[dstpos] &= ((cast(size_t) 1 << endoff) - 1); } if (valinfo is rtinfoHasPointers) copyValInfo!"~cast(size_t) 0"(); else if (valinfo !is rtinfoNoPointers) copyValInfo!"valinfo[pos]"(); return cast(immutable(void)*) rtinfoData; } unittest { void test(K, V)() { static struct Entry { K key; V val; } auto keyti = typeid(K); auto valti = typeid(V); auto valrti = getRTInfo(valti); auto keyrti = getRTInfo(keyti); auto impl = new Impl(typeid(V[K])); if (valrti is rtinfoNoPointers && keyrti is rtinfoNoPointers) { assert(!(impl.flags & Impl.Flags.hasPointers)); assert(impl.entryTI is null); } else if (valrti is rtinfoHasPointers && keyrti is rtinfoHasPointers) { assert(impl.flags & Impl.Flags.hasPointers); assert(impl.entryTI is null); } else { auto rtInfo = cast(size_t*) impl.entryTI.rtInfo(); auto refInfo = cast(size_t*) typeid(Entry).rtInfo(); assert(rtInfo[0] == refInfo[0]); // size enum bytesPerWord = 8 * size_t.sizeof * (void*).sizeof; size_t words = (rtInfo[0] + bytesPerWord - 1) / bytesPerWord; foreach (i; 0 .. words) assert(rtInfo[1 + i] == refInfo[i + 1]); } } test!(long, int)(); test!(string, string); test!(ubyte[16], Object); static struct Small { ubyte[16] guid; string name; } test!(string, Small); static struct Large { ubyte[1024] data; string[412] names; ubyte[1024] moredata; } test!(Large, Large); } //============================================================================== // Helper functions //------------------------------------------------------------------------------ private size_t talign(size_t tsize, size_t algn) @safe pure nothrow @nogc { immutable mask = algn - 1; assert(!(mask & algn)); return (tsize + mask) & ~mask; } // mix hash to "fix" bad hash functions private size_t mix(size_t h) @safe pure nothrow @nogc { // final mix function of MurmurHash2 enum m = 0x5bd1e995; h ^= h >> 13; h *= m; h ^= h >> 15; return h; } private size_t calcHash(scope const void* pkey, scope const TypeInfo keyti) { immutable hash = keyti.getHash(pkey); // highest bit is set to distinguish empty/deleted from filled buckets return mix(hash) | HASH_FILLED_MARK; } private size_t nextpow2(const size_t n) pure nothrow @nogc { import core.bitop : bsr; if (!n) return 1; const isPowerOf2 = !((n - 1) & n); return 1 << (bsr(n) + !isPowerOf2); } pure nothrow @nogc unittest { // 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 foreach (const n, const pow2; [1, 1, 2, 4, 4, 8, 8, 8, 8, 16]) assert(nextpow2(n) == pow2); } private T min(T)(T a, T b) pure nothrow @nogc { return a < b ? a : b; } private T max(T)(T a, T b) pure nothrow @nogc { return b < a ? a : b; } //============================================================================== // API Implementation //------------------------------------------------------------------------------ /// Determine number of entries in associative array. extern (C) size_t _aaLen(scope const AA aa) pure nothrow @nogc { return aa ? aa.length : 0; } /****************************** * Lookup *pkey in aa. * Called only from implementation of (aa[key]) expressions when value is mutable. * Params: * aa = associative array opaque pointer * ti = TypeInfo for the associative array * valsz = ignored * pkey = pointer to the key value * Returns: * if key was in the aa, a mutable pointer to the existing value. * If key was not in the aa, a mutable pointer to newly inserted value which * is set to all zeros */ extern (C) void* _aaGetY(AA* aa, const TypeInfo_AssociativeArray ti, const size_t valsz, scope const void* pkey) { bool found; return _aaGetX(aa, ti, valsz, pkey, found); } /****************************** * Lookup *pkey in aa. * Called only from implementation of require * Params: * aa = associative array opaque pointer * ti = TypeInfo for the associative array * valsz = ignored * pkey = pointer to the key value * found = true if the value was found * Returns: * if key was in the aa, a mutable pointer to the existing value. * If key was not in the aa, a mutable pointer to newly inserted value which * is set to all zeros */ extern (C) void* _aaGetX(AA* aa, const TypeInfo_AssociativeArray ti, const size_t valsz, scope const void* pkey, out bool found) { // lazily alloc implementation if (aa.impl is null) aa.impl = new Impl(ti); // get hash and bucket for key immutable hash = calcHash(pkey, ti.key); // found a value => return it if (auto p = aa.findSlotLookup(hash, pkey, ti.key)) { found = true; return p.entry + aa.valoff; } auto p = aa.findSlotInsert(hash); if (p.deleted) --aa.deleted; // check load factor and possibly grow else if (++aa.used * GROW_DEN > aa.dim * GROW_NUM) { aa.grow(ti.key); p = aa.findSlotInsert(hash); assert(p.empty); } // update search cache and allocate entry aa.firstUsed = min(aa.firstUsed, cast(uint)(p - aa.buckets.ptr)); p.hash = hash; p.entry = allocEntry(aa.impl, pkey); // postblit for key if (aa.flags & Impl.Flags.keyHasPostblit) { import rt.lifetime : __doPostblit, unqualify; __doPostblit(p.entry, aa.keysz, unqualify(ti.key)); } // return pointer to value return p.entry + aa.valoff; } /****************************** * Lookup *pkey in aa. * Called only from implementation of (aa[key]) expressions when value is not mutable. * Params: * aa = associative array opaque pointer * keyti = TypeInfo for the key * valsz = ignored * pkey = pointer to the key value * Returns: * pointer to value if present, null otherwise */ extern (C) inout(void)* _aaGetRvalueX(inout AA aa, scope const TypeInfo keyti, const size_t valsz, scope const void* pkey) { return _aaInX(aa, keyti, pkey); } /****************************** * Lookup *pkey in aa. * Called only from implementation of (key in aa) expressions. * Params: * aa = associative array opaque pointer * keyti = TypeInfo for the key * pkey = pointer to the key value * Returns: * pointer to value if present, null otherwise */ extern (C) inout(void)* _aaInX(inout AA aa, scope const TypeInfo keyti, scope const void* pkey) { if (aa.empty) return null; immutable hash = calcHash(pkey, keyti); if (auto p = aa.findSlotLookup(hash, pkey, keyti)) return p.entry + aa.valoff; return null; } /// Delete entry scope const AA, return true if it was present extern (C) bool _aaDelX(AA aa, scope const TypeInfo keyti, scope const void* pkey) { if (aa.empty) return false; immutable hash = calcHash(pkey, keyti); if (auto p = aa.findSlotLookup(hash, pkey, keyti)) { // clear entry p.hash = HASH_DELETED; p.entry = null; ++aa.deleted; if (aa.length * SHRINK_DEN < aa.dim * SHRINK_NUM) aa.shrink(keyti); return true; } return false; } /// Remove all elements from AA. extern (C) void _aaClear(AA aa) pure nothrow { if (!aa.empty) { aa.impl.clear(); } } /// Rehash AA extern (C) void* _aaRehash(AA* paa, scope const TypeInfo keyti) pure nothrow { if (!paa.empty) paa.resize(nextpow2(INIT_DEN * paa.length / INIT_NUM)); return *paa; } /// Return a GC allocated array of all values extern (C) inout(void[]) _aaValues(inout AA aa, const size_t keysz, const size_t valsz, const TypeInfo tiValueArray) pure nothrow { if (aa.empty) return null; import rt.lifetime : _d_newarrayU; auto res = _d_newarrayU(tiValueArray, aa.length).ptr; auto pval = res; immutable off = aa.valoff; foreach (b; aa.buckets[aa.firstUsed .. $]) { if (!b.filled) continue; pval[0 .. valsz] = b.entry[off .. valsz + off]; pval += valsz; } // postblit is done in object.values return (cast(inout(void)*) res)[0 .. aa.length]; // fake length, return number of elements } /// Return a GC allocated array of all keys extern (C) inout(void[]) _aaKeys(inout AA aa, const size_t keysz, const TypeInfo tiKeyArray) pure nothrow { if (aa.empty) return null; import rt.lifetime : _d_newarrayU; auto res = _d_newarrayU(tiKeyArray, aa.length).ptr; auto pkey = res; foreach (b; aa.buckets[aa.firstUsed .. $]) { if (!b.filled) continue; pkey[0 .. keysz] = b.entry[0 .. keysz]; pkey += keysz; } // postblit is done in object.keys return (cast(inout(void)*) res)[0 .. aa.length]; // fake length, return number of elements } // opApply callbacks are extern(D) extern (D) alias dg_t = int delegate(void*); extern (D) alias dg2_t = int delegate(void*, void*); /// foreach opApply over all values extern (C) int _aaApply(AA aa, const size_t keysz, dg_t dg) { if (aa.empty) return 0; immutable off = aa.valoff; foreach (b; aa.buckets) { if (!b.filled) continue; if (auto res = dg(b.entry + off)) return res; } return 0; } /// foreach opApply over all key/value pairs extern (C) int _aaApply2(AA aa, const size_t keysz, dg2_t dg) { if (aa.empty) return 0; immutable off = aa.valoff; foreach (b; aa.buckets) { if (!b.filled) continue; if (auto res = dg(b.entry, b.entry + off)) return res; } return 0; } /// Construct an associative array of type ti from keys and value extern (C) Impl* _d_assocarrayliteralTX(const TypeInfo_AssociativeArray ti, void[] keys, void[] vals) { assert(keys.length == vals.length); immutable keysz = ti.key.tsize; immutable valsz = ti.value.tsize; immutable length = keys.length; if (!length) return null; auto aa = new Impl(ti, nextpow2(INIT_DEN * length / INIT_NUM)); void* pkey = keys.ptr; void* pval = vals.ptr; immutable off = aa.valoff; uint actualLength = 0; foreach (_; 0 .. length) { immutable hash = calcHash(pkey, ti.key); auto p = aa.findSlotLookup(hash, pkey, ti.key); if (p is null) { p = aa.findSlotInsert(hash); p.hash = hash; p.entry = allocEntry(aa, pkey); // move key, no postblit aa.firstUsed = min(aa.firstUsed, cast(uint)(p - aa.buckets.ptr)); actualLength++; } else if (aa.entryTI && hasDtor(ti.value)) { // destroy existing value before overwriting it ti.value.destroy(p.entry + off); } // set hash and blit value auto pdst = p.entry + off; pdst[0 .. valsz] = pval[0 .. valsz]; // move value, no postblit pkey += keysz; pval += valsz; } aa.used = actualLength; return aa; } /// compares 2 AAs for equality extern (C) int _aaEqual(scope const TypeInfo tiRaw, scope const AA aa1, scope const AA aa2) { if (aa1.impl is aa2.impl) return true; immutable len = _aaLen(aa1); if (len != _aaLen(aa2)) return false; if (!len) // both empty return true; import rt.lifetime : unqualify; auto uti = unqualify(tiRaw); auto ti = *cast(TypeInfo_AssociativeArray*)&uti; // compare the entries immutable off = aa1.valoff; foreach (b1; aa1.buckets) { if (!b1.filled) continue; auto pb2 = aa2.findSlotLookup(b1.hash, b1.entry, ti.key); if (pb2 is null || !ti.value.equals(b1.entry + off, pb2.entry + off)) return false; } return true; } /// compute a hash extern (C) hash_t _aaGetHash(scope const AA* aa, scope const TypeInfo tiRaw) nothrow { if (aa.empty) return 0; import rt.lifetime : unqualify; auto uti = unqualify(tiRaw); auto ti = *cast(TypeInfo_AssociativeArray*)&uti; immutable off = aa.valoff; auto keyHash = &ti.key.getHash; auto valHash = &ti.value.getHash; size_t h; foreach (b; aa.buckets) { if (!b.filled) continue; size_t[2] h2 = [keyHash(b.entry), valHash(b.entry + off)]; // use addition here, so that hash is independent of element order h += hashOf(h2); } return h; } /** * _aaRange implements a ForwardRange */ struct Range { Impl* impl; size_t idx; alias impl this; } extern (C) pure nothrow @nogc @safe { Range _aaRange(AA aa) { if (!aa) return Range(); foreach (i; aa.firstUsed .. aa.dim) { if (aa.buckets[i].filled) return Range(aa.impl, i); } return Range(aa, aa.dim); } bool _aaRangeEmpty(Range r) { return r.impl is null || r.idx >= r.dim; } void* _aaRangeFrontKey(Range r) { assert(!_aaRangeEmpty(r)); if (r.idx >= r.dim) return null; return r.buckets[r.idx].entry; } void* _aaRangeFrontValue(Range r) { assert(!_aaRangeEmpty(r)); if (r.idx >= r.dim) return null; auto entry = r.buckets[r.idx].entry; return entry is null ? null : (() @trusted { return entry + r.valoff; } ()); } void _aaRangePopFront(ref Range r) { if (r.idx >= r.dim) return; for (++r.idx; r.idx < r.dim; ++r.idx) { if (r.buckets[r.idx].filled) break; } } } // Most tests are now in test_aa.d // test postblit for AA literals unittest { static struct T { ubyte field; static size_t postblit, dtor; this(this) { ++postblit; } ~this() { ++dtor; } } T t; auto aa1 = [0 : t, 1 : t]; assert(T.dtor == 0 && T.postblit == 2); aa1[0] = t; assert(T.dtor == 1 && T.postblit == 3); T.dtor = 0; T.postblit = 0; auto aa2 = [0 : t, 1 : t, 0 : t]; // literal with duplicate key => value overwritten assert(T.dtor == 1 && T.postblit == 3); T.dtor = 0; T.postblit = 0; auto aa3 = [t : 0]; assert(T.dtor == 0 && T.postblit == 1); aa3[t] = 1; assert(T.dtor == 0 && T.postblit == 1); aa3.remove(t); assert(T.dtor == 0 && T.postblit == 1); aa3[t] = 2; assert(T.dtor == 0 && T.postblit == 2); // dtor will be called by GC finalizers aa1 = null; aa2 = null; aa3 = null; GC.runFinalizers((cast(char*)(&entryDtor))[0 .. 1]); assert(T.dtor == 6 && T.postblit == 2); }
D
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.0 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ module vtkQuaternionUIntT; static import vtkd_im; static import core.stdc.config; static import std.conv; static import std.string; static import std.conv; static import std.string; static import SWIGTYPE_p_unsigned_int; static import SWIGTYPE_p_a_3__unsigned_int; static import vtkUnsignedIntTuple4TN; class vtkQuaternionUIntT : vtkUnsignedIntTuple4TN.vtkUnsignedIntTuple4TN { private void* swigCPtr; public this(void* cObject, bool ownCObject) { super(vtkd_im.vtkQuaternionUIntT_Upcast(cObject), ownCObject); swigCPtr = cObject; } public static void* swigGetCPtr(vtkQuaternionUIntT obj) { return (obj is null) ? null : obj.swigCPtr; } mixin vtkd_im.SwigOperatorDefinitions; ~this() { dispose(); } public override void dispose() { synchronized(this) { if (swigCPtr !is null) { if (swigCMemOwn) { swigCMemOwn = false; vtkd_im.delete_vtkQuaternionUIntT(cast(void*)swigCPtr); } swigCPtr = null; super.dispose(); } } } public this() { this(vtkd_im.new_vtkQuaternionUIntT__SWIG_0(), true); } public this(uint scalar) { this(vtkd_im.new_vtkQuaternionUIntT__SWIG_1(scalar), true); } public this(uint* init) { this(vtkd_im.new_vtkQuaternionUIntT__SWIG_2(cast(void*)init), true); } public this(uint w, uint x, uint y, uint z) { this(vtkd_im.new_vtkQuaternionUIntT__SWIG_3(w, x, y, z), true); } public uint SquaredNorm() const { auto ret = vtkd_im.vtkQuaternionUIntT_SquaredNorm(cast(void*)swigCPtr); return ret; } public uint Norm() const { auto ret = vtkd_im.vtkQuaternionUIntT_Norm(cast(void*)swigCPtr); return ret; } public void ToIdentity() { vtkd_im.vtkQuaternionUIntT_ToIdentity(cast(void*)swigCPtr); } public static vtkQuaternionUIntT Identity() { vtkQuaternionUIntT ret = new vtkQuaternionUIntT(vtkd_im.vtkQuaternionUIntT_Identity(), true); return ret; } public uint Normalize() { auto ret = vtkd_im.vtkQuaternionUIntT_Normalize(cast(void*)swigCPtr); return ret; } public vtkQuaternionUIntT Normalized() const { vtkQuaternionUIntT ret = new vtkQuaternionUIntT(vtkd_im.vtkQuaternionUIntT_Normalized(cast(void*)swigCPtr), true); return ret; } public void Conjugate() { vtkd_im.vtkQuaternionUIntT_Conjugate(cast(void*)swigCPtr); } public vtkQuaternionUIntT Conjugated() const { vtkQuaternionUIntT ret = new vtkQuaternionUIntT(vtkd_im.vtkQuaternionUIntT_Conjugated(cast(void*)swigCPtr), true); return ret; } public void Invert() { vtkd_im.vtkQuaternionUIntT_Invert(cast(void*)swigCPtr); } public vtkQuaternionUIntT Inverse() const { vtkQuaternionUIntT ret = new vtkQuaternionUIntT(vtkd_im.vtkQuaternionUIntT_Inverse(cast(void*)swigCPtr), true); return ret; } public void ToUnitLog() { vtkd_im.vtkQuaternionUIntT_ToUnitLog(cast(void*)swigCPtr); } public vtkQuaternionUIntT UnitLog() const { vtkQuaternionUIntT ret = new vtkQuaternionUIntT(vtkd_im.vtkQuaternionUIntT_UnitLog(cast(void*)swigCPtr), true); return ret; } public void ToUnitExp() { vtkd_im.vtkQuaternionUIntT_ToUnitExp(cast(void*)swigCPtr); } public vtkQuaternionUIntT UnitExp() const { vtkQuaternionUIntT ret = new vtkQuaternionUIntT(vtkd_im.vtkQuaternionUIntT_UnitExp(cast(void*)swigCPtr), true); return ret; } public void NormalizeWithAngleInDegrees() { vtkd_im.vtkQuaternionUIntT_NormalizeWithAngleInDegrees(cast(void*)swigCPtr); } public vtkQuaternionUIntT NormalizedWithAngleInDegrees() const { vtkQuaternionUIntT ret = new vtkQuaternionUIntT(vtkd_im.vtkQuaternionUIntT_NormalizedWithAngleInDegrees(cast(void*)swigCPtr), true); return ret; } public void Set(uint w, uint x, uint y, uint z) { vtkd_im.vtkQuaternionUIntT_Set__SWIG_0(cast(void*)swigCPtr, w, x, y, z); } public void Set(SWIGTYPE_p_unsigned_int.SWIGTYPE_p_unsigned_int quat) { vtkd_im.vtkQuaternionUIntT_Set__SWIG_1(cast(void*)swigCPtr, SWIGTYPE_p_unsigned_int.SWIGTYPE_p_unsigned_int.swigGetCPtr(quat)); } public void Get(SWIGTYPE_p_unsigned_int.SWIGTYPE_p_unsigned_int quat) const { vtkd_im.vtkQuaternionUIntT_Get(cast(void*)swigCPtr, SWIGTYPE_p_unsigned_int.SWIGTYPE_p_unsigned_int.swigGetCPtr(quat)); } public void SetW(uint w) { vtkd_im.vtkQuaternionUIntT_SetW(cast(void*)swigCPtr, w); } public uint GetW() const { auto ret = vtkd_im.vtkQuaternionUIntT_GetW(cast(void*)swigCPtr); return ret; } public void SetX(uint x) { vtkd_im.vtkQuaternionUIntT_SetX(cast(void*)swigCPtr, x); } public uint GetX() const { auto ret = vtkd_im.vtkQuaternionUIntT_GetX(cast(void*)swigCPtr); return ret; } public void SetY(uint y) { vtkd_im.vtkQuaternionUIntT_SetY(cast(void*)swigCPtr, y); } public uint GetY() const { auto ret = vtkd_im.vtkQuaternionUIntT_GetY(cast(void*)swigCPtr); return ret; } public void SetZ(uint z) { vtkd_im.vtkQuaternionUIntT_SetZ(cast(void*)swigCPtr, z); } public uint GetZ() const { auto ret = vtkd_im.vtkQuaternionUIntT_GetZ(cast(void*)swigCPtr); return ret; } public uint GetRotationAngleAndAxis(SWIGTYPE_p_unsigned_int.SWIGTYPE_p_unsigned_int axis) const { auto ret = vtkd_im.vtkQuaternionUIntT_GetRotationAngleAndAxis(cast(void*)swigCPtr, SWIGTYPE_p_unsigned_int.SWIGTYPE_p_unsigned_int.swigGetCPtr(axis)); return ret; } public void SetRotationAngleAndAxis(uint angle, SWIGTYPE_p_unsigned_int.SWIGTYPE_p_unsigned_int axis) { vtkd_im.vtkQuaternionUIntT_SetRotationAngleAndAxis__SWIG_0(cast(void*)swigCPtr, angle, SWIGTYPE_p_unsigned_int.SWIGTYPE_p_unsigned_int.swigGetCPtr(axis)); } public void SetRotationAngleAndAxis(uint angle, uint x, uint y, uint z) { vtkd_im.vtkQuaternionUIntT_SetRotationAngleAndAxis__SWIG_1(cast(void*)swigCPtr, angle, x, y, z); } public void ToMatrix3x3(SWIGTYPE_p_a_3__unsigned_int.SWIGTYPE_p_a_3__unsigned_int A) const { vtkd_im.vtkQuaternionUIntT_ToMatrix3x3(cast(void*)swigCPtr, SWIGTYPE_p_a_3__unsigned_int.SWIGTYPE_p_a_3__unsigned_int.swigGetCPtr(A)); } public void FromMatrix3x3(SWIGTYPE_p_a_3__unsigned_int.SWIGTYPE_p_a_3__unsigned_int A) { vtkd_im.vtkQuaternionUIntT_FromMatrix3x3(cast(void*)swigCPtr, SWIGTYPE_p_a_3__unsigned_int.SWIGTYPE_p_a_3__unsigned_int.swigGetCPtr(A)); } public vtkQuaternionUIntT Slerp(uint t, vtkQuaternionUIntT q) const { vtkQuaternionUIntT ret = new vtkQuaternionUIntT(vtkd_im.vtkQuaternionUIntT_Slerp(cast(void*)swigCPtr, t, vtkQuaternionUIntT.swigGetCPtr(q)), true); if (vtkd_im.SwigPendingException.isPending) throw vtkd_im.SwigPendingException.retrieve(); return ret; } public vtkQuaternionUIntT InnerPoint(vtkQuaternionUIntT q1, vtkQuaternionUIntT q2) const { vtkQuaternionUIntT ret = new vtkQuaternionUIntT(vtkd_im.vtkQuaternionUIntT_InnerPoint(cast(void*)swigCPtr, vtkQuaternionUIntT.swigGetCPtr(q1), vtkQuaternionUIntT.swigGetCPtr(q2)), true); if (vtkd_im.SwigPendingException.isPending) throw vtkd_im.SwigPendingException.retrieve(); return ret; } public void Equal(vtkQuaternionUIntT q) { vtkd_im.vtkQuaternionUIntT_Equal(cast(void*)swigCPtr, vtkQuaternionUIntT.swigGetCPtr(q)); if (vtkd_im.SwigPendingException.isPending) throw vtkd_im.SwigPendingException.retrieve(); } public vtkQuaternionUIntT swigOpAdd(vtkQuaternionUIntT q) const { vtkQuaternionUIntT ret = new vtkQuaternionUIntT(vtkd_im.vtkQuaternionUIntT_swigOpAdd(cast(void*)swigCPtr, vtkQuaternionUIntT.swigGetCPtr(q)), true); if (vtkd_im.SwigPendingException.isPending) throw vtkd_im.SwigPendingException.retrieve(); return ret; } public vtkQuaternionUIntT swigOpSub(vtkQuaternionUIntT q) const { vtkQuaternionUIntT ret = new vtkQuaternionUIntT(vtkd_im.vtkQuaternionUIntT_swigOpSub(cast(void*)swigCPtr, vtkQuaternionUIntT.swigGetCPtr(q)), true); if (vtkd_im.SwigPendingException.isPending) throw vtkd_im.SwigPendingException.retrieve(); return ret; } public vtkQuaternionUIntT swigOpMul(vtkQuaternionUIntT q) const { vtkQuaternionUIntT ret = new vtkQuaternionUIntT(vtkd_im.vtkQuaternionUIntT_swigOpMul__SWIG_0(cast(void*)swigCPtr, vtkQuaternionUIntT.swigGetCPtr(q)), true); if (vtkd_im.SwigPendingException.isPending) throw vtkd_im.SwigPendingException.retrieve(); return ret; } public vtkQuaternionUIntT swigOpMul(uint scalar) const { vtkQuaternionUIntT ret = new vtkQuaternionUIntT(vtkd_im.vtkQuaternionUIntT_swigOpMul__SWIG_1(cast(void*)swigCPtr, scalar), true); return ret; } public void swigOpMulAssign(uint scalar) const { vtkd_im.vtkQuaternionUIntT_swigOpMulAssign(cast(void*)swigCPtr, scalar); } public vtkQuaternionUIntT swigOpDiv(vtkQuaternionUIntT q) const { vtkQuaternionUIntT ret = new vtkQuaternionUIntT(vtkd_im.vtkQuaternionUIntT_swigOpDiv__SWIG_0(cast(void*)swigCPtr, vtkQuaternionUIntT.swigGetCPtr(q)), true); if (vtkd_im.SwigPendingException.isPending) throw vtkd_im.SwigPendingException.retrieve(); return ret; } public vtkQuaternionUIntT swigOpDiv(uint scalar) const { vtkQuaternionUIntT ret = new vtkQuaternionUIntT(vtkd_im.vtkQuaternionUIntT_swigOpDiv__SWIG_1(cast(void*)swigCPtr, scalar), true); return ret; } public void swigOpDivAssign(uint scalar) { vtkd_im.vtkQuaternionUIntT_swigOpDivAssign(cast(void*)swigCPtr, scalar); } }
D
void main() { problem(); } void problem() { auto A = scan!long; auto B = scan!long; auto C = scan!long; auto D = scan!long; void solve() { min(A, B, C, D).writeln; } solve(); } // ---------------------------------------------- import std.stdio, std.conv, std.array, std.string, std.algorithm, std.container, std.range, core.stdc.stdlib, std.math, std.typecons, std.numeric, std.bitmanip; T[][] combinations(T)(T[] s, in int m) { if (!m) return [[]]; if (s.empty) return []; return s[1 .. $].combinations(m - 1).map!(x => s[0] ~ x).array ~ s[1 .. $].combinations(m); } string scan(){ static string[] ss; while(!ss.length) ss = readln.chomp.split; string res = ss[0]; ss.popFront; return res; } T scan(T)(){ return scan.to!T; } T[] scan(T)(long n){ return n.iota.map!(i => scan!T()).array; } void deb(T ...)(T t){ debug writeln(t); } alias Point = Tuple!(long, "x", long, "y"); long[] divisors(long n) { long[] ret; for (long i = 1; i * i <= n; i++) { if (n % i == 0) { ret ~= i; if (i * i != n) ret ~= n / i; } } return ret.sort.array; } // -----------------------------------------------
D
module tests.all; import tests.parser, tests.interpreter;
D
/Users/miladmehrpoo/Desktop/Helloworld/.build/debug/URI.build/Parser/Parser+Public.swift.o : /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/PercentDecoding.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Model/URI+Byte.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Model/URI+Modification.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Model/URI+Ports.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Model/URI+String.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Model/URI.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Parser/Parser+Components.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Parser/Parser+Public.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Parser/Parser+SubComponents.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Parser/Parser.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Core.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.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/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/libc.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/URI.build/Parser+Public~partial.swiftmodule : /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/PercentDecoding.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Model/URI+Byte.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Model/URI+Modification.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Model/URI+Ports.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Model/URI+String.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Model/URI.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Parser/Parser+Components.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Parser/Parser+Public.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Parser/Parser+SubComponents.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Parser/Parser.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Core.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.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/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/libc.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/URI.build/Parser+Public~partial.swiftdoc : /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/PercentDecoding.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Model/URI+Byte.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Model/URI+Modification.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Model/URI+Ports.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Model/URI+String.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Model/URI.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Parser/Parser+Components.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Parser/Parser+Public.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Parser/Parser+SubComponents.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Engine-1.0.3/Sources/URI/Parser/Parser.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Core.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.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/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/libc.swiftmodule
D
//------------------------------ // Анализ, подготовка и создание БД ФИОД // MGW 07.08.2016 16:12 //------------------------------ import asc1251; // Поддержка cp1251 в консоли import std.getopt; // Раазбор аргументов коммандной строки import std.stdio; // import qte5; import std.conv; import std.file; import std.string; import core.runtime; // Обработка входных параметров import std.container; // Деревья alias Elem = string; // ================================================================= // CFormaLog - Форма лога // ================================================================= extern (C) { void on_CloseLog(CFormaLog* uk) { (*uk).runCloseLog(); } // void on_Test(CFormaLog* uk) { (*uk).runTest(); } } // __________________________________________________________________ class CFormaLog: QWidget { //=> Форма лога QVBoxLayout layV; QPlainTextEdit textEdit; CFormaMain parent; // Родительская форма QMainWidget // ______________________________________________________________ this(CFormaMain pr) { //-> Базовый конструктор // Главный виджет, в который всё вставим super(pr); setWindowTitle("Log"); parent = pr; layV = new QVBoxLayout(this); textEdit = new QPlainTextEdit(this); layV.addWidget(textEdit); setCloseEvent(&on_CloseLog, aThis); } // ______________________________________________________________ void runCloseLog() { //-> Событие закрытия окна лога setCloseEvent(null); parent.bIsLog = false; parent = null; } // ______________________________________________________________ void appendStr(string str) { //-> Добавить строку в Log textEdit.appendHtml("<p>" ~ str ~ "</b>"); } } // // formaMain.CFormaMain // +===============================+ // | | <-- mb1.QMenuBar // | [ File ] | File - menuFile.QMenu // | acTest | acTest.QAction // | acExit | acExit.QAction // | | // +===============================+ // | wLog.CFormaLog | // | +---------------------+ | // | | textEdit.QTextEdit | // | | | | // | +---------------------+ | // | | // | | // +-------------------------------+ // // // ================================================================= // CFormaMain - Главная Форма для работы // ================================================================= extern (C) { void on_Exit(CFormaMain* uk) { (*uk).runExit(); } void on_Test(CFormaMain* uk) { (*uk).runTest(); } void on_about(CFormaMain* uk, int n) { (*uk).about(n); } void on_NameRead(CFormaMain* uk, int n) { (*uk).runNameRead(); } void on_NameWrite(CFormaMain* uk, int n) { (*uk).runNameWrite(); } } // __________________________________________________________________ class CFormaMain: QMainWindow { //=> Основной MAIN класс приложения QMdiArea mainWid; // Область дочерних mdi виджетов QMenuBar mb1; // Строка меню сверху QMenu menuFile, menuWork, menuSet, menuHelp; QStatusBar sbSoob; // Статусбар внизу QAction acExit, acTest; QAction acNameRead, acNameWrite; QAction acAbout, acAboutQt; CFormaLog wLog; // Окно лога bool bIsLog; // если Log на экране, то .T. // Деревья RedBlackTree!string rbFio, rbNames, rbOtv; QLabel w1; // ______________________________________________________________ this() { //-> Базовый конструктор // Главный виджет, в который всё вставим super(null); resize(600, 400); setWindowTitle("Подготовка информации о ФИОД"); mainWid = new QMdiArea(this); // Обработчики acExit = new QAction(this, &on_Exit, aThis); acExit.setText("Exit").setHotKey(QtE.Key.Key_Q | QtE.Key.Key_ControlModifier); acExit.setIcon("ICONS/doc_error.ico").setToolTip("Выйти из программы"); connects(acExit, "triggered()", acExit, "Slot()"); acTest = new QAction(this, &on_Test, aThis); acTest.setText("Test").setHotKey(QtE.Key.Key_T | QtE.Key.Key_ControlModifier); connects(acTest, "triggered()", acTest, "Slot()"); sbSoob = new QStatusBar(this); // Центральный виджет в QMainWindow setCentralWidget(mainWid); // MenuBar mb1 = new QMenuBar(this); // Menu menuFile = new QMenu(this); menuFile.setTitle("&File") .addAction( acTest ) .addSeparator() .addAction( acExit ); menuWork = new QMenu(this); menuSet = new QMenu(this); menuHelp = new QMenu(this); acAbout = new QAction(this, &on_about, aThis, 1); // 1 - парам в обработчик acAbout.setText("about").setToolTip("об программе"); connects(acAbout, "triggered()", acAbout, "Slot_v__A_N_v()"); acAboutQt = new QAction(this, &on_about, aThis, 2); // 2 - парам в обработчик acAboutQt.setText("aboutQt").setToolTip("об фреймворке Qt"); connects(acAboutQt, "triggered()", acAboutQt, "Slot_v__A_N_v()"); menuHelp.setTitle("&Help") .addAction( acAbout ) .addAction( acAboutQt ); acNameRead = new QAction(this, &on_NameRead, aThis); acNameRead.setText("Имена Читать").setToolTip("Читать файл с именами и заполнять дерево"); connects(acNameRead, "triggered()", acNameRead, "Slot_v__A_N_v()"); acNameWrite = new QAction(this, &on_NameWrite, aThis); acNameWrite.setText("Имена Писать").setToolTip("Писать файл с именами из дерева"); connects(acNameWrite, "triggered()", acNameWrite, "Slot_v__A_N_v()"); menuWork = new QMenu(this); menuWork.setTitle("Work") .addAction( acNameRead ) .addAction( acNameWrite ); mb1.addMenu(menuFile).addMenu(menuWork).addMenu(menuHelp); setMenuBar(mb1); setStatusBar(sbSoob); showLog(); // Деревья rbNames = new RedBlackTree!string(); wLog.appendStr("rbNames - create"); rbFio = new RedBlackTree!string(); wLog.appendStr("rbFio - create"); rbOtv = new RedBlackTree!string(); wLog.appendStr("rbOtv - create"); } // this() // ______________________________________________________________ void runTest() { //-> Выйти из программы writeln("active win = ", mainWid.activeSubWindow()); string sHtml = ` <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Здесь название страницы, отображаемое в верхнем левом углу браузера</title> </head> <body id="kontent"> <h1 align="center">Моя первая страница!</h1> <hr> <p align="center">Так можно создавать свою первую страницу.</p> <p align="center">Для начала приведен простой пример, по ссылке можно посмотреть пример, <br> который создан из таблиц.</p> <p>Здесь будем использовать обычный текст описания. Данный приём будет означать, что мы сюда вставим описание программы</p><br> <pre> // Деревья rbNames = new RedBlackTree!string(); wLog.appendStr("rbNames - create"); rbFio = new RedBlackTree!string(); wLog.appendStr("rbFio - create"); rbOtv = new RedBlackTree!string(); wLog.appendStr("rbOtv - create"); </pre> <p align="center"><a href="http://kapon.com.ua/sign_table.php" title="пример страницы"> пример страницы</a> построенной на таблицах.</p> <br> </body></html> - обьявление окончания данной страницы `; w1 = new QLabel(this); w1.saveThis(&w1); w1.setText(sHtml); void* rez = mainWid.addSubWindow(w1); writeln(rez, " ", cast(void*)w1.QtObj); w1.show(); // w1.resize(200, 100); } // ______________________________________________________________ void showLog() { //-> Открыть окно лога if(!bIsLog) { wLog = new CFormaLog(this); wLog.saveThis(&wLog); mainWid.addSubWindow(wLog); wLog.show(); bIsLog = true; showsb("Log на экране", 3000); } } // ______________________________________________________________ void runExit() { //-> Выйти из программы hide(); app.quit(); } // ______________________________________________________________ void showsb(string s, int timeout = 0) { //-> Показать сообщение в статусной строке sbSoob.showMessage(s, timeout); } // ______________________________________________________________ void about(int n) { //-> о программе и Qt if(n == 1) { msgbox( " <H3>CreateDB - подготовка к созданию БД</H3> <H5>MGW 2016 ver 0.1 от 01.08.2016</H5> <BR> <IMG src='ICONS/qte5.png'> " , "о программе"); } if(n == 2) { app.aboutQt(); } } // ______________________________________________________________ void runNameRead() { //-> Читать файл с именами и формировать дерево QFileDialog fileDlg = new QFileDialog('+', null); string cmd = fileDlg.getOpenFileNameSt("Открыть файл с именами ...", "", "*.txt"); if(cmd != "") { createNamesTree(cmd); // msgbox(cmd ~ " - Читать файл с именами и формировать дерево"); } } // ______________________________________________________________ void createNamesTree(string nameFile) { //-> Читать файл с именами и формировать дерево File fhNames; string stringName; try { fhNames = File(nameFile, "r"); } catch goto m1; try { foreach(line; fhNames.byLine()) { string name = strip(to!string(line)); if(name == "") continue; // Обойти пустые строки stringName = capitalize(name); if(stringName !in rbNames) { rbNames.insert(stringName); wLog.appendStr(stringName ~ " - добавлено"); } else { // wLog.appendStr(stringName ~ " - skip"); } } } catch { msgbox("Ошибка чтения файла " ~ nameFile, "Внимание! стр: " ~ to!string(__LINE__), QMessageBox.Icon.Critical); goto m1; } m1: } // ______________________________________________________________ void runNameWrite() { //-> Писать файл с именами из дерева int i; foreach(s; rbNames) { writeln(s); } // msgbox("Писать файл с именами из дерева"); } } // class CFormaMain // __________________________________________________________________ // Глобальные функции string helps() { return toCON( "Использование консоли для forthD: -------------------------------- Запуск: console5_forthd [-d, -e, -i] ... "); } // __________________________________________________________________ // Глобальные переменные программы QApplication app; // Само приложение CFormaMain formaMain; // Основное окно программы // __________________________________________________________________ int main(string[] args) { bool fDebug; // T - выдавать диагностику загрузки QtE5 // Разбор аргументов коммандной строки try { auto helpInformation = getopt(args, std.getopt.config.caseInsensitive, "d|debug", toCON("включить диагностику QtE5"), &fDebug); if (helpInformation.helpWanted) defaultGetoptPrinter(helps(), helpInformation.options); } catch { writeln(toCON("Ошибка разбора аргументов командной стоки ...")); return 1; } // Загрузка графической библиотеки if (1 == LoadQt(dll.QtE5Widgets, fDebug)) return 1; // Выйти,если ошибка загрузки библиотеки // Изготавливаем само приложение app = new QApplication(&Runtime.cArgs.argc, Runtime.cArgs.argv, 1); formaMain = new CFormaMain(); formaMain.saveThis(&formaMain); formaMain.show(); return app.exec(); } /* // Простейшая программа void main() { string str; RedBlackTree!string rbTree = new RedBlackTree!string(); str = "Мохов"; rbTree.insert(str); // Вставить элемент string[] t = ["Иванова", "Петрова"]; rbTree.insert(t); writeln("Иванова1" in rbTree); writeln("Hello...", rbTree); writeln("----------"); foreach(s; rbTree) { writeln(s); } } */
D
the style in which newspapers are written
D
/* Copyright (c) 1996 Blake McBride All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include <math.h> defclass DoubleFloat : Number { double iVal; }; #ifdef WIN32 #define fixnan(x) (_isnan(x) ? 0.0 : (x)) #else #define fixnan(x) (x) #endif cmeth gNewWithDouble, <vNew> (double val) { object obj = gNew(super); ivType *iv = ivPtr(obj); iVal = fixnan(val); return(obj); } imeth gStringRepValue() { return vSprintf(String, "%f", iVal); } imeth char gCharValue() { return (char) iVal; } imeth short gShortValue() { return (short) iVal; } imeth unsigned short gUnsignedShortValue() { return (unsigned short) iVal; } imeth long gLongValue() { return (long) iVal; } imeth double gDoubleValue() { return fixnan(iVal); } imeth void *gPointerValue() { return (void *) &iVal; } imeth gChangeValue(val) { ChkArg(val, 2); iVal = gDoubleValue(val); return self; } imeth gChangeCharValue(int val) { iVal = (double) val; return self; } imeth gChangeShortValue(int val) { iVal = (double) val; return self; } imeth gChangeUShortValue(unsigned val) { iVal = (double) val; return self; } imeth gChangeLongValue(long val) { iVal = (double) val; return self; } imeth gChangeDoubleValue(double val) { iVal = fixnan(val); return self; } imeth gRound(int p) /* round n to p places */ { double r; r = pow(10.0, (double) p); if (iVal < 0.0) iVal = -(floor(.5 + -iVal * r) / r); else iVal = floor(.5 + iVal * r) / r; return self; } imeth gTruncate(int p) /* truncate n to p places */ { double r; r = pow(10.0, (double) p); if (iVal < 0.0) iVal = -(floor(-iVal * r) / r); else iVal = floor(iVal * r) / r; return self; } imeth int gHash() { double t; t = .6125423371 * iVal; t = t < 0.0 ? -t : t; return (int) (BIG_INT * (t - floor(t))); } imeth int gCompare(obj) { double sv, ov; ChkArg(obj, 2); if (ClassOf(obj) != CLASS) return gCompare(super, obj); if ((sv=iVal) < (ov=ivPtr(obj)->iVal)) return -1; else if (sv == ov) return 0; else return 1; }
D
/Users/yunyunchen1/dev/mojo-test/build/mojo_test.build/Debug-iphoneos/NotificationService.build/Objects-normal/arm64/NotificationService.o : /Users/yunyunchen1/dev/mojo-test/NotificationService/NotificationService.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/yunyunchen1/dev/mojo-test/build/mojo_test.build/Debug-iphoneos/NotificationService.build/Objects-normal/arm64/NotificationService~partial.swiftmodule : /Users/yunyunchen1/dev/mojo-test/NotificationService/NotificationService.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/yunyunchen1/dev/mojo-test/build/mojo_test.build/Debug-iphoneos/NotificationService.build/Objects-normal/arm64/NotificationService~partial.swiftdoc : /Users/yunyunchen1/dev/mojo-test/NotificationService/NotificationService.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Service.build/Services/ServiceFactory.swift.o : /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/ServiceID.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Utilities/Deprecated.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/Service.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/ServiceCache.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Utilities/Extendable.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/ServiceType.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Config/Config.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Provider/Provider.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Container/Container.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Container/SubContainer.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Container/BasicSubContainer.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Container/BasicContainer.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Utilities/ServiceError.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Container/ContainerAlias.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/Services.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Utilities/Exports.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Environment/Environment.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/ServiceFactory.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/BasicServiceFactory.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/TypeServiceFactory.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/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/lb/Documents/Project/LearnVapor/.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/lb/Documents/Project/LearnVapor/.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/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/lb/Documents/Project/LearnVapor/.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOAtomics/include/cpp_magic.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIODarwin/include/c_nio_darwin.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOAtomics/include/c-atomics.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOLinux/include/c_nio_linux.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio-zlib-support.git--4783613459776704231/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Service.build/ServiceFactory~partial.swiftmodule : /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/ServiceID.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Utilities/Deprecated.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/Service.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/ServiceCache.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Utilities/Extendable.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/ServiceType.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Config/Config.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Provider/Provider.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Container/Container.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Container/SubContainer.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Container/BasicSubContainer.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Container/BasicContainer.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Utilities/ServiceError.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Container/ContainerAlias.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/Services.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Utilities/Exports.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Environment/Environment.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/ServiceFactory.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/BasicServiceFactory.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/TypeServiceFactory.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/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/lb/Documents/Project/LearnVapor/.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/lb/Documents/Project/LearnVapor/.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/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/lb/Documents/Project/LearnVapor/.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOAtomics/include/cpp_magic.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIODarwin/include/c_nio_darwin.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOAtomics/include/c-atomics.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOLinux/include/c_nio_linux.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio-zlib-support.git--4783613459776704231/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Service.build/ServiceFactory~partial.swiftdoc : /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/ServiceID.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Utilities/Deprecated.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/Service.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/ServiceCache.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Utilities/Extendable.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/ServiceType.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Config/Config.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Provider/Provider.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Container/Container.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Container/SubContainer.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Container/BasicSubContainer.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Container/BasicContainer.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Utilities/ServiceError.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Container/ContainerAlias.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/Services.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Utilities/Exports.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Environment/Environment.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/ServiceFactory.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/BasicServiceFactory.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/service.git-6643607890189502733/Sources/Service/Services/TypeServiceFactory.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/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/lb/Documents/Project/LearnVapor/.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/lb/Documents/Project/LearnVapor/.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/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/lb/Documents/Project/LearnVapor/.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOAtomics/include/cpp_magic.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIODarwin/include/c_nio_darwin.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOAtomics/include/c-atomics.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOLinux/include/c_nio_linux.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio-zlib-support.git--4783613459776704231/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/** * @file pmdbg.h * @brief PM (Process Manager) debug service. */ module ctru.services.pmdbg; import ctru.types; import ctru.services.pmapp; import ctru.services.fs; extern (C): nothrow: @nogc: /// Initializes pm:dbg. Result pmDbgInit(); /// Exits pm:dbg. void pmDbgExit(); /** * @brief Gets the current pm:dbg session handle. * @return The current pm:dbg session handle. */ Handle* pmDbgGetSessionHandle(); /** * @brief Enqueues an application for debug after setting cpuTime to 0, and returns a debug handle to it. * If another process was enqueued, this just calls @ref RunQueuedProcess instead. * @param[out] Pointer to output the debug handle to. * @param programInfo Program information of the title. * @param launchFlags Flags to launch the title with. */ Result PMDBG_LaunchAppDebug(Handle* outDebug, const(FS_ProgramInfo)* programInfo, uint launchFlags); /** * @brief Launches an application for debug after setting cpuTime to 0. * @param programInfo Program information of the title. * @param launchFlags Flags to launch the title with. */ Result PMDBG_LaunchApp(const(FS_ProgramInfo)* programInfo, uint launchFlags); /** * @brief Runs the queued process and returns a debug handle to it. * @param[out] Pointer to output the debug handle to. */ Result PMDBG_RunQueuedProcess(Handle* outDebug);
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 src/core/sys/windows/_lmat.d) */ module core.sys.windows.lmat; version (Windows): @system: pragma(lib, "netapi32"); private import core.sys.windows.lmcons, core.sys.windows.windef; enum JOB_RUN_PERIODICALLY = 1; enum JOB_EXEC_ERROR = 2; enum JOB_RUNS_TODAY = 4; enum JOB_ADD_CURRENT_DATE = 8; enum JOB_NONINTERACTIVE = 16; enum JOB_INPUT_FLAGS = JOB_RUN_PERIODICALLY | JOB_ADD_CURRENT_DATE | JOB_NONINTERACTIVE; enum JOB_OUTPUT_FLAGS = JOB_RUN_PERIODICALLY | JOB_EXEC_ERROR | JOB_RUNS_TODAY | JOB_NONINTERACTIVE; struct AT_ENUM { DWORD JobId; DWORD_PTR JobTime; DWORD DaysOfMonth; UCHAR DaysOfWeek; UCHAR Flags; LPWSTR Command; } alias AT_ENUM* PAT_ENUM, LPAT_ENUM; struct AT_INFO { DWORD_PTR JobTime; DWORD DaysOfMonth; UCHAR DaysOfWeek; UCHAR Flags; LPWSTR Command; } alias AT_INFO* PAT_INFO, LPAT_INFO; extern (Windows) { NET_API_STATUS NetScheduleJobAdd(LPWSTR, PBYTE, LPDWORD); NET_API_STATUS NetScheduleJobDel(LPWSTR, DWORD, DWORD); NET_API_STATUS NetScheduleJobEnum(LPWSTR, PBYTE*, DWORD, PDWORD, PDWORD, PDWORD); NET_API_STATUS NetScheduleJobGetInfo(LPWSTR, DWORD, PBYTE*); }
D
/Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/URLEncodedForm.build/Data/URLEncodedFormParser.swift.o : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Data/URLEncodedFormData.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Data/URLEncodedFormDataConvertible.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Codable/URLEncodedFormDecoder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Codable/URLEncodedFormEncoder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Data/URLEncodedFormParser.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Data/URLEncodedFormSerializer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Utilities/URLEncodedFormError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Utilities/Exports.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/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 /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/URLEncodedForm.build/URLEncodedFormParser~partial.swiftmodule : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Data/URLEncodedFormData.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Data/URLEncodedFormDataConvertible.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Codable/URLEncodedFormDecoder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Codable/URLEncodedFormEncoder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Data/URLEncodedFormParser.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Data/URLEncodedFormSerializer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Utilities/URLEncodedFormError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Utilities/Exports.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/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 /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/URLEncodedForm.build/URLEncodedFormParser~partial.swiftdoc : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Data/URLEncodedFormData.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Data/URLEncodedFormDataConvertible.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Codable/URLEncodedFormDecoder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Codable/URLEncodedFormEncoder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Data/URLEncodedFormParser.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Data/URLEncodedFormSerializer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Utilities/URLEncodedFormError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/url-encoded-form.git--8133570518800567758/Sources/URLEncodedForm/Utilities/Exports.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/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 /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
module carnival; void main() { import std.stdio; import std.algorithm; import std.range; import std.conv; auto firstFiveLetters = ["a", "b", "c", "d", "e"]; auto lastFiveLetters = ["v", "w", "x", "y", "z"]; auto numberGenerator = recurrence!("n + 1")(1).chunks(5); auto firstFiveNumbers = numberGenerator.front.map!(to!string); numberGenerator.popFront(); auto nextFiveNumbers = numberGenerator.front.map!(to!string); firstFiveLetters .chain(lastFiveLetters, firstFiveNumbers, nextFiveNumbers) .each!writeln; } // Local Variables: // compile-command: "rdmd container-carnival.d" // End:
D
instance BDT_10014_Addon_Thorus(Npc_Default) { name[0] = "Thorus"; guild = GIL_BDT; id = 10014; voice = 12; flags = 0; npcType = npctype_main; B_SetAttributesToChapter(self,5); fight_tactic = FAI_HUMAN_MASTER; EquipItem(self,ItMw_2h_Sld_Sword); B_CreateAmbientInv(self); CreateInvItems(self,ITKE_Addon_Thorus,1); B_SetNpcVisual(self,MALE,"Hum_Head_Fighter",Face_B_Thorus,BodyTex_B,itar_oldcamp_guard_h); Mdl_SetModelFatness(self,1); Mdl_ApplyOverlayMds(self,"Humans_Militia.mds"); B_GiveNpcTalents(self); B_SetFightSkills(self,65); daily_routine = Rtn_PReStart_10014; }; func void Rtn_PReStart_10014() { TA_Stand_Guarding(0,0,12,0,"BL_STAIRS_03"); TA_Stand_Guarding(12,0,0,0,"BL_STAIRS_03"); }; func void Rtn_Start_10014() { TA_Read_Bookstand(0,0,12,0,"BL_BLOODWYN_BOOK"); TA_Stand_Guarding(12,0,20,0,"BL_BLOODWYN_04"); TA_Stand_Guarding(20,0,0,0,"BL_STAIRS_03"); }; func void Rtn_TALK_10014() { TA_Stand_WP(0,0,12,0,"BL_UP_PLACE_03"); TA_Stand_WP(12,0,0,0,"BL_UP_PLACE_03"); };
D
import std.stdio, std.string, std.conv, std.exception; class ZmqMessage { private: alias frame = void[]; frame[] _buffer; size_t _length; public: this() { _length = 0; _buffer = new frame[64]; } this(size_t capacity) { _buffer = new frame[capacity]; } unittest { auto ctor = new ZmqMessage(10); assert(ctor._buffer.length == 10); } // add to the back void append(void[] frame) { if (_length == _buffer.length) ensureCapacity(_length + 1); _buffer[_length++] = frame; } unittest { auto item = new ZmqMessage(); item.append(new frame(10)); assert(item._buffer[0].length == 10, text("length should be 10, was ", item._buffer[0].length)); item.append(new frame(15)); assert(item._buffer[1].length == 15, text("length should be 15, was ", item._buffer[1].length)); } // add to the front void push(void[] frame) { if (_length == _buffer.length) ensureCapacity(_length + 1); _buffer[1 .. $] = _buffer[0 .. $ - 1]; _buffer[0] = frame; _length++; } unittest { auto item = new ZmqMessage(); item.push(new frame(10)); assert(item._buffer[0].length == 10, text("length should be 10, was ", item._buffer[0].length)); item.push(new frame(15)); assert(item._buffer[0].length == 15, text("length should be 15, was ", item._buffer[0].length)); } void[] pop() { return null; } @property size_t length() { return _length; } @property bool empty() { return _length ? false : true; } @property size_t capacity() { return _buffer.length; } @property void capacity(size_t value) { if(value == _buffer.length) { return; } enforce(value < _length, "Capacity can't go below the current length"); frame[] array = new frame[value]; if (_length > 0) { array = _buffer[0 .. _length]; } _buffer = array; return; } private: void ensureCapacity(size_t min) { if(_buffer.length >= min) return; if (_buffer.length ? (_buffer.length * 2) : 4 < min) { capacity = min; } } } void main() { }
D
struct DF { } alias EF = DF*;
D
module shu.util.lua.state; import std.array, std.range; import std.string : toStringz; import std.typecons : isTuple; import shu.util.lua.c.all; import shu.util.lua.stack; import shu.util.lua.conversions.classes; import shu.util.lua.base, shu.util.lua.table, shu.util.lua.lfunction, shu.util.lua.dynamic, shu.util.lua.error; /// Specify error handling scheme for $(MREF LuaState.doString) and $(MREF LuaState.doFile). enum LuaErrorHandler { None, /// No extra error handler. Traceback /// Append a stack traceback to the error message. } /** * Represents a Lua state instance. */ class LuaState { private: lua_State* L; // underlying state LuaTable _G, _R; // global and registry tables LuaFunction traceback; // debug.traceback, set in openLibs() bool owner = false; // whether or not to close the underlying state in the finalizer public: /** * Create a new, empty Lua state. The standard library is not loaded. * * If an uncaught error for any operation on this state * causes a Lua panic for the underlying state, * an exception of type $(DPREF error, LuaErrorException) is thrown. * * See_Also: $(MREF LuaState.openLibs) */ this() { lua_State* L = luaL_newstate(); owner = true; extern(C) static int panic(lua_State* L) { size_t len; const(char)* cMessage = lua_tolstring(L, -1, &len); string message = cMessage[0 .. len].idup; lua_pop(L, 1); throw new LuaErrorException(message); } lua_atpanic(L, &panic); this(L); } /** * Create a D wrapper for an existing Lua state. * * The new $(D LuaState) object does not assume ownership of the state. * Params: * L = state to wrap * Note: * The panic function is not changed - a Lua panic will not throw a D exception! * See_Also: $(MREF LuaState.setPanicHandler) */ this(lua_State* L) { this.L = L; _G = LuaTable(L, LUA_GLOBALSINDEX); _R = LuaTable(L, LUA_REGISTRYINDEX); lua_pushlightuserdata(L, cast(void*)this); lua_setfield(L, LUA_REGISTRYINDEX, "__dstate"); } ~this() { if(owner) { _R.release(); _G.release(); traceback.release(); lua_close(L); } else // Unregister state { lua_pushnil(L); lua_setfield(L, LUA_REGISTRYINDEX, "__dstate"); } } /// The underlying $(D lua_State) pointer for interfacing with C. @property lua_State* state() nothrow pure @safe { return L; } /** * Get the $(D LuaState) instance for a Lua state. * Params: * L = Lua state * Returns: * $(D LuaState) for the given $(D lua_State*), or $(D null) if a $(D LuaState) is not currently attached to the state */ static LuaState fromPointer(lua_State* L) @trusted { lua_getfield(L, LUA_REGISTRYINDEX, "__dstate"); auto lua = cast(LuaState)lua_touserdata(L, -1); lua_pop(L, 1); return lua; } /// Open the standard library. void openLibs() @trusted { luaL_openlibs(L); traceback = _G.get!LuaFunction("debug", "traceback"); } /// The global table for this instance. @property LuaTable globals() @trusted { return _G; } /// The _registry table for this instance. @property LuaTable registry() @trusted { return _R; } /** * Set a new panic handler. * Params: * onPanic = new panic handler * Examples: * ---------------------- auto L = luaL_newstate(); // found in luad.c.all auto lua = new LuaState(L); static void panic(LuaState lua, in char[] error) { throw new LuaErrorException(error.idup); } lua.setPanicHandler(&panic); * ---------------------- */ void setPanicHandler(void function(LuaState, in char[]) onPanic) @trusted { extern(C) static int panic(lua_State* L) { size_t len; const(char)* message = lua_tolstring(L, -1, &len); auto error = message[0 .. len]; lua_getfield(L, LUA_REGISTRYINDEX, "__dpanic"); auto callback = cast(void function(LuaState, in char[]))lua_touserdata(L, -1); assert(callback); scope(exit) lua_pop(L, 2); callback(LuaState.fromPointer(L), error); return 0; } lua_pushlightuserdata(L, onPanic); lua_setfield(L, LUA_REGISTRYINDEX, "__dpanic"); lua_atpanic(L, &panic); } /* * push debug.traceback error handler to the stack */ private void pushErrorHandler() { if(traceback.isNil) throw new Exception("LuaErrorHandler.Traceback requires openLibs()"); traceback.push(); } /* * a variant of luaL_do(string|file) with advanced error handling */ private void doChunk(alias loader)(in char[] s, LuaErrorHandler handler) { if(handler == LuaErrorHandler.Traceback) pushErrorHandler(); if(loader(L, toStringz(s)) || lua_pcall(L, 0, LUA_MULTRET, handler == LuaErrorHandler.Traceback? -2 : 0)) lua_error(L); if(handler == LuaErrorHandler.Traceback) lua_remove(L, 1); } /** * Compile a string of Lua _code. * Params: * code = _code to compile * Returns: * Loaded _code as a function. */ LuaFunction loadString(in char[] code) @trusted { if(luaL_loadstring(L, toStringz(code)) != 0) lua_error(L); return popValue!LuaFunction(L); } /** * Compile a file of Lua code. * Params: * path = _path to file * Returns: * Loaded code as a function. */ LuaFunction loadFile(in char[] path) @trusted { if(luaL_loadfile(L, toStringz(path)) != 0) lua_error(L); return popValue!LuaFunction(L); } /** * Execute a string of Lua _code. * Params: * code = _code to run * handler = error handling scheme * Returns: * Any _code return values * See_Also: * $(MREF LuaErrorHandler) */ LuaObject[] doString(in char[] code, LuaErrorHandler handler = LuaErrorHandler.None) @trusted { auto top = lua_gettop(L); doChunk!(luaL_loadstring)(code, handler); auto nret = lua_gettop(L) - top; return popStack(L, nret); } /** * Execute a file of Lua code. * Params: * path = _path to file * handler = error handling scheme * Returns: * Any script return values * See_Also: * $(MREF LuaErrorHandler) */ LuaObject[] doFile(in char[] path, LuaErrorHandler handler = LuaErrorHandler.None) @trusted { auto top = lua_gettop(L); doChunk!(luaL_loadfile)(path, handler); auto nret = lua_gettop(L) - top; return popStack(L, nret); } /** * Create a new, empty table. * Returns: * The new table */ LuaTable newTable()() @trusted { return newTable(0, 0); } /** * Create a new, empty table with pre-allocated space for members. * Params: * narr = number of pre-allocated array slots * nrec = number of pre-allocated non-array slots * Returns: * The new table */ LuaTable newTable()(uint narr, uint nrec) @trusted { lua_createtable(L, narr, nrec); return popValue!LuaTable(L); } /** * Create a new table from an $(D InputRange). * If the element type of the range is $(D Tuple!(T, U)), * then each element makes up a key-value pair, where * $(D T) is the key and $(D U) is the value of the pair. * For any other element type $(D T), a table with sequential numeric * keys is created (an array). * Params: * range = $(D InputRange) of key-value pairs or elements * Returns: * The new table */ LuaTable newTable(Range)(Range range) @trusted if(isInputRange!Range) { alias ElementType!Range Elem; static if(hasLength!Range) { immutable numElements = range.length; assert(numElements <= int.max, "lua_createtable only supports int.max many elements"); } else { immutable numElements = 0; } static if(isTuple!Elem) // Key-value pairs { static assert(Elem.length == 2, "key-value tuple must have exactly 2 values."); lua_createtable(L, 0, cast(int)numElements); foreach(pair; range) { pushValue(L, pair[0]); pushValue(L, pair[1]); lua_rawset(L, -3); } } else // Sequential table { lua_createtable(L, cast(int)numElements, 0); size_t i = 1; foreach(value; range) { pushValue(L, i); pushValue(L, value); lua_rawset(L, -3); ++i; } } return popValue!LuaTable(L); } /** * Wrap a D value in a Lua reference. * * Note that using this method is only necessary in certain situations, * like when you want to act on the reference before fully exposing it to Lua. * Params: * T = type of reference. Must be $(D LuaObject), $(D LuaTable), $(D LuaFunction) or $(D LuaDynamic). * Defaults to $(D LuaObject). * value = D value to _wrap * Returns: * A Lua reference to value */ T wrap(T = LuaObject, U)(U value) @trusted if(is(T : LuaObject) || is(T == LuaDynamic)) { pushValue(L, value); return popValue!T(L); } /** * Register a D class or struct with Lua. * * This method exposes a type's constructors and static interface to Lua. * Params: * T = class or struct to register * Returns: * Reference to the registered type in Lua */ LuaObject registerType(T)() @trusted { pushStaticTypeInterface!T(L); return popValue!LuaObject(L); } /** * Same as calling $(D globals._get) with the same arguments. * See_Also: * $(DPREF table, LuaTable._get) */ T get(T, U...)(U args) { return globals.get!T(args); } /** * Same as calling $(D globals.get!LuaObject) with the same arguments. * See_Also: * $(DPREF table, LuaTable._opIndex) */ LuaObject opIndex(T...)(T args) { return globals.get!LuaObject(args); } /** * Same as calling $(D globals._set) with the same arguments. * See_Also: * $(DPREF table, LuaTable._set) */ void set(T, U)(T key, U value) { globals.set(key, value); } /** * Same as calling $(D globals._opIndexAssign) with the same arguments. * See_Also: * $(DPREF table, LuaTable._opIndexAssign) */ void opIndexAssign(T, U...)(T value, U args) { globals()[args] = value; } } version(unittest) { import luad.testing; import std.string : splitLines; private LuaState lua; } unittest { lua = new LuaState; assert(LuaState.fromPointer(lua.L) == lua); lua.openLibs(); //default panic handler string msg; try { lua.doString(`error("Hello, D!")`, LuaErrorHandler.Traceback); } catch(LuaErrorException e) { auto lines = splitLines(e.msg); assert(lines.length > 1); assert(lines[0] == `[string "error("Hello, D!")"]:1: Hello, D!`); } lua.set("success", false); assert(!lua.get!bool("success")); lua.doString(`success = true`); assert(lua.get!bool("success")); auto foo = lua.wrap!LuaTable([1, 2, 3]); foo[4] = "test"; // Lua tables start at 1 lua["foo"] = foo; unittest_lua(lua.state, ` for i = 1, 3 do assert(foo[i] == i) end assert(foo[4] == "test") `); LuaFunction multipleReturns = lua.loadString(`return 1, "two", 3`); LuaObject[] results = multipleReturns(); assert(results.length == 3); assert(results[0].type == LuaType.Number); assert(results[1].type == LuaType.String); assert(results[2].type == LuaType.Number); } unittest // LuaTable.newTable(range) { import std.algorithm; auto input = [1, 2, 3]; lua["tab"] = lua.newTable(input); unittest_lua(lua.state, ` assert(#tab == 3) for i = 1, 3 do assert(tab[i] == i) end `); lua["tab"] = lua.newTable(filter!(i => i == 2)(input)); unittest_lua(lua.state, ` assert(#tab == 1) assert(tab[1] == 2) `); auto keys = iota(7, 14); auto values = repeat(42); lua["tab"] = lua.newTable(zip(keys, values)); unittest_lua(lua.state, ` assert(not tab[1]) assert(not tab[6]) for i = 7, 13 do assert(tab[i] == 42) end assert(not tab[14]) `); } unittest { static class Test { private: /+ Not working as of 2.062 static int priv; static void priv_fun() {} +/ public: static int pub = 123; static string foo() { return "bar"; } this(int i) { _bar = i; } int bar(){ return _bar; } int _bar; } lua["Test"] = lua.registerType!Test(); unittest_lua(lua.state, ` assert(type(Test) == "table") -- TODO: private members are currently pushed too... --assert(Test.priv == nil) --assert(Test.priv_fun == nil) assert(Test._foo == nil) assert(Test._bar == nil) local test = Test(42) assert(test:bar() == 42) assert(Test.pub == 123) assert(Test.foo() == "bar") `); } unittest { // setPanicHandler, keep this test last static void panic(LuaState lua, in char[] error) { throw new Exception("hijacked error!"); } lua.setPanicHandler(&panic); try { lua.doString(`error("test")`); } catch(Exception e) { assert(e.msg == "hijacked error!"); } }
D
// URL: https://atcoder.jp/contests/abc088/tasks/abc088_d import std.algorithm, std.container, std.conv, std.math, std.range, std.typecons, std.stdio, std.string; auto rdsp(){return readln.splitter;} void pick(R,T)(ref R r,ref T t){t=r.front.to!T;r.popFront;} void pickV(R,T...)(ref R r,ref T t){foreach(ref v;t)pick(r,v);} void readV(T...)(ref T t){auto r=rdsp;foreach(ref v;t)pick(r,v);} void readA(T)(size_t n,ref T[]t){t=new T[](n);auto r=rdsp;foreach(ref v;t)pick(r,v);} void readM(T)(size_t r,size_t c,ref T[][]t){t=new T[][](r);foreach(ref v;t)readA(c,v);} void readC(T...)(size_t n,ref T t){foreach(ref v;t)v=new typeof(v)(n);foreach(i;0..n){auto r=rdsp;foreach(ref v;t)pick(r,v[i]);}} void readS(T)(size_t n,ref T t){t=new T(n);foreach(ref v;t){auto r=rdsp;foreach(ref j;v.tupleof)pick(r,j);}} void writeA(T)(size_t n,T t){foreach(i,v;t.enumerate){write(v);if(i<n-1)write(" ");}writeln;} version(unittest) {} else void main() { int h, w; readV(h, w); string[] s; readC(h, s); auto g = GraphW!()(h*w); foreach (i; 0..h) foreach (j; 0..w) if (s[i][j] == '.') { if (i > 0 && s[i-1][j] == '.') g.addEdge(i*w+j, (i-1)*w+j, 1); if (i < h-1 && s[i+1][j] == '.') g.addEdge(i*w+j, (i+1)*w+j, 1); if (j > 0 && s[i][j-1] == '.') g.addEdge(i*w+j, i*w+(j-1), 1); if (j < w-1 && s[i][j+1] == '.') g.addEdge(i*w+j, i*w+(j+1), 1); } auto d = g.dijkstra(0); if (d[h*w-1] == g.inf) { writeln(-1); } else { auto r = s.map!(si => si.count('#')).sum; writeln(h*w-(d[h*w-1]+1)-r); } } struct GraphW(N = int, W = int, W i = 10^^9) { alias Node = N, Wt = W, inf = i; struct Edge { Node src, dst; Wt wt; alias cap = wt; } Node n; Edge[][] g; alias g this; this(Node n) { this.n = n; g = new Edge[][](n); } void addEdge(Node u, Node v, Wt w) { g[u] ~= Edge(u, v, w); } void addEdgeB(Node u, Node v, Wt w) { g[u] ~= Edge(u, v, w); g[v] ~= Edge(v, u, w); } } template Dijkstra(Graph) { import std.array, std.container, std.traits; alias Node = TemplateArgsOf!Graph[0], Wt = TemplateArgsOf!Graph[1]; alias Edge = Graph.Edge; void dijkstra(ref Graph g, Node s, out Wt[] dist, out Node[] prev) { auto n = g.n, sent = n; dist = new Wt[](n); dist[] = g.inf; dist[s] = 0; prev = new Node[](n); prev[] = sent; auto q = heapify!("a.wt > b.wt")(Array!Edge(Edge(sent, s, 0))); while (!q.empty) { auto e = q.front; q.removeFront(); if (prev[e.dst] != sent) continue; prev[e.dst] = e.src; foreach (f; g[e.dst]) { auto w = e.wt + f.wt; if (dist[f.dst] > w) { dist[f.dst] = w; q.insert(Edge(f.src, f.dst, w)); } } } } auto dijkstra(ref Graph g, Node s) { Wt[] dist; Node[] prev; dijkstra(g, s, dist, prev); return dist; } } auto dijkstra(G, N)(G g, N s) { return Dijkstra!G.dijkstra(g, s); }
D
.source T_if_eqz_10.java .class public dot.junit.opcodes.if_eqz.d.T_if_eqz_10 .super java/lang/Object .method public <init>()V .limit regs 1 invoke-direct {v0}, java/lang/Object/<init>()V return-void .end method .method public run(I)Z .limit regs 6 if-eqz v5, Label8 const/4 v5, 0 return v5 Label8: const v5, 0 nop return v5 .end method
D