code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
instance DIA_Addon_HammerPirate_EXIT(C_Info)
{
npc = PIR_1360_Addon_PIRAT;
nr = 999;
condition = DIA_Addon_HammerPirate_EXIT_Condition;
information = DIA_Addon_HammerPirate_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Addon_HammerPirate_EXIT_Condition()
{
return TRUE;
};
func void DIA_Addon_HammerPirate_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Addon_HammerPirate_Hello(C_Info)
{
npc = PIR_1360_Addon_PIRAT;
nr = 1;
condition = DIA_Addon_HammerPirate_Hello_Condition;
information = DIA_Addon_HammerPirate_Hello_Info;
permanent = TRUE;
description = "Everything ship-shape?";
};
func int DIA_Addon_HammerPirate_Hello_Condition()
{
return TRUE;
};
func void DIA_Addon_HammerPirate_Hello_Info()
{
AI_Output(other,self,"DIA_Addon_HammerPirate_Hello_15_00"); //Everything ship-shape?
if(self.aivar[AIV_PARTYMEMBER] == TRUE)
{
if(C_TowerBanditsDead() == TRUE)
{
AI_Output(self,other,"DIA_Addon_HammerPirate_Hello_07_01"); //Sure, now that we've got that over with. Those scumbags are as flat as flounders!
}
else
{
AI_Output(self,other,"DIA_Addon_HammerPirate_Hello_07_02"); //Let's get it over with!
};
}
else
{
AI_Output(self,other,"DIA_Addon_HammerPirate_Hello_07_03"); //No! Hammering's just not my thing.
};
};
instance DIA_Addon_HammerPirate_Anheuern(C_Info)
{
npc = PIR_1360_Addon_PIRAT;
nr = 11;
condition = DIA_Addon_HammerPirate_Anheuern_Condition;
information = DIA_Addon_HammerPirate_Anheuern_Info;
permanent = FALSE;
description = "You're supposed to help me.";
};
func int DIA_Addon_HammerPirate_Anheuern_Condition()
{
if(MIS_Henry_FreeBDTTower == LOG_Running)
{
return TRUE;
};
};
func void DIA_Addon_HammerPirate_Anheuern_Info()
{
AI_Output(self,other,"DIA_Addon_HammerPirate_Anheuern_07_00"); //Don't tell me! You want me to come along and help you flatten those bandits!
AI_Output(other,self,"DIA_Addon_PIR_6_JoinHenry_15_08"); //You got it.
if(!Npc_IsDead(SawPirate))
{
AI_Output(self,other,"DIA_Addon_HammerPirate_Anheuern_07_01"); //Why don't you ask the guy who's manning the saw?
};
AI_Output(self,other,"DIA_Addon_HammerPirate_Anheuern_07_02"); //I ... can't use all this stress ...
};
instance DIA_Addon_HammerPirate_ComeOn(C_Info)
{
npc = PIR_1360_Addon_PIRAT;
nr = 12;
condition = DIA_Addon_HammerPirate_ComeOn_Condition;
information = DIA_Addon_HammerPirate_ComeOn_Info;
permanent = TRUE;
description = "Come with me.";
};
func int DIA_Addon_HammerPirate_ComeOn_Condition()
{
if((self.aivar[AIV_PARTYMEMBER] == FALSE) && (MIS_Henry_FreeBDTTower == LOG_Running) && (C_TowerBanditsDead() == FALSE) && Npc_KnowsInfo(other,DIA_Addon_HammerPirate_Anheuern))
{
return TRUE;
};
};
func void DIA_Addon_HammerPirate_ComeOn_Info()
{
AI_Output(other,self,"DIA_Addon_HammerPirate_ComeOn_15_00"); //Come with me.
if(SawPirate.aivar[AIV_PARTYMEMBER] == TRUE)
{
AI_Output(self,other,"DIA_Addon_HammerPirate_ComeOn_07_01"); //Henry needs one of us to stay HERE ...
}
else if(Npc_GetDistToWP(self,"ADW_PIRATECAMP_WAY_08") > 6000)
{
AI_Output(self,other,"DIA_Addon_HammerPirate_ComeOn_07_02"); //Let's go back a little towards the camp first.
AI_StopProcessInfos(self);
}
else
{
AI_Output(self,other,"DIA_Addon_HammerPirate_ComeOn_07_03"); //(sighs) Aye aye ...
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"FOLLOW");
self.aivar[AIV_PARTYMEMBER] = TRUE;
};
};
instance DIA_Addon_HammerPirate_GoHome(C_Info)
{
npc = PIR_1360_Addon_PIRAT;
nr = 13;
condition = DIA_Addon_HammerPirate_GoHome_Condition;
information = DIA_Addon_HammerPirate_GoHome_Info;
permanent = TRUE;
description = "I no longer need you.";
};
func int DIA_Addon_HammerPirate_GoHome_Condition()
{
if(self.aivar[AIV_PARTYMEMBER] == TRUE)
{
return TRUE;
};
};
func void DIA_Addon_HammerPirate_GoHome_Info()
{
AI_Output(other,self,"DIA_Addon_HammerPirate_GoHome_15_00"); //I no longer need you.
AI_Output(self,other,"DIA_Addon_HammerPirate_GoHome_07_01"); //If you say so ...
self.aivar[AIV_PARTYMEMBER] = FALSE;
Npc_ExchangeRoutine(self,"START");
};
instance DIA_Addon_HammerPirate_TooFar(C_Info)
{
npc = PIR_1360_Addon_PIRAT;
nr = 14;
condition = DIA_Addon_HammerPirate_TooFar_Condition;
information = DIA_Addon_HammerPirate_TooFar_Info;
permanent = TRUE;
important = TRUE;
};
func int DIA_Addon_HammerPirate_TooFar_Condition()
{
if((self.aivar[AIV_PARTYMEMBER] == TRUE) && (Npc_GetDistToWP(self,"ADW_PIRATECAMP_WAY_08") > 6000))
{
return TRUE;
};
};
func void DIA_Addon_HammerPirate_TooFar_Info()
{
AI_Output(self,other,"DIA_Addon_HammerPirate_TooFar_07_01"); //If you want to continue in that direction, don't let me keep you ...
AI_Output(self,other,"DIA_Addon_HammerPirate_GoHome_07_02"); //I think I'll be headed back now.
self.aivar[AIV_PARTYMEMBER] = FALSE;
Npc_ExchangeRoutine(self,"START");
AI_StopProcessInfos(self);
};
instance DIA_Addon_HammerPirate_Success(C_Info)
{
npc = PIR_1360_Addon_PIRAT;
nr = 14;
condition = DIA_Addon_HammerPirate_Success_Condition;
information = DIA_Addon_HammerPirate_Success_Info;
permanent = TRUE;
important = TRUE;
};
func int DIA_Addon_HammerPirate_Success_Condition()
{
if((C_TowerBanditsDead() == TRUE) && (self.aivar[AIV_PARTYMEMBER] == TRUE))
{
return TRUE;
};
};
func void DIA_Addon_HammerPirate_Success_Info()
{
AI_Output(self,other,"DIA_Addon_HammerPirate_Success_07_01"); //You know what - I've been doing some thinking. You're not such a bad sort!
AI_Output(self,other,"DIA_Addon_HammerPirate_Success_07_02"); //I'm headed back to the camp, then. See ya!
self.aivar[AIV_PARTYMEMBER] = FALSE;
Npc_ExchangeRoutine(self,"START");
AI_StopProcessInfos(self);
};
| D |
/home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/obj/x86_64-slc6-gcc49-opt/EventLoop/obj/TorqueDriver.o /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/obj/x86_64-slc6-gcc49-opt/EventLoop/obj/TorqueDriver.d : /home/shepj/xaod/ROOTAnalysisTutorial/EventLoop/Root/TorqueDriver.cxx /home/shepj/xaod/ROOTAnalysisTutorial/EventLoop/EventLoop/TorqueDriver.h /home/shepj/xaod/ROOTAnalysisTutorial/EventLoop/EventLoop/Global.h /home/shepj/xaod/ROOTAnalysisTutorial/EventLoop/EventLoop/BatchDriver.h /home/shepj/xaod/ROOTAnalysisTutorial/EventLoop/EventLoop/Driver.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TObject.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/Rtypes.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/RtypesCore.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/RConfig.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/RVersion.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/DllImport.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/Rtypeinfo.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/snprintf.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/strlcpy.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TGenericClassInfo.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TSchemaHelper.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TStorage.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TVersionCheck.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/Riosfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TBuffer.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/SampleHandler/MetaObject.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/SampleHandler/Global.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/RootCoreUtils/Assert.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/RootCoreUtils/Global.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/RootCoreUtils/Deprecated.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TCollection.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TIterator.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TString.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TMathBase.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/RStringView.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/RConfigure.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/RWrap_libcpp_string_view.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/libcpp_string_view.h /home/shepj/xaod/ROOTAnalysisTutorial/EventLoop/EventLoop/Job.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/SampleHandler/SampleHandler.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/RootCoreUtils/ThrowMsg.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/RootCoreUtils/PrintMsg.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/RootCoreUtils/MessageType.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TSystem.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TNamed.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TInetAddress.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TTimer.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TSysEvtHandler.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TQObject.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TList.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TSeqCollection.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TQObjectEmitVA.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TQConnection.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/Varargs.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TInterpreter.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TDictionary.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/ESTLType.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TVirtualMutex.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TTime.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/ThreadLocalStorage.h
| D |
/Users/Fares/Documents/Projects/TransitApp/build/Pods.build/Debug-iphonesimulator/HanekeSwift.build/Objects-normal/x86_64/Format.o : /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Cache.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/CGSize+Swift.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/CryptoSwiftMD5.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Data.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/DiskCache.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/DiskFetcher.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Fetch.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Fetcher.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Format.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Log.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/NetworkFetcher.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/NSFileManager+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/NSHTTPURLResponse+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/NSURLResponse+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/String+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/UIButton+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/UIImage+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/UIImageView+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/UIView+Haneke.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/Fares/Documents/Projects/TransitApp/Pods/Target\ Support\ Files/HanekeSwift/HanekeSwift-umbrella.h /Users/Fares/Documents/Projects/TransitApp/build/Pods.build/Debug-iphonesimulator/HanekeSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
/Users/Fares/Documents/Projects/TransitApp/build/Pods.build/Debug-iphonesimulator/HanekeSwift.build/Objects-normal/x86_64/Format~partial.swiftmodule : /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Cache.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/CGSize+Swift.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/CryptoSwiftMD5.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Data.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/DiskCache.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/DiskFetcher.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Fetch.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Fetcher.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Format.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Log.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/NetworkFetcher.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/NSFileManager+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/NSHTTPURLResponse+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/NSURLResponse+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/String+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/UIButton+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/UIImage+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/UIImageView+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/UIView+Haneke.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/Fares/Documents/Projects/TransitApp/Pods/Target\ Support\ Files/HanekeSwift/HanekeSwift-umbrella.h /Users/Fares/Documents/Projects/TransitApp/build/Pods.build/Debug-iphonesimulator/HanekeSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
/Users/Fares/Documents/Projects/TransitApp/build/Pods.build/Debug-iphonesimulator/HanekeSwift.build/Objects-normal/x86_64/Format~partial.swiftdoc : /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Cache.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/CGSize+Swift.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/CryptoSwiftMD5.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Data.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/DiskCache.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/DiskFetcher.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Fetch.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Fetcher.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Format.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/Log.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/NetworkFetcher.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/NSFileManager+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/NSHTTPURLResponse+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/NSURLResponse+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/String+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/UIButton+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/UIImage+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/UIImageView+Haneke.swift /Users/Fares/Documents/Projects/TransitApp/Pods/HanekeSwift/Haneke/UIView+Haneke.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/Fares/Documents/Projects/TransitApp/Pods/Target\ Support\ Files/HanekeSwift/HanekeSwift-umbrella.h /Users/Fares/Documents/Projects/TransitApp/build/Pods.build/Debug-iphonesimulator/HanekeSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
| D |
for a limitless time
for a very long or seemingly endless time
without interruption
| D |
// REQUIRED_ARGS: -m64
/*
TEST_OUTPUT:
---
fail_compilation/iasm1.d(103): Error: bad type/size of operands `and`
fail_compilation/iasm1.d(104): Error: bad type/size of operands `and`
---
*/
// https://issues.dlang.org/show_bug.cgi?id=15999
#line 100
void test100(ulong bar)
{
asm { and RAX, 0xFFFFFFFF00000000; ret; }
asm { and RAX, 0x00000000FFFFFFFF; ret; }
}
/***********************************************/
/*
TEST_OUTPUT:
---
fail_compilation/iasm1.d(213): Error: cannot interpret `opDispatch!"foo"` at compile time
fail_compilation/iasm1.d(213): Error: bad type/size of operands `__error`
---
*/
// https://issues.dlang.org/show_bug.cgi?id=15239
#line 200
struct T
{
template opDispatch(string Name, P...)
{
static void opDispatch(P) {}
}
}
void test2()
{
asm
{
call T.foo;
}
}
/*********************************************/
/* TEST_OUTPUT:
---
fail_compilation/iasm1.d(306): Error: operand cannot have both R8 and [R9]
fail_compilation/iasm1.d(307): Error: operand cannot have both RDX and 0x3
fail_compilation/iasm1.d(308): Error: cannot have two symbols in addressing mode
fail_compilation/iasm1.d(309): Error: cannot have two symbols in addressing mode
fail_compilation/iasm1.d(310): Error: cannot have two symbols in addressing mode
---
*/
// https://issues.dlang.org/show_bug.cgi?id=17616
// https://issues.dlang.org/show_bug.cgi?id=18373
#line 300
void test3()
{
asm
{
naked;
mov RAX,[R9][R10]R8;
mov RAX,[3]RDX;
mov RAX,[RIP][RIP];
mov RAX,[RIP][RCX];
mov RAX,[RIP]RCX;
}
}
/*********************************************/
/*
TEST_OUTPUT:
---
fail_compilation/iasm1.d(403): Error: expression expected not `;`
---
*/
#line 400
void test4()
{
asm { inc [; }
}
/*********************************************/
/* TEST_OUTPUT:
---
fail_compilation/iasm1.d(501): Error: function `iasm1.test5` label `L1` is undefined
---
*/
#line 500
void test5()
{
asm
{
jmp L1;
L2:
nop;
}
}
/*********************************************/
/* TEST_OUTPUT:
---
fail_compilation/iasm1.d(611): Error: delegate `iasm1.test6.__foreachbody1` label `L1` is undefined
---
*/
#line 600
struct S
{
static int opApply(int delegate(ref int) dg)
{
return 0;
}
}
void test6()
{
foreach(f; S)
{
asm
{
jmp L1;
}
goto L1;
}
L1:;
}
| D |
module armos.graphics.bitmapfont;
import armos.graphics;;
import armos.math;
/++
BitmapFontを描画するclassです.
+/
class BitmapFont {
public{
/++
+/
this(){
_image = new armos.graphics.Image;
}
/++
fontのBitmap画像を読み込みます.
Params:
filename = fontの画像のPathを指定します.
fontWidth = フォントの横幅を指定します.
fontHeight= フォントの縦幅を指定します.
+/
void load(in string fileName, in int fontWidth, in int fontHeight){
_image.load(fileName);
_image.setMinMagFilter(armos.graphics.TextureFilter.Nearest);
width = fontWidth;
height = fontHeight;
};
/++
読み込まれたFontにより文字を描画します.
Params:
str = 描画する文字列を指定します.
x = 文字列を描画するX座標を指定します.
y = 文字列を描画するY座標を指定します.
z = 文字列を描画するZ座標を指定します.
+/
void draw(in string str, in int x, in int y, in int z = 0){
if(str == ""){return;}
int currentPosition = 0;
import std.string;
import std.algorithm;
import std.conv;
import std.array;
string[] lines = str.split("\n");
armos.graphics.pushMatrix;
armos.graphics.translate(x, y, z);
foreach (line; lines) {
armos.graphics.pushMatrix;
armos.graphics.translate(0, currentPosition*height, 0);
drawLine(line);
armos.graphics.popMatrix;
currentPosition += 1;
}
armos.graphics.popMatrix;
}
/++
fontの横幅のプロパティです.
+/
int width()const{
return _size[0];
}
/++
fontの横幅のプロパティです.
+/
void width(in int w){
_size[0] = w;
}
/++
fontの縦幅のプロパティです.
+/
int height()const{
return _size[1];
}
/++
fontの縦幅のプロパティです.
+/
void height(in int h){
_size[1] = h;
}
/++
tab幅のプロパティです.
+/
int tabWidth= 4;
/++
文字の位置を左寄せに設定します.
Deprecated: 現在動作しません.
+/
void alignLeft(){_align = armos.graphics.TextAlign.Left;}
/++
文字の位置を中央寄せに設定します.
Deprecated: 現在動作しません.
+/
void alignCenter(){_align = armos.graphics.TextAlign.Center;}
/++
文字の位置を右寄せに設定します.
Deprecated: 現在動作しません.
+/
void alignRight(){_align = armos.graphics.TextAlign.Right;}
}//public
private{
armos.graphics.Image _image;
armos.math.Vector2i _size;
armos.graphics.TextAlign _align = armos.graphics.TextAlign.Left;
void drawLine(in string str){
import std.string;
import std.algorithm;
import std.conv;
import std.array;
char[] characters = str.split("").map!(to!char).array;
int currentPosition = 0;
foreach (character; characters) {
switch (character) {
case '\t':
currentPosition += tabWidth;
break;
default:
drawCharacter(character, currentPosition, 0);
currentPosition += 1;
break;
}
}
}
void drawCharacter(in char character, in int x, in int y){
immutable int textureX = character%16*width;
immutable int textureY = character/16*height;
_image.drawCropped(x*width, y*height, textureX, textureY, textureX+width, textureY+height);
}
}//private
}//class BitmapFont
enum TextAlign{
Left,
Right,
Center
};
| D |
module framework.implementation.gui.statedwindow;
private {
import framework.implementation.gui.window;
}
class StatedWindow : Window {
this( Window pParent,
Rectangle pRectangle,
char[] pText,
DWORD style,
DWORD exStyle ) {
super( pParent, pRectangle, pText, style, exStyle );
}
void registerState( uint pState ) {
mDispatchers[ pState ] = new EventDispatcher;
}
void state( uint value ) {
mState = value;
currentDispatcher( mDispatchers[ mState ] );
}
uint state() {
return mState;
}
override void add( IEvent pEvent ) {
Window.add( pEvent );
}
void add( uint pState, IEvent pEvent ) {
mDispatchers[ pState ].add( pEvent );
}
override bool hasEvent( uint uMsg ) {
if( Window.hasEvent( uMsg ) )
return true;
if( mCurrentDispatcher !is null ) {
if( mCurrentDispatcher.hasEvent( uMsg ) )
return true;
}
return false;
}
override void callEvent( SystemEvent *pSystemEvent ) {
if( Window.hasEvent( pSystemEvent.msg.message ) )
Window.callEvent( pSystemEvent );
if( mCurrentDispatcher !is null ) {
if( mCurrentDispatcher.hasEvent( pSystemEvent.msg.message ) ) {
mCurrentDispatcher.callEvent( pSystemEvent );
}
}
}
void currentDispatcher( EventDispatcher pCurrentDispatcher )
in {
assert( pCurrentDispatcher !is null );
}
body {
mCurrentDispatcher = pCurrentDispatcher;
}
EventDispatcher currentDispatcher()
out( result ) {
assert( result !is null );
}
body {
return mCurrentDispatcher;
}
EventDispatcher[ uint ] mDispatchers;
EventDispatcher mCurrentDispatcher;
uint mState;
}
| D |
/Users/mwaly/Downloads/EventsVIPER/Build/Intermediates/Pods.build/Debug-iphonesimulator/SnapshotTesting.build/Objects-normal/x86_64/NSView.o : /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/Data.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Async.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/UIImage.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/NSImage.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/Codable.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/CaseIterable.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/SnapshotTestCase.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Diff.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Diffing.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/String.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Common/Internal.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/Description.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Common/PlistEncoder.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/UIViewController.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/NSViewController.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/CALayer.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/SceneKit.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/SpriteKit.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Common/XCTAttachment.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/AssertSnapshot.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/URLRequest.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Common/View.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/UIView.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/NSView.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/Any.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/ModelIO.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/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/GLKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SceneKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SpriteKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/XCTest.swiftmodule /Users/mwaly/Downloads/EventsVIPER/Pods/Headers/Public/SnapshotTesting/SnapshotTesting-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/Modules/module.modulemap /Users/mwaly/Downloads/EventsVIPER/Pods/Headers/Public/SnapshotTesting/SnapshotTesting.modulemap /Users/mwaly/Desktop/Apps/EventsVIPER/Pods/Headers/Public/SnapshotTesting/SnapshotTesting.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/ModelIO.framework/Headers/ModelIO.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/GLKit.framework/Headers/GLKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SceneKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/SpriteKit.framework/Headers/SpriteKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCTest.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/mwaly/Downloads/EventsVIPER/Build/Intermediates/Pods.build/Debug-iphonesimulator/SnapshotTesting.build/Objects-normal/x86_64/NSView~partial.swiftmodule : /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/Data.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Async.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/UIImage.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/NSImage.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/Codable.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/CaseIterable.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/SnapshotTestCase.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Diff.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Diffing.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/String.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Common/Internal.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/Description.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Common/PlistEncoder.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/UIViewController.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/NSViewController.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/CALayer.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/SceneKit.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/SpriteKit.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Common/XCTAttachment.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/AssertSnapshot.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/URLRequest.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Common/View.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/UIView.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/NSView.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/Any.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/ModelIO.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/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/GLKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SceneKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SpriteKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/XCTest.swiftmodule /Users/mwaly/Downloads/EventsVIPER/Pods/Headers/Public/SnapshotTesting/SnapshotTesting-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/Modules/module.modulemap /Users/mwaly/Downloads/EventsVIPER/Pods/Headers/Public/SnapshotTesting/SnapshotTesting.modulemap /Users/mwaly/Desktop/Apps/EventsVIPER/Pods/Headers/Public/SnapshotTesting/SnapshotTesting.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/ModelIO.framework/Headers/ModelIO.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/GLKit.framework/Headers/GLKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SceneKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/SpriteKit.framework/Headers/SpriteKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCTest.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/mwaly/Downloads/EventsVIPER/Build/Intermediates/Pods.build/Debug-iphonesimulator/SnapshotTesting.build/Objects-normal/x86_64/NSView~partial.swiftdoc : /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/Data.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Async.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/UIImage.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/NSImage.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/Codable.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/CaseIterable.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/SnapshotTestCase.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Diff.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Diffing.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/String.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Common/Internal.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/Description.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Common/PlistEncoder.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/UIViewController.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/NSViewController.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/CALayer.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/SceneKit.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/SpriteKit.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Common/XCTAttachment.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/AssertSnapshot.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/URLRequest.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Common/View.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/UIView.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/NSView.swift /Users/mwaly/Downloads/EventsVIPER/Pods/SnapshotTesting/Sources/SnapshotTesting/Snapshotting/Any.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/ModelIO.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/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/GLKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SceneKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SpriteKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/XCTest.swiftmodule /Users/mwaly/Downloads/EventsVIPER/Pods/Headers/Public/SnapshotTesting/SnapshotTesting-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/Modules/module.modulemap /Users/mwaly/Downloads/EventsVIPER/Pods/Headers/Public/SnapshotTesting/SnapshotTesting.modulemap /Users/mwaly/Desktop/Apps/EventsVIPER/Pods/Headers/Public/SnapshotTesting/SnapshotTesting.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/ModelIO.framework/Headers/ModelIO.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/GLKit.framework/Headers/GLKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SceneKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/SpriteKit.framework/Headers/SpriteKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCTest.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 |
/*
* Collie - An asynchronous event-driven network framework using Dlang development
*
* Copyright (C) 2015-2016 Shanghai Putao Technology Co., Ltd
*
* Developer: putao's Dlang team
*
* Licensed under the Apache-2.0 License.
*
*/
module app;
import core.thread;
import std.datetime;
import std.stdio;
import std.functional;
import std.exception;
import std.experimental.logger;
import yu.eventloop;
import yu.asyncsocket.server.tcpserver;
import yu.asyncsocket.server.connection;
import yu.asyncsocket;
import yu.task;
import yu.memory.allocator;
import yu.memory.gc;
import yu.exception;
final class WriteBuffer : TCPWriteBuffer
{
this(in ubyte[] data)
{
_data = yNewArray!ubyte(data.length);
_data[] = data[];
}
~this(){
if(_data.ptr) {
yDel(_data);
_data = null;
}
}
override const(ubyte)[] data() nothrow
{
return _data[_site .. $];
}
// add send offiset and return is empty
override bool popSize(size_t size) nothrow
{
_site += size;
if (_site >= _data.length)
return true;
else
return false;
}
// do send finish
override void doFinish() nothrow
{
yuCathException({yDel(this); }());
}
private:
size_t _site = 0;
ubyte[] _data;
}
@trusted class EchoConnect : ServerConnection {
this(TCPSocket sock) {
super(sock);
}
protected:
override void onActive() nothrow {
yuCathException(writeln("new client connected : ", tcpSocket.remoteAddress.toString()));
}
override void onClose() nothrow {
yuCathException(writeln("client disconnect"));
yuCathException(yDel(this));
}
override void onRead(in ubyte[] data) nothrow {
yuCathException({
writeln("read data : ", cast(string) data);
this.write(yNew!WriteBuffer(data));
}());
}
override void onTimeOut() nothrow {
yuCathException({
writeln("client timeout : ", tcpSocket.remoteAddress.toString());
close();
}());
}
}
void main() {
import std.experimental.allocator.mallocator;
//yuAlloctor = allocatorObject(Mallocator.instance);
@trusted ServerConnection newConnect(EventLoop lop, Socket soc) nothrow {
ServerConnection con;
yuCathException(yNew!EchoConnect(yNew!TCPSocket(lop, soc)), con);
return con;
}
EventLoop loop = yNew!EventLoop();
scope (exit)
yDel(loop);
TCPServer server = yNew!TCPServer(loop);
scope (exit)
yDel(server);
server.setNewConntionCallBack(&newConnect);
server.bind(yNew!InternetAddress("127.0.0.1", cast(ushort) 8094), (Acceptor accept) {
accept.reusePort(true);
});
server.listen(1024);
server.startTimer(120);
loop.run();
}
| D |
module game.attachedcam;
import base.all, game.gameobject;
class AttachedCamera : IGameObject {
private {
IGameObject m_Target;
SmartPtr!IRenderProxy m_RenderProxy;
vec3 m_Offset;
}
this(IGameObject target,vec3 offset){
m_Target = target;
m_RenderProxy = g_Env.renderer.CreateRenderProxy();
m_Offset = offset;
}
void attachTo(IGameObject target) {
m_Target = target;
}
IRenderProxy renderProxy() {
return m_RenderProxy;
}
IGameObject father() const {
return null;
}
/**
* The position of the attached camera can not be set. The position of the
* attached object is used.
*/
void position(Position pos){
// nothing to do
}
/**
* This camera is client only and is not in the octree. Therefore no movement
* notification necessary... I hope.
*/
override bool hasMoved() {
return false;
}
override void update(float timeDiff) {
// Nothing to do yet
}
override rcstring inspect() {
return format("<%s target: %s>", this.classinfo.name, m_Target);
}
override void debugDraw(shared(IRenderer) renderer) {
// Nothing to do yet
}
override bool syncOverNetwork() const {
return false;
}
//
// Pass though stuff to mimic the attached object (we want to see the world
// though its perspective, don't we?).
//
EntityId entityId() const {
return m_Target.entityId();
}
Position position() const {
vec4 offset = m_Target.rotation.toMat4() * vec4(m_Offset);
return m_Target.position() + vec3(offset);
}
Quaternion rotation() const {
return m_Target.rotation();
}
override mat4 transformation(Position origin) const {
return TranslationMatrix(m_Offset) * m_Target.rotation.toMat4() * TranslationMatrix(m_Target.position - origin);
}
AlignedBox boundingBox() const {
return m_Target.boundingBox();
}
void offset(vec3 offset){
m_Offset = offset;
}
//
// Object is client only (not networked) so just do nothing stuff
//
void serialize(ISerializer ser, bool fullSerialization) {}
void resetChangedFlags() {}
void postSpawn() {}
void onDeleteRequest() {}
void toggleCollMode() {}
override IEvent constructEvent(EventId id, IAllocator allocator) { return null; }
}
| D |
module grain.opencl.compiler;
import grain.cl.testing : checkCl;
import grain.cl.device;
import grain.cl.allocator;
import grain.dpp.cl;
@nogc
unittest
{
import core.stdc.stdio : fprintf, stderr;
// init device
cl_platform_id platform;
cl_device_id device;
checkCl!clGetPlatformIDs(1, &platform, null);
checkCl!clGetDeviceIDs(platform, CL_DEVICE_TYPE_DEFAULT, 1, &device, null);
auto context = checkCl!clCreateContext(null, 1, &device, null, null);
scope (exit) checkCl!clReleaseContext(context);
// printDeviceInfo(device);
// compile
auto source = q{
__kernel void vectorAdd(__global float *a, __global float* b, __global float* c) {
int i = get_global_id(0);
c[i] = a[i] + b[i];
}
};
const(char)* ptr = source.ptr;
auto len = source.length;
auto program = checkCl!clCreateProgramWithSource(context, 1, &ptr, &len);
checkCl!clBuildProgram(program, 1, &device, null, null, null);
scope (exit) checkCl!clReleaseProgram(program);
auto name = "vectorAdd";
auto kernel = checkCl!clCreateKernel(program, name.ptr);
scope (exit) checkCl!clReleaseKernel(kernel);
// setup data
static const float[] ha = [1, 2, 3];
static const float[] hb = [4, 5, 6];
auto queue = checkCl!clCreateCommandQueue(context, device, 0);
scope (exit)
{
checkCl!clFlush(queue);
checkCl!clFinish(queue);
checkCl!clReleaseCommandQueue(queue);
}
auto da = checkCl!clCreateBuffer(context, CL_MEM_READ_WRITE, float.sizeof * ha.length, null);
scope (exit) checkCl!clReleaseMemObject(da);
checkCl!clEnqueueWriteBuffer(queue, da, CL_TRUE, 0, float.sizeof * ha.length, ha.ptr, 0, null, null);
auto db = checkCl!clCreateBuffer(context, CL_MEM_READ_WRITE, float.sizeof * hb.length, null);
scope (exit) checkCl!clReleaseMemObject(db);
checkCl!clEnqueueWriteBuffer(queue, db, CL_TRUE, 0, float.sizeof * hb.length, hb.ptr, 0, null, null);
auto dc = checkCl!clCreateBuffer(context, CL_MEM_READ_WRITE, float.sizeof * hb.length, null);
scope (exit) checkCl!clReleaseMemObject(dc);
// launch
auto globalWorkSize = ha.length;
checkCl!clSetKernelArg(kernel, 0, cl_mem.sizeof, &da);
checkCl!clSetKernelArg(kernel, 1, cl_mem.sizeof, &db);
checkCl!clSetKernelArg(kernel, 2, cl_mem.sizeof, &dc);
checkCl!clEnqueueNDRangeKernel(
queue, kernel, 1, null, // this must be null
&globalWorkSize, null, // auto localWorkSize
0, null, null // no event config
);
// copy memory from device to host
import grain.allocator : CPUMallocator;
CPUMallocator alloc;
auto buffer = alloc.allocate(ha.length * float.sizeof);
auto hc = (cast(float*) buffer.ptr)[0 .. ha.length];
scope (exit) alloc.deallocate(buffer);
checkCl!clEnqueueReadBuffer(queue, dc, CL_TRUE, 0, float.sizeof * hc.length, hc.ptr, 0, null, null);
auto buffer2 = alloc.allocate(ha.length * float.sizeof);
scope (exit) alloc.deallocate(buffer2);
auto expected = (cast(float*) buffer2.ptr)[0 .. ha.length];
expected[] = ha[] + hb[];
foreach (i; 0 .. ha.length)
{
stderr.fprintf("[%d]: %.1f + %.1f -> %.1f\n", i, ha[i], hb[i], hc[i]);
}
assert(hc == expected);
}
| D |
// Written in the D programming language
/*
Copyright (C) 2004-2011 Christopher E. Miller
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.
socket.d 1.4
Jan 2011
Thanks to Benjamin Herr for his assistance.
*/
/**
* Socket primitives.
* Example: See $(SAMPLESRC listener.d) and $(SAMPLESRC htmlget.d)
* License: $(WEB www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Christopher E. Miller, $(WEB klickverbot.at, David Nadlinger),
* $(WEB thecybershadow.net, Vladimir Panteleev)
* Source: $(PHOBOSSRC std/_socket.d)
* Macros:
* WIKI=Phobos/StdSocket
*/
module std.socket;
import core.stdc.stdint, core.stdc.string, std.string, core.stdc.stdlib, std.conv;
import core.stdc.config;
import core.time : dur, Duration;
import std.algorithm : max;
import std.exception : assumeUnique, enforce, collectException;
import std.internal.cstring;
@safe:
version(Windows)
{
pragma (lib, "ws2_32.lib");
pragma (lib, "wsock32.lib");
private import core.sys.windows.windows, core.sys.windows.winsock2, std.windows.syserror;
private alias _ctimeval = core.sys.windows.winsock2.timeval;
private alias _clinger = core.sys.windows.winsock2.linger;
enum socket_t : SOCKET { INVALID_SOCKET }
private const int _SOCKET_ERROR = SOCKET_ERROR;
private int _lasterr() nothrow @nogc
{
return WSAGetLastError();
}
}
else version(Posix)
{
version(linux)
{
enum : int
{
TCP_KEEPIDLE = 4,
TCP_KEEPINTVL = 5
}
}
import core.sys.posix.netdb;
import core.sys.posix.sys.un : sockaddr_un;
private import core.sys.posix.fcntl;
private import core.sys.posix.unistd;
private import core.sys.posix.arpa.inet;
private import core.sys.posix.netinet.tcp;
private import core.sys.posix.netinet.in_;
private import core.sys.posix.sys.time;
private import core.sys.posix.sys.select;
private import core.sys.posix.sys.socket;
private alias _ctimeval = core.sys.posix.sys.time.timeval;
private alias _clinger = core.sys.posix.sys.socket.linger;
private import core.stdc.errno;
enum socket_t : int32_t { init = -1 }
private const int _SOCKET_ERROR = -1;
private enum : int
{
SD_RECEIVE = SHUT_RD,
SD_SEND = SHUT_WR,
SD_BOTH = SHUT_RDWR
}
private int _lasterr() nothrow @nogc
{
return errno;
}
}
else
{
static assert(0); // No socket support yet.
}
version(unittest)
{
static assert(is(uint32_t == uint));
static assert(is(uint16_t == ushort));
private import std.stdio : writefln;
// Print a message on exception instead of failing the unittest.
private void softUnittest(void delegate() @safe test, int line = __LINE__) @trusted
{
try
test();
catch (Throwable e)
{
writefln(" --- std.socket(%d) test fails depending on environment ---", line);
writefln(" (%s)", e);
}
}
}
/// Base exception thrown by $(D std.socket).
class SocketException: Exception
{
///
this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null) pure nothrow
{
super(msg, file, line, next);
}
///
this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__) pure nothrow
{
super(msg, next, file, line);
}
}
// Needs to be public so that SocketOSException can be thrown outside of
// std.socket (since it uses it as a default argument), but it probably doesn't
// need to actually show up in the docs, since there's not really any public
// need for it outside of being a default argument.
string formatSocketError(int err) @trusted
{
version(Posix)
{
char[80] buf;
const(char)* cs;
version (linux)
{
cs = strerror_r(err, buf.ptr, buf.length);
}
else version (OSX)
{
auto errs = strerror_r(err, buf.ptr, buf.length);
if (errs == 0)
cs = buf.ptr;
else
return "Socket error " ~ to!string(err);
}
else version (FreeBSD)
{
auto errs = strerror_r(err, buf.ptr, buf.length);
if (errs == 0)
cs = buf.ptr;
else
return "Socket error " ~ to!string(err);
}
else version (Solaris)
{
auto errs = strerror_r(err, buf.ptr, buf.length);
if (errs == 0)
cs = buf.ptr;
else
return "Socket error " ~ to!string(err);
}
else version (Android)
{
auto errs = strerror_r(err, buf.ptr, buf.length);
if (errs == 0)
cs = buf.ptr;
else
return "Socket error " ~ to!string(err);
}
else
static assert(0);
auto len = strlen(cs);
if(cs[len - 1] == '\n')
len--;
if(cs[len - 1] == '\r')
len--;
return cs[0 .. len].idup;
}
else
version(Windows)
{
return sysErrorString(err);
}
else
return "Socket error " ~ to!string(err);
}
/// Retrieve the error message for the most recently encountered network error.
@property string lastSocketError()
{
return formatSocketError(_lasterr());
}
/// Socket exceptions representing network errors reported by the operating
/// system.
class SocketOSException: SocketException
{
int errorCode; /// Platform-specific error code.
///
this(string msg,
string file = __FILE__,
size_t line = __LINE__,
Throwable next = null,
int err = _lasterr(),
string function(int) @trusted errorFormatter = &formatSocketError)
{
errorCode = err;
if (msg.length)
super(msg ~ ": " ~ errorFormatter(err), file, line, next);
else
super(errorFormatter(err), file, line, next);
}
///
this(string msg,
Throwable next,
string file = __FILE__,
size_t line = __LINE__,
int err = _lasterr(),
string function(int) @trusted errorFormatter = &formatSocketError)
{
this(msg, file, line, next, err, errorFormatter);
}
///
this(string msg,
int err,
string function(int) @trusted errorFormatter = &formatSocketError,
string file = __FILE__,
size_t line = __LINE__,
Throwable next = null)
{
this(msg, file, line, next, err, errorFormatter);
}
}
/// Socket exceptions representing invalid parameters specified by user code.
class SocketParameterException: SocketException
{
///
this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null) pure nothrow
{
super(msg, file, line, next);
}
///
this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__) pure nothrow
{
super(msg, next, file, line);
}
}
/// Socket exceptions representing attempts to use network capabilities not
/// available on the current system.
class SocketFeatureException: SocketException
{
///
this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null) pure nothrow
{
super(msg, file, line, next);
}
///
this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__) pure nothrow
{
super(msg, next, file, line);
}
}
/// Return $(D true) if the last socket operation failed because the socket
/// was in non-blocking mode and the operation would have blocked.
bool wouldHaveBlocked() nothrow @nogc
{
version(Windows)
return _lasterr() == WSAEWOULDBLOCK;
else version(Posix)
return _lasterr() == EAGAIN;
else
static assert(0);
}
private immutable
{
typeof(&getnameinfo) getnameinfoPointer;
typeof(&getaddrinfo) getaddrinfoPointer;
typeof(&freeaddrinfo) freeaddrinfoPointer;
}
shared static this() @system
{
version(Windows)
{
WSADATA wd;
// Winsock will still load if an older version is present.
// The version is just a request.
int val;
val = WSAStartup(0x2020, &wd);
if(val) // Request Winsock 2.2 for IPv6.
throw new SocketOSException("Unable to initialize socket library", val);
// These functions may not be present on older Windows versions.
// See the comment in InternetAddress.toHostNameString() for details.
auto ws2Lib = GetModuleHandleA("ws2_32.dll");
if (ws2Lib)
{
getnameinfoPointer = cast(typeof(getnameinfoPointer))
GetProcAddress(ws2Lib, "getnameinfo");
getaddrinfoPointer = cast(typeof(getaddrinfoPointer))
GetProcAddress(ws2Lib, "getaddrinfo");
freeaddrinfoPointer = cast(typeof(freeaddrinfoPointer))
GetProcAddress(ws2Lib, "freeaddrinfo");
}
}
else version(Posix)
{
getnameinfoPointer = &getnameinfo;
getaddrinfoPointer = &getaddrinfo;
freeaddrinfoPointer = &freeaddrinfo;
}
}
shared static ~this() @system nothrow @nogc
{
version(Windows)
{
WSACleanup();
}
}
/**
* The communication domain used to resolve an address.
*/
enum AddressFamily: int
{
UNSPEC = AF_UNSPEC, /// Unspecified address family
UNIX = AF_UNIX, /// Local communication
INET = AF_INET, /// Internet Protocol version 4
IPX = AF_IPX, /// Novell IPX
APPLETALK = AF_APPLETALK, /// AppleTalk
INET6 = AF_INET6, /// Internet Protocol version 6
}
/**
* Communication semantics
*/
enum SocketType: int
{
STREAM = SOCK_STREAM, /// Sequenced, reliable, two-way communication-based byte streams
DGRAM = SOCK_DGRAM, /// Connectionless, unreliable datagrams with a fixed maximum length; data may be lost or arrive out of order
RAW = SOCK_RAW, /// Raw protocol access
RDM = SOCK_RDM, /// Reliably-delivered message datagrams
SEQPACKET = SOCK_SEQPACKET, /// Sequenced, reliable, two-way connection-based datagrams with a fixed maximum length
}
/**
* Protocol
*/
version(Android)
{
// no GGP on Android
enum ProtocolType: int
{
IP = IPPROTO_IP, /// Internet Protocol version 4
ICMP = IPPROTO_ICMP, /// Internet Control Message Protocol
IGMP = IPPROTO_IGMP, /// Internet Group Management Protocol
TCP = IPPROTO_TCP, /// Transmission Control Protocol
PUP = IPPROTO_PUP, /// PARC Universal Packet Protocol
UDP = IPPROTO_UDP, /// User Datagram Protocol
IDP = IPPROTO_IDP, /// Xerox NS protocol
RAW = IPPROTO_RAW, /// Raw IP packets
IPV6 = IPPROTO_IPV6, /// Internet Protocol version 6
}
}
else
{
enum ProtocolType: int
{
IP = IPPROTO_IP, /// Internet Protocol version 4
ICMP = IPPROTO_ICMP, /// Internet Control Message Protocol
IGMP = IPPROTO_IGMP, /// Internet Group Management Protocol
GGP = IPPROTO_GGP, /// Gateway to Gateway Protocol
TCP = IPPROTO_TCP, /// Transmission Control Protocol
PUP = IPPROTO_PUP, /// PARC Universal Packet Protocol
UDP = IPPROTO_UDP, /// User Datagram Protocol
IDP = IPPROTO_IDP, /// Xerox NS protocol
RAW = IPPROTO_RAW, /// Raw IP packets
IPV6 = IPPROTO_IPV6, /// Internet Protocol version 6
}
}
/**
* $(D Protocol) is a class for retrieving protocol information.
*
* Example:
* ---
* auto proto = new Protocol;
* writeln("About protocol TCP:");
* if (proto.getProtocolByType(ProtocolType.TCP))
* {
* writefln(" Name: %s", proto.name);
* foreach(string s; proto.aliases)
* writefln(" Alias: %s", s);
* }
* else
* writeln(" No information found");
* ---
*/
class Protocol
{
/// These members are populated when one of the following functions are called successfully:
ProtocolType type;
string name; /// ditto
string[] aliases; /// ditto
void populate(protoent* proto) @system pure nothrow
{
type = cast(ProtocolType)proto.p_proto;
name = to!string(proto.p_name);
int i;
for(i = 0;; i++)
{
if(!proto.p_aliases[i])
break;
}
if(i)
{
aliases = new string[i];
for(i = 0; i != aliases.length; i++)
{
aliases[i] =
to!string(proto.p_aliases[i]);
}
}
else
{
aliases = null;
}
}
/** Returns: false on failure */
bool getProtocolByName(in char[] name) @trusted nothrow
{
protoent* proto;
proto = getprotobyname(name.tempCString());
if(!proto)
return false;
populate(proto);
return true;
}
/** Returns: false on failure */
// Same as getprotobynumber().
bool getProtocolByType(ProtocolType type) @trusted nothrow
{
protoent* proto;
proto = getprotobynumber(type);
if(!proto)
return false;
populate(proto);
return true;
}
}
unittest
{
// getprotobyname,number are unimplemented on Android
softUnittest({
Protocol proto = new Protocol;
assert(proto.getProtocolByType(ProtocolType.TCP));
//writeln("About protocol TCP:");
//writefln("\tName: %s", proto.name);
// foreach(string s; proto.aliases)
// {
// writefln("\tAlias: %s", s);
// }
assert(proto.name == "tcp");
assert(proto.aliases.length == 1 && proto.aliases[0] == "TCP");
});
}
/**
* $(D Service) is a class for retrieving service information.
*
* Example:
* ---
* auto serv = new Service;
* writeln("About service epmap:");
* if (serv.getServiceByName("epmap", "tcp"))
* {
* writefln(" Service: %s", serv.name);
* writefln(" Port: %d", serv.port);
* writefln(" Protocol: %s", serv.protocolName);
* foreach (string s; serv.aliases)
* writefln(" Alias: %s", s);
* }
* else
* writefln(" No service for epmap.");
* ---
*/
class Service
{
/// These members are populated when one of the following functions are called successfully:
string name;
string[] aliases; /// ditto
ushort port; /// ditto
string protocolName; /// ditto
void populate(servent* serv) @system pure nothrow
{
name = to!string(serv.s_name);
port = ntohs(cast(ushort)serv.s_port);
protocolName = to!string(serv.s_proto);
int i;
for(i = 0;; i++)
{
if(!serv.s_aliases[i])
break;
}
if(i)
{
aliases = new string[i];
for(i = 0; i != aliases.length; i++)
{
aliases[i] =
to!string(serv.s_aliases[i]);
}
}
else
{
aliases = null;
}
}
/**
* If a protocol name is omitted, any protocol will be matched.
* Returns: false on failure.
*/
bool getServiceByName(in char[] name, in char[] protocolName = null) @trusted nothrow
{
servent* serv;
serv = getservbyname(name.tempCString(), protocolName.tempCString());
if(!serv)
return false;
populate(serv);
return true;
}
/// ditto
bool getServiceByPort(ushort port, in char[] protocolName = null) @trusted nothrow
{
servent* serv;
serv = getservbyport(port, protocolName.tempCString());
if(!serv)
return false;
populate(serv);
return true;
}
}
unittest
{
softUnittest({
Service serv = new Service;
if(serv.getServiceByName("epmap", "tcp"))
{
// writefln("About service epmap:");
// writefln("\tService: %s", serv.name);
// writefln("\tPort: %d", serv.port);
// writefln("\tProtocol: %s", serv.protocolName);
// foreach(string s; serv.aliases)
// {
// writefln("\tAlias: %s", s);
// }
// For reasons unknown this is loc-srv on Wine and epmap on Windows
assert(serv.name == "loc-srv" || serv.name == "epmap", serv.name);
assert(serv.port == 135);
assert(serv.protocolName == "tcp");
}
else
{
writefln("No service for epmap.");
}
});
}
/**
* Class for exceptions thrown from an $(D InternetHost).
*/
class HostException: SocketOSException
{
///
this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null, int err = _lasterr())
{
super(msg, file, line, next, err);
}
///
this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__, int err = _lasterr())
{
super(msg, next, file, line, err);
}
///
this(string msg, int err, string file = __FILE__, size_t line = __LINE__, Throwable next = null)
{
super(msg, next, file, line, err);
}
}
/**
* $(D InternetHost) is a class for resolving IPv4 addresses.
*
* Consider using $(D getAddress), $(D parseAddress) and $(D Address) methods
* instead of using this class directly.
*
* Example:
* ---
* auto ih = new InternetHost;
*
* // Forward lookup
* writeln("About www.digitalmars.com:");
* if (ih.getHostByName("www.digitalmars.com"))
* {
* writefln(" Name: %s", ih.name);
* auto ip = InternetAddress.addrToString(ih.addrList[0]);
* writefln(" IP address: %s", ip);
* foreach (string s; ih.aliases)
* writefln(" Alias: %s", s);
* writeln("---");
*
* // Reverse lookup
* writefln("About IP %s:", ip);
* if (ih.getHostByAddr(ih.addrList[0]))
* {
* writefln(" Name: %s", ih.name);
* foreach (string s; ih.aliases)
* writefln(" Alias: %s", s);
* }
* else
* writeln(" Reverse lookup failed");
* }
* else
* writeln(" Can't resolve www.digitalmars.com");
* ---
*/
class InternetHost
{
/// These members are populated when one of the following functions are called successfully:
string name;
string[] aliases; /// ditto
uint[] addrList; /// ditto
void validHostent(in hostent* he)
{
if(he.h_addrtype != cast(int)AddressFamily.INET || he.h_length != 4)
throw new HostException("Address family mismatch");
}
void populate(hostent* he) @system pure nothrow
{
int i;
char* p;
name = to!string(he.h_name);
for(i = 0;; i++)
{
p = he.h_aliases[i];
if(!p)
break;
}
if(i)
{
aliases = new string[i];
for(i = 0; i != aliases.length; i++)
{
aliases[i] =
to!string(he.h_aliases[i]);
}
}
else
{
aliases = null;
}
for(i = 0;; i++)
{
p = he.h_addr_list[i];
if(!p)
break;
}
if(i)
{
addrList = new uint[i];
for(i = 0; i != addrList.length; i++)
{
addrList[i] = ntohl(*(cast(uint*)he.h_addr_list[i]));
}
}
else
{
addrList = null;
}
}
private bool getHostNoSync(string opMixin, T)(T param) @system
{
mixin(opMixin);
if (!he)
return false;
validHostent(he);
populate(he);
return true;
}
version(Windows)
alias getHost = getHostNoSync;
else
{
// posix systems use global state for return value, so we
// must synchronize across all threads
private bool getHost(string opMixin, T)(T param) @system
{
synchronized(this.classinfo)
return getHostNoSync!(opMixin, T)(param);
}
}
/**
* Resolve host name.
* Returns: false if unable to resolve.
*/
bool getHostByName(in char[] name) @trusted
{
static if (is(typeof(gethostbyname_r)))
{
return getHostNoSync!q{
hostent he_v;
hostent* he;
ubyte[256] buffer_v = void;
auto buffer = buffer_v[];
auto param_zTmp = param.tempCString();
while (true)
{
he = &he_v;
int errno;
if (gethostbyname_r(param_zTmp, he, buffer.ptr, buffer.length, &he, &errno) == ERANGE)
buffer.length = buffer.length * 2;
else
break;
}
}(name);
}
else
{
return getHost!q{
auto he = gethostbyname(param.tempCString());
}(name);
}
}
/**
* Resolve IPv4 address number.
*
* Params:
* addr = The IPv4 address to resolve, in host byte order.
* Returns:
* false if unable to resolve.
*/
bool getHostByAddr(uint addr) @trusted
{
return getHost!q{
auto x = htonl(param);
auto he = gethostbyaddr(&x, 4, cast(int)AddressFamily.INET);
}(addr);
}
/**
* Same as previous, but addr is an IPv4 address string in the
* dotted-decimal form $(I a.b.c.d).
* Returns: false if unable to resolve.
*/
bool getHostByAddr(in char[] addr) @trusted
{
return getHost!q{
auto x = inet_addr(param.tempCString());
enforce(x != INADDR_NONE,
new SocketParameterException("Invalid IPv4 address"));
auto he = gethostbyaddr(&x, 4, cast(int)AddressFamily.INET);
}(addr);
}
}
unittest
{
InternetHost ih = new InternetHost;
ih.getHostByAddr(0x7F_00_00_01);
assert(ih.addrList[0] == 0x7F_00_00_01);
ih.getHostByAddr("127.0.0.1");
assert(ih.addrList[0] == 0x7F_00_00_01);
softUnittest({
if (!ih.getHostByName("www.digitalmars.com"))
return; // don't fail if not connected to internet
//writefln("addrList.length = %d", ih.addrList.length);
assert(ih.addrList.length);
InternetAddress ia = new InternetAddress(ih.addrList[0], InternetAddress.PORT_ANY);
assert(ih.name == "www.digitalmars.com" || ih.name == "digitalmars.com",
ih.name);
// writefln("IP address = %s", ia.toAddrString());
// writefln("name = %s", ih.name);
// foreach(int i, string s; ih.aliases)
// {
// writefln("aliases[%d] = %s", i, s);
// }
// writefln("---");
//assert(ih.getHostByAddr(ih.addrList[0]));
// writefln("name = %s", ih.name);
// foreach(int i, string s; ih.aliases)
// {
// writefln("aliases[%d] = %s", i, s);
// }
});
}
/// Holds information about a socket _address retrieved by $(D getAddressInfo).
struct AddressInfo
{
AddressFamily family; /// Address _family
SocketType type; /// Socket _type
ProtocolType protocol; /// Protocol
Address address; /// Socket _address
string canonicalName; /// Canonical name, when $(D AddressInfoFlags.CANONNAME) is used.
}
// A subset of flags supported on all platforms with getaddrinfo.
/// Specifies option flags for $(D getAddressInfo).
enum AddressInfoFlags: int
{
/// The resulting addresses will be used in a call to $(D Socket.bind).
PASSIVE = AI_PASSIVE,
/// The canonical name is returned in $(D canonicalName) member in the first $(D AddressInfo).
CANONNAME = AI_CANONNAME,
/// The $(D node) parameter passed to $(D getAddressInfo) must be a numeric string.
/// This will suppress any potentially lengthy network host address lookups.
NUMERICHOST = AI_NUMERICHOST,
}
/// On POSIX, getaddrinfo uses its own error codes, and thus has its own
/// formatting function.
private string formatGaiError(int err) @trusted
{
version(Windows)
{
return sysErrorString(err);
}
else
{
synchronized
return to!string(gai_strerror(err));
}
}
/**
* Provides _protocol-independent translation from host names to socket
* addresses. If advanced functionality is not required, consider using
* $(D getAddress) for compatibility with older systems.
*
* Returns: Array with one $(D AddressInfo) per socket address.
*
* Throws: $(D SocketOSException) on failure, or $(D SocketFeatureException)
* if this functionality is not available on the current system.
*
* Params:
* node = string containing host name or numeric address
* options = optional additional parameters, identified by type:
* $(UL $(LI $(D string) - service name or port number)
* $(LI $(D AddressInfoFlags) - option flags)
* $(LI $(D AddressFamily) - address family to filter by)
* $(LI $(D SocketType) - socket type to filter by)
* $(LI $(D ProtocolType) - protocol to filter by))
*
* Example:
* ---
* // Roundtrip DNS resolution
* auto results = getAddressInfo("www.digitalmars.com");
* assert(results[0].address.toHostNameString() ==
* "digitalmars.com");
*
* // Canonical name
* results = getAddressInfo("www.digitalmars.com",
* AddressInfoFlags.CANONNAME);
* assert(results[0].canonicalName == "digitalmars.com");
*
* // IPv6 resolution
* results = getAddressInfo("ipv6.google.com");
* assert(results[0].family == AddressFamily.INET6);
*
* // Multihomed resolution
* results = getAddressInfo("google.com");
* assert(results.length > 1);
*
* // Parsing IPv4
* results = getAddressInfo("127.0.0.1",
* AddressInfoFlags.NUMERICHOST);
* assert(results.length && results[0].family ==
* AddressFamily.INET);
*
* // Parsing IPv6
* results = getAddressInfo("::1",
* AddressInfoFlags.NUMERICHOST);
* assert(results.length && results[0].family ==
* AddressFamily.INET6);
* ---
*/
AddressInfo[] getAddressInfo(T...)(in char[] node, T options) @trusted
{
const(char)[] service = null;
addrinfo hints;
hints.ai_family = AF_UNSPEC;
foreach (option; options)
{
static if (is(typeof(option) : const(char)[]))
service = option;
else
static if (is(typeof(option) == AddressInfoFlags))
hints.ai_flags |= option;
else
static if (is(typeof(option) == AddressFamily))
hints.ai_family = option;
else
static if (is(typeof(option) == SocketType))
hints.ai_socktype = option;
else
static if (is(typeof(option) == ProtocolType))
hints.ai_protocol = option;
else
static assert(0, "Unknown getAddressInfo option type: " ~ typeof(option).stringof);
}
return getAddressInfoImpl(node, service, &hints);
}
private AddressInfo[] getAddressInfoImpl(in char[] node, in char[] service, addrinfo* hints) @system
{
import std.array : appender;
if (getaddrinfoPointer && freeaddrinfoPointer)
{
addrinfo* ai_res;
int ret = getaddrinfoPointer(
node.tempCString(),
service.tempCString(),
hints, &ai_res);
enforce(ret == 0, new SocketOSException("getaddrinfo error", ret, &formatGaiError));
scope(exit) freeaddrinfoPointer(ai_res);
auto result = appender!(AddressInfo[])();
// Use const to force UnknownAddressReference to copy the sockaddr.
for (const(addrinfo)* ai = ai_res; ai; ai = ai.ai_next)
result ~= AddressInfo(
cast(AddressFamily) ai.ai_family,
cast(SocketType ) ai.ai_socktype,
cast(ProtocolType ) ai.ai_protocol,
new UnknownAddressReference(ai.ai_addr, cast(socklen_t) ai.ai_addrlen),
ai.ai_canonname ? to!string(ai.ai_canonname) : null);
assert(result.data.length > 0);
return result.data;
}
throw new SocketFeatureException("Address info lookup is not available " ~
"on this system.");
}
unittest
{
softUnittest({
if (getaddrinfoPointer)
{
// Roundtrip DNS resolution
auto results = getAddressInfo("www.digitalmars.com");
assert(results[0].address.toHostNameString() == "digitalmars.com");
// Canonical name
results = getAddressInfo("www.digitalmars.com",
AddressInfoFlags.CANONNAME);
assert(results[0].canonicalName == "digitalmars.com");
// IPv6 resolution
//results = getAddressInfo("ipv6.google.com");
//assert(results[0].family == AddressFamily.INET6);
// Multihomed resolution
//results = getAddressInfo("google.com");
//assert(results.length > 1);
// Parsing IPv4
results = getAddressInfo("127.0.0.1", AddressInfoFlags.NUMERICHOST);
assert(results.length && results[0].family == AddressFamily.INET);
// Parsing IPv6
results = getAddressInfo("::1", AddressInfoFlags.NUMERICHOST);
assert(results.length && results[0].family == AddressFamily.INET6);
}
});
}
private ushort serviceToPort(in char[] service)
{
if (service == "")
return InternetAddress.PORT_ANY;
else
if (isNumeric(service))
return to!ushort(service);
else
{
auto s = new Service();
s.getServiceByName(service);
return s.port;
}
}
/**
* Provides _protocol-independent translation from host names to socket
* addresses. Uses $(D getAddressInfo) if the current system supports it,
* and $(D InternetHost) otherwise.
*
* Returns: Array with one $(D Address) instance per socket address.
*
* Throws: $(D SocketOSException) on failure.
*
* Example:
* ---
* writeln("Resolving www.digitalmars.com:");
* try
* {
* auto addresses = getAddress("www.digitalmars.com");
* foreach (address; addresses)
* writefln(" IP: %s", address.toAddrString());
* }
* catch (SocketException e)
* writefln(" Lookup failed: %s", e.msg);
* ---
*/
Address[] getAddress(in char[] hostname, in char[] service = null)
{
if (getaddrinfoPointer && freeaddrinfoPointer)
{
// use getAddressInfo
auto infos = getAddressInfo(hostname, service);
Address[] results;
results.length = infos.length;
foreach (i, ref result; results)
result = infos[i].address;
return results;
}
else
return getAddress(hostname, serviceToPort(service));
}
/// ditto
Address[] getAddress(in char[] hostname, ushort port)
{
if (getaddrinfoPointer && freeaddrinfoPointer)
return getAddress(hostname, to!string(port));
else
{
// use getHostByName
auto ih = new InternetHost;
if (!ih.getHostByName(hostname))
throw new AddressException(
text("Unable to resolve host '", hostname, "'"));
Address[] results;
foreach (uint addr; ih.addrList)
results ~= new InternetAddress(addr, port);
return results;
}
}
unittest
{
softUnittest({
auto addresses = getAddress("63.105.9.61");
assert(addresses.length && addresses[0].toAddrString() == "63.105.9.61");
if (getaddrinfoPointer)
{
// test via gethostbyname
auto getaddrinfoPointerBackup = getaddrinfoPointer;
cast() getaddrinfoPointer = null;
scope(exit) cast() getaddrinfoPointer = getaddrinfoPointerBackup;
addresses = getAddress("63.105.9.61");
assert(addresses.length && addresses[0].toAddrString() == "63.105.9.61");
}
});
}
/**
* Provides _protocol-independent parsing of network addresses. Does not
* attempt name resolution. Uses $(D getAddressInfo) with
* $(D AddressInfoFlags.NUMERICHOST) if the current system supports it, and
* $(D InternetAddress) otherwise.
*
* Returns: An $(D Address) instance representing specified address.
*
* Throws: $(D SocketException) on failure.
*
* Example:
* ---
* writeln("Enter IP address:");
* string ip = readln().chomp();
* try
* {
* Address address = parseAddress(ip);
* writefln("Looking up reverse of %s:",
* address.toAddrString());
* try
* {
* string reverse = address.toHostNameString();
* if (reverse)
* writefln(" Reverse name: %s", reverse);
* else
* writeln(" Reverse hostname not found.");
* }
* catch (SocketException e)
* writefln(" Lookup error: %s", e.msg);
* }
* catch (SocketException e)
* {
* writefln(" %s is not a valid IP address: %s",
* ip, e.msg);
* }
* ---
*/
Address parseAddress(in char[] hostaddr, in char[] service = null)
{
if (getaddrinfoPointer && freeaddrinfoPointer)
return getAddressInfo(hostaddr, service, AddressInfoFlags.NUMERICHOST)[0].address;
else
return parseAddress(hostaddr, serviceToPort(service));
}
/// ditto
Address parseAddress(in char[] hostaddr, ushort port)
{
if (getaddrinfoPointer && freeaddrinfoPointer)
return parseAddress(hostaddr, to!string(port));
else
{
auto in4_addr = InternetAddress.parse(hostaddr);
enforce(in4_addr != InternetAddress.ADDR_NONE,
new SocketParameterException("Invalid IP address"));
return new InternetAddress(in4_addr, port);
}
}
unittest
{
softUnittest({
auto address = parseAddress("63.105.9.61");
assert(address.toAddrString() == "63.105.9.61");
if (getaddrinfoPointer)
{
// test via inet_addr
auto getaddrinfoPointerBackup = getaddrinfoPointer;
cast() getaddrinfoPointer = null;
scope(exit) cast() getaddrinfoPointer = getaddrinfoPointerBackup;
address = parseAddress("63.105.9.61");
assert(address.toAddrString() == "63.105.9.61");
}
assert(collectException!SocketException(parseAddress("Invalid IP address")));
});
}
/**
* Class for exceptions thrown from an $(D Address).
*/
class AddressException: SocketOSException
{
///
this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null, int err = _lasterr())
{
super(msg, file, line, next, err);
}
///
this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__, int err = _lasterr())
{
super(msg, next, file, line, err);
}
///
this(string msg, int err, string file = __FILE__, size_t line = __LINE__, Throwable next = null)
{
super(msg, next, file, line, err);
}
}
/**
* $(D Address) is an abstract class for representing a socket addresses.
*
* Example:
* ---
* writeln("About www.google.com port 80:");
* try
* {
* Address[] addresses = getAddress("www.google.com", 80);
* writefln(" %d addresses found.", addresses.length);
* foreach (int i, Address a; addresses)
* {
* writefln(" Address %d:", i+1);
* writefln(" IP address: %s", a.toAddrString());
* writefln(" Hostname: %s", a.toHostNameString());
* writefln(" Port: %s", a.toPortString());
* writefln(" Service name: %s",
* a.toServiceNameString());
* }
* }
* catch (SocketException e)
* writefln(" Lookup error: %s", e.msg);
* ---
*/
abstract class Address
{
/// Returns pointer to underlying $(D sockaddr) structure.
abstract @property sockaddr* name() pure nothrow @nogc;
abstract @property const(sockaddr)* name() const pure nothrow @nogc; /// ditto
/// Returns actual size of underlying $(D sockaddr) structure.
abstract @property socklen_t nameLen() const pure nothrow @nogc;
/// Family of this address.
@property AddressFamily addressFamily() const pure nothrow @nogc
{
return cast(AddressFamily) name.sa_family;
}
// Common code for toAddrString and toHostNameString
private final string toHostString(bool numeric) @trusted const
{
// getnameinfo() is the recommended way to perform a reverse (name)
// lookup on both Posix and Windows. However, it is only available
// on Windows XP and above, and not included with the WinSock import
// libraries shipped with DMD. Thus, we check for getnameinfo at
// runtime in the shared module constructor, and use it if it's
// available in the base class method. Classes for specific network
// families (e.g. InternetHost) override this method and use a
// deprecated, albeit commonly-available method when getnameinfo()
// is not available.
// http://technet.microsoft.com/en-us/library/aa450403.aspx
if (getnameinfoPointer)
{
auto buf = new char[NI_MAXHOST];
auto ret = getnameinfoPointer(
name, nameLen,
buf.ptr, cast(uint)buf.length,
null, 0,
numeric ? NI_NUMERICHOST : NI_NAMEREQD);
if (!numeric)
{
if (ret==EAI_NONAME)
return null;
version(Windows)
if (ret==WSANO_DATA)
return null;
}
enforce(ret == 0, new AddressException("Could not get " ~
(numeric ? "host address" : "host name")));
return assumeUnique(buf[0 .. strlen(buf.ptr)]);
}
throw new SocketFeatureException((numeric ? "Host address" : "Host name") ~
" lookup for this address family is not available on this system.");
}
// Common code for toPortString and toServiceNameString
private final string toServiceString(bool numeric) @trusted const
{
// See toHostNameString() for details about getnameinfo().
if (getnameinfoPointer)
{
auto buf = new char[NI_MAXSERV];
enforce(getnameinfoPointer(
name, nameLen,
null, 0,
buf.ptr, cast(uint)buf.length,
numeric ? NI_NUMERICSERV : NI_NAMEREQD
) == 0, new AddressException("Could not get " ~
(numeric ? "port number" : "service name")));
return assumeUnique(buf[0 .. strlen(buf.ptr)]);
}
throw new SocketFeatureException((numeric ? "Port number" : "Service name") ~
" lookup for this address family is not available on this system.");
}
/**
* Attempts to retrieve the host address as a human-readable string.
*
* Throws: $(D AddressException) on failure, or $(D SocketFeatureException)
* if address retrieval for this address family is not available on the
* current system.
*/
string toAddrString() const
{
return toHostString(true);
}
/**
* Attempts to retrieve the host name as a fully qualified domain name.
*
* Returns: The FQDN corresponding to this $(D Address), or $(D null) if
* the host name did not resolve.
*
* Throws: $(D AddressException) on error, or $(D SocketFeatureException)
* if host name lookup for this address family is not available on the
* current system.
*/
string toHostNameString() const
{
return toHostString(false);
}
/**
* Attempts to retrieve the numeric port number as a string.
*
* Throws: $(D AddressException) on failure, or $(D SocketFeatureException)
* if port number retrieval for this address family is not available on the
* current system.
*/
string toPortString() const
{
return toServiceString(true);
}
/**
* Attempts to retrieve the service name as a string.
*
* Throws: $(D AddressException) on failure, or $(D SocketFeatureException)
* if service name lookup for this address family is not available on the
* current system.
*/
string toServiceNameString() const
{
return toServiceString(false);
}
/// Human readable string representing this address.
override string toString() const
{
try
{
string host = toAddrString();
string port = toPortString();
if (host.indexOf(':') >= 0)
return "[" ~ host ~ "]:" ~ port;
else
return host ~ ":" ~ port;
}
catch (SocketException)
return "Unknown";
}
}
/**
* $(D UnknownAddress) encapsulates an unknown socket address.
*/
class UnknownAddress: Address
{
protected:
sockaddr sa;
public:
override @property sockaddr* name()
{
return &sa;
}
override @property const(sockaddr)* name() const
{
return &sa;
}
override @property socklen_t nameLen() const
{
return cast(socklen_t) sa.sizeof;
}
}
/**
* $(D UnknownAddressReference) encapsulates a reference to an arbitrary
* socket address.
*/
class UnknownAddressReference: Address
{
protected:
sockaddr* sa;
socklen_t len;
public:
/// Constructs an $(D Address) with a reference to the specified $(D sockaddr).
this(sockaddr* sa, socklen_t len) pure nothrow @nogc
{
this.sa = sa;
this.len = len;
}
/// Constructs an $(D Address) with a copy of the specified $(D sockaddr).
this(const(sockaddr)* sa, socklen_t len) @system pure nothrow
{
this.sa = cast(sockaddr*) (cast(ubyte*)sa)[0..len].dup.ptr;
this.len = len;
}
override @property sockaddr* name()
{
return sa;
}
override @property const(sockaddr)* name() const
{
return sa;
}
override @property socklen_t nameLen() const
{
return cast(socklen_t) len;
}
}
/**
* $(D InternetAddress) encapsulates an IPv4 (Internet Protocol version 4)
* socket address.
*
* Consider using $(D getAddress), $(D parseAddress) and $(D Address) methods
* instead of using this class directly.
*/
class InternetAddress: Address
{
protected:
sockaddr_in sin;
this() pure nothrow @nogc
{
}
public:
override @property sockaddr* name()
{
return cast(sockaddr*)&sin;
}
override @property const(sockaddr)* name() const
{
return cast(const(sockaddr)*)&sin;
}
override @property socklen_t nameLen() const
{
return cast(socklen_t) sin.sizeof;
}
enum uint ADDR_ANY = INADDR_ANY; /// Any IPv4 host address.
enum uint ADDR_NONE = INADDR_NONE; /// An invalid IPv4 host address.
enum ushort PORT_ANY = 0; /// Any IPv4 port number.
/// Returns the IPv4 _port number (in host byte order).
@property ushort port() const pure nothrow @nogc
{
return ntohs(sin.sin_port);
}
/// Returns the IPv4 address number (in host byte order).
@property uint addr() const pure nothrow @nogc
{
return ntohl(sin.sin_addr.s_addr);
}
/**
* Construct a new $(D InternetAddress).
* Params:
* addr = an IPv4 address string in the dotted-decimal form a.b.c.d,
* or a host name which will be resolved using an $(D InternetHost)
* object.
* port = port number, may be $(D PORT_ANY).
*/
this(in char[] addr, ushort port)
{
uint uiaddr = parse(addr);
if(ADDR_NONE == uiaddr)
{
InternetHost ih = new InternetHost;
if(!ih.getHostByName(addr))
//throw new AddressException("Invalid internet address");
throw new AddressException(
text("Unable to resolve host '", addr, "'"));
uiaddr = ih.addrList[0];
}
sin.sin_family = AddressFamily.INET;
sin.sin_addr.s_addr = htonl(uiaddr);
sin.sin_port = htons(port);
}
/**
* Construct a new $(D InternetAddress).
* Params:
* addr = (optional) an IPv4 address in host byte order, may be $(D ADDR_ANY).
* port = port number, may be $(D PORT_ANY).
*/
this(uint addr, ushort port) pure nothrow @nogc
{
sin.sin_family = AddressFamily.INET;
sin.sin_addr.s_addr = htonl(addr);
sin.sin_port = htons(port);
}
/// ditto
this(ushort port) pure nothrow @nogc
{
sin.sin_family = AddressFamily.INET;
sin.sin_addr.s_addr = ADDR_ANY;
sin.sin_port = htons(port);
}
/// Human readable string representing the IPv4 address in dotted-decimal form.
override string toAddrString() @trusted const
{
return to!string(inet_ntoa(sin.sin_addr));
}
/// Human readable string representing the IPv4 port.
override string toPortString() const
{
return std.conv.to!string(port);
}
/**
* Attempts to retrieve the host name as a fully qualified domain name.
*
* Returns: The FQDN corresponding to this $(D InternetAddress), or
* $(D null) if the host name did not resolve.
*
* Throws: $(D AddressException) on error.
*/
override string toHostNameString() const
{
// getnameinfo() is the recommended way to perform a reverse (name)
// lookup on both Posix and Windows. However, it is only available
// on Windows XP and above, and not included with the WinSock import
// libraries shipped with DMD. Thus, we check for getnameinfo at
// runtime in the shared module constructor, and fall back to the
// deprecated getHostByAddr() if it could not be found. See also:
// http://technet.microsoft.com/en-us/library/aa450403.aspx
if (getnameinfoPointer)
return super.toHostNameString();
else
{
auto host = new InternetHost();
if (!host.getHostByAddr(ntohl(sin.sin_addr.s_addr)))
return null;
return host.name;
}
}
/**
* Compares with another InternetAddress of same type for equality
* Returns: true if the InternetAddresses share the same address and
* port number.
* Examples:
* --------------
* InternetAddress addr1,addr2;
* if (addr1 == addr2) { }
* --------------
*/
override bool opEquals(Object o) const
{
auto other = cast(InternetAddress)o;
return other && this.sin.sin_addr.s_addr == other.sin.sin_addr.s_addr &&
this.sin.sin_port == other.sin.sin_port;
}
/**
* Parse an IPv4 address string in the dotted-decimal form $(I a.b.c.d)
* and return the number.
* Returns: If the string is not a legitimate IPv4 address,
* $(D ADDR_NONE) is returned.
*/
static uint parse(in char[] addr) @trusted nothrow
{
return ntohl(inet_addr(addr.tempCString()));
}
/**
* Convert an IPv4 address number in host byte order to a human readable
* string representing the IPv4 address in dotted-decimal form.
*/
static string addrToString(uint addr) @trusted nothrow
{
in_addr sin_addr;
sin_addr.s_addr = htonl(addr);
return to!string(inet_ntoa(sin_addr));
}
}
unittest
{
softUnittest({
const InternetAddress ia = new InternetAddress("63.105.9.61", 80);
assert(ia.toString() == "63.105.9.61:80");
});
softUnittest({
// test reverse lookup
auto ih = new InternetHost;
if (ih.getHostByName("digitalmars.com"))
{
const ia = new InternetAddress(ih.addrList[0], 80);
assert(ia.toHostNameString() == "digitalmars.com");
if (getnameinfoPointer)
{
// test reverse lookup, via gethostbyaddr
auto getnameinfoPointerBackup = getnameinfoPointer;
cast() getnameinfoPointer = null;
scope(exit) cast() getnameinfoPointer = getnameinfoPointerBackup;
assert(ia.toHostNameString() == "digitalmars.com");
}
}
});
version (SlowTests)
softUnittest({
// test failing reverse lookup
const InternetAddress ia = new InternetAddress("127.114.111.120", 80);
assert(ia.toHostNameString() is null);
if (getnameinfoPointer)
{
// test failing reverse lookup, via gethostbyaddr
auto getnameinfoPointerBackup = getnameinfoPointer;
getnameinfoPointer = null;
scope(exit) getnameinfoPointer = getnameinfoPointerBackup;
assert(ia.toHostNameString() is null);
}
});
}
/**
* $(D Internet6Address) encapsulates an IPv6 (Internet Protocol version 6)
* socket address.
*
* Consider using $(D getAddress), $(D parseAddress) and $(D Address) methods
* instead of using this class directly.
*/
class Internet6Address: Address
{
protected:
sockaddr_in6 sin6;
this() pure nothrow @nogc
{
}
public:
override @property sockaddr* name()
{
return cast(sockaddr*)&sin6;
}
override @property const(sockaddr)* name() const
{
return cast(const(sockaddr)*)&sin6;
}
override @property socklen_t nameLen() const
{
return cast(socklen_t) sin6.sizeof;
}
/// Any IPv6 host address.
static @property ref const(ubyte)[16] ADDR_ANY() pure nothrow @nogc
{
const(ubyte)[16]* addr;
static if (is(typeof(IN6ADDR_ANY)))
{
addr = &IN6ADDR_ANY.s6_addr;
return *addr;
}
else static if (is(typeof(in6addr_any)))
{
addr = &in6addr_any.s6_addr;
return *addr;
}
else
static assert(0);
}
/// Any IPv6 port number.
enum ushort PORT_ANY = 0;
/// Returns the IPv6 port number.
@property ushort port() const pure nothrow @nogc
{
return ntohs(sin6.sin6_port);
}
/// Returns the IPv6 address.
@property ubyte[16] addr() const pure nothrow @nogc
{
return sin6.sin6_addr.s6_addr;
}
/**
* Construct a new $(D Internet6Address).
* Params:
* addr = an IPv6 host address string in the form described in RFC 2373,
* or a host name which will be resolved using $(D getAddressInfo).
* service = (optional) service name.
*/
this(in char[] addr, in char[] service = null) @trusted
{
auto results = getAddressInfo(addr, service, AddressFamily.INET6);
assert(results.length && results[0].family == AddressFamily.INET6);
sin6 = *cast(sockaddr_in6*)results[0].address.name;
}
/**
* Construct a new $(D Internet6Address).
* Params:
* addr = an IPv6 host address string in the form described in RFC 2373,
* or a host name which will be resolved using $(D getAddressInfo).
* port = port number, may be $(D PORT_ANY).
*/
this(in char[] addr, ushort port)
{
if (port == PORT_ANY)
this(addr);
else
this(addr, to!string(port));
}
/**
* Construct a new $(D Internet6Address).
* Params:
* addr = (optional) an IPv6 host address in host byte order, or
* $(D ADDR_ANY).
* port = port number, may be $(D PORT_ANY).
*/
this(ubyte[16] addr, ushort port) pure nothrow @nogc
{
sin6.sin6_family = AddressFamily.INET6;
sin6.sin6_addr.s6_addr = addr;
sin6.sin6_port = htons(port);
}
/// ditto
this(ushort port) pure nothrow @nogc
{
sin6.sin6_family = AddressFamily.INET6;
sin6.sin6_addr.s6_addr = ADDR_ANY;
sin6.sin6_port = htons(port);
}
/**
* Parse an IPv6 host address string as described in RFC 2373, and return the
* address.
* Throws: $(D SocketException) on error.
*/
static ubyte[16] parse(in char[] addr) @trusted
{
// Although we could use inet_pton here, it's only available on Windows
// versions starting with Vista, so use getAddressInfo with NUMERICHOST
// instead.
auto results = getAddressInfo(addr, AddressInfoFlags.NUMERICHOST);
if (results.length && results[0].family == AddressFamily.INET6)
return (cast(sockaddr_in6*)results[0].address.name).sin6_addr.s6_addr;
throw new AddressException("Not an IPv6 address", 0);
}
}
unittest
{
softUnittest({
const Internet6Address ia = new Internet6Address("::1", 80);
assert(ia.toString() == "[::1]:80");
});
}
version(StdDdoc)
{
/**
* $(D UnixAddress) encapsulates an address for a Unix domain socket
* ($(D AF_UNIX)). Available only on supported systems.
*/
class UnixAddress: Address
{
/// Construct a new $(D UnixAddress) from the specified path.
this(in char[] path);
/// Get the underlying _path.
@property string path() const;
/// ditto
override string toString() const;
}
}
else
static if (is(sockaddr_un))
{
class UnixAddress: Address
{
protected:
sockaddr_un* sun;
socklen_t len;
this() pure nothrow @nogc
{
}
public:
override @property sockaddr* name()
{
return cast(sockaddr*)sun;
}
override @property const(sockaddr)* name() const
{
return cast(const(sockaddr)*)sun;
}
override @property socklen_t nameLen() const
{
return len;
}
this(in char[] path) @trusted pure nothrow
{
len = cast(socklen_t)(sockaddr_un.init.sun_path.offsetof + path.length + 1);
sun = cast(sockaddr_un*) (new ubyte[len]).ptr;
sun.sun_family = AF_UNIX;
sun.sun_path.ptr[0..path.length] = (cast(byte[]) path)[];
sun.sun_path.ptr[path.length] = 0;
}
@property string path() const pure
{
return to!string(sun.sun_path.ptr);
}
override string toString() const pure
{
return path;
}
}
unittest
{
import core.stdc.stdio : remove;
import std.file: deleteme;
immutable ubyte[] data = [1, 2, 3, 4];
Socket[2] pair;
auto name = std.file.deleteme ~ "-unix-socket";
auto address = new UnixAddress(name);
auto listener = new Socket(AddressFamily.UNIX, SocketType.STREAM);
scope(exit) listener.close();
listener.bind(address);
scope(exit) () @trusted { remove(name.tempCString()); } ();
listener.listen(1);
pair[0] = new Socket(AddressFamily.UNIX, SocketType.STREAM);
scope(exit) listener.close();
pair[0].connect(address);
scope(exit) pair[0].close();
pair[1] = listener.accept();
scope(exit) pair[1].close();
pair[0].send(data);
auto buf = new ubyte[data.length];
pair[1].receive(buf);
assert(buf == data);
}
}
/**
* Class for exceptions thrown by $(D Socket.accept).
*/
class SocketAcceptException: SocketOSException
{
///
this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null, int err = _lasterr())
{
super(msg, file, line, next, err);
}
///
this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__, int err = _lasterr())
{
super(msg, next, file, line, err);
}
///
this(string msg, int err, string file = __FILE__, size_t line = __LINE__, Throwable next = null)
{
super(msg, next, file, line, err);
}
}
/// How a socket is shutdown:
enum SocketShutdown: int
{
RECEIVE = SD_RECEIVE, /// socket receives are disallowed
SEND = SD_SEND, /// socket sends are disallowed
BOTH = SD_BOTH, /// both RECEIVE and SEND
}
/// Flags may be OR'ed together:
enum SocketFlags: int
{
NONE = 0, /// no flags specified
OOB = MSG_OOB, /// out-of-band stream data
PEEK = MSG_PEEK, /// peek at incoming data without removing it from the queue, only for receiving
DONTROUTE = MSG_DONTROUTE, /// data should not be subject to routing; this flag may be ignored. Only for sending
}
private mixin template FieldProxy(string target, string field)
{
mixin(`
@property typeof(`~target~`) `~field~`() const pure nothrow @nogc
{
return `~target~`;
}
/// ditto
@property typeof(`~target~`) `~field~`(typeof(`~target~`) value) pure nothrow @nogc
{
return `~target~` = value;
}
`);
}
/// Duration timeout value.
struct TimeVal
{
_ctimeval ctimeval;
alias tv_sec_t = typeof(ctimeval.tv_sec);
alias tv_usec_t = typeof(ctimeval.tv_usec);
version (StdDdoc) // no DDoc for string mixins, can't forward individual fields
{
tv_sec_t seconds; /// Number of _seconds.
tv_usec_t microseconds; /// Number of additional _microseconds.
}
else
{
// D interface
mixin FieldProxy!(`ctimeval.tv_sec`, `seconds`);
mixin FieldProxy!(`ctimeval.tv_usec`, `microseconds`);
}
}
/**
* A collection of sockets for use with $(D Socket.select).
*
* $(D SocketSet) wraps the platform $(D fd_set) type. However, unlike
* $(D fd_set), $(D SocketSet) is not statically limited to $(D FD_SETSIZE)
* or any other limit, and grows as needed.
*/
class SocketSet
{
private:
version (Windows)
{
// On Windows, fd_set is an array of socket handles,
// following a word containing the fd_set instance size.
// We use one dynamic array for everything, and use its first
// element(s) for the count.
alias fd_set_count_type = typeof(fd_set.init.fd_count);
alias fd_set_type = typeof(fd_set.init.fd_array[0]);
static assert(fd_set_type.sizeof == socket_t.sizeof);
// Number of fd_set_type elements at the start of our array that are
// used for the socket count and alignment
enum FD_SET_OFFSET = fd_set.fd_array.offsetof / fd_set_type.sizeof;
static assert(FD_SET_OFFSET);
static assert(fd_set.fd_count.offsetof % fd_set_type.sizeof == 0);
fd_set_type[] set;
final void resize(size_t size) pure nothrow
{
set.length = FD_SET_OFFSET + size;
}
final ref inout(fd_set_count_type) count() @trusted @property inout pure nothrow @nogc
{
assert(set.length);
return *cast(inout(fd_set_count_type)*)set.ptr;
}
final size_t capacity() @property const pure nothrow @nogc
{
return set.length - FD_SET_OFFSET;
}
final inout(socket_t)[] fds() @trusted inout @property pure nothrow @nogc
{
return cast(inout(socket_t)[])set[FD_SET_OFFSET..FD_SET_OFFSET+count];
}
}
else
version (Posix)
{
// On Posix, fd_set is a bit array. We assume that the fd_set
// type (declared in core.sys.posix.sys.select) is a structure
// containing a single field, a static array.
static assert(fd_set.tupleof.length==1);
// This is the type used in the fd_set array.
// Using the type of the correct size is important for big-endian
// architectures.
alias fd_set_type = typeof(fd_set.init.tupleof[0][0]);
// Number of file descriptors represented by one fd_set_type
enum FD_NFDBITS = 8 * fd_set_type.sizeof;
static fd_set_type mask(uint n) pure nothrow @nogc
{
return (cast(fd_set_type)1) << (n % FD_NFDBITS);
}
// Array size to fit that many sockets
static size_t lengthFor(size_t size) pure nothrow @nogc
{
return (size + (FD_NFDBITS-1)) / FD_NFDBITS;
}
fd_set_type[] set;
final void resize(size_t size) pure nothrow
{
set.length = lengthFor(size);
}
// Make sure we can fit that many sockets
final void setMinCapacity(size_t size) pure nothrow
{
auto length = lengthFor(size);
if (set.length < length)
set.length = length;
}
final size_t capacity() @property const pure nothrow @nogc
{
return set.length / FD_NFDBITS;
}
int maxfd;
}
else
static assert(false, "Unknown platform");
public:
/**
* Create a SocketSet with a specific initial capacity (defaults to
* $(D FD_SETSIZE), the system's default capacity).
*/
this(size_t size = FD_SETSIZE) pure nothrow
{
resize(size);
reset();
}
/// Reset the $(D SocketSet) so that there are 0 $(D Socket)s in the collection.
void reset() pure nothrow @nogc
{
version (Windows)
count = 0;
else
{
set[] = 0;
maxfd = -1;
}
}
void add(socket_t s) @trusted pure nothrow
{
version (Windows)
{
if (count == capacity)
{
set.length *= 2;
set.length = set.capacity;
}
fds[count++] = s;
}
else
{
auto index = s / FD_NFDBITS;
auto length = set.length;
if (index >= length)
{
while (length < index)
length *= 2;
set.length = length;
set.length = set.capacity;
}
set[index] |= mask(s);
if (maxfd < s)
maxfd = s;
}
}
/// Add a $(D Socket) to the collection.
/// The socket must not already be in the collection.
void add(Socket s) pure nothrow
{
add(s.sock);
}
void remove(socket_t s) pure nothrow
{
version (Windows)
{
import std.algorithm : countUntil;
auto fds = fds;
auto p = fds.countUntil(s);
if (p >= 0)
fds[p] = fds[--count];
}
else
{
auto index = s / FD_NFDBITS;
if (index >= set.length)
return;
set[index] &= ~mask(s);
// note: adjusting maxfd would require scanning the set, not worth it
}
}
/// Remove this $(D Socket) from the collection.
/// Does nothing if the socket is not in the collection already.
void remove(Socket s) pure nothrow
{
remove(s.sock);
}
int isSet(socket_t s) const pure nothrow @nogc
{
version (Windows)
{
import std.algorithm;
return fds.canFind(s) ? 1 : 0;
}
else
{
if (s > maxfd)
return 0;
auto index = s / FD_NFDBITS;
return (set[index] & mask(s)) ? 1 : 0;
}
}
/// Return nonzero if this $(D Socket) is in the collection.
int isSet(Socket s) const pure nothrow @nogc
{
return isSet(s.sock);
}
/// Return the current capacity of this $(D SocketSet). The exact
/// meaning of the return value varies from platform to platform.
/// Note that since D 2.065, this value does not indicate a
/// restriction, and $(D SocketSet) will grow its capacity as
/// needed automatically.
@property uint max() const pure nothrow @nogc
{
return cast(uint)capacity;
}
fd_set* toFd_set() @trusted pure nothrow @nogc
{
return cast(fd_set*)set.ptr;
}
int selectn() const pure nothrow @nogc
{
version (Windows)
{
return count;
}
else version (Posix)
{
return maxfd + 1;
}
}
}
unittest
{
auto fds = cast(socket_t[])
[cast(socket_t)1, 2, 0, 1024, 17, 42, 1234, 77, 77+32, 77+64];
auto set = new SocketSet();
foreach (fd; fds) assert(!set.isSet(fd));
foreach (fd; fds) set.add(fd);
foreach (fd; fds) assert(set.isSet(fd));
// Make sure SocketSet reimplements fd_set correctly
auto fdset = set.toFd_set();
foreach (fd; fds[0]..cast(socket_t)(fds[$-1]+1))
assert(cast(bool)set.isSet(fd) == cast(bool)(() @trusted => FD_ISSET(fd, fdset))());
foreach (fd; fds)
{
assert(set.isSet(fd));
set.remove(fd);
assert(!set.isSet(fd));
}
}
unittest
{
softUnittest({
enum PAIRS = 768;
version(Posix)
() @trusted
{
enum LIMIT = 2048;
static assert(LIMIT > PAIRS*2);
import core.sys.posix.sys.resource;
rlimit fileLimit;
getrlimit(RLIMIT_NOFILE, &fileLimit);
assert(fileLimit.rlim_max > LIMIT, "Open file hard limit too low");
fileLimit.rlim_cur = LIMIT;
setrlimit(RLIMIT_NOFILE, &fileLimit);
} ();
Socket[2][PAIRS] pairs;
foreach (ref pair; pairs)
pair = socketPair();
scope(exit)
{
foreach (pair; pairs)
{
pair[0].close();
pair[1].close();
}
}
import std.random;
auto rng = Xorshift(42);
pairs[].randomShuffle(rng);
auto readSet = new SocketSet();
auto writeSet = new SocketSet();
auto errorSet = new SocketSet();
foreach (testPair; pairs)
{
void fillSets()
{
readSet.reset();
writeSet.reset();
errorSet.reset();
foreach (ref pair; pairs)
foreach (s; pair[])
{
readSet.add(s);
writeSet.add(s);
errorSet.add(s);
}
}
fillSets();
auto n = Socket.select(readSet, writeSet, errorSet);
assert(n == PAIRS*2); // All in writeSet
assert(writeSet.isSet(testPair[0]));
assert(writeSet.isSet(testPair[1]));
assert(!readSet.isSet(testPair[0]));
assert(!readSet.isSet(testPair[1]));
assert(!errorSet.isSet(testPair[0]));
assert(!errorSet.isSet(testPair[1]));
ubyte[1] b;
testPair[0].send(b[]);
fillSets();
n = Socket.select(readSet, null, null);
assert(n == 1); // testPair[1]
assert(readSet.isSet(testPair[1]));
assert(!readSet.isSet(testPair[0]));
testPair[1].receive(b[]);
}
});
}
/// The level at which a socket option is defined:
version(Android)
{
// no GGP on Android
enum SocketOptionLevel: int
{
SOCKET = SOL_SOCKET, /// Socket level
IP = ProtocolType.IP, /// Internet Protocol version 4 level
ICMP = ProtocolType.ICMP, /// Internet Control Message Protocol level
IGMP = ProtocolType.IGMP, /// Internet Group Management Protocol level
TCP = ProtocolType.TCP, /// Transmission Control Protocol level
PUP = ProtocolType.PUP, /// PARC Universal Packet Protocol level
UDP = ProtocolType.UDP, /// User Datagram Protocol level
IDP = ProtocolType.IDP, /// Xerox NS protocol level
RAW = ProtocolType.RAW, /// Raw IP packet level
IPV6 = ProtocolType.IPV6, /// Internet Protocol version 6 level
}
}
else
{
enum SocketOptionLevel: int
{
SOCKET = SOL_SOCKET, /// Socket level
IP = ProtocolType.IP, /// Internet Protocol version 4 level
ICMP = ProtocolType.ICMP, /// Internet Control Message Protocol level
IGMP = ProtocolType.IGMP, /// Internet Group Management Protocol level
GGP = ProtocolType.GGP, /// Gateway to Gateway Protocol level
TCP = ProtocolType.TCP, /// Transmission Control Protocol level
PUP = ProtocolType.PUP, /// PARC Universal Packet Protocol level
UDP = ProtocolType.UDP, /// User Datagram Protocol level
IDP = ProtocolType.IDP, /// Xerox NS protocol level
RAW = ProtocolType.RAW, /// Raw IP packet level
IPV6 = ProtocolType.IPV6, /// Internet Protocol version 6 level
}
}
/// _Linger information for use with SocketOption.LINGER.
struct Linger
{
_clinger clinger;
version (StdDdoc) // no DDoc for string mixins, can't forward individual fields
{
private alias l_onoff_t = typeof(_clinger.init.l_onoff );
private alias l_linger_t = typeof(_clinger.init.l_linger);
l_onoff_t on; /// Nonzero for _on.
l_linger_t time; /// Linger _time.
}
else
{
// D interface
mixin FieldProxy!(`clinger.l_onoff`, `on`);
mixin FieldProxy!(`clinger.l_linger`, `time`);
}
}
/// Specifies a socket option:
enum SocketOption: int
{
DEBUG = SO_DEBUG, /// Record debugging information
BROADCAST = SO_BROADCAST, /// Allow transmission of broadcast messages
REUSEADDR = SO_REUSEADDR, /// Allow local reuse of address
LINGER = SO_LINGER, /// Linger on close if unsent data is present
OOBINLINE = SO_OOBINLINE, /// Receive out-of-band data in band
SNDBUF = SO_SNDBUF, /// Send buffer size
RCVBUF = SO_RCVBUF, /// Receive buffer size
DONTROUTE = SO_DONTROUTE, /// Do not route
SNDTIMEO = SO_SNDTIMEO, /// Send timeout
RCVTIMEO = SO_RCVTIMEO, /// Receive timeout
ERROR = SO_ERROR, /// Retrieve and clear error status
KEEPALIVE = SO_KEEPALIVE, /// Enable keep-alive packets
ACCEPTCONN = SO_ACCEPTCONN, /// Listen
RCVLOWAT = SO_RCVLOWAT, /// Minimum number of input bytes to process
SNDLOWAT = SO_SNDLOWAT, /// Minimum number of output bytes to process
TYPE = SO_TYPE, /// Socket type
// SocketOptionLevel.TCP:
TCP_NODELAY = .TCP_NODELAY, /// Disable the Nagle algorithm for send coalescing
// SocketOptionLevel.IPV6:
IPV6_UNICAST_HOPS = .IPV6_UNICAST_HOPS, /// IP unicast hop limit
IPV6_MULTICAST_IF = .IPV6_MULTICAST_IF, /// IP multicast interface
IPV6_MULTICAST_LOOP = .IPV6_MULTICAST_LOOP, /// IP multicast loopback
IPV6_MULTICAST_HOPS = .IPV6_MULTICAST_HOPS, /// IP multicast hops
IPV6_JOIN_GROUP = .IPV6_JOIN_GROUP, /// Add an IP group membership
IPV6_LEAVE_GROUP = .IPV6_LEAVE_GROUP, /// Drop an IP group membership
IPV6_V6ONLY = .IPV6_V6ONLY, /// Treat wildcard bind as AF_INET6-only
}
/**
* $(D Socket) is a class that creates a network communication endpoint using
* the Berkeley sockets interface.
*/
class Socket
{
private:
socket_t sock;
AddressFamily _family;
version(Windows)
bool _blocking = false; /// Property to get or set whether the socket is blocking or nonblocking.
// The WinSock timeouts seem to be effectively skewed by a constant
// offset of about half a second (value in milliseconds). This has
// been confirmed on updated (as of Jun 2011) Windows XP, Windows 7
// and Windows Server 2008 R2 boxes. The unittest below tests this
// behavior.
enum WINSOCK_TIMEOUT_SKEW = 500;
unittest
{
version(SlowTests)
softUnittest({
import std.datetime;
enum msecs = 1000;
auto pair = socketPair();
auto sock = pair[0];
sock.setOption(SocketOptionLevel.SOCKET,
SocketOption.RCVTIMEO, dur!"msecs"(msecs));
auto sw = StopWatch(AutoStart.yes);
ubyte[1] buf;
sock.receive(buf);
sw.stop();
Duration readBack = void;
sock.getOption(SocketOptionLevel.SOCKET, SocketOption.RCVTIMEO, readBack);
assert(readBack.total!"msecs" == msecs);
assert(sw.peek().msecs > msecs-100 && sw.peek().msecs < msecs+100);
});
}
void setSock(socket_t handle)
{
assert(handle != socket_t.init);
sock = handle;
// Set the option to disable SIGPIPE on send() if the platform
// has it (e.g. on OS X).
static if (is(typeof(SO_NOSIGPIPE)))
{
setOption(SocketOptionLevel.SOCKET, cast(SocketOption)SO_NOSIGPIPE, true);
}
}
// For use with accepting().
protected this() pure nothrow @nogc
{
}
public:
/**
* Create a blocking socket. If a single protocol type exists to support
* this socket type within the address family, the $(D ProtocolType) may be
* omitted.
*/
this(AddressFamily af, SocketType type, ProtocolType protocol) @trusted
{
_family = af;
auto handle = cast(socket_t) socket(af, type, protocol);
if(handle == socket_t.init)
throw new SocketOSException("Unable to create socket");
setSock(handle);
}
// A single protocol exists to support this socket type within the
// protocol family, so the ProtocolType is assumed.
/// ditto
this(AddressFamily af, SocketType type)
{
this(af, type, cast(ProtocolType)0); // Pseudo protocol number.
}
/// ditto
this(AddressFamily af, SocketType type, in char[] protocolName) @trusted
{
protoent* proto;
proto = getprotobyname(protocolName.tempCString());
if(!proto)
throw new SocketOSException("Unable to find the protocol");
this(af, type, cast(ProtocolType)proto.p_proto);
}
/**
* Create a blocking socket using the parameters from the specified
* $(D AddressInfo) structure.
*/
this(in AddressInfo info)
{
this(info.family, info.type, info.protocol);
}
/// Use an existing socket handle.
this(socket_t sock, AddressFamily af) pure nothrow @nogc
{
assert(sock != socket_t.init);
this.sock = sock;
this._family = af;
}
~this() nothrow @nogc
{
close();
}
/// Get underlying socket handle.
@property socket_t handle() const pure nothrow @nogc
{
return sock;
}
/**
* Get/set socket's blocking flag.
*
* When a socket is blocking, calls to receive(), accept(), and send()
* will block and wait for data/action.
* A non-blocking socket will immediately return instead of blocking.
*/
@property bool blocking() @trusted const nothrow @nogc
{
version(Windows)
{
return _blocking;
}
else version(Posix)
{
return !(fcntl(handle, F_GETFL, 0) & O_NONBLOCK);
}
}
/// ditto
@property void blocking(bool byes) @trusted
{
version(Windows)
{
uint num = !byes;
if(_SOCKET_ERROR == ioctlsocket(sock, FIONBIO, &num))
goto err;
_blocking = byes;
}
else version(Posix)
{
int x = fcntl(sock, F_GETFL, 0);
if(-1 == x)
goto err;
if(byes)
x &= ~O_NONBLOCK;
else
x |= O_NONBLOCK;
if(-1 == fcntl(sock, F_SETFL, x))
goto err;
}
return; // Success.
err:
throw new SocketOSException("Unable to set socket blocking");
}
/// Get the socket's address family.
@property AddressFamily addressFamily()
{
return _family;
}
/// Property that indicates if this is a valid, alive socket.
@property bool isAlive() @trusted const
{
int type;
socklen_t typesize = cast(socklen_t) type.sizeof;
return !getsockopt(sock, SOL_SOCKET, SO_TYPE, cast(char*)&type, &typesize);
}
/// Associate a local address with this socket.
void bind(Address addr) @trusted
{
if(_SOCKET_ERROR == .bind(sock, addr.name, addr.nameLen))
throw new SocketOSException("Unable to bind socket");
}
/**
* Establish a connection. If the socket is blocking, connect waits for
* the connection to be made. If the socket is nonblocking, connect
* returns immediately and the connection attempt is still in progress.
*/
void connect(Address to) @trusted
{
if(_SOCKET_ERROR == .connect(sock, to.name, to.nameLen))
{
int err;
err = _lasterr();
if(!blocking)
{
version(Windows)
{
if(WSAEWOULDBLOCK == err)
return;
}
else version(Posix)
{
if(EINPROGRESS == err)
return;
}
else
{
static assert(0);
}
}
throw new SocketOSException("Unable to connect socket", err);
}
}
/**
* Listen for an incoming connection. $(D bind) must be called before you
* can $(D listen). The $(D backlog) is a request of how many pending
* incoming connections are queued until $(D accept)ed.
*/
void listen(int backlog) @trusted
{
if(_SOCKET_ERROR == .listen(sock, backlog))
throw new SocketOSException("Unable to listen on socket");
}
/**
* Called by $(D accept) when a new $(D Socket) must be created for a new
* connection. To use a derived class, override this method and return an
* instance of your class. The returned $(D Socket)'s handle must not be
* set; $(D Socket) has a protected constructor $(D this()) to use in this
* situation.
*/
// Override to use a derived class.
// The returned socket's handle must not be set.
protected Socket accepting() pure nothrow
{
return new Socket;
}
/**
* Accept an incoming connection. If the socket is blocking, $(D accept)
* waits for a connection request. Throws $(D SocketAcceptException) if
* unable to _accept. See $(D accepting) for use with derived classes.
*/
Socket accept() @trusted
{
auto newsock = cast(socket_t).accept(sock, null, null);
if(socket_t.init == newsock)
throw new SocketAcceptException("Unable to accept socket connection");
Socket newSocket;
try
{
newSocket = accepting();
assert(newSocket.sock == socket_t.init);
newSocket.setSock(newsock);
version(Windows)
newSocket._blocking = _blocking; //inherits blocking mode
newSocket._family = _family; //same family
}
catch(Throwable o)
{
_close(newsock);
throw o;
}
return newSocket;
}
/// Disables sends and/or receives.
void shutdown(SocketShutdown how) @trusted nothrow @nogc
{
.shutdown(sock, cast(int)how);
}
private static void _close(socket_t sock) @system nothrow @nogc
{
version(Windows)
{
.closesocket(sock);
}
else version(Posix)
{
.close(sock);
}
}
/**
* Immediately drop any connections and release socket resources.
* Calling $(D shutdown) before $(D close) is recommended for
* connection-oriented sockets. The $(D Socket) object is no longer
* usable after $(D close).
*/
//calling shutdown() before this is recommended
//for connection-oriented sockets
void close() @trusted nothrow @nogc
{
_close(sock);
sock = socket_t.init;
}
/// Returns the local machine's host name.
// Idea from mango.
static @property string hostName() @trusted // getter
{
char[256] result; // Host names are limited to 255 chars.
if(_SOCKET_ERROR == .gethostname(result.ptr, result.length))
throw new SocketOSException("Unable to obtain host name");
return to!string(result.ptr);
}
/// Remote endpoint $(D Address).
@property Address remoteAddress() @trusted
{
Address addr = createAddress();
socklen_t nameLen = addr.nameLen;
if(_SOCKET_ERROR == .getpeername(sock, addr.name, &nameLen))
throw new SocketOSException("Unable to obtain remote socket address");
if(nameLen > addr.nameLen)
throw new SocketParameterException("Not enough socket address storage");
assert(addr.addressFamily == _family);
return addr;
}
/// Local endpoint $(D Address).
@property Address localAddress() @trusted
{
Address addr = createAddress();
socklen_t nameLen = addr.nameLen;
if(_SOCKET_ERROR == .getsockname(sock, addr.name, &nameLen))
throw new SocketOSException("Unable to obtain local socket address");
if(nameLen > addr.nameLen)
throw new SocketParameterException("Not enough socket address storage");
assert(addr.addressFamily == _family);
return addr;
}
/**
* Send or receive error code. See $(D wouldHaveBlocked),
* $(D lastSocketError) and $(D Socket.getErrorText) for obtaining more
* information about the error.
*/
enum int ERROR = _SOCKET_ERROR;
/**
* Send data on the connection. If the socket is blocking and there is no
* buffer space left, $(D send) waits.
* Returns: The number of bytes actually sent, or $(D Socket.ERROR) on
* failure.
*/
//returns number of bytes actually sent, or -1 on error
ptrdiff_t send(const(void)[] buf, SocketFlags flags) @trusted
{
static if (is(typeof(MSG_NOSIGNAL)))
{
flags = cast(SocketFlags)(flags | MSG_NOSIGNAL);
}
version( Windows )
auto sent = .send(sock, buf.ptr, to!int(buf.length), cast(int)flags);
else
auto sent = .send(sock, buf.ptr, buf.length, cast(int)flags);
return sent;
}
/// ditto
ptrdiff_t send(const(void)[] buf)
{
return send(buf, SocketFlags.NONE);
}
/**
* Send data to a specific destination Address. If the destination address is
* not specified, a connection must have been made and that address is used.
* If the socket is blocking and there is no buffer space left, $(D sendTo) waits.
* Returns: The number of bytes actually sent, or $(D Socket.ERROR) on
* failure.
*/
ptrdiff_t sendTo(const(void)[] buf, SocketFlags flags, Address to) @trusted
{
static if (is(typeof(MSG_NOSIGNAL)))
{
flags = cast(SocketFlags)(flags | MSG_NOSIGNAL);
}
version( Windows )
return .sendto(
sock, buf.ptr, std.conv.to!int(buf.length),
cast(int)flags, to.name, to.nameLen
);
else
return .sendto(sock, buf.ptr, buf.length, cast(int)flags, to.name, to.nameLen);
}
/// ditto
ptrdiff_t sendTo(const(void)[] buf, Address to)
{
return sendTo(buf, SocketFlags.NONE, to);
}
//assumes you connect()ed
/// ditto
ptrdiff_t sendTo(const(void)[] buf, SocketFlags flags) @trusted
{
static if (is(typeof(MSG_NOSIGNAL)))
{
flags = cast(SocketFlags)(flags | MSG_NOSIGNAL);
}
version(Windows)
return .sendto(sock, buf.ptr, to!int(buf.length), cast(int)flags, null, 0);
else
return .sendto(sock, buf.ptr, buf.length, cast(int)flags, null, 0);
}
//assumes you connect()ed
/// ditto
ptrdiff_t sendTo(const(void)[] buf)
{
return sendTo(buf, SocketFlags.NONE);
}
/**
* Receive data on the connection. If the socket is blocking, $(D receive)
* waits until there is data to be received.
* Returns: The number of bytes actually received, $(D 0) if the remote side
* has closed the connection, or $(D Socket.ERROR) on failure.
*/
//returns number of bytes actually received, 0 on connection closure, or -1 on error
ptrdiff_t receive(void[] buf, SocketFlags flags) @trusted
{
version(Windows) // Does not use size_t
{
return buf.length
? .recv(sock, buf.ptr, to!int(buf.length), cast(int)flags)
: 0;
} else {
return buf.length
? .recv(sock, buf.ptr, buf.length, cast(int)flags)
: 0;
}
}
/// ditto
ptrdiff_t receive(void[] buf)
{
return receive(buf, SocketFlags.NONE);
}
/**
* Receive data and get the remote endpoint $(D Address).
* If the socket is blocking, $(D receiveFrom) waits until there is data to
* be received.
* Returns: The number of bytes actually received, $(D 0) if the remote side
* has closed the connection, or $(D Socket.ERROR) on failure.
*/
ptrdiff_t receiveFrom(void[] buf, SocketFlags flags, ref Address from) @trusted
{
if(!buf.length) //return 0 and don't think the connection closed
return 0;
if (from is null || from.addressFamily != _family)
from = createAddress();
socklen_t nameLen = from.nameLen;
version(Windows)
{
auto read = .recvfrom(sock, buf.ptr, to!int(buf.length), cast(int)flags, from.name, &nameLen);
assert(from.addressFamily == _family);
// if(!read) //connection closed
return read;
} else {
auto read = .recvfrom(sock, buf.ptr, buf.length, cast(int)flags, from.name, &nameLen);
assert(from.addressFamily == _family);
// if(!read) //connection closed
return read;
}
}
/// ditto
ptrdiff_t receiveFrom(void[] buf, ref Address from)
{
return receiveFrom(buf, SocketFlags.NONE, from);
}
//assumes you connect()ed
/// ditto
ptrdiff_t receiveFrom(void[] buf, SocketFlags flags) @trusted
{
if(!buf.length) //return 0 and don't think the connection closed
return 0;
version(Windows)
{
auto read = .recvfrom(sock, buf.ptr, to!int(buf.length), cast(int)flags, null, null);
// if(!read) //connection closed
return read;
} else {
auto read = .recvfrom(sock, buf.ptr, buf.length, cast(int)flags, null, null);
// if(!read) //connection closed
return read;
}
}
//assumes you connect()ed
/// ditto
ptrdiff_t receiveFrom(void[] buf)
{
return receiveFrom(buf, SocketFlags.NONE);
}
/// 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()
int getOption(SocketOptionLevel level, SocketOption option, void[] result) @trusted
{
socklen_t len = cast(socklen_t) result.length;
if(_SOCKET_ERROR == .getsockopt(sock, cast(int)level, cast(int)option, result.ptr, &len))
throw new SocketOSException("Unable to get socket option");
return len;
}
/// Common case of getting integer and boolean options.
int getOption(SocketOptionLevel level, SocketOption option, out int32_t result) @trusted
{
return getOption(level, option, (&result)[0 .. 1]);
}
/// Get the linger option.
int getOption(SocketOptionLevel level, SocketOption option, out Linger result) @trusted
{
//return getOption(cast(SocketOptionLevel)SocketOptionLevel.SOCKET, SocketOption.LINGER, (&result)[0 .. 1]);
return getOption(level, option, (&result.clinger)[0 .. 1]);
}
/// Get a timeout (duration) option.
void getOption(SocketOptionLevel level, SocketOption option, out Duration result) @trusted
{
enforce(option == SocketOption.SNDTIMEO || option == SocketOption.RCVTIMEO,
new SocketParameterException("Not a valid timeout option: " ~ to!string(option)));
// WinSock returns the timeout values as a milliseconds DWORD,
// while Linux and BSD return a timeval struct.
version (Windows)
{
int msecs;
getOption(level, option, (&msecs)[0 .. 1]);
if (option == SocketOption.RCVTIMEO)
msecs += WINSOCK_TIMEOUT_SKEW;
result = dur!"msecs"(msecs);
}
else version (Posix)
{
TimeVal tv;
getOption(level, option, (&tv.ctimeval)[0..1]);
result = dur!"seconds"(tv.seconds) + dur!"usecs"(tv.microseconds);
}
else static assert(false);
}
/// Set a socket option.
void setOption(SocketOptionLevel level, SocketOption option, void[] value) @trusted
{
if(_SOCKET_ERROR == .setsockopt(sock, cast(int)level,
cast(int)option, value.ptr, cast(uint) value.length))
throw new SocketOSException("Unable to set socket option");
}
/// Common case for setting integer and boolean options.
void setOption(SocketOptionLevel level, SocketOption option, int32_t value) @trusted
{
setOption(level, option, (&value)[0 .. 1]);
}
/// Set the linger option.
void setOption(SocketOptionLevel level, SocketOption option, Linger value) @trusted
{
//setOption(cast(SocketOptionLevel)SocketOptionLevel.SOCKET, SocketOption.LINGER, (&value)[0 .. 1]);
setOption(level, option, (&value.clinger)[0 .. 1]);
}
/**
* Sets a timeout (duration) option, i.e. $(D SocketOption.SNDTIMEO) or
* $(D RCVTIMEO). Zero indicates no timeout.
*
* In a typical application, you might also want to consider using
* a non-blocking socket instead of setting a timeout on a blocking one.
*
* Note: While the receive timeout setting is generally quite accurate
* on *nix systems even for smaller durations, there are two issues to
* be aware of on Windows: First, although undocumented, the effective
* timeout duration seems to be the one set on the socket plus half
* a second. $(D setOption()) tries to compensate for that, but still,
* timeouts under 500ms are not possible on Windows. Second, be aware
* that the actual amount of time spent until a blocking call returns
* randomly varies on the order of 10ms.
*
* Params:
* level = The level at which a socket option is defined.
* option = Either $(D SocketOption.SNDTIMEO) or $(D SocketOption.RCVTIMEO).
* value = The timeout duration to set. Must not be negative.
*
* Throws: $(D SocketException) if setting the options fails.
*
* Example:
* ---
* import std.datetime;
* auto pair = socketPair();
* scope(exit) foreach (s; pair) s.close();
*
* // Set a receive timeout, and then wait at one end of
* // the socket pair, knowing that no data will arrive.
* pair[0].setOption(SocketOptionLevel.SOCKET,
* SocketOption.RCVTIMEO, dur!"seconds"(1));
*
* auto sw = StopWatch(AutoStart.yes);
* ubyte[1] buffer;
* pair[0].receive(buffer);
* writefln("Waited %s ms until the socket timed out.",
* sw.peek.msecs);
* ---
*/
void setOption(SocketOptionLevel level, SocketOption option, Duration value) @trusted
{
enforce(option == SocketOption.SNDTIMEO || option == SocketOption.RCVTIMEO,
new SocketParameterException("Not a valid timeout option: " ~ to!string(option)));
enforce(value >= dur!"hnsecs"(0), new SocketParameterException(
"Timeout duration must not be negative."));
version (Windows)
{
auto msecs = to!int(value.total!"msecs");
if (msecs != 0 && option == SocketOption.RCVTIMEO)
msecs = max(1, msecs - WINSOCK_TIMEOUT_SKEW);
setOption(level, option, msecs);
}
else version (Posix)
{
_ctimeval tv;
value.split!("seconds", "usecs")(tv.tv_sec, tv.tv_usec);
setOption(level, option, (&tv)[0 .. 1]);
}
else static assert(false);
}
/// Get a text description of this socket's error status, and clear the
/// socket's error status.
string getErrorText()
{
int32_t error;
getOption(SocketOptionLevel.SOCKET, SocketOption.ERROR, error);
return formatSocketError(error);
}
/**
* Enables TCP keep-alive with the specified parameters.
*
* Params:
* time = Number of seconds with no activity until the first
* keep-alive packet is sent.
* interval = Number of seconds between when successive keep-alive
* packets are sent if no acknowledgement is received.
*
* Throws: $(D SocketOSException) if setting the options fails, or
* $(D SocketFeatureException) if setting keep-alive parameters is
* unsupported on the current platform.
*/
void setKeepAlive(int time, int interval) @trusted
{
version(Windows)
{
tcp_keepalive options;
options.onoff = 1;
options.keepalivetime = time * 1000;
options.keepaliveinterval = interval * 1000;
uint cbBytesReturned;
enforce(WSAIoctl(sock, SIO_KEEPALIVE_VALS,
&options, options.sizeof,
null, 0,
&cbBytesReturned, null, null) == 0,
new SocketOSException("Error setting keep-alive"));
}
else
static if (is(typeof(TCP_KEEPIDLE)) && is(typeof(TCP_KEEPINTVL)))
{
setOption(SocketOptionLevel.TCP, cast(SocketOption)TCP_KEEPIDLE, time);
setOption(SocketOptionLevel.TCP, cast(SocketOption)TCP_KEEPINTVL, interval);
setOption(SocketOptionLevel.SOCKET, SocketOption.KEEPALIVE, true);
}
else
throw new SocketFeatureException("Setting keep-alive options " ~
"is not supported on this platform");
}
/**
* Wait for a socket to change status. A wait timeout of $(Duration) or
* $(D TimeVal), may be specified; if a timeout is not specified or the
* $(D TimeVal) is $(D null), the maximum timeout is used. The $(D TimeVal)
* timeout has an unspecified value when $(D select) returns.
* Returns: The number of sockets with status changes, $(D 0) on timeout,
* or $(D -1) on interruption. If the return value is greater than $(D 0),
* the $(D SocketSets) are updated to only contain the sockets having status
* changes. For a connecting socket, a write status change means the
* connection is established and it's able to send. For a listening socket,
* a read status change means there is an incoming connection request and
* it's able to accept.
*/
//SocketSet's updated to include only those sockets which an event occured
//returns the number of events, 0 on timeout, or -1 on interruption
//for a connect()ing socket, writeability means connected
//for a listen()ing socket, readability means listening
//Winsock: possibly internally limited to 64 sockets per set
static int select(SocketSet checkRead, SocketSet checkWrite, SocketSet checkError, Duration timeout) @trusted
{
auto vals = timeout.split!("seconds", "usecs")();
TimeVal tv;
tv.seconds = cast(tv.tv_sec_t )vals.seconds;
tv.microseconds = cast(tv.tv_usec_t)vals.usecs;
return select(checkRead, checkWrite, checkError, &tv);
}
/// ditto
//maximum timeout
static int select(SocketSet checkRead, SocketSet checkWrite, SocketSet checkError)
{
return select(checkRead, checkWrite, checkError, null);
}
/// Ditto
static int select(SocketSet checkRead, SocketSet checkWrite, SocketSet checkError, TimeVal* timeout) @trusted
in
{
//make sure none of the SocketSet's are the same object
if(checkRead)
{
assert(checkRead !is checkWrite);
assert(checkRead !is checkError);
}
if(checkWrite)
{
assert(checkWrite !is checkError);
}
}
body
{
fd_set* fr, fw, fe;
int n = 0;
version(Windows)
{
// Windows has a problem with empty fd_set`s that aren't null.
fr = checkRead && checkRead.count ? checkRead.toFd_set() : null;
fw = checkWrite && checkWrite.count ? checkWrite.toFd_set() : null;
fe = checkError && checkError.count ? checkError.toFd_set() : null;
}
else
{
if(checkRead)
{
fr = checkRead.toFd_set();
n = checkRead.selectn();
}
else
{
fr = null;
}
if(checkWrite)
{
fw = checkWrite.toFd_set();
int _n;
_n = checkWrite.selectn();
if(_n > n)
n = _n;
}
else
{
fw = null;
}
if(checkError)
{
fe = checkError.toFd_set();
int _n;
_n = checkError.selectn();
if(_n > n)
n = _n;
}
else
{
fe = null;
}
// Make sure the sets' capacity matches, to avoid select reading
// out of bounds just because one set was bigger than another
if (checkRead ) checkRead .setMinCapacity(n);
if (checkWrite) checkWrite.setMinCapacity(n);
if (checkError) checkError.setMinCapacity(n);
}
int result = .select(n, fr, fw, fe, &timeout.ctimeval);
version(Windows)
{
if(_SOCKET_ERROR == result && WSAGetLastError() == WSAEINTR)
return -1;
}
else version(Posix)
{
if(_SOCKET_ERROR == result && errno == EINTR)
return -1;
}
else
{
static assert(0);
}
if(_SOCKET_ERROR == result)
throw new SocketOSException("Socket select error");
return result;
}
// Explicitly undocumented. It will be removed in December 2014.
deprecated("Please use the overload of select which takes a Duration instead.")
static int select(SocketSet checkRead, SocketSet checkWrite, SocketSet checkError, long microseconds) @trusted
{
TimeVal tv;
tv.seconds = to!(tv.tv_sec_t )(microseconds / 1_000_000);
tv.microseconds = to!(tv.tv_usec_t)(microseconds % 1_000_000);
return select(checkRead, checkWrite, checkError, &tv);
}
/// Returns a new Address object for the current address family.
/// Can be overridden to support other addresses.
protected Address createAddress() pure nothrow
{
Address result;
switch(_family)
{
case AddressFamily.INET:
result = new InternetAddress;
break;
case AddressFamily.INET6:
result = new Internet6Address;
break;
default:
result = new UnknownAddress;
}
return result;
}
}
/// $(D TcpSocket) is a shortcut class for a TCP Socket.
class TcpSocket: Socket
{
/// Constructs a blocking TCP Socket.
this(AddressFamily family)
{
super(family, SocketType.STREAM, ProtocolType.TCP);
}
/// Constructs a blocking IPv4 TCP Socket.
this()
{
this(AddressFamily.INET);
}
//shortcut
/// Constructs a blocking TCP Socket and connects to an $(D Address).
this(Address connectTo)
{
this(connectTo.addressFamily);
connect(connectTo);
}
}
/// $(D UdpSocket) is a shortcut class for a UDP Socket.
class UdpSocket: Socket
{
/// Constructs a blocking UDP Socket.
this(AddressFamily family)
{
super(family, SocketType.DGRAM, ProtocolType.UDP);
}
/// Constructs a blocking IPv4 UDP Socket.
this()
{
this(AddressFamily.INET);
}
}
/**
* Creates a pair of connected sockets.
*
* The two sockets are indistinguishable.
*
* Throws: $(D SocketException) if creation of the sockets fails.
*
* Example:
* ---
* immutable ubyte[] data = [1, 2, 3, 4];
* auto pair = socketPair();
* scope(exit) foreach (s; pair) s.close();
*
* pair[0].send(data);
*
* auto buf = new ubyte[data.length];
* pair[1].receive(buf);
* assert(buf == data);
* ---
*/
Socket[2] socketPair() @trusted
{
version(Posix)
{
int[2] socks;
if (socketpair(AF_UNIX, SOCK_STREAM, 0, socks) == -1)
throw new SocketOSException("Unable to create socket pair");
Socket toSocket(size_t id)
{
auto s = new Socket;
s.setSock(cast(socket_t)socks[id]);
s._family = AddressFamily.UNIX;
return s;
}
return [toSocket(0), toSocket(1)];
}
else version(Windows)
{
// We do not have socketpair() on Windows, just manually create a
// pair of sockets connected over some localhost port.
Socket[2] result;
auto listener = new TcpSocket();
listener.setOption(SocketOptionLevel.SOCKET, SocketOption.REUSEADDR, true);
listener.bind(new InternetAddress(INADDR_LOOPBACK, InternetAddress.PORT_ANY));
auto addr = listener.localAddress;
listener.listen(1);
result[0] = new TcpSocket(addr);
result[1] = listener.accept();
listener.close();
return result;
}
else
static assert(false);
}
unittest
{
immutable ubyte[] data = [1, 2, 3, 4];
auto pair = socketPair();
scope(exit) foreach (s; pair) s.close();
pair[0].send(data);
auto buf = new ubyte[data.length];
pair[1].receive(buf);
assert(buf == data);
}
| D |
/* https://issues.dlang.org/show_bug.cgi?id=23097
TEST_OUTPUT:
---
fail_compilation/ice23097.d(12): Error: undefined identifier `ICE`
fail_compilation/ice23097.d(27): Error: template instance `ice23097.ice23097!(S23097)` error instantiating
fail_compilation/ice23097.d(27): Error: function `ice23097.ice23097!(S23097).ice23097(S23097 __param_0)` is not callable using argument types `(S23097)`
fail_compilation/ice23097.d(27): generating a copy constructor for `struct S23097` failed, therefore instances of it are uncopyable
---
*/
auto ice23097(I)(I)
{
ICE;
}
struct Cpctor23097
{
this(ref typeof(this)) { }
}
struct S23097
{
Cpctor23097 cpctor;
}
auto fail23097(S23097 s)
{
s.ice23097;
}
| D |
/**
* Global variables for PARSER
*
* Compiler implementation of the
* $(LINK2 https://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1985-1998 by Symantec
* Copyright (C) 2000-2022 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 https://www.digitalmars.com, Walter Bright)
* License: $(LINK2 https://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/backend/var.d, backend/var.d)
*/
module dmd.backend.var;
import core.stdc.stdio;
import dmd.backend.cc;
import dmd.backend.cdef;
import dmd.backend.code;
import dmd.backend.dlist;
import dmd.backend.goh;
import dmd.backend.obj;
import dmd.backend.oper;
import dmd.backend.symtab;
import dmd.backend.ty;
import dmd.backend.type;
version (SPP)
{
import parser;
import phstring;
}
version (SCPP)
{
import parser;
import phstring;
}
version (HTOD)
{
import parser;
import phstring;
}
extern (C++):
nothrow:
@safe:
__gshared:
/* Global flags:
*/
char PARSER = 0; // indicate we're in the parser
char OPTIMIZER = 0; // indicate we're in the optimizer
int structalign; /* alignment for members of structures */
char dbcs = 0; // current double byte character set
int TYptrdiff = TYint;
int TYsize = TYuint;
int TYsize_t = TYuint;
int TYaarray = TYnptr;
int TYdelegate = TYllong;
int TYdarray = TYullong;
char debuga=0,debugb=0,debugc=0,debugd=0,debuge=0,debugf=0,debugr=0,debugs=0,debugt=0,debugu=0,debugw=0,debugx=0,debugy=0;
version (MARS) { } else
{
linkage_t linkage;
int linkage_spec = 0; /* using the default */
/* Function types */
/* LINK_MAXDIM = C,C++,Pascal,FORTRAN,syscall,stdcall,Mars */
static if (MEMMODELS == 1)
{
tym_t[LINK_MAXDIM] functypetab =
[
TYnfunc,
TYnpfunc,
TYnpfunc,
TYnfunc,
];
}
else
{
tym_t[MEMMODELS][LINK_MAXDIM] functypetab =
[
[ TYnfunc, TYffunc, TYnfunc, TYffunc, TYffunc ],
[ TYnfunc, TYffunc, TYnfunc, TYffunc, TYffunc ],
[ TYnpfunc, TYfpfunc, TYnpfunc, TYfpfunc, TYfpfunc ],
[ TYnpfunc, TYfpfunc, TYnpfunc, TYfpfunc, TYfpfunc ],
[ TYnfunc, TYffunc, TYnfunc, TYffunc, TYffunc ],
[ TYnsfunc, TYfsfunc, TYnsfunc, TYfsfunc, TYfsfunc ],
[ TYjfunc, TYfpfunc, TYnpfunc, TYfpfunc, TYfpfunc ],
];
}
/* Function mangling */
/* LINK_MAXDIM = C,C++,Pascal,FORTRAN,syscall,stdcall */
mangle_t[LINK_MAXDIM] funcmangletab =
[
mTYman_c,
mTYman_cpp,
mTYman_pas,
mTYman_for,
mTYman_sys,
mTYman_std,
mTYman_d,
];
/* Name mangling for global variables */
mangle_t[LINK_MAXDIM] varmangletab =
[
mTYman_c,
mTYman_cpp,
mTYman_pas,mTYman_for,mTYman_sys,mTYman_std,mTYman_d
];
}
/* File variables: */
char *argv0; // argv[0] (program name)
extern (C)
{
FILE *fdep = null; // dependency file stream pointer
FILE *flst = null; // list file stream pointer
FILE *fin = null; // input file
version (SPP)
{
FILE *fout;
}
}
// htod
char *fdmodulename = null;
extern (C) FILE *fdmodule = null;
char* foutdir = null, // directory to place output files in
finname = null,
foutname = null,
fsymname = null,
fphreadname = null,
ftdbname = null,
fdepname = null,
flstname = null; /* the filename strings */
version (SPP)
{
phstring_t fdeplist;
phstring_t pathlist; // include paths
}
version (SCPP)
{
phstring_t fdeplist;
phstring_t pathlist; // include paths
}
version (HTOD)
{
phstring_t fdeplist;
phstring_t pathlist; // include paths
}
int pathsysi; // -isystem= index
list_t headers; /* pre-include files */
/* Data from lexical analyzer: */
uint idhash = 0; // hash value of identifier
int xc = ' '; // character last read
/* Data for pragma processor:
*/
int colnumber = 0; /* current column number */
/* Other variables: */
int level = 0; /* declaration level */
/* 0: top level */
/* 1: function parameter declarations */
/* 2: function local declarations */
/* 3+: compound statement decls */
param_t *paramlst = null; /* function parameter list */
tym_t pointertype = TYnptr; /* default data pointer type */
/* From util.c */
/*****************************
* SCxxxx types.
*/
version (SPP) { } else
{
char[SCMAX] sytab =
[
/* unde */ SCEXP|SCKEP|SCSCT, /* undefined */
/* auto */ SCEXP|SCSS|SCRD , /* automatic (stack) */
/* static */ SCEXP|SCKEP|SCSCT, /* statically allocated */
/* thread */ SCEXP|SCKEP , /* thread local */
/* extern */ SCEXP|SCKEP|SCSCT, /* external */
/* register */ SCEXP|SCSS|SCRD , /* registered variable */
/* pseudo */ SCEXP , /* pseudo register variable */
/* global */ SCEXP|SCKEP|SCSCT, /* top level global definition */
/* comdat */ SCEXP|SCKEP|SCSCT, /* initialized common block */
/* parameter */SCEXP|SCSS , /* function parameter */
/* regpar */ SCEXP|SCSS , /* function register parameter */
/* fastpar */ SCEXP|SCSS , /* function parameter passed in register */
/* shadowreg */SCEXP|SCSS , /* function parameter passed in register, shadowed on stack */
/* typedef */ 0 , /* type definition */
/* explicit */ 0 , /* explicit */
/* mutable */ 0 , /* mutable */
/* label */ 0 , /* goto label */
/* struct */ SCKEP , /* struct/class/union tag name */
/* enum */ 0 , /* enum tag name */
/* field */ SCEXP|SCKEP , /* bit field of struct or union */
/* const */ SCEXP|SCSCT , /* constant integer */
/* member */ SCEXP|SCKEP|SCSCT, /* member of struct or union */
/* anon */ 0 , /* member of anonymous union */
/* inline */ SCEXP|SCKEP , /* for inline functions */
/* sinline */ SCEXP|SCKEP , /* for static inline functions */
/* einline */ SCEXP|SCKEP , /* for extern inline functions */
/* overload */ SCEXP , /* for overloaded function names */
/* friend */ 0 , /* friend of a class */
/* virtual */ 0 , /* virtual function */
/* locstat */ SCEXP|SCSCT , /* static, but local to a function */
/* template */ 0 , /* class template */
/* functempl */0 , /* function template */
/* ftexpspec */0 , /* function template explicit specialization */
/* linkage */ 0 , /* function linkage symbol */
/* public */ SCEXP|SCKEP|SCSCT, /* generate a pubdef for this */
/* comdef */ SCEXP|SCKEP|SCSCT, /* uninitialized common block */
/* bprel */ SCEXP|SCSS , /* variable at fixed offset from frame pointer */
/* namespace */0 , /* namespace */
/* alias */ 0 , /* alias to another symbol */
/* funcalias */0 , /* alias to another function symbol */
/* memalias */ 0 , /* alias to base class member */
/* stack */ SCEXP|SCSS , /* offset from stack pointer (not frame pointer) */
/* adl */ 0 , /* list of ADL symbols for overloading */
];
}
extern (C) int controlc_saw = 0; /* a control C was seen */
symtab_t globsym; /* global symbol table */
Pstate pstate; // parser state
Cstate cstate; // compiler state
uint numcse; // number of common subexpressions
GlobalOptimizer go;
/* From debug.c */
const(char)*[32] regstring = ["AX","CX","DX","BX","SP","BP","SI","DI",
"R8","R9","R10","R11","R12","R13","R14","R15",
"XMM0","XMM1","XMM2","XMM3","XMM4","XMM5","XMM6","XMM7",
"ES","PSW","STACK","ST0","ST01","NOREG","RMload","RMstore"];
/* From nwc.c */
type *chartype; /* default 'char' type */
Obj objmod = null;
__gshared uint[256] tytab = tytab_init;
extern (D) private enum tytab_init =
() {
uint[256] tab;
foreach (i; TXptr) { tab[i] |= TYFLptr; }
foreach (i; TXptr_nflat) { tab[i] |= TYFLptr; }
foreach (i; TXreal) { tab[i] |= TYFLreal; }
foreach (i; TXintegral) { tab[i] |= TYFLintegral; }
foreach (i; TXimaginary) { tab[i] |= TYFLimaginary; }
foreach (i; TXcomplex) { tab[i] |= TYFLcomplex; }
foreach (i; TXuns) { tab[i] |= TYFLuns; }
foreach (i; TXmptr) { tab[i] |= TYFLmptr; }
foreach (i; TXfv) { tab[i] |= TYFLfv; }
foreach (i; TXfarfunc) { tab[i] |= TYFLfarfunc; }
foreach (i; TXpasfunc) { tab[i] |= TYFLpascal; }
foreach (i; TXrevfunc) { tab[i] |= TYFLrevparam; }
foreach (i; TXshort) { tab[i] |= TYFLshort; }
foreach (i; TXaggregate) { tab[i] |= TYFLaggregate; }
foreach (i; TXref) { tab[i] |= TYFLref; }
foreach (i; TXfunc) { tab[i] |= TYFLfunc; }
foreach (i; TXnullptr) { tab[i] |= TYFLnullptr; }
foreach (i; TXpasfunc_nf) { tab[i] |= TYFLpascal; }
foreach (i; TXrevfunc_nf) { tab[i] |= TYFLrevparam; }
foreach (i; TXref_nflat) { tab[i] |= TYFLref; }
foreach (i; TXfunc_nflat) { tab[i] |= TYFLfunc; }
foreach (i; TXxmmreg) { tab[i] |= TYFLxmmreg; }
foreach (i; TXsimd) { tab[i] |= TYFLsimd; }
return tab;
} ();
extern (C) __gshared const(char)*[TYMAX] tystring =
() {
const(char)*[TYMAX] ret = [
TYbool : "bool",
TYchar : "char",
TYchar8 : "char8_t",
TYchar16 : "char16_t",
TYshort : "short",
TYenum : "enum",
TYint : "int",
TYlong : "long",
TYdchar : "dchar",
TYcent : "cent",
TYucent : "ucent",
TYfloat : "float",
TYdouble : "double",
TYdouble_alias : "double alias",
TYfloat4 : "float[4]",
TYdouble2 : "double[2]",
TYshort8 : "short[8]",
TYlong4 : "long[4]",
TYfloat8 : "float[8]",
TYdouble4 : "double[4]",
TYshort16 : "short[16]",
TYlong8 : "long[8]",
TYfloat16 : "float[16]",
TYdouble8 : "double[8]",
TYshort32 : "short[32]",
TYlong16 : "long[16]",
TYnptr : "*",
TYref : "&",
TYvoid : "void",
TYnoreturn : "noreturn",
TYstruct : "struct",
TYarray : "array",
TYnfunc : "C func",
TYnpfunc : "Pascal func",
TYnsfunc : "std func",
TYptr : "*",
TYmfunc : "member func",
TYjfunc : "D func",
TYhfunc : "C func",
TYnref : "__near &",
TYsptr : "__ss *",
TYcptr : "__cs *",
TYf16ptr : "__far16 *",
TYfptr : "__far *",
TYhptr : "__huge *",
TYvptr : "__handle *",
TYimmutPtr : "__immutable *",
TYsharePtr : "__shared *",
TYrestrictPtr : "__restrict *",
TYfgPtr : "__fg *",
TYffunc : "far C func",
TYfpfunc : "far Pascal func",
TYfsfunc : "far std func",
TYf16func : "_far16 Pascal func",
TYnsysfunc : "sys func",
TYfsysfunc : "far sys func",
TYfref : "__far &",
TYifunc : "interrupt func",
TYmemptr : "memptr",
TYident : "ident",
TYtemplate : "template",
TYvtshape : "vtshape",
];
version(SCPP)
{
ret[TYschar] = "signed char";
ret[TYuchar] = "unsigned char";
ret[TYwchar_t] = "wchar_t";
ret[TYnullptr] = "nullptr_t";
ret[TYushort] = "unsigned short";
ret[TYuint] = "unsigned int";
ret[TYulong] = "unsigned long";
ret[TYldouble] = "long double";
ret[TYifloat] = "imaginary float";
ret[TYidouble] = "imaginary double";
ret[TYildouble] = "imaginary long double";
ret[TYcfloat] = "complex float";
ret[TYcdouble] = "complex double";
ret[TYcldouble] = "complex long double";
ret[TYllong] = "long long";
ret[TYullong] = "unsigned long long";
ret[TYschar16] = "signed char[16]";
ret[TYuchar16] = "unsigned char[16]";
ret[TYushort8] = "unsigned short[8]";
ret[TYulong4] = "unsigned long[4]";
ret[TYllong2] = "long long[2]";
ret[TYullong2] = "unsigned long long[2]";
ret[TYschar32] = "signed char[32]";
ret[TYuchar32] = "unsigned char[32]";
ret[TYushort16] = "unsigned short[16]";
ret[TYulong8] = "unsigned long[8]";
ret[TYllong4] = "long long[4]";
ret[TYullong4] = "unsigned long long[4]";
ret[TYschar64] = "signed char[64]";
ret[TYuchar64] = "unsigned char[64]";
ret[TYushort32] = "unsigned short[32]";
ret[TYulong16] = "unsigned long[16]";
ret[TYllong8] = "long long[8]";
ret[TYullong8] = "unsigned long long[8]";
} else version(MARS)
{
ret[TYschar] = "byte";
ret[TYuchar] = "ubyte";
ret[TYwchar_t] = "wchar";
ret[TYnullptr] = "typeof(null)";
ret[TYushort] = "ushort";
ret[TYuint] = "uint";
ret[TYulong] = "ulong";
ret[TYldouble] = "real";
ret[TYifloat] = "ifloat";
ret[TYidouble] = "idouble";
ret[TYildouble] = "ireal";
ret[TYcfloat] = "cfloat";
ret[TYcdouble] = "cdouble";
ret[TYcldouble] = "creal";
ret[TYullong] = ret[TYulong]; // c_ulong
ret[TYllong] = ret[TYlong]; // c_long
ret[TYschar16] = "byte[16]";
ret[TYuchar16] = "ubyte[16]";
ret[TYushort8] = "ushort[8]";
ret[TYulong4] = "ulong[4]"; // c_ulong
ret[TYllong2] = "long[2]";
ret[TYullong2] = "ulong[2]";
ret[TYschar32] = "byte[32]";
ret[TYuchar32] = "ubyte[32]";
ret[TYushort16] = "ushort[16]";
ret[TYulong8] = "ulong[8]"; // c_ulong
ret[TYllong4] = "long[4]";
ret[TYullong4] = "ulong[4]";
ret[TYschar64] = "byte[64]";
ret[TYuchar64] = "ubyte[64]";
ret[TYushort32] = "ushort[32]";
ret[TYulong16] = "ulong[16]"; // c_ulong
ret[TYllong8] = "long[8]";
ret[TYullong8] = "ulong[8]";
} else
static assert(0, "Unsupported compiler backend!");
return ret;
} ();
/// Map to unsigned version of type
__gshared tym_t[256] tytouns = tytouns_init;
extern (D) private enum tytouns_init =
() {
tym_t[256] tab;
foreach (ty; 0 .. TYMAX)
{
tym_t tym;
switch (ty)
{
case TYchar: tym = TYuchar; break;
case TYschar: tym = TYuchar; break;
case TYshort: tym = TYushort; break;
case TYushort: tym = TYushort; break;
case TYenum: tym = TYuint; break;
case TYint: tym = TYuint; break;
case TYlong: tym = TYulong; break;
case TYllong: tym = TYullong; break;
case TYcent: tym = TYucent; break;
case TYschar16: tym = TYuchar16; break;
case TYshort8: tym = TYushort8; break;
case TYlong4: tym = TYulong4; break;
case TYllong2: tym = TYullong2; break;
case TYschar32: tym = TYuchar32; break;
case TYshort16: tym = TYushort16; break;
case TYlong8: tym = TYulong8; break;
case TYllong4: tym = TYullong4; break;
case TYschar64: tym = TYuchar64; break;
case TYshort32: tym = TYushort32; break;
case TYlong16: tym = TYulong16; break;
case TYllong8: tym = TYullong8; break;
default: tym = ty; break;
}
tab[ty] = tym;
}
return tab;
} ();
/// Map to relaxed version of type
__gshared ubyte[TYMAX] _tyrelax = _tyrelax_init;
extern(D) private enum _tyrelax_init = (){
ubyte[TYMAX] tab;
foreach (ty; 0 .. TYMAX)
{
tym_t tym;
switch (ty)
{
case TYbool: tym = TYchar; break;
case TYschar: tym = TYchar; break;
case TYuchar: tym = TYchar; break;
case TYchar8: tym = TYchar; break;
case TYchar16: tym = TYint; break;
case TYshort: tym = TYint; break;
case TYushort: tym = TYint; break;
case TYwchar_t: tym = TYint; break;
case TYenum: tym = TYint; break;
case TYuint: tym = TYint; break;
case TYulong: tym = TYlong; break;
case TYdchar: tym = TYlong; break;
case TYullong: tym = TYllong; break;
case TYucent: tym = TYcent; break;
case TYnullptr: tym = TYptr; break;
default: tym = ty; break;
}
tab[ty] = cast(ubyte)tym;
}
return tab;
} ();
/// Map to equivalent version of type
__gshared ubyte[TYMAX] tyequiv = tyequiv_init;
extern (D) private enum tyequiv_init =
() {
ubyte[TYMAX] tab;
foreach (ty; 0 .. TYMAX)
{
tym_t tym;
switch (ty)
{
case TYchar: tym = TYschar; break; // chars are signed by default
case TYint: tym = TYshort; break; // adjusted in util_set32()
case TYuint: tym = TYushort; break; // adjusted in util_set32()
default: tym = ty; break;
}
tab[ty] = cast(ubyte)tym;
}
return tab;
} ();
/// Map to Codeview 1 type in debugger record
__gshared ubyte[TYMAX] dttab =
[
TYbool : 0x80,
TYchar : 0x80,
TYschar : 0x80,
TYuchar : 0x84,
TYchar8 : 0x84,
TYchar16 : 0x85,
TYshort : 0x81,
TYwchar_t : 0x85,
TYushort : 0x85,
TYenum : 0x81,
TYint : 0x85,
TYuint : 0x85,
TYlong : 0x82,
TYulong : 0x86,
TYdchar : 0x86,
TYllong : 0x82,
TYullong : 0x86,
TYcent : 0x82,
TYucent : 0x86,
TYfloat : 0x88,
TYdouble : 0x89,
TYdouble_alias : 0x89,
TYldouble : 0x89,
TYifloat : 0x88,
TYidouble : 0x89,
TYildouble : 0x89,
TYcfloat : 0x88,
TYcdouble : 0x89,
TYcldouble : 0x89,
TYfloat4 : 0x00,
TYdouble2 : 0x00,
TYschar16 : 0x00,
TYuchar16 : 0x00,
TYshort8 : 0x00,
TYushort8 : 0x00,
TYlong4 : 0x00,
TYulong4 : 0x00,
TYllong2 : 0x00,
TYullong2 : 0x00,
TYfloat8 : 0x00,
TYdouble4 : 0x00,
TYschar32 : 0x00,
TYuchar32 : 0x00,
TYshort16 : 0x00,
TYushort16 : 0x00,
TYlong8 : 0x00,
TYulong8 : 0x00,
TYllong4 : 0x00,
TYullong4 : 0x00,
TYfloat16 : 0x00,
TYdouble8 : 0x00,
TYschar64 : 0x00,
TYuchar64 : 0x00,
TYshort32 : 0x00,
TYushort32 : 0x00,
TYlong16 : 0x00,
TYulong16 : 0x00,
TYllong8 : 0x00,
TYullong8 : 0x00,
TYnullptr : 0x20,
TYnptr : 0x20,
TYref : 0x00,
TYvoid : 0x85,
TYnoreturn : 0x85, // same as TYvoid
TYstruct : 0x00,
TYarray : 0x78,
TYnfunc : 0x63,
TYnpfunc : 0x74,
TYnsfunc : 0x63,
TYptr : 0x20,
TYmfunc : 0x64,
TYjfunc : 0x74,
TYhfunc : 0x00,
TYnref : 0x00,
TYsptr : 0x20,
TYcptr : 0x20,
TYf16ptr : 0x40,
TYfptr : 0x40,
TYhptr : 0x40,
TYvptr : 0x40,
TYimmutPtr : 0x20,
TYsharePtr : 0x20,
TYrestrictPtr : 0x20,
TYfgPtr : 0x20,
TYffunc : 0x64,
TYfpfunc : 0x73,
TYfsfunc : 0x64,
TYf16func : 0x63,
TYnsysfunc : 0x63,
TYfsysfunc : 0x64,
TYfref : 0x00,
TYifunc : 0x64,
TYmemptr : 0x00,
TYident : 0x00,
TYtemplate : 0x00,
TYvtshape : 0x00,
];
/// Map to Codeview 4 type in debugger record
__gshared ushort[TYMAX] dttab4 =
[
TYbool : 0x30,
TYchar : 0x70,
TYschar : 0x10,
TYuchar : 0x20,
TYchar8 : 0x20,
TYchar16 : 0x21,
TYshort : 0x11,
TYwchar_t : 0x71,
TYushort : 0x21,
TYenum : 0x72,
TYint : 0x72,
TYuint : 0x73,
TYlong : 0x12,
TYulong : 0x22,
TYdchar : 0x7b, // UTF32
TYllong : 0x13,
TYullong : 0x23,
TYcent : 0x603,
TYucent : 0x603,
TYfloat : 0x40,
TYdouble : 0x41,
TYdouble_alias : 0x41,
TYldouble : 0x42,
TYifloat : 0x40,
TYidouble : 0x41,
TYildouble : 0x42,
TYcfloat : 0x50,
TYcdouble : 0x51,
TYcldouble : 0x52,
TYfloat4 : 0x00,
TYdouble2 : 0x00,
TYschar16 : 0x00,
TYuchar16 : 0x00,
TYshort8 : 0x00,
TYushort8 : 0x00,
TYlong4 : 0x00,
TYulong4 : 0x00,
TYllong2 : 0x00,
TYullong2 : 0x00,
TYfloat8 : 0x00,
TYdouble4 : 0x00,
TYschar32 : 0x00,
TYuchar32 : 0x00,
TYshort16 : 0x00,
TYushort16 : 0x00,
TYlong8 : 0x00,
TYulong8 : 0x00,
TYllong4 : 0x00,
TYullong4 : 0x00,
TYfloat16 : 0x00,
TYdouble8 : 0x00,
TYschar64 : 0x00,
TYuchar64 : 0x00,
TYshort32 : 0x00,
TYushort32 : 0x00,
TYlong16 : 0x00,
TYulong16 : 0x00,
TYllong8 : 0x00,
TYullong8 : 0x00,
TYnullptr : 0x100,
TYnptr : 0x100,
TYref : 0x00,
TYvoid : 0x03,
TYnoreturn : 0x03, // same as TYvoid
TYstruct : 0x00,
TYarray : 0x00,
TYnfunc : 0x00,
TYnpfunc : 0x00,
TYnsfunc : 0x00,
TYptr : 0x100,
TYmfunc : 0x00,
TYjfunc : 0x00,
TYhfunc : 0x00,
TYnref : 0x00,
TYsptr : 0x100,
TYcptr : 0x100,
TYf16ptr : 0x200,
TYfptr : 0x200,
TYhptr : 0x300,
TYvptr : 0x200,
TYimmutPtr : 0x100,
TYsharePtr : 0x100,
TYrestrictPtr : 0x100,
TYfgPtr : 0x100,
TYffunc : 0x00,
TYfpfunc : 0x00,
TYfsfunc : 0x00,
TYf16func : 0x00,
TYnsysfunc : 0x00,
TYfsysfunc : 0x00,
TYfref : 0x00,
TYifunc : 0x00,
TYmemptr : 0x00,
TYident : 0x00,
TYtemplate : 0x00,
TYvtshape : 0x00,
];
/// Size of a type
__gshared byte[256] _tysize =
[
TYbool : 1,
TYchar : 1,
TYschar : 1,
TYuchar : 1,
TYchar8 : 1,
TYchar16 : 2,
TYshort : SHORTSIZE,
TYwchar_t : 2,
TYushort : SHORTSIZE,
TYenum : -1,
TYint : 2,
TYuint : 2,
TYlong : LONGSIZE,
TYulong : LONGSIZE,
TYdchar : 4,
TYllong : LLONGSIZE,
TYullong : LLONGSIZE,
TYcent : 16,
TYucent : 16,
TYfloat : FLOATSIZE,
TYdouble : DOUBLESIZE,
TYdouble_alias : 8,
TYldouble : -1,
TYifloat : FLOATSIZE,
TYidouble : DOUBLESIZE,
TYildouble : -1,
TYcfloat : 2*FLOATSIZE,
TYcdouble : 2*DOUBLESIZE,
TYcldouble : -1,
TYfloat4 : 16,
TYdouble2 : 16,
TYschar16 : 16,
TYuchar16 : 16,
TYshort8 : 16,
TYushort8 : 16,
TYlong4 : 16,
TYulong4 : 16,
TYllong2 : 16,
TYullong2 : 16,
TYfloat8 : 32,
TYdouble4 : 32,
TYschar32 : 32,
TYuchar32 : 32,
TYshort16 : 32,
TYushort16 : 32,
TYlong8 : 32,
TYulong8 : 32,
TYllong4 : 32,
TYullong4 : 32,
TYfloat16 : 64,
TYdouble8 : 64,
TYschar64 : 64,
TYuchar64 : 64,
TYshort32 : 64,
TYushort32 : 64,
TYlong16 : 64,
TYulong16 : 64,
TYllong8 : 64,
TYullong8 : 64,
TYnullptr : 2,
TYnptr : 2,
TYref : -1,
TYvoid : -1,
TYnoreturn : 0,
TYstruct : -1,
TYarray : -1,
TYnfunc : -1,
TYnpfunc : -1,
TYnsfunc : -1,
TYptr : 2,
TYmfunc : -1,
TYjfunc : -1,
TYhfunc : -1,
TYnref : 2,
TYsptr : 2,
TYcptr : 2,
TYf16ptr : 4,
TYfptr : 4,
TYhptr : 4,
TYvptr : 4,
TYimmutPtr : 2,
TYsharePtr : 2,
TYrestrictPtr : 2,
TYfgPtr : 2,
TYffunc : -1,
TYfpfunc : -1,
TYfsfunc : -1,
TYf16func : -1,
TYnsysfunc : -1,
TYfsysfunc : -1,
TYfref : 4,
TYifunc : -1,
TYmemptr : -1,
TYident : -1,
TYtemplate : -1,
TYvtshape : -1,
];
// set alignment after we know the target
enum SET_ALIGN = -1;
/// Size of a type to use for alignment
__gshared byte[256] _tyalignsize =
[
TYbool : 1,
TYchar : 1,
TYschar : 1,
TYuchar : 1,
TYchar8 : 1,
TYchar16 : 2,
TYshort : SHORTSIZE,
TYwchar_t : 2,
TYushort : SHORTSIZE,
TYenum : -1,
TYint : 2,
TYuint : 2,
TYlong : LONGSIZE,
TYulong : LONGSIZE,
TYdchar : 4,
TYllong : LLONGSIZE,
TYullong : LLONGSIZE,
TYcent : 8,
TYucent : 8,
TYfloat : FLOATSIZE,
TYdouble : DOUBLESIZE,
TYdouble_alias : 8,
TYldouble : SET_ALIGN,
TYifloat : FLOATSIZE,
TYidouble : DOUBLESIZE,
TYildouble : SET_ALIGN,
TYcfloat : 2*FLOATSIZE,
TYcdouble : 2*DOUBLESIZE,
TYcldouble : SET_ALIGN,
TYfloat4 : 16,
TYdouble2 : 16,
TYschar16 : 16,
TYuchar16 : 16,
TYshort8 : 16,
TYushort8 : 16,
TYlong4 : 16,
TYulong4 : 16,
TYllong2 : 16,
TYullong2 : 16,
TYfloat8 : 32,
TYdouble4 : 32,
TYschar32 : 32,
TYuchar32 : 32,
TYshort16 : 32,
TYushort16 : 32,
TYlong8 : 32,
TYulong8 : 32,
TYllong4 : 32,
TYullong4 : 32,
TYfloat16 : 64,
TYdouble8 : 64,
TYschar64 : 64,
TYuchar64 : 64,
TYshort32 : 64,
TYushort32 : 64,
TYlong16 : 64,
TYulong16 : 64,
TYllong8 : 64,
TYullong8 : 64,
TYnullptr : 2,
TYnptr : 2,
TYref : -1,
TYvoid : -1,
TYnoreturn : 0,
TYstruct : -1,
TYarray : -1,
TYnfunc : -1,
TYnpfunc : -1,
TYnsfunc : -1,
TYptr : 2,
TYmfunc : -1,
TYjfunc : -1,
TYhfunc : -1,
TYnref : 2,
TYsptr : 2,
TYcptr : 2,
TYf16ptr : 4,
TYfptr : 4,
TYhptr : 4,
TYvptr : 4,
TYimmutPtr : 2,
TYsharePtr : 2,
TYrestrictPtr : 2,
TYfgPtr : 2,
TYffunc : -1,
TYfpfunc : -1,
TYfsfunc : -1,
TYf16func : -1,
TYnsysfunc : -1,
TYfsysfunc : -1,
TYfref : 4,
TYifunc : -1,
TYmemptr : -1,
TYident : -1,
TYtemplate : -1,
TYvtshape : -1,
];
private:
extern(D):
static immutable TXptr = [ TYnptr ];
static immutable TXptr_nflat = [ TYsptr,TYcptr,TYf16ptr,TYfptr,TYhptr,TYvptr,TYimmutPtr,TYsharePtr,TYrestrictPtr,TYfgPtr ];
static immutable TXreal = [ TYfloat,TYdouble,TYdouble_alias,TYldouble,
TYfloat4,TYdouble2,
TYfloat8,TYdouble4,
TYfloat16,TYdouble8,
];
static immutable TXimaginary = [ TYifloat,TYidouble,TYildouble, ];
static immutable TXcomplex = [ TYcfloat,TYcdouble,TYcldouble, ];
static immutable TXintegral = [ TYbool,TYchar,TYschar,TYuchar,TYshort,
TYwchar_t,TYushort,TYenum,TYint,TYuint,
TYlong,TYulong,TYllong,TYullong,TYdchar,
TYschar16,TYuchar16,TYshort8,TYushort8,
TYlong4,TYulong4,TYllong2,TYullong2,
TYschar32,TYuchar32,TYshort16,TYushort16,
TYlong8,TYulong8,TYllong4,TYullong4,
TYschar64,TYuchar64,TYshort32,TYushort32,
TYlong16,TYulong16,TYllong8,TYullong8,
TYchar16,TYcent,TYucent,
];
static immutable TXref = [ TYnref,TYref ];
static immutable TXfunc = [ TYnfunc,TYnpfunc,TYnsfunc,TYifunc,TYmfunc,TYjfunc,TYhfunc ];
static immutable TXref_nflat = [ TYfref ];
static immutable TXfunc_nflat = [ TYffunc,TYfpfunc,TYf16func,TYfsfunc,TYnsysfunc,TYfsysfunc, ];
static immutable TXuns = [ TYuchar,TYushort,TYuint,TYulong,
TYwchar_t,
TYuchar16,TYushort8,TYulong4,TYullong2,
TYdchar,TYullong,TYucent,TYchar16 ];
static immutable TXmptr = [ TYmemptr ];
static immutable TXnullptr = [ TYnullptr ];
static immutable TXfv = [ TYfptr, TYvptr ];
static immutable TXfarfunc = [ TYffunc,TYfpfunc,TYfsfunc,TYfsysfunc ];
static immutable TXpasfunc = [ TYnpfunc,TYnsfunc,TYmfunc,TYjfunc ];
static immutable TXpasfunc_nf = [ TYfpfunc,TYf16func,TYfsfunc, ];
static immutable TXrevfunc = [ TYnpfunc,TYjfunc ];
static immutable TXrevfunc_nf = [ TYfpfunc,TYf16func, ];
static immutable TXshort = [ TYbool,TYchar,TYschar,TYuchar,TYshort,
TYwchar_t,TYushort,TYchar16 ];
static immutable TXaggregate = [ TYstruct,TYarray ];
static immutable TXxmmreg = [
TYfloat,TYdouble,TYifloat,TYidouble,
//TYcfloat,TYcdouble,
TYfloat4,TYdouble2,
TYschar16,TYuchar16,TYshort8,TYushort8,
TYlong4,TYulong4,TYllong2,TYullong2,
TYfloat8,TYdouble4,
TYschar32,TYuchar32,TYshort16,TYushort16,
TYlong8,TYulong8,TYllong4,TYullong4,
TYschar64,TYuchar64,TYshort32,TYushort32,
TYlong16,TYulong16,TYllong8,TYullong8,
TYfloat16,TYdouble8,
];
static immutable TXsimd = [
TYfloat4,TYdouble2,
TYschar16,TYuchar16,TYshort8,TYushort8,
TYlong4,TYulong4,TYllong2,TYullong2,
TYfloat8,TYdouble4,
TYschar32,TYuchar32,TYshort16,TYushort16,
TYlong8,TYulong8,TYllong4,TYullong4,
TYschar64,TYuchar64,TYshort32,TYushort32,
TYlong16,TYulong16,TYllong8,TYullong8,
TYfloat16,TYdouble8,
];
| D |
import vibe.d;
shared static this() {
auto settings = new HTTPServerSettings;
settings.port = 3002;
settings.options |= HTTPServerOption.distribute;
settings.bindAddresses = ["::1", "127.0.0.1"];
auto router = new URLRouter();
router.get("/:title", &title);
listenHTTP(settings, router);
logInfo("Please open http://127.0.0.1:3000/ in your browser.");
}
void title(HTTPServerRequest req, HTTPServerResponse res)
{
struct Member {
string name;
}
static immutable Member[] members = [
{name: "Chris McCord"},
{name: "Matt Sears"},
{name: "David Stump"},
{name: "Ricardo Thompson"}
];
res.render!("index.dt", req, members);
}
| D |
/Users/DanielChang/Documents/Vapor/Hello/.build/debug/FluentTester.build/Tester+PivotsAndRelations.swift.o : /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Atom.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Compound.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Student.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Tester+InsertAndFind.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Tester+PivotsAndRelations.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Tester+Schema.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Tester+Utilities.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Tester.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/Fluent.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/Node.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/PathIndexable.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/Polymorphic.swiftmodule
/Users/DanielChang/Documents/Vapor/Hello/.build/debug/FluentTester.build/Tester+PivotsAndRelations~partial.swiftmodule : /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Atom.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Compound.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Student.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Tester+InsertAndFind.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Tester+PivotsAndRelations.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Tester+Schema.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Tester+Utilities.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Tester.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/Fluent.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/Node.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/PathIndexable.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/Polymorphic.swiftmodule
/Users/DanielChang/Documents/Vapor/Hello/.build/debug/FluentTester.build/Tester+PivotsAndRelations~partial.swiftdoc : /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Atom.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Compound.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Student.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Tester+InsertAndFind.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Tester+PivotsAndRelations.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Tester+Schema.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Tester+Utilities.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/FluentTester/Tester.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/Fluent.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/Node.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/PathIndexable.swiftmodule /Users/DanielChang/Documents/Vapor/Hello/.build/debug/Polymorphic.swiftmodule
| D |
/**
Copyright: Copyright (c) 2016-2017 Andrey Penechko.
License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Andrey Penechko.
*/
module voxelman.block.plugin;
import voxelman.graphics;
import voxelman.log;
import voxelman.math;
import std.array : array;
import cbor;
import pluginlib;
import voxelman.core.config : BlockId;
import voxelman.world.storage;
import voxelman.world.block;
import voxelman.utils.mapping;
import voxelman.globalconfig;
import voxelman.world.serverworld;
import voxelman.world.clientworld;
enum TEX_TILE_SIZE = 32;
enum TEX_TILE_SIZE_VEC = ivec2(TEX_TILE_SIZE, TEX_TILE_SIZE);
final class BlockManager : IResourceManager
{
private:
Mapping!BlockInfo blockMapping;
public:
override string id() @property { return "voxelman.block.blockmanager"; }
override void preInit()
{
regBaseBlocks(®Block);
sideTable = sideIntersectionTable(NUM_SIDE_MASKS);
setSideTable(sideTable);
}
BlockInfoSetter regBlock(string name)
{
size_t id = blockMapping.put(BlockInfo(name));
assert(id <= BlockId.max);
return BlockInfoSetter(&blockMapping, id);
}
BlockInfoTable getBlocks()
{
return BlockInfoTable(cast(immutable)blockMapping.infoArray, sideTable);
}
// returns size_t.max if not found
size_t getId(string name)
{
return blockMapping.id(name);
}
SideIntersectionTable sideTable;
}
mixin template BlockPluginCommonImpl()
{
private BlockManager bm;
auto dbKey = IoKey("voxelman.block.block_mapping");
override void registerResourceManagers(void delegate(IResourceManager) registerHandler)
{
registerHandler(bm = new BlockManager);
}
BlockInfoTable getBlocks()
{
return bm.getBlocks;
}
}
final class BlockPluginClient : IPlugin
{
mixin BlockPluginCommonImpl;
// IPlugin stuff
mixin IdAndSemverFrom!"voxelman.block.plugininfo";
TextureAtlas texAtlas;
override void preInit()
{
texAtlas = new TextureAtlas(256);
}
override void init(IPluginManager pluginman)
{
auto clientWorld = pluginman.getPlugin!ClientWorld;
clientWorld.idMapManager.regIdMapHandler(dbKey.str, &handleBlockMap);
loadTextures();
}
void loadTextures()
{
// fill 0 texture with white color
texAtlas.insert(TEX_TILE_SIZE_VEC, Color4ub(255, 255, 255));
SpriteRef[string] texMap = loadNamedSpriteSheet(BUILD_TO_ROOT_PATH~"res/tex/blocks", texAtlas, TEX_TILE_SIZE_VEC);
Sprite sprite;
SpriteRef missingTexture = texMap.get("missing-texture", null);
if (missingTexture is null)
{
ivec2 atlasPos = texAtlas.insert(TEX_TILE_SIZE_VEC, Color4ub(0, 255, 255));
sprite.atlasRect = irect(atlasPos, TEX_TILE_SIZE_VEC);
missingTexture = &sprite;
}
irect getAtlasRect(string name) {
return texMap.get(name, missingTexture).atlasRect;
}
foreach(ref BlockInfo binfo; bm.blockMapping.infoArray)
{
irect rect = getAtlasRect(binfo.name);
ubyte[2] uv = [cast(ubyte)(rect.x / TEX_TILE_SIZE), cast(ubyte)(rect.y / TEX_TILE_SIZE)];
binfo.uv = uv;
infof("%s uv: %s", binfo.name, uv);
}
}
void handleBlockMap(string[] blocks)
{
bm.blockMapping.setMapping(blocks);
}
}
final class BlockPluginServer : IPlugin
{
mixin BlockPluginCommonImpl;
// IPlugin stuff
mixin IdAndSemverFrom!"voxelman.block.plugininfo";
override void registerResources(IResourceManagerRegistry resmanRegistry)
{
auto ioman = resmanRegistry.getResourceManager!IoManager;
ioman.registerWorldLoadSaveHandlers(&readBlockMap, &writeBlockMap);
}
override void init(IPluginManager pluginman)
{
auto serverWorld = pluginman.getPlugin!ServerWorld;
serverWorld.idMapManager.regIdMapHandler(dbKey.str, () => bm.blockMapping.nameRange.array);
}
void readBlockMap(ref PluginDataLoader loader)
{
loader.readMapping(dbKey, bm.blockMapping);
}
void writeBlockMap(ref PluginDataSaver saver)
{
saver.writeMapping(dbKey, bm.blockMapping);
}
}
| D |
module lib13774b;
import lib13774a;
void use2()
{
comdef();
}
| D |
/*
* Copyright (c) 2004-2009 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.gl15;
private
{
import derelict.util.loader;
import derelict.util.exception;
import derelict.opengl.gltypes;
import derelict.opengl.gl13;
import derelict.opengl.gl14;
version(Windows)
import derelict.opengl.wgl;
}
package void loadGL15(SharedLib lib)
{
version(Windows)
{
wglBindFunc(cast(void**)&glGenQueries, "glGenQueries", lib);
wglBindFunc(cast(void**)&glDeleteQueries, "glDeleteQueries", lib);
wglBindFunc(cast(void**)&glIsQuery, "glIsQuery", lib);
wglBindFunc(cast(void**)&glBeginQuery, "glBeginQuery", lib);
wglBindFunc(cast(void**)&glEndQuery, "glEndQuery", lib);
wglBindFunc(cast(void**)&glGetQueryiv, "glGetQueryiv", lib);
wglBindFunc(cast(void**)&glGetQueryObjectiv, "glGetQueryObjectiv", lib);
wglBindFunc(cast(void**)&glGetQueryObjectuiv, "glGetQueryObjectuiv", lib);
wglBindFunc(cast(void**)&glBindBuffer, "glBindBuffer", lib);
wglBindFunc(cast(void**)&glDeleteBuffers, "glDeleteBuffers", lib);
wglBindFunc(cast(void**)&glGenBuffers, "glGenBuffers", lib);
wglBindFunc(cast(void**)&glIsBuffer, "glIsBuffer", lib);
wglBindFunc(cast(void**)&glBufferData, "glBufferData", lib);
wglBindFunc(cast(void**)&glBufferSubData, "glBufferSubData", lib);
wglBindFunc(cast(void**)&glGetBufferSubData, "glGetBufferSubData", lib);
wglBindFunc(cast(void**)&glMapBuffer, "glMapBuffer", lib);
wglBindFunc(cast(void**)&glUnmapBuffer, "glUnmapBuffer", lib);
wglBindFunc(cast(void**)&glGetBufferParameteriv, "glGetBufferParameteriv", lib);
wglBindFunc(cast(void**)&glGetBufferPointerv, "glGetBufferPointerv", lib);
}
else
{
bindFunc(glGenQueries)("glGenQueries", lib);
bindFunc(glDeleteQueries)("glDeleteQueries", lib);
bindFunc(glIsQuery)("glIsQuery", lib);
bindFunc(glBeginQuery)("glBeginQuery", lib);
bindFunc(glEndQuery)("glEndQuery", lib);
bindFunc(glGetQueryiv)("glGetQueryiv", lib);
bindFunc(glGetQueryObjectiv)("glGetQueryObjectiv", lib);
bindFunc(glGetQueryObjectuiv)("glGetQueryObjectuiv", lib);
bindFunc(glBindBuffer)("glBindBuffer", lib);
bindFunc(glDeleteBuffers)("glDeleteBuffers", lib);
bindFunc(glGenBuffers)("glGenBuffers", lib);
bindFunc(glIsBuffer)("glIsBuffer", lib);
bindFunc(glBufferData)("glBufferData", lib);
bindFunc(glBufferSubData)("glBufferSubData", lib);
bindFunc(glGetBufferSubData)("glGetBufferSubData", lib);
bindFunc(glMapBuffer)("glMapBuffer", lib);
bindFunc(glUnmapBuffer)("glUnmapBuffer", lib);
bindFunc(glGetBufferParameteriv)("glGetBufferParameteriv", lib);
bindFunc(glGetBufferPointerv)("glGetBufferPointerv", lib);
}
}
enum : GLenum
{
GL_BUFFER_SIZE = 0x8764,
GL_BUFFER_USAGE = 0x8765,
GL_QUERY_COUNTER_BITS = 0x8864,
GL_CURRENT_QUERY = 0x8865,
GL_QUERY_RESULT = 0x8866,
GL_QUERY_RESULT_AVAILABLE = 0x8867,
GL_ARRAY_BUFFER = 0x8892,
GL_ELEMENT_ARRAY_BUFFER = 0x8893,
GL_ARRAY_BUFFER_BINDING = 0x8894,
GL_ELEMENT_ARRAY_BUFFER_BINDING = 0x8895,
GL_VERTEX_ARRAY_BUFFER_BINDING = 0x8896,
GL_NORMAL_ARRAY_BUFFER_BINDING = 0x8897,
GL_COLOR_ARRAY_BUFFER_BINDING = 0x8898,
GL_INDEX_ARRAY_BUFFER_BINDING = 0x8899,
GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A,
GL_EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B,
GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C,
GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D,
GL_WEIGHT_ARRAY_BUFFER_BINDING = 0x889E,
GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F,
GL_READ_ONLY = 0x88B8,
GL_WRITE_ONLY = 0x88B9,
GL_READ_WRITE = 0x88BA,
GL_BUFFER_ACCESS = 0x88BB,
GL_BUFFER_MAPPED = 0x88BC,
GL_BUFFER_MAP_POINTER = 0x88BD,
GL_STREAM_DRAW = 0x88E0,
GL_STREAM_READ = 0x88E1,
GL_STREAM_COPY = 0x88E2,
GL_STATIC_DRAW = 0x88E4,
GL_STATIC_READ = 0x88E5,
GL_STATIC_COPY = 0x88E6,
GL_DYNAMIC_DRAW = 0x88E8,
GL_DYNAMIC_READ = 0x88E9,
GL_DYNAMIC_COPY = 0x88EA,
GL_SAMPLES_PASSED = 0x8914,
GL_FOG_COORD_SRC = GL_FOG_COORDINATE_SOURCE,
GL_FOG_COORD = GL_FOG_COORDINATE,
GL_CURRENT_FOG_COORD = GL_CURRENT_FOG_COORDINATE,
GL_FOG_COORD_ARRAY_TYPE = GL_FOG_COORDINATE_ARRAY_TYPE,
GL_FOG_COORD_ARRAY_STRIDE = GL_FOG_COORDINATE_ARRAY_STRIDE,
GL_FOG_COORD_ARRAY_POINTER = GL_FOG_COORDINATE_ARRAY_POINTER,
GL_FOG_COORD_ARRAY = GL_FOG_COORDINATE_ARRAY,
GL_FOG_COORD_ARRAY_BUFFER_BINDING = GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING,
GL_SRC0_RGB = GL_SOURCE0_RGB,
GL_SRC1_RGB = GL_SOURCE1_RGB,
GL_SRC2_RGB = GL_SOURCE2_RGB,
GL_SRC0_ALPHA = GL_SOURCE0_ALPHA,
GL_SRC1_ALPHA = GL_SOURCE1_ALPHA,
GL_SRC2_ALPHA = GL_SOURCE2_ALPHA,
}
extern(System)
{
GLvoid function(GLsizei, GLuint*) glGenQueries;
GLvoid function(GLsizei,GLuint*) glDeleteQueries;
GLboolean function(GLuint) glIsQuery;
GLvoid function(GLenum, GLuint) glBeginQuery;
GLvoid function(GLenum) glEndQuery;
GLvoid function(GLenum, GLenum, GLint*) glGetQueryiv;
GLvoid function(GLuint, GLenum, GLint*) glGetQueryObjectiv;
GLvoid function(GLuint, GLenum, GLuint*) glGetQueryObjectuiv;
GLvoid function(GLenum, GLuint) glBindBuffer;
GLvoid function(GLsizei, GLuint*) glDeleteBuffers;
GLvoid function(GLsizei, GLuint*) glGenBuffers;
GLboolean function(GLuint) glIsBuffer;
GLvoid function(GLenum, GLsizeiptr, GLvoid*, GLenum) glBufferData;
GLvoid function(GLenum, GLintptr, GLsizeiptr,GLvoid*) glBufferSubData;
GLvoid function(GLenum, GLintptr, GLsizeiptr, GLvoid*) glGetBufferSubData;
GLvoid* function(GLenum, GLenum) glMapBuffer;
GLboolean function(GLenum) glUnmapBuffer;
GLvoid function(GLenum, GLenum, GLint*) glGetBufferParameteriv;
GLvoid function(GLenum, GLenum, GLvoid**) glGetBufferPointerv;
} | D |
module menu.browser.replay;
/*
* This must be refactored: Even though we inherit
* from BrowserCalledFromMainMenu, we may not implement levelRecent() inout
* despite the base class's promise. Reason: _matcher requires mutability.
* For now, we have assert(false) in levelRecent() and thus violate OO.
* See comment at that method.
*/
import optional;
import basics.globals : dirLevels;
import basics.user;
import file.filename;
import file.language;
import game.harvest;
import game.replay;
import gui;
import gui.picker;
import hardware.keyset;
import level.level;
import menu.browser.withlast;
import menu.lastgame;
import menu.verify;
static import basics.globals;
final class BrowserReplay : BrowserWithLastAndDelete {
private:
Optional!ReplayToLevelMatcher _matcher; // empty if no replay previewed
LabelTwo _labelPointedTo;
TextButton _buttonPlayWithPointedTo;
TextButton _buttonVerify;
public:
this()
{
super(Lang.browserReplayTitle.transl,
basics.globals.dirReplays, PickerConfig!ReplayTiler());
commonConstructor();
// Final class calls:
super.highlight(basics.user.replayLastLevel);
}
this(Harvest ha, const(Replay) lastLoaded)
{
super(Lang.browserReplayTitle.transl,
basics.globals.dirReplays, PickerConfig!ReplayTiler());
commonConstructor();
// Final class calls:
super.addStatsThenHighlight(
new StatsAfterReplay(super.newStatsGeom, ha, lastLoaded),
basics.user.replayLastLevel);
}
// Override method with assert(false): Violates fundamental OO principles.
// We shouldn't inherit from BrowserCalledFromMainMenu as long
// as that forces us to implement such a levelRecent(). BrowserReplay's
// caller (the main loop) should get the entire LevelToReplayMatcher
// instead, then it can start a game from there.
override @property inout(Level) levelRecent() inout { assert (false); }
@property ReplayToLevelMatcher matcher()
in { assert (_matcher.unwrap, "call this only when matcher exists"); }
body { return _matcher.unwrap; }
protected:
final override void onOnHighlightNone()
{
_matcher = null;
_labelPointedTo.hide();
_buttonPlayWithPointedTo.hide();
previewNone();
}
final override void onHighlightWithLastGame(Filename fn, bool solved)
in { assert (fn, "call onHighlightNone() instead"); }
body {
_matcher = some(new ReplayToLevelMatcher(fn));
previewLevel(matcher.preferredLevel);
_buttonPlayWithPointedTo.shown = matcher.pointedToIsGood;
if (! solved && ! matcher.pointedToFilename.empty
&& matcher.pointedToFilename.unwrap.rootless.length
> dirLevels.rootless.length
) {
// We show this even if the level is bad. It's probably
// most important then
_labelPointedTo.show();
_labelPointedTo.value = matcher.pointedToFilename.unwrap.rootless[
dirLevels.rootless.length .. $];
}
else {
_labelPointedTo.hide();
}
}
final override void onHighlightWithoutLastGame(Filename fn)
{
onHighlightWithLastGame(fn, false);
}
override void onPlay(Filename fn)
{
assert (_matcher.unwrap);
if (matcher.includedIsGood
// Ideally, we don't choose this silently when included is bad.
// But how to handle doubleclick on replay then? Thus, for now:
|| matcher.pointedToIsGood
) {
basics.user.replayLastLevel = super.fileRecent;
gotoGame = true;
}
}
override void calcSelf()
{
super.calcSelf();
if (_buttonPlayWithPointedTo.execute
&& _matcher.unwrap && matcher.pointedToIsGood
) {
// like onFileSelect, but for pointedTo
matcher.forcePointedTo();
basics.user.replayLastLevel = super.fileRecent;
gotoGame = true;
}
else if (_buttonVerify.execute) {
basics.user.replayLastLevel = currentDir;
auto win = new VerifyMenu(currentDir);
addFocus(win);
}
}
override MsgBox newMsgBoxDelete()
{
auto m = new MsgBox(Lang.saveBoxTitleDelete.transl);
m.addMsg(Lang.saveBoxQuestionDeleteReplay.transl);
m.addMsg(Lang.saveBoxDirectory.transl~ " " ~ fileRecent.dirRootless);
m.addMsg(Lang.saveBoxFileName.transl ~ " " ~ fileRecent.file);
return m;
}
private:
void commonConstructor()
{
buttonPlayYFromBottom = 100f;
TextButton newInfo(float x, float y, string caption, KeySet hotkey)
{
auto b = new TextButton(new Geom(infoX + x*infoXl/2, y,
infoXl/2, 40, From.BOTTOM_LEFT));
b.text = caption;
b.hotkey = hotkey;
return b;
}
_labelPointedTo = new LabelTwo(new Geom(infoX, infoY + 20f,
infoXl, 20), "\u27F6"); // unicode long arrow right
_buttonPlayWithPointedTo = newInfo(1, 100,
Lang.browserReplayPointedTo.transl, keyMenuEdit);
_buttonVerify = newInfo(1, 60,
Lang.browserReplayVerifyDir.transl, keyMenuNewLevel);
addChildren(_labelPointedTo,
_buttonPlayWithPointedTo, _buttonVerify);
}
}
| D |
/**
* Functions for raising errors.
*
* Copyright: Copyright (C) 1999-2023 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 https://www.digitalmars.com, Walter Bright)
* License: $(LINK2 https://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/errors.d, _errors.d)
* Documentation: https://dlang.org/phobos/dmd_errors.html
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/errors.d
*/
module dmd.errors;
import core.stdc.stdarg;
import core.stdc.stdio;
import core.stdc.stdlib;
import core.stdc.string;
import dmd.errorsink;
import dmd.globals;
import dmd.location;
import dmd.common.outbuffer;
import dmd.root.rmem;
import dmd.root.string;
import dmd.console;
public import dmd.errorsink : DiagnosticFlag;
nothrow:
/// Constants used to discriminate kinds of error messages.
enum ErrorKind
{
warning,
deprecation,
error,
tip,
message,
}
/***************************
* Error message sink for D compiler.
*/
class ErrorSinkCompiler : ErrorSink
{
nothrow:
extern (C++):
override:
void error(const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReport(loc, format, ap, ErrorKind.error);
va_end(ap);
}
void errorSupplemental(const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReportSupplemental(loc, format, ap, ErrorKind.error);
va_end(ap);
}
void warning(uint flag, const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReport(loc, format, ap, ErrorKind.warning, flag);
va_end(ap);
}
void warningSupplemental(uint flag, const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReportSupplemental(loc, format, ap, ErrorKind.warning, flag);
va_end(ap);
}
void deprecation(const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReport(loc, format, ap, ErrorKind.deprecation);
va_end(ap);
}
void deprecationSupplemental(const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReportSupplemental(loc, format, ap, ErrorKind.deprecation);
va_end(ap);
}
void message(const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReport(loc, format, ap, ErrorKind.message);
va_end(ap);
}
}
/**
* Color highlighting to classify messages
*/
enum Classification : Color
{
error = Color.brightRed, /// for errors
gagged = Color.brightBlue, /// for gagged errors
warning = Color.brightYellow, /// for warnings
deprecation = Color.brightCyan, /// for deprecations
tip = Color.brightGreen, /// for tip messages
}
static if (__VERSION__ < 2092)
private extern (C++) void noop(const ref Loc loc, const(char)* format, ...) {}
else
pragma(printf) private extern (C++) void noop(const ref Loc loc, const(char)* format, ...) {}
package auto previewErrorFunc(bool isDeprecated, FeatureState featureState) @safe @nogc pure nothrow
{
with (FeatureState) final switch (featureState)
{
case enabled:
return &error;
case disabled:
return &noop;
case default_:
return isDeprecated ? &noop : &deprecation;
}
}
package auto previewSupplementalFunc(bool isDeprecated, FeatureState featureState) @safe @nogc pure nothrow
{
with (FeatureState) final switch (featureState)
{
case enabled:
return &errorSupplemental;
case disabled:
return &noop;
case default_:
return isDeprecated ? &noop : &deprecationSupplemental;
}
}
/**
* Print an error message, increasing the global error count.
* Params:
* loc = location of error
* format = printf-style format specification
* ... = printf-style variadic arguments
*/
static if (__VERSION__ < 2092)
extern (C++) void error(const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReport(loc, format, ap, ErrorKind.error);
va_end(ap);
}
else
pragma(printf) extern (C++) void error(const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReport(loc, format, ap, ErrorKind.error);
va_end(ap);
}
/**
* Same as above, but takes a filename and line information arguments as separate parameters.
* Params:
* filename = source file of error
* linnum = line in the source file
* charnum = column number on the line
* format = printf-style format specification
* ... = printf-style variadic arguments
*/
static if (__VERSION__ < 2092)
extern (C++) void error(const(char)* filename, uint linnum, uint charnum, const(char)* format, ...)
{
const loc = Loc(filename, linnum, charnum);
va_list ap;
va_start(ap, format);
verrorReport(loc, format, ap, ErrorKind.error);
va_end(ap);
}
else
pragma(printf) extern (C++) void error(const(char)* filename, uint linnum, uint charnum, const(char)* format, ...)
{
const loc = Loc(filename, linnum, charnum);
va_list ap;
va_start(ap, format);
verrorReport(loc, format, ap, ErrorKind.error);
va_end(ap);
}
/**
* Print additional details about an error message.
* Doesn't increase the error count or print an additional error prefix.
* Params:
* loc = location of error
* format = printf-style format specification
* ... = printf-style variadic arguments
*/
static if (__VERSION__ < 2092)
extern (C++) void errorSupplemental(const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReportSupplemental(loc, format, ap, ErrorKind.error);
va_end(ap);
}
else
pragma(printf) extern (C++) void errorSupplemental(const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReportSupplemental(loc, format, ap, ErrorKind.error);
va_end(ap);
}
/**
* Print a warning message, increasing the global warning count.
* Params:
* flag = which flag directly controls this warning
* loc = location of warning
* format = printf-style format specification
* ... = printf-style variadic arguments
*/
static if (__VERSION__ < 2092)
extern (C++) void warning(uint flag, const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReport(loc, format, ap, ErrorKind.warning, flag);
va_end(ap);
}
else
pragma(printf) extern (C++) void warning(uint flag, const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReport(loc, format, ap, ErrorKind.warning, flag);
va_end(ap);
}
/**
* Print additional details about a warning message.
* Doesn't increase the warning count or print an additional warning prefix.
* Params:
* flag = which flag directly controls this warning
* loc = location of warning
* format = printf-style format specification
* ... = printf-style variadic arguments
*/
static if (__VERSION__ < 2092)
extern (C++) void warningSupplemental(uint flag, const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReportSupplemental(loc, format, ap, ErrorKind.warning, flag);
va_end(ap);
}
else
pragma(printf) extern (C++) void warningSupplemental(uint flag, const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReportSupplemental(loc, format, ap, ErrorKind.warning, flag);
va_end(ap);
}
/**
* Print a deprecation message, may increase the global warning or error count
* depending on whether deprecations are ignored.
* Params:
* loc = location of deprecation
* format = printf-style format specification
* ... = printf-style variadic arguments
*/
static if (__VERSION__ < 2092)
extern (C++) void deprecation(const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReport(loc, format, ap, ErrorKind.deprecation);
va_end(ap);
}
else
pragma(printf) extern (C++) void deprecation(const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReport(loc, format, ap, ErrorKind.deprecation);
va_end(ap);
}
/**
* Print additional details about a deprecation message.
* Doesn't increase the error count, or print an additional deprecation prefix.
* Params:
* loc = location of deprecation
* format = printf-style format specification
* ... = printf-style variadic arguments
*/
static if (__VERSION__ < 2092)
extern (C++) void deprecationSupplemental(const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReportSupplemental(loc, format, ap, ErrorKind.deprecation);
va_end(ap);
}
else
pragma(printf) extern (C++) void deprecationSupplemental(const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReportSupplemental(loc, format, ap, ErrorKind.deprecation);
va_end(ap);
}
/**
* Print a verbose message.
* Doesn't prefix or highlight messages.
* Params:
* loc = location of message
* format = printf-style format specification
* ... = printf-style variadic arguments
*/
static if (__VERSION__ < 2092)
extern (C++) void message(const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReport(loc, format, ap, ErrorKind.message);
va_end(ap);
}
else
pragma(printf) extern (C++) void message(const ref Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReport(loc, format, ap, ErrorKind.message);
va_end(ap);
}
/**
* Same as above, but doesn't take a location argument.
* Params:
* format = printf-style format specification
* ... = printf-style variadic arguments
*/
static if (__VERSION__ < 2092)
extern (C++) void message(const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReport(Loc.initial, format, ap, ErrorKind.message);
va_end(ap);
}
else
pragma(printf) extern (C++) void message(const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReport(Loc.initial, format, ap, ErrorKind.message);
va_end(ap);
}
/**
* The type of the diagnostic handler
* see verrorReport for arguments
* Returns: true if error handling is done, false to continue printing to stderr
*/
alias DiagnosticHandler = bool delegate(const ref Loc location, Color headerColor, const(char)* header, const(char)* messageFormat, va_list args, const(char)* prefix1, const(char)* prefix2);
/**
* The diagnostic handler.
* If non-null it will be called for every diagnostic message issued by the compiler.
* If it returns false, the message will be printed to stderr as usual.
*/
__gshared DiagnosticHandler diagnosticHandler;
/**
* Print a tip message with the prefix and highlighting.
* Params:
* format = printf-style format specification
* ... = printf-style variadic arguments
*/
static if (__VERSION__ < 2092)
extern (C++) void tip(const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReport(Loc.initial, format, ap, ErrorKind.tip);
va_end(ap);
}
else
pragma(printf) extern (C++) void tip(const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
verrorReport(Loc.initial, format, ap, ErrorKind.tip);
va_end(ap);
}
// Encapsulates an error as described by its location, format message, and kind.
private struct ErrorInfo
{
this(const ref Loc loc, const ErrorKind kind, const(char)* p1 = null, const(char)* p2 = null) @safe @nogc pure nothrow
{
this.loc = loc;
this.p1 = p1;
this.p2 = p2;
this.kind = kind;
}
const Loc loc; // location of error
Classification headerColor; // color to set `header` output to
const(char)* p1; // additional message prefix
const(char)* p2; // additional message prefix
const ErrorKind kind; // kind of error being printed
bool supplemental; // true if supplemental error
}
/**
* Implements $(D error), $(D warning), $(D deprecation), $(D message), and
* $(D tip). Report a diagnostic error, taking a va_list parameter, and
* optionally additional message prefixes. Whether the message gets printed
* depends on runtime values of DiagnosticReporting and global gagging.
* Params:
* loc = location of error
* format = printf-style format specification
* ap = printf-style variadic arguments
* kind = kind of error being printed
* flag = which flag directly controls this error (default is none)
* p1 = additional message prefix
* p2 = additional message prefix
*/
extern (C++) void verrorReport(const ref Loc loc, const(char)* format, va_list ap, ErrorKind kind, uint flag = 0, const(char)* p1 = null, const(char)* p2 = null)
{
auto info = ErrorInfo(loc, kind, p1, p2);
final switch (info.kind)
{
case ErrorKind.error:
global.errors++;
if (!global.gag)
{
info.headerColor = Classification.error;
verrorPrint(format, ap, info);
if (global.params.errorLimit && global.errors >= global.params.errorLimit)
fatal(); // moderate blizzard of cascading messages
}
else
{
if (global.params.showGaggedErrors)
{
info.headerColor = Classification.gagged;
verrorPrint(format, ap, info);
}
global.gaggedErrors++;
}
break;
case ErrorKind.deprecation:
if (global.params.useDeprecated == DiagnosticReporting.error)
goto case ErrorKind.error;
else if (global.params.useDeprecated == DiagnosticReporting.inform)
{
if (!global.gag)
{
info.headerColor = Classification.deprecation;
verrorPrint(format, ap, info);
}
else
{
global.gaggedWarnings++;
}
}
break;
case ErrorKind.warning:
if (global.params.warnings != DiagnosticReporting.off)
{
if (!global.gag)
{
info.headerColor = Classification.warning;
verrorPrint(format, ap, info);
if (global.params.warnings == DiagnosticReporting.error)
global.warnings++;
}
else
{
global.gaggedWarnings++;
}
}
break;
case ErrorKind.tip:
if (!global.gag)
{
info.headerColor = Classification.tip;
verrorPrint(format, ap, info);
}
break;
case ErrorKind.message:
const p = info.loc.toChars();
if (*p)
{
fprintf(stdout, "%s: ", p);
mem.xfree(cast(void*)p);
}
OutBuffer tmp;
tmp.vprintf(format, ap);
fputs(tmp.peekChars(), stdout);
fputc('\n', stdout);
fflush(stdout); // ensure it gets written out in case of compiler aborts
break;
}
}
/**
* Implements $(D errorSupplemental), $(D warningSupplemental), and
* $(D deprecationSupplemental). Report an addition diagnostic error, taking a
* va_list parameter. Whether the message gets printed depends on runtime
* values of DiagnosticReporting and global gagging.
* Params:
* loc = location of error
* format = printf-style format specification
* ap = printf-style variadic arguments
* kind = kind of error being printed
* flag = which flag directly controls this error (default is none)
*/
extern (C++) void verrorReportSupplemental(const ref Loc loc, const(char)* format, va_list ap, ErrorKind kind, uint flag = 0)
{
auto info = ErrorInfo(loc, kind);
info.supplemental = true;
switch (info.kind)
{
case ErrorKind.error:
if (global.gag)
{
if (!global.params.showGaggedErrors)
return;
info.headerColor = Classification.gagged;
}
else
info.headerColor = Classification.error;
verrorPrint(format, ap, info);
break;
case ErrorKind.deprecation:
if (global.params.useDeprecated == DiagnosticReporting.error)
goto case ErrorKind.error;
else if (global.params.useDeprecated == DiagnosticReporting.inform && !global.gag)
{
info.headerColor = Classification.deprecation;
verrorPrint(format, ap, info);
}
break;
case ErrorKind.warning:
if (global.params.warnings != DiagnosticReporting.off && !global.gag)
{
info.headerColor = Classification.warning;
verrorPrint(format, ap, info);
}
break;
default:
assert(false, "internal error: unhandled kind in error report");
}
}
/**
* Just print to stderr, doesn't care about gagging.
* (format,ap) text within backticks gets syntax highlighted.
* Params:
* format = printf-style format specification
* ap = printf-style variadic arguments
* info = context of error
*/
private void verrorPrint(const(char)* format, va_list ap, ref ErrorInfo info)
{
const(char)* header; // title of error message
if (info.supplemental)
header = " ";
else
{
final switch (info.kind)
{
case ErrorKind.error: header = "Error: "; break;
case ErrorKind.deprecation: header = "Deprecation: "; break;
case ErrorKind.warning: header = "Warning: "; break;
case ErrorKind.tip: header = " Tip: "; break;
case ErrorKind.message: assert(0);
}
}
if (diagnosticHandler !is null &&
diagnosticHandler(info.loc, info.headerColor, header, format, ap, info.p1, info.p2))
return;
if (global.params.showGaggedErrors && global.gag)
fprintf(stderr, "(spec:%d) ", global.gag);
Console con = cast(Console) global.console;
const p = info.loc.toChars();
if (con)
con.setColorBright(true);
if (*p)
{
fprintf(stderr, "%s: ", p);
mem.xfree(cast(void*)p);
}
if (con)
con.setColor(info.headerColor);
fputs(header, stderr);
if (con)
con.resetColor();
OutBuffer tmp;
if (info.p1)
{
tmp.writestring(info.p1);
tmp.writestring(" ");
}
if (info.p2)
{
tmp.writestring(info.p2);
tmp.writestring(" ");
}
tmp.vprintf(format, ap);
if (con && strchr(tmp.peekChars(), '`'))
{
colorSyntaxHighlight(tmp);
writeHighlights(con, tmp);
}
else
fputs(tmp.peekChars(), stderr);
fputc('\n', stderr);
__gshared Loc old_loc;
Loc loc = info.loc;
if (global.params.printErrorContext &&
// ignore supplemental messages with same loc
(loc != old_loc || !info.supplemental) &&
// ignore invalid files
loc != Loc.initial &&
// ignore mixins for now
!loc.filename.strstr(".d-mixin-") &&
!global.params.mixinOut.doOutput)
{
import dmd.root.filename : FileName;
const fileName = FileName(loc.filename.toDString);
if (auto file = global.fileManager.lookup(fileName))
{
const(char)[][] lines = global.fileManager.getLines(fileName);
if (loc.linnum - 1 < lines.length)
{
auto line = lines[loc.linnum - 1];
if (loc.charnum < line.length)
{
fprintf(stderr, "%.*s\n", cast(int)line.length, line.ptr);
// The number of column bytes and the number of display columns
// occupied by a character are not the same for non-ASCII charaters.
// https://issues.dlang.org/show_bug.cgi?id=21849
size_t c = 0;
while (c < loc.charnum - 1)
{
import dmd.root.utf : utf_decodeChar;
dchar u;
const msg = utf_decodeChar(line, c, u);
assert(msg is null, msg);
fputc(' ', stderr);
}
fputc('^', stderr);
fputc('\n', stderr);
}
}
}
}
old_loc = loc;
fflush(stderr); // ensure it gets written out in case of compiler aborts
}
/**
* The type of the fatal error handler
* Returns: true if error handling is done, false to do exit(EXIT_FAILURE)
*/
alias FatalErrorHandler = bool delegate();
/**
* The fatal error handler.
* If non-null it will be called for every fatal() call issued by the compiler.
*/
__gshared FatalErrorHandler fatalErrorHandler;
/**
* Call this after printing out fatal error messages to clean up and exit the
* compiler. You can also set a fatalErrorHandler to override this behaviour.
*/
extern (C++) void fatal()
{
if (fatalErrorHandler && fatalErrorHandler())
return;
exit(EXIT_FAILURE);
}
/**
* Try to stop forgetting to remove the breakpoints from
* release builds.
*/
extern (C++) void halt() @safe
{
assert(0);
}
/**
* Scan characters in `buf`. Assume text enclosed by `...`
* is D source code, and color syntax highlight it.
* Modify contents of `buf` with highlighted result.
* Many parallels to ddoc.highlightText().
* Params:
* buf = text containing `...` code to highlight
*/
private void colorSyntaxHighlight(ref OutBuffer buf)
{
//printf("colorSyntaxHighlight('%.*s')\n", cast(int)buf.length, buf[].ptr);
bool inBacktick = false;
size_t iCodeStart = 0;
size_t offset = 0;
for (size_t i = offset; i < buf.length; ++i)
{
char c = buf[i];
switch (c)
{
case '`':
if (inBacktick)
{
inBacktick = false;
OutBuffer codebuf;
codebuf.write(buf[iCodeStart .. i]);
codebuf.writeByte(0);
// escape the contents, but do not perform highlighting except for DDOC_PSYMBOL
colorHighlightCode(codebuf);
buf.remove(iCodeStart, i - iCodeStart);
immutable pre = "";
i = buf.insert(iCodeStart, pre);
i = buf.insert(i, codebuf[]);
break;
}
inBacktick = true;
iCodeStart = i + 1;
break;
default:
break;
}
}
}
/**
* Embed these highlighting commands in the text stream.
* HIGHLIGHT.Escape indicates a Color follows.
*/
enum HIGHLIGHT : ubyte
{
Default = Color.black, // back to whatever the console is set at
Escape = '\xFF', // highlight Color follows
Identifier = Color.white,
Keyword = Color.white,
Literal = Color.white,
Comment = Color.darkGray,
Other = Color.cyan, // other tokens
}
/**
* Highlight code for CODE section.
* Rewrite the contents of `buf` with embedded highlights.
* Analogous to doc.highlightCode2()
*/
private void colorHighlightCode(ref OutBuffer buf)
{
import dmd.lexer;
import dmd.tokens;
__gshared int nested;
if (nested)
{
// Should never happen, but don't infinitely recurse if it does
--nested;
return;
}
++nested;
__gshared ErrorSinkNull errorSinkNull;
if (!errorSinkNull)
errorSinkNull = new ErrorSinkNull;
scope Lexer lex = new Lexer(null, cast(char*)buf[].ptr, 0, buf.length - 1, 0, 1, errorSinkNull, &global.compileEnv);
OutBuffer res;
const(char)* lastp = cast(char*)buf[].ptr;
//printf("colorHighlightCode('%.*s')\n", cast(int)(buf.length - 1), buf[].ptr);
res.reserve(buf.length);
res.writeByte(HIGHLIGHT.Escape);
res.writeByte(HIGHLIGHT.Other);
while (1)
{
Token tok;
lex.scan(&tok);
res.writestring(lastp[0 .. tok.ptr - lastp]);
HIGHLIGHT highlight;
switch (tok.value)
{
case TOK.identifier:
highlight = HIGHLIGHT.Identifier;
break;
case TOK.comment:
highlight = HIGHLIGHT.Comment;
break;
case TOK.int32Literal:
..
case TOK.dcharLiteral:
case TOK.string_:
highlight = HIGHLIGHT.Literal;
break;
default:
if (tok.isKeyword())
highlight = HIGHLIGHT.Keyword;
break;
}
if (highlight != HIGHLIGHT.Default)
{
res.writeByte(HIGHLIGHT.Escape);
res.writeByte(highlight);
res.writestring(tok.ptr[0 .. lex.p - tok.ptr]);
res.writeByte(HIGHLIGHT.Escape);
res.writeByte(HIGHLIGHT.Other);
}
else
res.writestring(tok.ptr[0 .. lex.p - tok.ptr]);
if (tok.value == TOK.endOfFile)
break;
lastp = lex.p;
}
res.writeByte(HIGHLIGHT.Escape);
res.writeByte(HIGHLIGHT.Default);
//printf("res = '%.*s'\n", cast(int)buf.length, buf[].ptr);
buf.setsize(0);
buf.write(&res);
--nested;
}
/**
* Write the buffer contents with embedded highlights to stderr.
* Params:
* buf = highlighted text
*/
private void writeHighlights(Console con, ref const OutBuffer buf)
{
bool colors;
scope (exit)
{
/* Do not mess up console if highlighting aborts
*/
if (colors)
con.resetColor();
}
for (size_t i = 0; i < buf.length; ++i)
{
const c = buf[i];
if (c == HIGHLIGHT.Escape)
{
const color = buf[++i];
if (color == HIGHLIGHT.Default)
{
con.resetColor();
colors = false;
}
else
if (color == Color.white)
{
con.resetColor();
con.setColorBright(true);
colors = true;
}
else
{
con.setColor(cast(Color)color);
colors = true;
}
}
else
fputc(c, con.fp);
}
}
| D |
/// Simple source code splitter
/// Written by Vladimir Panteleev <vladimir@thecybershadow.net>
/// Released into the Public Domain
module splitter;
import std.ascii;
import std.algorithm;
import std.array;
import std.conv;
import std.file;
import std.functional;
import std.path;
import std.range;
import std.string;
import std.traits;
debug import std.stdio;
/// Represents a slice of the original code.
class Entity
{
string head; /// This node's "head", e.g. "{" for a statement block.
Entity[] children; /// This node's children nodes, e.g. the statements of the statement block.
string tail; /// This node's "tail", e.g. "}" for a statement block.
string filename, contents;
@property bool isFile() { return filename != ""; }
bool isPair; /// Internal hint for --dump output
bool noRemove; /// Don't try removing this entity (children OK)
bool removed; /// For dangling dependencies
Entity[] dependencies; /// If any of these entities are omitted, so should this entity.
int id; /// For diagnostics
size_t descendants; /// For progress display
DSplitter.Token token; /// Used internally
this(string head = null, Entity[] children = null, string tail = null)
{
this.head = head;
this.children = children;
this.tail = tail;
}
@property string comment()
{
if (isPair)
{
assert(token == DSplitter.Token.none);
return "Pair";
}
else
if (token)
return DSplitter.tokenText[token];
else
return null;
}
override string toString()
{
return "%(%s%) %s %(%s%)".format([head], children, [tail]);
}
}
enum Mode
{
source,
words, /// split identifiers, for obfuscation
}
enum Splitter
{
files, /// Load entire files only
lines, /// Split by line ends
words, /// Split by whitespace
D, /// Parse D source code
}
immutable string[] splitterNames = [EnumMembers!Splitter].map!(e => e.text().toLower()).array();
struct ParseRule
{
string pattern;
Splitter splitter;
}
struct ParseOptions
{
enum Mode { source, words }
bool stripComments;
ParseRule[] rules;
Mode mode;
}
/// Parse the given file/directory.
/// For files, modifies path to be the base name for .test / .reduced directories.
Entity loadFiles(ref string path, ParseOptions options)
{
if (isFile(path))
{
auto filePath = path;
path = stripExtension(path);
return loadFile(filePath.baseName(), filePath, options);
}
else
{
auto set = new Entity();
foreach (string entry; dirEntries(path, SpanMode.breadth))
if (isFile(entry))
{
assert(entry.startsWith(path));
auto name = entry[path.length+1..$];
set.children ~= loadFile(name, entry, options);
}
return set;
}
}
enum BIN_SIZE = 2;
void optimize(Entity set)
{
static void group(ref Entity[] set, size_t start, size_t end)
{
//set = set[0..start] ~ [new Entity(removable, set[start..end])] ~ set[end..$];
auto children = set[start..end].dup;
auto e = new Entity(null, children, null);
e.noRemove = children.any!(c => c.noRemove)();
set.replaceInPlace(start, end, [e]);
}
static void clusterBy(ref Entity[] set, size_t binSize)
{
while (set.length > binSize)
{
auto size = set.length >= binSize*2 ? binSize : (set.length+1) / 2;
//auto size = binSize;
auto bins = set.length/size;
if (set.length % size > 1)
group(set, bins*size, set.length);
foreach_reverse (i; 0..bins)
group(set, i*size, (i+1)*size);
}
}
static void doOptimize(Entity e)
{
foreach (c; e.children)
doOptimize(c);
clusterBy(e.children, BIN_SIZE);
}
doOptimize(set);
}
private:
/// Override std.string nonsense, which does UTF-8 decoding
bool startsWith(in char[] big, in char[] small) { return big.length >= small.length && big[0..small.length] == small; }
bool startsWith(in char[] big, char c) { return big.length && big[0] == c; }
immutable ParseRule[] defaultRules =
[
{ "*.d" , Splitter.D },
{ "*.di", Splitter.D },
{ "*" , Splitter.files },
];
Entity loadFile(string name, string path, ParseOptions options)
{
debug writeln("Loading ", path);
auto result = new Entity();
result.filename = name.replace(`\`, `/`);
result.contents = cast(string)read(path);
auto base = name.baseName();
foreach (rule; chain(options.rules, defaultRules))
if (base.globMatch(rule.pattern))
{
final switch (rule.splitter)
{
case Splitter.files:
result.children = [new Entity(result.contents, null, null)];
return result;
case Splitter.lines:
result.children = parseToLines(result.contents);
return result;
case Splitter.words:
result.children = parseToWords(result.contents);
return result;
case Splitter.D:
{
if (result.contents.startsWith("Ddoc"))
goto case Splitter.files;
DSplitter splitter;
if (options.stripComments)
result.contents = splitter.stripComments(result.contents);
final switch (options.mode)
{
case ParseOptions.Mode.source:
result.children = splitter.parse(result.contents);
return result;
case ParseOptions.Mode.words:
result.children = splitter.parseToWords(result.contents);
return result;
}
}
}
}
assert(false); // default * rule should match everything
}
// *****************************************************************************************************************************************************************************
/// A simple, error-tolerant D source code splitter.
struct DSplitter
{
struct Pair { string start, end; }
static const Pair[] pairs =
[
{ "{", "}" },
{ "[", "]" },
{ "(", ")" },
];
static immutable string[] blockKeywords = ["try", "catch", "finally", "while", "do", "in", "out", "body", "if", "static if", "else", "for", "foreach"];
static immutable string[] parenKeywords = ["catch", "while", "if", "static if", "for", "foreach"];
/// The order dictates the splitting priority of the separators.
static immutable string[][] separators =
[
[";", "{"] ~ blockKeywords,
["import"],
// From http://wiki.dlang.org/Operator_precedence
// Some items are listed twice, DustMite does not distinguish binary/prefix/postfix operators
[".."],
[","],
["=>"],
["=", "-=", "+=", "<<=", ">>=", ">>>=", "=", "*=", "%=", "^=", "^^=", "~="],
["?", ":"],
["||"],
["&&"],
["|"],
["^"],
["&"],
["==", "!=", ">", "<", ">=", "<=", "!>", "!<", "!>=", "!<=", "<>", "!<>", "<>=", "!<>=", "in", "!in", "is", "!is"],
["<<", ">>", ">>>"],
["+", "-", "~"],
["*", "/", "%"],
["&", "++", "--", "*", "+", "-", /*"!",*/ "~"],
["^^"],
[".", "++", "--" /*, "(", "["*/],
// "=>",
["!"],
["(", "["]
];
enum Token : int
{
none,
end, /// end of stream
whitespace, /// spaces, tabs, newlines
comment, /// all forms of comments
other, /// identifiers, literals and misc. keywords
generated0, /// First value of generated tokens (see below)
max = generated0 + tokenLookup.length
}
enum Token[string] tokenLookup = // DMD pr/2824
{
Token[string] lookup;
auto t = Token.generated0;
Token add(string s)
{
auto p = s in lookup;
if (p)
return *p;
return lookup[s] = t++;
}
foreach (pair; pairs)
{
add(pair.start);
add(pair.end );
}
foreach (i, synonyms; separators)
foreach (sep; synonyms)
add(sep);
return lookup;
}();
static immutable string[Token.max] tokenText =
{
string[Token.max] result;
foreach (k, v; tokenLookup)
result[v] = k;
return result;
}();
struct TokenPair { Token start, end; }
static Token lookupToken(string s) { return tokenLookup[s]; }
static TokenPair makeTokenPair(Pair pair) { return TokenPair(tokenLookup[pair.start], tokenLookup[pair.end]); }
alias lookupTokens = arrayMap!(lookupToken, const string);
static immutable TokenPair[] pairTokens = pairs .arrayMap!makeTokenPair();
static immutable Token[][] separatorTokens = separators.arrayMap!lookupTokens ();
static immutable Token[] blockKeywordTokens = blockKeywords.arrayMap!lookupToken();
static immutable Token[] parenKeywordTokens = parenKeywords.arrayMap!lookupToken();
enum SeparatorType
{
none,
pair,
prefix,
postfix,
binary, /// infers dependency
}
static SeparatorType getSeparatorType(Token t)
{
switch (t)
{
case tokenLookup[";"]:
return SeparatorType.postfix;
case tokenLookup["import"]:
return SeparatorType.prefix;
case tokenLookup["else"]:
return SeparatorType.binary;
default:
if (pairTokens.any!(pair => pair.start == t))
return SeparatorType.pair;
if (blockKeywordTokens.canFind(t))
return SeparatorType.prefix;
if (separatorTokens.any!(row => row.canFind(t)))
return SeparatorType.binary;
return SeparatorType.none;
}
}
// ************************************************************************
string s; /// Source code we are splitting
size_t i; /// Cursor
/// Making the end of an input stream a throwable greatly simplifies control flow.
class EndOfInput : Throwable { this() { super(null); } }
/// Are we at the end of the stream?
@property bool eos() { return i >= s.length; }
/// Advances i by n bytes. Throws EndOfInput if there are not enough.
string advance(size_t n)
{
auto e = i + n;
if (e > s.length)
{
i = s.length;
throw new EndOfInput;
}
auto result = s[i..e];
i = e;
return result;
}
/// ditto
char advance() { return advance(1)[0]; }
/// If pre comes next, advance i through pre and return it.
/// Otherwise, return null.
string consume(string pre)
{
if (s[i..$].startsWith(pre))
return advance(pre.length);
else
return null;
}
/// ditto
char consume(char pre)
{
assert(pre);
if (s[i..$].startsWith(pre))
return advance();
else
return 0;
}
/// Peeks at the next n characters.
string peek(size_t n)
{
if (i+n > s.length)
throw new EndOfInput;
return s[i..i+n];
}
/// ditto
char peek() { return peek(1)[0]; }
/// Advances i through one token (whether it's a comment,
/// a series of whitespace characters, or something else).
/// Returns the token type.
Token skipTokenOrWS()
{
if (eos)
return Token.end;
Token result = Token.other;
try
{
auto c = advance();
switch (c)
{
case '\'':
result = Token.other;
if (consume('\\'))
advance();
while (advance() != '\'')
continue;
break;
case '\\': // D1 naked escaped string
result = Token.other;
advance();
break;
case '"':
result = Token.other;
while (peek() != '"')
{
if (advance() == '\\')
advance();
}
advance();
break;
case 'r':
if (consume(`r"`))
{
result = Token.other;
while (advance() != '"')
continue;
break;
}
else
goto default;
case '`':
result = Token.other;
while (advance() != '`')
continue;
break;
case '/':
if (consume('/'))
{
result = Token.comment;
while (peek() != '\r' && peek() != '\n')
advance();
}
else
if (consume('*'))
{
result = Token.comment;
while (!consume("*/"))
advance();
}
else
if (consume('+'))
{
result = Token.comment;
int commentLevel = 1;
while (commentLevel)
{
if (consume("/+"))
commentLevel++;
else
if (consume("+/"))
commentLevel--;
else
advance();
}
}
else
goto default;
break;
case '@':
if (consume("disable")
|| consume("property")
|| consume("safe")
|| consume("trusted")
|| consume("system")
)
return Token.other;
goto default;
case '#':
result = Token.other;
do
{
c = advance();
if (c == '\\')
c = advance();
}
while (c != '\n');
break;
default:
{
i--;
Token best;
size_t bestLength;
foreach (Token t; Token.init..Token.max)
{
auto text = tokenText[t];
if (!text)
continue;
if (!s[i..$].startsWith(text))
continue;
if (text[$-1].isAlphaNum() && s.length > i + text.length && s[i + text.length].isAlphaNum())
continue; // if the token is a word, it must end at a word boundary
if (text.length <= bestLength)
continue;
best = t;
bestLength = text.length;
}
if (bestLength)
{
auto consumed = consume(tokenText[best]);
assert(consumed);
return best;
}
i++;
}
if (c.isWhite())
{
result = Token.whitespace;
while (peek().isWhite())
advance();
}
else
if (isWordChar(c))
{
result = Token.other;
while (isWordChar(peek()))
advance();
}
else
result = Token.other;
}
}
catch (EndOfInput)
i = s.length;
return result;
}
/// Skips leading and trailing whitespace/comments, too.
/// Never returns Token.whitespace or Token.comment.
void readToken(out Token type, out string span)
{
size_t spanStart = i;
do
type = skipTokenOrWS();
while (type == Token.whitespace || type == Token.comment);
skipToEOL();
span = s[spanStart..i];
if (type == Token.end && span.length)
type = Token.whitespace;
}
/// Moves i forward over first series of EOL characters,
/// or until first non-whitespace character, whichever comes first.
void skipToEOL()
{
try
while (true)
{
auto c = peek();
if (c == '\r' || c == '\n')
{
do
advance(), c = peek();
while (c == '\r' || c == '\n');
return;
}
else
if (c.isWhite())
i++;
else
if (peek(2) == "//")
{
auto t = skipTokenOrWS();
assert(t == Token.comment);
}
else
break;
}
catch (EndOfInput)
i = s.length;
}
static bool isWordChar(char c)
{
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '_';
}
void reset(string code)
{
s = code;
i = 0;
}
void parseScope(Entity result, Token scopeEnd)
{
enum Level : int
{
zero,
separator0,
separatorMax = separator0 + separators.length - 1,
text,
max
}
Entity[][Level.max] splitterQueue;
Entity[] terminateLevel(Level level)
{
level++;
if (level == Level.max)
return null;
auto r = splitterQueue[level] ~ group(terminateLevel(level));
splitterQueue[level] = null;
return r;
}
tokenLoop:
while (true)
{
Token token;
string span;
readToken(token, span);
if (token == Token.end)
{
assert(span.empty);
break;
}
if (token == scopeEnd)
{
result.tail = span;
break;
}
auto e = new Entity();
e.token = token;
auto level = Level.text;
Entity after;
foreach (n, synonyms; separatorTokens)
foreach (sep; synonyms)
if (token == sep)
{
level = cast(Level)(Level.separator0 + n);
e.children = terminateLevel(level);
auto type = getSeparatorType(token);
if (type == SeparatorType.prefix || type == SeparatorType.pair)
{
Entity empty = e;
if (e.children.length)
{
e.token = Token.none;
after = empty = new Entity(span);
after.token = token;
}
else
e.head = span;
if (type == SeparatorType.pair)
parseScope(empty, pairTokens.find!(pair => pair.start == token).front.end);
}
else
e.tail = span;
goto handled;
}
e.head = span;
handled:
splitterQueue[level] ~= e;
if (after)
splitterQueue[level] ~= after;
}
result.children ~= terminateLevel(Level.zero);
}
Entity[] parse(string code)
{
reset(code);
auto entity = new Entity;
parseScope(entity, Token.none);
assert(!entity.head && !entity.tail);
postProcess(entity.children);
return [entity];
}
Entity[] parseToWords(string code)
{
reset(code);
Entity[] result;
while (!eos)
{
auto start = i;
auto token = skipTokenOrWS();
auto span = s[start..i];
if (token == Token.other)
result ~= new Entity(span);
else
{
if (!result.length)
result ~= new Entity();
if (!result[$-1].tail)
result[$-1].tail = span;
else
{
start = result[$-1].tail.ptr - s.ptr;
result[$-1].tail = s[start..i];
}
}
}
return result;
}
string stripComments(string code)
{
reset(code);
auto result = appender!string();
while (!eos)
{
auto start = i;
Token t = skipTokenOrWS();
if (t != Token.comment)
result.put(s[start..i]);
}
return result.data;
}
static Entity[] group(Entity[] entities)
{
if (entities.length <= 1)
return entities;
return [new Entity(null, entities, null)];
}
static void postProcessSimplify(ref Entity[] entities)
{
for (size_t i=0; i<entities.length;)
{
auto e = entities[i];
if (e.head.empty && e.tail.empty && e.dependencies.empty)
{
assert(e.token == Token.none);
if (e.children.length == 0)
{
entities = entities.remove(i);
continue;
}
else
if (e.children.length == 1)
{
entities[i] = e.children[0];
continue;
}
}
i++;
}
}
static void postProcessDependency(ref Entity[] entities)
{
if (entities.length < 2)
{
foreach (e; entities)
postProcessDependency(e.children);
return;
}
size_t[] points;
foreach_reverse (i, e; entities[0..$-1])
if (getSeparatorType(e.token) == SeparatorType.binary && e.children)
points ~= i;
if (points.length)
{
auto i = points[$/2];
auto e = entities[i];
auto head = entities[0..i] ~ group(e.children);
e.children = null;
auto tail = new Entity(null, group(entities[i+1..$]), null);
e.dependencies ~= tail;
entities = group(head ~ e) ~ tail;
foreach (c; entities)
postProcessDependency(c.children);
}
}
static void postProcessDependencyBlock(ref Entity[] entities)
{
foreach (i, e; entities)
if (i && !e.token && e.children.length && getSeparatorType(e.children[0].token) == SeparatorType.binary && !e.children[0].children)
e.children[0].dependencies ~= entities[i-1];
}
static void postProcessBlockKeywords(ref Entity[] entities)
{
for (size_t i=0; i<entities.length;)
{
if (blockKeywordTokens.canFind(entities[i].token) && i+1 < entities.length)
{
auto j = i + 1;
if (j < entities.length && entities[j].token == tokenLookup["("])
j++;
j++; // ; or {
if (j <= entities.length)
{
entities = entities[0..i] ~ group(group(entities[i..j-1]) ~ entities[j-1..j]) ~ entities[j..$];
continue;
}
}
i++;
}
}
static void postProcessBlockStatements(ref Entity[] entities)
{
for (size_t i=0; i<entities.length;)
{
auto j = i;
bool consume(Token t)
{
if (j < entities.length
&& entities[j].children.length == 2
&& firstToken(entities[j].children[0]) == t)
{
j++;
return true;
}
return false;
}
if (consume(tokenLookup["if"]) || consume(tokenLookup["static if"]))
consume(tokenLookup["else"]);
else
if (consume(tokenLookup["do"]))
consume(tokenLookup["while"]);
else
if (consume(tokenLookup["try"]))
{
while (consume(tokenLookup["catch"]))
continue;
consume(tokenLookup["finally"]);
}
if (i == j)
{
j++;
while (consume(tokenLookup["in"]) || consume(tokenLookup["out"]) || consume(tokenLookup["body"]))
continue;
}
if (j-i > 1)
{
entities = entities[0..i] ~ group(entities[i..j]) ~ entities[j..$];
continue;
}
i++;
}
}
static void postProcessPairs(ref Entity[] entities)
{
size_t lastPair = 0;
for (size_t i=0; i<entities.length;)
{
// Create pair entities
if (entities[i].token == tokenLookup["{"])
{
if (i >= lastPair + 1)
{
lastPair = i-1;
entities = entities[0..lastPair] ~ group(group(entities[lastPair..i]) ~ entities[i]) ~ entities[i+1..$];
i = lastPair;
entities[i].isPair = true;
lastPair++;
continue;
}
else
lastPair = i + 1;
}
else
if (entities[i].token == tokenLookup[";"])
lastPair = i + 1;
i++;
}
}
static void postProcessParens(ref Entity[] entities)
{
for (size_t i=0; i+1 < entities.length;)
{
if (parenKeywordTokens.canFind(entities[i].token))
{
auto pparen = firstHead(entities[i+1]);
if (pparen
&& *pparen !is entities[i+1]
&& pparen.token == tokenLookup["("])
{
auto paren = *pparen;
*pparen = new Entity();
entities = entities[0..i] ~ group([entities[i], paren]) ~ entities[i+1..$];
continue;
}
}
i++;
}
foreach (e; entities)
postProcessParens(e.children);
}
static void postProcess(ref Entity[] entities)
{
foreach (e; entities)
if (e.children.length)
postProcess(e.children);
postProcessSimplify(entities);
postProcessDependency(entities);
postProcessBlockKeywords(entities);
postProcessDependencyBlock(entities);
postProcessBlockStatements(entities);
postProcessPairs(entities);
postProcessParens(entities);
}
static Entity* firstHead(ref Entity e)
{
if (e.head.length)
return &e;
foreach (ref c; e.children)
{
auto r = firstHead(c);
if (r)
return r;
}
return null;
}
static Token firstToken(Entity e)
{
while (!e.token && e.children.length)
e = e.children[0];
return e.token;
}
}
public:
/// Split the text into sequences for each fun is always true, and then always false
Entity[] parseSplit(alias fun)(string text)
{
Entity[] result;
size_t i, wordStart, wordEnd;
for (i = 1; i <= text.length; i++)
if (i==text.length || (fun(text[i-1]) && !fun(text[i])))
{
if (wordStart != i)
result ~= new Entity(text[wordStart..wordEnd], null, text[wordEnd..i]);
wordStart = wordEnd = i;
}
else
if ((!fun(text[i-1]) && fun(text[i])))
wordEnd = i;
return result;
}
alias parseToWords = parseSplit!isNotAlphaNum;
alias parseToLines = parseSplit!isNewline;
private:
bool isNewline(char c) { return c == '\r' || c == '\n'; }
alias isNotAlphaNum = not!isAlphaNum;
// https://d.puremagic.com/issues/show_bug.cgi?id=11824
auto arrayMap(alias fun, T)(T[] arr)
{
alias R = typeof(fun(arr[0]));
auto result = new R[arr.length];
foreach (i, v; arr)
result[i] = fun(v);
return result;
}
| D |
/*
TEST_OUTPUT:
---
fail_compilation/diag14818.d(34): Error: None of the overloads of 'func' are callable using argument types (string), candidates are:
fail_compilation/diag14818.d(12): diag14818.foo(int _param_0)
fail_compilation/diag14818.d(13): diag14818.bar(double _param_0)
fail_compilation/diag14818.d(35): Error: overload alias diag14818.X does not match any template declaration
fail_compilation/diag14818.d(36): Error: overloadset diag14818.M does not match any template declaration
---
*/
void foo(int) {}
void bar(double) {}
alias func = foo;
alias func = bar;
// in here, func is a FuncAliasDeclaration;
template Foo(T) if (is(T == int)) {}
template Bar(T) if (is(T == double)) {}
alias X = Foo;
alias X = Bar;
// in here, X is an OverDeclaration
template Mix1() { alias M = Foo; }
template Mix2() { alias M = Bar; }
mixin Mix1;
mixin Mix2;
alias Y = M;
// in here, Y is an OverloadSet
void main()
{
func("abc");
alias x = X!string;
alias y = Y!string;
}
| D |
module android.java.java.text.Normalizer_Form;
public import android.java.java.text.Normalizer_Form_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!Normalizer_Form;
import import0 = android.java.java.text.Normalizer_Form;
import import2 = android.java.java.lang.Class;
| D |
a fastener for a door or lid
secure or lock with a hasp
| D |
/Users/gem/Desktop/MovieMoya/the-movie-db/DerivedData/TheNewMovie/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/PanModal.build/Objects-normal/x86_64/PanModalPresentable.o : /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presentable/PanModalPresentable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Delegate/PanModalPresentationDelegate.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Controller/PanModalPresentationController.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presentable/PanModalPresentable+UIViewController.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presenter/UIViewController+PanModalPresenter.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presenter/PanModalPresenter.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Animator/PanModalAnimator.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Animator/PanModalPresentationAnimator.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presentable/PanModalPresentable+LayoutHelpers.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presentable/PanModalPresentable+Defaults.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presentable/PanModalHeight.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/View/DimmedView.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/View/PanContainerView.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/PanModal/PanModal-umbrella.h /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/PanModal.h /Users/gem/Desktop/MovieMoya/the-movie-db/DerivedData/TheNewMovie/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/PanModal.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/Pods.build/Debug-iphonesimulator/PanModal.build/Objects-normal/x86_64/PanModalPresentable~partial.swiftmodule : /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presentable/PanModalPresentable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Delegate/PanModalPresentationDelegate.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Controller/PanModalPresentationController.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presentable/PanModalPresentable+UIViewController.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presenter/UIViewController+PanModalPresenter.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presenter/PanModalPresenter.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Animator/PanModalAnimator.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Animator/PanModalPresentationAnimator.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presentable/PanModalPresentable+LayoutHelpers.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presentable/PanModalPresentable+Defaults.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presentable/PanModalHeight.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/View/DimmedView.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/View/PanContainerView.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/PanModal/PanModal-umbrella.h /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/PanModal.h /Users/gem/Desktop/MovieMoya/the-movie-db/DerivedData/TheNewMovie/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/PanModal.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/Pods.build/Debug-iphonesimulator/PanModal.build/Objects-normal/x86_64/PanModalPresentable~partial.swiftdoc : /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presentable/PanModalPresentable.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Delegate/PanModalPresentationDelegate.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Controller/PanModalPresentationController.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presentable/PanModalPresentable+UIViewController.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presenter/UIViewController+PanModalPresenter.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presenter/PanModalPresenter.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Animator/PanModalAnimator.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Animator/PanModalPresentationAnimator.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presentable/PanModalPresentable+LayoutHelpers.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presentable/PanModalPresentable+Defaults.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/Presentable/PanModalHeight.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/View/DimmedView.swift /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/View/PanContainerView.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/PanModal/PanModal-umbrella.h /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/PanModal/PanModal/PanModal.h /Users/gem/Desktop/MovieMoya/the-movie-db/DerivedData/TheNewMovie/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/PanModal.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 |
// { dg-additional-sources "imports/runnablea.d" }
// { dg-do run { target arm*-*-* i?86-*-* x86_64-*-* } }
module runnable;
import imports.runnablea;
import core.stdc.stdio;
import gcc.attribute;
/******************************************/
// Bug 2
struct S
{
string toString() { return "foo"; }
}
void test2()
{
import std.string : format;
assert(format("%s", S()) == "foo");
}
/******************************************/
// Bug 4
void test4()
{
string str = "allo";
static assert(!__traits(compiles, str.reverse));
static assert(!__traits(compiles, str.sort));
}
/******************************************/
// Bug 15
class B
{
class A { }
A a;
}
class C
{
void visit(B b)
{
import std.algorithm : map;
auto as = [b.a];
as.map!(d => d);
}
}
/******************************************/
// Bug 16
void test16()
{
import std.parallelism : taskPool;
taskPool.reduce!"a+b"([0, 1, 2, 3]);
}
/******************************************/
// Bug 17
/**
* Parameters are not copied into a frame to be accessed from
* the method's __require function.
*/
void contractTest(string path)
{
assert(path[0] == 't');
assert(path.length == 9);
assert(path[8] == 'i');
}
interface ModuleSaver
{
void save(string str)
in
{
contractTest(str);
}
}
class ModuleWriter : ModuleSaver
{
void save (string str)
in {}
body
{
}
}
void test17()
{
(new ModuleWriter()).save ("test.0.mci");
}
/******************************************/
// Bug 18
class C18
{
struct Link
{
int x;
int y;
}
void sort_links()
{
import std.algorithm : sort;
import std.array : empty;
import std.exception : enforce;
enforce(!_link.empty);
bool lt(Link a, Link b)
{
if(a.x > b.x)
return false;
if(a.x < b.x)
return true;
if(a.y >= b.y)
return false;
else
return true;
}
sort!(lt)(_link);
}
this()
{
_link ~= Link(8, 3);
_link ~= Link(4, 7);
_link ~= Link(4, 6);
_link ~= Link(3, 7);
_link ~= Link(2, 7);
_link ~= Link(2, 2);
_link ~= Link(4, 1);
}
Link[] _link;
}
void test18()
{
C18 foo = new C18;
foo.sort_links();
}
/******************************************/
// Bug 19
void test19()
{
byte b;
--b = b;
}
/******************************************/
// Bug 24
void test24()
{
struct S24
{
char[1] b;
}
S24 a;
if (*a.b.ptr)
return;
}
/******************************************/
// Bug 29
void test29()
{
import std.string : format;
import std.conv : text;
string s;
for (auto i = 0; i < 100000; i++)
{
s = format("%d", i);
s = text(i);
}
}
/******************************************/
// Bug 31
class RedBlackTree(T, alias less)
{
struct Range
{
@property empty() { }
}
Range opSlice()
{
return Range();
}
}
auto redBlackTree(alias less, E)()
{
return new RedBlackTree!(E, less);
}
void test31()
{
redBlackTree!((a){}, double)();
}
/******************************************/
// Bug 35
/**
* Here the BinaryHeap instance uses an alias parameter and therefore
* the instance's functions (percolateDown) need to be generated in
* topNIndex->BinaryHeap scope and not in the declaration scope
* (module->BinaryHeap).
*/
void topNIndex()()
{
bool indirectLess(int a, int b)
{
return a > b;
}
auto a = BinaryHeap!(indirectLess)();
}
struct BinaryHeap(alias less)
{
void percolateDown()
{
less(0, 1);
}
}
void test35a()
{
topNIndex();
}
/*
* Similar as test35a but with an additional indirection.
* The nested function chain for percolateDown should look like this:
* topNIndex2->BinaryHeap2->percolateDown.
*/
void topNIndex2()()
{
bool indirectLess(int a, int b)
{
return a > b;
}
auto a = BinaryHeap2!(S35b!(indirectLess)())();
}
struct S35b(alias a)
{
void foo()
{
a(0, 0);
}
}
struct BinaryHeap2(alias less)
{
void percolateDown()
{
less.foo();
}
}
void test35b()
{
topNIndex2();
}
void test35()
{
test35a();
test35b();
}
/******************************************/
// Bug 36
/**
* Here getChar is a function in a template where template.isnested == false
* but getChar still is a nested function and needs to get a static chain
* containing test36a.
*/
void test36a()(char val)
{
void error()
{
}
void getChar()()
{
error();
}
void parseString()
{
getChar();
}
}
/**
* Similar as test36a, but a little more complicated:
* Here getChar is nested in a struct template which is nested in a function.
* getChar's static chain still needs to contain test36b.
*/
void test36b()(char val)
{
void error()
{
}
struct S(T)
{
void getChar()
{
error();
}
}
void parseString()
{
S!(int)().getChar();
}
}
/**
* If g had accessed a, the frontend would have generated a closure.
*
* As we do not access it, there's no closure. We have to be careful
* not to set a static chain for g containing test36c_1 though,
* as g can be called from outside (here from test1c). In the end
* we have to treat this as if everything in test36c_1 was declared
* at module scope.
*/
auto test36c_1()
{
int a;
void c() {};
class Result
{
int b;
void g() { c(); /*a = 42;*/ }
}
return new Result();
}
void test36c()
{
test36c_1().g();
}
/**
* empty is a (private) function which is nested in lightPostprocess.
* At the same time it's a template instance, so it has to be declared as
* weak or otherwise one-only. imports/runnablea.d creates another instance
* of Regex!char to verify that.
*/
struct Parser(R)
{
@property program()
{
return Regex!char();
}
}
struct Regex(Char)
{
@trusted lightPostprocess()
{
struct FixedStack(T)
{
@property empty() { return false; }
}
auto counterRange = FixedStack!uint();
}
}
void test36d()
{
auto parser = Parser!(char[])();
imports.runnablea.test36d_1;
}
void test36()
{
test36a('n');
test36b('n');
test36c();
test36d();
}
/******************************************/
// Bug 37
struct S37
{
int bar(const S37 s)
{
return 0;
}
}
int test37()
{
S37 s;
return s.bar(s);
}
/******************************************/
// Bug 43
void test43()
{
import core.vararg;
import core.stdc.stdio;
void formatArray(ref va_list argptr)
{
auto a = va_arg!(const(float)[])(argptr);
foreach(f; a)
{
printf("%f\n", f);
}
}
void doFormat(TypeInfo[] arguments, va_list argptr)
{
formatArray(argptr);
}
void format(...)
{
doFormat(_arguments, _argptr);
}
format([1.0f, 2.0f, 3.0f]);
}
/******************************************/
// Bug 47
template Foo47()
{
void test47()
{
asm { "nop"; }
}
}
mixin Foo47!();
/******************************************/
// Bug 51
struct S51
{
int x;
int pad;
this(this)
{
++x;
}
}
void test51()
{
S51 s;
auto sarr = new S51[1];
auto sarr2 = sarr;
// postblit all fields.
sarr2 ~= s;
assert (sarr2[0].x == 1);
assert (sarr2[1].x == 1);
assert (sarr[0].x == 0);
assert (s.x == 0);
}
/******************************************/
// Bug 52
class C52
{
C52 a;
this()
{
printf("Construct: this=%p\n", cast(void*)this);
a = this;
}
bool check()
{
printf("Check: this=%p a=%p\n", cast(void*)this, cast(void*)a);
return this is a;
}
}
auto test52a()
{
import std.conv, std.traits;
struct Scoped
{
void[__traits (classInstanceSize, C52) ] Scoped_store = void;
inout(C52) Scoped_payload() inout
{
void* alignedStore = cast(void*) Scoped_store.ptr;
return cast(inout (C52)) alignedStore;
}
alias Scoped_payload this;
}
Scoped result;
emplace!(Unqual!C52)(result.Scoped_store);
assert(result.Scoped_payload().check);
return result;
}
void test52()
{
auto a1 = test52a();
assert(a1.Scoped_payload().check);
}
/******************************************/
// Bug 57
struct S57
{
int a;
long b;
// Doesn't happen for bigger structs
}
S57 bar57()
{
return S57(4, 42);
}
void test57()
{
S57 s = bar57();
assert (s is S57(4, 42));
}
/******************************************/
// Bug 66
void test66()
{
int pos = 0;
foreach(x; 0 .. 64)
{
++pos %= 4;
assert (pos != 4);
}
}
/******************************************/
// Bug 67
__vector(float[4]) d[2]; // ICE
/******************************************/
// Bug 71
struct Leaf
{
ubyte symbol;
ubyte codeLen;
}
struct CanonicalHuffman
{
Leaf[] table;
void print()
{
import std.algorithm;
import std.range;
auto list = zip(iota(table.length), table.dup).array
.sort!((a, b) => a[1].symbol < b[1].symbol)
.uniq!((a, b) => (a[0] & (1 << a[1].codeLen) - 1) == (b[0] & (1 << b[1].codeLen) - 1));
}
}
/******************************************/
// Bug 77
void fun(ubyte[3] buf)
{
import std.bitmanip : bigEndianToNative;
bigEndianToNative!ushort(buf[0..2]);
}
void test77()
{
fun([1,2,3]);
}
/******************************************/
// Bug 108
@attribute("forceinline")
void test108()
{
import std.stdio : writeln;
writeln("Here");
}
/******************************************/
// Bug 115
void test115()
{
union U
{
float f;
uint i;
}
float a = 123.0;
const l = U(a);
assert(l.i == U(a).i);
}
/******************************************/
// Bug 121
immutable char C121 = void; // ICE
/******************************************/
// Bug 122
void test122()
{
import std.algorithm : map;
import std.parallelism : taskPool;
import std.range : iota;
immutable n = 10000;
enum delta = 1.0 / n; // XBUG: was 'immutable delta' https://issues.dlang.org/show_bug.cgi?id=17092
immutable pi = 4.0 * delta * taskPool.reduce!"a + b"(
map!((int i) { immutable x = (i - 0.5) * delta; return 1.0 / (1.0 + x * x); })(iota(n)));
}
/******************************************/
// Bug 127
int[0] test127a; // OK
int[1][0] test127b; // OK
int[0][1] test127c; // ICE
/******************************************/
// Bug 131
struct S131
{
this(string ) { }
string opAssign(string v) { return v; }
}
void test131()
{
S131[string] s;
s["foo"] = "bar";
}
/******************************************/
// Bug 133
void delegate()[] D133;
void test133a(void delegate() dg)
{
D133 ~= dg;
}
void test133()
{
void nested()
{}
test133a(&nested);
}
/******************************************/
// Bug 141
bool test141a(int a)
{
return a > (a + 1);
}
void test141()
{
assert(test141a(int.min) == false);
assert(test141a(int.max) == true);
}
/******************************************/
// Bug 142
@attribute("noinline")
int test142a()()
{
return 142;
}
void test142()
{
enum E142 = test142a();
}
/******************************************/
// Bug 171
void test171a()
{
int count = 0;
short a = -1;
while (a != 0)
{
a >>>= 1;
count++;
assert(count <= 16);
}
}
void test171b()
{
uint[3] lhs = [99, 201, 300],
rhs = [-1, 0, 0];
long t = 0;
for (int i = 0; i < 3; i++)
{
t += lhs[i];
t -= rhs[i];
lhs[i] = cast(uint) t;
t >>= uint.sizeof * 8;
}
assert(lhs == [100, 200, 300]);
}
void test171()
{
test171a();
test171b();
}
/******************************************/
// Bug 179
struct S179a
{
@disable this(this);
}
struct S179b
{
S179a s1;
void connect() { printf("this=%p\n", &this); }
}
class C179
{
private S179b s2;
ref S179b value() @property
{
printf("this=%p\n", &s2);
return s2;
}
}
void test179()
{
C179 a = new C179;
a.value.connect();
}
/******************************************/
// Bug 183
struct S183a
{
union I183a
{
struct
{
double x, y, z;
}
struct
{
double a, b, c;
}
}
I183a inner;
this(double x, double y, double z)
{
this.inner.x = x;
this.inner.y = y;
this.inner.z = z;
}
}
struct S183b
{
@property get()
{
union Buf
{
void[0] result;
}
const Buf buf = { };
return buf.result;
}
}
struct S183c
{
@property get()
{
union Buf
{
TypeInfo info;
void[0] result;
}
const Buf buf = { };
return buf.result;
}
}
void test183()
{
auto v1 = S183a(0, 0, 0);
auto v2 = S183b().get;
auto v3 = S183c().get;
}
/******************************************/
// Bug 186
struct S186
{
union
{
struct
{
ubyte fieldA;
byte fieldB = -1;
byte fieldC = -1;
}
size_t _complete;
}
this(size_t complete)
{
this._complete = complete;
}
}
void check186(in S186 obj, byte fieldB)
{
assert(obj.fieldA == 2);
assert(obj.fieldB == 0);
assert(obj.fieldC == 0);
assert(obj._complete == 2);
assert(fieldB == 0);
}
void test186a(size_t val)
{
S186 obj = S186(val);
check186(obj, obj.fieldB);
assert(obj.fieldA == 2);
assert(obj.fieldB == 0);
assert(obj.fieldC == 0);
assert(obj._complete == 2);
obj = S186(val);
check186(obj, obj.fieldB);
assert(obj.fieldA == 2);
assert(obj.fieldB == 0);
assert(obj.fieldC == 0);
assert(obj._complete == 2);
}
void test186()
{
test186a(2);
}
/******************************************/
// Bug 187
align(1) struct S187b
{
align(1)
{
uint unpaddedA;
ushort unpaddedB;
}
}
struct S187a
{
S187b[3] unpaddedArray;
ubyte wontInitialize = ubyte.init;
}
struct S187
{
S187a interesting;
}
void prepareStack()
{
byte[255] stackGarbage;
foreach(i, ref b; stackGarbage)
{
b = cast(byte)(-i);
}
}
void test187()
{
prepareStack();
auto a = S187(S187a());
assert(a.interesting.wontInitialize == 0);
}
/******************************************/
// Bug 191
class C191
{
int count = 0;
void testA()
{
class Inner
{
void test()
{
void localFunction()
{
if (++count != 5)
testA();
}
localFunction();
}
}
scope ic = new Inner();
ic.test();
}
void testB()
{
class Inner
{
void test()
{
void localFunction()
{
void anotherLocalFunction()
{
if (++count != 10)
testB();
}
anotherLocalFunction();
}
localFunction();
}
}
scope ic = new Inner();
ic.test();
}
void testC()
{
class Inner
{
int a = 1;
void test()
{
void localFunction()
{
count += a;
if (count != 15)
testC();
assert(a == 1);
}
localFunction();
}
}
scope ic = new Inner();
ic.test();
}
void testD()
{
class Inner
{
void test()
{
int a = 1;
void localFunction()
{
count += a;
if (count != 20)
testD();
assert(a == 1);
}
localFunction();
}
}
scope ic = new Inner();
ic.test();
}
void testE()
{
class Inner
{
int a = 1;
void test()
{
void localFunction()
{
void anotherLocalFunction()
{
count += a;
if (count != 25)
testE();
assert(a == 1);
}
anotherLocalFunction();
}
localFunction();
}
}
scope ic = new Inner();
ic.test();
}
void testF()
{
class Inner
{
void test()
{
int a = 1;
void localFunction()
{
void anotherLocalFunction()
{
count += a;
if (count != 30)
testF();
assert(a == 1);
}
anotherLocalFunction();
}
localFunction();
}
}
scope ic = new Inner();
ic.test();
}
void testG()
{
class Inner
{
void test()
{
void localFunction()
{
int a = 1;
void anotherLocalFunction()
{
count += a;
if (count != 35)
testG();
assert(a == 1);
}
anotherLocalFunction();
}
localFunction();
}
}
scope ic = new Inner();
ic.test();
}
}
void test191()
{
scope oc = new C191();
oc.testA();
assert(oc.count == 5);
oc.testB();
assert(oc.count == 10);
oc.testC();
assert(oc.count == 15);
oc.testD();
assert(oc.count == 20);
oc.testE();
assert(oc.count == 25);
oc.testF();
assert(oc.count == 30);
oc.testG();
assert(oc.count == 35);
}
/******************************************/
// Bug 194
auto test194(ref bool overflow)
{
import core.checkedint;
return adds(1, 1, overflow);
}
/******************************************/
// Bug 196
class C196
{
int a;
}
struct S196
{
int a;
}
void test196()
{
__gshared c = new C196();
__gshared s = new S196(0);
c.a = 1;
s.a = 1;
}
/******************************************/
// Bug 198
struct S198a
{
union
{
float[3] v;
struct
{
float x;
float y;
float z;
}
}
this(float x_, float y_, float z_)
{
x = x_;
y = y_;
z = z_;
}
ref S198a opOpAssign(string op)(S198a operand)
if (op == "+")
{
x += operand.x;
y += operand.y;
z += operand.z;
return this;
}
}
struct S198b
{
@property get()
{
union Buf
{
void[0] result;
}
const Buf buf = { };
return buf.result;
}
}
struct S198c
{
@property get()
{
union Buf
{
TypeInfo info;
void[0] result;
}
const Buf buf = { };
return buf.result;
}
}
auto test198()
{
S198a sum = S198a(0, 0, 0);
foreach(size_t v; 0 .. 3)
sum += S198a(1, 2, 3);
assert(sum.v == [3, 6, 9]);
}
/******************************************/
// Bug 200
void test200a(double x, double y)
{
const double y2 = x + 1.0;
assert(y == y2);
}
void test200()
{
const double x = .012;
const double y = x + 1.0;
test200a(x, y);
}
/******************************************/
// Bug 210
struct S210
{
ubyte a;
uint b;
}
union U210
{
S210 a;
uint b;
}
S210 test210a()
{
S210 s = S210(1, 2);
return s;
}
S210[2] test210b()
{
S210[2] s = [S210(1, 2), S210(3, 4)];
return s;
}
U210 test210c()
{
U210 s = U210(S210(1, 2));
return s;
}
U210[2] test210d()
{
U210[2] s = [U210(S210(1, 2)), U210(S210(3, 4))];
return s;
}
void test210()
{
S210 a = S210(1, 2);
assert(a == S210(1, 2));
assert(a == test210a());
assert(a != S210(2, 1));
S210[2] b = [S210(1, 2), S210(3, 4)];
assert(b == [S210(1, 2), S210(3, 4)]);
assert(b == test210b());
assert(b != [S210(2, 1), S210(3, 4)]);
U210 c = U210(S210(1, 2));
assert(c == U210(S210(1, 2)));
assert(c == test210c());
assert(c != U210(S210(2, 1)));
U210[2] d = [U210(S210(1, 2)), U210(S210(3, 4))];
assert(d == [U210(S210(1, 2)), U210(S210(3, 4))]);
assert(d == test210d());
assert(d != [U210(S210(2, 1)), U210(S210(3, 4))]);
}
/******************************************/
// Bug 242
struct S242
{
enum M = S242();
int a = 42;
auto iter()
{
this.a = 24;
return this;
}
}
S242 test242a()
{
return S242.M.iter;
}
void test242()
{
assert(test242a() == S242(24));
}
/******************************************/
// Bug 248
class C248b
{
bool isintegral()
{
return false;
}
}
class C248a
{
int count = 0;
C248b getMemtype()
{
count++;
return new C248b();
}
}
class C248
{
C248a sym;
this()
{
this.sym = new C248a();
}
bool isintegral()
{
return sym.getMemtype().isintegral();
}
}
void test248()
{
C248 e = new C248();
e.isintegral();
assert(e.sym.count == 1);
}
/******************************************/
// Bug 250
void test250()
{
struct S
{
string data;
}
auto a = S("hello");
auto b = S("hello".dup);
assert(a.data == b.data);
assert(a == b);
assert([a] == [b]);
}
/******************************************/
// Bug 253
interface A253
{
void test253(int[int]);
}
interface C253 : A253
{
}
class D253 : B253, C253
{
}
/******************************************/
// Bug 273
class B273
{
B273[] members;
}
class D273 : B273
{
}
void test273()
{
auto noPointers = ClassInfo.ClassFlags.noPointers;
assert((B273.classinfo.m_flags & noPointers) == 0);
assert((D273.classinfo.m_flags & noPointers) == 0);
}
/******************************************/
void main()
{
test2();
test4();
test16();
test17();
test18();
test35();
test36();
test43();
test51();
test52();
test57();
test66();
test77();
test108();
test115();
test131();
test133();
test141();
test179();
test186();
test187();
test191();
test196();
test198();
test200();
test210();
test248();
test250();
test273();
printf("Success!\n");
}
| D |
/*
* Kiss - A refined core library for D programming language.
*
* Copyright (C) 2015-2018 Shanghai Putao Technology Co., Ltd
*
* Developer: HuntLabs.cn
*
* Licensed under the Apache-2.0 License.
*
*/
module kiss.event.socket.common;
import kiss.core;
import kiss.event.EventLoop;
import kiss.event.core;
import kiss.exception;
import kiss.container.ByteBuffer;
import std.socket;
import kiss.logger;
alias ConnectionHandler = void delegate(bool isSucceeded);
// dfmt off
alias UDPReadCallBack = void delegate(in ubyte[] data, Address addr);
alias AcceptCallBack = void delegate(Selector loop, Socket socket) ;
// dfmt on
alias SocketChannelBase = AbstractSocketChannel;
// alias AcceptorBase = AbstractListener;
// alias StreamSocketBase = AbstractStream;
// alias DatagramSocketBase = AbstractDatagramSocket;
/**
*/
interface IAcceptor
{
void onClose();
void onRead();
}
/**
*/
interface Stream
{
}
// alias IStreamSocket = Stream;
// dfmt off
mixin template ChannelSocketOption() {
import std.functional;
import std.datetime;
import core.stdc.stdint;
import std.socket;
version (Windows) import SOCKETOPTIONS = core.sys.windows.winsock2;
version (Posix) import SOCKETOPTIONS = core.sys.posix.sys.socket;
/// 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 {
return 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 {
return this.socket.setOption(forward!(level, option, value));
}
/// Set the linger option.
pragma(inline) final void setOption(SocketOptionLevel level, SocketOption option,
Linger value) @trusted {
return this.socket.setOption(forward!(level, option, value));
}
pragma(inline) final void setOption(SocketOptionLevel level, SocketOption option,
Duration value) @trusted {
return this.socket.setOption(forward!(level, option, value));
}
final @property @trusted Address remoteAddress() {
return _remoteAddress;
}
protected Address _remoteAddress;
final @property @trusted Socket socket(){
return this.socket;
}
final @property @trusted Address localAddress() {
return _localAddress;
}
protected Address _localAddress;
}
// dfmt on
/**
*/
abstract class AbstractSocketChannel : AbstractChannel
{
protected AddressFamily _family;
this(Selector loop, WatcherType type)
{
super(loop, type);
}
protected @property void socket(Socket s)
{
this.handle = s.handle();
this._family = s.addressFamily;
version (Posix)
s.blocking = false;
_socket = s;
version (KissDebugMode)
trace("new socket fd: ", this.handle);
}
protected @property Socket socket()
{
return _socket;
}
mixin ChannelSocketOption;
version (Windows)
{
void setRead(size_t bytes)
{
readLen = bytes;
}
protected size_t readLen;
}
void start();
void onWriteDone()
{
assert(false, "unimplemented");
}
protected:
Socket _socket;
}
/**
*/
interface IDatagramSocket
{
}
/**
*/
class SocketStreamBuffer : StreamWriteBuffer
{
this(const(ubyte)[] data, DataWrittenHandler handler = null)
{
_data = data;
_site = 0;
_sentHandler = handler;
}
const(ubyte)[] sendData()
{
return _data[_site .. $];
}
// add send offiset and return is empty
bool popSize(size_t size)
{
_site += size;
if (_site >= _data.length)
return true;
else
return false;
}
// do send finish
void doFinish()
{
if (_sentHandler)
{
_sentHandler(_data, _site);
}
_sentHandler = null;
_data = null;
}
StreamWriteBuffer next()
{
return _next;
}
void next(StreamWriteBuffer v)
{
_next = v;
}
private:
StreamWriteBuffer _next;
size_t _site = 0;
const(ubyte)[] _data;
DataWrittenHandler _sentHandler;
}
/**
*/
struct WriteBufferQueue
{
StreamWriteBuffer front() nothrow @safe
{
return _first;
}
bool empty() nothrow @safe
{
return _first is null;
}
void clear()
{
StreamWriteBuffer current = _first;
while (current !is null)
{
_first = current.next;
current.next = null;
current = _first;
}
_first = null;
_last = null;
}
void enQueue(StreamWriteBuffer wsite)
{
assert(wsite);
if (_last)
{
_last.next = wsite;
}
else
{
_first = wsite;
}
wsite.next = null;
_last = wsite;
}
StreamWriteBuffer deQueue()
{
// assert(_first && _last);
StreamWriteBuffer wsite = _first;
if (_first !is null)
_first = _first.next;
if (_first is null)
_last = null;
return wsite;
}
private:
StreamWriteBuffer _last = null;
StreamWriteBuffer _first = null;
}
| D |
module mockservice.mockaddress;
import std.range;
import vibe.d;
import mockservice.protocol;
package Specification[] route;
package HttpRequest[] history;
void resetRoute(string defaultRoute) {
auto spec = deserializeJson!Specification(defaultRoute);
if(route.empty)
route = [spec];
else
route.front = spec;
}
void handleRequest(HTTPServerRequest req, HTTPServerResponse res)
{
//Store Request
history.length += 1;
history.back.payload = req.bodyReader.readAllUTF8();
history.back.requestURI = req.requestURI;
history.back.method = req.method;
foreach(k, v; req.headers)
history.back.header[k] = v;
//Return planned response
Specification spec;
if(route.length > 1) {
spec = moveBack(route);
route.popBack();
} else
spec = route.front;
auto router = buildRouter(spec, "");
router.handleRequest(req, res);
}
auto buildRouter(Specification spec, string basePath) {
auto router = new URLRouter;
foreach(path, item; spec.paths) {
foreach(method, req; item) {
import std.path;
import std.file;
auto fileref = basePath.buildPath(req.response.fileref);
if(exists(fileref))
req.response.payload = readText(fileref);
else if(req.response.jsonPayload != Json.undefined)
req.response.payload = req.response.jsonPayload.to!string;
router.addRoute(method, path, req.response);
}
}
return router;
}
auto addRoute(URLRouter router, string method, string path, HttpRequest req) {
import std.traits;
import std.conv;
import std.string;
foreach(m; EnumMembers!HTTPMethod){
if(m.to!string.toLower() == method.toLower()) {
router.match(m, path, handleRequest(req));
return;
}
}
}
auto handleRequest(HttpRequest r) {
return (HTTPServerRequest req, HTTPServerResponse res) {
foreach(k, v; r.header)
res.headers[k] = v;
res.writeBody(r.payload);
res.statusCode = r.status;
};
}
| D |
PROTOTYPE Mst_Skeleton_Lord (C_NPC)
{
//----- Monster ----
name = "Schattenkrieger";
guild = GIL_SKELETON;
aivar[AIV_MM_REAL_ID] = ID_SKELETONLORD;
level = 60;
//----- Attribute ----
attribute [ATR_STRENGTH] = 105; //+ 105 Waffe
attribute [ATR_DEXTERITY] = 750;
attribute [ATR_HITPOINTS_MAX] = 400;
attribute [ATR_HITPOINTS] = 400;
attribute [ATR_MANA_MAX] = 200;
attribute [ATR_MANA] = 200;
//----- Protection ----
protection [PROT_BLUNT] = 0; //hat RS!
protection [PROT_EDGE] = 0;
protection [PROT_POINT] = 0;
protection [PROT_FIRE] = 0;
protection [PROT_FLY] = 0;
protection [PROT_MAGIC] = 0; //so lassen!
self.aivar[AIV_Damage] = self.attribute[ATR_HITPOINTS_MAX];
//----- Damage Types ----
damagetype = DAM_EDGE;
// damage [DAM_INDEX_BLUNT] = 0;
// damage [DAM_INDEX_EDGE] = 0;
// damage [DAM_INDEX_POINT] = 0;
// damage [DAM_INDEX_FIRE] = 0;
// damage [DAM_INDEX_FLY] = 0;
// damage [DAM_INDEX_MAGIC] = 0;
//----- Kampf-Taktik ----
fight_tactic = FAI_HUMAN_STRONG;
EquipItem (self,ItMw_Zweihaender2);
B_RaiseFightTalent (self, NPC_TALENT_2H, 80);
//----- Senses & Ranges ----
senses = SENSE_HEAR | SENSE_SEE | SENSE_SMELL;
senses_range = PERC_DIST_MONSTER_ACTIVE_MAX;
aivar[AIV_MM_FollowTime] = FOLLOWTIME_MEDIUM;
aivar[AIV_MM_FollowInWater] = FALSE;
//----- Daily Routine ----
start_aistate = ZS_MM_AllScheduler;
aivar[AIV_MM_RestStart] = OnlyRoutine;
CreateInvItems (self, ItAt_SkeletonBone , 1);
};
//***************
// Visuals
//***************
func void B_SetVisuals_Skeleton_Lord()
{
Mdl_SetVisual (self, "HumanS.mds");
//Mdl_ApplyOverlayMds (self, "humans_skeleton.mds"); //FIXME s.Skeleton.
Mdl_ApplyOverlayMds (self, "humans_1hST1.mds");
Mdl_ApplyOverlayMds (self, "humans_2hST2.mds");
Mdl_ApplyOverlayMds (self, "humans_BowT1.mds");
Mdl_ApplyOverlayMds (self, "humans_CBowT1.mds");
// Body-Mesh Body-Tex Skin-Color Head-MMS Head-Tex Teeth-Tex ARMOR
B_SetNpcVisual (self, MALE, "Ske_Head", 0, 0, ITAR_PAL_SKEL);
};
//**************************************************************
// Schattenlord
//**************************************************************
INSTANCE Skeleton_Lord (Mst_Skeleton_Lord)
{
B_SetVisuals_Skeleton_Lord ();
};
INSTANCE Skeleton_Lord_Weg (Mst_Skeleton_Lord)
{
B_SetVisuals_Skeleton_Lord ();
};
INSTANCE Skeleton_Lord_Ghost (Mst_Skeleton_Lord)
{
B_SetVisuals_Skeleton_Lord ();
name = "Geist eines Schattenkriegers";
flags = NPC_FLAG_GHOST;
//effect = "spellfx_undead_skeletonlord";
aivar[AIV_MM_REAL_ID] = ID_GEISTERKRIEGER;
level = 75;
//----- Attribute ----
attribute [ATR_STRENGTH] = 145; //+ 105 Waffe
attribute [ATR_DEXTERITY] = 75;
attribute [ATR_HITPOINTS_MAX] = 500;
attribute [ATR_HITPOINTS] = 500;
attribute [ATR_MANA_MAX] = 300;
attribute [ATR_MANA] = 300;
//----- Protection ----
protection [PROT_BLUNT] = 50000; //hat RS!
protection [PROT_EDGE] = -1;
protection [PROT_POINT] = -1;
protection [PROT_FIRE] = 140;
protection [PROT_FLY] = 140;
protection [PROT_MAGIC] = 50; //so lassen!
self.aivar[AIV_Damage] = self.attribute[ATR_HITPOINTS_MAX];
CreateInvItems (self, ItMi_OldCoin, Hlp_Random(4));
CreateInvItems (self, ItMi_Gold, Hlp_Random(16));
CreateInvItems (self, ItMi_Aquamarine, Hlp_Random(3));
};
INSTANCE Summoned_Skeleton_Lord_Ghost_Xeres (Mst_Skeleton_Lord)
{
B_SetVisuals_Skeleton_Lord ();
name = "Geist eines Schattenkriegers";
flags = NPC_FLAG_GHOST;
aivar[AIV_MM_REAL_ID] = ID_GEISTERKRIEGER;
level = 75;
//----- Attribute ----
attribute [ATR_STRENGTH] = 145; //+ 105 Waffe
attribute [ATR_DEXTERITY] = 75;
attribute [ATR_HITPOINTS_MAX] = 500;
attribute [ATR_HITPOINTS] = 500;
attribute [ATR_MANA_MAX] = 300;
attribute [ATR_MANA] = 300;
//----- Protection ----
protection [PROT_BLUNT] = 50000; //hat RS!
protection [PROT_EDGE] = 50000;
protection [PROT_POINT] = 50000;
protection [PROT_FIRE] = 140;
protection [PROT_FLY] = 140;
protection [PROT_MAGIC] = 50; //so lassen!
self.aivar[AIV_Damage] = self.attribute[ATR_HITPOINTS_MAX];
};
INSTANCE Summoned_Skeleton_Lord_Ghost (Mst_Skeleton_Lord)
{
B_SetVisuals_Skeleton_Lord ();
name = "Geist eines Schattenkriegers";
flags = NPC_FLAG_GHOST;
//effect = "spellfx_undead_skeletonlord";
aivar[AIV_MM_REAL_ID] = ID_GEISTERKRIEGER;
level = 0;
//----- Attribute ----
attribute [ATR_STRENGTH] = 145; //+ 105 Waffe
attribute [ATR_DEXTERITY] = 75;
attribute [ATR_HITPOINTS_MAX] = 500;
attribute [ATR_HITPOINTS] = 500;
attribute [ATR_MANA_MAX] = 300;
attribute [ATR_MANA] = 300;
//----- Protection ----
protection [PROT_BLUNT] = 50000; //hat RS!
protection [PROT_EDGE] = -1;
protection [PROT_POINT] = -1;
protection [PROT_FIRE] = 140;
protection [PROT_FLY] = 140;
protection [PROT_MAGIC] = 50; //so lassen!
self.aivar[AIV_Damage] = self.attribute[ATR_HITPOINTS_MAX];
};
INSTANCE Skeleton_Lord_DienerDesBoesen_01_01 (Mst_Skeleton_Lord)
{
B_SetVisuals_Skeleton_Lord ();
};
INSTANCE Skeleton_Lord_DienerDesBoesen_01_02 (Mst_Skeleton_Lord)
{
B_SetVisuals_Skeleton_Lord ();
};
INSTANCE Skeleton_Lord_DienerDesBoesen_02_01 (Mst_Skeleton_Lord)
{
B_SetVisuals_Skeleton_Lord ();
};
INSTANCE Skeleton_Lord_DienerDesBoesen_02_02 (Mst_Skeleton_Lord)
{
B_SetVisuals_Skeleton_Lord ();
};
INSTANCE Crypt_Skeleton_Lord (Mst_Skeleton_Lord)
{
name = "Schattenlord Inubis";
B_SetVisuals_Skeleton_Lord ();
CreateInvItems (self,ItMi_Gold,500);
CreateInvItems (self,ItPo_Mana_03,2);
CreateInvItems (self,ItPo_Health_03,2);
}; | D |
module dlangui.platforms.common.startup;
import dlangui.core.config;
import dlangui.core.events;
import dlangui.widgets.styles;
import dlangui.graphics.fonts;
import dlangui.graphics.resources;
import dlangui.widgets.widget;
static if (BACKEND_GUI) {
import dlangui.graphics.ftfonts;
version (Windows) {
/// initialize font manager - default implementation
/// On win32 - first it tries to init freetype, and falls back to win32 fonts.
/// On linux/mac - tries to init freetype with some hardcoded font paths
extern(C) bool initFontManager() {
import win32.windows;
import std.utf;
import dlangui.platforms.windows.win32fonts;
try {
/// testing freetype font manager
static if (ENABLE_FREETYPE) {
Log.v("Trying to init FreeType font manager");
import dlangui.graphics.ftfonts;
// trying to create font manager
Log.v("Creating FreeTypeFontManager");
FreeTypeFontManager ftfontMan = new FreeTypeFontManager();
import win32.shlobj;
string fontsPath = "c:\\Windows\\Fonts\\";
static if (true) { // SHGetFolderPathW not found in shell32.lib
WCHAR[MAX_PATH] szPath;
static if (false) {
const CSIDL_FLAG_NO_ALIAS = 0x1000;
const CSIDL_FLAG_DONT_UNEXPAND = 0x2000;
if(SUCCEEDED(SHGetFolderPathW(NULL,
CSIDL_FONTS|CSIDL_FLAG_NO_ALIAS|CSIDL_FLAG_DONT_UNEXPAND,
NULL,
0,
szPath.ptr)))
{
fontsPath = toUTF8(fromWStringz(szPath));
}
} else {
if (GetWindowsDirectory(szPath.ptr, MAX_PATH - 1)) {
fontsPath = toUTF8(fromWStringz(szPath));
Log.i("Windows directory: ", fontsPath);
fontsPath ~= "\\Fonts\\";
Log.i("Fonts directory: ", fontsPath);
}
}
}
Log.v("Registering fonts");
ftfontMan.registerFont(fontsPath ~ "arial.ttf", FontFamily.SansSerif, "Arial", false, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "arialbd.ttf", FontFamily.SansSerif, "Arial", false, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "arialbi.ttf", FontFamily.SansSerif, "Arial", true, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "ariali.ttf", FontFamily.SansSerif, "Arial", true, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "cour.ttf", FontFamily.MonoSpace, "Courier New", false, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "courbd.ttf", FontFamily.MonoSpace, "Courier New", false, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "courbi.ttf", FontFamily.MonoSpace, "Courier New", true, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "couri.ttf", FontFamily.MonoSpace, "Courier New", true, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "times.ttf", FontFamily.Serif, "Times New Roman", false, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "timesbd.ttf", FontFamily.Serif, "Times New Roman", false, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "timesbi.ttf", FontFamily.Serif, "Times New Roman", true, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "timesi.ttf", FontFamily.Serif, "Times New Roman", true, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "consola.ttf", FontFamily.MonoSpace, "Consolas", false, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "consolab.ttf", FontFamily.MonoSpace, "Consolas", false, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "consolai.ttf", FontFamily.MonoSpace, "Consolas", true, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "consolaz.ttf", FontFamily.MonoSpace, "Consolas", true, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "verdana.ttf", FontFamily.SansSerif, "Verdana", false, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "verdanab.ttf", FontFamily.SansSerif, "Verdana", false, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "verdanai.ttf", FontFamily.SansSerif, "Verdana", true, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "verdanaz.ttf", FontFamily.SansSerif, "Verdana", true, FontWeight.Bold);
if (ftfontMan.registeredFontCount()) {
FontManager.instance = ftfontMan;
} else {
Log.w("No fonts registered in FreeType font manager. Disabling FreeType.");
destroy(ftfontMan);
}
}
} catch (Exception e) {
Log.e("Cannot create FreeTypeFontManager - falling back to win32");
}
// use Win32 font manager
if (FontManager.instance is null) {
FontManager.instance = new Win32FontManager();
}
return true;
}
} else {
import dlangui.graphics.ftfonts;
bool registerFonts(FreeTypeFontManager ft, string path) {
import std.file;
if (!exists(path) || !isDir(path))
return false;
ft.registerFont(path ~ "DejaVuSans.ttf", FontFamily.SansSerif, "DejaVuSans", false, FontWeight.Normal);
ft.registerFont(path ~ "DejaVuSans-Bold.ttf", FontFamily.SansSerif, "DejaVuSans", false, FontWeight.Bold);
ft.registerFont(path ~ "DejaVuSans-Oblique.ttf", FontFamily.SansSerif, "DejaVuSans", true, FontWeight.Normal);
ft.registerFont(path ~ "DejaVuSans-BoldOblique.ttf", FontFamily.SansSerif, "DejaVuSans", true, FontWeight.Bold);
ft.registerFont(path ~ "DejaVuSansMono.ttf", FontFamily.MonoSpace, "DejaVuSansMono", false, FontWeight.Normal);
ft.registerFont(path ~ "DejaVuSansMono-Bold.ttf", FontFamily.MonoSpace, "DejaVuSansMono", false, FontWeight.Bold);
ft.registerFont(path ~ "DejaVuSansMono-Oblique.ttf", FontFamily.MonoSpace, "DejaVuSansMono", true, FontWeight.Normal);
ft.registerFont(path ~ "DejaVuSansMono-BoldOblique.ttf", FontFamily.MonoSpace, "DejaVuSansMono", true, FontWeight.Bold);
return true;
}
string[] findFontsInDirectory(string dir) {
import dlangui.core.files;
import std.file : DirEntry;
DirEntry[] entries;
if (!listDirectory(dir, false, true, true, ["*.ttf"], entries))
return null;
string[] res;
foreach(entry; entries) {
res ~= entry.name;
}
return res;
}
void registerFontsFromDirectory(FreeTypeFontManager ft, string dir) {
string[] fontFiles = findFontsInDirectory(dir);
Log.d("Fonts in ", dir, " : ", fontFiles);
foreach(file; fontFiles)
ft.registerFont(file);
}
/// initialize font manager - default implementation
/// On win32 - first it tries to init freetype, and falls back to win32 fonts.
/// On linux/mac - tries to init freetype with some hardcoded font paths
extern(C) bool initFontManager() {
FreeTypeFontManager ft = new FreeTypeFontManager();
if (!registerFontConfigFonts(ft)) {
// TODO: use FontConfig
Log.w("No fonts found using FontConfig. Trying hardcoded paths.");
version (Android) {
ft.registerFontsFromDirectory("/system/fonts");
} else {
ft.registerFonts("/usr/share/fonts/truetype/dejavu/");
ft.registerFonts("/usr/share/fonts/TTF/");
ft.registerFonts("/usr/share/fonts/dejavu/");
ft.registerFonts("/usr/share/fonts/truetype/ttf-dejavu/"); // let it compile on Debian Wheezy
}
version(OSX) {
ft.registerFont("/Library/Fonts/Arial.ttf", FontFamily.SansSerif, "Arial", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Arial Bold.ttf", FontFamily.SansSerif, "Arial", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Arial Italic.ttf", FontFamily.SansSerif, "Arial", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Arial Bold Italic.ttf", FontFamily.SansSerif, "Arial", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Arial.ttf", FontFamily.SansSerif, "Arial", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Arial Bold.ttf", FontFamily.SansSerif, "Arial", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Arial Italic.ttf", FontFamily.SansSerif, "Arial", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Arial Bold Italic.ttf", FontFamily.SansSerif, "Arial", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Arial Narrow.ttf", FontFamily.SansSerif, "Arial Narrow", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Arial Narrow Bold.ttf", FontFamily.SansSerif, "Arial Narrow", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Arial Narrow Italic.ttf", FontFamily.SansSerif, "Arial Narrow", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Arial Narrow Bold Italic.ttf", FontFamily.SansSerif, "Arial Narrow", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Courier New.ttf", FontFamily.MonoSpace, "Courier New", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Courier New Bold.ttf", FontFamily.MonoSpace, "Courier New", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Courier New Italic.ttf", FontFamily.MonoSpace, "Courier New", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Courier New Bold Italic.ttf", FontFamily.MonoSpace, "Courier New", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Georgia.ttf", FontFamily.Serif, "Georgia", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Georgia Bold.ttf", FontFamily.Serif, "Georgia", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Georgia Italic.ttf", FontFamily.Serif, "Georgia", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Georgia Bold Italic.ttf", FontFamily.Serif, "Georgia", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Comic Sans MS.ttf", FontFamily.SansSerif, "Comic Sans", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Comic Sans MS Bold.ttf", FontFamily.SansSerif, "Comic Sans", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Tahoma.ttf", FontFamily.SansSerif, "Tahoma", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Tahoma Bold.ttf", FontFamily.SansSerif, "Tahoma", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Arial.ttf", FontFamily.SansSerif, "Arial", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Arial Bold.ttf", FontFamily.SansSerif, "Arial", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Arial Italic.ttf", FontFamily.SansSerif, "Arial", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Arial Bold Italic.ttf", FontFamily.SansSerif, "Arial", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Calibri.ttf", FontFamily.SansSerif, "Calibri", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Calibri Bold.ttf", FontFamily.SansSerif, "Calibri", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Calibri Italic.ttf", FontFamily.SansSerif, "Calibri", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Calibri Bold Italic.ttf", FontFamily.SansSerif, "Calibri", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Times New Roman.ttf", FontFamily.Serif, "Times New Roman", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Times New Roman Bold.ttf", FontFamily.Serif, "Times New Roman", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Times New Roman Italic.ttf", FontFamily.Serif, "Times New Roman", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Times New Roman Bold Italic.ttf", FontFamily.Serif, "Times New Roman", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Verdana.ttf", FontFamily.SansSerif, "Verdana", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Verdana Bold.ttf", FontFamily.SansSerif, "Verdana", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Verdana Italic.ttf", FontFamily.SansSerif, "Verdana", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Verdana Bold Italic.ttf", FontFamily.SansSerif, "Verdana", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Consolas.ttf", FontFamily.MonoSpace, "Consolas", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Consolas Bold.ttf", FontFamily.MonoSpace, "Consolas", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Consolas Italic.ttf", FontFamily.MonoSpace, "Consolas", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Consolas Bold Italic.ttf", FontFamily.MonoSpace, "Consolas", true, FontWeight.Bold, true);
ft.registerFont("/System/Library/Fonts/Menlo.ttc", FontFamily.MonoSpace, "Menlo", false, FontWeight.Normal, true);
}
}
if (!ft.registeredFontCount)
return false;
FontManager.instance = ft;
return true;
}
}
}
/// initialize logging (for win32 - to file ui.log, for other platforms - stderr; log level is TRACE for debug builds, and WARN for release builds)
extern (C) void initLogs() {
static if (BACKEND_CONSOLE) {
static import std.stdio;
debug {
Log.setFileLogger(new std.stdio.File("ui.log", "w"));
} else {
// no logging unless version ForceLogs is set
version(ForceLogs) {
Log.setFileLogger(new std.stdio.File("ui.log", "w"));
Log.i("Logging to file ui.log");
}
}
} else {
static import std.stdio;
version (Windows) {
debug {
Log.setFileLogger(new std.stdio.File("ui.log", "w"));
} else {
// no logging unless version ForceLogs is set
version(ForceLogs) {
Log.setFileLogger(new std.stdio.File("ui.log", "w"));
Log.i("Logging to file ui.log");
}
}
} else version(Android) {
Log.setLogTag("dlangui");
Log.setLogLevel(LogLevel.Trace);
} else {
Log.setStderrLogger();
}
debug {
Log.setLogLevel(LogLevel.Trace);
} else {
version(ForceLogs) {
Log.setLogLevel(LogLevel.Trace);
Log.i("Log level: trace");
} else {
Log.setLogLevel(LogLevel.Warn);
Log.i("Log level: warn");
}
}
}
Log.i("Logger is initialized");
}
/// call this on application initialization
extern (C) void initResourceManagers() {
Log.d("initResourceManagers()");
import dlangui.graphics.fonts;
_gamma65 = new glyph_gamma_table!65(1.0);
_gamma256 = new glyph_gamma_table!256(1.0);
static if (ENABLE_FREETYPE) {
import dlangui.graphics.ftfonts;
STD_FONT_FACES = [
"Arial": 12,
"Times New Roman": 12,
"Courier New": 10,
"DejaVu Serif": 10,
"DejaVu Sans": 10,
"DejaVu Sans Mono": 10,
"Liberation Serif": 11,
"Liberation Sans": 11,
"Liberation Mono": 11,
"Verdana": 10,
"Menlo": 13,
"Consolas": 12,
"DejaVuSansMono": 10,
"Lucida Sans Typewriter": 10,
"Lucida Console": 12,
"FreeMono": 8,
"FreeSans": 8,
"FreeSerif": 8,
];
}
static if (ENABLE_OPENGL) {
import dlangui.graphics.gldrawbuf;
initGLCaches();
}
import dlangui.graphics.resources;
embedStandardDlangUIResources();
static if (BACKEND_GUI) {
_imageCache = new ImageCache();
}
_drawableCache = new DrawableCache();
static if (BACKEND_GUI) {
version (Windows) {
import dlangui.platforms.windows.win32fonts;
initWin32FontsTables();
}
}
Log.d("Calling initSharedResourceManagers()");
initSharedResourceManagers();
Log.d("Calling initStandardEditorActions()");
import dlangui.widgets.editors;
initStandardEditorActions();
static if (BACKEND_GUI) {
Log.d("Calling registerStandardWidgets()");
registerStandardWidgets();
}
Log.d("initResourceManagers() -- finished");
}
static if (BACKEND_GUI) {
/// register standard widgets to use in DML
void registerStandardWidgets() {
Log.d("Registering standard widgets for DML");
import dlangui.widgets.metadata;
import dlangui.widgets.widget;
import dlangui.widgets.layouts;
import dlangui.widgets.controls;
import dlangui.widgets.lists;
import dlangui.widgets.combobox;
import dlangui.widgets.editors;
import dlangui.widgets.grid;
import dlangui.dialogs.filedlg;
import dlangui.widgets.menu;
mixin(registerWidgets!(FileNameEditLine, DirEditLine, //dlangui.dialogs.filedlg
ComboBox, ComboEdit, //dlangui.widgets.combobox
Widget, TextWidget, MultilineTextWidget, Button, ImageWidget, ImageButton, ImageCheckButton, ImageTextButton,
SwitchButton, RadioButton, CheckBox, ScrollBar, HSpacer, VSpacer, CanvasWidget, // dlangui.widgets.controls
EditLine, EditBox, LogWidget,//dlangui.widgets.editors
StringGridWidget, //dlangui.widgets.grid
VerticalLayout, HorizontalLayout, TableLayout, FrameLayout, // dlangui.widgets.layouts
ListWidget, StringListWidget,//dlangui.widgets.lists
MainMenu, //dlangui.widgets.menu
)("void registerWidgets"));
registerWidgets();
}
}
/// call this from shared static this()
extern (C) void initSharedResourceManagers() {
//Log.d("initSharedResourceManagers()");
//import dlangui.core.i18n;
//if (!i18n) {
// Log.d("Creating i18n object");
// i18n = new shared UIStringTranslator();
//}
}
shared static this() {
//initSharedResourceManagers();
}
/// call this when all resources are supposed to be freed to report counts of non-freed resources by type
extern (C) void releaseResourcesOnAppExit() {
//
debug setAppShuttingDownFlag();
debug {
if (Widget.instanceCount() > 0) {
Log.e("Non-zero Widget instance count when exiting: ", Widget.instanceCount);
}
}
currentTheme = null;
drawableCache = null;
static if (BACKEND_GUI) {
imageCache = null;
}
FontManager.instance = null;
debug {
if (DrawBuf.instanceCount > 0) {
Log.e("Non-zero DrawBuf instance count when exiting: ", DrawBuf.instanceCount);
}
if (Style.instanceCount > 0) {
Log.e("Non-zero Style instance count when exiting: ", Style.instanceCount);
}
if (ImageDrawable.instanceCount > 0) {
Log.e("Non-zero ImageDrawable instance count when exiting: ", ImageDrawable.instanceCount);
}
if (Drawable.instanceCount > 0) {
Log.e("Non-zero Drawable instance count when exiting: ", Drawable.instanceCount);
}
static if (ENABLE_FREETYPE) {
import dlangui.graphics.ftfonts;
if (FreeTypeFontFile.instanceCount > 0) {
Log.e("Non-zero FreeTypeFontFile instance count when exiting: ", FreeTypeFontFile.instanceCount);
}
if (FreeTypeFont.instanceCount > 0) {
Log.e("Non-zero FreeTypeFont instance count when exiting: ", FreeTypeFont.instanceCount);
}
}
}
}
version(unittest) {
version (Windows) {
mixin APP_ENTRY_POINT;
/// entry point for dlangui based application
extern (C) int UIAppMain(string[] args) {
// just to enable running unit tests
import core.runtime;
import std.stdio;
if (!runModuleUnitTests()) {
writeln("Error occured in unit tests. Press enter.");
readln();
return 1;
}
return 0;
}
}
}
| D |
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/dclass.d, _dclass.d)
* Documentation: https://dlang.org/phobos/dmd_dclass.html
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/dclass.d
*/
module dmd.dclass;
import core.stdc.stdio;
import core.stdc.string;
import dmd.aggregate;
import dmd.arraytypes;
import dmd.gluelayer;
import dmd.declaration;
import dmd.dscope;
import dmd.dsymbol;
import dmd.dsymbolsem;
import dmd.func;
import dmd.globals;
import dmd.id;
import dmd.identifier;
import dmd.mtype;
import dmd.objc;
import dmd.root.rmem;
import dmd.target;
import dmd.visitor;
enum Abstract : int
{
fwdref = 0, // whether an abstract class is not yet computed
yes, // is abstract class
no, // is not abstract class
}
/***********************************************************
*/
struct BaseClass
{
Type type; // (before semantic processing)
ClassDeclaration sym;
uint offset; // 'this' pointer offset
// for interfaces: Array of FuncDeclaration's making up the vtbl[]
FuncDeclarations vtbl;
// if BaseClass is an interface, these
// are a copy of the InterfaceDeclaration.interfaces
BaseClass[] baseInterfaces;
extern (D) this(Type type)
{
//printf("BaseClass(this = %p, '%s')\n", this, type.toChars());
this.type = type;
}
/****************************************
* Fill in vtbl[] for base class based on member functions of class cd.
* Input:
* vtbl if !=NULL, fill it in
* newinstance !=0 means all entries must be filled in by members
* of cd, not members of any base classes of cd.
* Returns:
* true if any entries were filled in by members of cd (not exclusively
* by base classes)
*/
extern (C++) bool fillVtbl(ClassDeclaration cd, FuncDeclarations* vtbl, int newinstance)
{
bool result = false;
//printf("BaseClass.fillVtbl(this='%s', cd='%s')\n", sym.toChars(), cd.toChars());
if (vtbl)
vtbl.setDim(sym.vtbl.dim);
// first entry is ClassInfo reference
for (size_t j = sym.vtblOffset(); j < sym.vtbl.dim; j++)
{
FuncDeclaration ifd = sym.vtbl[j].isFuncDeclaration();
FuncDeclaration fd;
TypeFunction tf;
//printf(" vtbl[%d] is '%s'\n", j, ifd ? ifd.toChars() : "null");
assert(ifd);
// Find corresponding function in this class
tf = ifd.type.toTypeFunction();
fd = cd.findFunc(ifd.ident, tf);
if (fd && !fd.isAbstract())
{
//printf(" found\n");
// Check that calling conventions match
if (fd.linkage != ifd.linkage)
fd.error("linkage doesn't match interface function");
// Check that it is current
//printf("newinstance = %d fd.toParent() = %s ifd.toParent() = %s\n",
//newinstance, fd.toParent().toChars(), ifd.toParent().toChars());
if (newinstance && fd.toParent() != cd && ifd.toParent() == sym)
cd.error("interface function `%s` is not implemented", ifd.toFullSignature());
if (fd.toParent() == cd)
result = true;
}
else
{
//printf(" not found %p\n", fd);
// BUG: should mark this class as abstract?
if (!cd.isAbstract())
cd.error("interface function `%s` is not implemented", ifd.toFullSignature());
fd = null;
}
if (vtbl)
(*vtbl)[j] = fd;
}
return result;
}
extern (C++) void copyBaseInterfaces(BaseClasses* vtblInterfaces)
{
//printf("+copyBaseInterfaces(), %s\n", sym.toChars());
// if (baseInterfaces.length)
// return;
auto bc = cast(BaseClass*)mem.xcalloc(sym.interfaces.length, BaseClass.sizeof);
baseInterfaces = bc[0 .. sym.interfaces.length];
//printf("%s.copyBaseInterfaces()\n", sym.toChars());
for (size_t i = 0; i < baseInterfaces.length; i++)
{
BaseClass* b = &baseInterfaces[i];
BaseClass* b2 = sym.interfaces[i];
assert(b2.vtbl.dim == 0); // should not be filled yet
memcpy(b, b2, BaseClass.sizeof);
if (i) // single inheritance is i==0
vtblInterfaces.push(b); // only need for M.I.
b.copyBaseInterfaces(vtblInterfaces);
}
//printf("-copyBaseInterfaces\n");
}
}
struct ClassFlags
{
alias Type = uint;
enum Enum : int
{
isCOMclass = 0x1,
noPointers = 0x2,
hasOffTi = 0x4,
hasCtor = 0x8,
hasGetMembers = 0x10,
hasTypeInfo = 0x20,
isAbstract = 0x40,
isCPPclass = 0x80,
hasDtor = 0x100,
}
alias isCOMclass = Enum.isCOMclass;
alias noPointers = Enum.noPointers;
alias hasOffTi = Enum.hasOffTi;
alias hasCtor = Enum.hasCtor;
alias hasGetMembers = Enum.hasGetMembers;
alias hasTypeInfo = Enum.hasTypeInfo;
alias isAbstract = Enum.isAbstract;
alias isCPPclass = Enum.isCPPclass;
alias hasDtor = Enum.hasDtor;
}
/**
* The ClassKind enum is used in ClassDeclaration AST nodes
* to specify the linkage type of the class or if it is an
* anonymous class. If the class is anonymous it is also
* considered to be a D class.
*/
enum ClassKind : int
{
/// the class is a d(efault) class
d,
/// the class is a C++ interface
cpp,
/// the class is an Objective-C class/interface
objc,
}
/***********************************************************
*/
extern (C++) class ClassDeclaration : AggregateDeclaration
{
extern (C++) __gshared
{
// Names found by reading object.d in druntime
ClassDeclaration object;
ClassDeclaration throwable;
ClassDeclaration exception;
ClassDeclaration errorException;
ClassDeclaration cpp_type_info_ptr; // Object.__cpp_type_info_ptr
}
ClassDeclaration baseClass; // NULL only if this is Object
FuncDeclaration staticCtor;
FuncDeclaration staticDtor;
Dsymbols vtbl; // Array of FuncDeclaration's making up the vtbl[]
Dsymbols vtblFinal; // More FuncDeclaration's that aren't in vtbl[]
// Array of BaseClass's; first is super, rest are Interface's
BaseClasses* baseclasses;
/* Slice of baseclasses[] that does not include baseClass
*/
BaseClass*[] interfaces;
// array of base interfaces that have their own vtbl[]
BaseClasses* vtblInterfaces;
// the ClassInfo object for this ClassDeclaration
TypeInfoClassDeclaration vclassinfo;
// true if this is a COM class
bool com;
/// true if this is a scope class
bool stack;
/// specifies whether this is a D, C++, Objective-C or anonymous class/interface
ClassKind classKind;
/// to prevent recursive attempts
private bool inuse;
/// true if this class has an identifier, but was originally declared anonymous
/// used in support of https://issues.dlang.org/show_bug.cgi?id=17371
private bool isActuallyAnonymous;
Abstract isabstract;
/// set the progress of base classes resolving
Baseok baseok;
/**
* Data for a class declaration that is needed for the Objective-C
* integration.
*/
ObjcClassDeclaration objc;
Symbol* cpp_type_info_ptr_sym; // cached instance of class Id.cpp_type_info_ptr
final extern (D) this(Loc loc, Identifier id, BaseClasses* baseclasses, Dsymbols* members, bool inObject)
{
if (!id)
{
id = Identifier.generateId("__anonclass");
isActuallyAnonymous = true;
}
assert(id);
super(loc, id);
static __gshared const(char)* msg = "only object.d can define this reserved class name";
if (baseclasses)
{
// Actually, this is a transfer
this.baseclasses = baseclasses;
}
else
this.baseclasses = new BaseClasses();
this.members = members;
//printf("ClassDeclaration(%s), dim = %d\n", id.toChars(), this.baseclasses.dim);
// For forward references
type = new TypeClass(this);
if (id)
{
// Look for special class names
if (id == Id.__sizeof || id == Id.__xalignof || id == Id._mangleof)
error("illegal class name");
// BUG: What if this is the wrong TypeInfo, i.e. it is nested?
if (id.toChars()[0] == 'T')
{
if (id == Id.TypeInfo)
{
if (!inObject)
error("%s", msg);
Type.dtypeinfo = this;
}
if (id == Id.TypeInfo_Class)
{
if (!inObject)
error("%s", msg);
Type.typeinfoclass = this;
}
if (id == Id.TypeInfo_Interface)
{
if (!inObject)
error("%s", msg);
Type.typeinfointerface = this;
}
if (id == Id.TypeInfo_Struct)
{
if (!inObject)
error("%s", msg);
Type.typeinfostruct = this;
}
if (id == Id.TypeInfo_Pointer)
{
if (!inObject)
error("%s", msg);
Type.typeinfopointer = this;
}
if (id == Id.TypeInfo_Array)
{
if (!inObject)
error("%s", msg);
Type.typeinfoarray = this;
}
if (id == Id.TypeInfo_StaticArray)
{
//if (!inObject)
// Type.typeinfostaticarray.error("%s", msg);
Type.typeinfostaticarray = this;
}
if (id == Id.TypeInfo_AssociativeArray)
{
if (!inObject)
error("%s", msg);
Type.typeinfoassociativearray = this;
}
if (id == Id.TypeInfo_Enum)
{
if (!inObject)
error("%s", msg);
Type.typeinfoenum = this;
}
if (id == Id.TypeInfo_Function)
{
if (!inObject)
error("%s", msg);
Type.typeinfofunction = this;
}
if (id == Id.TypeInfo_Delegate)
{
if (!inObject)
error("%s", msg);
Type.typeinfodelegate = this;
}
if (id == Id.TypeInfo_Tuple)
{
if (!inObject)
error("%s", msg);
Type.typeinfotypelist = this;
}
if (id == Id.TypeInfo_Const)
{
if (!inObject)
error("%s", msg);
Type.typeinfoconst = this;
}
if (id == Id.TypeInfo_Invariant)
{
if (!inObject)
error("%s", msg);
Type.typeinfoinvariant = this;
}
if (id == Id.TypeInfo_Shared)
{
if (!inObject)
error("%s", msg);
Type.typeinfoshared = this;
}
if (id == Id.TypeInfo_Wild)
{
if (!inObject)
error("%s", msg);
Type.typeinfowild = this;
}
if (id == Id.TypeInfo_Vector)
{
if (!inObject)
error("%s", msg);
Type.typeinfovector = this;
}
}
if (id == Id.Object)
{
if (!inObject)
error("%s", msg);
object = this;
}
if (id == Id.Throwable)
{
if (!inObject)
error("%s", msg);
throwable = this;
}
if (id == Id.Exception)
{
if (!inObject)
error("%s", msg);
exception = this;
}
if (id == Id.Error)
{
if (!inObject)
error("%s", msg);
errorException = this;
}
if (id == Id.cpp_type_info_ptr)
{
if (!inObject)
error("%s", msg);
cpp_type_info_ptr = this;
}
}
baseok = Baseok.none;
}
static ClassDeclaration create(Loc loc, Identifier id, BaseClasses* baseclasses, Dsymbols* members, bool inObject)
{
return new ClassDeclaration(loc, id, baseclasses, members, inObject);
}
override Dsymbol syntaxCopy(Dsymbol s)
{
//printf("ClassDeclaration.syntaxCopy('%s')\n", toChars());
ClassDeclaration cd =
s ? cast(ClassDeclaration)s
: new ClassDeclaration(loc, ident, null, null, false);
cd.storage_class |= storage_class;
cd.baseclasses.setDim(this.baseclasses.dim);
for (size_t i = 0; i < cd.baseclasses.dim; i++)
{
BaseClass* b = (*this.baseclasses)[i];
auto b2 = new BaseClass(b.type.syntaxCopy());
(*cd.baseclasses)[i] = b2;
}
return ScopeDsymbol.syntaxCopy(cd);
}
override Scope* newScope(Scope* sc)
{
auto sc2 = super.newScope(sc);
if (isCOMclass())
{
/* This enables us to use COM objects under Linux and
* work with things like XPCOM
*/
sc2.linkage = Target.systemLinkage();
}
return sc2;
}
/*********************************************
* Determine if 'this' is a base class of cd.
* This is used to detect circular inheritance only.
*/
final bool isBaseOf2(ClassDeclaration cd)
{
if (!cd)
return false;
//printf("ClassDeclaration.isBaseOf2(this = '%s', cd = '%s')\n", toChars(), cd.toChars());
for (size_t i = 0; i < cd.baseclasses.dim; i++)
{
BaseClass* b = (*cd.baseclasses)[i];
if (b.sym == this || isBaseOf2(b.sym))
return true;
}
return false;
}
enum OFFSET_RUNTIME = 0x76543210;
enum OFFSET_FWDREF = 0x76543211;
/*******************************************
* Determine if 'this' is a base class of cd.
*/
bool isBaseOf(ClassDeclaration cd, int* poffset)
{
//printf("ClassDeclaration.isBaseOf(this = '%s', cd = '%s')\n", toChars(), cd.toChars());
if (poffset)
*poffset = 0;
while (cd)
{
/* cd.baseClass might not be set if cd is forward referenced.
*/
if (!cd.baseClass && cd.semanticRun < PASS.semanticdone && !cd.isInterfaceDeclaration())
{
cd.dsymbolSemantic(null);
if (!cd.baseClass && cd.semanticRun < PASS.semanticdone)
cd.error("base class is forward referenced by `%s`", toChars());
}
if (this == cd.baseClass)
return true;
cd = cd.baseClass;
}
return false;
}
/*********************************************
* Determine if 'this' has complete base class information.
* This is used to detect forward references in covariant overloads.
*/
final bool isBaseInfoComplete() const
{
return baseok >= Baseok.done;
}
override final Dsymbol search(const ref Loc loc, Identifier ident, int flags = SearchLocalsOnly)
{
//printf("%s.ClassDeclaration.search('%s', flags=x%x)\n", toChars(), ident.toChars(), flags);
//if (_scope) printf("%s baseok = %d\n", toChars(), baseok);
if (_scope && baseok < Baseok.done)
{
if (!inuse)
{
// must semantic on base class/interfaces
inuse = true;
dsymbolSemantic(this, null);
inuse = false;
}
}
if (!members || !symtab) // opaque or addMember is not yet done
{
error("is forward referenced when looking for `%s`", ident.toChars());
//*(char*)0=0;
return null;
}
auto s = ScopeDsymbol.search(loc, ident, flags);
// don't search imports of base classes
if (flags & SearchImportsOnly)
return s;
if (!s)
{
// Search bases classes in depth-first, left to right order
for (size_t i = 0; i < baseclasses.dim; i++)
{
BaseClass* b = (*baseclasses)[i];
if (b.sym)
{
if (!b.sym.symtab)
error("base `%s` is forward referenced", b.sym.ident.toChars());
else
{
import dmd.access : symbolIsVisible;
s = b.sym.search(loc, ident, flags);
if (!s)
continue;
else if (s == this) // happens if s is nested in this and derives from this
s = null;
else if (!(flags & IgnoreSymbolVisibility) && !(s.prot().kind == Prot.Kind.protected_) && !symbolIsVisible(this, s))
s = null;
else
break;
}
}
}
}
return s;
}
/************************************
* Search base classes in depth-first, left-to-right order for
* a class or interface named 'ident'.
* Stops at first found. Does not look for additional matches.
* Params:
* ident = identifier to search for
* Returns:
* ClassDeclaration if found, null if not
*/
final ClassDeclaration searchBase(Identifier ident)
{
foreach (b; *baseclasses)
{
auto cdb = b.type.isClassHandle();
if (!cdb) // https://issues.dlang.org/show_bug.cgi?id=10616
return null;
if (cdb.ident.equals(ident))
return cdb;
auto result = cdb.searchBase(ident);
if (result)
return result;
}
return null;
}
final override void finalizeSize()
{
assert(sizeok != Sizeok.done);
// Set the offsets of the fields and determine the size of the class
if (baseClass)
{
assert(baseClass.sizeok == Sizeok.done);
alignsize = baseClass.alignsize;
structsize = baseClass.structsize;
if (classKind == ClassKind.cpp && global.params.isWindows)
structsize = (structsize + alignsize - 1) & ~(alignsize - 1);
}
else if (isInterfaceDeclaration())
{
if (interfaces.length == 0)
{
alignsize = Target.ptrsize;
structsize = Target.ptrsize; // allow room for __vptr
}
}
else
{
alignsize = Target.ptrsize;
structsize = Target.ptrsize; // allow room for __vptr
if (classKind != ClassKind.cpp)
structsize += Target.ptrsize; // allow room for __monitor
}
//printf("finalizeSize() %s, sizeok = %d\n", toChars(), sizeok);
size_t bi = 0; // index into vtblInterfaces[]
/****
* Runs through the inheritance graph to set the BaseClass.offset fields.
* Recursive in order to account for the size of the interface classes, if they are
* more than just interfaces.
* Params:
* cd = interface to look at
* baseOffset = offset of where cd will be placed
* Returns:
* subset of instantiated size used by cd for interfaces
*/
uint membersPlace(ClassDeclaration cd, uint baseOffset)
{
//printf(" membersPlace(%s, %d)\n", cd.toChars(), baseOffset);
uint offset = baseOffset;
foreach (BaseClass* b; cd.interfaces)
{
if (b.sym.sizeok != Sizeok.done)
b.sym.finalizeSize();
assert(b.sym.sizeok == Sizeok.done);
if (!b.sym.alignsize)
b.sym.alignsize = Target.ptrsize;
alignmember(b.sym.alignsize, b.sym.alignsize, &offset);
assert(bi < vtblInterfaces.dim);
BaseClass* bv = (*vtblInterfaces)[bi];
if (b.sym.interfaces.length == 0)
{
//printf("\tvtblInterfaces[%d] b=%p b.sym = %s, offset = %d\n", bi, bv, bv.sym.toChars(), offset);
bv.offset = offset;
++bi;
// All the base interfaces down the left side share the same offset
for (BaseClass* b2 = bv; b2.baseInterfaces.length; )
{
b2 = &b2.baseInterfaces[0];
b2.offset = offset;
//printf("\tvtblInterfaces[%d] b=%p sym = %s, offset = %d\n", bi, b2, b2.sym.toChars(), b2.offset);
}
}
membersPlace(b.sym, offset);
//printf(" %s size = %d\n", b.sym.toChars(), b.sym.structsize);
offset += b.sym.structsize;
if (alignsize < b.sym.alignsize)
alignsize = b.sym.alignsize;
}
return offset - baseOffset;
}
structsize += membersPlace(this, structsize);
if (isInterfaceDeclaration())
{
sizeok = Sizeok.done;
return;
}
// FIXME: Currently setFieldOffset functions need to increase fields
// to calculate each variable offsets. It can be improved later.
fields.setDim(0);
uint offset = structsize;
foreach (s; *members)
{
s.setFieldOffset(this, &offset, false);
}
sizeok = Sizeok.done;
// Calculate fields[i].overlapped
checkOverlappedFields();
}
override bool isAnonymous()
{
return isActuallyAnonymous;
}
final bool isFuncHidden(FuncDeclaration fd)
{
//printf("ClassDeclaration.isFuncHidden(class = %s, fd = %s)\n", toChars(), fd.toPrettyChars());
Dsymbol s = search(Loc.initial, fd.ident, IgnoreAmbiguous | IgnoreErrors);
if (!s)
{
//printf("not found\n");
/* Because, due to a hack, if there are multiple definitions
* of fd.ident, NULL is returned.
*/
return false;
}
s = s.toAlias();
if (auto os = s.isOverloadSet())
{
foreach (sm; os.a)
{
auto fm = sm.isFuncDeclaration();
if (overloadApply(fm, s => fd == s.isFuncDeclaration()))
return false;
}
return true;
}
else
{
auto f = s.isFuncDeclaration();
//printf("%s fdstart = %p\n", s.kind(), fdstart);
if (overloadApply(f, s => fd == s.isFuncDeclaration()))
return false;
return !fd.parent.isTemplateMixin();
}
}
/****************
* Find virtual function matching identifier and type.
* Used to build virtual function tables for interface implementations.
* Params:
* ident = function's identifier
* tf = function's type
* Returns:
* function symbol if found, null if not
* Errors:
* prints error message if more than one match
*/
final FuncDeclaration findFunc(Identifier ident, TypeFunction tf)
{
//printf("ClassDeclaration.findFunc(%s, %s) %s\n", ident.toChars(), tf.toChars(), toChars());
FuncDeclaration fdmatch = null;
FuncDeclaration fdambig = null;
void searchVtbl(ref Dsymbols vtbl)
{
foreach (s; vtbl)
{
auto fd = s.isFuncDeclaration();
if (!fd)
continue;
// the first entry might be a ClassInfo
//printf("\t[%d] = %s\n", i, fd.toChars());
if (ident == fd.ident && fd.type.covariant(tf) == 1)
{
//printf("fd.parent.isClassDeclaration() = %p\n", fd.parent.isClassDeclaration());
if (!fdmatch)
goto Lfd;
if (fd == fdmatch)
goto Lfdmatch;
{
// Function type matching: exact > covariant
MATCH m1 = tf.equals(fd.type) ? MATCH.exact : MATCH.nomatch;
MATCH m2 = tf.equals(fdmatch.type) ? MATCH.exact : MATCH.nomatch;
if (m1 > m2)
goto Lfd;
else if (m1 < m2)
goto Lfdmatch;
}
{
MATCH m1 = (tf.mod == fd.type.mod) ? MATCH.exact : MATCH.nomatch;
MATCH m2 = (tf.mod == fdmatch.type.mod) ? MATCH.exact : MATCH.nomatch;
if (m1 > m2)
goto Lfd;
else if (m1 < m2)
goto Lfdmatch;
}
{
// The way of definition: non-mixin > mixin
MATCH m1 = fd.parent.isClassDeclaration() ? MATCH.exact : MATCH.nomatch;
MATCH m2 = fdmatch.parent.isClassDeclaration() ? MATCH.exact : MATCH.nomatch;
if (m1 > m2)
goto Lfd;
else if (m1 < m2)
goto Lfdmatch;
}
fdambig = fd;
//printf("Lambig fdambig = %s %s [%s]\n", fdambig.toChars(), fdambig.type.toChars(), fdambig.loc.toChars());
continue;
Lfd:
fdmatch = fd;
fdambig = null;
//printf("Lfd fdmatch = %s %s [%s]\n", fdmatch.toChars(), fdmatch.type.toChars(), fdmatch.loc.toChars());
continue;
Lfdmatch:
continue;
}
//else printf("\t\t%d\n", fd.type.covariant(tf));
}
}
searchVtbl(vtbl);
for (auto cd = this; cd; cd = cd.baseClass)
{
searchVtbl(cd.vtblFinal);
}
if (fdambig)
error("ambiguous virtual function `%s`", fdambig.toChars());
return fdmatch;
}
/****************************************
*/
final bool isCOMclass() const
{
return com;
}
bool isCOMinterface() const
{
return false;
}
final bool isCPPclass() const
{
return classKind == ClassKind.cpp;
}
bool isCPPinterface() const
{
return false;
}
/****************************************
*/
final bool isAbstract()
{
enum log = false;
if (isabstract != Abstract.fwdref)
return isabstract == Abstract.yes;
if (log) printf("isAbstract(%s)\n", toChars());
bool no() { if (log) printf("no\n"); isabstract = Abstract.no; return false; }
bool yes() { if (log) printf("yes\n"); isabstract = Abstract.yes; return true; }
if (storage_class & STC.abstract_ || _scope && _scope.stc & STC.abstract_)
return yes();
if (errors)
return no();
/* https://issues.dlang.org/show_bug.cgi?id=11169
* Resolve forward references to all class member functions,
* and determine whether this class is abstract.
*/
extern (C++) static int func(Dsymbol s, void* param)
{
auto fd = s.isFuncDeclaration();
if (!fd)
return 0;
if (fd.storage_class & STC.static_)
return 0;
if (fd.isAbstract())
return 1;
return 0;
}
for (size_t i = 0; i < members.dim; i++)
{
auto s = (*members)[i];
if (s.apply(&func, cast(void*)this))
{
return yes();
}
}
/* If the base class is not abstract, then this class cannot
* be abstract.
*/
if (!isInterfaceDeclaration() && (!baseClass || !baseClass.isAbstract()))
return no();
/* If any abstract functions are inherited, but not overridden,
* then the class is abstract. Do this by checking the vtbl[].
* Need to do semantic() on class to fill the vtbl[].
*/
this.dsymbolSemantic(null);
/* The next line should work, but does not because when ClassDeclaration.dsymbolSemantic()
* is called recursively it can set PASS.semanticdone without finishing it.
*/
//if (semanticRun < PASS.semanticdone)
{
/* Could not complete semantic(). Try running semantic() on
* each of the virtual functions,
* which will fill in the vtbl[] overrides.
*/
extern (C++) static int virtualSemantic(Dsymbol s, void* param)
{
auto fd = s.isFuncDeclaration();
if (fd && !(fd.storage_class & STC.static_) && !fd.isUnitTestDeclaration())
fd.dsymbolSemantic(null);
return 0;
}
for (size_t i = 0; i < members.dim; i++)
{
auto s = (*members)[i];
s.apply(&virtualSemantic, cast(void*)this);
}
}
/* Finally, check the vtbl[]
*/
foreach (i; 1 .. vtbl.dim)
{
auto fd = vtbl[i].isFuncDeclaration();
//if (fd) printf("\tvtbl[%d] = [%s] %s\n", i, fd.loc.toChars(), fd.toPrettyChars());
if (!fd || fd.isAbstract())
{
return yes();
}
}
return no();
}
/****************************************
* Determine if slot 0 of the vtbl[] is reserved for something else.
* For class objects, yes, this is where the classinfo ptr goes.
* For COM interfaces, no.
* For non-COM interfaces, yes, this is where the Interface ptr goes.
* Returns:
* 0 vtbl[0] is first virtual function pointer
* 1 vtbl[0] is classinfo/interfaceinfo pointer
*/
int vtblOffset() const
{
return classKind == ClassKind.cpp ? 0 : 1;
}
/****************************************
*/
override const(char)* kind() const
{
return "class";
}
/****************************************
*/
override final void addLocalClass(ClassDeclarations* aclasses)
{
aclasses.push(this);
}
// Back end
Symbol* vtblsym;
override final inout(ClassDeclaration) isClassDeclaration() inout
{
return this;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class InterfaceDeclaration : ClassDeclaration
{
extern (D) this(Loc loc, Identifier id, BaseClasses* baseclasses)
{
super(loc, id, baseclasses, null, false);
if (id == Id.IUnknown) // IUnknown is the root of all COM interfaces
{
com = true;
classKind = ClassKind.cpp; // IUnknown is also a C++ interface
}
}
override Dsymbol syntaxCopy(Dsymbol s)
{
InterfaceDeclaration id =
s ? cast(InterfaceDeclaration)s
: new InterfaceDeclaration(loc, ident, null);
return ClassDeclaration.syntaxCopy(id);
}
override Scope* newScope(Scope* sc)
{
auto sc2 = super.newScope(sc);
if (com)
sc2.linkage = LINK.windows;
else if (classKind == ClassKind.cpp)
sc2.linkage = LINK.cpp;
else if (classKind == ClassKind.objc)
sc2.linkage = LINK.objc;
return sc2;
}
/*******************************************
* Determine if 'this' is a base class of cd.
* (Actually, if it is an interface supported by cd)
* Output:
* *poffset offset to start of class
* OFFSET_RUNTIME must determine offset at runtime
* Returns:
* false not a base
* true is a base
*/
override bool isBaseOf(ClassDeclaration cd, int* poffset)
{
//printf("%s.InterfaceDeclaration.isBaseOf(cd = '%s')\n", toChars(), cd.toChars());
assert(!baseClass);
foreach (b; cd.interfaces)
{
//printf("\tX base %s\n", b.sym.toChars());
if (this == b.sym)
{
//printf("\tfound at offset %d\n", b.offset);
if (poffset)
{
// don't return incorrect offsets
// https://issues.dlang.org/show_bug.cgi?id=16980
*poffset = cd.sizeok == Sizeok.done ? b.offset : OFFSET_FWDREF;
}
// printf("\tfound at offset %d\n", b.offset);
return true;
}
if (isBaseOf(b, poffset))
return true;
}
if (cd.baseClass && isBaseOf(cd.baseClass, poffset))
return true;
if (poffset)
*poffset = 0;
return false;
}
bool isBaseOf(BaseClass* bc, int* poffset)
{
//printf("%s.InterfaceDeclaration.isBaseOf(bc = '%s')\n", toChars(), bc.sym.toChars());
for (size_t j = 0; j < bc.baseInterfaces.length; j++)
{
BaseClass* b = &bc.baseInterfaces[j];
//printf("\tY base %s\n", b.sym.toChars());
if (this == b.sym)
{
//printf("\tfound at offset %d\n", b.offset);
if (poffset)
{
*poffset = b.offset;
}
return true;
}
if (isBaseOf(b, poffset))
{
return true;
}
}
if (poffset)
*poffset = 0;
return false;
}
/*******************************************
*/
override const(char)* kind() const
{
return "interface";
}
/****************************************
* Determine if slot 0 of the vtbl[] is reserved for something else.
* For class objects, yes, this is where the ClassInfo ptr goes.
* For COM interfaces, no.
* For non-COM interfaces, yes, this is where the Interface ptr goes.
*/
override int vtblOffset() const
{
if (isCOMinterface() || isCPPinterface())
return 0;
return 1;
}
override bool isCPPinterface() const
{
return classKind == ClassKind.cpp;
}
override bool isCOMinterface() const
{
return com;
}
override inout(InterfaceDeclaration) isInterfaceDeclaration() inout
{
return this;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
| D |
/*
Copyright (c) 2016-2021 Eugene Wissner
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.
*/
/**
* Fast block-based allocator
*
* Copyright: Eugene Wissner 2016-2021.
* License: $(LINK2 boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Eugene Wissner
*/
module dlib.memory.mmappool;
import dlib.memory.allocator;
import core.atomic;
import core.exception;
version (Posix)
{
import core.stdc.errno;
import core.sys.posix.sys.mman;
import core.sys.posix.unistd;
}
else version (Windows)
{
import core.sys.windows.winbase;
import core.sys.windows.windows;
}
/**
* This allocator allocates memory in regions (multiple of 4 KB for example).
* Each region is then splitted in blocks. So it doesn't request the memory
* from the operating system on each call, but only if there are no large
* enough free blocks in the available regions.
* Deallocation works in the same way. Deallocation doesn't immediately
* gives the memory back to the operating system, but marks the appropriate
* block as free and only if all blocks in the region are free, the complete
* region is deallocated.
*
* ----------------------------------------------------------------------------
* | | | | | || | | |
* | |prev <----------- | || | | |
* | R | B | | B | || R | B | |
* | E | L | | L | next E | L | |
* | G | O | DATA | O | FREE ---> G | O | DATA |
* | I | C | | C | <--- I | C | |
* | O | K | | K | prev O | K | |
* | N | -----------> next| || N | | |
* | | | | | || | | |
* ----------------------------------------------------------------------------
*
* TODO:
* $(UL
* $(LI Thread safety (core.atomic.cas))
* $(LI If two neighbour blocks are free, they can be merged)
* $(LI Reallocation shoud check if there is enough free space in the
* next block instead of always moving the memory)
* $(LI Make 64 KB regions mininmal region size on Linux)
* )
*/
class MmapPool : Allocator
{
//@disable this();
static initialize()
{
version (Posix)
{
pageSize = sysconf(_SC_PAGE_SIZE);
}
else version (Windows)
{
SYSTEM_INFO si;
GetSystemInfo(&si);
pageSize = si.dwPageSize;
}
}
/**
* Allocates $(D_PARAM size) bytes of memory.
*
* Params:
* size = Amount of memory to allocate.
*
* Returns: The pointer to the new allocated memory.
*/
void[] allocate(size_t size) @nogc @trusted nothrow
{
if (!size)
{
return null;
}
immutable dataSize = addAlignment(size);
void* data = findBlock(dataSize);
if (data is null)
{
data = initializeRegion(dataSize);
}
return data is null ? null : data[0..size];
}
///
@nogc @safe nothrow unittest
{
auto p = MmapPool.instance.allocate(20);
assert(p);
MmapPool.instance.deallocate(p);
}
/**
* Search for a block large enough to keep $(D_PARAM size) and split it
* into two blocks if the block is too large.
*
* Params:
* size = Minimum size the block should have.
*
* Returns: Data the block points to or $(D_KEYWORD null).
*/
private void* findBlock(size_t size) @nogc nothrow
{
Block block1;
RegionLoop: for (auto r = head; r !is null; r = r.next)
{
block1 = cast(Block) (cast(void*) r + regionEntrySize);
do
{
if (block1.free && block1.size >= size)
{
break RegionLoop;
}
}
while ((block1 = block1.next) !is null);
}
if (block1 is null)
{
return null;
}
else if (block1.size >= size + alignment + blockEntrySize)
{ // Split the block if needed
Block block2 = cast(Block) (cast(void*) block1 + blockEntrySize + size);
block2.prev = block1;
if (block1.next is null)
{
block2.next = null;
}
else
{
block2.next = block1.next.next;
}
block1.next = block2;
block1.free = false;
block2.free = true;
block2.size = block1.size - blockEntrySize - size;
block1.size = size;
block2.region = block1.region;
//atomicOp!"+="(block1.region.blocks, 1); // atomicOp works only with shared data
++block1.region.blocks;
}
else
{
block1.free = false;
//atomicOp!"+="(block1.region.blocks, 1); // atomicOp works only with shared data
++block1.region.blocks;
}
return cast(void*) block1 + blockEntrySize;
}
/**
* Deallocates a memory block.
*
* Params:
* p = A pointer to the memory block to be freed.
*
* Returns: Whether the deallocation was successful.
*/
bool deallocate(void[] p) @nogc @trusted nothrow
{
if (p is null)
{
return true;
}
Block block = cast(Block) (p.ptr - blockEntrySize);
if (block.region.blocks <= 1)
{
if (block.region.prev !is null)
{
block.region.prev.next = block.region.next;
}
else // Replace the list head. It is being deallocated
{
head = block.region.next;
}
if (block.region.next !is null)
{
block.region.next.prev = block.region.prev;
}
version (Posix)
{
return munmap(cast(void*) block.region, block.region.size) == 0;
}
version (Windows)
{
return VirtualFree(cast(void*) block.region, 0, MEM_RELEASE) == 0;
}
}
else
{
block.free = true;
//atomicOp!"-="(block.region.blocks, 1); // atomicOp works only with shared data
--block.region.blocks;
return true;
}
}
///
@nogc @safe nothrow unittest
{
auto p = MmapPool.instance.allocate(20);
assert(MmapPool.instance.deallocate(p));
}
/**
* Increases or decreases the size of a memory block.
*
* Params:
* p = A pointer to the memory block.
* size = Size of the reallocated block.
*
* Returns: Whether the reallocation was successful.
*/
bool reallocate(ref void[] p, size_t size) @nogc @trusted nothrow
{
void[] reallocP;
if (size == p.length)
{
return true;
}
else if (size > 0)
{
reallocP = allocate(size);
if (reallocP is null)
{
return false;
}
}
if (p !is null)
{
if (size > p.length)
{
reallocP[0..p.length] = p[0..$];
}
else if (size > 0)
{
reallocP[0..size] = p[0..size];
}
deallocate(p);
}
p = reallocP;
return true;
}
///
@nogc nothrow unittest
{
void[] p;
MmapPool.instance.reallocate(p, 10 * int.sizeof);
(cast(int[]) p)[7] = 123;
assert(p.length == 40);
MmapPool.instance.reallocate(p, 8 * int.sizeof);
assert(p.length == 32);
assert((cast(int[]) p)[7] == 123);
MmapPool.instance.reallocate(p, 20 * int.sizeof);
(cast(int[]) p)[15] = 8;
assert(p.length == 80);
assert((cast(int[]) p)[15] == 8);
assert((cast(int[]) p)[7] == 123);
MmapPool.instance.reallocate(p, 8 * int.sizeof);
assert(p.length == 32);
assert((cast(int[]) p)[7] == 123);
MmapPool.instance.deallocate(p);
}
/**
* Static allocator instance and initializer.
*
* Returns: Global $(D_PSYMBOL MmapPool) instance.
*/
static @property MmapPool instance() @nogc @trusted nothrow
{
if (instance_ is null)
{
initialize();
immutable instanceSize = addAlignment(__traits(classInstanceSize, MmapPool));
Region head; // Will become soon our region list head
void* data = initializeRegion(instanceSize, head);
if (data !is null)
{
data[0..instanceSize] = typeid(MmapPool).initializer[];
instance_ = cast(MmapPool) data;
instance_.head = head;
}
}
return instance_;
}
///
@nogc @safe nothrow unittest
{
assert(instance is instance);
}
/**
* Initializes a region for one element.
*
* Params:
* size = Aligned size of the first data block in the region.
* head = Region list head.
*
* Returns: A pointer to the data.
*/
pragma(inline)
private static void* initializeRegion(size_t size,
ref Region head) @nogc nothrow
{
immutable regionSize = calculateRegionSize(size);
version (Posix)
{
void* p = mmap(null,
regionSize,
PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANON,
-1,
0);
if (p is MAP_FAILED)
{
if (errno == ENOMEM)
{
onOutOfMemoryError();
}
return null;
}
}
else version (Windows)
{
void* p = VirtualAlloc(null,
regionSize,
MEM_COMMIT,
PAGE_READWRITE);
if (p is null)
{
if (GetLastError() == ERROR_NOT_ENOUGH_MEMORY)
{
onOutOfMemoryError();
}
return null;
}
}
Region region = cast(Region) p;
region.blocks = 1;
region.size = regionSize;
// Set the pointer to the head of the region list
if (head !is null)
{
head.prev = region;
}
region.next = head;
region.prev = null;
head = region;
// Initialize the data block
void* memoryPointer = p + regionEntrySize;
Block block1 = cast(Block) memoryPointer;
block1.size = size;
block1.free = false;
// It is what we want to return
void* data = memoryPointer + blockEntrySize;
// Free block after data
memoryPointer = data + size;
Block block2 = cast(Block) memoryPointer;
block1.prev = block2.next = null;
block1.next = block2;
block2.prev = block1;
block2.size = regionSize - size - regionEntrySize - blockEntrySize * 2;
block2.free = true;
block1.region = block2.region = region;
return data;
}
/// Ditto.
private void* initializeRegion(size_t size) @nogc nothrow
{
return initializeRegion(size, head);
}
/**
* Params:
* x = Space to be aligned.
*
* Returns: Aligned size of $(D_PARAM x).
*/
pragma(inline)
private static immutable(size_t) addAlignment(size_t x)
@nogc @safe pure nothrow
out (result)
{
assert(result > 0);
}
do
{
return (x - 1) / alignment_ * alignment_ + alignment_;
}
/**
* Params:
* x = Required space.
*
* Returns: Minimum region size (a multiple of $(D_PSYMBOL pageSize)).
*/
pragma(inline)
private static immutable(size_t) calculateRegionSize(size_t x)
@nogc nothrow
out (result)
{
assert(result > 0);
}
do
{
x += regionEntrySize + blockEntrySize * 2;
return x / pageSize * pageSize + pageSize;
}
@property immutable(uint) alignment() const @nogc @safe pure nothrow
{
return alignment_;
}
private enum alignment_ = 8;
private static __gshared MmapPool instance_;
private static __gshared size_t pageSize;
private struct RegionEntry
{
Region prev;
Region next;
uint blocks;
size_t size;
}
private alias Region = RegionEntry*;
private enum regionEntrySize = 32;
private Region head;
private struct BlockEntry
{
Block prev;
Block next;
bool free;
size_t size;
Region region;
}
private alias Block = BlockEntry*;
private enum blockEntrySize = 40;
}
| D |
/Users/keynote/Documents/iOS/Swift/SwiftServer/PerfertlyServer/.build/debug/PerfectLogger.build/Perfect_Logger.swift.o : /Users/keynote/Documents/iOS/Swift/SwiftServer/PerfertlyServer/Packages/PerfectLogger-0.0.7/Sources/Perfect_Logger.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/keynote/Documents/iOS/Swift/SwiftServer/PerfertlyServer/.build/debug/PerfectLib.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/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/keynote/Documents/iOS/Swift/SwiftServer/PerfertlyServer/.build/debug/SwiftMoment.swiftmodule
/Users/keynote/Documents/iOS/Swift/SwiftServer/PerfertlyServer/.build/debug/PerfectLogger.build/Perfect_Logger~partial.swiftmodule : /Users/keynote/Documents/iOS/Swift/SwiftServer/PerfertlyServer/Packages/PerfectLogger-0.0.7/Sources/Perfect_Logger.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/keynote/Documents/iOS/Swift/SwiftServer/PerfertlyServer/.build/debug/PerfectLib.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/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/keynote/Documents/iOS/Swift/SwiftServer/PerfertlyServer/.build/debug/SwiftMoment.swiftmodule
/Users/keynote/Documents/iOS/Swift/SwiftServer/PerfertlyServer/.build/debug/PerfectLogger.build/Perfect_Logger~partial.swiftdoc : /Users/keynote/Documents/iOS/Swift/SwiftServer/PerfertlyServer/Packages/PerfectLogger-0.0.7/Sources/Perfect_Logger.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/keynote/Documents/iOS/Swift/SwiftServer/PerfertlyServer/.build/debug/PerfectLib.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/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/keynote/Documents/iOS/Swift/SwiftServer/PerfertlyServer/.build/debug/SwiftMoment.swiftmodule
| D |
INSTANCE Info_Mod_Drache_Hi (C_INFO)
{
npc = Wasserdrache_11054_DT;
nr = 1;
condition = Info_Mod_Drache_Hi_Condition;
information = Info_Mod_Drache_Hi_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Drache_Hi_Condition()
{
return 1;
};
FUNC VOID Info_Mod_Drache_Hi_Info()
{
AI_Output(self, hero, "Info_Mod_Drache_Hi_22_00"); //Noch ein Mensch. Was treibst du hier? Zurück zu deinem Verein, sonst lernst du mich kennen.
AI_Output(hero, self, "Info_Mod_Drache_Hi_15_01"); //(Leise) Ich gehöre nicht zu diesem Haufen. Ich bin gekommen, um Khorgor zu finden und zu töten.
AI_Output(self, hero, "Info_Mod_Drache_Hi_22_02"); //Khorgor ist auch mein Feind. Nur leider bin ich machtlos, seit er mich hier eingesperrt hat.
AI_Output(hero, self, "Info_Mod_Drache_Hi_15_03"); //Würdest du mir helfen, wenn es mir gelingt, dich zu befreien?
AI_Output(self, hero, "Info_Mod_Drache_Hi_22_04"); //Mit Freuden. Aber das ist nicht so einfach.
AI_Output(hero, self, "Info_Mod_Drache_Hi_15_05"); //Weil?
AI_Output(self, hero, "Info_Mod_Drache_Hi_22_06"); //Ich bin ein Wasserdrache. Wasser ist mein Lebenselixier, auf das ich hier nun schon lange verzichten muss.
AI_Output(self, hero, "Info_Mod_Drache_Hi_22_07"); //So sieche ich hier dahin, bin kraftlos und kann nicht kämpfen. Ich nehme Stück für Stück die Struktur dieser Umgebung an.
AI_Output(hero, self, "Info_Mod_Drache_Hi_15_08"); //Kann man sehen. Du mutierst zum Silberdrachen.
AI_Output(self, hero, "Info_Mod_Drache_Hi_22_09"); //(etwas lauter) Das ist kein Spaß! Bring mir Wasser, wenn ich dir helfen soll. Da vorn ist ein See.
AI_Output(hero, self, "Info_Mod_Drache_Hi_15_10"); //Schon. Und dazwischen sind nur ungefähr zehn Feinde.
AI_Output(self, hero, "Info_Mod_Drache_Hi_22_11"); //Tölpel! Du wirst bei Nacht an ihnen vorbei schleichen. Oder machst dich unsichtbar.
AI_Output(hero, self, "Info_Mod_Drache_Hi_15_12"); //Das hat was. Wie viel Wasser brauchst du?
AI_Output(self, hero, "Info_Mod_Drache_Hi_22_13"); //Idealerweise den halben See. Aber vier Eimer sollten reichen für den Anfang.
AI_Output(hero, self, "Info_Mod_Drache_Hi_15_14"); //Und woher bekomme ich jetzt einen Eimer?
AI_Output(self, hero, "Info_Mod_Drache_Hi_22_15"); //Am See gibt's sicher welche. Von den Verbrechern dort.
Log_CreateTopic (TOPIC_MOD_JG_DRACHENDURST, LOG_MISSION);
B_SetTopicStatus (TOPIC_MOD_JG_DRACHENDURST, LOG_RUNNING);
B_LogEntry (TOPIC_MOD_JG_DRACHENDURST, "Ein leibhaftiger Drachen! Ein blauer. Er will mir helfen, wenn ich ihm Wasser verschaffe. 4 Eimer will er haben.");
};
INSTANCE Info_Mod_Drache_Drachendurst01 (C_INFO)
{
npc = Wasserdrache_11054_DT;
nr = 1;
condition = Info_Mod_Drache_Drachendurst01_Condition;
information = Info_Mod_Drache_Drachendurst01_Info;
permanent = 0;
important = 0;
description = "Hier. Ein Eimer voll Wasser.";
};
FUNC INT Info_Mod_Drache_Drachendurst01_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Drache_Hi))
&& (Npc_HasItems(hero, ItMi_EimerW) == 1)
{
return 1;
};
};
FUNC VOID Info_Mod_Drache_Drachendurst01_Info()
{
AI_Output(hero, self, "Info_Mod_Drache_Drachendurst01_15_00"); //Hier. Ein Eimer voll Wasser.
B_GiveInvItems (hero, self, ItMi_EimerW, 1);
Mdl_SetVisualBody (self, "Dragon_WATER02_Body", DEFAULT, DEFAULT, "", DEFAULT, DEFAULT, -1);
AI_Output(self, hero, "Info_Mod_Drache_Drachendurst01_22_01"); //Ahh. Köstlich! Mir geht's schon gleich besser. Aber ich brauche mehr.
AI_Output(hero, self, "Info_Mod_Drache_Drachendurst01_15_02"); //Bin schon unterwegs.
B_GiveInvItems (self, hero, ItMi_Eimer, 1);
};
INSTANCE Info_Mod_Drache_Drachendurst02 (C_INFO)
{
npc = Wasserdrache_11054_DT;
nr = 1;
condition = Info_Mod_Drache_Drachendurst02_Condition;
information = Info_Mod_Drache_Drachendurst02_Info;
permanent = 0;
important = 0;
description = "Hier. Die zweite Fuhre.";
};
FUNC INT Info_Mod_Drache_Drachendurst02_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Drache_Drachendurst01))
&& (Npc_HasItems(hero, ItMi_EimerW) == 1)
{
return 1;
};
};
FUNC VOID Info_Mod_Drache_Drachendurst02_Info()
{
AI_Output(hero, self, "Info_Mod_Drache_Drachendurst02_15_00"); //Hier. Die zweite Fuhre.
B_GiveInvItems (hero, self, ItMi_EimerW, 1);
Mdl_SetVisualBody (self, "Dragon_WATER03_Body", DEFAULT, DEFAULT, "", DEFAULT, DEFAULT, -1);
AI_Output(self, hero, "Info_Mod_Drache_Drachendurst02_22_01"); //Danke Mensch. Du rettest mir das Leben.
AI_Output(hero, self, "Info_Mod_Drache_Drachendurst02_15_02"); //Und riskiere meins.
AI_Output(self, hero, "Info_Mod_Drache_Drachendurst02_22_03"); //Ohne mich hast du eh keine Chance hier.
AI_Output(hero, self, "Info_Mod_Drache_Drachendurst02_15_04"); //Mag sein, Bin unterwegs.
B_GiveInvItems (self, hero, ItMi_Eimer, 1);
};
INSTANCE Info_Mod_Drache_Drachendurst03 (C_INFO)
{
npc = Wasserdrache_11054_DT;
nr = 1;
condition = Info_Mod_Drache_Drachendurst03_Condition;
information = Info_Mod_Drache_Drachendurst03_Info;
permanent = 0;
important = 0;
description = "So, die dritte Ladung. Wie geht's dir jetzt?";
};
FUNC INT Info_Mod_Drache_Drachendurst03_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Drache_Drachendurst02))
&& (Npc_HasItems(hero, ItMi_EimerW) == 1)
{
return 1;
};
};
FUNC VOID Info_Mod_Drache_Drachendurst03_Info()
{
AI_Output(hero, self, "Info_Mod_Drache_Drachendurst03_15_00"); //So, die dritte Ladung. Wie geht's dir jetzt?
B_GiveInvItems (hero, self, ItMi_EimerW, 1);
Mdl_SetVisualBody (self, "Dragon_WATER04_Body", DEFAULT, DEFAULT, "", DEFAULT, DEFAULT, -1);
AI_Output(self, hero, "Info_Mod_Drache_Drachendurst03_22_01"); //Fühl mich so gut, wie lange nicht mehr. Und bin auch wieder bei Kräften.
AI_Output(self, hero, "Info_Mod_Drache_Drachendurst03_22_02"); //Jetzt noch einen Eimer und ich reiß' das Gitter hier nieder.
B_GiveInvItems (self, hero, ItMi_Eimer, 1);
};
INSTANCE Info_Mod_Drache_Drachendurst04 (C_INFO)
{
npc = Wasserdrache_11054_DT;
nr = 1;
condition = Info_Mod_Drache_Drachendurst04_Condition;
information = Info_Mod_Drache_Drachendurst04_Info;
permanent = 0;
important = 0;
description = "Hier. Aller guten Dinge ist vier.";
};
FUNC INT Info_Mod_Drache_Drachendurst04_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Drache_Drachendurst03))
&& (Npc_HasItems(hero, ItMi_EimerW) == 1)
{
return 1;
};
};
FUNC VOID Info_Mod_Drache_Drachendurst04_Info()
{
AI_Output(hero, self, "Info_Mod_Drache_Drachendurst04_15_00"); //Hier. Aller guten Dinge ist vier.
B_GiveInvItems (hero, self, ItMi_EimerW, 1);
Mdl_SetVisualBody (self, "Dragon_WATER_Body", DEFAULT, DEFAULT, "", DEFAULT, DEFAULT, -1);
AI_Output(self, hero, "Info_Mod_Drache_Drachendurst04_22_01"); //Wohl wahr! Rüber mit den Eimern.
AI_Output(hero, self, "Info_Mod_Drache_Drachendurst04_15_02"); //So. Und jetzt? Das Gitter?
AI_Output(self, hero, "Info_Mod_Drache_Drachendurst04_22_03"); //War nicht ernst gemeint. Das schaff ich natürlich nicht.
AI_Output(hero, self, "Info_Mod_Drache_Drachendurst04_15_04"); //Na ja. Wenigstens hast du deine blaue Farbe wieder. Und jetzt?
AI_Output(self, hero, "Info_Mod_Drache_Drachendurst04_22_05"); //Ehrlich? Ich bin wieder blau?
AI_Output(hero, self, "Info_Mod_Drache_Drachendurst04_15_06"); //Wie ein Matrose, der seine letzte Heuer versoffen hat.
AI_Output(self, hero, "Info_Mod_Drache_Drachendurst04_22_07"); //Aah! Hier bin ich Drache, hier darf ich's sein!
AI_Output(hero, self, "Info_Mod_Drache_Drachendurst04_15_08"); //Zur Sache, Lindwurm. Wie bekomme ich dich da raus?
AI_Output(self, hero, "Info_Mod_Drache_Drachendurst04_22_09"); //Also höre: Drüben im Tempel haust so eine seltsame schwarze Gestalt. Mit glühenden Augen.
AI_Output(hero, self, "Info_Mod_Drache_Drachendurst04_15_10"); //(aufgeregt) Der Suchende! Endlich hab ich ihn aufgespürt.
AI_Output(self, hero, "Info_Mod_Drache_Drachendurst04_22_11"); //Du kennst diese Gestalt?
AI_Output(hero, self, "Info_Mod_Drache_Drachendurst04_15_12"); //Der ist mir schon zwei Mal entwischt. Aber diesmal krieg ich ihn!
AI_Output(self, hero, "Info_Mod_Drache_Drachendurst04_22_13"); //Nun gut. Aber vergiss mein Gatter nicht, du wirst mich brauchen bei der Meute im Wald.
AI_Output(self, hero, "Info_Mod_Drache_Drachendurst04_22_14"); //Also weiter: Vor einiger Zeit konnte ich ein Gespräch belauschen zwischen dem Dunklen und einem der Vasallen.
AI_Output(self, hero, "Info_Mod_Drache_Drachendurst04_22_15"); //Da hab ich erfahren, dass der Öffnungsmechanismus in der Bibliothek zu finden ist. Allerdings verborgen, was immer das heißt.
AI_Output(hero, self, "Info_Mod_Drache_Drachendurst04_15_16"); //Hm. Ein Hebel vielleicht. Oder eine Winde. Nee ... eine Winde kann man nicht verstecken. Mal sehen ...
Log_CreateTopic (TOPIC_MOD_JG_SUCHENDER, LOG_MISSION);
B_SetTopicStatus (TOPIC_MOD_JG_SUCHENDER, LOG_RUNNING);
B_LogEntry_More (TOPIC_MOD_JG_DRACHENDURST, TOPIC_MOD_JG_SUCHENDER, "Der Drache war mit vier Eimern Wasser zufrieden. Mal sehen, wie's weitergeht.", "Der Wasserdrache erzählt von einer Vorrichtung, die das Gatter öffnet. In der Tempelbibliothek soll der versteckt sein. Und der Suchende wahrscheinlich auch. Ich muss auf seine Eisattacken achten. Hab ich noch 'nen Magieschutz im Beutel? Und besser auf Nahkampf gehen. Vielleicht ist eine List hilfreich ...");
B_SetTopicStatus (TOPIC_MOD_JG_DRACHENDURST, LOG_SUCCESS);
Wld_InsertNpc (Mod_7543_DMT_Suchender_DT, "DT_039");
};
INSTANCE Info_Mod_Drache_Drachental (C_INFO)
{
npc = Wasserdrache_11054_DT;
nr = 1;
condition = Info_Mod_Drache_Drachental_Condition;
information = Info_Mod_Drache_Drachental_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Drache_Drachental_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Cyrco_Drachental))
&& (Mod_JG_Gitter == 0)
{
return 1;
};
};
FUNC VOID Info_Mod_Drache_Drachental_Info()
{
AI_Output(self, hero, "Info_Mod_Drache_Drachental_22_00"); //He! Wo steckst du? Was ist mit dem Gatter?
AI_Output(hero, self, "Info_Mod_Drache_Drachental_15_01"); //Geduld! Hatte noch anderes zu tun. Der Raum des Schwarzen sagst du?
AI_Output(self, hero, "Info_Mod_Drache_Drachental_22_02"); //Ja. Irgendwo da soll der Hebel sein.
AI_Output(hero, self, "Info_Mod_Drache_Drachental_15_03"); //Mal sehen.
Log_CreateTopic (TOPIC_MOD_JG_VASALLEN, LOG_MISSION);
B_SetTopicStatus (TOPIC_MOD_JG_VASALLEN, LOG_RUNNING);
B_LogEntry (TOPIC_MOD_JG_VASALLEN, "Ich sollte nun den Drachen befreien und dann die Wachen hier töten.");
};
INSTANCE Info_Mod_Drache_Drachental2 (C_INFO)
{
npc = Wasserdrache_11054_DT;
nr = 1;
condition = Info_Mod_Drache_Drachental2_Condition;
information = Info_Mod_Drache_Drachental2_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Drache_Drachental2_Condition()
{
if (Npc_IsDead(Mod_7544_OUT_Wache_DT))
&& (Npc_IsDead(Mod_7545_OUT_Wache_DT))
&& (Npc_IsDead(Mod_7546_OUT_Wache_DT))
&& (Npc_IsDead(Mod_7547_OUT_Wache_DT))
&& (Npc_IsDead(Mod_7548_OUT_Wache_DT))
&& (Npc_IsDead(Mod_7549_OUT_Wache_DT))
&& (Npc_IsDead(Mod_7550_OUT_Wache_DT))
&& (Npc_IsDead(Mod_7551_OUT_Wache_DT))
&& (Npc_IsDead(Mod_7552_OUT_Wache_DT))
&& (Npc_IsDead(Mod_7553_OUT_Wache_DT))
&& (Mod_JG_Gitter == 2)
{
return 1;
};
};
FUNC VOID Info_Mod_Drache_Drachental2_Info()
{
AI_Output(self, hero, "Info_Mod_Drache_Drachental2_22_00"); //Duuurst! Ich brauche dringend Wasser! Ich bin am See.
AI_Output(hero, self, "Info_Mod_Drache_Drachental2_15_01"); //Ich schau mich mal um.
B_LogEntry_More (TOPIC_MOD_JG_VASALLEN, TOPIC_MOD_JG_DRACHENTAL, "Erstaunlich, was Wasser für Kraft hat. Den Rücken sollte ich nun freihaben.", "Erstaunlich, was Wasser für Kraft hat. Den Rücken sollte ich nun freihaben. Ich gehe am besten noch mal in die Bibliothek. Vielleicht habe ich vorhin was übersehen ...");
B_SetTopicStatus (TOPIC_MOD_JG_VASALLEN, LOG_SUCCESS);
B_GivePlayerXP (250);
AI_StopProcessInfos (self);
B_StartOtherRoutine (self, "DURST");
Wld_InsertItem (ItWr_RaetselWand, "FP_ITEM_RAETSELWANDZETTEL");
};
INSTANCE Info_Mod_Drache_Khorgor (C_INFO)
{
npc = Wasserdrache_11054_DT;
nr = 1;
condition = Info_Mod_Drache_Khorgor_Condition;
information = Info_Mod_Drache_Khorgor_Info;
permanent = 0;
important = 0;
description = "So, mein Auftrag hier ist erledigt.";
};
FUNC INT Info_Mod_Drache_Khorgor_Condition()
{
if (Mod_JG_Khorgor == 1)
{
return 1;
};
};
FUNC VOID Info_Mod_Drache_Khorgor_Info()
{
AI_Output(hero, self, "Info_Mod_Drache_Khorgor_15_00"); //So, mein Auftrag hier ist erledigt. Ich muss zu meinen Leuten zurück. Wenn ich nur wüsste wie.
AI_Output(self, hero, "Info_Mod_Drache_Khorgor_22_01"); //Da drin muss irgendwo ein Transporter sein. Das Fußvolk ist da immer raus und rein ...
AI_Output(hero, self, "Info_Mod_Drache_Khorgor_15_02"); //Da muß ich doch mal schauen. Und was wirst du machen?
AI_Output(self, hero, "Info_Mod_Drache_Khorgor_22_03"); //Ich sauf den See leer unn mache mich auf die Suche nach meinen Brüdern.
AI_Output(hero, self, "Info_Mod_Drache_Khorgor_15_04"); //Dann wünsch ich dir viel Erfolg.
AI_Output(self, hero, "Info_Mod_Drache_Khorgor_22_05"); //Dir auch. Und hier, ein kleines Geschenk.
B_GiveInvItems (self, hero, ItMi_Aquamarine, 10);
};
INSTANCE Info_Mod_Drache_EXIT (C_INFO)
{
npc = Wasserdrache_11054_DT;
nr = 1;
condition = Info_Mod_Drache_EXIT_Condition;
information = Info_Mod_Drache_EXIT_Info;
permanent = 1;
important = 0;
description = DIALOG_ENDE;
};
FUNC INT Info_Mod_Drache_EXIT_Condition()
{
return 1;
};
FUNC VOID Info_Mod_Drache_EXIT_Info()
{
AI_StopProcessInfos (self);
}; | D |
/**
Dependency configuration/version resolution algorithm.
Copyright: © 2014 rejectedsoftware e.K.
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig
*/
module dub.dependencyresolver;
import dub.dependency;
import dub.internal.vibecompat.core.log;
import std.algorithm : all, canFind, filter, map, sort;
import std.array : appender, array;
import std.conv : to;
import std.exception : enforce;
import std.string : format, indexOf, lastIndexOf;
class DependencyResolver(CONFIGS, CONFIG) {
static struct TreeNodes {
string pack;
CONFIGS configs;
DependencyType depType = DependencyType.required;
hash_t toHash() const nothrow @trusted {
size_t ret = typeid(string).getHash(&pack);
ret ^= typeid(CONFIGS).getHash(&configs);
return ret;
}
bool opEqual(in ref TreeNodes other) const { return pack == other.pack && configs == other.configs; }
int opCmp(in ref TreeNodes other) const {
if (pack != other.pack) return pack < other.pack ? -1 : 1;
if (configs != other.configs) return configs < other.configs ? -1 : 1;
return 0;
}
}
static struct TreeNode {
string pack;
CONFIG config;
hash_t toHash() const nothrow @trusted {
size_t ret = typeid(string).getHash(&pack);
ret ^= typeid(CONFIG).getHash(&config);
return ret;
}
bool opEqual(in ref TreeNode other) const { return pack == other.pack && config == other.config; }
int opCmp(in ref TreeNode other) const {
if (pack != other.pack) return pack < other.pack ? -1 : 1;
if (config != other.config) return config < other.config ? -1 : 1;
return 0;
}
}
CONFIG[string] resolve(TreeNode root, bool throw_on_failure = true)
{
auto root_base_pack = basePackage(root.pack);
// find all possible configurations of each possible dependency
size_t[string] package_indices;
string[size_t] package_names;
CONFIG[][] all_configs;
bool[] any_config;
bool[string] maybe_optional_deps;
bool[TreeNode] visited;
void findConfigsRec(TreeNode parent, bool parent_unique)
{
if (parent in visited) return;
visited[parent] = true;
foreach (ch; getChildren(parent)) {
auto basepack = basePackage(ch.pack);
auto pidx = all_configs.length;
if (ch.depType != DependencyType.required) maybe_optional_deps[ch.pack] = true;
CONFIG[] configs;
if (auto pi = basepack in package_indices) {
pidx = *pi;
configs = all_configs[*pi];
} else {
if (basepack == root_base_pack) configs = [root.config];
else configs = getAllConfigs(basepack);
all_configs ~= configs;
package_indices[basepack] = pidx;
package_names[pidx] = basepack;
}
foreach (c; getSpecificConfigs(basepack, ch))
if (!configs.canFind(c))
configs = c ~ configs;
if (any_config.length <= pidx) any_config.length = pidx+1;
if (configs.length > 0)
any_config[pidx] = true;
// eliminate configurations from which we know that they can't satisfy
// the uniquely defined root dependencies (==version or ~branch style dependencies)
if (parent_unique) configs = configs.filter!(c => matches(ch.configs, c)).array;
all_configs[pidx] = configs;
foreach (v; configs)
findConfigsRec(TreeNode(ch.pack, v), parent_unique && configs.length == 1);
}
}
findConfigsRec(root, true);
// append an invalid configuration to denote an unchosen dependency
// this is used to properly support optional dependencies (when
// getChildren() returns no configurations for an optional dependency,
// but getAllConfigs() has already provided an existing list of configs)
foreach (i, ref cfgs; all_configs)
if (cfgs.length == 0 || package_names[i] in maybe_optional_deps)
cfgs = cfgs ~ CONFIG.invalid;
logDebug("Configurations used for dependency resolution:");
foreach (n, i; package_indices) logDebug(" %s (%s%s): %s", n, i, n in maybe_optional_deps ? ", maybe optional" : ", required", all_configs[i]);
auto config_indices = new size_t[all_configs.length];
config_indices[] = 0;
visited = null;
sizediff_t validateConfigs(TreeNode parent, ref string error)
{
import std.algorithm : max;
if (parent in visited) return -1;
visited[parent] = true;
sizediff_t maxcpi = -1;
sizediff_t parentidx = package_indices.get(basePackage(parent.pack), -1);
auto parentbase = basePackage(parent.pack);
// loop over all dependencies
foreach (ch; getChildren(parent)) {
auto basepack = basePackage(ch.pack);
assert(basepack in package_indices, format("%s not in packages %s", basepack, package_indices));
// get the current config/version of the current dependency
sizediff_t childidx = package_indices[basepack];
if (all_configs[childidx] == [CONFIG.invalid]) {
// ignore invalid optional dependencies
if (ch.depType != DependencyType.required)
continue;
if (parentbase == root_base_pack) {
import std.uni : toLower;
auto lp = ch.pack.toLower();
if (lp != ch.pack) {
logError("Dependency \"%s\" of %s contains upper case letters, but must be lower case.", ch.pack, parent.pack);
if (getAllConfigs(lp).length) logError("Did you mean \"%s\"?", lp);
}
if (any_config[childidx])
throw new Exception(format("Root package %s reference %s %s cannot be satisfied.", parent.pack, ch.pack, ch.configs));
else
throw new Exception(format("Root package %s references unknown package %s", parent.pack, ch.pack));
}
// choose another parent config to avoid the invalid child
if (parentidx > maxcpi) {
error = format("Package %s contains invalid dependency %s (no version candidates)", parent.pack, ch.pack);
logDiagnostic("%s (ci=%s)", error, parentidx);
maxcpi = parentidx;
}
} else {
auto config = all_configs[childidx][config_indices[childidx]];
auto chnode = TreeNode(ch.pack, config);
if (config == CONFIG.invalid || !matches(ch.configs, config)) {
// ignore missing optional dependencies
if (config == CONFIG.invalid && ch.depType != DependencyType.required)
continue;
// if we are at the root level, we can safely skip the maxcpi computation and instead choose another childidx config
if (parentbase == root_base_pack) {
error = format("No match for dependency %s %s of %s", ch.pack, ch.configs, parent.pack);
return childidx;
}
if (childidx > maxcpi) {
maxcpi = max(childidx, parentidx);
error = format("Dependency %s -> %s %s mismatches with selected version %s", parent.pack, ch.pack, ch.configs, config);
logDebug("%s (ci=%s)", error, maxcpi);
}
// we know that either the child or the parent needs to be switched
// to another configuration, no need to continue with other children
if (config == CONFIG.invalid) break;
}
maxcpi = max(maxcpi, validateConfigs(chnode, error));
}
}
return maxcpi;
}
string first_error;
while (true) {
// check if the current combination of configurations works out
visited = null;
string error;
auto conflict_index = validateConfigs(root, error);
if (first_error is null) first_error = error;
// print out current iteration state
logDebug("Interation (ci=%s) %s", conflict_index, {
import std.array : join;
auto cs = new string[all_configs.length];
foreach (p, i; package_indices) {
if (all_configs[i].length)
cs[i] = p~" "~all_configs[i][config_indices[i]].to!string~(i >= 0 && i >= conflict_index ? " (C)" : "");
else cs[i] = p ~ " [no config]";
}
return cs.join(", ");
}());
if (conflict_index < 0) {
CONFIG[string] ret;
foreach (p, i; package_indices)
if (all_configs[i].length) {
auto cfg = all_configs[i][config_indices[i]];
if (cfg != CONFIG.invalid) ret[p] = cfg;
}
logDebug("Resolved dependencies before optional-purge: %s", ret.byKey.map!(k => k~" "~ret[k].to!string));
purgeOptionalDependencies(root, ret);
logDebug("Resolved dependencies after optional-purge: %s", ret.byKey.map!(k => k~" "~ret[k].to!string));
return ret;
}
// find the next combination of configurations
foreach_reverse (pi, ref i; config_indices) {
if (pi > conflict_index) i = 0;
else if (++i >= all_configs[pi].length) i = 0;
else break;
}
if (config_indices.all!"a==0") {
if (throw_on_failure) throw new Exception("Could not find a valid dependency tree configuration: "~first_error);
else return null;
}
}
}
protected abstract CONFIG[] getAllConfigs(string pack);
protected abstract CONFIG[] getSpecificConfigs(string pack, TreeNodes nodes);
protected abstract TreeNodes[] getChildren(TreeNode node);
protected abstract bool matches(CONFIGS configs, CONFIG config);
private void purgeOptionalDependencies(TreeNode root, ref CONFIG[string] configs)
{
bool[string] required;
bool[string] visited;
void markRecursively(TreeNode node)
{
if (node.pack in visited) return;
visited[node.pack] = true;
required[basePackage(node.pack)] = true;
foreach (dep; getChildren(node).filter!(dep => dep.depType != DependencyType.optional))
if (auto dp = basePackage(dep.pack) in configs)
markRecursively(TreeNode(dep.pack, *dp));
}
// recursively mark all required dependencies of the concrete dependency tree
markRecursively(root);
// remove all un-marked configurations
foreach (p; configs.keys.dup)
if (p !in required)
configs.remove(p);
}
}
enum DependencyType {
required,
optionalDefault,
optional
}
private string basePackage(string p)
{
auto idx = indexOf(p, ":");
if (idx < 0) return p;
return p[0 .. idx];
}
unittest {
static struct IntConfig {
int value;
alias value this;
enum invalid = IntConfig(-1);
}
static IntConfig ic(int v) { return IntConfig(v); }
static struct IntConfigs {
IntConfig[] configs;
alias configs this;
}
static IntConfigs ics(IntConfig[] cfgs) { return IntConfigs(cfgs); }
static class TestResolver : DependencyResolver!(IntConfigs, IntConfig) {
private TreeNodes[][string] m_children;
this(TreeNodes[][string] children) { m_children = children; }
protected override IntConfig[] getAllConfigs(string pack) {
auto ret = appender!(IntConfig[]);
foreach (p; m_children.byKey) {
if (p.length <= pack.length+1) continue;
if (p[0 .. pack.length] != pack || p[pack.length] != ':') continue;
auto didx = p.lastIndexOf(':');
ret ~= ic(p[didx+1 .. $].to!uint);
}
ret.data.sort!"a>b"();
return ret.data;
}
protected override IntConfig[] getSpecificConfigs(string pack, TreeNodes nodes) { return null; }
protected override TreeNodes[] getChildren(TreeNode node) { return m_children.get(node.pack ~ ":" ~ node.config.to!string(), null); }
protected override bool matches(IntConfigs configs, IntConfig config) { return configs.canFind(config); }
}
// properly back up if conflicts are detected along the way (d:2 vs d:1)
with (TestResolver) {
auto res = new TestResolver([
"a:0": [TreeNodes("b", ics([ic(2), ic(1)])), TreeNodes("d", ics([ic(1)])), TreeNodes("e", ics([ic(2), ic(1)]))],
"b:1": [TreeNodes("c", ics([ic(2), ic(1)])), TreeNodes("d", ics([ic(1)]))],
"b:2": [TreeNodes("c", ics([ic(3), ic(2)])), TreeNodes("d", ics([ic(2), ic(1)]))],
"c:1": [], "c:2": [], "c:3": [],
"d:1": [], "d:2": [],
"e:1": [], "e:2": [],
]);
assert(res.resolve(TreeNode("a", ic(0))) == ["b":ic(2), "c":ic(3), "d":ic(1), "e":ic(2)], format("%s", res.resolve(TreeNode("a", ic(0)))));
}
// handle cyclic dependencies gracefully
with (TestResolver) {
auto res = new TestResolver([
"a:0": [TreeNodes("b", ics([ic(1)]))],
"b:1": [TreeNodes("b", ics([ic(1)]))]
]);
assert(res.resolve(TreeNode("a", ic(0))) == ["b":ic(1)]);
}
// don't choose optional dependencies by default
with (TestResolver) {
auto res = new TestResolver([
"a:0": [TreeNodes("b", ics([ic(1)]), DependencyType.optional)],
"b:1": []
]);
assert(res.resolve(TreeNode("a", ic(0))).length == 0, to!string(res.resolve(TreeNode("a", ic(0)))));
}
// choose default optional dependencies by default
with (TestResolver) {
auto res = new TestResolver([
"a:0": [TreeNodes("b", ics([ic(1)]), DependencyType.optionalDefault)],
"b:1": []
]);
assert(res.resolve(TreeNode("a", ic(0))) == ["b":ic(1)], to!string(res.resolve(TreeNode("a", ic(0)))));
}
// choose optional dependency if non-optional within the dependency tree
with (TestResolver) {
auto res = new TestResolver([
"a:0": [TreeNodes("b", ics([ic(1)]), DependencyType.optional), TreeNodes("c", ics([ic(1)]))],
"b:1": [],
"c:1": [TreeNodes("b", ics([ic(1)]))]
]);
assert(res.resolve(TreeNode("a", ic(0))) == ["b":ic(1), "c":ic(1)], to!string(res.resolve(TreeNode("a", ic(0)))));
}
// don't choose optional dependency if non-optional outside of final dependency tree
with (TestResolver) {
auto res = new TestResolver([
"a:0": [TreeNodes("b", ics([ic(1)]), DependencyType.optional)],
"b:1": [],
"preset:0": [TreeNodes("b", ics([ic(1)]))]
]);
assert(res.resolve(TreeNode("a", ic(0))).length == 0, to!string(res.resolve(TreeNode("a", ic(0)))));
}
// don't choose optional dependency if non-optional in a non-selected version
with (TestResolver) {
auto res = new TestResolver([
"a:0": [TreeNodes("b", ics([ic(1), ic(2)]))],
"b:1": [TreeNodes("c", ics([ic(1)]))],
"b:2": [TreeNodes("c", ics([ic(1)]), DependencyType.optional)],
"c:1": []
]);
assert(res.resolve(TreeNode("a", ic(0))) == ["b":ic(2)], to!string(res.resolve(TreeNode("a", ic(0)))));
}
// make sure non-satisfyable dependencies are not a problem, even if non-optional in some dependencies
with (TestResolver) {
auto res = new TestResolver([
"a:0": [TreeNodes("b", ics([ic(1), ic(2)]))],
"b:1": [TreeNodes("c", ics([ic(2)]))],
"b:2": [TreeNodes("c", ics([ic(2)]), DependencyType.optional)],
"c:1": []
]);
assert(res.resolve(TreeNode("a", ic(0))) == ["b":ic(2)], to!string(res.resolve(TreeNode("a", ic(0)))));
}
}
| D |
/+
Copyright (c) 2008 Tomasz Stachowiak
Based on flectioned.d written by Thomas Kühne, Copyright (C) 2006-2007
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
+/
module ddl.host.HostAppModule;
version (Windows) { }
else
{
static assert (false, "not supported");
}
private
{
extern(C) extern void* _except_list;
extern(Windows) extern void _d_throw(void*);
}
private
{
import ddl.host.HostAppLibrary;
import ddl.DynamicModule;
import ddl.ExportSymbol;
import tango.sys.win32.UserGdi;
import tango.stdc.stringz;
import tango.stdc.stdio;
alias Exception SymbolException;
extern(Windows)
{
enum{
MAX_MODULE_NAME32 = 255,
TH32CS_SNAPMODULE = 0x00000008,
}
static if(!is(typeof(MODULEENTRY32)))
struct MODULEENTRY32 {
DWORD dwSize;
DWORD th32ModuleID;
DWORD th32ProcessID;
DWORD GlblcntUsage;
DWORD ProccntUsage;
BYTE *modBaseAddr;
DWORD modBaseSize;
HMODULE hModule;
char szModule[MAX_MODULE_NAME32 + 1];
char szExePath[MAX_PATH];
}
static if(!is(typeof(Module32First)))
BOOL Module32First(HANDLE, MODULEENTRY32*);
static if(!is(typeof(Module32Next)))
BOOL Module32Next(HANDLE, MODULEENTRY32*);
static if(!is(typeof(CreateToolhelp32Snapshot)))
HANDLE CreateToolhelp32Snapshot(DWORD,DWORD);
private{
// defining them at function level causes the wrong CallConvention
extern(Windows) BOOL function(HANDLE, PCSTR, BOOL) sym_initialize;
extern(Windows) DWORD function(HANDLE, HANDLE, PCSTR, PCSTR, DWORD, DWORD) sym_load_module;
extern(Windows) BOOL function(HANDLE, DWORD, void*, void*) sym_enumerate_symbols;
}
int add_symbol(LPSTR name, ULONG addr, ULONG size, PVOID)
{
//printf("%s"\n, name);
ExportSymbol sym;
sym.isExternal = false;
sym.type = SymbolType.Strong;
sym.address = cast(void*)addr;
sym.name = fromStringz(name).dup;
HostAppModule.addSymbol(sym);
return true;
}
void find_symbols()
{
HANDLE proc;
HANDLE snapshot;
DWORD base;
MODULEENTRY32 module_entry;
char buffer[4096];
HMODULE imagehlp;
// create snapshot
proc = GetCurrentProcess();
snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, 0);
if(!snapshot)
{
throw new SymbolException("failed: CreateToolHelp32Snapshot");
}
// init debugger helpers _after_ creating the snapshot
imagehlp = LoadLibraryA("imagehlp.dll");
if(!imagehlp)
{
throw new SymbolException("failed to load imagehlp.dll");
}
scope(exit)
{
FreeLibrary(imagehlp);
sym_initialize = null;
sym_load_module = null;
sym_enumerate_symbols = null;
}
// init imagehlp.dll helpers
sym_initialize = cast(typeof(sym_initialize)) GetProcAddress(imagehlp, "SymInitialize");
if(!sym_initialize)
{
throw new SymbolException("failed to get SymInitialize");
}
sym_load_module = cast(typeof(sym_load_module)) GetProcAddress(imagehlp, "SymLoadModule");
if(!sym_load_module)
{
throw new SymbolException("failed to get SymLoadModule");
}
sym_enumerate_symbols = cast(typeof(sym_enumerate_symbols)) GetProcAddress(imagehlp, "SymEnumerateSymbols");
if(!sym_enumerate_symbols)
{
throw new SymbolException("failed to get SymEnumerateSymbols");
}
if(!sym_initialize(proc, null, false))
{
throw new SymbolException("failed: SymInitialize");
}
// try to get the symbols of all MODULEs
module_entry.dwSize = module_entry.sizeof;
if(!Module32First(snapshot, &module_entry))
{
throw new SymbolException("failed: Module32First");
}
do {
if (GetModuleFileNameA(module_entry.hModule, buffer.ptr, buffer.length))
{
base = sym_load_module(proc, HANDLE.init, buffer.ptr, null, 0, 0);
if (base)
{
sym_enumerate_symbols(proc, base, &add_symbol, null);
}
}
} while(Module32Next(snapshot, &module_entry));
addExtraSymbols();
}
void addExtraSymbols() {
HostAppModule.addSymbol(ExportSymbol(false, SymbolType.Strong, &_except_list, "__except_list"));
HostAppModule.addSymbol(ExportSymbol(false, SymbolType.Strong, &_d_throw, "__d_throw@4"));
}
}
}
class HostAppModule : DynamicModule {
this() {
synchronized (this.classinfo) {
if (!_initialized) {
_initialized = true;
find_symbols();
}
}
}
override char[] getName() {
return null;
}
override ExportSymbol[] getSymbols() {
return _symbols;
}
override ExportSymbolPtr getSymbol(char[] name) {
uint* idx = null;
if (name.length > 1 && '_' == name[0]) {
idx = name[1..$] in _symbolMap;
}
if (idx is null) {
idx = name in _symbolMap;
}
if (idx is null) {
return &ExportSymbol.NONE;
} else {
return &_symbols[*idx];
}
}
override void resolveFixups() {
}
override bool isResolved() {
return true;
}
private {
static void addSymbol(ExportSymbol sym) {
_symbolMap[sym.name] = _symbols.length;
_symbols ~= sym;
}
static bool _initialized;
static ExportSymbol[] _symbols;
static uint[char[]] _symbolMap;
}
}
| D |
/Users/ellen/Desktop/Dicee/build/Dicee.build/Debug-iphoneos/Dicee.build/Objects-normal/arm64/ViewController.o : /Users/ellen/Desktop/Dicee/Dicee/AppDelegate.swift /Users/ellen/Desktop/Dicee/Dicee/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/ellen/Desktop/Dicee/build/Dicee.build/Debug-iphoneos/Dicee.build/Objects-normal/arm64/ViewController~partial.swiftmodule : /Users/ellen/Desktop/Dicee/Dicee/AppDelegate.swift /Users/ellen/Desktop/Dicee/Dicee/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/ellen/Desktop/Dicee/build/Dicee.build/Debug-iphoneos/Dicee.build/Objects-normal/arm64/ViewController~partial.swiftdoc : /Users/ellen/Desktop/Dicee/Dicee/AppDelegate.swift /Users/ellen/Desktop/Dicee/Dicee/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
/* REQUIRED_ARGS: -main -de
* TEST_OUTPUT:
---
fail_compilation/test11006.d(10): Deprecation: cannot subtract pointers to different types: `void*` and `int*`.
fail_compilation/test11006.d(10): while evaluating: `static assert(2L == 2L)`
fail_compilation/test11006.d(11): Deprecation: cannot subtract pointers to different types: `int*` and `void*`.
fail_compilation/test11006.d(11): while evaluating: `static assert(8L == 8L)`
---
*/
static assert(cast(void*)8 - cast(int*) 0 == 2L);
static assert(cast(int*) 8 - cast(void*)0 == 8L);
| D |
/*
* This file generated automatically from xinerama.xml by d_client.py.
* Edit at your peril.
*/
/**
* @defgroup XCB_Xinerama_API XCB Xinerama API
* @brief Xinerama XCB Protocol Implementation.
* @{
**/
module xcb.xinerama;
import xcb.xcb;
import xcb.xproto;
extern (C):
enum int XCB_XINERAMA_MAJOR_VERSION = 1;
enum int XCB_XINERAMA_MINOR_VERSION = 1;
extern (C) __gshared extern xcb_extension_t xcb_xinerama_id;
/**
* @brief xcb_xinerama_screen_info_t
**/
struct xcb_xinerama_screen_info_t {
short x_org; /**< */
short y_org; /**< */
ushort width; /**< */
ushort height; /**< */
}
/**
* @brief xcb_xinerama_screen_info_iterator_t
**/
struct xcb_xinerama_screen_info_iterator_t {
xcb_xinerama_screen_info_t* data; /**< */
int rem; /**< */
int index; /**< */
}
/**
* @brief xcb_xinerama_query_version_cookie_t
**/
struct xcb_xinerama_query_version_cookie_t {
uint sequence; /**< */
}
/** Opcode for xcb_xinerama_query_version. */
enum XCB_XINERAMA_QUERY_VERSION = 0;
/**
* @brief xcb_xinerama_query_version_request_t
**/
struct xcb_xinerama_query_version_request_t {
ubyte major_opcode; /**< */
ubyte minor_opcode; /**< */
ushort length; /**< */
ubyte major; /**< */
ubyte minor; /**< */
}
/**
* @brief xcb_xinerama_query_version_reply_t
**/
struct xcb_xinerama_query_version_reply_t {
ubyte response_type; /**< */
ubyte pad0; /**< */
ushort sequence; /**< */
uint length; /**< */
ushort major; /**< */
ushort minor; /**< */
}
/**
* @brief xcb_xinerama_get_state_cookie_t
**/
struct xcb_xinerama_get_state_cookie_t {
uint sequence; /**< */
}
/** Opcode for xcb_xinerama_get_state. */
enum XCB_XINERAMA_GET_STATE = 1;
/**
* @brief xcb_xinerama_get_state_request_t
**/
struct xcb_xinerama_get_state_request_t {
ubyte major_opcode; /**< */
ubyte minor_opcode; /**< */
ushort length; /**< */
xcb_window_t window; /**< */
}
/**
* @brief xcb_xinerama_get_state_reply_t
**/
struct xcb_xinerama_get_state_reply_t {
ubyte response_type; /**< */
ubyte state; /**< */
ushort sequence; /**< */
uint length; /**< */
xcb_window_t window; /**< */
}
/**
* @brief xcb_xinerama_get_screen_count_cookie_t
**/
struct xcb_xinerama_get_screen_count_cookie_t {
uint sequence; /**< */
}
/** Opcode for xcb_xinerama_get_screen_count. */
enum XCB_XINERAMA_GET_SCREEN_COUNT = 2;
/**
* @brief xcb_xinerama_get_screen_count_request_t
**/
struct xcb_xinerama_get_screen_count_request_t {
ubyte major_opcode; /**< */
ubyte minor_opcode; /**< */
ushort length; /**< */
xcb_window_t window; /**< */
}
/**
* @brief xcb_xinerama_get_screen_count_reply_t
**/
struct xcb_xinerama_get_screen_count_reply_t {
ubyte response_type; /**< */
ubyte screen_count; /**< */
ushort sequence; /**< */
uint length; /**< */
xcb_window_t window; /**< */
}
/**
* @brief xcb_xinerama_get_screen_size_cookie_t
**/
struct xcb_xinerama_get_screen_size_cookie_t {
uint sequence; /**< */
}
/** Opcode for xcb_xinerama_get_screen_size. */
enum XCB_XINERAMA_GET_SCREEN_SIZE = 3;
/**
* @brief xcb_xinerama_get_screen_size_request_t
**/
struct xcb_xinerama_get_screen_size_request_t {
ubyte major_opcode; /**< */
ubyte minor_opcode; /**< */
ushort length; /**< */
xcb_window_t window; /**< */
uint screen; /**< */
}
/**
* @brief xcb_xinerama_get_screen_size_reply_t
**/
struct xcb_xinerama_get_screen_size_reply_t {
ubyte response_type; /**< */
ubyte pad0; /**< */
ushort sequence; /**< */
uint length; /**< */
uint width; /**< */
uint height; /**< */
xcb_window_t window; /**< */
uint screen; /**< */
}
/**
* @brief xcb_xinerama_is_active_cookie_t
**/
struct xcb_xinerama_is_active_cookie_t {
uint sequence; /**< */
}
/** Opcode for xcb_xinerama_is_active. */
enum XCB_XINERAMA_IS_ACTIVE = 4;
/**
* @brief xcb_xinerama_is_active_request_t
**/
struct xcb_xinerama_is_active_request_t {
ubyte major_opcode; /**< */
ubyte minor_opcode; /**< */
ushort length; /**< */
}
/**
* @brief xcb_xinerama_is_active_reply_t
**/
struct xcb_xinerama_is_active_reply_t {
ubyte response_type; /**< */
ubyte pad0; /**< */
ushort sequence; /**< */
uint length; /**< */
uint state; /**< */
}
/**
* @brief xcb_xinerama_query_screens_cookie_t
**/
struct xcb_xinerama_query_screens_cookie_t {
uint sequence; /**< */
}
/** Opcode for xcb_xinerama_query_screens. */
enum XCB_XINERAMA_QUERY_SCREENS = 5;
/**
* @brief xcb_xinerama_query_screens_request_t
**/
struct xcb_xinerama_query_screens_request_t {
ubyte major_opcode; /**< */
ubyte minor_opcode; /**< */
ushort length; /**< */
}
/**
* @brief xcb_xinerama_query_screens_reply_t
**/
struct xcb_xinerama_query_screens_reply_t {
ubyte response_type; /**< */
ubyte pad0; /**< */
ushort sequence; /**< */
uint length; /**< */
uint number; /**< */
ubyte[20] pad1; /**< */
}
/**
* Get the next element of the iterator
* @param i Pointer to a xcb_xinerama_screen_info_iterator_t
*
* Get the next element in the iterator. The member rem is
* decreased by one. The member data points to the next
* element. The member index is increased by sizeof(xcb_xinerama_screen_info_t)
*/
void xcb_xinerama_screen_info_next(xcb_xinerama_screen_info_iterator_t* i /**< */ );
/**
* Return the iterator pointing to the last element
* @param i An xcb_xinerama_screen_info_iterator_t
* @return The iterator pointing to the last element
*
* Set the current element in the iterator to the last element.
* The member rem is set to 0. The member data points to the
* last element.
*/
xcb_generic_iterator_t xcb_xinerama_screen_info_end(xcb_xinerama_screen_info_iterator_t i /**< */ );
/**
*
* @param c The connection
* @return A cookie
*
* Delivers a request to the X server.
*
*/
xcb_xinerama_query_version_cookie_t xcb_xinerama_query_version(xcb_connection_t* c /**< */ , ubyte major /**< */ , ubyte minor /**< */ );
/**
*
* @param c The connection
* @return A cookie
*
* Delivers a request to the X server.
*
* This form can be used only if the request will cause
* a reply to be generated. Any returned error will be
* placed in the event queue.
*/
xcb_xinerama_query_version_cookie_t xcb_xinerama_query_version_unchecked(xcb_connection_t* c /**< */ , ubyte major /**< */ ,
ubyte minor /**< */ );
/**
* Return the reply
* @param c The connection
* @param cookie The cookie
* @param e The xcb_generic_error_t supplied
*
* Returns the reply of the request asked by
*
* The parameter @p e supplied to this function must be NULL if
* xcb_xinerama_query_version_unchecked(). is used.
* Otherwise, it stores the error if any.
*
* The returned value must be freed by the caller using free().
*/
xcb_xinerama_query_version_reply_t* xcb_xinerama_query_version_reply(xcb_connection_t* c /**< */ ,
xcb_xinerama_query_version_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ );
/**
*
* @param c The connection
* @return A cookie
*
* Delivers a request to the X server.
*
*/
xcb_xinerama_get_state_cookie_t xcb_xinerama_get_state(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ );
/**
*
* @param c The connection
* @return A cookie
*
* Delivers a request to the X server.
*
* This form can be used only if the request will cause
* a reply to be generated. Any returned error will be
* placed in the event queue.
*/
xcb_xinerama_get_state_cookie_t xcb_xinerama_get_state_unchecked(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ );
/**
* Return the reply
* @param c The connection
* @param cookie The cookie
* @param e The xcb_generic_error_t supplied
*
* Returns the reply of the request asked by
*
* The parameter @p e supplied to this function must be NULL if
* xcb_xinerama_get_state_unchecked(). is used.
* Otherwise, it stores the error if any.
*
* The returned value must be freed by the caller using free().
*/
xcb_xinerama_get_state_reply_t* xcb_xinerama_get_state_reply(xcb_connection_t* c /**< */ , xcb_xinerama_get_state_cookie_t cookie /**< */ ,
xcb_generic_error_t** e /**< */ );
/**
*
* @param c The connection
* @return A cookie
*
* Delivers a request to the X server.
*
*/
xcb_xinerama_get_screen_count_cookie_t xcb_xinerama_get_screen_count(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ );
/**
*
* @param c The connection
* @return A cookie
*
* Delivers a request to the X server.
*
* This form can be used only if the request will cause
* a reply to be generated. Any returned error will be
* placed in the event queue.
*/
xcb_xinerama_get_screen_count_cookie_t xcb_xinerama_get_screen_count_unchecked(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ );
/**
* Return the reply
* @param c The connection
* @param cookie The cookie
* @param e The xcb_generic_error_t supplied
*
* Returns the reply of the request asked by
*
* The parameter @p e supplied to this function must be NULL if
* xcb_xinerama_get_screen_count_unchecked(). is used.
* Otherwise, it stores the error if any.
*
* The returned value must be freed by the caller using free().
*/
xcb_xinerama_get_screen_count_reply_t* xcb_xinerama_get_screen_count_reply(xcb_connection_t* c /**< */ ,
xcb_xinerama_get_screen_count_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ );
/**
*
* @param c The connection
* @return A cookie
*
* Delivers a request to the X server.
*
*/
xcb_xinerama_get_screen_size_cookie_t xcb_xinerama_get_screen_size(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ ,
uint screen /**< */ );
/**
*
* @param c The connection
* @return A cookie
*
* Delivers a request to the X server.
*
* This form can be used only if the request will cause
* a reply to be generated. Any returned error will be
* placed in the event queue.
*/
xcb_xinerama_get_screen_size_cookie_t xcb_xinerama_get_screen_size_unchecked(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ ,
uint screen /**< */ );
/**
* Return the reply
* @param c The connection
* @param cookie The cookie
* @param e The xcb_generic_error_t supplied
*
* Returns the reply of the request asked by
*
* The parameter @p e supplied to this function must be NULL if
* xcb_xinerama_get_screen_size_unchecked(). is used.
* Otherwise, it stores the error if any.
*
* The returned value must be freed by the caller using free().
*/
xcb_xinerama_get_screen_size_reply_t* xcb_xinerama_get_screen_size_reply(xcb_connection_t* c /**< */ ,
xcb_xinerama_get_screen_size_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ );
/**
*
* @param c The connection
* @return A cookie
*
* Delivers a request to the X server.
*
*/
xcb_xinerama_is_active_cookie_t xcb_xinerama_is_active(xcb_connection_t* c /**< */ );
/**
*
* @param c The connection
* @return A cookie
*
* Delivers a request to the X server.
*
* This form can be used only if the request will cause
* a reply to be generated. Any returned error will be
* placed in the event queue.
*/
xcb_xinerama_is_active_cookie_t xcb_xinerama_is_active_unchecked(xcb_connection_t* c /**< */ );
/**
* Return the reply
* @param c The connection
* @param cookie The cookie
* @param e The xcb_generic_error_t supplied
*
* Returns the reply of the request asked by
*
* The parameter @p e supplied to this function must be NULL if
* xcb_xinerama_is_active_unchecked(). is used.
* Otherwise, it stores the error if any.
*
* The returned value must be freed by the caller using free().
*/
xcb_xinerama_is_active_reply_t* xcb_xinerama_is_active_reply(xcb_connection_t* c /**< */ , xcb_xinerama_is_active_cookie_t cookie /**< */ ,
xcb_generic_error_t** e /**< */ );
int xcb_xinerama_query_screens_sizeof(const void* _buffer /**< */ );
/**
*
* @param c The connection
* @return A cookie
*
* Delivers a request to the X server.
*
*/
xcb_xinerama_query_screens_cookie_t xcb_xinerama_query_screens(xcb_connection_t* c /**< */ );
/**
*
* @param c The connection
* @return A cookie
*
* Delivers a request to the X server.
*
* This form can be used only if the request will cause
* a reply to be generated. Any returned error will be
* placed in the event queue.
*/
xcb_xinerama_query_screens_cookie_t xcb_xinerama_query_screens_unchecked(xcb_connection_t* c /**< */ );
xcb_xinerama_screen_info_t* xcb_xinerama_query_screens_screen_info(const xcb_xinerama_query_screens_reply_t* R /**< */ );
int xcb_xinerama_query_screens_screen_info_length(const xcb_xinerama_query_screens_reply_t* R /**< */ );
xcb_xinerama_screen_info_iterator_t xcb_xinerama_query_screens_screen_info_iterator(const xcb_xinerama_query_screens_reply_t* R /**< */ );
/**
* Return the reply
* @param c The connection
* @param cookie The cookie
* @param e The xcb_generic_error_t supplied
*
* Returns the reply of the request asked by
*
* The parameter @p e supplied to this function must be NULL if
* xcb_xinerama_query_screens_unchecked(). is used.
* Otherwise, it stores the error if any.
*
* The returned value must be freed by the caller using free().
*/
xcb_xinerama_query_screens_reply_t* xcb_xinerama_query_screens_reply(xcb_connection_t* c /**< */ ,
xcb_xinerama_query_screens_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ );
/**
* @}
*/
| D |
/Users/MohamedNawar/Desktop/appointment/build/appointment.build/Debug-iphonesimulator/appointment.build/Objects-normal/x86_64/employeeTableViewCell.o : /Users/MohamedNawar/Desktop/appointment/appointment/ApplicationModules/MainWeatherView/View/AppointmentVC.swift /Users/MohamedNawar/Desktop/appointment/appointment/Extensions/AppStoryboard.swift /Users/MohamedNawar/Desktop/appointment/appointment/Resources/SceneDelegate.swift /Users/MohamedNawar/Desktop/appointment/appointment/Resources/AppDelegate.swift /Users/MohamedNawar/Desktop/appointment/appointment/ApplicationModules/MainWeatherView/View/Cells/employeeDataCell.swift /Users/MohamedNawar/Desktop/appointment/appointment/ApplicationModules/MainWeatherView/View/Cells/DetailsCell.swift /Users/MohamedNawar/Desktop/appointment/appointment/ApplicationModules/MainWeatherView/View/Cells/employeeTableViewCell.swift /Users/MohamedNawar/Desktop/appointment/appointment/Extensions/ViewExtension.swift /Users/MohamedNawar/Desktop/appointment/appointment/Extensions/UITableViewExtension.swift /Users/MohamedNawar/Desktop/appointment/appointment/Extensions/ErrorHandler.swift /Users/MohamedNawar/Desktop/appointment/appointment/ApplicationModules/MainWeatherView/Interactor/AppointmentInteractor.swift /Users/MohamedNawar/Desktop/appointment/appointment/Resources/NetworkRequest.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Accelerate.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/os.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Accelerate.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/PKHUD/PKHUD.framework/Modules/PKHUD.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Modules/Kingfisher.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD-umbrella.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendar-umbrella.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher-umbrella.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarAppearance.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarCell.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendar.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarDynamicHeader.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarStickyHeader.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarCalculator.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarTransitionCoordinator.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarExtensions.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarConstants.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD-Swift.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher-Swift.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarCollectionViewLayout.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarSeparatorDecorationView.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarCollectionView.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarHeaderView.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarWeekdayView.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarDelegationFactory.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarDelegationProxy.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/PKHUD/PKHUD.framework/Modules/module.modulemap /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Modules/module.modulemap /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/MohamedNawar/Desktop/appointment/build/appointment.build/Debug-iphonesimulator/appointment.build/Objects-normal/x86_64/employeeTableViewCell~partial.swiftmodule : /Users/MohamedNawar/Desktop/appointment/appointment/ApplicationModules/MainWeatherView/View/AppointmentVC.swift /Users/MohamedNawar/Desktop/appointment/appointment/Extensions/AppStoryboard.swift /Users/MohamedNawar/Desktop/appointment/appointment/Resources/SceneDelegate.swift /Users/MohamedNawar/Desktop/appointment/appointment/Resources/AppDelegate.swift /Users/MohamedNawar/Desktop/appointment/appointment/ApplicationModules/MainWeatherView/View/Cells/employeeDataCell.swift /Users/MohamedNawar/Desktop/appointment/appointment/ApplicationModules/MainWeatherView/View/Cells/DetailsCell.swift /Users/MohamedNawar/Desktop/appointment/appointment/ApplicationModules/MainWeatherView/View/Cells/employeeTableViewCell.swift /Users/MohamedNawar/Desktop/appointment/appointment/Extensions/ViewExtension.swift /Users/MohamedNawar/Desktop/appointment/appointment/Extensions/UITableViewExtension.swift /Users/MohamedNawar/Desktop/appointment/appointment/Extensions/ErrorHandler.swift /Users/MohamedNawar/Desktop/appointment/appointment/ApplicationModules/MainWeatherView/Interactor/AppointmentInteractor.swift /Users/MohamedNawar/Desktop/appointment/appointment/Resources/NetworkRequest.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Accelerate.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/os.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Accelerate.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/PKHUD/PKHUD.framework/Modules/PKHUD.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Modules/Kingfisher.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD-umbrella.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendar-umbrella.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher-umbrella.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarAppearance.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarCell.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendar.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarDynamicHeader.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarStickyHeader.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarCalculator.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarTransitionCoordinator.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarExtensions.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarConstants.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD-Swift.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher-Swift.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarCollectionViewLayout.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarSeparatorDecorationView.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarCollectionView.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarHeaderView.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarWeekdayView.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarDelegationFactory.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarDelegationProxy.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/PKHUD/PKHUD.framework/Modules/module.modulemap /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Modules/module.modulemap /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/MohamedNawar/Desktop/appointment/build/appointment.build/Debug-iphonesimulator/appointment.build/Objects-normal/x86_64/employeeTableViewCell~partial.swiftdoc : /Users/MohamedNawar/Desktop/appointment/appointment/ApplicationModules/MainWeatherView/View/AppointmentVC.swift /Users/MohamedNawar/Desktop/appointment/appointment/Extensions/AppStoryboard.swift /Users/MohamedNawar/Desktop/appointment/appointment/Resources/SceneDelegate.swift /Users/MohamedNawar/Desktop/appointment/appointment/Resources/AppDelegate.swift /Users/MohamedNawar/Desktop/appointment/appointment/ApplicationModules/MainWeatherView/View/Cells/employeeDataCell.swift /Users/MohamedNawar/Desktop/appointment/appointment/ApplicationModules/MainWeatherView/View/Cells/DetailsCell.swift /Users/MohamedNawar/Desktop/appointment/appointment/ApplicationModules/MainWeatherView/View/Cells/employeeTableViewCell.swift /Users/MohamedNawar/Desktop/appointment/appointment/Extensions/ViewExtension.swift /Users/MohamedNawar/Desktop/appointment/appointment/Extensions/UITableViewExtension.swift /Users/MohamedNawar/Desktop/appointment/appointment/Extensions/ErrorHandler.swift /Users/MohamedNawar/Desktop/appointment/appointment/ApplicationModules/MainWeatherView/Interactor/AppointmentInteractor.swift /Users/MohamedNawar/Desktop/appointment/appointment/Resources/NetworkRequest.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Accelerate.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/os.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Accelerate.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/PKHUD/PKHUD.framework/Modules/PKHUD.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Modules/Kingfisher.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD-umbrella.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendar-umbrella.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher-umbrella.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarAppearance.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarCell.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendar.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarDynamicHeader.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarStickyHeader.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarCalculator.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarTransitionCoordinator.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarExtensions.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarConstants.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD-Swift.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher-Swift.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarCollectionViewLayout.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarSeparatorDecorationView.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarCollectionView.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarHeaderView.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarWeekdayView.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarDelegationFactory.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Headers/FSCalendarDelegationProxy.h /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/PKHUD/PKHUD.framework/Modules/module.modulemap /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/FSCalendar/FSCalendar.framework/Modules/module.modulemap /Users/MohamedNawar/Desktop/appointment/build/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
void main()
{
auto hwkv = readln.split.to!(long[]);
auto H = hwkv[0];
auto W = hwkv[1];
auto K = hwkv[2];
auto V = hwkv[3];
auto CS = new long[][](H, W);
foreach (i; 0..H) {
foreach (j, a; readln.split.to!(long[])) {
if (i > 0) a += CS[i-1][j];
if (j > 0) a += CS[i][j-1];
if (i > 0 && j > 0) a -= CS[i-1][j-1];
CS[i][j] = a;
}
}
long r;
foreach (i; 0..H) {
foreach (j; 0..W) {
foreach (y; i..H) {
foreach (x; j..W) {
auto v = (y-i+1) * (x-j+1) * K + CS[y][x];
if (i > 0) v -= CS[i-1][x];
if (j > 0) v -= CS[y][j-1];
if (i > 0 && j > 0) v += CS[i-1][j-1];
if (v <= V) r = max(r, (y-i+1) * (x-j+1));
}
}
}
}
writeln(r);
} | D |
/Users/thendral/POC/vapor/Friends/.build/debug/Leaf.build/Context.swift.o : /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Argument.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Byte+Leaf.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Constants.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Context.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/HTMLEscape.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Leaf.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/LeafComponent.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/LeafError.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Link.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/List.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Node+Rendered.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/NSData+File.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Parameter.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Stem+Render.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Stem+Spawn.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Stem.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Buffer/Buffer+Leaf.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Buffer/Buffer.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Buffer/BufferProtocol.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/BasicTag.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Tag.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/TagTemplate.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Else.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Embed.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Equal.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Export.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Extend.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/If.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Import.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Index.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Loop.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Raw.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Uppercased.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Variable.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/Core.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/libc.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/Node.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/PathIndexable.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/Polymorphic.swiftmodule
/Users/thendral/POC/vapor/Friends/.build/debug/Leaf.build/Context~partial.swiftmodule : /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Argument.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Byte+Leaf.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Constants.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Context.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/HTMLEscape.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Leaf.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/LeafComponent.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/LeafError.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Link.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/List.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Node+Rendered.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/NSData+File.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Parameter.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Stem+Render.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Stem+Spawn.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Stem.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Buffer/Buffer+Leaf.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Buffer/Buffer.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Buffer/BufferProtocol.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/BasicTag.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Tag.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/TagTemplate.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Else.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Embed.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Equal.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Export.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Extend.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/If.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Import.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Index.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Loop.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Raw.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Uppercased.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Variable.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/Core.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/libc.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/Node.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/PathIndexable.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/Polymorphic.swiftmodule
/Users/thendral/POC/vapor/Friends/.build/debug/Leaf.build/Context~partial.swiftdoc : /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Argument.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Byte+Leaf.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Constants.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Context.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/HTMLEscape.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Leaf.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/LeafComponent.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/LeafError.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Link.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/List.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Node+Rendered.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/NSData+File.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Parameter.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Stem+Render.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Stem+Spawn.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Stem.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Buffer/Buffer+Leaf.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Buffer/Buffer.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Buffer/BufferProtocol.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/BasicTag.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Tag.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/TagTemplate.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Else.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Embed.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Equal.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Export.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Extend.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/If.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Import.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Index.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Loop.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Raw.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Uppercased.swift /Users/thendral/POC/vapor/Friends/Packages/Leaf-1.0.5/Sources/Leaf/Tag/Models/Variable.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/Core.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/libc.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/Node.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/PathIndexable.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/Polymorphic.swiftmodule
| D |
/*
TEST_OUTPUT:
---
fail_compilation/ice13459.d(12): Error: undefined identifier 'B'
fail_compilation/ice13459.d(18): Error: none of the overloads of 'opSlice' are callable using argument types (int, int), candidates are:
fail_compilation/ice13459.d(11): ice13459.A.opSlice()
---
*/
struct A
{
auto opSlice() {}
auto opSlice() { return B; }
}
void main()
{
auto df = A();
foreach (fi; df[0..0]) {}
}
| D |
/Users/harry/Desktop/sportsUp/Build/Intermediates/sportsUp.build/Debug-iphoneos/sportsUp.build/Objects-normal/armv7/GetUserRequestModel.o : /Users/harry/Desktop/sportsUp/sportsUp/AppDelegate.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventDetailResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/CreateStadiumResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/GetStadiumResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/LoginResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/RegisterResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EnrollEventResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/UnrollEventResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/NewEventResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventListResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventDetailModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventListItemModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/StadiumModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/UserModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventDetailRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/CreateStadiumRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/GetStadiumRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/LoginRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/GetUserRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/RegisterRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EnrollEventRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/UnrollEventRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/NewEventRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventListRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/views/ProfileTableViewCell.swift /Users/harry/Desktop/sportsUp/sportsUp/views/EventsTableViewCell.swift /Users/harry/Desktop/sportsUp/sportsUp/views/AddEventTableViewCell.swift /Users/harry/Desktop/sportsUp/sportsUp/views/UsersInEventTableViewCell.swift /Users/harry/Desktop/sportsUp/sportsUp/views/ActivityTableViewCell.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/customedUINavigationController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/CustomedTabBarController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/LoginPageUiewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/ProfileTableViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/EventsTableViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/AddEventTableViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/UsersInEventTableViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/ActivityTableViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/EventDetailViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/AddEventDetailViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/LaunchScreenViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/RegisterViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/SecondRegisterViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/tools/Tools.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreLocation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/MapKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/SwiftOnoneSupport.swiftmodule
/Users/harry/Desktop/sportsUp/Build/Intermediates/sportsUp.build/Debug-iphoneos/sportsUp.build/Objects-normal/armv7/GetUserRequestModel~partial.swiftmodule : /Users/harry/Desktop/sportsUp/sportsUp/AppDelegate.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventDetailResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/CreateStadiumResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/GetStadiumResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/LoginResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/RegisterResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EnrollEventResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/UnrollEventResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/NewEventResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventListResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventDetailModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventListItemModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/StadiumModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/UserModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventDetailRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/CreateStadiumRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/GetStadiumRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/LoginRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/GetUserRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/RegisterRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EnrollEventRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/UnrollEventRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/NewEventRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventListRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/views/ProfileTableViewCell.swift /Users/harry/Desktop/sportsUp/sportsUp/views/EventsTableViewCell.swift /Users/harry/Desktop/sportsUp/sportsUp/views/AddEventTableViewCell.swift /Users/harry/Desktop/sportsUp/sportsUp/views/UsersInEventTableViewCell.swift /Users/harry/Desktop/sportsUp/sportsUp/views/ActivityTableViewCell.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/customedUINavigationController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/CustomedTabBarController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/LoginPageUiewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/ProfileTableViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/EventsTableViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/AddEventTableViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/UsersInEventTableViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/ActivityTableViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/EventDetailViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/AddEventDetailViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/LaunchScreenViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/RegisterViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/SecondRegisterViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/tools/Tools.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreLocation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/MapKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/SwiftOnoneSupport.swiftmodule
/Users/harry/Desktop/sportsUp/Build/Intermediates/sportsUp.build/Debug-iphoneos/sportsUp.build/Objects-normal/armv7/GetUserRequestModel~partial.swiftdoc : /Users/harry/Desktop/sportsUp/sportsUp/AppDelegate.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventDetailResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/CreateStadiumResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/GetStadiumResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/LoginResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/RegisterResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EnrollEventResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/UnrollEventResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/NewEventResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventListResponseModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventDetailModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventListItemModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/StadiumModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/UserModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventDetailRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/CreateStadiumRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/GetStadiumRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/LoginRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/GetUserRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/RegisterRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EnrollEventRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/UnrollEventRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/NewEventRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/models/EventListRequestModel.swift /Users/harry/Desktop/sportsUp/sportsUp/views/ProfileTableViewCell.swift /Users/harry/Desktop/sportsUp/sportsUp/views/EventsTableViewCell.swift /Users/harry/Desktop/sportsUp/sportsUp/views/AddEventTableViewCell.swift /Users/harry/Desktop/sportsUp/sportsUp/views/UsersInEventTableViewCell.swift /Users/harry/Desktop/sportsUp/sportsUp/views/ActivityTableViewCell.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/customedUINavigationController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/CustomedTabBarController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/LoginPageUiewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/ProfileTableViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/EventsTableViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/AddEventTableViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/UsersInEventTableViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/ActivityTableViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/EventDetailViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/AddEventDetailViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/LaunchScreenViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/RegisterViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/controllers/SecondRegisterViewController.swift /Users/harry/Desktop/sportsUp/sportsUp/tools/Tools.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreLocation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/MapKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/SwiftOnoneSupport.swiftmodule
| D |
/Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Runtime.build/Metadata/TupleMetadata.swift.o : /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/Metadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/TupleMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/ProtocolMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/EnumMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/FuntionMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/ClassMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/StructMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/Kind.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ValueWitnessTable.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/TypeInfoConvertible.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/MetadataType.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/NominalMetadataType.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/MetadataLayoutType.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/Case.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Factory/DefaultValue.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/Union.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/TypeInfo.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/FunctionInfo.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/PropertyInfo.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/TargetTypeGenericContextDescriptorHeader.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ClassHeader.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ProtocolTypeContainer.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ExistentialContainter.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/RelativePointer.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/RelativeVectorPointer.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/Vector.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/FieldDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/TypeDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/EnumTypeDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ClassTypeDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/StructTypeDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ProtocolDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Utilities/String+Extensions.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Utilities/Pointer+Extensions.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/Pointers.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Utilities/GettersSetters.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/Errors.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Utilities/RetainCounts.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/TupleMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ProtocolMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/EnumMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/FunctionMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ClassMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/StructMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Factory/Factory.swift /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/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/CRuntime/Sources/CRuntime/CRuntime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/dyld.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOHTTP2.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/_Vapor3.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOHPACK.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/GraphQL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOSSL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOBoringSSL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CCryptoBoringSSL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CJWTKitBoringSSL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FCM.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/BSON.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FineJSON.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MySQLNIO.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SQLiteNIO.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/PostgresNIO.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/APNS.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/JWT.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOExtrasZlib.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Backtrace.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CBacktrace.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ProtocolConformance.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Runtime.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/OpenCombine.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ProtocolType.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MongoKittenCore.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MongoCore.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/WebSocketInfrastructure.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ApodiniDatabase.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ProtobufferCoding.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Casting.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/OpenCombineDispatch.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Apodini.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SQLKitBenchmark.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MongoKitten.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOHTTPCompression.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/OpenCombineFoundation.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SwifCron.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/_MongoKittenCrypto.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CURLParser.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/RichJSONParser.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CMultipartParser.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentMySQLDriver.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentSQLiteDriver.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentMongoDriver.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentPostgresDriver.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/XCTVapor.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/AssociatedTypeRequirementsVisitor.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOExtras.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Jobs.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Metrics.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CoreMetrics.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOTransportServices.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOTestUtils.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Yams.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/_NIO1APIShims.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOBoringSSLShims.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CCryptoBoringSSLShims.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Notifications.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/COpenCombineHelpers.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ValuePointers.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/APNSwift.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/OpenAPIKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SQLKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MySQLKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/JWTKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/AsyncKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ConsoleKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SQLiteKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/RoutingKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/PostgresKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/WebSocketKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MultipartKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/AsyncHTTPClient.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/DNSClient.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MongoClient.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/XCTFluent.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CContext.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Meow.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/CRuntime/Sources/CRuntime/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.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/MacOSX11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Runtime.build/Metadata/TupleMetadata~partial.swiftmodule : /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/Metadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/TupleMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/ProtocolMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/EnumMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/FuntionMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/ClassMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/StructMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/Kind.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ValueWitnessTable.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/TypeInfoConvertible.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/MetadataType.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/NominalMetadataType.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/MetadataLayoutType.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/Case.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Factory/DefaultValue.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/Union.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/TypeInfo.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/FunctionInfo.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/PropertyInfo.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/TargetTypeGenericContextDescriptorHeader.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ClassHeader.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ProtocolTypeContainer.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ExistentialContainter.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/RelativePointer.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/RelativeVectorPointer.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/Vector.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/FieldDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/TypeDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/EnumTypeDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ClassTypeDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/StructTypeDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ProtocolDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Utilities/String+Extensions.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Utilities/Pointer+Extensions.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/Pointers.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Utilities/GettersSetters.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/Errors.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Utilities/RetainCounts.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/TupleMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ProtocolMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/EnumMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/FunctionMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ClassMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/StructMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Factory/Factory.swift /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/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/CRuntime/Sources/CRuntime/CRuntime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/dyld.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOHTTP2.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/_Vapor3.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOHPACK.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/GraphQL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOSSL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOBoringSSL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CCryptoBoringSSL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CJWTKitBoringSSL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FCM.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/BSON.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FineJSON.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MySQLNIO.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SQLiteNIO.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/PostgresNIO.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/APNS.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/JWT.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOExtrasZlib.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Backtrace.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CBacktrace.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ProtocolConformance.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Runtime.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/OpenCombine.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ProtocolType.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MongoKittenCore.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MongoCore.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/WebSocketInfrastructure.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ApodiniDatabase.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ProtobufferCoding.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Casting.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/OpenCombineDispatch.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Apodini.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SQLKitBenchmark.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MongoKitten.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOHTTPCompression.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/OpenCombineFoundation.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SwifCron.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/_MongoKittenCrypto.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CURLParser.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/RichJSONParser.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CMultipartParser.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentMySQLDriver.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentSQLiteDriver.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentMongoDriver.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentPostgresDriver.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/XCTVapor.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/AssociatedTypeRequirementsVisitor.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOExtras.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Jobs.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Metrics.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CoreMetrics.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOTransportServices.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOTestUtils.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Yams.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/_NIO1APIShims.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOBoringSSLShims.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CCryptoBoringSSLShims.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Notifications.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/COpenCombineHelpers.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ValuePointers.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/APNSwift.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/OpenAPIKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SQLKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MySQLKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/JWTKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/AsyncKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ConsoleKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SQLiteKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/RoutingKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/PostgresKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/WebSocketKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MultipartKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/AsyncHTTPClient.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/DNSClient.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MongoClient.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/XCTFluent.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CContext.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Meow.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/CRuntime/Sources/CRuntime/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.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/MacOSX11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Runtime.build/Metadata/TupleMetadata~partial.swiftdoc : /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/Metadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/TupleMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/ProtocolMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/EnumMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/FuntionMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/ClassMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/StructMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/Kind.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ValueWitnessTable.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/TypeInfoConvertible.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/MetadataType.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/NominalMetadataType.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/MetadataLayoutType.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/Case.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Factory/DefaultValue.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/Union.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/TypeInfo.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/FunctionInfo.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/PropertyInfo.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/TargetTypeGenericContextDescriptorHeader.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ClassHeader.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ProtocolTypeContainer.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ExistentialContainter.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/RelativePointer.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/RelativeVectorPointer.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/Vector.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/FieldDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/TypeDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/EnumTypeDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ClassTypeDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/StructTypeDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ProtocolDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Utilities/String+Extensions.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Utilities/Pointer+Extensions.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/Pointers.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Utilities/GettersSetters.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/Errors.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Utilities/RetainCounts.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/TupleMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ProtocolMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/EnumMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/FunctionMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ClassMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/StructMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Factory/Factory.swift /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/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/CRuntime/Sources/CRuntime/CRuntime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/dyld.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOHTTP2.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/_Vapor3.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOHPACK.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/GraphQL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOSSL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOBoringSSL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CCryptoBoringSSL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CJWTKitBoringSSL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FCM.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/BSON.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FineJSON.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MySQLNIO.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SQLiteNIO.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/PostgresNIO.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/APNS.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/JWT.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOExtrasZlib.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Backtrace.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CBacktrace.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ProtocolConformance.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Runtime.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/OpenCombine.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ProtocolType.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MongoKittenCore.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MongoCore.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/WebSocketInfrastructure.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ApodiniDatabase.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ProtobufferCoding.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Casting.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/OpenCombineDispatch.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Apodini.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SQLKitBenchmark.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MongoKitten.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOHTTPCompression.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/OpenCombineFoundation.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SwifCron.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/_MongoKittenCrypto.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CURLParser.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/RichJSONParser.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CMultipartParser.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentMySQLDriver.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentSQLiteDriver.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentMongoDriver.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentPostgresDriver.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/XCTVapor.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/AssociatedTypeRequirementsVisitor.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOExtras.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Jobs.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Metrics.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CoreMetrics.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOTransportServices.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOTestUtils.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Yams.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/_NIO1APIShims.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOBoringSSLShims.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CCryptoBoringSSLShims.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Notifications.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/COpenCombineHelpers.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ValuePointers.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/APNSwift.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/OpenAPIKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SQLKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MySQLKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/JWTKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/AsyncKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ConsoleKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SQLiteKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/RoutingKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/PostgresKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/WebSocketKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MultipartKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/AsyncHTTPClient.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/DNSClient.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MongoClient.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/XCTFluent.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CContext.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Meow.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/CRuntime/Sources/CRuntime/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.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/MacOSX11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Runtime.build/Metadata/TupleMetadata~partial.swiftsourceinfo : /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/Metadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/TupleMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/ProtocolMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/EnumMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/FuntionMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/ClassMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/StructMetadata.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/Kind.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ValueWitnessTable.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/TypeInfoConvertible.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/MetadataType.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Metadata/NominalMetadataType.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/MetadataLayoutType.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/Case.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Factory/DefaultValue.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/Union.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/TypeInfo.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/FunctionInfo.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/PropertyInfo.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/TargetTypeGenericContextDescriptorHeader.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ClassHeader.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ProtocolTypeContainer.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ExistentialContainter.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/RelativePointer.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/RelativeVectorPointer.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/Vector.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/FieldDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/TypeDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/EnumTypeDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ClassTypeDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/StructTypeDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ProtocolDescriptor.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Utilities/String+Extensions.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Utilities/Pointer+Extensions.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Pointers/Pointers.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Utilities/GettersSetters.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Models/Errors.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Utilities/RetainCounts.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/TupleMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ProtocolMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/EnumMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/FunctionMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/ClassMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Layouts/StructMetadataLayout.swift /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/Runtime/Sources/Runtime/Factory/Factory.swift /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/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/CRuntime/Sources/CRuntime/CRuntime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/dyld.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOHTTP2.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/_Vapor3.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOHPACK.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/GraphQL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOSSL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOBoringSSL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CCryptoBoringSSL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CJWTKitBoringSSL.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FCM.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/BSON.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FineJSON.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MySQLNIO.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SQLiteNIO.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/PostgresNIO.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/APNS.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/JWT.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOExtrasZlib.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Backtrace.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CBacktrace.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ProtocolConformance.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Runtime.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/OpenCombine.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ProtocolType.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MongoKittenCore.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MongoCore.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/WebSocketInfrastructure.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ApodiniDatabase.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ProtobufferCoding.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Casting.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/OpenCombineDispatch.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Apodini.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SQLKitBenchmark.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MongoKitten.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOHTTPCompression.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/OpenCombineFoundation.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SwifCron.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/_MongoKittenCrypto.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CURLParser.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/RichJSONParser.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CMultipartParser.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentMySQLDriver.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentSQLiteDriver.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentMongoDriver.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentPostgresDriver.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/XCTVapor.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/AssociatedTypeRequirementsVisitor.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOExtras.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Jobs.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Metrics.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CoreMetrics.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOTransportServices.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOTestUtils.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Yams.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/_NIO1APIShims.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOBoringSSLShims.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CCryptoBoringSSLShims.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Notifications.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/COpenCombineHelpers.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ValuePointers.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/APNSwift.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/OpenAPIKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SQLKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MySQLKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/JWTKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/AsyncKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/ConsoleKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/SQLiteKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/RoutingKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/PostgresKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/WebSocketKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/FluentKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MultipartKit.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/AsyncHTTPClient.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/DNSClient.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/MongoClient.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/XCTFluent.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CContext.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/Meow.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/CRuntime/Sources/CRuntime/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.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/MacOSX11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
instance Mod_7735_BDT_Aslan_EIS (Npc_Default)
{
// ------ NSC ------
name = "Aslan";
guild = GIL_STRF;
id = 7735;
voice = 9;
flags = 0;
npctype = NPCTYPE_MAIN;
//--------Aivars-----------
// ------ Attribute ------
B_SetAttributesToChapter (self, 6);
// ------ Kampf-Taktik ------
fight_tactic = FAI_HUMAN_NORMAL;
// ------ Equippte Waffen ------
EquipItem (self, ItMw_1H_quantarie_Fantasyschwert_01);
// ------ Inventory ------
B_CreateAmbientInv (self);
CreateInvItems (self, ItRi_Garunh, 1);
// ------ visuals ------
B_SetNpcVisual (self, MALE, "Hum_Head_FatBald", Face_N_NormalBart_Dexter, BodyTex_N, ITAR_BDT_H_01);
Mdl_SetModelFatness (self, -1);
Mdl_ApplyOverlayMds (self, "Humans_Relaxed.mds");
// ------ NSC-relevante Talente vergeben ------
B_GiveNpcTalents (self);
// ------ Kampf-Talente ------
B_SetFightSkills (self, 100);
daily_routine = Rtn_Start_7735;
};
// ------ TA ------
FUNC VOID RTn_Start_7735()
{
TA_Sit_Throne (07,00,21,00,"NORDOSTENLOCH_1");
TA_Sleep (21,00,07,00,"NORDOSTENLOCH_1");
}; | D |
module lorawan; | D |
/home/ubuntu/substrate-node-template/target/release/build/sc-consensus-slots-5b0212d1b001c6c2/build_script_build-5b0212d1b001c6c2: /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/sc-consensus-slots-0.8.0/build.rs
/home/ubuntu/substrate-node-template/target/release/build/sc-consensus-slots-5b0212d1b001c6c2/build_script_build-5b0212d1b001c6c2.d: /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/sc-consensus-slots-0.8.0/build.rs
/home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/sc-consensus-slots-0.8.0/build.rs:
| D |
; Copyright (C) 2008 The Android Open Source Project
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
.source T_long_to_double_2.java
.class public dot.junit.opcodes.long_to_double.d.T_long_to_double_2
.super java/lang/Object
.method public <init>()V
.limit regs 1
invoke-direct {v0}, java/lang/Object/<init>()V
return-void
.end method
.method public run(J)D
.limit regs 8
const v6, 3.1415
long-to-double v0, v6
return-wide v0
.end method
| D |
// Written in the D programming language.
/**
* MessagePack serializer and deserializer implementation.
*
* MessagePack is a binary-based serialization specification.
*
* Example:
* -----
* auto data = tuple("MessagePack!", [1, 2], true);
*
* auto serialized = pack(data);
*
* // ...
*
* typeof(data) deserialized;
*
* unpack(serialized, deserialized);
*
* assert(data == deserialized);
* -----
*
* See_Also:
* $(LINK2 http://msgpack.org/, The MessagePack Project)$(BR)
* $(LINK2 http://wiki.msgpack.org/display/MSGPACK/Design+of+Serialization, MessagePack Design concept)$(BR)
* $(LINK2 http://wiki.msgpack.org/display/MSGPACK/Format+specification, MessagePack data format)
*
* Copyright: Copyright Masahiro Nakagawa 2010-.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Masahiro Nakagawa
*/
module bio.bam.thirdparty.msgpack;
import std.array;
import std.exception;
import std.range;
import std.stdio;
import std.traits;
import std.typecons;
import std.typetuple;
// for RefBuffer
version(Posix)
{
import core.sys.posix.sys.uio : iovec;
}
else
{
/**
* from core.sys.posix.sys.uio.iovec for compatibility with posix.
*/
struct iovec
{
void* iov_base;
size_t iov_len;
}
}
// for Converting Endian using ntohs and ntohl;
version(Windows)
{
import std.c.windows.winsock;
}
else
{
import core.sys.posix.arpa.inet;
}
version(EnableReal)
{
enum EnableReal = true;
}
else
{
enum EnableReal = false;
}
static if (real.sizeof == double.sizeof) {
// for 80bit real inter-operation on non-x86 CPU
version = NonX86;
import std.numeric;
}
version(unittest) import std.file, std.c.string;
@trusted:
public:
// Convenient functions
/**
* Serializes $(D_PARAM args).
*
* Assumes single object if the length of $(D_PARAM args) == 1,
* otherwise array object.
*
* Params:
* args = the contents to serialize.
*
* Returns:
* a serialized data.
*/
ubyte[] pack(bool withFieldName = false, Args...)(in Args args)
{
auto packer = Packer(withFieldName);
static if (Args.length == 1)
packer.pack(args[0]);
else
packer.packArray(args);
return packer.stream.data;
}
unittest
{
auto serialized = pack(false);
assert(serialized[0] == Format.FALSE);
auto deserialized = unpack(pack(1, true, "Foo"));
assert(deserialized.type == Value.Type.array);
assert(deserialized.via.array[0].type == Value.Type.unsigned);
assert(deserialized.via.array[1].type == Value.Type.boolean);
assert(deserialized.via.array[2].type == Value.Type.raw);
}
/**
* Deserializes $(D_PARAM buffer) using stream deserializer.
*
* Params:
* buffer = the buffer to deserialize.
*
* Returns:
* a $(D Unpacked) contains deserialized object.
*
* Throws:
* UnpackException if deserialization doesn't succeed.
*/
Unpacked unpack(in ubyte[] buffer)
{
auto unpacker = StreamingUnpacker(buffer);
if (!unpacker.execute())
throw new UnpackException("Deserialization failure");
return unpacker.unpacked;
}
/**
* Deserializes $(D_PARAM buffer) using direct-conversion deserializer.
*
* Assumes single object if the length of $(D_PARAM args) == 1,
* otherwise array object.
*
* Params:
* buffer = the buffer to deserialize.
* args = the references of values to assign.
*/
void unpack(bool withFieldName = false, Args...)(in ubyte[] buffer, ref Args args)
{
auto unpacker = Unpacker(buffer, buffer.length, withFieldName);
static if (Args.length == 1)
unpacker.unpack(args[0]);
else
unpacker.unpackArray(args);
}
/**
* Return value version
*/
Type unpack(Type, bool withFieldName = false)(in ubyte[] buffer)
{
auto unpacker = Unpacker(buffer, buffer.length, withFieldName);
Type result;
unpacker.unpack(result);
return result;
}
unittest
{
{ // stream
auto result = unpack(pack(false));
assert(result.via.boolean == false);
}
{ // direct conversion
Tuple!(uint, string) result;
Tuple!(uint, string) test = tuple(1, "Hi!");
unpack(pack(test), result);
assert(result == test);
test.field[0] = 2;
test.field[1] = "Hey!";
unpack(pack(test.field[0], test.field[1]), result.field[0], result.field[1]);
assert(result == test);
}
{ // return value direct conversion
Tuple!(uint, string) test = tuple(1, "Hi!");
auto data = pack(test);
assert(data.unpack!(Tuple!(uint, string)) == test);
}
{ // serialize object as a Map
static class C
{
int num;
this(int num) { this.num = num; }
}
auto test = new C(10);
auto result = new C(100);
unpack!(true)(pack!(true)(test), result);
assert(result.num == 10, "Unpacking with field names failed");
}
}
unittest
{
// unittest for https://github.com/msgpack/msgpack-d/issues/8
foreach (Type; TypeTuple!(byte, short, int, long)) {
foreach (i; [-33, -20, -1, 0, 1, 20, 33]) {
Type a = cast(Type)i;
Type b;
unpack(pack(a), b);
assert(a == b);
}
}
}
/**
* $(D MessagePackException) is a root Exception for MessagePack related operation.
*/
class MessagePackException : Exception
{
pure this(string message)
{
super(message);
}
}
/**
* Attribute for specifying non pack/unpack field.
* This is an alternative approach of MessagePackable mixin.
*
* Example:
* -----
* struct S
* {
* int num;
* // Packer/Unpacker ignores this field;
* @nonPacked string str;
* }
* -----
*/
struct nonPacked {}
template isPackedField(alias field)
{
enum isPackedField = (staticIndexOf!(nonPacked, __traits(getAttributes, field)) == -1) && (!isSomeFunction!(typeof(field)));
}
// Serializing routines
/**
* $(D Packer) is a $(D MessagePack) serializer
*
* Example:
* -----
* auto packer = packer(Appender!(ubyte[])());
*
* packer.packArray(false, 100, 1e-10, null);
*
* stdout.rawWrite(packer.buffer.data);
* -----
*
* NOTE:
* Current implementation can't deal with a circular reference.
* If you try to serialize a object that has circular reference, runtime raises 'Stack Overflow'.
*/
struct PackerImpl(Stream) if (isOutputRange!(Stream, ubyte) && isOutputRange!(Stream, ubyte[]))
{
private:
static @system
{
alias void delegate(ref PackerImpl, void*) PackHandler;
PackHandler[TypeInfo] packHandlers;
public void registerHandler(T, alias Handler)()
{
packHandlers[typeid(T)] = delegate(ref PackerImpl packer, void* obj) {
Handler(packer, *cast(T*)obj);
};
}
}
enum size_t Offset = 1; // type-information offset
Stream stream_; // the stream to write
ubyte[Offset + RealSize] store_; // stores serialized value
bool withFieldName_;
public:
/**
* Constructs a packer with $(D_PARAM stream).
*
* Params:
* stream = the stream to write.
* withFieldName = serialize class / struct with field name
*/
this(Stream stream, bool withFieldName = false)
{
stream_ = stream;
withFieldName_ = withFieldName;
}
/**
* Constructs a packer with $(D_PARAM withFieldName).
*
* Params:
* withFieldName = serialize class / struct with field name
*/
this(bool withFieldName = false)
{
withFieldName_ = withFieldName;
}
/**
* Forwards to stream.
*
* Returns:
* the stream.
*/
@property @safe
nothrow ref Stream stream()
{
return stream_;
}
/**
* Serializes argument and writes to stream.
*
* If the argument is the pointer type, dereferences the pointer and serializes pointed value.
* -----
* int a = 10;
* int* b = &b;
*
* packer.pack(b); // serializes 10, not address of a
* -----
* Serializes nil if the argument of nullable type is null.
*
* NOTE:
* MessagePack doesn't define $(D_KEYWORD real) type format.
* Don't serialize $(D_KEYWORD real) if you communicate with other languages.
* Transfer $(D_KEYWORD double) serialization if $(D_KEYWORD real) on your environment equals $(D_KEYWORD double).
*
* Params:
* value = the content to serialize.
*
* Returns:
* self, i.e. for method chaining.
*/
ref PackerImpl pack(T)(in T value) if (is(Unqual!T == bool))
{
if (value)
stream_.put(Format.TRUE);
else
stream_.put(Format.FALSE);
return this;
}
/// ditto
ref PackerImpl pack(T)(in T value) if (isUnsigned!T && !is(Unqual!T == enum))
{
// ulong < ulong is slower than uint < uint
static if (!is(Unqual!T == ulong)) {
enum Bits = T.sizeof * 8;
if (value < (1 << 8)) {
if (value < (1 << 7)) {
// fixnum
stream_.put(take8from!Bits(value));
} else {
// uint 8
store_[0] = Format.UINT8;
store_[1] = take8from!Bits(value);
stream_.put(store_[0..Offset + ubyte.sizeof]);
}
} else {
if (value < (1 << 16)) {
// uint 16
const temp = convertEndianTo!16(value);
store_[0] = Format.UINT16;
*cast(ushort*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + ushort.sizeof]);
} else {
// uint 32
const temp = convertEndianTo!32(value);
store_[0] = Format.UINT32;
*cast(uint*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + uint.sizeof]);
}
}
} else {
if (value < (1UL << 8)) {
if (value < (1UL << 7)) {
// fixnum
stream_.put(take8from!64(value));
} else {
// uint 8
store_[0] = Format.UINT8;
store_[1] = take8from!64(value);
stream_.put(store_[0..Offset + ubyte.sizeof]);
}
} else {
if (value < (1UL << 16)) {
// uint 16
const temp = convertEndianTo!16(value);
store_[0] = Format.UINT16;
*cast(ushort*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + ushort.sizeof]);
} else if (value < (1UL << 32)){
// uint 32
const temp = convertEndianTo!32(value);
store_[0] = Format.UINT32;
*cast(uint*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + uint.sizeof]);
} else {
// uint 64
const temp = convertEndianTo!64(value);
store_[0] = Format.UINT64;
*cast(ulong*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + ulong.sizeof]);
}
}
}
return this;
}
/// ditto
ref PackerImpl pack(T)(in T value) if (isSigned!T && isIntegral!T && !is(Unqual!T == enum))
{
// long < long is slower than int < int
static if (!is(Unqual!T == long)) {
enum Bits = T.sizeof * 8;
if (value < -(1 << 5)) {
if (value < -(1 << 15)) {
// int 32
const temp = convertEndianTo!32(value);
store_[0] = Format.INT32;
*cast(int*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + int.sizeof]);
} else if (value < -(1 << 7)) {
// int 16
const temp = convertEndianTo!16(value);
store_[0] = Format.INT16;
*cast(short*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + short.sizeof]);
} else {
// int 8
store_[0] = Format.INT8;
store_[1] = take8from!Bits(value);
stream_.put(store_[0..Offset + byte.sizeof]);
}
} else if (value < (1 << 7)) {
// fixnum
stream_.put(take8from!Bits(value));
} else {
if (value < (1 << 8)) {
// uint 8
store_[0] = Format.UINT8;
store_[1] = take8from!Bits(value);
stream_.put(store_[0..Offset + ubyte.sizeof]);
} else if (value < (1 << 16)) {
// uint 16
const temp = convertEndianTo!16(value);
store_[0] = Format.UINT16;
*cast(ushort*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + ushort.sizeof]);
} else {
// uint 32
const temp = convertEndianTo!32(value);
store_[0] = Format.UINT32;
*cast(uint*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + uint.sizeof]);
}
}
} else {
if (value < -(1L << 5)) {
if (value < -(1L << 15)) {
if (value < -(1L << 31)) {
// int 64
const temp = convertEndianTo!64(value);
store_[0] = Format.INT64;
*cast(long*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + long.sizeof]);
} else {
// int 32
const temp = convertEndianTo!32(value);
store_[0] = Format.INT32;
*cast(int*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + int.sizeof]);
}
} else {
if (value < -(1L << 7)) {
// int 16
const temp = convertEndianTo!16(value);
store_[0] = Format.INT16;
*cast(short*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + short.sizeof]);
} else {
// int 8
store_[0] = Format.INT8;
store_[1] = take8from!64(value);
stream_.put(store_[0..Offset + byte.sizeof]);
}
}
} else if (value < (1L << 7)) {
// fixnum
stream_.put(take8from!64(value));
} else {
if (value < (1L << 16)) {
if (value < (1L << 8)) {
// uint 8
store_[0] = Format.UINT8;
store_[1] = take8from!64(value);
stream_.put(store_[0..Offset + ubyte.sizeof]);
} else {
// uint 16
const temp = convertEndianTo!16(value);
store_[0] = Format.UINT16;
*cast(ushort*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + ushort.sizeof]);
}
} else {
if (value < (1L << 32)) {
// uint 32
const temp = convertEndianTo!32(value);
store_[0] = Format.UINT32;
*cast(uint*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + uint.sizeof]);
} else {
// uint 64
const temp = convertEndianTo!64(value);
store_[0] = Format.UINT64;
*cast(ulong*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + ulong.sizeof]);
}
}
}
}
return this;
}
/// ditto
ref PackerImpl pack(T)(in T value) if (isFloatingPoint!T && !is(Unqual!T == enum))
{
static if (is(Unqual!T == float)) {
const temp = convertEndianTo!32(_f(value).i);
store_[0] = Format.FLOAT;
*cast(uint*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + uint.sizeof]);
} else static if (is(Unqual!T == double)) {
const temp = convertEndianTo!64(_d(value).i);
store_[0] = Format.DOUBLE;
*cast(ulong*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + ulong.sizeof]);
} else {
static if ((real.sizeof > double.sizeof) && EnableReal) {
store_[0] = Format.REAL;
const temp = _r(value);
const fraction = convertEndianTo!64(temp.fraction);
const exponent = convertEndianTo!16(temp.exponent);
*cast(Unqual!(typeof(fraction))*)&store_[Offset] = fraction;
*cast(Unqual!(typeof(exponent))*)&store_[Offset + fraction.sizeof] = exponent;
stream_.put(store_[0..$]);
} else { // Non-x86 CPUs, real type equals double type.
pack(cast(double)value);
}
}
return this;
}
/// ditto
ref PackerImpl pack(T)(in T value) if (is(Unqual!T == enum))
{
pack(cast(OriginalType!T)value);
return this;
}
/// Overload for pack(null) for 2.057 or later
static if (!is(typeof(null) == void*))
{
ref PackerImpl pack(T)(in T value) if (is(Unqual!T == typeof(null)))
{
return packNil();
}
}
/// ditto
ref PackerImpl pack(T)(in T value) if (isPointer!T)
{
static if (is(Unqual!T == void*)) { // for pack(null) for 2.056 or earlier
enforce(value is null, "Can't serialize void type");
stream_.put(Format.NIL);
} else {
if (value is null)
stream_.put(Format.NIL);
else
pack(mixin(AsteriskOf!T ~ "value"));
}
return this;
}
/// ditto
ref PackerImpl pack(T)(in T array) if (isArray!T)
{
alias typeof(T.init[0]) U;
/*
* Serializes raw type-information to stream.
*/
void beginRaw(in size_t length)
{
if (length < 32) {
const ubyte temp = Format.RAW | cast(ubyte)length;
stream_.put(take8from(temp));
} else if (length < 65536) {
const temp = convertEndianTo!16(length);
store_[0] = Format.RAW16;
*cast(ushort*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + ushort.sizeof]);
} else {
const temp = convertEndianTo!32(length);
store_[0] = Format.RAW32;
*cast(uint*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + uint.sizeof]);
}
}
if (array.empty)
return packNil();
// Raw bytes
static if (isByte!(U) || isSomeChar!(U)) {
ubyte[] raw = cast(ubyte[])array;
beginRaw(raw.length);
stream_.put(raw);
} else {
beginArray(array.length);
foreach (elem; array)
pack(elem);
}
return this;
}
/// ditto
ref PackerImpl pack(T)(in T array) if (isAssociativeArray!T)
{
if (array is null)
return packNil();
beginMap(array.length);
foreach (key, value; array) {
pack(key);
pack(value);
}
return this;
}
/// ditto
ref PackerImpl pack(Types...)(auto ref const Types objects) if (Types.length > 1)
{
foreach (i, T; Types)
pack(objects[i]);
return this;
}
/**
* Serializes $(D_PARAM object) and writes to stream.
*
* Calling $(D toMsgpack) if $(D_KEYWORD class) and $(D_KEYWORD struct) implement $(D toMsgpack) method. $(D toMsgpack) signature is:
* -----
* void toMsgpack(Packer)(ref Packer packer) const
* -----
* This method serializes all members of T object if $(D_KEYWORD class) and $(D_KEYWORD struct) don't implement $(D toMsgpack).
*
* An object that doesn't implement $(D toMsgpack) is serialized to Array type.
* -----
* packer.pack(tuple(true, 1, "Hi!")) // -> '[true, 1, "Hi!"]', not 'ture, 1, "Hi!"'
*
* struct Foo
* {
* int num = 10;
* string msg = "D!";
* }
* packer.pack(Foo()); // -> '[10, "D!"]'
*
* class Base
* {
* bool flag = true;
* }
* class Derived : Base
* {
* double = 0.5f;
* }
* packer.pack(new Derived()); // -> '[true, 0.5f]'
* -----
*
* Params:
* object = the content to serialize.
*
* Returns:
* self, i.e. for method chaining.
*/
ref PackerImpl pack(T)(in T object) if (is(Unqual!T == class))
{
if (object is null)
return packNil();
static if (hasMember!(T, "toMsgpack"))
{
static if (__traits(compiles, { T t; t.toMsgpack(this, withFieldName_); })) {
object.toMsgpack(this, withFieldName_);
} else static if (__traits(compiles, { T t; t.toMsgpack(this); })) { // backward compatible
object.toMsgpack(this);
} else {
static assert(0, "Failed to invoke 'toMsgpack' on type '" ~ Unqual!T.stringof ~ "'");
}
} else {
if (auto handler = object.classinfo in packHandlers) {
(*handler)(this, cast(void*)&object);
return this;
}
if (T.classinfo !is object.classinfo) {
throw new MessagePackException("Can't pack derived class through reference to base class.");
}
alias SerializingClasses!(T) Classes;
immutable memberNum = SerializingMemberNumbers!(Classes);
if (withFieldName_)
beginMap(memberNum);
else
beginArray(memberNum);
foreach (Class; Classes) {
Class obj = cast(Class)object;
if (withFieldName_) {
foreach (i, f ; obj.tupleof) {
static if (isPackedField!(Class.tupleof[i])) {
pack(getFieldName!(Class, i));
pack(f);
}
}
} else {
foreach (i, f ; obj.tupleof) {
static if (isPackedField!(Class.tupleof[i]))
pack(f);
}
}
}
}
return this;
}
/// ditto
@trusted
ref PackerImpl pack(T)(auto ref T object) if (is(Unqual!T == struct))
{
static if (hasMember!(T, "toMsgpack"))
{
static if (__traits(compiles, { T t; t.toMsgpack(this, withFieldName_); })) {
object.toMsgpack(this, withFieldName_);
} else static if (__traits(compiles, { T t; t.toMsgpack(this); })) { // backward compatible
object.toMsgpack(this);
} else {
static assert(0, "Failed to invoke 'toMsgpack' on type '" ~ Unqual!T.stringof ~ "'");
}
} else static if (isTuple!T) {
beginArray(object.field.length);
foreach (f; object.field)
pack(f);
} else { // simple struct
if (auto handler = typeid(T) in packHandlers) {
(*handler)(this, cast(void*)&object);
return this;
}
immutable memberNum = SerializingMemberNumbers!(T);
if (withFieldName_)
beginMap(memberNum);
else
beginArray(memberNum);
if (withFieldName_) {
foreach (i, f; object.tupleof) {
static if (isPackedField!(T.tupleof[i]) && __traits(compiles, { pack(f); }))
{
pack(getFieldName!(T, i));
pack(f);
}
}
} else {
foreach (i, f; object.tupleof) {
static if (isPackedField!(T.tupleof[i]) && __traits(compiles, { pack(f); }))
pack(f);
}
}
}
return this;
}
/**
* Serializes the arguments as container to stream.
*
* -----
* packer.packArray(true, 1); // -> [true, 1]
* packer.packMap("Hi", 100); // -> ["Hi":100]
* -----
*
* In packMap, the number of arguments must be even.
*
* Params:
* objects = the contents to serialize.
*
* Returns:
* self, i.e. for method chaining.
*/
ref PackerImpl packArray(Types...)(auto ref const Types objects)
{
beginArray(Types.length);
foreach (i, T; Types)
pack(objects[i]);
//pack(objects); // slow :(
return this;
}
/// ditto
ref PackerImpl packMap(Types...)(auto ref const Types objects)
{
static assert(Types.length % 2 == 0, "The number of arguments must be even");
beginMap(Types.length / 2);
foreach (i, T; Types)
pack(objects[i]);
return this;
}
/**
* Serializes the type-information to stream.
*
* These methods don't serialize contents.
* You need to call pack method to serialize contents at your own risk.
* -----
* packer.beginArray(3).pack(true, 1); // -> [true, 1,
*
* // other operation
*
* packer.pack("Hi!"); // -> [true, 1, "Hi!"]
* -----
*
* Params:
* length = the length of container.
*
* Returns:
* self, i.e. for method chaining.
*/
ref PackerImpl beginArray(in size_t length)
{
if (length < 16) {
const ubyte temp = Format.ARRAY | cast(ubyte)length;
stream_.put(take8from(temp));
} else if (length < 65536) {
const temp = convertEndianTo!16(length);
store_[0] = Format.ARRAY16;
*cast(ushort*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + ushort.sizeof]);
} else {
const temp = convertEndianTo!32(length);
store_[0] = Format.ARRAY32;
*cast(uint*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + uint.sizeof]);
}
return this;
}
/// ditto
ref PackerImpl beginMap(in size_t length)
{
if (length < 16) {
const ubyte temp = Format.MAP | cast(ubyte)length;
stream_.put(take8from(temp));
} else if (length < 65536) {
const temp = convertEndianTo!16(length);
store_[0] = Format.MAP16;
*cast(ushort*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + ushort.sizeof]);
} else {
const temp = convertEndianTo!32(length);
store_[0] = Format.MAP32;
*cast(uint*)&store_[Offset] = temp;
stream_.put(store_[0..Offset + uint.sizeof]);
}
return this;
}
private:
/*
* Serializes the nil value.
*/
ref PackerImpl packNil()
{
stream_.put(Format.NIL);
return this;
}
}
/// Default serializer
alias PackerImpl!(Appender!(ubyte[])) Packer; // should be pure struct?
/**
* Register a serialization handler for $(D_PARAM T) type
*
* Example:
* -----
* registerPackHandler!(Foo, fooPackHandler);
* -----
*/
void registerPackHandler(T, alias Handler, Stream = Appender!(ubyte[]))()
{
PackerImpl!(Stream).registerHandler!(T, Handler);
}
/**
* Helper for $(D Packer) construction.
*
* Params:
* stream = the stream to write.
* withFieldName = serialize class / struct with field name
*
* Returns:
* a $(D Packer) object instantiated and initialized according to the arguments.
*/
PackerImpl!(Stream) packer(Stream)(Stream stream, bool withFieldName = false)
{
return typeof(return)(stream, withFieldName);
}
// Buffer implementations
/**
* $(D RefBuffer) is a reference stored buffer for more efficient serialization
*
* Example:
* -----
* auto packer = packer(RefBuffer(16)); // threshold is 16
*
* // packs data
*
* writev(fd, cast(void*)packer.buffer.vector.ptr, packer.buffer.vector.length);
* -----
*/
struct RefBuffer
{
private:
static struct Chunk
{
ubyte[] data; // storing serialized value
size_t used; // used size of data
}
immutable size_t Threshold;
immutable size_t ChunkSize;
// for putCopy
Chunk[] chunks_; // memory chunk for buffer
size_t index_; // index for cunrrent chunk
// for putRef
iovec[] vecList_; // reference to large data or copied data.
public:
/**
* Constructs a buffer.
*
* Params:
* threshold = the threshold of writing value or stores reference.
* chunkSize = the default size of chunk for allocation.
*/
@safe
this(in size_t threshold, in size_t chunkSize = 8192)
{
Threshold = threshold;
ChunkSize = chunkSize;
chunks_.length = 1;
chunks_[index_].data.length = chunkSize;
}
/**
* Returns the buffer contents that excluding references.
*
* Returns:
* the non-contiguous copied contents.
*/
@property @safe
nothrow ubyte[] data()
{
ubyte[] result;
foreach (ref chunk; chunks_)
result ~= chunk.data[0..chunk.used];
return result;
}
/**
* Forwards to all buffer contents.
*
* Returns:
* the array of iovec struct that stores references.
*/
@property @safe
nothrow ref iovec[] vector()
{
return vecList_;
}
/**
* Writes the argument to buffer and stores the reference of writed content
* if the argument size is smaller than threshold,
* otherwise stores the reference of argument directly.
*
* Params:
* value = the content to write.
*/
@safe
void put(in ubyte value)
{
ubyte[1] values = [value];
putCopy(values);
}
/// ditto
@safe
void put(in ubyte[] value)
{
if (value.length < Threshold)
putCopy(value);
else
putRef(value);
}
private:
/*
* Stores the reference of $(D_PARAM value).
*
* Params:
* value = the content to write.
*/
@trusted
void putRef(in ubyte[] value)
{
vecList_.length += 1;
vecList_[$ - 1] = iovec(cast(void*)value.ptr, value.length);
}
/*
* Writes $(D_PARAM value) to buffer and appends to its reference.
*
* Params:
* value = the contents to write.
*/
@trusted
void putCopy(in ubyte[] value)
{
/*
* Helper for expanding new space.
*/
void expand(in size_t size)
{
const newSize = size < ChunkSize ? ChunkSize : size;
index_++;
chunks_.length = 1;
chunks_[index_].data.length = newSize;
}
const size = value.length;
// lacks current chunk?
if (chunks_[index_].data.length - chunks_[index_].used < size)
expand(size);
const base = chunks_[index_].used; // start index
auto data = chunks_[index_].data[base..base + size]; // chunk to write
data[] = value[];
chunks_[index_].used += size;
// Optimization for avoiding iovec allocation.
if (vecList_.length && data.ptr == (vecList_[$ - 1].iov_base +
vecList_[$ - 1].iov_len))
vecList_[$ - 1].iov_len += size;
else
putRef(data);
}
}
unittest
{
static assert(isOutputRange!(RefBuffer, ubyte) &&
isOutputRange!(RefBuffer, ubyte[]));
auto buffer = RefBuffer(2, 4);
ubyte[] tests = [1, 2];
foreach (v; tests)
buffer.put(v);
buffer.put(tests);
assert(buffer.data == tests, "putCopy failed");
iovec[] vector = buffer.vector;
ubyte[] result;
assert(vector.length == 2, "Optimization failed");
foreach (v; vector)
result ~= (cast(ubyte*)v.iov_base)[0..v.iov_len];
assert(result == tests ~ tests);
}
version (unittest)
{
mixin template DefinePacker()
{
Packer packer;
}
mixin template DefineDictionalPacker()
{
Packer packer = Packer(false);
}
}
unittest
{
{ // unique value
mixin DefinePacker;
ubyte[] result = [Format.NIL, Format.TRUE, Format.FALSE];
packer.pack(null, true, false);
foreach (i, value; packer.stream.data)
assert(value == result[i]);
}
{ // uint *
static struct UTest { ubyte format; ulong value; }
enum : ulong { A = ubyte.max, B = ushort.max, C = uint.max, D = ulong.max }
static UTest[][] utests = [
[{Format.UINT8, A}],
[{Format.UINT8, A}, {Format.UINT16, B}],
[{Format.UINT8, A}, {Format.UINT16, B}, {Format.UINT32, C}],
[{Format.UINT8, A}, {Format.UINT16, B}, {Format.UINT32, C}, {Format.UINT64, D}],
];
foreach (I, T; TypeTuple!(ubyte, ushort, uint, ulong)) {
foreach (i, test; utests[I]) {
mixin DefinePacker;
packer.pack(cast(T)test.value);
assert(packer.stream.data[0] == test.format);
switch (i) {
case 0:
auto answer = take8from!(T.sizeof * 8)(test.value);
assert(memcmp(&packer.stream.data[1], &answer, ubyte.sizeof) == 0);
break;
case 1:
auto answer = convertEndianTo!16(test.value);
assert(memcmp(&packer.stream.data[1], &answer, ushort.sizeof) == 0);
break;
case 2:
auto answer = convertEndianTo!32(test.value);
assert(memcmp(&packer.stream.data[1], &answer, uint.sizeof) == 0);
break;
default:
auto answer = convertEndianTo!64(test.value);
assert(memcmp(&packer.stream.data[1], &answer, ulong.sizeof) == 0);
}
}
}
}
{ // int *
static struct STest { ubyte format; long value; }
enum : long { A = byte.min, B = short.min, C = int.min, D = long.min }
static STest[][] stests = [
[{Format.INT8, A}],
[{Format.INT8, A}, {Format.INT16, B}],
[{Format.INT8, A}, {Format.INT16, B}, {Format.INT32, C}],
[{Format.INT8, A}, {Format.INT16, B}, {Format.INT32, C}, {Format.INT64, D}],
];
foreach (I, T; TypeTuple!(byte, short, int, long)) {
foreach (i, test; stests[I]) {
mixin DefinePacker;
packer.pack(cast(T)test.value);
assert(packer.stream.data[0] == test.format);
switch (i) {
case 0:
auto answer = take8from!(T.sizeof * 8)(test.value);
assert(memcmp(&packer.stream.data[1], &answer, byte.sizeof) == 0);
break;
case 1:
auto answer = convertEndianTo!16(test.value);
assert(memcmp(&packer.stream.data[1], &answer, short.sizeof) == 0);
break;
case 2:
auto answer = convertEndianTo!32(test.value);
assert(memcmp(&packer.stream.data[1], &answer, int.sizeof) == 0);
break;
default:
auto answer = convertEndianTo!64(test.value);
assert(memcmp(&packer.stream.data[1], &answer, long.sizeof) == 0);
}
}
}
}
{ // fload, double
static if ((real.sizeof == double.sizeof) || !EnableReal)
{
alias TypeTuple!(float, double, double) FloatingTypes;
static struct FTest { ubyte format; double value; }
static FTest[] ftests = [
{Format.FLOAT, float.min_normal},
{Format.DOUBLE, double.max},
{Format.DOUBLE, double.max},
];
}
else
{
alias TypeTuple!(float, double, real) FloatingTypes;
static struct FTest { ubyte format; real value; }
static FTest[] ftests = [
{Format.FLOAT, float.min_normal},
{Format.DOUBLE, double.max},
{Format.REAL, real.max},
];
}
foreach (I, T; FloatingTypes) {
mixin DefinePacker;
packer.pack(cast(T)ftests[I].value);
assert(packer.stream.data[0] == ftests[I].format);
switch (I) {
case 0:
const answer = convertEndianTo!32(_f(cast(T)ftests[I].value).i);
assert(memcmp(&packer.stream.data[1], &answer, float.sizeof) == 0);
break;
case 1:
const answer = convertEndianTo!64(_d(cast(T)ftests[I].value).i);
assert(memcmp(&packer.stream.data[1], &answer, double.sizeof) == 0);
break;
default:
static if (EnableReal)
{
const t = _r(cast(T)ftests[I].value);
const f = convertEndianTo!64(t.fraction);
const e = convertEndianTo!16(t.exponent);
assert(memcmp(&packer.stream.data[1], &f, f.sizeof) == 0);
assert(memcmp(&packer.stream.data[1 + f.sizeof], &e, e.sizeof) == 0);
}
else
{
const answer = convertEndianTo!64(_d(cast(T)ftests[I].value).i);
assert(memcmp(&packer.stream.data[1], &answer, double.sizeof) == 0);
}
}
}
}
{ // pointer
static struct PTest
{
ubyte format;
union
{
ulong* p0;
long* p1;
double* p2;
}
}
PTest[] ptests = [PTest(Format.UINT64), PTest(Format.INT64), PTest(Format.DOUBLE)];
ulong v0 = ulong.max;
long v1 = long.min;
double v2 = double.max;
foreach (I, Index; TypeTuple!("0", "1", "2")) {
mixin DefinePacker;
mixin("ptests[I].p" ~ Index ~ " = &v" ~ Index ~ ";");
packer.pack(mixin("ptests[I].p" ~ Index));
assert(packer.stream.data[0] == ptests[I].format);
switch (I) {
case 0:
auto answer = convertEndianTo!64(*ptests[I].p0);
assert(memcmp(&packer.stream.data[1], &answer, ulong.sizeof) == 0);
break;
case 1:
auto answer = convertEndianTo!64(*ptests[I].p1);
assert(memcmp(&packer.stream.data[1], &answer, long.sizeof) == 0);
break;
default:
const answer = convertEndianTo!64(_d(*ptests[I].p2).i);
assert(memcmp(&packer.stream.data[1], &answer, double.sizeof) == 0);
}
}
}
{ // enum
enum E : ubyte { A = ubyte.max }
mixin DefinePacker; E e = E.A;
packer.pack(e);
assert(packer.stream.data[0] == Format.UINT8);
auto answer = E.A;
assert(memcmp(&packer.stream.data[1], &answer, (OriginalType!E).sizeof) == 0);
}
{ // container
static struct CTest { ubyte format; size_t value; }
enum : ulong { A = 16 / 2, B = ushort.max, C = uint.max }
static CTest[][] ctests = [
[{Format.ARRAY | A, Format.ARRAY | A}, {Format.ARRAY16, B}, {Format.ARRAY32, C}],
[{Format.MAP | A, Format.MAP | A}, {Format.MAP16, B}, {Format.MAP32, C}],
];
foreach (I, Name; TypeTuple!("Array", "Map")) {
auto test = ctests[I];
foreach (i, T; TypeTuple!(ubyte, ushort, uint)) {
mixin DefinePacker;
mixin("packer.begin" ~ Name ~ "(i ? test[i].value : A);");
assert(packer.stream.data[0] == test[i].format);
switch (i) {
case 0:
auto answer = take8from(test[i].value);
assert(memcmp(&packer.stream.data[0], &answer, ubyte.sizeof) == 0);
break;
case 1:
auto answer = convertEndianTo!16(test[i].value);
assert(memcmp(&packer.stream.data[1], &answer, ushort.sizeof) == 0);
break;
default:
auto answer = convertEndianTo!32(test[i].value);
assert(memcmp(&packer.stream.data[1], &answer, uint.sizeof) == 0);
}
}
}
}
{ // user defined
{
static struct S
{
uint num = uint.max;
void toMsgpack(P)(ref P p) const { p.packArray(num); }
}
mixin DefinePacker; S test;
packer.pack(test);
assert(packer.stream.data[0] == (Format.ARRAY | 1));
assert(packer.stream.data[1] == Format.UINT32);
assert(memcmp(&packer.stream.data[2], &test.num, uint.sizeof) == 0);
}
{
mixin DefinePacker; auto test = tuple(true, false, uint.max);
packer.pack(test);
assert(packer.stream.data[0] == (Format.ARRAY | 3));
assert(packer.stream.data[1] == Format.TRUE);
assert(packer.stream.data[2] == Format.FALSE);
assert(packer.stream.data[3] == Format.UINT32);
assert(memcmp(&packer.stream.data[4], &test.field[2], uint.sizeof) == 0);
}
{
static class C
{
uint num;
this(uint n) { num = n; }
void toMsgpack(P)(ref P p) const { p.packArray(num); }
}
mixin DefinePacker; C test = new C(ushort.max);
packer.pack(test);
assert(packer.stream.data[0] == (Format.ARRAY | 1));
assert(packer.stream.data[1] == Format.UINT16);
assert(memcmp(&packer.stream.data[2], &test.num, ushort.sizeof) == 0);
}
}
{ // simple struct and class
{
static struct Simple
{
uint num = uint.max;
}
static struct SimpleWithNonPacked1
{
uint num = uint.max;
@nonPacked string str = "ignored";
}
static struct SimpleWithNonPacked2
{
@nonPacked string str = "ignored";
uint num = uint.max;
}
static struct SimpleWithSkippedTypes
{
int function(int) fn;
int delegate(int) dg;
uint num = uint.max;
}
foreach (Type; TypeTuple!(Simple, SimpleWithNonPacked1, SimpleWithNonPacked2, SimpleWithSkippedTypes)) {
mixin DefinePacker;
Type test;
packer.pack(test);
assert(packer.stream.data[0] == (Format.ARRAY | 1));
assert(packer.stream.data[1] == Format.UINT32);
assert(memcmp(&packer.stream.data[2], &test.num, uint.sizeof) == 0);
}
}
static class SimpleA
{
bool flag = true;
}
static class SimpleB : SimpleA
{
ubyte type = 100;
}
static class SimpleC : SimpleB
{
uint num = uint.max;
}
static class SimpleCWithNonPacked1 : SimpleB
{
uint num = uint.max;
@nonPacked string str = "ignored";
}
static class SimpleCWithNonPacked2 : SimpleB
{
@nonPacked string str = "ignored";
uint num = uint.max;
}
static class SimpleCWithSkippedTypes : SimpleB
{
uint num = uint.max;
int function(int) fn;
int delegate(int) dg;
}
{ // from derived class
foreach (Type; TypeTuple!(SimpleC, SimpleCWithNonPacked1, SimpleCWithNonPacked2, SimpleCWithSkippedTypes)) {
mixin DefinePacker;
Type test = new Type();
packer.pack(test);
assert(packer.stream.data[0] == (Format.ARRAY | 3));
assert(packer.stream.data[1] == Format.TRUE);
assert(packer.stream.data[2] == 100);
assert(packer.stream.data[3] == Format.UINT32);
assert(memcmp(&packer.stream.data[4], &test.num, uint.sizeof) == 0);
}
}
{ // from base class
mixin DefinePacker; SimpleB test = new SimpleC();
try {
packer.pack(test);
assert(false);
} catch (Exception e) { }
}
}
}
// deserializing routines
/**
* $(D UnpackException) is thrown on deserialization failure
*/
class UnpackException : MessagePackException
{
this(string message)
{
super(message);
}
}
version (D_Ddoc)
{
/**
* Internal buffer and related operations for Unpacker
*
* Following Unpackers mixin this template. So, Unpacker can use following methods.
*
* -----
* //buffer image:
* +-------------------------------------------+
* | [object] | [obj | unparsed... | unused... |
* +-------------------------------------------+
* ^ offset
* ^ current
* ^ used
* ^ buffer.length
* -----
*
* This mixin template is a private.
*/
mixin template InternalBuffer()
{
private:
ubyte[] buffer_; // internal buffer
size_t used_; // index that buffer cosumed
size_t offset_; // index that buffer parsed
size_t parsed_; // total size of parsed message
bool hasRaw_; // indicates whether Raw object has been deserialized
public:
/**
* Forwards to internal buffer.
*
* Returns:
* the reference of internal buffer.
*/
@property @safe
nothrow ubyte[] buffer();
/**
* Fills internal buffer with $(D_PARAM target).
*
* Params:
* target = new serialized buffer to deserialize.
*/
@safe void feed(in ubyte[] target);
/**
* Consumes buffer. This method is helper for buffer property.
* You must use this method if you write bytes to buffer directly.
*
* Params:
* size = the number of consuming.
*/
@safe
nothrow void bufferConsumed(in size_t size);
/**
* Removes unparsed buffer.
*/
@safe
nothrow void removeUnparsed();
/**
* Returns:
* the total size including unparsed buffer size.
*/
@property @safe
nothrow size_t size() const;
/**
* Returns:
* the parsed size of buffer.
*/
@property @safe
nothrow size_t parsedSize() const;
/**
* Returns:
* the unparsed size of buffer.
*/
@property @safe
nothrow size_t unparsedSize() const;
private:
@safe
void initializeBuffer(in ubyte[] target, in size_t bufferSize = 8192);
}
}
else
{
private mixin template InternalBuffer()
{
private:
ubyte[] buffer_; // internal buffer
size_t used_; // index that buffer cosumed
size_t offset_; // index that buffer parsed
size_t parsed_; // total size of parsed message
bool hasRaw_; // indicates whether Raw object has been deserialized
public:
@property @safe
nothrow ubyte[] buffer()
{
return buffer_;
}
@safe
void feed(in ubyte[] target)
in
{
assert(target.length);
}
body
{
/*
* Expands internal buffer.
*
* Params:
* size = new buffer size to append.
*/
void expandBuffer(in size_t size)
{
// rewinds buffer(completed deserialization)
if (used_ == offset_ && !hasRaw_) {
used_ = offset_ = 0;
if (buffer_.length < size)
buffer_.length = size;
return;
}
// deserializing state is mid-flow(buffer has non-parsed data yet)
auto unparsed = buffer_[offset_..used_];
auto restSize = buffer_.length - used_ + offset_;
auto newSize = size > restSize ? unparsedSize + size : buffer_.length;
if (hasRaw_) {
hasRaw_ = false;
buffer_ = new ubyte[](newSize);
} else {
buffer_.length = newSize;
// avoids overlapping copy
auto area = buffer_[0..unparsedSize];
unparsed = area.overlap(unparsed) ? unparsed.dup : unparsed;
}
buffer_[0..unparsedSize] = unparsed[];
used_ = unparsedSize;
offset_ = 0;
}
const size = target.length;
// lacks current buffer?
if (buffer_.length - used_ < size)
expandBuffer(size);
buffer_[used_..used_ + size] = target[];
used_ += size;
}
@safe
nothrow void bufferConsumed(in size_t size)
{
if (used_ + size > buffer_.length)
used_ = buffer_.length;
else
used_ += size;
}
@safe
nothrow void removeUnparsed()
{
used_ = offset_;
}
@property @safe
nothrow size_t size() const
{
return parsed_ - offset_ + used_;
}
@property @safe
nothrow size_t parsedSize() const
{
return parsed_;
}
@property @safe
nothrow size_t unparsedSize() const
{
return used_ - offset_;
}
private:
@safe
nothrow void initializeBuffer(in ubyte[] target, in size_t bufferSize = 8192)
{
const size = target.length;
buffer_ = new ubyte[](size > bufferSize ? size : bufferSize);
used_ = size;
buffer_[0..size] = target[];
}
}
}
/**
* This $(D Unpacker) is a $(D MessagePack) direct-conversion deserializer
*
* This implementation is suitable for fixed data.
*
* Example:
* -----
* // serializedData is [10, 0.1, false]
* auto unpacker = Unpacker(serializedData);
*
* uint n;
* double d;
* bool b;
*
* unpacker.unpackArray(n, d, b);
*
* // using Tuple
* Tuple!(uint, double, bool) record;
* unpacker.unpack(record); // record is [10, 0.1, false]
* -----
*
* NOTE:
* Unpacker becomes template struct if Phobos supports truly IO module.
*/
struct Unpacker
{
private:
static @system
{
alias void delegate(ref Unpacker, void*) UnpackHandler;
UnpackHandler[TypeInfo] unpackHandlers;
public void registerHandler(T, alias Handler)()
{
unpackHandlers[typeid(T)] = delegate(ref Unpacker unpacker, void* obj) {
Handler(unpacker, *cast(T*)obj);
};
}
}
enum Offset = 1;
mixin InternalBuffer;
bool withFieldName_;
public:
/**
* Constructs a $(D Unpacker).
*
* Params:
* target = byte buffer to deserialize
* bufferSize = size limit of buffer size
*/
this(in ubyte[] target, in size_t bufferSize = 8192, bool withFieldName = false)
{
initializeBuffer(target, bufferSize);
withFieldName_ = withFieldName;
}
/**
* Clears states for next deserialization.
*/
@safe
nothrow void clear()
{
parsed_ = 0;
}
/**
* Deserializes $(D_PARAM T) object and assigns to $(D_PARAM value).
*
* If the argument is pointer, dereferences pointer and assigns deserialized value.
* -----
* int* a;
* unpacker.unpack(a) // enforce throws Exception because a is null or
* // no throw if deserialized value is nil
*
* int b; a = &b;
* unpacker.unpack(b) // b is deserialized value or
* // assigns null if deserialized value is nil
* -----
*
* Params:
* value = the reference of value to assign.
*
* Returns:
* self, i.e. for method chaining.
*
* Throws:
* UnpackException when doesn't read from buffer or precision loss occurs and
* MessagePackException when $(D_PARAM T) type doesn't match serialized type.
*/
ref Unpacker unpack(T)(ref T value) if (is(Unqual!T == bool))
{
canRead(Offset, 0);
const header = read();
switch (header) {
case Format.TRUE:
value = true;
break;
case Format.FALSE:
value = false;
break;
default:
rollback();
}
return this;
}
/// ditto
ref Unpacker unpack(T)(ref T value) if (isUnsigned!T && !is(Unqual!T == enum))
{
canRead(Offset, 0);
const header = read();
if (0x00 <= header && header <= 0x7f) {
value = header;
} else {
switch (header) {
case Format.UINT8:
canRead(ubyte.sizeof);
value = read();
break;
case Format.UINT16:
canRead(ushort.sizeof);
auto us = load16To!ushort(read(ushort.sizeof));
if (us > T.max)
rollback(ushort.sizeof);
value = cast(T)us;
break;
case Format.UINT32:
canRead(uint.sizeof);
auto ui = load32To!uint(read(uint.sizeof));
if (ui > T.max)
rollback(uint.sizeof);
value = cast(T)ui;
break;
case Format.UINT64:
canRead(ulong.sizeof);
auto ul = load64To!ulong(read(ulong.sizeof));
if (ul > T.max)
rollback(ulong.sizeof);
value = cast(T)ul;
break;
default:
rollback();
}
}
return this;
}
/// ditto
ref Unpacker unpack(T)(ref T value) if (isSigned!T && isIntegral!T && !is(Unqual!T == enum))
{
canRead(Offset, 0);
const header = read();
if (0x00 <= header && header <= 0x7f) {
value = cast(T)header;
} else if (0xe0 <= header && header <= 0xff) {
value = -(cast(T)-header);
} else {
switch (header) {
case Format.UINT8:
canRead(ubyte.sizeof);
auto ub = read();
if (ub > T.max)
rollback(ubyte.sizeof);
value = cast(T)ub;
break;
case Format.UINT16:
canRead(ushort.sizeof);
auto us = load16To!ushort(read(ushort.sizeof));
if (us > T.max)
rollback(ushort.sizeof);
value = cast(T)us;
break;
case Format.UINT32:
canRead(uint.sizeof);
auto ui = load32To!uint(read(uint.sizeof));
if (ui > T.max)
rollback(uint.sizeof);
value = cast(T)ui;
break;
case Format.UINT64:
canRead(ulong.sizeof);
auto ul = load64To!ulong(read(ulong.sizeof));
if (ul > T.max)
rollback(ulong.sizeof);
value = cast(T)ul;
break;
case Format.INT8:
canRead(byte.sizeof);
value = cast(byte)read();
break;
case Format.INT16:
canRead(short.sizeof);
auto s = load16To!short(read(short.sizeof));
if (s < T.min || T.max < s)
rollback(short.sizeof);
value = cast(T)s;
break;
case Format.INT32:
canRead(int.sizeof);
auto i = load32To!int(read(int.sizeof));
if (i < T.min || T.max < i)
rollback(int.sizeof);
value = cast(T)i;
break;
case Format.INT64:
canRead(long.sizeof);
auto l = load64To!long(read(long.sizeof));
if (l < T.min || T.max < l)
rollback(long.sizeof);
value = cast(T)l;
break;
default:
rollback();
}
}
return this;
}
/// ditto
ref Unpacker unpack(T)(ref T value) if (isFloatingPoint!T && !is(Unqual!T == enum))
{
canRead(Offset, 0);
const header = read();
switch (header) {
case Format.FLOAT:
_f temp;
canRead(uint.sizeof);
temp.i = load32To!uint(read(uint.sizeof));
value = temp.f;
break;
case Format.DOUBLE:
// check precision loss
static if (is(Unqual!T == float))
rollback();
_d temp;
canRead(ulong.sizeof);
temp.i = load64To!ulong(read(ulong.sizeof));
value = temp.f;
break;
case Format.REAL:
static if (!EnableReal)
{
rollback();
}
else
{
// check precision loss
static if (is(Unqual!T == float) || is(Unqual!T == double))
rollback();
canRead(RealSize);
version (NonX86)
{
CustomFloat!80 temp;
const frac = load64To!ulong (read(ulong.sizeof));
const exp = load16To!ushort(read(ushort.sizeof));
temp.significand = frac;
temp.exponent = exp & 0x7fff;
temp.sign = exp & 0x8000 ? true : false;
// NOTE: temp.get!real is inf on non-x86 when deserialized value is larger than double.max.
value = temp.get!real;
}
else
{
_r temp;
temp.fraction = load64To!(typeof(temp.fraction))(read(temp.fraction.sizeof));
temp.exponent = load16To!(typeof(temp.exponent))(read(temp.exponent.sizeof));
value = temp.f;
}
}
break;
default:
rollback();
}
return this;
}
/// ditto
ref Unpacker unpack(T)(ref T value) if (is(Unqual!T == enum))
{
OriginalType!T temp;
unpack(temp);
value = cast(T)temp;
return this;
}
/// ditto
ref Unpacker unpack(T)(T value) if (isPointer!T)
{
static if (is(Unqual!T == void*)) {
enforce(value !is null, "Can't deserialize void type");
unpackNil(value);
} else {
if (checkNil())
unpackNil(value);
else
enforce(value !is null, T.stringof ~ " is null pointer");
unpack(mixin(AsteriskOf!T ~ "value"));
}
return this;
}
/// ditto
ref Unpacker unpack(Types...)(ref Types objects) if (Types.length > 1)
{
foreach (i, T; Types)
unpack!(T)(objects[i]);
return this;
}
/**
* Deserializes $(D_PARAM T) object and assigns to $(D_PARAM array).
*
* This is convenient method for array deserialization.
* Rollback will be completely successful if you deserialize raw type((u)byte[] or string types).
* But, Rollback will be one element(e.g. int) if you deserialize other types(e.g. int[], int[int])
*
* No assign if the length of deserialized object is 0.
*
* In a static array, this method checks the length. Do rollback and throw exception
* if length of $(D_PARAM array) is different from length of deserialized object.
*
* Params:
* array = the reference of array to assign.
*
* Returns:
* self, i.e. for method chaining.
*
* Throws:
* UnpackException when doesn't read from buffer or precision loss occurs and
* MessagePackException when $(D_PARAM T) type doesn't match serialized type.
*/
ref Unpacker unpack(T)(ref T array) if (isArray!T && !is(Unqual!T == enum))
{
alias typeof(T.init[0]) U;
/*
* Deserializes type-information of raw type.
*/
@safe
size_t beginRaw()
{
canRead(Offset, 0);
const header = read();
size_t length;
if (0xa0 <= header && header <= 0xbf) {
length = header & 0x1f;
} else {
switch (header) {
case Format.BIN8, Format.STR8:
canRead(ubyte.sizeof);
length = read();
break;
case Format.BIN16, Format.RAW16:
canRead(ushort.sizeof);
length = load16To!size_t(read(ushort.sizeof));
break;
case Format.BIN32, Format.RAW32:
canRead(uint.sizeof);
length = load32To!size_t(read(uint.sizeof));
break;
case Format.NIL:
break;
default:
rollback();
}
}
return length;
}
if (checkNil()) {
static if (isStaticArray!T) {
onInvalidType();
} else {
return unpackNil(array);
}
}
// Raw bytes
static if (isByte!U || isSomeChar!U) {
auto length = beginRaw();
auto offset = calculateSize!(true)(length);
if (length == 0)
return this;
static if (isStaticArray!T) {
if (length != array.length)
rollback(offset);
}
canRead(length, offset + Offset);
static if (isStaticArray!T) {
array[] = (cast(U[])read(length))[0 .. T.length];
} else {
array = cast(T)read(length);
}
static if (isDynamicArray!T)
hasRaw_ = true;
} else {
auto length = beginArray();
if (length == 0)
return this;
static if (isStaticArray!T) {
if (length != array.length)
rollback(calculateSize(length));
} else {
array.length = length;
}
foreach (i; 0..length)
unpack(array[i]);
}
return this;
}
/// ditto
ref Unpacker unpack(T)(ref T array) if (isAssociativeArray!T)
{
alias typeof(T.init.keys[0]) K;
alias typeof(T.init.values[0]) V;
if (checkNil())
return unpackNil(array);
auto length = beginMap();
if (length == 0)
return this;
foreach (i; 0..length) {
K k; unpack(k);
V v; unpack(v);
array[k] = v;
}
return this;
}
/**
* Deserializes $(D_PARAM T) object and assigns to $(D_PARAM object).
*
* Calling $(D fromMsgpack) if $(D_KEYWORD class) and $(D_KEYWORD struct) implement $(D fromMsgpack) method. $(D fromMsgpack) signature is:
* -----
* void fromMsgpack(ref Unpacker unpacker)
* -----
* Assumes $(D std.typecons.Tuple) or simple struct if $(D_KEYWORD struct) doesn't implement $(D fromMsgpack).
* Checks length if $(D_PARAM T) is a $(D std.typecons.Tuple) or simple struct.
*
* Params:
* object = the reference of object to assign.
* args = the arguments to class constructor(class only).
* This is used at new statement if $(D_PARAM object) is $(D_KEYWORD null).
*
* Returns:
* self, i.e. for method chaining.
*/
ref Unpacker unpack(T, Args...)(ref T object, auto ref Args args) if (is(Unqual!T == class))
{
if (checkNil())
return unpackNil(object);
if (object is null) {
//static if (is(typeof(new T(args))))
static if (__traits(compiles, { new T(args); }))
object = new T(args);
else
throw new MessagePackException("Don't know how to construct class type '" ~ Unqual!T.stringof ~ "' with argument types '" ~ Args.stringof ~ "'.");
}
static if (hasMember!(T, "fromMsgpack"))
{
static if (__traits(compiles, { T t; t.fromMsgpack(this, withFieldName_); })) {
object.fromMsgpack(this, withFieldName_);
} else static if (__traits(compiles, { T t; t.fromMsgpack(this); })) { // backward compatible
object.fromMsgpack(this);
} else {
static assert(0, "Failed to invoke 'fromMsgpack' on type '" ~ Unqual!T.stringof ~ "'");
}
} else {
if (auto handler = object.classinfo in unpackHandlers) {
(*handler)(this, cast(void*)&object);
return this;
}
if (T.classinfo !is object.classinfo) {
throw new MessagePackException("Can't unpack derived class through reference to base class.");
}
alias SerializingClasses!(T) Classes;
size_t length = withFieldName_ ? beginMap() : beginArray();
if (length == 0)
return this;
if (length != SerializingMemberNumbers!(Classes))
rollback(calculateSize(length));
if (withFieldName_) {
foreach (_; 0..length) {
string fieldName;
unpack(fieldName);
foreach (Class; Classes) {
Class obj = cast(Class)object;
foreach (i, member; obj.tupleof) {
static if (isPackedField!(Class.tupleof[i]))
{
if (fieldName == getFieldName!(Class, i)) {
unpack(obj.tupleof[i]);
goto endLoop;
}
}
}
}
assert(false, "Invalid field name: '" ~ fieldName~"' ");
endLoop:
continue;
}
} else {
foreach (Class; Classes) {
Class obj = cast(Class)object;
foreach (i, member; obj.tupleof) {
static if (isPackedField!(Class.tupleof[i]))
unpack(obj.tupleof[i]);
}
}
}
}
return this;
}
/// ditto
ref Unpacker unpack(T)(ref T object) if (is(Unqual!T == struct))
{
static if (hasMember!(T, "fromMsgpack"))
{
static if (__traits(compiles, { T t; t.fromMsgpack(this); })) {
object.fromMsgpack(this);
} else {
static assert(0, "Failed to invoke 'fromMsgpack' on type '" ~ Unqual!T.stringof ~ "'");
}
} else {
if (auto handler = typeid(T) in unpackHandlers) {
(*handler)(this, cast(void*)&object);
return this;
}
auto length = beginArray();
if (length == 0)
return this;
static if (isTuple!T) {
if (length != T.Types.length)
rollback(calculateSize(length));
foreach (i, Type; T.Types)
unpack(object.field[i]);
} else { // simple struct
//if (length != object.tupleof.length)
if (length != SerializingMemberNumbers!(T))
rollback(calculateSize(length));
foreach (i, member; object.tupleof) {
static if (isPackedField!(T.tupleof[i]))
unpack(object.tupleof[i]);
}
}
}
return this;
}
/**
* Deserializes the container object and assigns to each argument.
*
* These methods check the length. Do rollback if
* the length of arguments is different from length of deserialized object.
*
* In unpackMap, the number of arguments must be even.
*
* Params:
* objects = the references of object to assign.
*
* Returns:
* self, i.e. for method chaining.
*/
ref Unpacker unpackArray(Types...)(ref Types objects)
{
auto length = beginArray();
if (length != Types.length)
rollback(calculateSize(length));
foreach (i, T; Types)
unpack(objects[i]);
// unpack(objects); // slow :(
return this;
}
/// ditto
ref Unpacker unpackMap(Types...)(ref Types objects)
{
static assert(Types.length % 2 == 0, "The number of arguments must be even");
auto length = beginMap();
if (length != Types.length / 2)
rollback(calculateSize(length));
foreach (i, T; Types)
unpack(objects[i]);
return this;
}
/**
* Deserializes the type-information of container.
*
* These methods don't deserialize contents.
* You need to call unpack method to deserialize contents at your own risk.
* -----
* // serialized data is [1, "Hi!"];
* int num;
* unpacker.beginArray(2).unpack(num); // num is 1
*
* // other operation
*
* string str;
* unpacker.unpack(str); // str is "Hi!"
* -----
*
* Returns:
* the container size.
*/
@safe
size_t beginArray()
{
canRead(Offset, 0);
const header = read();
size_t length;
if (0x90 <= header && header <= 0x9f) {
length = header & 0x0f;
} else {
switch (header) {
case Format.ARRAY16:
canRead(ushort.sizeof);
length = load16To!size_t(read(ushort.sizeof));
break;
case Format.ARRAY32:
canRead(uint.sizeof);
length = load32To!size_t(read(uint.sizeof));
break;
case Format.NIL:
break;
default:
rollback();
}
}
return length;
}
/// ditto
@safe
size_t beginMap()
{
canRead(Offset, 0);
const header = read();
size_t length;
if (0x80 <= header && header <= 0x8f) {
length = header & 0x0f;
} else {
switch (header) {
case Format.MAP16:
canRead(ushort.sizeof);
length = load16To!size_t(read(ushort.sizeof));
break;
case Format.MAP32:
canRead(uint.sizeof);
length = load32To!size_t(read(uint.sizeof));
break;
case Format.NIL:
break;
default:
rollback();
}
}
return length;
}
/**
* Scans an entire buffer and converts each objects.
*
* This method is used for unpacking record-like objects.
*
* Example:
* -----
* // serialized data is "[1, 2][3, 4][5, 6][...".
* auto unpacker = Unpacker(serializedData);
* foreach (n, d; &unpacker.scan!(int, int)) // == "foreach (int n, int d; unpacker)"
* writeln(n, d); // 1st loop "1, 2", 2nd loop "3, 4"...
* -----
*/
int scan(Types...)(scope int delegate(ref Types) dg)
{
return opApply!(Types)(delegate int(ref Types objects) { return dg(objects); });
}
/// ditto
int opApply(Types...)(scope int delegate(ref Types) dg)
{
int result;
while (used_ - offset_) {
auto length = beginArray();
if (length != Types.length)
rollback(calculateSize(length));
Types objects;
foreach (i, T; Types)
unpack(objects[i]);
result = dg(objects);
if (result)
return result;
}
return result;
}
private:
/*
* Deserializes nil object and assigns to $(D_PARAM value).
*
* Params:
* value = the reference of value to assign.
*
* Returns:
* self, i.e. for method chaining.
*
* Throws:
* UnpackException when doesn't read from buffer or precision loss occurs and
* MessagePackException when $(D_PARAM T) type doesn't match serialized type.
*/
@safe
ref Unpacker unpackNil(T)(ref T value)
{
canRead(Offset, 0);
const header = read();
if (header == Format.NIL)
value = null;
else
rollback();
return this;
}
/*
* Next object is nil?
*
* Returns:
* true if next object is nil.
*/
@safe
bool checkNil()
{
canRead(Offset, 0);
return buffer_[offset_] == Format.NIL;
}
/*
* Calculates the format size of container length.
*/
size_t calculateSize(bool rawType = false)(in size_t length)
{
static if (rawType)
return length < 32 ? 0 : length < 65536 ? ushort.sizeof : uint.sizeof;
else
return length < 16 ? 0 : length < 65536 ? ushort.sizeof : uint.sizeof;
}
/*
* Reading test.
*
* Params:
* size = the size to read.
* offset = the offset to subtract when doesn't read from buffer.
*
* Throws:
* UnpackException when doesn't read from buffer.
*/
@safe
void canRead(in size_t size, in size_t offset = Offset)
{
if (used_ - offset_ < size) {
if (offset)
offset_ -= offset;
throw new UnpackException("Insufficient buffer");
}
}
/*
* Reads value from buffer and advances offset.
*/
@safe
nothrow ubyte read()
{
return buffer_[offset_++];
}
/*
* Reads value from buffer and advances offset.
*/
@safe
nothrow ubyte[] read(in size_t size)
{
auto result = buffer_[offset_..offset_ + size];
offset_ += size;
return result;
}
/*
* Do rollback and throws exception.
*/
@safe
void rollback(in size_t size = 0)
{
offset_ -= size + Offset;
onInvalidType();
}
}
/**
* Register a deserialization handler for $(D_PARAM T) type
*
* Example:
* -----
* registerUnackHandler!(Foo, fooUnackHandler);
* -----
*/
void registerUnpackHandler(T, alias Handler)()
{
Unpacker.registerHandler!(T, Handler);
}
unittest
{
{ // unique
mixin DefinePacker;
Tuple!(bool, bool) result;
Tuple!(bool, bool) test = tuple(true, false);
packer.pack(test);
auto unpacker = Unpacker(packer.stream.data);
unpacker.unpack(result);
assert(test == result);
}
{ // uint *
mixin DefinePacker;
Tuple!(ubyte, ushort, uint, ulong) result;
Tuple!(ubyte, ushort, uint, ulong) test = tuple(cast(ubyte)ubyte.max, cast(ushort)ushort.max,
cast(uint)uint.max, cast(ulong)ulong.max);
packer.pack(test);
auto unpacker = Unpacker(packer.stream.data);
unpacker.unpack(result);
assert(test == result);
}
{ // int *
mixin DefinePacker;
Tuple!(byte, short, int, long) result;
Tuple!(byte, short, int, long) test = tuple(cast(byte)byte.min, cast(short)short.min,
cast(int)int.min, cast(long)long.min);
packer.pack(test);
auto unpacker = Unpacker(packer.stream.data);
unpacker.unpack(result);
assert(test == result);
}
{ // floating point
mixin DefinePacker;
static if (real.sizeof == double.sizeof || !EnableReal)
{
Tuple!(float, double, double) result;
Tuple!(float, double, double) test = tuple(cast(float)float.min_normal, cast(double)double.max, cast(real)double.min_normal);
}
else
{
Tuple!(float, double, real) result;
Tuple!(float, double, real) test = tuple(cast(float)float.min_normal, cast(double)double.max, cast(real)real.min_normal);
}
packer.pack(test);
auto unpacker = Unpacker(packer.stream.data);
unpacker.unpack(result);
assert(test == result);
}
{ // pointer
mixin DefinePacker;
Tuple!(ulong, long, double) origin;
Tuple!(ulong, long, double) values = tuple(ulong.max, long.min, double.min_normal);
Tuple!(ulong*, long*, double*) result = tuple(&origin.field[0], &origin.field[1], &origin.field[2]);
Tuple!(ulong*, long*, double*) test = tuple(&values.field[0], &values.field[1], &values.field[2]);
packer.pack(test);
auto unpacker = Unpacker(packer.stream.data);
unpacker.unpack(result);
foreach (i, v; test.field)
assert(*v == *result.field[i]);
assert(origin == values);
}
{ // enum
enum : float { D = 0.5 }
enum E : ulong { U = 100 }
mixin DefinePacker;
float f = D, resultF;
E e = E.U, resultE;
packer.pack(D, e);
auto unpacker = Unpacker(packer.stream.data);
unpacker.unpack(resultF, resultE);
assert(f == resultF);
assert(e == resultE);
}
{ // container
mixin DefinePacker;
Tuple!(ulong[], double[uint], string, bool[2], char[2]) test
= tuple([1UL, 2], [3U:4.0, 5:6.0, 7:8.0], "MessagePack is nice!", [true, false], "D!");
packer.pack(test);
auto unpacker = Unpacker(packer.stream.data);
Tuple!(ulong[], double[uint], string, bool[2], char[2]) result;
unpacker.unpack(result);
assert(test == result);
}
{ // user defined
{
static struct S
{
uint num;
void toMsgpack(P)(ref P p) const { p.packArray(num); }
void fromMsgpack(ref Unpacker u)
{
assert(u.beginArray() == 1);
u.unpack(num);
}
}
mixin DefinePacker; S result, test = S(uint.max);
packer.pack(test);
auto unpacker = Unpacker(packer.stream.data);
unpacker.unpack(result);
assert(test.num == result.num);
}
{
static class C
{
uint num;
this(uint n) { num = n; }
void toMsgpack(P)(ref P p) const { p.packArray(num - 1); }
void fromMsgpack(ref Unpacker u)
{
assert(u.beginArray() == 1);
u.unpack(num);
}
}
mixin DefinePacker; C result, test = new C(ushort.max);
packer.pack(test);
auto unpacker = Unpacker(packer.stream.data);
unpacker.unpack(result, ushort.max);
assert(test.num == result.num + 1);
}
}
{ // simple struct and class
{
static struct Simple
{
uint num;
@nonPacked string str;
}
static struct Simple2
{
@nonPacked string str;
uint num;
}
foreach (Type; TypeTuple!(Simple, Simple2)) {
mixin DefinePacker;
Type result, test;
test.num = uint.max;
test.str = "ignored";
packer.pack(test);
auto unpacker = Unpacker(packer.stream.data);
unpacker.unpack(result);
assert(test.num == result.num);
assert(test.str != result.str);
}
}
static class SimpleA
{
bool flag = true;
}
static class SimpleB : SimpleA
{
ubyte type = 100;
}
static class SimpleC : SimpleB
{
uint num = uint.max;
@nonPacked string str;
}
static class SimpleC2 : SimpleB
{
@nonPacked string str;
uint num = uint.max;
}
{ // from derived class
foreach (Type; TypeTuple!(SimpleC, SimpleC2)) {
mixin DefinePacker;
Type result, test = new Type();
test.flag = false;
test.type = 99;
test.num = uint.max / 2;
test.str = "ignored";
packer.pack(test);
auto unpacker = Unpacker(packer.stream.data);
unpacker.unpack(result);
assert(test.flag == result.flag);
assert(test.type == result.type);
assert(test.num == result.num);
assert(test.str != result.str);
}
}
{ // from base class
mixin DefinePacker; SimpleC test = new SimpleC();
packer.pack(test);
SimpleB result = new SimpleC();
auto unpacker = Unpacker(packer.stream.data);
try {
unpacker.unpack(result);
assert(false);
} catch (Exception e) { }
}
{ // https://github.com/msgpack/msgpack-d/issues/16
static class Issue16
{
int i;
this(int i) { this.i = i; }
}
Issue16 c1 = new Issue16(10);
try {
Issue16 c2 = null;
unpack(pack(c1), c2);
assert(false);
} catch (Exception e) {}
Issue16 c3 = new Issue16(20);
unpack(pack(c1), c3);
assert(c3.i == c1.i);
}
}
{ // variadic
mixin DefinePacker;
Tuple!(uint, long, double) test = tuple(uint.max, long.min, double.max);
packer.pack(test);
auto unpacker = Unpacker(packer.stream.data);
uint u; long l; double d;
unpacker.unpackArray(u, l, d);
assert(test == tuple(u, l, d));
}
{ // scan / opApply
ubyte[] data;
mixin DefinePacker;
foreach (i; 0..2)
packer.pack(tuple(1, 0.5, "Hi!"));
foreach (n, d, s; &Unpacker(packer.stream.data).scan!(int, double, string)) {
assert(n == 1);
assert(d == 0.5);
assert(s == "Hi!");
}
}
}
// Static resolution routines for Stream deserializer
/**
* $(D Value) is a $(D MessagePack) value representation
*
* Example:
* -----
* auto unpacker = StreamingUnpacker(pack(1, 0.1L) ~ pack(true) ~ pack("foobarbaz"));
*
* foreach (unpacked; unpacker) {
* if (unpacked.type == Value.Type.array) {
* foreach (obj; unpacked) {
* switch (obj.type) {
* case Value.Type.unsigned: writeln(obj.as!(uint)); break;
* case Value.Type.floating: writeln(obj.as!(real)); break;
* defalut:
* throw new Exception("Unknown type");
* }
* }
* } else {
* if (unpacked.type == Value.Type.boolean)
* writeln(unpacked.as!(bool));
* else
* writeln("Message: ", unpacked.as!(string));
* }
* }
* -----
*/
struct Value
{
/**
* $(D MessagePack) value type
*/
static enum Type
{
nil, /// nil(null in D)
boolean, /// true, false
unsigned, /// positive fixnum, uint 8, uint 16, uint 32, uint 64
signed, /// negative fixnum, int 8, int 16, int 32, int 64
floating, /// float, double, real
array, /// fix array, array 16, array 32
map, /// fix map, map 16, map 32
raw /// fix raw, raw 16, raw 32
}
/**
* msgpack value representation
*/
static union Via
{
bool boolean; /// corresponding to Type.boolean
ulong uinteger; /// corresponding to Type.unsigned
long integer; /// corresponding to Type.signed
real floating; /// corresponding to Type.floating
Value[] array; /// corresponding to Type.array
Value[Value] map; /// corresponding to Type.map
ubyte[] raw; /// corresponding to Type.raw
}
Type type; /// represents value type
Via via; /// represents real value
/**
* Constructs a $(D Value) with arguments.
*
* Params:
* value = the real content.
* type = the type of value.
*/
@safe
this(Type type = Type.nil)
{
this.type = type;
}
@safe
this(typeof(null))
{
this(Type.nil);
}
/// ditto
@trusted
this(bool value, Type type = Type.boolean)
{
this(type);
via.boolean = value;
}
/// ditto
@trusted
this(ulong value, Type type = Type.unsigned)
{
this(type);
via.uinteger = value;
}
/// ditto
@trusted
this(long value, Type type = Type.signed)
{
this(type);
via.integer = value;
}
/// ditto
@trusted
this(real value, Type type = Type.floating)
{
this(type);
via.floating = value;
}
/// ditto
@trusted
this(Value[] value, Type type = Type.array)
{
this(type);
via.array = value;
}
/// ditto
@trusted
this(Value[Value] value, Type type = Type.map)
{
this(type);
via.map = value;
}
/// ditto
@trusted
this(ubyte[] value, Type type = Type.raw)
{
this(type);
via.raw = value;
}
/// This is unsafe overload because using cast internally.
@trusted
this(string value, Type type = Type.raw)
{
this(type);
via.raw = cast(ubyte[])value;
}
/**
* Converts value to $(D_PARAM T) type.
*
* Returns:
* converted value.
*
* Throws:
* MessagePackException if type is mismatched.
*
* NOTE:
* Current implementation uses cast.
*/
@property @trusted
T as(T)() if (is(Unqual!T == bool))
{
if (type != Type.boolean)
onCastError();
return via.boolean;
}
/// ditto
@property @trusted
T as(T)() if (isIntegral!T && !is(Unqual!T == enum))
{
if (type == Type.unsigned)
return cast(T)via.uinteger;
if (type == Type.signed)
return cast(T)via.integer;
onCastError();
assert(false);
}
/// ditto
@property @trusted
T as(T)() if (isFloatingPoint!T && !is(Unqual!T == enum))
{
if (type != Type.floating)
onCastError();
return cast(T)via.floating;
}
/// ditto
@property @trusted
T as(T)() if (is(Unqual!T == enum))
{
return cast(T)as!(OriginalType!T);
}
/// ditto
@property @trusted
T as(T)() if (isArray!T && !is(Unqual!T == enum))
{
alias typeof(T.init[0]) V;
if (type == Type.nil) {
static if (isDynamicArray!T) {
return null;
} else {
return T.init;
}
}
static if (isByte!V || isSomeChar!V) {
if (type != Type.raw)
onCastError();
static if (isDynamicArray!T) {
return cast(T)via.raw;
} else {
if (via.raw.length != T.length)
onCastError();
return cast(T)(via.raw[0 .. T.length]);
}
} else {
if (type != Type.array)
onCastError();
V[] array;
foreach (elem; via.array)
array ~= elem.as!(V);
return array;
}
}
/// ditto
@property @trusted
T as(T)() if (isAssociativeArray!T)
{
alias typeof(T.init.keys[0]) K;
alias typeof(T.init.values[0]) V;
if (type == Type.nil)
return null;
if (type != Type.map)
onCastError();
V[K] map;
foreach (key, value; via.map)
map[key.as!(K)] = value.as!(V);
return map;
}
/**
* Converts to $(D_PARAM T) type.
*
* Calling $(D fromMsgpack) if $(D_KEYWORD class) and $(D_KEYWORD struct) implement $(D fromMsgpack) method. $(D fromMsgpack) signature is:
* -----
* void fromMsgpack(Value value)
* -----
* This method assigns converted values to all members of T object if $(D_KEYWORD class) and $(D_KEYWORD struct) don't implement $(D fromMsgpack).
*
* Params:
* args = arguments to class constructor(class only).
*
* Returns:
* converted value.
*/
@property @trusted
T as(T, Args...)(Args args) if (is(Unqual!T == class))
{
if (type == Type.nil)
return null;
T object = new T(args);
static if (hasMember!(T, "fromMsgpack"))
{
static if (__traits(compiles, { T t; t.fromMsgpack(this); })) {
object.fromMsgpack(this);
} else {
static assert(0, "Failed to invoke 'fromMsgpack' on type '" ~ Unqual!T.stringof ~ "'");
}
} else {
alias SerializingClasses!(T) Classes;
if (via.array.length != SerializingMemberNumbers!(Classes))
throw new MessagePackException("The number of deserialized object member is mismatched");
size_t offset;
foreach (Class; Classes) {
Class obj = cast(Class)object;
foreach (i, member; obj.tupleof) {
static if (isPackedField!(Class.tupleof[i]))
obj.tupleof[i] = via.array[offset++].as!(typeof(member));
}
}
}
return object;
}
/// ditto
@property @trusted
T as(T)() if (is(Unqual!T == struct))
{
T obj;
static if (hasMember!(T, "fromMsgpack"))
{
static if (__traits(compiles, { T t; t.fromMsgpack(this); })) {
obj.fromMsgpack(this);
} else {
static assert(0, "Failed to invoke 'fromMsgpack' on type '" ~ Unqual!T.stringof ~ "'");
}
} else {
static if (isTuple!T) {
if (via.array.length != T.Types.length)
throw new MessagePackException("The number of deserialized Tuple element is mismatched");
foreach (i, Type; T.Types)
obj.field[i] = via.array[i].as!(Type);
} else { // simple struct
if (via.array.length != SerializingMemberNumbers!T)
throw new MessagePackException("The number of deserialized struct member is mismatched");
size_t offset;
foreach (i, member; obj.tupleof) {
static if (isPackedField!(T.tupleof[i]))
obj.tupleof[i] = via.array[offset++].as!(typeof(member));
}
}
}
return obj;
}
/**
* Special method called by $(D Packer).
*
* Params:
* packer = a MessagePack serializer.
*/
void toMsgpack(Packer)(ref Packer packer) const
{
final switch (type) {
case Type.nil:
packer.packNil();
break;
case Type.boolean:
packer.pack(via.boolean);
break;
case Type.unsigned:
packer.pack(via.uinteger);
break;
case Type.signed:
packer.pack(via.integer);
break;
case Type.floating:
packer.pack(via.floating);
break;
case Type.raw:
packer.pack(via.raw);
break;
case Type.array:
packer.beginArray(via.array.length);
foreach (elem; via.array)
elem.toMsgpack(packer);
break;
case Type.map:
packer.beginMap(via.map.length);
foreach (key, value; via.map) {
key.toMsgpack(packer);
value.toMsgpack(packer);
}
break;
}
}
/**
* Comparison for equality. @trusted for union.
*/
@trusted
bool opEquals(Tdummy = void)(ref const Value other) const
{
if (type != other.type)
return false;
final switch (other.type) {
case Type.nil: return true;
case Type.boolean: return opEquals(other.via.boolean);
case Type.unsigned: return opEquals(other.via.uinteger);
case Type.signed: return opEquals(other.via.integer);
case Type.floating: return opEquals(other.via.floating);
case Type.raw: return opEquals(other.via.raw);
case Type.array: return opEquals(other.via.array);
case Type.map: return opEquals(other.via.map);
}
}
/// ditto
@trusted
bool opEquals(T : bool)(in T other) const
{
if (type != Type.boolean)
return false;
return via.boolean == other;
}
/// ditto
@trusted
bool opEquals(T : ulong)(in T other) const
{
static if (__traits(isUnsigned, T)) {
if (type != Type.unsigned)
return false;
return via.uinteger == other;
} else {
if (type != Type.signed)
return false;
return via.integer == other;
}
}
/// ditto
@trusted
bool opEquals(T : real)(in T other) const
{
if (type != Type.floating)
return false;
return via.floating == other;
}
/// ditto
@trusted
bool opEquals(T : const Value[])(in T other) const
{
if (type != Type.array)
return false;
return via.array == other;
}
/// ditto
@trusted
bool opEquals(T : const Value[Value])(in T other) const
{
if (type != Type.map)
return false;
// This comparison is instead of default comparison because 'via.map == other' raises "Access Violation".
foreach (key, value; via.map) {
if (key in other) {
if (other[key] != value)
return false;
} else {
return false;
}
}
return true;
}
/// ditto
@trusted
bool opEquals(T : const(ubyte)[])(in T other) const
{
if (type != Type.raw)
return false;
return via.raw == other;
}
/// ditto
@trusted
bool opEquals(T : string)(in T other) const
{
if (type != Type.raw)
return false;
return via.raw == cast(ubyte[])other;
}
@trusted
hash_t toHash() const nothrow
{
static hash_t getHash(T)(T* v) @safe nothrow
{
return typeid(T).getHash(v);
}
final switch (type) {
case Type.nil: return 0;
case Type.boolean: return getHash(&via.boolean);
case Type.unsigned: return getHash(&via.uinteger);
case Type.signed: return getHash(&via.integer);
case Type.floating: return getHash(&via.floating);
case Type.raw: return getHash(&via.raw);
case Type.array:
hash_t ret;
foreach (elem; via.array)
ret ^= elem.toHash();
return ret;
case Type.map:
try {
hash_t ret;
foreach (key, value; via.map) {
ret ^= key.toHash();
ret ^= value.toHash();
}
return ret;
} catch assert(0);
}
}
}
unittest
{
// nil
Value value = Value(null);
Value other = Value();
assert(value == other);
assert(value.type == Value.Type.nil);
// boolean
value = Value(true);
other = Value(false);
assert(value != other);
assert(value.type == Value.Type.boolean);
assert(value.as!(bool) == true);
assert(other == false);
try {
auto b = value.as!(uint);
assert(false);
} catch (MessagePackException e) { }
// unsigned integer
value = Value(10UL);
other = Value(10UL);
assert(value == other);
assert(value.type == Value.Type.unsigned);
assert(value.as!(uint) == 10);
assert(other == 10UL);
// signed integer
value = Value(-20L);
other = Value(-10L);
assert(value != other);
assert(value.type == Value.Type.signed);
assert(value.as!(int) == -20);
assert(other == -10L);
// enum
enum E : int { F = -20 }
E e = value.as!(E);
assert(e == E.F);
// floating point
value = Value(0.1e-10L);
other = Value(0.1e-20L);
assert(value != other);
assert(value.type == Value.Type.floating);
assert(value.as!(real) == 0.1e-10L);
assert(other == 0.1e-20L);
// raw
value = Value(cast(ubyte[])[72, 105, 33]);
other = Value(cast(ubyte[])[72, 105, 33]);
assert(value == other);
assert(value.type == Value.Type.raw);
assert(value.as!(string) == "Hi!");
assert(value.as!(ubyte[3]) == [72, 105, 33]);
assert(other == cast(ubyte[])[72, 105, 33]);
// raw with string
value = Value("hello");
other = Value("hello");
assert(value == other);
assert(value.type == Value.Type.raw);
assert(value.as!(string) == "hello");
// enum : string
enum EStr : string { elem = "hello" }
assert(value.as!(EStr) == EStr.elem);
// array
auto t = Value(cast(ubyte[])[72, 105, 33]);
value = Value([t]);
other = Value([t]);
assert(value == other);
assert(value.type == Value.Type.array);
assert(value.as!(string[]) == ["Hi!"]);
assert(other == [t]);
// map
value = Value([Value(1L):Value(2L)]);
other = Value([Value(1L):Value(1L)]);
assert(value != other);
assert(value.type == Value.Type.map);
assert(value.as!(int[int]) == [1:2]);
assert(other == [Value(1L):Value(1L)]);
value = Value(10UL);
// struct
static struct S
{
ulong num;
void fromMsgpack(Value value) { num = value.via.uinteger; }
}
S s = value.as!(S);
assert(s.num == 10);
value = Value([Value(0.5f), Value(cast(ubyte[])[72, 105, 33])]);
// struct
static struct Simple
{
@nonPacked int era;
double num;
string msg;
}
Simple simple = value.as!(Simple);
assert(simple.era == int.init);
assert(simple.num == 0.5f);
assert(simple.msg == "Hi!");
value = Value(10UL);
// class
static class C
{
ulong num;
void fromMsgpack(Value value) { num = value.via.uinteger; }
}
C c = value.as!(C);
assert(c.num == 10);
static class SimpleA
{
bool flag = true;
}
static class SimpleB : SimpleA
{
ubyte type = 100;
}
static class SimpleC : SimpleB
{
@nonPacked string str;
uint num = uint.max;
}
value = Value([Value(false), Value(99UL), Value(cast(ulong)(uint.max / 2u))]);
SimpleC sc = value.as!(SimpleC);
assert(sc.flag == false);
assert(sc.type == 99);
assert(sc.num == uint.max / 2);
assert(sc.str.empty);
// std.typecons.Tuple
value = Value([Value(true), Value(1UL), Value(cast(ubyte[])"Hi!")]);
auto tuple = value.as!(Tuple!(bool, uint, string));
assert(tuple.field[0] == true);
assert(tuple.field[1] == 1u);
assert(tuple.field[2] == "Hi!");
/*
* non-MessagePackable object is stopped by static assert
* static struct NonMessagePackable {}
* auto nonMessagePackable = value.as!(NonMessagePackable);
*/
}
/**
* $(D Unpacked) is a $(D Range) wrapper for stream deserialization result
*/
struct Unpacked
{
Value value; /// deserialized value
alias value this;
/**
* Constructs a $(D Unpacked) with argument.
*
* Params:
* value = a deserialized value.
*/
@safe
this(ref Value value)
{
this.value = value;
}
/**
* InputRange primitive operation that checks iteration state.
*
* Returns:
* true if there are no more elements to be iterated.
*/
@property @trusted
nothrow bool empty() const // std.array.empty isn't nothrow function
{
return (value.type == Value.Type.array) && !value.via.array.length;
}
/**
* Range primitive operation that returns the length of the range.
*
* Returns:
* the number of values.
*/
@property @trusted
size_t length()
{
return value.via.array.length;
}
/**
* InputRange primitive operation that returns the currently iterated element.
*
* Returns:
* the deserialized $(D Value).
*/
@property @trusted
ref Value front()
{
return value.via.array.front;
}
/**
* InputRange primitive operation that advances the range to its next element.
*/
@trusted
void popFront()
{
value.via.array.popFront();
}
/**
* RandomAccessRange primitive operation.
*
* Returns:
* the deserialized $(D Value) at $(D_PARAM n) position.
*/
@trusted
nothrow ref Value opIndex(size_t n)
{
return value.via.array[n];
}
/**
* Returns a slice of the range.
*
* Paramas:
* from = the start point of slicing.
* to = the end point of slicing.
*
* Returns:
* the slice of Values.
*/
@trusted
Value[] opSlice(size_t from, size_t to)
{
return value.via.array[from..to];
}
/**
* Range primitive operation that returns the snapshot.
*
* Returns:
* the snapshot of this Value.
*/
@property @safe
Unpacked save()
{
return Unpacked(value);
}
}
unittest
{
static assert(isForwardRange!Unpacked);
static assert(hasLength!Unpacked);
}
/**
* This $(D StreamingUnpacker) is a $(D MessagePack) streaming deserializer
*
* This implementation enables you to load multiple objects from a stream(like network).
*
* Example:
* -----
* ...
* auto unpacker = StreamingUnpacker(serializedData);
* ...
*
* // appends new data to buffer if pre execute() call didn't finish deserialization.
* unpacker.feed(newSerializedData);
*
* while (unpacker.execute()) {
* foreach (obj; unpacker.purge()) {
* // do stuff (obj is a Value)
* }
* }
*
* if (unpacker.size)
* throw new Exception("Message is too large");
* -----
*/
struct StreamingUnpacker
{
private:
/*
* Context state of deserialization
*/
enum State
{
HEADER = 0x00,
BIN8 = 0x04,
BIN16,
BIN32,
// Floating point, Unsigned, Signed interger (== header & 0x03)
FLOAT = 0x0a,
DOUBLE,
UINT8,
UINT16,
UINT32,
UINT64,
INT8,
INT16,
INT32,
INT64,
// Container (== header & 0x01)
STR8 = 0x19,
RAW16 = 0x1a,
RAW32,
ARRAY16,
ARRAY36,
MAP16,
MAP32,
RAW,
// D-specific type
REAL
}
/*
* Element type of container
*/
enum ContainerElement
{
ARRAY_ITEM,
MAP_KEY,
MAP_VALUE
}
/*
* Internal stack context
*/
static struct Context
{
static struct Container
{
ContainerElement type; // value container type
Value value; // current value
Value key; // for map value
size_t count; // container length
}
State state; // current state of deserialization
size_t trail; // current deserializing size
size_t top; // current index of stack
Container[] stack; // storing values
}
Context context_; // stack environment for streaming deserialization
mixin InternalBuffer;
public:
/**
* Constructs a $(D StreamingUnpacker).
*
* Params:
* target = byte buffer to deserialize
* bufferSize = size limit of buffer size
*/
@safe
this(in ubyte[] target, in size_t bufferSize = 8192)
{
initializeBuffer(target, bufferSize);
initializeContext();
}
/**
* Forwards to deserialized object.
*
* Returns:
* the $(D Unpacked) object contains deserialized value.
*/
@property @safe
Unpacked unpacked()
{
return Unpacked(context_.stack[0].value);
}
/**
* Clears some states for next deserialization.
*/
@safe
nothrow void clear()
{
initializeContext();
parsed_ = 0;
}
/**
* Convenient method for unpacking and clearing states.
*
* Example:
* -----
* foreach (obj; unpacker.purge()) {
* // do stuff
* }
* -----
* is equivalent to
* -----
* foreach (obj; unpacker.unpacked) {
* // do stuff
* }
* unpacker.clear();
* -----
*
* Returns:
* the $(D Unpacked) object contains deserialized value.
*/
@safe
Unpacked purge()
{
auto result = Unpacked(context_.stack[0].value);
clear();
return result;
}
/**
* Executes deserialization.
*
* Returns:
* true if deserialization has been completed, otherwise false.
*
* Throws:
* $(D UnpackException) when parse error occurs.
*/
bool execute()
{
/*
* Current implementation is very dirty(goto! goto!! goto!!!).
* This Complexity for performance(avoid function call).
*/
bool ret;
size_t cur = offset_;
Value obj;
// restores before state
auto state = context_.state;
auto trail = context_.trail;
auto top = context_.top;
auto stack = &context_.stack;
/*
* Helper for container deserialization
*/
bool startContainer(string Type)(ContainerElement type, size_t length)
{
mixin("callback" ~ Type ~ "((*stack)[top].value, length);");
if (length == 0)
return false;
(*stack)[top].type = type;
(*stack)[top].count = length;
(*stack).length = ++top + 1;
return true;
}
// non-deserialized data is nothing
if (used_ - offset_ == 0)
goto Labort;
do {
Lstart:
if (state == State.HEADER) {
const header = buffer_[cur];
if (0x00 <= header && header <= 0x7f) { // positive
callbackUInt(obj, header);
goto Lpush;
} else if (0xe0 <= header && header <= 0xff) { // negative
callbackInt(obj, cast(byte)header);
goto Lpush;
} else if (0xa0 <= header && header <= 0xbf) { // fix raw
trail = header & 0x1f;
state = State.RAW;
cur++;
continue;
} else if (0x90 <= header && header <= 0x9f) { // fix array
if (!startContainer!"Array"(ContainerElement.ARRAY_ITEM, header & 0x0f))
goto Lpush;
cur++;
continue;
} else if (0x80 <= header && header <= 0x8f) { // fix map
if (!startContainer!"Map"(ContainerElement.MAP_KEY, header & 0x0f))
goto Lpush;
cur++;
continue;
} else {
switch (header) {
case Format.UINT8, Format.UINT16, Format.UINT32, Format.UINT64,
Format.INT8, Format.INT16, Format.INT32, Format.INT64,
Format.FLOAT, Format.DOUBLE:
trail = 1 << (header & 0x03); // computes object size
state = cast(State)(header & 0x1f);
break;
case Format.REAL:
trail = RealSize;
state = State.REAL;
break;
case Format.ARRAY16, Format.ARRAY32,
Format.MAP16, Format.MAP32:
trail = 2 << (header & 0x01); // computes container size
state = cast(State)(header & 0x1f);
break;
// raw will become str format in new spec
case Format.STR8:
case Format.RAW16: // will be STR16
case Format.RAW32: // will be STR32
trail = 1 << ((header & 0x03) - 1); // computes container size
state = cast(State)(header & 0x1f);
break;
case Format.BIN8, Format.BIN16, Format.BIN32:
trail = 1 << (header & 0x03); // computes container size
state = cast(State)(header & 0x1f);
break;
case Format.NIL:
callbackNil(obj);
goto Lpush;
case Format.TRUE:
callbackBool(obj, true);
goto Lpush;
case Format.FALSE:
callbackBool(obj, false);
goto Lpush;
default:
throw new UnpackException("Unknown type");
}
cur++;
goto Lstart;
}
} else {
// data lack for deserialization
if (used_ - cur < trail)
goto Labort;
const base = cur; cur += trail - 1; // fix current position
final switch (state) {
case State.FLOAT:
_f temp;
temp.i = load32To!uint(buffer_[base..base + trail]);
callbackFloat(obj, temp.f);
goto Lpush;
case State.DOUBLE:
_d temp;
temp.i = load64To!ulong(buffer_[base..base + trail]);
callbackFloat(obj, temp.f);
goto Lpush;
case State.REAL:
const expb = base + ulong.sizeof;
version (NonX86)
{
CustomFloat!80 temp;
const frac = load64To!ulong (buffer_[base..expb]);
const exp = load16To!ushort(buffer_[expb..expb + ushort.sizeof]);
temp.significand = frac;
temp.exponent = exp & 0x7fff;
temp.sign = exp & 0x8000 ? true : false;
// NOTE: temp.get!real is inf on non-x86 when deserialized value is larger than double.max.
callbackFloat(obj, temp.get!real);
}
else
{
_r temp;
temp.fraction = load64To!(typeof(temp.fraction))(buffer_[base..expb]);
temp.exponent = load16To!(typeof(temp.exponent))(buffer_[expb..expb + temp.exponent.sizeof]);
callbackFloat(obj, temp.f);
}
goto Lpush;
case State.UINT8:
callbackUInt(obj, buffer_[base]);
goto Lpush;
case State.UINT16:
callbackUInt(obj, load16To!ulong(buffer_[base..base + trail]));
goto Lpush;
case State.UINT32:
callbackUInt(obj, load32To!ulong(buffer_[base..base + trail]));
goto Lpush;
case State.UINT64:
callbackUInt(obj, load64To!ulong(buffer_[base..base + trail]));
goto Lpush;
case State.INT8:
callbackInt(obj, cast(byte)buffer_[base]);
goto Lpush;
case State.INT16:
callbackInt(obj, load16To!long(buffer_[base..base + trail]));
goto Lpush;
case State.INT32:
callbackInt(obj, load32To!long(buffer_[base..base + trail]));
goto Lpush;
case State.INT64:
callbackInt(obj, load64To!long(buffer_[base..base + trail]));
goto Lpush;
case State.RAW: Lraw:
hasRaw_ = true;
callbackRaw(obj, buffer_[base..base + trail]);
goto Lpush;
case State.STR8, State.BIN8:
trail = buffer_[base];
if (trail == 0)
goto Lraw;
state = State.RAW;
cur++;
goto Lstart;
case State.RAW16, State.BIN16:
trail = load16To!size_t(buffer_[base..base + trail]);
if (trail == 0)
goto Lraw;
state = State.RAW;
cur++;
goto Lstart;
case State.RAW32, State.BIN32:
trail = load32To!size_t(buffer_[base..base + trail]);
if (trail == 0)
goto Lraw;
state = State.RAW;
cur++;
goto Lstart;
case State.ARRAY16:
if (!startContainer!"Array"(ContainerElement.ARRAY_ITEM,
load16To!size_t(buffer_[base..base + trail])))
goto Lpush;
state = State.HEADER;
cur++;
continue;
case State.ARRAY36:
if (!startContainer!"Array"(ContainerElement.ARRAY_ITEM,
load32To!size_t(buffer_[base..base + trail])))
goto Lpush;
state = State.HEADER;
cur++;
continue;
case State.MAP16:
if (!startContainer!"Map"(ContainerElement.MAP_KEY,
load16To!size_t(buffer_[base..base + trail])))
goto Lpush;
state = State.HEADER;
cur++;
continue;
case State.MAP32:
if (!startContainer!"Map"(ContainerElement.MAP_KEY,
load32To!size_t(buffer_[base..base + trail])))
goto Lpush;
state = State.HEADER;
cur++;
continue;
case State.HEADER:
break;
}
}
Lpush:
if (top == 0)
goto Lfinish;
auto container = &(*stack)[top - 1];
final switch (container.type) {
case ContainerElement.ARRAY_ITEM:
container.value.via.array ~= obj;
if (--container.count == 0) {
obj = container.value;
top--;
goto Lpush;
}
break;
case ContainerElement.MAP_KEY:
container.key = obj;
container.type = ContainerElement.MAP_VALUE;
break;
case ContainerElement.MAP_VALUE:
container.value.via.map[container.key] = obj;
if (--container.count == 0) {
obj = container.value;
top--;
goto Lpush;
}
container.type = ContainerElement.MAP_KEY;
}
state = State.HEADER;
cur++;
} while (cur < used_);
goto Labort;
Lfinish:
(*stack)[0].value = obj;
ret = true;
cur++;
goto Lend;
Labort:
ret = false;
Lend:
context_.state = state;
context_.trail = trail;
context_.top = top;
parsed_ += cur - offset_;
offset_ = cur;
return ret;
}
/**
* supports foreach. One loop provides $(D Unpacked) object contains execute() result.
* This is convenient in case that $(D MessagePack) values are continuous.
*/
int opApply(scope int delegate(ref Unpacked) dg)
{
int result;
while (execute()) {
auto unpackedResult = Unpacked(context_.stack[0].value);
result = dg(unpackedResult);
if (result)
break;
clear();
}
return result;
}
private:
/*
* initializes internal stack environment.
*/
@safe
nothrow void initializeContext()
{
context_.state = State.HEADER;
context_.trail = 0;
context_.top = 0;
context_.stack.length = 1;
}
}
unittest
{
// serialize
mixin DefinePacker;
packer.packArray(null, true, 1, -2, "Hi!", [1], [1:1], double.max);
// deserialize
auto unpacker = StreamingUnpacker(packer.stream.data); unpacker.execute();
auto unpacked = unpacker.purge();
// Range test
foreach (unused; 0..2) {
uint i;
foreach (obj; unpacked)
i++;
assert(i == unpacked.via.array.length);
}
auto result = unpacked.via.array;
assert(result[0].type == Value.Type.nil);
assert(result[1].via.boolean == true);
assert(result[2].via.uinteger == 1);
assert(result[3].via.integer == -2);
assert(result[4].via.raw == [72, 105, 33]);
assert(result[5].as!(int[]) == [1]);
assert(result[6].as!(int[int]) == [1:1]);
assert(result[7].as!(double) == double.max);
}
private:
/*
* Sets value type and value.
*
* Params:
* value = the value to set
* number = the content to set
*/
@trusted
void callbackUInt(ref Value value, ulong number)
{
value.type = Value.Type.unsigned;
value.via.uinteger = number;
}
/// ditto
@trusted
void callbackInt(ref Value value, long number)
{
value.type = Value.Type.signed;
value.via.integer = number;
}
/// ditto
@trusted
void callbackFloat(ref Value value, real number)
{
value.type = Value.Type.floating;
value.via.floating = number;
}
/// ditto
@trusted
void callbackRaw(ref Value value, ubyte[] raw)
{
value.type = Value.Type.raw;
value.via.raw = raw;
}
/// ditto
@trusted
void callbackArray(ref Value value, size_t length)
{
value.type = Value.Type.array;
value.via.array.length = 0;
value.via.array.reserve(length);
}
/// ditto
@trusted
void callbackMap(ref Value value, lazy size_t length)
{
value.type = Value.Type.map;
value.via.map = null; // clears previous result avoiding 'Access Violation'
}
/// ditto
@safe
void callbackNil(ref Value value)
{
value.type = Value.Type.nil;
}
/// ditto
@trusted
void callbackBool(ref Value value, bool boolean)
{
value.type = Value.Type.boolean;
value.via.boolean = boolean;
}
unittest
{
Value value;
// Unsigned integer
callbackUInt(value, uint.max);
assert(value.type == Value.Type.unsigned);
assert(value.via.uinteger == uint.max);
// Signed integer
callbackInt(value, int.min);
assert(value.type == Value.Type.signed);
assert(value.via.integer == int.min);
// Floating point
callbackFloat(value, real.max);
assert(value.type == Value.Type.floating);
assert(value.via.floating == real.max);
// Raw
callbackRaw(value, cast(ubyte[])[1]);
assert(value.type == Value.Type.raw);
assert(value.via.raw == cast(ubyte[])[1]);
// Array
Value[] array; array.reserve(16);
callbackArray(value, 16);
assert(value.type == Value.Type.array);
assert(value.via.array.capacity == array.capacity);
// Map
Value[Value] map;
callbackMap(value, 16);
assert(value.type == Value.Type.map);
assert(value.via.map == null);
// NIL
callbackNil(value);
assert(value.type == Value.Type.nil);
// Bool
callbackBool(value, true);
assert(value.type == Value.Type.boolean);
assert(value.via.boolean == true);
}
private:
/*
* A callback for type-mismatched error in cast conversion.
*/
@safe
pure void onCastError()
{
throw new MessagePackException("Attempt to cast with another type");
}
/*
* A callback for type-mismatched error in deserialization process.
*/
@safe
pure void onInvalidType()
{
throw new MessagePackException("Attempt to unpack with non-compatible type");
}
public:
/*
* Handy helper for creating MessagePackable object.
*
* toMsgpack / fromMsgpack are special methods for serialization / deserialization.
* This template provides those methods to struct/class.
*
* Example:
* -----
* struct S
* {
* int num; string str;
*
* // http://d.puremagic.com/issues/show_bug.cgi?id = 1099
* mixin MessagePackable; // all members
* // mixin MessagePackable!("num"); // num only
* }
* -----
*
* Defines those methods manually if you treat complex data-structure.
*/
mixin template MessagePackable(Members...)
{
static if (Members.length == 0) {
/**
* Serializes members using $(D_PARAM packer).
*
* Params:
* packer = the serializer to pack.
*/
void toMsgpack(Packer)(ref Packer packer, bool withFieldName = false) const
{
if (withFieldName) {
packer.beginMap(this.tupleof.length);
foreach (i, member; this.tupleof) {
pack(getFieldName!(typeof(this), i));
packer.pack(member);
}
} else {
packer.beginArray(this.tupleof.length);
foreach (member; this.tupleof)
packer.pack(member);
}
}
/**
* Deserializes $(D MessagePack) object to members using Value.
*
* Params:
* value = the MessagePack value to unpack.
*
* Throws:
* MessagePackException if $(D_PARAM value) is not an Array type.
*/
void fromMsgpack(Value value)
{
// enables if std.contracts.enforce is moved to object_.d
// enforceEx!MessagePackException(value.type == Value.Type.array, "Value must be Array type");
if (value.type != Value.Type.array)
throw new MessagePackException("Value must be an Array type");
if (value.via.array.length != this.tupleof.length)
throw new MessagePackException("The size of deserialized value is mismatched");
foreach (i, member; this.tupleof)
this.tupleof[i] = value.via.array[i].as!(typeof(member));
}
/**
* Deserializes $(D MessagePack) object to members using direct-conversion deserializer.
*
* Params:
* value = the reference to direct-conversion deserializer.
*
* Throws:
* MessagePackException if the size of deserialized value is mismatched.
*/
void fromMsgpack(ref Unpacker unpacker)
{
auto length = unpacker.beginArray();
if (length != this.tupleof.length)
throw new MessagePackException("The size of deserialized value is mismatched");
foreach (i, member; this.tupleof)
unpacker.unpack(this.tupleof[i]);
}
} else {
/**
* Member selecting version of toMsgpack.
*/
void toMsgpack(Packer)(ref Packer packer, bool withFieldName = false) const
{
if (withFieldName) {
packer.beginMap(Members.length);
foreach (member; Members) {
packer.pack(member);
packer.pack(mixin(member));
}
} else {
packer.beginArray(Members.length);
foreach (member; Members)
packer.pack(mixin(member));
}
}
/**
* Member selecting version of fromMsgpack for Value.
*/
void fromMsgpack(Value value)
{
if (value.type != Value.Type.array)
throw new MessagePackException("Value must be an Array type");
if (value.via.array.length != Members.length)
throw new MessagePackException("The size of deserialized value is mismatched");
foreach (i, member; Members)
mixin(member ~ "= value.via.array[i].as!(typeof(" ~ member ~ "));");
}
/**
* Member selecting version of fromMsgpack for direct-converion deserializer.
*/
void fromMsgpack(ref Unpacker unpacker)
{
auto length = unpacker.beginArray();
if (length != Members.length)
throw new MessagePackException("The size of deserialized value is mismatched");
foreach (member; Members)
unpacker.unpack(mixin(member));
}
}
}
unittest
{
{ // all members
/*
* Comment out because "src/msgpack.d(4048): Error: struct msgpack.__unittest16.S no size yet for forward reference" occurs
*/
static struct S
{
uint num; string str;
mixin MessagePackable;
}
mixin DefinePacker;
S orig = S(10, "Hi!"); orig.toMsgpack(packer);
{ // stream
auto unpacker = StreamingUnpacker(packer.stream.data); unpacker.execute();
S result; result.fromMsgpack(unpacker.unpacked);
assert(result.num == 10);
assert(result.str == "Hi!");
}
{ // direct conversion
auto unpacker = Unpacker(packer.stream.data);
S result; unpacker.unpack(result);
assert(result.num == 10);
assert(result.str == "Hi!");
}
}
{ // member select
static class C
{
uint num; string str;
this() {}
this(uint n, string s) { num = n; str = s; }
mixin MessagePackable!("num");
}
mixin DefinePacker;
C orig = new C(10, "Hi!"); orig.toMsgpack(packer);
{ // stream
auto unpacker = StreamingUnpacker(packer.stream.data); unpacker.execute();
C result = new C; result.fromMsgpack(unpacker.unpacked);
assert(result.num == 10);
}
{ // direct conversion
auto unpacker = Unpacker(packer.stream.data);
C result; unpacker.unpack(result);
assert(result.num == 10);
}
}
}
private:
// Common and system dependent operations
/*
* MessagePack type-information format
*
* See_Also:
* $(LINK2 http://redmine.msgpack.org/projects/msgpack/wiki/FormatSpec, MessagePack Specificaton)
*/
enum Format : ubyte
{
// unsinged integer
UINT8 = 0xcc, // ubyte
UINT16 = 0xcd, // ushort
UINT32 = 0xce, // uint
UINT64 = 0xcf, // ulong
// signed integer
INT8 = 0xd0, // byte
INT16 = 0xd1, // short
INT32 = 0xd2, // int
INT64 = 0xd3, // long
// floating point
FLOAT = 0xca, // float
DOUBLE = 0xcb, // double
// raw byte
RAW = 0xa0,
RAW16 = 0xda,
RAW32 = 0xdb,
// bin type
BIN8 = 0xc4,
BIN16 = 0xc5,
BIN32 = 0xc6,
// str type
STR8 = 0xd9,
//STR16 = 0xda,
//STR32 = 0xdb,
// array
ARRAY = 0x90,
ARRAY16 = 0xdc,
ARRAY32 = 0xdd,
// map
MAP = 0x80,
MAP16 = 0xde,
MAP32 = 0xdf,
// other
NIL = 0xc0, // null
TRUE = 0xc3,
FALSE = 0xc2,
// real (This format is D only!)
REAL = 0xd4
}
/*
* For float type serialization / deserialization
*/
union _f
{
float f;
uint i;
}
/*
* For double type serialization / deserialization
*/
union _d
{
double f;
ulong i;
}
/*
* For real type serialization / deserialization
*
* 80-bit real is padded to 12 bytes(Linux) and 16 bytes(Mac).
* http://lists.puremagic.com/pipermail/digitalmars-d/2010-June/077394.html
*/
union _r
{
real f;
struct
{
ulong fraction;
ushort exponent; // includes sign
}
}
enum RealSize = 10; // Real size is 80bit
/*
* Detects whether $(D_PARAM T) is a built-in byte type.
*/
template isByte(T)
{
enum isByte = staticIndexOf!(Unqual!T, byte, ubyte) >= 0;
}
unittest
{
static assert(isByte!(byte));
static assert(isByte!(const(byte)));
static assert(isByte!(ubyte));
static assert(isByte!(immutable(ubyte)));
static assert(!isByte!(short));
static assert(!isByte!(char));
static assert(!isByte!(string));
}
/*
* Gets asterisk string from pointer type
*/
template AsteriskOf(T)
{
static if (is(T P == U*, U))
enum AsteriskOf = "*" ~ AsteriskOf!U;
else
enum AsteriskOf = "";
}
/**
* Get the number of member to serialize.
*/
template SerializingMemberNumbers(Classes...)
{
static if (Classes.length == 0)
enum SerializingMemberNumbers = 0;
else
enum SerializingMemberNumbers = Filter!(isPackedField, Classes[0].tupleof).length + SerializingMemberNumbers!(Classes[1..$]);
}
/**
* Get derived classes with serialization-order
*/
template SerializingClasses(T)
{
// There is no information in Object type. Currently disable Object serialization.
static if (is(T == Object))
static assert(false, "Object type serialization doesn't support yet. Please define toMsgpack/fromMsgpack and use cast");
else
alias TypeTuple!(Reverse!(Erase!(Object, BaseClassesTuple!(T))), T) SerializingClasses;
}
/**
* Get a field name of class or struct.
*/
template getFieldName(Type, size_t i)
{
import std.conv : text;
static assert((is(Unqual!Type == class) || is(Unqual!Type == struct)), "Type must be class or struct: type = " ~ Type.stringof);
static assert(i < Type.tupleof.length, text(Type.stringof, " has ", Type.tupleof.length, " attributes: given index = ", i));
enum getFieldName = __traits(identifier, Type.tupleof[i]);
}
version (LittleEndian)
{
/*
* Converts $(value) to different Endian.
*
* Params:
* value = the LittleEndian value to convert.
*
* Returns:
* the converted value.
*/
@trusted
ushort convertEndianTo(size_t Bit, T)(in T value) if (Bit == 16)
{
return ntohs(cast(ushort)value);
}
// ditto
@trusted
uint convertEndianTo(size_t Bit, T)(in T value) if (Bit == 32)
{
return ntohl(cast(uint)value);
}
// ditto
@trusted
ulong convertEndianTo(size_t Bit, T)(in T value) if (Bit == 64)
{
// dmd has convert function?
return ((((cast(ulong)value) << 56) & 0xff00000000000000UL) |
(((cast(ulong)value) << 40) & 0x00ff000000000000UL) |
(((cast(ulong)value) << 24) & 0x0000ff0000000000UL) |
(((cast(ulong)value) << 8) & 0x000000ff00000000UL) |
(((cast(ulong)value) >> 8) & 0x00000000ff000000UL) |
(((cast(ulong)value) >> 24) & 0x0000000000ff0000UL) |
(((cast(ulong)value) >> 40) & 0x000000000000ff00UL) |
(((cast(ulong)value) >> 56) & 0x00000000000000ffUL));
}
unittest
{
assert(convertEndianTo!16(0x0123) == 0x2301);
assert(convertEndianTo!32(0x01234567) == 0x67452301);
assert(convertEndianTo!64(0x0123456789abcdef) == 0xefcdab8967452301);
}
/*
* Comapatible for BigEndian environment.
*/
ubyte take8from(size_t bit = 8, T)(T value)
{
static if (bit == 8 || bit == 16 || bit == 32 || bit == 64)
return (cast(ubyte*)&value)[0];
else
static assert(false, bit.stringof ~ " is not support bit width.");
}
unittest
{
foreach (Integer; TypeTuple!(ubyte, ushort, uint, ulong)) {
assert(take8from!8 (cast(Integer)0x01) == 0x01);
assert(take8from!16(cast(Integer)0x0123) == 0x23);
assert(take8from!32(cast(Integer)0x01234567) == 0x67);
assert(take8from!64(cast(Integer)0x0123456789abcdef) == 0xef);
}
}
}
else
{
/*
* Comapatible for LittleEndian environment.
*/
@safe
ushort convertEndianTo(size_t Bit, T)(in T value) if (Bit == 16)
{
return cast(ushort)value;
}
// ditto
@safe
uint convertEndianTo(size_t Bit, T)(in T value) if (Bit == 32)
{
return cast(uint)value;
}
// ditto
@safe
ulong convertEndianTo(size_t Bit, T)(in T value) if (Bit == 64)
{
return cast(ulong)value;
}
unittest
{
assert(convertEndianTo!16(0x0123) == 0x0123);
assert(convertEndianTo!32(0x01234567) == 0x01234567);
assert(convertEndianTo!64(0x0123456789) == 0x0123456789);
}
/*
* Takes 8bit from $(D_PARAM value)
*
* Params:
* value = the content to take.
*
* Returns:
* the 8bit value corresponding $(D_PARAM bit) width.
*/
ubyte take8from(size_t bit = 8, T)(T value)
{
static if (bit == 8)
return (cast(ubyte*)&value)[0];
else static if (bit == 16)
return (cast(ubyte*)&value)[1];
else static if (bit == 32)
return (cast(ubyte*)&value)[3];
else static if (bit == 64)
return (cast(ubyte*)&value)[7];
else
static assert(false, bit.stringof ~ " is not support bit width.");
}
unittest
{
foreach (Integer; TypeTuple!(ubyte, ushort, uint, ulong)) {
assert(take8from!8 (cast(Integer)0x01) == 0x01);
assert(take8from!16(cast(Integer)0x0123) == 0x23);
assert(take8from!32(cast(Integer)0x01234567) == 0x67);
assert(take8from!64(cast(Integer)0x0123456789abcdef) == 0xef);
}
}
}
/*
* Loads $(D_PARAM T) type value from $(D_PARAM buffer).
*
* Params:
* buffer = the serialized contents.
*
* Returns:
* the Endian-converted value.
*/
T load16To(T)(ubyte[] buffer)
{
return cast(T)(convertEndianTo!16(*cast(ushort*)buffer.ptr));
}
// ditto
T load32To(T)(ubyte[] buffer)
{
return cast(T)(convertEndianTo!32(*cast(uint*)buffer.ptr));
}
// ditto
T load64To(T)(ubyte[] buffer)
{
return cast(T)(convertEndianTo!64(*cast(ulong*)buffer.ptr));
}
| D |
import std.stdio, std.traits, std.math, std.variant;
/// Returns a string with the error, or the three digits.
Algebraic!(string, char[3]) middleThreeDigits(T)(in T n)
if (isIntegral!T) {
// Awkward code to face abs(T.min) when T is signed.
ulong ln;
static if (isSigned!T) {
if (n >= 0) {
ln = n;
} else {
if (n == T.min) {
ln = -(n + 1);
ln++;
} else {
ln = -n;
}
}
} else {
ln = n;
}
if (ln < 100)
return typeof(return)("n is too short.");
immutable uint digits = 1 + cast(uint)log10(ln);
if (digits % 2 == 0)
return typeof(return)("n must have an odd number of digits.");
// From the Reddit answer by "millstone".
int drop = (digits - 3) / 2;
while (drop-- > 0)
ln /= 10;
char[3] result = void;
result[2] = ln % 10 + '0';
ln /= 10;
result[1] = ln % 10 + '0';
ln /= 10;
result[0] = ln % 10 + '0';
return typeof(return)(result);
}
void main() {
immutable passing = [123, 12345, 1234567, 987654321, 10001,
-10001, -123, -100, 100, -12345, -8765432];
foreach (n; passing) {
auto mtd = middleThreeDigits(n);
// A string result means it didn't pass.
assert(!mtd.peek!string);
writefln("middleThreeDigits(%d): %s", n, mtd);
}
writeln();
immutable failing = [1, 2, -1, -10, 2002, -2002, 0,
15, int.min, int.max];
foreach (n; failing) {
auto mtd = middleThreeDigits(n);
assert(mtd.peek!string);
writefln("middleThreeDigits(%d): %s", n, mtd);
}
writeln();
immutable long[] passingL = [123, 12345, 1234567, 987654321, 10001,
-10001, -123, -100, 100, -12345,
-8765432, long.min, long.max];
foreach (n; passingL) {
auto mtd = middleThreeDigits(n);
assert(!mtd.peek!string);
writefln("middleThreeDigits(%d): %s", n, mtd);
}
writeln();
immutable long[] failingL = [1, 2, -1, -10, 2002, -2002, 0, 15];
foreach (n; failingL) {
auto mtd = middleThreeDigits(n);
assert(mtd.peek!string);
writefln("middleThreeDigits(%d): %s", n, mtd);
}
writeln();
{
immutable n = short.min;
auto mtd = middleThreeDigits(n);
assert(!mtd.peek!string);
writefln("middleThreeDigits(cast(short)%d): %s", n, mtd);
}
}
| D |
/*
* Collie - An asynchronous event-driven network framework using Dlang development
*
* Copyright (C) 2015-2016 Shanghai Putao Technology Co., Ltd
*
* Developer: putao's Dlang team
*
* Licensed under the Apache-2.0 License.
*
*/
module collie.socket.timer;
import core.memory;
import core.sys.posix.time;
import std.socket : socket_t;
import std.exception;
import collie.socket.common;
import collie.socket.eventloop;
import collie.utils.functional;
@trusted final class Timer : EventCallInterface
{
this(EventLoop loop)
{
_loop = loop;
_event = AsyncEvent(AsynType.TIMER, this);
}
~this()
{
if (isActive){
onClose();
}
}
pragma(inline, true) @property bool isActive() nothrow
{
return _event.isActive;
}
pragma(inline) void setCallBack(CallBack cback)
{
_callBack = cback;
}
bool start(ulong msesc)
{
if (isActive() || msesc <= 0)
return false;
static if (IOMode == IOMode.kqueue || CustomTimer)
{
_event.timeOut = cast(long) msesc;
}
else static if (IOMode == IOMode.epoll)
{
import collie.socket.selector.epoll;
// _timeout = msesc;
auto fd = cast(socket_t) timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC | TFD_NONBLOCK);
_event = AsyncEvent(AsynType.TIMER, this,fd);
itimerspec its;
ulong sec, nsec;
sec = msesc / 1000;
nsec = (msesc % 1000) * 1_000_000;
its.it_value.tv_sec = cast(typeof(its.it_value.tv_sec)) sec;
its.it_value.tv_nsec = cast(typeof(its.it_value.tv_nsec)) nsec;
its.it_interval.tv_sec = its.it_value.tv_sec;
its.it_interval.tv_nsec = its.it_value.tv_nsec;
int err = timerfd_settime(_event.fd, 0, &its, null);
if (err == -1)
{
import core.sys.posix.unistd;
close(_event.fd);
return false;
}
}
return _loop.addEvent(&_event);
}
pragma(inline) void stop()
{
onClose();
}
protected:
override void onRead() nothrow
{
static if (IOMode == IO_MODE.epoll)
{
import core.sys.posix.unistd;
ulong value;
read(_event.fd, &value, 8);
}
if (_callBack)
{
collectException(_callBack());
}
else
{
onClose();
}
}
override void onWrite() nothrow
{
}
override void onClose() nothrow
{
if(!isActive) return;
_loop.delEvent(&_event);
static if (IOMode == IO_MODE.epoll)
{
import core.sys.posix.unistd;
close(_event.fd);
}
}
private:
// ulong _timeout;
CallBack _callBack;
AsyncEvent _event;
EventLoop _loop;
}
unittest
{
import std.stdio;
import std.datetime;
EventLoop loop = new EventLoop();
Timer tm = new Timer(loop);
int cout = -1;
ulong time;
void timeout()
{
writeln("time : ", Clock.currTime().toSimpleString());
++cout;
if (cout == 0)
{
time = Clock.currTime().toUnixTime!long();
return;
}
++time;
assert(time == Clock.currTime().toUnixTime!long());
if (cout > 5)
{
writeln("loop stop!!!");
tm.stop();
loop.stop();
}
}
tm.setCallBack(&timeout);
tm.start(1000);
loop.run();
}
| D |
/home/iot-dev/Documents/Rust_prac/stm32f3_ADC/ADC_Callibrate/target/debug/deps/bare_metal-b4a0b8f4968dadd0.rmeta: /home/iot-dev/.cargo/registry/src/github.com-1ecc6299db9ec823/bare-metal-0.2.5/src/lib.rs
/home/iot-dev/Documents/Rust_prac/stm32f3_ADC/ADC_Callibrate/target/debug/deps/libbare_metal-b4a0b8f4968dadd0.rlib: /home/iot-dev/.cargo/registry/src/github.com-1ecc6299db9ec823/bare-metal-0.2.5/src/lib.rs
/home/iot-dev/Documents/Rust_prac/stm32f3_ADC/ADC_Callibrate/target/debug/deps/bare_metal-b4a0b8f4968dadd0.d: /home/iot-dev/.cargo/registry/src/github.com-1ecc6299db9ec823/bare-metal-0.2.5/src/lib.rs
/home/iot-dev/.cargo/registry/src/github.com-1ecc6299db9ec823/bare-metal-0.2.5/src/lib.rs:
| D |
/Users/sylvltx/bridge/rsbridge/target/debug/build/hashbrown-459b5bcc31a80274/build_script_build-459b5bcc31a80274: /Users/sylvltx/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.8.2/build.rs
/Users/sylvltx/bridge/rsbridge/target/debug/build/hashbrown-459b5bcc31a80274/build_script_build-459b5bcc31a80274.d: /Users/sylvltx/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.8.2/build.rs
/Users/sylvltx/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.8.2/build.rs:
| D |
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.build/NonBlockingFileIO.swift.o : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/NonBlockingFileIO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IOData.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Codec.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Thread.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Embedded.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Selectable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileHandle.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelPipeline.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/AddressedEnvelope.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-core.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/EventLoopFuture.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PriorityQueue.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Channel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/DeadChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BaseSocketChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/MulticastChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BlockingIOThreadPool.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/System.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileRegion.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ContiguousCollection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelOption.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Heap.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Bootstrap.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/EventLoop.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketOptionProvider.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/CircularBuffer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PendingWritesManager.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PendingDatagramWritesManager.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelInvoker.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelHandler.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/TypeAssistedChannelHandler.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Resolver.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/GetaddrinfoResolver.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/CompositeError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/RecvByteBufferAllocator.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Selector.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileDescriptor.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Interfaces.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Utilities.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IntegerTypes.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketAddresses.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/HappyEyeballs.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelHandlers.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-views.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/LinuxCPUSet.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Socket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BaseSocket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ServerSocket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-int.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-aux.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Linux.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/NIOAny.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.build/NonBlockingFileIO~partial.swiftmodule : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/NonBlockingFileIO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IOData.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Codec.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Thread.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Embedded.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Selectable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileHandle.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelPipeline.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/AddressedEnvelope.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-core.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/EventLoopFuture.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PriorityQueue.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Channel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/DeadChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BaseSocketChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/MulticastChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BlockingIOThreadPool.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/System.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileRegion.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ContiguousCollection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelOption.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Heap.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Bootstrap.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/EventLoop.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketOptionProvider.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/CircularBuffer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PendingWritesManager.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PendingDatagramWritesManager.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelInvoker.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelHandler.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/TypeAssistedChannelHandler.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Resolver.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/GetaddrinfoResolver.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/CompositeError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/RecvByteBufferAllocator.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Selector.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileDescriptor.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Interfaces.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Utilities.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IntegerTypes.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketAddresses.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/HappyEyeballs.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelHandlers.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-views.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/LinuxCPUSet.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Socket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BaseSocket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ServerSocket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-int.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-aux.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Linux.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/NIOAny.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.build/NonBlockingFileIO~partial.swiftdoc : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/NonBlockingFileIO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IOData.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Codec.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Thread.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Embedded.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Selectable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileHandle.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelPipeline.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/AddressedEnvelope.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-core.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/EventLoopFuture.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PriorityQueue.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Channel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/DeadChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BaseSocketChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/MulticastChannel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BlockingIOThreadPool.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/System.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileRegion.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ContiguousCollection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelOption.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Heap.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Bootstrap.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/EventLoop.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketOptionProvider.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/CircularBuffer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PendingWritesManager.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/PendingDatagramWritesManager.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelInvoker.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelHandler.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/TypeAssistedChannelHandler.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Resolver.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/GetaddrinfoResolver.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/CompositeError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/RecvByteBufferAllocator.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Selector.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/FileDescriptor.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Interfaces.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Utilities.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IntegerTypes.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/SocketAddresses.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/HappyEyeballs.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ChannelHandlers.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-views.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/LinuxCPUSet.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Socket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/BaseSocket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ServerSocket.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-int.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-aux.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/Linux.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/NIOAny.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes
| D |
module secured.kdf;
import std.typecons;
import std.format;
import deimos.openssl.evp;
import secured.openssl;
import secured.hash;
import secured.random;
import secured.util;
public struct KdfResult {
public ubyte[] salt;
public ubyte[] key;
}
@safe public KdfResult pbkdf2(string password, uint iterations = 1_000_000) {
KdfResult result;
result.salt = random(getHashLength(HashAlgorithm.SHA2_384));
result.key = pbkdf2_ex(password, result.salt, HashAlgorithm.SHA2_384, getHashLength(HashAlgorithm.SHA2_384), iterations);
return result;
}
@safe public bool pbkdf2_verify(scope const KdfResult test, string password, uint iterations = 1_000_000) {
ubyte[] key = pbkdf2_ex(password, test.salt, HashAlgorithm.SHA2_384, getHashLength(HashAlgorithm.SHA2_384), iterations);
return constantTimeEquality(test.key, key);
}
@trusted public ubyte[] pbkdf2_ex(string password, const ubyte[] salt, HashAlgorithm func, uint outputLen, uint iterations)
{
if (salt.length != getHashLength(func)) {
throw new CryptographicException(format("The PBKDF2 salt must be %s bytes in length.", getHashLength(func)));
}
if (outputLen > getHashLength(func)) {
throw new CryptographicException(format("The PBKDF2 output length must be less than or equal to %s bytes in length.", getHashLength(func)));
}
ubyte[] output = new ubyte[outputLen];
if(PKCS5_PBKDF2_HMAC(password.ptr, cast(int)password.length, salt.ptr, cast(int)salt.length, iterations, getOpenSSLHashAlgorithm(func), outputLen, output.ptr) == 0) {
throw new CryptographicException("Unable to execute PBKDF2 hash function.");
}
return output;
}
@safe public bool pbkdf2_verify_ex(const ubyte[] test, string password, const ubyte[] salt, HashAlgorithm func, uint outputLen, uint iterations) {
ubyte[] key = pbkdf2_ex(password, salt, func, outputLen, iterations);
return constantTimeEquality(test, key);
}
unittest
{
import std.datetime.stopwatch;
import std.digest;
import std.stdio;
writeln("Testing PBKDF2 Basic Methods:");
//Test basic methods
auto sw = StopWatch(AutoStart.no);
sw.start();
auto result = pbkdf2("password");
sw.stop();
writefln("PBKDF2 took %sms for 1,000,000 iterations", sw.peek.total!"msecs");
assert(result.key.length == 48);
assert(pbkdf2_verify(result, "password"));
writeln(toHexString!(LetterCase.lower)(result.key));
//Test extended methods
ubyte[64] salt = [ 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF ];
ubyte[] key = pbkdf2_ex("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", salt, HashAlgorithm.SHA2_512, 64, 100000);
assert(pbkdf2_verify_ex(key, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", salt, HashAlgorithm.SHA2_512, 64, 100000));
writeln(toHexString!(LetterCase.lower)(key));
}
unittest
{
import std.digest;
import std.stdio;
writeln("Testing PBKDF2 Extended with Defaults:");
ubyte[48] key = [ 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF ];
ubyte[] vec1 = pbkdf2_ex("", key, HashAlgorithm.SHA2_384, 48, 25000);
ubyte[] vec2 = pbkdf2_ex("abc", key, HashAlgorithm.SHA2_384, 48, 25000);
ubyte[] vec3 = pbkdf2_ex("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", key, HashAlgorithm.SHA2_384, 48, 25000);
writeln(toHexString!(LetterCase.lower)(vec1));
writeln(toHexString!(LetterCase.lower)(vec2));
writeln(toHexString!(LetterCase.lower)(vec3));
assert(toHexString!(LetterCase.lower)(vec1) == "b0ddf56b90903d638ec8d07a4205ba2bcfa944955d553e1ef3f91cba84e8e3bde9db7c8ccf14df26f8305fc8634572f9");
assert(toHexString!(LetterCase.lower)(vec2) == "b0a5e09a38bee3eb2b84d477d5259ef7bebf0e48d9512178f7e26cc330278ff45417d47d84db06a12b8ea49377a7c7cb");
assert(toHexString!(LetterCase.lower)(vec3) == "d1aacafea3a9fdf3ee6236b1b45527974ea01539b4a7cc493bba56e15e14d520b2834d7bf22b83bb5c21c4bccb423be2");
}
unittest
{
import std.digest;
import std.stdio;
writeln("Testing PBKDF2 Extended with Custom Iterations:");
ubyte[48] key = [0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF ];
ubyte[] vec1 = pbkdf2_ex("", key, HashAlgorithm.SHA2_384, 48, 150000);
ubyte[] vec2 = pbkdf2_ex("abc", key, HashAlgorithm.SHA2_384, 48, 150000);
ubyte[] vec3 = pbkdf2_ex("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", key, HashAlgorithm.SHA2_384, 48, 150000);
writeln(toHexString!(LetterCase.lower)(vec1));
writeln(toHexString!(LetterCase.lower)(vec2));
writeln(toHexString!(LetterCase.lower)(vec3));
assert(toHexString!(LetterCase.lower)(vec1) == "babdcbbf4ff89367ed223d2edd06ef5473ac9cdc827783ed0b4b5eafd9e4097beb2ef66d6fc92d24dbf4b86aa51b4a0f");
assert(toHexString!(LetterCase.lower)(vec2) == "8894348ccea06d79f80382ae7d4434c0f2ef41f871d936604f426518ab23bde4410fddce6dad943c95de75dbece9b54a");
assert(toHexString!(LetterCase.lower)(vec3) == "fba55e91818c35b1e4cc753fbd01a6cd138c49da472b58b2d7c4860ba39a3dd9032f8f641aadcd74a819361ed27c9a0f");
}
unittest
{
import std.digest;
import std.stdio;
writeln("Testing PBKDF2 Extended with Custom Output Length:");
ubyte[48] key = [ 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF ];
ubyte[] vec1 = pbkdf2_ex("", key, HashAlgorithm.SHA2_384, 32, 25000);
ubyte[] vec2 = pbkdf2_ex("abc", key, HashAlgorithm.SHA2_384, 32, 25000);
ubyte[] vec3 = pbkdf2_ex("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", key, HashAlgorithm.SHA2_384, 32, 25000);
writeln(toHexString!(LetterCase.lower)(vec1));
writeln(toHexString!(LetterCase.lower)(vec2));
writeln(toHexString!(LetterCase.lower)(vec3));
assert(toHexString!(LetterCase.lower)(vec1) == "b0ddf56b90903d638ec8d07a4205ba2bcfa944955d553e1ef3f91cba84e8e3bd");
assert(toHexString!(LetterCase.lower)(vec2) == "b0a5e09a38bee3eb2b84d477d5259ef7bebf0e48d9512178f7e26cc330278ff4");
assert(toHexString!(LetterCase.lower)(vec3) == "d1aacafea3a9fdf3ee6236b1b45527974ea01539b4a7cc493bba56e15e14d520");
}
@safe public KdfResult hkdf(const ubyte[] key, size_t outputLen) {
KdfResult result;
result.salt = random(getHashLength(HashAlgorithm.SHA2_384));
result.key = hkdf_ex(key, result.salt, string.init, outputLen, HashAlgorithm.SHA2_384);
return result;
}
@trusted public ubyte[] hkdf_ex(const ubyte[] key, const ubyte[] salt, string info, size_t outputLen, HashAlgorithm func) {
if (key.length == 0) {
throw new CryptographicException("HKDF key cannot be an empty array.");
}
EVP_PKEY_CTX* pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_HKDF, null);
scope(exit) {
if(pctx !is null) {
EVP_PKEY_CTX_free(pctx);
}
}
if (EVP_PKEY_derive_init(pctx) <= 0) {
throw new CryptographicException("Unable to create HKDF function.");
}
if (EVP_PKEY_CTX_set_hkdf_md(pctx, getOpenSSLHashAlgorithm(func)) <= 0) {
throw new CryptographicException("Unable to create HKDF hash function.");
}
if (salt.length != 0 && EVP_PKEY_CTX_set1_hkdf_salt(pctx, salt) <= 0) {
throw new CryptographicException("Unable to set HKDF salt.");
}
if (info.length != 0 && EVP_PKEY_CTX_add1_hkdf_info(pctx, info) <= 0) {
throw new CryptographicException("Unable to set HKDF info.");
}
if (EVP_PKEY_CTX_set1_hkdf_key(pctx, key) <= 0) {
throw new CryptographicException("Unable to set HKDF key.");
}
ubyte[] keyMaterial = new ubyte[outputLen];
if (EVP_PKEY_derive(pctx, keyMaterial.ptr, &outputLen) <= 0) {
throw new CryptographicException("Unable to generate the requested key material.");
}
return keyMaterial;
}
unittest
{
import std.digest;
import std.stdio;
writeln("Testing HKDF Extended with Defaults:");
ubyte[48] salt = [ 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF ];
ubyte[] vec2 = hkdf_ex(cast(ubyte[])"abc", salt, "", 64, HashAlgorithm.SHA2_224);
ubyte[] vec3 = hkdf_ex(cast(ubyte[])"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", salt, "test", 64, HashAlgorithm.SHA2_224);
writeln(toHexString!(LetterCase.lower)(vec2));
writeln(toHexString!(LetterCase.lower)(vec3));
assert(toHexString!(LetterCase.lower)(vec2) == "0fcc4d227bb180f4a2631da9bf158203ced36a73752d1f6fb05be764cbd13460556e6ddd69b0d3b2cdf08457a18253811e38d8059177e5dc22b5b52a6b1cb30a");
assert(toHexString!(LetterCase.lower)(vec3) == "d05e4ba15e07095b8b6dc3abbdde3f790fb4c1d6146e93e12312fbf54b5a1aff4c9c9108046fc390f2bef5fbcbf44d57ac05732525ccbf0a856821fe178f47c2");
}
@safe public KdfResult scrypt(string password) {
KdfResult result;
result.salt = random(32);
result.key = scrypt_ex(password, result.salt, 1_048_576, 8, 1, 1_074_790_400, 64);
return result;
}
@safe public KdfResult scrypt(const ubyte[] password) {
KdfResult result;
result.salt = random(32);
result.key = scrypt_ex(password, result.salt, 1_048_576, 8, 1, 1_074_790_400, 64);
return result;
}
@trusted public ubyte[] scrypt_ex(string password, const ubyte[] salt, ulong n, ulong r, ulong p, ulong maxMemory, size_t length) {
import std.string;
return scrypt_ex(cast(ubyte[])password.representation, salt, n, r, p, maxMemory, length);
}
@trusted public ubyte[] scrypt_ex(const ubyte[] password, const ubyte[] salt, ulong n, ulong r, ulong p, ulong maxMemory, size_t length) {
ubyte[] hash = new ubyte[length];
if (EVP_PBE_scrypt((cast(char[])password).ptr, password.length, salt.ptr, salt.length, n, r, p, maxMemory, hash.ptr, length) <= 0) {
throw new CryptographicException("Unable to calculate SCrypt hash.");
}
return hash;
}
unittest
{
import std.digest;
import std.stdio;
writeln("Testing SCrypt Extended with Defaults:");
ubyte[48] salt = [ 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF ];
ubyte[] vec2 = scrypt_ex("abc", salt, 1_048_576, 8, 1, 1_074_790_400, 64);
ubyte[] vec3 = scrypt_ex("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", salt, 1_048_576, 8, 1, 1_074_790_400, 64);
writeln(toHexString!(LetterCase.lower)(vec2));
writeln(toHexString!(LetterCase.lower)(vec3));
assert(toHexString!(LetterCase.lower)(vec2) == "134fca5087e04c2a79e0ea2c793660f19d466db74a069e1f2e4da2b177d51402501bd39ffc592b9419ec0280cc17dca7af8df54f836179d69a4b9e9f6b9467fd");
assert(toHexString!(LetterCase.lower)(vec3) == "45397ec370eb31f3155ad162d83ec165ff8e363bc4e03c1c61c5a31ad17d0dac51d9e8911f32e9b588adf284a9de24561483dbaf0ea519b6a29ecae77eab5b90");
}
| D |
/Users/abelfernandez/projects/vapor-server/Hello/.build/debug/Bits.build/Bytes+Percent.swift.o : /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Base64.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Convenience.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Data+BytesConvertible.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/String+BytesConvertible.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+BytesConvertible.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/BytesConvertible.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+PatternMatching.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+Shifting.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Random.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Base64Encoder.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/HexEncoder.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Aliases.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/ByteSequence+Conversions.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+UTF8Numbers.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+ControlCharacters.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Operators.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Alphabet.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Percent.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Hex.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.apinotesc /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/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/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/CoreGraphics.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/abelfernandez/projects/vapor-server/Hello/.build/debug/CHTTP.build/module.modulemap /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/CSQLite.build/module.modulemap
/Users/abelfernandez/projects/vapor-server/Hello/.build/debug/Bits.build/Bytes+Percent~partial.swiftmodule : /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Base64.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Convenience.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Data+BytesConvertible.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/String+BytesConvertible.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+BytesConvertible.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/BytesConvertible.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+PatternMatching.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+Shifting.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Random.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Base64Encoder.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/HexEncoder.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Aliases.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/ByteSequence+Conversions.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+UTF8Numbers.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+ControlCharacters.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Operators.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Alphabet.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Percent.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Hex.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.apinotesc /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/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/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/CoreGraphics.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/abelfernandez/projects/vapor-server/Hello/.build/debug/CHTTP.build/module.modulemap /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/CSQLite.build/module.modulemap
/Users/abelfernandez/projects/vapor-server/Hello/.build/debug/Bits.build/Bytes+Percent~partial.swiftdoc : /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Base64.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Convenience.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Data+BytesConvertible.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/String+BytesConvertible.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+BytesConvertible.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/BytesConvertible.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+PatternMatching.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+Shifting.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Random.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Base64Encoder.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/HexEncoder.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Aliases.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/ByteSequence+Conversions.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+UTF8Numbers.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+ControlCharacters.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Operators.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Alphabet.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Percent.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Hex.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.apinotesc /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/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/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/CoreGraphics.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/abelfernandez/projects/vapor-server/Hello/.build/debug/CHTTP.build/module.modulemap /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/CSQLite.build/module.modulemap
| D |
import std.stdio;
import std.datetime: MonoTime;
import std.random;
import std.math;
import f1 = format_old;
import f2 = format_new;
void main(string[] args)
{
FloatingPointControl fpctrl;
auto r_tab = [FloatingPointControl.roundDown, FloatingPointControl.roundUp,
FloatingPointControl.roundToZero, FloatingPointControl.roundToNearest];
auto f_tab = [float.nan, float.infinity, -float.nan, -float.infinity, 0.0, -0.0,
1.0,0.1,1e10,1e-10,1e20,1e-20,1e30,1e-30,1e-40,
1.23456789,1.23456789e10,1.23456789e20,1.23456789e30,
1.23456789e-1,1.23456789e-10,1.23456789e-20,1.23456789e-30,
-1.0,-0.1,-1e10,-1e-10,-1e20,-1e-20,-1e30,-1e-30,-1e-40,
-1.23456789,-1.23456789e10,-1.23456789e20,-1.23456789e30,
-1.23456789e-1,-1.23456789e-10,-1.23456789e-20,-1.23456789e-30,
-29610.9609375, 26535.5078125,
0.1,0.02,0.003,0.004,0.0005,0.00006,0.000007,0.0000008,0.00000009,
10,200,3000,40000,500000,6000000,70000000,8000000000,90000000000];
auto w_tab = ["", "0", "1", "5", "10", "25", "100", "125", "200"];
auto p_tab = ["", ".0", ".1", ".5", ".10", ".25", ".100", ".125", ".200"];
auto s_tab = "fF";
ulong count = 0;
ulong correct = 0;
foreach (r;r_tab)
{
fpctrl.rounding = r;
foreach (f;f_tab)
foreach (flag;0..32)
foreach (width;w_tab)
foreach (precision;p_tab)
foreach (spec;s_tab)
{
string format = "%"
~ ((flag&1)==0?"-":"")
~ ((flag&2)==0?"+":"")
~ ((flag&4)==0?" ":"")
~ ((flag&8)==0?"0":"")
~ ((flag&16)==0?"#":"")
~ width
~ precision
~ spec;
float ff = f; // make sure we have a float
string r_old = f1.format(format,ff);
string r_new = f2.format(format,ff);
++count;
if (r_old==r_new) ++correct;
}
}
writefln!"checks: %d\ncorrect: %d"(count,correct);
}
| D |
module android.java.javax.xml.transform.stream.StreamResult;
public import android.java.javax.xml.transform.stream.StreamResult_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!StreamResult;
import import3 = android.java.java.lang.Class;
| D |
// ***************************************************
// B_RemoveQuarhodron
// ***************************************************
var int B_RemoveQuarhodron_OneTime;
var int B_RemoveRhademes_OneTime;
func int B_RemoveGhost ()
{
if (Ghost_SCKnowsHow2GetInAdanosTempel == TRUE)
{
if (SC_SummonedAncientGhost == TRUE)
&& (B_RemoveQuarhodron_OneTime == FALSE)
{
AI_Teleport (NONE_ADDON_111_Quarhodron, "TOT");
B_RemoveNpc (NONE_ADDON_111_Quarhodron);
Snd_Play ("MFX_GhostVoice");
Snd_Play ("MFX_Firestorm_Cast");
B_RemoveQuarhodron_OneTime = TRUE;
GhostAttackWarn = 0;
};
};
if (ADW_ADANOSTEMPEL_STONEGRD_TRIGG_FUNC_01_OneTime == TRUE)
{
if (SC_TookRhademesTrap == TRUE)
&& (B_RemoveRhademes_OneTime == FALSE)
{
AI_Teleport (NONE_ADDON_112_Rhademes, "TOT");
B_RemoveNpc (NONE_ADDON_112_Rhademes);
if (SC_TalkedToRhademAfter == TRUE)
{
Snd_Play ("MFX_GhostVoice");
Snd_Play ("MFX_Firestorm_Cast");
};
B_RemoveRhademes_OneTime = TRUE;
GhostAttackWarn = 0;
};
};
};
| D |
#!/usr/bin/env rdmd
import std.json;
import std.conv;
import std.traits;
JSONValue toJsonValue(T)(T a) {
JSONValue val;
static if(is(T == typeof(null))) {
val.type = JSON_TYPE.NULL;
} else static if(is(T == JSONValue)) {
val = a;
} else static if(isIntegral!(T)) {
val.type = JSON_TYPE.INTEGER;
val.integer = to!long(a);
} else static if(isFloatingPoint!(T)) {
val.type = JSON_TYPE.FLOAT;
val.floating = to!real(a);
} else static if(is(T == bool)) {
if(a == true)
val.type = JSON_TYPE.TRUE;
if(a == false)
val.type = JSON_TYPE.FALSE;
} else static if(isSomeString!(T)) {
val.type = JSON_TYPE.STRING;
val.str = to!string(a);
} else static if(isAssociativeArray!(T)) {
val.type = JSON_TYPE.OBJECT;
foreach(k, v; a) {
val.object[to!string(k)] = toJsonValue(v);
}
} else static if(isArray!(T)) {
val.type = JSON_TYPE.ARRAY;
val.array.length = a.length;
foreach(i, v; a) {
val.array[i] = toJsonValue(v);
}
} else static if(is(T == struct)) { // also can do all members of a struct...
val.type = JSON_TYPE.OBJECT;
foreach(i, member; a.tupleof) {
string name = a.tupleof[i].stringof[2..$];
static if(a.tupleof[i].stringof[2] != '_')
val.object[name] = toJsonValue!(typeof(member), R)(member,
formatToStringAs, api);
}
} else { /* our catch all is to just do strings */
val.type = JSON_TYPE.STRING;
val.str = to!string(a);
}
return val;
}
string toJson(T)(T a) {
auto v = toJsonValue(a);
return toJSON(&v);
}
/* usage example */
import std.stdio;
void main() {
writeln(toJson(["message": "Hello, world!"]));
}
| D |
module android.java.java.io.Flushable_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import0 = android.java.java.lang.Class_d_interface;
final class Flushable : IJavaObject {
static immutable string[] _d_canCastTo = [
];
@Import void flush();
@Import import0.Class getClass();
@Import int hashCode();
@Import bool equals(IJavaObject);
@Import @JavaName("toString") string toString_();
override string toString() { return arsd.jni.javaObjectToString(this); }
@Import void notify();
@Import void notifyAll();
@Import void wait(long);
@Import void wait(long, int);
@Import void wait();
mixin IJavaObjectImplementation!(false);
public static immutable string _javaParameterString = "Ljava/io/Flushable;";
}
| D |
// Copyright © 2011, Jakob Bornecrantz. All rights reserved.
// See copyright notice in src/charge/charge.d (GPLv2 only).
module charge.game.gui.textbased;
import std.math : fmax;
import charge.util.signal;
import charge.math.color;
import charge.gfx.font;
import charge.gfx.draw;
import charge.gfx.texture;
public import charge.game.gui.component;
public import charge.game.gui.container;
public import charge.game.gui.text;
/*
*
* These functions create gui elements of text to be used with the font
* rendering charge.gfx.font. Since that currently doesn't accept uft-8
* text, this code does not generate valid utf-8 strings.
*
*/
enum ElmGui {
TOP_LEFT,
TOP_RIGHT,
BOTTOM_LEFT,
BOTTOM_RIGHT,
VERTICAL_LINE,
HORIZONTAL_LINE,
}
const char[] singelGuiElememts = [
218, // top left
191, // top right
192, // bottom left
217, // bottom right
179, // vertical line
196, // horizontal line
];
const char[] doubleGuiElememts = [
201, // top left
187, // top right
200, // bottom left
188, // bottom right
186, // vertical line
205, // horizontal line
];
char[] makeFrame(char[] elm, uint width, uint height)
{
size_t stride = width+1; // Newline
char[] ret;
ret.length = stride*height-1; // Remove last newline
// Top row
ret[0] = elm[ElmGui.TOP_LEFT];
ret[1 .. stride-2] = elm[ElmGui.HORIZONTAL_LINE];
ret[stride-2] = elm[ElmGui.TOP_RIGHT];
ret[stride-1] = '\n';
// Middle row
for (int i = 1; i < height-1; i++) {
size_t pos = stride * i;
ret[pos] = elm[ElmGui.VERTICAL_LINE];
ret[pos+1 .. pos+stride-2] = ' ';
ret[pos+stride-2] = elm[ElmGui.VERTICAL_LINE];
ret[pos+stride-1] = '\n';
}
// Bottom row
ret[$ - stride + 1] = elm[ElmGui.BOTTOM_LEFT];
ret[$ - stride + 2 .. $ - 1] = elm[ElmGui.HORIZONTAL_LINE];
ret[$ - 1] = elm[ElmGui.BOTTOM_RIGHT];
return ret;
}
char[] makeTextGuiButton(string text, uint minwidth = 0)
{
int width = cast(uint)text.length;
if (width < minwidth)
width = minwidth;
int stride = width+3;
char[] ret = makeFrame(doubleGuiElememts, stride-1, 3);
size_t pos = ((stride-1)/2)-(text.length/2)+stride;
ret[pos .. pos+text.length] = text[0 .. $];
return ret;
}
/**
* A simple button.
*/
class Button : Text
{
public:
string text;
uint minwidth;
Signal!(Button) pressed;
public:
this(Container c, int x, int y, string text, uint minwidth = 0)
{
this.text = text;
this.minwidth = minwidth;
auto t = makeTextGuiButton(text, minwidth);
super(c, x, y, t);
}
~this()
{
pressed.destruct();
}
void breakApart()
{
pressed.destruct();
super.breakApart();
}
void setText(string text, int minwidth = -1)
{
if (minwidth >= 0)
this.minwidth = cast(uint)minwidth;
super.setText(makeTextGuiButton(text, this.minwidth));
}
void mouseDown(Mouse m, int x, int y, uint button)
{
pressed(this);
}
}
/*
*
* Containers.
*
*/
class HeaderContainer : TextureContainer
{
public:
Container plane;
DoubleText headerText;
Color4f headerBG;
public:
this(Color4f bg, string headerText, Color4f headerBG)
{
super(0, 0, bg);
this.plane = new Container(null, 0, 0, 1, 1);
this.headerText = new DoubleText(null, 0, 0, headerText, true);
Container.add(this.plane);
Container.add(this.headerText);
this.headerBG = headerBG;
}
void replacePlane(Container c)
{
assert(c !is null);
plane.breakApart();
super.remove(plane);
plane = c;
Container.add(plane);
}
Component[] getChildren()
{
return plane.getChildren();
}
bool add(Component c)
{
return plane.add(c);
}
bool remove(Component c)
{
return plane.remove(c);
}
void repack()
{
Container.repack();
w = plane.w;
h = plane.h;
w = 8 + cast(int)fmax(4 + headerText.w + 4, w) + 8;
h = 8 + 4 + headerText.h + 4 + 8 + h + 8;
uint center = w / 2;
headerText.x = center - headerText.w/2;
headerText.y = 8+4;
plane.x = 8;
plane.y = 8 + 4 + headerText.h + 4 + 8;
plane.w = w - 16;
plane.h = h - plane.y - 8;
}
protected:
void paintBackground(Draw d)
{
// First fill the background.
super.paintBackground(d);
// Title bar background.
d.fill(headerBG, false, 8, 8, w-16, headerText.h + 8);
}
}
| D |
/Users/caijie/MLJRCode/Bowling/Example/build/Pods.build/Debug-iphonesimulator/BowlingTests.build/Objects-normal/x86_64/BowlingRequestTestCase.o : /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/MultipartFormData.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Timeline.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/caijie/MLJRCode/Bowling/Bowling/Classes/Bowling+Alamofire.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Alamofire.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/BowlingTests/BaseTestCase.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/BowlingTests/BowlingConfigTestCase.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/BowlingTests/BowlingRequestTestCase.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Response.swift /Users/caijie/MLJRCode/Bowling/Bowling/Classes/BowlingResponse.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/TaskDelegate.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/SessionDelegate.swift /Users/caijie/MLJRCode/Bowling/Bowling/Classes/BowlingConfig.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/ParameterEncoding.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Validation.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/ResponseSerialization.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/SessionManager.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/AFError.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Notifications.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/BowlingTests/BowlingTests.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Result.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Request.swift /Users/caijie/MLJRCode/Bowling/Bowling/Classes/BowlingRequst.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/ServerTrustPolicy.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/XCTest.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCTest.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/caijie/MLJRCode/Bowling/Example/build/Pods.build/Debug-iphonesimulator/BowlingTests.build/Objects-normal/x86_64/BowlingRequestTestCase~partial.swiftmodule : /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/MultipartFormData.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Timeline.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/caijie/MLJRCode/Bowling/Bowling/Classes/Bowling+Alamofire.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Alamofire.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/BowlingTests/BaseTestCase.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/BowlingTests/BowlingConfigTestCase.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/BowlingTests/BowlingRequestTestCase.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Response.swift /Users/caijie/MLJRCode/Bowling/Bowling/Classes/BowlingResponse.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/TaskDelegate.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/SessionDelegate.swift /Users/caijie/MLJRCode/Bowling/Bowling/Classes/BowlingConfig.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/ParameterEncoding.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Validation.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/ResponseSerialization.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/SessionManager.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/AFError.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Notifications.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/BowlingTests/BowlingTests.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Result.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Request.swift /Users/caijie/MLJRCode/Bowling/Bowling/Classes/BowlingRequst.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/ServerTrustPolicy.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/XCTest.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCTest.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/caijie/MLJRCode/Bowling/Example/build/Pods.build/Debug-iphonesimulator/BowlingTests.build/Objects-normal/x86_64/BowlingRequestTestCase~partial.swiftdoc : /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/MultipartFormData.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Timeline.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/caijie/MLJRCode/Bowling/Bowling/Classes/Bowling+Alamofire.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Alamofire.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/BowlingTests/BaseTestCase.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/BowlingTests/BowlingConfigTestCase.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/BowlingTests/BowlingRequestTestCase.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Response.swift /Users/caijie/MLJRCode/Bowling/Bowling/Classes/BowlingResponse.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/TaskDelegate.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/SessionDelegate.swift /Users/caijie/MLJRCode/Bowling/Bowling/Classes/BowlingConfig.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/ParameterEncoding.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Validation.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/ResponseSerialization.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/SessionManager.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/AFError.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Notifications.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/BowlingTests/BowlingTests.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Result.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Request.swift /Users/caijie/MLJRCode/Bowling/Bowling/Classes/BowlingRequst.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/ServerTrustPolicy.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/XCTest.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCTest.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
/Users/mac/Desktop/what/enigma/secret_contracts/simple_addition/target/release/build/failure_derive-e6fc344b0001deb6/build_script_build-e6fc344b0001deb6: /Users/mac/.cargo/registry/src/github.com-1ecc6299db9ec823/failure_derive-0.1.6/build.rs
/Users/mac/Desktop/what/enigma/secret_contracts/simple_addition/target/release/build/failure_derive-e6fc344b0001deb6/build_script_build-e6fc344b0001deb6.d: /Users/mac/.cargo/registry/src/github.com-1ecc6299db9ec823/failure_derive-0.1.6/build.rs
/Users/mac/.cargo/registry/src/github.com-1ecc6299db9ec823/failure_derive-0.1.6/build.rs:
| D |
// EXCLUDE_GDC
static import openmethods;
import openmethods : method, mptr, virtual;
mixin(openmethods.registerMethods);
interface Animal {}
class Dog : Animal {}
class Pitbull : Dog {}
@mptr("hash")
private string kick(openmethods.virtual!Animal);
@method
private string _kick(Dog x)
{
return "bark";
}
@method
private string _kick(Pitbull x)
{
return openmethods.next!kick(x) ~ " and bite";
}
unittest
{
import std.stdio;
Animal hector = new Pitbull, snoopy = new Dog;
assert(kick(snoopy) == "bark");
assert(kick(hector) == "bark and bite");
}
| D |
/Users/karunparuthi/rust/rocket-web/target/debug/deps/matches-b1ccdff8a19e251b.rmeta: /Users/karunparuthi/.cargo/registry/src/github.com-1ecc6299db9ec823/matches-0.1.8/lib.rs
/Users/karunparuthi/rust/rocket-web/target/debug/deps/libmatches-b1ccdff8a19e251b.rlib: /Users/karunparuthi/.cargo/registry/src/github.com-1ecc6299db9ec823/matches-0.1.8/lib.rs
/Users/karunparuthi/rust/rocket-web/target/debug/deps/matches-b1ccdff8a19e251b.d: /Users/karunparuthi/.cargo/registry/src/github.com-1ecc6299db9ec823/matches-0.1.8/lib.rs
/Users/karunparuthi/.cargo/registry/src/github.com-1ecc6299db9ec823/matches-0.1.8/lib.rs:
| D |
/home/cheney/Desktop/IoT-Fan/fan_system/target/debug/build/failure_derive-b629a7c6f056685d/build_script_build-b629a7c6f056685d: /home/cheney/.cargo/registry/src/github.com-1ecc6299db9ec823/failure_derive-0.1.5/build.rs
/home/cheney/Desktop/IoT-Fan/fan_system/target/debug/build/failure_derive-b629a7c6f056685d/build_script_build-b629a7c6f056685d.d: /home/cheney/.cargo/registry/src/github.com-1ecc6299db9ec823/failure_derive-0.1.5/build.rs
/home/cheney/.cargo/registry/src/github.com-1ecc6299db9ec823/failure_derive-0.1.5/build.rs:
| D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric, std.container, std.range;
void get(Args...)(ref Args args)
{
import std.traits, std.meta, std.typecons;
static if (Args.length == 1) {
alias Arg = Args[0];
static if (isArray!Arg) {
static if (isSomeChar!(ElementType!Arg)) {
args[0] = readln.chomp.to!Arg;
} else {
args[0] = readln.split.to!Arg;
}
} else static if (isTuple!Arg) {
auto input = readln.split;
static foreach (i; 0..Fields!Arg.length) {
args[0][i] = input[i].to!(Fields!Arg[i]);
}
} else {
args[0] = readln.chomp.to!Arg;
}
} else {
auto input = readln.split;
assert(input.length == Args.length);
static foreach (i; 0..Args.length) {
args[i] = input[i].to!(Args[i]);
}
}
}
void get_lines(Args...)(size_t N, ref Args args)
{
import std.traits, std.range;
static foreach (i; 0..Args.length) {
static assert(isArray!(Args[i]));
args[i].length = N;
}
foreach (i; 0..N) {
static if (Args.length == 1) {
get(args[0][i]);
} else {
auto input = readln.split;
static foreach (j; 0..Args.length) {
args[j][i] = input[j].to!(ElementType!(Args[j]));
}
}
}
}
void main()
{
int N, L; get(N, L);
int[] aa, bb; get(aa); get(bb);
int[] xs, ys;
xs.reserve(N+1);
ys.reserve(N+1);
xs ~= aa[0] - 1;
ys ~= bb[0] - 1;
foreach (i; 1..N) {
xs ~= aa[i] - aa[i-1] - 1;
ys ~= bb[i] - bb[i-1] - 1;
}
xs ~= L - aa[$-1];
ys ~= L - bb[$-1];
long l, r, c;
foreach (long i; 0..N+1) {
if (ys[i] == 0) continue;
while (r <= N && xs[r] == 0) ++r;
l = r;
int s;
while (r <= N && s < ys[i]) s += xs[r++];
if (s != ys[i]) {
writeln(-1);
return;
}
c += max(i - l, 0) + max(r - i - 1, 0);
}
writeln(c);
}
/*
4 9
1 2 3 4
6 7 8 9
4 9
1 3 4 6
1 2 5 6
*/ | D |
import std.stdio;
import std.string;
import std.conv;
import std.algorithm;
import std.math;
import std.regex;
void main() {
int count;
foreach(_; 0..12) {
auto S = readln.chomp;
if(S.contains('r')) {
count++;
}
}
writeln(count);
}
bool contains(string s, char c) {
if(indexOf(s, c) == -1) return false;
else return true;
}
| D |
/**
* Reference:
* https://github.com/antirez/linenoise
* http://invisible-island.net/xterm/ctlseqs/ctlseqs.html
* http://www.3waylabs.com/nw/WWW/products/wizcon/vt220.html
**/
module vrepl.repl;
import std.stdio: write, writeln;
import std.conv: to;
import dutil.containers;
import std.process;
import vrepl.shell;
alias StringSet = HashSet!string;
enum SIGTTIN = 21;
enum SIGTTOU = 22;
enum ES_CLEAR = "\x1b[H\x1b[2J";
enum ES_BEEP = "\x07";
enum Mode { SHELL, LINE, MLINE, EDIT }
class State {
Mode mode = Mode.LINE;
}
extern(C) void sig_hand(int signal) nothrow @nogc @system {
import core.stdc.stdio: printf;
printf("signal %d catched!\n", signal);
}
class Config {
string[Mode] prompt;
StringSet quits;
void delegate(string) onInput;
this() {
with(Mode) prompt = [
SHELL: "$",
LINE: ">",
MLINE: ">>",
EDIT: "*>"
];
quits.add("quit", "bye", "exit");
}
}
class Vrepl {
Config config;
State state;
Shell shell;
this() {
config = new Config();
state = new State();
shell = new Shell();
}
void setMode(Mode m) {
this.state.mode = m;
}
void prompt() {
if (state.mode == Mode.SHELL) {
write(config.prompt[Mode.SHELL] ~ " ");
} else {
write(config.prompt[state.mode] ~ " ");
}
}
bool checkMode(string line) {
import std.string: chomp;
if (line == "mode shell") {
state.mode = Mode.SHELL;
writeln("Change Mode: ", "shell");
return false;
} else if (line == "mode line") {
state.mode = Mode.LINE;
writeln("Change Mode: ", "line");
return false;
} else if (line.chomp == "") {
writeln("empty");
return false;
} else {
return true;
}
}
void quit() { }
bool isQuit(string line) {
return config.quits.contains(line);
}
ProcessPipes pipes;
void loop() {
import std.string: chomp;
import std.stdio: stdin, readln;
/*
import core.stdc.signal;
signal(SIGTTIN, &sig_hand);
signal(SIGTTOU, &sig_hand);
*/
string line;
prompt();
while ((line = stdin.readln) !is null) {
line = line.chomp;
if (isQuit(line)) return;
if (!checkMode(line)) {
prompt();
continue;
}
with (Mode) switch (state.mode) {
case LINE:
if (line == "clear") {
writeln(ES_CLEAR);
} else if (line == "beep") {
writeln(ES_BEEP);
} else {
if (config.onInput != null) {
config.onInput(line);
} else {
writeln("your wrote:", line);
}
}
prompt();
quit();
break;
case SHELL:
{
write(shell.send(line));
}
prompt();
break;
default:
break;
}
quit();
}
}
}
| D |
/*
DIrrlicht - D Bindings for Irrlicht Engine
Copyright (C) 2014- Danyal Zia (catofdanyal@yahoo.com)
This software is provided 'as-is', without any express or
implied warranty. In no event will the authors be held
liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute
it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented;
you must not claim that you wrote the original software.
If you use this software in a product, an acknowledgment
in the product documentation would be appreciated but
is not required.
2. Altered source versions must be plainly marked as such,
and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any
source distribution.
*/
module dirrlicht.scene.scenenodeanimator;
class SceneNodeAnimator {
this(irr_ISceneNodeAnimator* ptr) {
this.ptr = ptr;
}
irr_ISceneNodeAnimator* ptr;
}
package extern (C):
struct irr_ISceneNodeAnimator;
| 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_23_BeT-7122262118.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_23_BeT-7122262118.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
| D |
/run/media/sacha/stocky/isousb/isousb/target/rls/debug/deps/scoped_threadpool-3483b62ace6b926e.rmeta: /home/sacha/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped_threadpool-0.1.9/src/lib.rs
/run/media/sacha/stocky/isousb/isousb/target/rls/debug/deps/scoped_threadpool-3483b62ace6b926e.d: /home/sacha/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped_threadpool-0.1.9/src/lib.rs
/home/sacha/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped_threadpool-0.1.9/src/lib.rs:
| D |
/*
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
module derelict.allegro5.types;
private {
import core.stdc.stdint;
import core.stdc.time;
}
public {
version( Windows ) {
alias off_t = long;
} else {
import core.sys.posix.sys.types : off_t;
}
}
// altime.h
struct ALLEGRO_TIMEOUT {
ulong __pad1__;
ulong __pad2__;
}
// base.h
enum ALLEGRO_VERSION = 5;
enum ALLEGRO_SUB_VERSION = 0;
enum ALLEGRO_WIP_VERSION = 10;
enum ALLEGRO_RELEASE_NUMBER = 1;
enum ALLEGRO_VERSION_STR = "5.0.10";
enum ALLEGRO_DATA_STR = "2013";
enum ALLEGRO_DATE = 20130616;
enum uint ALLEGRO_VERSION_INT = (( ALLEGRO_VERSION << 24 ) | ( ALLEGRO_SUB_VERSION << 16 ) |
( ALLEGRO_WIP_VERSION << 8 ) | ALLEGRO_RELEASE_NUMBER );
enum ALLEGRO_PI = 3.14159265358979323846;
uint AL_ID( int a, int b, int c, int d ) {
return (( a << 24 ) | ( b << 16 ) | ( c << 8 ) | d );
}
// bitmap.h
struct ALLEGRO_BITMAP;
enum {
ALLEGRO_MEMORY_BITMAP = 0x0001,
ALLEGRO_KEEP_BITMAP_FORMAT = 0x0002,
ALLEGRO_FORCE_LOCKING = 0x0004,
ALLEGRO_NO_PRESERVE_TEXTURE = 0x0008,
ALLEGRO_ALPHA_TEST = 0x0010,
_ALLEGRO_INTERNAL_OPENGL = 0x0020,
ALLEGRO_MIN_LINEAR = 0x0040,
ALLEGRO_MAG_LINEAR = 0x0080,
ALLEGRO_MIPMAP = 0x0100,
ALLEGRO_NO_PREMULTIPLIED_ALPHA = 0x0200,
ALLEGRO_VIDEO_BITMAP = 0x0400,
}
// bitmap_draw.h
enum {
ALLEGRO_FLIP_HORIZONTAL = 0x00001,
ALLEGRO_FLIP_VERTICAL = 0x00002,
}
// bitmap_io.h
extern( C ) nothrow {
alias ALLEGRO_IIO_LOADER_FUNCTION = ALLEGRO_BITMAP* function( const( char )* );
alias ALLEGRO_IIO_FS_LOADER_FUNCTION = ALLEGRO_BITMAP* function( ALLEGRO_FILE* );
alias ALLEGRO_IIO_SAVER_FUNCTION = bool function( const( char )*, ALLEGRO_BITMAP* );
alias ALLEGRO_IIO_FS_SAVER_FUNCTION = bool function( ALLEGRO_FILE*, ALLEGRO_BITMAP* );
}
// bitmap_lock.h
enum {
ALLEGRO_LOCK_READWRITE = 0,
ALLEGRO_LOCK_READONLY = 1,
ALLEGRO_LOCK_WRITEONLY = 2,
}
struct ALLEGRO_LOCKED_REGION {
void* data;
int format;
int pitch;
int pixel_size;
}
// blender.h
alias ALLEGRO_BLEND_MODE = int;
enum {
ALLEGRO_ZERO = 0,
ALLEGRO_ONE = 1,
ALLEGRO_ALPHA = 2,
ALLEGRO_INVERSE_ALPHA = 3,
ALLEGRO_SRC_COLOR = 4,
ALLEGRO_DEST_COLOR = 5,
ALLEGRO_INVERSE_SRC_COLOR = 6,
ALLEGRO_INVERSE_DEST_COLOR = 7,
ALLEGRO_NUM_BLEND_MODES,
}
alias ALLEGRO_BLEND_OPERATIONS = int;
enum {
ALLEGRO_ADD = 0,
ALLEGRO_SRC_MINUS_DEST = 1,
ALLEGRO_DEST_MINUS_SRC = 2,
ALLEGRO_NUM_BLEND_OPERATIONS,
}
// color.h
struct ALLEGRO_COLOR {
float r, g, b, a;
}
alias ALLEGRO_PIXEL_FORMAT = int;
enum {
ALLEGRO_PIXEL_FORMAT_ANY = 0,
ALLEGRO_PIXEL_FORMAT_ANY_NO_ALPHA,
ALLEGRO_PIXEL_FORMAT_ANY_WITH_ALPHA,
ALLEGRO_PIXEL_FORMAT_ANY_15_NO_ALPHA,
ALLEGRO_PIXEL_FORMAT_ANY_16_NO_ALPHA,
ALLEGRO_PIXEL_FORMAT_ANY_16_WITH_ALPHA,
ALLEGRO_PIXEL_FORMAT_ANY_24_NO_ALPHA,
ALLEGRO_PIXEL_FORMAT_ANY_32_NO_ALPHA,
ALLEGRO_PIXEL_FORMAT_ANY_32_WITH_ALPHA,
ALLEGRO_PIXEL_FORMAT_ARGB_8888,
ALLEGRO_PIXEL_FORMAT_RGBA_8888,
ALLEGRO_PIXEL_FORMAT_ARGB_4444,
ALLEGRO_PIXEL_FORMAT_RGB_888,
ALLEGRO_PIXEL_FORMAT_RGB_565,
ALLEGRO_PIXEL_FORMAT_RGB_555,
ALLEGRO_PIXEL_FORMAT_RGBA_5551,
ALLEGRO_PIXEL_FORMAT_ARGB_1555,
ALLEGRO_PIXEL_FORMAT_ABGR_8888,
ALLEGRO_PIXEL_FORMAT_XBGR_8888,
ALLEGRO_PIXEL_FORMAT_BGR_888,
ALLEGRO_PIXEL_FORMAT_BGR_565,
ALLEGRO_PIXEL_FORMAT_BGR_555,
ALLEGRO_PIXEL_FORMAT_RGBX_8888,
ALLEGRO_PIXEL_FORMAT_XRGB_8888,
ALLEGRO_PIXEL_FORMAT_ABGR_F32,
ALLEGRO_PIXEL_FORMAT_ABGR_8888_LE,
ALLEGRO_PIXEL_FORMAT_RGBA_4444,
ALLEGRO_NUM_PIXEL_FORMATS
}
// config.h
struct ALLEGRO_CONFIG;
struct ALLEGRO_CONFIG_SECTION;
struct ALLEGRO_CONFIG_ENTRY;
// display.h
enum {
ALLEGRO_WINDOWED = 1 << 0,
ALLEGRO_FULLSCREEN = 1 << 1,
ALLEGRO_OPENGL = 1 << 2,
ALLEGRO_DIRECT3D_INTERNAL = 1 << 3,
ALLEGRO_RESIZABLE = 1 << 4,
ALLEGRO_FRAMELESS = 1 << 5,
ALLEGRO_NOFRAME = ALLEGRO_FRAMELESS, /* older synonym */
ALLEGRO_GENERATE_EXPOSE_EVENTS = 1 << 6,
ALLEGRO_OPENGL_3_0 = 1 << 7,
ALLEGRO_OPENGL_FORWARD_COMPATIBLE = 1 << 8,
ALLEGRO_FULLSCREEN_WINDOW = 1 << 9,
ALLEGRO_MINIMIZED = 1 << 10,
}
alias ALLEGRO_DISPLAY_OPTIONS = int;
enum {
ALLEGRO_RED_SIZE,
ALLEGRO_GREEN_SIZE,
ALLEGRO_BLUE_SIZE,
ALLEGRO_ALPHA_SIZE,
ALLEGRO_RED_SHIFT,
ALLEGRO_GREEN_SHIFT,
ALLEGRO_BLUE_SHIFT,
ALLEGRO_ALPHA_SHIFT,
ALLEGRO_ACC_RED_SIZE,
ALLEGRO_ACC_GREEN_SIZE,
ALLEGRO_ACC_BLUE_SIZE,
ALLEGRO_ACC_ALPHA_SIZE,
ALLEGRO_STEREO,
ALLEGRO_AUX_BUFFERS,
ALLEGRO_COLOR_SIZE,
ALLEGRO_DEPTH_SIZE,
ALLEGRO_STENCIL_SIZE,
ALLEGRO_SAMPLE_BUFFERS,
ALLEGRO_SAMPLES,
ALLEGRO_RENDER_METHOD,
ALLEGRO_FLOAT_COLOR,
ALLEGRO_FLOAT_DEPTH,
ALLEGRO_SINGLE_BUFFER,
ALLEGRO_SWAP_METHOD,
ALLEGRO_COMPATIBLE_DISPLAY,
ALLEGRO_UPDATE_DISPLAY_REGION,
ALLEGRO_VSYNC,
ALLEGRO_MAX_BITMAP_SIZE,
ALLEGRO_SUPPORT_NPOT_BITMAP,
ALLEGRO_CAN_DRAW_INTO_BITMAP,
ALLEGRO_SUPPORT_SEPARATE_ALPHA,
ALLEGRO_DISPLAY_OPTIONS_COUNT,
}
enum {
ALLEGRO_DONTCARE,
ALLEGRO_REQUIRE,
ALLEGRO_SUGGEST,
}
alias ALLEGRO_DISPLAY_ORIENTATION = int;
enum {
ALLEGRO_DISPLAY_ORIENTATION_0_DEGREES,
ALLEGRO_DISPLAY_ORIENTATION_90_DEGREES,
ALLEGRO_DISPLAY_ORIENTATION_180_DEGREES,
ALLEGRO_DISPLAY_ORIENTATION_270_DEGREES,
ALLEGRO_DISPLAY_ORIENTATION_FACE_UP,
ALLEGRO_DISPLAY_ORIENTATION_FACE_DOWN,
}
struct ALLEGRO_DISPLAY;
// events.h
alias ALLEGRO_EVENT_TYPE = uint;
enum {
ALLEGRO_EVENT_JOYSTICK_AXIS = 1,
ALLEGRO_EVENT_JOYSTICK_BUTTON_DOWN = 2,
ALLEGRO_EVENT_JOYSTICK_BUTTON_UP = 3,
ALLEGRO_EVENT_JOYSTICK_CONFIGURATION = 4,
ALLEGRO_EVENT_KEY_DOWN = 10,
ALLEGRO_EVENT_KEY_CHAR = 11,
ALLEGRO_EVENT_KEY_UP = 12,
ALLEGRO_EVENT_MOUSE_AXES = 20,
ALLEGRO_EVENT_MOUSE_BUTTON_DOWN = 21,
ALLEGRO_EVENT_MOUSE_BUTTON_UP = 22,
ALLEGRO_EVENT_MOUSE_ENTER_DISPLAY = 23,
ALLEGRO_EVENT_MOUSE_LEAVE_DISPLAY = 24,
ALLEGRO_EVENT_MOUSE_WARPED = 25,
ALLEGRO_EVENT_TIMER = 30,
ALLEGRO_EVENT_DISPLAY_EXPOSE = 40,
ALLEGRO_EVENT_DISPLAY_RESIZE = 41,
ALLEGRO_EVENT_DISPLAY_CLOSE = 42,
ALLEGRO_EVENT_DISPLAY_LOST = 43,
ALLEGRO_EVENT_DISPLAY_FOUND = 44,
ALLEGRO_EVENT_DISPLAY_SWITCH_IN = 45,
ALLEGRO_EVENT_DISPLAY_SWITCH_OUT = 46,
ALLEGRO_EVENT_DISPLAY_ORIENTATION = 47,
}
bool ALLEGRO_EVENT_TYPE_IS_USER( uint t ) {
return t >= 512;
}
alias ALLEGRO_GET_EVENT_TYPE = AL_ID;
struct ALLEGRO_EVENT_SOURCE {
int[32] __pad = void;
}
template _AL_EVENT_HEADER( T ) {
ALLEGRO_EVENT_TYPE type;
T* source;
double timestamp;
}
struct ALLEGRO_ANY_EVENT {
mixin _AL_EVENT_HEADER!( ALLEGRO_EVENT_SOURCE );
}
struct ALLEGRO_DISPLAY_EVENT {
mixin _AL_EVENT_HEADER!( ALLEGRO_DISPLAY );
int x, y;
int width, height;
int orientation;
}
struct ALLEGRO_JOYSTICK_EVENT {
mixin _AL_EVENT_HEADER!( ALLEGRO_JOYSTICK );
ALLEGRO_JOYSTICK* id;
int stick;
int axis;
float pos;
int button;
}
struct ALLEGRO_KEYBOARD_EVENT {
mixin _AL_EVENT_HEADER!( ALLEGRO_KEYBOARD );
ALLEGRO_DISPLAY* display;
int keycode;
int unichar;
uint modifiers;
bool repeat;
}
struct ALLEGRO_MOUSE_EVENT {
mixin _AL_EVENT_HEADER!( ALLEGRO_MOUSE );
ALLEGRO_DISPLAY* display;
int x, y, z, w;
int dx, dy, dz, dw;
uint button;
float pressure;
}
struct ALLEGRO_TIMER_EVENT {
mixin _AL_EVENT_HEADER!( ALLEGRO_TIMER );
long count;
double error;
}
struct ALLEGRO_USER_EVENT {
mixin _AL_EVENT_HEADER!( ALLEGRO_EVENT_SOURCE );
void* __internal__descr;
intptr_t data1;
intptr_t data2;
intptr_t data3;
intptr_t data4;
}
union ALLEGRO_EVENT {
ALLEGRO_EVENT_TYPE type;
ALLEGRO_ANY_EVENT any;
ALLEGRO_DISPLAY_EVENT display;
ALLEGRO_JOYSTICK_EVENT joystick;
ALLEGRO_KEYBOARD_EVENT keyboard;
ALLEGRO_MOUSE_EVENT mouse;
ALLEGRO_TIMER_EVENT timer;
ALLEGRO_USER_EVENT user;
}
struct ALLEGRO_EVENT_QUEUE;
// file.h
struct ALLEGRO_FILE;
struct ALLEGRO_FILE_INTERFACE {
extern( C ) nothrow {
void* function( const( char )*, const( char )* ) fi_fopen;
void function( ALLEGRO_FILE* ) fi_fclose;
size_t function( ALLEGRO_FILE*, void*, size_t ) fi_fread;
size_t function( ALLEGRO_FILE*, const( void )*, size_t ) fi_fwrite;
bool function( ALLEGRO_FILE* ) fi_fflush;
long function( ALLEGRO_FILE* ) fi_ftell;
bool function( ALLEGRO_FILE*, long, int ) fi_fseek;
bool function( ALLEGRO_FILE* ) fi_feof;
bool function( ALLEGRO_FILE* ) fi_ferror;
void function( ALLEGRO_FILE* ) fi_fclearerr;
int function( ALLEGRO_FILE*, int ) fi_fungetc;
off_t function( ALLEGRO_FILE* ) fi_fsize;
}
}
alias ALLEGRO_SEEK = int;
enum {
ALLEGRO_SEEK_SET = 0,
ALLEGRO_SEEK_CUR,
ALLEGRO_SEEK_END,
}
// fshook.h
struct ALLEGRO_FS_ENTRY {
const( ALLEGRO_FS_INTERFACE )* vtable;
}
alias ALLEGRO_FILE_MODE = int;
enum {
ALLEGRO_FILEMODE_READ = 1,
ALLEGRO_FILEMODE_WRITE = 1 << 1,
ALLEGRO_FILEMODE_EXECUTE = 1 << 2,
ALLEGRO_FILEMODE_HIDDEN = 1 << 3,
ALLEGRO_FILEMODE_ISFILE = 1 << 4,
ALLEGRO_FILEMODE_ISDIR = 1 << 5,
}
struct ALLEGRO_FS_INTERFACE {
extern( C ) nothrow {
ALLEGRO_FS_ENTRY* function( const( char )* ) fs_create_entry;
void function( ALLEGRO_FS_ENTRY* ) fs_destroy_entry;
const( char )* function( ALLEGRO_FS_ENTRY* ) fs_entry_name;
bool function( ALLEGRO_FS_ENTRY* ) fs_update_entry;
uint function( ALLEGRO_FS_ENTRY* ) fs_entry_mode;
time_t function( ALLEGRO_FS_ENTRY* ) fs_entry_atime;
time_t function( ALLEGRO_FS_ENTRY* ) fs_entry_mtime;
time_t function( ALLEGRO_FS_ENTRY* ) fs_entry_ctime;
off_t function( ALLEGRO_FS_ENTRY* ) fs_entry_size;
bool function( ALLEGRO_FS_ENTRY* ) fs_entry_exists;
bool function( ALLEGRO_FS_ENTRY* ) fs_remove_entry;
bool function( ALLEGRO_FS_ENTRY* ) fs_open_directory;
ALLEGRO_FS_ENTRY* function( ALLEGRO_FS_ENTRY* ) fs_read_directory;
bool function( ALLEGRO_FS_ENTRY* ) fs_close_directory;
bool function( const( char )* ) fs_filename_exists;
bool function( const( char )* ) fs_remove_filename;
char* function() fs_get_current_directory;
bool function( const( char )* ) fs_change_directory;
bool function( const( char )* ) fs_make_directory;
ALLEGRO_FILE* function( ALLEGRO_FS_ENTRY*, const( char )* ) fs_open_file;
}
}
// fullscreen_mode.h
enum _AL_MAX_JOYSTICK_AXES = 3;
enum _AL_MAX_JOYSTICK_STICKS = 8;
enum _AL_MAX_JOYSTICK_BUTTONS = 32;
struct ALLEGRO_DISPLAY_MODE {
int width;
int height;
int format;
int refresh_rate;
}
// joystick.h
struct ALLEGRO_JOYSTICK;
struct _Axes {
float[_AL_MAX_JOYSTICK_AXES] axis;
}
struct ALLEGRO_JOYSTICK_STATE {
_Axes[_AL_MAX_JOYSTICK_STICKS] stick;
int[_AL_MAX_JOYSTICK_BUTTONS] button;
}
alias ALLEGRO_JOYFLAGS = int;
enum {
ALLEGRO_JOYFLAG_DIGITAL = 0x01,
ALLEGRO_JOYFLAG_ANALOGUE = 0x02,
}
// keycodes.h
enum {
ALLEGRO_KEY_A = 1,
ALLEGRO_KEY_B = 2,
ALLEGRO_KEY_C = 3,
ALLEGRO_KEY_D = 4,
ALLEGRO_KEY_E = 5,
ALLEGRO_KEY_F = 6,
ALLEGRO_KEY_G = 7,
ALLEGRO_KEY_H = 8,
ALLEGRO_KEY_I = 9,
ALLEGRO_KEY_J = 10,
ALLEGRO_KEY_K = 11,
ALLEGRO_KEY_L = 12,
ALLEGRO_KEY_M = 13,
ALLEGRO_KEY_N = 14,
ALLEGRO_KEY_O = 15,
ALLEGRO_KEY_P = 16,
ALLEGRO_KEY_Q = 17,
ALLEGRO_KEY_R = 18,
ALLEGRO_KEY_S = 19,
ALLEGRO_KEY_T = 20,
ALLEGRO_KEY_U = 21,
ALLEGRO_KEY_V = 22,
ALLEGRO_KEY_W = 23,
ALLEGRO_KEY_X = 24,
ALLEGRO_KEY_Y = 25,
ALLEGRO_KEY_Z = 26,
ALLEGRO_KEY_0 = 27,
ALLEGRO_KEY_1 = 28,
ALLEGRO_KEY_2 = 29,
ALLEGRO_KEY_3 = 30,
ALLEGRO_KEY_4 = 31,
ALLEGRO_KEY_5 = 32,
ALLEGRO_KEY_6 = 33,
ALLEGRO_KEY_7 = 34,
ALLEGRO_KEY_8 = 35,
ALLEGRO_KEY_9 = 36,
ALLEGRO_KEY_PAD_0 = 37,
ALLEGRO_KEY_PAD_1 = 38,
ALLEGRO_KEY_PAD_2 = 39,
ALLEGRO_KEY_PAD_3 = 40,
ALLEGRO_KEY_PAD_4 = 41,
ALLEGRO_KEY_PAD_5 = 42,
ALLEGRO_KEY_PAD_6 = 43,
ALLEGRO_KEY_PAD_7 = 44,
ALLEGRO_KEY_PAD_8 = 45,
ALLEGRO_KEY_PAD_9 = 46,
ALLEGRO_KEY_F1 = 47,
ALLEGRO_KEY_F2 = 48,
ALLEGRO_KEY_F3 = 49,
ALLEGRO_KEY_F4 = 50,
ALLEGRO_KEY_F5 = 51,
ALLEGRO_KEY_F6 = 52,
ALLEGRO_KEY_F7 = 53,
ALLEGRO_KEY_F8 = 54,
ALLEGRO_KEY_F9 = 55,
ALLEGRO_KEY_F10 = 56,
ALLEGRO_KEY_F11 = 57,
ALLEGRO_KEY_F12 = 58,
ALLEGRO_KEY_ESCAPE = 59,
ALLEGRO_KEY_TILDE = 60,
ALLEGRO_KEY_MINUS = 61,
ALLEGRO_KEY_EQUALS = 62,
ALLEGRO_KEY_BACKSPACE = 63,
ALLEGRO_KEY_TAB = 64,
ALLEGRO_KEY_OPENBRACE = 65,
ALLEGRO_KEY_CLOSEBRACE = 66,
ALLEGRO_KEY_ENTER = 67,
ALLEGRO_KEY_SEMICOLON = 68,
ALLEGRO_KEY_QUOTE = 69,
ALLEGRO_KEY_BACKSLASH = 70,
ALLEGRO_KEY_BACKSLASH2 = 71,
ALLEGRO_KEY_COMMA = 72,
ALLEGRO_KEY_FULLSTOP = 73,
ALLEGRO_KEY_SLASH = 74,
ALLEGRO_KEY_SPACE = 75,
ALLEGRO_KEY_INSERT = 76,
ALLEGRO_KEY_DELETE = 77,
ALLEGRO_KEY_HOME = 78,
ALLEGRO_KEY_END = 79,
ALLEGRO_KEY_PGUP = 80,
ALLEGRO_KEY_PGDN = 81,
ALLEGRO_KEY_LEFT = 82,
ALLEGRO_KEY_RIGHT = 83,
ALLEGRO_KEY_UP = 84,
ALLEGRO_KEY_DOWN = 85,
ALLEGRO_KEY_PAD_SLASH = 86,
ALLEGRO_KEY_PAD_ASTERISK = 87,
ALLEGRO_KEY_PAD_MINUS = 88,
ALLEGRO_KEY_PAD_PLUS = 89,
ALLEGRO_KEY_PAD_DELETE = 90,
ALLEGRO_KEY_PAD_ENTER = 91,
ALLEGRO_KEY_PRINTSCREEN = 92,
ALLEGRO_KEY_PAUSE = 93,
ALLEGRO_KEY_ABNT_C1 = 94,
ALLEGRO_KEY_YEN = 95,
ALLEGRO_KEY_KANA = 96,
ALLEGRO_KEY_CONVERT = 97,
ALLEGRO_KEY_NOCONVERT = 98,
ALLEGRO_KEY_AT = 99,
ALLEGRO_KEY_CIRCUMFLEX = 100,
ALLEGRO_KEY_COLON2 = 101,
ALLEGRO_KEY_KANJI = 102,
ALLEGRO_KEY_PAD_EQUALS = 103,
ALLEGRO_KEY_BACKQUOTE = 104,
ALLEGRO_KEY_SEMICOLON2 = 105,
ALLEGRO_KEY_COMMAND = 106,
ALLEGRO_KEY_UNKNOWN = 107,
ALLEGRO_KEY_MODIFIERS = 215,
ALLEGRO_KEY_LSHIFT = 215,
ALLEGRO_KEY_RSHIFT = 216,
ALLEGRO_KEY_LCTRL = 217,
ALLEGRO_KEY_RCTRL = 218,
ALLEGRO_KEY_ALT = 219,
ALLEGRO_KEY_ALTGR = 220,
ALLEGRO_KEY_LWIN = 221,
ALLEGRO_KEY_RWIN = 222,
ALLEGRO_KEY_MENU = 223,
ALLEGRO_KEY_SCROLLLOCK = 224,
ALLEGRO_KEY_NUMLOCK = 225,
ALLEGRO_KEY_CAPSLOCK = 226,
ALLEGRO_KEY_MAX,
}
enum {
ALLEGRO_KEYMOD_SHIFT = 0x00001,
ALLEGRO_KEYMOD_CTRL = 0x00002,
ALLEGRO_KEYMOD_ALT = 0x00004,
ALLEGRO_KEYMOD_LWIN = 0x00008,
ALLEGRO_KEYMOD_RWIN = 0x00010,
ALLEGRO_KEYMOD_MENU = 0x00020,
ALLEGRO_KEYMOD_ALTGR = 0x00040,
ALLEGRO_KEYMOD_COMMAND = 0x00080,
ALLEGRO_KEYMOD_SCROLLLOCK = 0x00100,
ALLEGRO_KEYMOD_NUMLOCK = 0x00200,
ALLEGRO_KEYMOD_CAPSLOCK = 0x00400,
ALLEGRO_KEYMOD_INALTSEQ = 0x00800,
ALLEGRO_KEYMOD_ACCENT1 = 0x01000,
ALLEGRO_KEYMOD_ACCENT2 = 0x02000,
ALLEGRO_KEYMOD_ACCENT3 = 0x04000,
ALLEGRO_KEYMOD_ACCENT4 = 0x08000,
}
// keyboard.h
struct ALLEGRO_KEYBOARD;
struct ALLEGRO_KEYBOARD_STATE {
ALLEGRO_DISPLAY* display;
uint[( ALLEGRO_KEY_MAX + 31 ) / 32] __key_down__internal__;
}
// memory.h
struct ALLEGRO_MEMORY_INTERFACE {
extern( C ) nothrow {
void* function( size_t, int, const( char )*, const( char )* ) mi_malloc;
void function( void*, int, const( char )*, const( char )* ) mi_free;
void* function( void*, size_t, int, const( char )*, const( char )* ) mi_realloc;
void* function( size_t, size_t, int, const( char )*, const( char )* ) mi_calloc;
}
}
// monitor.h
struct ALLEGRO_MONITOR_INFO {
int x1;
int y1;
int x2;
int y2;
}
enum ALLEGRO_DEFAULT_DISPLAY_ADAPTER = -1;
// mouse.h
enum ALLEGRO_MOUSE_MAX_EXTRA_AXES = 4;
struct ALLEGRO_MOUSE;
struct ALLEGRO_MOUSE_STATE {
int x;
int y;
int z;
int w;
int[ALLEGRO_MOUSE_MAX_EXTRA_AXES] more_axes;
int button;
float pressure;
ALLEGRO_DISPLAY* display;
}
// mouse_cursor.h
struct ALLEGRO_MOUSE_CURSOR;
alias ALLEGRO_SYSTEM_MOUSE_CURSOR = int;
enum {
ALLEGRO_SYSTEM_MOUSE_CURSOR_NONE = 0,
ALLEGRO_SYSTEM_MOUSE_CURSOR_DEFAULT = 1,
ALLEGRO_SYSTEM_MOUSE_CURSOR_ARROW = 2,
ALLEGRO_SYSTEM_MOUSE_CURSOR_BUSY = 3,
ALLEGRO_SYSTEM_MOUSE_CURSOR_QUESTION = 4,
ALLEGRO_SYSTEM_MOUSE_CURSOR_EDIT = 5,
ALLEGRO_SYSTEM_MOUSE_CURSOR_MOVE = 6,
ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_N = 7,
ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_W = 8,
ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_S = 9,
ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_E = 10,
ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_NW = 11,
ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_SW = 12,
ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_SE = 13,
ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_NE = 14,
ALLEGRO_SYSTEM_MOUSE_CURSOR_PROGRESS = 15,
ALLEGRO_SYSTEM_MOUSE_CURSOR_PRECISION = 16,
ALLEGRO_SYSTEM_MOUSE_CURSOR_LINK = 17,
ALLEGRO_SYSTEM_MOUSE_CURSOR_ALT_SELECT = 18,
ALLEGRO_SYSTEM_MOUSE_CURSOR_UNAVAILABLE = 19,
ALLEGRO_NUM_SYSTEM_MOUSE_CURSORS,
}
// path.h
version( Windows ) {
enum ALLEGRO_NATIVE_PATH_SEP = '\\';
enum ALLEGRO_NATIVE_DRIVE_SEP = ':';
} else {
enum ALLEGRO_NATIVE_PATH_SEP = '/';
enum ALLEGRO_NATIVE_DRIVE_SEP = '\0';
}
struct ALLEGRO_PATH;
// system.h
struct ALLEGRO_SYSTEM;
enum {
ALLEGRO_RESOURCES_PATH = 0,
ALLEGRO_TEMP_PATH,
ALLEGRO_USER_DATA_PATH,
ALLEGRO_USER_HOME_PATH,
ALLEGRO_USER_SETTINGS_PATH,
ALLEGRO_USER_DOCUMENTS_PATH,
ALLEGRO_EXENAME_PATH,
ALLEGRO_LAST_PATH,
}
// timer.h
pure nothrow {
double ALLEGRO_USECS_TO_SECS( double x ) { return x / 1_000_000; }
double ALLEGRO_MSECS_TO_SECS( double x ) { return x / 1_000; }
double ALLEGRO_BPS_TO_SECS( double x ) {
if( x > 0 ) {
return 1.0 / x;
} else {
return 0;
}
}
double ALLEGRO_BPM_TO_SECS( double x ) {
if( x > 0 ) {
return 60.0 / x;
} else {
return 0;
}
}
}
struct ALLEGRO_TIMER;
// tls.h
alias ALLEGRO_STATE_FLAGS = int;
enum {
ALLEGRO_STATE_NEW_DISPLAY_PARAMETERS = 0x0001,
ALLEGRO_STATE_NEW_BITMAP_PARAMETERS = 0x0002,
ALLEGRO_STATE_DISPLAY = 0x0004,
ALLEGRO_STATE_TARGET_BITMAP = 0x0008,
ALLEGRO_STATE_BLENDER = 0x0010,
ALLEGRO_STATE_NEW_FILE_INTERFACE = 0x0020,
ALLEGRO_STATE_TRANSFORM = 0x0040,
ALLEGRO_STATE_BITMAP = ALLEGRO_STATE_TARGET_BITMAP + ALLEGRO_STATE_NEW_BITMAP_PARAMETERS,
ALLEGRO_STATE_ALL = 0xffff,
}
struct ALLEGRO_STATE {
ubyte[1024] _tls = void;
}
// transformations.h
struct ALLEGRO_TRANSFORM {
float[4][4] m;
}
// utf8.h
struct ALLEGRO_USTR {
int mlen;
int slen;
ubyte* data;
}
alias ALLEGRO_USTR_INFO = ALLEGRO_USTR;
| D |
// Copyright Brian Schott (Sir Alaran) 2014.
// 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 analysis.fish;
import stdx.d.ast;
import stdx.d.lexer;
import analysis.base;
/**
* Checks for use of the deprecated floating point comparison operators.
*/
class FloatOperatorCheck : BaseAnalyzer
{
alias visit = BaseAnalyzer.visit;
this(string fileName)
{
super(fileName);
}
override void visit(const RelExpression r)
{
if (r.operator == tok!"<>"
|| r.operator == tok!"!<>"
|| r.operator == tok!"!>"
|| r.operator == tok!"!<"
|| r.operator == tok!"!<>="
|| r.operator == tok!"!>="
|| r.operator == tok!"!<=")
{
addErrorMessage(r.line, r.column, "Avoid using the deprecated floating-point operators");
}
r.accept(this);
}
}
| D |
/Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/Fluent.build/Query/Group.swift.o : /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Database/Database.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Database/Driver.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Entity/Entity.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Filters.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Group.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Sort.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/MemoryDriver.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Database+Preparation.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Migration.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Preparation.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/PreparationError.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Action.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Comparison.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Filter.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Group.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Join.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Limit.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Query.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Scope.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Sort.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Children.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Parent.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/RelationError.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Siblings.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Database+Schema.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Creator.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Field.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Modifier.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL+Query.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL+Schema.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQLSerializer.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Utilities/Fluent+Node.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/Node.swiftmodule /Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/PathIndexable.swiftmodule /Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/Polymorphic.swiftmodule
/Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/Fluent.build/Group~partial.swiftmodule : /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Database/Database.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Database/Driver.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Entity/Entity.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Filters.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Group.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Sort.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/MemoryDriver.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Database+Preparation.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Migration.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Preparation.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/PreparationError.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Action.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Comparison.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Filter.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Group.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Join.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Limit.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Query.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Scope.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Sort.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Children.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Parent.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/RelationError.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Siblings.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Database+Schema.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Creator.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Field.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Modifier.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL+Query.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL+Schema.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQLSerializer.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Utilities/Fluent+Node.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/Node.swiftmodule /Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/PathIndexable.swiftmodule /Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/Polymorphic.swiftmodule
/Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/Fluent.build/Group~partial.swiftdoc : /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Database/Database.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Database/Driver.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Entity/Entity.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Filters.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Group.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/Memory+Sort.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Memory/MemoryDriver.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Database+Preparation.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Migration.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/Preparation.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Preparation/PreparationError.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Action.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Comparison.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Filter.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Group.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Join.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Limit.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Query.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Scope.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Query/Sort.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Children.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Parent.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/RelationError.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Relations/Siblings.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Database+Schema.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Creator.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Field.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema+Modifier.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Schema/Schema.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL+Query.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL+Schema.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQL.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/SQL/SQLSerializer.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Fluent-1.4.1/Sources/Fluent/Utilities/Fluent+Node.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/Node.swiftmodule /Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/PathIndexable.swiftmodule /Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/Polymorphic.swiftmodule
| D |
# FIXED
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/host/gattservapp_util.c
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/bcomdef.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/osal/src/inc/comdef.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/hal/src/target/_common/hal_types.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/hal/src/target/_common/../_common/cc26xx/_hal_types.h
PROFILES/gattservapp_util.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdint.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/hal/src/inc/hal_defs.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/linkdb.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/gatt.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/osal/src/inc/osal.h
PROFILES/gattservapp_util.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/limits.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/osal/src/inc/osal_memory.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/osal/src/inc/osal_timers.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/icall/src/inc/icall.h
PROFILES/gattservapp_util.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdbool.h
PROFILES/gattservapp_util.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdlib.h
PROFILES/gattservapp_util.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/linkage.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/hal/src/inc/hal_assert.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/hal/src/target/_common/hal_types.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/att.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/l2cap.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/gattservapp.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/icall/inc/icall_api.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/gap.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/sm.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/hci.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/controller/cc26xx_r2/inc/ll.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/hci_tl.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/hci_data.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/hci_event.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/hci_tl.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/gapgattserver.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/profiles/roles/gapbondmgr.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/osal/src/inc/osal_snv.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/hal/src/target/_common/hal_types.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/hci_ext.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/icall/inc/icall_apimsg.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/icall/inc/ble_dispatch.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/hal/src/target/_common/TRNGCC26XX.h
PROFILES/gattservapp_util.obj: C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/icall/inc/icall_api_idx.h
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/host/gattservapp_util.c:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/bcomdef.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/osal/src/inc/comdef.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/hal/src/target/_common/../_common/cc26xx/_hal_types.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdint.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/hal/src/inc/hal_defs.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/linkdb.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/gatt.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/osal/src/inc/osal.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/limits.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/osal/src/inc/osal_memory.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/osal/src/inc/osal_timers.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/icall/src/inc/icall.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdbool.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdlib.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/linkage.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/hal/src/inc/hal_assert.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/att.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/l2cap.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/gattservapp.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/icall/inc/icall_api.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/gap.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/sm.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/hci.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/controller/cc26xx_r2/inc/ll.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/hci_tl.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/hci_data.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/hci_event.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/hci_tl.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/gapgattserver.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/profiles/roles/gapbondmgr.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/osal/src/inc/osal_snv.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/inc/hci_ext.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/icall/inc/icall_apimsg.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/icall/inc/ble_dispatch.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/hal/src/target/_common/TRNGCC26XX.h:
C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/icall/inc/icall_api_idx.h:
| D |
/**
* Copyright: Mike Wey 2011
* License: zlib (See accompanying LICENSE file)
* Authors: Mike Wey
*/
module dmagick.DrawingContext;
import std.algorithm;
import std.array;
import std.conv;
import std.file;
import std.string;
import dmagick.Color;
import dmagick.Exception;
import dmagick.Geometry;
import dmagick.Image;
import dmagick.Options;
import dmagick.Utils;
import dmagick.c.composite;
import dmagick.c.draw;
import dmagick.c.geometry;
import dmagick.c.type;
/// See_Also: $(CXREF draw, _AlignType)
public alias dmagick.c.draw.AlignType AlignType;
/// See_Also: $(CXREF draw, _ClipPathUnits)
public alias dmagick.c.draw.ClipPathUnits ClipPathUnits;
/// See_Also: $(CXREF draw, _DecorationType)
public alias dmagick.c.draw.DecorationType DecorationType;
/// See_Also: $(CXREF draw, _FillRule)
public alias dmagick.c.draw.FillRule FillRule;
/// See_Also: $(CXREF draw, _LineCap)
public alias dmagick.c.draw.LineCap LineCap;
/// See_Also: $(CXREF draw, _LineJoin)
public alias dmagick.c.draw.LineJoin LineJoin;
/// See_Also: $(CXREF draw, _PaintMethod)
public alias dmagick.c.draw.PaintMethod PaintMethod;
/// See_Also: $(CXREF type, _StretchType)
public alias dmagick.c.type.StretchType StretchType;
/// See_Also: $(CXREF type, _StyleType)
public alias dmagick.c.type.StyleType StyleType;
alias ptrdiff_t ssize_t;
/**
* Drawable provides a convenient interface for preparing vector,
* image, or text arguments.
*/
class DrawingContext
{
string operations;
/**
* Apply the drawing context to the image.
*/
void draw(Image image)
{
copyString(image.options.drawInfo.primitive, operations);
scope(exit) copyString(image.options.drawInfo.primitive, null);
DrawImage(image.imageRef, image.options.drawInfo);
DMagickException.throwException(&(image.imageRef.exception));
}
/**
* Transforms the coordinate system by a 3x3 transformation matrix.
*/
void affine(AffineMatrix matrix)
{
operations ~= format(" affine %s,%s,%s,%s,%s,%s",
matrix.sx, matrix.rx, matrix.ry, matrix.sy, matrix.tx, matrix.ty);
}
/**
* Specify if the text and stroke should be antialiased.
*/
void antialias(bool antialias)
{
strokeAntialias = antialias;
textAntialias = antialias;
}
/**
* Draws an arc within a rectangle.
*/
void arc(size_t startX, size_t startY, size_t endX, size_t endY, double startDegrees, double endDegrees)
{
operations ~= format(" arc %s,%s %s,%s %s,%s",
startX, startY, endX, endY, startDegrees, endDegrees);
}
/**
* Draw a cubic Bezier curve.
*
* The arguments are pairs of points. At least 4 pairs must be specified.
* Each point xn, yn on the curve is associated with a control point
* cxn, cyn. The first point, x1, y1, is the starting point. The last
* point, xn, yn, is the ending point. Other point/control point pairs
* specify intermediate points on a polybezier curve.
*/
void bezier(size_t x1, size_t y1, size_t cx1, size_t cy1,
size_t cx2, size_t cy2, size_t x2, size_t y2,
size_t[] points ...)
in
{
assert ( points.length % 2 == 0,
"bezier needs an even number of arguments, "~
"each x coordinate needs a coresponding y coordinate." );
}
body
{
operations ~= format(" bezier %s,%s %s,%s %s,%s %s,%s",
x1, y1, cx1, cy1, cx2, cy2, x2, y2);
for( int i = 0; i < points.length; i+=2 )
operations ~= format(" %s,%s", points[i], points[i+1]);
}
/**
* Set the image border color. The default is "#dfdfdf".
*/
void borderColor(const(Color) color)
{
operations ~= format(" border-color %s", color);
}
/**
* Defines a clip-path. Within the delegate, call other drawing
* primitive methods (rectangle, polygon, text, etc.) to define the
* clip-path. The union of all the primitives (excluding the effects
* of rendering methods such as stroke_width, etc.) is the clip-path.
*
* Params:
* path = The delegate that defines the clip-path using
* using the provided DrawingContext.
*/
void clipPath(void delegate(DrawingContext path) defineClipPath)
{
static size_t count;
DrawingContext path = new DrawingContext();
defineClipPath(path);
operations ~= format(" push defs push clip-path path%s push graphic-context", count);
operations ~= path.operations;
operations ~= " pop graphic-context pop clip-path pop defs";
operations ~= format(" clip-path url(#path%s)", count);
count++;
}
/**
* Specify how to determine if a point on the image is inside
* clipping region.
*
* See_Also: $(LINK2 http://www.w3.org/TR/SVG/painting.html#FillRuleProperty,
* the 'fill-rule' property) in the Scalable Vector Graphics (SVG)
* 1.1 Specification.
*/
void clipRule(FillRule rule)
{
if ( rule == FillRule.UndefinedRule )
throw new DrawException("Undefined Fill Rule");
operations ~= format(" clip-rule %s", to!(string)(rule)[0 .. $-4]);
}
/**
* Defines the coordinate space within the clipping region.
*
* See_Also: $(LINK2 http://www.w3.org/TR/SVG/masking.html#EstablishingANewClippingPath,
* Establishing a New Clipping Path) in the
* Scalable Vector Graphics (SVG) 1.1 Specification.
*/
void clipUnits(ClipPathUnits units)
{
if ( units == ClipPathUnits.UndefinedPathUnits )
throw new DrawException("Undefined Path Unit");
operations ~= format( " clip-units %s", toLower(to!(string)(units)) );
}
unittest
{
auto dc = new DrawingContext();
dc.clipUnits(ClipPathUnits.UserSpace);
assert(dc.operations == " clip-units userspace");
}
/**
* Draw a circle.
*
* Params:
* xOrigin = The x coordinate for the center of the circle.
* yOrigin = The y coordinate for the center of the circle.
* xPerimeter = The x coordinate for a point on the perimeter of
* the circle.
* yPerimeter = The x coordinate for a point on the perimeter of
* the circle.
*/
void circle(size_t xOrigin, size_t yOrigin, size_t xPerimeter, size_t yPerimeter)
{
operations ~= format(" circle %s,%s %s,%s",
xOrigin, yOrigin, xPerimeter, yPerimeter);
}
///ditto
void circle(size_t xOrigin, size_t yOrigin, size_t radius)
{
circle(xOrigin, yOrigin, xOrigin, yOrigin + radius);
}
/**
* Set color in image according to the specified PaintMethod constant.
* If you use the PaintMethod.FillToBorderMethod, assign the border
* color with the DrawingContext.borderColor property.
*/
void color(size_t x, size_t y, PaintMethod method)
{
if ( method == PaintMethod.UndefinedMethod )
throw new DrawException("Undefined Paint Method");
operations ~= format(" color %s,%s %s", x, y, to!(string)(method)[0 .. $-6]);
}
/**
* Composite filename/image with the receiver image.
*
* Params:
* xOffset = The x-offset of the composited image,
* measured from the upper-left corner
* of the image.
* yOffset = The y-offset of the composited image,
* measured from the upper-left corner
* of the image.
* width = Scale the composite image to this size.
* If value is 0, the composite image is not scaled.
* height = Scale the composite image to this size.
* If value is 0, the composite image is not scaled.
* filename = Filename of the mage to use in the
* composite operation.
* image = Image to use in the composite operation.
* compositeOp = The composite operation to use.
*/
void composite(
ssize_t xOffset,
ssize_t yOffset,
size_t width,
size_t height,
string filename,
CompositeOperator compositeOp = CompositeOperator.OverCompositeOp)
{
if ( compositeOp == CompositeOperator.UndefinedCompositeOp)
throw new DrawException("Undefined Composite Operator");
operations ~= format(" image %s %s,%s %s,%s '%s'",
to!(string)(compositeOp)[0 .. $-11], xOffset, yOffset, width, height, filename);
}
///ditto
void composite(
ssize_t xOffset,
ssize_t yOffset,
size_t width,
size_t height,
Image image,
CompositeOperator compositeOp = CompositeOperator.OverCompositeOp)
{
if ( image.filename !is null && image.filename.exists && !image.changed )
{
composite(xOffset, yOffset, width, height, image.filename, compositeOp);
return;
}
string filename = saveTempFile(image);
composite(xOffset, yOffset, width, height, filename, compositeOp);
}
/**
* Specify text decoration.
*/
void decorate(DecorationType decoration)
{
operations ~= " decorate ";
final switch ( decoration )
{
case DecorationType.NoDecoration:
operations ~= "none"; break;
case DecorationType.UnderlineDecoration:
operations ~= "underline"; break;
case DecorationType.OverlineDecoration:
operations ~= "overline"; break;
case DecorationType.LineThroughDecoration:
operations ~= "line-through"; break;
case DecorationType.UndefinedDecoration:
throw new DrawException("Undefined Decoration");
}
}
/**
* Draw an ellipse.
*
* Params:
* xOrigin = The x coordinate of the ellipse.
* yOrigin = The y coordinate of the ellipse.
* width = The horizontal radii.
* height = The vertical radii.
* startDegrees = Where to start the ellipse.
* 0 degrees is at 3 o'clock.
* endDegrees = Whare to end the ellipse.
*/
void ellipse(size_t xOrigin, size_t yOrigin, size_t width, size_t height, double startDegrees, double endDegrees)
{
operations ~= format(" ellipse %s,%s %s,%s %s,%s",
xOrigin, yOrigin, width, height, startDegrees, endDegrees);
}
/**
* Specify the font encoding.
* Note: This specifies the character repertory (i.e., charset),
* and not the text encoding method (e.g., UTF-8, UTF-16, etc.).
*/
void encoding(FontEncoding encoding)
{
switch ( encoding )
{
case FontEncoding.Latin1:
operations ~= " encoding Latin-1";
break;
case FontEncoding.Latin2:
operations ~= " encoding Latin-2";
break;
default:
operations ~= format(" encoding %s", to!(string)(encoding));
break;
}
}
unittest
{
auto dc = new DrawingContext();
dc.encoding(FontEncoding.Latin1);
assert(dc.operations == " encoding Latin-1");
}
/**
* Color to use when filling drawn objects.
* The default is "black".
*/
void fill(const(Color) fillColor)
{
operations ~= format(" fill %s", fillColor);
}
///ditto
alias fill fillColor;
/**
* Pattern to use when filling drawn objects.
*
* Within the delegate, call other drawing primitive methods (rectangle,
* polygon, text, etc.) to define the pattern.
*/
void fill(size_t x, size_t y, size_t width, size_t height, void delegate(DrawingContext path) pattern)
{
operations ~= format(" fill url(#%s)", definePattern(x, y, width, height, pattern));
}
///ditto
alias fill fillPattern;
/**
* The gradient to use when filling drawn objects.
*/
void fill(Gradient gradient)
{
operations ~= gradient.defineGradient();
operations ~= format(" fill url(#%s)", gradient.id());
}
/**
* Specify the fill opacity.
*
* Params:
* opacity = A number between 0 and 1.
*/
void fillOpacity(double opacity)
in
{
assert(opacity >= 0);
assert(opacity <= 1);
}
body
{
operations ~= format(" fill-opacity %s", opacity);
}
/**
* Specify how to determine if a point on the image is inside a shape.
*
* See_Also: $(LINK2 http://www.w3.org/TR/SVG/painting.html#FillRuleProperty,
* the 'fill-rule' property) in the Scalable Vector Graphics (SVG)
* 1.1 Specification.
*/
void fillRule(FillRule rule)
{
if ( rule == FillRule.UndefinedRule )
throw new DrawException("Undefined Fill Rule");
operations ~= format(" fill-rule %s", to!(string)(rule)[0 .. $-4]);
}
/**
* The _font name or filename.
* You can tag a _font to specify whether it is a Postscript,
* Truetype, or OPTION1 _font. For example, Arial.ttf is a
* Truetype _font, ps:helvetica is Postscript, and x:fixed is OPTION1.
*
* The _font name can be a complete filename such as
* "/mnt/windows/windows/fonts/Arial.ttf". The _font name can
* also be a fully qualified X font name such as
* "-urw-times-medium-i-normal--0-0-0-0-p-0-iso8859-13".
*/
void font(string font)
{
operations ~= format(" font '%s'", font);
}
/**
* Specify the font family, such as "arial" or "helvetica".
*/
void fontFamily(string family)
{
operations ~= format(" font-family '%s'", family);
}
/**
* Text rendering font point size
*/
void fontSize(double pointSize)
{
operations ~= format(" font-size %s", pointSize);
}
/**
* Specify the spacing between text characters.
*/
void fontStretch(StretchType type)
{
if ( type == StretchType.UndefinedStretch )
throw new DrawException("Undefined Stretch type");
operations ~= format(" font-stretch %s", to!(string)(type)[0 .. $-7]);
}
/**
* Specify the font style, i.e. italic, oblique, or normal.
*/
void fontStyle(StyleType type)
{
if ( type == StyleType.UndefinedStyle )
throw new DrawException("Undefined Style type");
operations ~= format(" font-style %s", to!(string)(type)[0 .. $-5]);
}
/**
* Specify the font weight.
*
* Eighter use the FontWeight enum or specify a number
* between 100 and 900.
*/
void fontWeight(size_t weight)
{
operations ~= format(" font-weight %s", weight);
}
///ditto
void fontWeight(FontWeight weight)
{
if ( weight == FontWeight.Any )
operations ~= " font-weight all";
else
operations ~= format(" font-weight %s", weight);
}
/**
* Specify how the text is positioned. The default is NorthWestGravity.
*/
void gravity(GravityType type)
{
if ( type == GravityType.UndefinedGravity )
throw new DrawException("Undefined Gravity type");
operations ~= format(" gravity %s", to!(string)(type)[0 .. $-7]);
}
/**
* Modify the spacing between lines when text has multiple lines.
*
* If positive, inserts additional space between lines. If negative,
* removes space between lines. The amount of space inserted
* or removed depends on the font.
*/
void interlineSpacing(double spacing)
{
operations ~= format(" interline-spacing %s", spacing);
}
/**
* Modify the spacing between words in text.
*
* If positive, inserts additional space between words. If negative,
* removes space between words. The amount of space inserted
* or removed depends on the font.
*/
void interwordSpacing(double spacing)
{
operations ~= format(" interword-spacing %s", spacing);
}
/**
* Modify the spacing between letters in text.
*
* If positive, inserts additional space between letters. If negative,
* removes space between letters. The amount of space inserted or
* removed depends on the font but is usually measured in pixels. That
* is, the following call adds about 5 pixels between each letter.
*/
void kerning(double kerning)
{
operations ~= format(" kerning %s", kerning);
}
/**
* Draw a line from start to end.
*/
void line(size_t xStart, size_t yStart, size_t xEnd, size_t yEnd)
{
operations ~= format(" line %s,%s %s,%s",
xStart, yStart, xEnd, yEnd);
}
/**
* Make the image transparent according to the specified
* PaintMethod constant.
*
* If you use the PaintMethod.FillToBorderMethod, assign the border
* color with the DrawingContext.borderColor property.
*/
void matte(size_t x, size_t y, PaintMethod method)
{
if ( method == PaintMethod.UndefinedMethod )
throw new DrawException("Undefined Paint Method");
operations ~= format(" matte %s,%s %s", x, y, to!(string)(method)[0 .. $-6]);
}
/**
* Specify the fill and stroke opacities.
*
* Params:
* opacity = A number between 0 and 1.
*/
void opacity(double opacity)
in
{
assert(opacity >= 0);
assert(opacity <= 1);
}
body
{
operations ~= format(" opacity %s", opacity);
}
/**
* Draw using SVG-compatible path drawing commands.
*
* See_Also: "$(LINK2 http://www.w3.org/TR/SVG/paths.html,
* Paths)" in the Scalable Vector Graphics (SVG) 1.1 Specification.
*/
void path(string svgPath)
{
operations ~= " path "~svgPath;
}
/**
* Set the pixel at x,y to the fill color.
*/
void point(size_t x, size_t y)
{
operations ~= format(" point %s,%s", x,y);
}
/**
* Draw a polygon.
*
* The arguments are a sequence of 2 or more points. If the last
* point is not the same as the first, the polygon is closed by
* drawing a line from the last point to the first.
*/
void polygon(size_t[] points ...)
in
{
assert ( points.length % 2 == 0,
"polygon needs an even number of arguments, "~
"each x coordinate needs a coresponding y coordinate." );
}
body
{
operations ~= " polygon";
for( int i = 0; i < points.length; i+=2 )
operations ~= format(" %s,%s", points[i], points[i+1]);
}
/**
* Draw a polyline. Unlike a polygon,
* a polyline is not automatically closed.
*/
void polyline(size_t[] points ...)
in
{
assert ( points.length % 2 == 0,
"polyline needs an even number of arguments, "~
"each x coordinate needs a coresponding y coordinate." );
}
body
{
operations ~= " polyline";
for( int i = 0; i < points.length; i+=2 )
operations ~= format(" %s,%s", points[i], points[i+1]);
}
/**
* Restore the graphics context to the state it was in when
* push was called last.
*/
void pop()
{
operations ~= " pop graphic-context";
}
/**
* Save the current state of the graphics context, including the
* attribute settings and the current set of primitives. Use the
* pop primitive to restore the state.
*/
void push()
{
operations ~= " push graphic-context";
}
/**
* Draw a rectangle.
*/
void rectangle(size_t xStart, size_t yStart, size_t xEnd, size_t yEnd)
{
operations ~= format(" rectangle %s,%s %s,%s",
xStart, yStart, xEnd, yEnd);
}
/**
* Specify a rotation transformation to the coordinate space.
*/
void rotate(double angle)
{
operations ~= format(" rotate %s", angle);
}
/**
* Draw a rectangle with rounded corners.
*
* Params:
* xStart = The x coordinate for the upper left hand corner
* of the rectangle.
* yStart = The y coordinate for the upper left hand corner
* of the rectangle.
* xEnd = The x coordinate for the lower left hand corner
* of the rectangle.
* yEnd = The y coordinate for the lower left hand corner
* of the rectangle.
* cornerWidth = The width of the corner.
* cornerHeight = The height of the corner.
*/
void roundRectangle(
size_t xStart, size_t yStart,
size_t xEnd, size_t yEnd,
size_t cornerWidth, size_t cornerHeight)
{
operations ~= format(" roundRectangle %s,%s %s,%s %s,%s",
xStart, yStart, xEnd, yEnd, cornerWidth, cornerHeight);
}
/**
* Define a scale transformation to the coordinate space.
*/
void scale(double xScale, double yScale)
{
operations ~= format(" scale %s,%s", xScale, yScale);
}
/**
* Define a skew transformation along the x-axis.
*
* Params:
* angle = The amount of skew, in degrees.
*/
void skewX(double angle)
{
operations ~= format(" skewX %s", angle);
}
/**
* Define a skew transformation along the y-axis.
*
* Params:
* angle = The amount of skew, in degrees.
*/
void skewY(double angle)
{
operations ~= format(" skewY %s", angle);
}
/**
* Color to use when drawing object outlines.
*/
void stroke(const(Color) strokeColor)
{
operations ~= format(" stroke %s", strokeColor);
}
///ditto
alias stroke strokeColor;
/**
* Pattern to use when filling drawn objects.
*
* Within the delegate, call other drawing primitive methods (rectangle,
* polygon, text, etc.) to define the pattern.
*/
void stroke(size_t x, size_t y, size_t width, size_t height, void delegate(DrawingContext path) pattern)
{
operations ~= format(" stroke url(#%s)", definePattern(x, y, width, height, pattern));
}
///ditto
alias stroke strokePattern;
/**
* The gradient to use when filling drawn objects.
*/
void stroke(Gradient gradient)
{
operations ~= gradient.defineGradient();
operations ~= format(" stroke url(#%s)", gradient.id());
}
/**
* Specify if the stroke should be antialiased.
*/
void strokeAntialias(bool antialias)
{
operations ~= format(" stroke-antialias %s", (antialias ? 1 : 0));
}
/**
* Describe a pattern of dashes to be used when stroking paths.
* The arguments are a list of pixel widths of alternating
* dashes and gaps.
*
* The first argument is the width of the first dash. The second is
* the width of the gap following the first dash. The third argument
* is another dash width, followed by another gap width, etc.
*/
void strokeDashArray(const(double)[] dashArray ...)
{
if ( dashArray.length == 0 )
{
operations ~= " stroke-dasharray none";
}
else
{
operations ~= format(" stroke-dasharray %s",
array(joiner(map!"to!(string)(a)"(dashArray), ",")) );
}
}
unittest
{
auto dc = new DrawingContext();
dc.strokeDashArray(10, 10, 10);
assert(dc.operations == " stroke-dasharray 10,10,10");
}
/**
* Specify the initial distance into the dash pattern.
*/
void strokeDashOffset(double offset)
{
operations ~= format(" stroke-dashoffset %s", offset);
}
/**
* Specify how the line ends should be drawn.
*/
void strokeLineCap(LineCap cap)
{
if ( cap == LineCap.UndefinedCap )
throw new DrawException("Undefined Line cap.");
operations ~= format(" stroke-linecap %s", to!(string)(cap)[0 .. $-3]);
}
/**
* Specify how corners are drawn.
*/
void strokeLineJoin(LineJoin join)
{
if ( join == LineJoin.UndefinedJoin )
throw new DrawException("Undefined Line join.");
operations ~= format(" stroke-linejoin %s", to!(string)(join)[0 .. $-4]);
}
/**
* Specify a constraint on the length of the "miter"
* formed by two lines meeting at an angle. If the angle
* if very sharp, the miter could be very long relative
* to the line thickness. The miter _limit is a _limit on
* the ratio of the miter length to the line width.
* The default is 4.
*/
void strokeMiterLimit(size_t limit)
{
operations ~= format(" stroke-miterlimit %s", limit);
}
/**
* Specify the stroke opacity.
*
* Params:
* opacity = A number between 0 and 1.
*/
void strokeOpacity(double opacity)
in
{
assert(opacity >= 0);
assert(opacity <= 1);
}
body
{
operations ~= format(" stroke-opacity %s", opacity);
}
/**
* Specify the stroke width in pixels. The default is 1.
*/
void strokeWidth(double width)
{
operations ~= format(" stroke-width %s", width);
}
/**
* Draw text at the location specified by (x,y). Use gravity to
* position text relative to (x, y). Specify the font appearance
* with the font, fontFamily, fontStretch, fontStyle, and fontWeight
* properties. Specify the text attributes with the textAlign,
* textAnchor, textAntialias, and textUndercolor properties.
*
* To include a '%' in the text, use '%%'.
*
* See_Also: Image.annotate for the image properties you can
* include in the string.
*/
void text(size_t x, size_t y, string text)
{
operations ~= format(" text %s,%s %s", x, y, escapeText(text));
}
/**
* Align text relative to the starting point.
*/
void textAlign(AlignType type)
{
if ( type == AlignType.UndefinedAlign )
throw new DrawException("Undefined Align type.");
operations ~= format(" text-align %s", to!(string)(type)[0 .. $-5]);
}
/**
* Specify if the text should be antialiased.
*/
void textAntialias(bool antialias)
{
operations ~= format(" text-antialias %s", (antialias ? 1 : 0));
}
/**
* If set, causes the text to be drawn over a box of the specified color.
*/
void textUnderColor(Color color)
{
operations ~= format(" text-undercolor %s", color);
}
///ditto
alias textUnderColor boxColor;
/**
* Specify a translation operation on the coordinate space.
*/
void translate(size_t x, size_t y)
{
operations ~= format(" translate %s,%s", x, y);
}
/**
* Generate to operations to define the pattern.
*/
private string definePattern(size_t x, size_t y, size_t width, size_t height, void delegate(DrawingContext path) pattern)
{
static size_t count;
count++;
DrawingContext patt = new DrawingContext();
pattern(patt);
operations ~= format(" push defs push pattern patt%s %s,%s %s,%s push graphic-context", count, x, y, width, height);
operations ~= patt.operations;
operations ~= " pop graphic-context pop pattern pop defs";
return format("patt%s", count);
}
/**
* Escape the text so it can be added to the operations string.
*/
private static string escapeText(string text)
{
string escaped;
//reserve text.lengt + 10% to avoid realocating when appending.
escaped.reserve(cast(size_t)(text.length * 0.1));
escaped ~= '\"';
foreach ( c; text )
{
if ( c == '\"' || c == '\\' )
escaped ~= '\\';
escaped ~= c;
}
escaped ~= '\"';
return escaped;
}
unittest
{
assert(escapeText(q{Hello world}) == q{"Hello world"});
assert(escapeText(q{"Hello world"}) == q{"\"Hello world\""});
assert(escapeText(q{"\"Hello world\""}) == q{"\"\\\"Hello world\\\"\""});
}
/**
* Save the image in the temp directory and return the filename.
*/
private static string saveTempFile(Image image)
{
import std.datetime;
import std.path;
import std.process;
import core.runtime;
string tempPath;
string filename;
version(Windows)
{
tempPath = getenv("TMP");
if ( tempPath is null )
tempPath = getenv("TEMP");
if ( tempPath is null )
tempPath = buildPath(getenv("USERPROFILE"), "AppData/Local/Temp");
if ( tempPath is null || !tempPath.exists )
tempPath = buildPath(getenv("WinDir"), "Temp");
}
else
{
import core.sys.posix.stdio;
tempPath = getenv("TMPDIR");
if ( tempPath is null )
tempPath = P_tmpdir;
}
do
{
filename = buildPath(tempPath, "DMagick."~to!(string)(Clock.currTime().stdTime));
if ( image.magick !is null && toLower(image.magick) != "canvas" )
filename ~= "."~image.magick;
else
filename ~= ".png";
}
while ( filename.exists );
image.write(filename);
return filename;
}
unittest
{
auto image = new Image(Geometry(200, 200), new Color("blue"));
string filename = saveTempFile(image);
assert(filename.exists);
remove(filename);
}
}
/**
* This defines a Gradient used when drawing.
*
* One thing to remember it that the gradient is always drawn from the
* top left corner of the image. And is repeated if it's smaller then the
* image height or width. This mean that the gradient you see in the object
* you are filling does not determine the stating point of the gradient
* but is filled the part of the gradient that would be there when starting
* at the top left corner of the image.
*/
struct Gradient
{
private static size_t count;
private size_t currentCount;
//Is the id to use this gradient already set.
private bool isDefined = false;
size_t size;
GradientDirection direction;
Color startColor;
Color endColor;
/**
* Define a linear gradient.
*
* Params:
* startColor = The starting Color.
* endColor = The end Color.
* size = The height or with of the gradient.
* Direction = Determines is the gradient fades from top to bottom
* or from left to right.
*/
this(Color startColor, Color endColor, size_t size, GradientDirection direction = GradientDirection.Vertical)
{
currentCount = count++;
this.size = size;
this.direction = direction;
this.startColor = startColor;
this.endColor = endColor;
}
/**
* Generate the string used to define this gradient.
*/
private string defineGradient()
{
if ( isDefined )
return "";
string operations = " push defs push defs push gradient";
if ( direction == GradientDirection.Vertical )
{
operations ~= format(" grad%s linear %s,%s %s,%s",
currentCount, 0, 0, 0, size);
}
else
{
operations ~= format(" grad%s linear %s,%s %s,%s",
currentCount, 0, 0, size, 0);
}
operations ~= format(" stop-color %s %s", startColor, 0);
operations ~= format(" stop-color %s %s", endColor, 1);
operations ~= " pop gradient pop defs";
return operations;
}
/**
* If the gradient is defined, this id is neded to use it.
*/
private string id()
{
return format("grad%s", currentCount);
}
}
/**
* This enumeration lists specific character repertories (i.e., charsets),
* and not text encoding methods (e.g., UTF-8, UTF-16, etc.).
*/
enum FontEncoding
{
AdobeCustom, ///
AdobeExpert, ///ditto
AdobeStandard, ///ditto
AppleRoman, ///ditto
BIG5, ///ditto
GB2312, ///ditto
Johab, ///ditto
Latin1, ///ditto
Latin2, ///ditto
None, ///ditto
SJIScode, ///ditto
Symbol, ///ditto
Unicode, ///ditto
Wansung, ///ditto
}
/**
* The font weight can be specified as one of 100, 200, 300, 400, 500,
* 600, 700, 800, or 900, or one of the following constants.
*/
enum FontWeight
{
Any, /// No weight specified.
Normal, /// Normal weight, equivalent to 400.
Bold, /// Bold. equivalent to 700.
Bolder, /// Increases weight by 100.
Lighter, /// Decreases weight by 100.
}
/**
* GradientDirection determines if the gradient fades from top to bottom
* or from left to right.
*/
enum GradientDirection
{
Horizontal, /// Top to bottom.
Vertical /// Left to right.
}
/+
+ ImageMagick's gradient implementation is a lot more limmiting then
+ it whoud seem. This was the first Gradient implementation based on:
+ http://www.imagemagick.org/script/magick-vector-graphics.php and
+ http://www.linux-nantes.org/~fmonnier/OCaml/MVG/
+ But a look at the source of DrawImage reveals that only simple
+ linear gradients are supported.
/**
* This defines a Gradient used when drawing.
*/
struct Gradient
{
private static size_t count;
private size_t currentCount;
//Is the id to use this gradient already set.
private bool isDefined = false;
GradientType type;
//GradientUnits units;
double x1, y1, x2, y2, radius;
StopColor[] stopColors;
/**
* Define a linear gradient.
*
* x1, y1, x2 and y2 define a gradient vector for the linear gradient.
* This gradient vector provides starting and ending points onto which
* the gradient stops are mapped. The values of x1, y1, x2 and y2 can
* be either numbers or percentages.
*/
static Gradient linear(double x1, double y1, double x2, double y2)
{
Gradient gradient;
gradient.type = GradientType.LinearGradient;
gradient.currentCount = count++;
gradient.x1 = x1;
gradient.y1 = y1;
gradient.x2 = x2;
gradient.y2 = y2;
return gradient;
}
/**
* Define a radial gradient.
*
* cx, cy and r define the largest (i.e., outermost) circle for the
* radial gradient. The gradient will be drawn such that the 100%
* gradient stop is mapped to the perimeter of this largest
* (i.e., outermost) circle.
*
* Params:
* xCenter = x coordinate for the center of the circle.
* yCenter = y coordinate for the center of the circle.
* xFocal = x coordinate the focal point for the radial gradient.
* The gradient will be drawn such that the 0% gradient
* stop is mapped to (xFocal, yFocal).
* yFocal = y coordinate the focal point
* radius = The radius of the gradient. A value of zero will cause
* the area to be painted as a single color using the
* color and opacity of the last gradient stop.
*/
static Gradient radial(double xCenter, double yCenter, double xFocal, double yFocal, double radius)
{
Gradient gradient;
gradient.type = GradientType.RadialGradient;
gradient.currentCount = count++;
gradient.x1 = xCenter;
gradient.y1 = yCenter;
gradient.x2 = xFocal;
gradient.y2 = yFocal;
gradient.radius = radius;
return gradient;
}
/**
* Define a radial gradient.
*
* The same as above but with the focal point at
* the center of the circle.
*/
static Gradient radial(double xCenter, double yCenter, double radius)
{
return radial(xCenter, yCenter, xCenter, yCenter, radius);
}
/**
* Defines the coordinate system to use.
*/
Gradient gradientUnits(GradientUnits units)
{
this.units = units;
return this;
}
/**
* Define the color to use, and there offsets in the gradient.
*
* Params:
* color = The color to use at this stop.
* offset = For linear gradients, the offset attribute represents
* a location along the gradient vector. For radial
* gradients, it represents a percentage distance
* from (fx,fy) to the edge of the outermost/largest circle.
* offset should bwe between 0 and 1.
*/
Gradient stopColor(Color color, double offset)
{
stopColors ~= StopColor(color, offset);
return this;
}
/**
* Generate the string used to define this gradient.
*/
private string defineGradient()
{
if ( isDefined )
return "";
string operations = " push defs";
if ( type == GradientType.LinearGradient )
{
operations ~= format(" push gradient grad%s linear %s,%s %s,%s",
currentCount, x1, y1, x2, y2);
}
else
{
operations ~= format(" push gradient grad%s radial %s,%s %s,%s %s",
currentCount, x1, y1, x2, y2, radius);
}
if ( units != GradientUnits.Undefined )
operations ~= format(" gradient-units %s", units);
foreach ( stop; stopColors )
{
operations ~= format(" stop-color %s %s", stop.color, stop.offset);
}
operations ~= " pop gradient pop defs";
return operations;
}
/**
* If the gradient is defined, this id is neded to use it.
*/
private string id()
{
return format("grad%s", currentCount);
}
private struct StopColor
{
Color color;
double offset;
}
}
/**
* Defines the coordinate system to use for Gradients.
*/
enum GradientUnits : string
{
/**
* No coordinate systewm defined.
*/
Undefined = "",
/**
* The values supplied to Gradient represent values in the coordinate
* system that results from taking the current user coordinate system
* in place at the time when the gradient element is referenced.
*/
UserSpace = "userSpace",
/**
* The user coordinate system for the values supplied to Gradient is
* established using the bounding box of the element to which the
* gradient is applied.
*/
UserSpaceOnUse = "userSpaceOnUse",
/**
* The normal of the linear gradient is perpendicular to the gradient
* vector in object bounding box space. When the object's bounding box
* is not square, the gradient normal which is initially perpendicular
* to the gradient vector within object bounding box space may render
* non-perpendicular relative to the gradient vector in user space.
* If the gradient vector is parallel to one of the axes of the bounding
* box, the gradient normal will remain perpendicular.
* This transformation is due to application of the non-uniform scaling
* transformation from bounding box space to user space.
*/
ObjectBoundingBox = "objectBoundingBox",
}
+/
| D |
INSTANCE Info_Mod_Everaldo_Hi (C_INFO)
{
npc = Mod_1530_WKR_Everaldo_NW;
nr = 1;
condition = Info_Mod_Everaldo_Hi_Condition;
information = Info_Mod_Everaldo_Hi_Info;
permanent = 0;
important = 0;
description = "Ich komme von Vanas.";
};
FUNC INT Info_Mod_Everaldo_Hi_Condition()
{
if (Mod_SLD_Engardo == 2)
{
return 1;
};
};
FUNC VOID Info_Mod_Everaldo_Hi_Info()
{
AI_Output(hero, self, "Info_Mod_Everaldo_Hi_15_00"); //Ich komme von Vanas.
AI_Output(self, hero, "Info_Mod_Everaldo_Hi_04_01"); //Ohh, ja, ich weiß, worum es geht. Es ist ein Schmiedebauplan von hohem Wert, dessen solltest du dir bewusst sein, weit wertvoller, als die paar Erz und Sumpfkraut ...
AI_Output(hero, self, "Info_Mod_Everaldo_Hi_15_02"); //(unterbricht) Bekomme ich jetzt den Bauplan?
AI_Output(self, hero, "Info_Mod_Everaldo_Hi_04_03"); //Ähh, ja, natürlich, hier. (zu sich selbst) Hoffentlich bekommt Saturas das nie heraus.
B_GiveInvItems (self, hero, ItWr_Bauplan_Erzschwert_Wasser, 1);
B_LogEntry (TOPIC_MOD_SLD_ENGARDO, "Ich habe den Schmiedebauplan von Everaldo.");
};
INSTANCE Info_Mod_Everaldo_Pickpocket (C_INFO)
{
npc = Mod_1530_WKR_Everaldo_NW;
nr = 1;
condition = Info_Mod_Everaldo_Pickpocket_Condition;
information = Info_Mod_Everaldo_Pickpocket_Info;
permanent = 1;
important = 0;
description = Pickpocket_90;
};
FUNC INT Info_Mod_Everaldo_Pickpocket_Condition()
{
C_Beklauen (78, ItMi_Gold, 30);
};
FUNC VOID Info_Mod_Everaldo_Pickpocket_Info()
{
Info_ClearChoices (Info_Mod_Everaldo_Pickpocket);
Info_AddChoice (Info_Mod_Everaldo_Pickpocket, DIALOG_BACK, Info_Mod_Everaldo_Pickpocket_BACK);
Info_AddChoice (Info_Mod_Everaldo_Pickpocket, DIALOG_PICKPOCKET, Info_Mod_Everaldo_Pickpocket_DoIt);
};
FUNC VOID Info_Mod_Everaldo_Pickpocket_BACK()
{
Info_ClearChoices (Info_Mod_Everaldo_Pickpocket);
};
FUNC VOID Info_Mod_Everaldo_Pickpocket_DoIt()
{
if (B_Beklauen() == TRUE)
{
Info_ClearChoices (Info_Mod_Everaldo_Pickpocket);
}
else
{
Info_ClearChoices (Info_Mod_Everaldo_Pickpocket);
Info_AddChoice (Info_Mod_Everaldo_Pickpocket, DIALOG_PP_BESCHIMPFEN, Info_Mod_Everaldo_Pickpocket_Beschimpfen);
Info_AddChoice (Info_Mod_Everaldo_Pickpocket, DIALOG_PP_BESTECHUNG, Info_Mod_Everaldo_Pickpocket_Bestechung);
Info_AddChoice (Info_Mod_Everaldo_Pickpocket, DIALOG_PP_HERAUSREDEN, Info_Mod_Everaldo_Pickpocket_Herausreden);
};
};
FUNC VOID Info_Mod_Everaldo_Pickpocket_Beschimpfen()
{
B_Say (hero, self, "$PICKPOCKET_BESCHIMPFEN");
B_Say (self, hero, "$DIRTYTHIEF");
Info_ClearChoices (Info_Mod_Everaldo_Pickpocket);
AI_StopProcessInfos (self);
B_Attack (self, hero, AR_Theft, 1);
};
FUNC VOID Info_Mod_Everaldo_Pickpocket_Bestechung()
{
B_Say (hero, self, "$PICKPOCKET_BESTECHUNG");
var int rnd; rnd = r_max(99);
if (rnd < 25)
|| ((rnd >= 25) && (rnd < 50) && (Npc_HasItems(hero, ItMi_Gold) < 50))
|| ((rnd >= 50) && (rnd < 75) && (Npc_HasItems(hero, ItMi_Gold) < 100))
|| ((rnd >= 75) && (rnd < 100) && (Npc_HasItems(hero, ItMi_Gold) < 200))
{
B_Say (self, hero, "$DIRTYTHIEF");
Info_ClearChoices (Info_Mod_Everaldo_Pickpocket);
AI_StopProcessInfos (self);
B_Attack (self, hero, AR_Theft, 1);
}
else
{
if (rnd >= 75)
{
B_GiveInvItems (hero, self, ItMi_Gold, 200);
}
else if (rnd >= 50)
{
B_GiveInvItems (hero, self, ItMi_Gold, 100);
}
else if (rnd >= 25)
{
B_GiveInvItems (hero, self, ItMi_Gold, 50);
};
B_Say (self, hero, "$PICKPOCKET_BESTECHUNG_01");
Info_ClearChoices (Info_Mod_Everaldo_Pickpocket);
AI_StopProcessInfos (self);
};
};
FUNC VOID Info_Mod_Everaldo_Pickpocket_Herausreden()
{
B_Say (hero, self, "$PICKPOCKET_HERAUSREDEN");
if (r_max(99) < Mod_Verhandlungsgeschick)
{
B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_01");
Info_ClearChoices (Info_Mod_Everaldo_Pickpocket);
}
else
{
B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_02");
};
};
INSTANCE Info_Mod_Everaldo_EXIT (C_INFO)
{
npc = Mod_1530_WKR_Everaldo_NW;
nr = 1;
condition = Info_Mod_Everaldo_EXIT_Condition;
information = Info_Mod_Everaldo_EXIT_Info;
permanent = 1;
important = 0;
description = DIALOG_ENDE;
};
FUNC INT Info_Mod_Everaldo_EXIT_Condition()
{
return 1;
};
FUNC VOID Info_Mod_Everaldo_EXIT_Info()
{
AI_StopProcessInfos (self);
}; | D |
module plugin;
import std.algorithm : any;
import std.ascii : isUpper;
import std.conv;
import std.process;
import std.string;
import std.file;
import std.regex;
import std.json;
import std.path;
import std.stdio;
import std.datetime;
import std.range;
import colorize;
import utils;
import rsrc;
import dplug.client.daw;
enum Compiler
{
ldc,
gdc,
dmd,
}
enum Arch
{
x86,
x86_64,
}
Arch[] allArchitecturesForThisPlatform()
{
version(linux)
Arch[] archs = [Arch.x86_64]; // we have no support for 32-bit plug-ins on Linux
else version(OSX)
Arch[] archs = [Arch.x86_64]; // we have no support for 32-bit plug-ins on macOS
else
Arch[] archs = [Arch.x86, Arch.x86_64];
return archs;
}
static if (__VERSION__ >= 2087)
{
alias jsonTrue = JSONType.true_;
alias jsonFalse = JSONType.false_;
}
else
{
alias jsonTrue = JSON_TYPE.TRUE;
alias jsonFalse = JSON_TYPE.FALSE;
}
string toString(Compiler compiler)
{
final switch(compiler) with (Compiler)
{
case dmd: return "dmd";
case gdc: return "gdc";
case ldc: return "ldc";
}
}
string toStringUpper(Compiler compiler)
{
final switch(compiler) with (Compiler)
{
case dmd: return "DMD";
case gdc: return "GDC";
case ldc: return "LDC";
}
}
string toStringArchs(Arch[] archs)
{
string r = "";
foreach(size_t i, arch; archs)
{
final switch(arch) with (Arch)
{
case x86:
if (i) r ~= " and ";
r ~= "32-bit";
break;
case x86_64:
if (i) r ~= " and ";
r ~= "64-bit";
break;
}
}
return r;
}
// from a valid configuration name, extracts the rest of the name.
// Typically configuration would be like: "VST-FULL" => "FULL" or "AAX-FREE" => "FREE".
// Used for installer file name.
string stripConfig(string config) pure nothrow @nogc
{
if (config.length >= 5 && config[0..5] == "VST3-")
return config[5..$];
if (config.length >= 4 && config[0..4] == "VST-")
return config[4..$];
if (config.length >= 3 && config[0..3] == "AU-")
return config[3..$];
if (config.length >= 4 && config[0..4] == "AAX-")
return config[4..$];
if (config.length >= 4 && config[0..4] == "LV2-")
return config[4..$];
return null;
}
bool configIsVST3(string config) pure nothrow @nogc
{
return config.length >= 4 && config[0..4] == "VST3";
}
bool configIsVST(string config) pure nothrow @nogc
{
if (configIsVST3(config))
return false;
return config.length >= 3 && config[0..3] == "VST";
}
bool configIsAU(string config) pure nothrow @nogc
{
return config.length >= 2 && config[0..2] == "AU";
}
bool configIsAAX(string config) pure nothrow @nogc
{
return config.length >= 3 && config[0..3] == "AAX";
}
bool configIsLV2(string config) pure nothrow @nogc
{
return config.length >= 3 && config[0..3] == "LV2";
}
struct Plugin
{
string name; // name, extracted from dub.json(eg: 'distort')
string CFBundleIdentifierPrefix;
string licensePath; // can be null
string iconPathWindows; // can be null or a path to a .ico
string iconPathOSX; // can be null or a path to a (large) .png
bool hasGUI;
string dubTargetPath; // extracted from dub.json, used to build the dub output file path
string pluginName; // Prettier name, extracted from plugin.json (eg: 'Distorter')
string pluginUniqueID;
string pluginHomepage;
string vendorName;
string vendorUniqueID;
string vendorSupportEmail;
// Available configurations, taken from dub.json
string[] configurations;
// Public version of the plugin
// Each release of a plugin should upgrade the version somehow
int publicVersionMajor;
int publicVersionMinor;
int publicVersionPatch;
// The certificate identity to be used for Mac installer or application signing
string developerIdentity = null;
// relative path to a .png for the Mac installer
string installerPNGPath;
// relative path to .bmp image for Windows installer header
string windowsInstallerHeaderBmp;
/// Windows-only, points to a .p12/.pfx certificate...
/// duplicate key in pace.json.
string keyFileWindows;
// ...and the password of its private key
// duplicate key in pace.json. Also support "!PROMPT" as special value.
string keyPasswordWindows;
// <Used for Apple notarization>
string vendorAppleID;
string appSpecificPassword_altool;
string appSpecificPassword_stapler;
// </Used for Apple notarization>
bool receivesMIDI;
bool isSynth;
PluginCategory category;
PACEConfig paceConfig;
bool hasPACEConfig() pure const nothrow
{
return paceConfig !is null;
}
string prettyName() pure const nothrow
{
return vendorName ~ " " ~ pluginName;
}
string publicVersionString() pure const nothrow
{
return to!string(publicVersionMajor) ~ "." ~ to!string(publicVersionMinor) ~ "." ~ to!string(publicVersionPatch);
}
// AU version integer
int publicVersionInt() pure const nothrow
{
return (publicVersionMajor << 16) | (publicVersionMinor << 8) | publicVersionPatch;
}
string makePkgInfo(string config) pure const nothrow
{
if (configIsAAX(config))
return "TDMwPTul"; // this should actually have no effect on whether or not the AAX plug-ins load
else
return "BNDL" ~ vendorUniqueID;
}
string copyright() const // Copyright information, copied in the OSX bundle
{
SysTime time = Clock.currTime(UTC());
return format("Copyright %s, %s", vendorName, time.year);
}
// Allows anything permitted in a filename
static string sanitizeFilenameString(string s) pure
{
string r = "";
foreach(dchar ch; s)
{
if (ch >= 'A' && ch <= 'Z')
r ~= ch;
else if (ch >= 'a' && ch <= 'z')
r ~= ch;
else if (ch >= '0' && ch <= '9')
r ~= ch;
else if (ch == '.')
r ~= ch;
else
r ~= "-";
}
return r;
}
// Make a proper bundle identifier from a string
static string sanitizeBundleString(string s) pure
{
string r = "";
foreach(dchar ch; s)
{
if (ch >= 'A' && ch <= 'Z')
r ~= ch;
else if (ch >= 'a' && ch <= 'z')
r ~= ch;
else if (ch == '.')
r ~= ch;
else
r ~= "-";
}
return r;
}
// The file name DUB outputs.
// The real filename is found lazily, since DUB may change its method of naming over time,
// but we don't want to rely on `dub describe` which has untractable problem with:
// `dub describe` being slow on bad network conditions, and `dub describe --skip-registry=all` possibly not terminating
// Uses an heuristic for DUB naming, which might get wrong eventually.
string dubOutputFileName()
{
if (dubOutputFileNameCached !is null)
return dubOutputFileNameCached;
// We assume a build has been made, now find the name of the output file
string[] getPotentialPathes()
{
string[] possiblePathes;
version(Windows)
possiblePathes ~= [name ~ ".dll"];
else version(OSX)
{
// support multiple DUB versions, this name changed to .dylib in Aug 2018
// newer names goes first to avoid clashes
possiblePathes ~= ["lib" ~ name ~ ".dylib", "lib" ~ name ~ ".so"];
}
else version(linux)
possiblePathes ~= ["lib" ~ name ~ ".so"];
else
static assert(false, "unsupported OS");
if (dubTargetPath !is null)
{
foreach(ref path; possiblePathes)
path = std.path.buildPath(dubTargetPath, path);
}
return possiblePathes;
}
auto possiblePaths = getPotentialPathes();
// Find the possible path for which the file exists
foreach(path; possiblePaths)
{
if (std.file.exists(path))
{
dubOutputFileNameCached = path;
return path;
}
}
throw new Exception("Didn't found a plug-in file in %s . See dplug-build source to check the heuristic for DUB naming in `dubOutputFileName()`.");
}
string dubOutputFileNameCached = null;
// Gets a config to extract the name of the configuration beyond the prefix
string getNotarizationBundleIdentifier(string config) pure const
{
string verName = stripConfig(config);
if (verName)
verName = "-" ~ verName;
else
verName = "";
return format("%s.%s%s-%s.pkg",
CFBundleIdentifierPrefix,
sanitizeBundleString(pluginName),
verName,
publicVersionString);
}
string getVST3BundleIdentifier() pure const
{
return CFBundleIdentifierPrefix ~ ".vst3." ~ sanitizeBundleString(pluginName);
}
string getVSTBundleIdentifier() pure const
{
return CFBundleIdentifierPrefix ~ ".vst." ~ sanitizeBundleString(pluginName);
}
string getAUBundleIdentifier() pure const
{
return CFBundleIdentifierPrefix ~ ".audiounit." ~ sanitizeBundleString(pluginName);
}
string getAAXBundleIdentifier() pure const
{
return CFBundleIdentifierPrefix ~ ".aax." ~ sanitizeBundleString(pluginName);
}
string getLV2BundleIdentifier() pure const
{
return CFBundleIdentifierPrefix ~ ".lv2." ~ sanitizeBundleString(pluginName);
}
version(OSX)
{
// filename of the final installer
// give a config to extract a configuration name in case of multiple configurations
string finalPkgFilename(string config) pure const
{
string verName = stripConfig(config);
if (verName)
verName = "-" ~ verName;
else
verName = "";
return format("%s%s-%s.pkg", sanitizeFilenameString(pluginName),
verName,
publicVersionString);
}
string pkgFilenameVST3() pure const
{
return sanitizeFilenameString(pluginName) ~ "-vst3.pkg";
}
string pkgFilenameVST() pure const
{
return sanitizeFilenameString(pluginName) ~ "-vst.pkg";
}
string pkgFilenameAU() pure const
{
return sanitizeFilenameString(pluginName) ~ "-au.pkg";
}
string pkgFilenameAAX() pure const
{
return sanitizeFilenameString(pluginName) ~ "-aax.pkg";
}
string pkgFilenameLV2() pure const
{
return sanitizeFilenameString(pluginName) ~ "-lv2.pkg";
}
string pkgBundleVST3() pure const
{
return CFBundleIdentifierPrefix ~ "." ~ sanitizeBundleString(pkgFilenameVST3());
}
string pkgBundleVST() pure const
{
return CFBundleIdentifierPrefix ~ "." ~ sanitizeBundleString(pkgFilenameVST());
}
string pkgBundleAU() pure const
{
return CFBundleIdentifierPrefix ~ "." ~ sanitizeBundleString(pkgFilenameAU());
}
string pkgBundleAAX() pure const
{
return CFBundleIdentifierPrefix ~ "." ~ sanitizeBundleString(pkgFilenameAAX());
}
string pkgBundleLV2() pure const
{
return CFBundleIdentifierPrefix ~ "." ~ sanitizeBundleString(pkgFilenameLV2());
}
}
version(Windows)
{
string windowsInstallerName(string config) pure const
{
string verName = stripConfig(config);
if(verName)
verName = "-" ~ verName;
else
verName = "";
return format("%s%s-%s.exe", sanitizeFilenameString(pluginName),
verName,
publicVersionString);
}
}
void promptWindowsInstallerPasswordLazily()
{
version(Windows)
{
if (keyPasswordWindows == "!PROMPT")
{
cwriteln();
cwritefln(`Please enter your certificate Windows password (seen "!PROMPT"):`.cyan);
keyPasswordWindows = chomp(readln());
cwriteln();
}
}
}
string getLV2PrettyName()
{
// Note: Carla doesn't support IRI with escaped character, so we have to remove
// spaces in LV2 else the binaries aren't found.
// This function is only used for the final binary name.
// See_also: the LV2 client.
return prettyName.replace(" ", "");
}
string getFirstConfiguration()
{
if (configurations.length == 0)
throw new Exception("Missing configurations, can't build");
return configurations[0];
}
bool configExists(string config)
{
foreach(c; configurations)
if (config == c)
return true;
return false;
}
string[] getMatchingConfigurations(string pattern)
{
string[] results;
auto reg = regex(pattern);
foreach(c; configurations)
{
if (c == pattern)
{
results ~= c;
}
}
if (results.length == 0)
{
string availConfig = format("%s", configurations);
throw new Exception(format("No configuration matches: '%s'. Available: %s", pattern, availConfig.yellow));
}
return results;
}
void vst3RelatedChecks()
{
if (vendorSupportEmail is null)
warning(`Missing "vendorSupportEmail" in plugin.json. Email address will be wrong in VST3 format.`);
if (pluginHomepage is null)
warning(`Missing "pluginHomepage" in plugin.json. Plugin homepage will be wrong in VST3 format.`);
}
string getAppleID()
{
if (vendorAppleID is null)
throw new Exception(`Missing "vendorAppleID" in plugin.json. Notarization need this key.`);
return vendorAppleID;
}
}
class DplugBuildBuiltCorrectlyException : Exception
{
public
{
@safe pure nothrow this(string message,
string file =__FILE__,
size_t line = __LINE__,
Throwable next = null)
{
super(message, file, line, next);
}
}
}
Plugin readPluginDescription()
{
if (!exists("dub.json"))
throw new Exception("Needs a dub.json file. Please launch 'dplug-build' in a plug-in project directory.");
Plugin result;
enum useDubDescribe = true;
// Open an eventual plugin.json directly to find keys that DUB doesn't bypass
JSONValue dubFile = parseJSON(cast(string)(std.file.read("dub.json")));
try
{
result.name = dubFile["name"].str;
}
catch(Exception e)
{
throw new Exception("Missing \"name\" in dub.json (eg: \"myplugin\")");
}
// We simply launched `dub` to build dplug-build. So we're not building a plugin.
// avoid the embarassment of having a red message that confuses new users.
// You've read correctly: you can't name your plugin "dplug-build" as a consequence.
if (result.name == "dplug-build")
{
throw new DplugBuildBuiltCorrectlyException("");
}
try
{
JSONValue[] config = dubFile["configurations"].array();
foreach(c; config)
{
string cname = c["name"].str;
if (!configIsAAX(cname)
&&!configIsVST(cname)
&&!configIsVST3(cname)
&&!configIsAU(cname)
&&!configIsLV2(cname))
throw new Exception(format("Configuration name should start with \"VST\", \"VST3\", \"AU\", \"AAX\", or \"LV2\". '%s' is not a valid configuration name.", cname));
result.configurations ~= cname;
}
// Check configuration names, they must be valid
}
catch(Exception e)
{
warning("Couldln't parse configurations names in dub.json.");
result.configurations = [];
}
// Support for DUB targetPath
try
{
JSONValue path = dubFile["targetPath"];
result.dubTargetPath = path.str;
}
catch(Exception e)
{
// silent, targetPath not considered
result.dubTargetPath = null;
}
if (!exists("plugin.json"))
throw new Exception("Needs a plugin.json file for proper bundling. Please create one next to dub.json.");
// Open an eventual plugin.json directly to find keys that DUB doesn't bypass
JSONValue rawPluginFile = parseJSON(cast(string)(std.file.read("plugin.json")));
// Optional keys
// prettyName is the fancy Manufacturer + Product name that will be displayed as much as possible in:
// - bundle name
// - renamed executable file names
try
{
result.pluginName = rawPluginFile["pluginName"].str;
}
catch(Exception e)
{
info("Missing \"pluginName\" in plugin.json (eg: \"My Compressor\")\n => Using dub.json \"name\" key instead.");
result.pluginName = result.name;
}
// TODO: not all characters are allowed in pluginName.
// All characters in pluginName should be able to be in a filename.
// For Orion compatibility is should not have '-' in the file name
// Note: dplug-build parses it but doesn't need hasGUI
try
{
result.hasGUI = toBool(rawPluginFile["hasGUI"]);
}
catch(Exception e)
{
warning("Missing \"hasGUI\" in plugin.json (must be true or false)\n => Using false instead.");
result.hasGUI = false;
}
try
{
string userManualPath = rawPluginFile["userManualPath"].str;
warning("\"userManualPath\" is deprecated");
}
catch(Exception e)
{
}
try
{
result.licensePath = rawPluginFile["licensePath"].str;
}
catch(Exception e)
{
info("Missing \"licensePath\" in plugin.json (eg: \"license.txt\")");
}
try
{
result.developerIdentity = rawPluginFile["developerIdentity-osx"].str;
}
catch(Exception e)
{
result.developerIdentity = null;
}
try
{
result.installerPNGPath = rawPluginFile["installerPNGPath"].str;
}
catch(Exception e)
{
result.installerPNGPath = null;
}
try
{
result.windowsInstallerHeaderBmp = rawPluginFile["windowsInstallerHeaderBmp"].str;
}
catch(Exception e)
{
result.windowsInstallerHeaderBmp = null;
}
try
{
result.keyFileWindows = rawPluginFile["keyFile-windows"].str;
}
catch(Exception e)
{
result.keyFileWindows = null;
}
try
{
result.keyPasswordWindows = rawPluginFile["keyPassword-windows"].str;
}
catch(Exception e)
{
result.keyPasswordWindows = null;
}
try
{
result.iconPathWindows = rawPluginFile["iconPath-windows"].str;
}
catch(Exception e)
{
info("Missing \"iconPath-windows\" in plugin.json (eg: \"gfx/myIcon.ico\")");
}
try
{
result.iconPathOSX = rawPluginFile["iconPath-osx"].str;
}
catch(Exception e)
{
info("Missing \"iconPath-osx\" in plugin.json (eg: \"gfx/myIcon.png\")");
}
// Mandatory keys, but with workarounds
try
{
result.CFBundleIdentifierPrefix = rawPluginFile["CFBundleIdentifierPrefix"].str;
}
catch(Exception e)
{
warning("Missing \"CFBundleIdentifierPrefix\" in plugin.json (eg: \"com.myaudiocompany\")\n => Using \"com.totoaudio\" instead.");
result.CFBundleIdentifierPrefix = "com.totoaudio";
}
try
{
result.vendorName = rawPluginFile["vendorName"].str;
}
catch(Exception e)
{
warning("Missing \"vendorName\" in plugin.json (eg: \"Example Corp\")\n => Using \"Toto Audio\" instead.");
result.vendorName = "Toto Audio";
}
try
{
result.vendorUniqueID = rawPluginFile["vendorUniqueID"].str;
}
catch(Exception e)
{
warning("Missing \"vendorUniqueID\" in plugin.json (eg: \"aucd\")\n => Using \"Toto\" instead.");
result.vendorUniqueID = "Toto";
}
if (result.vendorUniqueID.length != 4)
throw new Exception("\"vendorUniqueID\" should be a string of 4 characters (eg: \"aucd\")");
if (!any!isUpper(result.vendorUniqueID))
throw new Exception("\"vendorUniqueID\" should contain at least one upper case character (eg: \"Aucd\")");
try
{
result.pluginUniqueID = rawPluginFile["pluginUniqueID"].str;
}
catch(Exception e)
{
warning("Missing \"pluginUniqueID\" provided in plugin.json (eg: \"val8\")\n => Using \"tot0\" instead, change it for a proper release.");
result.pluginUniqueID = "tot0";
}
if (result.pluginUniqueID.length != 4)
throw new Exception("\"pluginUniqueID\" should be a string of 4 characters (eg: \"val8\")");
// TODO: check for special characters in pluginUniqueID and vendorUniqueID
// I'm not sure if Audio Unit would take anything not printable, would auval support it?
// In developement, publicVersion should stay at 0.x.y to avoid various AU caches
// (this is only the theory...)
string publicV;
try
{
publicV = rawPluginFile["publicVersion"].str;
}
catch(Exception e)
{
warning("no \"publicVersion\" provided in plugin.json (eg: \"1.0.1\")\n => Using \"0.0.0\" instead.");
publicV = "0.0.0";
}
if (auto captures = matchFirst(publicV, regex(`(\d+)\.(\d+)\.(\d+)`)))
{
result.publicVersionMajor = to!int(captures[1]);
result.publicVersionMinor = to!int(captures[2]);
result.publicVersionPatch = to!int(captures[3]);
}
else
{
throw new Exception("\"publicVersion\" should follow the form x.y.z with 3 integers (eg: \"1.0.0\")");
}
bool toBoolean(JSONValue value)
{
if (value.type == jsonTrue)
return true;
if (value.type == jsonFalse)
return false;
throw new Exception("Expected a boolean");
}
try
{
result.isSynth = toBoolean(rawPluginFile["isSynth"]);
}
catch(Exception e)
{
warning("no \"isSynth\" provided in plugin.json (eg: \"true\")\n => Using \"false\" instead.");
result.isSynth = false;
}
try
{
result.receivesMIDI = toBoolean(rawPluginFile["receivesMIDI"]);
}
catch(Exception e)
{
warning("no \"receivesMIDI\" provided in plugin.json (eg: \"true\")\n => Using \"false\" instead.");
result.receivesMIDI = false;
}
try
{
result.category = parsePluginCategory(rawPluginFile["category"].str);
if (result.category == PluginCategory.invalid)
throw new Exception("");
}
catch(Exception e)
{
error("Missing or invalid \"category\" provided in plugin.json (eg: \"effectDelay\")");
throw new Exception("=> Check dplug/client/daw.d to find a suitable \"category\" for plugin.json.");
}
try
{
result.vendorAppleID = rawPluginFile["vendorAppleID"].str;
}
catch(Exception e){}
try
{
result.appSpecificPassword_altool = rawPluginFile["appSpecificPassword-altool"].str;
}
catch(Exception e){}
try
{
result.appSpecificPassword_stapler = rawPluginFile["appSpecificPassword-stapler"].str;
}
catch(Exception e){}
result.paceConfig = readPACEConfig();
try
{
result.pluginHomepage = rawPluginFile["pluginHomepage"].str;
}
catch(Exception e)
{
// Only warn on VST3 build if pluginHomepage is missing
result.pluginHomepage = null;
}
try
{
result.vendorSupportEmail = rawPluginFile["vendorSupportEmail"].str;
}
catch(Exception e)
{
// Only warn on VST3 build if vendorSupportEmail is missing
result.vendorSupportEmail = null;
}
return result;
}
bool toBool(JSONValue v)
{
if (v.type == jsonFalse)
return false;
else if (v.type == jsonTrue)
return true;
else
throw new Exception("expected boolean value");
}
string makePListFile(Plugin plugin, string config, bool hasIcon, bool isAudioComponentAPIImplemented)
{
string productVersion = plugin.publicVersionString;
string content = "";
content ~= `<?xml version="1.0" encoding="UTF-8"?>` ~ "\n";
content ~= `<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">` ~ "\n";
content ~= `<plist version="1.0">` ~ "\n";
content ~= ` <dict>` ~ "\n";
void addKeyString(string key, string value)
{
content ~= format(" <key>%s</key>\n <string>%s</string>\n", key, value);
}
addKeyString("CFBundleDevelopmentRegion", "English");
addKeyString("CFBundleGetInfoString", productVersion ~ ", " ~ plugin.copyright);
string CFBundleIdentifier;
if (configIsVST(config))
CFBundleIdentifier = plugin.getVSTBundleIdentifier();
else if (configIsVST3(config))
CFBundleIdentifier = plugin.getVST3BundleIdentifier();
else if (configIsAU(config))
CFBundleIdentifier = plugin.getAUBundleIdentifier();
else if (configIsAAX(config))
CFBundleIdentifier = plugin.getAAXBundleIdentifier();
else if (configIsLV2(config))
CFBundleIdentifier = plugin.getLV2BundleIdentifier();
else
throw new Exception("Configuration name given by --config must start with \"VST\", \"VST3\", \"AU\", \"AAX\", or \"LV2\"");
// Doesn't seem useful at all
//addKeyString("CFBundleName", plugin.prettyName);
//addKeyString("CFBundleExecutable", plugin.prettyName);
addKeyString("CFBundleIdentifier", CFBundleIdentifier);
addKeyString("CFBundleVersion", productVersion);
addKeyString("CFBundleShortVersionString", productVersion);
// PACE signing need this on Mac to find the executable to sign
addKeyString("CFBundleExecutable", plugin.prettyName);
if (isAudioComponentAPIImplemented && configIsAU(config))
{
content ~= " <key>AudioComponents</key>\n";
content ~= " <array>\n";
content ~= " <dict>\n";
content ~= " <key>type</key>\n";
if (plugin.isSynth)
content ~= " <string>aumu</string>\n";
else if (plugin.receivesMIDI)
content ~= " <string>aumf</string>\n";
else
content ~= " <string>aufx</string>\n";
// We use VST unique plugin ID as subtype in Audio Unit
// So apparently no chance to give a categoy here.
char[4] uid = plugin.pluginUniqueID;
string suid = escapeXMLString(uid.idup);//format("%c%c%c%c", uid[0], uid[1], uid[2], uid[3]));
content ~= " <key>subtype</key>\n";
content ~= " <string>" ~ suid ~ "</string>\n";
char[4] vid = plugin.vendorUniqueID;
string svid = escapeXMLString(vid.idup);
content ~= " <key>manufacturer</key>\n";
content ~= " <string>" ~ svid ~ "</string>\n";
content ~= " <key>name</key>\n";
content ~= format(" <string>%s</string>\n", escapeXMLString(plugin.pluginName));
content ~= " <key>version</key>\n";
content ~= format(" <integer>%s</integer>\n", plugin.publicVersionInt()); // TODO correct?
content ~= " <key>factoryFunction</key>\n";
content ~= " <string>dplugAUComponentFactoryFunction</string>\n";
content ~= " <key>sandboxSafe</key><true/>\n";
content ~= " </dict>\n";
content ~= " </array>\n";
}
addKeyString("CFBundleInfoDictionaryVersion", "6.0");
addKeyString("CFBundlePackageType", "BNDL");
addKeyString("CFBundleSignature", plugin.pluginUniqueID); // doesn't matter http://stackoverflow.com/questions/1875912/naming-convention-for-cfbundlesignature-and-cfbundleidentifier
// Set to 10.9
addKeyString("LSMinimumSystemVersion", "10.9.0");
// content ~= " <key>VSTWindowCompositing</key><true/>\n";
if (hasIcon)
addKeyString("CFBundleIconFile", "icon");
content ~= ` </dict>` ~ "\n";
content ~= `</plist>` ~ "\n";
return content;
}
// return path of newly made icon
string makeMacIcon(string pluginName, string pngPath)
{
string temp = tempDir();
string iconSetDir = buildPath(tempDir(), pluginName ~ ".iconset");
string outputIcon = buildPath(tempDir(), pluginName ~ ".icns");
if(!outputIcon.exists)
{
//string cmd = format("lipo -create %s %s -output %s", path32, path64, exePath);
try
{
safeCommand(format("mkdir %s", iconSetDir));
}
catch(Exception e)
{
cwritefln(" => %s".yellow, e.msg);
}
safeCommand(format("sips -z 16 16 %s --out %s/icon_16x16.png", pngPath, iconSetDir));
safeCommand(format("sips -z 32 32 %s --out %s/icon_16x16@2x.png", pngPath, iconSetDir));
safeCommand(format("sips -z 32 32 %s --out %s/icon_32x32.png", pngPath, iconSetDir));
safeCommand(format("sips -z 64 64 %s --out %s/icon_32x32@2x.png", pngPath, iconSetDir));
safeCommand(format("sips -z 128 128 %s --out %s/icon_128x128.png", pngPath, iconSetDir));
safeCommand(format("sips -z 256 256 %s --out %s/icon_128x128@2x.png", pngPath, iconSetDir));
safeCommand(format("iconutil --convert icns --output %s %s", outputIcon, iconSetDir));
}
return outputIcon;
}
string makeRSRC_internal(Plugin plugin, Arch arch, bool verbose)
{
assert(arch == Arch.x86_64);
cwritefln("*** Generating a .rsrc file for the bundle...".white);
string rsrcPath = buildPath(tempDir(), "plugin.rsrc");
RSRCWriter rsrc;
rsrc.addType("STR ");
rsrc.addType("dlle");
rsrc.addType("thng");
rsrc.addResource(0, 1000, true, null, makeRSRC_pstring(plugin.vendorName ~ ": " ~ plugin.pluginName));
rsrc.addResource(0, 1001, true, null, makeRSRC_pstring(plugin.pluginName ~ " AU"));
rsrc.addResource(1, 1000, false, null, makeRSRC_cstring("dplugAUEntryPoint"));
ubyte[] thng;
{
if (plugin.isSynth)
thng ~= makeRSRC_fourCC("aumu");
else if (plugin.receivesMIDI)
thng ~= makeRSRC_fourCC("aumf");
else
thng ~= makeRSRC_fourCC("aufx");
thng ~= makeRSRC_fourCC_string(plugin.pluginUniqueID);
thng ~= makeRSRC_fourCC_string(plugin.vendorUniqueID);
thng.writeBE_uint(0);
thng.writeBE_uint(0);
thng.writeBE_uint(0);
thng.writeBE_ushort(0);
thng ~= makeRSRC_fourCC("STR ");
thng.writeBE_ushort(1000);
thng ~= makeRSRC_fourCC("STR ");
thng.writeBE_ushort(1001);
thng.writeBE_uint(0); // icon
thng.writeBE_ushort(0);
thng.writeBE_uint(plugin.publicVersionInt());
enum componentDoAutoVersion = 0x01;
enum componentHasMultiplePlatforms = 0x08;
thng.writeBE_uint(componentDoAutoVersion | componentHasMultiplePlatforms);
thng.writeBE_ushort(0);
thng.writeBE_uint(1); // 1 platform
thng.writeBE_uint(0x10000000);
thng ~= makeRSRC_fourCC("dlle");
thng.writeBE_ushort(1000);
thng.writeBE_ushort(8 /* platformX86_64NativeEntryPoint */);
}
rsrc.addResource(2, 1000, false, plugin.vendorName ~ ": " ~ plugin.pluginName, thng);
std.file.write(rsrcPath, rsrc.write());
cwritefln(" => Written %s bytes.".green, getSize(rsrcPath));
cwriteln();
return rsrcPath;
}
string makeRSRC_with_Rez(Plugin plugin, Arch arch, bool verbose)
{
string pluginName = plugin.pluginName;
cwritefln("*** Generating a .rsrc file for the bundle, using Rez...".white);
string temp = tempDir();
string rPath = buildPath(temp, "plugin.r");
File rFile = File(rPath, "w");
static immutable string rFileBase = cast(string) import("plugin-base.r");
rFile.writefln(`#define PLUG_MFR "%s"`, plugin.vendorName); // no C escaping there, FUTURE
rFile.writefln("#define PLUG_MFR_ID '%s'", plugin.vendorUniqueID);
rFile.writefln(`#define PLUG_NAME "%s"`, pluginName); // no C escaping there, FUTURE
rFile.writefln("#define PLUG_UNIQUE_ID '%s'", plugin.pluginUniqueID);
rFile.writefln("#define PLUG_VER %d", plugin.publicVersionInt());
rFile.writefln("#define PLUG_IS_INST %s", (plugin.isSynth ? "1" : "0"));
rFile.writefln("#define PLUG_DOES_MIDI %s", (plugin.receivesMIDI ? "1" : "0"));
rFile.writeln(rFileBase);
rFile.close();
string rsrcPath = "reference.rsrc";
string archFlags;
final switch(arch) with (Arch)
{
case x86: archFlags = "-arch i386"; break;
case x86_64: archFlags = "-arch x86_64"; break;
}
string verboseFlag = verbose ? " -p" : "";
safeCommand(format("rez %s%s -o %s -useDF %s", archFlags, verboseFlag, rsrcPath, rPath));
if (!exists(rsrcPath))
throw new Exception(format("%s wasn't created", rsrcPath));
if (getSize(rsrcPath) == 0)
throw new Exception(format("%s is an empty file", rsrcPath));
cwritefln(" => Written %s bytes.".green, getSize(rsrcPath));
cwriteln();
return rsrcPath;
}
// <PACE CONFIG>
class PACEConfig
{
// The iLok account of the AAX developer
string iLokAccount;
// The iLok password of the AAX developer
string iLokPassword;
// WIndows-only, points to a .p12/.pfx certificate...
string keyFileWindows;
// ...and the password of its private key
string keyPasswordWindows;
// For Mac, only a developer identiyy string is needed
string developerIdentityOSX;
// The wrap configuration GUID (go to PACE Central to create such wrap configurations)
string wrapConfigGUID;
// Prompt needed passwords
void promptPasswordsLazily()
{
if (iLokPassword == "!PROMPT")
{
cwriteln();
cwritefln(`Please enter your iLok password (seen "!PROMPT"):`.cyan);
iLokPassword = chomp(readln());
cwriteln();
}
version(Windows)
{
if (keyPasswordWindows == "!PROMPT")
{
cwriteln();
cwritefln(`Please enter your certificate Windows password (seen "!PROMPT"):`.cyan);
keyPasswordWindows = chomp(readln());
cwriteln();
}
}
}
}
PACEConfig readPACEConfig()
{
// It's OK not to have a pace.json, but you have, it must be correct.
if (!exists("pace.json"))
return null;
auto config = new PACEConfig;
JSONValue dubFile = parseJSON(cast(string)(std.file.read("pace.json")));
void get(string fieldName, string jsonKey, bool promptOption)()
{
try
{
mixin("config." ~ fieldName ~ ` = dubFile["` ~ jsonKey ~ `"].str;`);
}
catch(Exception e)
{
string msg;
msg = "Missing \"" ~ jsonKey ~ "\" in pace.json";
if (promptOption)
{
msg ~= ` (note: recommended special value "!PROMPT")`;
}
throw new Exception(msg);
}
}
get!("iLokAccount", "iLokAccount", false);
get!("iLokPassword", "iLokPassword", true);
get!("keyFileWindows", "keyFile-windows", false);
get!("keyPasswordWindows", "keyPassword-windows", true);
get!("developerIdentityOSX", "developerIdentity-osx", false);
get!("wrapConfigGUID", "wrapConfigGUID", false);
return config;
}
// </PACE CONFIG>
| D |
module chipmunk.chipmunk;
import core.stdc.stdlib: exit;
import core.stdc.stdio: printf;
import chipmunk.cpBB;
import chipmunk.chipmunk_types;
import chipmunk.chipmunk_structs;
import chipmunk.chipmunk_private;
extern (C):
extern __gshared const(char)* cpVersionString;
void cpAssertHard(T)(T cond, string msg) {
if(!cond){
printf(msg.ptr);
exit(1);
}
}
void cpAssertSoft(T)(T cond, string msg){
if(!cond){
printf(msg.ptr);
exit(1);
}
}
void cpMessage (const(char)* condition, const(char)* file, int line, int isError, int isHardError, const(char)* message, ...);
cpFloat cpMomentForCircle (cpFloat m, cpFloat r1, cpFloat r2, cpVect offset);
cpFloat cpAreaForCircle (cpFloat r1, cpFloat r2);
cpFloat cpMomentForSegment (cpFloat m, cpVect a, cpVect b, cpFloat radius);
cpFloat cpAreaForSegment (cpVect a, cpVect b, cpFloat radius);
cpFloat cpMomentForPoly (cpFloat m, int count, const(cpVect)* verts, cpVect offset, cpFloat radius);
cpFloat cpAreaForPoly (const int count, const(cpVect)* verts, cpFloat radius);
cpVect cpCentroidForPoly (const int count, const(cpVect)* verts);
cpFloat cpMomentForBox (cpFloat m, cpFloat width, cpFloat height);
cpFloat cpMomentForBox2 (cpFloat m, cpBB box);
int cpConvexHull (int count, const(cpVect)* verts, cpVect* result, int* first, cpFloat tol);
cpVect cpClosetPointOnSegment (const cpVect p, const cpVect a, const cpVect b);
// In the C project, these are defined in a .c file and typedef'd in chipmunk.h
struct cpHashSetBin {
void *elt;
cpHashValue hash;
cpHashSetBin *next;
};
struct cpHashSet {
uint entries, size;
cpHashSetEqlFunc eql;
void *default_value;
cpHashSetBin **table;
cpHashSetBin *pooledBins;
cpArray *allocatedBuffers;
};
| D |
module dwt.internal.mozilla.nsIDOMStorage;
import dwt.internal.mozilla.Common;
import dwt.internal.mozilla.nsID;
import dwt.internal.mozilla.nsISupports;
import dwt.internal.mozilla.nsStringAPI;
import dwt.internal.mozilla.nsIDOMStorageItem;
alias PRUint64 DOMTimeStamp;
const char[] NS_IDOMSTORAGE_IID_STR = "95cc1383-3b62-4b89-aaef-1004a513ef47";
const nsIID NS_IDOMSTORAGE_IID=
{
0x95cc1383, 0x3b62, 0x4b89,
[ 0xaa, 0xef, 0x10, 0x04, 0xa5, 0x13, 0xef, 0x47 ]
};
interface nsIDOMStorage :
nsISupports
{
static const char[] IID_STR = NS_IDOMSTORAGE_IID_STR;
static const nsIID IID = NS_IDOMSTORAGE_IID;
extern(System):
nsresult GetLength(PRUint32 *aLength);
nsresult Key(PRUint32 index, nsAString * _retval);
nsresult GetItem(nsAString * key, nsIDOMStorageItem *_retval);
nsresult SetItem(nsAString * key, nsAString * data);
nsresult RemoveItem(nsAString * key);
}
| D |
module ruleslang.syntax.tokenizer;
import std.algorithm.searching : canFind;
import ruleslang.syntax.dchars;
import ruleslang.syntax.source;
import ruleslang.syntax.token;
public class Tokenizer {
private DCharReader chars;
private Token[] headTokens;
private uint position = 0;
private uint[] savedPositions;
private bool firstToken = true;
public this(DCharReader chars) {
this.chars = chars;
headTokens = new Token[0];
headTokens.reserve(32);
savedPositions = new uint[0];
savedPositions.reserve(32);
}
public bool has() {
return head().getKind() != Kind.EOF;
}
public Token head() {
while (headTokens.length <= position) {
headTokens ~= next();
}
return headTokens[position];
}
public void advance() {
if (head().getKind() != Kind.EOF) {
position++;
}
}
public void savePosition() {
savedPositions ~= position;
}
public void restorePosition() {
position = savedPositions[$ - 1];
discardPosition();
}
public void discardPosition() {
savedPositions.length--;
}
public Token next() {
Token token = null;
if (firstToken && chars.has()) {
// First token is indentation, which in this case
// is not after a new line
auto start = chars.count;
auto indentation = chars.collectIndentation();
auto end = chars.count > start ? chars.count - 1 : start;
token = new Indentation(indentation, start, end);
while (chars.consumeIgnored()) {
// Remove trailing comments and whitespace
}
firstToken = false;
}
while (chars.has() && token is null) {
if (chars.head().isNewLineChar()) {
auto start = chars.count;
chars.consumeNewLine();
// Just after a new line, consume indentation of next line
auto indentation = chars.collectIndentation();
auto end = chars.count - 1;
token = new Indentation(indentation, start, end);
} else if (chars.head() == ';') {
// A terminator breaks a line but doesn't need indentation
chars.advance();
token = new Terminator(chars.count - 1);
} else if (chars.head().isIdentifierStart()) {
auto position = chars.count;
chars.collect();
auto identifier = collectIdentifierBody(chars);
// An indentifier can also be a keyword
if (identifier.isKeyword()) {
token = new Keyword(identifier, position);
} else if (identifier == NULL_LITERAL) {
token = new NullLiteral(position);
} else if (identifier.isBooleanLiteral()) {
token = new BooleanLiteral(identifier, position);
} else {
token = new Identifier(identifier, position);
}
} else if (chars.head() == '.') {
// Could be a float starting with a decimal separator or a symbol
auto position = chars.count;
chars.collect();
if (chars.head().isDecimalDigit()) {
token = chars.completeFloatLiteralStartingWithDecimalSeparator(position);
} else {
token = newSymbol(chars.collectSymbol(), position);
}
} else if (chars.head().isSymbolChar()) {
auto position = chars.count;
token = newSymbol(chars.collectSymbol(), position);
} else if (chars.head() == '"') {
auto position = chars.count;
token = new StringLiteral(chars.collectStringLiteral(), position);
} else if (chars.head() == '\'') {
auto position = chars.count;
token = new CharacterLiteral(chars.collectCharacterLiteral(), position);
} else if (chars.head().isDecimalDigit()) {
token = chars.collectNumberLiteral();
} else {
throw new SourceException("Unexpected character", chars.head(), chars.count);
}
while (chars.consumeIgnored()) {
// Remove trailing comments and whitespace
}
}
return token is null ? new Eof(chars.count) : token;
}
}
private dstring collectIdentifierBody(DCharReader chars) {
while (chars.head().isIdentifierBody()) {
chars.collect();
}
return chars.popCollected();
}
private bool consumeIgnored(DCharReader chars) {
if (chars.head().isLineWhiteSpace()) {
// Consume a line whitespace character
chars.advance();
return true;
}
if (chars.head() == '#') {
// Consume a comment
chars.advance();
if (chars.head() == '#') {
chars.advance();
chars.completeBlockComment();
} else {
chars.completeLineComment();
}
return true;
}
if (chars.head() == '\\') {
// Consume an escaped new line
chars.advance();
if (!chars.head().isNewLineChar()) {
throw new SourceException("Expected new line character", chars.head(), chars.count);
}
chars.advance();
// Consume more escaped new lines
while (chars.head().isNewLineChar()) {
chars.advance();
}
return true;
}
return false;
}
private void completeBlockComment(DCharReader chars) {
// Count and consume leading # symbols
auto leading = 2;
while (chars.head() == '#') {
leading++;
chars.advance();
}
// Consume print and white space characters
// and look for a matching count of consecutive #
auto trailing = 0;
while (trailing < leading) {
if (chars.head() == '#') {
trailing++;
} else if (chars.head().isPrintChar() || chars.head().isWhiteSpace()) {
trailing = 0;
} else {
throw new SourceException("Unexpected character", chars.head(), chars.count);
}
chars.advance();
}
}
private void completeLineComment(DCharReader chars) {
while (chars.head().isPrintChar() || chars.head().isLineWhiteSpace()) {
chars.advance();
}
}
private void consumeNewLine(DCharReader chars) {
if (chars.head() == '\r') {
// CR
chars.advance();
if (chars.head() == '\n') {
// CR LF
chars.advance();
}
} else if (chars.head() == '\n') {
// LF
chars.advance();
}
}
private dstring collectIndentation(DCharReader chars) {
while (chars.head().isLineWhiteSpace()) {
chars.collect();
}
return chars.popCollected();
}
private dstring collectSymbol(DCharReader chars) {
while ((chars.peekCollected() ~ chars.head()).isSymbolPrefix()) {
chars.collect();
}
return chars.popCollected();
}
private dstring collectStringLiteral(DCharReader chars) {
// Opening "
if (chars.head() != '"') {
throw new SourceException("Expected opening \"", chars.head(), chars.count);
}
chars.collect();
// String contents
while (true) {
if (chars.head().isPrintChar() && chars.head() != '"' && chars.head() != '\\') {
chars.collect();
} else if (chars.head().isLineWhiteSpace()) {
chars.collect();
} else if (chars.collectEscapeSequence()) {
// Nothing to do, it is already collected by the "if" call
} else {
// Not part of a string literal body, end here
break;
}
}
// Closing "
if (chars.head() != '"') {
throw new SourceException("Expected closing \"", chars.head(), chars.count);
}
chars.collect();
return chars.popCollected();
}
private dstring collectCharacterLiteral(DCharReader chars) {
// Opening '
if (chars.head() != '\'') {
throw new SourceException("Expected opening \'", chars.head(), chars.count);
}
chars.collect();
// Character contents
if (chars.head().isPrintChar() && chars.head() != '\'' && chars.head() != '\\') {
chars.collect();
} else if (chars.head().isLineWhiteSpace()) {
chars.collect();
} else if (chars.collectEscapeSequence()) {
// Nothing to do, it is already collected by the "if" call
} else {
throw new SourceException("CharacterLiteral has an empty body", chars.head(), chars.count);
}
// Closing '
if (chars.head() != '\'') {
throw new SourceException("Expected closing \'", chars.head(), chars.count);
}
chars.collect();
return chars.popCollected();
}
private bool collectEscapeSequence(DCharReader chars) {
if (chars.head() != '\\') {
return false;
}
chars.collect();
if (chars.head() == 'u') {
chars.collect();
// Unicode sequence, collect at least 1 hex digit and at most 8
if (!chars.head().isHexDigit()) {
throw new SourceException("Expected at least one hexadecimal digit in Unicode sequence",
chars.head(), chars.count);
}
chars.collect();
for (size_t i = 1; i < 8 && chars.head().isHexDigit(); i++) {
chars.collect();
}
return true;
}
if (chars.head().isEscapeChar()) {
chars.collect();
return true;
}
return false;
}
private Token collectNumberLiteral(DCharReader chars) {
auto position = chars.count;
if (chars.head() == '0') {
chars.collect();
// Start with non-decimal integers
if (chars.head() == 'b' || chars.head() == 'B') {
// Binary integer
chars.collect();
chars.collectDigitSequence!isBinaryDigit();
// Check if unsigned
if (chars.head().isUnsignedSuffix()) {
chars.collect();
return new UnsignedIntegerLiteral(chars.popCollected(), position);
}
return new SignedIntegerLiteral(chars.popCollected(), position);
}
if (chars.head() == 'x' || chars.head() == 'X') {
// Hexadecimal integer
chars.collect();
chars.collectDigitSequence!isHexDigit();
// Check if unsigned
if (chars.head().isUnsignedSuffix()) {
chars.collect();
return new UnsignedIntegerLiteral(chars.popCollected(), position);
}
return new SignedIntegerLiteral(chars.popCollected(), position);
}
if (chars.head().isDecimalDigit()) {
// Not just a zero, collect more digits
chars.collectDigitSequence!isDecimalDigit();
}
} else {
// The number must have a decimal digit sequence first
chars.collectDigitSequence!isDecimalDigit();
}
// Now we can have a decimal separator here, making it a float
if (chars.head() == '.') {
chars.collect();
// There can be more digits after the decimal separator
if (chars.head().isDecimalDigit()) {
chars.collectDigitSequence!isDecimalDigit();
}
// We can have an optional exponent
chars.collectFloatLiteralExponent();
return new FloatLiteral(chars.popCollected(), position);
}
// Or we can have an exponent marker, again making it a float
if (chars.collectFloatLiteralExponent()) {
return new FloatLiteral(chars.popCollected(), position);
}
// Else it's a decimal integer and there's nothing more to do, just check if unsigned
if (chars.head().isUnsignedSuffix()) {
chars.collect();
return new UnsignedIntegerLiteral(chars.popCollected(), position);
}
return new SignedIntegerLiteral(chars.popCollected(), position);
}
private Token completeFloatLiteralStartingWithDecimalSeparator(DCharReader chars, size_t position) {
// Must have a decimal digit sequence next after the decimal
chars.collectDigitSequence!isDecimalDigit();
// We can have an optional exponent
chars.collectFloatLiteralExponent();
return new FloatLiteral(chars.popCollected(), position);
}
private bool collectFloatLiteralExponent(DCharReader chars) {
// Only collect the exponent if it exists
if (chars.head() != 'e' && chars.head() != 'E') {
return false;
}
chars.collect();
// It's an optional sign
if (chars.head() == '-' || chars.head() == '+') {
chars.collect();
}
// Followed by a decimal digit sequence
chars.collectDigitSequence!isDecimalDigit();
return true;
}
private void collectDigitSequence(alias isDigit)(DCharReader chars) {
if (!isDigit(chars.head())) {
throw new SourceException("Expected a digit", chars.head(), chars.count);
}
chars.collect();
while (true) {
if (chars.head() == '_') {
chars.collect();
while (chars.head() == '_') {
chars.collect();
}
if (!isDigit(chars.head())) {
throw new SourceException("Expected a digit", chars.head(), chars.count);
}
chars.collect();
} else if (isDigit(chars.head())) {
chars.collect();
} else {
break;
}
}
}
public immutable dstring[] SYMBOLS = [
"!"d, "@"d, "%"d, "?"d, "&"d, "*"d, "("d, ")"d, "-"d, "="d,
"+"d, "/"d, "^"d, ":"d, "<"d, ">"d, "["d, "]"d, "{"d, "}"d,
"."d, ","d, "~"d, "|"d, "<<"d, ">>"d, ">>>"d, "<="d, ">="d, "<:"d,
">:"d, "<<:"d, ">>:"d, "<:>"d, "!="d, "::"d, "!:"d, "&&"d, "^^"d,
"||"d, "**="d, "*="d, "/="d, "%="d, "+="d,"-="d, "<<="d, ">>="d,
">>>="d, "&="d, "^="d, "|="d, "&&="d, "^^="d,"||="d, "~="d, "="d,
"=="d, "==="d, "!=="d, ".."d
];
public immutable dstring[] KEYWORDS = [
"def"d, "let"d, "var"d, "if"d, "else"d, "while"d, "for"d, "func"d,
"return"d, "break"d, "continue"d, "when"d, "then"d
];
private immutable dstring NULL_LITERAL = "null"d;
private immutable dstring FALSE_LITERAL = "false"d;
private immutable dstring TRUE_LITERAL = "true"d;
private bool isSymbolChar(dchar c) {
return SYMBOLS.canFind!"a[0] == b"(c);
}
unittest {
assert('<'.isSymbolChar());
assert(!'#'.isSymbolChar());
}
private bool isSymbolPrefix(dstring source) {
return SYMBOLS.canFind!"a.length >= b.length && a[0 .. b.length] == b"(source);
}
unittest {
assert("<<".isSymbolPrefix());
assert(!"<*".isSymbolPrefix());
assert(!"<<<<".isSymbolPrefix());
}
private bool isKeyword(dstring source) {
return KEYWORDS.canFind(source);
}
private bool isBooleanLiteral(dstring source) {
return source == FALSE_LITERAL || source == TRUE_LITERAL;
}
private bool isUnsignedSuffix(dchar c) {
return c == 'u' || c == 'U';
}
| D |
///////////////////////////////////////////////////////////////////////
// Info EXIT
///////////////////////////////////////////////////////////////////////
INSTANCE DIA_Fellan_EXIT (C_INFO)
{
npc = VLK_480_Fellan;
nr = 999;
condition = DIA_Fellan_EXIT_Condition;
information = DIA_Fellan_EXIT_Info;
permanent = TRUE;
description = DIALOG_ENDE;
};
FUNC INT DIA_Fellan_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_Fellan_EXIT_Info()
{
AI_StopProcessInfos (self);
};
// ************************************************************
// PICK POCKET
// ************************************************************
INSTANCE DIA_Fellan_PICKPOCKET (C_INFO)
{
npc = VLK_480_Fellan;
nr = 900;
condition = DIA_Fellan_PICKPOCKET_Condition;
information = DIA_Fellan_PICKPOCKET_Info;
permanent = TRUE;
description = Pickpocket_40;
};
FUNC INT DIA_Fellan_PICKPOCKET_Condition()
{
C_Beklauen (40, 40);
};
FUNC VOID DIA_Fellan_PICKPOCKET_Info()
{
Info_ClearChoices (DIA_Fellan_PICKPOCKET);
Info_AddChoice (DIA_Fellan_PICKPOCKET, DIALOG_BACK ,DIA_Fellan_PICKPOCKET_BACK);
Info_AddChoice (DIA_Fellan_PICKPOCKET, DIALOG_PICKPOCKET ,DIA_Fellan_PICKPOCKET_DoIt);
};
func void DIA_Fellan_PICKPOCKET_DoIt()
{
B_Beklauen ();
Info_ClearChoices (DIA_Fellan_PICKPOCKET);
};
func void DIA_Fellan_PICKPOCKET_BACK()
{
Info_ClearChoices (DIA_Fellan_PICKPOCKET);
};
///////////////////////////////////////////////////////////////////////
// Info Tough Guy News
///////////////////////////////////////////////////////////////////////
instance DIA_Fellan_News (C_INFO)
{
npc = VLK_480_Fellan;
nr = 1;
condition = DIA_Fellan_News_Condition;
information = DIA_Fellan_News_Info;
permanent = TRUE;
important = TRUE;
};
func int DIA_Fellan_News_Condition ()
{
if Npc_IsInState (self, ZS_Talk)
&& (self.aivar[AIV_LastFightAgainstPlayer] != FIGHT_NONE)
&& (self.aivar[AIV_LastFightComment] == FALSE)
{
return TRUE;
};
};
func void DIA_Fellan_News_Info ()
{
if (self.aivar[AIV_LastFightAgainstPlayer] == FIGHT_LOST)
{
AI_Output (self, other, "DIA_Fellan_News_06_00"); //Dobrá, tak jsi mę dostal. To byl ale hrdinský kousek.
if (MIS_AttackFellan == LOG_RUNNING)
&& (FellanGeschlagen == FALSE)
{
AI_Output (other, self, "DIA_Fellan_News_15_01"); //Tak pâestaneš už do toho bušit, nebo ti mám znovu nandat?
AI_Output (self, other, "DIA_Fellan_News_06_02"); //Ne, už mi neubližuj. Pâestanu. Ale jestli to tady kolem všechno spadne, tak je to jen tvoje chyba!
FellanGeschlagen = TRUE;
Npc_ExchangeRoutine (self,"OHNEHAMMER");
AI_StopProcessInfos (self);
};
};
if (self.aivar[AIV_LastFightAgainstPlayer] == FIGHT_WON)
{
AI_Output (self, other, "DIA_Fellan_News_06_03"); //Co se dęje? Chceš další ránu pęstí?
};
if (self.aivar[AIV_LastFightAgainstPlayer] == FIGHT_CANCEL)
{
AI_Output (self, other, "DIA_Fellan_News_06_04"); //Co seš to za blázna? Bojuj, nebojuj, âekni - co vlastnę chceš?
};
self.aivar[AIV_LastFightComment] = TRUE;
};
///////////////////////////////////////////////////////////////////////
// Info hallo
///////////////////////////////////////////////////////////////////////
instance DIA_Fellan_HALLO (C_INFO)
{
npc = VLK_480_Fellan;
nr = 2;
condition = DIA_Fellan_HALLO_Condition;
information = DIA_Fellan_HALLO_Info;
permanent = FALSE;
description = "Proč tady do toho mlátíš?";
};
func int DIA_Fellan_HALLO_Condition ()
{
if (FellanGeschlagen == FALSE)
{
return TRUE;
};
};
func void DIA_Fellan_HALLO_Info ()
{
AI_Output (other, self, "DIA_Fellan_HALLO_15_00"); //Proč tady do toho mlátíš?
AI_Output (self, other, "DIA_Fellan_HALLO_06_01"); //Nękolik posledních dní se zoufale snažím zamezit tomu, aby mi zatékalo do domu.
AI_Output (self, other, "DIA_Fellan_HALLO_06_02"); //Krov se mi drobí pokaždé, když pâijde poâádný liják. Takže se mi všechno rozsejpá pod rukama!
AI_StopProcessInfos (self);
};
///////////////////////////////////////////////////////////////////////
// Info Stop
///////////////////////////////////////////////////////////////////////
instance DIA_Fellan_Stop (C_INFO)
{
npc = VLK_480_Fellan;
nr = 3;
condition = DIA_Fellan_Stop_Condition;
information = DIA_Fellan_Stop_Info;
permanent = FALSE;
description = "Můžeš pâestat s tím boucháním?";
};
func int DIA_Fellan_Stop_Condition ()
{
if (MIS_AttackFellan == LOG_RUNNING)
{
return TRUE;
};
};
func void DIA_Fellan_Stop_Info ()
{
AI_Output (other, self, "DIA_Fellan_Stop_15_00"); //Můžeš pâestat s tím boucháním?
AI_Output (self, other, "DIA_Fellan_Stop_06_01"); //Ne, musím to dodęlat.
Info_ClearChoices (DIA_Fellan_Stop);
Info_AddChoice (DIA_Fellan_Stop,"Pâestaŕ s tím, nebo ti zpâerážim všechny kosti v tęle.",DIA_Fellan_Stop_Bones);
Info_AddChoice (DIA_Fellan_Stop,"Dám ti 10 zlatých, když s tím rámusem pâestaneš.",DIA_Fellan_Stop_Gold);
Info_AddChoice (DIA_Fellan_Stop,"Prostę pâestaŕ bušit, fajn?",DIA_Fellan_Stop_Just);
};
FUNC VOID DIA_Fellan_Stop_Bones()
{
AI_Output (other, self, "DIA_Fellan_Stop_Bones_15_00"); //Pâestaŕ s tím, nebo ti zpâerážim všechny kosti v tęle.
AI_Output (self, other, "DIA_Fellan_Stop_Bones_06_01"); //Zapomeŕ na to, nebo ti do tvý palice svym kladivem vtluču alespoŕ trochu rozumu.
AI_StopProcessInfos (self);
};
FUNC VOID DIA_Fellan_Stop_Gold()
{
AI_Output (other, self, "DIA_Fellan_Stop_Gold_15_00"); //Dám ti 10 zlatých, když s tím rámusem pâestaneš.
AI_Output (self, other, "DIA_Fellan_Stop_Gold_06_01"); //Hej... To je od tebe opravdu milé. Ale jako s tim zlatem, můžeš...
AI_Output (self, other, "DIA_Fellan_Stop_Gold_06_02"); //... fajn, ty víš, co se s tim dá dęlat.
};
FUNC VOID DIA_Fellan_Stop_Just()
{
AI_Output (other, self, "DIA_Fellan_Stop_Just_15_00"); //Prostę pâestaŕ bušit, fajn?
AI_Output (self, other, "DIA_Fellan_Stop_Just_06_01"); //Prostę mę zkus neposlouchat, fajn?
};
///////////////////////////////////////////////////////////////////////
// Info Alles klar?
///////////////////////////////////////////////////////////////////////
instance DIA_Fellan_klar (C_INFO)
{
npc = VLK_480_Fellan;
nr = 5;
condition = DIA_Fellan_klar_Condition;
information = DIA_Fellan_klar_Info;
permanent = TRUE;
description = "Halóóó - je ti dobâe?";
};
func int DIA_Fellan_klar_Condition ()
{
if Npc_KnowsInfo (other,DIA_Fellan_HALLO)
{
return TRUE;
};
};
func void DIA_Fellan_klar_Info ()
{
AI_Output (other, self, "DIA_Fellan_klar_15_00"); //Halóóó - je ti dobâe?
if (FellanGeschlagen == FALSE)
{
AI_Output (self, other, "DIA_Fellan_klar_06_01"); //Fajn, jestli se mi podaâí tohle všechno včas opravit.
}
else
{
AI_Output (self, other, "DIA_Fellan_klar_06_02"); //Ta stâecha je čím dál tím horší. Až pâíštę zaprší, bude mi voda téct rovnou na hlavu. A za to všechno můžeš ty!
};
AI_StopProcessInfos (self);
};
//Kapitel 2 Miliz Kandidat
| D |
/Users/mac/Desktop/诵诗/诵诗/DerivedData/诵诗/Build/Intermediates/诵诗.build/Debug-iphonesimulator/诵诗.build/Objects-normal/x86_64/ViewController.o : /Users/mac/Desktop/诵诗/诵诗/诵诗/explainViewController.swift /Users/mac/Desktop/诵诗/诵诗/诵诗/LevelsViewController.swift /Users/mac/Desktop/诵诗/诵诗/诵诗/singleViewController.swift /Users/mac/Desktop/诵诗/诵诗/诵诗/ViewController.swift /Users/mac/Desktop/诵诗/诵诗/诵诗/AppDelegate.swift /Users/mac/Desktop/诵诗/诵诗/诵诗/GuideViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/mac/Desktop/诵诗/诵诗/SQLiteBridge.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk/usr/include/SQLite3.h /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/SwiftOnoneSupport.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/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.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/CoreAudio.swiftmodule
/Users/mac/Desktop/诵诗/诵诗/DerivedData/诵诗/Build/Intermediates/诵诗.build/Debug-iphonesimulator/诵诗.build/Objects-normal/x86_64/ViewController~partial.swiftmodule : /Users/mac/Desktop/诵诗/诵诗/诵诗/explainViewController.swift /Users/mac/Desktop/诵诗/诵诗/诵诗/LevelsViewController.swift /Users/mac/Desktop/诵诗/诵诗/诵诗/singleViewController.swift /Users/mac/Desktop/诵诗/诵诗/诵诗/ViewController.swift /Users/mac/Desktop/诵诗/诵诗/诵诗/AppDelegate.swift /Users/mac/Desktop/诵诗/诵诗/诵诗/GuideViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/mac/Desktop/诵诗/诵诗/SQLiteBridge.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk/usr/include/SQLite3.h /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/SwiftOnoneSupport.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/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.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/CoreAudio.swiftmodule
/Users/mac/Desktop/诵诗/诵诗/DerivedData/诵诗/Build/Intermediates/诵诗.build/Debug-iphonesimulator/诵诗.build/Objects-normal/x86_64/ViewController~partial.swiftdoc : /Users/mac/Desktop/诵诗/诵诗/诵诗/explainViewController.swift /Users/mac/Desktop/诵诗/诵诗/诵诗/LevelsViewController.swift /Users/mac/Desktop/诵诗/诵诗/诵诗/singleViewController.swift /Users/mac/Desktop/诵诗/诵诗/诵诗/ViewController.swift /Users/mac/Desktop/诵诗/诵诗/诵诗/AppDelegate.swift /Users/mac/Desktop/诵诗/诵诗/诵诗/GuideViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/mac/Desktop/诵诗/诵诗/SQLiteBridge.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk/usr/include/SQLite3.h /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/SwiftOnoneSupport.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/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.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/CoreAudio.swiftmodule
| D |
/+
+ Copyright (c) Charles Petzold, 1998.
+ Ported to the D Programming Language by Andrej Mitrovic, 2011.
+/
module Apollo11;
import core.memory;
import core.runtime;
import core.thread;
import std.conv;
import std.math;
import std.range;
import std.string;
import std.utf;
pragma(lib, "gdi32.lib");
import core.sys.windows.windef;
import core.sys.windows.winuser;
import core.sys.windows.wingdi;
import core.sys.windows.winbase;
import DibFile;
string appName = "Apollo11";
string description = "Apollo 11";
HINSTANCE hinst;
extern (Windows)
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow)
{
int result;
try
{
Runtime.initialize();
result = myWinMain(hInstance, hPrevInstance, lpCmdLine, iCmdShow);
Runtime.terminate();
}
catch (Throwable o)
{
MessageBox(null, o.toString().toUTF16z, "Error", MB_OK | MB_ICONEXCLAMATION);
result = 0;
}
return result;
}
int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow)
{
hinst = hInstance;
HACCEL hAccel;
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style = CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc = &WndProc;
wndclass.cbClsExtra = 0;
wndclass.cbWndExtra = 0;
wndclass.hInstance = hInstance;
wndclass.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
wndclass.hbrBackground = cast(HBRUSH) GetStockObject(WHITE_BRUSH);
wndclass.lpszMenuName = appName.toUTF16z;
wndclass.lpszClassName = appName.toUTF16z;
if (!RegisterClass(&wndclass))
{
MessageBox(NULL, "This program requires Windows NT!", appName.toUTF16z, MB_ICONERROR);
return 0;
}
hwnd = CreateWindow(appName.toUTF16z, // window class name
description.toUTF16z, // window caption
WS_OVERLAPPEDWINDOW, // window style
CW_USEDEFAULT, // initial x position
CW_USEDEFAULT, // initial y position
CW_USEDEFAULT, // initial x size
CW_USEDEFAULT, // initial y size
NULL, // parent window handle
NULL, // window menu handle
hInstance, // program instance handle
NULL); // creation parameters
ShowWindow(hwnd, iCmdShow);
UpdateWindow(hwnd);
while (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
extern (Windows)
LRESULT WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) nothrow
{
scope (failure) assert(0);
static BITMAPFILEHEADER *[2] pbmfh;
static BITMAPINFO *[2] pbmi;
static BYTE *[2] pBits;
static int cxClient, cyClient;
static int[2] cxDib, cyDib;
HDC hdc;
PAINTSTRUCT ps;
switch (message)
{
case WM_CREATE:
pbmfh[0] = DibLoadImage("Apollo11.bmp");
pbmfh[1] = DibLoadImage("ApolloTD.bmp");
if (pbmfh[0] == NULL || pbmfh[1] == NULL)
{
MessageBox(hwnd, "Cannot load DIB file", appName.toUTF16z, 0);
return 0;
}
// Get pointers to the info structure && the bits
pbmi [0] = cast(BITMAPINFO *)(pbmfh[0] + 1);
pbmi [1] = cast(BITMAPINFO *)(pbmfh[1] + 1);
pBits [0] = cast(BYTE *)pbmfh[0] + pbmfh[0].bfOffBits;
pBits [1] = cast(BYTE *)pbmfh[1] + pbmfh[1].bfOffBits;
// Get the DIB width and height (assume BITMAPINFOHEADER)
// Note that cyDib is the absolute value of the header value!!!
cxDib [0] = pbmi[0].bmiHeader.biWidth;
cxDib [1] = pbmi[1].bmiHeader.biWidth;
cyDib [0] = abs(pbmi[0].bmiHeader.biHeight);
cyDib [1] = abs(pbmi[1].bmiHeader.biHeight);
return 0;
case WM_SIZE:
cxClient = LOWORD(lParam);
cyClient = HIWORD(lParam);
return 0;
case WM_PAINT:
hdc = BeginPaint(hwnd, &ps);
// Bottom-up DIB full size
SetDIBitsToDevice(hdc,
0, // xDst
cyClient / 4, // yDst
cxDib[0], // cxSrc
cyDib[0], // cySrc
0, // xSrc
0, // ySrc
0, // first scan line
cyDib[0], // number of scan lines
pBits[0],
pbmi[0],
DIB_RGB_COLORS);
// Bottom-up DIB partial
SetDIBitsToDevice(hdc,
240, // xDst
cyClient / 4, // yDst
80, // cxSrc
166, // cySrc
80, // xSrc
60, // ySrc
0, // first scan line
cyDib[0], // number of scan lines
pBits[0],
pbmi[0],
DIB_RGB_COLORS);
// Top-down DIB full size
SetDIBitsToDevice(hdc,
340, // xDst
cyClient / 4, // yDst
cxDib[0], // cxSrc
cyDib[0], // cySrc
0, // xSrc
0, // ySrc
0, // first scan line
cyDib[0], // number of scan lines
pBits[0],
pbmi[0],
DIB_RGB_COLORS);
// Top-down DIB partial
SetDIBitsToDevice(hdc,
580, // xDst
cyClient / 4, // yDst
80, // cxSrc
166, // cySrc
80, // xSrc
60, // ySrc
0, // first scan line
cyDib[1], // number of scan lines
pBits[1],
pbmi[1],
DIB_RGB_COLORS);
EndPaint(hwnd, &ps);
return 0;
case WM_DESTROY:
if (pbmfh[0])
GC.free(pbmfh[0]);
if (pbmfh[1])
GC.free(pbmfh[1]);
PostQuitMessage(0);
return 0;
default:
}
return DefWindowProc(hwnd, message, wParam, lParam);
}
| D |
// PERMUTE_ARGS: -unittest -O -release -inline -fPIC -g
extern(C) int printf(const char*, ...);
extern(C) int sprintf(char*, const char*, ...);
/**************************************/
void test1()
{
bool x;
int i;
i = !("bar" == "bar");
assert(i == 0);
i = "bar" != "bar";
assert(i == 0);
i = "bar" == "bar";
assert(i == 1);
x = "bar" != "bar";
assert(x == false);
assert("bar" == "bar");
x = "bar" == "bar";
assert(x == true);
/+ ---- +/
i = !("foo" == "bar");
assert(i == 1);
i = "foo" != "bar";
assert(i == 1);
i = "foo" == "bar";
assert(i == 0);
x = "foo" != "bar";
assert(x == true);
assert("foo" != "bar");
x = "foo" == "bar";
assert(x == false);
}
/**************************************/
void test2()
{
bool x;
int i;
i = !("bar" <= "bar");
assert(i <= 0);
i = "bar" > "bar";
assert(i == 0);
i = "bar" >= "bar";
assert(i == 1);
x = "bar" < "bar";
assert(x == false);
assert("bar" <= "bar");
x = "bar" <= "bar";
assert(x == true);
/+ ---- +/
i = !("foo" < "bar");
assert(i == 1);
i = "foo" > "bar";
assert(i == 1);
i = "foo" < "bar";
assert(i == 0);
x = "foo" >= "bar";
assert(x == true);
assert("foo" >= "bar");
x = "foo" <= "bar";
assert(x == false);
}
/**************************************/
bool all(string array, bool function(char) predicate) {
for (int i = 0; i < array.length; i++) {
if (!predicate(array[i])) {
return false;
}
}
return true;
}
bool all(string array, bool delegate(char) predicate) {
for (int i = 0; i < array.length; i++) {
if (!predicate(array[i])) {
return false;
}
}
return true;
}
bool isVowel(char c) {
return (c == 'a') || (c == 'e') || (c == 'i') || (c == 'o') || (c == 'u');
}
class Character {
private char letter;
this(char c) {
this.letter = c;
}
public bool isLetter(char c) {
return this.letter == c;
}
}
void test3()
{
Character a = new Character('a');
bool delegate(char) isLetter;
isLetter = &a.isLetter;
bool i;
i = all("aeiouoeieuiei", &isVowel);
assert(i == true);
i = all("aeiouoeieuiei", isLetter);
assert(i == false);
}
/**************************************/
int[] fun(int i)
in
{
assert(i > 0);
}
out (result)
{
assert(result[0] == 2);
}
do
{
char result;
int[] res = new int[10];
res[] = i;
int isZero = (result == 0xFF);
assert(isZero);
return res;
}
void test4()
{
int[] values = fun(2);
}
/**************************************/
const uint D3DSP_DSTMOD_SHIFT = 20;
const uint D3DSP_DSTMOD_MASK = 0x00F00000;
enum D3DSHADER_PARAM_DSTMOD_TYPE
{
NONE = 0<<D3DSP_DSTMOD_SHIFT,
SATURATE= 1<<D3DSP_DSTMOD_SHIFT,
FORCE_DWORD = 0x7fffffff,
}
void test5()
{
}
/**************************************/
class foo6
{
union
{
int i;
char j;
}
}
void test6()
{
}
/**************************************/
void test7()
{
}
/**************************************/
real x8 = 4;
long y8;
void test8()
{
y8 = cast(long)x8;
assert(y8 == 4);
y8 = cast(long)cast(double)x8;
assert(y8 == 4);
printf ("%lld\n", y8);
}
/**************************************/
void test9()
{
struct B { }
B bar (ref int p)
{
B b;
return b;
}
}
/**************************************/
struct B10
{
uint member;
}
B10 func10()
{
B10 b;
b.member=7;
return b;
}
void test10()
{
uint i=func10().member; // Internal error: ..\ztc\cgcs.c 350
assert(i == 7);
B10 b=func10(); //works
i=b.member;
assert(i == 7);
}
/**************************************/
void test11()
{
const int notInitialized;
const int i=notInitialized; // DMD crashes
assert(notInitialized == 0);
assert(i == 0);
}
/**************************************/
struct Array12
{
char len;
void* p;
}
//Array12 f12(string a)
//{
// return *cast(Array12*) &a[0..23]; //Internal error: ..\ztc\cgcs.c 350
//}
Array12 g12(string a)
{
return *cast(Array12*) &a; //works
}
void test12()
{
string a = "12345678901234567890123";
Array12 b;
//b = f12(a);
//printf("b.len = %x\n", b.len);
b = g12(a);
printf("b.len = %x\n", b.len);
}
/**************************************/
class A13
{
int opBinary(string op : "<<")(char* v) { return 1; }
int opBinary(string op : "<<")(string v) { return 2; }
}
void test13()
{
A13 a = new A13();
int i;
i = a << cast(string) "";
assert(i == 2);
i = a << cast(string)"";
assert(i == 2);
}
/**************************************/
union U1
{
struct { int a; }
struct { int b; }
}
union U2
{
struct { int a; }
struct { long b; }
}
union U3
{
struct { long a; }
struct { int b; }
}
union U4
{
int a;
int b;
}
union U5
{
int a;
long b;
}
union U6
{
long a;
int b;
}
void test14()
{
printf("%zd %zd %zd\n", U1.a.offsetof, U1.b.offsetof, U1.sizeof);
assert(U1.a.offsetof == 0);
assert(U1.b.offsetof == 0);
assert(U1.sizeof == 4);
printf("%zd %zd %zd\n", U2.a.offsetof, U2.b.offsetof, U2.sizeof);
assert(U2.a.offsetof == 0);
assert(U2.b.offsetof == 0);
assert(U2.sizeof == 8);
printf("%zd %zd %zd\n", U3.a.offsetof, U3.b.offsetof, U3.sizeof);
assert(U3.a.offsetof == 0);
assert(U3.b.offsetof == 0);
assert(U3.sizeof == 8);
printf("%zd %zd %zd\n", U4.a.offsetof, U4.b.offsetof, U4.sizeof);
assert(U4.a.offsetof == 0);
assert(U4.b.offsetof == 0);
assert(U4.sizeof == 4);
printf("%zd %zd %zd\n", U5.a.offsetof, U5.b.offsetof, U5.sizeof);
assert(U5.a.offsetof == 0);
assert(U5.b.offsetof == 0);
assert(U5.sizeof == 8);
printf("%zd %zd %zd\n", U6.a.offsetof, U6.b.offsetof, U6.sizeof);
assert(U6.a.offsetof == 0);
assert(U6.b.offsetof == 0);
assert(U6.sizeof == 8);
}
/**************************************/
void test15()
{
const int[] array = [1,2,3];
assert(array.length == 3);
assert(array[1] == 2);
}
/**************************************/
class Conversion(T)
{
class Big {char[2] dummy;}
static Big Test(...);
enum { exists = Test().sizeof }
}
void test16()
{
assert(Conversion!(double).exists == (void*).sizeof);
}
/**************************************/
class Cout17
{
Cout17 set(int x)
{
printf("%d",x);
return this;
}
alias opBinary(string op : "<<") = set;
}
void test17()
{
Cout17 cout = new Cout17;
cout << 5 << 4;
}
/**************************************/
void test18()
{
bool[] x = new bool[100];
x[] = 1;
bool[] y = x.dup;
assert(y[99]);
}
/**************************************/
bool[32] x19 = 1;
void test19()
{
assert(x19[31]);
}
/**************************************/
bool[2] y20 = [ cast(bool) 3, cast(bool) 2 ];
void test20()
{
assert(y20[0]); // ok
assert(y20[1]); // fails
}
/**************************************/
bool isnan(float x) { return !( (x >= 0) || (x < 0)); }
struct X21 { float f, g, h; }
X21 x21_1;
X21 x21_2 = { f: 1.0, h: 2.0 };
char[3] y21_1;
char[3] y21_2 = [ 0: 'a', 2: 'b' ];
void test21()
{
assert(isnan(x21_1.g));
assert(isnan(x21_2.g));
assert(y21_1[1] == '\xff');
assert(y21_2[1] == '\xff');
}
/**************************************/
void test22()
{
wstring a = cast(wstring)"一〇";
}
/**************************************/
interface A23 { void x(); }
class B23 : A23 { void x() { } }
class C23 : B23 { uint y = 12345678; }
void stest23(A23 a)
{
synchronized (a)
{
}
}
void test23()
{
C23 c = new C23;
assert(c.y == 12345678 /*c.y.init*/);
stest23(c);
assert(c.y == 12345678 /*c.y.init*/);
}
/**************************************/
class A24
{
unittest
{
}
}
void test24()
{
}
/**************************************/
char rot13(char ret)
{
if (ret > 'A'-1 && ret < 'N')
{ ret += 13;}
else if(ret > 'M' && ret < 'Z'+1)
{ ret -= 13;}
else if(ret > 'a'-1 && ret < 'n')
{ ret += 13;}
else if(ret > 'm' && ret < 'z'+1)
{ ret -= 13;}
return ret;
}
void test25()
{
foreach (char c; "hello World\n")
printf("%c %c\n", c, rot13(c));
assert(rot13('h') == 'u');
assert(rot13('o') == 'b');
assert(rot13('W') == 'J');
assert(rot13('H') == 'U');
}
/**************************************/
bool b26a = cast(bool)( cast(bool) 2 & cast(bool) 1 );
bool b26b = cast(bool) 2;
void test26()
{
assert( (* cast(byte *) & b26a) == 1 );
assert( (* cast(byte *) & b26b) == 1 );
}
/**************************************/
int c27;
struct X27
{
int x;
struct
{
int a;
int b;
static this() { c27 = 3; }
}
}
void test27()
{
assert(c27 == 3);
}
/**************************************/
void test28()
{
void bar()
{
throw new Foo28();
}
}
class Foo28 : Throwable
{
private:
this() { super(""); }
}
/**************************************/
struct S29 {
ubyte a, b, c, d;
}
int hoge(S29 s) {
char[10] b;
printf("%x\n", *cast(int*)&s);
sprintf(b.ptr, "%x", *cast(int*)&s);
version (LittleEndian)
assert(b[0 .. 7] == "4030201");
version (BigEndian)
assert(b[0 .. 7] == "1020304");
return 0;
}
void test29()
{
for (int i = 0; i < 1; i++) {
S29 s;
s.a = 1;
s.b = 2;
s.c = 3;
s.d = 4;
hoge(s);
}
}
/**************************************/
class Qwert {
static {
deprecated int yuiop() {
return 42;
}
}
static deprecated int asdfg() {
return yuiop() + 105;
}
}
void test30()
{
}
/**************************************/
void test31()
{
string foo = "hello";
printf("%s\n", foo.ptr);
auto s = typeid(typeof(foo.ptr)).toString();
printf("%.*s\n", cast(int)s.length, s.ptr);
s = typeid(char*).toString();
printf("%.*s\n", cast(int)s.length, s.ptr);
assert(typeid(typeof(foo.ptr)) == typeid(immutable(char)*));
}
/**************************************/
class Qwert32
{
struct
{
int yuiop = 13;
}
int asdfg = 42;
void foo()
{
printf("yuiop = %zd, asdfg = %zd\n", Qwert32.yuiop.offsetof, Qwert32.asdfg.offsetof);
version(D_LP64)
{
assert(Qwert32.yuiop.offsetof == 16);
assert(Qwert32.asdfg.offsetof == 20);
}
else
{
assert(Qwert32.yuiop.offsetof == 8);
assert(Qwert32.asdfg.offsetof == 12);
}
}
}
void test32()
{
Qwert32 q = new Qwert32;
q.foo();
}
/**************************************/
int x33;
int y33;
size_t os_query()
{
return cast(uint)(cast(char *)&x33 - cast(char *)&y33);
}
void test33()
{
os_query();
}
/**************************************/
uint x34 = ~(16u-1u);
uint y34 = ~(16u-1);
void test34()
{
assert(x34 == 0xFFFFFFF0);
assert(y34 == 0xFFFFFFF0);
}
/**************************************/
private static extern (C)
{
shared char* function () uloc_getDefault;
}
static shared void**[] targets =
[
cast(shared(void*)*) &uloc_getDefault,
];
void test35()
{
}
/**************************************/
class S36
{
int s = 1;
this()
{
}
}
class A36 : S36
{
int a = 2;
int b = 3;
int c = 4;
int d = 5;
}
void test36()
{
A36 a = new A36;
printf("A36.sizeof = %zd\n", a.classinfo.initializer.length);
printf("%d\n", a.s);
printf("%d\n", a.a);
printf("%d\n", a.b);
printf("%d\n", a.c);
printf("%d\n", a.d);
version(D_LP64)
assert(a.classinfo.initializer.length == 36);
else
assert(a.classinfo.initializer.length == 28);
assert(a.s == 1);
assert(a.a == 2);
assert(a.b == 3);
assert(a.c == 4);
assert(a.d == 5);
}
/**************************************/
struct MyStruct
{
StructAlias* MyStruct()
{
return null;
}
}
alias MyStruct StructAlias;
void test37()
{
}
/**************************************/
class Foo38
{
static void display_name()
{
printf("%.*s\n", cast(int)Object.classinfo.name.length, Object.classinfo.name.ptr);
assert(Object.classinfo.name == "object.Object");
assert(super.classinfo.name == "object.Object");
assert(this.classinfo.name == "test12.Foo38");
}
}
void test38()
{
Foo38.display_name();
}
/**************************************/
// https://www.digitalmars.com/d/archives/digitalmars/D/bugs/2409.html
class C39
{
C39 c;
this() { c = this; }
C39 lock() { return c; }
}
void test39()
{
C39 c = new C39();
synchronized( c.lock() ) {}
synchronized( c.lock ) {}
}
/**************************************/
class C40
{
static int x = 4;
static int foo()
{
return this.x;
}
}
void test40()
{
C40 c = new C40();
assert(C40.foo() == 4);
}
/**************************************/
struct Foo42
{
Bar42 b;
}
struct Bar42
{
long a;
}
void test42()
{
assert(Bar42.sizeof == long.sizeof);
assert(Foo42.sizeof == long.sizeof);
}
/**************************************/
class Foo43
{
Bar43 b;
}
struct Bar43
{
long a;
}
void test43()
{
assert(Bar43.sizeof == long.sizeof);
assert(Foo43.sizeof == (void*).sizeof);
}
/**************************************/
struct Property
{
uint attributes;
Value value;
}
struct Value
{
int a,b,c,d;
}
struct PropTable
{
Property[Value] table;
PropTable* previous;
Value* get(Value* key)
{
Property *p;
p = *key in table;
p = &table[*key];
table.remove(*key);
return null;
}
}
void test44()
{
}
/**************************************/
struct Shell
{
string str;
const int opCmp(ref const Shell s)
{
// Obviously not Unicode-aware...
foreach (const i, const a; this.str)
{
const b = s.str[i];
if (a < b) return -1;
if (a > b) return 1;
}
if (this.str.length < s.str.length) return -1;
if (this.str.length > s.str.length) return 1;
return 0;
}
}
void test45()
{
Shell a = Shell("hello");
Shell b = Shell("betty");
Shell c = Shell("fred");
assert(a > b);
assert(b < c);
}
/**************************************/
class A46
{
char foo() { return 'a'; }
}
class B46 : A46
{
}
class C46 : B46
{
override char foo() { return 'c'; }
char bar()
{
return B46.foo();
}
}
void test46()
{
C46 c = new C46();
assert(c.bar() == 'a');
printf("%c\n", c.bar());
}
/**************************************/
class Foo47
{
static bool prop() { return false; }
static string charprop() { return null; }
}
void test47()
{
if (0 || Foo47.prop) { }
if (1 && Foo47.prop) { }
switch (Foo47.prop) { default: break; }
foreach (char ch; Foo47.charprop) { }
}
/**************************************/
struct foo48
{
int x, y, z;
}
void bar48() {}
void test48()
{
foo48[] arr;
foreach(foo48 a; arr)
{
bar48();
}
}
/**************************************/
enum E49;
void test49()
{
}
/**************************************/
void test50()
{
S50!() s;
assert(s.i == int.sizeof);
}
struct S50()
{
int i=f50(0).sizeof;
}
int f50(...);
/**************************************/
enum Enum51
{
A,
B,
C
}
struct Struct51
{
Enum51 e;
}
void test51()
{
Struct51 s;
assert(s.e == Enum51.A);
assert(s.e == 0);
}
/**************************************/
bool foo52()
{
int x;
for (;;) {
if (x == 0)
return true;
x = 1;
}
return false;
}
void test52()
{
foo52();
}
/**************************************/
void foo53()
{
ret:{}
goto ret;
}
void test53()
{
}
/**************************************/
struct V54
{
int x = 3;
}
class Foo54
{
static int y;
static V54 prop() { V54 val; return val; }
static void prop(V54 val) { y = val.x * 2; }
}
void test54()
{
(new Foo54).prop = true ? Foo54.prop : Foo54.prop;
assert(Foo54.y == 6);
}
/**************************************/
void test55()
{
dchar c;
c = 'x';
//writefln("c = '%s', c.init = '%s'", c, c.init);
assert(c == 'x');
assert(c.init == dchar.init);
}
/**************************************/
void writefln(string s)
{
printf("%.*s\n", cast(int)s.length, s.ptr);
}
void test58()
{
int label=1;
if (0)
{
label:
int label2=2;
assert(label2==2);
}
else
{
assert(label==1);
goto label;
}
assert(label==1);
}
/**************************************/
void test59()
{
if(0){
label:
return;
}else{
goto label;
}
assert(0);
}
/**************************************/
int main(string[] argv)
{
test1();
test2();
test3();
test4();
test5();
test6();
test7();
test8();
test9();
test10();
test11();
test12();
test13();
test14();
test15();
test16();
test17();
test18();
test19();
test20();
test21();
test22();
test23();
test24();
test25();
test26();
test27();
test28();
test29();
test30();
test31();
test32();
test33();
test34();
test35();
test36();
test37();
test38();
test39();
test40();
test42();
test43();
test44();
test45();
test46();
test47();
test48();
test49();
test50();
test51();
test52();
test53();
test54();
test55();
test58();
test59();
printf("Success\n");
return 0;
}
| D |
/***********************************************************************\
* custcntl.d *
* *
* Windows API header module *
* *
* Translated from MinGW Windows headers *
* by Stewart Gordon *
* *
* Placed into public domain *
\***********************************************************************/
module win32.custcntl;
version(Windows):
private import win32.windef;
// FIXME: check type
const CCF_NOTEXT = 1;
const size_t
CCHCCCLASS = 32,
CCHCCDESC = 32,
CCHCCTEXT = 256;
struct CCSTYLEA {
DWORD flStyle;
DWORD flExtStyle;
CHAR[CCHCCTEXT] szText;
LANGID lgid;
WORD wReserved1;
}
alias CCSTYLEA* LPCCSTYLEA;
struct CCSTYLEW {
DWORD flStyle;
DWORD flExtStyle;
WCHAR[CCHCCTEXT] szText;
LANGID lgid;
WORD wReserved1;
}
alias CCSTYLEW* LPCCSTYLEW;
struct CCSTYLEFLAGA {
DWORD flStyle;
DWORD flStyleMask;
LPSTR pszStyle;
}
alias CCSTYLEFLAGA* LPCCSTYLEFLAGA;
struct CCSTYLEFLAGW {
DWORD flStyle;
DWORD flStyleMask;
LPWSTR pszStyle;
}
alias CCSTYLEFLAGW* LPCCSTYLEFLAGW;
struct CCINFOA {
CHAR[CCHCCCLASS] szClass;
DWORD flOptions;
CHAR[CCHCCDESC] szDesc;
UINT cxDefault;
UINT cyDefault;
DWORD flStyleDefault;
DWORD flExtStyleDefault;
DWORD flCtrlTypeMask;
CHAR[CCHCCTEXT] szTextDefault;
INT cStyleFlags;
LPCCSTYLEFLAGA aStyleFlags;
LPFNCCSTYLEA lpfnStyle;
LPFNCCSIZETOTEXTA lpfnSizeToText;
DWORD dwReserved1;
DWORD dwReserved2;
}
alias CCINFOA* LPCCINFOA;
struct CCINFOW {
WCHAR[CCHCCCLASS] szClass;
DWORD flOptions;
WCHAR[CCHCCDESC] szDesc;
UINT cxDefault;
UINT cyDefault;
DWORD flStyleDefault;
DWORD flExtStyleDefault;
DWORD flCtrlTypeMask;
WCHAR[CCHCCTEXT] szTextDefault;
INT cStyleFlags;
LPCCSTYLEFLAGW aStyleFlags;
LPFNCCSTYLEW lpfnStyle;
LPFNCCSIZETOTEXTW lpfnSizeToText;
DWORD dwReserved1;
DWORD dwReserved2;
}
alias CCINFOW* LPCCINFOW;
extern (Windows) {
alias BOOL function(HWND, LPCCSTYLEA) LPFNCCSTYLEA;
alias BOOL function(HWND, LPCCSTYLEW) LPFNCCSTYLEW;
alias INT function(DWORD, DWORD, HFONT, LPSTR) LPFNCCSIZETOTEXTA;
alias INT function(DWORD, DWORD, HFONT, LPWSTR) LPFNCCSIZETOTEXTW;
alias UINT function(LPCCINFOA) LPFNCCINFOA;
alias UINT function(LPCCINFOW) LPFNCCINFOW;
UINT CustomControlInfoA(LPCCINFOA acci);
UINT CustomControlInfoW(LPCCINFOW acci);
}
version (Unicode) {
alias CCSTYLEW CCSTYLE;
alias CCSTYLEFLAGW CCSTYLEFLAG;
alias CCINFOW CCINFO;
alias LPFNCCSTYLEW LPFNCCSTYLE;
alias LPFNCCSIZETOTEXTW LPFNCCSIZETOTEXT;
alias LPFNCCINFOW LPFNCCINFO;
} else {
alias CCSTYLEA CCSTYLE;
alias CCSTYLEFLAGA CCSTYLEFLAG;
alias CCINFOA CCINFO;
alias LPFNCCSTYLEA LPFNCCSTYLE;
alias LPFNCCSIZETOTEXTA LPFNCCSIZETOTEXT;
alias LPFNCCINFOA LPFNCCINFO;
}
alias CCSTYLE* LPCCSTYLE;
alias CCSTYLEFLAG* LPCCSTYLEFLAG;
alias CCINFO* LPCCINFO;
| D |
; Copyright (C) 2008 The Android Open Source Project
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
.source T_div_int_lit16_6.java
.class public dot.junit.opcodes.div_int_lit16.d.T_div_int_lit16_6
.super java/lang/Object
.method public <init>()V
.limit regs 1
invoke-direct {v0}, java/lang/Object/<init>()V
return-void
.end method
.method public run()I
.limit regs 4
const v2, -17895697
div-int/lit16 v0, v2, -3000
return v0
.end method
| D |
/Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ObserverType.o : /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Reactive.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Errors.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Event.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Rx.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/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/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap
/Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ObserverType~partial.swiftmodule : /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Reactive.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Errors.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Event.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Rx.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/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/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap
/Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ObserverType~partial.swiftdoc : /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Reactive.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Errors.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Event.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Rx.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/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/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap
| D |
# FIXED
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/hal_flash_wrapper.c
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/inc/hal_board.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/hal_board_cfg.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/hal_mcu.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/stdint.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/_stdint40.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/sys/stdint.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/sys/cdefs.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/sys/_types.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/machine/_types.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/machine/_stdint.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/sys/_stdint.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/inc/hal_defs.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/hal_types.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/../_common/cc26xx/_hal_types.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_nvic.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_ints.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_types.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/stdbool.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_chip_def.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_gpio.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_memmap.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/systick.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/debug.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/interrupt.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/cpu.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_cpu_scs.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/rom.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/uart.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_uart.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/gpio.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/flash.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_flash.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_aon_sysctl.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_fcfg1.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/ioc.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_ioc.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/icall/src/inc/ICall.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/stdlib.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/_ti_config.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/linkage.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/inc/hal_assert.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/hal_types.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/hal_types.h
HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj: C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/hal_types.h
C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/hal_flash_wrapper.c:
C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/inc/hal_board.h:
C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/hal_board_cfg.h:
C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/hal_mcu.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/stdint.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/_stdint40.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/sys/stdint.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/sys/cdefs.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/sys/_types.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/machine/_types.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/machine/_stdint.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/sys/_stdint.h:
C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/inc/hal_defs.h:
C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/hal_types.h:
C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/../_common/cc26xx/_hal_types.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_nvic.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_ints.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_types.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/stdbool.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_chip_def.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_gpio.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_memmap.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/systick.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/debug.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/interrupt.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/cpu.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_cpu_scs.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/rom.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/uart.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_uart.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/gpio.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/flash.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_flash.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_aon_sysctl.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_fcfg1.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/ioc.h:
C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/inc/hw_ioc.h:
C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/icall/src/inc/ICall.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/stdlib.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/_ti_config.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.0.LTS/include/linkage.h:
C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/inc/hal_assert.h:
C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/hal_types.h:
C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/hal_types.h:
C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/hal_types.h:
| D |
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Vapor.build/Routing/Router+Middleware.swift.o : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Vapor.build/Routing/Router+Middleware~partial.swiftmodule : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Vapor.build/Routing/Router+Middleware~partial.swiftdoc : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
/Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIOHTTP1.build/HTTPPipelineSetup.swift.o : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPPipelineSetup.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPDecoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPEncoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPUpgradeHandler.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPServerPipelineHandler.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPServerProtocolErrorHandler.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPResponseCompressor.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPTypes.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/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIO.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 /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.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/SwiftOnoneSupport.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOZlib/include/c_nio_zlib.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes
/Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIOHTTP1.build/HTTPPipelineSetup~partial.swiftmodule : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPPipelineSetup.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPDecoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPEncoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPUpgradeHandler.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPServerPipelineHandler.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPServerProtocolErrorHandler.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPResponseCompressor.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPTypes.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/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIO.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 /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.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/SwiftOnoneSupport.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOZlib/include/c_nio_zlib.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes
/Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIOHTTP1.build/HTTPPipelineSetup~partial.swiftdoc : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPPipelineSetup.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPDecoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPEncoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPUpgradeHandler.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPServerPipelineHandler.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPServerProtocolErrorHandler.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPResponseCompressor.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOHTTP1/HTTPTypes.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/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIO.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 /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.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/SwiftOnoneSupport.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOZlib/include/c_nio_zlib.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes
| D |
/Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/OctoKit.build/Repositories.swift.o : /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/File.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Time.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Milestone.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Issue.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/String+PercentEncoding.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Label.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Configuration.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/User.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Repositories.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Releases.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Stars.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Parameters.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/URL+URLParameters.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Octokit.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/PullRequest.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Gist.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Review.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Follow.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/PublicKey.swift /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/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/RequestKit.swiftmodule /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/RunnerLib.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Require.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/MarathonCore.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Logger.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Danger.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/DangerShellExecutor.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Files.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/DangerFixtures.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Releases.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/OctoKit.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/RequestKit.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/dangertest.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/ShellOut.build/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/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/OctoKit.build/Repositories~partial.swiftmodule : /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/File.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Time.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Milestone.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Issue.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/String+PercentEncoding.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Label.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Configuration.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/User.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Repositories.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Releases.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Stars.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Parameters.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/URL+URLParameters.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Octokit.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/PullRequest.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Gist.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Review.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Follow.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/PublicKey.swift /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/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/RequestKit.swiftmodule /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/RunnerLib.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Require.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/MarathonCore.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Logger.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Danger.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/DangerShellExecutor.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Files.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/DangerFixtures.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Releases.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/OctoKit.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/RequestKit.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/dangertest.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/ShellOut.build/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/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/OctoKit.build/Repositories~partial.swiftdoc : /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/File.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Time.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Milestone.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Issue.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/String+PercentEncoding.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Label.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Configuration.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/User.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Repositories.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Releases.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Stars.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Parameters.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/URL+URLParameters.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Octokit.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/PullRequest.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Gist.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Review.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Follow.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/PublicKey.swift /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/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/RequestKit.swiftmodule /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/RunnerLib.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Require.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/MarathonCore.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Logger.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Danger.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/DangerShellExecutor.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Files.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/DangerFixtures.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Releases.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/OctoKit.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/RequestKit.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/dangertest.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/ShellOut.build/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/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/OctoKit.build/Repositories~partial.swiftsourceinfo : /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/File.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Time.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Milestone.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Issue.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/String+PercentEncoding.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Label.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Configuration.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/User.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Repositories.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Releases.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Stars.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Parameters.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/URL+URLParameters.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Octokit.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/PullRequest.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Gist.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Review.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/Follow.swift /Users/angelo/Developer/DroppedBits/DangerTest/.build/checkouts/octokit.swift/OctoKit/PublicKey.swift /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/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/RequestKit.swiftmodule /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/RunnerLib.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Require.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/MarathonCore.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Logger.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Danger.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/DangerShellExecutor.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Files.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/DangerFixtures.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/Releases.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/OctoKit.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/RequestKit.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/dangertest.build/module.modulemap /Users/angelo/Developer/DroppedBits/DangerTest/.build/x86_64-apple-macosx/debug/ShellOut.build/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 |
// Copyright Michael D. Parker 2018.
// 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 bindbc.opengl.bind.arb.core_33;
import bindbc.loader;
import bindbc.opengl.config,
bindbc.opengl.context;
import bindbc.opengl.bind.types;
static if(glSupport >= GLSupport.gl33) {
enum has33 = true;
}
else enum has33 = false;
// ARB_occlusion_query2
version(GL_ARB) enum useARBOcclusionQuery2 = true;
else version(GL_ARB_occlusion_query2) enum useARBOcclusionQuery2 = true;
else enum useARBOcclusionQuery2 = has33;
static if(useARBOcclusionQuery2) {
private bool _hasARBOcclusionQuery2;
bool hasARBOcclusionQuery2() { return _hasARBOcclusionQuery2; }
enum uint GL_ANY_SAMPLES_PASSED = 0x8C2F;
}
else enum hasARBOcclusionQuery2 = false;
// ARB_texture_rgb10_a2ui
version(GL_ARB) enum useARBTextureRGB10A2UI = true;
else version(GL_ARB_timer_query) enum useARBTextureRGB10A2UI = true;
else enum useARBTextureRGB10A2UI = has33;
static if(useARBTextureRGB10A2UI) {
enum uint GL_RGB10_A2UI = 0x906F;
private bool _hasARBTextureRGB10A2UI;
bool hasARBTextureRGB10A2UI() { return _hasARBTextureRGB10A2UI; }
}
// ARB_texture_swizzle
version(GL_ARB) enum useARBTextureSwizzle = true;
else version(GL_ARB_texture_swizzle) enum useARBTextureSwizzle = true;
else enum useARBTextureSwizzle = has33;
static if(useARBTextureSwizzle) {
private bool _hasARBTextureSwizzle;
bool hasARBTextureSwizzle() { return _hasARBTextureSwizzle; }
enum : uint {
GL_TEXTURE_SWIZZLE_R = 0x8E42,
GL_TEXTURE_SWIZZLE_G = 0x8E43,
GL_TEXTURE_SWIZZLE_B = 0x8E44,
GL_TEXTURE_SWIZZLE_A = 0x8E45,
GL_TEXTURE_SWIZZLE_RGBA = 0x8E46,
}
}
else enum hasARBTextureSwizzle = false;
// ARB_blend_func_extended
version(GL_ARB) enum useARBBlendFuncExtended = true;
else version(GL_ARB_blend_func_extended) enum useARBBlendFuncExtended = true;
else enum useARBBlendFuncExtended = has33;
static if(useARBBlendFuncExtended) {
private bool _hasARBBlendFuncExtended;
bool hasARBBlendFuncExtended() { return _hasARBBlendFuncExtended; }
enum : uint {
GL_SRC1_COLOR = 0x88F9,
GL_ONE_MINUS_SRC1_COLOR = 0x88FA,
GL_ONE_MINUS_SRC1_ALPHA = 0x88FB,
GL_MAX_DUAL_SOURCE_DRAW_BUFFERS = 0x88FC,
}
extern(System) @nogc nothrow {
alias pglBindFragDataLocationIndexed = void function(GLuint, GLuint, GLuint, const(GLchar)*);
alias pglGetFragDataIndex = GLint function(GLuint, const(GLchar)*);
}
__gshared {
pglBindFragDataLocationIndexed glBindFragDataLocationIndexed;
pglGetFragDataIndex glGetFragDataIndex;
}
private @nogc nothrow
bool loadARBBlendFuncExtended(SharedLib lib, GLSupport contextVersion)
{
lib.bindGLSymbol(cast(void**)&glBindFragDataLocationIndexed, "glBindFragDataLocationIndexed");
lib.bindGLSymbol(cast(void**)&glGetFragDataIndex, "glGetFragDataIndex");
return resetErrorCountGL();
}
}
else enum hasARBBlendFuncExtended = false;
// ARB_sampler_objects
version(GL_ARB) enum useARBSamplerObjects = true;
else version(GL_ARB_sampler_objects) enum useARBSamplerObjects = true;
else enum useARBSamplerObjects = has33;
static if(useARBSamplerObjects) {
private bool _hasARBSamplerObjects;
bool hasARBSamplerObjects() { return _hasARBSamplerObjects; }
enum uint GL_SAMPLER_BINDING = 0x8919;
extern(System) @nogc nothrow {
alias pglGenSamplers = void function(GLsizei, GLuint*);
alias pglDeleteSamplers = void function(GLsizei, const(GLuint)*);
alias pglIsSampler = GLboolean function(GLuint);
alias pglBindSampler = void function(GLuint, GLuint);
alias pglSamplerParameteri = void function(GLuint, GLenum, GLint);
alias pglSamplerParameteriv = void function(GLuint, GLenum, const(GLint)*);
alias pglSamplerParameterf = void function(GLuint, GLenum, GLfloat);
alias pglSamplerParameterfv = void function(GLuint, GLenum, const(GLfloat)*);
alias pglSamplerParameterIiv = void function(GLuint, GLenum, const(GLint)*);
alias pglSamplerParameterIuiv = void function(GLuint, GLenum, const(GLuint)*);
alias pglGetSamplerParameteriv = void function(GLuint, GLenum, GLint*);
alias pglGetSamplerParameterIiv = void function(GLuint, GLenum, GLint*);
alias pglGetSamplerParameterfv = void function(GLuint, GLenum, GLfloat*);
alias pglGetSamplerParameterIuiv = void function(GLuint, GLenum, GLuint*);
}
__gshared {
pglGenSamplers glGenSamplers;
pglDeleteSamplers glDeleteSamplers;
pglIsSampler glIsSampler;
pglBindSampler glBindSampler;
pglSamplerParameteri glSamplerParameteri;
pglSamplerParameteriv glSamplerParameteriv;
pglSamplerParameterf glSamplerParameterf;
pglSamplerParameterfv glSamplerParameterfv;
pglSamplerParameterIiv glSamplerParameterIiv;
pglSamplerParameterIuiv glSamplerParameterIuiv;
pglGetSamplerParameteriv glGetSamplerParameteriv;
pglGetSamplerParameterIiv glGetSamplerParameterIiv;
pglGetSamplerParameterfv glGetSamplerParameterfv;
pglGetSamplerParameterIuiv glGetSamplerParameterIuiv;
}
private @nogc nothrow
bool loadARBSamplerObjects(SharedLib lib, GLSupport contextVersion)
{
lib.bindGLSymbol(cast(void**)&glGenSamplers, "glGenSamplers");
lib.bindGLSymbol(cast(void**)&glDeleteSamplers, "glDeleteSamplers");
lib.bindGLSymbol(cast(void**)&glIsSampler, "glIsSampler");
lib.bindGLSymbol(cast(void**)&glBindSampler, "glBindSampler");
lib.bindGLSymbol(cast(void**)&glSamplerParameteri, "glSamplerParameteri");
lib.bindGLSymbol(cast(void**)&glSamplerParameteriv, "glSamplerParameteriv");
lib.bindGLSymbol(cast(void**)&glSamplerParameterf, "glSamplerParameterf");
lib.bindGLSymbol(cast(void**)&glSamplerParameterfv, "glSamplerParameterfv");
lib.bindGLSymbol(cast(void**)&glSamplerParameterIiv, "glSamplerParameterIiv");
lib.bindGLSymbol(cast(void**)&glSamplerParameterIuiv, "glSamplerParameterIuiv");
lib.bindGLSymbol(cast(void**)&glGetSamplerParameteriv, "glGetSamplerParameteriv");
lib.bindGLSymbol(cast(void**)&glGetSamplerParameterIiv, "glGetSamplerParameterIiv");
lib.bindGLSymbol(cast(void**)&glGetSamplerParameterfv, "glGetSamplerParameterfv");
lib.bindGLSymbol(cast(void**)&glGetSamplerParameterIuiv, "glGetSamplerParameterIuiv");
return resetErrorCountGL();
}
}
else enum hasARBSamplerObjects = false;
// ARB_timer_query
version(GL_ARB) enum useARBTimerQuery = true;
else version(GL_ARB_timer_query) enum useARBTimerQuery = true;
else enum useARBTimerQuery = has33;
static if(useARBTimerQuery) {
private bool _hasARBTimerQuery;
bool hasARBTimerQuery() { return _hasARBTimerQuery; }
enum : uint {
GL_TIME_ELAPSED = 0x88BF,
GL_TIMESTAMP = 0x8E28,
}
extern(System) @nogc nothrow {
alias pglQueryCounter = void function(GLuint, GLenum);
alias pglGetQueryObjecti64v = void function(GLuint, GLenum, GLint64*);
alias pglGetQueryObjectui64v = void function(GLuint, GLenum, GLuint64*);
}
__gshared {
pglQueryCounter glQueryCounter;
pglGetQueryObjecti64v glGetQueryObjecti64v;
pglGetQueryObjectui64v glGetQueryObjectui64v;
}
private @nogc nothrow
bool loadARBTimerQuery(SharedLib lib, GLSupport contextVersion)
{
lib.bindGLSymbol(cast(void**)&glQueryCounter, "glQueryCounter");
lib.bindGLSymbol(cast(void**)&glGetQueryObjecti64v, "glGetQueryObjecti64v");
lib.bindGLSymbol(cast(void**)&glGetQueryObjectui64v, "glGetQueryObjectui64v");
return resetErrorCountGL();
}
}
else enum hasARBTimerQuery = false;
// ARB_vertex_type_2_10_10_10_rev
version(GL_ARB) enum useARBVertexType2101010Rev = true;
else version(GL_ARB_vertex_type_2_10_10_10_rev) enum useARBVertexType2101010Rev = true;
else enum useARBVertexType2101010Rev = has33;
static if(useARBVertexType2101010Rev) {
private bool _hasARBVertexType2101010Rev;
bool hasARBVertexType2101010Rev() { return _hasARBVertexType2101010Rev; }
enum uint GL_INT_2_10_10_10_REV = 0x8D9F;
extern(System) @nogc nothrow {
// A note in derelict says these aren't actually part of the core and doesn't
// load them on Mac. Don't remember why I wrote that, so I need to dig into it.
/*
alias pglVertexP2ui = void function(GLenum, GLuint);
alias pglVertexP2uiv = void function(GLenum, const(GLuint)*);
alias pglVertexP3ui = void function(GLenum, GLuint);
alias pglVertexP3uiv = void function(GLenum, const(GLuint)*);
alias pglVertexP4ui = void function(GLenum, GLuint);
alias pglVertexP4uiv = void function(GLenum, const(GLuint)*);
alias pglTexCoordP1ui = void function(GLenum, GLuint);
alias pglTexCoordP1uiv = void function(GLenum, const(GLuint)*);
alias pglTexCoordP2ui = void function(GLenum, GLuint);
alias pglTexCoordP2uiv = void function(GLenum, const(GLuint)*);
alias pglTexCoordP3ui = void function(GLenum, GLuint);
alias pglTexCoordP3uiv = void function(GLenum, const(GLuint)*);
alias pglTexCoordP4ui = void function(GLenum, GLuint);
alias pglTexCoordP4uiv = void function(GLenum, const(GLuint)*);
alias pglMultiTexCoordP1ui = void function(GLenum, GLenum, GLuint);
alias pglMultiTexCoordP1uiv = void function(GLenum, GLenum, const(GLuint)*);
alias pglMultiTexCoordP2ui = void function(GLenum, GLenum, GLuint);
alias pglMultiTexCoordP2uiv = void function(GLenum, GLenum, const(GLuint)*);
alias pglMultiTexCoordP3ui = void function(GLenum, GLenum, GLuint);
alias pglMultiTexCoordP3uiv = void function(GLenum, GLenum, const(GLuint)*);
alias pglMultiTexCoordP4ui = void function(GLenum, GLenum, GLuint);
alias pglMultiTexCoordP4uiv = void function(GLenum, GLenum, const(GLuint)*);
alias pglNormalP3ui = void function(GLenum, GLuint);
alias pglNormalP3uiv = void function(GLenum, const(GLuint)*);
alias pglColorP3ui = void function(GLenum, GLuint);
alias pglColorP3uiv = void function(GLenum, const(GLuint)*);
alias pglColorP4ui = void function(GLenum, GLuint);
alias pglColorP4uiv = void function(GLenum, const(GLuint)*);
alias pglSecondaryColorP3ui = void function(GLenum, GLuint);
alias pglSecondaryColorP3uiv = void function(GLenum, const(GLuint)*);
*/
alias pglVertexAttribP1ui = void function(GLuint, GLenum, GLboolean, GLuint);
alias pglVertexAttribP1uiv = void function(GLuint, GLenum, GLboolean, const(GLuint)*);
alias pglVertexAttribP2ui = void function(GLuint, GLenum, GLboolean, GLuint);
alias pglVertexAttribP2uiv = void function(GLuint, GLenum, GLboolean, const(GLuint)*);
alias pglVertexAttribP3ui = void function(GLuint, GLenum, GLboolean, GLuint);
alias pglVertexAttribP3uiv = void function(GLuint, GLenum, GLboolean, const(GLuint)*);
alias pglVertexAttribP4ui = void function(GLuint, GLenum, GLboolean, GLuint);
alias pglVertexAttribP4uiv = void function(GLuint, GLenum, GLboolean, const(GLuint)*);
}
__gshared {
/*
pglVertexP2ui glVertexP2ui;
pglVertexP2uiv glVertexP2uiv;
pglVertexP3ui glVertexP3ui;
pglVertexP3uiv glVertexP3uiv;
pglVertexP4ui glVertexP4ui;
pglVertexP4uiv glVertexP4uiv;
pglTexCoordP1ui glTexCoordP1ui;
pglTexCoordP1uiv glTexCoordP1uiv;
pglTexCoordP2ui glTexCoordP2ui;
pglTexCoordP2uiv glTexCoordP2uiv;
pglTexCoordP3ui glTexCoordP3ui;
pglTexCoordP3uiv glTexCoordP3uiv;
pglTexCoordP4ui glTexCoordP4ui;
pglTexCoordP4uiv glTexCoordP4uiv;
pglMultiTexCoordP1ui glMultiTexCoordP1ui;
pglMultiTexCoordP1uiv glMultiTexCoordP1uiv;
pglMultiTexCoordP2ui glMultiTexCoordP2ui;
pglMultiTexCoordP2uiv glMultiTexCoordP2uiv;
pglMultiTexCoordP3ui glMultiTexCoordP3ui;
pglMultiTexCoordP3uiv glMultiTexCoordP3uiv;
pglMultiTexCoordP4ui glMultiTexCoordP4ui;
pglMultiTexCoordP4uiv glMultiTexCoordP4uiv;
pglNormalP3ui glNormalP3ui;
pglNormalP3uiv glNormalP3uiv;
pglColorP3ui glColorP3ui;
pglColorP3uiv glColorP3uiv;
pglColorP4ui glColorP4ui;
pglColorP4uiv glColorP4uiv;
pglSecondaryColorP3ui glSecondaryColorP3ui;
pglSecondaryColorP3uiv glSecondaryColorP3uiv;
*/
pglVertexAttribP1ui glVertexAttribP1ui;
pglVertexAttribP1uiv glVertexAttribP1uiv;
pglVertexAttribP2ui glVertexAttribP2ui;
pglVertexAttribP2uiv glVertexAttribP2uiv;
pglVertexAttribP3ui glVertexAttribP3ui;
pglVertexAttribP3uiv glVertexAttribP3uiv;
pglVertexAttribP4ui glVertexAttribP4ui;
pglVertexAttribP4uiv glVertexAttribP4uiv;
}
private @nogc nothrow
bool loadARBVertexType2101010Rev(SharedLib lib, GLSupport contextVersion)
{
lib.bindGLSymbol(cast(void**)&glVertexAttribP1ui, "glVertexAttribP1ui");
lib.bindGLSymbol(cast(void**)&glVertexAttribP1uiv, "glVertexAttribP1uiv");
lib.bindGLSymbol(cast(void**)&glVertexAttribP2ui, "glVertexAttribP2ui");
lib.bindGLSymbol(cast(void**)&glVertexAttribP2uiv, "glVertexAttribP2uiv");
lib.bindGLSymbol(cast(void**)&glVertexAttribP3ui, "glVertexAttribP3ui");
lib.bindGLSymbol(cast(void**)&glVertexAttribP3uiv, "glVertexAttribP3uiv");
lib.bindGLSymbol(cast(void**)&glVertexAttribP4ui, "glVertexAttribP4ui");
lib.bindGLSymbol(cast(void**)&glVertexAttribP4uiv, "glVertexAttribP4uiv");
return resetErrorCountGL();
}
}
else enum hasARBVertexType2101010Rev = false;
package(bindbc.opengl) @nogc nothrow
bool loadARB33(SharedLib lib, GLSupport contextVersion)
{
static if(has33) {
if(contextVersion >= GLSupport.gl33) {
_hasARBOcclusionQuery2 = true;
_hasARBTextureRGB10A2UI = true;
_hasARBTextureSwizzle = true;
bool ret = true;
ret = _hasARBBlendFuncExtended = lib.loadARBBlendFuncExtended(contextVersion);
ret = _hasARBSamplerObjects = lib.loadARBSamplerObjects(contextVersion);
ret = _hasARBTimerQuery = lib.loadARBTimerQuery(contextVersion);
ret = _hasARBVertexType2101010Rev = lib.loadARBVertexType2101010Rev(contextVersion);
return ret;
}
}
static if(useARBOcclusionQuery2) _hasARBOcclusionQuery2 =
hasExtension(contextVersion, "GL_ARB_occlusion_query2");
static if(useARBTextureRGB10A2UI) _hasARBTextureRGB10A2UI =
hasExtension(contextVersion, "GL_ARB_texture_rgb10_a2ui");
static if(useARBTextureSwizzle) _hasARBTextureSwizzle =
hasExtension(contextVersion, "GL_ARB_texture_swizzle");
static if(useARBBlendFuncExtended) _hasARBBlendFuncExtended =
hasExtension(contextVersion, "GL_ARB_blend_func_extended") &&
lib.loadARBBlendFuncExtended(contextVersion);
static if(useARBSamplerObjects) _hasARBSamplerObjects =
hasExtension(contextVersion, "GL_ARB_sampler_objects") &&
lib.loadARBSamplerObjects(contextVersion);
static if(useARBTimerQuery) _hasARBTimerQuery =
hasExtension(contextVersion, "GL_ARB_timer_query") &&
lib.loadARBTimerQuery(contextVersion);
static if(useARBVertexType2101010Rev) _hasARBVertexType2101010Rev =
hasExtension(contextVersion, "GL_ARB_vertex_type_2_10_10_10_rev") &&
lib.loadARBVertexType2101010Rev(contextVersion);
return true;
} | D |
/**
Copyright: Copyright (c) 2016-2018 Andrey Penechko.
License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Andrey Penechko.
*/
module datadriven.storage;
import datadriven.api;
import voxelman.log;
import voxelman.container.buffer;
import voxelman.container.hash.map;
import voxelman.container.hash.set;
import voxelman.serialization.hashtable;
struct HashmapComponentStorage(_ComponentType)
{
private HashMap!(EntityId, ComponentType, EntityId.max, EntityId.max-1) components;
alias ComponentType = _ComponentType;
void set(EntityId eid, ComponentType component)
{
components[eid] = component;
}
void remove(EntityId eid)
{
components.remove(eid);
}
void removeAll()
{
components.clear();
}
size_t length() @property
{
return components.length;
}
ComponentType* get(EntityId eid)
{
return eid in components;
}
ComponentType* getOrCreate(EntityId eid, ComponentType defVal = ComponentType.init)
{
return components.getOrCreate(eid, defVal);
}
auto byKey() {
return components.byKey;
}
int opApply(scope int delegate(in EntityId, ref ComponentType) del) {
return components.opApply(del);
}
void serialize(Buffer!ubyte* sink)
{
serializeMap(components, sink);
}
void serializePartial(Buffer!ubyte* sink, HashSet!EntityId externalEntities)
{
serializeMapPartial(components, sink, externalEntities);
}
void deserialize(ubyte[] input)
{
deserializeMap(components, input);
}
}
static assert(isComponentStorage!(HashmapComponentStorage!int, int));
struct EntitySet
{
private HashSet!EntityId entities;
void set(EntityId eid)
{
entities.put(eid);
}
void remove(EntityId eid)
{
entities.remove(eid);
}
void removeAll()
{
entities.clear();
}
size_t length() @property
{
return entities.length;
}
bool get(EntityId eid)
{
return eid in entities;
}
int opApply(scope int delegate(in EntityId) del) {
return entities.opApply(del);
}
void serialize(Buffer!ubyte* sink)
{
serializeSet(entities, sink);
}
void serializePartial(Buffer!ubyte* sink, HashSet!EntityId externalEntities)
{
serializeSetPartial(entities, sink, externalEntities);
}
void deserialize(ubyte[] input)
{
deserializeSet(entities, input);
}
}
static assert(isEntitySet!(EntitySet));
| D |
module ice.natinfo;
enum NATType
{
Uninit = -4, // not stuntest.
Blocked = -3,
SymmetricUDPFirewall = -2,
ChangedAddressError = -1, // error at stuntest on Changed IP and Port;
OpenInternet = 0,
FullCone = 1,
RestrictNAT = 2,
RestrictPortNAT = 3,
SymmetricNAT = 4,
UnknownNAT = 5
}
struct NATInfo
{
NATType natType = NATType.Uninit;
string externalIp;
ushort externalPort = 0;
string sourceIp;
ushort sourcePort = 0;
string changedIp;
ushort changedPort = 0;
string localIp;
ushort localPort = 0;
void reset()
{
natType = NATType.Uninit;
externalIp = string.init;
externalPort = 0;
sourceIp = string.init;
sourcePort = 0;
changedIp = string.init;
changedPort = 0;
localIp = "0.0.0.0";
localPort = 0;
}
@property bool natUsable()
{
int type = natType;
return ((type >= 0) && (type <= 4));
}
bool canMakeHole(NATInfo poInfo)
{
if (!natUsable || !poInfo.natUsable)
return false;
if (natType == NATType.RestrictPortNAT)
{
if (poInfo.natType == NATType.SymmetricNAT)
return false;
}
if (natType == NATType.SymmetricNAT)
{
if ((poInfo.natType == NATType.RestrictPortNAT) || (poInfo.natType == NATType.SymmetricNAT))
return false;
}
return true;
}
// string toString()
// {
// import std.conv;
// return "{'ExternalIP': '" ~ externalIp ~ "', 'ExternalPort': " ~ externalPort.to!string ~ ", 'ChangedPort': " ~ changedPort.to!string ~ ", 'SourcePort': " ~ sourcePort.to!string ~ ", 'SourceIP': '" ~ sourceIp ~ "', 'ChangedIP': '" ~ changedIp ~ "'}";
// }
} | D |
/Users/shawngong/Centa/.build/debug/Fluent.build/Query/Limit.swift.o : /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Database/Database.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Database/Driver.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Entity/Entity.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Memory/Memory+Filters.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Memory/Memory+Group.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Memory/Memory+Sort.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Memory/MemoryDriver.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Preparation/Database+Preparation.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Preparation/Migration.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Preparation/Preparation.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Preparation/PreparationError.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Action.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Comparison.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Filter.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Group.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Join.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Limit.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Query.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Scope.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Sort.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Relations/Children.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Relations/Parent.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Relations/RelationError.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Relations/Siblings.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Schema/Database+Schema.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Schema/Schema+Creator.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Schema/Schema+Field.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Schema/Schema+Modifier.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Schema/Schema.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/SQL/SQL+Query.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/SQL/SQL+Schema.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/SQL/SQL.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/SQL/SQLSerializer.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Utilities/Fluent+Node.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/shawngong/Centa/.build/debug/CLibreSSL.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/shawngong/Centa/.build/debug/Node.swiftmodule /Users/shawngong/Centa/.build/debug/PathIndexable.swiftmodule /Users/shawngong/Centa/.build/debug/Polymorphic.swiftmodule
/Users/shawngong/Centa/.build/debug/Fluent.build/Limit~partial.swiftmodule : /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Database/Database.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Database/Driver.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Entity/Entity.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Memory/Memory+Filters.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Memory/Memory+Group.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Memory/Memory+Sort.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Memory/MemoryDriver.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Preparation/Database+Preparation.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Preparation/Migration.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Preparation/Preparation.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Preparation/PreparationError.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Action.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Comparison.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Filter.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Group.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Join.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Limit.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Query.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Scope.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Sort.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Relations/Children.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Relations/Parent.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Relations/RelationError.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Relations/Siblings.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Schema/Database+Schema.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Schema/Schema+Creator.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Schema/Schema+Field.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Schema/Schema+Modifier.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Schema/Schema.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/SQL/SQL+Query.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/SQL/SQL+Schema.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/SQL/SQL.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/SQL/SQLSerializer.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Utilities/Fluent+Node.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/shawngong/Centa/.build/debug/CLibreSSL.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/shawngong/Centa/.build/debug/Node.swiftmodule /Users/shawngong/Centa/.build/debug/PathIndexable.swiftmodule /Users/shawngong/Centa/.build/debug/Polymorphic.swiftmodule
/Users/shawngong/Centa/.build/debug/Fluent.build/Limit~partial.swiftdoc : /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Database/Database.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Database/Driver.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Entity/Entity.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Memory/Memory+Filters.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Memory/Memory+Group.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Memory/Memory+Sort.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Memory/MemoryDriver.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Preparation/Database+Preparation.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Preparation/Migration.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Preparation/Preparation.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Preparation/PreparationError.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Action.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Comparison.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Filter.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Group.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Join.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Limit.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Query.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Scope.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Query/Sort.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Relations/Children.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Relations/Parent.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Relations/RelationError.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Relations/Siblings.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Schema/Database+Schema.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Schema/Schema+Creator.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Schema/Schema+Field.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Schema/Schema+Modifier.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Schema/Schema.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/SQL/SQL+Query.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/SQL/SQL+Schema.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/SQL/SQL.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/SQL/SQLSerializer.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Utilities/Fluent+Node.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/shawngong/Centa/.build/debug/CLibreSSL.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/shawngong/Centa/.build/debug/Node.swiftmodule /Users/shawngong/Centa/.build/debug/PathIndexable.swiftmodule /Users/shawngong/Centa/.build/debug/Polymorphic.swiftmodule
| D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.