code
stringlengths
3
10M
language
stringclasses
31 values
/* * $Id: input.d,v 1.1.1.1 2006/02/19 04:57:26 kenta Exp $ * * Copyright 2004 Kenta Cho. Some rights reserved. */ module abagames.util.sdl.input; private import derelict.sdl2.sdl; /** * Input device interface. */ public interface Input { public void handleEvent(SDL_Event *event); } public class MultipleInputDevice: Input { public: Input[] inputs; public void handleEvent(SDL_Event *event) { foreach (Input i; inputs) i.handleEvent(event); } }
D
import std.stdio, std.array, std.string, std.conv, std.algorithm; import std.typecons, std.range, std.random, std.math, std.container; import std.numeric, std.bigint, core.bitop; void main() { auto s = readln.split.map!(to!int); auto N = s[0]; auto M = s[1]; auto A = M.iota.map!(_ => readln.split.map!(to!int).array).array; A.sort!"a[0] == b[0] ? a[1] > b[1] : a[0] < b[0]"; auto dp = new int[](N+1); dp.fill(1<<30); dp[0] = 0; foreach (i; 0..M) { foreach (j; A[i][0]..A[i][1]+1) { dp[j] = min(dp[j], dp[A[i][0]-1] + 1); } } writeln(dp[N] >= 1<<30 ? "Impossible" : dp[N].to!string); } import std.stdio, std.array, std.string, std.conv, std.algorithm; import std.typecons, std.range, std.random, std.math, std.container; import std.numeric, std.bigint, core.bitop; void main() { auto s = readln.split.map!(to!int); auto N = s[0]; auto M = s[1]; auto A = M.iota.map!(_ => readln.split.map!(to!int).array).array; A.sort!"a[0] == b[0] ? a[1] > b[1] : a[0] < b[0]"; auto dp = new int[](N+1); dp.fill(1<<30); dp[0] = 0; foreach (i; 0..M) { foreach (j; A[i][0]..A[i][1]+1) { dp[j] = min(dp[j], dp[A[i][0]-1] + 1); } } writeln(dp[N] >= 1<<30 ? "Impossible" : dp[N].to!string); }
D
module ClientGameInstance; import Cell; import Level; import Entity; import Messages; import GameLog; import Connections: Queue; import ClientGameView:ClientGameView; import utility.ConIO; import utility.Geometry; import std.format:format; enum PROCESS_RESULT {OK, CONNECT, DISCONNECT, EXIT} /* ok: nothing new connect: connect to server disconnect: drop connection exit: exit program */ const Direction[char] move_keys; static this() { move_keys = [ 77: Direction.E, 81: Direction.SE, 80: Direction.S, 79: Direction.SW, 75: Direction.W, 71: Direction.NW, 72: Direction.N, 73: Direction.NE ]; } class ClientGameInstance { Level level = null; ulong player_unitID = -1; ulong client_step = 0; Queue!(Message) messages_out = new Queue!(Message)(); Queue!(Message) messages_in = new Queue!(Message)(); PROCESS_RESULT ProcessMessages() { while(!(messages_in.empty)) { Message msg = messages_in.pop(); MessageType msg_t = msg.msg_t; switch(msg_t) { case MessageType.LEVEL_DATA: LevelDataMessage msg_ok = cast(LevelDataMessage)msg; if(level !is null) level.destroy(); level = msg_ok.data; ClientGameView.level = level; ClientGameView.SetEntityFollow(cast(Entity)(level.units[msg_ok.player_unitID])); ClientGameView.RequestMapRedraw(); ClientGameView.VisionUnitAdd(level.units[msg_ok.player_unitID]); ClientGameView.VisionUnitUpdate(msg_ok.player_unitID); player_unitID = msg_ok.player_unitID; break; case MessageType.UNIT_MOVED: UnitMovedMessage msg_ok = cast(UnitMovedMessage)msg; level.units[msg_ok.u_id].previous_position = level.units[msg_ok.u_id].position; level.units[msg_ok.u_id].position = msg_ok.pos; ClientGameView.EntityRedraw(cast(Entity)(level.units[msg_ok.u_id])); if(ClientGameView.IsVisionUnit(msg_ok.u_id)) ClientGameView.VisionUnitUpdate(msg_ok.u_id); break; default: break; } } PROCESS_RESULT result; char[2] keycode; int keys_pressed = 0; for(int i = 0; i < 2; i++) { if(kbhit() <= 0) break; keycode[i] = cast(char)getch(); keys_pressed = i+1; } assert(keys_pressed != 1); if(keys_pressed == 0) return PROCESS_RESULT.OK; if(keycode[0]!=0) { //Log.Write(format!"char1 id %d"(cast(int)(keycode[0]))); switch(keycode[0]) { case 'x': // register LogInMessage msg = new LogInMessage("bartosz", "hunter2"); msg.Message.msg_t = MessageType.REGISTER; messages_out.push(cast(Message)msg); break; case 'l': // log in LogInMessage msg = new LogInMessage("bartosz", "hunter2"); messages_out.push(cast(Message)msg); break; case 'o': // log out Message msg = new Message(MessageType.LOG_OUT); messages_out.push(msg); break; case 'p': // connect result = PROCESS_RESULT.CONNECT; break; case ';': // disconnect result = PROCESS_RESULT.DISCONNECT; break; default: break; } } else { //Log.Write(format!"char2 id %d"(cast(int)(keycode[1]))); switch(keycode[1]) { case 71: case 72: case 73: case 75: case 77: case 79: case 80: case 81: MoveActionMessage msg = new MoveActionMessage(move_keys[keycode[1]]); messages_out.push(cast(Message)msg); break; default: break; } } client_step++; /*if(client_step%30 == 0) { if(level !is null) { foreach(u; level.units.values) { Log.Write(format!"UNIT %d, POS (%d, %d)"(u.ID, u.position.X, u.position.Y)); } } }*/ return result; } }
D
/Users/gem/Desktop/MovieMoya/the-movie-db/DerivedData/TheNewMovie/Build/Intermediates.noindex/IBDesignables/Intermediates.noindex/Pods.build/Debug-iphonesimulator/SnapKit.build/Objects-normal/x86_64/Typealiases.o : /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintLayoutGuideDSL.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintDSL.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintLayoutSupportDSL.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintViewDSL.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintLayoutGuide.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMakerExtendable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMakerRelatable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMakerEditable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMakerFinalizable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMakerPriortizable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintConfig.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/Debugging.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintItem.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/LayoutConstraintItem.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintRelation.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintDescription.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMaker.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/Typealiases.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintAttributes.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintLayoutGuide+Extensions.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/UILayoutSupport+Extensions.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintView+Extensions.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintInsets.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintRelatableTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMultiplierTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintOffsetTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintInsetTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintConstantTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintPriorityTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/Constraint.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/LayoutConstraint.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintLayoutSupport.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintView.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintPriority.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/gem/Desktop/MovieMoya/the-movie-db/Pods/Target\ Support\ Files/SnapKit/SnapKit-umbrella.h /Users/gem/Desktop/MovieMoya/the-movie-db/DerivedData/TheNewMovie/Build/Intermediates.noindex/IBDesignables/Intermediates.noindex/Pods.build/Debug-iphonesimulator/SnapKit.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/gem/Desktop/MovieMoya/the-movie-db/DerivedData/TheNewMovie/Build/Intermediates.noindex/IBDesignables/Intermediates.noindex/Pods.build/Debug-iphonesimulator/SnapKit.build/Objects-normal/x86_64/Typealiases~partial.swiftmodule : /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintLayoutGuideDSL.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintDSL.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintLayoutSupportDSL.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintViewDSL.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintLayoutGuide.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMakerExtendable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMakerRelatable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMakerEditable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMakerFinalizable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMakerPriortizable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintConfig.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/Debugging.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintItem.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/LayoutConstraintItem.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintRelation.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintDescription.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMaker.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/Typealiases.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintAttributes.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintLayoutGuide+Extensions.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/UILayoutSupport+Extensions.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintView+Extensions.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintInsets.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintRelatableTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMultiplierTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintOffsetTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintInsetTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintConstantTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintPriorityTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/Constraint.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/LayoutConstraint.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintLayoutSupport.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintView.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintPriority.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/gem/Desktop/MovieMoya/the-movie-db/Pods/Target\ Support\ Files/SnapKit/SnapKit-umbrella.h /Users/gem/Desktop/MovieMoya/the-movie-db/DerivedData/TheNewMovie/Build/Intermediates.noindex/IBDesignables/Intermediates.noindex/Pods.build/Debug-iphonesimulator/SnapKit.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/gem/Desktop/MovieMoya/the-movie-db/DerivedData/TheNewMovie/Build/Intermediates.noindex/IBDesignables/Intermediates.noindex/Pods.build/Debug-iphonesimulator/SnapKit.build/Objects-normal/x86_64/Typealiases~partial.swiftdoc : /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintLayoutGuideDSL.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintDSL.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintLayoutSupportDSL.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintViewDSL.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintLayoutGuide.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMakerExtendable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMakerRelatable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMakerEditable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMakerFinalizable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMakerPriortizable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintConfig.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/Debugging.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintItem.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/LayoutConstraintItem.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintRelation.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintDescription.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMaker.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/Typealiases.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintAttributes.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintLayoutGuide+Extensions.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/UILayoutSupport+Extensions.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintView+Extensions.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintInsets.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintRelatableTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintMultiplierTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintOffsetTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintInsetTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintConstantTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintPriorityTarget.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/Constraint.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/LayoutConstraint.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintLayoutSupport.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintView.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintPriority.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/gem/Desktop/MovieMoya/the-movie-db/Pods/Target\ Support\ Files/SnapKit/SnapKit-umbrella.h /Users/gem/Desktop/MovieMoya/the-movie-db/DerivedData/TheNewMovie/Build/Intermediates.noindex/IBDesignables/Intermediates.noindex/Pods.build/Debug-iphonesimulator/SnapKit.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/home/ankit/pandora/substrate-node-template/target/release/build/libp2p-core-a1b54a1e1d66b8ba/build_script_build-a1b54a1e1d66b8ba: /home/ankit/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-core-0.22.1/build.rs /home/ankit/pandora/substrate-node-template/target/release/build/libp2p-core-a1b54a1e1d66b8ba/build_script_build-a1b54a1e1d66b8ba.d: /home/ankit/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-core-0.22.1/build.rs /home/ankit/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-core-0.22.1/build.rs:
D
module android.java.org.xml.sax.SAXParseException_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import3 = android.java.java.io.PrintStream_d_interface; import import1 = android.java.java.lang.JavaException_d_interface; import import4 = android.java.java.io.PrintWriter_d_interface; import import6 = android.java.java.lang.Class_d_interface; import import5 = android.java.java.lang.StackTraceElement_d_interface; import import0 = android.java.org.xml.sax.Locator_d_interface; import import2 = android.java.java.lang.JavaThrowable_d_interface; final class SAXParseException : IJavaObject { static immutable string[] _d_canCastTo = [ ]; @Import this(string, import0.Locator); @Import this(string, import0.Locator, import1.JavaException); @Import this(string, string, string, int, int); @Import this(string, string, string, int, int, import1.JavaException); @Import string getPublicId(); @Import string getSystemId(); @Import int getLineNumber(); @Import int getColumnNumber(); @Import string getMessage(); @Import import1.JavaException getException(); @Import @JavaName("toString") string toString_(); override string toString() { return arsd.jni.javaObjectToString(this); } @Import string getLocalizedMessage(); @Import import2.JavaThrowable getCause(); @Import import2.JavaThrowable initCause(import2.JavaThrowable); @Import void printStackTrace(); @Import void printStackTrace(import3.PrintStream); @Import void printStackTrace(import4.PrintWriter); @Import import2.JavaThrowable fillInStackTrace(); @Import import5.StackTraceElement[] getStackTrace(); @Import void setStackTrace(import5.StackTraceElement[]); @Import void addSuppressed(import2.JavaThrowable); @Import import2.JavaThrowable[] getSuppressed(); @Import import6.Class getClass(); @Import int hashCode(); @Import bool equals(IJavaObject); @Import void notify(); @Import void notifyAll(); @Import void wait(long); @Import void wait(long, int); @Import void wait(); mixin IJavaObjectImplementation!(false); public static immutable string _javaParameterString = "Lorg/xml/sax/SAXParseException;"; }
D
module dlangide.ui.searchPanel; import dlangui; import dlangide.ui.frame; import dlangide.ui.wspanel; import dlangide.workspace.workspace; import dlangide.workspace.project; import std.string; import std.conv; // parallel search is disabled to fix #178 //version = PARALLEL_SEARCH; interface SearchResultClickHandler { bool onSearchResultClick(int line); } //LogWidget with highlighting for search results. class SearchLogWidget : LogWidget { //Sends which line was clicked. Signal!SearchResultClickHandler searchResultClickHandler; this(string ID){ super(ID); scrollLock = false; onThemeChanged(); } protected uint _filenameColor = 0x0000C0; protected uint _errorColor = 0xFF0000; protected uint _warningColor = 0x606000; protected uint _deprecationColor = 0x802040; /// handle theme change: e.g. reload some themed resources override void onThemeChanged() { super.onThemeChanged(); _filenameColor = style.customColor("build_log_filename_color", 0x0000C0); _errorColor = style.customColor("build_log_error_color", 0xFF0000); _warningColor = style.customColor("build_log_warning_color", 0x606000); _deprecationColor = style.customColor("build_log_deprecation_color", 0x802040); } override protected CustomCharProps[] handleCustomLineHighlight(int line, dstring txt, ref CustomCharProps[] buf) { uint defColor = textColor; uint flags = 0; if (buf.length < txt.length) buf.length = txt.length; //Highlights the filename if(txt.startsWith("Matches in ")) { CustomCharProps[] colors = buf[0..txt.length]; uint cl = defColor; flags = 0; for (int i = 0; i < txt.length; i++) { dstring rest = txt[i..$]; if(i == 11) { cl = _filenameColor; flags = TextFlag.Underline; } colors[i].color = cl; colors[i].textFlags = flags; } return colors; } else { //Highlight line and column CustomCharProps[] colors = buf[0..txt.length]; uint cl = _filenameColor; flags = 0; int foundHighlightStart = 0; int foundHighlightEnd = 0; bool textStarted = false; for (int i = 0; i < txt.length; i++) { dstring rest = txt[i..$]; if (rest.startsWith(" -->"d)) { cl = _warningColor; flags = 0; } if(i == 4) { cl = _errorColor; } if (textStarted && _textToHighlight.length > 0) { if (rest.startsWith(_textToHighlight)) { foundHighlightStart = i; foundHighlightEnd = i + cast(int)_textToHighlight.length; } if (i >= foundHighlightStart && i < foundHighlightEnd) { flags = TextFlag.Underline; cl = _deprecationColor; } else { flags = 0; cl = defColor; } } colors[i].color = cl; colors[i].textFlags = flags; //Colors to apply in following iterations of the loop. if(!textStarted && rest.startsWith("]")) { cl = defColor; flags = 0; textStarted = true; } } return colors; } } override bool onMouseEvent(MouseEvent event) { bool res = super.onMouseEvent(event); if (event.action == MouseAction.ButtonDown && event.button == MouseButton.Left) { int line = _caretPos.line; if (searchResultClickHandler.assigned) { searchResultClickHandler(line); return true; } } return res; } override bool onKeyEvent(KeyEvent event) { if (event.action == KeyAction.KeyDown && event.keyCode == KeyCode.RETURN) { int line = _caretPos.line; if (searchResultClickHandler.assigned) { searchResultClickHandler(line); return true; } } return super.onKeyEvent(event); } } struct SearchMatch { int line; long col; dstring lineContent; } struct SearchMatchList { string filename; SearchMatch[] matches; } class SearchWidget : TabWidget { HorizontalLayout _layout; EditLine _findText; SearchLogWidget _resultLog; int _resultLogMatchIndex; ComboBox _searchScope; ImageCheckButton _cbCaseSensitive; ImageCheckButton _cbWholeWords; protected IDEFrame _frame; protected SearchMatchList[] _matchedList; //Sets focus on result; void focus() { _findText.setFocus(); _findText.handleAction(new Action(EditorActions.SelectAll)); } bool onFindButtonPressed(Widget source) { dstring txt = _findText.text; if (txt.length > 0) { findText(txt); _resultLog.setFocus(); } return true; } public void setSearchText(dstring txt){ _findText.text = txt; } this(string ID, IDEFrame frame) { super(ID); _frame = frame; layoutHeight(FILL_PARENT); //Remove title, more button removeAllChildren(); _layout = new HorizontalLayout(); _layout.addChild(new TextWidget("FindLabel", "Find: "d)); _layout.layoutWidth = FILL_PARENT; _findText = new EditLine(); _findText.padding(Rect(5,4,50,4)); _findText.layoutWidth = FILL_PARENT; // to handle Enter key press in editor _findText.enterKey = delegate (EditWidgetBase editor) { return onFindButtonPressed(this); }; _layout.addChild(_findText); auto goButton = new ImageButton("findTextButton", "edit-find"); goButton.click = &onFindButtonPressed; _layout.addChild(goButton); _layout.addChild(new HSpacer); _searchScope = new ComboBox("searchScope", ["File"d, "Project"d, "Dependencies"d, "Everywhere"d]); _searchScope.selectedItemIndex = 0; _layout.addChild(_searchScope); _cbCaseSensitive = new ImageCheckButton("cbCaseSensitive", "find_case_sensitive"); _cbCaseSensitive.tooltipText = "EDIT_FIND_CASE_SENSITIVE"; _cbCaseSensitive.styleId = "TOOLBAR_BUTTON"; _cbCaseSensitive.checked = true; _layout.addChild(_cbCaseSensitive); _cbWholeWords = new ImageCheckButton("cbWholeWords", "find_whole_words"); _cbWholeWords.tooltipText = "EDIT_FIND_WHOLE_WORDS"; _cbWholeWords.styleId = "TOOLBAR_BUTTON"; _layout.addChild(_cbWholeWords); addChild(_layout); _resultLog = new SearchLogWidget("SearchLogWidget"); _resultLog.searchResultClickHandler = &onMatchClick; _resultLog.layoutHeight(FILL_PARENT); addChild(_resultLog); } //Recursively search for text in projectItem void searchInProject(ProjectItem project, dstring text) { if (project.isFolder == true) { ProjectFolder projFolder = cast(ProjectFolder) project; import std.parallelism; for (int i = 0; i < projFolder.childCount; i++) { version (PARALLEL_SEARCH) taskPool.put(task(&searchInProject, projFolder.child(i), text)); else searchInProject(projFolder.child(i), text); } } else { Log.d("Searching in: " ~ project.filename); SearchMatchList match = findMatches(project.filename, text); if(match.matches.length > 0) { synchronized { _matchedList ~= match; invalidate(); //Widget must updated with new matches } } } } bool findText(dstring source) { Log.d("Finding " ~ source); _resultLog.setTextToHighlight(""d, 0); _resultLog.text = ""d; if (currentWorkspace is null) return false; _matchedList = []; _resultLogMatchIndex = 0; import std.parallelism; //for taskpool. switch (_searchScope.text) { case "File": if (_frame.currentEditor) { SearchMatchList match = findMatches(_frame.currentEditor.filename, source); if(match.matches.length > 0) _matchedList ~= match; } break; case "Project": foreach(Project project; _frame._wsPanel.workspace.projects) { if(!project.isDependency) { version (PARALLEL_SEARCH) taskPool.put(task(&searchInProject, project.items, source)); else searchInProject(project.items, source); } } break; case "Dependencies": foreach(Project project; _frame._wsPanel.workspace.projects) { if(project.isDependency) { version (PARALLEL_SEARCH) taskPool.put(task(&searchInProject, project.items, source)); else searchInProject(project.items, source); } } break; case "Everywhere": foreach(Project project; _frame._wsPanel.workspace.projects) { version (PARALLEL_SEARCH) taskPool.put(task(&searchInProject, project.items, source)); else searchInProject(project.items, source); } break; default: assert(0); } _resultLog.setTextToHighlight(source, TextSearchFlag.CaseSensitive); return true; } override void onDraw(DrawBuf buf) { //Check if there are new matches to display if(_resultLogMatchIndex < _matchedList.length) { for(; _resultLogMatchIndex < _matchedList.length; _resultLogMatchIndex++) { SearchMatchList matchList = _matchedList[_resultLogMatchIndex]; _resultLog.appendText("Matches in "d ~ to!dstring(matchList.filename) ~ '\n'); foreach(SearchMatch match; matchList.matches) { _resultLog.appendText(" --> ["d ~ to!dstring(match.line+1) ~ ":"d ~ to!dstring(match.col) ~ "]" ~ match.lineContent ~"\n"d); } } } super.onDraw(buf); } void checkSearchMode() { if (!_frame.currentEditor && _searchScope.selectedItemIndex == 0) _searchScope.selectedItemIndex = 1; } uint makeSearchFlags() { uint res = 0; if (_cbCaseSensitive.checked) res |= TextSearchFlag.CaseSensitive; if (_cbWholeWords.checked) res |= TextSearchFlag.WholeWords; return res; } //Find the match/matchList that corrosponds to the line in _resultLog bool onMatchClick(int line) { line++; foreach(matchList; _matchedList){ line--; if (line == 0) { if (_frame.openSourceFile(matchList.filename)) { _frame.currentEditor.setTextToHighlight(_findText.text, makeSearchFlags); _frame.currentEditor.setFocus(); } return true; } foreach(match; matchList.matches) { line--; if (line == 0) { if (_frame.openSourceFile(matchList.filename)) { _frame.caretHistory.pushNewPosition(); _frame.currentEditor.setCaretPos(match.line, to!int(match.col)); _frame.currentEditor.setTextToHighlight(_findText.text, makeSearchFlags); _frame.currentEditor.setFocus(); _frame.caretHistory.pushNewPosition(); } return true; } } } return false; } } SearchMatchList findMatches(in string filename, in dstring searchString) { EditableContent content = new EditableContent(true); content.load(filename); SearchMatchList match; match.filename = filename; foreach(lineIndex, dstring line; content.lines) { auto colIndex = line.indexOf(searchString); if (colIndex != -1) { match.matches ~= SearchMatch(cast(int)lineIndex, colIndex, line); } } return match; }
D
module tests.to_data; import serious.generate; import tests.types; // fields only, generated constructor unittest { StructSimple s; s.i = 5; s.b = true; s.f = 4.2f; s.s = "tally-ho!"; auto data = s._toData; assert(data.i == 5); assert(data.b == true); assert(data.f == 4.2f); assert(data.s == "tally-ho!"); } // private fields only, generated constructor unittest { StructPrivate s; // getField is just a test helper to set private fields s.setField!"i"(5); s.setField!"b"(true); s.setField!"f"(4.2f); s.setField!"s"("tally-ho!"); auto data = s._toData; assert(data.i == 5); assert(data.b == true); assert(data.f == 4.2f); assert(data.s == "tally-ho!"); }
D
var int onceTriggeredAngryGirlDoor; func void B_AssessSurprise() { Npc_SetTarget(self,other); self.aivar[AIV_ATTACKREASON] = AR_GuildEnemy; }; func void ZS_Attack() { Perception_Set_Minimal(); Npc_PercEnable(self,PERC_ASSESSSURPRISE,B_AssessSurprise); B_ValidateOther(); self.aivar[AIV_LASTTARGET] = Hlp_GetInstanceID(other); if(C_WantToFlee(self,other)) { Npc_ClearAIQueue(self); B_ClearPerceptions(self); Npc_SetTarget(self,other); AI_StartState(self,ZS_Flee,0,""); return; }; if(self.aivar[AIV_LOADGAME] == FALSE) { B_Say_AttackReason(); }; if(Npc_HasEquippedMeleeWeapon(self) == FALSE) { AI_EquipBestMeleeWeapon(self); }; if(Npc_HasEquippedRangedWeapon(self) == FALSE) { AI_EquipBestRangedWeapon(self); }; if(Npc_IsInFightMode(self,FMODE_NONE)) { AI_EquipBestRangedWeapon(self); AI_EquipBestMeleeWeapon(self); }; AI_Standup(self); B_StopLookAt(self); B_TurnToNpc(self,other); AI_SetWalkMode(self,NPC_RUN); self.aivar[AIV_Guardpassage_Status] = GP_NONE; self.aivar[AIV_LastAbsolutionLevel] = B_GetCurrentAbsolutionLevel(self); self.aivar[AIV_PursuitEnd] = FALSE; self.aivar[AIV_StateTime] = 0; self.aivar[AIV_TAPOSITION] = 0; self.aivar[AIV_HitByOtherNpc] = 0; self.aivar[AIV_SelectSpell] = 0; }; func int ZS_Attack_Loop() { Npc_GetTarget(self); if(Npc_GetDistToNpc(self,other) > self.aivar[AIV_FightDistCancel]) { Npc_ClearAIQueue(self); AI_Standup(self); self.aivar[AIV_PursuitEnd] = TRUE; //NS - 18/07/2013 B_DS2P_CheckLog_OnFightCanceled(self, other); //сюда пишем все квестовые проверки return LOOP_END; }; if((Npc_GetStateTime(self) > self.aivar[AIV_MM_FollowTime]) && (self.aivar[AIV_PursuitEnd] == FALSE)) { Npc_ClearAIQueue(self); AI_Standup(self); self.aivar[AIV_PursuitEnd] = TRUE; self.aivar[AIV_Dist] = Npc_GetDistToNpc(self,other); self.aivar[AIV_StateTime] = Npc_GetStateTime(self); if(other.guild < GIL_SEPERATOR_HUM) { B_Say(self,other,"$RUNCOWARD"); }; }; if(self.aivar[AIV_PursuitEnd] == TRUE) { if(Npc_GetDistToNpc(self,other) > self.senses_range) { return LOOP_END; }; if(Npc_GetStateTime(self) > self.aivar[AIV_StateTime]) { if((Npc_GetDistToNpc(self,other) < self.aivar[AIV_Dist]) || !(C_BodyStateContains(other,BS_RUN) && !C_BodyStateContains(other,BS_JUMP))) { self.aivar[AIV_PursuitEnd] = FALSE; Npc_SetStateTime(self,0); self.aivar[AIV_StateTime] = 0; } else { B_TurnToNpc(self,other); self.aivar[AIV_Dist] = Npc_GetDistToNpc(self,other); self.aivar[AIV_StateTime] = Npc_GetStateTime(self); }; }; return LOOP_CONTINUE; }; if(B_GetCurrentAbsolutionLevel(self) > self.aivar[AIV_LastAbsolutionLevel]) { Npc_ClearAIQueue(self); AI_Standup(self); return LOOP_END; }; if((C_BodyStateContains(other,BS_SWIM) || C_BodyStateContains(other,BS_DIVE)) && (self.aivar[AIV_MM_FollowInWater] == FALSE)) { Npc_ClearAIQueue(self); AI_Standup(self); self.aivar[AIV_PursuitEnd] = TRUE; return LOOP_END; }; if(self.aivar[AIV_WaitBeforeAttack] >= 1) { var int x; var float y; x = self.aivar[AIV_WaitBeforeAttack]; y = IntToFloat(x); //AI_Wait(self,0.8); AI_Wait(self,y); self.aivar[AIV_WaitBeforeAttack] = 0; }; if(self.aivar[AIV_MaxDistToWp] > 0) { if((Npc_GetDistToWP(self,self.wp) > self.aivar[AIV_MaxDistToWp]) && (Npc_GetDistToWP(other,self.wp) > self.aivar[AIV_MaxDistToWp])) { self.fight_tactic = FAI_NAILED; } else { self.fight_tactic = self.aivar[AIV_OriginalFightTactic]; }; }; if(!C_BodyStateContains(other,BS_RUN) && !C_BodyStateContains(other,BS_JUMP)) { Npc_SetStateTime(self,0); }; if((Npc_GetStateTime(self) > 2) && (self.aivar[AIV_TAPOSITION] == 0)) { B_CallGuards(); self.aivar[AIV_TAPOSITION] = 1; }; if((Npc_GetStateTime(self) > 8) && (self.aivar[AIV_TAPOSITION] == 1)) { B_CallGuards(); self.aivar[AIV_TAPOSITION] = 2; }; B_CreateAmmo(self); B_SelectWeapon(self,other); if(Hlp_IsValidNpc(other) && !C_NpcIsDown(other)) { if(other.aivar[AIV_INVINCIBLE] == FALSE) { AI_Attack(self); } else { Npc_ClearAIQueue(self); }; self.aivar[AIV_LASTTARGET] = Hlp_GetInstanceID(other); return LOOP_CONTINUE; } else { Npc_ClearAIQueue(self); if(Hlp_IsValidNpc(other) && Npc_IsPlayer(other) && C_NpcIsDown(other)) { Npc_SetTempAttitude(self,Npc_GetPermAttitude(self,hero)); }; if(self.aivar[AIV_ATTACKREASON] != AR_KILL) { Npc_PerceiveAll(self); Npc_GetNextTarget(self); }; if(Hlp_IsValidNpc(other) && !C_NpcIsDown(other) && ((Npc_GetDistToNpc(self,other) < PERC_DIST_INTERMEDIAT) || Npc_IsPlayer(other)) && (Npc_GetHeightToNpc(self,other) < PERC_DIST_HEIGHT) && (other.aivar[AIV_INVINCIBLE] == FALSE) && !(C_PlayerIsFakeBandit(self,other) && (self.guild == GIL_BDT))) { if(Wld_GetGuildAttitude(self.guild,other.guild) == ATT_HOSTILE) { self.aivar[AIV_ATTACKREASON] = AR_GuildEnemy; if(Npc_IsPlayer(other)) { self.aivar[AIV_LastPlayerAR] = AR_GuildEnemy; self.aivar[AIV_LastFightAgainstPlayer] = FIGHT_CANCEL; self.aivar[AIV_LastFightComment] = FALSE; }; } else if(Npc_GetAttitude(self,other) == ATT_HOSTILE) { self.aivar[AIV_ATTACKREASON] = self.aivar[AIV_LastPlayerAR]; }; return LOOP_CONTINUE; } else { Npc_ClearAIQueue(self); if((self.aivar[AIV_LastFightAgainstPlayer] == FIGHT_CANCEL) && (self.aivar[AIV_LASTTARGET] != Hlp_GetInstanceID(hero))) { self.aivar[AIV_LastFightComment] = TRUE; }; return LOOP_END; }; }; }; func void ZS_Attack_End() { other = Hlp_GetNpc(self.aivar[AIV_LASTTARGET]); if(self.aivar[AIV_PursuitEnd] == TRUE) { if(Hlp_IsValidNpc(other) && Npc_IsPlayer(other) && (self.npcType != NPCTYPE_FRIEND)) { Npc_SetTempAttitude(self,ATT_HOSTILE); }; if(self.aivar[AIV_ArenaFight] == AF_RUNNING) { self.aivar[AIV_ArenaFight] = AF_AFTER; }; }; if(self.aivar[AIV_PursuitEnd] == FALSE) { if(B_GetCurrentAbsolutionLevel(self) > self.aivar[AIV_LastAbsolutionLevel]) { B_Say(self,other,"$WISEMOVE"); } else { B_Say_AttackEnd(); }; }; if((other.aivar[AIV_KilledByPlayer] == TRUE) && (Wld_GetGuildAttitude(self.guild,hero.guild) != ATT_HOSTILE)) { B_SetAttitude(self,ATT_FRIENDLY); }; if(Npc_IsInState(other,ZS_Unconscious) && C_NpcHasAttackReasonToKill(self)) { B_FinishingMove(self,other); }; /*FOR SHIELD*//* AI_RemoveWeapon_ds(slf);*/AI_RemoveWeapon(self); if(C_NpcIsDown(other) && C_WantToRansack(self) && ((other.aivar[AIV_RANSACKED] == FALSE) || C_NpcRansacksAlways(self)) && (Npc_GetDistToNpc(self,other) < PERC_DIST_INTERMEDIAT)) { other.aivar[AIV_RANSACKED] = TRUE; if(other.guild < GIL_SEPERATOR_HUM) { AI_StartState(self,ZS_RansackBody,0,""); return; } else if(C_NpcIs(self, BAU_105_DS2P_Tamir) && (Npc_HasItems(other,ItFoMuttonRaw) > 0)) { AI_StartState(self,ZS_GetMeat,0,""); return; } else if(C_NpcIs(self,PIR_202_DS2P_Symon) && (other.guild == GIL_SHEEP)) { AI_StartState(self,ZS_GetMeat,0,""); return; }; }; if(self.attribute[ATR_HITPOINTS] < (self.attribute[ATR_HITPOINTS_MAX] / 2)) { CreateInvItems(self,ItFo_DS_WaterMega,2); AI_StartState(self,ZS_HealSelf,0,""); return; }; };
D
module hunt.io.channel.AbstractSocketChannel; import hunt.event.selector.Selector; import hunt.io.channel.AbstractChannel; import hunt.io.channel.Common; import hunt.logging.ConsoleLogger; import core.time; import std.functional; import std.socket; import core.stdc.stdint; /** */ abstract class AbstractSocketChannel : AbstractChannel { protected shared bool _isWritting = false; // keep a data write operation atomic this(Selector loop, ChannelType type) { super(loop, type); } // Busy with reading or writting protected bool isBusy() { return false; } protected @property void socket(Socket s) { this.handle = s.handle(); version (Posix) { s.blocking = false; } _socket = s; version (HUNT_DEBUG_MORE) infof("new socket: fd=%d", this.handle); } protected @property Socket socket() { return _socket; } protected Socket _socket; override void close() { // if (_isClosing) { // // debug warningf("already closed [fd=%d]", this.handle); // return; // } // _isClosing = true; version (HUNT_IO_MORE) tracef("socket channel closing [fd=%d]...", this.handle); version (HAVE_IOCP) { super.close(); } else { if (isBusy()) { import std.parallelism; version (HUNT_DEBUG) warning("Close operation delayed"); auto theTask = task(() { super.close(); while (isBusy()) { version (HUNT_DEBUG) infof("waitting for idle [fd=%d]...", this.handle); // Thread.sleep(20.msecs); } }); taskPool.put(theTask); } else { super.close(); } } } /// Get a socket option. /// Returns: The number of bytes written to $(D result). //returns the length, in bytes, of the actual result - very different from getsockopt() pragma(inline) final int getOption(SocketOptionLevel level, SocketOption option, void[] result) @trusted { return this._socket.getOption(level, option, result); } /// Common case of getting integer and boolean options. pragma(inline) final int getOption(SocketOptionLevel level, SocketOption option, ref int32_t result) @trusted { return this._socket.getOption(level, option, result); } /// Get the linger option. pragma(inline) final int getOption(SocketOptionLevel level, SocketOption option, ref Linger result) @trusted { return this._socket.getOption(level, option, result); } /// Get a timeout (duration) option. pragma(inline) final void getOption(SocketOptionLevel level, SocketOption option, ref Duration result) @trusted { this._socket.getOption(level, option, result); } /// Set a socket option. pragma(inline) final void setOption(SocketOptionLevel level, SocketOption option, void[] value) @trusted { this._socket.setOption(forward!(level, option, value)); } /// Common case for setting integer and boolean options. pragma(inline) final void setOption(SocketOptionLevel level, SocketOption option, int32_t value) @trusted { this._socket.setOption(forward!(level, option, value)); } /// Set the linger option. pragma(inline) final void setOption(SocketOptionLevel level, SocketOption option, Linger value) @trusted { this._socket.setOption(forward!(level, option, value)); } pragma(inline) final void setOption(SocketOptionLevel level, SocketOption option, Duration value) @trusted { this._socket.setOption(forward!(level, option, value)); } final @property @trusted Address remoteAddress() { return _remoteAddress; } protected Address _remoteAddress; final @property @trusted Address localAddress() { return _localAddress; } protected Address _localAddress; version (HAVE_IOCP) { void setRead(size_t bytes) { readLen = bytes; } protected size_t readLen; } void start(); void onWriteDone() { assert(false, "unimplemented"); } }
D
import std.stdio; void main() { auto name = "John"; string greeting = "Hello"; writeln(greeting, ", ", name, "!"); // Hello, John! }
D
/Users/alibagheri/Desktop/ultimate_rust_crash_course/exercise/g_collections_enums/target/debug/deps/rand_core-a3698b4c3857378d.rmeta: /Users/alibagheri/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.3.1/src/lib.rs /Users/alibagheri/Desktop/ultimate_rust_crash_course/exercise/g_collections_enums/target/debug/deps/librand_core-a3698b4c3857378d.rlib: /Users/alibagheri/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.3.1/src/lib.rs /Users/alibagheri/Desktop/ultimate_rust_crash_course/exercise/g_collections_enums/target/debug/deps/rand_core-a3698b4c3857378d.d: /Users/alibagheri/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.3.1/src/lib.rs /Users/alibagheri/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.3.1/src/lib.rs:
D
/Users/hyungsukkang/terra/terra-contracts/exchange/target/rls/debug/deps/void-b0b92130e67e25ef.rmeta: /Users/hyungsukkang/.cargo/registry/src/github.com-1ecc6299db9ec823/void-1.0.2/src/lib.rs /Users/hyungsukkang/terra/terra-contracts/exchange/target/rls/debug/deps/void-b0b92130e67e25ef.d: /Users/hyungsukkang/.cargo/registry/src/github.com-1ecc6299db9ec823/void-1.0.2/src/lib.rs /Users/hyungsukkang/.cargo/registry/src/github.com-1ecc6299db9ec823/void-1.0.2/src/lib.rs:
D
module mci.core.code.stream; import mci.core.container, mci.core.code.functions, mci.core.code.instructions, mci.core.code.opcodes; public final class InstructionStream : ReadOnlyIndexable!Instruction { private BasicBlock _block; private NoNullList!Instruction _instructions; pure nothrow invariant() { assert(_instructions); assert(_block); } package this(BasicBlock block) in { assert(block); } body { _block = block; _instructions = new typeof(_instructions)(); } @property public BasicBlock block() pure nothrow out (result) { assert(result); } body { return _block; } public final int opApply(scope int delegate(Instruction) dg) { foreach (item; _instructions) { auto status = dg(item); if (status) return status; } return 0; } public final int opApply(scope int delegate(size_t, Instruction) dg) { foreach (i, item; _instructions) { auto status = dg(i, item); if (status) return status; } return 0; } public final Instruction* opBinaryRight(string op : "in")(Instruction item) { return item in _instructions; } public final Instruction opIndex(size_t index) { return _instructions[index]; } public ReadOnlyIndexable!Instruction opSlice() { return duplicate(); } public ReadOnlyIndexable!Instruction opSlice(size_t x, size_t y) { return _instructions[x .. y]; } public ReadOnlyIndexable!Instruction opCat(Instruction rhs) { return _instructions ~ rhs; } public ReadOnlyIndexable!Instruction opCat(Iterable!Instruction rhs) { return _instructions ~ rhs; } public final override equals_t opEquals(Object o) { if (this is o) return true; if (auto stream = cast(InstructionStream)o) return _instructions == stream._instructions; return false; } public final override hash_t toHash() { return typeid(typeof(_instructions)).getHash(&_instructions); } public final override int opCmp(Object o) { if (this is o) return 0; if (auto stream = cast(InstructionStream)o) return typeid(typeof(_instructions)).compare(&_instructions, &stream._instructions); return 1; } @property public final size_t count() { return _instructions.count; } @property public final bool empty() { return _instructions.empty; } public ReadOnlyIndexable!Instruction duplicate() { return _instructions.duplicate(); } public final Instruction[] toArray() { return _instructions.toArray(); } private void addUseDef(Instruction instruction) in { assert(instruction); } body { if (instruction.targetRegister) (cast(NoNullList!Instruction)instruction.targetRegister.definitions).add(instruction); foreach (reg; instruction.sourceRegisters) (cast(NoNullList!Instruction)reg.uses).add(instruction); } private void removeUseDef(Instruction instruction) in { assert(instruction); } body { if (instruction.targetRegister) (cast(NoNullList!Instruction)instruction.targetRegister.definitions).remove(instruction); foreach (reg; instruction.sourceRegisters) (cast(NoNullList!Instruction)reg.uses).remove(instruction); } public Instruction append(OpCode opCode, InstructionAttributes attributes, InstructionOperand operand, Register targetRegister, Register sourceRegister1, Register sourceRegister2, Register sourceRegister3) out (result) { assert(result); } body { auto insn = new Instruction(_block, opCode, attributes, operand, targetRegister, sourceRegister1, sourceRegister2, sourceRegister3); addUseDef(insn); _instructions.add(insn); return insn; } public Instruction insertBefore(Instruction next, OpCode opCode, InstructionAttributes attributes, InstructionOperand operand, Register targetRegister, Register sourceRegister1, Register sourceRegister2, Register sourceRegister3) in { assert(next); assert(next in _instructions); } out (result) { assert(result); } body { auto insn = new Instruction(_block, opCode, attributes, operand, targetRegister, sourceRegister1, sourceRegister2, sourceRegister3); addUseDef(insn); _instructions.insert(findIndex(_instructions, next) - 1, insn); return insn; } public Instruction insertAfter(Instruction previous, OpCode opCode, InstructionAttributes attributes, InstructionOperand operand, Register targetRegister, Register sourceRegister1, Register sourceRegister2, Register sourceRegister3) in { assert(previous); assert(previous in _instructions); } out (result) { assert(result); } body { auto insn = new Instruction(_block, opCode, attributes, operand, targetRegister, sourceRegister1, sourceRegister2, sourceRegister3); addUseDef(insn); _instructions.insert(findIndex(_instructions, previous) + 1, insn); return insn; } public Instruction replace(Instruction old, OpCode opCode, InstructionAttributes attributes, InstructionOperand operand, Register targetRegister, Register sourceRegister1, Register sourceRegister2, Register sourceRegister3) in { assert(old); assert(old in _instructions); } out (result) { assert(result); } body { auto insn = new Instruction(_block, opCode, attributes, operand, targetRegister, sourceRegister1, sourceRegister2, sourceRegister3); removeUseDef(old); addUseDef(insn); return _instructions[findIndex(_instructions, old)] = insn; } public void remove(Instruction instruction) in { assert(instruction); } body { removeUseDef(instruction); _instructions.remove(instruction); } public void clear() { foreach (insn; _instructions) removeUseDef(insn); _instructions.clear(); } }
D
void main() { problem(); } void problem() { auto N = scan!long, M = scan!long; long solve() { long answer; if (N > 0) answer += N*(N-1)/2; if (M > 0) answer += M*(M-1)/2; return answer; } solve().writeln; } // ---------------------------------------------- import std.stdio, std.conv, std.array, std.string, std.algorithm, std.container, std.range, core.stdc.stdlib, std.math, std.typecons; 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)(int n){ return n.iota.map!(i => scan!T()).array; } void deb(T ...)(T t){ debug writeln(t); } alias Point = Tuple!(long, "x", long, "y"); // -----------------------------------------------
D
/* * [The "BSD license"] * Copyright (c) 2016 Terence Parr * Copyright (c) 2016 Sam Harwell * Copyright (c) 2017 Egbert Voigt * 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. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ module antlr.v4.runtime.atn.LexerATNConfig; import antlr.v4.runtime.atn.ATNConfig; import antlr.v4.runtime.atn.LexerActionExecutor; import antlr.v4.runtime.atn.ATNState; import antlr.v4.runtime.atn.DecisionState; import antlr.v4.runtime.atn.PredictionContext; import antlr.v4.runtime.atn.SemanticContext; import antlr.v4.runtime.misc.MurmurHash; import antlr.v4.runtime.misc.ObjectEqualityComparator; /** * TODO add class description */ class LexerATNConfig : ATNConfig { /** * @uml * This is the backing field for {@link #getLexerActionExecutor}. */ public LexerActionExecutor lexerActionExecutor; public bool passedThroughNonGreedyDecision; public this(ATNState state, int alt, PredictionContext context) { if (!SemanticContext.NONE) { auto sp = new SemanticContext; SemanticContext.NONE = sp.new SemanticContext.Predicate; } super(state, alt, context, SemanticContext.NONE); this.passedThroughNonGreedyDecision = false; this.lexerActionExecutor = null; } public this(ATNState state, int alt, PredictionContext context, LexerActionExecutor lexerActionExecutor) { if (!SemanticContext.NONE) { auto sp = new SemanticContext; SemanticContext.NONE = sp.new SemanticContext.Predicate; } super(state, alt, context, SemanticContext.NONE); this.lexerActionExecutor = lexerActionExecutor; this.passedThroughNonGreedyDecision = false; } public this(LexerATNConfig c, ATNState state) { super(c, state, c.context, c.semanticContext); this.lexerActionExecutor = c.lexerActionExecutor; this.passedThroughNonGreedyDecision = checkNonGreedyDecision(c, state); } public this(LexerATNConfig c, ATNState state, LexerActionExecutor lexerActionExecutor) { super(c, state, c.context, c.semanticContext); this.lexerActionExecutor = lexerActionExecutor; this.passedThroughNonGreedyDecision = checkNonGreedyDecision(c, state); } public this(LexerATNConfig c, ATNState state, PredictionContext context) { super(c, state, context, c.semanticContext); this.lexerActionExecutor = c.lexerActionExecutor; this.passedThroughNonGreedyDecision = checkNonGreedyDecision(c, state); } /** * @uml * Gets the {@link LexerActionExecutor} capable of executing the embedded * action(s) for the current configuration. */ public LexerActionExecutor getLexerActionExecutor() { return lexerActionExecutor; } public bool hasPassedThroughNonGreedyDecision() { return passedThroughNonGreedyDecision; } /** * @uml * @override * @safe * @nothrow */ public override size_t toHash() @safe nothrow { size_t hashCode = MurmurHash.initialize(7); hashCode = MurmurHash.update(hashCode, state.stateNumber); hashCode = MurmurHash.update(hashCode, alt); hashCode = MurmurHash.update(hashCode, context); hashCode = MurmurHash.update(hashCode, semanticContext); hashCode = MurmurHash.update(hashCode, passedThroughNonGreedyDecision ? 1 : 0); hashCode = MurmurHash.update(hashCode, lexerActionExecutor); hashCode = MurmurHash.finish(hashCode, 6); return hashCode; } public bool equals(ATNConfig other) { if (this is other) { return true; } else if (other.classinfo != LexerATNConfig.classinfo) { return false; } LexerATNConfig lexerOther = cast(LexerATNConfig)other; if (passedThroughNonGreedyDecision != lexerOther.passedThroughNonGreedyDecision) { return false; } if (!ObjectEqualityComparator.opEquals(lexerActionExecutor, lexerOther.lexerActionExecutor)) { return false; } return super.opEquals(other); } public static bool checkNonGreedyDecision(LexerATNConfig source, ATNState target) { return source.passedThroughNonGreedyDecision || target.classinfo == DecisionState.classinfo && (cast(DecisionState)target).nonGreedy; } }
D
module org.serviio.upnp.service.contentdirectory.rest.representation.SearchResultRepresentation; import java.lang.String; import org.serviio.upnp.service.contentdirectory.rest.representation.AbstractCDSObjectRepresentation; public class SearchResultRepresentation : AbstractCDSObjectRepresentation { private String context; public this(DirectoryObjectType type, String title, String id) { super(type, title, id); } public String getContext() { return this.context; } public void setContext(String context) { this.context = context; } } /* Location: C:\Users\Main\Downloads\serviio.jar * Qualified Name: org.serviio.upnp.service.contentdirectory.rest.representation.SearchResultRepresentation * JD-Core Version: 0.7.0.1 */
D
/Users/Rami/Desktop/TaskCompanyUSA/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Validation.o : /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/MultipartFormData.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Timeline.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Alamofire.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Response.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/TaskDelegate.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/SessionDelegate.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/ParameterEncoding.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Validation.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/ResponseSerialization.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/SessionManager.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/AFError.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Notifications.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Result.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Request.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Rami/Desktop/TaskCompanyUSA/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/Rami/Desktop/TaskCompanyUSA/build/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Users/Rami/Desktop/TaskCompanyUSA/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Validation~partial.swiftmodule : /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/MultipartFormData.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Timeline.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Alamofire.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Response.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/TaskDelegate.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/SessionDelegate.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/ParameterEncoding.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Validation.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/ResponseSerialization.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/SessionManager.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/AFError.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Notifications.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Result.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Request.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Rami/Desktop/TaskCompanyUSA/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/Rami/Desktop/TaskCompanyUSA/build/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Users/Rami/Desktop/TaskCompanyUSA/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Validation~partial.swiftdoc : /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/MultipartFormData.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Timeline.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Alamofire.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Response.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/TaskDelegate.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/SessionDelegate.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/ParameterEncoding.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Validation.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/ResponseSerialization.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/SessionManager.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/AFError.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Notifications.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Result.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Request.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Rami/Desktop/TaskCompanyUSA/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/Rami/Desktop/TaskCompanyUSA/build/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap
D
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM WT ROCKTYPE 269.100006 76.3000031 4.30000019 66.6999969 0 3 32.4000015 70.9000015 404 2.9000001 5 1 sediments 255.5 73.5999985 0 0 0 2 32.2999992 70.6999969 831 0 0 1 sediments 247.5 75.9000015 0 0 0 3 32.5 70.5999985 830 0 0 1 sediments 295.700012 66.9000015 4 30.2000008 1 3 33.5 73.0999985 600 2.4000001 4.4000001 1 sediments 279.899994 75.8000031 4.30000019 826 1 14 32.7999992 72.5 1137 2.9000001 5 0.153846154 sediments 281.799988 77.5999985 5.5 53.5999985 1 5 33 73 1135 3.9000001 6.5999999 0.5 sediments 326.600006 57.4000015 4.69999981 380.799988 1 14 32.7999992 73.1999969 1136 3.0999999 5.4000001 0.153846154 sediments 267.5 72.1999969 2 13 1 13 28 82 6129 1.10000002 2.0999999 0.166666667 sediments, sandstones
D
module test.fsicalmanagement.data.authentication_info_test; import fsicalmanagement.data.authentication_info; import fsicalmanagement.model.user : Privilege; import unit_threaded.attrs : getValue, Values; import unit_threaded.should : shouldEqual; // TODO: Automatically generate these tests for all enum members of `Privilege` @("AuthenticationInfo.isNone success") unittest { // given AuthenticationInfo authInfo; authInfo.privilege = Privilege.None; // when immutable isAuthenticatedAsNone = authInfo.isNone; // then isAuthenticatedAsNone.shouldEqual(true); } @("AuthenticationInfo.isNone failure") @Values(Privilege.User, Privilege.Admin) unittest { // given AuthenticationInfo authInfo; authInfo.privilege = getValue!Privilege; // when immutable isAuthenticatedAsNone = authInfo.isNone; // then isAuthenticatedAsNone.shouldEqual(false); } @("AuthenticationInfo.isUser success") unittest { // given AuthenticationInfo authInfo; authInfo.privilege = Privilege.User; // when immutable isAuthenticatedAsUser = authInfo.isUser; // then isAuthenticatedAsUser.shouldEqual(true); } @("AuthenticationInfo.isUser failure") @Values(Privilege.None, Privilege.Admin) unittest { // given AuthenticationInfo authInfo; authInfo.privilege = getValue!Privilege; // when immutable isAuthenticatedAsUser = authInfo.isUser; // then isAuthenticatedAsUser.shouldEqual(false); } @("AuthenticationInfo.isAdmin success") unittest { // given AuthenticationInfo authInfo; authInfo.privilege = Privilege.Admin; // when immutable isAuthenticatedAsAdmin = authInfo.isAdmin; // then isAuthenticatedAsAdmin.shouldEqual(true); } @("AuthenticationInfo.isAdmin failure") @Values(Privilege.User, Privilege.None) unittest { // given AuthenticationInfo authInfo; authInfo.privilege = getValue!Privilege; // when immutable isAuthenticatedAsAdmin = authInfo.isAdmin; // then isAuthenticatedAsAdmin.shouldEqual(false); }
D
module android.java.android.content.IntentFilter_MalformedMimeTypeException_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import1 = android.java.java.io.PrintStream_d_interface; import import4 = android.java.java.lang.Class_d_interface; import import3 = android.java.java.lang.StackTraceElement_d_interface; import import2 = android.java.java.io.PrintWriter_d_interface; import import0 = android.java.java.lang.JavaThrowable_d_interface; @JavaName("IntentFilter$MalformedMimeTypeException") final class IntentFilter_MalformedMimeTypeException : IJavaObject { static immutable string[] _d_canCastTo = [ ]; @Import this(arsd.jni.Default); @Import this(string); @Import string getMessage(); @Import string getLocalizedMessage(); @Import import0.JavaThrowable getCause(); @Import import0.JavaThrowable initCause(import0.JavaThrowable); @Import @JavaName("toString") string toString_(); override string toString() { return arsd.jni.javaObjectToString(this); } @Import void printStackTrace(); @Import void printStackTrace(import1.PrintStream); @Import void printStackTrace(import2.PrintWriter); @Import import0.JavaThrowable fillInStackTrace(); @Import import3.StackTraceElement[] getStackTrace(); @Import void setStackTrace(import3.StackTraceElement[]); @Import void addSuppressed(import0.JavaThrowable); @Import import0.JavaThrowable[] getSuppressed(); @Import import4.Class getClass(); @Import int hashCode(); @Import bool equals(IJavaObject); @Import void notify(); @Import void notifyAll(); @Import void wait(long); @Import void wait(long, int); @Import void wait(); mixin IJavaObjectImplementation!(false); public static immutable string _javaParameterString = "Landroid/content/IntentFilter$MalformedMimeTypeException;"; }
D
/** * Elasticsearch get API * * Copyright: © 2015 David Monagle * License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. * Authors: David Monagle */ module elasticsearch.api.actions.get; import elasticsearch.api.parameters; import elasticsearch.transport.response; import elasticsearch.transport.exceptions; import elasticsearch.client; /// Return a specified document. /// /// The response contains full document, as stored in Elasticsearch, incl. `_source`, `_version`, etc. /// /// @example Get a document /// /// client.get index: 'myindex', type: 'mytype', id: '1' /// /// @option arguments [String] :id The document ID (*Required*) /// @option arguments [Number,List] :ignore The list of HTTP errors to ignore; only `404` supported at the moment /// @option arguments [String] :index The name of the index (*Required*) /// @option arguments [String] :type The type of the document; use `_all` to fetch the first document /// matching the ID across all types) (*Required*) /// @option arguments [List] :fields A comma-separated list of fields to return in the response /// @option arguments [String] :parent The ID of the parent document /// @option arguments [String] :preference Specify the node or shard the operation should be performed on /// (default: random) /// @option arguments [Boolean] :realtime Specify whether to perform the operation in realtime or search mode /// @option arguments [Boolean] :refresh Refresh the shard containing the document before performing the operation /// @option arguments [String] :routing Specific routing value /// @option arguments [Number] :version Explicit version number for concurrency control /// @option arguments [String] :version_type Specific version type (options: internal, external, external_gte, force) /// @option arguments [String] :_source Specify whether the _source field should be returned, /// or a list of fields to return /// @option arguments [String] :_source_exclude A list of fields to exclude from the returned _source field /// @option arguments [String] :_source_include A list of fields to extract and return from the _source field /// @option arguments [Boolean] :_source_transform Retransform the source before returning it /// /// @see http://elasticsearch.org/guide/reference/api/get/ Response get(Client client, ESParams arguments = ESParams()) { arguments.enforceParameter("index"); arguments.enforceParameter("id"); arguments.defaultParameter("type", "_all"); auto params = arguments.validateAndExtract( "fields", "parent", "preference", "realtime", "refresh", "routing", "version", "version_type", "_source", "_source_include", "_source_exclude", "_source_transform" ); auto path = esPathify([arguments["index"], arguments["type"], arguments["id"]]); return client.performRequest(RequestMethod.GET, path, params); } /// Ditto Response get(Client client, string index, string id, ESParams params = ESParams()) { params["index"] = index; params["id"] = id; return get(client, params); }
D
blatant or sensational promotion publicize in an exaggerated and often misleading manner
D
module d.llvm.global; import d.llvm.codegen; import d.ir.symbol; import d.ir.type; import util.visitor; import llvm.c.analysis; import llvm.c.core; // Conflict with Interface in object.di alias Interface = d.ir.symbol.Interface; struct GlobalGen { private CodeGen pass; alias pass this; import d.llvm.local : Mode; Mode mode; this(CodeGen pass, Mode mode = Mode.Lazy) { this.pass = pass; this.mode = mode; } void define(Symbol s) in { assert(s.step == Step.Processed); } body { if (auto f = cast(Function) s) { define(f); } else if (auto t = cast(Template) s) { define(t); } else if (auto a = cast(Aggregate) s) { define(a); } else if (auto v = cast(Variable) s) { define(v); } } LLVMValueRef declare(Function f) in { assert(f.storage.isGlobal, "locals not supported"); assert(!f.hasContext, "function must not have context"); } body { import d.llvm.local; return LocalGen(pass).declare(f); } LLVMValueRef define(Function f) in { assert(f.storage.isGlobal, "locals not supported"); assert(!f.hasContext, "function must not have context"); } body { import d.llvm.local; return LocalGen(pass).define(f); } LLVMValueRef declare(Variable v) in { assert(v.storage.isGlobal, "locals not supported"); assert(!v.isFinal); assert(!v.isRef); } body { auto var = globals.get(v, { if (v.storage == Storage.Enum) { import d.llvm.constant; return ConstantGen(pass).visit(v.value); } return createVariableStorage(v); }()); // Register the variable. globals[v] = var; if (!v.value || v.storage == Storage.Enum) { return var; } if (v.inTemplate || mode == Mode.Eager) { if (maybeDefine(v, var)) { LLVMSetLinkage(var, LLVMLinkage.LinkOnceODR); } } return var; } LLVMValueRef define(Variable v) in { assert(v.storage.isGlobal, "locals not supported"); assert(!v.isFinal); assert(!v.isRef); } body { auto var = declare(v); if (!v.value || v.storage == Storage.Enum) { return var; } if (!maybeDefine(v, var)) { auto linkage = LLVMGetLinkage(var); assert(linkage == LLVMLinkage.LinkOnceODR, "variable " ~ v.mangle.toString(context) ~ " already defined"); LLVMSetLinkage(var, LLVMLinkage.External); } return var; } bool maybeDefine(Variable v, LLVMValueRef var) in { assert(v.storage.isGlobal, "locals not supported"); assert(v.storage != Storage.Enum, "enum do not have a storage"); assert(!v.isFinal); assert(!v.isRef); } body { if (LLVMGetInitializer(var)) { return false; } import d.llvm.constant; auto value = ConstantGen(pass).visit(v.value); // Store the initial value into the global variable. LLVMSetInitializer(var, value); return true; } private LLVMValueRef createVariableStorage(Variable v) in { assert(v.storage.isGlobal, "locals not supported"); assert(v.storage != Storage.Enum, "enum do not have a storage"); } body { auto qualifier = v.type.qualifier; import d.llvm.type; auto type = TypeGen(pass).visit(v.type); // If it is not enum, it must be static. assert(v.storage == Storage.Static); auto var = LLVMAddGlobal(dmodule, type, v.mangle.toStringz(context)); // Depending on the type qualifier, // make it thread local/ constant or nothing. final switch(qualifier) with(TypeQualifier) { case Mutable, Inout, Const: LLVMSetThreadLocal(var, true); break; case Shared, ConstShared: break; case Immutable: LLVMSetGlobalConstant(var, true); break; } return var; } LLVMTypeRef define(Aggregate a) in { assert(a.step == Step.Processed); } body { return this.dispatch(a); } LLVMTypeRef visit(Struct s) in { assert(s.step == Step.Processed); } body { import d.llvm.type; auto ret = TypeGen(pass).visit(s); foreach(m; s.members) { if (typeid(m) !is typeid(Field)) { define(m); } } return ret; } LLVMTypeRef visit(Class c) in { assert(c.step == Step.Processed); } body { import d.llvm.type; auto ret = TypeGen(pass).visit(c); foreach(m; c.members) { if (auto f = cast(Method) m) { // We don't want to define inherited methods in childs. if (!f.hasThis || f.type.parameters[0].getType().dclass is c) { define(f); } continue; } if (typeid(m) !is typeid(Field)) { define(m); } } return ret; } LLVMTypeRef visit(Union u) in { assert(u.step == Step.Processed); } body { import d.llvm.type; auto ret = TypeGen(pass).visit(u); foreach(m; u.members) { if (typeid(m) !is typeid(Field)) { define(m); } } return ret; } LLVMTypeRef visit(Interface i) in { assert(i.step == Step.Processed); } body { import d.llvm.type; return TypeGen(pass).visit(i); } void define(Template t) { foreach(i; t.instances) { if (i.storage.isLocal) { continue; } foreach(m; i.members) { import d.llvm.local; LocalGen(pass).define(m); } } } }
D
/Users/eduardosoares/Documents/github/rust-study/crates-and-packages/target/rls/debug/build/crossbeam-epoch-70b168a24ddc1e1e/build_script_build-70b168a24ddc1e1e: /Users/eduardosoares/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-epoch-0.8.0/build.rs /Users/eduardosoares/Documents/github/rust-study/crates-and-packages/target/rls/debug/build/crossbeam-epoch-70b168a24ddc1e1e/build_script_build-70b168a24ddc1e1e.d: /Users/eduardosoares/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-epoch-0.8.0/build.rs /Users/eduardosoares/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-epoch-0.8.0/build.rs:
D
/Users/dan/Developer/iOS/selectsearch/DerivedData/selectsearch/Build/Intermediates/selectsearch.build/Debug-iphonesimulator/flickrSearch.build/Objects-normal/x86_64/ActionViewController.o : /Users/dan/Developer/iOS/selectsearch/flickrSearch/ActionViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/dan/Developer/iOS/selectsearch/DerivedData/selectsearch/Build/Intermediates/selectsearch.build/Debug-iphonesimulator/flickrSearch.build/Objects-normal/x86_64/ActionViewController~partial.swiftmodule : /Users/dan/Developer/iOS/selectsearch/flickrSearch/ActionViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/dan/Developer/iOS/selectsearch/DerivedData/selectsearch/Build/Intermediates/selectsearch.build/Debug-iphonesimulator/flickrSearch.build/Objects-normal/x86_64/ActionViewController~partial.swiftdoc : /Users/dan/Developer/iOS/selectsearch/flickrSearch/ActionViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
D
class Complex { var float Real; var float Imag; } proc Swap( ref int a, ref int b ) { var int tmp; tmp := a; a := b; b := tmp; } proc ret Complex Add( Complex a, Complex b ) { var Complex retval; retval := new Complex; retval.Real := a.Real + b.Real; retval.Imag := a.Imag + b.Imag; return retval; } proc ret int Max( int a, int b ) { if a > b then { return a; } if not(a > (b+b)) then { return a+b; } return b; } proc Main() { proc ret float Square( float val ) { return val ** 2.0; } var float num; num := 6.480740; printfloat( num ); printstr( " squared is " ); printfloat( Square( num ) ); return; }
D
module particles; public import particles.system; public import particles.generators; public import particles.updaters;
D
react verbally respond to a signal give the correct answer or solution to understand the meaning of give a defence or refutation of (a charge) or in (an argument be liable or accountable be sufficient match or correspond be satisfactory for react to a stimulus or command replying
D
//################################################### // File: kmain.d // Created: 2015-10-29 15:34:16 // Modified: 2015-10-29 15:34:17 // // See LICENSE file for license and copyright details //################################################### module kernel.kmain; //import kernel.drt0; immutable uint COLUMNS = 80; // 80-col screen immutable uint LINES = 24; // 24-line screen immutable auto VIDMEM_BASE = 0xFFFF8000000B8000; // So we compile without druntime extern(C) __gshared void* _d_dso_registry; extern(C) __gshared void* _Dmodule_ref; extern(C) __gshared void* _d_arraybounds; extern(C) __gshared void* _d_assert; extern(C) __gshared void* _d_unittest; static immutable ubyte egaBlack = 0; static immutable ubyte egaBlue = 1; static immutable ubyte egaGreen = 2; static immutable ubyte egaCyan = 3; static immutable ubyte egaRed = 4; static immutable ubyte egaMagnenta = 5; static immutable ubyte egaBrown = 6; static immutable ubyte egaGrey2 = 7; static immutable ubyte egaGrey = 8; static immutable ubyte egaBlue2 = 9; static immutable ubyte egaGreen2 = 0xa; static immutable ubyte egaCyan2 = 0xb; static immutable ubyte egaRed2 = 0xc; static immutable ubyte egaMagenta2 = 0xd; static immutable ubyte egaYellow2 = 0xe; static immutable ubyte egaWhite= 0xf; ushort videoValue(ubyte value, ubyte fg = egaWhite, ubyte bg = egaBlack) { return cast(ushort)( ( ((bg <<4) | fg) << 8) | (value & 0xFF) ); } void kprintf(string str, int xpos, int ypos) { auto idx = (xpos + ypos * COLUMNS); ushort* vidmem = cast(ushort*)VIDMEM_BASE + (xpos + ypos * COLUMNS); int x = xpos; for(int i = 0; i < str.length; ++i) { char s= str[i]; *(vidmem+x) = videoValue(s, egaYellow2, egaGrey); ++x; } } void clearScreen(ubyte col = egaGrey) { fillScreen(0, 0, col); } void fillScreen(ubyte value, ubyte fgCol, ubyte bgCol) { ushort* vidmem = cast(ushort*)VIDMEM_BASE; // Clear the screen foreach(i; 0..COLUMNS*LINES*2) { *(vidmem+i) = videoValue(value, fgCol, bgCol); } } extern (C) void kmain() { int ypos = 0; int xpos = 0; clearScreen(egaGrey); auto message = `Lyrebird OS -- Kernel r0 [`~__DATE__~`-`~__TIME__~`]`; kprintf(message, 1, 1); for(;;) {} // Loop forever }
D
// Written in the D programming language. /** This module implements a variety of type constructors, i.e., templates that allow construction of new, useful general-purpose types. Source: $(PHOBOSSRC std/_typecons.d) Macros: WIKI = Phobos/StdVariant Synopsis: ---- // value tuples alias Tuple!(float, "x", float, "y", float, "z") Coord; Coord c; c[1] = 1; // access by index c.z = 1; // access by given name alias Tuple!(string, string) DicEntry; // names can be omitted // Rebindable references to const and immutable objects void bar() { const w1 = new Widget, w2 = new Widget; w1.foo(); // w1 = w2 would not work; can't rebind const object auto r = Rebindable!(const Widget)(w1); // invoke method as if r were a Widget object r.foo(); // rebind r to refer to another object r = w2; } ---- Copyright: Copyright the respective authors, 2008- License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: $(WEB erdani.org, Andrei Alexandrescu), $(WEB bartoszmilewski.wordpress.com, Bartosz Milewski), Don Clugston, Shin Fujishiro, Kenji Hara */ module std.typecons; import core.memory, core.stdc.stdlib; import std.algorithm, std.array, std.conv, std.exception, std.format, std.string, std.traits, std.typetuple, std.range; debug(Unique) import std.stdio; /** Encapsulates unique ownership of a resource. Resource of type T is deleted at the end of the scope, unless it is transferred. The transfer can be explicit, by calling $(D release), or implicit, when returning Unique from a function. The resource can be a polymorphic class object, in which case Unique behaves polymorphically too. Example: */ struct Unique(T) { static if (is(T:Object)) alias T RefT; else alias T * RefT; public: /+ Doesn't work yet /** The safe constructor. It creates the resource and guarantees unique ownership of it (unless the constructor of $(D T) publishes aliases of $(D this)), */ this(A...)(A args) { _p = new T(args); } +/ /** Constructor that takes an rvalue. It will ensure uniqueness, as long as the rvalue isn't just a view on an lvalue (e.g., a cast) Typical usage: ---- Unique!(Foo) f = new Foo; ---- */ this(RefT p) { debug(Unique) writeln("Unique constructor with rvalue"); _p = p; } /** Constructor that takes an lvalue. It nulls its source. The nulling will ensure uniqueness as long as there are no previous aliases to the source. */ this(ref RefT p) { _p = p; debug(Unique) writeln("Unique constructor nulling source"); p = null; assert(p is null); } /+ Doesn't work yet /** Constructor that takes a Unique of a type that is convertible to our type: Disallow construction from lvalue (force the use of release on the source Unique) If the source is an rvalue, null its content, so the destrutctor doesn't delete it Typically used by the compiler to return $(D Unique) of derived type as $(D Unique) of base type. Example: ---- Unique!(Base) create() { Unique!(Derived) d = new Derived; return d; // Implicit Derived->Base conversion } ---- */ this(U)(ref Unique!(U) u) = null; this(U)(Unique!(U) u) { _p = u._p; u._p = null; } +/ ~this() { debug(Unique) writeln("Unique destructor of ", (_p is null)? null: _p); delete _p; _p = null; } bool isEmpty() const { return _p is null; } /** Returns a unique rvalue. Nullifies the current contents */ Unique release() { debug(Unique) writeln("Release"); auto u = Unique(_p); assert(_p is null); debug(Unique) writeln("return from Release"); return u; } /** Forwards member access to contents */ RefT opDot() { return _p; } /+ doesn't work yet! /** Postblit operator is undefined to prevent the cloning of $(D Unique) objects */ this(this) = null; +/ private: RefT _p; } /+ doesn't work yet unittest { writeln("Unique class"); class Bar { ~this() { writefln(" Bar destructor"); } int val() const { return 4; } } alias Unique!(Bar) UBar; UBar g(UBar u) { return u; } auto ub = UBar(new Bar); assert(!ub.isEmpty); assert(ub.val == 4); // should not compile // auto ub3 = g(ub); writeln("Calling g"); auto ub2 = g(ub.release); assert(ub.isEmpty); assert(!ub2.isEmpty); } unittest { writeln("Unique struct"); struct Foo { ~this() { writefln(" Bar destructor"); } int val() const { return 3; } } alias Unique!(Foo) UFoo; UFoo f(UFoo u) { writeln("inside f"); return u; } auto uf = UFoo(new Foo); assert(!uf.isEmpty); assert(uf.val == 3); // should not compile // auto uf3 = f(uf); writeln("Unique struct: calling f"); auto uf2 = f(uf.release); assert(uf.isEmpty); assert(!uf2.isEmpty); } +/ /** Tuple of values, for example $(D Tuple!(int, string)) is a record that stores an $(D int) and a $(D string). $(D Tuple) can be used to bundle values together, notably when returning multiple values from a function. If $(D obj) is a tuple, the individual members are accessible with the syntax $(D obj[0]) for the first field, $(D obj[1]) for the second, and so on. The choice of zero-based indexing instead of one-base indexing was motivated by the ability to use value tuples with various compile-time loop constructs (e.g. type tuple iteration), all of which use zero-based indexing. Example: ---- Tuple!(int, int) point; // assign coordinates point[0] = 5; point[1] = 6; // read coordinates auto x = point[0]; auto y = point[1]; ---- Tuple members can be named. It is legal to mix named and unnamed members. The method above is still applicable to all fields. Example: ---- alias Tuple!(int, "index", string, "value") Entry; Entry e; e.index = 4; e.value = "Hello"; assert(e[1] == "Hello"); assert(e[0] == 4); ---- Tuples with named fields are distinct types from tuples with unnamed fields, i.e. each naming imparts a separate type for the tuple. Two tuple differing in naming only are still distinct, even though they might have the same structure. Example: ---- Tuple!(int, "x", int, "y") point1; Tuple!(int, int) point2; assert(!is(typeof(point1) == typeof(point2))); // passes ---- */ template Tuple(Specs...) { // Parse (type,name) pairs (FieldSpecs) out of the specified // arguments. Some fields would have name, others not. template parseSpecs(Specs...) { static if (Specs.length == 0) { alias TypeTuple!() parseSpecs; } else static if (is(Specs[0])) { static if (is(typeof(Specs[1]) : string)) { alias TypeTuple!(FieldSpec!(Specs[0 .. 2]), parseSpecs!(Specs[2 .. $])) parseSpecs; } else { alias TypeTuple!(FieldSpec!(Specs[0]), parseSpecs!(Specs[1 .. $])) parseSpecs; } } else { static assert(0, "Attempted to instantiate Tuple with an " ~"invalid argument: "~ Specs[0].stringof); } } template FieldSpec(T, string s = "") { alias T Type; alias s name; } alias parseSpecs!Specs fieldSpecs; // Used with staticMap. template extractType(alias spec) { alias spec.Type extractType; } template extractName(alias spec) { alias spec.name extractName; } // Generates named fields as follows: // alias Identity!(field[0]) name_0; // alias Identity!(field[1]) name_1; // : // NOTE: field[k] is an expression (which yields a symbol of a // variable) and can't be aliased directly. string injectNamedFields() { string decl = ""; foreach (i, name; staticMap!(extractName, fieldSpecs)) { decl ~= format("alias Identity!(field[%s]) _%s;", i, i); if (name.length != 0) { decl ~= format("alias _%s %s;", i, name); } } return decl; } // Returns Specs for a subtuple this[from .. to] preserving field // names if any. template sliceSpecs(size_t from, size_t to) { alias staticMap!(expandSpec, fieldSpecs[from .. to]) sliceSpecs; } template expandSpec(alias spec) { static if (spec.name.length == 0) { alias TypeTuple!(spec.Type) expandSpec; } else { alias TypeTuple!(spec.Type, spec.name) expandSpec; } } template areCompatibleTuples(Tup1, Tup2, string op) { enum areCompatibleTuples = isTuple!Tup2 && is(typeof( { Tup1 tup1 = void; Tup2 tup2 = void; static assert(tup1.field.length == tup2.field.length); foreach (i, _; Tup1.Types) { auto lhs = typeof(tup1.field[i]).init; auto rhs = typeof(tup2.field[i]).init; auto result = mixin("lhs "~op~" rhs"); } })); } struct Tuple { /** * The type of the tuple's components. */ alias staticMap!(extractType, fieldSpecs) Types; /** * Use $(D t.expand) for a tuple $(D t) to expand it into its * components. The result of $(D expand) acts as if the tuple components * were listed as a list of values. (Ordinarily, a $(D Tuple) acts as a * single value.) * * Examples: * ---- * auto t = tuple(1, " hello ", 2.3); * writeln(t); // Tuple!(int, string, double)(1, " hello ", 2.3) * writeln(t.expand); // 1 hello 2.3 * ---- */ Types expand; mixin(injectNamedFields()); static if (is(Specs)) { // This is mostly to make t[n] work. alias expand this; } else { @property ref inout(Tuple!Types) _Tuple_super() inout @trusted { foreach (i, _; Types) // Rely on the field layout { static assert(typeof(return).init.tupleof[i].offsetof == expand[i].offsetof); } return *cast(typeof(return)*) &(field[0]); } // This is mostly to make t[n] work. alias _Tuple_super this; } // backwards compatibility alias field = expand; /** * Constructor taking one value for each field. Each argument must be * implicitly assignable to the respective element of the target. */ this()(Types values) { field[] = values[]; } /** * Constructor taking a compatible array. The array element type must * be implicitly assignable to each element of the target. * * Examples: * ---- * int[2] ints; * Tuple!(int, int) t = ints; * ---- */ this(U, size_t n)(U[n] values) if (n == Types.length && is(typeof({ foreach (i, _; Types) field[i] = values[i]; }))) { foreach (i, _; Types) { field[i] = values[i]; } } /** * Constructor taking a compatible tuple. Each element of the source * must be implicitly assignable to the respective element of the * target. */ this(U)(U another) if (areCompatibleTuples!(typeof(this), U, "=")) { field[] = another.field[]; } /** * Comparison for equality. */ bool opEquals(R)(R rhs) if (areCompatibleTuples!(typeof(this), R, "==")) { return field[] == rhs.field[]; } /// ditto bool opEquals(R)(R rhs) const if (areCompatibleTuples!(typeof(this), R, "==")) { return field[] == rhs.field[]; } /** * Comparison for ordering. */ int opCmp(R)(R rhs) if (areCompatibleTuples!(typeof(this), R, "<")) { foreach (i, Unused; Types) { if (field[i] != rhs.field[i]) { return field[i] < rhs.field[i] ? -1 : 1; } } return 0; } /// ditto int opCmp(R)(R rhs) const if (areCompatibleTuples!(typeof(this), R, "<")) { foreach (i, Unused; Types) { if (field[i] != rhs.field[i]) { return field[i] < rhs.field[i] ? -1 : 1; } } return 0; } /** * Assignment from another tuple. Each element of the source must be * implicitly assignable to the respective element of the target. */ void opAssign(R)(auto ref R rhs) if (areCompatibleTuples!(typeof(this), R, "=")) { static if (is(R : Tuple!Types) && !__traits(isRef, rhs)) { if (__ctfe) { // Cannot use swap at compile time field[] = rhs.field[]; } else { // Use swap-and-destroy to optimize rvalue assignment swap!(Tuple!Types)(this, rhs); } } else { // Do not swap; opAssign should be called on the fields. field[] = rhs.field[]; } } /** * Takes a slice of the tuple. * * Examples: * ---- * Tuple!(int, string, float, double) a; * a[1] = "abc"; * a[2] = 4.5; * auto s = a.slice!(1, 3); * static assert(is(typeof(s) == Tuple!(string, float))); * assert(s[0] == "abc" && s[1] == 4.5); * ---- */ @property ref Tuple!(sliceSpecs!(from, to)) slice(size_t from, size_t to)() @trusted if (from <= to && to <= Types.length) { return *cast(typeof(return)*) &(field[from]); } /** * Converts to string. */ string toString() { enum header = typeof(this).stringof ~ "(", footer = ")", separator = ", "; Appender!string w; w.put(header); foreach (i, Unused; Types) { static if (i > 0) { w.put(separator); } // TODO: Change this once toString() works for shared objects. static if (is(Unused == class) && is(Unused == shared)) formattedWrite(w, "%s", field[i].stringof); else { FormatSpec!char f; // "%s" formatElement(w, field[i], f); } } w.put(footer); return w.data; } } } private template Identity(alias T) { alias T Identity; } unittest { { Tuple!(int, "a", int, "b") nosh; static assert(nosh.length == 2); nosh.a = 5; nosh.b = 6; assert(nosh.a == 5); assert(nosh.b == 6); } { Tuple!(short, double) b; static assert(b.length == 2); b[1] = 5; auto a = Tuple!(int, real)(b); assert(a[0] == 0 && a[1] == 5); a = Tuple!(int, real)(1, 2); assert(a[0] == 1 && a[1] == 2); auto c = Tuple!(int, "a", double, "b")(a); assert(c[0] == 1 && c[1] == 2); } { Tuple!(int, real) nosh; nosh[0] = 5; nosh[1] = 0; assert(nosh[0] == 5 && nosh[1] == 0); assert(nosh.toString() == "Tuple!(int, real)(5, 0)", nosh.toString()); Tuple!(int, int) yessh; nosh = yessh; } { Tuple!(int, string) t; t[0] = 10; t[1] = "str"; assert(t[0] == 10 && t[1] == "str"); assert(t.toString() == `Tuple!(int, string)(10, "str")`, t.toString()); } { Tuple!(int, "a", double, "b") x; static assert(x.a.offsetof == x[0].offsetof); static assert(x.b.offsetof == x[1].offsetof); x.b = 4.5; x.a = 5; assert(x[0] == 5 && x[1] == 4.5); assert(x.a == 5 && x.b == 4.5); } // indexing { Tuple!(int, real) t; static assert(is(typeof(t[0]) == int)); static assert(is(typeof(t[1]) == real)); int* p0 = &t[0]; real* p1 = &t[1]; t[0] = 10; t[1] = -200.0L; assert(*p0 == t[0]); assert(*p1 == t[1]); } // slicing { Tuple!(int, "x", real, "y", double, "z", string) t; t[0] = 10; t[1] = 11; t[2] = 12; t[3] = "abc"; auto a = t.slice!(0, 3); assert(a.length == 3); assert(a.x == t.x); assert(a.y == t.y); assert(a.z == t.z); auto b = t.slice!(2, 4); assert(b.length == 2); assert(b.z == t.z); assert(b[1] == t[3]); } // nesting { Tuple!(Tuple!(int, real), Tuple!(string, "s")) t; static assert(is(typeof(t[0]) == Tuple!(int, real))); static assert(is(typeof(t[1]) == Tuple!(string, "s"))); static assert(is(typeof(t[0][0]) == int)); static assert(is(typeof(t[0][1]) == real)); static assert(is(typeof(t[1].s) == string)); t[0] = tuple(10, 20.0L); t[1].s = "abc"; assert(t[0][0] == 10); assert(t[0][1] == 20.0L); assert(t[1].s == "abc"); } // non-POD { static struct S { int count; this(this) { ++count; } ~this() { --count; } void opAssign(S rhs) { count = rhs.count; } } Tuple!(S, S) ss; Tuple!(S, S) ssCopy = ss; assert(ssCopy[0].count == 1); assert(ssCopy[1].count == 1); ssCopy[1] = ssCopy[0]; assert(ssCopy[1].count == 2); } // bug 2800 { static struct R { Tuple!(int, int) _front; @property ref Tuple!(int, int) front() { return _front; } @property bool empty() { return _front[0] >= 10; } void popFront() { ++_front[0]; } } foreach (a; R()) { static assert(is(typeof(a) == Tuple!(int, int))); assert(0 <= a[0] && a[0] < 10); assert(a[1] == 0); } } // Construction with compatible elements { auto t1 = Tuple!(int, double)(1, 1); // 8702 auto t8702a = tuple(tuple(1)); auto t8702b = Tuple!(Tuple!(int))(Tuple!(int)(1)); } // Construction with compatible tuple { Tuple!(int, int) x; x[0] = 10; x[1] = 20; Tuple!(int, "a", double, "b") y = x; assert(y.a == 10); assert(y.b == 20); // incompatible static assert(!__traits(compiles, Tuple!(int, int)(y))); } // 6275 { const int x = 1; auto t1 = tuple(x); alias Tuple!(const(int)) T; auto t2 = T(1); } // 9431 { alias T = Tuple!(int[1][]); auto t = T([[10]]); } } unittest { // opEquals { struct Equ1 { bool opEquals(Equ1) { return true; } } auto tm1 = tuple(Equ1.init); const tc1 = tuple(Equ1.init); static assert( is(typeof(tm1 == tm1))); static assert(!is(typeof(tm1 == tc1))); static assert(!is(typeof(tc1 == tm1))); static assert(!is(typeof(tc1 == tc1))); struct Equ2 { bool opEquals(const Equ2) const { return true; } } auto tm2 = tuple(Equ2.init); const tc2 = tuple(Equ2.init); static assert( is(typeof(tm2 == tm2))); static assert( is(typeof(tm2 == tc2))); static assert( is(typeof(tc2 == tm2))); static assert( is(typeof(tc2 == tc2))); struct Equ3 { bool opEquals(T)(T) { return true; } } auto tm3 = tuple(Equ3.init); // bugzilla 8686 const tc3 = tuple(Equ3.init); static assert( is(typeof(tm3 == tm3))); static assert( is(typeof(tm3 == tc3))); static assert(!is(typeof(tc3 == tm3))); static assert(!is(typeof(tc3 == tc3))); struct Equ4 { bool opEquals(T)(T) const { return true; } } auto tm4 = tuple(Equ4.init); const tc4 = tuple(Equ4.init); static assert( is(typeof(tm4 == tm4))); static assert( is(typeof(tm4 == tc4))); static assert( is(typeof(tc4 == tm4))); static assert( is(typeof(tc4 == tc4))); } // opCmp { struct Cmp1 { int opCmp(Cmp1) { return 0; } } auto tm1 = tuple(Cmp1.init); const tc1 = tuple(Cmp1.init); static assert( is(typeof(tm1 < tm1))); static assert(!is(typeof(tm1 < tc1))); static assert(!is(typeof(tc1 < tm1))); static assert(!is(typeof(tc1 < tc1))); struct Cmp2 { int opCmp(const Cmp2) const { return 0; } } auto tm2 = tuple(Cmp2.init); const tc2 = tuple(Cmp2.init); static assert( is(typeof(tm2 < tm2))); static assert( is(typeof(tm2 < tc2))); static assert( is(typeof(tc2 < tm2))); static assert( is(typeof(tc2 < tc2))); struct Cmp3 { int opCmp(T)(T) { return 0; } } auto tm3 = tuple(Cmp3.init); const tc3 = tuple(Cmp3.init); static assert( is(typeof(tm3 < tm3))); static assert( is(typeof(tm3 < tc3))); static assert(!is(typeof(tc3 < tm3))); static assert(!is(typeof(tc3 < tc3))); struct Cmp4 { int opCmp(T)(T) const { return 0; } } auto tm4 = tuple(Cmp4.init); const tc4 = tuple(Cmp4.init); static assert( is(typeof(tm4 < tm4))); static assert( is(typeof(tm4 < tc4))); static assert( is(typeof(tc4 < tm4))); static assert( is(typeof(tc4 < tc4))); } { int[2] ints = [ 1, 2 ]; Tuple!(int, int) t = ints; assert(t[0] == 1 && t[1] == 2); Tuple!(long, uint) t2 = ints; assert(t2[0] == 1 && t2[1] == 2); } } @safe unittest { auto t1 = Tuple!(int, "x", string, "y")(1, "a"); assert(t1.x == 1); assert(t1.y == "a"); void foo(Tuple!(int, string) t2) {} foo(t1); Tuple!(int, int)[] arr; arr ~= tuple(10, 20); // OK arr ~= Tuple!(int, "x", int, "y")(10, 20); // NG -> OK static assert(is(typeof(Tuple!(int, "x", string, "y").tupleof) == typeof(Tuple!(int, string ).tupleof))); } unittest { // Bugzilla 10686 immutable Tuple!(int) t1; auto r1 = t1[0]; // OK immutable Tuple!(int, "x") t2; auto r2 = t2[0]; // error } unittest { // Bugzilla 10218 assertCTFEable!( { auto t = tuple(1); t = tuple(2); // assignment }); } /** Returns a $(D Tuple) object instantiated and initialized according to the arguments. Example: ---- auto value = tuple(5, 6.7, "hello"); assert(value[0] == 5); assert(value[1] == 6.7); assert(value[2] == "hello"); ---- */ Tuple!T tuple(T...)(T args) { return typeof(return)(args); } /** Returns $(D true) if and only if $(D T) is an instance of the $(D Tuple) struct template. */ template isTuple(T) { static if (is(Unqual!T Unused : Tuple!Specs, Specs...)) { enum isTuple = true; } else { enum isTuple = false; } } unittest { static assert(isTuple!(Tuple!())); static assert(isTuple!(Tuple!(int))); static assert(isTuple!(Tuple!(int, real, string))); static assert(isTuple!(Tuple!(int, "x", real, "y"))); static assert(isTuple!(Tuple!(int, Tuple!(real), string))); static assert(isTuple!(const Tuple!(int))); static assert(isTuple!(immutable Tuple!(int))); static assert(!isTuple!(int)); static assert(!isTuple!(const int)); struct S {} static assert(!isTuple!(S)); } /** $(D Rebindable!(T)) is a simple, efficient wrapper that behaves just like an object of type $(D T), except that you can reassign it to refer to another object. For completeness, $(D Rebindable!(T)) aliases itself away to $(D T) if $(D T) is a non-const object type. However, $(D Rebindable!(T)) does not compile if $(D T) is a non-class type. Regular $(D const) object references cannot be reassigned: ---- class Widget { int x; int y() const { return x; } } const a = new Widget; a.y(); // fine a.x = 5; // error! can't modify const a a = new Widget; // error! can't modify const a ---- However, $(D Rebindable!(Widget)) does allow reassignment, while otherwise behaving exactly like a $(D const Widget): ---- auto a = Rebindable!(const Widget)(new Widget); a.y(); // fine a.x = 5; // error! can't modify const a a = new Widget; // fine ---- You may want to use $(D Rebindable) when you want to have mutable storage referring to $(D const) objects, for example an array of references that must be sorted in place. $(D Rebindable) does not break the soundness of D's type system and does not incur any of the risks usually associated with $(D cast). */ template Rebindable(T) if (is(T == class) || is(T == interface) || isArray!T) { static if (!is(T X == const U, U) && !is(T X == immutable U, U)) { alias T Rebindable; } else static if (isArray!T) { alias const(ElementType!T)[] Rebindable; } else { struct Rebindable { private union { T original; U stripped; } void opAssign(T another) pure nothrow { stripped = cast(U) another; } void opAssign(Rebindable another) pure nothrow { stripped = another.stripped; } static if (is(T == const U)) { // safely assign immutable to const void opAssign(Rebindable!(immutable U) another) pure nothrow { stripped = another.stripped; } } this(T initializer) pure nothrow { opAssign(initializer); } @property ref inout(T) get() inout pure nothrow { return original; } alias get this; } } } /** Convenience function for creating a $(D Rebindable) using automatic type inference. */ Rebindable!T rebindable(T)(T obj) if (is(T == class) || is(T == interface) || isArray!T) { typeof(return) ret; ret = obj; return ret; } /** This function simply returns the $(D Rebindable) object passed in. It's useful in generic programming cases when a given object may be either a regular $(D class) or a $(D Rebindable). */ Rebindable!T rebindable(T)(Rebindable!T obj) { return obj; } unittest { interface CI { const int foo(); } class C : CI { int foo() const { return 42; } @property int bar() const { return 23; } } Rebindable!(C) obj0; static assert(is(typeof(obj0) == C)); Rebindable!(const(C)) obj1; static assert(is(typeof(obj1.get) == const(C)), typeof(obj1.get).stringof); static assert(is(typeof(obj1.stripped) == C)); obj1 = new C; assert(obj1.get !is null); obj1 = new const(C); assert(obj1.get !is null); Rebindable!(immutable(C)) obj2; static assert(is(typeof(obj2.get) == immutable(C))); static assert(is(typeof(obj2.stripped) == C)); obj2 = new immutable(C); assert(obj1.get !is null); // test opDot assert(obj2.foo() == 42); assert(obj2.bar == 23); interface I { final int foo() const { return 42; } } Rebindable!(I) obj3; static assert(is(typeof(obj3) == I)); Rebindable!(const I) obj4; static assert(is(typeof(obj4.get) == const I)); static assert(is(typeof(obj4.stripped) == I)); static assert(is(typeof(obj4.foo()) == int)); obj4 = new class I {}; Rebindable!(immutable C) obj5i; Rebindable!(const C) obj5c; obj5c = obj5c; obj5c = obj5i; obj5i = obj5i; static assert(!__traits(compiles, obj5i = obj5c)); // Test the convenience functions. auto obj5convenience = rebindable(obj5i); assert(obj5convenience is obj5i); auto obj6 = rebindable(new immutable(C)); static assert(is(typeof(obj6) == Rebindable!(immutable C))); assert(obj6.foo() == 42); auto obj7 = rebindable(new C); CI interface1 = obj7; auto interfaceRebind1 = rebindable(interface1); assert(interfaceRebind1.foo() == 42); const interface2 = interface1; auto interfaceRebind2 = rebindable(interface2); assert(interfaceRebind2.foo() == 42); auto arr = [1,2,3,4,5]; const arrConst = arr; assert(rebindable(arr) == arr); assert(rebindable(arrConst) == arr); } /** Order the provided members to minimize size while preserving alignment. Returns a declaration to be mixed in. Example: --- struct Banner { mixin(alignForSize!(byte[6], double)(["name", "height"])); } --- Alignment is not always optimal for 80-bit reals, nor for structs declared as align(1). */ string alignForSize(E...)(string[] names...) { // Sort all of the members by .alignof. // BUG: Alignment is not always optimal for align(1) structs // or 80-bit reals or 64-bit primitives on x86. // TRICK: Use the fact that .alignof is always a power of 2, // and maximum 16 on extant systems. Thus, we can perform // a very limited radix sort. // Contains the members with .alignof = 64,32,16,8,4,2,1 assert(E.length == names.length, "alignForSize: There should be as many member names as the types"); string[7] declaration = ["", "", "", "", "", "", ""]; foreach (i, T; E) { auto a = T.alignof; auto k = a>=64? 0 : a>=32? 1 : a>=16? 2 : a>=8? 3 : a>=4? 4 : a>=2? 5 : 6; declaration[k] ~= T.stringof ~ " " ~ names[i] ~ ";\n"; } auto s = ""; foreach (decl; declaration) s ~= decl; return s; } unittest { enum x = alignForSize!(int[], char[3], short, double[5])("x", "y","z", "w"); struct Foo { int x; } enum y = alignForSize!(ubyte, Foo, cdouble)("x", "y", "z"); enum passNormalX = x == "double[5] w;\nint[] x;\nshort z;\nchar[3] y;\n"; enum passNormalY = y == "cdouble z;\nFoo y;\nubyte x;\n"; enum passAbnormalX = x == "int[] x;\ndouble[5] w;\nshort z;\nchar[3] y;\n"; enum passAbnormalY = y == "Foo y;\ncdouble z;\nubyte x;\n"; // ^ blame http://d.puremagic.com/issues/show_bug.cgi?id=231 static assert(passNormalX || passAbnormalX && double.alignof <= (int[]).alignof); static assert(passNormalY || passAbnormalY && double.alignof <= int.alignof); } /*--* First-class reference type */ struct Ref(T) { private T * _p; this(ref T value) { _p = &value; } ref T opDot() { return *_p; } /*ref*/ T opImplicitCastTo() { return *_p; } @property ref T value() { return *_p; } void opAssign(T value) { *_p = value; } void opAssign(T * value) { _p = value; } } unittest { Ref!(int) x; int y = 42; x = &y; assert(x.value == 42); x = 5; assert(x.value == 5); assert(y == 5); } /** Defines a value paired with a distinctive "null" state that denotes the absence of a value. If default constructed, a $(D Nullable!T) object starts in the null state. Assigning it renders it non-null. Calling $(D nullify) can nullify it again. Example: ---- Nullable!int a; assert(a.isNull); a = 5; assert(!a.isNull); assert(a == 5); ---- Practically $(D Nullable!T) stores a $(D T) and a $(D bool). */ struct Nullable(T) { private T _value; private bool _isNull = true; /** Constructor initializing $(D this) with $(D value). */ //this()(inout T value) inout // proper signature this(U:T)(inout U value) inout // workaround for BUG 10313 { _value = value; _isNull = false; } this(U:T)(U value) // workaround for BUG 10357 { _value = value; _isNull = false; } /** Returns $(D true) if and only if $(D this) is in the null state. */ @property bool isNull() const pure nothrow @safe { return _isNull; } /** Forces $(D this) to the null state. */ void nullify()() { .destroy(_value); _isNull = true; } /** Assigns $(D value) to the internally-held state. If the assignment succeeds, $(D this) becomes non-null. */ void opAssign()(T value) { _value = value; _isNull = false; } /** Gets the value. $(D this) must not be in the null state. This function is also called for the implicit conversion to $(D T). */ @property ref inout(T) get() inout pure nothrow @safe { enum message = "Called `get' on null Nullable!" ~ T.stringof ~ "."; assert(!isNull, message); return _value; } /** Implicitly converts to $(D T). $(D this) must not be in the null state. */ alias get this; } unittest { Nullable!int a; assert(a.isNull); assertThrown!Throwable(a.get); a = 5; assert(!a.isNull); assert(a == 5); assert(a != 3); assert(a.get != 3); a.nullify(); assert(a.isNull); a = 3; assert(a == 3); a *= 6; assert(a == 18); a = a; assert(a == 18); a.nullify(); assertThrown!Throwable(a += 2); } unittest { auto k = Nullable!int(74); assert(k == 74); k.nullify(); assert(k.isNull); } unittest { static int f(in Nullable!int x) { return x.isNull ? 42 : x.get; } Nullable!int a; assert(f(a) == 42); a = 8; assert(f(a) == 8); a.nullify(); assert(f(a) == 42); } unittest { static struct S { int x; } Nullable!S s; assert(s.isNull); s = S(6); assert(s == S(6)); assert(s != S(0)); assert(s.get != S(0)); s.x = 9190; assert(s.x == 9190); s.nullify(); assertThrown!Throwable(s.x = 9441); } unittest { // Ensure Nullable can be used in pure/nothrow/@safe environment. function() pure nothrow @safe { Nullable!int n; assert(n.isNull); n = 4; assert(!n.isNull); assert(n == 4); n.nullify(); assert(n.isNull); }(); } unittest { // Ensure Nullable can be used when the value is not pure/nothrow/@safe static struct S { int x; this(this) @system {} } Nullable!S s; assert(s.isNull); s = S(5); assert(!s.isNull); assert(s.x == 5); s.nullify(); assert(s.isNull); } unittest { // Bugzilla 9404 alias N = Nullable!int; void foo(N a) { N b; b = a; // `N b = a;` works fine } N n; foo(n); } unittest { //Check nullable immutable is constructable { auto a1 = Nullable!(immutable int)(); auto a2 = Nullable!(immutable int)(1); auto i = a2.get; } //Check immutable nullable is constructable { auto a1 = immutable (Nullable!int)(); auto a2 = immutable (Nullable!int)(1); auto i = a2.get; } } unittest { alias NInt = Nullable!int; //Construct tests { //from other Nullable null NInt a1; NInt b1 = a1; assert(b1.isNull); //from other Nullable non-null NInt a2 = NInt(1); NInt b2 = a2; assert(b2 == 1); //Construct from similar nullable auto a3 = immutable(NInt)(); NInt b3 = a3; assert(b3.isNull); } //Assign tests { //from other Nullable null NInt a1; NInt b1; b1 = a1; assert(b1.isNull); //from other Nullable non-null NInt a2 = NInt(1); NInt b2; b2 = a2; assert(b2 == 1); //Construct from similar nullable auto a3 = immutable(NInt)(); NInt b3 = a3; b3 = a3; assert(b3.isNull); } } unittest { //Check nullable is nicelly embedable in a struct static struct S1 { Nullable!int ni; } static struct S2 //inspired from 9404 { Nullable!int ni; this(S2 other) { ni = other.ni; } void opAssign(S2 other) { ni = other.ni; } } foreach (S; TypeTuple!(S1, S2)) { S a; S b = a; S c; c = a; } } unittest { // Bugzilla 10268 import std.json; JSONValue value = void; value.type = JSON_TYPE.NULL; auto na = Nullable!JSONValue(value); struct S1 { int val; } struct S2 { int* val; } struct S3 { immutable int* val; } { auto sm = S1(1); immutable si = immutable S1(1); static assert( __traits(compiles, { auto x1 = Nullable!S1(sm); })); static assert( __traits(compiles, { auto x2 = immutable Nullable!S1(sm); })); static assert( __traits(compiles, { auto x3 = Nullable!S1(si); })); static assert( __traits(compiles, { auto x4 = immutable Nullable!S1(si); })); } auto nm = 10; immutable ni = 10; { auto sm = S2(&nm); immutable si = immutable S2(&ni); static assert( __traits(compiles, { auto x = Nullable!S2(sm); })); static assert(!__traits(compiles, { auto x = immutable Nullable!S2(sm); })); static assert(!__traits(compiles, { auto x = Nullable!S2(si); })); static assert( __traits(compiles, { auto x = immutable Nullable!S2(si); })); } { auto sm = S3(&ni); immutable si = immutable S3(&ni); static assert( __traits(compiles, { auto x = Nullable!S3(sm); })); static assert( __traits(compiles, { auto x = immutable Nullable!S3(sm); })); static assert( __traits(compiles, { auto x = Nullable!S3(si); })); static assert( __traits(compiles, { auto x = immutable Nullable!S3(si); })); } } unittest { // Bugzila 10357 import std.datetime; Nullable!SysTime time = SysTime(0); } /** Just like $(D Nullable!T), except that the null state is defined as a particular value. For example, $(D Nullable!(uint, uint.max)) is an $(D uint) that sets aside the value $(D uint.max) to denote a null state. $(D Nullable!(T, nullValue)) is more storage-efficient than $(D Nullable!T) because it does not need to store an extra $(D bool). */ struct Nullable(T, T nullValue) { private T _value = nullValue; /** Constructor initializing $(D this) with $(D value). */ this()(T value) { _value = value; } /** Returns $(D true) if and only if $(D this) is in the null state. */ @property bool isNull()() const { return _value == nullValue; } /** Forces $(D this) to the null state. */ void nullify()() { _value = nullValue; } /** Assigns $(D value) to the internally-held state. No null checks are made. Note that the assignment may leave $(D this) in the null state. */ void opAssign()(T value) { _value = value; } /** Gets the value. $(D this) must not be in the null state. This function is also called for the implicit conversion to $(D T). */ @property ref inout(T) get()() inout { //@@@6169@@@: We avoid any call that might evaluate nullValue's %s, //Because it might messup get's purity and safety inference. enum message = "Called `get' on null Nullable!(" ~ T.stringof ~ ",nullValue)."; assert(!isNull, message); return _value; } /** Implicitly converts to $(D T). Gets the value. $(D this) must not be in the null state. */ alias get this; } unittest { Nullable!(int, int.min) a; assert(a.isNull); assertThrown!Throwable(a.get); a = 5; assert(!a.isNull); assert(a == 5); static assert(a.sizeof == int.sizeof); } unittest { auto a = Nullable!(int, int.min)(8); assert(a == 8); a.nullify(); assert(a.isNull); } unittest { static int f(in Nullable!(int, int.min) x) { return x.isNull ? 42 : x.get; } Nullable!(int, int.min) a; assert(f(a) == 42); a = 8; assert(f(a) == 8); a.nullify(); assert(f(a) == 42); } unittest { // Ensure Nullable can be used in pure/nothrow/@safe environment. function() pure nothrow @safe { Nullable!(int, int.min) n; assert(n.isNull); n = 4; assert(!n.isNull); assert(n == 4); n.nullify(); assert(n.isNull); }(); } unittest { // Ensure Nullable can be used when the value is not pure/nothrow/@safe static struct S { int x; bool opEquals(const S s) const @system { return s.x == x; } } Nullable!(S, S(711)) s; assert(s.isNull); s = S(5); assert(!s.isNull); assert(s.x == 5); s.nullify(); assert(s.isNull); } unittest { //Check nullable is nicelly embedable in a struct static struct S1 { Nullable!(int, 0) ni; } static struct S2 //inspired from 9404 { Nullable!(int, 0) ni; this(S2 other) { ni = other.ni; } void opAssign(S2 other) { ni = other.ni; } } foreach (S; TypeTuple!(S1, S2)) { S a; S b = a; S c; c = a; } } /** Just like $(D Nullable!T), except that the object refers to a value sitting elsewhere in memory. This makes assignments overwrite the initially assigned value. Internally $(D NullableRef!T) only stores a pointer to $(D T) (i.e., $(D Nullable!T.sizeof == (T*).sizeof)). */ struct NullableRef(T) { private T* _value; /** Constructor binding $(D this) with $(D value). */ this(T* value) pure nothrow @safe { _value = value; } /** Binds the internal state to $(D value). */ void bind(T* value) pure nothrow @safe { _value = value; } /** Returns $(D true) if and only if $(D this) is in the null state. */ @property bool isNull() const pure nothrow @safe { return _value is null; } /** Forces $(D this) to the null state. */ void nullify() pure nothrow @safe { _value = null; } /** Assigns $(D value) to the internally-held state. */ void opAssign()(T value) if (isAssignable!T) //@@@9416@@@ { enum message = "Called `opAssign' on null NullableRef!" ~ T.stringof ~ "."; assert(!isNull, message); *_value = value; } /** Gets the value. $(D this) must not be in the null state. This function is also called for the implicit conversion to $(D T). */ @property ref inout(T) get() inout pure nothrow @safe { enum message = "Called `get' on null NullableRef!" ~ T.stringof ~ "."; assert(!isNull, message); return *_value; } /** Implicitly converts to $(D T). $(D this) must not be in the null state. */ alias get this; } unittest { int x = 5, y = 7; auto a = NullableRef!(int)(&x); assert(!a.isNull); assert(a == 5); assert(x == 5); a = 42; assert(x == 42); assert(!a.isNull); assert(a == 42); a.nullify(); assert(x == 42); assert(a.isNull); assertThrown!Throwable(a.get); assertThrown!Throwable(a = 71); a.bind(&y); assert(a == 7); y = 135; assert(a == 135); } unittest { static int f(in NullableRef!int x) { return x.isNull ? 42 : x.get; } int x = 5; auto a = NullableRef!int(&x); assert(f(a) == 5); a.nullify(); assert(f(a) == 42); } unittest { // Ensure NullableRef can be used in pure/nothrow/@safe environment. function() pure nothrow @safe { auto storage = new int; *storage = 19902; NullableRef!int n; assert(n.isNull); n.bind(storage); assert(!n.isNull); assert(n == 19902); n = 2294; assert(n == 2294); assert(*storage == 2294); n.nullify(); assert(n.isNull); }(); } unittest { // Ensure NullableRef can be used when the value is not pure/nothrow/@safe static struct S { int x; this(this) @system {} bool opEquals(const S s) const @system { return s.x == x; } } auto storage = S(5); NullableRef!S s; assert(s.isNull); s.bind(&storage); assert(!s.isNull); assert(s.x == 5); s.nullify(); assert(s.isNull); } unittest { //Check nullable is nicelly embedable in a struct static struct S1 { NullableRef!int ni; } static struct S2 //inspired from 9404 { NullableRef!int ni; this(S2 other) { ni = other.ni; } void opAssign(S2 other) { ni = other.ni; } } foreach (S; TypeTuple!(S1, S2)) { S a; S b = a; S c; c = a; } } /** $(D BlackHole!Base) is a subclass of $(D Base) which automatically implements all abstract member functions in $(D Base) as do-nothing functions. Each auto-implemented function just returns the default value of the return type without doing anything. The name came from $(WEB search.cpan.org/~sburke/Class-_BlackHole-0.04/lib/Class/_BlackHole.pm, Class::_BlackHole) Perl module by Sean M. Burke. Example: -------------------- abstract class C { int m_value; this(int v) { m_value = v; } int value() @property { return m_value; } abstract real realValue() @property; abstract void doSomething(); } void main() { auto c = new BlackHole!C(42); writeln(c.value); // prints "42" // Abstract functions are implemented as do-nothing: writeln(c.realValue); // prints "NaN" c.doSomething(); // does nothing } -------------------- See_Also: AutoImplement, generateEmptyFunction */ template BlackHole(Base) { alias AutoImplement!(Base, generateEmptyFunction, isAbstractFunction) BlackHole; } unittest { // return default { interface I_1 { real test(); } auto o = new BlackHole!I_1; assert(o.test() !<>= 0); // NaN } // doc example { static class C { int m_value; this(int v) { m_value = v; } int value() @property { return m_value; } abstract real realValue() @property; abstract void doSomething(); } auto c = new BlackHole!C(42); assert(c.value == 42); assert(c.realValue !<>= 0); // NaN c.doSomething(); } } /** $(D WhiteHole!Base) is a subclass of $(D Base) which automatically implements all abstract member functions as throw-always functions. Each auto-implemented function fails with throwing an $(D Error) and does never return. Useful for trapping use of not-yet-implemented functions. The name came from $(WEB search.cpan.org/~mschwern/Class-_WhiteHole-0.04/lib/Class/_WhiteHole.pm, Class::_WhiteHole) Perl module by Michael G Schwern. Example: -------------------- class C { abstract void notYetImplemented(); } void main() { auto c = new WhiteHole!C; c.notYetImplemented(); // throws an Error } -------------------- BUGS: Nothrow functions cause program to abort in release mode because the trap is implemented with $(D assert(0)) for nothrow functions. See_Also: AutoImplement, generateAssertTrap */ template WhiteHole(Base) { alias AutoImplement!(Base, generateAssertTrap, isAbstractFunction) WhiteHole; } // / ditto class NotImplementedError : Error { this(string method) { super(method ~ " is not implemented"); } } unittest { // nothrow debug // see the BUGS above { interface I_1 { void foo(); void bar() nothrow; } auto o = new WhiteHole!I_1; uint trap; try { o.foo(); } catch (Error e) { ++trap; } assert(trap == 1); try { o.bar(); } catch (Error e) { ++trap; } assert(trap == 2); } // doc example { static class C { abstract void notYetImplemented(); } auto c = new WhiteHole!C; try { c.notYetImplemented(); assert(0); } catch (Error e) {} } } /** $(D AutoImplement) automatically implements (by default) all abstract member functions in the class or interface $(D Base) in specified way. Params: how = template which specifies _how functions will be implemented/overridden. Two arguments are passed to $(D how): the type $(D Base) and an alias to an implemented function. Then $(D how) must return an implemented function body as a string. The generated function body can use these keywords: $(UL $(LI $(D a0), $(D a1), &hellip;: arguments passed to the function;) $(LI $(D args): a tuple of the arguments;) $(LI $(D self): an alias to the function itself;) $(LI $(D parent): an alias to the overridden function (if any).) ) You may want to use templated property functions (instead of Implicit Template Properties) to generate complex functions: -------------------- // Prints log messages for each call to overridden functions. string generateLogger(C, alias fun)() @property { import std.traits; enum qname = C.stringof ~ "." ~ __traits(identifier, fun); string stmt; stmt ~= q{ struct Importer { import std.stdio; } }; stmt ~= `Importer.writeln$(LPAREN)"Log: ` ~ qname ~ `(", args, ")"$(RPAREN);`; static if (!__traits(isAbstractFunction, fun)) { static if (is(ReturnType!fun == void)) stmt ~= q{ parent(args); }; else stmt ~= q{ auto r = parent(args); Importer.writeln("--> ", r); return r; }; } return stmt; } -------------------- what = template which determines _what functions should be implemented/overridden. An argument is passed to $(D what): an alias to a non-final member function in $(D Base). Then $(D what) must return a boolean value. Return $(D true) to indicate that the passed function should be implemented/overridden. -------------------- // Sees if fun returns something. template hasValue(alias fun) { enum bool hasValue = !is(ReturnType!(fun) == void); } -------------------- Note: Generated code is inserted in the scope of $(D std.typecons) module. Thus, any useful functions outside $(D std.typecons) cannot be used in the generated code. To workaround this problem, you may $(D import) necessary things in a local struct, as done in the $(D generateLogger()) template in the above example. BUGS: $(UL $(LI Variadic arguments to constructors are not forwarded to super.) $(LI Deep interface inheritance causes compile error with messages like "Error: function std.typecons._AutoImplement!(Foo)._AutoImplement.bar does not override any function". [$(BUGZILLA 2525), $(BUGZILLA 3525)] ) $(LI The $(D parent) keyword is actually a delegate to the super class' corresponding member function. [$(BUGZILLA 2540)] ) $(LI Using alias template parameter in $(D how) and/or $(D what) may cause strange compile error. Use template tuple parameter instead to workaround this problem. [$(BUGZILLA 4217)] ) ) */ class AutoImplement(Base, alias how, alias what = isAbstractFunction) : Base { private alias AutoImplement_Helper!( "autoImplement_helper_", "Base", Base, how, what ) autoImplement_helper_; mixin(autoImplement_helper_.code); } /* * Code-generating stuffs are encupsulated in this helper template so that * namespace pollusion, which can cause name confliction with Base's public * members, should be minimized. */ private template AutoImplement_Helper(string myName, string baseName, Base, alias generateMethodBody, alias cherrypickMethod) { private static: //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Internal stuffs //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // this would be deprecated by std.typelist.Filter template staticFilter(alias pred, lst...) { static if (lst.length > 0) { alias staticFilter!(pred, lst[1 .. $]) tail; // static if (pred!(lst[0])) alias TypeTuple!(lst[0], tail) staticFilter; else alias tail staticFilter; } else alias TypeTuple!() staticFilter; } // Returns function overload sets in the class C, filtered with pred. template enumerateOverloads(C, alias pred) { template Impl(names...) { static if (names.length > 0) { alias staticFilter!(pred, MemberFunctionsTuple!(C, names[0])) methods; alias Impl!(names[1 .. $]) next; static if (methods.length > 0) alias TypeTuple!(OverloadSet!(names[0], methods), next) Impl; else alias next Impl; } else alias TypeTuple!() Impl; } alias Impl!(__traits(allMembers, C)) enumerateOverloads; } //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Target functions //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Add a non-final check to the cherrypickMethod. template canonicalPicker(fun.../+[BUG 4217]+/) { enum bool canonicalPicker = !__traits(isFinalFunction, fun[0]) && cherrypickMethod!(fun); } /* * A tuple of overload sets, each item of which consists of functions to be * implemented by the generated code. */ alias enumerateOverloads!(Base, canonicalPicker) targetOverloadSets; /* * A tuple of the super class' constructors. Used for forwarding * constructor calls. */ static if (__traits(hasMember, Base, "__ctor")) alias OverloadSet!("__ctor", __traits(getOverloads, Base, "__ctor")) ctorOverloadSet; else alias OverloadSet!("__ctor") ctorOverloadSet; // empty //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Type information //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// /* * The generated code will be mixed into AutoImplement, which will be * instantiated in this module's scope. Thus, any user-defined types are * out of scope and cannot be used directly (i.e. by their names). * * We will use FuncInfo instances for accessing return types and parameter * types of the implemented functions. The instances will be populated to * the AutoImplement's scope in a certain way; see the populate() below. */ // Returns the preferred identifier for the FuncInfo instance for the i-th // overloaded function with the name. template INTERNAL_FUNCINFO_ID(string name, size_t i) { enum string INTERNAL_FUNCINFO_ID = format("F_%s_%s", name, i); } /* * Insert FuncInfo instances about all the target functions here. This * enables the generated code to access type information via, for example, * "autoImplement_helper_.F_foo_1". */ template populate(overloads...) { static if (overloads.length > 0) { mixin populate!(overloads[0].name, overloads[0].contents); mixin populate!(overloads[1 .. $]); } } template populate(string name, methods...) { static if (methods.length > 0) { mixin populate!(name, methods[0 .. $ - 1]); // alias methods[$ - 1] target; enum ith = methods.length - 1; mixin( "alias FuncInfo!(target) " ~ INTERNAL_FUNCINFO_ID!(name, ith) ~ ";" ); } } public mixin populate!(targetOverloadSets); public mixin populate!( ctorOverloadSet ); //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Code-generating policies //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// /* Common policy configurations for generating constructors and methods. */ template CommonGeneratingPolicy() { // base class identifier which generated code should use enum string BASE_CLASS_ID = baseName; // FuncInfo instance identifier which generated code should use template FUNCINFO_ID(string name, size_t i) { enum string FUNCINFO_ID = myName ~ "." ~ INTERNAL_FUNCINFO_ID!(name, i); } } /* Policy configurations for generating constructors. */ template ConstructorGeneratingPolicy() { mixin CommonGeneratingPolicy; /* Generates constructor body. Just forward to the base class' one. */ string generateFunctionBody(ctor.../+[BUG 4217]+/)() @property { enum varstyle = variadicFunctionStyle!(typeof(&ctor[0])); static if (varstyle & (Variadic.c | Variadic.d)) { // the argptr-forwarding problem pragma(msg, "Warning: AutoImplement!(", Base, ") ", "ignored variadic arguments to the constructor ", FunctionTypeOf!(typeof(&ctor[0])) ); } return "super(args);"; } } /* Policy configurations for genearting target methods. */ template MethodGeneratingPolicy() { mixin CommonGeneratingPolicy; /* Geneartes method body. */ string generateFunctionBody(func.../+[BUG 4217]+/)() @property { return generateMethodBody!(Base, func); // given } } //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Generated code //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// alias MemberFunctionGenerator!( ConstructorGeneratingPolicy!() ) ConstructorGenerator; alias MemberFunctionGenerator!( MethodGeneratingPolicy!() ) MethodGenerator; public enum string code = ConstructorGenerator.generateCode!( ctorOverloadSet ) ~ "\n" ~ MethodGenerator.generateCode!(targetOverloadSets); debug (SHOW_GENERATED_CODE) { pragma(msg, "-------------------- < ", Base, " >"); pragma(msg, code); pragma(msg, "--------------------"); } } //debug = SHOW_GENERATED_CODE; version(unittest) import core.vararg; unittest { // no function to implement { interface I_1 {} auto o = new BlackHole!I_1; } // parameters { interface I_3 { void test(int, in int, out int, ref int, lazy int); } auto o = new BlackHole!I_3; } // use of user-defined type { struct S {} interface I_4 { S test(); } auto o = new BlackHole!I_4; } // overloads { interface I_5 { void test(string); real test(real); int test(); } auto o = new BlackHole!I_5; } // constructor forwarding { static class C_6 { this(int n) { assert(n == 42); } this(string s) { assert(s == "Deeee"); } this(...) {} } auto o1 = new BlackHole!C_6(42); auto o2 = new BlackHole!C_6("Deeee"); auto o3 = new BlackHole!C_6(1, 2, 3, 4); } // attributes { interface I_7 { ref int test_ref(); int test_pure() pure; int test_nothrow() nothrow; int test_property() @property; int test_safe() @safe; int test_trusted() @trusted; int test_system() @system; int test_pure_nothrow() pure nothrow; } auto o = new BlackHole!I_7; } // storage classes { interface I_8 { void test_const() const; void test_immutable() immutable; void test_shared() shared; void test_shared_const() shared const; } auto o = new BlackHole!I_8; } /+ // deep inheritance { // XXX [BUG 2525,3525] // NOTE: [r494] func.c(504-571) FuncDeclaration::semantic() interface I { void foo(); } interface J : I {} interface K : J {} static abstract class C_9 : K {} auto o = new BlackHole!C_9; }+/ } version(unittest) { // Issue 10647 private string generateDoNothing(C, alias fun)() @property { string stmt; static if (is(ReturnType!fun == void)) stmt ~= ""; else { string returnType = ReturnType!fun.stringof; stmt ~= "return "~returnType~".init;"; } return stmt; } private template isAlwaysTrue(alias fun) { enum isAlwaysTrue = true; } // Do nothing template private template DoNothing(Base) { alias DoNothing = AutoImplement!(Base, generateDoNothing, isAlwaysTrue); } // A class to be overridden private class Foo{ void bar(int a) { } } } unittest { auto foo = new DoNothing!Foo(); foo.bar(13); } /* Used by MemberFunctionGenerator. */ package template OverloadSet(string nam, T...) { enum string name = nam; alias T contents; } /* Used by MemberFunctionGenerator. */ package template FuncInfo(alias func, /+[BUG 4217 ?]+/ T = typeof(&func)) { alias ReturnType!(T) RT; alias ParameterTypeTuple!(T) PT; } package template FuncInfo(Func) { alias ReturnType!(Func) RT; alias ParameterTypeTuple!(Func) PT; } /* General-purpose member function generator. -------------------- template GeneratingPolicy() { // [optional] the name of the class where functions are derived enum string BASE_CLASS_ID; // [optional] define this if you have only function types enum bool WITHOUT_SYMBOL; // [optional] Returns preferred identifier for i-th parameter. template PARAMETER_VARIABLE_ID(size_t i); // Returns the identifier of the FuncInfo instance for the i-th overload // of the specified name. The identifier must be accessible in the scope // where generated code is mixed. template FUNCINFO_ID(string name, size_t i); // Returns implemented function body as a string. When WITHOUT_SYMBOL is // defined, the latter is used. template generateFunctionBody(alias func); template generateFunctionBody(string name, FuncType); } -------------------- */ package template MemberFunctionGenerator(alias Policy) { private static: //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Internal stuffs //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// enum CONSTRUCTOR_NAME = "__ctor"; // true if functions are derived from a base class enum WITH_BASE_CLASS = __traits(hasMember, Policy, "BASE_CLASS_ID"); // true if functions are specified as types, not symbols enum WITHOUT_SYMBOL = __traits(hasMember, Policy, "WITHOUT_SYMBOL"); // preferred identifier for i-th parameter variable static if (__traits(hasMember, Policy, "PARAMETER_VARIABLE_ID")) { alias Policy.PARAMETER_VARIABLE_ID PARAMETER_VARIABLE_ID; } else { template PARAMETER_VARIABLE_ID(size_t i) { enum string PARAMETER_VARIABLE_ID = format("a%s", i); // default: a0, a1, ... } } // Returns a tuple consisting of 0,1,2,...,n-1. For static foreach. template CountUp(size_t n) { static if (n > 0) alias TypeTuple!(CountUp!(n - 1), n - 1) CountUp; else alias TypeTuple!() CountUp; } //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Code generator //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// /* * Runs through all the target overload sets and generates D code which * implements all the functions in the overload sets. */ public string generateCode(overloads...)() @property { string code = ""; // run through all the overload sets foreach (i_; CountUp!(0 + overloads.length)) // workaround { enum i = 0 + i_; // workaround alias overloads[i] oset; code ~= generateCodeForOverloadSet!(oset); static if (WITH_BASE_CLASS && oset.name != CONSTRUCTOR_NAME) { // The generated function declarations may hide existing ones // in the base class (cf. HiddenFuncError), so we put an alias // declaration here to reveal possible hidden functions. code ~= format("alias %s.%s %s;\n", Policy.BASE_CLASS_ID, // [BUG 2540] super. oset.name, oset.name ); } } return code; } // handle each overload set private string generateCodeForOverloadSet(alias oset)() @property { string code = ""; foreach (i_; CountUp!(0 + oset.contents.length)) // workaround { enum i = 0 + i_; // workaround code ~= generateFunction!( Policy.FUNCINFO_ID!(oset.name, i), oset.name, oset.contents[i]) ~ "\n"; } return code; } /* * Returns D code which implements the function func. This function * actually generates only the declarator part; the function body part is * generated by the functionGenerator() policy. */ public string generateFunction( string myFuncInfo, string name, func... )() @property { enum isCtor = (name == CONSTRUCTOR_NAME); string code; // the result /*** Function Declarator ***/ { alias FunctionTypeOf!(func) Func; alias FunctionAttribute FA; enum atts = functionAttributes!(func); enum realName = isCtor ? "this" : name; // FIXME?? Make it so that these aren't CTFE funcs any more, since // Format is deprecated, and format works at compile time? /* Made them CTFE funcs just for the sake of Format!(...) */ // return type with optional "ref" static string make_returnType() { string rtype = ""; if (!isCtor) { if (atts & FA.ref_) rtype ~= "ref "; rtype ~= myFuncInfo ~ ".RT"; } return rtype; } enum returnType = make_returnType(); // function attributes attached after declaration static string make_postAtts() { string poatts = ""; if (atts & FA.pure_ ) poatts ~= " pure"; if (atts & FA.nothrow_) poatts ~= " nothrow"; if (atts & FA.property) poatts ~= " @property"; if (atts & FA.safe ) poatts ~= " @safe"; if (atts & FA.trusted ) poatts ~= " @trusted"; return poatts; } enum postAtts = make_postAtts(); // function storage class static string make_storageClass() { string postc = ""; if (is(Func == shared)) postc ~= " shared"; if (is(Func == const)) postc ~= " const"; if (is(Func == immutable)) postc ~= " immutable"; return postc; } enum storageClass = make_storageClass(); // if (__traits(isVirtualMethod, func)) code ~= "override "; code ~= format("extern(%s) %s %s(%s) %s %s\n", functionLinkage!(func), returnType, realName, generateParameters!(myFuncInfo, func)(), postAtts, storageClass ); } /*** Function Body ***/ code ~= "{\n"; { enum nparams = ParameterTypeTuple!(func).length; /* Declare keywords: args, self and parent. */ string preamble; preamble ~= "alias TypeTuple!(" ~ enumerateParameters!(nparams) ~ ") args;\n"; if (!isCtor) { preamble ~= "alias " ~ name ~ " self;\n"; if (WITH_BASE_CLASS && !__traits(isAbstractFunction, func)) //preamble ~= "alias super." ~ name ~ " parent;\n"; // [BUG 2540] preamble ~= "auto parent = &super." ~ name ~ ";\n"; } // Function body static if (WITHOUT_SYMBOL) enum fbody = Policy.generateFunctionBody!(name, func); else enum fbody = Policy.generateFunctionBody!(func); code ~= preamble; code ~= fbody; } code ~= "}"; return code; } /* * Returns D code which declares function parameters. * "ref int a0, real a1, ..." */ private string generateParameters(string myFuncInfo, func...)() { alias ParameterStorageClass STC; alias ParameterStorageClassTuple!(func) stcs; enum nparams = stcs.length; string params = ""; // the result foreach (i, stc; stcs) { if (i > 0) params ~= ", "; // Parameter storage classes. if (stc & STC.scope_) params ~= "scope "; if (stc & STC.out_ ) params ~= "out "; if (stc & STC.ref_ ) params ~= "ref "; if (stc & STC.lazy_ ) params ~= "lazy "; // Take parameter type from the FuncInfo. params ~= format("%s.PT[%s]", myFuncInfo, i); // Declare a parameter variable. params ~= " " ~ PARAMETER_VARIABLE_ID!(i); } // Add some ellipsis part if needed. final switch (variadicFunctionStyle!(func)) { case Variadic.no: break; case Variadic.c, Variadic.d: // (...) or (a, b, ...) params ~= (nparams == 0) ? "..." : ", ..."; break; case Variadic.typesafe: params ~= " ..."; break; } return params; } // Returns D code which enumerates n parameter variables using comma as the // separator. "a0, a1, a2, a3" private string enumerateParameters(size_t n)() @property { string params = ""; foreach (i_; CountUp!(n)) { enum i = 0 + i_; // workaround if (i > 0) params ~= ", "; params ~= PARAMETER_VARIABLE_ID!(i); } return params; } } /** Predefined how-policies for $(D AutoImplement). These templates are used by $(D BlackHole) and $(D WhiteHole), respectively. */ template generateEmptyFunction(C, func.../+[BUG 4217]+/) { static if (is(ReturnType!(func) == void)) enum string generateEmptyFunction = q{ }; else static if (functionAttributes!(func) & FunctionAttribute.ref_) enum string generateEmptyFunction = q{ static typeof(return) dummy; return dummy; }; else enum string generateEmptyFunction = q{ return typeof(return).init; }; } /// ditto template generateAssertTrap(C, func.../+[BUG 4217]+/) { static if (functionAttributes!(func) & FunctionAttribute.nothrow_) //XXX { pragma(msg, "Warning: WhiteHole!(", C, ") used assert(0) instead " "of Error for the auto-implemented nothrow function ", C, ".", __traits(identifier, func)); enum string generateAssertTrap = `assert(0, "` ~ C.stringof ~ "." ~ __traits(identifier, func) ~ ` is not implemented");`; } else enum string generateAssertTrap = `throw new NotImplementedError("` ~ C.stringof ~ "." ~ __traits(identifier, func) ~ `");`; } private { pragma(mangle, "_d_toObject") extern(C) pure nothrow Object typecons_d_toObject(void* p); } /* * Avoids opCast operator overloading. */ private template dynamicCast(T) if (is(T == class) || is(T == interface)) { @trusted T dynamicCast(S)(inout S source) if (is(S == class) || is(S == interface)) { static if (is(Unqual!S : Unqual!T)) { import std.traits : QualifierOf; alias Qual = QualifierOf!S; // SharedOf or MutableOf alias TmpT = Qual!(Unqual!T); inout(TmpT) tmp = source; // bypass opCast by implicit conversion return *cast(T*)(&tmp); // + variable pointer cast + dereference } else { return cast(T)typecons_d_toObject(*cast(void**)(&source)); } } } unittest { class C { @disable opCast(T)() {} } auto c = new C; static assert(!__traits(compiles, cast(Object)c)); auto o = dynamicCast!Object(c); assert(c is o); interface I { @disable opCast(T)() {} Object instance(); } interface J { @disable opCast(T)() {} Object instance(); } class D : I, J { Object instance() { return this; } } I i = new D(); static assert(!__traits(compiles, cast(J)i)); J j = dynamicCast!J(i); assert(i.instance() is j.instance()); } /** * Supports structural based typesafe conversion. * * If $(D Source) has structural conformance with the $(D interface) $(D Targets), * wrap creates internal wrapper class which inherits $(D Targets) and * wrap $(D src) object, then return it. */ template wrap(Targets...) if (Targets.length >= 1 && allSatisfy!(isMutable, Targets)) { // strict upcast auto wrap(Source)(inout Source src) @trusted pure nothrow if (Targets.length == 1 && is(Source : Targets[0])) { alias T = Select!(is(Source == shared), shared Targets[0], Targets[0]); return dynamicCast!(inout T)(src); } // structural upcast template wrap(Source) if (!allSatisfy!(Bind!(isImplicitlyConvertible, Source), Targets)) { auto wrap(inout Source src) { static assert(hasRequireMethods!(), "Source "~Source.stringof~ " does not have structural conformance to "~ Targets.stringof); alias T = Select!(is(Source == shared), shared Impl, Impl); return new inout T(src); } template FuncInfo(string s, F) { enum name = s; alias type = F; } // Concat all Targets function members into one tuple template Concat(size_t i = 0) { static if (i >= Targets.length) alias Concat = TypeTuple!(); else { alias Concat = TypeTuple!(GetOverloadedMethods!(Targets[i]), Concat!(i + 1)); } } // Remove duplicated functions based on the identifier name and function type covariance template Uniq(members...) { static if (members.length == 0) alias Uniq = TypeTuple!(); else { alias func = members[0]; enum name = __traits(identifier, func); alias type = FunctionTypeOf!func; template check(size_t i, mem...) { static if (i >= mem.length) enum ptrdiff_t check = -1; else { enum ptrdiff_t check = __traits(identifier, func) == __traits(identifier, mem[i]) && !is(DerivedFunctionType!(type, FunctionTypeOf!(mem[i])) == void) ? i : check!(i + 1, mem); } } enum ptrdiff_t x = 1 + check!(0, members[1 .. $]); static if (x >= 1) { alias typex = DerivedFunctionType!(type, FunctionTypeOf!(members[x])); alias remain = Uniq!(members[1 .. x], members[x + 1 .. $]); static if (remain.length >= 1 && remain[0].name == name && !is(DerivedFunctionType!(typex, remain[0].type) == void)) { alias F = DerivedFunctionType!(typex, remain[0].type); alias Uniq = TypeTuple!(FuncInfo!(name, F), remain[1 .. $]); } else alias Uniq = TypeTuple!(FuncInfo!(name, typex), remain); } else { alias Uniq = TypeTuple!(FuncInfo!(name, type), Uniq!(members[1 .. $])); } } } alias TargetMembers = Uniq!(Concat!()); // list of FuncInfo alias SourceMembers = GetOverloadedMethods!Source; // list of function symbols // Check whether all of SourceMembers satisfy covariance target in TargetMembers template hasRequireMethods(size_t i = 0) { static if (i >= TargetMembers.length) enum hasRequireMethods = true; else { enum hasRequireMethods = findCovariantFunction!(TargetMembers[i], Source, SourceMembers) != -1 && hasRequireMethods!(i + 1); } } // Internal wrapper class final class Impl : Structural, Targets { private: Source _wrap_source; this( inout Source s) inout @safe pure nothrow { _wrap_source = s; } this(shared inout Source s) shared inout @safe pure nothrow { _wrap_source = s; } // BUG: making private should work with NVI. protected final inout(Object) _wrap_getSource() inout @trusted { return dynamicCast!(inout Object)(_wrap_source); } import std.conv : to; import std.algorithm : forward; template generateFun(size_t i) { enum name = TargetMembers[i].name; enum fa = functionAttributes!(TargetMembers[i].type); static @property stc() { string r; if (fa & FunctionAttribute.property) r ~= "@property "; if (fa & FunctionAttribute.ref_) r ~= "ref "; if (fa & FunctionAttribute.pure_) r ~= "pure "; if (fa & FunctionAttribute.nothrow_) r ~= "nothrow "; if (fa & FunctionAttribute.trusted) r ~= "@trusted "; if (fa & FunctionAttribute.safe) r ~= "@safe "; return r; } static @property mod() { alias TypeTuple!(TargetMembers[i].type)[0] type; string r; static if (is(type == immutable)) r ~= " immutable"; else { static if (is(type == shared)) r ~= " shared"; static if (is(type == const)) r ~= " const"; else static if (is(type == inout)) r ~= " inout"; //else --> mutable } return r; } enum n = to!string(i); static if (fa & FunctionAttribute.property) { static if (ParameterTypeTuple!(TargetMembers[i].type).length == 0) enum fbody = "_wrap_source."~name; else enum fbody = "_wrap_source."~name~" = forward!args"; } else { enum fbody = "_wrap_source."~name~"(forward!args)"; } enum generateFun = "override "~stc~"ReturnType!(TargetMembers["~n~"].type) " ~ name~"(ParameterTypeTuple!(TargetMembers["~n~"].type) args) "~mod~ "{ return "~fbody~"; }"; } public: mixin mixinAll!( staticMap!(generateFun, staticIota!(0, TargetMembers.length))); } } } /// ditto template wrap(Targets...) if (Targets.length >= 1 && !allSatisfy!(isMutable, Targets)) { alias wrap = .wrap!(staticMap!(Unqual, Targets)); } // Internal class to support dynamic cross-casting private interface Structural { inout(Object) _wrap_getSource() inout @safe pure nothrow; } /** * Extract object which wrapped by $(D wrap). */ template unwrap(Target) if (isMutable!Target) { // strict downcast auto unwrap(Source)(inout Source src) @trusted pure nothrow if (is(Target : Source)) { alias T = Select!(is(Source == shared), shared Target, Target); return dynamicCast!(inout T)(src); } // structural downcast auto unwrap(Source)(inout Source src) @trusted pure nothrow if (!is(Target : Source)) { alias T = Select!(is(Source == shared), shared Target, Target); Object o = dynamicCast!(Object)(src); // remove qualifier do { if (auto a = dynamicCast!(Structural)(o)) { if (auto d = dynamicCast!(inout T)(o = a._wrap_getSource())) return d; } else if (auto d = dynamicCast!(inout T)(o)) return d; else break; } while (o); return null; } } /// ditto template unwrap(Target) if (!isMutable!Target) { alias unwrap = .unwrap!(Unqual!Target); } /// unittest { interface Quack { int quack(); @property int height(); } interface Flyer { @property int height(); } class Duck : Quack { int quack() { return 1; } @property int height() { return 10; } } class Human { int quack() { return 2; } @property int height() { return 20; } } Duck d1 = new Duck(); Human h1 = new Human(); interface Refleshable { int reflesh(); } // does not have structural conformance static assert(!__traits(compiles, d1.wrap!Refleshable)); static assert(!__traits(compiles, h1.wrap!Refleshable)); // strict upcast Quack qd = d1.wrap!Quack; assert(qd is d1); assert(qd.quack() == 1); // calls Duck.quack // strict downcast Duck d2 = qd.unwrap!Duck; assert(d2 is d1); // structural upcast Quack qh = h1.wrap!Quack; assert(qh.quack() == 2); // calls Human.quack // structural downcast Human h2 = qh.unwrap!Human; assert(h2 is h1); // structural upcast (two steps) Quack qx = h1.wrap!Quack; // Human -> Quack Flyer fx = qx.wrap!Flyer; // Quack -> Flyer assert(fx.height == 20); // calls Human.height // strucural downcast (two steps) Quack qy = fx.unwrap!Quack; // Flyer -> Quack Human hy = qy.unwrap!Human; // Quack -> Human assert(hy is h1); // strucural downcast (one step) Human hz = fx.unwrap!Human; // Flyer -> Human assert(hz is h1); } /// unittest { interface A { int run(); } interface B { int stop(); @property int status(); } class X { int run() { return 1; } int stop() { return 2; } @property int status() { return 3; } } auto x = new X(); auto ab = x.wrap!(A, B); A a = ab; B b = ab; assert(a.run() == 1); assert(b.stop() == 2); assert(b.status == 3); static assert(functionAttributes!(typeof(ab).status) & FunctionAttribute.property); } unittest { class A { int draw() { return 1; } int draw(int v) { return v; } int draw() const { return 2; } int draw() shared { return 3; } int draw() shared const { return 4; } int draw() immutable { return 5; } } interface Drawable { int draw(); int draw() const; int draw() shared; int draw() shared const; int draw() immutable; } interface Drawable2 { int draw(int v); } auto ma = new A(); auto sa = new shared A(); auto ia = new immutable A(); { Drawable md = ma.wrap!Drawable; const Drawable cd = ma.wrap!Drawable; shared Drawable sd = sa.wrap!Drawable; shared const Drawable scd = sa.wrap!Drawable; immutable Drawable id = ia.wrap!Drawable; assert( md.draw() == 1); assert( cd.draw() == 2); assert( sd.draw() == 3); assert(scd.draw() == 4); assert( id.draw() == 5); } { Drawable2 d = ma.wrap!Drawable2; static assert(!__traits(compiles, d.draw())); assert(d.draw(10) == 10); } } unittest { // Bugzilla 10377 import std.range, std.algorithm; interface MyInputRange(T) { @property T front(); void popFront(); @property bool empty(); } //auto o = iota(0,10,1).inputRangeObject(); //pragma(msg, __traits(allMembers, typeof(o))); auto r = iota(0,10,1).inputRangeObject().wrap!(MyInputRange!int)(); assert(equal(r, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9])); } unittest { // Bugzilla 10536 interface Interface { int foo(); } class Pluggable { int foo() { return 1; } @disable void opCast(T, this X)(); // ! } Interface i = new Pluggable().wrap!Interface; assert(i.foo() == 1); } unittest { // Enhancement 10538 interface Interface { int foo(); int bar(int); } class Pluggable { int opDispatch(string name, A...)(A args) { return 100; } } Interface i = wrap!Interface(new Pluggable()); assert(i.foo() == 100); assert(i.bar(10) == 100); } // Make a tuple of non-static function symbols private template GetOverloadedMethods(T) { alias allMembers = TypeTuple!(__traits(allMembers, T)); template follows(size_t i = 0) { static if (i >= allMembers.length) { alias follows = TypeTuple!(); } else static if (!__traits(compiles, mixin("T."~allMembers[i]))) { alias follows = follows!(i + 1); } else { enum name = allMembers[i]; template isMethod(alias f) { static if (is(typeof(&f) F == F*) && is(F == function)) enum isMethod = !__traits(isStaticFunction, f); else enum isMethod = false; } alias follows = TypeTuple!( std.typetuple.Filter!(isMethod, __traits(getOverloads, T, name)), follows!(i + 1)); } } alias GetOverloadedMethods = follows!(); } // find a function from Fs that has same identifier and covariant type with f private template findCovariantFunction(alias finfo, Source, Fs...) { template check(size_t i = 0) { static if (i >= Fs.length) enum ptrdiff_t check = -1; else { enum ptrdiff_t check = (finfo.name == __traits(identifier, Fs[i])) && isCovariantWith!(FunctionTypeOf!(Fs[i]), finfo.type) ? i : check!(i + 1); } } enum x = check!(); static if (x == -1 && is(typeof(Source.opDispatch))) { alias Params = ParameterTypeTuple!(finfo.type); enum ptrdiff_t findCovariantFunction = is(typeof(( Source).init.opDispatch!(finfo.name)(Params.init))) || is(typeof(( const Source).init.opDispatch!(finfo.name)(Params.init))) || is(typeof(( immutable Source).init.opDispatch!(finfo.name)(Params.init))) || is(typeof(( shared Source).init.opDispatch!(finfo.name)(Params.init))) || is(typeof((shared const Source).init.opDispatch!(finfo.name)(Params.init))) ? ptrdiff_t.max : -1; } else enum ptrdiff_t findCovariantFunction = x; } private enum TypeModifier { mutable = 0, // type is mutable const_ = 1, // type is const immutable_ = 2, // type is immutable shared_ = 4, // type is shared inout_ = 8, // type is wild } private template TypeMod(T) { static if (is(T == immutable)) { enum mod1 = TypeModifier.immutable_; enum mod2 = 0; } else { enum mod1 = is(T == shared) ? TypeModifier.shared_ : 0; static if (is(T == const)) enum mod2 = TypeModifier.const_; else static if (is(T == inout)) enum mod2 = TypeModifier.inout_; else enum mod2 = TypeModifier.mutable; } enum TypeMod = cast(TypeModifier)(mod1 | mod2); } version(unittest) { private template UnittestFuncInfo(alias f) { enum name = __traits(identifier, f); alias type = FunctionTypeOf!f; } } unittest { class A { int draw() { return 1; } @property int value() { return 2; } final int run() { return 3; } } alias methods = GetOverloadedMethods!A; alias int F1(); alias @property int F2(); alias string F3(); alias nothrow @trusted uint F4(); alias int F5(Object); alias bool F6(Object); static assert(methods.length == 3 + 4); static assert(__traits(identifier, methods[0]) == "draw" && is(typeof(&methods[0]) == F1*)); static assert(__traits(identifier, methods[1]) == "value" && is(typeof(&methods[1]) == F2*)); static assert(__traits(identifier, methods[2]) == "run" && is(typeof(&methods[2]) == F1*)); int draw() { return 0; } @property int value() { return 0; } void opEquals() {} int nomatch() { return 0; } static assert(findCovariantFunction!(UnittestFuncInfo!draw, A, methods) == 0); static assert(findCovariantFunction!(UnittestFuncInfo!value, A, methods) == 1); static assert(findCovariantFunction!(UnittestFuncInfo!opEquals, A, methods) == -1); static assert(findCovariantFunction!(UnittestFuncInfo!nomatch, A, methods) == -1); // considering opDispatch class B { void opDispatch(string name, A...)(A) {} } alias methodsB = GetOverloadedMethods!B; static assert(findCovariantFunction!(UnittestFuncInfo!draw, B, methodsB) == ptrdiff_t.max); static assert(findCovariantFunction!(UnittestFuncInfo!value, B, methodsB) == ptrdiff_t.max); static assert(findCovariantFunction!(UnittestFuncInfo!opEquals, B, methodsB) == ptrdiff_t.max); static assert(findCovariantFunction!(UnittestFuncInfo!nomatch, B, methodsB) == ptrdiff_t.max); } private template DerivedFunctionType(T...) { static if (!T.length) { alias DerivedFunctionType = void; } else static if (T.length == 1) { static if (is(T[0] == function)) { alias DerivedFunctionType = T[0]; } else { alias DerivedFunctionType = void; } } else static if (is(T[0] P0 == function) && is(T[1] P1 == function)) { alias FA = FunctionAttribute; alias F0 = T[0], R0 = ReturnType!F0, PSTC0 = ParameterStorageClassTuple!F0; alias F1 = T[1], R1 = ReturnType!F1, PSTC1 = ParameterStorageClassTuple!F1; enum FA0 = functionAttributes!F0; enum FA1 = functionAttributes!F1; template CheckParams(size_t i = 0) { static if (i >= P0.length) enum CheckParams = true; else { enum CheckParams = (is(P0[i] == P1[i]) && PSTC0[i] == PSTC1[i]) && CheckParams!(i + 1); } } static if (R0.sizeof == R1.sizeof && !is(CommonType!(R0, R1) == void) && P0.length == P1.length && CheckParams!() && TypeMod!F0 == TypeMod!F1 && variadicFunctionStyle!F0 == variadicFunctionStyle!F1 && functionLinkage!F0 == functionLinkage!F1 && ((FA0 ^ FA1) & (FA.ref_ | FA.property)) == 0) { alias R = Select!(is(R0 : R1), R0, R1); alias FX = FunctionTypeOf!(R function(P0)); alias FY = SetFunctionAttributes!(FX, functionLinkage!F0, FA0 | FA1); alias DerivedFunctionType = DerivedFunctionType!(FY, T[2 .. $]); } else alias DerivedFunctionType = void; } else alias DerivedFunctionType = void; } unittest { // attribute covariance alias int F1(); static assert(is(DerivedFunctionType!(F1, F1) == F1)); alias int F2() pure nothrow; static assert(is(DerivedFunctionType!(F1, F2) == F2)); alias int F3() @safe; alias int F23() pure nothrow @safe; static assert(is(DerivedFunctionType!(F2, F3) == F23)); // return type covariance alias long F4(); static assert(is(DerivedFunctionType!(F1, F4) == void)); class C {} class D : C {} alias C F5(); alias D F6(); static assert(is(DerivedFunctionType!(F5, F6) == F6)); alias typeof(null) F7(); alias int[] F8(); alias int* F9(); static assert(is(DerivedFunctionType!(F5, F7) == F7)); static assert(is(DerivedFunctionType!(F7, F8) == void)); static assert(is(DerivedFunctionType!(F7, F9) == F7)); // variadic type equality alias int F10(int); alias int F11(int...); alias int F12(int, ...); static assert(is(DerivedFunctionType!(F10, F11) == void)); static assert(is(DerivedFunctionType!(F10, F12) == void)); static assert(is(DerivedFunctionType!(F11, F12) == void)); // linkage equality alias extern(C) int F13(int); alias extern(D) int F14(int); alias extern(Windows) int F15(int); static assert(is(DerivedFunctionType!(F13, F14) == void)); static assert(is(DerivedFunctionType!(F13, F15) == void)); static assert(is(DerivedFunctionType!(F14, F15) == void)); // ref & @property equality alias int F16(int); alias ref int F17(int); alias @property int F18(int); static assert(is(DerivedFunctionType!(F16, F17) == void)); static assert(is(DerivedFunctionType!(F16, F18) == void)); static assert(is(DerivedFunctionType!(F17, F18) == void)); } private template staticIota(int beg, int end, int step = 1) if (step != 0) { static if (beg + 1 >= end) { static if (beg >= end) { alias TypeTuple!() staticIota; } else { alias TypeTuple!(+beg) staticIota; } } else { enum mid = beg + (end - beg) / 2; alias staticIota = TypeTuple!(staticIota!(beg, mid), staticIota!(mid, end)); } } private template mixinAll(mixins...) { static if (mixins.length == 1) { static if (is(typeof(mixins[0]) == string)) { mixin(mixins[0]); } else { alias mixins[0] it; mixin it; } } else static if (mixins.length >= 2) { mixin mixinAll!(mixins[ 0 .. $/2]); mixin mixinAll!(mixins[$/2 .. $ ]); } } private template Bind(alias Template, args1...) { template Bind(args2...) { alias Bind = Template!(args1, args2); } } /** Options regarding auto-initialization of a $(D RefCounted) object (see the definition of $(D RefCounted) below). */ enum RefCountedAutoInitialize { /// Do not auto-initialize the object no, /// Auto-initialize the object yes, } /** Defines a reference-counted object containing a $(D T) value as payload. $(D RefCounted) keeps track of all references of an object, and when the reference count goes down to zero, frees the underlying store. $(D RefCounted) uses $(D malloc) and $(D free) for operation. $(D RefCounted) is unsafe and should be used with care. No references to the payload should be escaped outside the $(D RefCounted) object. The $(D autoInit) option makes the object ensure the store is automatically initialized. Leaving $(D autoInit == RefCountedAutoInitialize.yes) (the default option) is convenient but has the cost of a test whenever the payload is accessed. If $(D autoInit == RefCountedAutoInitialize.no), user code must call either $(D refCountedStore.isInitialized) or $(D refCountedStore.ensureInitialized) before attempting to access the payload. Not doing so results in null pointer dereference. Example: ---- // A pair of an $(D int) and a $(D size_t) - the latter being the // reference count - will be dynamically allocated auto rc1 = RefCounted!int(5); assert(rc1 == 5); // No more allocation, add just one extra reference count auto rc2 = rc1; // Reference semantics rc2 = 42; assert(rc1 == 42); // the pair will be freed when rc1 and rc2 go out of scope ---- */ struct RefCounted(T, RefCountedAutoInitialize autoInit = RefCountedAutoInitialize.yes) if (!is(T == class)) { /// $(D RefCounted) storage implementation. struct RefCountedStore { private struct Impl { T _payload; size_t _count; } private Impl* _store; private void initialize(A...)(auto ref A args) { _store = cast(Impl*) enforce(malloc(Impl.sizeof)); static if (hasIndirections!T) GC.addRange(&_store._payload, T.sizeof); emplace(&_store._payload, args); _store._count = 1; } /** Returns $(D true) if and only if the underlying store has been allocated and initialized. */ @property nothrow @safe bool isInitialized() const { return _store !is null; } /** Returns underlying reference count if it is allocated and initialized (a positive integer), and $(D 0) otherwise. */ @property nothrow @safe size_t refCount() const { return isInitialized ? _store._count : 0; } /** Makes sure the payload was properly initialized. Such a call is typically inserted before using the payload. */ void ensureInitialized() { if (!isInitialized) initialize(); } } RefCountedStore _refCounted; /// Returns storage implementation struct. @property nothrow @safe ref inout(RefCountedStore) refCountedStore() inout { return _refCounted; } /** Constructor that initializes the payload. Postcondition: $(D refCountedStore.isInitialized) */ this(A...)(auto ref A args) if (A.length > 0) { _refCounted.initialize(args); } /** Constructor that tracks the reference count appropriately. If $(D !refCountedStore.isInitialized), does nothing. */ this(this) { if (!_refCounted.isInitialized) return; ++_refCounted._store._count; } /** Destructor that tracks the reference count appropriately. If $(D !refCountedStore.isInitialized), does nothing. When the reference count goes down to zero, calls $(D destroy) agaist the payload and calls $(D free) to deallocate the corresponding resource. */ ~this() { if (!_refCounted.isInitialized) return; assert(_refCounted._store._count > 0); if (--_refCounted._store._count) return; // Done, deallocate .destroy(_refCounted._store._payload); static if (hasIndirections!T) GC.removeRange(&_refCounted._store._payload); free(_refCounted._store); _refCounted._store = null; } /** Assignment operators */ void opAssign(typeof(this) rhs) { swap(_refCounted._store, rhs._refCounted._store); } /// Ditto void opAssign(T rhs) { static if (autoInit == RefCountedAutoInitialize.yes) { _refCounted.ensureInitialized(); } else { assert(_refCounted.isInitialized); } move(rhs, _refCounted._store._payload); } //version to have a single properly ddoc'ed function (w/ correct sig) version(StdDdoc) { /** Returns a reference to the payload. If (autoInit == RefCountedAutoInitialize.yes), calls $(D refCountedStore.ensureInitialized). Otherwise, just issues $(D assert(refCountedStore.isInitialized)). Used with $(D alias refCountedPayload this;), so callers can just use the $(D RefCounted) object as a $(D T). $(BLUE The first overload exists only if $(D autoInit == RefCountedAutoInitialize.yes).) So if $(D autoInit == RefCountedAutoInitialize.no) or called for a constant or immutable object, then $(D refCountedPayload) will also be qualified as safe and nothrow (but will still assert if not initialized). */ @property ref T refCountedPayload(); /// ditto @property nothrow @safe ref inout(T) refCountedPayload() inout; } else { static if (autoInit == RefCountedAutoInitialize.yes) { //Can't use inout here because of potential mutation @property ref T refCountedPayload() { _refCounted.ensureInitialized(); return _refCounted._store._payload; } } @property nothrow @safe ref inout(T) refCountedPayload() inout { assert(_refCounted.isInitialized, "Attempted to access an uninitialized payload."); return _refCounted._store._payload; } } /** Returns a reference to the payload. If (autoInit == RefCountedAutoInitialize.yes), calls $(D refCountedStore.ensureInitialized). Otherwise, just issues $(D assert(refCountedStore.isInitialized)). */ alias refCountedPayload this; } unittest { RefCounted!int* p; { auto rc1 = RefCounted!int(5); p = &rc1; assert(rc1 == 5); assert(rc1._refCounted._store._count == 1); auto rc2 = rc1; assert(rc1._refCounted._store._count == 2); // Reference semantics rc2 = 42; assert(rc1 == 42); rc2 = rc2; assert(rc2._refCounted._store._count == 2); rc1 = rc2; assert(rc1._refCounted._store._count == 2); } assert(p._refCounted._store == null); // RefCounted as a member struct A { RefCounted!int x; this(int y) { x._refCounted.initialize(y); } A copy() { auto another = this; return another; } } auto a = A(4); auto b = a.copy(); assert(a.x._refCounted._store._count == 2, "BUG 4356 still unfixed"); } unittest { RefCounted!int p1, p2; swap(p1, p2); } // 6606 unittest { union U { size_t i; void* p; } struct S { U u; } alias RefCounted!S SRC; } // 6436 unittest { struct S { this(ref int val) { assert(val == 3); ++val; } } int val = 3; auto s = RefCounted!S(val); assert(val == 4); } unittest { RefCounted!int a; a = 5; //This should not assert assert(a == 5); RefCounted!int b; b = a; //This should not assert either assert(b == 5); } /** Make proxy for $(D a). Example: ---- struct MyInt { private int value; mixin Proxy!value; this(int n){ value = n; } } MyInt n = 10; // Enable operations that original type has. ++n; assert(n == 11); assert(n * 2 == 22); void func(int n) { } // Disable implicit conversions to original type. //int x = n; //func(n); ---- */ mixin template Proxy(alias a) { auto ref opEquals(this X, B)(auto ref B b) { static if (is(immutable B == immutable typeof(this))) { import std.algorithm; static assert(startsWith(a.stringof, "this.")); return a == mixin("b."~a.stringof[5..$]); // remove "this." } else return a == b; } auto ref opCmp(this X, B)(auto ref B b) if (!is(typeof(a.opCmp(b))) || !is(typeof(b.opCmp(a)))) { static if (is(typeof(a.opCmp(b)))) return a.opCmp(b); else static if (is(typeof(b.opCmp(a)))) return -b.opCmp(a); else return a < b ? -1 : a > b ? +1 : 0; } auto ref opCall(this X, Args...)(auto ref Args args) { return a(args); } auto ref opCast(T, this X)() { return cast(T)a; } auto ref opIndex(this X, D...)(auto ref D i) { return a[i]; } auto ref opSlice(this X )() { return a[]; } auto ref opSlice(this X, B, E)(auto ref B b, auto ref E e) { return a[b..e]; } auto ref opUnary (string op, this X )() { return mixin(op~"a"); } auto ref opIndexUnary(string op, this X, D...)(auto ref D i) { return mixin(op~"a[i]"); } auto ref opSliceUnary(string op, this X )() { return mixin(op~"a[]"); } auto ref opSliceUnary(string op, this X, B, E)(auto ref B b, auto ref E e) { return mixin(op~"a[b..e]"); } auto ref opBinary(string op, this X, B)(auto ref B b) if (op == "in" && is(typeof(a in b)) || op != "in") { return mixin("a "~op~" b"); } auto ref opBinaryRight(string op, this X, B)(auto ref B b) { return mixin("b "~op~" a"); } static if (!is(typeof(this) == class)) { private import std.traits; static if (isAssignable!(typeof(a))) { auto ref opAssign(this X)(auto ref typeof(this) v) { a = mixin("v."~a.stringof[5..$]); // remove "this." return this; } } else { @disable void opAssign(this X)(auto ref typeof(this) v); } } auto ref opAssign (this X, V )(auto ref V v) if (!is(V == typeof(this))) { return a = v; } auto ref opIndexAssign(this X, V, D...)(auto ref V v, auto ref D i) { return a[i] = v; } auto ref opSliceAssign(this X, V )(auto ref V v) { return a[] = v; } auto ref opSliceAssign(this X, V, B, E)(auto ref V v, auto ref B b, auto ref E e) { return a[b..e] = v; } auto ref opOpAssign (string op, this X, V )(auto ref V v) { return mixin("a " ~op~"= v"); } auto ref opIndexOpAssign(string op, this X, V, D...)(auto ref V v, auto ref D i) { return mixin("a[i] " ~op~"= v"); } auto ref opSliceOpAssign(string op, this X, V )(auto ref V v) { return mixin("a[] " ~op~"= v"); } auto ref opSliceOpAssign(string op, this X, V, B, E)(auto ref V v, auto ref B b, auto ref E e) { return mixin("a[b..e] "~op~"= v"); } template opDispatch(string name) { static if (is(typeof(__traits(getMember, a, name)) == function)) { // non template function auto ref opDispatch(this X, Args...)(auto ref Args args) { return mixin("a."~name~"(args)"); } } else static if (is(typeof({ enum x = mixin("a."~name); }))) { // built-in type field, manifest constant, and static non-mutable field enum opDispatch = mixin("a."~name); } else static if (is(typeof(mixin("a."~name))) || __traits(getOverloads, a, name).length != 0) { // field or property function @property auto ref opDispatch(this X)() { return mixin("a."~name); } @property auto ref opDispatch(this X, V)(auto ref V v) { return mixin("a."~name~" = v"); } } else { // member template template opDispatch(T...) { auto ref opDispatch(this X, Args...)(auto ref Args args){ return mixin("a."~name~"!T(args)"); } } } } } unittest { static struct MyInt { private int value; mixin Proxy!value; this(int n) inout { value = n; } enum str = "str"; static immutable arr = [1,2,3]; } foreach (T; TypeTuple!(MyInt, const MyInt, immutable MyInt)) { T m = 10; static assert(!__traits(compiles, { int x = m; })); static assert(!__traits(compiles, { void func(int n){} func(m); })); assert(m == 10); assert(m != 20); assert(m < 20); assert(+m == 10); assert(-m == -10); assert(cast(double)m == 10.0); assert(m + 10 == 20); assert(m - 5 == 5); assert(m * 20 == 200); assert(m / 2 == 5); assert(10 + m == 20); assert(15 - m == 5); assert(20 * m == 200); assert(50 / m == 5); static if (is(T == MyInt)) // mutable { assert(++m == 11); assert(m++ == 11); assert(m == 12); assert(--m == 11); assert(m-- == 11); assert(m == 10); m = m; m = 20; assert(m == 20); } static assert(T.max == int.max); static assert(T.min == int.min); static assert(T.init == int.init); static assert(T.str == "str"); static assert(T.arr == [1,2,3]); } } unittest { static struct MyArray { private int[] value; mixin Proxy!value; this(int[] arr) { value = arr; } this(immutable int[] arr) immutable { value = arr; } } foreach (T; TypeTuple!(MyArray, const MyArray, immutable MyArray)) { static if (is(T == immutable) && !is(typeof({ T a = [1,2,3,4]; }))) T a = [1,2,3,4].idup; // workaround until qualified ctor is properly supported else T a = [1,2,3,4]; assert(a == [1,2,3,4]); assert(a != [5,6,7,8]); assert(+a[0] == 1); version (LittleEndian) assert(cast(ulong[])a == [0x0000_0002_0000_0001, 0x0000_0004_0000_0003]); else assert(cast(ulong[])a == [0x0000_0001_0000_0002, 0x0000_0003_0000_0004]); assert(a ~ [10,11] == [1,2,3,4,10,11]); assert(a[0] == 1); assert(a[] == [1,2,3,4]); assert(a[2..4] == [3,4]); static if (is(T == MyArray)) // mutable { a = a; a = [5,6,7,8]; assert(a == [5,6,7,8]); a[0] = 0; assert(a == [0,6,7,8]); a[] = 1; assert(a == [1,1,1,1]); a[0..3] = 2; assert(a == [2,2,2,1]); a[0] += 2; assert(a == [4,2,2,1]); a[] *= 2; assert(a == [8,4,4,2]); a[0..2] /= 2; assert(a == [4,2,4,2]); } } } unittest { class Foo { int field; @property const int val1(){ return field; } @property void val1(int n){ field = n; } @property ref int val2(){ return field; } const int func(int x, int y){ return x; } void func1(ref int a){ a = 9; } T opCast(T)(){ return T.init; } T tempfunc(T)() { return T.init; } } class Hoge { Foo foo; mixin Proxy!foo; this(Foo f) { foo = f; } } auto h = new Hoge(new Foo()); int n; static assert(!__traits(compiles, { Foo f = h; })); // field h.field = 1; // lhs of assign n = h.field; // rhs of assign assert(h.field == 1); // lhs of BinExp assert(1 == h.field); // rhs of BinExp assert(n == 1); // getter/setter property function h.val1 = 4; n = h.val1; assert(h.val1 == 4); assert(4 == h.val1); assert(n == 4); // ref getter property function h.val2 = 8; n = h.val2; assert(h.val2 == 8); assert(8 == h.val2); assert(n == 8); // member function assert(h.func(2,4) == 2); h.func1(n); assert(n == 9); // bug5896 test assert(h.opCast!int() == 0); assert(cast(int)h == 0); const ih = new const Hoge(new Foo()); static assert(!__traits(compiles, ih.opCast!int())); static assert(!__traits(compiles, cast(int)ih)); // template member function assert(h.tempfunc!int() == 0); } unittest { struct MyInt { int payload; mixin Proxy!payload; } MyInt v; v = v; struct Foo { @disable void opAssign(typeof(this)); } struct MyFoo { Foo payload; mixin Proxy!payload; } MyFoo f; static assert(!__traits(compiles, f = f)); struct MyFoo2 { Foo payload; mixin Proxy!payload; // override default Proxy behavior void opAssign(typeof(this) rhs){} } MyFoo2 f2; f2 = f2; } unittest { // bug8613 static struct Name { mixin Proxy!val; private string val; this(string s) { val = s; } } bool[Name] names; names[Name("a")] = true; bool* b = Name("a") in names; } /** Library typedef. */ template Typedef(T) { alias .Typedef!(T, T.init) Typedef; } /// ditto struct Typedef(T, T init, string cookie=null) { private T Typedef_payload = init; this(T init) { Typedef_payload = init; } mixin Proxy!Typedef_payload; } unittest { Typedef!int x = 10; static assert(!__traits(compiles, { int y = x; })); static assert(!__traits(compiles, { long z = x; })); Typedef!int y = 10; assert(x == y); static assert(Typedef!int.init == int.init); Typedef!(float, 1.0) z; // specifies the init assert(z == 1.0); static assert(typeof(z).init == 1.0); alias Typedef!(int, 0, "dollar") Dollar; alias Typedef!(int, 0, "yen") Yen; static assert(!is(Dollar == Yen)); Typedef!(int[3]) sa; static assert(sa.length == 3); static assert(typeof(sa).length == 3); } unittest { // bug8655 import std.typecons; import std.bitmanip; static import core.stdc.config; alias Typedef!(core.stdc.config.c_ulong) c_ulong; static struct Foo { mixin(bitfields!( c_ulong, "NameOffset", 31, c_ulong, "NameIsString", 1 )); } } /** Allocates a $(D class) object right inside the current scope, therefore avoiding the overhead of $(D new). This facility is unsafe; it is the responsibility of the user to not escape a reference to the object outside the scope. Note: it's illegal to move a class reference even if you are sure there are no pointers to it. As such, it is illegal to move a scoped object. */ template scoped(T) if (is(T == class)) { // _d_newclass now use default GC alignment (looks like (void*).sizeof * 2 for // small objects). We will just use the maximum of filed alignments. alias classInstanceAlignment!T alignment; alias _alignUp!alignment aligned; static struct Scoped { // Addition of `alignment` is required as `Scoped_store` can be misaligned in memory. private void[aligned(__traits(classInstanceSize, T) + size_t.sizeof) + alignment] Scoped_store = void; @property inout(T) Scoped_payload() inout { void* alignedStore = cast(void*) aligned(cast(size_t) Scoped_store.ptr); // As `Scoped` can be unaligned moved in memory class instance should be moved accordingly. immutable size_t d = alignedStore - Scoped_store.ptr; size_t* currD = cast(size_t*) &Scoped_store[$ - size_t.sizeof]; if(d != *currD) { import core.stdc.string; memmove(alignedStore, Scoped_store.ptr + *currD, __traits(classInstanceSize, T)); *currD = d; } return cast(inout(T)) alignedStore; } alias Scoped_payload this; @disable this(); @disable this(this); ~this() { // `destroy` will also write .init but we have no functions in druntime // for deterministic finalization and memory releasing for now. .destroy(Scoped_payload); } } /// Returns the scoped object @system auto scoped(Args...)(auto ref Args args) { Scoped result = void; void* alignedStore = cast(void*) aligned(cast(size_t) result.Scoped_store.ptr); immutable size_t d = alignedStore - result.Scoped_store.ptr; *cast(size_t*) &result.Scoped_store[$ - size_t.sizeof] = d; emplace!(Unqual!T)(result.Scoped_store[d .. $ - size_t.sizeof], args); return result; } } /// unittest { class A { int x; this() {x = 0;} this(int i){x = i;} } // Standard usage auto a1 = scoped!A(); auto a2 = scoped!A(1); a1.x = 42; assert(a1.x == 42); assert(a2.x == 1); // Restrictions static assert(!is(typeof({ auto e1 = a1; // illegal, scoped objects can't be copied assert([a2][0].x == 42); // ditto alias ScopedObject = typeof(a1); auto e2 = ScopedObject(); //Illegal, must be built via scoped!A auto e3 = ScopedObject(1); //Illegal, must be built via scoped!A }))); // Use with alias alias makeScopedA = scoped!A; auto a6 = makeScopedA(); auto a7 = makeScopedA(); } private size_t _alignUp(size_t alignment)(size_t n) if(alignment > 0 && !((alignment - 1) & alignment)) { enum badEnd = alignment - 1; // 0b11, 0b111, ... return (n + badEnd) & ~badEnd; } unittest // Issue 6580 testcase { enum alignment = (void*).alignof; static class C0 { } static class C1 { byte b; } static class C2 { byte[2] b; } static class C3 { byte[3] b; } static class C7 { byte[7] b; } static assert(scoped!C0().sizeof % alignment == 0); static assert(scoped!C1().sizeof % alignment == 0); static assert(scoped!C2().sizeof % alignment == 0); static assert(scoped!C3().sizeof % alignment == 0); static assert(scoped!C7().sizeof % alignment == 0); enum longAlignment = long.alignof; static class C1long { long long_; byte byte_ = 4; this() { } this(long _long, ref int i) { long_ = _long; ++i; } } static class C2long { byte[2] byte_ = [5, 6]; long long_ = 7; } static assert(scoped!C1long().sizeof % longAlignment == 0); static assert(scoped!C2long().sizeof % longAlignment == 0); void alignmentTest() { int var = 5; auto c1long = scoped!C1long(3, var); assert(var == 6); auto c2long = scoped!C2long(); assert(cast(size_t)&c1long.long_ % longAlignment == 0); assert(cast(size_t)&c2long.long_ % longAlignment == 0); assert(c1long.long_ == 3 && c1long.byte_ == 4); assert(c2long.byte_ == [5, 6] && c2long.long_ == 7); } alignmentTest(); version(DigitalMars) { void test(size_t size) { import core.stdc.stdlib; alloca(size); alignmentTest(); } foreach(i; 0 .. 10) test(i); } else { void test(size_t size)() { byte[size] arr; alignmentTest(); } foreach(i; TypeTuple!(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)) test!i(); } } unittest // Original Issue 6580 testcase { class C { int i; byte b; } auto sa = [scoped!C(), scoped!C()]; assert(cast(size_t)&sa[0].i % int.alignof == 0); assert(cast(size_t)&sa[1].i % int.alignof == 0); // fails } unittest { class A { int x = 1; } auto a1 = scoped!A(); assert(a1.x == 1); auto a2 = scoped!A(); a1.x = 42; a2.x = 53; assert(a1.x == 42); } unittest { class A { int x = 1; this() { x = 2; } } auto a1 = scoped!A(); assert(a1.x == 2); auto a2 = scoped!A(); a1.x = 42; a2.x = 53; assert(a1.x == 42); } unittest { class A { int x = 1; this(int y) { x = y; } ~this() {} } auto a1 = scoped!A(5); assert(a1.x == 5); auto a2 = scoped!A(42); a1.x = 42; a2.x = 53; assert(a1.x == 42); } unittest { class A { static bool dead; ~this() { dead = true; } } class B : A { static bool dead; ~this() { dead = true; } } { auto b = scoped!B(); } assert(B.dead, "asdasd"); assert(A.dead, "asdasd"); } unittest // Issue 8039 testcase { static int dels; static struct S { ~this(){ ++dels; } } static class A { S s; } dels = 0; { scoped!A(); } assert(dels == 1); static class B { S[2] s; } dels = 0; { scoped!B(); } assert(dels == 2); static struct S2 { S[3] s; } static class C { S2[2] s; } dels = 0; { scoped!C(); } assert(dels == 6); static class D: A { S2[2] s; } dels = 0; { scoped!D(); } assert(dels == 1+6); } unittest { // bug4500 class A { this() { a = this; } this(int i) { a = this; } A a; bool check() { return this is a; } } auto a1 = scoped!A(); assert(a1.check()); auto a2 = scoped!A(1); assert(a2.check()); a1.a = a1; assert(a1.check()); } unittest { static class A { static int sdtor; this() { ++sdtor; assert(sdtor == 1); } ~this() { assert(sdtor == 1); --sdtor; } } interface Bob {} static class ABob : A, Bob { this() { ++sdtor; assert(sdtor == 2); } ~this() { assert(sdtor == 2); --sdtor; } } A.sdtor = 0; scope(exit) assert(A.sdtor == 0); auto abob = scoped!ABob(); } unittest { static class A { this(int) {} } static assert(!__traits(compiles, scoped!A())); } unittest { static class A { @property inout(int) foo() inout { return 1; } } auto a1 = scoped!A(); assert(a1.foo == 1); static assert(is(typeof(a1.foo) == int)); auto a2 = scoped!(const(A))(); assert(a2.foo == 1); static assert(is(typeof(a2.foo) == const(int))); auto a3 = scoped!(immutable(A))(); assert(a3.foo == 1); static assert(is(typeof(a3.foo) == immutable(int))); const c1 = scoped!A(); assert(c1.foo == 1); static assert(is(typeof(c1.foo) == const(int))); const c2 = scoped!(const(A))(); assert(c2.foo == 1); static assert(is(typeof(c2.foo) == const(int))); const c3 = scoped!(immutable(A))(); assert(c3.foo == 1); static assert(is(typeof(c3.foo) == immutable(int))); } unittest { class C { this(ref int val) { assert(val == 3); ++val; } } int val = 3; auto s = scoped!C(val); assert(val == 4); } unittest { class C { this(){} this(int){} this(int, int){} } alias makeScopedC = scoped!C; auto a = makeScopedC(); auto b = makeScopedC(1); auto c = makeScopedC(1, 1); static assert(is(typeof(a) == typeof(b))); static assert(is(typeof(b) == typeof(c))); } /** Defines a simple, self-documenting yes/no flag. This makes it easy for APIs to define functions accepting flags without resorting to $(D bool), which is opaque in calls, and without needing to define an enumerated type separately. Using $(D Flag!"Name") instead of $(D bool) makes the flag's meaning visible in calls. Each yes/no flag has its own type, which makes confusions and mix-ups impossible. Example: ---- // Before string getLine(bool keepTerminator) { ... if (keepTerminator) ... ... } ... // Code calling getLine (usually far away from its definition) can't // be understood without looking at the documentation, even by users // familiar with the API. Assuming the reverse meaning // (i.e. "ignoreTerminator") and inserting the wrong code compiles and // runs with erroneous results. auto line = getLine(false); // After string getLine(Flag!"KeepTerminator" keepTerminator) { ... if (keepTerminator) ... ... } ... // Code calling getLine can be easily read and understood even by // people not fluent with the API. auto line = getLine(Flag!"KeepTerminator".yes); ---- Passing categorical data by means of unstructured $(D bool) parameters is classified under "simple-data coupling" by Steve McConnell in the $(LUCKY Code Complete) book, along with three other kinds of coupling. The author argues citing several studies that coupling has a negative effect on code quality. $(D Flag) offers a simple structuring method for passing yes/no flags to APIs. As a perk, the flag's name may be any string and as such can include characters not normally allowed in identifiers, such as spaces and dashes. */ template Flag(string name) { /// enum Flag : bool { /** When creating a value of type $(D Flag!"Name"), use $(D Flag!"Name".no) for the negative option. When using a value of type $(D Flag!"Name"), compare it against $(D Flag!"Name".no) or just $(D false) or $(D 0). */ no = false, /** When creating a value of type $(D Flag!"Name"), use $(D Flag!"Name".yes) for the affirmative option. When using a value of type $(D Flag!"Name"), compare it against $(D Flag!"Name".yes). */ yes = true } } /** Convenience names that allow using e.g. $(D Yes.encryption) instead of $(D Flag!"encryption".yes) and $(D No.encryption) instead of $(D Flag!"encryption".no). */ struct Yes { template opDispatch(string name) { enum opDispatch = Flag!name.yes; } } //template yes(string name) { enum Flag!name yes = Flag!name.yes; } /// Ditto struct No { template opDispatch(string name) { enum opDispatch = Flag!name.no; } } //template no(string name) { enum Flag!name no = Flag!name.no; } unittest { Flag!"abc" flag1; assert(flag1 == Flag!"abc".no); assert(flag1 == No.abc); assert(!flag1); if (flag1) assert(false); flag1 = Yes.abc; assert(flag1); if (!flag1) assert(false); if (flag1) {} else assert(false); assert(flag1 == Yes.abc); }
D
import std.string; class Shorten { public: string url; string target; this(string url, string target){ this.url = url; this.target = target; } }
D
//============================================================================ // Std.d - some standard simple utilties // // Description: // <TODO:> // // Author: William V. Baxter III // Created: 30 Aug 2007 // Written in the D Programming Language (http://www.digitalmars.com/d) //============================================================================ module tpl.std; проц поменяй(T)(ref T a, ref T b) { T tmp = a; a = b; b = tmp; } T мин(T)(T a, T b) { return a<b ? a : b; } T макс(T)(T a, T b) { return a>b ? a : b; } цел сравни(T)(T a, T b) { if (a==b) return 0; return a<b ? -1 : 1; } бул нач_с(ткст s, ткст префикс) { return (s.length >= префикс.length && s[0..префикс.length]==префикс); } бул кон_на(ткст s, ткст префикс) { return (s.length >= префикс.length && s[$-префикс.length..$]==префикс); } struct пара(S,T) { S первый; T второй; static пара opCall(S _1й, T _2й) { пара R; with (R) { первый = _1й; второй = _2й; } return R; } } /*********************************************************************************** * Reserve a given amount of space in an array */ проц займи(T)(ref T[] x, т_мера n) { т_мера olen = x.length; if (olen<n) { x.length = n; x.length = olen; } } бул пустой(T)(ref T[] x) { return x.length == 0; } проц пуш_бэк(T)(ref T[] x, ref T el) { x ~= el; } проц поп_бэк(T)(ref T[] x) { x.length = x.length-1; } /*********************************************************************************** * Remove an item from an array by индекс. */ private extern(C) проц* memmove (проц*, проц*, т_мера) ; static const НЕ_НАЙДЕН = т_мера.max; т_мера найди_следщ(T) (T[] стог, T item) { foreach(i,ref el; стог) { if (item == el) return i; } return НЕ_НАЙДЕН; } проц сотри_индекс(T) (ref T[] стог, т_мера индекс) { assert(индекс < стог.length, ".сотри_индекс() вызван с указанием индекса, к-ый больше длины массива"); if (индекс != стог.length - 1) { memmove(&(стог[индекс]), &(стог[индекс + 1]), T.sizeof * (стог.length - индекс - 1)); } стог.length = стог.length - 1; } /*********************************************************************************** * Insert item x into an array at (just before) индекс. */ проц вставь (T) (ref T[] стог, т_мера индекс, T x) in { assert(индекс < стог.length+1, ".вставь()вызван с указанием индекса, к-ый больше длины массива"); } body { if (индекс == стог.length) { стог ~= x; } else { стог.length = стог.length+1; memmove(&стог[индекс+1], &стог[индекс], T.sizeof * (стог.length - индекс - 1)); стог[индекс] = x; } } unittest { цел[] foo = [0, 1, 2, 3, 4, 5]; foo.вставь(3_U, 3); assert(foo == [0, 1, 2, 3,3, 4, 5]); foo.вставь(7_U, 7); assert(foo == [0, 1, 2, 3,3, 4, 5, 9]); } // Iterators for D arrays struct ОбходчикМассива(T) { alias T т_знач; alias T* указатель; static ОбходчикМассива opCall(T* иниц) { ОбходчикМассива M; with(M) { ptr_ = иниц; } return M; } static ОбходчикМассива начало(T[] x) { return ОбходчикМассива(x.укз); } static ОбходчикМассива конец(T[] x) { return ОбходчикМассива(x.укз + x.length); } T знач() { assert(укз !is null); return *ptr_; } T* укз() { return ptr_; } цел opEquals(ref ОбходчикМассива другой) { if (ptr_ is null || другой.ptr_ is null) return 0; return ptr_ == другой.ptr_; } проц opPostInc() { assert(укз !is null); ptr_++; } проц opPostDec() { assert(укз !is null); ptr_--; } проц opAddAssign(цел i) { assert(укз !is null); ptr_+=i; } проц opSubAssign(цел i) { assert(укз !is null); ptr_-=i; } private: T* ptr_ = null; } ОбходчикМассива!(T) начни_обход_массива(T)(T[] x) { return ОбходчикМассива!(T).начало(x); } ОбходчикМассива!(T) заверши_обход_массива(T)(T[] x) { return ОбходчикМассива!(T).конец(x); } template обходчик_массива(T:T[]) { alias ОбходчикМассива!(T) обходчик_массива; }
D
// EXTRA_SOURCES: imports/test10736a.d // EXTRA_SOURCES: imports/test10736b.d import imports.test10736a; import imports.test10736b;
D
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ module flow.engine.impl.ActivityInstanceQueryImpl; import hunt.collection.List; import flow.common.api.FlowableIllegalArgumentException; import flow.common.query.AbstractQuery; import flow.common.interceptor.CommandContext; import flow.common.interceptor.CommandExecutor; import flow.engine.impl.util.CommandContextUtil; import flow.engine.runtime.ActivityInstance; import flow.engine.runtime.ActivityInstanceQuery; import flow.engine.impl.ActivityInstanceQueryProperty; /** * @author martin.grofcik */ class ActivityInstanceQueryImpl : AbstractQuery!(ActivityInstanceQuery, ActivityInstance) , ActivityInstanceQuery { protected string _activityInstanceId; protected string _processInstanceId; protected string _executionId; protected string _processDefinitionId; protected string _activityId; protected string _activityName; protected string _activityType; protected string assignee; protected string tenantId; protected string tenantIdLike; protected bool withoutTenantId; protected bool _finished; protected bool _unfinished; protected string _deleteReason; protected string _deleteReasonLike; this() { } this(CommandContext commandContext) { super(commandContext); } this(CommandExecutor commandExecutor) { super(commandExecutor); } override public long executeCount(CommandContext commandContext) { return CommandContextUtil.getActivityInstanceEntityManager(commandContext).findActivityInstanceCountByQueryCriteria(this); } override public List!ActivityInstance executeList(CommandContext commandContext) { return CommandContextUtil.getActivityInstanceEntityManager(commandContext).findActivityInstancesByQueryCriteria(this); } public ActivityInstanceQueryImpl processInstanceId(string processInstanceId) { this._processInstanceId = processInstanceId; return this; } public ActivityInstanceQueryImpl executionId(string executionId) { this._executionId = executionId; return this; } public ActivityInstanceQueryImpl processDefinitionId(string processDefinitionId) { this._processDefinitionId = processDefinitionId; return this; } public ActivityInstanceQueryImpl activityId(string activityId) { this._activityId = activityId; return this; } public ActivityInstanceQueryImpl activityName(string activityName) { this._activityName = activityName; return this; } public ActivityInstanceQueryImpl activityType(string activityType) { this._activityType = activityType; return this; } public ActivityInstanceQueryImpl taskAssignee(string assignee) { this.assignee = assignee; return this; } public ActivityInstanceQueryImpl finished() { this._finished = true; this._unfinished = false; return this; } public ActivityInstanceQueryImpl unfinished() { this._unfinished = true; this._finished = false; return this; } public ActivityInstanceQuery deleteReason(string deleteReason) { this._deleteReason = deleteReason; return this; } public ActivityInstanceQuery deleteReasonLike(string deleteReasonLike) { this._deleteReasonLike = deleteReasonLike; return this; } public ActivityInstanceQueryImpl activityTenantId(string tenantId) { if (tenantId is null) { throw new FlowableIllegalArgumentException("activity tenant id is null"); } this.tenantId = tenantId; return this; } public string getTenantId() { return tenantId; } public ActivityInstanceQueryImpl activityTenantIdLike(string tenantIdLike) { if (tenantIdLike is null) { throw new FlowableIllegalArgumentException("activity tenant id is null"); } this.tenantIdLike = tenantIdLike; return this; } public string getTenantIdLike() { return tenantIdLike; } public ActivityInstanceQueryImpl activityWithoutTenantId() { this.withoutTenantId = true; return this; } public bool isWithoutTenantId() { return withoutTenantId; } // ordering // ///////////////////////////////////////////////////////////////// public ActivityInstanceQueryImpl orderByActivityInstanceDuration() { orderBy(ActivityInstanceQueryProperty.DURATION); return this; } public ActivityInstanceQueryImpl orderByActivityInstanceEndTime() { orderBy(ActivityInstanceQueryProperty.END); return this; } public ActivityInstanceQueryImpl orderByExecutionId() { orderBy(ActivityInstanceQueryProperty.EXECUTION_ID); return this; } public ActivityInstanceQueryImpl orderByActivityInstanceId() { orderBy(ActivityInstanceQueryProperty.ACTIVITY_INSTANCE_ID); return this; } public ActivityInstanceQueryImpl orderByProcessDefinitionId() { orderBy(ActivityInstanceQueryProperty.PROCESS_DEFINITION_ID); return this; } public ActivityInstanceQueryImpl orderByProcessInstanceId() { orderBy(ActivityInstanceQueryProperty.PROCESS_INSTANCE_ID); return this; } public ActivityInstanceQueryImpl orderByActivityInstanceStartTime() { orderBy(ActivityInstanceQueryProperty.START); return this; } public ActivityInstanceQuery orderByActivityId() { orderBy(ActivityInstanceQueryProperty.ACTIVITY_ID); return this; } public ActivityInstanceQueryImpl orderByActivityName() { orderBy(ActivityInstanceQueryProperty.ACTIVITY_NAME); return this; } public ActivityInstanceQueryImpl orderByActivityType() { orderBy(ActivityInstanceQueryProperty.ACTIVITY_TYPE); return this; } public ActivityInstanceQueryImpl orderByTenantId() { orderBy(ActivityInstanceQueryProperty.TENANT_ID); return this; } public ActivityInstanceQueryImpl activityInstanceId(string activityInstanceId) { this._activityInstanceId = activityInstanceId; return this; } // getters and setters // ////////////////////////////////////////////////////// public string getProcessInstanceId() { return _processInstanceId; } public string getExecutionId() { return _executionId; } public string getProcessDefinitionId() { return _processDefinitionId; } public string getActivityId() { return _activityId; } public string getActivityName() { return _activityName; } public string getActivityType() { return _activityType; } public string getAssignee() { return assignee; } public bool isFinished() { return _finished; } public bool isUnfinished() { return _unfinished; } public string getActivityInstanceId() { return _activityInstanceId; } public string getDeleteReason() { return _deleteReason; } public string getDeleteReasonLike() { return _deleteReasonLike; } }
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_0_BeT-4534519843.notation#_copSALmGEeKQQp7P9cQvNQ"/> </availablePage> </pageList> <sashModel currentSelection="//@sashModel/@windows.0/@children.0"> <windows> <children xsi:type="di:TabFolder"> <children> <emfPageIdentifier href="VAR_0_BeT-4534519843.notation#_copSALmGEeKQQp7P9cQvNQ"/> </children> </children> </windows> </sashModel> </di:SashWindowsMngr>
D
a unit of length of thread or yarn a field covered with grass or herbage and suitable for grazing by livestock
D
/** License: 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. Authors: Alexandru Ermicioi **/ module aermicioi.util.traits; import std.traits; import std.typetuple; import std.algorithm; import std.array; public { enum bool isHashable(T) = isBasicType!(T) || hasMember!(T, "toHash") || is(T == string) || is(T == enum); enum bool isPublic(alias T) = __traits(getProtection, T) == "public"; enum bool isPublic(T, string member) = isPublic!(__traits(getMember, T, member)); enum bool isMethod(alias T, string member) = isSomeFunction!(__traits(getMember, T, member)); enum bool evaluateMember(alias pred, T, string member) = pred!(__traits(getMember, T, member)); enum bool isPropertyGetter(alias func) = (variadicFunctionStyle!func == Variadic.no) && (arity!func == 0) && (functionAttributes!func & FunctionAttribute.property); enum bool isPropertySetter(alias func) = (variadicFunctionStyle!func == Variadic.no) && (arity!func == 1) && (functionAttributes!func & FunctionAttribute.property); enum bool isValue(alias T) = is(typeof(T)) && !is(typeof(T) == void); enum bool isValue(T) = false; enum bool isType(alias T) = is(T); enum bool isProperty(alias T) = (isBasicType!(typeof(T)) || isArray!(typeof(T)) || isAssociativeArray!(typeof(T)) || isAggregateType!(typeof(T)) || is(typeof(T) == enum) ) && !isSomeFunction!T && !isTemplate!T; enum bool isProperty(alias T, string member) = isProperty!(getMember!(T, member)); enum bool isTypeOrValue(alias T) = isValue!T || isType!T; enum bool isConstructor(alias T) = isSomeFunction!T && (identifier!T == "__ctor"); enum bool isDestructor(alias T) = isSomeFunction!T && (identifier!T == "__dtor"); enum bool isConstructor(string T) = T == "__ctor"; enum bool isDestructor(string T) = T == "__dtor"; template getProperty(alias T, string member) { static if (isProperty!(T, member)) { alias getProperty = member; } else { alias getProperty = TypeTuple!(); } } template identifier(alias T) { alias identifier = Identity!(__traits(identifier, T)); } template isEmpty(T...) { enum bool isEmpty = T.length == 0; } template templateTry(alias pred) { template templateTry(alias symbol) { static if (__traits(compiles, pred!symbol)) { alias templateTry = pred!symbol; } else { alias templateTry = symbol; } } } template templateTryGetOverloads(alias symbol) { static if (__traits(compiles, getOverloads!symbol)) { alias templateTryGetOverloads = getOverloads!symbol; } else { alias templateTryGetOverloads = symbol; } } template allMembers(alias Type) { alias allMembers = TypeTuple!(__traits(allMembers, Type)); } template equals(alias first, alias second) { static if (isValue!first && isValue!second && typeCompare!(first, second)) { enum bool equals = first == second; } else { enum bool equals = typeCompare!(first, second); } } template isClassOrStructMagicMethods(string member) { enum bool isClassOrStructMagicMethods = equals!(member, "this") || equals!(member, "__ctor") || equals!(member, "__dtor"); } template staticMapWith(alias pred, alias Type, T...) { static if (T.length > 1) { alias staticMapWith = TypeTuple!(staticMapWith!(pred, Type, T[0 .. $ / 2]), staticMapWith!(pred, Type, T[$ / 2 .. $])); } else static if (T.length == 1) { alias staticMapWith = TypeTuple!(pred!(Type, T[0])); } else { alias staticMapWith = TypeTuple!(); } } template getMember(alias T, string member) { alias getMember = Identity!(__traits(getMember, T, member)); } template getOverloads(alias T, string member) { alias getOverloads = TypeTuple!(__traits(getOverloads, T, member)); } template getOverloadsOrMember(alias T, string member) { static if (isSomeFunction!(getMember!(T, member))) { alias getOverloadsOrMember = getOverloads!(T, member); } else { alias getOverloadsOrMember = getMember!(T, member); } } template typeCompare(alias first, alias second) { static if (isValue!first) { static if (isValue!second) { enum bool typeCompare = is(typeof(first) : typeof(second)); } else static if (isType!second) { enum bool typeCompare = is(typeof(first) : second); } else { enum bool typeCompare = false; } } else static if (isType!first) { static if (isValue!second) { enum bool typeCompare = is(first : typeof(second)); } else static if (isType!second) { enum bool typeCompare = is(first : second); } else { enum bool typeCompare = false; } } } template typeCompare(first, second) { enum bool typeCompare = is(first : second); } template typeOf(alias T) { static if (isValue!T) { alias typeOf = typeof(T); } else { alias typeOf = T; } } template emptyIf(alias pred) { template emptyIf(alias T) { static if (pred!(T)) { alias emptyIf = TypeTuple!(); } else { alias emptyIf = T; } } } template notEmptyIf(alias pred) { template notEmptyIf(alias T) { static if (pred!(T)) { alias notEmptyIf = T; } else { alias notEmptyIf = TypeTuple!(); } } } template eq(alias first) { enum bool eq(alias second) = (first == second); } template templateStringof(alias T) { enum string templateStringof = T.stringof; } template partialPrefixed(alias pred, Args...) { template partialPrefixed(Sargs...) { alias partialPrefixed = pred!(Args, Sargs); } } template partialSuffixed(alias pred, Args...) { template partialSuffixed(Sargs...) { alias partialSuffixed = pred!(Sargs, Args); } } template partial(alias pred) { template partial(Args...) { alias partial = pred!Args; } } template valueSuffixed(alias pred, Args...) { template valueSuffixed(T...) { auto valueSuffixed(T args) { return pred(args, Args); } } } template valuePrefixed(alias pred, Args...) { template valuePrefixed(T...) { auto valuePrefixed(T args) { return pred(args, Args); } } } template chain(alias firstPred, alias secondPred, Args...) if (isTemplate!secondPred) { template chain(Sargs...) { alias chain = firstPred!(secondPred!(Args, Sargs)); } } template chain(alias firstPred, string secondPred, Args) { template chain(Sargs...) { mixin (secondPred); pragma(msg, secondPred); alias chain = firstPred!(mixed!(Args, Sargs)); } } template isTemplate(alias T) { enum bool isTemplate = __traits(isTemplate, T); } template if_(alias pred, alias trueBranch, alias falseBranch, Args...) { template if_ (Sargs...) { static if (pred!(Args, Sargs)) { alias if_ = trueBranch!(Args, Sargs); } else { alias if_ = falseBranch!(Args, Sargs); } } } template execute(alias pred, Args...) { static if (isTemplate!pred) { alias execute = pred!Args; } else static if (isSomeFunction!pred) { auto execute = pred(Args); } } template failable(alias pred, alias failResponse, Args...) { template failable(Sargs...) { static if (__traits(compiles, pred!(Args, Sargs))) { alias failable = pred!(Args, Sargs); } else { alias failable = failResponse; } } } template failed(alias pred, Args...) { enum bool failed = __traits(compiles, pred!Args); } template tee(alias pred, alias debug_ = container!()) { template tee(Args...) { alias tee = pred!Args; alias debug__ = debug_!tee; } } template container(Args...) { template container(Sargs...) { alias container = Args; } } template pragmaMsg(alias element) { pragma(msg, element); } template getAttributes(alias symbol) { alias getAttributes = TypeTuple!(__traits(getAttributes, symbol)); } template requiredArity(alias symbol) { enum bool requiredArity = Filter!(partialPrefixed!(isType, void), ParameterDefaults!symbol); } template isType(Type, alias symbol) { enum bool isType = is(symbol == Type); } template isType(Type, Second) { enum bool isType = is(symbol == Type); } template isReferenceType(Type) { enum bool isReferenceType = is(Type == class) || is(Type == interface); } }
D
module optd; import std.stdio; import std.math; import gradient; import std.stdio, std.random, std.range, std.array; //TODO //Merge gaussnewton and this project //add Levenberg–Marquardt_algorithm float dfunc(double x){ return pow(x,3); } void test_gradient(){ writeln(GradientDescent(0.74, 0.5,100, &dfunc)); } void test_subgradient(){ auto stepsize = function float (double x){ return 1e-4;}; auto result = SubGradientDescent(0.77, stepsize, 100, &tanh); writeln(result); } void test_proximal_gradient(){ //auto result = ProximalGradientDescent(0.55, ) } void example_gauss_seidel() { import GS; import matrix; double[][]A = [[4.0, -2.0, 1.0], [1.0, -3.0, 2.0], [-1.0, 2.0, 6.0]]; double[]b = [1.0,2.0,3.0]; double[]x = [1.0,1.0,1.0]; GaussSeidel(x,b,A,10); } void main() { //test_proximal_gradient(); }
D
module tests.cerealiser_impl; import unit_threaded; import cerealed; import core.exception; struct WhateverStruct { ushort i; string s; } void testOldCerealiser() { auto enc = DynamicArrayCerealiser(); enc ~= WhateverStruct(5, "blargh"); enc.bytes.shouldEqual([ 0, 5, 0, 6, 'b', 'l', 'a', 'r', 'g', 'h' ]); enc.reset(); enc.bytes.shouldBeEmpty; (enc ~= 4).shouldNotThrow!RangeError; } void testScopeBufferCerealiser() { ubyte[32] buf = void; writelnUt("Creating the range"); auto sbufRange = ScopeBufferRange(buf); scope(exit) sbufRange.free(); writelnUt("Creating the cerealiser"); auto enc = CerealiserImpl!ScopeBufferRange(sbufRange); enc ~= WhateverStruct(5, "blargh"); enc.bytes.shouldEqual([ 0, 5, 0, 6, 'b', 'l', 'a', 'r', 'g', 'h' ]); } void testCerealise() { WhateverStruct(5, "blargh").cerealise!(bytes => bytes.shouldEqual([0, 5, 0, 6, 'b', 'l', 'a', 'r', 'g', 'h'])); }
D
module qrcode.common.ecblocks; struct EcBlock { int count; int dataCodewords; } class EcBlocks { /** * Number of EC codewords per block. * * @var integer */ protected int ecCodewordsPerBlock; /** * List of EC blocks. * * @var SplFixedArray */ protected EcBlock[] ecBlocks; /** * Creates a new EC blocks instance. * * @param integer $ecCodewordsPerBlock * @param EcBlock $ecb1 * @param EcBlock|null $ecb2 */ this(int ecCodewordsPerBlock, EcBlock* ecb1, EcBlock* ecb2) { this.ecCodewordsPerBlock = ecCodewordsPerBlock; this.ecBlocks = new EcBlock[2]; this.ecBlocks[0] = *ecb1; this.ecBlocks[1] = *ecb2; } this(int ecCodewordsPerBlock, EcBlock* ecb1) { this.ecCodewordsPerBlock = ecCodewordsPerBlock; this.ecBlocks = new EcBlock[1]; this.ecBlocks[0] = *ecb1; } /** * Gets the number of EC codewords per block. * * @return integer */ public int getEcCodewordsPerBlock() { return this.ecCodewordsPerBlock; } /** * Gets the total number of EC block appearances. * * @return integer */ public int getNumBlocks() { auto total = 0; foreach (ecBlock; this.ecBlocks) { total += ecBlock.count; } return total; } /** * Gets the total count of EC codewords. * * @return integer */ public int getTotalEcCodewords() { return this.ecCodewordsPerBlock * this.getNumBlocks(); } /** * Gets the EC blocks included in this collection. * * @return SplFixedArray */ public EcBlock[] getEcBlocks() { return ecBlocks; } }
D
E: c37, c17, c47, c82, c51, c20, c45, c80, c54, c64, c23, c48, c31, c32, c0, c86, c16, c66, c78, c27, c49, c36, c21, c4, c65, c69, c81, c12, c70, c11, c18, c77, c39, c19, c71, c33, c55, c63, c76, c3, c52, c58, c7, c61. p7(E,E) c37,c17 c51,c20 c80,c54 c48,c80 c32,c80 c48,c0 c80,c48 c0,c48 c48,c54 c21,c0 c51,c54 c65,c69 c48,c20 c0,c54 c33,c20 c51,c80 c21,c66 c80,c66 c21,c80 c0,c80 c32,c66 c33,c48 c32,c0 c51,c48 c7,c37 c80,c20 c32,c20 c33,c0 c0,c66 c21,c48 c0,c20 c0,c0 c33,c54 . p4(E,E) c47,c82 c48,c31 c0,c78 c48,c39 c80,c55 c54,c0 c20,c76 c66,c77 . p1(E,E) c45,c80 c20,c32 c81,c51 c70,c0 c11,c21 c3,c48 c61,c0 c37,c33 . p9(E,E) c64,c23 c45,c47 c16,c48 c27,c49 c4,c48 c80,c12 c48,c77 c86,c21 c66,c19 c66,c20 c48,c18 c81,c37 c86,c54 c54,c64 c86,c80 . p0(E,E) c54,c86 c66,c36 c48,c4 c69,c63 . p10(E,E) c20,c66 c18,c48 c12,c80 c77,c48 c19,c66 c23,c64 . p6(E,E) c19,c71 . p3(E,E) c52,c71 . p2(E,E) c55,c58 .
D
/******************************************************************************* * Copyright (c) 2000, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation * Port to the D programming language: * Frank Benoit <benoit@tionex.de> *******************************************************************************/ module dwtx.jface.text.source.ImageUtilities; import dwtx.jface.text.source.ISharedTextColors; // packageimport import dwtx.jface.text.source.ILineRange; // packageimport import dwtx.jface.text.source.IAnnotationPresentation; // packageimport import dwtx.jface.text.source.IVerticalRulerInfoExtension; // packageimport import dwtx.jface.text.source.ICharacterPairMatcher; // packageimport import dwtx.jface.text.source.TextInvocationContext; // packageimport import dwtx.jface.text.source.LineChangeHover; // packageimport import dwtx.jface.text.source.IChangeRulerColumn; // packageimport import dwtx.jface.text.source.IAnnotationMap; // packageimport import dwtx.jface.text.source.IAnnotationModelListenerExtension; // packageimport import dwtx.jface.text.source.ISourceViewerExtension2; // packageimport import dwtx.jface.text.source.IAnnotationHover; // packageimport import dwtx.jface.text.source.ContentAssistantFacade; // packageimport import dwtx.jface.text.source.IAnnotationAccess; // packageimport import dwtx.jface.text.source.IVerticalRulerExtension; // packageimport import dwtx.jface.text.source.IVerticalRulerColumn; // packageimport import dwtx.jface.text.source.LineNumberRulerColumn; // packageimport import dwtx.jface.text.source.MatchingCharacterPainter; // packageimport import dwtx.jface.text.source.IAnnotationModelExtension; // packageimport import dwtx.jface.text.source.ILineDifferExtension; // packageimport import dwtx.jface.text.source.DefaultCharacterPairMatcher; // packageimport import dwtx.jface.text.source.LineNumberChangeRulerColumn; // packageimport import dwtx.jface.text.source.IAnnotationAccessExtension; // packageimport import dwtx.jface.text.source.ISourceViewer; // packageimport import dwtx.jface.text.source.AnnotationModel; // packageimport import dwtx.jface.text.source.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.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.DWT; import dwt.graphics.FontMetrics; import dwt.graphics.GC; import dwt.graphics.Image; import dwt.graphics.Rectangle; import dwt.widgets.Canvas; /** * Provides methods for drawing images onto a canvas. * <p> * This class is neither intended to be instantiated nor subclassed. * </p> * * @since 3.0 * @noinstantiate This class is not intended to be instantiated by clients. * @noextend This class is not intended to be subclassed by clients. */ public class ImageUtilities { /** * Draws an image aligned inside the given rectangle on the given canvas. * * @param image the image to be drawn * @param gc the drawing GC * @param canvas the canvas on which to draw * @param r the clipping rectangle * @param halign the horizontal alignment of the image to be drawn * @param valign the vertical alignment of the image to be drawn */ public static void drawImage(Image image, GC gc, Canvas canvas, Rectangle r, int halign, int valign) { if (image !is null) { Rectangle bounds= image.getBounds(); int x= 0; switch(halign) { case DWT.LEFT: break; case DWT.CENTER: x= (r.width - bounds.width) / 2; break; case DWT.RIGHT: x= r.width - bounds.width; break; default: } int y= 0; switch (valign) { case DWT.TOP: { FontMetrics fontMetrics= gc.getFontMetrics(); y= (fontMetrics.getHeight() - bounds.height)/2; break; } case DWT.CENTER: y= (r.height - bounds.height) / 2; break; case DWT.BOTTOM: { FontMetrics fontMetrics= gc.getFontMetrics(); y= r.height - (fontMetrics.getHeight() + bounds.height)/2; break; } default: } gc.drawImage(image, r.x+x, r.y+y); } } /** * Draws an image aligned inside the given rectangle on the given canvas. * * @param image the image to be drawn * @param gc the drawing GC * @param canvas the canvas on which to draw * @param r the clipping rectangle * @param align the alignment of the image to be drawn */ public static void drawImage(Image image, GC gc, Canvas canvas, Rectangle r, int align_) { drawImage(image, gc, canvas, r, align_, DWT.CENTER); } }
D
module ddb.db; /** Common relational database interfaces. Copyright: Copyright Piotr Szturmaj 2011-. License: $(LINK2 http://boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Piotr Szturmaj */ //module db; import std.conv, std.traits, std.typecons, std.typetuple, std.variant; /** Data row returned from database servers. DBRow may be instantiated with any number of arguments. It subtypes base type which depends on that number: $(TABLE $(TR $(TH Number of arguments) $(TH Base type)) $(TR $(TD 0) $(TD Variant[] $(BR)$(BR) It is default dynamic row, which can handle arbitrary number of columns and any of their types. )) $(TR $(TD 1) $(TD Specs itself, more precisely Specs[0] $(BR) --- struct S { int i, float f } DBRow!int rowInt; DBRow!S rowS; DBRow!(Tuple!(string, bool)) rowTuple; DBRow!(int[10]) rowSA; DBRow!(bool[]) rowDA; --- )) $(TR $(TD >= 2) $(TD Tuple!Specs $(BR) --- DBRow!(int, string) row1; // two arguments DBRow!(int, "i") row2; // two arguments --- )) ) If there is only one argument, the semantics depend on its type: $(TABLE $(TR $(TH Type) $(TH Semantics)) $(TR $(TD base type, such as int) $(TD Row contains only one column of that type)) $(TR $(TD struct) $(TD Row columns are mapped to fields of the struct in the same order)) $(TR $(TD Tuple) $(TD Row columns are mapped to tuple fields in the same order)) $(TR $(TD static array) $(TD Row columns are mapped to array items, they share the same type)) $(TR $(TD dynamic array) $(TD Same as static array, except that column count may change during runtime)) ) Note: String types are treated as base types. There is an exception for RDBMSes which are capable of returning arrays and/or composite types. If such a database server returns array or composite in one column it may be mapped to DBRow as if it was many columns. For example: --- struct S { string field1; int field2; } DBRow!S row; --- In this case row may handle result that either: $(UL $(LI has two columns convertible to respectively, string and int) $(LI has one column with composite type compatible with S) ) _DBRow's instantiated with dynamic array (and thus default Variant[]) provide additional bracket syntax for accessing fields: --- auto value = row["columnName"]; --- There are cases when result contains duplicate column names. Normally column name inside brackets refers to the first column of that name. To access other columns with that name, use additional index parameter: --- auto value = row["columnName", 1]; // second column named "columnName" auto value = row["columnName", 0]; // first column named "columnName" auto value = row["columnName"]; // same as above --- Examples: Default untyped (dynamic) _DBRow: --- DBRow!() row1; DBRow!(Variant[]) row2; assert(is(typeof(row1.base == row2.base))); auto cmd = new PGCommand(conn, "SElECT typname, typlen FROM pg_type"); auto result = cmd.executeQuery; foreach (i, row; result) { writeln(i, " - ", row["typname"], ", ", row["typlen"]); } result.close; --- _DBRow with only one field: --- DBRow!int row; row = 10; row += 1; assert(row == 11); DBRow!Variant untypedRow; untypedRow = 10; --- _DBRow with more than one field: --- struct S { int i; string s; } alias Tuple!(int, "i", string, "s") TS; // all three rows are compatible DBRow!S row1; DBRow!TS row2; DBRow!(int, "i", string, "s") row3; row1.i = row2.i = row3.i = 10; row1.s = row2.s = row3.s = "abc"; // these two rows are also compatible DBRow!(int, int) row4; DBRow!(int[2]) row5; row4[0] = row5[0] = 10; row4[1] = row5[1] = 20; --- Advanced example: --- enum Axis { x, y, z } struct SubRow1 { string s; int[] nums; int num; } alias Tuple!(int, "num", string, "s") SubRow2; struct Row { SubRow1 left; SubRow2[] right; Axis axis; string text; } auto cmd = new PGCommand(conn, "SELECT ROW('text', ARRAY[1, 2, 3], 100), ARRAY[ROW(1, 'str'), ROW(2, 'aab')], 'x', 'anotherText'"); auto row = cmd.executeRow!Row; assert(row.left.s == "text"); assert(row.left.nums == [1, 2, 3]); assert(row.left.num == 100); assert(row.right[0].num == 1 && row.right[0].s == "str"); assert(row.right[1].num == 2 && row.right[1].s == "aab"); assert(row.axis == Axis.x); assert(row.s == "anotherText"); --- */ struct DBRow(Specs...) { static if (Specs.length == 0) alias Variant[] T; else static if (Specs.length == 1) alias Specs[0] T; else alias Tuple!Specs T; T base; alias base this; static if (isDynamicArray!T && !isSomeString!T) { mixin template elmnt(U : U[]){ alias U ElemType; } mixin elmnt!T; enum hasStaticLength = false; void setLength(size_t length) { base.length = length; } void setNull(size_t index) { static if (isNullable!ElemType) base[index] = null; else throw new Exception("Cannot set NULL to field " ~ to!string(index) ~ " of " ~ T.stringof ~ ", it is not nullable"); } ColumnToIndexDelegate columnToIndex; ElemType opIndex(string column, size_t index) { return base[columnToIndex(column, index)]; } ElemType opIndexAssign(ElemType value, string column, size_t index) { return base[columnToIndex(column, index)] = value; } ElemType opIndex(string column) { return base[columnToIndex(column, 0)]; } ElemType opIndexAssign(ElemType value, string column) { return base[columnToIndex(column, 0)] = value; } ElemType opIndex(size_t index) { return base[index]; } ElemType opIndexAssign(ElemType value, size_t index) { return base[index] = value; } } else static if (isCompositeType!T) { static if (isStaticArray!T) { template ArrayTypeTuple(AT : U[N], U, size_t N) { static if (N > 1) alias TypeTuple!(U, ArrayTypeTuple!(U[N - 1])) ArrayTypeTuple; else alias TypeTuple!U ArrayTypeTuple; } alias ArrayTypeTuple!T fieldTypes; } else alias FieldTypeTuple!T fieldTypes; enum hasStaticLength = true; void set(U, size_t index)(U value) { static if (isStaticArray!T) base[index] = value; else base.tupleof[index] = value; } void setNull(size_t index)() { static if (isNullable!(fieldTypes[index])) { static if (isStaticArray!T) base[index] = null; else base.tupleof[index] = null; } else throw new Exception("Cannot set NULL to field " ~ to!string(index) ~ " of " ~ T.stringof ~ ", it is not nullable"); } } else static if (Specs.length == 1) { alias TypeTuple!T fieldTypes; enum hasStaticLength = true; void set(T, size_t index)(T value) { base = value; } void setNull(size_t index)() { static if (isNullable!T) base = null; else throw new Exception("Cannot set NULL to " ~ T.stringof ~ ", it is not nullable"); } } static if (hasStaticLength) { /** Checks if received field count matches field count of this row type. This is used internally by clients and it applies only to DBRow types, which have static number of fields. */ static pure void checkReceivedFieldCount(int fieldCount) { if (fieldTypes.length != fieldCount) throw new Exception("Received field count is not equal to " ~ T.stringof ~ "'s field count"); } } string toString() { return to!string(base); } } alias size_t delegate(string column, size_t index) ColumnToIndexDelegate; /** Check if type is a composite. Composite is a type with static number of fields. These types are: $(UL $(LI Tuples) $(LI structs) $(LI static arrays) ) */ template isCompositeType(T) { static if (isTuple!T || is(T == struct) || isStaticArray!T) enum isCompositeType = true; else enum isCompositeType = false; } template Nullable(T) if (!__traits(compiles, { T t = null; })) { /* Currently with void*, because otherwise it wont accept nulls. VariantN need to be changed to support nulls without using void*, which may be a legitimate type to store, as pointed out by Andrei. Preferable alias would be then Algebraic!(T, void) or even Algebraic!T, since VariantN already may hold "uninitialized state". */ alias Algebraic!(T, void*) Nullable; } template isVariantN(T) { //static if (is(T X == VariantN!(N, Types), uint N, Types...)) // doesn't work due to BUG 5784 static if (T.stringof.length >= 8 && T.stringof[0..8] == "VariantN") // ugly temporary workaround enum isVariantN = true; else enum isVariantN = false; } static assert(isVariantN!Variant); static assert(isVariantN!(Algebraic!(int, string))); static assert(isVariantN!(Nullable!int)); template isNullable(T) { static if ((isVariantN!T && T.allowed!(void*)) || is(T X == Nullable!U, U)) enum isNullable = true; else enum isNullable = false; } static assert(isNullable!Variant); static assert(isNullable!(Nullable!int)); template nullableTarget(T) if (isVariantN!T && T.allowed!(void*)) { alias T nullableTarget; } template nullableTarget(T : Nullable!U, U) { alias U nullableTarget; }
D
instance Mod_4012_UntoterNovize_13_MT (Npc_Default) { //-------- primary data -------- name = "Untoter Novize"; Npctype = Npctype_UNTOTERNOVIZE; guild = GIL_STRF; level = 20; voice = 2; id = 4012; //-------- abilities -------- B_SetAttributesToChapter (self, 4); EquipItem (self, ItMw_1h_Nov_Mace); //-------- visuals -------- // animations Mdl_SetVisual (self,"HUMANS.MDS"); Mdl_ApplyOverlayMds (self,"Humans_Relaxed.mds"); // body mesh ,bdytex,skin,head mesh ,headtex,teethtex,ruestung Mdl_SetVisualBody (self,"hum_body_Naked0", 14, 0,"Hum_Head_FatBald", 198, 1, ITAR_UntoterNovize); Mdl_SetModelFatness(self,0); B_SetFightSkills (self, 65); B_CreateAmbientInv (self); fight_tactic = FAI_HUMAN_STRONG; //-------- Talente -------- //-------- inventory -------- //-------------Daily Routine------------- daily_routine = Rtn_start_4012; //------------- //MISSIONs------------- }; FUNC VOID Rtn_start_4012 () { TA_Stand_WP (02,00,08,00,"LABYRINTH_52"); TA_Stand_WP (08,00,02,00,"LABYRINTH_52"); };
D
import std.stdio, std.algorithm, std.string; struct GrammarRule { string source; string[] goesTo; this(string source, string[] goesTo) { this.source = source; this.goesTo = goesTo; } string toString() { return format("(%s -> %s)", source, goesTo); } } struct Grammar { GrammarRule[] grammar; void insertRule(string source, string[] goesTo) { grammar ~= GrammarRule(source, goesTo); } string[][] getReplacements(string source, int depth = 1) { string[][] replacements = [[source]]; foreach (gr; grammar) if (gr.source == source) replacements ~= gr.goesTo; return replacements; } string[][] showPossibilities(string[] tokens, int depth = 1) { string[][] results; foreach(token; tokens) { if (results.length == 0) { results = getReplacements(token, depth); } else { string[][] newResults; foreach(replacement; getReplacements(token, depth)) { for (int k=0; k<results.length; ++k) { string[] newResult = results[k]; newResult ~= replacement; newResults ~= newResult; } } results = newResults; } } return results; } } Grammar grammar; bool isPrefixMatch(string[] tokens, string[][] replacements) { foreach (rep; replacements) { if (rep.length >= tokens.length) { bool match = true; for (int i=0; i<tokens.length; ++i) { if (tokens[i] != rep[i]) match = false; } if (match) return true; } } return false; } void init() { grammar.insertRule("class", ["class", "className", "{", "classVarDec", "subroutineDec", "}"]); //a classVarDec consists of 0 or more classVarDecs. Similarly for subroutineDec. grammar.insertRule("classVarDec", ["classVarDec", "classVarDec"]); grammar.insertRule("classVarDec", [""]); grammar.insertRule("classVarDec", ["static", "type", "varName", "optVarArgs", ";"]); grammar.insertRule("classVarDec", "static", "type", "varName", ";"); grammar.insertRule("subroutineDec", ["subroutineDec", "subroutineDec"]); grammar.insertRule("subroutineDec", [""]); grammar.insertRule("letStatement", ["let", "varName", "=", "expression", ";"]); grammar.insertRule("varName", ["identifier"]); grammar.insertRule("varName", ["varName", "[", "expression", "]"]); indent = 0; } void main(string[] args) { init(); auto tokens = ["a", "exp"]; string[][] results = grammar.showPossibilities(tokens); //foreach(res; results) // writeln(res); string[][] results2; writeln(grammar.getReplacementsR("exp", 2)); }
D
import std.stdio; import ga_framework; import generic_imp; import test_problem; import std.conv; import std.datetime; import std.string; import std.array; //void main() //{ // writeln(["iter", "popSize", "maxEval", "sec", "msec", "nsec"].join(";")); // foreach(maxEvals; [1_000_000, 2_000_000, 5_000_000, 10_000_000, 20_000_000, 50_000_000, 10_000_000]) { // foreach (popSize; [100, 1000, 10000]) { // foreach(iter; 0..3) { // StopWatch sw; // sw.start(); // GA!Point2D ga = new GA!Point2D( // popSize, // 0.8, 0.2, // maxEvals, // new PointGen, new DoubleSquareEval, new MultMutation, new CrossPoints, new TourneySelect!Point2D(3) // ); //// auto ga = new GA!Point2D( //// 100, 0.8, 0.2, 2_000_000, new PointGen, new DoubleSquareEval, new MultMutation, new CrossPoints, new TourneySelect!Point2D(3) //// ); //// writeln(ga.ctx.pop); // ga.run(); //// writeln(ga.ctx.pop); // sw.stop(); // writeln([ // to!string(iter), // to!string(popSize), // to!string(maxEvals), // to!string(sw.peek().seconds), // to!string(sw.peek().msecs), // to!string(sw.peek().nsecs) // ].join(";")); // delete ga; // } }} //}
D
/* TEST_OUTPUT: --- fail_compilation/fail274.d(10): Error: expression expected not `;` --- */ void main() { version(GNU) asm { "" : [; } else asm { inc [; } }
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 vtkColor4LongT; 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 vtkLongTuple4TN; class vtkColor4LongT : vtkLongTuple4TN.vtkLongTuple4TN { private void* swigCPtr; public this(void* cObject, bool ownCObject) { super(vtkd_im.vtkColor4LongT_Upcast(cObject), ownCObject); swigCPtr = cObject; } public static void* swigGetCPtr(vtkColor4LongT 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_vtkColor4LongT(cast(void*)swigCPtr); } swigCPtr = null; super.dispose(); } } } public this() { this(vtkd_im.new_vtkColor4LongT__SWIG_0(), true); } public this(core.stdc.config.c_long scalar) { this(vtkd_im.new_vtkColor4LongT__SWIG_1(scalar), true); } public this(core.stdc.config.c_long* init) { this(vtkd_im.new_vtkColor4LongT__SWIG_2(cast(void*)init), true); } public this(core.stdc.config.c_long red, core.stdc.config.c_long green, core.stdc.config.c_long blue, core.stdc.config.c_long alpha) { this(vtkd_im.new_vtkColor4LongT__SWIG_3(red, green, blue, alpha), true); } public void Set(core.stdc.config.c_long red, core.stdc.config.c_long green, core.stdc.config.c_long blue) { vtkd_im.vtkColor4LongT_Set__SWIG_0(cast(void*)swigCPtr, red, green, blue); } public void Set(core.stdc.config.c_long red, core.stdc.config.c_long green, core.stdc.config.c_long blue, core.stdc.config.c_long alpha) { vtkd_im.vtkColor4LongT_Set__SWIG_1(cast(void*)swigCPtr, red, green, blue, alpha); } public void SetRed(core.stdc.config.c_long red) { vtkd_im.vtkColor4LongT_SetRed(cast(void*)swigCPtr, red); } public core.stdc.config.c_long GetRed() const { auto ret = vtkd_im.vtkColor4LongT_GetRed(cast(void*)swigCPtr); return ret; } public void SetGreen(core.stdc.config.c_long green) { vtkd_im.vtkColor4LongT_SetGreen(cast(void*)swigCPtr, green); } public core.stdc.config.c_long GetGreen() const { auto ret = vtkd_im.vtkColor4LongT_GetGreen(cast(void*)swigCPtr); return ret; } public void SetBlue(core.stdc.config.c_long blue) { vtkd_im.vtkColor4LongT_SetBlue(cast(void*)swigCPtr, blue); } public core.stdc.config.c_long GetBlue() const { auto ret = vtkd_im.vtkColor4LongT_GetBlue(cast(void*)swigCPtr); return ret; } public void SetAlpha(core.stdc.config.c_long alpha) { vtkd_im.vtkColor4LongT_SetAlpha(cast(void*)swigCPtr, alpha); } public core.stdc.config.c_long GetAlpha() const { auto ret = vtkd_im.vtkColor4LongT_GetAlpha(cast(void*)swigCPtr); return ret; } public core.stdc.config.c_long Red() const { auto ret = vtkd_im.vtkColor4LongT_Red(cast(void*)swigCPtr); return ret; } public core.stdc.config.c_long Green() const { auto ret = vtkd_im.vtkColor4LongT_Green(cast(void*)swigCPtr); return ret; } public core.stdc.config.c_long Blue() const { auto ret = vtkd_im.vtkColor4LongT_Blue(cast(void*)swigCPtr); return ret; } public core.stdc.config.c_long Alpha() const { auto ret = vtkd_im.vtkColor4LongT_Alpha(cast(void*)swigCPtr); return ret; } }
D
/Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Vapor.build/Middleware/DateMiddleware.swift.o : /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Vapor.build/Middleware/DateMiddleware~partial.swiftmodule : /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Vapor.build/Middleware/DateMiddleware~partial.swiftdoc : /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
module android.java.java.security.cert.PKIXCertPathValidatorResult; public import android.java.java.security.cert.PKIXCertPathValidatorResult_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!PKIXCertPathValidatorResult; import import3 = android.java.java.lang.Class;
D
/Users/go7hic/workspace/Github/Rust-in-action/grrs/target/debug/deps/atty-522dd1011e8c9477.rmeta: /Users/go7hic/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/atty-0.2.14/src/lib.rs /Users/go7hic/workspace/Github/Rust-in-action/grrs/target/debug/deps/atty-522dd1011e8c9477.d: /Users/go7hic/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/atty-0.2.14/src/lib.rs /Users/go7hic/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/atty-0.2.14/src/lib.rs:
D
/* * Copyright (c) 2004-2008 Derelict Developers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the names 'Derelict', 'DerelictGL', nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ module derelict.opengl.extension.arb.texture_rectangle; private { import derelict.opengl.gltypes; import derelict.opengl.gl; import derelict.util.wrapper; } private bool enabled = false; struct ARBTextureRectangle { static bool load(char[] extString) { if(extString.findStr("GL_ARB_texture_rectangle") != -1) { enabled = true; return true; } return false; } static bool isEnabled() { return enabled; } } version(DerelictGL_NoExtensionLoaders) { } else { static this() { DerelictGL.registerExtensionLoader(&ARBTextureRectangle.load); } } enum : GLenum { GL_TEXTURE_RECTANGLE_ARB = 0x84F5, GL_TEXTURE_BINDING_RECTANGLE_ARB = 0x84F6, GL_PROXY_TEXTURE_RECTANGLE_ARB = 0x84F7, GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB = 0x84F8, }
D
lacking regard for the rights or feelings of others without proper consideration or reflection
D
a day or period of time set aside for feasting and celebration an organized series of acts and performances (usually in one place
D
/Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Take.o : /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Deprecated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Cancelable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObserverType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Reactive.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/RecursiveLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Errors.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Event.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/First.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Linux.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.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/sjwu/video/HouseHold/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Take~partial.swiftmodule : /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Deprecated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Cancelable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObserverType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Reactive.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/RecursiveLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Errors.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Event.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/First.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Linux.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.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/sjwu/video/HouseHold/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Take~partial.swiftdoc : /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Deprecated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Cancelable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObserverType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Reactive.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/RecursiveLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Errors.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Event.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/First.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Linux.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.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/sjwu/video/HouseHold/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap
D
instance DIA_Agon_EXIT(C_Info) { npc = NOV_603_Agon; nr = 999; condition = DIA_Agon_EXIT_Condition; information = DIA_Agon_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_Agon_EXIT_Condition() { return TRUE; }; func void DIA_Agon_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_Agon_Hello(C_Info) { npc = NOV_603_Agon; nr = 2; condition = DIA_Agon_Hello_Condition; information = DIA_Agon_Hello_Info; permanent = FALSE; important = TRUE; }; func int DIA_Agon_Hello_Condition() { if(Npc_IsInState(self,ZS_Talk) && (MIS_SCHNITZELJAGD == FALSE) && (other.guild == GIL_NOV)) { return TRUE; }; }; func void DIA_Agon_Hello_Info() { AI_Output(self,other,"DIA_Agon_Hello_07_00"); //(scornful) What do you want? }; instance DIA_Agon_Wurst(C_Info) { npc = NOV_603_Agon; nr = 2; condition = DIA_Agon_Wurst_Condition; information = DIA_Agon_Wurst_Info; permanent = FALSE; description = "Here, I've got a mutton sausage for you."; }; func int DIA_Agon_Wurst_Condition() { if((Kapitel == 1) && (MIS_GoraxEssen == LOG_Running) && (Npc_HasItems(self,ItFo_Schafswurst) == 0) && (Npc_HasItems(other,ItFo_Schafswurst) >= 1)) { return TRUE; }; }; func void DIA_Agon_Wurst_Info() { var string NovizeText; var string NovizeLeft; AI_Output(other,self,"DIA_Agon_Wurst_15_00"); //Here, I've got a mutton sausage for you. AI_Output(self,other,"DIA_Agon_Wurst_07_01"); //Sheep sausage, sheep cheese ... sheep milk ... it's getting so I can't stand the sight of it. AI_Output(other,self,"DIA_Agon_Wurst_15_02"); //So do you want the sausage, or not? AI_Output(self,other,"DIA_Agon_Wurst_07_03"); //Oh, give it here already! B_GiveInvItems(other,self,ItFo_Schafswurst,1); Wurst_Gegeben = Wurst_Gegeben + 1; CreateInvItems(self,ItFo_Sausage,1); B_UseItem(self,ItFo_Sausage); NovizeLeft = IntToString(13 - Wurst_Gegeben); NovizeText = ConcatStrings(NovizeLeft,PRINT_NovizenLeft); AI_PrintScreen(NovizeText,-1,YPOS_GoldGiven,FONT_ScreenSmall,2); }; instance DIA_Agon_New(C_Info) { npc = NOV_603_Agon; nr = 1; condition = DIA_Agon_New_Condition; information = DIA_Agon_New_Info; permanent = FALSE; description = "I'm new here."; }; func int DIA_Agon_New_Condition() { if((MIS_SCHNITZELJAGD == FALSE) && (other.guild == GIL_NOV)) { return TRUE; }; }; func void DIA_Agon_New_Info() { AI_Output(other,self,"DIA_Agon_New_15_00"); //I'm new here. AI_Output(self,other,"DIA_Agon_New_07_01"); //So I see. AI_Output(self,other,"DIA_Agon_New_07_02"); //If you still don't have any work, talk to Parlan. He'll assign you some. }; instance DIA_Agon_YouAndBabo(C_Info) { npc = NOV_603_Agon; nr = 1; condition = DIA_Agon_YouAndBabo_Condition; information = DIA_Agon_YouAndBabo_Info; permanent = FALSE; description = "What happened between you and Babo?"; }; func int DIA_Agon_YouAndBabo_Condition() { if(Npc_KnowsInfo(other,DIA_Opolos_Monastery) && (MIS_SCHNITZELJAGD == FALSE) && (other.guild == GIL_NOV)) { return TRUE; }; }; func void DIA_Agon_YouAndBabo_Info() { AI_Output(other,self,"DIA_Agon_YouAndBabo_15_00"); //What happened between you and Babo? AI_Output(self,other,"DIA_Agon_YouAndBabo_07_01"); //You shouldn't believe everything you hear. AI_Output(self,other,"DIA_Agon_YouAndBabo_07_02"); //(insistently) Let's get something straight: I shall go my own way. The way that Innos foreordained for me. AI_Output(self,other,"DIA_Agon_YouAndBabo_07_03"); //I won't allow anyone to stand in my way, and certainly not that simpleton Babo. Info_ClearChoices(DIA_Agon_YouAndBabo); Info_AddChoice(DIA_Agon_YouAndBabo,"Shouldn't we novices stick together?",DIA_Agon_YouAndBabo_AllTogether); Info_AddChoice(DIA_Agon_YouAndBabo,"Innos alone knows which path we shall take.",DIA_Agon_YouAndBabo_InnosWay); Info_AddChoice(DIA_Agon_YouAndBabo,"We'll get along just fine.",DIA_Agon_YouAndBabo_Understand); }; func void DIA_Agon_YouAndBabo_AllTogether() { AI_Output(other,self,"DIA_Agon_YouAndBabo_AllTogether_15_00"); //Shouldn't we novices stick together? AI_Output(self,other,"DIA_Agon_YouAndBabo_AllTogether_07_01"); //The rest of you can stick together as much as you like. AI_Output(self,other,"DIA_Agon_YouAndBabo_AllTogether_07_02"); //But please, don't waste my time. (cold) And no one should get in my way. Info_ClearChoices(DIA_Agon_YouAndBabo); }; func void DIA_Agon_YouAndBabo_InnosWay() { AI_Output(other,self,"DIA_Agon_YouAndBabo_InnosWay_15_00"); //Innos alone knows which path we shall take. AI_Output(self,other,"DIA_Agon_YouAndBabo_InnosWay_07_01"); //My family has always stood highly in Innos' favor and nothing about that is going to change. Info_ClearChoices(DIA_Agon_YouAndBabo); }; func void DIA_Agon_YouAndBabo_Understand() { AI_Output(other,self,"DIA_Agon_YouAndBabo_Understand_15_00"); //We'll get along just fine. AI_Output(self,other,"DIA_Agon_YouAndBabo_Understand_07_01"); //I hope so. Once I'm a magician, I can put in a good word for you. Info_ClearChoices(DIA_Agon_YouAndBabo); }; instance DIA_Agon_GetHerb(C_Info) { npc = NOV_603_Agon; nr = 1; condition = DIA_Agon_GetHerb_Condition; information = DIA_Agon_GetHerb_Info; permanent = TRUE; description = "What are you planting here?"; }; func int DIA_Agon_GetHerb_Condition() { if(MIS_SCHNITZELJAGD == FALSE) { return TRUE; }; }; func void DIA_Agon_GetHerb_Info() { AI_Output(other,self,"DIA_Agon_GetHerb_15_00"); //What are you planting here? AI_Output(self,other,"DIA_Agon_GetHerb_07_01"); //We're trying to grow healing plants that Master Neoras can use to brew potions. }; instance DIA_Agon_GolemDead(C_Info) { npc = NOV_603_Agon; nr = 1; condition = DIA_Agon_GolemDead_Condition; information = DIA_Agon_GolemDead_Info; permanent = FALSE; important = TRUE; }; func int DIA_Agon_GolemDead_Condition() { if((MIS_SCHNITZELJAGD == LOG_Running) && Npc_IsDead(Magic_Golem)) { return TRUE; }; }; func void DIA_Agon_GolemDead_Info() { AI_Output(self,other,"DIA_Agon_GolemDead_07_00"); //(triumphant) You are too late! AI_Output(self,other,"DIA_Agon_GolemDead_07_01"); //I was here first! I have won! Info_ClearChoices(DIA_Agon_GolemDead); Info_AddChoice(DIA_Agon_GolemDead,"(menacing) Only if you get out of here alive.",DIA_Agon_GolemDead_NoWay); Info_AddChoice(DIA_Agon_GolemDead,"Shut up!",DIA_Agon_GolemDead_ShutUp); Info_AddChoice(DIA_Agon_GolemDead,"Congratulations, you have really deserved it.",DIA_Agon_GolemDead_Congrat); }; func void DIA_Agon_GolemDead_NoWay() { AI_Output(other,self,"DIA_Agon_GolemDead_NoWay_15_00"); //(menacing) Only if you get out of here alive. AI_Output(self,other,"DIA_Agon_GolemDead_NoWay_07_01"); //Do you want to kill me? You will never succeed. AI_StopProcessInfos(self); B_Attack(self,other,AR_NONE,1); }; func void DIA_Agon_GolemDead_ShutUp() { AI_Output(other,self,"DIA_Agon_GolemDead_ShutUp_15_00"); //Shut up! AI_Output(self,other,"DIA_Agon_GolemDead_ShutUp_07_01"); //(mocking) It is hopeless, you have lost! Resign yourself to it. AI_Output(self,other,"DIA_Agon_GolemDead_ShutUp_07_02"); //Only I am destined to become a magician. Info_ClearChoices(DIA_Agon_GolemDead); Info_AddChoice(DIA_Agon_GolemDead,"Destined my ass. The chest is mine.",DIA_Agon_GolemDead_ShutUp_MyChest); Info_AddChoice(DIA_Agon_GolemDead,"You win.",DIA_Agon_GolemDead_ShutUp_YouWin); }; func void DIA_Agon_GolemDead_ShutUp_MyChest() { AI_Output(other,self,"DIA_Agon_GolemDead_ShutUp_MyChest_15_00"); //Destined my ass. The chest is mine. AI_Output(self,other,"DIA_Agon_GolemDead_ShutUp_MyChest_07_01"); //(furious) No, you cannot do that, I will kill you first. AI_StopProcessInfos(self); B_Attack(self,other,AR_NONE,1); }; func void DIA_Agon_GolemDead_ShutUp_YouWin() { AI_Output(other,self,"DIA_Agon_GolemDead_ShutUp_YouWin_15_00"); //You win. AI_Output(self,other,"DIA_Agon_GolemDead_ShutUp_YouWin_07_01"); //(furious) No, you cannot deceive me. You're trying to get rid of me. AI_Output(self,other,"DIA_Agon_GolemDead_ShutUp_YouWin_07_02"); //I shall prevent that! AI_StopProcessInfos(self); B_Attack(self,other,AR_NONE,1); }; func void DIA_Agon_GolemDead_Congrat() { AI_Output(other,self,"DIA_Agon_GolemDead_Congrat_15_00"); //Congratulations, you have really deserved it. AI_Output(self,other,"DIA_Agon_GolemDead_Congrat_07_01"); //(distrustful) What does that mean? What are you planning? AI_Output(other,self,"DIA_Agon_GolemDead_Congrat_15_02"); //What are you talking about? AI_Output(self,other,"DIA_Agon_GolemDead_Congrat_07_03"); //(nervous) You want to dispute my victory. You want to kill me and take all the glory for yourself! AI_Output(self,other,"DIA_Agon_GolemDead_Congrat_07_04"); //You will never succeed! AI_StopProcessInfos(self); B_Attack(self,other,AR_NONE,1); }; instance DIA_Agon_GolemLives(C_Info) { npc = NOV_603_Agon; nr = 1; condition = DIA_Agon_GolemLives_Condition; information = DIA_Agon_GolemLives_Info; permanent = FALSE; important = TRUE; }; func int DIA_Agon_GolemLives_Condition() { if((MIS_SCHNITZELJAGD == LOG_Running) && (Npc_IsDead(Magic_Golem) == FALSE)) { return TRUE; }; }; func void DIA_Agon_GolemLives_Info() { AI_Output(self,other,"DIA_Agon_GolemLives_07_00"); //(surprised) You found the hiding place before me. That cannot be ... AI_Output(self,other,"DIA_Agon_GolemLives_07_01"); //(determined) That must not be! I shall not permit it. AI_Output(self,other,"DIA_Agon_GolemLives_07_02"); //They won't even find your corpse. AI_StopProcessInfos(self); B_Attack(self,other,AR_NONE,0); }; instance DIA_Agon_Perm(C_Info) { npc = NOV_603_Agon; nr = 2; condition = DIA_Agon_Perm_Condition; information = DIA_Agon_Perm_Info; permanent = TRUE; description = "So how are things?"; }; func int DIA_Agon_Perm_Condition() { if((Kapitel >= 3) && (other.guild != GIL_KDF)) { return TRUE; }; }; func void DIA_Agon_Perm_Info() { AI_Output(other,self,"DIA_Agon_Perm_15_00"); //So how's it going? if(other.guild == GIL_PAL) { AI_Output(self,other,"DIA_Agon_Perm_07_01"); //Oh - thank you for your concern, Sir Paladin. I enjoy the work and I am certain to be selected as a magician soon. } else { AI_Output(self,other,"DIA_Agon_Perm_07_02"); //(arrogant) You are only a guest here in the monastery of Innos. Therefore you should act accordingly and not disturb me while I am working. Good day. }; }; instance DIA_Agon_PICKPOCKET(C_Info) { npc = NOV_603_Agon; nr = 900; condition = DIA_Agon_PICKPOCKET_Condition; information = DIA_Agon_PICKPOCKET_Info; permanent = TRUE; description = Pickpocket_40; }; func int DIA_Agon_PICKPOCKET_Condition() { return C_Beklauen(23,12); }; func void DIA_Agon_PICKPOCKET_Info() { Info_ClearChoices(DIA_Agon_PICKPOCKET); Info_AddChoice(DIA_Agon_PICKPOCKET,Dialog_Back,DIA_Agon_PICKPOCKET_BACK); Info_AddChoice(DIA_Agon_PICKPOCKET,DIALOG_PICKPOCKET,DIA_Agon_PICKPOCKET_DoIt); }; func void DIA_Agon_PICKPOCKET_DoIt() { B_Beklauen(); Info_ClearChoices(DIA_Agon_PICKPOCKET); }; func void DIA_Agon_PICKPOCKET_BACK() { Info_ClearChoices(DIA_Agon_PICKPOCKET); };
D
/Users/Bamz/Developer/Calculator/Build/Intermediates/Calculator.build/Debug-iphonesimulator/Calculator.build/Objects-normal/x86_64/ViewController.o : /Users/Bamz/Developer/Calculator/Calculator/AppDelegate.swift /Users/Bamz/Developer/Calculator/Calculator/CalcBrain.swift /Users/Bamz/Developer/Calculator/Calculator/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Bamz/Developer/Calculator/Build/Intermediates/Calculator.build/Debug-iphonesimulator/Calculator.build/Objects-normal/x86_64/ViewController~partial.swiftmodule : /Users/Bamz/Developer/Calculator/Calculator/AppDelegate.swift /Users/Bamz/Developer/Calculator/Calculator/CalcBrain.swift /Users/Bamz/Developer/Calculator/Calculator/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Bamz/Developer/Calculator/Build/Intermediates/Calculator.build/Debug-iphonesimulator/Calculator.build/Objects-normal/x86_64/ViewController~partial.swiftdoc : /Users/Bamz/Developer/Calculator/Calculator/AppDelegate.swift /Users/Bamz/Developer/Calculator/Calculator/CalcBrain.swift /Users/Bamz/Developer/Calculator/Calculator/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
D
/******************************************************************************* * Copyright (c) 2000, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation * Port to the D programming language: * Frank Benoit <benoit@tionex.de> *******************************************************************************/ module dwtx.jface.text.formatter.FormattingContextProperties; import dwtx.jface.text.formatter.MultiPassContentFormatter; // packageimport import dwtx.jface.text.formatter.ContextBasedFormattingStrategy; // packageimport import dwtx.jface.text.formatter.FormattingContext; // packageimport import dwtx.jface.text.formatter.IFormattingStrategy; // packageimport import dwtx.jface.text.formatter.IContentFormatterExtension; // packageimport import dwtx.jface.text.formatter.IFormattingStrategyExtension; // packageimport import dwtx.jface.text.formatter.IContentFormatter; // packageimport import dwtx.jface.text.formatter.ContentFormatter; // packageimport import dwtx.jface.text.formatter.IFormattingContext; // packageimport import dwt.dwthelper.utils; /** * Keys used by <code>IFormattingContext</code> objects to register specific * properties needed during the formatting process of a content formatter * implementing <code>IContentFormatterExtension</code>. * * @see IFormattingContext * @see IFormattingStrategyExtension * @see IContentFormatterExtension * @since 3.0 */ public class FormattingContextProperties { /** * Property key of the document property. The property must implement * <code>java.lang#Boolean</code>. If set to <code>true</code> the whole * document is formatted. * <p> * Value: <code>"formatting.context.document"</code> */ public static const String CONTEXT_DOCUMENT= "formatting.context.document"; //$NON-NLS-1$ /** * Property key of the partition property. The property must implement * <code>dwtx.jface.text#TypedPosition</code>. The partition * a context based formatting strategy should format. * <p> * Value: <code>"formatting.context.partition"</code> */ public static const String CONTEXT_PARTITION= "formatting.context.partition"; //$NON-NLS-1$ /** * Property key of the preferences property. The property must implement * <code>java.util#Map</code>. The formatting preferences mapping preference * keys to values. * <p> * Value: <code>"formatting.context.preferences"</code> */ public static const String CONTEXT_PREFERENCES= "formatting.context.preferences"; //$NON-NLS-1$ /** * Property key of the region property. The property must implement <code>dwtx.jface.text#IRegion</code>. * The region to format. If set, {@link FormattingContextProperties#CONTEXT_DOCUMENT} should be <code>false</code> * for this to take effect. * <p> * Value: <code>"formatting.context.region"</code> */ public static const String CONTEXT_REGION= "formatting.context.region"; //$NON-NLS-1$ /** * Property key of the medium property. The property must implement <code>dwtx.jface.text#IDocument</code>. * The document to format. * <p> * Value: <code>"formatting.context.medium"</code> */ public static const String CONTEXT_MEDIUM= "formatting.context.medium"; //$NON-NLS-1$ /** * Ensure that this class cannot be instantiated. */ private this() { } }
D
/Programming/servicely/build/servicely.build/Debug-iphonesimulator/servicely.build/Objects-normal/x86_64/CosmosDistrib.o : /Programming/servicely/servicely/CosmosDistrib.swift /Programming/servicely/servicely/ColorScheme.swift /Programming/servicely/servicely/AppDelegate.swift /Programming/servicely/servicely/CategoriesServiceTableViewCell.swift /Programming/servicely/servicely/ServiceOfferTableViewCell.swift /Programming/servicely/servicely/ServiceOffer.swift /Programming/servicely/servicely/ClientFeedViewController.swift /Programming/servicely/servicely/ChangePasswordViewController.swift /Programming/servicely/servicely/ViewServiceViewController.swift /Programming/servicely/servicely/OurServicesTableViewController.swift /Programming/servicely/servicely/CategoriesTableViewController.swift /Programming/servicely/servicely/SettingsTableViewController.swift /Programming/servicely/servicely/MyRequetsTableViewController.swift /Programming/servicely/servicely/ServicesRequestsTableViewController.swift /Programming/servicely/servicely/ProfileViewController.swift /Programming/servicely/servicely/ProviderProfileViewController.swift /Programming/servicely/servicely/EditProfileViewController.swift /Programming/servicely/servicely/ClientProfileViewController.swift /Programming/servicely/servicely/ChangeColorSchemeViewController.swift /Programming/servicely/servicely/ServiceTypeViewController.swift /Programming/servicely/servicely/ChangeProfilePictureViewController.swift /Programming/servicely/servicely/ServicelyLogoViewController.swift /Programming/servicely/servicely/EditProviderViewController.swift /Programming/servicely/servicely/CreateServiceOfferViewController.swift /Programming/servicely/servicely/SettingsViewController.swift /Programming/servicely/servicely/DeleteAccountViewController.swift /Programming/servicely/servicely/CreateServiceOrRequestViewController.swift /Programming/servicely/servicely/CreateClientRequestViewController.swift /Programming/servicely/servicely/Client.swift /Programming/servicely/servicely/ClientRequest.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.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/Photos.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 /Programming/servicely/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Programming/servicely/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Headers/FIRAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Google/Frameworks/FirebaseGoogleAuthUI.framework/Headers/FIRGoogleAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Google/Frameworks/FirebaseGoogleAuthUI.framework/Headers/FirebaseGoogleAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Headers/FirebaseAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Facebook/Frameworks/FirebaseFacebookAuthUI.framework/Headers/FIRFacebookAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Facebook/Frameworks/FirebaseFacebookAuthUI.framework/Headers/FirebaseFacebookAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Headers/FIRAuthProviderUI.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFURL.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts-umbrella.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-umbrella.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-umbrella.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRMutableData.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDProfileData.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageReference.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenSource.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTaskCompletionSource.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorage.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FirebaseStorage.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabase.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Programming/servicely/Pods/Firebase/Headers/Firebase.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRServerValue.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLinkResolving.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRAuth.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FirebaseAuth.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLink.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTask.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTask.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDSignIn.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GoogleSignIn.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationToken.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDAuthentication.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLinkNavigation.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDSignInButton.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRUserInfo.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIREmailPasswordAuthProvider.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Headers/FIRAuthUIBaseViewController.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Headers/FIRAuthPickerViewController.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRUser.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDGoogleUser.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFWebViewAppLinkResolver.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFExecutor.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTask+Exceptions.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKMacros.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLinkTarget.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFMeasurementEvent.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Programming/servicely/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Google/Frameworks/FirebaseGoogleAuthUI.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Facebook/Frameworks/FirebaseFacebookAuthUI.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Modules/module.modulemap /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Modules/module.modulemap /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Modules/module.modulemap /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Modules/module.modulemap /Programming/servicely/Pods/Firebase/Headers/module.modulemap /Programming/servicely/build/servicely.build/Debug-iphonesimulator/servicely.build/Objects-normal/x86_64/CosmosDistrib~partial.swiftmodule : /Programming/servicely/servicely/CosmosDistrib.swift /Programming/servicely/servicely/ColorScheme.swift /Programming/servicely/servicely/AppDelegate.swift /Programming/servicely/servicely/CategoriesServiceTableViewCell.swift /Programming/servicely/servicely/ServiceOfferTableViewCell.swift /Programming/servicely/servicely/ServiceOffer.swift /Programming/servicely/servicely/ClientFeedViewController.swift /Programming/servicely/servicely/ChangePasswordViewController.swift /Programming/servicely/servicely/ViewServiceViewController.swift /Programming/servicely/servicely/OurServicesTableViewController.swift /Programming/servicely/servicely/CategoriesTableViewController.swift /Programming/servicely/servicely/SettingsTableViewController.swift /Programming/servicely/servicely/MyRequetsTableViewController.swift /Programming/servicely/servicely/ServicesRequestsTableViewController.swift /Programming/servicely/servicely/ProfileViewController.swift /Programming/servicely/servicely/ProviderProfileViewController.swift /Programming/servicely/servicely/EditProfileViewController.swift /Programming/servicely/servicely/ClientProfileViewController.swift /Programming/servicely/servicely/ChangeColorSchemeViewController.swift /Programming/servicely/servicely/ServiceTypeViewController.swift /Programming/servicely/servicely/ChangeProfilePictureViewController.swift /Programming/servicely/servicely/ServicelyLogoViewController.swift /Programming/servicely/servicely/EditProviderViewController.swift /Programming/servicely/servicely/CreateServiceOfferViewController.swift /Programming/servicely/servicely/SettingsViewController.swift /Programming/servicely/servicely/DeleteAccountViewController.swift /Programming/servicely/servicely/CreateServiceOrRequestViewController.swift /Programming/servicely/servicely/CreateClientRequestViewController.swift /Programming/servicely/servicely/Client.swift /Programming/servicely/servicely/ClientRequest.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.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/Photos.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 /Programming/servicely/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Programming/servicely/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Headers/FIRAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Google/Frameworks/FirebaseGoogleAuthUI.framework/Headers/FIRGoogleAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Google/Frameworks/FirebaseGoogleAuthUI.framework/Headers/FirebaseGoogleAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Headers/FirebaseAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Facebook/Frameworks/FirebaseFacebookAuthUI.framework/Headers/FIRFacebookAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Facebook/Frameworks/FirebaseFacebookAuthUI.framework/Headers/FirebaseFacebookAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Headers/FIRAuthProviderUI.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFURL.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts-umbrella.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-umbrella.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-umbrella.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRMutableData.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDProfileData.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageReference.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenSource.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTaskCompletionSource.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorage.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FirebaseStorage.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabase.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Programming/servicely/Pods/Firebase/Headers/Firebase.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRServerValue.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLinkResolving.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRAuth.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FirebaseAuth.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLink.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTask.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTask.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDSignIn.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GoogleSignIn.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationToken.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDAuthentication.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLinkNavigation.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDSignInButton.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRUserInfo.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIREmailPasswordAuthProvider.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Headers/FIRAuthUIBaseViewController.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Headers/FIRAuthPickerViewController.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRUser.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDGoogleUser.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFWebViewAppLinkResolver.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFExecutor.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTask+Exceptions.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKMacros.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLinkTarget.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFMeasurementEvent.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Programming/servicely/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Google/Frameworks/FirebaseGoogleAuthUI.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Facebook/Frameworks/FirebaseFacebookAuthUI.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Modules/module.modulemap /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Modules/module.modulemap /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Modules/module.modulemap /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Modules/module.modulemap /Programming/servicely/Pods/Firebase/Headers/module.modulemap /Programming/servicely/build/servicely.build/Debug-iphonesimulator/servicely.build/Objects-normal/x86_64/CosmosDistrib~partial.swiftdoc : /Programming/servicely/servicely/CosmosDistrib.swift /Programming/servicely/servicely/ColorScheme.swift /Programming/servicely/servicely/AppDelegate.swift /Programming/servicely/servicely/CategoriesServiceTableViewCell.swift /Programming/servicely/servicely/ServiceOfferTableViewCell.swift /Programming/servicely/servicely/ServiceOffer.swift /Programming/servicely/servicely/ClientFeedViewController.swift /Programming/servicely/servicely/ChangePasswordViewController.swift /Programming/servicely/servicely/ViewServiceViewController.swift /Programming/servicely/servicely/OurServicesTableViewController.swift /Programming/servicely/servicely/CategoriesTableViewController.swift /Programming/servicely/servicely/SettingsTableViewController.swift /Programming/servicely/servicely/MyRequetsTableViewController.swift /Programming/servicely/servicely/ServicesRequestsTableViewController.swift /Programming/servicely/servicely/ProfileViewController.swift /Programming/servicely/servicely/ProviderProfileViewController.swift /Programming/servicely/servicely/EditProfileViewController.swift /Programming/servicely/servicely/ClientProfileViewController.swift /Programming/servicely/servicely/ChangeColorSchemeViewController.swift /Programming/servicely/servicely/ServiceTypeViewController.swift /Programming/servicely/servicely/ChangeProfilePictureViewController.swift /Programming/servicely/servicely/ServicelyLogoViewController.swift /Programming/servicely/servicely/EditProviderViewController.swift /Programming/servicely/servicely/CreateServiceOfferViewController.swift /Programming/servicely/servicely/SettingsViewController.swift /Programming/servicely/servicely/DeleteAccountViewController.swift /Programming/servicely/servicely/CreateServiceOrRequestViewController.swift /Programming/servicely/servicely/CreateClientRequestViewController.swift /Programming/servicely/servicely/Client.swift /Programming/servicely/servicely/ClientRequest.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.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/Photos.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 /Programming/servicely/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Programming/servicely/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Headers/FIRAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Google/Frameworks/FirebaseGoogleAuthUI.framework/Headers/FIRGoogleAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Google/Frameworks/FirebaseGoogleAuthUI.framework/Headers/FirebaseGoogleAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Headers/FirebaseAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Facebook/Frameworks/FirebaseFacebookAuthUI.framework/Headers/FIRFacebookAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Facebook/Frameworks/FirebaseFacebookAuthUI.framework/Headers/FirebaseFacebookAuthUI.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Headers/FIRAuthProviderUI.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFURL.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts-umbrella.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-umbrella.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-umbrella.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRMutableData.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDProfileData.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageReference.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenSource.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTaskCompletionSource.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorage.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FirebaseStorage.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabase.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Programming/servicely/Pods/Firebase/Headers/Firebase.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRServerValue.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLinkResolving.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRAuth.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FirebaseAuth.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLink.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTask.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTask.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDSignIn.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GoogleSignIn.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationToken.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDAuthentication.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLinkNavigation.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDSignInButton.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRUserInfo.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIREmailPasswordAuthProvider.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Headers/FIRAuthUIBaseViewController.h /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Headers/FIRAuthPickerViewController.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRUser.h /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDGoogleUser.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFWebViewAppLinkResolver.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFExecutor.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTask+Exceptions.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKMacros.h /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLinkTarget.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFMeasurementEvent.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Programming/servicely/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Google/Frameworks/FirebaseGoogleAuthUI.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Auth/Frameworks/FirebaseAuthUI.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseUI/FirebaseUIFrameworks/Facebook/Frameworks/FirebaseFacebookAuthUI.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework/Modules/module.modulemap /Programming/servicely/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Modules/module.modulemap /Programming/servicely/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Programming/servicely/build/Debug-iphonesimulator/Bolts/Bolts.framework/Modules/module.modulemap /Programming/servicely/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Modules/module.modulemap /Programming/servicely/build/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Modules/module.modulemap /Programming/servicely/Pods/Firebase/Headers/module.modulemap
D
module libcpe.client.profile.list; import std.getopt; import libcpe.client.core : printHelp; import libcpe.client.profile.core; int app(string[] args) { bool show_name, show_file, show_cpe, show_user, show_password; auto optRes = getopt( args, "name" , "Name of the profile" , &show_name, "file" , "The file, where profile informations are stored" , &show_file, "cpe" , "URL of the service desctiption document from the CPE (Customer Premises Equipment)" , &show_cpe, "user" , "CPE username" , &show_user, "password" , "The CPE users passowrd " , &show_password ); if (optRes.helpWanted) { printHelp("list" , optRes); return 1; } if( !show_name && !show_file && !show_cpe && !show_user && !show_password) { show_name = true; } import std.stdio; import std.path : baseName; import std.string : stripRight; auto profile = Profile(); foreach(file ; known_profiles()) { if(show_cpe || show_user || show_password) { profile.load(file); } ( (show_name ? file.baseName(".profile")~'\t' : "") ~(show_user ? profile.user~'\t' : "" ) ~(show_password ? profile.password~'\t' : "" ) ~(show_file ? file~'\t' : "") ~(show_cpe ? profile.cpe.toString() : "" ) ).stripRight.writeln; } return 0; }
D
#!/usr/bin/env rdmd -i -I.. import std.stdio; import std.datetime.stopwatch; import std.range; import std.algorithm; import kreikey.intmath; import std.functional; alias distinctPrimeFactors = memoize!(getDistinctPrimeFactors2!ulong); //alias distinctPrimeFactors = distinctPrimeFactors2; void main() { StopWatch timer; alias InfIota = recurrence!((a, n) => a[n-1]+1, ulong); timer.start(); writeln("Distinct prime factors"); auto fourDistinctPrimeFactors = InfIota(1uL) .map!(a => a, a => distinctPrimeFactors(a).length) .group!((a, b) => a[1] == b[1]) .find!(a => a[0][1] == 4 && a[1] == 4) .front[0][0]; auto fourDistinctPrimeFactorsCopy = fourDistinctPrimeFactors; foreach (i; 0..4) { writefln("%s: %(%s, %)", fourDistinctPrimeFactorsCopy, fourDistinctPrimeFactorsCopy.distinctPrimeFactors()); fourDistinctPrimeFactorsCopy++; } timer.stop(); writefln("The first four consequtive numbers with four distinct prime factors starts with: %s", fourDistinctPrimeFactors); writefln("Finished in %s milliseconds.", timer.peek.total!"msecs"()); }
D
module gfm.assimp; // Assimp OO wrapper public { import derelict.assimp3.assimp; import gfm.assimp.assimp, gfm.assimp.scene; }
D
/Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/Crypto.build/Objects-normal/x86_64/RSAKey.o : /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Utilities/Base32.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/RSA/RSA.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/MAC/HMAC.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/MAC/OTP.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Utilities/Deprecated.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/RSA/RSAPadding.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/CipherAlgorithm.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/OpenSSLCipherAlgorithm.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/AuthenticatedCipherAlgorithm.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Digest/DigestAlgorithm.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Random/CryptoRandom.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/Cipher.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/AuthenticatedCipher.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/OpenSSLStreamCipher.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Utilities/CryptoError.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Utilities/Exports.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Digest/Digest.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/BCrypt/BCryptDigest.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/RSA/RSAKey.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOOpenSSL.framework/Modules/NIOOpenSSL.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOTLS.framework/Modules/NIOTLS.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Async.framework/Modules/Async.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/COperatingSystem.framework/Modules/COperatingSystem.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Random.framework/Modules/Random.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOFoundationCompat.framework/Modules/NIOFoundationCompat.swiftmodule/x86_64.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /usr/local/Cellar/libressl/2.8.3/include/openssl/asn1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/tls1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pem2.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.8.3/include/openssl/md5.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509.h /usr/local/Cellar/libressl/2.8.3/include/openssl/sha.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dsa.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.8.3/include/openssl/rsa.h /usr/local/Cellar/libressl/2.8.3/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.8.3/include/openssl/hmac.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ec.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/cpp_magic.h /usr/local/Cellar/libressl/2.8.3/include/openssl/rand.h /usr/local/Cellar/libressl/2.8.3/include/openssl/conf.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dh.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.8.3/include/openssl/lhash.h /usr/local/Cellar/libressl/2.8.3/include/openssl/stack.h /usr/local/Cellar/libressl/2.8.3/include/openssl/safestack.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-ssl.git-6229230015178651706/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pem.h /usr/local/Cellar/libressl/2.8.3/include/openssl/bn.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIODarwin/include/c_nio_darwin.h /usr/local/Cellar/libressl/2.8.3/include/openssl/bio.h /usr/local/Cellar/libressl/2.8.3/include/openssl/crypto.h /usr/local/Cellar/libressl/2.8.3/include/openssl/srtp.h /usr/local/Cellar/libressl/2.8.3/include/openssl/evp.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.8.3/include/openssl/buffer.h /usr/local/Cellar/libressl/2.8.3/include/openssl/err.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/c-atomics.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.8.3/include/openssl/objects.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslv.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOLinux/include/c_nio_linux.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509_vfy.h /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-ssl-support.git--4437464806220867867/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-zlib-support.git-4597058737275259177/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOOpenSSL/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CCryptoOpenSSL/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/CBase32/include/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/CBcrypt/include/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/Crypto.build/Objects-normal/x86_64/RSAKey~partial.swiftmodule : /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Utilities/Base32.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/RSA/RSA.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/MAC/HMAC.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/MAC/OTP.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Utilities/Deprecated.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/RSA/RSAPadding.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/CipherAlgorithm.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/OpenSSLCipherAlgorithm.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/AuthenticatedCipherAlgorithm.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Digest/DigestAlgorithm.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Random/CryptoRandom.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/Cipher.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/AuthenticatedCipher.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/OpenSSLStreamCipher.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Utilities/CryptoError.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Utilities/Exports.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Digest/Digest.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/BCrypt/BCryptDigest.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/RSA/RSAKey.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOOpenSSL.framework/Modules/NIOOpenSSL.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOTLS.framework/Modules/NIOTLS.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Async.framework/Modules/Async.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/COperatingSystem.framework/Modules/COperatingSystem.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Random.framework/Modules/Random.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOFoundationCompat.framework/Modules/NIOFoundationCompat.swiftmodule/x86_64.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /usr/local/Cellar/libressl/2.8.3/include/openssl/asn1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/tls1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pem2.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.8.3/include/openssl/md5.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509.h /usr/local/Cellar/libressl/2.8.3/include/openssl/sha.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dsa.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.8.3/include/openssl/rsa.h /usr/local/Cellar/libressl/2.8.3/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.8.3/include/openssl/hmac.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ec.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/cpp_magic.h /usr/local/Cellar/libressl/2.8.3/include/openssl/rand.h /usr/local/Cellar/libressl/2.8.3/include/openssl/conf.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dh.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.8.3/include/openssl/lhash.h /usr/local/Cellar/libressl/2.8.3/include/openssl/stack.h /usr/local/Cellar/libressl/2.8.3/include/openssl/safestack.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-ssl.git-6229230015178651706/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pem.h /usr/local/Cellar/libressl/2.8.3/include/openssl/bn.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIODarwin/include/c_nio_darwin.h /usr/local/Cellar/libressl/2.8.3/include/openssl/bio.h /usr/local/Cellar/libressl/2.8.3/include/openssl/crypto.h /usr/local/Cellar/libressl/2.8.3/include/openssl/srtp.h /usr/local/Cellar/libressl/2.8.3/include/openssl/evp.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.8.3/include/openssl/buffer.h /usr/local/Cellar/libressl/2.8.3/include/openssl/err.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/c-atomics.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.8.3/include/openssl/objects.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslv.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOLinux/include/c_nio_linux.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509_vfy.h /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-ssl-support.git--4437464806220867867/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-zlib-support.git-4597058737275259177/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOOpenSSL/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CCryptoOpenSSL/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/CBase32/include/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/CBcrypt/include/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/Crypto.build/Objects-normal/x86_64/RSAKey~partial.swiftdoc : /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Utilities/Base32.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/RSA/RSA.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/MAC/HMAC.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/MAC/OTP.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Utilities/Deprecated.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/RSA/RSAPadding.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/CipherAlgorithm.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/OpenSSLCipherAlgorithm.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/AuthenticatedCipherAlgorithm.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Digest/DigestAlgorithm.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Random/CryptoRandom.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/Cipher.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/AuthenticatedCipher.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Cipher/OpenSSLStreamCipher.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Utilities/CryptoError.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Utilities/Exports.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Digest/Digest.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/BCrypt/BCryptDigest.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/RSA/RSAKey.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOOpenSSL.framework/Modules/NIOOpenSSL.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOTLS.framework/Modules/NIOTLS.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Async.framework/Modules/Async.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/COperatingSystem.framework/Modules/COperatingSystem.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Random.framework/Modules/Random.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOFoundationCompat.framework/Modules/NIOFoundationCompat.swiftmodule/x86_64.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /usr/local/Cellar/libressl/2.8.3/include/openssl/asn1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/tls1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pem2.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.8.3/include/openssl/md5.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509.h /usr/local/Cellar/libressl/2.8.3/include/openssl/sha.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dsa.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.8.3/include/openssl/rsa.h /usr/local/Cellar/libressl/2.8.3/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.8.3/include/openssl/hmac.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ec.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/cpp_magic.h /usr/local/Cellar/libressl/2.8.3/include/openssl/rand.h /usr/local/Cellar/libressl/2.8.3/include/openssl/conf.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dh.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.8.3/include/openssl/lhash.h /usr/local/Cellar/libressl/2.8.3/include/openssl/stack.h /usr/local/Cellar/libressl/2.8.3/include/openssl/safestack.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-ssl.git-6229230015178651706/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pem.h /usr/local/Cellar/libressl/2.8.3/include/openssl/bn.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIODarwin/include/c_nio_darwin.h /usr/local/Cellar/libressl/2.8.3/include/openssl/bio.h /usr/local/Cellar/libressl/2.8.3/include/openssl/crypto.h /usr/local/Cellar/libressl/2.8.3/include/openssl/srtp.h /usr/local/Cellar/libressl/2.8.3/include/openssl/evp.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.8.3/include/openssl/buffer.h /usr/local/Cellar/libressl/2.8.3/include/openssl/err.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/c-atomics.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.8.3/include/openssl/objects.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslv.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOLinux/include/c_nio_linux.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509_vfy.h /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-ssl-support.git--4437464806220867867/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-zlib-support.git-4597058737275259177/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOOpenSSL/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CCryptoOpenSSL/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/CBase32/include/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/CBcrypt/include/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/******************************************************************************* Implementation of DHT 'PutBatch' request copyright: Copyright (c) 2015-2017 sociomantic labs GmbH. All rights reserved License: Boost Software License Version 1.0. See LICENSE.txt for details. *******************************************************************************/ module dhtnode.request.PutBatchRequest; /******************************************************************************* Imports *******************************************************************************/ import ocean.transition; import Protocol = dhtproto.node.request.PutBatch; import ocean.util.log.Log; /******************************************************************************* Static module logger *******************************************************************************/ private Logger log; static this ( ) { log = Log.lookup("dhtnode.request.PutBatchRequest"); } /******************************************************************************* Request handler *******************************************************************************/ public scope class PutBatchRequest : Protocol.PutBatch { import dhtnode.node.RedistributionProcess; import dhtnode.storage.StorageEngine; import dhtnode.request.model.ConstructorMixin; import ocean.core.TypeConvert : downcast; /*************************************************************************** Used to cache storage channel current request operates on ***************************************************************************/ private StorageEngine storage_channel; /*************************************************************************** Adds this.resources and constructor to initialize it and forward arguments to base ***************************************************************************/ mixin RequestConstruction!(); /*************************************************************************** Caches requested channel ***************************************************************************/ final override protected bool prepareChannel ( cstring channel_name ) { if (!super.prepareChannel(channel_name)) return false; auto storage_channel = this.resources.storage_channels.getCreate(channel_name); this.storage_channel = downcast!(StorageEngine)(storage_channel); if (this.storage_channel is null) return false; return true; } /*************************************************************************** Verifies that this node is responsible of handling specified record key Params: key = key to check Returns: 'true' if key is allowed / accepted ***************************************************************************/ final override protected bool isAllowed ( cstring key ) { return this.resources.storage_channels.responsibleForKey(key); } /*************************************************************************** Verifies that this node is allowed to store records of given size Params: size = size to check Returns: 'true' if size is allowed ***************************************************************************/ final override protected bool isSizeAllowed ( size_t size ) { if ( !this.resources.storage_channels.sizeLimitOk(size) ) { .log.warn("Batch rejected: size limit exceeded"); return false; } if ( !redistribution_process.allowed(size) ) { .log.warn("Batch rejected: uneven redistribution"); return false; } return true; } /*************************************************************************** Tries storing record in DHT and reports success status Params: channel = channel to write record to key = record key value = record value Returns: 'true' if storing was successful ***************************************************************************/ final override protected bool putRecord ( cstring channel, cstring key, in void[] value ) { this.storage_channel.put(key, cast(cstring) value, false); this.resources.node_info.record_action_counters .increment("written", value.length); return true; } }
D
// Written in the D programming language. /** Functions that manipulate other functions. Macros: WIKI = Phobos/StdFunctional Copyright: Copyright Andrei Alexandrescu 2008 - 2009. License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: $(WEB erdani.org, Andrei Alexandrescu) Source: $(PHOBOSSRC std/_functional.d) */ /* Copyright Andrei Alexandrescu 2008 - 2009. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ module std.functional; import std.traits, std.typetuple; /** Transforms a string representing an expression into a unary function. The string must either use symbol name $(D a) as the parameter or provide the symbol via the $(D parmName) argument. If $(D fun) is not a string, $(D unaryFun) aliases itself away to $(D fun). Example: ---- alias unaryFun!("(a & 1) == 0") isEven; assert(isEven(2) && !isEven(1)); ---- */ template unaryFun(alias fun, string parmName = "a") { static if (is(typeof(fun) : string)) { import std.traits, std.typecons, std.typetuple; import std.algorithm, std.conv, std.exception, std.math, std.range, std.string; auto unaryFun(ElementType)(auto ref ElementType __a) { mixin("alias " ~ parmName ~ " = __a ;"); return mixin(fun); } } else { alias unaryFun = fun; } } /+ Undocumented, will be removed December 2014+/ deprecated("Parameter byRef is obsolete. Please call unaryFun!(fun, parmName) directly.") template unaryFun(alias fun, bool byRef, string parmName = "a") { alias unaryFun = unaryFun!(fun, parmName); } unittest { static int f1(int a) { return a + 1; } static assert(is(typeof(unaryFun!(f1)(1)) == int)); assert(unaryFun!(f1)(41) == 42); int f2(int a) { return a + 1; } static assert(is(typeof(unaryFun!(f2)(1)) == int)); assert(unaryFun!(f2)(41) == 42); assert(unaryFun!("a + 1")(41) == 42); //assert(unaryFun!("return a + 1;")(41) == 42); int num = 41; assert(unaryFun!("a + 1", true)(num) == 42); } /** Transforms a string representing an expression into a Boolean binary predicate. The string must either use symbol names $(D a) and $(D b) as the parameters or provide the symbols via the $(D parm1Name) and $(D parm2Name) arguments. If $(D fun) is not a string, $(D binaryFun) aliases itself away to $(D fun). Example: ---- alias less = binaryFun!("a < b"); assert(less(1, 2) && !less(2, 1)); alias greater = binaryFun!("a > b"); assert(!greater("1", "2") && greater("2", "1")); ---- */ template binaryFun(alias fun, string parm1Name = "a", string parm2Name = "b") { static if (is(typeof(fun) : string)) { import std.traits, std.typecons, std.typetuple; import std.algorithm, std.conv, std.exception, std.math, std.range, std.string; auto binaryFun(ElementType1, ElementType2) (auto ref ElementType1 __a, auto ref ElementType2 __b) { mixin("alias "~parm1Name~" = __a ;"); mixin("alias "~parm2Name~" = __b ;"); return mixin(fun); } } else { alias binaryFun = fun; } } unittest { alias less = binaryFun!(q{a < b}); assert(less(1, 2) && !less(2, 1)); assert(less("1", "2") && !less("2", "1")); static int f1(int a, string b) { return a + 1; } static assert(is(typeof(binaryFun!(f1)(1, "2")) == int)); assert(binaryFun!(f1)(41, "a") == 42); string f2(int a, string b) { return b ~ "2"; } static assert(is(typeof(binaryFun!(f2)(1, "1")) == string)); assert(binaryFun!(f2)(1, "4") == "42"); assert(binaryFun!("a + b")(41, 1) == 42); //@@BUG //assert(binaryFun!("return a + b;")(41, 1) == 42); } /* Predicate that returns $(D_PARAM a < b). */ //bool less(T)(T a, T b) { return a < b; } //alias less = binaryFun!(q{a < b}); /* Predicate that returns $(D_PARAM a > b). */ //alias greater = binaryFun!(q{a > b}); /* Predicate that returns $(D_PARAM a == b). */ //alias equalTo = binaryFun!(q{a == b}); /** N-ary predicate that reverses the order of arguments, e.g., given $(D pred(a, b, c)), returns $(D pred(c, b, a)). */ template reverseArgs(alias pred) { auto reverseArgs(Args...)(auto ref Args args) if (is(typeof(pred(Reverse!args)))) { return pred(Reverse!args); } } unittest { alias gt = reverseArgs!(binaryFun!("a < b")); assert(gt(2, 1) && !gt(1, 1)); int x = 42; bool xyz(int a, int b) { return a * x < b / x; } auto foo = &xyz; foo(4, 5); alias zyx = reverseArgs!(foo); assert(zyx(5, 4) == foo(4, 5)); int abc(int a, int b, int c) { return a * b + c; } alias cba = reverseArgs!abc; assert(abc(91, 17, 32) == cba(32, 17, 91)); int a(int a) { return a * 2; } alias _a = reverseArgs!a; assert(a(2) == _a(2)); int b() { return 4; } alias _b = reverseArgs!b; assert(b() == _b()); } /** Binary predicate that reverses the order of arguments, e.g., given $(D pred(a, b)), returns $(D pred(b, a)). */ template binaryReverseArgs(alias pred) { auto binaryReverseArgs(ElementType1, ElementType2) (ElementType1 a, ElementType2 b) { return pred(b, a); } } unittest { alias gt = binaryReverseArgs!(binaryFun!("a < b")); assert(gt(2, 1) && !gt(1, 1)); int x = 42; bool xyz(int a, int b) { return a * x < b / x; } auto foo = &xyz; foo(4, 5); alias zyx = binaryReverseArgs!(foo); assert(zyx(5, 4) == foo(4, 5)); } /** Negates predicate $(D pred). Example: ---- string a = " Hello, world!"; assert(find!(not!isWhite)(a) == "Hello, world!"); ---- */ template not(alias pred) { auto not(T...)(T args) if (is(typeof(!unaryFun!pred(args))) || is(typeof(!binaryFun!pred(args)))) { static if (T.length == 1) return !unaryFun!pred(args); else static if (T.length == 2) return !binaryFun!pred(args); else static assert(false, "not implemented for multiple arguments"); } } /** Partially evaluates $(D fun) by tying its first argument to a particular value. Example: ---- int fun(int a, int b) { return a + b; } alias partial!(fun, 5) fun5; assert(fun5(6) == 11); ---- Note that in most cases you'd use an alias instead of a value assignment. Using an alias allows you to partially evaluate template functions without committing to a particular type of the function. */ template partial(alias fun, alias arg) { static if (is(typeof(fun) == delegate) || is(typeof(fun) == function)) { ReturnType!fun partial(ParameterTypeTuple!fun[1..$] args2) { return fun(arg, args2); } } else { auto partial(Ts...)(Ts args2) { static if (is(typeof(fun(arg, args2)))) { return fun(arg, args2); } else { static string errormsg() { string msg = "Cannot call '" ~ fun.stringof ~ "' with arguments " ~ "(" ~ arg.stringof; foreach(T; Ts) msg ~= ", " ~ T.stringof; msg ~= ")."; return msg; } static assert(0, errormsg()); } } } } /** Deprecated alias for $(D partial), kept for backwards compatibility */ deprecated("Please use std.functional.partial instead") alias curry = partial; // tests for partially evaluating callables unittest { static int f1(int a, int b) { return a + b; } assert(partial!(f1, 5)(6) == 11); int f2(int a, int b) { return a + b; } int x = 5; assert(partial!(f2, x)(6) == 11); x = 7; assert(partial!(f2, x)(6) == 13); static assert(partial!(f2, 5)(6) == 11); auto dg = &f2; auto f3 = &partial!(dg, x); assert(f3(6) == 13); static int funOneArg(int a) { return a; } assert(partial!(funOneArg, 1)() == 1); static int funThreeArgs(int a, int b, int c) { return a + b + c; } alias funThreeArgs1 = partial!(funThreeArgs, 1); assert(funThreeArgs1(2, 3) == 6); static assert(!is(typeof(funThreeArgs1(2)))); enum xe = 5; alias fe = partial!(f2, xe); static assert(fe(6) == 11); } // tests for partially evaluating templated/overloaded callables unittest { static auto add(A, B)(A x, B y) { return x + y; } alias add5 = partial!(add, 5); assert(add5(6) == 11); static assert(!is(typeof(add5()))); static assert(!is(typeof(add5(6, 7)))); // taking address of templated partial evaluation needs explicit type auto dg = &add5!(int); assert(dg(6) == 11); int x = 5; alias addX = partial!(add, x); assert(addX(6) == 11); static struct Callable { static string opCall(string a, string b) { return a ~ b; } int opCall(int a, int b) { return a * b; } double opCall(double a, double b) { return a + b; } } Callable callable; assert(partial!(Callable, "5")("6") == "56"); assert(partial!(callable, 5)(6) == 30); assert(partial!(callable, 7.0)(3.0) == 7.0 + 3.0); static struct TCallable { auto opCall(A, B)(A a, B b) { return a + b; } } TCallable tcallable; assert(partial!(tcallable, 5)(6) == 11); static assert(!is(typeof(partial!(tcallable, "5")(6)))); static A funOneArg(A)(A a) { return a; } alias funOneArg1 = partial!(funOneArg, 1); assert(funOneArg1() == 1); static auto funThreeArgs(A, B, C)(A a, B b, C c) { return a + b + c; } alias funThreeArgs1 = partial!(funThreeArgs, 1); assert(funThreeArgs1(2, 3) == 6); static assert(!is(typeof(funThreeArgs1(1)))); // @@ dmd BUG 6600 @@ // breaks completely unrelated unittest for toDelegate // static assert(is(typeof(dg_pure_nothrow) == int delegate() pure nothrow)); version (none) { auto dg2 = &funOneArg1!(); assert(dg2() == 1); } } /** Takes multiple functions and adjoins them together. The result is a $(XREF typecons, Tuple) with one element per passed-in function. Upon invocation, the returned tuple is the adjoined results of all functions. Note: In the special case where where only a single function is provided ($(D F.length == 1)), adjoin simply aliases to the single passed function ($(D F[0])). */ template adjoin(F...) if (F.length == 1) { alias adjoin = F[0]; } /// ditto template adjoin(F...) if (F.length > 1) { auto adjoin(V...)(auto ref V a) { import std.typecons : tuple; static if (F.length == 2) { return tuple(F[0](a), F[1](a)); } else static if (F.length == 3) { return tuple(F[0](a), F[1](a), F[2](a)); } else { import std.string : format; import std.range : iota; return mixin (q{tuple(%(F[%s](a)%|, %))}.format(iota(0, F.length))); } } } /// unittest { import std.functional, std.typecons; static bool f1(int a) { return a != 0; } static int f2(int a) { return a / 2; } auto x = adjoin!(f1, f2)(5); assert(is(typeof(x) == Tuple!(bool, int))); assert(x[0] == true && x[1] == 2); } unittest { import std.typecons; static bool F1(int a) { return a != 0; } auto x1 = adjoin!(F1)(5); static int F2(int a) { return a / 2; } auto x2 = adjoin!(F1, F2)(5); assert(is(typeof(x2) == Tuple!(bool, int))); assert(x2[0] && x2[1] == 2); auto x3 = adjoin!(F1, F2, F2)(5); assert(is(typeof(x3) == Tuple!(bool, int, int))); assert(x3[0] && x3[1] == 2 && x3[2] == 2); bool F4(int a) { return a != x1; } alias eff4 = adjoin!(F4); static struct S { bool delegate(int) store; int fun() { return 42 + store(5); } } S s; s.store = (int a) { return eff4(a); }; auto x4 = s.fun(); assert(x4 == 43); } unittest { import std.typetuple : staticMap; import std.typecons : Tuple, tuple; alias funs = staticMap!(unaryFun, "a", "a * 2", "a * 3", "a * a", "-a"); alias afun = adjoin!funs; assert(afun(5) == tuple(5, 10, 15, 25, -5)); static class C{} alias IC = immutable(C); IC foo(){return typeof(return).init;} Tuple!(IC, IC, IC, IC) ret1 = adjoin!(foo, foo, foo, foo)(); static struct S{int* p;} alias IS = immutable(S); IS bar(){return typeof(return).init;} enum Tuple!(IS, IS, IS, IS) ret2 = adjoin!(bar, bar, bar, bar)(); } // /*private*/ template NaryFun(string fun, string letter, V...) // { // static if (V.length == 0) // { // enum args = ""; // } // else // { // enum args = V[0].stringof~" "~letter~"; " // ~NaryFun!(fun, [letter[0] + 1], V[1..$]).args; // enum code = args ~ "return "~fun~";"; // } // alias Result = void; // } // unittest // { // writeln(NaryFun!("a * b * 2", "a", int, double).code); // } // /** // naryFun // */ // template naryFun(string fun) // { // //NaryFun!(fun, "a", V).Result // int naryFun(V...)(V values) // { // enum string code = NaryFun!(fun, "a", V).code; // mixin(code); // } // } // unittest // { // alias test = naryFun!("a + b"); // test(1, 2); // } /** Composes passed-in functions $(D fun[0], fun[1], ...) returning a function $(D f(x)) that in turn returns $(D fun[0](fun[1](...(x)))...). Each function can be a regular functions, a delegate, or a string. Example: ---- // First split a string in whitespace-separated tokens and then // convert each token into an integer assert(compose!(map!(to!(int)), split)("1 2 3") == [1, 2, 3]); ---- */ template compose(fun...) { static if (fun.length == 1) { alias compose = unaryFun!(fun[0]); } else static if (fun.length == 2) { // starch alias fun0 = unaryFun!(fun[0]); alias fun1 = unaryFun!(fun[1]); // protein: the core composition operation typeof({ E a; return fun0(fun1(a)); }()) compose(E)(E a) { return fun0(fun1(a)); } } else { // protein: assembling operations alias compose = compose!(fun[0], compose!(fun[1 .. $])); } } /** Pipes functions in sequence. Offers the same functionality as $(D compose), but with functions specified in reverse order. This may lead to more readable code in some situation because the order of execution is the same as lexical order. Example: ---- // Read an entire text file, split the resulting string in // whitespace-separated tokens, and then convert each token into an // integer int[] a = pipe!(readText, split, map!(to!(int)))("file.txt"); ---- */ alias pipe(fun...) = compose!(Reverse!(fun)); unittest { import std.conv : to; string foo(int a) { return to!(string)(a); } int bar(string a) { return to!(int)(a) + 1; } double baz(int a) { return a + 0.5; } assert(compose!(baz, bar, foo)(1) == 2.5); assert(pipe!(foo, bar, baz)(1) == 2.5); assert(compose!(baz, `to!(int)(a) + 1`, foo)(1) == 2.5); assert(compose!(baz, bar)("1"[]) == 2.5); assert(compose!(baz, bar)("1") == 2.5); // @@@BUG@@@ //assert(compose!(`a + 0.5`, `to!(int)(a) + 1`, foo)(1) == 2.5); } /** * $(LUCKY Memoizes) a function so as to avoid repeated * computation. The memoization structure is a hash table keyed by a * tuple of the function's arguments. There is a speed gain if the * function is repeatedly called with the same arguments and is more * expensive than a hash table lookup. For more information on memoization, refer to $(WEB docs.google.com/viewer?url=http%3A%2F%2Fhop.perl.plover.com%2Fbook%2Fpdf%2F03CachingAndMemoization.pdf, this book chapter). Example: ---- double transmogrify(int a, string b) { ... expensive computation ... } alias fastTransmogrify = memoize!transmogrify; unittest { auto slow = transmogrify(2, "hello"); auto fast = fastTransmogrify(2, "hello"); assert(slow == fast); } ---- Technically the memoized function should be pure because $(D memoize) assumes it will always return the same result for a given tuple of arguments. However, $(D memoize) does not enforce that because sometimes it is useful to memoize an impure function, too. To _memoize a recursive function, simply insert the memoized call in lieu of the plain recursive call. For example, to transform the exponential-time Fibonacci implementation into a linear-time computation: Example: ---- ulong fib(ulong n) { alias mfib = memoize!fib; return n < 2 ? 1 : mfib(n - 2) + mfib(n - 1); } ... assert(fib(10) == 89); ---- To improve the speed of the factorial function, Example: ---- ulong fact(ulong n) { alias mfact = memoize!fact; return n < 2 ? 1 : n * mfact(n - 1); } ... assert(fact(10) == 3628800); ---- This memoizes all values of $(D fact) up to the largest argument. To only cache the final result, move $(D memoize) outside the function as shown below. Example: ---- ulong factImpl(ulong n) { return n < 2 ? 1 : n * factImpl(n - 1); } alias fact = memoize!factImpl; ... assert(fact(10) == 3628800); ---- The $(D maxSize) parameter is a cutoff for the cache size. If upon a miss the length of the hash table is found to be $(D maxSize), the table is simply cleared. Example: ---- // Memoize no more than 128 values of transmogrify alias fastTransmogrify = memoize!(transmogrify, 128); ---- */ template memoize(alias fun, uint maxSize = uint.max) { private alias Args = ParameterTypeTuple!fun; ReturnType!fun memoize(Args args) { import std.typecons : Tuple, tuple; static ReturnType!fun[Tuple!Args] memo; auto t = Tuple!Args(args); auto p = t in memo; if (p) return *p; static if (maxSize != uint.max) { if (memo.length >= maxSize) memo = null; } auto r = fun(args); //writeln("Inserting result ", typeof(r).stringof, "(", r, ") for parameters ", t); memo[t] = r; return r; } } unittest { import core.math; alias msqrt = memoize!(function double(double x) { return sqrt(x); }); auto y = msqrt(2.0); assert(y == msqrt(2.0)); y = msqrt(4.0); assert(y == sqrt(4.0)); // alias mrgb2cmyk = memoize!rgb2cmyk; // auto z = mrgb2cmyk([43, 56, 76]); // assert(z == mrgb2cmyk([43, 56, 76])); //alias mfib = memoize!fib; static ulong fib(ulong n) { alias mfib = memoize!fib; return n < 2 ? 1 : mfib(n - 2) + mfib(n - 1); } auto z = fib(10); assert(z == 89); static ulong fact(ulong n) { alias mfact = memoize!fact; return n < 2 ? 1 : n * mfact(n - 1); } assert(fact(10) == 3628800); // Issue 12568 static uint len2(const string s) { // Error alias mLen2 = memoize!len2; if (s.length == 0) return 0; else return 1 + mLen2(s[1 .. $]); } } private struct DelegateFaker(F) { import std.typecons; // for @safe static F castToF(THIS)(THIS x) @trusted { return cast(F) x; } /* * What all the stuff below does is this: *-------------------- * struct DelegateFaker(F) { * extern(linkage) * [ref] ReturnType!F doIt(ParameterTypeTuple!F args) [@attributes] * { * auto fp = cast(F) &this; * return fp(args); * } * } *-------------------- */ // We will use MemberFunctionGenerator in std.typecons. This is a policy // configuration for generating the doIt(). template GeneratingPolicy() { // Inform the genereator that we only have type information. enum WITHOUT_SYMBOL = true; // Generate the function body of doIt(). template generateFunctionBody(unused...) { enum generateFunctionBody = // [ref] ReturnType doIt(ParameterTypeTuple args) @attributes q{ // When this function gets called, the this pointer isn't // really a this pointer (no instance even really exists), but // a function pointer that points to the function to be called. // Cast it to the correct type and call it. auto fp = castToF(&this); return fp(args); }; } } // Type information used by the generated code. alias FuncInfo_doIt = FuncInfo!(F); // Generate the member function doIt(). mixin( std.typecons.MemberFunctionGenerator!(GeneratingPolicy!()) .generateFunction!("FuncInfo_doIt", "doIt", F) ); } /** * Convert a callable to a delegate with the same parameter list and * return type, avoiding heap allocations and use of auxiliary storage. * * Examples: * ---- * void doStuff() { * writeln("Hello, world."); * } * * void runDelegate(void delegate() myDelegate) { * myDelegate(); * } * * auto delegateToPass = toDelegate(&doStuff); * runDelegate(delegateToPass); // Calls doStuff, prints "Hello, world." * ---- * * BUGS: * $(UL * $(LI Does not work with $(D @safe) functions.) * $(LI Ignores C-style / D-style variadic arguments.) * ) */ auto toDelegate(F)(auto ref F fp) if (isCallable!(F)) { static if (is(F == delegate)) { return fp; } else static if (is(typeof(&F.opCall) == delegate) || (is(typeof(&F.opCall) V : V*) && is(V == function))) { return toDelegate(&fp.opCall); } else { alias DelType = typeof(&(new DelegateFaker!(F)).doIt); static struct DelegateFields { union { DelType del; //pragma(msg, typeof(del)); struct { void* contextPtr; void* funcPtr; } } } // fp is stored in the returned delegate's context pointer. // The returned delegate's function pointer points to // DelegateFaker.doIt. DelegateFields df; df.contextPtr = cast(void*) fp; DelegateFaker!(F) dummy; auto dummyDel = &dummy.doIt; df.funcPtr = dummyDel.funcptr; return df.del; } } unittest { static int inc(ref uint num) { num++; return 8675309; } uint myNum = 0; auto incMyNumDel = toDelegate(&inc); static assert(is(typeof(incMyNumDel) == int delegate(ref uint))); auto returnVal = incMyNumDel(myNum); assert(myNum == 1); interface I { int opCall(); } class C: I { int opCall() { inc(myNum); return myNum;} } auto c = new C; auto i = cast(I) c; auto getvalc = toDelegate(c); assert(getvalc() == 2); auto getvali = toDelegate(i); assert(getvali() == 3); struct S1 { int opCall() { inc(myNum); return myNum; } } static assert(!is(typeof(&s1.opCall) == delegate)); S1 s1; auto getvals1 = toDelegate(s1); assert(getvals1() == 4); struct S2 { static int opCall() { return 123456; } } static assert(!is(typeof(&S2.opCall) == delegate)); S2 s2; auto getvals2 =&S2.opCall; assert(getvals2() == 123456); /* test for attributes */ { static int refvar = 0xDeadFace; static ref int func_ref() { return refvar; } static int func_pure() pure { return 1; } static int func_nothrow() nothrow { return 2; } static int func_property() @property { return 3; } static int func_safe() @safe { return 4; } static int func_trusted() @trusted { return 5; } static int func_system() @system { return 6; } static int func_pure_nothrow() pure nothrow { return 7; } static int func_pure_nothrow_safe() pure @safe { return 8; } auto dg_ref = toDelegate(&func_ref); auto dg_pure = toDelegate(&func_pure); auto dg_nothrow = toDelegate(&func_nothrow); auto dg_property = toDelegate(&func_property); auto dg_safe = toDelegate(&func_safe); auto dg_trusted = toDelegate(&func_trusted); auto dg_system = toDelegate(&func_system); auto dg_pure_nothrow = toDelegate(&func_pure_nothrow); auto dg_pure_nothrow_safe = toDelegate(&func_pure_nothrow_safe); //static assert(is(typeof(dg_ref) == ref int delegate())); // [BUG@DMD] static assert(is(typeof(dg_pure) == int delegate() pure)); static assert(is(typeof(dg_nothrow) == int delegate() nothrow)); static assert(is(typeof(dg_property) == int delegate() @property)); //static assert(is(typeof(dg_safe) == int delegate() @safe)); static assert(is(typeof(dg_trusted) == int delegate() @trusted)); static assert(is(typeof(dg_system) == int delegate() @system)); static assert(is(typeof(dg_pure_nothrow) == int delegate() pure nothrow)); //static assert(is(typeof(dg_pure_nothrow_safe) == int delegate() @safe pure nothrow)); assert(dg_ref() == refvar); assert(dg_pure() == 1); assert(dg_nothrow() == 2); assert(dg_property() == 3); //assert(dg_safe() == 4); assert(dg_trusted() == 5); assert(dg_system() == 6); assert(dg_pure_nothrow() == 7); //assert(dg_pure_nothrow_safe() == 8); } /* test for linkage */ { struct S { extern(C) static void xtrnC() {} extern(D) static void xtrnD() {} } auto dg_xtrnC = toDelegate(&S.xtrnC); auto dg_xtrnD = toDelegate(&S.xtrnD); static assert(! is(typeof(dg_xtrnC) == typeof(dg_xtrnD))); } }
D
/******************************************************************************* A label that can be clicked on. Authors: ArcLib team, see AUTHORS file Maintainer: Clay Smith (clayasaurus at gmail dot com) License: zlib/libpng license: $(LICENSE) Copyright: ArcLib team Description: Simply is a single label that can be used in GUI's. Examples: -------------------- import arc.x.gui.widgets.label; Label label = new Label(); label.setFont(font); label.setText("Hello"); while (!arc.input.keyDown(ARC_QUIT)) { arc.input.process(); arc.window.clear(); label.setPosition(arc.input.mouseX, arc.input.mouseY); label.process(); label.draw(); arc.window.swap(); } -------------------- *******************************************************************************/ module arc.x.gui.widgets.label; import arc.types, arc.math.point, arc.font, arc.x.gui.widgets.widget, arc.x.gui.themes.theme; /// Label widget class Label : Widget { public: /// draw label with parent x and y position void draw(Point parentPos = Point(0,0)) { arc.x.gui.themes.theme.theme.drawLabel(action, focus, position + parentPos, size, attr); font.draw(text, parentPos + fontAlign, fontColor); } /// set font and set widget size correctly void setFont(Font argFont) { font = argFont; setSize(Size(font.getWidth(text), font.getHeight)); } }
D
/Users/scott/projects/wasm_membrane/host/rust/target/debug/deps/cfg_if-4c840386b43c02da.rmeta: /Users/scott/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-1.0.0/src/lib.rs /Users/scott/projects/wasm_membrane/host/rust/target/debug/deps/libcfg_if-4c840386b43c02da.rlib: /Users/scott/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-1.0.0/src/lib.rs /Users/scott/projects/wasm_membrane/host/rust/target/debug/deps/cfg_if-4c840386b43c02da.d: /Users/scott/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-1.0.0/src/lib.rs /Users/scott/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-1.0.0/src/lib.rs:
D
module otya.smilebasic.token; import otya.smilebasic.type; enum TokenType { Unknown, Integer, Double, String, Plus, Minus, Mul, Div, Mod, Or, And, Xor, Not, Print, If, LParen, RParen, Iden, Comma, Colon, Semicolon, NewLine, Assign, Label, Goto, Then, Else, Endif, For, Next, Equal, NotEqual, Less,//< Greater,//> LessEqual, GreaterEqual, LeftShift,//<< RightShift,//>> LogicalNot,//! LogicalAnd,//&& LogicalOr,//|| IntDiv,//DIV Gosub, Return, End, Break, Continue, Var, LBracket,//[ RBracket,//] Def, Out, While, WEnd, Inc, Dec, Data, Read, Restore, On, Input, True, False, } struct Token { TokenType type; Value value; this(TokenType t, Value v) { type = t; value = v; } this(TokenType t) { type = t; } }
D
a line generated by a point on a circle rolling along a straight line resembling a circle
D
/afs/cern.ch/user/a/abrennan/testarea/CxAODframework/RootCoreBin/obj/x86_64-slc6-gcc48-opt/CxAODTools/obj/DerivEffProvider.o /afs/cern.ch/user/a/abrennan/testarea/CxAODframework/RootCoreBin/obj/x86_64-slc6-gcc48-opt/CxAODTools/obj/DerivEffProvider.d : /afs/cern.ch/user/a/abrennan/testarea/CxAODframework/CxAODTools/Root/DerivEffProvider.cxx /afs/cern.ch/user/a/abrennan/testarea/CxAODframework/CxAODTools/CxAODTools/DerivEffProvider.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TFile.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TDirectoryFile.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TDirectory.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TNamed.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TObject.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/Rtypes.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/RConfig.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/RVersion.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/DllImport.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/Rtypeinfo.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/snprintf.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/strlcpy.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TGenericClassInfo.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TSchemaHelper.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TStorage.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TVersionCheck.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/Riosfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TBuffer.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TString.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TMathBase.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TList.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TSeqCollection.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TCollection.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TIterator.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TDatime.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TUUID.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TMap.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/THashTable.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TUrl.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TString.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TH1.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TAxis.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TAttAxis.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TArrayD.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TArray.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TAttLine.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TAttFill.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TAttMarker.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TArrayC.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TArrayS.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TArrayI.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TArrayF.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/Foption.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TVectorFfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TVectorDfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TFitResultPtr.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TKey.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TSystem.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TInetAddress.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TTimer.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TSysEvtHandler.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TQObject.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TTime.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/ThreadLocalStorage.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/RConfigure.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/TRegexp.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.24-x86_64-slc6-gcc48-opt/include/Match.h
D
module dcompute.std; version(LDC_DCompute) {} else { static assert(false, "Need to use a DCompute enabled compiler."); } public import dcompute.std.index;
D
/** * Benchmark bulk filling of AA. * * Copyright: Copyright Martin Nowak 2011 - 2011. * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Authors: Martin Nowak */ import std.conv, std.meta, std.random; version (VERBOSE) import std.datetime, std.stdio; alias ValueTuple = AliasSeq!(void[0], uint, void*, Object, ubyte[16], ubyte[64]); size_t Size = 2 ^^ 16; size_t trot; void runTest(V)(ref V v) { version (VERBOSE) { StopWatch sw; writef("%15-s %8u", V.stringof, Size / V.sizeof); void start() { sw.reset; sw.start; } void stop() { sw.stop; writef(" %5u.%03u", sw.peek.seconds, sw.peek.msecs % 1000); } } else { static void start() {} static void stop() {} } V[size_t] aa; start(); foreach(k; 0 .. Size) { aa[k] = v; } stop(); aa.destroy(); start(); foreach_reverse(k; 0 .. Size) { aa[k] = v; } stop(); aa.destroy(); start(); foreach(ref k; 0 .. trot * Size) { aa[k] = v; k += trot - 1; } stop(); aa.destroy(); start(); foreach_reverse(ref k; 0 .. trot * Size) { k -= trot - 1; aa[k] = v; } stop(); aa.destroy(); version (VERBOSE) writeln(); } void main(string[] args) { trot = 7; version (VERBOSE) { writefln("==================== Bulk Test ===================="); writefln("Filling %s KiB, times in s.", Size/1024); writefln("Key step %27d | %7d | %7d | %7d", 1, -1, cast(int)trot, -cast(int)trot); writefln("%15-s | %8s | %7s | %7s | %7s | %7s", "Type", "num", "step", "revstep", "trot", "revtrot"); } ValueTuple valTuple; foreach(v; valTuple) runTest(v); version (VERBOSE) { writefln("==================== Test Done ===================="); } }
D
/Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Utilities/AnyResponse.swift.o : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/FileIO.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionData.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Thread.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/URLEncoded.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Deprecated.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/ServeCommand.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/RoutesCommand.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/BootCommand.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Method.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/ResponseCodable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/RequestCodable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Middleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Middleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/FileMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/DateMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Response.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/AnyResponse.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/NIOServerConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionsConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/HTTPMethod+String.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Path.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Request+Session.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Session.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Application.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Function.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/VaporProvider.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Responder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/BasicResponder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/ApplicationResponder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/PlaintextEncoder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/ParametersContainer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentContainer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/QueryContainer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/EngineRouter.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/Server.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/NIOServer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/RunningServer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Error.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Logging/Logger+LogError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Sessions.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/MemorySessions.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentCoders.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/HTTPStatus.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Redirect.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/SingleValueGet.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/Config+Default.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/Services+Default.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Client/Client.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Client/FoundationClient.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Content.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/Request.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Vapor+View.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOHTTP1.swiftmodule /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/NIOOpenSSL.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/HTTP.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOTLS.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/Command.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Console.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/Logging.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/URLEncodedForm.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Validation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/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 /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/WebSocket.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOWebSocket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/TemplateKit.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/asn1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/tls1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pem2.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.8.3/include/openssl/md5.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509.h /usr/local/Cellar/libressl/2.8.3/include/openssl/sha.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dsa.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.8.3/include/openssl/rsa.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/2.8.3/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.8.3/include/openssl/hmac.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ec.h /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 /usr/local/Cellar/libressl/2.8.3/include/openssl/rand.h /usr/local/Cellar/libressl/2.8.3/include/openssl/conf.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dh.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.8.3/include/openssl/lhash.h /usr/local/Cellar/libressl/2.8.3/include/openssl/stack.h /usr/local/Cellar/libressl/2.8.3/include/openssl/safestack.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/crypto.git-7980259129511365902/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pem.h /usr/local/Cellar/libressl/2.8.3/include/openssl/bn.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.8.3/include/openssl/bio.h /usr/local/Cellar/libressl/2.8.3/include/openssl/crypto.h /usr/local/Cellar/libressl/2.8.3/include/openssl/srtp.h /usr/local/Cellar/libressl/2.8.3/include/openssl/evp.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.8.3/include/openssl/buffer.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.8.3/include/openssl/err.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.8.3/include/openssl/objects.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslv.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509_vfy.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-ssl-support.git--2359138821295600615/module.modulemap /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 /Users/godemodegame/Desktop/ATMApp/.build/checkouts/crypto.git-7980259129511365902/Sources/CBase32/include/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/checkouts/crypto.git-7980259129511365902/Sources/CBcrypt/include/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/Vapor.build/AnyResponse~partial.swiftmodule : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/FileIO.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionData.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Thread.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/URLEncoded.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Deprecated.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/ServeCommand.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/RoutesCommand.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/BootCommand.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Method.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/ResponseCodable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/RequestCodable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Middleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Middleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/FileMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/DateMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Response.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/AnyResponse.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/NIOServerConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionsConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/HTTPMethod+String.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Path.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Request+Session.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Session.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Application.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Function.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/VaporProvider.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Responder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/BasicResponder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/ApplicationResponder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/PlaintextEncoder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/ParametersContainer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentContainer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/QueryContainer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/EngineRouter.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/Server.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/NIOServer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/RunningServer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Error.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Logging/Logger+LogError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Sessions.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/MemorySessions.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentCoders.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/HTTPStatus.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Redirect.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/SingleValueGet.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/Config+Default.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/Services+Default.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Client/Client.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Client/FoundationClient.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Content.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/Request.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Vapor+View.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOHTTP1.swiftmodule /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/NIOOpenSSL.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/HTTP.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOTLS.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/Command.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Console.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/Logging.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/URLEncodedForm.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Validation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/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 /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/WebSocket.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOWebSocket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/TemplateKit.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/asn1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/tls1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pem2.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.8.3/include/openssl/md5.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509.h /usr/local/Cellar/libressl/2.8.3/include/openssl/sha.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dsa.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.8.3/include/openssl/rsa.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/2.8.3/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.8.3/include/openssl/hmac.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ec.h /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 /usr/local/Cellar/libressl/2.8.3/include/openssl/rand.h /usr/local/Cellar/libressl/2.8.3/include/openssl/conf.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dh.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.8.3/include/openssl/lhash.h /usr/local/Cellar/libressl/2.8.3/include/openssl/stack.h /usr/local/Cellar/libressl/2.8.3/include/openssl/safestack.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/crypto.git-7980259129511365902/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pem.h /usr/local/Cellar/libressl/2.8.3/include/openssl/bn.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.8.3/include/openssl/bio.h /usr/local/Cellar/libressl/2.8.3/include/openssl/crypto.h /usr/local/Cellar/libressl/2.8.3/include/openssl/srtp.h /usr/local/Cellar/libressl/2.8.3/include/openssl/evp.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.8.3/include/openssl/buffer.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.8.3/include/openssl/err.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.8.3/include/openssl/objects.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslv.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509_vfy.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-ssl-support.git--2359138821295600615/module.modulemap /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 /Users/godemodegame/Desktop/ATMApp/.build/checkouts/crypto.git-7980259129511365902/Sources/CBase32/include/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/checkouts/crypto.git-7980259129511365902/Sources/CBcrypt/include/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/Vapor.build/AnyResponse~partial.swiftdoc : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/FileIO.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionData.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Thread.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/URLEncoded.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Deprecated.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/ServeCommand.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/RoutesCommand.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/BootCommand.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Method.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/ResponseCodable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/RequestCodable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Middleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Middleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/FileMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/DateMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Response.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/AnyResponse.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/NIOServerConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionsConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/HTTPMethod+String.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Path.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Request+Session.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Session.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Application.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Function.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/VaporProvider.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Responder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/BasicResponder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/ApplicationResponder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/PlaintextEncoder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/ParametersContainer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentContainer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/QueryContainer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/EngineRouter.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/Server.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/NIOServer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/RunningServer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Error.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Logging/Logger+LogError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Sessions.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/MemorySessions.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentCoders.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/HTTPStatus.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Redirect.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/SingleValueGet.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/Config+Default.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/Services+Default.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Client/Client.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Client/FoundationClient.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Content.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/Request.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Vapor+View.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOHTTP1.swiftmodule /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/NIOOpenSSL.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/HTTP.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOTLS.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/Command.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Console.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/Logging.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/URLEncodedForm.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Validation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/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 /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/WebSocket.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOWebSocket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/TemplateKit.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/asn1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/tls1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pem2.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.8.3/include/openssl/md5.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509.h /usr/local/Cellar/libressl/2.8.3/include/openssl/sha.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dsa.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.8.3/include/openssl/rsa.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/2.8.3/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.8.3/include/openssl/hmac.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ec.h /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 /usr/local/Cellar/libressl/2.8.3/include/openssl/rand.h /usr/local/Cellar/libressl/2.8.3/include/openssl/conf.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.8.3/include/openssl/dh.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.8.3/include/openssl/lhash.h /usr/local/Cellar/libressl/2.8.3/include/openssl/stack.h /usr/local/Cellar/libressl/2.8.3/include/openssl/safestack.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ssl.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/crypto.git-7980259129511365902/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.8.3/include/openssl/pem.h /usr/local/Cellar/libressl/2.8.3/include/openssl/bn.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.8.3/include/openssl/bio.h /usr/local/Cellar/libressl/2.8.3/include/openssl/crypto.h /usr/local/Cellar/libressl/2.8.3/include/openssl/srtp.h /usr/local/Cellar/libressl/2.8.3/include/openssl/evp.h /usr/local/Cellar/libressl/2.8.3/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.8.3/include/openssl/buffer.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.8.3/include/openssl/err.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.8.3/include/openssl/objects.h /usr/local/Cellar/libressl/2.8.3/include/openssl/opensslv.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.8.3/include/openssl/x509_vfy.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-ssl-support.git--2359138821295600615/module.modulemap /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 /Users/godemodegame/Desktop/ATMApp/.build/checkouts/crypto.git-7980259129511365902/Sources/CBase32/include/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/checkouts/crypto.git-7980259129511365902/Sources/CBcrypt/include/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
prototype Mst_Default_Lurker(C_Npc) { name[0] = "Topielec"; guild = GIL_LURKER; aivar[AIV_IMPORTANT] = ID_LURKER; level = 17; attribute[ATR_STRENGTH] = 50; attribute[ATR_DEXTERITY] = 50; attribute[ATR_HITPOINTS_MAX] = 90; attribute[ATR_HITPOINTS] = 90; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; protection[PROT_BLUNT] = 50; protection[PROT_EDGE] = 50; protection[PROT_POINT] = 20; protection[PROT_FIRE] = 50; protection[PROT_FLY] = 0; protection[PROT_MAGIC] = 0; damagetype = DAM_EDGE; fight_tactic = FAI_LURKER; senses = SENSE_HEAR | SENSE_SEE | SENSE_SMELL; senses_range = 3000; aivar[AIV_FINDABLE] = HUNTER; aivar[AIV_PCISSTRONGER] = 1400; aivar[AIV_BEENATTACKED] = 1300; aivar[AIV_HIGHWAYMEN] = 700; aivar[AIV_HAS_ERPRESSED] = 5; aivar[AIV_BEGGAR] = 10; aivar[AIV_OBSERVEINTRUDER] = TRUE; start_aistate = ZS_MM_AllScheduler; aivar[AIV_Trigger3] = OnlyRoutine; }; func void Set_Lurker_Visuals() { Mdl_SetVisual(self,"Lurker.mds"); Mdl_SetVisualBody(self,"Lur_Body",DEFAULT,DEFAULT,"",DEFAULT,DEFAULT,-1); }; instance Lurker(Mst_Default_Lurker) { Set_Lurker_Visuals(); Npc_SetToFistMode(self); }; instance DamLurker(Mst_Default_Lurker) { name[0] = "Topielec spod tamy"; id = mid_damlurker; level = 20; Set_Lurker_Visuals(); Npc_SetToFistMode(self); CreateInvItem(self,ItAt_DamLurker_01); };
D
/* * $Id: gl.d,v 1.1.1.1 2005/06/18 00:46:00 kenta Exp $ * * Copyright 2004 Kenta Cho. Some rights reserved. */ module abagames.util.support.gl; version (Android) { private import derelict.gles.egl; public import derelict.gles.gles2; private import derelict.gles.ext2; public enum usingGLES = true; } else { public import derelict.opengl3.gl; public enum usingGLES = false; } public void loadGL() { version (Android) { DerelictEGL.load(); DerelictGLES2.load(); } else { DerelictGL3.load(); } } public void reloadGL() { version (Android) { DerelictGLES2.reload(); if (!GL_OES_vertex_array_object) { throw new Exception("error: required GLES extension GL_OES_vertex_array_object not supported"); } } else { DerelictGL3.reload(); } } version (Android) { public void glGenVertexArrays(GLsizei n, GLuint* arrays) { glGenVertexArraysOES(n, arrays); } public void glBindVertexArray(GLuint array) { glBindVertexArrayOES(array); } public void glDeleteVertexArrays(GLsizei n, GLuint* arrays) { glDeleteVertexArraysOES(n, arrays); } } public void vertexAttribPointer(GLuint index, GLint size, GLsizei stride, GLsizei offset) { glVertexAttribPointer(index, size, GL_FLOAT, GL_FALSE, cast(GLsizei)(stride * float.sizeof), cast(const(void*))(offset * float.sizeof)); }
D
/Users/Leex/TableView_Test/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/AsSingle.o : /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Reactive.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Errors.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/AtomicInt.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Event.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Leex/TableView_Test/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Leex/TableView_Test/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/Leex/TableView_Test/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/AsSingle~partial.swiftmodule : /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Reactive.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Errors.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/AtomicInt.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Event.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Leex/TableView_Test/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Leex/TableView_Test/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/Leex/TableView_Test/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/AsSingle~partial.swiftdoc : /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Reactive.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Errors.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/AtomicInt.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Event.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Leex/TableView_Test/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Leex/TableView_Test/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
module nmap; import std.algorithm; import std.typetuple: allSatisfy; import acceptingtuple; // Very easy to do, now: auto nmap(alias fun, R...)(R ranges) if (allSatisfy!(isInputRange,R)) { return map!(tuplify!fun)(zip(ranges)); }
D
capable of being verified capable of being tested (verified or falsified) by experiment or observation
D
/home/pi/dev/huePI/ledtest/target/debug/build/nix-e2f48aa519c75846/build_script_build-e2f48aa519c75846: /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.13.1/build.rs /home/pi/dev/huePI/ledtest/target/debug/build/nix-e2f48aa519c75846/build_script_build-e2f48aa519c75846.d: /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.13.1/build.rs /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.13.1/build.rs:
D
module dinu.dinu; import core.thread, std.algorithm, std.conv, std.stdio, std.string, std.path, std.file, std.datetime, x11.Xlib, dinu.commandBuilder, dinu.xclient, dinu.resultWindow, dinu.cli; __gshared: Options options; CommandBuilder commandBuilder; bool runProgram = true; void delegate() close; struct Options { @("-h") bool help; @("-x") int x; @("-y") int y; @("-w") int w; @("-s") int screen = 0; @("-l") int lines = 15; @("-fn") string font = "Monospace-10"; @("-c") string configPath = "~/.dinu/default"; @("-e") string execute; @("-a") double animations = 1; @("-cb") string colorBg = "#252525"; @("-ci") string colorInput = "#ffffff"; @("-cib") string colorInputBg = "#454545"; @("-co") string colorOutput = "#eeeeee"; @("-cob") string colorOutputBg = "#111111"; @("-ce") string colorError = "#ff7777"; @("-cs") string colorSelected = "#005577"; @("-ch") string colorHint = "#999999"; @("-chb") string colorHintBg = "#444444"; @("-cd") string colorDir = "#bbeebb"; @("-cf") string colorFile = "#eeeeee"; @("-ce") string colorExec = "#bbbbff"; @("-cde") string colorDesktop = "#bdddff"; } void main(string[] args){ try { options.fill(args); if(options.help){ options.usage; return; } try{ options.configPath = options.configPath.expandTilde; if(!options.configPath.dirName.exists) mkdirRecurse(options.configPath.dirName); if(options.configPath.exists) chdir(options.configPath.expandTilde.readText.strip); }catch(Exception e){ writeln(e); } windowLoop; }catch(Throwable t){ writeln(t); } } void windowLoop(){ commandBuilder = new CommandBuilder; auto windowMain = new XClient; windowMain.draw; auto windowResults = new ResultWindow; windowResults.draw; windowMain.resultWindow = windowResults; close = { windowMain.destroy; windowResults.destroy; runProgram = false; }; if(options.execute.length){ commandBuilder.text = options.execute; commandBuilder.run; } scope(exit) close(); long last = Clock.currSystemTick.msecs; while(windowMain.active){ windowMain.handleEvents; windowMain.draw; windowMain.update; if(runProgram){ windowResults.handleEvents; windowResults.update(windowMain); windowResults.draw; } auto curr = Clock.currSystemTick.msecs; last = curr; Thread.sleep((15 - max(0, min(15, curr-last))).msecs); } }
D
//https://rosettacode.org/wiki/P-value_correction import std.algorithm; import std.conv; import std.math; import std.stdio; import std.string; int[] seqLen(int start, int end) { int[] result; if (start == end) { result.length = end+1; for (int i; i<result.length; i++) { result[i] = i+1; } } else if (start < end) { result.length = end - start + 1; for (int i; i<result.length; i++) { result[i] = start+i; } } else { result.length = start - end + 1; for (int i; i<result.length; i++) { result[i] = start-i; } } return result; } int[] order(double[] array, bool decreasing) { int size = array.length; int[] idx; idx.length = size; double[] baseArr; baseArr.length = size; for (int i; i<size; i++) { baseArr[i] = array[i]; idx[i] = i; } if (!decreasing) { alias comp = (a,b) => baseArr[a] < baseArr[b]; idx.sort!comp; } else { alias comp = (a,b) => baseArr[b] < baseArr[a]; idx.sort!comp; } return idx; } double[] cummin(double[] array) { int size = array.length; if (size < 1) throw new Exception("cummin requires at least one element"); double[] output; output.length = size; auto cumulativeMin = array[0]; foreach (i; 0..size) { if (array[i] < cumulativeMin) cumulativeMin = array[i]; output[i] = cumulativeMin; } return output; } double[] cummax(double[] array) { auto size = array.length; if (size < 1) throw new Exception("cummax requires at least one element"); double[] output; output.length = size; auto cumulativeMax = array[0]; foreach (i; 0..size) { if (array[i] > cumulativeMax) cumulativeMax = array[i]; output[i] = cumulativeMax; } return output; } double[] pminx(double[] array, double x) { auto size = array.length; if (size < 1) throw new Exception("pmin requires at least one element"); double[] result; result.length = size; foreach (i; 0..size) { if (array[i] < x) { result[i] = array[i]; } else { result[i] = x; } } return result; } void doubleSay(double[] array) { writef("[ 1] %e", array[0]); foreach (i; 1..array.length) { writef(" %.10f", array[i]); if ((i+1) % 5 == 0) writef("\n[%2d]", i+1); } writeln; } auto toArray(T,U)(U[] array) { T[] result; result.length = array.length; foreach(i; 0..array.length) { result[i] = to!T(array[i]); } return result; } double[] pAdjust(double[] pvalues, string str) { auto size = pvalues.length; if (size < 1) throw new Exception("pAdjust requires at least one element"); int type = str.toLower.predSwitch!"a==b"( "bh", 0, "fdr", 0, "by", 1, "bonferroni", 2, "hochberg", 3, "holm", 4, "hommel", 5, { throw new Exception(text("'",str,"' doesn't match any accepted FDR types")); }() ); if (type == 2) { // Bonferroni method double[] result; result.length = size; foreach (i; 0..size) { auto b = pvalues[i] * size; if (b >= 1) { result[i] = 1; } else if (0 <= b && b < 1) { result[i] = b; } else { throw new Exception(text(b," is outside [0, 1)")); } } return result; } else if (type == 4) { // Holm method auto o = order(pvalues, false); auto o2Double = toArray!(double,int)(o); double[] cummaxInput; cummaxInput.length = size; foreach (i; 0..size) { cummaxInput[i] = (size-i) * pvalues[o[i]]; } auto ro = order(o2Double, false); auto cummaxOutput = cummax(cummaxInput); auto pmin = pminx(cummaxOutput, 1.0); double[] result; result.length = size; foreach (i; 0..size) { result[i] = pmin[ro[i]]; } return result; } else if (type == 5) { auto indices = seqLen(size, size); auto o = order(pvalues, false); double[] p; p.length = size; foreach (i; 0..size) { p[i] = pvalues[o[i]]; } auto o2Double = toArray!double(o); auto ro = order(o2Double, false); double[] q; q.length = size; double[] pa; pa.length = size; double[] npi; npi.length = size; foreach (i; 0..size) { npi[i] = p[i] * size / indices[i]; } auto min_ = reduce!min(npi); q[] = min_; pa[] = min_; foreach_reverse (j; 2..size) { auto ij = seqLen(1, size - j + 1); foreach (i; 0..size-j+1) { ij[i]--; } auto i2Length = j-1; int[] i2; i2.length = i2Length; foreach(i; 0..i2Length) { i2[i] = size-j+2+i-1; } auto pi2Length = i2Length; double q1 = j*p[i2[0]] / 2.0; foreach (i; 1..pi2Length) { auto temp_q1 = p[i2[i]] * j / (2.0 + i); if (temp_q1 < q1) q1 = temp_q1; } foreach (i; 0..size-j+1) { q[ij[i]] = min(p[ij[i]] * j, q1); } foreach(i; 0..i2Length) { q[i2[i]] = q[size-j]; } foreach(i; 0..size) if (pa[i] < q[i]) pa[i] = q[i]; } foreach (index; 0..size) { q[index] = pa[ro[index]]; } return q; } double[] ni; ni.length = size; auto o = order(pvalues, true); auto oDouble = toArray!double(o); foreach (index; 0..size) { if (pvalues[index] < 0 || pvalues[index] > 1) { throw new Exception(text("array[", index, "] = ", pvalues[index], " is outside [0, 1]")); } ni[index] = cast(double) size / (size - index); } auto ro = order(oDouble, false); double[] cumminInput; cumminInput.length = size; if (type == 0) { // BH method foreach (index; 0..size) { cumminInput[index] = ni[index] * pvalues[o[index]]; } } else if (type == 1) { // BY method double q = 0; foreach (index; 1..size+1) q += 1.0 / index; foreach (index; 0..size) { cumminInput[index] = q * ni[index] * pvalues[o[index]]; } } else if (type == 3) { // Hochberg method foreach (index; 0..size) { cumminInput[index] = (index + 1) * pvalues[o[index]]; } } auto cumminArray =cummin(cumminInput); auto pmin = pminx(cumminArray, 1.0); double[] result; result.length = size; foreach (i; 0..size) { result[i] = pmin[ro[i]]; } return result; } void main() { double[] pvalues = [ 4.533744e-01, 7.296024e-01, 9.936026e-02, 9.079658e-02, 1.801962e-01, 8.752257e-01, 2.922222e-01, 9.115421e-01, 4.355806e-01, 5.324867e-01, 4.926798e-01, 5.802978e-01, 3.485442e-01, 7.883130e-01, 2.729308e-01, 8.502518e-01, 4.268138e-01, 6.442008e-01, 3.030266e-01, 5.001555e-02, 3.194810e-01, 7.892933e-01, 9.991834e-01, 1.745691e-01, 9.037516e-01, 1.198578e-01, 3.966083e-01, 1.403837e-02, 7.328671e-01, 6.793476e-02, 4.040730e-03, 3.033349e-04, 1.125147e-02, 2.375072e-02, 5.818542e-04, 3.075482e-04, 8.251272e-03, 1.356534e-03, 1.360696e-02, 3.764588e-04, 1.801145e-05, 2.504456e-07, 3.310253e-02, 9.427839e-03, 8.791153e-04, 2.177831e-04, 9.693054e-04, 6.610250e-05, 2.900813e-02, 5.735490e-03 ]; double[][] correctAnswers = [ [ // Benjamini-Hochberg 6.126681e-01, 8.521710e-01, 1.987205e-01, 1.891595e-01, 3.217789e-01, 9.301450e-01, 4.870370e-01, 9.301450e-01, 6.049731e-01, 6.826753e-01, 6.482629e-01, 7.253722e-01, 5.280973e-01, 8.769926e-01, 4.705703e-01, 9.241867e-01, 6.049731e-01, 7.856107e-01, 4.887526e-01, 1.136717e-01, 4.991891e-01, 8.769926e-01, 9.991834e-01, 3.217789e-01, 9.301450e-01, 2.304958e-01, 5.832475e-01, 3.899547e-02, 8.521710e-01, 1.476843e-01, 1.683638e-02, 2.562902e-03, 3.516084e-02, 6.250189e-02, 3.636589e-03, 2.562902e-03, 2.946883e-02, 6.166064e-03, 3.899547e-02, 2.688991e-03, 4.502862e-04, 1.252228e-05, 7.881555e-02, 3.142613e-02, 4.846527e-03, 2.562902e-03, 4.846527e-03, 1.101708e-03, 7.252032e-02, 2.205958e-02 ], [ // Benjamini & Yekutieli 1.000000e+00, 1.000000e+00, 8.940844e-01, 8.510676e-01, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 5.114323e-01, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.754486e-01, 1.000000e+00, 6.644618e-01, 7.575031e-02, 1.153102e-02, 1.581959e-01, 2.812089e-01, 1.636176e-02, 1.153102e-02, 1.325863e-01, 2.774239e-02, 1.754486e-01, 1.209832e-02, 2.025930e-03, 5.634031e-05, 3.546073e-01, 1.413926e-01, 2.180552e-02, 1.153102e-02, 2.180552e-02, 4.956812e-03, 3.262838e-01, 9.925057e-02 ], [ // Bonferroni 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 7.019185e-01, 1.000000e+00, 1.000000e+00, 2.020365e-01, 1.516674e-02, 5.625735e-01, 1.000000e+00, 2.909271e-02, 1.537741e-02, 4.125636e-01, 6.782670e-02, 6.803480e-01, 1.882294e-02, 9.005725e-04, 1.252228e-05, 1.000000e+00, 4.713920e-01, 4.395577e-02, 1.088915e-02, 4.846527e-02, 3.305125e-03, 1.000000e+00, 2.867745e-01 ], [ // Hochberg 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 4.632662e-01, 9.991834e-01, 9.991834e-01, 1.575885e-01, 1.383967e-02, 3.938014e-01, 7.600230e-01, 2.501973e-02, 1.383967e-02, 3.052971e-01, 5.426136e-02, 4.626366e-01, 1.656419e-02, 8.825610e-04, 1.252228e-05, 9.930759e-01, 3.394022e-01, 3.692284e-02, 1.023581e-02, 3.974152e-02, 3.172920e-03, 8.992520e-01, 2.179486e-01 ], [ // Holm 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 1.000000e+00, 4.632662e-01, 1.000000e+00, 1.000000e+00, 1.575885e-01, 1.395341e-02, 3.938014e-01, 7.600230e-01, 2.501973e-02, 1.395341e-02, 3.052971e-01, 5.426136e-02, 4.626366e-01, 1.656419e-02, 8.825610e-04, 1.252228e-05, 9.930759e-01, 3.394022e-01, 3.692284e-02, 1.023581e-02, 3.974152e-02, 3.172920e-03, 8.992520e-01, 2.179486e-01 ], [ // Hommel 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.987624e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.595180e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 9.991834e-01, 4.351895e-01, 9.991834e-01, 9.766522e-01, 1.414256e-01, 1.304340e-02, 3.530937e-01, 6.887709e-01, 2.385602e-02, 1.322457e-02, 2.722920e-01, 5.426136e-02, 4.218158e-01, 1.581127e-02, 8.825610e-04, 1.252228e-05, 8.743649e-01, 3.016908e-01, 3.516461e-02, 9.582456e-03, 3.877222e-02, 3.172920e-03, 8.122276e-01, 1.950067e-01 ] ]; auto types = ["bh", "by", "bonferroni", "hochberg", "holm", "hommel"]; foreach (type; 0..types.length) { auto q = pAdjust(pvalues, types[type]); double error = 0.0; foreach (i; 0..pvalues.length) { error += abs(q[i] - correctAnswers[type][i]); } doubleSay(q); writefln("\ntype %d = '%s' has a cumulative error of %g", type, types[type], error); } }
D
instance SLD_738_Soeldner(Npc_Default) { name[0] = NAME_Soeldner; npcType = npctype_guard; guild = GIL_SLD; level = 16; voice = 8; id = 728; attribute[ATR_STRENGTH] = 85; attribute[ATR_DEXTERITY] = 65; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 262; attribute[ATR_HITPOINTS] = 262; Mdl_SetVisual(self,"HUMANS.MDS"); Mdl_ApplyOverlayMds(self,"Humans_Militia.mds"); Mdl_SetVisualBody(self,"hum_body_Naked0",0,1,"Hum_Head_Pony",48,1,sld_armor_m); B_Scale(self); Mdl_SetModelFatness(self,0); fight_tactic = FAI_HUMAN_Strong; Npc_SetTalentSkill(self,NPC_TALENT_1H,2); Npc_SetTalentSkill(self,NPC_TALENT_2H,1); EquipItem(self,ItMw_1H_Mace_War_03); EquipItem(self,ItRw_Bow_Long_01); CreateInvItems(self,ItAmArrow,20); CreateInvItem(self,ItFoRice); CreateInvItem(self,ItFoBooze); CreateInvItem(self,ItMi_Stuff_Barbknife_01); CreateInvItems(self,ItMiNugget,15); daily_routine = Rtn_start_738; }; func void Rtn_start_738() { TA_GuardWheelOpen(7,55,19,55,"NC_MAINGATE_VWHEEL"); TA_GuardWheelOpen(19,55,7,55,"NC_MAINGATE_VWHEEL"); };
D
/* GDC -- D front-end for GCC Copyright (C) 2013 Free Software Foundation, Inc. GCC 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, or (at your option) any later version. GCC 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 GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ // GNU/GCC threads interface routines for D. // This must match gthr-win32.h module gcc.gthreads.win32; /* Windows32 threads specific definitions. The windows32 threading model does not map well into pthread-inspired gcc's threading model, and so there are caveats one needs to be aware of. 1. The destructor supplied to gthread_key_create is ignored for generic x86-win32 ports. However, Mingw runtime (version 0.3 or newer) provides a mechanism to emulate pthreads key dtors; the runtime provides a special DLL, linked in if -mthreads option is specified, that runs the dtors in the reverse order of registration when each thread exits. If -mthreads option is not given, a stub is linked in instead of the DLL, which results in memory leak. Other x86-win32 ports can use the same technique of course to avoid the leak. 2. The error codes returned are non-POSIX like, and cast into ints. This may cause incorrect error return due to truncation values on hw where DWORD.sizeof > int.sizeof. The basic framework should work well enough. In the long term, GCC needs to use Structured Exception Handling on Windows32. */ import core.sys.windows.windows; import core.stdc.errno; alias gthread_key_t = ULONG; struct gthread_once_t { INT done; LONG started; } alias gthread_mutex_t = CRITICAL_SECTION; alias gthread_recursive_mutex_t = CRITICAL_SECTION; enum GTHREAD_MUTEX_INIT = CRITICAL_SECTION.init; enum GTHREAD_ONCE_INIT = gthread_once_t(0, -1); enum GTHREAD_RECURSIVE_MUTEX_INIT = CRITICAL_SECTION.init; extern(C): version (MinGW) { // Mingw runtime >= v0.3 provides a magic variable that is set to nonzero // if -mthreads option was specified, or 0 otherwise. extern int _CRT_MT; extern int __mingwthr_key_dtor(ULONG, void function(void*)); } // Backend thread functions int gthread_active_p() { version (MinGW) return _CRT_MT; else return 1; } int gthread_once(gthread_once_t* once, void function() func) { if (! gthread_active_p()) return -1; else if (once == null || func == null) return EINVAL; if (! once.done) { if (InterlockedIncrement(&(once.started)) == 0) { func(); once.done = TRUE; } else { /* Another thread is currently executing the code, so wait for it to finish; yield the CPU in the meantime. If performance does become an issue, the solution is to use an Event that we wait on here (and set above), but that implies a place to create the event before this routine is called. */ while (! once.done) Sleep(0); } } return 0; } /* Windows32 thread local keys don't support destructors; this leads to leaks, especially in threaded applications making extensive use of C++ EH. Mingw uses a thread-support DLL to work-around this problem. */ int gthread_key_create(gthread_key_t* key, void function(void*) dtor) { DWORD tlsindex = TlsAlloc(); if (tlsindex != 0xFFFFFFFF) { *key = tlsindex; /* Mingw runtime will run the dtors in reverse order for each thread when the thread exits. */ version (MinGW) return __mingwthr_key_dtor(*key, dtor); } else return GetLastError(); return 0; } int gthread_key_delete(gthread_key_t key) { if (TlsFree(key) != 0) return 0; else return GetLastError(); } void* gthread_getspecific(gthread_key_t key) { DWORD lasterror = GetLastError(); void* ptr = TlsGetValue(key); SetLastError(lasterror); return ptr; } int gthread_setspecific(gthread_key_t key, in void* ptr) { if (TlsSetValue(key, cast(void*) ptr) != 0) return 0; else return GetLastError(); } void gthread_mutex_init(gthread_mutex_t* mutex) { InitializeCriticalSection(mutex); } int gthread_mutex_destroy(gthread_mutex_t* mutex) { DeleteCriticalSection(mutex); return 0; } int gthread_mutex_lock(gthread_mutex_t* mutex) { if (gthread_active_p()) EnterCriticalSection(mutex); return 0; } int gthread_mutex_trylock(gthread_mutex_t* mutex) { if (gthread_active_p()) return TryEnterCriticalSection(mutex); else return 0; } int gthread_mutex_unlock(gthread_mutex_t* mutex) { if (gthread_active_p()) LeaveCriticalSection(mutex); return 0; } int gthread_recursive_mutex_init(gthread_mutex_t* mutex) { gthread_mutex_init(mutex); return 0; } int gthread_recursive_mutex_lock(gthread_recursive_mutex_t* mutex) { return gthread_mutex_lock(mutex); } int gthread_recursive_mutex_trylock(gthread_recursive_mutex_t* mutex) { return gthread_mutex_trylock(mutex); } int gthread_recursive_mutex_unlock(gthread_recursive_mutex_t* mutex) { return gthread_mutex_unlock(mutex); } int gthread_recursive_mutex_destroy(gthread_recursive_mutex_t* mutex) { return gthread_mutex_destroy(mutex); }
D
import gtk.Main; import gtk.MainWindow; import gtk.Box; import gtk.Label; import gtk.Stack; import gtk.StackSwitcher; void main(string[] args) { Main.init(args); auto window = new MainWindow("Stack Demo"); window.setDefaultSize(400, 200); auto box = new Box(Orientation.VERTICAL, 0); auto stack = new Stack(); stack.setTransitionType(StackTransitionType.SLIDE_LEFT_RIGHT); stack.setTransitionDuration(1000); stack.addTitled(new Label("Stack 1"), "st1", "1"); stack.addTitled(new Label("Stack 2"), "st2", "2"); stack.addTitled(new Label("Stack 3"), "st3", "3"); auto stackSwitcher = new StackSwitcher(); stackSwitcher.setStack(stack); box.packStart(stackSwitcher, false, false, 10); box.packStart(stack, false, false, 10); window.add(box); window.showAll(); Main.run(); }
D
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.build/StaticDataBuffer.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/RFC1123.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/String+Polymorphic.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Sequence.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Collection+Safe.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Cache.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Extendable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/EmptyInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/DataFile.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/String+CaseInsensitiveCompare.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Semaphore.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Dispatch.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Lock.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Portal.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/FileProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/StaticDataBuffer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/DispatchTime+Utilities.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Bits.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Result.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Int+Hex.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Array.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/WorkingDirectory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.build/StaticDataBuffer~partial.swiftmodule : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/RFC1123.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/String+Polymorphic.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Sequence.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Collection+Safe.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Cache.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Extendable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/EmptyInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/DataFile.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/String+CaseInsensitiveCompare.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Semaphore.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Dispatch.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Lock.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Portal.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/FileProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/StaticDataBuffer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/DispatchTime+Utilities.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Bits.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Result.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Int+Hex.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Array.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/WorkingDirectory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.build/StaticDataBuffer~partial.swiftdoc : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/RFC1123.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/String+Polymorphic.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Sequence.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Collection+Safe.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Cache.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Extendable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/EmptyInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/DataFile.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/String+CaseInsensitiveCompare.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Semaphore.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Dispatch.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Lock.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Portal.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/FileProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/StaticDataBuffer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/DispatchTime+Utilities.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Bits.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Result.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Int+Hex.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/Array.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/WorkingDirectory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
D
module android.java.android.provider.Contacts_PhotosColumns; public import android.java.android.provider.Contacts_PhotosColumns_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!Contacts_PhotosColumns; import import0 = android.java.java.lang.Class;
D
func int C_CanStealFromNpc() { var int itm; if(!Npc_GetTalentSkill(other,NPC_TALENT_PICKPOCKET)) { return FALSE; }; if(self.aivar[AIV_PlayerHasPickedMyPocket] == TRUE) { return FALSE; }; if(other.attribute[ATR_DEXTERITY] < (self.aivar[AIV_DexToSteal] - Theftdiff)) { return FALSE; }; if(NpcObsessedByDMT == TRUE) { return FALSE; }; itm = self.aivar[AIV_ItemToSteal]; if(itm != 0) { if(self.aivar[AIV_AmountToSteal] > 1) //проверка Hlp_IsItem(ItMi_Gold,itm) перестает работать после торговли! { return TRUE; }; if(itm == self.aivar[AIV_HiddenTradeItem]) { return TRUE; }; if(!Npc_HasItems(self,itm)) { return FALSE; }; }; return TRUE; }; func void B_StealItem() { var int dex; var int itm; var int amount; var string text; dex = self.aivar[AIV_DexToSteal]; itm = self.aivar[AIV_ItemToSteal]; amount = self.aivar[AIV_AmountToSteal]; //TODO точно определять предмет и использовать только для золота if((dex <= 20) && (amount > 1) && (EasyLowDexPickpocketDisabled == FALSE)) { dex = 10; }; if(other.attribute[ATR_DEXTERITY] >= dex) { B_GiveInvItems(self,other,itm,amount); Npc_GetInvItem(other,itm); text = ConcatStrings(self.name[0],PRINT_PickPocketSuccess); if(Hlp_IsItem(item,ItMi_Gold)) { text = ConcatStrings(text,IntToString(amount)); text = ConcatStrings(text,PRINT_Gold); Snd_Play("Geldbeutel"); TotalTheftGold += amount; } else { text = ConcatStrings(text,item.description); Snd_Play("Scroll_Unfold"); if(Hlp_StrCmp(item.name,NAME_Beutel)) { TotalTheftGold += item.value; }; }; if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(Lehmar)) { Lehmar_StealBook_Day = B_GetDayPlus(); } else if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(Franco)) { UnEquip_ItAm_Addon_Franco(); } else if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(Richter)) { self.flags = 0; } else if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(Edgor)) { B_Say(self,self,"$AWAKE"); }; B_LogEntry(Topic_PickPocket,ConcatStrings(text,".")); self.aivar[AIV_PlayerHasPickedMyPocket] = TRUE; B_GiveThiefXP(); } else { B_ResetThiefLevel(); B_LogEntry(Topic_PickPocket,ConcatStrings(self.name[0],PRINT_PickPocketFailed)); AI_StopProcessInfos(self); if(C_IsNpc(self,MIL_328_Miliz)) { B_Attack(self,other,AR_KILL,1); } else { B_Attack(self,other,AR_Theft,1); }; }; }; func void AI_StopProcessInfos_Pickpocket() { if(!C_CanStealFromNpc()) { AI_StopProcessInfos(self); }; };
D
module hunt.net.ssl.SSLSession; import hunt.net.ssl.SSLSessionContext; // dfmt off version(WITH_HUNT_SECURITY): // dfmt on // import hunt.security.cert.Certificate; // import hunt.security.cert.X509Certificate; // import hunt.security.Principal; /** * In SSL, sessions are used to describe an ongoing relationship between * two entities. Each SSL connection involves one session at a time, but * that session may be used on many connections between those entities, * simultaneously or sequentially. The session used on a connection may * also be replaced by a different session. Sessions are created, or * rejoined, as part of the SSL handshaking protocol. Sessions may be * invalidated due to policies affecting security or resource usage, * or by an application explicitly calling <code>invalidate</code>. * Connection management policies are typically used to tune performance. * * <P> In addition to the standard session attributes, SSL sessions expose * these read-only attributes: <UL> * * <LI> <em>Peer Identity.</em> Sessions are between a particular * client and a particular server. The identity of the peer may * have been established as part of session setup. Peers are * generally identified by X.509 certificate chains. * * <LI> <em>Cipher Suite Name.</em> Cipher suites describe the * kind of cryptographic protection that's used by connections * in a particular session. * * <LI> <em>Peer Host.</em> All connections in a session are * between the same two hosts. The address of the host on the other * side of the connection is available. * * </UL> * * <P> Sessions may be explicitly invalidated. Invalidation may also * be done implicitly, when faced with certain kinds of errors. * * @author David Brownell */ interface SSLSession { /** * Returns the identifier assigned to this Connection. * * @return the Connection identifier */ byte[] getId(); /** * Returns the context in which this session is bound. * <P> * This context may be unavailable in some environments, * in which case this method returns null. * <P> * If the context is available and there is a * security manager installed, the caller may require * permission to access it or a security exception may be thrown. * In a Java environment, the security manager's * <code>checkPermission</code> method is called with a * <code>SSLPermission("getSSLSessionContext")</code> permission. * * @throws SecurityException if the calling thread does not have * permission to get SSL session context. * @return the session context used for this session, or null * if the context is unavailable. */ SSLSessionContext getSessionContext(); /** * Returns the time at which this Connection representation was created, * in milliseconds since midnight, January 1, 1970 UTC. * * @return the time this Connection was created */ long getCreationTime(); /** * Returns the last time this Connection representation was accessed by the * session level infrastructure, in milliseconds since * midnight, January 1, 1970 UTC. * <P> * Access indicates a new connection being established using session data. * Application level operations, such as getting or setting a value * associated with the session, are not reflected in this access time. * * <P> This information is particularly useful in session management * policies. For example, a session manager thread could leave all * sessions in a given context which haven't been used in a long time; * or, the sessions might be sorted according to age to optimize some task. * * @return the last time this Connection was accessed */ long getLastAccessedTime(); /** * Invalidates the session. * <P> * Future connections will not be able to * resume or join this session. However, any existing connection * using this session can continue to use the session until the * connection is closed. * * @see #isValid() */ void invalidate(); /** * Returns whether this session is valid and available for resuming or * joining. * * @return true if this session may be rejoined. * @see #invalidate() * */ bool isValid(); /** * * Binds the specified <code>value</code> object into the * session's application layer data * with the given <code>name</code>. * <P> * Any existing binding using the same <code>name</code> is * replaced. If the new (or existing) <code>value</code> implements the * <code>SSLSessionBindingListener</code> interface, the object * represented by <code>value</code> is notified appropriately. * <p> * For security reasons, the same named values may not be * visible across different access control contexts. * * @param name the name to which the data object will be bound. * This may not be null. * @param value the data object to be bound. This may not be null. * @throws IllegalArgumentException if either argument is null. */ void putValue(string name, Object value); /** * Returns the object bound to the given name in the session's * application layer data. Returns null if there is no such binding. * <p> * For security reasons, the same named values may not be * visible across different access control contexts. * * @param name the name of the binding to find. * @return the value bound to that name, or null if the binding does * not exist. * @throws IllegalArgumentException if the argument is null. */ Object getValue(string name); /** * Removes the object bound to the given name in the session's * application layer data. Does nothing if there is no object * bound to the given name. If the bound existing object * implements the <code>SessionBindingListener</code> interface, * it is notified appropriately. * <p> * For security reasons, the same named values may not be * visible across different access control contexts. * * @param name the name of the object to remove visible * across different access control contexts * @throws IllegalArgumentException if the argument is null. */ void removeValue(string name); /** * Returns an array of the names of all the application layer * data objects bound into the Connection. * <p> * For security reasons, the same named values may not be * visible across different access control contexts. * * @return a non-null (possibly empty) array of names of the objects * bound to this Connection. */ string [] getValueNames(); /** * Returns the identity of the peer which was established as part * of defining the session. * <P> * Note: This method can be used only when using certificate-based * cipher suites; using it with non-certificate-based cipher suites, * such as Kerberos, will throw an SSLPeerUnverifiedException. * * @return an ordered array of peer certificates, * with the peer's own certificate first followed by any * certificate authorities. * @exception SSLPeerUnverifiedException if the peer's identity has not * been verified * @see #getPeerPrincipal() */ // Certificate[] getPeerCertificates(); /** * Returns the certificate(s) that were sent to the peer during * handshaking. * <P> * Note: This method is useful only when using certificate-based * cipher suites. * <P> * When multiple certificates are available for use in a * handshake, the implementation chooses what it considers the * "best" certificate chain available, and transmits that to * the other side. This method allows the caller to know * which certificate chain was actually used. * * @return an ordered array of certificates, * with the local certificate first followed by any * certificate authorities. If no certificates were sent, * then null is returned. * * @see #getLocalPrincipal() */ // Certificate [] getLocalCertificates(); /** * Returns the identity of the peer which was identified as part * of defining the session. * <P> * Note: This method can be used only when using certificate-based * cipher suites; using it with non-certificate-based cipher suites, * such as Kerberos, will throw an SSLPeerUnverifiedException. * * <p><em>Note: this method exists for compatibility with previous * releases. New applications should use * {@link #getPeerCertificates} instead.</em></p> * * @return an ordered array of peer X.509 certificates, * with the peer's own certificate first followed by any * certificate authorities. (The certificates are in * the original JSSE certificate * {@link javax.security.cert.X509Certificate} format.) * @exception SSLPeerUnverifiedException if the peer's identity * has not been verified * @see #getPeerPrincipal() */ // X509Certificate [] getPeerCertificateChain(); /** * Returns the identity of the peer which was established as part of * defining the session. * * @return the peer's principal. Returns an X500Principal of the * end-entity certiticate for X509-based cipher suites, and * KerberosPrincipal for Kerberos cipher suites. * * @throws SSLPeerUnverifiedException if the peer's identity has not * been verified * * @see #getPeerCertificates() * @see #getLocalPrincipal() * */ // Principal getPeerPrincipal(); /** * Returns the principal that was sent to the peer during handshaking. * * @return the principal sent to the peer. Returns an X500Principal * of the end-entity certificate for X509-based cipher suites, and * KerberosPrincipal for Kerberos cipher suites. If no principal was * sent, then null is returned. * * @see #getLocalCertificates() * @see #getPeerPrincipal() * */ // Principal getLocalPrincipal(); /** * Returns the name of the SSL cipher suite which is used for all * connections in the session. * * <P> This defines the level of protection * provided to the data sent on the connection, including the kind * of encryption used and most aspects of how authentication is done. * * @return the name of the session's cipher suite */ string getCipherSuite(); /** * Returns the standard name of the protocol used for all * connections in the session. * * <P> This defines the protocol used in the connection. * * @return the standard name of the protocol used for all * connections in the session. */ string getProtocol(); /** * Returns the host name of the peer in this session. * <P> * For the server, this is the client's host; and for * the client, it is the server's host. The name may not be * a fully qualified host name or even a host name at all as * it may represent a string encoding of the peer's network address. * If such a name is desired, it might * be resolved through a name service based on the value returned * by this method. * <P> * This value is not authenticated and should not be relied upon. * It is mainly used as a hint for <code>SSLSession</code> caching * strategies. * * @return the host name of the peer host, or null if no information * is available. */ string getPeerHost(); /** * Returns the port number of the peer in this session. * <P> * For the server, this is the client's port number; and for * the client, it is the server's port number. * <P> * This value is not authenticated and should not be relied upon. * It is mainly used as a hint for <code>SSLSession</code> caching * strategies. * * @return the port number of the peer host, or -1 if no information * is available. * */ int getPeerPort(); /** * Gets the current size of the largest SSL/TLS packet that is expected * when using this session. * <P> * A <code>SSLEngine</code> using this session may generate SSL/TLS * packets of any size up to and including the value returned by this * method. All <code>SSLEngine</code> network buffers should be sized * at least this large to avoid insufficient space problems when * performing <code>wrap</code> and <code>unwrap</code> calls. * * @return the current maximum expected network packet size * * @see SSLEngine#wrap(ByteBuffer, ByteBuffer) * @see SSLEngine#unwrap(ByteBuffer, ByteBuffer) * */ int getPacketBufferSize(); /** * Gets the current size of the largest application data that is * expected when using this session. * <P> * <code>SSLEngine</code> application data buffers must be large * enough to hold the application data from any inbound network * application data packet received. Typically, outbound * application data buffers can be of any size. * * @return the current maximum expected application packet size * * @see SSLEngine#wrap(ByteBuffer, ByteBuffer) * @see SSLEngine#unwrap(ByteBuffer, ByteBuffer) * */ int getApplicationBufferSize(); }
D
/// freetype fonts support module dlangui.graphics.ftfonts; import dlangui.graphics.fonts; import derelict.freetype.ft; private import dlangui.core.logger; private import dlangui.core.collections; private import std.algorithm; private import std.file; private import std.string; private import std.utf; private struct FontDef { immutable FontFamily _family; immutable string _face; immutable bool _italic; immutable int _weight; @property FontFamily family() { return _family; } @property string face() { return _face; } @property bool italic() { return _italic; } @property int weight() { return _weight; } this(FontFamily family, string face, bool italic, int weight) { _family = family; _face = face; _italic = italic; _weight = weight; } const bool opEquals(ref const FontDef v) { return _family == v._family && _italic == v._italic && _weight == v._weight && _face.equal(v._face); } const hash_t toHash() const nothrow @safe { hash_t res = 123; res = res * 31 + cast(hash_t)_italic; res = res * 31 + cast(hash_t)_weight; res = res * 31 + cast(hash_t)_family; res = res * 31 + typeid(_face).getHash(&_face); return res; } } private class FontFileItem { private FontList _activeFonts; private FT_Library _library; private FontDef _def; string[] _filenames; @property ref FontDef def() { return _def; } @property string[] filenames() { return _filenames; } @property FT_Library library() { return _library; } void addFile(string fn) { // check for duplicate entry foreach (ref string existing; _filenames) if (fn.equal(existing)) return; _filenames ~= fn; } this(FT_Library library, ref FontDef def) { _library = library; _def = def; } private FontRef _nullFontRef; ref FontRef get(int size) { int index = _activeFonts.find(size); if (index >= 0) return _activeFonts.get(index); FreeTypeFont font = new FreeTypeFont(this, size); if (!font.create()) { destroy(font); return _nullFontRef; } return _activeFonts.add(font); } } private class FreeTypeFontFile { private string _filename; private string _faceName; private FT_Library _library; private FT_Face _face; private FT_GlyphSlot _slot; private FT_Matrix _matrix; /* transformation matrix */ @property FT_Library library() { return _library; } private int _height; private int _size; private int _baseline; private int _weight; private bool _italic; /// filename @property string filename() { return _filename; } // properties as detected after opening of file @property string face() { return _faceName; } @property int height() { return _height; } @property int size() { return _size; } @property int baseline() { return _baseline; } @property int weight() { return _weight; } @property bool italic() { return _italic; } debug private static int _instanceCount; this(FT_Library library, string filename) { _library = library; _filename = filename; _matrix.xx = 0x10000; _matrix.yy = 0x10000; _matrix.xy = 0; _matrix.yx = 0; debug Log.d("Created FreeTypeFontFile, count=", ++_instanceCount); } ~this() { clear(); debug Log.d("Destroyed FreeTypeFontFile, count=", --_instanceCount); } private static string familyName(FT_Face face) { string faceName = fromStringz(face.family_name); string styleName = fromStringz(face.style_name); if (faceName.equal("Arial") && styleName.equal("Narrow")) faceName ~= " Narrow"; else if (styleName.equal("Condensed")) faceName ~= " Condensed"; return faceName; } /// open face with specified size bool open(int size, int index = 0) { int error = FT_New_Face( _library, _filename.toStringz, index, &_face); /* create face object */ if (error) return false; if ( _filename.endsWith(".pfb") || _filename.endsWith(".pfa") ) { string kernFile = _filename[0 .. $ - 4]; if (exists(kernFile ~ ".afm")) { kernFile ~= ".afm"; } else if (exists(kernFile ~ ".pfm" )) { kernFile ~= ".pfm"; } else { kernFile.clear(); } if (kernFile.length > 0) error = FT_Attach_File(_face, kernFile.toStringz); } Log.d("Font file opened successfully"); _slot = _face.glyph; _faceName = familyName(_face); error = FT_Set_Pixel_Sizes( _face, /* handle to face object */ 0, /* pixel_width */ size ); /* pixel_height */ if (error) { clear(); return false; } _height = cast(int)(_face.size.metrics.height >> 6); _size = size; _baseline = _height + cast(int)(_face.size.metrics.descender >> 6); _weight = _face.style_flags & FT_STYLE_FLAG_BOLD ? FontWeight.Bold : FontWeight.Normal; _italic = _face.style_flags & FT_STYLE_FLAG_ITALIC ? true : false; Log.d("Opened font face=", _faceName, " height=", _height, " size=", size, " weight=", weight, " italic=", italic); return true; // successfully opened } /// find some suitable replacement for important characters missing in font static dchar getReplacementChar(dchar code) { switch (code) { case UNICODE_SOFT_HYPHEN_CODE: return '-'; case 0x0401: // CYRILLIC CAPITAL LETTER IO return 0x0415; //CYRILLIC CAPITAL LETTER IE case 0x0451: // CYRILLIC SMALL LETTER IO return 0x0435; // CYRILLIC SMALL LETTER IE case UNICODE_NO_BREAK_SPACE: return ' '; case 0x2010: case 0x2011: case 0x2012: case 0x2013: case 0x2014: case 0x2015: return '-'; case 0x2018: case 0x2019: case 0x201a: case 0x201b: return '\''; case 0x201c: case 0x201d: case 0x201e: case 0x201f: case 0x00ab: case 0x00bb: return '\"'; case 0x2039: return '<'; case 0x203A: return '>'; case 0x2044: return '/'; case 0x2022: // css_lst_disc: return '*'; case 0x26AA: // css_lst_disc: case 0x25E6: // css_lst_disc: case 0x25CF: // css_lst_disc: return 'o'; case 0x25CB: // css_lst_circle: return '*'; case 0x25A0: // css_lst_square: return '-'; default: return 0; } } /// find glyph index for character FT_UInt getCharIndex(dchar code, dchar def_char = 0) { if ( code=='\t' ) code = ' '; FT_UInt ch_glyph_index = FT_Get_Char_Index(_face, code); if (ch_glyph_index == 0) { dchar replacement = getReplacementChar(code); if (replacement) ch_glyph_index = FT_Get_Char_Index(_face, replacement); if (ch_glyph_index == 0 && def_char) ch_glyph_index = FT_Get_Char_Index( _face, def_char ); } return ch_glyph_index; } /// retrieve glyph information, filling glyph struct; returns false if glyph not found bool getGlyphInfo(dchar code, ref Glyph glyph, dchar def_char, bool withImage = true) { //FONT_GUARD int glyph_index = getCharIndex(code, def_char); int flags = FT_LOAD_DEFAULT; const bool _drawMonochrome = false; flags |= (!_drawMonochrome ? FT_LOAD_TARGET_NORMAL : FT_LOAD_TARGET_MONO); if (withImage) flags |= FT_LOAD_RENDER; //if (_hintingMode == HINTING_MODE_AUTOHINT) // flags |= FT_LOAD_FORCE_AUTOHINT; //else if (_hintingMode == HINTING_MODE_DISABLED) // flags |= FT_LOAD_NO_AUTOHINT | FT_LOAD_NO_HINTING; int error = FT_Load_Glyph( _face, /* handle to face object */ glyph_index, /* glyph index */ flags ); /* load flags, see below */ if ( error ) return false; glyph.lastUsage = 1; glyph.blackBoxX = cast(ubyte)(_slot.metrics.width >> 6); glyph.blackBoxY = cast(ubyte)(_slot.metrics.height >> 6); glyph.originX = cast(byte)(_slot.metrics.horiBearingX >> 6); glyph.originY = cast(byte)(_slot.metrics.horiBearingY >> 6); glyph.width = cast(ubyte)(myabs(cast(int)(_slot.metrics.horiAdvance)) >> 6); //glyph.glyphIndex = cast(ushort)code; if (withImage) { FT_Bitmap* bitmap = &_slot.bitmap; ubyte w = cast(ubyte)(bitmap.width); ubyte h = cast(ubyte)(bitmap.rows); glyph.blackBoxX = w; glyph.blackBoxY = h; int sz = w * cast(int)h; if (sz > 0) { glyph.glyph = new ubyte[sz]; for (int i = 0; i < sz; i++) glyph.glyph[i] = bitmap.buffer[i]; } version (USE_OPENGL) { glyph.id = nextGlyphId(); } } return true; } @property bool isNull() { return (_face is null); } void clear() { if (_face !is null) FT_Done_Face(_face); _face = null; } } /** * Font implementation based on Win32 API system fonts. */ class FreeTypeFont : Font { private FontFileItem _fontItem; private Collection!(FreeTypeFontFile, true) _files; debug(resalloc) static int _instanceCount; /// need to call create() after construction to initialize font this(FontFileItem item, int size) { _fontItem = item; _size = size; _height = size; debug(resalloc) Log.d("Created font, count=", ++_instanceCount); } /// do cleanup ~this() { clear(); debug(resalloc) Log.d("Destroyed font, count=", --_instanceCount); } private int _size; private int _height; private GlyphCache _glyphCache; /// cleanup resources override void clear() { _files.clear(); } uint getGlyphIndex(dchar code) { return 0; } /// find glyph index for character bool findGlyph(dchar code, dchar def_char, ref FT_UInt index, ref FreeTypeFontFile file) { foreach(FreeTypeFontFile f; _files) { index = f.getCharIndex(code, def_char); if (index != 0) { file = f; return true; } } return false; } override Glyph * getCharGlyph(dchar ch, bool withImage = true) { if (ch > 0xFFFF) // do not support unicode chars above 0xFFFF - due to cache limitations return null; //long measureStart = std.datetime.Clock.currStdTime; Glyph * found = _glyphCache.find(cast(ushort)ch); //long measureEnd = std.datetime.Clock.currStdTime; //long duration = measureEnd - measureStart; //if (duration > 10000) //if (duration > 10000) // Log.d("ft _glyphCache.find took ", duration / 10, " ns"); if (found !is null) return found; //Log.v("Glyph ", ch, " is not found in cache, getting from font"); FT_UInt index; FreeTypeFontFile file; if (!findGlyph(ch, 0, index, file)) { if (!findGlyph(ch, '?', index, file)) return null; } Glyph * glyph = new Glyph; if (!file.getGlyphInfo(ch, *glyph, 0, withImage)) return null; if (withImage) return _glyphCache.put(ch, glyph); return glyph; } /// load font files bool create() { if (!isNull()) clear(); foreach (string filename; _fontItem.filenames) { FreeTypeFontFile file = new FreeTypeFontFile(_fontItem.library, filename); if (file.open(_size, 0)) { _files.add(file); } else { destroy(file); } } return _files.length > 0; } /// clear usage flags for all entries override void checkpoint() { _glyphCache.checkpoint(); } /// removes entries not used after last call of checkpoint() or cleanup() override void cleanup() { _glyphCache.cleanup(); } @property override int size() { return _size; } @property override int height() { return _files.length > 0 ? _files[0].height : _size; } @property override int weight() { return _fontItem.def.weight; } @property override int baseline() { return _files.length > 0 ? _files[0].baseline : 0; } @property override bool italic() { return _fontItem.def.italic; } @property override string face() { return _fontItem.def.face; } @property override FontFamily family() { return _fontItem.def.family; } @property override bool isNull() { return _files.length == 0; } } /// FreeType based font manager. class FreeTypeFontManager : FontManager { private FT_Library _library; private FontFileItem[] _fontFiles; private FontFileItem findFileItem(ref FontDef def) { foreach(FontFileItem item; _fontFiles) if (item.def == def) return item; return null; } private FontFileItem findBestMatch(int weight, bool italic, FontFamily family, string face) { FontFileItem best = null; int bestScore = 0; foreach(FontFileItem item; _fontFiles) { int score = 0; if (face is null || face.equal(item.def.face)) score += 200; // face match if (family == item.def.family) score += 100; // family match if (italic == item.def.italic) score += 50; // italic match int weightDiff = myabs(weight - item.def.weight); score += 30 - weightDiff / 30; // weight match if (score > bestScore) { bestScore = score; best = item; } } return best; } //private FontList _activeFonts; private static FontRef _nullFontRef; this() { // load dynaic library DerelictFT.load(); // init library int error = FT_Init_FreeType(&_library); if (error) { Log.e("Cannot init freetype library, error=", error); throw new Exception("Cannot init freetype library"); } } ~this() { debug Log.d("FreeTypeFontManager ~this()"); //_activeFonts.clear(); foreach(ref FontFileItem item; _fontFiles) { destroy(item); item = null; } _fontFiles.length = 0; debug Log.d("Destroyed all fonts. Freeing library."); // uninit library if (_library) FT_Done_FreeType(_library); } /// get font instance with specified parameters override ref FontRef getFont(int size, int weight, bool italic, FontFamily family, string face) { FontFileItem f = findBestMatch(weight, italic, family, face); if (f is null) return _nullFontRef; return f.get(size); } /// clear usage flags for all entries override void checkpoint() { } /// removes entries not used after last call of checkpoint() or cleanup() override void cleanup() { } /// register freetype font by filename - optinally font properties can be passed if known (e.g. from libfontconfig). bool registerFont(string filename, FontFamily family = FontFamily.SansSerif, string face = null, bool italic = false, int weight = 0) { if (_library is null) return false; Log.d("FreeTypeFontManager.registerFont ", filename, " ", family, " ", face, " italic=", italic, " weight=", weight); if (!exists(filename) || !isFile(filename)) return false; FreeTypeFontFile font = new FreeTypeFontFile(_library, filename); if (!font.open(24)) { Log.e("Failed to open font ", filename); destroy(font); return false; } if (face == null || weight == 0) { // properties are not set by caller // get properties from loaded font face = font.face; italic = font.italic; weight = font.weight; Log.d("Using properties from font file: face=", face, " weight=", weight, " italic=", italic); } destroy(font); FontDef def = FontDef(family, face, italic, weight); FontFileItem item = findFileItem(def); if (item is null) { item = new FontFileItem(_library, def); _fontFiles ~= item; } item.addFile(filename); // registered return true; } } private int myabs(int n) { return n >= 0 ? n : -n; }
D
/// This is a DPlug-specific rework of dg2d by Cerjones. /// /// - removal of truetype functionnality (since covered by dplug:graphics) /// - nothrow @nogc /// - rework of the Canvas itself, to resemble more the HTML5 Canvas API /// - Blitter delegate made explicit with a userData pointer /// - add html color parsing /// - no alignment requirements /// - clipping is done with the ImageRef input /// etc... /** * Copyright: Copyright Chris Jones 2020. * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) */ module dplug.canvas; import std.math; import dplug.core.vec; import dplug.core.nogc; import dplug.core.math; import dplug.graphics.color; import dplug.graphics.image; import dplug.canvas.htmlcolors; import dplug.canvas.gradient; import dplug.canvas.colorblit; import dplug.canvas.linearblit; import dplug.canvas.ellipticalblit; import dplug.canvas.rasterizer; // dplug:canvas whole public API should live here. public import gfm.math.vector; import gfm.math.matrix; /// The transform type used by dplug:canvas. It's a 3x3 float matrix /// with the form: /// (a b c) /// (d e f) /// (0 0 1) alias Transform2D = mat3!float; alias ImageDest = ImageRef!RGBA; /// 2D Canvas able to render complex pathes into a ImageRef!RGBA buffer. /// `Canvas` tries to follow loosely the HTML 5 Canvas API, without stroking. /// Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement struct Canvas { public: nothrow: @nogc: /// Initialize the Canvas object with this target. void initialize(ImageRef!RGBA imageDest) { _imageDest = imageDest; _gradientUsed = 0; fillStyle(RGBA(0, 0, 0, 255)); _stateStack.resize(1); _stateStack[0].transform = Transform2D.identity(); } ~this() { // delete all created gradients foreach(gradient; _gradients[]) { destroyFree(gradient); } } @disable this(this); void fillStyle(RGBA color) { uint color_as_uint = *cast(uint*)&color; _plainColorBlit.init(cast(ubyte*)_imageDest.pixels, _imageDest.pitch, _imageDest.h, color_as_uint); _currentBlitter.userData = &_plainColorBlit; _currentBlitter.doBlit = &doBlit_ColorBlit; } void fillStyle(const(char)[] htmlColorString) { string error; RGBA rgba; if (parseHTMLColor(htmlColorString, rgba, error)) { fillStyle(rgba); } else assert(false); } void fillStyle(CanvasGradient gradient) { final switch(gradient.type) { case CanvasGradient.Type.linear: _linearGradientBlit.init(cast(ubyte*)_imageDest.pixels, _imageDest.pitch, _imageDest.h, gradient._gradient, gradient.x0, gradient.y0, gradient.x1, gradient.y1); _currentBlitter.userData = &_linearGradientBlit; _currentBlitter.doBlit = &doBlit_LinearBlit; break; case CanvasGradient.Type.elliptical: _ellipticalGradientBlit.init(cast(ubyte*)_imageDest.pixels, _imageDest.pitch, _imageDest.h, gradient._gradient, gradient.x0, gradient.y0, gradient.x1, gradient.y1, gradient.r2); _currentBlitter.userData = &_ellipticalGradientBlit; _currentBlitter.doBlit = &doBlit_EllipticalBlit; break; case CanvasGradient.Type.radial: case CanvasGradient.Type.angular: assert(false); // not implemented yet } } // <PATH> functions /// Starts a new path by emptying the list of sub-paths. Call this method when you want to create a new path. void beginPath() { int left = 0; int top = 0; int right = _imageDest.w; int bottom = _imageDest.h; _rasterizer.initialise(left, top, right, bottom); } /// Adds a straight line to the path, going to the start of the current sub-path. void closePath() { _rasterizer.closePath(); } /// Moves the starting point of a new sub-path to the (x, y) coordinates. void moveTo(float x, float y) { vec2f pt = transformPoint(x, y); _rasterizer.moveTo(pt.x, pt.y); } /// Connects the last point in the current sub-path to the specified (x, y) coordinates with a straight line. void lineTo(float x, float y) { vec2f pt = transformPoint(x, y); _rasterizer.lineTo(pt.x, pt.y); } /// Adds a cubic Bézier curve to the current path. void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y) { vec2f cp1 = transformPoint(cp1x, cp1y); vec2f cp2 = transformPoint(cp2x, cp2y); vec2f pt = transformPoint(x, y); _rasterizer.cubicTo(cp1.x, cp1.y, cp2.x, cp2.y, pt.x, pt.y); } /// Adds a quadratic Bézier curve to the current path. void quadraticCurveTo(float cpx, float cpy, float x, float y) { vec2f cp = transformPoint(cpx, cpy); vec2f pt = transformPoint(x, y); _rasterizer.quadTo(cp.x, cp.y, pt.x, pt.y); } /// Add a rect to the current path. void rect(float x, float y, float width, float height) { moveTo(x, y); lineTo(x + width, y); lineTo(x + width, y + height); lineTo(x, y + height); lineTo(x, y); } /// Adds an arc to the current path (used to create circles, or parts of circles). void arc(float x, float y, float radius, float startAngle, float endAngle, bool anticlockwise = false) { // See https://github.com/AuburnSounds/Dplug/issues/468 // for the complexities of startAngle, endAngle, and clockwise things // "If anticlockwise is false and endAngle-startAngle is equal to or // greater than 2π, or, if anticlockwise is true and startAngle-endAngle // is equal to or greater than 2π, then the arc is the whole circumference // of this ellipse, and the point at startAngle along this circle's // circumference, measured in radians clockwise from the ellipse's semi-major // axis, acts as both the start point and the end point." // "Otherwise, the points at startAngle and endAngle along this circle's // circumference, measured in radians clockwise from the ellipse's // semi-major axis, are the start and end points respectively, and // the arc is the path along the circumference of this ellipse from // the start point to the end point, going anti-clockwise if // anticlockwise is true, and clockwise otherwise. Since the points // are on the ellipse, as opposed to being simply angles from zero, // the arc can never cover an angle greater than 2π radians. if (!anticlockwise) { float endMinusStart = endAngle - startAngle; if (endMinusStart >= 2 * PI) endMinusStart = 2 * PI; else { endMinusStart = normalizePhase(endMinusStart); if (endMinusStart < 0) endMinusStart += 2 * PI; } // Modify endAngle so that startAngle <= endAngle <= startAngle + 2 * PI endAngle = startAngle + endMinusStart; assert(endAngle >= startAngle); } else { float endMinusStart = endAngle - startAngle; if (endMinusStart <= -2 * PI) endMinusStart = -2 * PI; else { endMinusStart = normalizePhase(endMinusStart); if (endMinusStart > 0) endMinusStart -= 2 * PI; } // Modify endAngle so that startAngle >= endAngle >= startAngle - 2 * PI endAngle = startAngle + endMinusStart; assert(endAngle <= startAngle); } // find tangential start point xt,yt float xt = x + fast_cos(startAngle) * radius; float yt = y + fast_sin(startAngle) * radius; // Make a line to there lineTo(xt, yt); enum float MAX_ANGLE_FOR_SINGLE_BEZIER_CURVE = PI / 2.0; // From https://stackoverflow.com/questions/1734745/how-to-create-circle-with-b%C3%A9zier-curves // The optimal distance to the control points, in the sense that the // middle of the curve lies on the circle itself, is (4/3)*tan(pi/(2n)). float angleDiff = endAngle - startAngle; if (startAngle == endAngle || angleDiff == 0) return; // How many bezier curves will we draw? // The angle will be evenly split between those parts. // The 1e-2 offset is to avoid a circle made with 5 curves. int numCurves = cast(int)(fast_ceil( (fast_fabs(angleDiff) - 1e-2f) / MAX_ANGLE_FOR_SINGLE_BEZIER_CURVE)); assert(numCurves >= 0); if (numCurves == 0) numCurves = 1; float currentAngle = startAngle; float angleIncr = angleDiff / cast(float)numCurves; // Compute where control points should be placed // How many segments does this correspond to for a full 2*pi circle? float numCurvesIfThisWereACircle = (2.0f * PI * numCurves) / angleDiff; // Then compute optimal distance of the control points float xx = cast(float)PI / (2.0f * numCurvesIfThisWereACircle); float optimalDistance = (4.0f / 3.0f) * tan(xx); optimalDistance *= radius; // PERF: for the inner loop this is more expensive than strictly needed foreach(curve; 0..numCurves) { float angle0 = startAngle + angleIncr * curve; float angle1 = startAngle + angleIncr * (curve + 1); float cos0 = fast_cos(angle0); float sin0 = fast_sin(angle0); float cos1 = fast_cos(angle1); float sin1 = fast_sin(angle1); // compute end points of the curve float x0 = x + cos0 * radius; float y0 = y + sin0 * radius; float x1 = x + cos1 * radius; float y1 = y + sin1 * radius; // compute control points float cp0x = x0 - sin0 * optimalDistance; float cp0y = y0 + cos0 * optimalDistance; float cp1x = x1 + sin1 * optimalDistance; float cp1y = y1 - cos1 * optimalDistance; bezierCurveTo(cp0x, cp0y, cp1x, cp1y, x1, y1); } } /// Fills all subpaths of the current path using the current `fillStyle`. /// Open subpaths are implicitly closed when being filled. void fill() { closePath(); _rasterizer.rasterize(_currentBlitter); } /// Fill a rectangle using the current `fillStyle`. /// Note: affects the current path. void fillRect(float x, float y, float width, float height) { beginPath(); rect(x, y, width, height); fill(); } /// Fill a disc using the current `fillStyle`. /// Note: affects the current path. void fillCircle(float x, float y, float radius) { beginPath(); moveTo(x + radius, y); arc(x, y, radius, 0, 2 * PI); fill(); } // </PATH> functions // <GRADIENT> functions /// Creates a linear gradient along the line given by the coordinates /// represented by the parameters. CanvasGradient createLinearGradient(float x0, float y0, float x1, float y1) { // TODO: delay this transform upon point of use with CTM vec2f pt0 = transformPoint(x0, y0); vec2f pt1 = transformPoint(x1, y1); CanvasGradient result = newOrReuseGradient(); result.type = CanvasGradient.Type.linear; result.x0 = pt0.x; result.y0 = pt0.y; result.x1 = pt1.x; result.y1 = pt1.y; return result; } /// Creates a circular gradient, centered in (x, y) and going from 0 to endRadius. CanvasGradient createCircularGradient(float centerX, float centerY, float endRadius) { float x1 = centerX + endRadius; float y1 = centerY; float r2 = endRadius; return createEllipticalGradient(centerX, centerY, x1, y1, r2); } /// Creates an elliptical gradient. /// First radius is given with (x1, y1, second radius with a radius at 90° with CanvasGradient createEllipticalGradient(float x0, float y0, float x1, float y1, float r2) { // TODO: delay this transform upon point of use with CTM vec2f pt0 = transformPoint(x0, y0); vec2f pt1 = transformPoint(x1, y1); // Transform r2 radius vec2f diff = vec2f(x1 - x0, y1 - y0).normalized; // TODO: this could crash with radius zero vec2f pt2 = vec2f(x0 - diff.y * r2, y0 + diff.x * r2); pt2 = transformPoint(pt2); float tr2 = pt2.distanceTo(pt0); CanvasGradient result = newOrReuseGradient(); result.type = CanvasGradient.Type.elliptical; result.x0 = pt0.x; result.y0 = pt0.y; result.x1 = pt1.x; result.y1 = pt1.y; result.r2 = tr2; return result; } // </GRADIENT> functions // <STATE> functions /// Save: /// - current transform void save() { _stateStack ~= _stateStack[$-1]; // just duplicate current state } /// Restores state corresponding to `save()`. void restore() { _stateStack.popBack(); if (_stateStack.length == 0) assert(false); // too many restore() without corresponding save() } /// Retrieves the current transformation matrix. Transform2D currentTransform() { return _stateStack[$-1].transform; } alias getTransform = currentTransform; ///ditto /// Adds a rotation to the transformation matrix. The angle argument represents /// a clockwise rotation angle and is expressed in radians. void rotate(float angle) { float cosa = cos(angle); float sina = sin(angle); curMatrix() *= Transform2D(cosa, -sina, 0, sina, cosa, 0, 0, 0, 1); } /// Adds a scaling transformation to the canvas units by x horizontally and by y vertically. void scale(float x, float y) { curMatrix() *= Transform2D(x, 0, 0, 0, y, 0, 0, 0, 1); } /// Adds a translation transformation by moving the canvas and its origin `x` /// horizontally and `y` vertically on the grid. void translate(float x, float y) { curMatrix() *= Transform2D(1, 0, x, 0, 1, y, 0, 0, 1); } /// Multiplies the current transformation matrix with the matrix described by its arguments. void transform(float a, float b, float c, float d, float e, float f) { curMatrix() *= Transform2D(a, c, e, b, d, f, 0, 0, 1); } void setTransform(float a, float b, float c, float d, float e, float f) { curMatrix() = Transform2D(a, c, e, b, d, f, 0, 0, 1); } ///ditto void setTransform(Transform2D transform) { curMatrix() = transform; } /// Changes the current transformation matrix to the identity matrix. void resetTransform() { curMatrix() = Transform2D.identity(); } // </STATE> private: ImageRef!RGBA _imageDest; enum BrushStyle { plainColor } Rasterizer _rasterizer; Blitter _currentBlitter; // Blitters ColorBlit _plainColorBlit; LinearBlit _linearGradientBlit; EllipticalBlit _ellipticalGradientBlit; // Gradient cache // You're expected to recreate gradient in draw code. int _gradientUsed; // number of gradients in _gradients in active use Vec!CanvasGradient _gradients; // all gradients here are created on demand, // and possibly reusable after `ìnitialize` CanvasGradient newOrReuseGradient() { if (_gradientUsed < _gradients.length) { _gradients[_gradientUsed].reset(); return _gradients[_gradientUsed++]; } else { CanvasGradient result = mallocNew!CanvasGradient(); _gradients.pushBack(result); return result; } } // State stack. // Current state is the last element. Vec!State _stateStack; // What is saved by `save`. struct State { Transform2D transform; } ref Transform2D curMatrix() { return _stateStack[$-1].transform; } vec2f transformPoint(float x, float y) { return ( currentTransform() * vec3f(x, y, 1.0f) ).xy; } vec2f transformPoint(vec2f pt) { return ( currentTransform() * vec3f(pt.xy, 1.0f) ).xy; } } /// To conform with the HMLTL 5 API, this holds both the gradient data/table and /// positioning information. class CanvasGradient { public: nothrow: @nogc: this() { _gradient = mallocNew!Gradient(); } void addColorStop(float offset, RGBA color) { uint color_as_uint = *cast(uint*)(&color); _gradient.addStop(offset, color_as_uint); } package: enum Type { linear, radial, elliptical, angular, } Type type; void reset() { _gradient.reset(); } float x0, y0, x1, y1, r2; Gradient _gradient; }
D
/******************************************************************************* copyright: Copyright (c) 2004 Kris Bell. All rights reserved license: BSD style: $(LICENSE) version: Aug 2011: Druntime ready for D2 author: Kris *******************************************************************************/ module hurt.net.socketset; private import core.sys.posix.sys.select; private import core.sys.posix.sys.time; private import hurt.net.iselectable; private import hurt.net.socket; /******************************************************************************* a set of sockets for Socket.select() *******************************************************************************/ public class SocketSet { private size_t nbytes; //Win32: excludes uint.size "count" private byte* buf; version(Windows) { uint count() { return *(cast(uint*)buf); } void count(int setter) { *(cast(uint*)buf) = setter; } socket_t* first() { return cast(socket_t*)(buf + uint.sizeof); } } else version (Posix) { private import core.bitop; size_t nfdbits; socket_t _maxfd = 0; size_t fdelt(socket_t s) { return cast(size_t)s / nfdbits; } size_t fdmask(socket_t s) { return 1 << cast(size_t)s % nfdbits; } size_t* first() { return cast(size_t*)buf; } public socket_t maxfd() { return _maxfd; } } public: this (uint max) { version(Win32) { nbytes = max * socket_t.sizeof; buf = (new byte[nbytes + uint.sizeof]).ptr; count = 0; } else version (Posix) { if (max <= 32) nbytes = 32 * uint.sizeof; else nbytes = max * uint.sizeof; buf = (new byte[nbytes]).ptr; nfdbits = nbytes * 8; //clear(); //new initializes to 0 } else { static assert(0); } } this (SocketSet o) { nbytes = o.nbytes; auto size = nbytes; version (Win32) size += uint.sizeof; version (Posix) { nfdbits = o.nfdbits; _maxfd = o._maxfd; } auto b = new byte[size]; b[] = o.buf[0..size]; buf = b.ptr; } this() { version(Win32) { this(64); } else version (Posix) { this(32); } else { static assert(0); } } SocketSet dup() { return new SocketSet (this); } SocketSet reset() { version(Win32) { count = 0; } else version (Posix) { buf[0 .. nbytes] = 0; _maxfd = 0; } else { static assert(0); } return this; } void add(socket_t s) in { version(Win32) { assert(count < max); //added too many sockets; specify a higher max in the constructor } } body { version(Win32) { uint c = count; first[c] = s; count = c + 1; } else version (Posix) { if (s > _maxfd) _maxfd = s; bts(cast(size_t*)&first[fdelt(s)], cast(size_t)s % nfdbits); } else { static assert(0); } } void add(ISelectable selectable) { add(cast(socket_t)selectable.handle); } void remove(socket_t s) { version(Win32) { uint c = count; socket_t* start = first; socket_t* stop = start + c; for(; start != stop; start++) { if(*start == s) goto found; } return; //not found found: for(++start; start != stop; start++) { *(start - 1) = *start; } count = c - 1; } else version (Posix) { btr(cast(size_t*)&first[fdelt(s)], cast(size_t)s % nfdbits); // If we're removing the biggest file descriptor we've // entered so far we need to recalculate this value // for the socket set. if (s == _maxfd) { while (--_maxfd >= 0) { if (isSet(_maxfd)) { break; } } } } else { static assert(0); } } void remove(ISelectable selectable) { remove(cast(socket_t)selectable.handle); } size_t isSet(socket_t s) { version(Win32) { socket_t* start = first; socket_t* stop = start + count; for(; start != stop; start++) { if(*start == s) return true; } return false; } else version (Posix) { //return bt(cast(uint*)&first[fdelt(s)], cast(uint)s % nfdbits); size_t index = cast(size_t)s % nfdbits; return (cast(size_t*)&first[fdelt(s)])[index / (uint.sizeof*8)] & (1 << (index & ((uint.sizeof*8) - 1))); } else { static assert(0); } } size_t isSet(ISelectable selectable) { return isSet(cast(socket_t)selectable.handle); } size_t max() { return nbytes / socket_t.sizeof; } fd_set* toFd_set() { return cast(fd_set*)buf; } }
D
import tango.io.Stdout; uint even(uint n) { return n/2; } uint odd(uint n) { return (3 * n) + 1; } uint seq(uint n) { uint i; while(n != 1) { if(!(n & 1)) n = even(n); else n = odd(n); i++; } return i; } void main() { int i = 13; uint n, m, l; for(; i <= 1000000; i++) { n = seq(i); if(n > m) { l = i; m = n; } } Stdout.formatln("{}", l); }
D
/* Copyright 2006, 2007 Kirk McDonald 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. */ /** Contains utilities for wrapping D classes. */ module pyd.class_wrap; import deimos.python.Python; import std.traits; import std.conv; import std.functional; import std.typetuple; import pyd.util.typelist; import pyd.util.typeinfo; import pyd.references; import pyd.ctor_wrap; import pyd.def; import pyd.exception; import pyd.func_wrap; import pyd.make_object; import pyd.make_wrapper; import pyd.op_wrap; import pyd.struct_wrap; version(Pyd_with_StackThreads) static assert(0, "sorry - stackthreads are gone"); PyTypeObject*[ClassInfo] wrapped_classes; template shim_class(T) { PyTypeObject* shim_class; } // kill template wrapped_class_object(T) { alias PyObject wrapped_class_object; } void init_PyTypeObject(T)(ref PyTypeObject tipo) { Py_SET_REFCNT(&tipo, 1); tipo.tp_dealloc = &wrapped_methods!(T).wrapped_dealloc; tipo.tp_new = &wrapped_methods!(T).wrapped_new; } // The list of wrapped methods for this class. template wrapped_method_list(T) { PyMethodDef[] wrapped_method_list = [ { null, null, 0, null } ]; } // The list of wrapped properties for this class. template wrapped_prop_list(T) { static PyGetSetDef[] wrapped_prop_list = [ { null, null, null, null, null } ]; } //-/////////////////// // STANDARD METHODS // //-/////////////////// // Various wrapped methods template wrapped_methods(T) { /// The generic "__new__" method extern(C) PyObject* wrapped_new(PyTypeObject* type, PyObject* args, PyObject* kwds) { return type.tp_alloc(type, 0); } // The generic dealloc method. extern(C) void wrapped_dealloc(PyObject* self) { // EMN: the *&%^^%! generic dealloc method is triggering a call to // *&^%*%(! malloc for that delegate during a @(*$76*&! // garbage collection // Solution: don't use a *&%%^^! delegate in a destructor! static struct StackDelegate{ PyObject* x; void dg() { remove_pyd_mapping!T(x); x.ob_type.tp_free(x); } } StackDelegate x; x.x = self; exception_catcher_nogc(&x.dg); } } // why we no use method_wrap ? template wrapped_repr(T, alias fn) { import std.string: format; static assert(constCompatible(constness!T, constness!(typeof(fn))), format("constness mismatch instance: %s function: %s", T.stringof, typeof(fn).stringof)); alias dg_wrapper!(T, typeof(&fn)) get_dg; /// The default repr method calls the class's toString. extern(C) PyObject* repr(PyObject* self) { return exception_catcher(delegate PyObject*() { auto dg = get_dg(get_d_reference!T(self), &fn); return d_to_python(dg()); }); } } private template ID(A){ alias A ID; } private struct CW(A...){ alias A C; } template IsProperty(alias T) { enum bool IsProperty = (functionAttributes!(T) & FunctionAttribute.property) != 0; } template IsGetter(alias T) { enum bool IsGetter = ParameterTypeTuple!T .length == 0 && !is(ReturnType!T == void); } template IsSetter(RT) { template IsSetter(alias T) { enum bool IsSetter = ParameterTypeTuple!T .length == 1 && is(ParameterTypeTuple!(T)[0] == RT); } } template IsAnySetter(alias T) { enum bool IsAnySetter = ParameterTypeTuple!T .length == 1; } // This template gets an alias to a property and derives the types of the // getter form and the setter form. It requires that the getter form return the // same type that the setter form accepts. struct property_parts(alias p, string _mode) { import std.algorithm: countUntil; import std.string: format; alias ID!(__traits(parent, p)) Parent; enum nom = __traits(identifier, p); alias TypeTuple!(__traits(getOverloads, Parent, nom)) Overloads; static if(_mode == "" || countUntil(_mode, "r") != -1) { alias Filter!(IsGetter,Overloads) Getters; static if(_mode == "" && Getters.length == 0) { enum isgproperty = false; enum rmode = ""; }else { static assert(Getters.length != 0, format!("can't find property %s.%s getter", Parent.stringof, nom)); static assert(Getters.length == 1, format!("can't handle property overloads of %s.%s getter (types %s)", Parent.stringof, nom, staticMap!(ReturnType,Getters).stringof)); alias Getters[0] GetterFn; alias typeof(&GetterFn) getter_type; enum isgproperty = IsProperty!GetterFn; enum rmode = "r"; } }else { enum isgproperty = false; enum rmode = ""; } //enum bool pred1 = _mode == "" || countUntil(_mode, "w") != -1; static if(_mode == "" || countUntil(_mode, "w") != -1) { static if(rmode == "r") { alias Filter!(IsSetter!(ReturnType!getter_type), Overloads) Setters; }else { alias Filter!(IsAnySetter, Overloads) Setters; } //enum bool pred2 = _mode == "" && Setters.length == 0; static if(_mode == "" && Setters.length == 0) { enum bool issproperty = false; enum string wmode = ""; }else{ static assert(Setters.length != 0, format("can't find property %s.%s setter", Parent.stringof, nom)); static assert(Setters.length == 1, format("can't handle property overloads of %s.%s setter %s", Parent.stringof, nom, Setters.stringof)); alias Setters[0] SetterFn; alias typeof(&SetterFn) setter_type; static if(rmode == "r") { static assert(!(IsProperty!GetterFn ^ IsProperty!(Setters[0])), format("%s.%s: getter and setter must both be @property or not @property", Parent.stringof, nom)); } enum issproperty = IsProperty!SetterFn; enum wmode = "w"; } }else{ enum issproperty = false; enum wmode = ""; } static if(rmode != "") { alias ReturnType!(GetterFn) Type; }else static if(wmode != "") { alias ParameterTypeTuple!(SetterFn)[0] Type; } enum mode = rmode ~ wmode; enum bool isproperty = isgproperty || issproperty; } // template wrapped_get(string fname, T, Parts) { // A generic wrapper around a "getter" property. extern(C) PyObject* func(PyObject* self, void* closure) { // method_wrap already catches exceptions return method_wrap!(T, Parts.GetterFn, fname).func(self, null, null); } } // template wrapped_set(string fname, T, Parts) { // A generic wrapper around a "setter" property. extern(C) int func(PyObject* self, PyObject* value, void* closure) { PyObject* temp_tuple = PyTuple_New(1); if (temp_tuple is null) return -1; scope(exit) Py_DECREF(temp_tuple); Py_INCREF(value); PyTuple_SetItem(temp_tuple, 0, value); PyObject* res = method_wrap!(T, Parts.SetterFn, fname).func(self, temp_tuple, null); // If we get something back, we need to DECREF it. if (res) Py_DECREF(res); // If we don't, propagate the exception else return -1; // Otherwise, all is well. return 0; } } //-/////////////////////////// // CLASS WRAPPING INTERFACE // //-/////////////////////////// //enum ParamType { Def, StaticDef, Property, Init, Parent, Hide, Iter, AltIter } struct DoNothing { static void call(string classname, T) () {} } /** Wraps a member function of the class. Supports default arguments, typesafe variadic arguments, and python's keyword arguments. Params: fn = The member function to wrap. Options = Optional parameters. Takes Docstring!(docstring), PyName!(pyname), and fn_t. fn_t: The type of the function. It is only useful to specify this if more than one function has the same name as this one. pyname: The name of the function as it will appear in Python. Defaults to fn's name in D docstring: The function's docstring. Defaults to "". */ struct Def(alias fn, Options...) { alias Args!("","", __traits(identifier,fn), "",Options) args; static if(args.rem.length) { alias args.rem[0] fn_t; }else { alias typeof(&fn) fn_t; } mixin _Def!(fn, args.pyname, fn_t, args.docstring); } template _Def(alias _fn, string name, fn_t, string docstring) { alias def_selector!(_fn,fn_t).FN func; static assert(!__traits(isStaticFunction, func)); // TODO static assert((functionAttributes!fn_t & ( FunctionAttribute.nothrow_| FunctionAttribute.pure_| FunctionAttribute.trusted| FunctionAttribute.safe)) == 0, "pyd currently does not support pure, nothrow, @trusted, or @safe member functions"); alias /*StripSafeTrusted!*/fn_t func_t; enum realname = __traits(identifier,func); enum funcname = name; enum min_args = minArgs!(func); enum bool needs_shim = false; static void call(string classname, T) () { alias ApplyConstness!(T, constness!(typeof(func))) cT; static PyMethodDef empty = { null, null, 0, null }; alias wrapped_method_list!(T) list; list[$-1].ml_name = (name ~ "\0").ptr; list[$-1].ml_meth = cast(PyCFunction) &method_wrap!(cT, func, classname ~ "." ~ name).func; list[$-1].ml_flags = METH_VARARGS | METH_KEYWORDS; list[$-1].ml_doc = (docstring~"\0").ptr; list ~= empty; // It's possible that appending the empty item invalidated the // pointer in the type struct, so we renew it here. PydTypeObject!(T).tp_methods = list.ptr; } template shim(size_t i, T) { import pyd.util.replace: Replace; enum shim = Replace!(q{ alias Params[$i] __pyd_p$i; $override ReturnType!(__pyd_p$i.func_t) $realname(ParameterTypeTuple!(__pyd_p$i.func_t) t) $attrs { return __pyd_get_overload!("$realname", __pyd_p$i.func_t).func!(ParameterTypeTuple!(__pyd_p$i.func_t))("$name", t); } alias T.$realname $realname; }, "$i",i,"$realname",realname, "$name", name, "$attrs", attrs_to_string(functionAttributes!func_t) ~ " " ~ tattrs_to_string!(func_t)(), "$override", // todo: figure out what's going on here (variadicFunctionStyle!func == Variadic.no ? "override":"")); } } /** Wraps a static member function of the class. Similar to pyd.def.def Supports default arguments, typesafe variadic arguments, and python's keyword arguments. Params: fn = The member function to wrap. Options = Optional parameters. Takes Docstring!(docstring), PyName!(pyname), and fn_t fn_t: The type of the function. It is only useful to specify this if more than one function has the same name as this one. pyname: The name of the function as it will appear in Python. Defaults to fn's name in D. docstring: The function's docstring. Defaults to "". */ struct StaticDef(alias fn, Options...) { alias Args!("","", __traits(identifier,fn), "",Options) args; static if(args.rem.length) { alias args.rem[0] fn_t; }else { alias typeof(&fn) fn_t; } mixin _StaticDef!(fn, args.pyname, fn_t, args.docstring); } mixin template _StaticDef(alias fn, string name, fn_t, string docstring) { alias def_selector!(fn,fn_t).FN func; static assert(__traits(isStaticFunction, func)); // TODO alias /*StripSafeTrusted!*/fn_t func_t; enum funcname = name; enum bool needs_shim = false; static void call(string classname, T) () { //pragma(msg, "class.static_def: " ~ name); static PyMethodDef empty = { null, null, 0, null }; alias wrapped_method_list!(T) list; list[$-1].ml_name = (name ~ "\0").ptr; list[$-1].ml_meth = cast(PyCFunction) &function_wrap!(func, classname ~ "." ~ name).func; list[$-1].ml_flags = METH_VARARGS | METH_STATIC | METH_KEYWORDS; list[$-1].ml_doc = (docstring~"\0").ptr; list ~= empty; PydTypeObject!(T).tp_methods = list.ptr; } template shim(size_t i,T) { enum shim = ""; } } /** Wraps a property of the class. Params: fn = The property to wrap. Options = Optional parameters. Takes Docstring!(docstring), PyName!(pyname), and Mode!(mode) pyname: The name of the property as it will appear in Python. Defaults to fn's name in D. mode: specifies whether this property is readable, writable. possible values are "r", "w", "rw", and "" (in the latter case, automatically determine which mode to use based on availability of getter and setter forms of fn). Defaults to "". docstring: The function's docstring. Defaults to "". */ struct Property(alias fn, Options...) { alias Args!("","", __traits(identifier,fn), "",Options) args; static assert(args.rem.length == 0, "Propery takes no other parameter"); mixin _Property!(fn, args.pyname, args.mode, args.docstring); } template _Property(alias fn, string pyname, string _mode, string docstring) { import std.algorithm: countUntil; alias property_parts!(fn, _mode) parts; static if(parts.isproperty) { mixin _Member!(parts.nom, pyname, parts.mode, docstring, parts); template shim(size_t i, T) { enum shim = ""; } }else { static if(countUntil(parts.mode,"r") != -1) { alias parts.getter_type get_t; } static if(countUntil(parts.mode,"w") != -1) { alias parts.setter_type set_t; } enum realname = __traits(identifier, fn); enum funcname = pyname; enum bool needs_shim = false; static void call(string classname, T) () { static PyGetSetDef empty = { null, null, null, null, null }; wrapped_prop_list!(T)[$-1].name = (pyname ~ "\0").dup.ptr; static if (countUntil(parts.mode, "r") != -1) { alias ApplyConstness!(T, constness!(typeof(parts.GetterFn))) cT_g; wrapped_prop_list!(T)[$-1].get = &wrapped_get!(classname ~ "." ~ pyname, cT_g, parts).func; } static if (countUntil(parts.mode, "w") != -1) { alias ApplyConstness!(T, constness!(typeof(parts.SetterFn))) cT_s; wrapped_prop_list!(T)[$-1].set = &wrapped_set!(classname ~ "." ~ pyname,cT_s, parts).func; } wrapped_prop_list!(T)[$-1].doc = (docstring~"\0").dup.ptr; wrapped_prop_list!(T)[$-1].closure = null; wrapped_prop_list!(T) ~= empty; // It's possible that appending the empty item invalidated the // pointer in the type struct, so we renew it here. PydTypeObject!(T).tp_getset = wrapped_prop_list!(T).ptr; } template shim(size_t i, T) { import pyd.util.replace: Replace; static if(countUntil(parts.mode, "r") != -1) { enum getter = Replace!(q{ override ReturnType!(__pyd_p$i.get_t) $realname() { return __pyd_get_overload!("$realname", __pyd_p$i.get_t).func("$name"); } } , "$i",i,"$realname",realname, "$name", pyname); }else{ enum getter = ""; } static if(countUntil(parts.mode, "w") != -1) { enum setter = Replace!(q{ override ReturnType!(__pyd_p$i.set_t) $realname(ParameterTypeTuple!(__pyd_p$i.set_t) t) { return __pyd_get_overload!("$realname", __pyd_p$i.set_t).func("$name", t); } }, "$i", i, "$realname",realname, "$name", pyname); }else { enum setter = ""; } enum shim = Replace!(q{ alias Params[$i] __pyd_p$i; $getter $setter; }, "$i",i, "$getter", getter, "$setter",setter); } } } /** Wraps a method as the class's ___repr__ in Python. Params: _fn = The property to wrap. Must have the signature string function(). */ struct Repr(alias _fn) { alias def_selector!(_fn, string function()).FN fn; enum bool needs_shim = false; static void call(string classname, T)() { alias ApplyConstness!(T, constness!(typeof(fn))) cT; alias PydTypeObject!(T) type; type.tp_repr = &wrapped_repr!(cT, fn).repr; } template shim(size_t i,T) { enum shim = ""; } } /** Wraps the constructors of the class. This template takes a single specialization of the ctor template (see ctor_wrap.d), which describes a constructor that the class supports. The default constructor need not be specified, and will always be available if the class supports it. Supports default arguments, typesafe variadic arguments, and python's keyword arguments. Params: cps = Parameter list of the constructor to be wrapped. Bugs: This currently does not support having multiple constructors with the same number of arguments. */ struct Init(cps ...) { alias cps CtorParams; enum bool needs_shim = false; template Inner(T) { import std.string: format; alias NewParamT!T BaseT; alias TypeTuple!(__traits(getOverloads, BaseT, "__ctor")) Overloads; template IsDesired(alias ctor) { alias ParameterTypeTuple!ctor ps; enum bool IsDesired = is(ps == CtorParams); } alias Filter!(IsDesired, Overloads) VOverloads; static if(VOverloads.length == 0) { template concatumStrings(s...) { static if(s.length == 0) { enum concatumStrings = ""; }else { enum concatumStrings = T.stringof ~ (ParameterTypeTuple!(s[0])).stringof ~ "\n" ~ concatumStrings!(s[1 .. $]); } } alias allOverloadsString = concatumStrings!(Overloads); static assert(false, format("%s: Cannot find constructor with params %s among\n %s", T.stringof, CtorParams.stringof, allOverloadsString)); }else{ alias VOverloads[0] FN; alias ParameterTypeTuple!FN Pt; //https://issues.dlang.org/show_bug.cgi?id=17192 //alias ParameterDefaultValueTuple!FN Pd; import pyd.util.typeinfo : WorkaroundParameterDefaults; alias Pd = WorkaroundParameterDefaults!FN; } } static void call(string classname, T)() { } template shim(size_t i, T) { import pyd.util.replace: Replace; import std.string: format; enum params = getparams!(Inner!T.FN, format("__pyd_p%s.Inner!T.Pt",i), format("__pyd_p%s.Inner!T.Pd",i)); alias ParameterIdentifierTuple!(Inner!T.FN) paramids; enum shim = Replace!(q{ alias Params[$i] __pyd_p$i; this($params) { super($ids); } }, "$i", i, "$params", params, "$ids", Join!(",", paramids)); } } template IsInit(T) { enum bool IsInit = __traits(hasMember, T, "CtorParams"); } enum binaryslots = [ "+": "type.tp_as_number.nb_add", "+=": "type.tp_as_number.nb_inplace_add", "-": "type.tp_as_number.nb_subtract", "-=": "type.tp_as_number.nb_inplace_subtract", "*": "type.tp_as_number.nb_multiply", "*=": "type.tp_as_number.nb_inplace_multiply", "/": "type.tp_as_number.nb_divide", "/=": "type.tp_as_number.nb_inplace_divide", "%": "type.tp_as_number.nb_remainder", "%=": "type.tp_as_number.nb_inplace_remainder", "^^": "type.tp_as_number.nb_power", "^^=": "type.tp_as_number.nb_inplace_power", "<<": "type.tp_as_number.nb_lshift", "<<=": "type.tp_as_number.nb_inplace_lshift", ">>": "type.tp_as_number.nb_rshift", ">>=": "type.tp_as_number.nb_inplace_rshift", "&": "type.tp_as_number.nb_and", "&=": "type.tp_as_number.nb_inplace_and", "^": "type.tp_as_number.nb_xor", "^=": "type.tp_as_number.nb_inplace_xor", "|": "type.tp_as_number.nb_or", "|=": "type.tp_as_number.nb_inplace_or", "~": "type.tp_as_sequence.sq_concat", "~=": "type.tp_as_sequence.sq_inplace_concat", "in": "type.tp_as_sequence.sq_contains", ]; string getBinarySlot(string op) { version(Python_3_0_Or_Later) { if (op == "/") return "type.tp_as_number.nb_true_divide"; if (op == "/=") return "type.tp_as_number.nb_inplace_true_divide"; } return binaryslots[op]; } bool IsPyBinary(string op) { foreach(_op, slot; binaryslots) { if (op[$-1] != '=' && op == _op) return true; } return false; } bool IsPyAsg(string op0) { auto op = op0~"="; foreach(_op, slot; binaryslots) { if (op == _op) return true; } return false; } enum unaryslots = [ "+": "type.tp_as_number.nb_positive", "-": "type.tp_as_number.nb_negative", "~": "type.tp_as_number.nb_invert", ]; bool IsPyUnary(string op) { foreach(_op, slot; unaryslots) { if(op == _op) return true; } return false; } // string mixin to initialize tp_as_number or tp_as_sequence or tp_as_mapping // if necessary. Scope mixed in must have these variables: // slot: a value from binaryslots or unaryslots // type: a PyObjectType. string autoInitializeMethods() { return q{ import std.algorithm: countUntil; static if(countUntil(slot, "tp_as_number") != -1) { if(type.tp_as_number is null) type.tp_as_number = new PyNumberMethods; }else static if(countUntil(slot, "tp_as_sequence") != -1) { if(type.tp_as_sequence is null) type.tp_as_sequence = new PySequenceMethods; }else static if(countUntil(slot, "tp_as_mapping") != -1) { if(type.tp_as_mapping is null) type.tp_as_mapping = new PyMappingMethods; } }; } private struct Guess{} struct BinaryOperatorX(string _op, bool isR, rhs_t) { enum op = _op; enum isRight = isR; static if(isR) enum nom = "opBinaryRight"; else enum nom = "opBinary"; enum bool needs_shim = false; template Inner(C) { import std.string: format; enum fn_str1 = "Alias!(C."~nom~"!(op))"; enum fn_str2 = "C."~nom~"!(op,rhs_t)"; enum string OP = op; static if(!__traits(hasMember, C, nom)) { static assert(0, C.stringof ~ " has no "~(isR ?"reflected ":"")~ "binary operator overloads"); } template Alias(alias fn) { alias fn Alias; } static if(is(typeof(mixin(fn_str1)) == function)) { static if(_op == "/") { pragma(msg, "getted here 1"); pragma(msg, C.stringof); } alias ParameterTypeTuple!(typeof(mixin(fn_str1)))[0] RHS_T; alias ReturnType!(typeof(mixin(fn_str1))) RET_T; mixin("alias " ~ fn_str1 ~ " FN;"); static if(!is(rhs_t == Guess)) static assert(is(RHS_T == rhs_t), format("expected typeof(rhs) = %s, found %s", rhs_t.stringof, RHS_T.stringof)); }else static if(is(rhs_t == Guess)) { static assert(false, format("Operator %s: Cannot determine type of rhs", op)); } else static if(is(typeof(mixin(fn_str2)) == function)) { alias rhs_t RHS_T; alias ReturnType!(typeof(mixin(fn_str2))) RET_T; mixin("alias "~fn_str2~" FN;"); } else static assert(false, "Cannot get operator overload"); } static void call(string classname, T)() { // can't handle __op__ __rop__ pairs here } template shim(size_t i, T) { // bah enum shim = ""; } } /** Wrap a binary operator overload. Example: --- class Foo{ int _j; int opBinary(string op)(int i) if(op == "+"){ return i+_j; } int opBinaryRight(string op)(int i) if(op == "+"){ return i+_j; } } class_wrap!(Foo, OpBinary!("+"), OpBinaryRight!("+")); --- Params: op = Operator to wrap rhs_t = (optional) Type of opBinary's parameter for disambiguation if there are multiple overloads. Bugs: Issue 8602 prevents disambiguation for case X opBinary(string op, T)(T t); */ template OpBinary(string op, rhs_t = Guess) if(IsPyBinary(op) && op != "in"){ alias BinaryOperatorX!(op, false, rhs_t) OpBinary; } /// ditto template OpBinaryRight(string op, lhs_t = Guess) if(IsPyBinary(op)) { alias BinaryOperatorX!(op, true, lhs_t) OpBinaryRight; } /** Wrap a unary operator overload. */ struct OpUnary(string _op) if(IsPyUnary(_op)) { enum op = _op; enum bool needs_shim = false; template Inner(C) { enum string OP = op; static if(!__traits(hasMember, C, "opUnary")) { static assert(0, C.stringof ~ " has no unary operator overloads"); } static if(is(typeof(C.init.opUnary!(op)) == function)) { alias ReturnType!(C.opUnary!(op)) RET_T; alias C.opUnary!(op) FN; } else static assert(false, "Cannot get operator overload"); } static void call(string classname, T)() { alias PydTypeObject!T type; enum slot = unaryslots[op]; mixin(autoInitializeMethods()); mixin(slot ~ " = &opfunc_unary_wrap!(T, Inner!T .FN).func;"); } template shim(size_t i,T) { // bah enum shim = ""; } } /** Wrap an operator assignment overload. Example: --- class Foo{ int _j; void opOpAssign(string op)(int i) if(op == "+"){ _j = i; } } class_wrap!(Foo, OpAssign!("+")); --- Params: _op = Base operator to wrap rhs_t = (optional) Type of opOpAssign's parameter for disambiguation if there are multiple overloads. */ struct OpAssign(string _op, rhs_t = Guess) if(IsPyAsg(_op)) { enum op = _op~"="; enum bool needs_shim = false; template Inner(C) { import std.string: format; enum string OP = op; static if(!__traits(hasMember, C, "opOpAssign")) { static assert(0, C.stringof ~ " has no operator assignment overloads"); } static if(is(typeof(C.init.opOpAssign!(_op)) == function)) { alias ParameterTypeTuple!(typeof(C.opOpAssign!(_op)))[0] RHS_T; alias ReturnType!(typeof(C.opOpAssign!(_op))) RET_T; alias C.opOpAssign!(_op) FN; static if(!is(rhs_t == Guess)) static assert(is(RHS_T == rhs_t), format("expected typeof(rhs) = %s, found %s", rhs_t.stringof, RHS_T.stringof)); }else static if(is(rhs_t == Guess)) { static assert(false, "Cannot determine type of rhs"); } else static if(is(typeof(C.opOpAssign!(_op,rhs_t)) == function)) { alias rhs_t RHS_T; alias ReturnType!(typeof(C.opOpAssign!(_op,rhs_t))) RET_T; alias C.opOpAssign!(_op,rhs_t) FN; } else static assert(false, "Cannot get operator assignment overload"); } static void call(string classname, T)() { alias PydTypeObject!T type; enum slot = getBinarySlot(op); mixin(autoInitializeMethods()); alias CW!(TypeTuple!(OpAssign)) OpAsg; alias CW!(TypeTuple!()) Nop; static if(op == "^^=") mixin(slot ~ " = &powopasg_wrap!(T, Inner!T.FN).func;"); else mixin(slot ~ " = &binopasg_wrap!(T, Inner!T.FN).func;"); } template shim(size_t i,T) { // bah enum shim = ""; } } // struct types could probably take any parameter type // class types must take Object /** Wrap opCmp. Params: _rhs_t = (optional) Type of opCmp's parameter for disambiguation if there are multiple overloads (for classes it will always be Object). */ struct OpCompare(_rhs_t = Guess) { enum bool needs_shim = false; template Inner(C) { import std.string: format; static if(is(_rhs_t == Guess) && is(C == class)) { alias Object rhs_t; }else { alias _rhs_t rhs_t; } static if(!__traits(hasMember, C, "opCmp")) { static assert(0, C.stringof ~ " has no comparison operator overloads"); } static if(!is(typeof(C.init.opCmp) == function)) { static assert(0, format("why is %s.opCmp not a function?",C)); } alias TypeTuple!(__traits(getOverloads, C, "opCmp")) Overloads; static if(is(rhs_t == Guess) && Overloads.length > 1) { static assert(0, format("Cannot choose between %s", Overloads)); }else static if(Overloads.length == 1) { static if(!is(rhs_t == Guess) && !is(ParameterTypeTuple!(Overloads[0])[0] == rhs_t)) { static assert(0, format("%s.opCmp: expected param %s, got %s", C, rhs_t, ParameterTypeTuple!(Overloads[0]))); }else{ alias Overloads[0] FN; } }else{ template IsDesiredOverload(alias fn) { enum bool IsDesiredOverload = is(ParameterTypeTuple!(fn)[0] == rhs_t); } alias Filter!(IsDesiredOverload, Overloads) Overloads1; static assert(Overloads1.length == 1, format("Cannot choose between %s", Overloads1)); alias Overloads1[0] FN; } } static void call(string classname, T)() { alias PydTypeObject!T type; alias ApplyConstness!(T, constness!(typeof(Inner!T.FN))) cT; type.tp_richcompare = &rich_opcmp_wrap!(cT, Inner!T.FN).func; } template shim(size_t i,T) { // bah enum shim = ""; } } /** Wrap opIndex, opIndexAssign. Params: index_t = (optional) Types of opIndex's parameters for disambiguation if there are multiple overloads. */ struct OpIndex(index_t...) { enum bool needs_shim = false; template Inner(C) { import std.string: format; static if(!__traits(hasMember, C, "opIndex")) { static assert(0, C.stringof ~ " has no index operator overloads"); } static if(is(typeof(C.init.opIndex) == function)) { alias TypeTuple!(__traits(getOverloads, C, "opIndex")) Overloads; static if(index_t.length == 0 && Overloads.length > 1) { static assert(0, format("%s.opIndex: Cannot choose between %s", C.stringof,Overloads.stringof)); }else static if(index_t.length == 0) { alias Overloads[0] FN; }else{ template IsDesiredOverload(alias fn) { enum bool IsDesiredOverload = is(ParameterTypeTuple!fn == index_t); } alias Filter!(IsDesiredOverload, Overloads) Overloads1; static assert(Overloads1.length == 1, format("%s.opIndex: Cannot choose between %s", C.stringof,Overloads1.stringof)); alias Overloads1[0] FN; } }else static if(is(typeof(C.init.opIndex!(index_t)) == function)) { alias C.opIndex!(index_t) FN; }else{ static assert(0, format("cannot get a handle on %s.opIndex", C.stringof)); } } static void call(string classname, T)() { /* alias PydTypeObject!T type; enum slot = "type.tp_as_mapping.mp_subscript"; mixin(autoInitializeMethods()); mixin(slot ~ " = &opindex_wrap!(T, Inner!T.FN).func;"); */ } template shim(size_t i,T) { // bah enum shim = ""; } } /// ditto struct OpIndexAssign(index_t...) { static assert(index_t.length != 1, "opIndexAssign must have at least 2 parameters"); enum bool needs_shim = false; template Inner(C) { import std.string: format; static if(!__traits(hasMember, C, "opIndexAssign")) { static assert(0, C.stringof ~ " has no index operator overloads"); } static if(is(typeof(C.init.opIndex) == function)) { alias TypeTuple!(__traits(getOverloads, C, "opIndexAssign")) Overloads; template IsValidOverload(alias fn) { enum bool IsValidOverload = ParameterTypeTuple!fn.length >= 2; } alias Filter!(IsValidOverload, Overloads) VOverloads; static if(VOverloads.length == 0 && Overloads.length != 0) static assert(0, "opIndexAssign must have at least 2 parameters"); static if(index_t.length == 0 && VOverloads.length > 1) { static assert(0, format("%s.opIndexAssign: Cannot choose between %s", C.stringof,VOverloads.stringof)); }else static if(index_t.length == 0) { alias VOverloads[0] FN; }else{ template IsDesiredOverload(alias fn) { enum bool IsDesiredOverload = is(ParameterTypeTuple!fn == index_t); } alias Filter!(IsDesiredOverload, VOverloads) Overloads1; static assert(Overloads1.length == 1, format("%s.opIndex: Cannot choose between %s", C.stringof,Overloads1.stringof)); alias Overloads1[0] FN; } }else static if(is(typeof(C.init.opIndexAssign!(index_t)) == function)) { alias C.opIndexAssign!(index_t) FN; }else{ static assert(0, format("cannot get a handle on %s.opIndexAssign", C.stringof)); } } static void call(string classname, T)() { /* alias PydTypeObject!T type; enum slot = "type.tp_as_mapping.mp_ass_subscript"; mixin(autoInitializeMethods()); mixin(slot ~ " = &opindexassign_wrap!(T, Inner!T.FN).func;"); */ } template shim(size_t i,T) { // bah enum shim = ""; } } /** Wrap opSlice. Requires signature --- Foo.opSlice(Py_ssize_t, Py_ssize_t); --- This is a limitation of the C/Python API. */ struct OpSlice() { enum bool needs_shim = false; template Inner(C) { import std.string: format; static if(!__traits(hasMember, C, "opSlice")) { static assert(0, C.stringof ~ " has no slice operator overloads"); } static if(is(typeof(C.init.opSlice) == function)) { alias TypeTuple!(__traits(getOverloads, C, "opSlice")) Overloads; template IsDesiredOverload(alias fn) { enum bool IsDesiredOverload = is(ParameterTypeTuple!fn == TypeTuple!(Py_ssize_t,Py_ssize_t)); } alias Filter!(IsDesiredOverload, Overloads) Overloads1; static assert(Overloads1.length != 0, format("%s.opSlice: must have overload %s", C.stringof,TypeTuple!(Py_ssize_t,Py_ssize_t).stringof)); static assert(Overloads1.length == 1, format("%s.opSlice: cannot choose between %s", C.stringof,Overloads1.stringof)); alias Overloads1[0] FN; }else{ static assert(0, format("cannot get a handle on %s.opSlice", C.stringof)); } } static void call(string classname, T)() { /* alias PydTypeObject!T type; enum slot = "type.tp_as_sequence.sq_slice"; mixin(autoInitializeMethods()); mixin(slot ~ " = &opslice_wrap!(T, Inner!T.FN).func;"); */ } template shim(size_t i,T) { // bah enum shim = ""; } } /** Wrap opSliceAssign. Requires signature --- Foo.opSliceAssign(Value,Py_ssize_t, Py_ssize_t); --- This is a limitation of the C/Python API. */ struct OpSliceAssign(rhs_t = Guess) { enum bool needs_shim = false; template Inner(C) { static if(!__traits(hasMember, C, "opSliceAssign")) { static assert(0, C.stringof ~ " has no slice assignment operator overloads"); } static if(is(typeof(C.init.opSliceAssign) == function)) { alias TypeTuple!(__traits(getOverloads, C, "opSliceAssign")) Overloads; template IsDesiredOverload(alias fn) { alias ParameterTypeTuple!fn ps; enum bool IsDesiredOverload = is(ps[1..3] == TypeTuple!(Py_ssize_t,Py_ssize_t)); } alias Filter!(IsDesiredOverload, Overloads) Overloads1; static assert(Overloads1.length != 0, format("%s.opSliceAssign: must have overload %s", C.stringof,TypeTuple!(Guess,Py_ssize_t,Py_ssize_t).stringof)); static if(is(rhs_t == Guess)) { static assert(Overloads1.length == 1, format("%s.opSliceAssign: cannot choose between %s", C.stringof,Overloads1.stringof)); alias Overloads1[0] FN; }else{ template IsDesiredOverload2(alias fn) { alias ParameterTypeTuple!fn ps; enum bool IsDesiredOverload2 = is(ps[0] == rhs_t); } alias Filter!(IsDesiredOverload2, Overloads1) Overloads2; static assert(Overloads2.length == 1, format("%s.opSliceAssign: cannot choose between %s", C.stringof,Overloads2.stringof)); alias Overloads2[0] FN; } }else{ static assert(0, format("cannot get a handle on %s.opSlice", C.stringof)); } } static void call(string classname, T)() { /* alias PydTypeObject!T type; enum slot = "type.tp_as_sequence.sq_ass_slice"; mixin(autoInitializeMethods()); mixin(slot ~ " = &opsliceassign_wrap!(T, Inner!T.FN).func;"); */ } template shim(size_t i,T) { // bah enum shim = ""; } } /** wrap opCall. The parameter types of opCall must be specified. */ struct OpCall(Args_t...) { enum bool needs_shim = false; template Inner(T) { import std.string: format; alias TypeTuple!(__traits(getOverloads, T, "opCall")) Overloads; template IsDesiredOverload(alias fn) { alias ParameterTypeTuple!fn ps; enum bool IsDesiredOverload = is(ps == Args_t); } alias Filter!(IsDesiredOverload, Overloads) VOverloads; static if(VOverloads.length == 0) { static assert(0, format("%s.opCall: cannot find signature %s", T.stringof, Args_t.stringof)); }else static if(VOverloads.length == 1){ alias VOverloads[0] FN; }else static assert(0, format("%s.%s: cannot choose between %s", T.stringof, nom, VOverloads.stringof)); } static void call(string classname, T)() { alias PydTypeObject!T type; alias Inner!T.FN fn; alias ApplyConstness!(T, constness!(typeof(fn))) cT; type.tp_call = &opcall_wrap!(cT, fn).func; } template shim(size_t i,T) { // bah enum shim = ""; } } /** Wraps Foo.length or another function as python's ___len__ function. Requires signature --- Py_ssize_t length(); --- This is a limitation of the C/Python API. */ template Len() { alias _Len!() Len; } /// ditto template Len(alias fn) { alias _Len!(fn) Len; } struct _Len(fnt...) { enum bool needs_shim = false; template Inner(T) { import std.string: format; static if(fnt.length == 0) { enum nom = "length"; }else{ enum nom = __traits(identifier, fnt[0]); } alias TypeTuple!(__traits(getOverloads, T, nom)) Overloads; template IsDesiredOverload(alias fn) { alias ParameterTypeTuple!fn ps; alias ReturnType!fn rt; enum bool IsDesiredOverload = isImplicitlyConvertible!(rt,Py_ssize_t) && ps.length == 0; } alias Filter!(IsDesiredOverload, Overloads) VOverloads; static if(VOverloads.length == 0 && Overloads.length != 0) { static assert(0, format("%s.%s must have signature %s", T.stringof, nom, (Py_ssize_t function()).stringof)); }else static if(VOverloads.length == 1){ alias VOverloads[0] FN; }else static assert(0, format("%s.%s: cannot choose between %s", T.stringof, nom, VOverloads.stringof)); } static void call(string classname, T)() { alias PydTypeObject!T type; enum slot = "type.tp_as_sequence.sq_length"; mixin(autoInitializeMethods()); mixin(slot ~ " = &length_wrap!(T, Inner!T.FN).func;"); } template shim(size_t i,T) { // bah enum shim = ""; } } template param1(C) { template param1(T) {alias ParameterTypeTuple!(T.Inner!C .FN)[0] param1; } } enum IsOp(A) = __traits(hasMember, A, "op"); template IsUn(A) { import std.algorithm: startsWith; enum IsUn = A.stringof.startsWith("OpUnary!"); } template IsBin(T...) { import std.algorithm: startsWith; static if(T[0].stringof.startsWith("BinaryOperatorX!")) enum bool IsBin = !T[0].isRight; else enum bool IsBin = false; } template IsBinR(T...) { import std.algorithm: startsWith; static if(T[0].stringof.startsWith("BinaryOperatorX!")) enum IsBinR = T[0].isRight; else enum IsBinR = false; } // handle all operator overloads. Ops must only contain operator overloads. struct Operators(Ops...) { import pyd.util.replace: Replace; enum bool needs_shim = false; template BinOp(string op, T) { enum IsThisOp(A) = A.op == op; alias Filter!(IsThisOp, Ops) Ops0; alias Filter!(IsBin, Ops0) OpsL; alias staticMap!(param1!T, OpsL) OpsLparams; static assert(OpsL.length <= 1, Replace!("Cannot overload $T1 $OP x with types $T2", "$OP", op, "$T1", T.stringof, "$T2", OpsLparams.stringof)); alias Filter!(IsBinR, Ops0) OpsR; alias staticMap!(param1, OpsR) OpsRparams; static assert(OpsR.length <= 1, Replace!("Cannot overload x $OP $T1 with types $T2", "$OP", op, "$T1", T.stringof, "$T2", OpsRparams.stringof)); static assert(op[$-1] != '=' || OpsR.length == 0, "Cannot reflect assignment operator"); static void call() { static if(OpsL.length + OpsR.length != 0) { alias PydTypeObject!T type; enum slot = getBinarySlot(op); mixin(autoInitializeMethods()); static if(op == "in") { mixin(slot ~ " = &inop_wrap!(T, CW!OpsL, CW!OpsR).func;"); }else static if(op == "^^" || op == "^^=") { mixin(slot ~ " = &powop_wrap!(T, CW!OpsL, CW!OpsR).func;"); }else { mixin(slot ~ " = &binop_wrap!(T, CW!OpsL, CW!OpsR).func;"); } } } } struct UnOp(string op, T) { import pyd.util.replace: Replace; enum IsThisOp(A) = A.op == op; alias Filter!(IsUn, Filter!(IsThisOp, Ops)) Ops1; static assert(Ops1.length <= 1, Replace!("Cannot have overloads of $OP$T1", "$OP", op, "$T1", T.stringof)); static void call() { static if(Ops1.length != 0) { alias PydTypeObject!T type; alias Ops1[0] Ops1_0; alias Ops1_0.Inner!T .FN fn; enum slot = unaryslots[op]; mixin(autoInitializeMethods()); mixin(slot ~ " = &opfunc_unary_wrap!(T, fn).func;"); } } } static void call(T)() { enum GetOp(A) = A.op; alias NoDuplicates!(staticMap!(GetOp, Ops)) str_op_tuple; enum binops = binaryslots.keys(); foreach(_op; str_op_tuple) { BinOp!(_op, T).call(); // noop if op is unary UnOp!(_op, T).call(); // noop if op is binary } } } struct Constructors(string classname, Ctors...) { enum bool needs_shim = true; static void call(T, Shim)() { alias PydTypeObject!T type; alias NewParamT!T U; static if(Ctors.length) { type.tp_init = &wrapped_ctors!(classname, T, Shim, Ctors).func; }else { // If a ctor wasn't supplied, try the default. // If the default ctor isn't available, and no ctors were supplied, // then this class cannot be instantiated from Python. // (Structs always use the default ctor.) static if (is(typeof(new U))) { static if (is(U == class)) { type.tp_init = &wrapped_init!(Shim).init; } else { type.tp_init = &wrapped_struct_init!(U).init; } } } } } template IsDef(string pyname) { template IsDef(Params...) { import std.algorithm: startsWith; static if(Params[0].stringof.startsWith("Def!") && __traits(hasMember,Params[0], "funcname")) { enum bool IsDef = (Params[0].funcname == pyname); }else{ enum bool IsDef = false; } } } struct Iterator(Params...) { alias Filter!(IsDef!"__iter__", Params) Iters; alias Filter!(IsDef!"next", Params) Nexts; enum bool needs_shim = false; static void call(T)() { alias PydTypeObject!T type; import std.range; static if(Iters.length == 1 && (Nexts.length == 1 || isInputRange!(ReturnType!(Iters[0].func)))) { version(Python_3_0_Or_Later) { }else{ type.tp_flags |= Py_TPFLAGS_HAVE_ITER; } type.tp_iter = &opiter_wrap!(T, Iters[0].func).func; static if(Nexts.length == 1) type.tp_iternext = &opiter_wrap!(T, Nexts[0].func).func; } } } template IsOpIndex(P...) { import std.algorithm: startsWith; enum bool IsOpIndex = P[0].stringof.startsWith("OpIndex!"); } template IsOpIndexAssign(P...) { import std.algorithm: startsWith; enum bool IsOpIndexAssign = P[0].stringof.startsWith("OpIndexAssign!"); } template IsOpSlice(P...) { import std.algorithm: startsWith; enum bool IsOpSlice = P[0].stringof.startsWith("OpSlice!"); } template IsOpSliceAssign(P...) { import std.algorithm: startsWith; enum bool IsOpSliceAssign = P[0].stringof.startsWith("OpSliceAssign!"); } template IsLen(P...) { import std.algorithm: startsWith; enum bool IsLen = P[0].stringof.startsWith("Len!"); } /* Extended slice syntax goes through mp_subscript, mp_ass_subscript, not sq_slice, sq_ass_slice. TODO: Python's extended slicing is more powerful than D's. We should expose this. */ struct IndexSliceMerge(Params...) { alias Filter!(IsOpIndex, Params) OpIndexs; alias Filter!(IsOpIndexAssign, Params) OpIndexAssigns; alias Filter!(IsOpSlice, Params) OpSlices; alias Filter!(IsOpSliceAssign, Params) OpSliceAssigns; alias Filter!(IsLen, Params) Lens; static assert(OpIndexs.length <= 1); static assert(OpIndexAssigns.length <= 1); static assert(OpSlices.length <= 1); static assert(OpSliceAssigns.length <= 1); static void call(T)() { alias PydTypeObject!T type; static if(OpIndexs.length + OpSlices.length) { { enum slot = "type.tp_as_mapping.mp_subscript"; mixin(autoInitializeMethods()); mixin(slot ~ " = &op_func!(T);"); } } static if(OpIndexAssigns.length + OpSliceAssigns.length) { { enum slot = "type.tp_as_mapping.mp_ass_subscript"; mixin(autoInitializeMethods()); mixin(slot ~ " = &ass_func!(T);"); } } } static extern(C) PyObject* op_func(T)(PyObject* self, PyObject* key) { import std.string: format; static if(OpIndexs.length) { version(Python_2_5_Or_Later) { Py_ssize_t i; if(!PyIndex_Check(key)) goto slice; i = PyNumber_AsSsize_t(key, PyExc_IndexError); }else{ C_long i; if(!PyInt_Check(key)) goto slice; i = PyLong_AsLong(key); } if(i == -1 && PyErr_Occurred()) { return null; } alias OpIndexs[0] OpIndex0; return opindex_wrap!(T, OpIndex0.Inner!T.FN).func(self, key); } slice: static if(OpSlices.length) { if(PySlice_Check(key)) { Py_ssize_t len = PyObject_Length(self); Py_ssize_t start, stop, step, slicelength; if(PySlice_GetIndicesEx(key, len, &start, &stop, &step, &slicelength) < 0) { return null; } if(step != 1) { PyErr_SetString(PyExc_TypeError, "slice steps not supported in D"); return null; } alias OpSlices[0] OpSlice0; return opslice_wrap!(T, OpSlice0.Inner!T.FN).func( self, start, stop); } } PyErr_SetString(PyExc_TypeError, format( "index type '%s' not supported\0", to!string(key.ob_type.tp_name)).ptr); return null; } static extern(C) int ass_func(T)(PyObject* self, PyObject* key, PyObject* val) { import std.string: format; static if(OpIndexAssigns.length) { version(Python_2_5_Or_Later) { Py_ssize_t i; if(!PyIndex_Check(key)) goto slice; i = PyNumber_AsSsize_t(key, PyExc_IndexError); }else{ C_long i; if(!PyInt_Check(key)) goto slice; i = PyLong_AsLong(key); } if(i == -1 && PyErr_Occurred()) { return -1; } alias OpIndexAssigns[0] OpIndexAssign0; return opindexassign_wrap!(T, OpIndexAssign0.Inner!T.FN).func( self, key, val); } slice: static if(OpSliceAssigns.length) { if(PySlice_Check(key)) { Py_ssize_t len = PyObject_Length(self); Py_ssize_t start, stop, step, slicelength; if(PySlice_GetIndicesEx(key, len, &start, &stop, &step, &slicelength) < 0) { return -1; } if(step != 1) { PyErr_SetString(PyExc_TypeError, "slice steps not supported in D"); return -1; } alias OpSliceAssigns[0] OpSliceAssign0; return opsliceassign_wrap!(T, OpSliceAssign0.Inner!T.FN).func( self, start, stop, val); } } PyErr_SetString(PyExc_TypeError, format( "assign index type '%s' not supported\0", to!string(key.ob_type.tp_name)).ptr); return -1; } } /* Params: each param is a Type which supports the interface Param.needs_shim == false => Param.call!(pyclassname, T) or Param.needs_shim == true => Param.call!(pyclassname,T, Shim) performs appropriate mutations to the PyTypeObject Param.shim!(i,T) for i : Params[i] == Param generates a string to be mixed in to Shim type where T is the type being wrapped, Shim is the wrapped type */ /** Wrap a class. Parameters: T = The class being wrapped. $(BR) Params = Mixture of definitions of members of T to be wrapped and optional arguments. $(BR) Concerning optional arguments, accepts $(BR) PyName!(pyname) The name of the class as it will appear in Python. Defaults to T's name in D $(BR) ModuleName!(modulename): The name of the python module in which the wrapped class resides. Defaults to "". $(BR) Docstring!(docstring): The class's docstring. Defaults to "". */ void wrap_class(T, Params...)() { alias Args!("","", __traits(identifier,T), "",Params) args; _wrap_class!(T, args.pyname, args.docstring, args.modulename, args.rem).wrap_class(); } template _wrap_class(_T, string name, string docstring, string modulename, Params...) { import std.conv; import pyd.util.typelist; static if (is(_T == class)) { //pragma(msg, "wrap_class: " ~ name); alias pyd.make_wrapper.make_wrapper!(_T, Params).wrapper shim_class; //alias W.wrapper shim_class; alias _T T; } else { //pragma(msg, "wrap_struct: '" ~ name ~ "'"); alias void shim_class; alias _T* T; } void wrap_class() { if(!Pyd_Module_p(modulename)) { if(should_defer_class_wrap(modulename, name)) { defer_class_wrap(modulename, name, toDelegate(&wrap_class)); return; } } alias PydTypeObject!(T) type; init_PyTypeObject!T(type); foreach (param; Params) { static if (param.needs_shim) { param.call!(name, T, shim_class)(); } else { param.call!(name,T)(); } } assert(Pyd_Module_p(modulename) !is null, "Must initialize module '" ~ modulename ~ "' before wrapping classes."); string module_name = to!string(PyModule_GetName(Pyd_Module_p(modulename))); ////////////////// // Basic values // ////////////////// Py_SET_TYPE(&type, &PyType_Type); type.tp_basicsize = PyObject.sizeof; type.tp_doc = (docstring ~ "\0").ptr; version(Python_3_0_Or_Later) { type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE; }else{ type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_CHECKTYPES; } //type.tp_repr = &wrapped_repr!(T).repr; type.tp_methods = wrapped_method_list!(T).ptr; type.tp_name = (module_name ~ "." ~ name ~ "\0").ptr; ///////////////// // Inheritance // ///////////////// // Inherit classes from their wrapped superclass. static if (is(T B == super)) { foreach (C; B) { static if (is(C == class) && !is(C == Object)) { if (is_wrapped!(C)) { type.tp_base = &PydTypeObject!(C); } } } } //////////////////////// // Operator overloads // //////////////////////// Operators!(Filter!(IsOp, Params)).call!T(); // its just that simple. IndexSliceMerge!(Params).call!T(); // indexing and slicing aren't exactly simple. ////////////////////////// // Constructor wrapping // ////////////////////////// Constructors!(name, Filter!(IsInit, Params)).call!(T, shim_class)(); ////////////////////////// // Iterator wrapping // ////////////////////////// Iterator!(Params).call!(T)(); ////////////////// // Finalization // ////////////////// if (PyType_Ready(&type) < 0) { throw new Exception("Couldn't ready wrapped type!"); } Py_INCREF(cast(PyObject*)&type); PyModule_AddObject(Pyd_Module_p(modulename), (name~"\0").ptr, cast(PyObject*)&type); is_wrapped!(T) = true; static if (is(T == class)) { is_wrapped!(shim_class) = true; wrapped_classes[T.classinfo] = &type; wrapped_classes[shim_class.classinfo] = &type; } } }
D
/Users/kennethharvey/Desktop/iPhoneApps/ECE158B_App/build/ECE158B_App.build/Debug-iphonesimulator/ECE158B_App.build/Objects-normal/x86_64/AppDelegate.o : /Users/kennethharvey/Desktop/iPhoneApps/ECE158B_App/ECE158B_App/ViewController.swift /Users/kennethharvey/Desktop/iPhoneApps/ECE158B_App/ECE158B_App/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/kennethharvey/Desktop/iPhoneApps/ECE158B_App/build/ECE158B_App.build/Debug-iphonesimulator/ECE158B_App.build/Objects-normal/x86_64/AppDelegate~partial.swiftmodule : /Users/kennethharvey/Desktop/iPhoneApps/ECE158B_App/ECE158B_App/ViewController.swift /Users/kennethharvey/Desktop/iPhoneApps/ECE158B_App/ECE158B_App/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/kennethharvey/Desktop/iPhoneApps/ECE158B_App/build/ECE158B_App.build/Debug-iphonesimulator/ECE158B_App.build/Objects-normal/x86_64/AppDelegate~partial.swiftdoc : /Users/kennethharvey/Desktop/iPhoneApps/ECE158B_App/ECE158B_App/ViewController.swift /Users/kennethharvey/Desktop/iPhoneApps/ECE158B_App/ECE158B_App/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
D
/** Grammar testing module for Pegged. */ module pegged.tester.grammartester; import std.stdio; import std.array; import std.ascii : whitespace; import std.range : retro; import std.algorithm : max, splitter; import std.string : format, stripRight, removechars, squeeze; import pegged.tester.testerparser; import pegged.grammar; class GrammarTester(grammar, string startSymbol) { bool soft = false; private Appender!string errorTextStream; private int numberTests; private int numberErrors; private string latestDiff; @property int testCount() { return numberTests; } @property int errorCount() { return numberErrors; } @property string errorText() { return errorTextStream.data; } @property string latestDiffText() { return latestDiff; } this() { reset(); } void reset() { errorTextStream = appender!string(); numberTests = 0; numberErrors = 0; } private void consumeResults(string file, size_t lineNo, bool pass, string diffText ) { numberTests++; if ( !pass ) { if ( !soft ) { assert(pass, diffText); } else { numberErrors++; errorTextStream.put("\n"); errorTextStream.put( "---------------------------\n"); errorTextStream.put(format("Assertion failed at %s(%s):\n",file,lineNo)); errorTextStream.put(diffText); } } } private bool runTest(string file, size_t lineNo, string textToParse, string desiredTreeRepresentation, bool invert ) { auto treeGot = grammar.decimateTree(mixin("grammar."~startSymbol~"(textToParse)")); auto treeChecker = TesterGrammar.decimateTree(TesterGrammar.Root(desiredTreeRepresentation)); /+writefln("%s",treeGot); writefln(""); writefln("%s",treeChecker); writefln("");+/ if ( !treeGot.successful ) consumeResults(file, lineNo, false, grammar.stringof ~ " failed to parse (left-hand-side). Details:\n" ~ treeGot.toString()); if ( !treeChecker.successful ) consumeResults(file, lineNo, false, "Failed to parse test expectation (right-hand-side). Details:\n" ~ treeChecker.toString()); if ( treeGot.successful && treeChecker.successful ) { auto ctx = getDifferencer(treeGot, treeChecker); latestDiff = ctx.diff(); bool pass; if ( invert ) pass = (ctx.differences != 0); else pass = (ctx.differences == 0); consumeResults(file, lineNo, pass, latestDiff); return pass; } else return false; } bool assertSimilar(string file = __FILE__, size_t lineNo = __LINE__) ( string textToParse, string desiredTreeRepresentation ) { return runTest(file, lineNo, textToParse, desiredTreeRepresentation, false); } bool assertDifferent(string file = __FILE__, size_t lineNo = __LINE__) ( string textToParse, string desiredTreeRepresentation ) { return runTest(file, lineNo, textToParse, desiredTreeRepresentation, true); } static auto getDifferencer(T,P)( auto ref T treeRoot, auto ref P patternRoot ) { Differencer!(T,P) t; t.treeRoot = &treeRoot; t.patternRoot = &patternRoot; return t; } } private struct Differencer(T,P) { size_t level = 0; size_t differences = 0; const(T)* treeRoot; const(P)* patternRoot; size_t max1stColumnWidth = 0; Appender!(string[]) leftColumn; Appender!(char[]) centerLine; Appender!(string[]) rightColumn; alias T TParseTree; alias P PParseTree; private string diff() { level = 0; differences = 0; max1stColumnWidth = 0; leftColumn = appender!(string[])(); centerLine = appender!(char[])(); rightColumn = appender!(string[])(); printColumns(" Nodes Found",'|'," Nodes Expected"); printColumns("", '|',""); diffNode(treeRoot,patternRoot); string[] lcolumn = leftColumn.data; char[] center = centerLine.data; string[] rcolumn = rightColumn.data; auto diffText = appender!string(); for ( size_t i = 0; i < lcolumn.length; i++ ) diffText.put(format("\n%-*s %c %s", max1stColumnWidth, lcolumn[i], center[i], rcolumn[i]).stripRight()); diffText.put("\n"); return diffText.data; } private void diffNode( const(T*) node, const(P*) pattern ) { assert(pattern); switch ( pattern.name ) { case "TesterGrammar.Root": diffNode(node, &pattern.children[0]); break; case "TesterGrammar.Node": lineDiff(node,pattern); // These will track which node children we have visited. size_t cursor = 0; bool[] visited = []; if ( node ) visited = new bool[node.children.length]; foreach ( ref flag; visited ) flag = false; // This will handle nodes that we expect to find as // children of this one. If these nodes don't exist, // then we throw out angry diff lines about them. string uniformBranchType = null; foreach ( branch; pattern.children ) { // Enforce uniform branch types. if ( uniformBranchType == null ) uniformBranchType = branch.name; else if ( branch.name != uniformBranchType ) throw new Exception( "It is forbidden to have both unordered and "~ "ordered branches from the same node."); // Note that we don't dereference the node's children: // the pattern child will be a Branch statement and // it will do the dereference for us. diffBranch(node, &branch, visited, cursor); } // This will handle nodes that the pattern doesn't expect // to find, but that we find anyways. Anything here // deserves a nice angry diff line about the extra node. level++; if ( node ) foreach( i, childNode; node.children ) { // TODO: rescanning the visit array this is probably slow. if ( visited[i] ) continue; traverseUnexpected(&node.children[i]); visited[i] = true; } level--; break; default: assert(0, "Unexpected element in pattern: "~pattern.name); } } private void traverseUnexpected( const(T*) node ) { assert(node); lineDiff(node, null); level++; foreach( child; node.children ) traverseUnexpected(&child); level--; } private void diffBranch( const(T*) node, const(P*) pattern, bool[] visited, ref size_t cursor ) { assert(pattern); switch ( pattern.name ) { case "TesterGrammar.OrderedBranch": level++; if ( node ) foreach ( patternChild; pattern.children ) { if ( cursor >= node.children.length ) { diffNode(null, &patternChild); } else { diffNode(&node.children[cursor], &patternChild); visited[cursor] = true; cursor++; } } level--; break; case "TesterGrammar.UnorderedBranch": level++; if ( node ) foreach ( i, patternChild; pattern.children ) { size_t foundIndex = size_t.max; // Cheap hack for now: 0(n^2) scan-in-scan. // // Ideally the parser will generate hints for locating // submatches: // GrammarName.childLocationHint( // GrammarName.ruleId!(RuleName), // GrammarName.ruleId!(ChildRuleName)); // Think about it... it should be possible to compile // this into integer table lookups, thus allowing us // to do what a compiler does with an AST: vtable // lookups followed by offset indexing to typed // fields which are sometimes (typed) arrays. // At that point things stay nice and dynamic while // being just as performant as oldschool methods. // foreach ( j, nodeChild; node.children ) { // TODO: rescanning the visit array this is probably slow. if ( visited[j] ) continue; if ( checkIdentifierMatch( &nodeChild, &patternChild ) ) { foundIndex = j; break; } } if ( foundIndex == size_t.max ) diffNode(null, &patternChild); else { diffNode(&node.children[foundIndex], &patternChild); visited[foundIndex] = true; } } level--; break; default: assert(0, "Unexpected element in pattern: "~pattern.name); } } private bool checkIdentifierMatch(const(T*) node, const(P*) pattern) { if ( !node || !pattern ) return false; auto splitNode = retro(splitter(node.name,'.')); auto splitPattern = retro(splitter(pattern.matches[0],'.')); while ( true ) { auto nodePathElem = splitNode.front; auto patternPathElem = splitPattern.front; splitNode.popFront(); splitPattern.popFront(); if ( nodePathElem != patternPathElem ) return false; if ( splitNode.empty || splitPattern.empty ) break; } return true; } private void lineDiff(const(T*) node, const(P*) expected) { if ( !checkIdentifierMatch( node, expected ) ) { differences++; printNodes(node, expected, true); } else printNodes(node, expected, false); } private string getNodeTxt(const(T*) node) { string nodeTxt = ""; if ( node ) nodeTxt = node.name; return replicate(" ",level) ~ nodeTxt; } private string getPatternTxt(const(P*) pattern) { string patternTxt = ""; if ( pattern ) patternTxt = pattern.matches[0]; return replicate(" ",level) ~ patternTxt; } private void printNodes(const(T*) node, const(P*) pattern, bool different) { auto nodeTxt = getNodeTxt(node); auto patternTxt = getPatternTxt(pattern); char diffLine = '='; if ( !node && pattern ) diffLine = '>'; else if ( node && !pattern ) diffLine = '<'; else if ( different ) diffLine = '|'; printColumns( nodeTxt, diffLine, patternTxt ); } private void printColumns( string ltext, char center, string rtext ) { max1stColumnWidth = max(max1stColumnWidth, ltext.length); leftColumn.put(ltext); centerLine.put(center); rightColumn.put(rtext); } } unittest { string normalizeStr(string str) { return removechars(str," \t").replace("\r","\n").squeeze("\n"); } auto tester = new GrammarTester!(TesterGrammar, "Root"); tester.soft = true; tester.assertSimilar(`foo`, `Root->Node`); tester.assertDifferent(`foo`, `Root`); tester.assertSimilar(`foo->bar`, `Root->Node->OrderedBranch->Node`); tester.assertDifferent(`foo->bar`, `Root->Node`); assert(normalizeStr(tester.latestDiff) == normalizeStr(` Nodes Found | Nodes Expected | TesterGrammar.Root = Root TesterGrammar.Node = Node TesterGrammar.OrderedBranch < TesterGrammar.Node < `)); tester.assertSimilar(`foo->{bar}`, `Root->Node->OrderedBranch->Node`); tester.assertDifferent(`foo->{bar}`, `Root->Node->UnorderedBranch->Node`); tester.assertSimilar(`foo~>{bar}`, `Root->Node->UnorderedBranch->Node`); tester.assertSimilar(`foo~>bar`, `Root->Node->UnorderedBranch->Node`); tester.assertSimilar(`foo->bar->baz`, `Root->Node ->OrderedBranch->Node ->OrderedBranch->Node `); tester.assertSimilar(`foo~>bar~>baz`, `Root->Node ->UnorderedBranch->Node ->UnorderedBranch->Node `); tester.assertSimilar(`foo->^bar->baz`, `Root->Node-> { OrderedBranch->Node OrderedBranch->Node } `); tester.assertSimilar(`foo->{^bar}->baz`, `Root->Node-> { OrderedBranch->Node OrderedBranch->Node } `); tester.assertSimilar(`foo~>^bar~>baz`, `Root->Node-> { UnorderedBranch->Node UnorderedBranch->Node } `); tester.assertSimilar(`foo~>{^bar}~>baz`, `Root->Node-> { UnorderedBranch->Node UnorderedBranch->Node } `); tester.assertSimilar(` FOO~> { Bar->baz } `,` /* FOO */ Root->Node /* Bar */ ->UnorderedBranch->Node /* baz */ ->OrderedBranch->Node `); tester.assertSimilar(` FOO~> { x->^y->^z u v Bar->baz } `,` /* FOO */ Root->Node-> /* */ UnorderedBranch-> /* */ { /* x */ Node~> /* */ { /* y */ OrderedBranch->Node /* z */ OrderedBranch->Node /* */ } /* u */ Node /* v */ Node /* Bar */ Node->OrderedBranch /* baz */ ->Node /* */ } `); tester.assertDifferent(` FOO~> { x->^y->^z u v Bar->baz } `,` /* FOO */ Root->Node-> /* */ UnorderedBranch-> /* */ { /* x */ Node->OrderedBranch~> /* */ { // There should actually be two ordered branches. /* y */ Node /*bug:z*/ Node /*bug:z*/ Node /* */ } /* */ } `); assert(normalizeStr(tester.latestDiff) == normalizeStr(` Nodes Found | Nodes Expected | TesterGrammar.Root = Root TesterGrammar.Node = Node TesterGrammar.UnorderedBranch = UnorderedBranch TesterGrammar.Node = Node TesterGrammar.OrderedBranch = OrderedBranch TesterGrammar.Node = Node > Node > Node TesterGrammar.OrderedBranch < TesterGrammar.Node < TesterGrammar.Node < TesterGrammar.Node < TesterGrammar.Node < TesterGrammar.OrderedBranch < TesterGrammar.Node < `)); assert(tester.testCount > 0); assert(tester.errorCount == 0); assert(tester.errorText == ""); tester = new GrammarTester!(TesterGrammar, "Root"); tester.soft = true; tester.assertSimilar(` FOO { x->^y->^z u v Bar->baz } `,` /* FOO */ Root->Node-> /* */ UnorderedBranch-> /* */ { /* x */ Node->OrderedBranch~> /* */ { // There should actually be two ordered branches. /* y */ Node /*not z*/ Node /*not z*/ Node /* */ } /* */ } `); assert(tester.testCount == 1); assert(tester.errorCount == 1); assert(tester.errorText.length > 0); } unittest { mixin(grammar(` Arithmetic: Term < Factor (Add / Sub)* Add < "+" Factor Sub < "-" Factor Factor < Primary (Mul / Div)* Mul < "*" Primary Div < "/" Primary Primary < Parens / Neg / Number / Variable Parens < :"(" Term :")" Neg < "-" Primary Number < ~([0-9]+) Variable <- identifier `)); auto arithmeticTester = new GrammarTester!(Arithmetic, "Term"); arithmeticTester.assertSimilar(`1 + 3`, ` Term-> { Factor->Primary->Number Add-> Factor->Primary->Number } `); arithmeticTester.assertSimilar(`1*2 + 3/4`, ` Term-> { Factor-> { Primary->Number Mul~> Primary->Number } Add-> Factor-> { Primary->Number Div~> Primary->Number } } `); } /+ For reference: +/
D
/***********************************************************************\ * richedit.d * * * * Windows API header module * * * * Translated from MinGW Windows headers * * * * Placed into public domain * \***********************************************************************/ module win32.richedit; private import win32.windef, win32.winuser; private import win32.wingdi; // for LF_FACESIZE align(4): version(Unicode) { const wchar[] RICHEDIT_CLASS = "RichEdit20W"; } else { const char[] RICHEDIT_CLASS = "RichEdit20A"; } const RICHEDIT_CLASS10A = "RICHEDIT"; const TCHAR[] CF_RTF = "Rich Text Format", CF_RTFNOOBJS = "Rich Text Format Without Objects", CF_RETEXTOBJ = "RichEdit Text and Objects"; const DWORD CFM_BOLD = 1, CFM_ITALIC = 2, CFM_UNDERLINE = 4, CFM_STRIKEOUT = 8, CFM_PROTECTED = 16, CFM_LINK = 32, CFM_SIZE = 0x80000000, CFM_COLOR = 0x40000000, CFM_FACE = 0x20000000, CFM_OFFSET = 0x10000000, CFM_CHARSET = 0x08000000, CFM_SUBSCRIPT = 0x00030000, CFM_SUPERSCRIPT = 0x00030000; const DWORD CFE_BOLD = 1, CFE_ITALIC = 2, CFE_UNDERLINE = 4, CFE_STRIKEOUT = 8, CFE_PROTECTED = 16, CFE_SUBSCRIPT = 0x00010000, CFE_SUPERSCRIPT = 0x00020000, CFE_AUTOCOLOR = 0x40000000; const CFM_EFFECTS = CFM_BOLD | CFM_ITALIC | CFM_UNDERLINE | CFM_COLOR | CFM_STRIKEOUT | CFE_PROTECTED | CFM_LINK; // flags for EM_SETIMEOPTIONS const LPARAM IMF_FORCENONE = 1, IMF_FORCEENABLE = 2, IMF_FORCEDISABLE = 4, IMF_CLOSESTATUSWINDOW = 8, IMF_VERTICAL = 32, IMF_FORCEACTIVE = 64, IMF_FORCEINACTIVE = 128, IMF_FORCEREMEMBER = 256; const SEL_EMPTY=0; const SEL_TEXT=1; const SEL_OBJECT=2; const SEL_MULTICHAR=4; const SEL_MULTIOBJECT=8; const MAX_TAB_STOPS=32; const PFM_ALIGNMENT=8; const PFM_NUMBERING=32; const PFM_OFFSET=4; const PFM_OFFSETINDENT=0x80000000; const PFM_RIGHTINDENT=2; const PFM_STARTINDENT=1; const PFM_TABSTOPS=16; const PFM_BORDER=2048; const PFM_LINESPACING=256; const PFM_NUMBERINGSTART=32768; const PFM_NUMBERINGSTYLE=8192; const PFM_NUMBERINGTAB=16384; const PFM_SHADING=4096; const PFM_SPACEAFTER=128; const PFM_SPACEBEFORE=64; const PFM_STYLE=1024; const PFM_DONOTHYPHEN=4194304; const PFM_KEEP=131072; const PFM_KEEPNEXT=262144; const PFM_NOLINENUMBER=1048576; const PFM_NOWIDOWCONTROL=2097152; const PFM_PAGEBREAKBEFORE=524288; const PFM_RTLPARA=65536; const PFM_SIDEBYSIDE=8388608; const PFM_TABLE=1073741824; const PFN_BULLET=1; const PFE_DONOTHYPHEN=64; const PFE_KEEP=2; const PFE_KEEPNEXT=4; const PFE_NOLINENUMBER=16; const PFE_NOWIDOWCONTROL=32; const PFE_PAGEBREAKBEFORE=8; const PFE_RTLPARA=1; const PFE_SIDEBYSIDE=128; const PFE_TABLE=16384; const PFA_LEFT=1; const PFA_RIGHT=2; const PFA_CENTER=3; const PFA_JUSTIFY=4; const PFA_FULL_INTERWORD=4; const SF_TEXT=1; const SF_RTF=2; const SF_RTFNOOBJS=3; const SF_TEXTIZED=4; const SF_UNICODE=16; const SF_USECODEPAGE=32; const SF_NCRFORNONASCII=64; const SF_RTFVAL=0x0700; const SFF_PWD=0x0800; const SFF_KEEPDOCINFO=0x1000; const SFF_PERSISTVIEWSCALE=0x2000; const SFF_PLAINRTF=0x4000; const SFF_SELECTION=0x8000; const WB_CLASSIFY = 3; const WB_MOVEWORDLEFT = 4; const WB_MOVEWORDRIGHT = 5; const WB_LEFTBREAK = 6; const WB_RIGHTBREAK = 7; const WB_MOVEWORDPREV = 4; const WB_MOVEWORDNEXT = 5; const WB_PREVBREAK = 6; const WB_NEXTBREAK = 7; const WBF_WORDWRAP = 16; const WBF_WORDBREAK = 32; const WBF_OVERFLOW = 64; const WBF_LEVEL1 = 128; const WBF_LEVEL2 = 256; const WBF_CUSTOM = 512; const ES_DISABLENOSCROLL = 8192; const ES_SUNKEN = 16384; const ES_SAVESEL = 32768; const ES_EX_NOCALLOLEINIT = 16777216; const ES_NOIME = 524288; const ES_NOOLEDRAGDROP = 8; const ES_SELECTIONBAR = 16777216; const ES_SELFIME = 262144; const ES_VERTICAL = 4194304; const EM_CANPASTE = WM_USER+50; const EM_DISPLAYBAND = WM_USER+51; const EM_EXGETSEL = WM_USER+52; const EM_EXLIMITTEXT = WM_USER+53; const EM_EXLINEFROMCHAR = WM_USER+54; const EM_EXSETSEL = WM_USER+55; const EM_FINDTEXT = WM_USER+56; const EM_FORMATRANGE = WM_USER+57; const EM_GETCHARFORMAT = WM_USER+58; const EM_GETEVENTMASK = WM_USER+59; const EM_GETOLEINTERFACE = WM_USER+60; const EM_GETPARAFORMAT = WM_USER+61; const EM_GETSELTEXT = WM_USER+62; const EM_HIDESELECTION = WM_USER+63; const EM_PASTESPECIAL = WM_USER+64; const EM_REQUESTRESIZE = WM_USER+65; const EM_SELECTIONTYPE = WM_USER+66; const EM_SETBKGNDCOLOR = WM_USER+67; const EM_SETCHARFORMAT = WM_USER+68; const EM_SETEVENTMASK = WM_USER+69; const EM_SETOLECALLBACK = WM_USER+70; const EM_SETPARAFORMAT = WM_USER+71; const EM_SETTARGETDEVICE = WM_USER+72; const EM_STREAMIN = WM_USER+73; const EM_STREAMOUT = WM_USER+74; const EM_GETTEXTRANGE = WM_USER+75; const EM_FINDWORDBREAK = WM_USER+76; const EM_SETOPTIONS = WM_USER+77; const EM_GETOPTIONS = WM_USER+78; const EM_FINDTEXTEX = WM_USER+79; const EM_GETWORDBREAKPROCEX = WM_USER+80; const EM_SETWORDBREAKPROCEX = WM_USER+81; /* RichEdit 2.0 messages */ const EM_SETUNDOLIMIT = WM_USER+82; const EM_REDO = WM_USER+84; const EM_CANREDO = WM_USER+85; const EM_GETUNDONAME = WM_USER+86; const EM_GETREDONAME = WM_USER+87; const EM_STOPGROUPTYPING = WM_USER+88; const EM_SETTEXTMODE = WM_USER+89; const EM_GETTEXTMODE = WM_USER+90; const EM_AUTOURLDETECT = WM_USER+91; const EM_GETAUTOURLDETECT = WM_USER + 92; const EM_SETPALETTE = WM_USER + 93; const EM_GETTEXTEX = WM_USER+94; const EM_GETTEXTLENGTHEX = WM_USER+95; const EM_SHOWSCROLLBAR = WM_USER+96; const EM_SETTEXTEX = WM_USER + 97; const EM_SETPUNCTUATION = WM_USER + 100; const EM_GETPUNCTUATION = WM_USER + 101; const EM_SETWORDWRAPMODE = WM_USER + 102; const EM_GETWORDWRAPMODE = WM_USER + 103; const EM_SETIMECOLOR = WM_USER + 104; const EM_GETIMECOLOR = WM_USER + 105; const EM_SETIMEOPTIONS = WM_USER + 106; const EM_GETIMEOPTIONS = WM_USER + 107; const EM_SETLANGOPTIONS = WM_USER+120; const EM_GETLANGOPTIONS = WM_USER+121; const EM_GETIMECOMPMODE = WM_USER+122; const EM_FINDTEXTW = WM_USER + 123; const EM_FINDTEXTEXW = WM_USER + 124; const EM_RECONVERSION = WM_USER + 125; const EM_SETBIDIOPTIONS = WM_USER + 200; const EM_GETBIDIOPTIONS = WM_USER + 201; const EM_SETTYPOGRAPHYOPTIONS = WM_USER+202; const EM_GETTYPOGRAPHYOPTIONS = WM_USER+203; const EM_SETEDITSTYLE = WM_USER + 204; const EM_GETEDITSTYLE = WM_USER + 205; const EM_GETSCROLLPOS = WM_USER+221; const EM_SETSCROLLPOS = WM_USER+222; const EM_SETFONTSIZE = WM_USER+223; const EM_GETZOOM = WM_USER+224; const EM_SETZOOM = WM_USER+225; const EN_MSGFILTER = 1792; const EN_REQUESTRESIZE = 1793; const EN_SELCHANGE = 1794; const EN_DROPFILES = 1795; const EN_PROTECTED = 1796; const EN_CORRECTTEXT = 1797; const EN_STOPNOUNDO = 1798; const EN_IMECHANGE = 1799; const EN_SAVECLIPBOARD = 1800; const EN_OLEOPFAILED = 1801; const EN_LINK = 1803; const ENM_NONE = 0; const ENM_CHANGE = 1; const ENM_UPDATE = 2; const ENM_SCROLL = 4; const ENM_SCROLLEVENTS = 8; const ENM_DRAGDROPDONE = 16; const ENM_KEYEVENTS = 65536; const ENM_MOUSEEVENTS = 131072; const ENM_REQUESTRESIZE = 262144; const ENM_SELCHANGE = 524288; const ENM_DROPFILES = 1048576; const ENM_PROTECTED = 2097152; const ENM_CORRECTTEXT = 4194304; const ENM_IMECHANGE = 8388608; const ENM_LANGCHANGE = 16777216; const ENM_OBJECTPOSITIONS = 33554432; const ENM_LINK = 67108864; const ECO_AUTOWORDSELECTION=1; const ECO_AUTOVSCROLL=64; const ECO_AUTOHSCROLL=128; const ECO_NOHIDESEL=256; const ECO_READONLY=2048; const ECO_WANTRETURN=4096; const ECO_SAVESEL=0x8000; const ECO_SELECTIONBAR=0x1000000; const ECO_VERTICAL=0x400000; enum { ECOOP_SET = 1, ECOOP_OR, ECOOP_AND, ECOOP_XOR } const SCF_DEFAULT = 0; const SCF_SELECTION = 1; const SCF_WORD = 2; const SCF_ALL = 4; const SCF_USEUIRULES = 8; const TM_PLAINTEXT=1; const TM_RICHTEXT=2; const TM_SINGLELEVELUNDO=4; const TM_MULTILEVELUNDO=8; const TM_SINGLECODEPAGE=16; const TM_MULTICODEPAGE=32; const GT_DEFAULT=0; const GT_USECRLF=1; const yHeightCharPtsMost=1638; const lDefaultTab=720; struct CHARFORMATA { UINT cbSize = this.sizeof; DWORD dwMask; DWORD dwEffects; LONG yHeight; LONG yOffset; COLORREF crTextColor; BYTE bCharSet; BYTE bPitchAndFamily; char szFaceName[LF_FACESIZE]; } struct CHARFORMATW { UINT cbSize = this.sizeof; DWORD dwMask; DWORD dwEffects; LONG yHeight; LONG yOffset; COLORREF crTextColor; BYTE bCharSet; BYTE bPitchAndFamily; WCHAR szFaceName[LF_FACESIZE]; } struct CHARFORMAT2A { UINT cbSize = this.sizeof; DWORD dwMask; DWORD dwEffects; LONG yHeight; LONG yOffset; COLORREF crTextColor; BYTE bCharSet; BYTE bPitchAndFamily; char szFaceName[LF_FACESIZE]; WORD wWeight; SHORT sSpacing; COLORREF crBackColor; LCID lcid; DWORD dwReserved; SHORT sStyle; WORD wKerning; BYTE bUnderlineType; BYTE bAnimation; BYTE bRevAuthor; } struct CHARFORMAT2W { UINT cbSize = this.sizeof; DWORD dwMask; DWORD dwEffects; LONG yHeight; LONG yOffset; COLORREF crTextColor; BYTE bCharSet; BYTE bPitchAndFamily; WCHAR szFaceName[LF_FACESIZE]; WORD wWeight; SHORT sSpacing; COLORREF crBackColor; LCID lcid; DWORD dwReserved; SHORT sStyle; WORD wKerning; BYTE bUnderlineType; BYTE bAnimation; BYTE bRevAuthor; } struct CHARRANGE { LONG cpMin; LONG cpMax; } struct COMPCOLOR { COLORREF crText; COLORREF crBackground; DWORD dwEffects; } extern (Windows) { alias DWORD function(DWORD,PBYTE,LONG,LONG*) EDITSTREAMCALLBACK; } struct EDITSTREAM { DWORD dwCookie; DWORD dwError; EDITSTREAMCALLBACK pfnCallback; } struct ENCORRECTTEXT { NMHDR nmhdr; CHARRANGE chrg; WORD seltyp; } struct ENDROPFILES { NMHDR nmhdr; HANDLE hDrop; LONG cp; BOOL fProtected; } struct ENLINK { NMHDR nmhdr; UINT msg; WPARAM wParam; LPARAM lParam; CHARRANGE chrg; } struct ENOLEOPFAILED { NMHDR nmhdr; LONG iob; LONG lOper; HRESULT hr; } struct ENPROTECTED { NMHDR nmhdr; UINT msg; WPARAM wParam; LPARAM lParam; CHARRANGE chrg; } alias ENPROTECTED* LPENPROTECTED; struct ENSAVECLIPBOARD { NMHDR nmhdr; LONG cObjectCount; LONG cch; } struct FINDTEXTA { CHARRANGE chrg; LPSTR lpstrText; } struct FINDTEXTW { CHARRANGE chrg; LPWSTR lpstrText; } struct FINDTEXTEXA { CHARRANGE chrg; LPSTR lpstrText; CHARRANGE chrgText; } struct FINDTEXTEXW { CHARRANGE chrg; LPWSTR lpstrText; CHARRANGE chrgText; } struct FORMATRANGE { HDC hdc; HDC hdcTarget; RECT rc; RECT rcPage; CHARRANGE chrg; } struct MSGFILTER { NMHDR nmhdr; UINT msg; WPARAM wParam; LPARAM lParam; } struct PARAFORMAT { UINT cbSize = this.sizeof; DWORD dwMask; WORD wNumbering; WORD wReserved; LONG dxStartIndent; LONG dxRightIndent; LONG dxOffset; WORD wAlignment; SHORT cTabCount; LONG rgxTabs[MAX_TAB_STOPS]; } struct PARAFORMAT2 { UINT cbSize = this.sizeof; DWORD dwMask; WORD wNumbering; WORD wEffects; LONG dxStartIndent; LONG dxRightIndent; LONG dxOffset; WORD wAlignment; SHORT cTabCount; LONG rgxTabs[MAX_TAB_STOPS]; LONG dySpaceBefore; LONG dySpaceAfter; LONG dyLineSpacing; SHORT sStype; BYTE bLineSpacingRule; BYTE bOutlineLevel; WORD wShadingWeight; WORD wShadingStyle; WORD wNumberingStart; WORD wNumberingStyle; WORD wNumberingTab; WORD wBorderSpace; WORD wBorderWidth; WORD wBorders; } struct SELCHANGE { NMHDR nmhdr; CHARRANGE chrg; WORD seltyp; } struct TEXTRANGEA { CHARRANGE chrg; LPSTR lpstrText; } struct TEXTRANGEW { CHARRANGE chrg; LPWSTR lpstrText; } struct REQRESIZE { NMHDR nmhdr; RECT rc; } struct REPASTESPECIAL { DWORD dwAspect; DWORD dwParam; } struct PUNCTUATION { UINT iSize; LPSTR szPunctuation; } struct GETTEXTEX { DWORD cb; DWORD flags; UINT codepage; LPCSTR lpDefaultChar; LPBOOL lpUsedDefaultChar; } extern (Windows) { alias LONG function(char*,LONG,BYTE,INT) EDITWORDBREAKPROCEX; } /* Defines for EM_SETTYPOGRAPHYOPTIONS */ const TO_ADVANCEDTYPOGRAPHY = 1; const TO_SIMPLELINEBREAK = 2; /* Defines for GETTEXTLENGTHEX */ const GTL_DEFAULT = 0; const GTL_USECRLF = 1; const GTL_PRECISE = 2; const GTL_CLOSE = 4; const GTL_NUMCHARS = 8; const GTL_NUMBYTES = 16; struct GETTEXTLENGTHEX { DWORD flags; UINT codepage; } version(Unicode) { alias CHARFORMATW CHARFORMAT; alias CHARFORMAT2W CHARFORMAT2; alias FINDTEXTW FINDTEXT; alias FINDTEXTEXW FINDTEXTEX; alias TEXTRANGEW TEXTRANGE; } else { alias CHARFORMATA CHARFORMAT; alias CHARFORMAT2A CHARFORMAT2; alias FINDTEXTA FINDTEXT; alias FINDTEXTEXA FINDTEXTEX; alias TEXTRANGEA TEXTRANGE; }
D
// *************** // Trank der Story // *************** INSTANCE ItPo_Story(C_Item) { name = "Gluck"; mainflag = ITEM_KAT_POTIONS; flags = ITEM_MULTI; visual = "ItPo_Perm_STR.3ds"; material = MAT_GLAS; on_state[0] = UseItPo_Story; scemeName = "POTIONFAST"; wear = WEAR_EFFECT; effect = "SPELLFX_ITEMGLIMMER"; description = "Macht, daß es weitergeht bei Raven Video I"; }; FUNC VOID UseItPo_Story() { B_RAVENSESCAPEINTOTEMPELAVI (); }; //************************************** //Storyhelper //************************************** INSTANCE SH (NPC_DEFAULT) { // ------ NSC ------ name = "Storyhelper"; guild = GIL_NONE; id = 9999; voice = 15; flags = 0 ; npctype = NPCTYPE_FRIEND ; // ------ Attribute ------ B_SetAttributesToChapter (self, 1); // ------ NSC-relevante Talente vergeben ------ B_GiveNpcTalents (self); // ------ Kampf-Talente ------ //B_SetFightSkills (self, 70); // ------ Kampf-Taktik ------ fight_tactic = FAI_HUMAN_MASTER; // ------ Equippte Waffen ------ // ------ Inventory ------ B_CreateAmbientInv (self); // ------ visuals ------ B_SetNpcVisual (self, MALE, "Hum_Head_Pony", FACE_N_Player, bodyTex_Player, -1); Mdl_SetModelFatness (self, 0); Mdl_ApplyOverlayMds (self, "Humans_Relaxed.mds"); // ------ TA anmelden ------ daily_routine = Rtn_Start_9999; }; FUNC VOID Rtn_Start_9999 () { TA_Stand_ArmsCrossed(08,00,23,00,"XXX"); TA_Stand_ArmsCrossed(23,00,08,00,"XXX"); }; //*************************************************************************** // Rahmen-Infos //*************************************************************************** instance StoryHelper_Exit (C_INFO) { npc = SH; nr = 999; condition = StoryHelper_Exit_Condition; information = StoryHelper_Exit_Info; important = 0; permanent = 1; description = DIALOG_ENDE; }; FUNC int StoryHelper_Exit_Condition() { return 1; }; FUNC VOID StoryHelper_Exit_Info() { AI_StopProcessInfos ( self ); }; //************************************************************************** // KAPITEL 1 // -------------------- //*************************************************************************** INSTANCE StoryHelper_INFO1 (C_INFO) { npc = SH; condition = StoryHelper_INFO1_Condition; information = StoryHelper_INFO1_Info; important = 0; permanent = 1; description = "Kapitel 1"; }; FUNC INT StoryHelper_INFO1_Condition() { return TRUE; }; func VOID StoryHelper_INFO1_Info() { Info_ClearChoices ( StoryHelper_INFO1 ); Info_AddChoice ( StoryHelper_INFO1, DIALOG_BACK , StoryHelper_BACK1); Info_AddChoice ( StoryHelper_INFO1, "KAPITELANFANG" , StoryHelper_KAPITEL1ANFANG); Info_AddChoice ( StoryHelper_INFO1, "ADDON Ready for first Meeting with Saturas (forget Lares)" , StoryHelper_SATURAS); Info_AddChoice ( StoryHelper_INFO1, "ADDON Cavalorn bug " , StoryHelper_Cavalorn); }; FUNC VOID StoryHelper_SATURAS() { MIS_Addon_Lares_Ornament2Saturas = LOG_RUNNING; CreateInvItems (other,ItMi_Ornament_Addon,1); SC_KnowsRanger = TRUE; B_Kapitelwechsel (1, NEWWORLD_ZEN ); AI_StopProcessInfos ( self ); }; FUNC VOID StoryHelper_Cavalorn() { B_Kapitelwechsel (1, NEWWORLD_ZEN ); //Vatras den Brief gegeben MIS_Addon_Cavalorn_Letter2Vatras = LOG_SUCCESS; //Für Vatras den Banditen Händler gefunden MIS_Vatras_FindTheBanditTrader = LOG_SUCCESS; //Wo sind die vermissten Leute? MIS_Addon_Vatras_WhereAreMissingPeople = LOG_SUCCESS; //Der Ring des Rings :) CreateInvItems (hero, ItRi_Ranger_Addon, 1); //Suche die Steinkreise auf MIS_Addon_Nefarius_BringMissingOrnaments = LOG_RUNNING; //...und Cavalorn zum Steinkreis schicken B_StartotherRoutine (BAU_4300_Addon_Cavalorn,"OrnamentSteinring"); //Spieler die Karte geben CreateInvItems (hero, ItWr_Map_NewWorld_Ornaments_Addon, 1); AI_StopProcessInfos (self); }; //--------------------------------------------------------------------- // BACK //--------------------------------------------------------------------- FUNC VOID StoryHelper_BACK1() { Info_ClearChoices ( StoryHelper_INFO1 ); }; //--------------------------------------------------------------------- // Kapitelanfang //--------------------------------------------------------------------- FUNC VOID StoryHelper_KAPITEL1ANFANG() { //-------- was davor geschah -------- //-------- was neu geschieht -------- B_Kapitelwechsel (1, NEWWORLD_ZEN ); //-------- Menü -------- //Info_ClearChoices ( StoryHelper_INFO1 ); AI_StopProcessInfos ( self ); }; //************************************************************************** // KAPITEL 2 // -------------------- //*************************************************************************** INSTANCE StoryHelper_INFO2 (C_INFO) { npc = SH; condition = StoryHelper_INFO2_Condition; information = StoryHelper_INFO2_Info; important = 0; permanent = 1; description = "Kapitel 2"; }; FUNC INT StoryHelper_INFO2_Condition() { return TRUE; }; func VOID StoryHelper_INFO2_Info() { Info_ClearChoices ( StoryHelper_INFO2 ); Info_AddChoice ( StoryHelper_INFO2, DIALOG_BACK , StoryHelper_BACK2); Info_AddChoice ( StoryHelper_INFO2, "KAPITELANFANG" , StoryHelper_KAPITEL2ANFANG); }; //--------------------------------------------------------------------- // BACK //--------------------------------------------------------------------- FUNC VOID StoryHelper_BACK2() { Info_ClearChoices ( StoryHelper_INFO2 ); }; //--------------------------------------------------------------------- // Kapitelanfang //--------------------------------------------------------------------- FUNC VOID StoryHelper_KAPITEL2ANFANG() { //-------- was davor geschah -------- //-------- was neu geschieht -------- MIS_OLDWORLD = LOG_RUNNING; B_Kapitelwechsel (2, NEWWORLD_ZEN ); //-------- Menü -------- //Info_ClearChoices ( StoryHelper_INFO2 ); AI_StopProcessInfos ( self ); }; //************************************************************************** // KAPITEL 3 // -------------------- //*************************************************************************** INSTANCE StoryHelper_INFO3 (C_INFO) { npc = SH; condition = StoryHelper_INFO3_Condition; information = StoryHelper_INFO3_Info; important = 0; permanent = 1; description = "Kapitel 3"; }; FUNC INT StoryHelper_INFO3_Condition() { return TRUE; }; func VOID StoryHelper_INFO3_Info() { Info_ClearChoices ( StoryHelper_INFO3 ); Info_AddChoice ( StoryHelper_INFO3, DIALOG_BACK , StoryHelper_BACK3); Info_AddChoice ( StoryHelper_INFO3, "KAPITELANFANG" , StoryHelper_KAPITEL3ANFANG); }; //--------------------------------------------------------------------- // BACK //--------------------------------------------------------------------- FUNC VOID StoryHelper_BACK3() { Info_ClearChoices ( StoryHelper_INFO3 ); }; //--------------------------------------------------------------------- // Kapitelanfang //--------------------------------------------------------------------- FUNC VOID StoryHelper_KAPITEL3ANFANG() { //-------- was davor geschah -------- MIS_OLDWORLD = LOG_RUNNING; //-------- was neu geschieht -------- CreateInvItems (hero,ItWr_PaladinLetter_MIS,1); KnowsPaladins_Ore = TRUE; MIS_ScoutMine = LOG_SUCCESS; MIS_ReadyForChapter3 = TRUE; B_NPC_IsAliveCheck (OldWorld_Zen); B_Kapitelwechsel (3, NEWWORLD_ZEN ); //-------- Menü -------- Info_ClearChoices ( StoryHelper_INFO3 ); AI_StopProcessInfos ( self ); }; //************************************************************************** // KAPITEL 4 // -------------------- //*************************************************************************** INSTANCE StoryHelper_INFO4 (C_INFO) { npc = SH; condition = StoryHelper_INFO4_Condition; information = StoryHelper_INFO4_Info; important = 0; permanent = 1; description = "Kapitel 4"; }; FUNC INT StoryHelper_INFO4_Condition() { return TRUE; }; func VOID StoryHelper_INFO4_Info() { Info_ClearChoices ( StoryHelper_INFO4 ); Info_AddChoice ( StoryHelper_INFO4, DIALOG_BACK , StoryHelper_BACK4); Info_AddChoice ( StoryHelper_INFO4, "KAPITELANFANG" , StoryHelper_KAPITEL4ANFANG); }; //--------------------------------------------------------------------- // BACK //--------------------------------------------------------------------- FUNC VOID StoryHelper_BACK4() { Info_ClearChoices ( StoryHelper_INFO4 ); }; //--------------------------------------------------------------------- // Kapitelanfang //--------------------------------------------------------------------- FUNC VOID StoryHelper_KAPITEL4ANFANG() { //-------- was davor geschah -------- MIS_OLDWORLD = LOG_RUNNING; //-------- was neu geschieht -------- CreateInvItems (hero,ItWr_PaladinLetter_MIS,1); KnowsPaladins_Ore = TRUE; MIS_ScoutMine = LOG_SUCCESS; MIS_ReadyForChapter3 = TRUE; B_NPC_IsAliveCheck (OldWorld_Zen); B_Kapitelwechsel (3, NEWWORLD_ZEN ); //-------- was neu geschieht -------- PLAYER_TALENT_ALCHEMY[Charge_InnosEye] = TRUE; PrintScreen (PRINT_LearnAlchemyInnosEye, -1, -1, FONT_Screen, 2); CreateInvItems (self,ItMi_InnosEye_MIS,1); MIS_ReadyforChapter4 = TRUE; B_NPC_IsAliveCheck (NEWWORLD_ZEN); B_Kapitelwechsel (4, NEWWORLD_ZEN ); //-------- Menü -------- Info_ClearChoices ( StoryHelper_INFO4 ); AI_StopProcessInfos ( self ); }; //************************************************************************** // KAPITEL 5 // -------------------- //*************************************************************************** INSTANCE StoryHelper_INFO5 (C_INFO) { npc = SH; condition = StoryHelper_INFO5_Condition; information = StoryHelper_INFO5_Info; important = 0; permanent = 1; description = "Kapitel 5"; }; FUNC INT StoryHelper_INFO5_Condition() { return TRUE; }; func VOID StoryHelper_INFO5_Info() { Info_ClearChoices ( StoryHelper_INFO5 ); Info_AddChoice ( StoryHelper_INFO5, DIALOG_BACK , StoryHelper_BACK5); Info_AddChoice ( StoryHelper_INFO5, "KAPITELANFANG" , StoryHelper_KAPITEL5ANFANG); }; //--------------------------------------------------------------------- // BACK //--------------------------------------------------------------------- FUNC VOID StoryHelper_BACK5() { Info_ClearChoices ( StoryHelper_INFO5 ); }; //--------------------------------------------------------------------- // Kapitelanfang //--------------------------------------------------------------------- FUNC VOID StoryHelper_KAPITEL5ANFANG() { //-------- was davor geschah -------- MIS_OLDWORLD = LOG_RUNNING; //-------- was neu geschieht -------- CreateInvItems (hero,ItWr_PaladinLetter_MIS,1); KnowsPaladins_Ore = TRUE; MIS_ScoutMine = LOG_SUCCESS; MIS_ReadyForChapter3 = TRUE; B_NPC_IsAliveCheck (OldWorld_Zen); B_Kapitelwechsel (3, NEWWORLD_ZEN ); //-------- was neu geschieht -------- PLAYER_TALENT_ALCHEMY[Charge_InnosEye] = TRUE; PrintScreen (PRINT_LearnAlchemyInnosEye, -1, -1, FONT_Screen, 2); CreateInvItems (hero,ItMi_InnosEye_MIS,1); MIS_ReadyforChapter4 = TRUE; B_NPC_IsAliveCheck (NEWWORLD_ZEN); B_Kapitelwechsel (4, NEWWORLD_ZEN ); //-------- was neu geschieht -------- CreateInvItems (hero,ItAt_IcedragonHeart,1); //damit man eins für die DI hat!! MIS_AllDragonsDead = TRUE; B_Kapitelwechsel (5, NEWWORLD_ZEN ); //-------- Menü -------- Info_ClearChoices ( StoryHelper_INFO5 ); AI_StopProcessInfos ( self ); }; //************************************************************************** // KAPITEL 6 // -------------------- //*************************************************************************** INSTANCE StoryHelper_INFO6 (C_INFO) { npc = SH; condition = StoryHelper_INFO6_Condition; information = StoryHelper_INFO6_Info; important = 0; permanent = 1; description = "Kapitel 6"; }; FUNC INT StoryHelper_INFO6_Condition() { return TRUE; }; func VOID StoryHelper_INFO6_Info() { Info_ClearChoices ( StoryHelper_INFO6 ); Info_AddChoice ( StoryHelper_INFO6, DIALOG_BACK , StoryHelper_BACK6); Info_AddChoice ( StoryHelper_INFO6, "KAPITELANFANG" , StoryHelper_KAPITEL6ANFANG); }; //--------------------------------------------------------------------- // BACK //--------------------------------------------------------------------- FUNC VOID StoryHelper_BACK6() { Info_ClearChoices ( StoryHelper_INFO6 ); }; //--------------------------------------------------------------------- // Kapitelanfang //--------------------------------------------------------------------- FUNC VOID StoryHelper_KAPITEL6ANFANG() { //-------- was davor geschah -------- //-------- was neu geschieht -------- B_Kapitelwechsel (6, NEWWORLD_ZEN ); //-------- Menü -------- Info_ClearChoices ( StoryHelper_INFO6 ); AI_StopProcessInfos ( self ); };
D
/** Helper functions for tsv-utils-dlang unit tests. Copyright (c) 2017, eBay Software Foundation Initially written by Jon Degenhardt License: Boost License 1.0 (http://boost.org/LICENSE_1_0.txt) */ version(unittest) { /* Creates a temporary directory for writing unit test files. The path of the created * directory is returned. The 'toolDirName' argument will be included in the directory * name, and should consist of generic filename characters. e.g. "tsv_append". This * name will also be used in assert error messages. * * The caller should delete the temporary directory and all its contents when tests * are finished. This can be done using std.file.rmdirRecurse. For example: * * unittest * { * import std.file : rmdirRecurse; * auto testDir = makeUnittestTempDir("tsv_append"); * scope(exit) testDir.rmdirRecurse; * ... test code * } * * An assert is triggered if the directory cannot be created. There are two typical * reasons: * - Unable to find an available directory name. A number of unique names are tried * (currently 1000). If they are all taken, it will normally be because the directories * haven't been properly cleaned up from previous unit test runs. * - Directory creation failed. e.g. Permission denied. * * This routine is intended to be run in 'unittest' mode, so that an assert is triggered * on failure. However, if run with asserts disabled, the returned path will be empty in * event of a failure. */ string makeUnittestTempDir(string toolDirName) { import std.conv; import std.file : exists, mkdir, tempDir; import std.format; import std.path : buildPath; import std.range; string dirNamePrefix = "tsv_utils_dlang__" ~ toolDirName ~ "_unittest_"; string systemTempDirPath = tempDir(); string newTempDirPath = ""; for (auto i = 0; i < 1000 && newTempDirPath.empty; i++) { string path = buildPath(systemTempDirPath, dirNamePrefix ~ i.to!string); if (!path.exists) newTempDirPath = path; } assert (!newTempDirPath.empty, format("Unable to obtain a new temp directory, paths tried already exist.\nPath prefix: %s", buildPath(systemTempDirPath, dirNamePrefix))); if (!newTempDirPath.empty) { try mkdir(newTempDirPath); catch (Exception exc) { assert(false, format("Failed to create temp directory: %s\n Error: %s", newTempDirPath, exc.msg)); } } return newTempDirPath; } /* Write a TSV file. The 'tsvData' argument is a 2-dimensional array of rows and * columns. Asserts if the file cannot be written. * * This routine is intended to be run in 'unittest' mode, so that it will assert * if the write fails. However, if run in a mode with asserts disabled, it will * return false if the write failed. */ bool writeUnittestTsvFile(string filepath, string[][] tsvData, char delimiter = '\t') { import std.algorithm : each, joiner, map; import std.conv; import std.format: format; import std.stdio : File; try { auto file = File(filepath, "w"); tsvData .map!(row => row.joiner(delimiter.to!string)) .each!(str => file.writeln(str)); } catch (Exception exc) { assert(false, format("Failed to write TSV file: %s.\n Error: %s", filepath, exc.msg)); return false; } return true; } /* Convert a 2-dimensional array of values to an in-memory string. */ string tsvDataToString(string[][] tsvData, char delimiter = '\t') { import std.algorithm : joiner, map; import std.conv; return tsvData .map!(row => row.joiner(delimiter.to!string).to!string ~ "\n") .joiner .to!string; } }
D
template AliasSeq(T...) { alias AliasSeq = T; } template Unqual(T) { static if (is(T U == const U)) alias Unqual = U; else static if (is(T U == immutable U)) alias Unqual = U; else alias Unqual = T; } template staticMap(alias F, T...) { alias A = AliasSeq!(); static foreach (t; T) A = AliasSeq!(A, F!t); // what's tested alias staticMap = A; } alias TK = staticMap!(Unqual, int, const uint); //pragma(msg, TK); static assert(is(TK == AliasSeq!(int, uint))); /**************************************************/ template reverse(T...) { alias A = AliasSeq!(); static foreach (t; T) A = AliasSeq!(t, A); // what's tested alias reverse = A; } enum X2 = 3; alias TK2 = reverse!(int, const uint, X2); //pragma(msg, TK2); static assert(TK2[0] == 3); static assert(is(TK2[1] == const(uint))); static assert(is(TK2[2] == int)); /**************************************************/ template Tp(Args...) { alias Tp = AliasSeq!(int, 1, "asd", Args); static foreach (arg; Args) { Tp = AliasSeq!(4, Tp, "zxc", arg, Tp, 5, 4, int, Tp[0..2]); } } void fun(){} alias a1 = Tp!(char[], fun, x => x); static assert( __traits(isSame, a1, AliasSeq!(4, 4, 4, int, 1, "asd", char[], fun, x => x, "zxc", char[], int, 1, "asd", char[], fun, x => x, 5, 4, int, int, 1, "zxc", fun, 4, int, 1, "asd", char[], fun, x => x, "zxc", char[], int, 1, "asd", char[], fun, x => x, 5, 4, int, int, 1, 5, 4, int, 4, int, "zxc", x => x, 4, 4, int, 1, "asd", char[], fun, x => x, "zxc", char[], int, 1, "asd", char[], fun, x => x, 5, 4, int, int, 1, "zxc", fun, 4, int, 1, "asd", char[], fun, x => x, "zxc", char[], int, 1, "asd", char[], fun, x => x, 5, 4, int, int, 1, 5, 4, int, 4, int, 5, 4, int, 4, 4))); template Tp2(Args...) { alias Tp2 = () => 1; static foreach (i; 0..Args.length) Tp2 = AliasSeq!(Tp2, Args[i]); } const x = 8; static assert( __traits(isSame, Tp2!(2, float, x), AliasSeq!(() => 1, 2, float, x))); enum F(int i) = i * i; template staticMap2(alias fun, args...) { alias staticMap2 = AliasSeq!(); static foreach (i; 0 .. args.length) staticMap2 = AliasSeq!(fun!(args[i]), staticMap2, fun!(args[i])); } enum a2 = staticMap2!(F, 0, 1, 2, 3, 4); struct Cmp(T...){} // isSame sucks static assert(is(Cmp!a2 == Cmp!(16, 9, 4, 1, 0, 0, 1, 4, 9, 16))); template Tp3() { alias aa1 = int; static foreach (t; AliasSeq!(float, char[])) aa1 = AliasSeq!(aa1, t); static assert(is(aa1 == AliasSeq!(int, float, char[]))); alias aa2 = AliasSeq!int; static foreach (t; AliasSeq!(float, char[])) aa2 = AliasSeq!(aa2, t); static assert(is(aa2 == AliasSeq!(int, float, char[]))); alias aa3 = AliasSeq!int; aa3 = AliasSeq!(float, char); static assert(is(aa3 == AliasSeq!(float, char))); } alias a3 = Tp3!(); template Tp4() // Uses slow path because overload { alias AliasSeq(T...) = T; alias AliasSeq(alias f, T...) = T; alias aa4 = int; aa4 = AliasSeq!(aa4, float); static assert(is(aa4 == AliasSeq!(int, float))); } alias a4 = Tp4!(); template Tp5() // same tp overloaded, still uses fast path { alias AliasSeq2(T...) = T; alias AliasSeq = AliasSeq2; alias AliasSeq = AliasSeq2; alias aa5 = int; aa5 = AliasSeq!(aa5, float); static assert(is(aa5 == AliasSeq!(int, float))); } alias a5 = Tp5!();
D