code
stringlengths
3
10M
language
stringclasses
31 values
module radarwidget; import utils.misc; import qui.qui; import std.math; import std.conv : to; /// block character, top filled private const dchar BLOCKCHAR_TOP = '▀'; /// block character, bottom filled private const dchar BLOCKCHAR_BOTTOM = '▄'; /// block character, all filled private const dchar BLOCKCHAR_BLOCK = '█'; /// A basic radar widget that can display scan lines and class RadarWidget : QWidget{ private: /// stores angles of scan lines (unitAngle as unit). This is only used to draw a line on the rader uinteger[] _scanLineAngles; /// unit angle, i.e a value for distance is measured every unit angle (degrees) uinteger _unitAngle; /// stores distance at every unit angle (starting from 0 unitAngle) float[] _distances; /// stores the max distance to display float _maxDistance; /// the diameter of radar circle (measured as squares, so in height, this is counted as half). /// This is always an odd number, calculated in resizeEvent uinteger _diameter; /// the origin of the rader circle. (measured as squares) uinteger _origin; protected: override void update(){ // I know this code is very un-optimized, rn, I just want it to work // first, draw bgColor by any cells that arent occupied by a square with length=_diameter if (_size.height*2 != _size.width){ if (_size.height*2 > _size.width){ // have to fill bottom cells _display.cursor = Position(0, (_diameter)/2); _display.fill(' ', clearColor, bgColor); }else{ // have to fill right side foreach (y; 0 .. _size.height){ _display.cursor = Position(_diameter-1, y); _display.fillLine(' ', clearColor, bgColor); } } } // now draw the circle and fill black in the square area circle resides in immutable uinteger radius = (_diameter+1)/2; immutable uinteger radiusSqr = radius*radius; _display.colors(clearColor, bgColor); foreach (actualY; 0 .. radius){ dchar[] line; line.length = _diameter; line[] = ' '; foreach (y; actualY*2 .. (actualY*2) + 2){ immutable uinteger xDist = cast(immutable uinteger)sqrt(to!float(radiusSqr - pow(radius - y, 2))); if (xDist == 0) continue; if (y%2 == 0){ line[radius - xDist .. (radius-1) + xDist] = BLOCKCHAR_TOP; continue; } foreach (uinteger x; radius - xDist .. (radius-1) + xDist){ if (x >= line.length) break; if (line[x] == BLOCKCHAR_TOP) line[x] = BLOCKCHAR_BLOCK; else line[x] = BLOCKCHAR_BOTTOM; } } _display.cursor = Position(0, actualY); _display.write(cast(dstring)line); } // now draw scan lines } override void resizeEvent(){ _diameter = _size.width; if (_size.height*2 < _diameter) _diameter = _size.height*2; _diameter -= (_diameter+1) % 2; _origin = (_diameter / 2) + 1; requestUpdate(); } public: /// Color of scan line, obstacle, clear space, & background color Color scanLineColor, obsColor, clearColor, bgColor; /// Constructor. /// `scanLinesCount` is the number of scan lines to be displayed /// `maxDiantance` is the distance of object at edge of the radar /// `unitAngle` is used as the unit angle instead of the value in degrees. (i.e, 1 units = 1*unitAngle degrees). /// **This must be a factor of 360** /// /// Throws: Exception if `unitAngle` is not a factor of 360 this(uinteger scanLinesCount = 1, float maxDistance = 10, ubyte unitAngle = 5){ _scanLineAngles.length = scanLinesCount; _unitAngle = unitAngle; if (360 % _unitAngle > 0) throw new Exception("unitAngle is not a factor of 360"); _distances.length = 360/_unitAngle; scanLineColor = Color.blue; obsColor = Color.red; clearColor = Color.green; bgColor = Color.black; } /// Set angle of a scan line. /// /// angle is in `unitAngle` /// /// Throws: Exception if scan line does not exist void setScanLineAngle(uinteger scanLine, uinteger angle){ if (scanLine >= _scanLineAngles.length) throw new Exception("scan line does not exist"); _scanLineAngles[scanLine] = angle; requestUpdate(); } /// Sets the distance to obstacle at an angle /// /// angle is in `unitAngle` void setDistance(uinteger angle, float distance){ if (angle > _distances.length) angle = angle % _distances.length; _distances[angle] = distance; requestUpdate(); } }
D
a person with an unusual or odd personality a person of a specified kind (usually with many eccentricities conspicuously or grossly unconventional or unusual not having a common center
D
import numeric.autodiff; import numeric.math; import numeric.functions; import std.stdio; import std.datetime; import std.random; void main() { writeln(cast(Duration)testRosenBrockFunction!(double, 100, 10000)()); } Variable!(T, N)[] makeRandomArray(T, size_t N)() { alias Var = Variable!(T, N); auto xs = new Var[N]; foreach (i, ref x; xs) x = Var(uniform(-1.0, 1.0), i); return xs; } TickDuration testRosenBrockFunction(TFloat, size_t Dim, size_t Loop)() { auto xs = makeRandomArray!(TFloat, 100)(); RosenBrockFunction f; StopWatch sw; sw.start(); foreach (_; 0 .. Loop) { auto y = f(xs); } sw.stop(); return sw.peek(); }
D
// ************************ EXIT ************************** instance VLK_585_Aleph_Exit(C_INFO) { npc = VLK_585_Aleph; nr = 999; condition = VLK_585_Aleph_Exit_Condition; information = VLK_585_Aleph_Exit_Info; important = 0; permanent = 1; description = DIALOG_ENDE; }; func int VLK_585_Aleph_Exit_Condition() { return 1; }; func void VLK_585_Aleph_Exit_Info() { if (!Npc_KnowsInfo(hero,GRD_261_Brandick_ALEPH)) { // AI_Output(other,self,"VLK_585_Aleph_Exit_Info_15_01"); //Good luck! // AI_Output(other,self,"VLK_585_Aleph_Exit_Info_15_01"); //Viel Glück noch. AI_Output(other,self,"VLK_585_Aleph_Exit_Info_15_01"); //Hodně štěstí! // AI_Output(self,other,"VLK_585_Aleph_Exit_Info_05_02"); //Well, you know where to find me. // AI_Output(self,other,"VLK_585_Aleph_Exit_Info_05_02"); //Du weißt ja, wo du mich findest. AI_Output(self,other,"VLK_585_Aleph_Exit_Info_05_02"); //Dobře, víš kde mě najdeš. }; AI_StopProcessInfos(self); }; // ***************** ALEPH IST EIN FAULPELZ ***************************** instance VLK_585_Aleph_CLEVER(C_INFO) { npc = VLK_585_Aleph; condition = VLK_585_Aleph_CLEVER_Condition; information = VLK_585_Aleph_CLEVER_Info; important = 1; permanent = 0; }; func int VLK_585_Aleph_CLEVER_Condition() { return 1; }; func void VLK_585_Aleph_CLEVER_Info() { // AI_Output(self,other,"VLK_585_Aleph_CLEVER_Info_05_01"); //Hehehe, the guards will never get me! // AI_Output(self,other,"VLK_585_Aleph_CLEVER_Info_05_01"); //Hehehe, die Wachen erwischen mich nie! AI_Output(self,other,"VLK_585_Aleph_CLEVER_Info_05_01"); //Hehehe, stráže mě nikdy nedostanou! }; // ***************** ALEPH ERKLÄRT SEINE ARBEITSHALTUNG ***************************** instance VLK_585_Aleph_GUARDS(C_INFO) { npc = VLK_585_Aleph; condition = VLK_585_Aleph_GUARDS_Condition; information = VLK_585_Aleph_GUARDS_Info; important = 0; permanent = 0; // description = "What do you mean?"; // description = "Wie meinst du das?"; description = "Jak to myslíš?"; }; func int VLK_585_Aleph_GUARDS_Condition() { if (Npc_KnowsInfo(hero,VLK_585_Aleph_CLEVER)) { return 1; }; }; func void VLK_585_Aleph_GUARDS_Info() { // AI_Output(other,self,"VLK_585_Aleph_GUARDS_Info_15_01"); //What do you mean? // AI_Output(other,self,"VLK_585_Aleph_GUARDS_Info_15_01"); //Wie meinst du das? AI_Output(other,self,"VLK_585_Aleph_GUARDS_Info_15_01"); //Jak to myslíš? // AI_Output(self,other,"VLK_585_Aleph_GUARDS_Info_05_02"); //I only work when the guards are nearby or they can see me. Otherwise I just hang around here. // AI_Output(self,other,"VLK_585_Aleph_GUARDS_Info_05_02"); //Ich arbeite nur, wenn Wachen in der Nähe sind oder mich sehen können. Ansonsten häng' ich hier meine Zeit ab. AI_Output(self,other,"VLK_585_Aleph_GUARDS_Info_05_02"); //Pracuju jen tehdy, když jsou stráže blízko nebo když mě vidí. Jinak se jenom procházím. // AI_Output(other,self,"VLK_585_Aleph_GUARDS_Info_15_03"); //Don't they get suspicious? // AI_Output(other,self,"VLK_585_Aleph_GUARDS_Info_15_03"); //Werden sie nicht misstrauisch? AI_Output(other,self,"VLK_585_Aleph_GUARDS_Info_15_03"); //Nemají podezření? // AI_Output(self,other,"VLK_585_Aleph_GUARDS_Info_05_04"); //Yeah, well of course, I dig less ore than all the others do. It's not always enough, so I have to do a bit of trading. // AI_Output(self,other,"VLK_585_Aleph_GUARDS_Info_05_04"); //Nun ja, ich schürfe natürlich weniger Erz als alle anderen. Es reicht natürlich nicht immer, da muss ich halt mal ein bisschen geschickt tauschen. AI_Output(self,other,"VLK_585_Aleph_GUARDS_Info_05_04"); //Jo, jistě, natěžím méně rudy než ostatní. Samozřejmě to není to nikdy dost, a tak musím trošku obchodovat. // AI_Output(self,other,"VLK_585_Aleph_GUARDS_Info_05_05"); //I keep my ears open, so I get to know many useful things. You don't happen to have some ore on you? Let's say about 10 ore? // AI_Output(self,other,"VLK_585_Aleph_GUARDS_Info_05_05"); //Ich halt immer meine Ohren offen und bekomme viele nützliche Dinge mit. Du hast nicht zufällig etwas Erz bei dir? So ungefähr 10 Erz? AI_Output(self,other,"VLK_585_Aleph_GUARDS_Info_05_05"); //Jsem jedno ucho, takže se dozvídám užitečné informace. Nemáš náhodou sebou nějakou rudu? Řekněme 10 nugetů? Npc_ExchangeRoutine(self,"BUSY"); var C_Npc Brandick; Brandick = Hlp_GetNpc(GRD_261_Brandick); Npc_ExchangeRoutine(Brandick,"WATCH"); AI_ContinueRoutine(Brandick); // TEST!!! }; // ***************** ALEPH BIETET INFO ***************************** instance VLK_585_Aleph_INFO(C_INFO) { npc = VLK_585_Aleph; condition = VLK_585_Aleph_INFO_Condition; information = VLK_585_Aleph_INFO_Info; important = 0; permanent = 0; // description = "(give 10 ore)"; // description = "(10 Erz geben)"; description = "Dobře, tady máš 10 nugetů."; //#COMMENT Zvyšuje immersion:tm: a ani není potřeba přidávat závorku s cenou, ta je přímo v dialogu :ok_hand: }; func int VLK_585_Aleph_INFO_Condition() { if ((Npc_HasItems(hero,ItMinugget)) >= 10 && (Npc_KnowsInfo(hero,VLK_585_Aleph_GUARDS))) { return 1; }; }; func void VLK_585_Aleph_INFO_Info() { // AI_Output(other,self,"VLK_585_Aleph_INFO_Info_15_01"); //Alright, here's 10 ore for you. // AI_Output(other,self,"VLK_585_Aleph_INFO_Info_15_01"); //In Ordnung, hier sind 10 Erz für dich. AI_Output(other,self,"VLK_585_Aleph_INFO_Info_15_01"); //Dobře, tady máš 10 nugetů. // AI_Output(self,other,"VLK_585_Aleph_INFO_Info_05_02"); //Thanks. If you go to the main shaft and follow the catwalks further down, you'll soon get to two side caves. // AI_Output(self,other,"VLK_585_Aleph_INFO_Info_05_02"); //Danke. Wenn du zurück zum Hauptschacht gehst und den Stegen weiter nach unten folgst, kommst du bald an zwei Nebenhöhlen. AI_Output(self,other,"VLK_585_Aleph_INFO_Info_05_02"); //Díky. Když půjdeš do hlavní šachty a půjdeš po lávkách pořád dolů, dostaneš se za chvíli do dvojité vedlejší jeskyně. // AI_Output(self,other,"VLK_585_Aleph_INFO_Info_05_03"); //There's a guard in the second one, and there's also an old masher. // AI_Output(self,other,"VLK_585_Aleph_INFO_Info_05_03"); //In der zweiten Höhle steht eine Wache. Da steht auch ein alter Stampfer. AI_Output(self,other,"VLK_585_Aleph_INFO_Info_05_03"); //V té druhé je stráž a také tam stojí stará drtička. // AI_Output(self,other,"VLK_585_Aleph_INFO_Info_05_04"); //There's a healing potion lying about somewhere, but be careful and beware of the crawlers! // AI_Output(self,other,"VLK_585_Aleph_INFO_Info_05_04"); //Dort liegt noch irgendwo ein Heiltrank, aber sei vorsichtig und nimm dich vor den Crawlern in Acht! AI_Output(self,other,"VLK_585_Aleph_INFO_Info_05_04"); //Povaluje se tam někde hojivý lektvar, ale měj se na pozoru před důlními červy! // AI_Output(self,other,"VLK_585_Aleph_INFO_Info_05_05"); //And if you need or hear something, come back to me, I'm sure I'll be able to help.... // AI_Output(self,other,"VLK_585_Aleph_INFO_Info_05_05"); //Und wenn du mal wieder was brauchst oder hörst, dann komm ruhig zu mir, ich kann dir bestimmt weiterhelfen ... AI_Output(self,other,"VLK_585_Aleph_INFO_Info_05_05"); //A kdybys něco potřeboval, nebo něco slyšel, vrať se zpátky ke mně, určitě ti budu schopen pomoci... B_GiveInvItems(hero,other,ItMiNugget,10); }; // ***************** WIRD ALEPH ANGESCHWÄRZT IST ER SAUER***************************** instance VLK_585_Aleph_ANGRY(C_INFO) { npc = VLK_585_Aleph; condition = VLK_585_Aleph_ANGRY_Condition; information = VLK_585_Aleph_ANGRY_Info; important = 1; permanent = 0; }; func int VLK_585_Aleph_ANGRY_Condition() { if (Npc_KnowsInfo(hero,GRD_261_Brandick_ALEPH)) { return 1; }; }; func void VLK_585_Aleph_ANGRY_Info() { // AI_Output(self,other,"VLK_585_Aleph_ANGRY_Info_05_01"); //You ran me down with Brandick? Get lost! // AI_Output(self,other,"VLK_585_Aleph_ANGRY_Info_05_01"); //Du hast mich bei Brandick angeschwärzt? Mach, dass du wegkommst! AI_Output(self,other,"VLK_585_Aleph_ANGRY_Info_05_01"); //Tys mě prozradil Brandickovi? Ztrať se! AI_StopProcessInfos(self); //#Needs_Attention toto nema v hre ziadny zmysel :) Npc_SetTempAttitude(self,ATT_ANGRY); }; //***************** LOCKPICKS***************************** instance VLK_585_Aleph_KEY(C_INFO) { npc = VLK_585_Aleph; condition = VLK_585_Aleph_KEY_Condition; information = VLK_585_Aleph_KEY_Info; important = 0; permanent = 0; // description = "Have you got any other useful information?"; // description = "Hast du noch ein paar nützliche Informationen?"; description = "Máš ještě nějaké užitečné informace?"; }; func int VLK_585_Aleph_KEY_Condition() { if ((!Npc_KnowsInfo(hero,GRD_261_Brandick_ALEPH)) && (Npc_KnowsInfo(hero,VLK_585_Aleph_INFO))) { return 1; }; }; func void VLK_585_Aleph_KEY_Info() { // AI_Output(other,self,"VLK_585_Aleph_KEY_Info_15_01"); //Have you got any other useful information? // AI_Output(other,self,"VLK_585_Aleph_KEY_Info_15_01"); //Hast du noch ein paar nützliche Informationen? AI_Output(other,self,"VLK_585_Aleph_KEY_Info_15_01"); //Máš ještě nějaké užitečné informace? // AI_Output(self,other,"VLK_585_Aleph_KEY_Info_05_02"); //Sure, have you got 10 ore? // AI_Output(self,other,"VLK_585_Aleph_KEY_Info_05_02"); //Na klar, hast du noch 10 Erz? AI_Output(self,other,"VLK_585_Aleph_KEY_Info_05_02"); //Jistě, máš 10 nugetů? }; //***************** LOCKPICKS***************************** instance VLK_585_Aleph_GLEN(C_INFO) { npc = VLK_585_Aleph; condition = VLK_585_Aleph_GLEN_Condition; information = VLK_585_Aleph_GLEN_Info; important = 0; permanent = 0; // description = "(give 10 ore)"; // description = "(10 Erz geben)"; description = "Za tuhle rudu očekávám dobré informace! (10 nugetů)"; }; func int VLK_585_Aleph_GLEN_Condition() { if (Npc_HasItems(hero,ItMinugget)) >= 10 && (Npc_KnowsInfo(hero,VLK_585_Aleph_KEY)) { return 1; }; }; func void VLK_585_Aleph_GLEN_Info() { // AI_Output(other,self,"VLK_585_Aleph_GLEN_Info_15_01"); //I expect good information for my ore! // AI_Output(other,self,"VLK_585_Aleph_GLEN_Info_15_01"); //Für mein Erz erwarte ich auch eine gute Information! AI_Output(other,self,"VLK_585_Aleph_GLEN_Info_15_01"); //Za tuhle rudu očekávám dobré informace! // AI_Output(self,other,"VLK_585_Aleph_GLEN_Info_05_02"); //There's loads of locked chests here. Glen, the digger at the top, can get you a couple of lockpicks. // AI_Output(self,other,"VLK_585_Aleph_GLEN_Info_05_02"); //Hier gibt's eine Menge verschlossener Truhen. Glen, der Buddler, der ganz oben steht, kann dir ein paar Dietriche besorgen. AI_Output(self,other,"VLK_585_Aleph_GLEN_Info_05_02"); //Je tu hromada zamčených truhel. Glen, kopáč, který těží úplně nahoře, ti může obstarat pár paklíčů. B_GiveInvItems(hero,self,ItMinugget,10); }; //***************** LAGERSCHUPPENSCHLÜSSEL***************************** func void B_Aleph_StorageShedKey() { // B_LogEntry(CH2_StorageShed,"Aleph sold me the key to the chests in the store shed!"); // B_LogEntry(CH2_StorageShed,"Aleph hat mir den Schlüssel für die Truhen im Lagerschuppen verkauft!"); B_LogEntry(CH2_StorageShed,"Aleph mi prodal klíč od truhlic ve skladu!"); }; /* #Bugfix #5 DIA_VLK_585_Aleph.d Fixing several issues with dialogues VLK_585_Aleph_SCHUPPEN, VLK_585_Aleph_DIRTY, they are changing permanent property (permanent property can't be changed) and allow item duplication for ItKe_OM_03, Staerkering. Problem #1 - incorrect use of permanent property both instances VLK_585_Aleph_SCHUPPEN and VLK_585_Aleph_DIRTY have oCInfo.permanent = 0 - when you talk to Aleph and you don't have enough ore to buy key, script changes permanent to 1 - but this does not work, permanent value is not saved in game save, if you save/reload dialogues wont be available Problem #2 - item duplication NPC VLK_585_Aleph has in its inventory both items: ItKe_OM_03, Staerkering - if you beat him - take these 2 items, then in this dialog VLK_585_Aleph_SCHUPPEN both will be duplicated and given to player - if you tell Brandick about Aleph, dialog VLK_585_Aleph_DIRTY will be available - it will create 1 more key ItKe_OM_03 Solution Change both VLK_585_Aleph_SCHUPPEN, VLK_585_Aleph_DIRTY oCInfo.permanent = 1 - add condition, in which dialogues will be available only when Aleph has the key in his inventory */ instance VLK_585_Aleph_SCHUPPEN(C_INFO) { npc = VLK_585_Aleph; condition = VLK_585_Aleph_SCHUPPEN_Condition; information = VLK_585_Aleph_SCHUPPEN_Info; important = 0; //*permanent = 0; permanent = 1; // description = "Do you know anything about the key to the chests in the storage shed??"; // description = "Weißt du was über den Schlüssel für die Truhen im Lagerschuppen?"; description = "Víš něco o klíči od těch truhel ve skladu?"; }; func int VLK_585_Aleph_SCHUPPEN_Condition() { if (Npc_KnowsInfo(hero,GRD_271_ULBERT_DRUNK)) && ( !Npc_KnowsInfo(hero,GRD_261_Brandick_ALEPH)) { //*return 1; if (NPC_HasItems (self, ItKe_OM_03) > 0) { return 1; }; }; }; func void VLK_585_Aleph_SCHUPPEN_Info() { // AI_Output(other,self,"VLK_585_Aleph_SCHUPPEN_Info_15_01"); //Do you know anything about the key for the chests in the storage shed?? // AI_Output(other,self,"VLK_585_Aleph_SCHUPPEN_Info_15_01"); //Weißt du was über den Schlüssel für die Truhen im Lagerschuppen? AI_Output(other,self,"VLK_585_Aleph_SCHUPPEN_Info_15_01"); //Víš něco o klíči od těch truhel ve skladu? // AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_Info_05_02"); //Well, that depends... // AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_Info_05_02"); //Nun, das kommt ganz darauf an ... AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_Info_05_02"); //No, to záleží na... // AI_Output(other,self,"VLK_585_Aleph_SCHUPPEN_Info_15_03"); //On how much ore I'll give you? // AI_Output(other,self,"VLK_585_Aleph_SCHUPPEN_Info_15_03"); //Darauf, wieviel Erz ich dir gebe? AI_Output(other,self,"VLK_585_Aleph_SCHUPPEN_Info_15_03"); //Na tom, kolik nugetů ti dám? // AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_Info_05_04"); //You learn fast. // AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_Info_05_04"); //Du lernst schnell. AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_Info_05_04"); //Učíš se rychle. Info_ClearChoices(VLK_585_Aleph_SCHUPPEN); Info_AddChoice(VLK_585_Aleph_SCHUPPEN,DIALOG_BACK, VLK_585_Aleph_SCHUPPEN_Back); // Info_AddChoice(VLK_585_Aleph_SCHUPPEN,"Pay 50 ore.",VLK_585_Aleph_SCHUPPEN_50); // Info_AddChoice(VLK_585_Aleph_SCHUPPEN,"50 Erz zahlen",VLK_585_Aleph_SCHUPPEN_50); Info_AddChoice(VLK_585_Aleph_SCHUPPEN,"50 nugetů by ti mělo víc než stačit!",VLK_585_Aleph_SCHUPPEN_50); // Info_AddChoice(VLK_585_Aleph_SCHUPPEN,"Pay 30 ore.",VLK_585_Aleph_SCHUPPEN_30); // Info_AddChoice(VLK_585_Aleph_SCHUPPEN,"30 Erz zahlen",VLK_585_Aleph_SCHUPPEN_30); Info_AddChoice(VLK_585_Aleph_SCHUPPEN,"30 nugetů by mělo stačit.",VLK_585_Aleph_SCHUPPEN_30); // Info_AddChoice(VLK_585_Aleph_SCHUPPEN,"Pay 15 ore.",VLK_585_Aleph_SCHUPPEN_15); // Info_AddChoice(VLK_585_Aleph_SCHUPPEN,"15 Erz zahlen",VLK_585_Aleph_SCHUPPEN_15); Info_AddChoice(VLK_585_Aleph_SCHUPPEN,"Bude ti 15 nugetů stačit?",VLK_585_Aleph_SCHUPPEN_15); }; func void VLK_585_Aleph_SCHUPPEN_50() { if (Npc_HasItems(hero,ItMiNugget) >= 50) { // AI_Output(other,self,"VLK_585_Aleph_SCHUPPEN_50_15_01"); //50 ore should be more than enough for you! // AI_Output(other,self,"VLK_585_Aleph_SCHUPPEN_50_15_01"); //50 Erz sind mehr als genug für dich! AI_Output(other,self,"VLK_585_Aleph_SCHUPPEN_50_15_01"); //50 nugetů by ti mělo víc než stačit! //--> #Bugfix #5 //We will add 1 more condition here - only when Aleph has both key and ring he can tell you that he gives you both (obviously :) if (NPC_HasItems (self, Staerkering) > 0) { // AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_50_05_02"); //Very generous! Here's the key. And take this ring as well. It's always brought good luck to me. // AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_50_05_02"); //Überaus großzügig. Hier ist der Schlüssel. Und nimm auch diesen Ring. Mir hat er immer Glück gebracht. AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_50_05_02"); //Jak šlechetné! Tady je klíč. A ten prsten si vezmi taky. Mně vždycky přináší štěstí. //*CreateInvItems(self,ItKe_OM_03,1); // nur für die korrekte Textausgaben!!! //*B_GiveInvItems(self,hero,ItKe_OM_03, 2); //*Npc_RemoveInvItem(hero,ItKe_OM_03); Npc_RemoveInvItem (self, ItKe_OM_03); CreateInvItem (hero, ItKe_OM_03); AI_PlayerReceivedItems (ItKe_OM_03, 1); //*Npc_RemoveInvItem(self,Staerkering); //*CreateInvItem(hero,Staerkering); Npc_RemoveInvItem (self, Staerkering); CreateInvItem (hero, Staerkering); AI_PlayerReceivedItems (Staerkering, 1); Npc_SetPermAttitude (self, ATT_FRIENDLY); } else { //If Aleph does not have ring ... he will just tell us about key (we use existing dialogue here) // AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_30_05_02"); //Alright, I happen to have the key here. // AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_30_05_02"); //Nun gut, zufällig habe ich hier einen Schlüssel. AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_30_05_02"); //Dobře, náhodou mám ten klíč sebou. Npc_RemoveInvItem (self, ItKe_OM_03); CreateInvItem (hero, ItKe_OM_03); AI_PlayerReceivedItems (ItKe_OM_03, 1); }; //*B_GiveInvItems(hero,self,ItMinugget,50); Npc_RemoveInvItems (hero, ItMinugget, 50); CreateInvItem (self, ItMinugget, 50); AI_PlayerGaveItems (ItMinugget, 50); Info_ClearChoices(VLK_585_Aleph_SCHUPPEN); //*VLK_585_Aleph_SCHUPPEN.permanent = 0; B_Aleph_StorageShedKey(); } else { // AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_50_05_03"); //You don't have that much ore! // AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_50_05_03"); //So viel Erz hast du nicht! AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_50_05_03"); //Tolik rudy nemáš! //*VLK_585_Aleph_SCHUPPEN.permanent = 1; }; }; func void VLK_585_Aleph_SCHUPPEN_30() { if (Npc_HasItems(hero,ItMiNugget) >= 30) { //*CreateInvItem(self,ItKe_OM_03); //*B_GiveInvItems(self,other,ItKe_OM_03,1); Npc_RemoveInvItem (self, ItKe_OM_03); CreateInvItem (hero, ItKe_OM_03); AI_PlayerReceivedItems (ItKe_OM_03, 1); //*B_GiveInvItems(hero,self,ItMinugget,30); Npc_RemoveInvItems (hero, ItMinugget, 30); CreateInvItem (self, ItMinugget, 30); AI_PlayerGaveItems (ItMinugget, 30); Info_ClearChoices(VLK_585_Aleph_SCHUPPEN); // AI_Output(other,self,"VLK_585_Aleph_SCHUPPEN_30_15_01"); //30 ore should be enough. // AI_Output(other,self,"VLK_585_Aleph_SCHUPPEN_30_15_01"); //30 Erz sollten reichen. AI_Output(other,self,"VLK_585_Aleph_SCHUPPEN_30_15_01"); //30 nugetů by mělo stačit. // AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_30_05_02"); //Alright, I happen to have the key here. // AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_30_05_02"); //Nun gut, zufällig habe ich hier einen Schlüssel. AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_30_05_02"); //Dobře, náhodou mám ten klíč sebou. //*VLK_585_Aleph_SCHUPPEN.permanent = 0; B_Aleph_StorageShedKey(); } else { // AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_30_05_03"); //You don't have that much ore. // AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_30_05_03"); //So viel Erz hast du nicht! AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_30_05_03"); //Tolik rudy nemáš! //*VLK_585_Aleph_SCHUPPEN.permanent = 1; }; }; func void VLK_585_Aleph_SCHUPPEN_15() { // AI_Output(other,self,"VLK_585_Aleph_SCHUPPEN_15_15_01"); //Is 15 ore alright with you? // AI_Output(other,self,"VLK_585_Aleph_SCHUPPEN_15_15_01"); //Bist du mit 15 Erz einverstanden? AI_Output(other,self,"VLK_585_Aleph_SCHUPPEN_15_15_01"); //Bude ti 15 nugetů stačit? // AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_15_05_02"); //15 ore? I don't know anything about a key! // AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_15_05_02"); //15 Erz? Ich weiß nichts von einem Schlüssel! AI_Output(self,other,"VLK_585_Aleph_SCHUPPEN_15_05_02"); //15 nugetů? Já o žádném klíči nic nevím! //*VLK_585_Aleph_SCHUPPEN.permanent = 0; }; func void VLK_585_Aleph_SCHUPPEN_Back() { Info_ClearChoices(VLK_585_Aleph_SCHUPPEN); //*VLK_585_Aleph_SCHUPPEN.permanent = 1; }; // WENN DER SPIELER ALEPH BEI BRANDICK ANGESCHWÄRZT HAT instance VLK_585_Aleph_DIRTY(C_INFO) { npc = VLK_585_Aleph; condition = VLK_585_Aleph_DIRTY_Condition; information = VLK_585_Aleph_DIRTY_Info; important = 0; //*permanent = 0; permanent = 1; // description = "Do you know anything about the key for the chests in the storage shed??"; // description = "Weißt du was über den Schlüssel für die Truhen im Lagerschuppen?"; description = "Víš něco o klíči od těch truhel ve skladu?"; }; func int VLK_585_Aleph_DIRTY_Condition() { if ((Npc_KnowsInfo (hero, GRD_271_ULBERT_DRUNK)) && (Npc_KnowsInfo (hero, GRD_261_Brandick_ALEPH))) { if (NPC_HasItems (self, ItKe_OM_03) > 0) { return 1; }; }; }; func void VLK_585_Aleph_DIRTY_Info() { // AI_Output(other,self,"VLK_585_Aleph_DIRTY_Info_15_01"); //Do you know anything about the key to the chests in the storage shed? // AI_Output(other,self,"VLK_585_Aleph_DIRTY_Info_15_01"); //Weißt du was über den Schlüssel für die Truhen im Lagerschuppen? AI_Output(other,self,"VLK_585_Aleph_DIRTY_Info_15_01"); //Víš něco o klíči od těch truhel ve skladu? // AI_Output(self,other,"VLK_585_Aleph_DIRTY_Info_05_02"); //Well, that depends... // AI_Output(self,other,"VLK_585_Aleph_DIRTY_Info_05_02"); //Nun, das kommt ganz darauf an ... AI_Output(self,other,"VLK_585_Aleph_DIRTY_Info_05_02"); //No, to záleží na... // AI_Output(other,self,"VLK_585_Aleph_DIRTY_Info_15_03"); //On how much ore I'll give you? // AI_Output(other,self,"VLK_585_Aleph_DIRTY_Info_15_03"); //Darauf, wieviel Erz ich dir gebe? AI_Output(other,self,"VLK_585_Aleph_DIRTY_Info_15_03"); //Na tom, kolik nugetů ti dám? // AI_Output(self,other,"VLK_585_Aleph_DIRTY_Info_05_04"); //You learn quickly. I want 100 ore. // AI_Output(self,other,"VLK_585_Aleph_DIRTY_Info_05_04"); //Du lernst schnell. Ich will 100 Erz. AI_Output(self,other,"VLK_585_Aleph_DIRTY_Info_05_04"); //Učíš se rychle. Chci 100 nugetů. Info_ClearChoices(VLK_585_Aleph_DIRTY); // Info_AddChoice(VLK_585_Aleph_DIRTY,"(Pay 100 ore)",VLK_585_Aleph_DIRTY_100); // Info_AddChoice(VLK_585_Aleph_DIRTY,"(100 Erz zahlen)",VLK_585_Aleph_DIRTY_100); Info_AddChoice(VLK_585_Aleph_DIRTY,"Dobrá, ty vyděrači. Tady je 100 nugetů.",VLK_585_Aleph_DIRTY_100); // Info_AddChoice(VLK_585_Aleph_DIRTY,"(Don't pay)",VLK_585_Aleph_DIRTY_NO); // Info_AddChoice(VLK_585_Aleph_DIRTY,"(Nicht zahlen)",VLK_585_Aleph_DIRTY_NO); Info_AddChoice(VLK_585_Aleph_DIRTY,"Nemůžu vyhodit 100 nugetů!",VLK_585_Aleph_DIRTY_NO); }; func void VLK_585_Aleph_DIRTY_100() { if (Npc_HasItems(hero, ItMinugget) >= 100) { // AI_Output(other,self,"VLK_585_Aleph_DIRTY_100_Info_15_01"); //Alright, you crook. Here are 100 ore. // AI_Output(other,self,"VLK_585_Aleph_DIRTY_100_Info_15_01"); //Na gut, du Halsabschneider. Hier sind deine 100 Erz. AI_Output(other,self,"VLK_585_Aleph_DIRTY_100_Info_15_01"); //Dobrá, ty vyděrači. Tady je 100 nugetů. //*B_GiveInvItems(hero,self,ItMinugget,100); Npc_RemoveInvItems (hero, ItMinugget, 100); CreateInvItem (self, ItMinugget, 100); AI_PlayerGaveItems (ItMinugget, 100); // AI_Output(self,other,"VLK_585_Aleph_DIRTY_100_Info_05_02"); //You shouldn't have grassed me up. Here's the key. // AI_Output(self,other,"VLK_585_Aleph_DIRTY_100_Info_05_02"); //Du hättest mich halt nicht verpfeifen sollen. Hier ist der Schlüssel. AI_Output(self,other,"VLK_585_Aleph_DIRTY_100_Info_05_02"); //Neměl jsi mě prásknout. Tady je ten klíč. //*CreateInvItem(self,ItKe_OM_03); //*B_GiveInvItems(self,other,ItKe_OM_03,1); Npc_RemoveInvItem (self, ItKe_OM_03); CreateInvItem (hero, ItKe_OM_03); AI_PlayerReceivedItems (ItKe_OM_03, 1); Info_ClearChoices(VLK_585_Aleph_DIRTY); //*VLK_585_Aleph_DIRTY.permanent = 0; B_Aleph_StorageShedKey(); } else { // AI_Output(self,other,"VLK_585_Aleph_DIRTY_100_Info_05_03"); //Do you think I'm stupid or what? 100 ore, and not a nugget less! // AI_Output(self,other,"VLK_585_Aleph_DIRTY_100_Info_05_03"); //Für wie blöd hältst du mich eigentlich? 100 Erz, nicht einen Brocken weniger! AI_Output(self,other,"VLK_585_Aleph_DIRTY_100_Info_05_03"); //Myslíš, že jsem tak hloupý nebo co? 100 nugetů a ani o jeden míň! //*VLK_585_Aleph_DIRTY.permanent = 1; }; }; func void VLK_585_Aleph_DIRTY_NO() { // AI_Output(other,self,"VLK_585_Aleph_DIRTY_NO_Info_15_01"); //I'm not gonna throw 100 ore at you! // AI_Output(other,self,"VLK_585_Aleph_DIRTY_NO_Info_15_01"); //Ich werfe dir doch keine 100 Erz in den Rachen! AI_Output(other,self,"VLK_585_Aleph_DIRTY_NO_Info_15_01"); //Nemůžu vyhodit 100 nugetů! // AI_Output(self,other,"VLK_585_Aleph_DIRTY_NO_Info_05_02"); //Hey, it's you who constantly starts talking to me! // AI_Output(self,other,"VLK_585_Aleph_DIRTY_NO_Info_05_02"); //Hey, immerhin bist du derjenige, der mich die ganze Zeit anquatscht! AI_Output(self,other,"VLK_585_Aleph_DIRTY_NO_Info_05_02"); //Hej, ty mě v jednom kuse přemlouváš! //*VLK_585_Aleph_DIRTY.permanent = 0; };
D
module net.pms.io.all; public import net.pms.io.BasicSystemUtils; public import net.pms.io.BlockerFileInputStream; public import net.pms.io.BufferedOutputFile; public import net.pms.io.BufferedOutputFileImpl; public import net.pms.io.Gob; public import net.pms.io.InternalJavaProcessImpl; public import net.pms.io.MacSystemUtils; public import net.pms.io.OutputBufferConsumer; public import net.pms.io.OutputConsumer; public import net.pms.io.OutputParams; public import net.pms.io.OutputTextConsumer; public import net.pms.io.OutputTextLogger; public import net.pms.io.PipeIPCProcess; public import net.pms.io.PipeProcess; public import net.pms.io.ProcessWrapper; public import net.pms.io.ProcessWrapperImpl; public import net.pms.io.ProcessWrapperLiteImpl; public import net.pms.io.SizeLimitInputStream; public import net.pms.io.SolarisUtils; public import net.pms.io.StreamModifier; public import net.pms.io.SystemUtils; public import net.pms.io.UnbufferedOutputFile; public import net.pms.io.UnusedInputStream; public import net.pms.io.UnusedProcess; public import net.pms.io.WaitBufferedInputStream; public import net.pms.io.WindowsNamedPipe; public import net.pms.io.WinUtils;
D
/Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/HTTP.build/Body/HTTPBody.swift.o : /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Utilities/RFC1123.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/URL+HTTP.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Utilities/HTTPHeaders+Basic.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/Forwarded.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/MediaTypePreference.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Body/HTTPBodyStorage.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/HTTPMessage.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Body/HTTPBodyRepresentable.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/HTTPHeaderName.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Responder/HTTPScheme.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/HTTPResponse.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Cookies/HTTPCookieValue.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Body/HTTPChunkedStream.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Responder/HTTPClientProtocolUpgrader.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Responder/HTTPServerResponder.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Codable/HTTPMessageCoder.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Utilities/HTTPHeaders+Bearer.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Responder/HTTPServer.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Utilities/HTTPError.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Cookies/HTTPCookies.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/HTTPHeaders.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Utilities/String+IsIPAddress.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Exports.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Responder/HTTPClient.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/HTTPRequest.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Body/HTTPBody.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /usr/local/Cellar/libressl/2.9.2/include/openssl/asn1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/tls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/md5.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509.h /usr/local/Cellar/libressl/2.9.2/include/openssl/sha.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rsa.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/2.9.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/hmac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ec.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rand.h /usr/local/Cellar/libressl/2.9.2/include/openssl/conf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/lhash.h /usr/local/Cellar/libressl/2.9.2/include/openssl/stack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/safestack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bn.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bio.h /usr/local/Cellar/libressl/2.9.2/include/openssl/crypto.h /usr/local/Cellar/libressl/2.9.2/include/openssl/srtp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/evp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.9.2/include/openssl/buffer.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.9.2/include/openssl/err.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.9.2/include/openssl/objects.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslv.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509_vfy.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/HTTP.build/Body/HTTPBody~partial.swiftmodule : /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Utilities/RFC1123.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/URL+HTTP.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Utilities/HTTPHeaders+Basic.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/Forwarded.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/MediaTypePreference.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Body/HTTPBodyStorage.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/HTTPMessage.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Body/HTTPBodyRepresentable.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/HTTPHeaderName.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Responder/HTTPScheme.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/HTTPResponse.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Cookies/HTTPCookieValue.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Body/HTTPChunkedStream.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Responder/HTTPClientProtocolUpgrader.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Responder/HTTPServerResponder.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Codable/HTTPMessageCoder.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Utilities/HTTPHeaders+Bearer.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Responder/HTTPServer.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Utilities/HTTPError.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Cookies/HTTPCookies.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/HTTPHeaders.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Utilities/String+IsIPAddress.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Exports.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Responder/HTTPClient.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/HTTPRequest.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Body/HTTPBody.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /usr/local/Cellar/libressl/2.9.2/include/openssl/asn1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/tls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/md5.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509.h /usr/local/Cellar/libressl/2.9.2/include/openssl/sha.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rsa.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/2.9.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/hmac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ec.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rand.h /usr/local/Cellar/libressl/2.9.2/include/openssl/conf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/lhash.h /usr/local/Cellar/libressl/2.9.2/include/openssl/stack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/safestack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bn.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bio.h /usr/local/Cellar/libressl/2.9.2/include/openssl/crypto.h /usr/local/Cellar/libressl/2.9.2/include/openssl/srtp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/evp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.9.2/include/openssl/buffer.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.9.2/include/openssl/err.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.9.2/include/openssl/objects.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslv.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509_vfy.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/HTTP.build/Body/HTTPBody~partial.swiftdoc : /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Utilities/RFC1123.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/URL+HTTP.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Utilities/HTTPHeaders+Basic.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/Forwarded.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/MediaTypePreference.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Body/HTTPBodyStorage.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/HTTPMessage.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Body/HTTPBodyRepresentable.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/HTTPHeaderName.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Responder/HTTPScheme.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/HTTPResponse.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Cookies/HTTPCookieValue.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Body/HTTPChunkedStream.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Responder/HTTPClientProtocolUpgrader.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Responder/HTTPServerResponder.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Codable/HTTPMessageCoder.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Utilities/HTTPHeaders+Bearer.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Responder/HTTPServer.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Utilities/HTTPError.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Cookies/HTTPCookies.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/HTTPHeaders.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Utilities/String+IsIPAddress.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Exports.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Responder/HTTPClient.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Message/HTTPRequest.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/http/Sources/HTTP/Body/HTTPBody.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /usr/local/Cellar/libressl/2.9.2/include/openssl/asn1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/tls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/md5.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509.h /usr/local/Cellar/libressl/2.9.2/include/openssl/sha.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rsa.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/2.9.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/hmac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ec.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rand.h /usr/local/Cellar/libressl/2.9.2/include/openssl/conf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/lhash.h /usr/local/Cellar/libressl/2.9.2/include/openssl/stack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/safestack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bn.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bio.h /usr/local/Cellar/libressl/2.9.2/include/openssl/crypto.h /usr/local/Cellar/libressl/2.9.2/include/openssl/srtp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/evp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.9.2/include/openssl/buffer.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.9.2/include/openssl/err.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.9.2/include/openssl/objects.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslv.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509_vfy.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
import std.stdio; int main(){ int iter; int A[10]; for (iter=0; iter< 10; iter++){ if (iter%2){ A[iter]= A[iter] + 1; writeln("yes\n"); } else A[iter]= A[iter] + 1; writeln("no\n"); } return 0; }
D
/Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Intermediates.noindex/RX_Product.build/Debug-iphonesimulator/RX_Product.build/Objects-normal/x86_64/AppDelegate.o : /Users/sunchuyue/Documents/test/RX_Product/RX_Product/vender/network/RequestAPI.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/model/BaseMode.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/AppDelegate.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/model/PersonalProfileModel.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/viewmodel/ViewModel.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/viewmodel/BaseViewModel.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/viewmodel/PersonalViewModel.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/view/Main/ProfileHeaderCell.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/vender/network/RequestTool.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/other/APPDelegateExtension.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/controller/Main/RXNavigationController.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/controller/Main/PersonalProfileViewController.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/controller/Main/HomeViewController.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/controller/base/BaseViewController.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/controller/Main/MainTabBarViewController.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/vender/network/APIRoter.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/model/Repositories.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/vender/network/ServicePlugins.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/vender/network/RequestParamters.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/view/Main/PersonalProfileView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Modules/RxCocoa.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya/Moya.framework/Modules/Moya.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ObjectMapper/ObjectMapper.framework/Modules/ObjectMapper.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya-ObjectMapper/Moya_ObjectMapper.framework/Modules/Moya_ObjectMapper.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Differentiator/Differentiator.framework/Modules/Differentiator.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxDataSources/RxDataSources.framework/Modules/RxDataSources.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Modules/ReactiveSwift.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/RxSwift.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SnapKit/SnapKit.framework/Modules/SnapKit.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Result/Result.framework/Modules/Result.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.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/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RX.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya/Moya.framework/Headers/Moya-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefresh-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya-ObjectMapper/Moya_ObjectMapper.framework/Headers/Moya-ObjectMapper-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ObjectMapper/ObjectMapper.framework/Headers/ObjectMapper-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Differentiator/Differentiator.framework/Headers/Differentiator-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxDataSources/RxDataSources.framework/Headers/RxDataSources-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Headers/ReactiveSwift-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SnapKit/SnapKit.framework/Headers/SnapKit-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Result/Result.framework/Headers/Result-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXObjCRuntime.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoaRuntime.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/NSBundle+MJRefresh.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/UIScrollView+MJRefresh.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefresh.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/UIView+MJExtension.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/UIScrollView+MJExtension.h /Users/sunchuyue/Documents/test/RX_Product/RX_Product/other/RX_Product-Bridging-Header.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshStateHeader.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshGifHeader.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshHeader.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshNormalHeader.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshBackStateFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshAutoStateFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshBackGifFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshAutoGifFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshBackFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshBackNormalFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshAutoNormalFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshAutoFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXKVOObserver.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVRadialGradientLayer.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya/Moya.framework/Headers/Moya-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ObjectMapper/ObjectMapper.framework/Headers/ObjectMapper-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya-ObjectMapper/Moya_ObjectMapper.framework/Headers/Moya_ObjectMapper-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Differentiator/Differentiator.framework/Headers/Differentiator-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxDataSources/RxDataSources.framework/Headers/RxDataSources-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Headers/ReactiveSwift-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SnapKit/SnapKit.framework/Headers/SnapKit-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Result/Result.framework/Headers/Result-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshComponent.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshConst.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVIndefiniteAnimatedView.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressAnimatedView.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXDelegateProxy.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya/Moya.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ObjectMapper/ObjectMapper.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya-ObjectMapper/Moya_ObjectMapper.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Differentiator/Differentiator.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxDataSources/RxDataSources.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SnapKit/SnapKit.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Result/Result.framework/Modules/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/CoreData.framework/Headers/CoreData.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/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Intermediates.noindex/RX_Product.build/Debug-iphonesimulator/RX_Product.build/Objects-normal/x86_64/AppDelegate~partial.swiftmodule : /Users/sunchuyue/Documents/test/RX_Product/RX_Product/vender/network/RequestAPI.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/model/BaseMode.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/AppDelegate.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/model/PersonalProfileModel.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/viewmodel/ViewModel.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/viewmodel/BaseViewModel.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/viewmodel/PersonalViewModel.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/view/Main/ProfileHeaderCell.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/vender/network/RequestTool.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/other/APPDelegateExtension.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/controller/Main/RXNavigationController.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/controller/Main/PersonalProfileViewController.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/controller/Main/HomeViewController.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/controller/base/BaseViewController.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/controller/Main/MainTabBarViewController.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/vender/network/APIRoter.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/model/Repositories.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/vender/network/ServicePlugins.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/vender/network/RequestParamters.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/view/Main/PersonalProfileView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Modules/RxCocoa.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya/Moya.framework/Modules/Moya.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ObjectMapper/ObjectMapper.framework/Modules/ObjectMapper.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya-ObjectMapper/Moya_ObjectMapper.framework/Modules/Moya_ObjectMapper.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Differentiator/Differentiator.framework/Modules/Differentiator.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxDataSources/RxDataSources.framework/Modules/RxDataSources.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Modules/ReactiveSwift.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/RxSwift.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SnapKit/SnapKit.framework/Modules/SnapKit.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Result/Result.framework/Modules/Result.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.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/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RX.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya/Moya.framework/Headers/Moya-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefresh-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya-ObjectMapper/Moya_ObjectMapper.framework/Headers/Moya-ObjectMapper-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ObjectMapper/ObjectMapper.framework/Headers/ObjectMapper-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Differentiator/Differentiator.framework/Headers/Differentiator-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxDataSources/RxDataSources.framework/Headers/RxDataSources-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Headers/ReactiveSwift-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SnapKit/SnapKit.framework/Headers/SnapKit-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Result/Result.framework/Headers/Result-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXObjCRuntime.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoaRuntime.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/NSBundle+MJRefresh.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/UIScrollView+MJRefresh.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefresh.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/UIView+MJExtension.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/UIScrollView+MJExtension.h /Users/sunchuyue/Documents/test/RX_Product/RX_Product/other/RX_Product-Bridging-Header.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshStateHeader.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshGifHeader.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshHeader.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshNormalHeader.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshBackStateFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshAutoStateFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshBackGifFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshAutoGifFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshBackFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshBackNormalFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshAutoNormalFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshAutoFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXKVOObserver.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVRadialGradientLayer.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya/Moya.framework/Headers/Moya-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ObjectMapper/ObjectMapper.framework/Headers/ObjectMapper-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya-ObjectMapper/Moya_ObjectMapper.framework/Headers/Moya_ObjectMapper-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Differentiator/Differentiator.framework/Headers/Differentiator-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxDataSources/RxDataSources.framework/Headers/RxDataSources-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Headers/ReactiveSwift-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SnapKit/SnapKit.framework/Headers/SnapKit-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Result/Result.framework/Headers/Result-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshComponent.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshConst.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVIndefiniteAnimatedView.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressAnimatedView.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXDelegateProxy.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya/Moya.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ObjectMapper/ObjectMapper.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya-ObjectMapper/Moya_ObjectMapper.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Differentiator/Differentiator.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxDataSources/RxDataSources.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SnapKit/SnapKit.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Result/Result.framework/Modules/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/CoreData.framework/Headers/CoreData.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/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Intermediates.noindex/RX_Product.build/Debug-iphonesimulator/RX_Product.build/Objects-normal/x86_64/AppDelegate~partial.swiftdoc : /Users/sunchuyue/Documents/test/RX_Product/RX_Product/vender/network/RequestAPI.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/model/BaseMode.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/AppDelegate.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/model/PersonalProfileModel.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/viewmodel/ViewModel.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/viewmodel/BaseViewModel.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/viewmodel/PersonalViewModel.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/view/Main/ProfileHeaderCell.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/vender/network/RequestTool.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/other/APPDelegateExtension.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/controller/Main/RXNavigationController.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/controller/Main/PersonalProfileViewController.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/controller/Main/HomeViewController.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/controller/base/BaseViewController.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/controller/Main/MainTabBarViewController.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/vender/network/APIRoter.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/model/Repositories.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/vender/network/ServicePlugins.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/vender/network/RequestParamters.swift /Users/sunchuyue/Documents/test/RX_Product/RX_Product/view/Main/PersonalProfileView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Modules/RxCocoa.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya/Moya.framework/Modules/Moya.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ObjectMapper/ObjectMapper.framework/Modules/ObjectMapper.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya-ObjectMapper/Moya_ObjectMapper.framework/Modules/Moya_ObjectMapper.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Differentiator/Differentiator.framework/Modules/Differentiator.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxDataSources/RxDataSources.framework/Modules/RxDataSources.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Modules/ReactiveSwift.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/RxSwift.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SnapKit/SnapKit.framework/Modules/SnapKit.swiftmodule/x86_64.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Result/Result.framework/Modules/Result.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.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/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RX.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya/Moya.framework/Headers/Moya-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefresh-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya-ObjectMapper/Moya_ObjectMapper.framework/Headers/Moya-ObjectMapper-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ObjectMapper/ObjectMapper.framework/Headers/ObjectMapper-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Differentiator/Differentiator.framework/Headers/Differentiator-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxDataSources/RxDataSources.framework/Headers/RxDataSources-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Headers/ReactiveSwift-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SnapKit/SnapKit.framework/Headers/SnapKit-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Result/Result.framework/Headers/Result-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXObjCRuntime.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoaRuntime.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/NSBundle+MJRefresh.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/UIScrollView+MJRefresh.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefresh.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/UIView+MJExtension.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/UIScrollView+MJExtension.h /Users/sunchuyue/Documents/test/RX_Product/RX_Product/other/RX_Product-Bridging-Header.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshStateHeader.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshGifHeader.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshHeader.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshNormalHeader.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshBackStateFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshAutoStateFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshBackGifFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshAutoGifFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshBackFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshBackNormalFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshAutoNormalFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshAutoFooter.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXKVOObserver.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVRadialGradientLayer.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya/Moya.framework/Headers/Moya-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ObjectMapper/ObjectMapper.framework/Headers/ObjectMapper-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya-ObjectMapper/Moya_ObjectMapper.framework/Headers/Moya_ObjectMapper-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Differentiator/Differentiator.framework/Headers/Differentiator-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxDataSources/RxDataSources.framework/Headers/RxDataSources-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Headers/ReactiveSwift-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SnapKit/SnapKit.framework/Headers/SnapKit-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Result/Result.framework/Headers/Result-Swift.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshComponent.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Headers/MJRefreshConst.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVIndefiniteAnimatedView.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressAnimatedView.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXDelegateProxy.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya/Moya.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/MJRefresh/MJRefresh.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ObjectMapper/ObjectMapper.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Moya-ObjectMapper/Moya_ObjectMapper.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Differentiator/Differentiator.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxDataSources/RxDataSources.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/SnapKit/SnapKit.framework/Modules/module.modulemap /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Products/Debug-iphonesimulator/Result/Result.framework/Modules/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/CoreData.framework/Headers/CoreData.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
module dedicatedslave.gui.appstatusbar; import gtk.Statusbar; class MainStatusbar : Statusbar { this() { super(); } }
D
/Users/matsumur/Dropbox/Working/tekupico7(acm)/DerivedData/てくPico/Build/Intermediates/ArchiveIntermediates/てくPico/IntermediateBuildFilesPath/てくPico.build/Release-iphoneos/てくPico.build/Objects-normal/arm64/AppDelegate.o : /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/AppDelegate.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialFirstlViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Someaction.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ThirdViewContoroller.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/MenuViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Tutorial2ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TabBarViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/FirstViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Extensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Darwin.swiftmodule /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko-Bridging-Header.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCrypto.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCryptor.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCryptoError.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonDigest.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonHMAC.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonKeyDerivation.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonSymmetricKeywrap.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/CoreImage.swiftmodule /Users/matsumur/Dropbox/Working/tekupico7(acm)/DerivedData/てくPico/Build/Intermediates/ArchiveIntermediates/てくPico/IntermediateBuildFilesPath/てくPico.build/Release-iphoneos/てくPico.build/Objects-normal/arm64/AppDelegate~partial.swiftmodule : /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/AppDelegate.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialFirstlViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Someaction.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ThirdViewContoroller.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/MenuViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Tutorial2ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TabBarViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/FirstViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Extensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Darwin.swiftmodule /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko-Bridging-Header.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCrypto.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCryptor.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCryptoError.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonDigest.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonHMAC.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonKeyDerivation.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonSymmetricKeywrap.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/CoreImage.swiftmodule /Users/matsumur/Dropbox/Working/tekupico7(acm)/DerivedData/てくPico/Build/Intermediates/ArchiveIntermediates/てくPico/IntermediateBuildFilesPath/てくPico.build/Release-iphoneos/てくPico.build/Objects-normal/arm64/AppDelegate~partial.swiftdoc : /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/AppDelegate.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialFirstlViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Someaction.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ThirdViewContoroller.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/MenuViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Tutorial2ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TabBarViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/FirstViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Extensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Darwin.swiftmodule /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko-Bridging-Header.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCrypto.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCryptor.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCryptoError.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonDigest.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonHMAC.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonKeyDerivation.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonSymmetricKeywrap.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/CoreImage.swiftmodule
D
come up with (an idea, plan, explanation, theory, or principle) after a mental effort reflect deeply on a subject
D
instance Pal_237_Ritter(Npc_Default) { name[0] = NAME_Ritter; guild = GIL_PAL; id = 237; voice = 12; flags = 0; npcType = NPCTYPE_AMBIENT; B_SetAttributesToChapter(self,5); fight_tactic = FAI_HUMAN_MASTER; EquipItem(self,ItMw_1h_Pal_Sword); B_CreateAmbientInv(self); B_SetNpcVisual(self,MALE,"Hum_Head_Fighter",Face_P_Tough_Torrez,BodyTex_P,ItAr_PAL_M); Mdl_SetModelFatness(self,0); Mdl_ApplyOverlayMds(self,"Humans_Militia.mds"); B_GiveNpcTalents(self); B_SetFightSkills(self,80); daily_routine = Rtn_Start_237; }; func void Rtn_Start_237() { TA_Practice_Sword(8,0,23,0,"NW_CITY_PALCAMP_12"); TA_Smalltalk(23,0,8,0,"NW_CITY_PALCAMP_10"); };
D
instance Mod_7672_OUT_Paul_REL (Npc_Default) { // ------ NSC ------ name = "Paul"; guild = GIL_SUMMONED_SKELETON; aivar[AIV_MM_REAL_ID] = ID_SUMMONED_SKELETON; id = 7672; voice = 1; flags = 0; //NPC_FLAG_IMMORTAL oder 0 npctype = NPCTYPE_MAIN; // ------ Attribute ------ B_SetAttributesToChapter (self, 1); //setzt Attribute und LEVEL entsprechend dem angegebenen Kapitel (1-6) // ------ Kampf-Taktik ------ fight_tactic = FAI_HUMAN_COWARD; // MASTER / STRONG / COWARD // ------ Equippte Waffen ------ // ------ Inventory ------ B_CreateAmbientInv (self); // ------ visuals ------ //Muss NACH Attributen kommen, weil in B_SetNpcVisual die Breite abh. v. STR skaliert wird Mdl_SetVisual (self, "HumanS.mds"); Mdl_ApplyOverlayMds (self, "humans_1hST1.mds"); Mdl_ApplyOverlayMds (self, "humans_2hST2.mds"); Mdl_ApplyOverlayMds (self, "humans_BowT1.mds"); Mdl_ApplyOverlayMds (self, "humans_CBowT1.mds"); Mdl_ApplyOverlayMds (self, "humans_skeleton.mds"); // Body-Mesh Body-Tex Skin-Color Head-MMS Head-Tex Teeth-Tex ARMOR Mdl_SetVisualBody (self, "HumanStandy_Body", DEFAULT, DEFAULT, "", DEFAULT, DEFAULT, -1); // ------ NSC-relevante Talente vergeben ------ B_GiveNpcTalents (self); // ------ Kampf-Talente ------ //Der enthaltene B_AddFightSkill setzt Talent-Ani abhängig von TrefferChance% - alle Kampftalente werden gleichhoch gesetzt B_SetFightSkills (self, 0); //Grenzen für Talent-Level liegen bei 30 und 60 // ------ TA anmelden ------ daily_routine = Rtn_Start_7672; }; FUNC VOID Rtn_Start_7672 () { TA_Stand_WP (08,00,22,00,"REL_MOOR_212"); TA_Stand_WP (22,00,08,00,"REL_MOOR_212"); };
D
/Users/abdirrahman/Desktop/snakegame/target/debug/build/glutin_gles2_sys-80e09fad606b0f3b/build_script_build-80e09fad606b0f3b: /Users/abdirrahman/.cargo/registry/src/github.com-1ecc6299db9ec823/glutin_gles2_sys-0.1.5/build.rs /Users/abdirrahman/Desktop/snakegame/target/debug/build/glutin_gles2_sys-80e09fad606b0f3b/build_script_build-80e09fad606b0f3b.d: /Users/abdirrahman/.cargo/registry/src/github.com-1ecc6299db9ec823/glutin_gles2_sys-0.1.5/build.rs /Users/abdirrahman/.cargo/registry/src/github.com-1ecc6299db9ec823/glutin_gles2_sys-0.1.5/build.rs:
D
// Written in the D programming language. /** This module implements the formatting functionality for strings and I/O. It's comparable to C99's $(D vsprintf()) and uses a similar format encoding scheme. Macros: WIKI = Phobos/StdFormat Copyright: Copyright Digital Mars 2000-. License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: $(WEB digitalmars.com, Walter Bright), $(WEB erdani.com, Andrei Alexandrescu), and Kenji Hara Source: $(PHOBOSSRC std/_format.d) */ /* NOTE: This file has been patched from the original DMD distribution to work with the GDC compiler. */ module std.format; //debug=format; // uncomment to turn on debugging printf's import core.stdc.stdio, core.stdc.stdlib, core.stdc.string, core.vararg; import std.algorithm, std.array, std.ascii, std.bitmanip, std.conv, std.exception, std.functional, std.math, std.range, std.string, std.system, std.traits, std.typecons, std.typetuple, std.utf; version(unittest) { import std.stdio; import core.exception; } version (Windows) version (DigitalMars) { version = DigitalMarsC; } version (DigitalMarsC) { // This is DMC's internal floating point formatting function extern (C) { extern shared char* function(int c, int flags, int precision, in real* pdval, char* buf, size_t* psl, int width) __pfloatfmt; } alias core.stdc.stdio._snprintf snprintf; } else { // Use C99 snprintf extern (C) int snprintf(char* s, size_t n, in char* format, ...); } /********************************************************************** * Signals a mismatch between a format and its corresponding argument. */ class FormatException : Exception { this() { super("format error"); } this(string msg, string fn = __FILE__, size_t ln = __LINE__, Throwable next = null) { super(msg, fn, ln, next); } } /** $(RED Scheduled for deprecation. Please use $(D FormatException)) instead. */ /*deprecated*/ alias FormatException FormatError; /********************************************************************** Interprets variadic argument list $(D args), formats them according to $(D fmt), and sends the resulting characters to $(D w). The encoding of the output is the same as $(D Char). type $(D Writer) must satisfy $(XREF range,isOutputRange!(Writer, Char)). The variadic arguments are normally consumed in order. POSIX-style $(WEB opengroup.org/onlinepubs/009695399/functions/printf.html, positional parameter syntax) is also supported. Each argument is formatted into a sequence of chars according to the format specification, and the characters are passed to $(D w). As many arguments as specified in the format string are consumed and formatted. If there are fewer arguments than format specifiers, a $(D FormatException) is thrown. If there are more remaining arguments than needed by the format specification, they are ignored but only if at least one argument was formatted. The format string supports the formatting of array and nested array elements via the grouping format specifiers $(B %&#40;) and $(B %&#41;). Each matching pair of $(B %&#40;) and $(B %&#41;) corresponds with a single array argument. The enclosed sub-format string is applied to individual array elements. The trailing portion of the sub-format string following the conversion specifier for the array element is interpreted as the array delimiter, and is therefore omitted following the last array element. The $(B %|) specifier may be used to explicitly indicate the start of the delimiter, so that the preceding portion of the string will be included following the last array element. (See below for explicit examples.) Params: w = Output is sent to this writer. Typical output writers include $(XREF array,Appender!string) and $(XREF stdio,LockingTextWriter). fmt = Format string. args = Variadic argument list. Throws: Mismatched arguments and formats result in a $(D FormatException) being thrown. Format_String: <a name="format-string">$(I Format strings)</a> consist of characters interspersed with $(I format specifications). Characters are simply copied to the output (such as putc) after any necessary conversion to the corresponding UTF-8 sequence. The format string has the following grammar: $(PRE $(I FormatString): $(I FormatStringItem)* $(I FormatStringItem): $(B '%%') $(B '%') $(I Position) $(I Flags) $(I Width) $(I Precision) $(I FormatChar) $(B '%$(LPAREN)') $(I FormatString) $(B '%$(RPAREN)') $(I OtherCharacterExceptPercent) $(I Position): $(I empty) $(I Integer) $(B '$') $(I Flags): $(I empty) $(B '-') $(I Flags) $(B '+') $(I Flags) $(B '#') $(I Flags) $(B '0') $(I Flags) $(B ' ') $(I Flags) $(I Width): $(I empty) $(I Integer) $(B '*') $(I Precision): $(I empty) $(B '.') $(B '.') $(I Integer) $(B '.*') $(I Integer): $(I Digit) $(I Digit) $(I Integer) $(I Digit): $(B '0')|$(B '1')|$(B '2')|$(B '3')|$(B '4')|$(B '5')|$(B '6')|$(B '7')|$(B '8')|$(B '9') $(I FormatChar): $(B 's')|$(B 'b')|$(B 'd')|$(B 'o')|$(B 'x')|$(B 'X')|$(B 'e')|$(B 'E')|$(B 'f')|$(B 'F')|$(B 'g')|$(B 'G')|$(B 'a')|$(B 'A') ) $(BOOKTABLE Flags affect formatting depending on the specifier as follows., $(TR $(TH Flag) $(TH Types&nbsp;affected) $(TH Semantics)) $(TR $(TD $(B '-')) $(TD numeric) $(TD Left justify the result in the field. It overrides any $(B 0) flag.)) $(TR $(TD $(B '+')) $(TD numeric) $(TD Prefix positive numbers in a signed conversion with a $(B +). It overrides any $(I space) flag.)) $(TR $(TD $(B '#')) $(TD integral ($(B 'o'))) $(TD Add to precision as necessary so that the first digit of the octal formatting is a '0', even if both the argument and the $(I Precision) are zero.)) $(TR $(TD $(B '#')) $(TD integral ($(B 'x'), $(B 'X'))) $(TD If non-zero, prefix result with $(B 0x) ($(B 0X)).)) $(TR $(TD $(B '#')) $(TD floating) $(TD Always insert the decimal point and print trailing zeros.)) $(TR $(TD $(B '#')) $(TD numeric ($(B '0'))) $(TD Use leading zeros to pad rather than spaces (except for the floating point values $(D nan) and $(D infinity)). Ignore if there's a $(I Precision).)) $(TR $(TD $(B ' ')) $(TD integral ($(B 'd'))) $(TD Prefix positive numbers in a signed conversion with a space.))) <dt>$(I Width) <dd> Specifies the minimum field width. If the width is a $(B *), the next argument, which must be of type $(B int), is taken as the width. If the width is negative, it is as if the $(B -) was given as a $(I Flags) character. <dt>$(I Precision) <dd> Gives the precision for numeric conversions. If the precision is a $(B *), the next argument, which must be of type $(B int), is taken as the precision. If it is negative, it is as if there was no $(I Precision). <dt>$(I FormatChar) <dd> <dl> <dt>$(B 's') <dd>The corresponding argument is formatted in a manner consistent with its type: <dl> <dt>$(B bool) <dd>The result is <tt>'true'</tt> or <tt>'false'</tt>. <dt>integral types <dd>The $(B %d) format is used. <dt>floating point types <dd>The $(B %g) format is used. <dt>string types <dd>The result is the string converted to UTF-8. A $(I Precision) specifies the maximum number of characters to use in the result. <dt>classes derived from $(B Object) <dd>The result is the string returned from the class instance's $(B .toString()) method. A $(I Precision) specifies the maximum number of characters to use in the result. <dt>non-string static and dynamic arrays <dd>The result is [s<sub>0</sub>, s<sub>1</sub>, ...] where s<sub>k</sub> is the kth element formatted with the default format. </dl> <dt>$(B 'c') <dd>The corresponding argument must be a character type. <dt>$(B 'b','d','o','x','X') <dd> The corresponding argument must be an integral type and is formatted as an integer. If the argument is a signed type and the $(I FormatChar) is $(B d) it is converted to a signed string of characters, otherwise it is treated as unsigned. An argument of type $(B bool) is formatted as '1' or '0'. The base used is binary for $(B b), octal for $(B o), decimal for $(B d), and hexadecimal for $(B x) or $(B X). $(B x) formats using lower case letters, $(B X) uppercase. If there are fewer resulting digits than the $(I Precision), leading zeros are used as necessary. If the $(I Precision) is 0 and the number is 0, no digits result. <dt>$(B 'e','E') <dd> A floating point number is formatted as one digit before the decimal point, $(I Precision) digits after, the $(I FormatChar), &plusmn;, followed by at least a two digit exponent: $(I d.dddddd)e$(I &plusmn;dd). If there is no $(I Precision), six digits are generated after the decimal point. If the $(I Precision) is 0, no decimal point is generated. <dt>$(B 'f','F') <dd> A floating point number is formatted in decimal notation. The $(I Precision) specifies the number of digits generated after the decimal point. It defaults to six. At least one digit is generated before the decimal point. If the $(I Precision) is zero, no decimal point is generated. <dt>$(B 'g','G') <dd> A floating point number is formatted in either $(B e) or $(B f) format for $(B g); $(B E) or $(B F) format for $(B G). The $(B f) format is used if the exponent for an $(B e) format is greater than -5 and less than the $(I Precision). The $(I Precision) specifies the number of significant digits, and defaults to six. Trailing zeros are elided after the decimal point, if the fractional part is zero then no decimal point is generated. <dt>$(B 'a','A') <dd> A floating point number is formatted in hexadecimal exponential notation 0x$(I h.hhhhhh)p$(I &plusmn;d). There is one hexadecimal digit before the decimal point, and as many after as specified by the $(I Precision). If the $(I Precision) is zero, no decimal point is generated. If there is no $(I Precision), as many hexadecimal digits as necessary to exactly represent the mantissa are generated. The exponent is written in as few digits as possible, but at least one, is in decimal, and represents a power of 2 as in $(I h.hhhhhh)*2<sup>$(I &plusmn;d)</sup>. The exponent for zero is zero. The hexadecimal digits, x and p are in upper case if the $(I FormatChar) is upper case. </dl> Floating point NaN's are formatted as $(B nan) if the $(I FormatChar) is lower case, or $(B NAN) if upper. Floating point infinities are formatted as $(B inf) or $(B infinity) if the $(I FormatChar) is lower case, or $(B INF) or $(B INFINITY) if upper. </dl> Examples: ------------------------- import std.c.stdio; import std.format; void main() { auto writer = appender!string(); formattedWrite(writer, "%s is the ultimate %s.", 42, "answer"); assert(writer.data == "42 is the ultimate answer."); // Clear the writer writer = appender!string(); formattedWrite(writer, "Date: %2$s %1$s", "October", 5); assert(writer.data == "Date: 5 October"); } ------------------------ The positional and non-positional styles can be mixed in the same format string. (POSIX leaves this behavior undefined.) The internal counter for non-positional parameters tracks the next parameter after the largest positional parameter already used. Example using array and nested array formatting: ------------------------- import std.stdio; void main() { writefln("My items are %(%s %).", [1,2,3]); writefln("My items are %(%s, %).", [1,2,3]); } ------------------------- The output is: <pre class=console> My array is 1 2 3. My array is 1, 2, 3. </pre> The trailing end of the sub-format string following the specifier for each item is interpreted as the array delimiter, and is therefore omitted following the last array item. The $(B %|) delimiter specifier may be used to indicate where the delimiter begins, so that the portion of the format string prior to it will be retained in the last array element: ------------------------- import std.stdio; void main() { writefln("My items are %(-%s-%|, %).", [1,2,3]); } ------------------------- which gives the output: <pre class=console> My array is -1-, -2-, -3-. </pre> These grouping format specifiers may be nested in the case of a nested array argument: ------------------------- import std.stdio; void main() { auto mat = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]; writefln("%(%(%d %)\n%)", mat); writeln(); writefln("[%(%(%d %)\n %)]", mat); writeln(); writefln("[%([%(%d %)]%|\n %)]", mat); writeln(); } ------------------------- The output is: <pre class=console> 1 2 3 4 5 6 7 8 9 [1 2 3 4 5 6 7 8 9] [[1 2 3] [4 5 6] [7 8 9]] </pre> */ void formattedWrite(Writer, Char, A...)(Writer w, in Char[] fmt, A args) { enum len = args.length; void function(Writer, const(void)*, ref FormatSpec!Char) funs[len] = void; const(void)* argsAddresses[len] = void; if (!__ctfe) { foreach (i, arg; args) { funs[i] = &formatGeneric!(Writer, typeof(arg), Char); // We can safely cast away shared because all data is either // immutable or completely owned by this function. argsAddresses[i] = cast(const(void*)) &args[ i ]; } } // Are we already done with formats? Then just dump each parameter in turn uint currentArg = 0; auto spec = FormatSpec!Char(fmt); while (spec.writeUpToNextSpec(w)) { if (currentArg == funs.length && !spec.indexStart) { // leftover spec? enforceEx!FormatException( fmt.length == 0, text("Orphan format specifier: %", fmt)); break; } if (spec.width == spec.DYNAMIC) { auto width = to!(typeof(spec.width))(getNthInt(currentArg, args)); if (width < 0) { spec.flDash = true; width = -width; } spec.width = width; ++currentArg; } else if (spec.width < 0) { // means: get width as a positional parameter auto index = cast(uint) -spec.width; assert(index > 0); auto width = to!(typeof(spec.width))(getNthInt(index - 1, args)); if (currentArg < index) currentArg = index; if (width < 0) { spec.flDash = true; width = -width; } spec.width = width; } if (spec.precision == spec.DYNAMIC) { auto precision = to!(typeof(spec.precision))( getNthInt(currentArg, args)); if (precision >= 0) spec.precision = precision; // else negative precision is same as no precision else spec.precision = spec.UNSPECIFIED; ++currentArg; } else if (spec.precision < 0) { // means: get precision as a positional parameter auto index = cast(uint) -spec.precision; assert(index > 0); auto precision = to!(typeof(spec.precision))( getNthInt(index- 1, args)); if (currentArg < index) currentArg = index; if (precision >= 0) spec.precision = precision; // else negative precision is same as no precision else spec.precision = spec.UNSPECIFIED; } // Format! if (spec.indexStart > 0) { // using positional parameters! foreach (i; spec.indexStart - 1 .. spec.indexEnd) { if (funs.length <= i) break; if (__ctfe) formatNth(w, spec, i, args); else funs[i](w, argsAddresses[i], spec); } if (currentArg < spec.indexEnd) currentArg = spec.indexEnd; } else { if (__ctfe) formatNth(w, spec, currentArg, args); else funs[currentArg](w, argsAddresses[currentArg], spec); ++currentArg; } } } /** Reads characters from input range $(D r), converts them according to $(D fmt), and writes them to $(D args). Example: ---- string s = "hello!124:34.5"; string a; int b; double c; formattedRead(s, "%s!%s:%s", &a, &b, &c); assert(a == "hello" && b == 124 && c == 34.5); ---- */ uint formattedRead(R, Char, S...)(ref R r, const(Char)[] fmt, S args) { auto spec = FormatSpec!Char(fmt); static if (!S.length) { spec.readUpToNextSpec(r); enforce(spec.trailing.empty); return 0; } else { // The function below accounts for '*' == fields meant to be // read and skipped void skipUnstoredFields() { for (;;) { spec.readUpToNextSpec(r); if (spec.width != spec.DYNAMIC) break; // must skip this field skipData(r, spec); } } skipUnstoredFields(); if (r.empty) { // Input is empty, nothing to read return 0; } alias typeof(*args[0]) A; static if (isTuple!A) { foreach (i, T; A.Types) { (*args[0])[i] = unformatValue!(T)(r, spec); skipUnstoredFields(); } } else { *args[0] = unformatValue!(A)(r, spec); } return 1 + formattedRead(r, spec.trailing, args[1 .. $]); } } unittest { string s = " 1.2 3.4 "; double x, y, z; assert(formattedRead(s, " %s %s %s ", &x, &y, &z) == 2); assert(s.empty); assert(x == 1.2); assert(y == 3.4); assert(isnan(z)); } template FormatSpec(Char) if (!is(Unqual!Char == Char)) { alias FormatSpec!(Unqual!Char) FormatSpec; } /** A compiled version of an individual format specifier, backwards compatible with $(D printf) specifiers. */ struct FormatSpec(Char) if (is(Unqual!Char == Char)) { /** Minimum _width, default $(D 0). */ int width = 0; /** Precision. Its semantics depends on the argument type. For floating point numbers, _precision dictates the number of decimals printed. */ int precision = UNSPECIFIED; /** Special value for width and precision. $(D DYNAMIC) width or precision means that they were specified with $(D '*') in the format string and are passed at runtime through the varargs. */ enum int DYNAMIC = int.max; /** Special value for precision, meaning the format specifier contained no explicit precision. */ enum int UNSPECIFIED = DYNAMIC - 1; /** The actual format specifier, $(D 's') by default. */ char spec = 's'; /** Index of the argument for positional parameters, from $(D 1) to $(D ubyte.max). ($(D 0) means not used). */ ubyte indexStart; /** Index of the last argument for positional parameter range, from $(D 1) to $(D ubyte.max). ($(D 0) means not used). */ ubyte indexEnd; version(StdDdoc) { /** The format specifier contained a $(D '-') ($(D printf) compatibility). */ bool flDash; /** The format specifier contained a $(D '0') ($(D printf) compatibility). */ bool flZero; /** The format specifier contained a $(D ' ') ($(D printf) compatibility). */ bool flSpace; /** The format specifier contained a $(D '+') ($(D printf) compatibility). */ bool flPlus; /** The format specifier contained a $(D '#') ($(D printf) compatibility). */ bool flHash; // Fake field to allow compilation ubyte allFlags; } else { union { ubyte allFlags; mixin(bitfields!( bool, "flDash", 1, bool, "flZero", 1, bool, "flSpace", 1, bool, "flPlus", 1, bool, "flHash", 1, ubyte, "", 3)); } } /** In case of a compound format specifier starting with $(D "%$(LPAREN)") and ending with $(D "%$(RPAREN)"), $(D _nested) contains the string contained within the two separators. */ const(Char)[] nested; /** In case of a compound format specifier, $(D _sep) contains the string positioning after $(D "%|"). */ const(Char)[] sep; /** $(D _trailing) contains the rest of the format string. */ const(Char)[] trailing; /* This string is inserted before each sequence (e.g. array) formatted (by default $(D "[")). */ enum immutable(Char)[] seqBefore = "["; /* This string is inserted after each sequence formatted (by default $(D "]")). */ enum immutable(Char)[] seqAfter = "]"; /* This string is inserted after each element keys of a sequence (by default $(D ":")). */ enum immutable(Char)[] keySeparator = ":"; /* This string is inserted in between elements of a sequence (by default $(D ", ")). */ enum immutable(Char)[] seqSeparator = ", "; /** Given a string format specification fmt, parses a format specifier. The string is assumed to start with the character immediately following the $(D '%'). The string is advanced to right after the end of the format specifier. */ this(in Char[] fmt) { trailing = fmt; } bool writeUpToNextSpec(OutputRange)(OutputRange writer) { if (trailing.empty) return false; for (size_t i = 0; i < trailing.length; ++i) { if (trailing[i] != '%') continue; if (trailing[++i] != '%') { // Spec found. Print, fill up the spec, and bailout put(writer, trailing[0 .. i - 1]); trailing = trailing[i .. $]; fillUp(); return true; } // Doubled! Now print whatever we had, then update the // string and move on put(writer, trailing[0 .. i - 1]); trailing = trailing[i .. $]; i = 0; } // no format spec found put(writer, trailing); trailing = null; return false; } unittest { auto w = appender!(char[])(); auto f = FormatSpec("abc%sdef%sghi"); f.writeUpToNextSpec(w); assert(w.data == "abc", w.data); assert(f.trailing == "def%sghi", text(f.trailing)); f.writeUpToNextSpec(w); assert(w.data == "abcdef", w.data); assert(f.trailing == "ghi"); // test with embedded %%s f = FormatSpec("ab%%cd%%ef%sg%%h%sij"); w.clear(); f.writeUpToNextSpec(w); assert(w.data == "ab%cd%ef" && f.trailing == "g%%h%sij", w.data); f.writeUpToNextSpec(w); assert(w.data == "ab%cd%efg%h" && f.trailing == "ij"); // bug4775 f = FormatSpec("%%%s"); w.clear(); f.writeUpToNextSpec(w); assert(w.data == "%" && f.trailing == ""); f = FormatSpec("%%%%%s%%"); w.clear(); while (f.writeUpToNextSpec(w)) continue; assert(w.data == "%%%"); } private void fillUp() { // Reset content if (__ctfe) { flDash = false; flZero = false; flSpace = false; flPlus = false; flHash = false; } else { allFlags = 0; } width = 0; precision = UNSPECIFIED; nested = null; // Parse the spec (we assume we're past '%' already) for (size_t i = 0; i < trailing.length; ) { switch (trailing[i]) { case '(': // Embedded format specifier. auto j = i + 1; void check(bool condition) { enforce( condition, text("Incorrect format specifier: %", trailing[i .. $])); } // Get the matching balanced paren for (uint innerParens;;) { check(j < trailing.length); if (trailing[j++] != '%') { // skip, we're waiting for %( and %) continue; } if (trailing[j] == ')') { if (innerParens-- == 0) break; } else if (trailing[j] == '|') { if (innerParens == 0) break; } else if (trailing[j] == '(') { ++innerParens; } } if (trailing[j] == '|') { auto k = j; for (++j;;) { if (trailing[j++] != '%') continue; if (trailing[j] == '%') ++j; else if (trailing[j] == ')') break; else throw new Exception( text("Incorrect format specifier: %", trailing[j .. $])); } nested = to!(typeof(nested))(trailing[i + 1 .. k - 1]); sep = to!(typeof(nested))(trailing[k + 1 .. j - 1]); } else { nested = to!(typeof(nested))(trailing[i + 1 .. j - 1]); sep = null; } //this = FormatSpec(innerTrailingSpec); spec = '('; // We practically found the format specifier trailing = trailing[j + 1 .. $]; return; case '-': flDash = true; ++i; break; case '+': flPlus = true; ++i; break; case '#': flHash = true; ++i; break; case '0': flZero = true; ++i; break; case ' ': flSpace = true; ++i; break; case '*': if (isDigit(trailing[++i])) { // a '*' followed by digits and '$' is a // positional format trailing = trailing[1 .. $]; width = -.parse!(typeof(width))(trailing); i = 0; enforceEx!FormatException( trailing[i++] == '$', "$ expected"); } else { // read result width = DYNAMIC; } break; case '1': .. case '9': auto tmp = trailing[i .. $]; const widthOrArgIndex = .parse!(uint)(tmp); enforceEx!FormatException( tmp.length, text("Incorrect format specifier %", trailing[i .. $])); i = tmp.ptr - trailing.ptr; if (tmp.startsWith('$')) { // index of the form %n$ indexEnd = indexStart = to!ubyte(widthOrArgIndex); ++i; } else if (tmp.length && tmp[0] == ':') { // two indexes of the form %m:n$, or one index of the form %m:$ indexStart = to!ubyte(widthOrArgIndex); tmp = tmp[1 .. $]; if (tmp.startsWith('$')) { indexEnd = indexEnd.max; } else { indexEnd = .parse!(typeof(indexEnd))(tmp); } i = tmp.ptr - trailing.ptr; enforceEx!FormatException( trailing[i++] == '$', "$ expected"); } else { // width width = to!int(widthOrArgIndex); } break; case '.': // Precision if (trailing[++i] == '*') { if (isDigit(trailing[++i])) { // a '.*' followed by digits and '$' is a // positional precision trailing = trailing[i .. $]; i = 0; precision = -.parse!int(trailing); enforceEx!FormatException( trailing[i++] == '$', "$ expected"); } else { // read result precision = DYNAMIC; } } else if (trailing[i] == '-') { // negative precision, as good as 0 precision = 0; auto tmp = trailing[i .. $]; .parse!(int)(tmp); // skip digits i = tmp.ptr - trailing.ptr; } else if (isDigit(trailing[i])) { auto tmp = trailing[i .. $]; precision = .parse!int(tmp); i = tmp.ptr - trailing.ptr; } else { // "." was specified, but nothing after it precision = 0; } break; default: // this is the format char spec = cast(char) trailing[i++]; trailing = trailing[i .. $]; return; } // end switch } // end for throw new Exception(text("Incorrect format specifier: ", trailing)); } //-------------------------------------------------------------------------- private bool readUpToNextSpec(R)(ref R r) { // Reset content if (__ctfe) { flDash = false; flZero = false; flSpace = false; flPlus = false; flHash = false; } else { allFlags = 0; } width = 0; precision = UNSPECIFIED; nested = null; // Parse the spec while (trailing.length) { if (*trailing.ptr == '%') { if (trailing.length > 1 && trailing.ptr[1] == '%') { assert(!r.empty); // Require a '%' if (r.front != '%') break; trailing = trailing[2 .. $]; r.popFront(); } else { enforce(isLower(trailing[1]) || trailing[1] == '*' || trailing[1] == '(', text("'%", trailing[1], "' not supported with formatted read")); trailing = trailing[1 .. $]; fillUp(); return true; } } else { if (trailing.ptr[0] == ' ') { while (!r.empty && std.ascii.isWhite(r.front)) r.popFront(); //r = std.algorithm.find!(not!(std.ascii.isWhite))(r); } else { enforce(!r.empty, text("parseToFormatSpec: Cannot find character `", trailing.ptr[0], "' in the input string.")); if (r.front != trailing.front) break; r.popFront(); } trailing = trailing[std.utf.stride(trailing, 0) .. $]; } } return false; } private const string getCurFmtStr() { auto w = appender!string(); auto f = FormatSpec!Char("%s"); // for stringnize put(w, '%'); if (indexStart != 0) formatValue(w, indexStart, f), put(w, '$'); if (flDash) put(w, '-'); if (flZero) put(w, '0'); if (flSpace) put(w, ' '); if (flPlus) put(w, '+'); if (flHash) put(w, '#'); if (width != 0) formatValue(w, width, f); if (precision != FormatSpec!Char.UNSPECIFIED) put(w, '.'), formatValue(w, precision, f); put(w, spec); return w.data; } unittest { // issue 5237 auto w = appender!string(); auto f = FormatSpec!char("%.16f"); f.writeUpToNextSpec(w); // dummy eating assert(f.spec == 'f'); auto fmt = f.getCurFmtStr(); assert(fmt == "%.16f"); } private const(Char)[] headUpToNextSpec() { auto w = appender!(typeof(return))(); auto tr = trailing; while (tr.length) { if (*tr.ptr == '%') { if (tr.length > 1 && tr.ptr[1] == '%') { tr = tr[2 .. $]; w.put('%'); } else break; } else { w.put(tr.front); tr.popFront(); } } return w.data; } string toString() { return text("address = ", cast(void*) &this, "\nwidth = ", width, "\nprecision = ", precision, "\nspec = ", spec, "\nindexStart = ", indexStart, "\nindexEnd = ", indexEnd, "\nflDash = ", flDash, "\nflZero = ", flZero, "\nflSpace = ", flSpace, "\nflPlus = ", flPlus, "\nflHash = ", flHash, "\nnested = ", nested, "\ntrailing = ", trailing, "\n"); } } /** $(D bool)s are formatted as "true" or "false" with %s and as "1" or "0" with integral-specific format specs. */ void formatValue(Writer, T, Char)(Writer w, T obj, ref FormatSpec!Char f) if (!hasToString!(T, Char) && isBoolean!T && !is(T == enum)) { BooleanTypeOf!T val = obj; if (f.spec == 's') put(w, val ? "true" : "false"); else formatValue(w, cast(int) val, f); } unittest { formatTest( false, "false" ); formatTest( true, "true" ); class C1 { bool val; alias val this; this(bool v){ val = v; } } class C2 { bool val; alias val this; this(bool v){ val = v; } override string toString(){ return "C"; } } formatTest( new C1(false), "false" ); formatTest( new C1(true), "true" ); formatTest( new C2(false), "C" ); formatTest( new C2(true), "C" ); struct S1 { bool val; alias val this; } struct S2 { bool val; alias val this; string toString(){ return "S"; } } formatTest( S1(false), "false" ); formatTest( S1(true), "true" ); formatTest( S2(false), "S" ); formatTest( S2(true), "S" ); } /** Integrals are formatted like $(D printf) does. */ void formatValue(Writer, T, Char)(Writer w, T obj, ref FormatSpec!Char f) if (!hasToString!(T, Char) && isIntegral!T && !is(T == enum)) { IntegralTypeOf!T val = obj; if (f.spec == 'r') { // raw write, skip all else and write the thing auto begin = cast(const char*) &val; if (std.system.endian == Endian.littleEndian && f.flPlus || std.system.endian == Endian.bigEndian && f.flDash) { // must swap bytes foreach_reverse (i; 0 .. val.sizeof) put(w, begin[i]); } else { foreach (i; 0 .. val.sizeof) put(w, begin[i]); } return; } // Forward on to formatIntegral to handle both T and const(T) // Saves duplication of code for both versions. static if (isSigned!T) formatIntegral(w, cast(long) val, f, Unsigned!(T).max); else formatIntegral(w, cast(ulong) val, f, T.max); } private void formatIntegral(Writer, T, Char)(Writer w, const(T) val, ref FormatSpec!Char f, ulong mask) { FormatSpec!Char fs = f; // fs is copy for change its values. T arg = val; uint base = fs.spec == 'x' || fs.spec == 'X' ? 16 : fs.spec == 'o' ? 8 : fs.spec == 'b' ? 2 : fs.spec == 's' || fs.spec == 'd' || fs.spec == 'u' ? 10 : 0; enforceEx!FormatException( base > 0, "integral"); bool negative = (base == 10 && arg < 0); if (negative) { arg = -arg; } // All unsigned integral types should fit in ulong. formatUnsigned(w, (cast(ulong) arg) & mask, fs, base, negative); } private void formatUnsigned(Writer, Char)(Writer w, ulong arg, ref FormatSpec!Char fs, uint base, bool negative) { if (fs.precision == fs.UNSPECIFIED) { // default precision for integrals is 1 fs.precision = 1; } else { // if a precision is specified, the '0' flag is ignored. fs.flZero = false; } char leftPad = void; if (!fs.flDash && !fs.flZero) leftPad = ' '; else if (!fs.flDash && fs.flZero) leftPad = '0'; else leftPad = 0; // figure out sign and continue in unsigned mode char forcedPrefix = void; if (fs.flPlus) forcedPrefix = '+'; else if (fs.flSpace) forcedPrefix = ' '; else forcedPrefix = 0; if (base != 10) { // non-10 bases are always unsigned forcedPrefix = 0; } else if (negative) { // argument is signed forcedPrefix = '-'; } // fill the digits char[] digits = void; { char buffer[64]; // 64 bits in base 2 at most uint i = buffer.length; auto n = arg; do { --i; buffer[i] = cast(char) (n % base); n /= base; if (buffer[i] < 10) buffer[i] += '0'; else buffer[i] += (fs.spec == 'x' ? 'a' : 'A') - 10; } while (n); digits = buffer[i .. $]; // got the digits without the sign } // adjust precision to print a '0' for octal if alternate format is on if (base == 8 && fs.flHash && (fs.precision <= digits.length)) // too low precision { //fs.precision = digits.length + (arg != 0); forcedPrefix = '0'; } // write left pad; write sign; write 0x or 0X; write digits; // write right pad // Writing left pad sizediff_t spacesToPrint = fs.width // start with the minimum width - digits.length // take away digits to print - (forcedPrefix != 0) // take away the sign if any - (base == 16 && fs.flHash && arg ? 2 : 0); // 0x or 0X const sizediff_t delta = fs.precision - digits.length; if (delta > 0) spacesToPrint -= delta; if (spacesToPrint > 0) // need to do some padding { if (leftPad == '0') { // pad with zeros fs.precision = cast(typeof(fs.precision)) (spacesToPrint + digits.length); //to!(typeof(fs.precision))(spacesToPrint + digits.length); } else if (leftPad) foreach (i ; 0 .. spacesToPrint) put(w, ' '); } // write sign if (forcedPrefix) put(w, forcedPrefix); // write 0x or 0X if (base == 16 && fs.flHash && arg) { // @@@ overcome bug in dmd; //w.write(fs.spec == 'x' ? "0x" : "0X"); //crashes the compiler put(w, '0'); put(w, fs.spec == 'x' ? 'x' : 'X'); // x or X } // write the digits if (arg || fs.precision) { sizediff_t zerosToPrint = fs.precision - digits.length; foreach (i ; 0 .. zerosToPrint) put(w, '0'); put(w, digits); } // write the spaces to the right if left-align if (!leftPad) foreach (i ; 0 .. spacesToPrint) put(w, ' '); } unittest { formatTest( 10, "10" ); class C1 { long val; alias val this; this(long v){ val = v; } } class C2 { long val; alias val this; this(long v){ val = v; } override string toString(){ return "C"; } } formatTest( new C1(10), "10" ); formatTest( new C2(10), "C" ); struct S1 { long val; alias val this; } struct S2 { long val; alias val this; string toString(){ return "S"; } } formatTest( S1(10), "10" ); formatTest( S2(10), "S" ); } /** * Floating-point values are formatted like $(D printf) does. */ void formatValue(Writer, T, Char)(Writer w, T obj, ref FormatSpec!Char f) if (!hasToString!(T, Char) && isFloatingPoint!T && !is(T == enum)) { FormatSpec!Char fs = f; // fs is copy for change its values. FloatingPointTypeOf!T val = obj; if (fs.spec == 'r') { // raw write, skip all else and write the thing auto begin = cast(const char*) &val; if (std.system.endian == Endian.littleEndian && f.flPlus || std.system.endian == Endian.bigEndian && f.flDash) { // must swap bytes foreach_reverse (i; 0 .. val.sizeof) put(w, begin[i]); } else { foreach (i; 0 .. val.sizeof) put(w, begin[i]); } return; } enforceEx!FormatException( std.algorithm.find("fgFGaAeEs", fs.spec).length, "floating"); if (fs.spec == 's') fs.spec = 'g'; char sprintfSpec[1 /*%*/ + 5 /*flags*/ + 3 /*width.prec*/ + 2 /*format*/ + 1 /*\0*/] = void; sprintfSpec[0] = '%'; uint i = 1; if (fs.flDash) sprintfSpec[i++] = '-'; if (fs.flPlus) sprintfSpec[i++] = '+'; if (fs.flZero) sprintfSpec[i++] = '0'; if (fs.flSpace) sprintfSpec[i++] = ' '; if (fs.flHash) sprintfSpec[i++] = '#'; sprintfSpec[i .. i + 3] = "*.*"; i += 3; if (is(Unqual!(typeof(val)) == real)) sprintfSpec[i++] = 'L'; sprintfSpec[i++] = fs.spec; sprintfSpec[i] = 0; //printf("format: '%s'; geeba: %g\n", sprintfSpec.ptr, val); char[512] buf; immutable n = snprintf(buf.ptr, buf.length, sprintfSpec.ptr, fs.width, // negative precision is same as no precision specified fs.precision == fs.UNSPECIFIED ? -1 : fs.precision, val); enforceEx!FormatException( n >= 0, "floating point formatting failure"); put(w, buf[0 .. strlen(buf.ptr)]); } unittest { foreach (T; TypeTuple!(float, double, real)) { formatTest( to!( T)(5.5), "5.5" ); formatTest( to!( const T)(5.5), "5.5" ); formatTest( to!(immutable T)(5.5), "5.5" ); } } unittest { formatTest( 2.25, "2.25" ); class C1 { double val; alias val this; this(double v){ val = v; } } class C2 { double val; alias val this; this(double v){ val = v; } override string toString(){ return "C"; } } formatTest( new C1(2.25), "2.25" ); formatTest( new C2(2.25), "C" ); struct S1 { double val; alias val this; } struct S2 { double val; alias val this; string toString(){ return "S"; } } formatTest( S1(2.25), "2.25" ); formatTest( S2(2.25), "S" ); } /* Formatting a $(D creal) is deprecated but still kept around for a while. */ void formatValue(Writer, T, Char)(Writer w, T obj, ref FormatSpec!Char f) if (!hasToString!(T, Char) && is(Unqual!T : creal) && !is(T == enum)) { creal val = obj; formatValue(w, val.re, f); put(w, '+'); formatValue(w, val.im, f); put(w, 'i'); } unittest { foreach (T; TypeTuple!(cfloat, cdouble, creal)) { formatTest( to!( T)(1 + 1i), "1+1i" ); formatTest( to!( const T)(1 + 1i), "1+1i" ); formatTest( to!(immutable T)(1 + 1i), "1+1i" ); } } unittest { formatTest( 3+2.25i, "3+2.25i" ); class C1 { cdouble val; alias val this; this(cdouble v){ val = v; } } class C2 { cdouble val; alias val this; this(cdouble v){ val = v; } override string toString(){ return "C"; } } formatTest( new C1(3+2.25i), "3+2.25i" ); formatTest( new C2(3+2.25i), "C" ); struct S1 { cdouble val; alias val this; } struct S2 { cdouble val; alias val this; string toString(){ return "S"; } } formatTest( S1(3+2.25i), "3+2.25i" ); formatTest( S2(3+2.25i), "S" ); } /* Formatting an $(D ireal) is deprecated but still kept around for a while. */ void formatValue(Writer, T, Char)(Writer w, T obj, ref FormatSpec!Char f) if (!hasToString!(T, Char) && is(Unqual!T : ireal) && !is(T == enum)) { ireal val = obj; formatValue(w, val.im, f); put(w, 'i'); } unittest { foreach (T; TypeTuple!(ifloat, idouble, ireal)) { formatTest( to!( T)(1i), "1i" ); formatTest( to!( const T)(1i), "1i" ); formatTest( to!(immutable T)(1i), "1i" ); } } unittest { formatTest( 2.25i, "2.25i" ); class C1 { idouble val; alias val this; this(idouble v){ val = v; } } class C2 { idouble val; alias val this; this(idouble v){ val = v; } override string toString(){ return "C"; } } formatTest( new C1(2.25i), "2.25i" ); formatTest( new C2(2.25i), "C" ); struct S1 { idouble val; alias val this; } struct S2 { idouble val; alias val this; string toString(){ return "S"; } } formatTest( S1(2.25i), "2.25i" ); formatTest( S2(2.25i), "S" ); } /** Individual characters ($(D char), $(D wchar), or $(D dchar)) are formatted as Unicode characters with %s and as integers with integral-specific format specs. */ void formatValue(Writer, T, Char)(Writer w, T obj, ref FormatSpec!Char f) if (!hasToString!(T, Char) && isSomeChar!T && !is(T == enum)) { CharTypeOf!T val = obj; if (f.spec == 's' || f.spec == 'c') { put(w, val); } else { formatValue(w, cast(uint) val, f); } } unittest { formatTest( 'c', "c" ); class C1 { char val; alias val this; this(char v){ val = v; } } class C2 { char val; alias val this; this(char v){ val = v; } override string toString(){ return "C"; } } formatTest( new C1('c'), "c" ); formatTest( new C2('c'), "C" ); struct S1 { char val; alias val this; } struct S2 { char val; alias val this; string toString(){ return "S"; } } formatTest( S1('c'), "c" ); formatTest( S2('c'), "S" ); } /** Strings are formatted like $(D printf) does. */ void formatValue(Writer, T, Char)(Writer w, T obj, ref FormatSpec!Char f) if (!hasToString!(T, Char) && isSomeString!T && !isStaticArray!T && !is(T == enum)) { Unqual!(StringTypeOf!T) val = obj; // for `alias this`, see bug5371 formatRange(w, val, f); } unittest { formatTest( "abc", "abc" ); } unittest { // Test for bug 5371 for classes class C1 { const string var; alias var this; this(string s){ var = s; } } class C2 { string var; alias var this; this(string s){ var = s; } } formatTest( new C1("c1"), "c1" ); formatTest( new C2("c2"), "c2" ); // Test for bug 5371 for structs struct S1 { const string var; alias var this; } struct S2 { string var; alias var this; } formatTest( S1("s1"), "s1" ); formatTest( S2("s2"), "s2" ); } unittest { class C3 { string val; alias val this; this(string s){ val = s; } override string toString(){ return "C"; } } formatTest( new C3("c3"), "C" ); struct S3 { string val; alias val this; string toString(){ return "S"; } } formatTest( S3("s3"), "S" ); } /** Static-size arrays are formatted as dynamic arrays. */ void formatValue(Writer, T, Char)(Writer w, ref T obj, ref FormatSpec!Char f) if (!hasToString!(T, Char) && isStaticArray!T && !is(T == enum)) { formatValue(w, obj[], f); } /** Dynamic arrays are formatted as input ranges. Specializations: $(UL $(LI $(D void[]) is formatted like $(D ubyte[]).) $(LI Const array is converted to input range by removing its qualifier.)) */ void formatValue(Writer, T, Char)(Writer w, T obj, ref FormatSpec!Char f) if (!hasToString!(T, Char) && !isSomeString!T && isDynamicArray!T && !is(T == enum)) { static if (is(const(ArrayTypeOf!T) == const(void[]))) { formatValue(w, cast(const ubyte[])obj, f); } else static if (!isInputRange!T) { alias Unqual!(ArrayTypeOf!T) U; static assert(isInputRange!U); U val = obj; formatValue(w, val, f); } else { formatRange(w, obj, f); } } // alias this, input range I/F, and toString() unittest { struct S(uint flags) { int[] arr; static if (flags & 1) alias arr this; static if (flags & 2) { @property bool empty() const { return arr.length == 0; } @property int front() const { return arr[0] * 2; } void popFront() { arr = arr[1..$]; } } static if (flags & 4) string toString(){ return "S"; } } formatTest(S!0b000([0, 1, 2]), "S!(0)([0, 1, 2])"); formatTest(S!0b001([0, 1, 2]), "[0, 1, 2]"); // Test for bug 7628 formatTest(S!0b010([0, 1, 2]), "[0, 2, 4]"); formatTest(S!0b011([0, 1, 2]), "[0, 2, 4]"); formatTest(S!0b100([0, 1, 2]), "S"); formatTest(S!0b101([0, 1, 2]), "S"); // Test for bug 7628 formatTest(S!0b110([0, 1, 2]), "S"); formatTest(S!0b111([0, 1, 2]), "S"); class C(uint flags) { int[] arr; static if (flags & 1) alias arr this; this(int[] a) { arr = a; } static if (flags & 2) { @property bool empty() const { return arr.length == 0; } @property int front() const { return arr[0] * 2; } void popFront() { arr = arr[1..$]; } } static if (flags & 4) override string toString(){ return "C"; } } formatTest(new C!0b000([0, 1, 2]), (new C!0b000([])).toString()); formatTest(new C!0b001([0, 1, 2]), "[0, 1, 2]"); // Test for bug 7628 formatTest(new C!0b010([0, 1, 2]), "[0, 2, 4]"); formatTest(new C!0b011([0, 1, 2]), "[0, 2, 4]"); formatTest(new C!0b100([0, 1, 2]), "C"); formatTest(new C!0b101([0, 1, 2]), "C"); // Test for bug 7628 formatTest(new C!0b110([0, 1, 2]), "C"); formatTest(new C!0b111([0, 1, 2]), "C"); } unittest { // void[] void[] val0; formatTest( val0, "[]" ); void[] val = cast(void[])cast(ubyte[])[1, 2, 3]; formatTest( val, "[1, 2, 3]" ); void[0] sval0 = []; formatTest( sval0, "[]"); void[3] sval = cast(void[3])cast(ubyte[3])[1, 2, 3]; formatTest( sval, "[1, 2, 3]" ); } unittest { // const(T[]) -> const(T)[] const short[] a = [1, 2, 3]; formatTest( a, "[1, 2, 3]" ); struct S { const(int[]) arr; alias arr this; } auto s = S([1,2,3]); formatTest( s, "[1, 2, 3]" ); } unittest { // 6640 struct Range { string value; const @property bool empty(){ return !value.length; } const @property dchar front(){ return value.front(); } void popFront(){ value.popFront(); } const @property size_t length(){ return value.length; } } immutable table = [ ["[%s]", "[string]"], ["[%10s]", "[ string]"], ["[%-10s]", "[string ]"], ["[%(%02x %)]", "[73 74 72 69 6e 67]"], ["[%(%c %)]", "[s t r i n g]"], ]; foreach (e; table) { formatTest(e[0], "string", e[1]); formatTest(e[0], Range("string"), e[1]); } } unittest { // string literal from valid UTF sequence is encoding free. foreach (StrType; TypeTuple!(string, wstring, dstring)) { // Valid and printable (ASCII) formatTest( [cast(StrType)"hello"], `["hello"]` ); // 1 character escape sequences formatTest( [cast(StrType)"\"\\\a\b\f\n\r\t\v"], `["\"\\\a\b\f\n\r\t\v"]` ); // Valid and non-printable code point (<= U+FF) formatTest( [cast(StrType)"\x00\x10\x1F\x20test"], `["\x00\x10\x1F test"]` ); // Valid and non-printable code point (<= U+FFFF) formatTest( [cast(StrType)"\u200B..\u200F"], `["\u200B..\u200F"]` ); // Valid and non-printable code point (<= U+10FFFF) formatTest( [cast(StrType)"\U000E0020..\U000E007F"], `["\U000E0020..\U000E007F"]` ); } // invalid UTF sequence needs hex-string literal postfix (c/w/d) { // U+FFFF with UTF-8 (Invalid code point for interchange) formatTest( [cast(string)[0xEF, 0xBF, 0xBF]], `[x"EF BF BF"c]` ); // U+FFFF with UTF-16 (Invalid code point for interchange) formatTest( [cast(wstring)[0xFFFF]], `[x"FFFF"w]` ); // U+FFFF with UTF-32 (Invalid code point for interchange) formatTest( [cast(dstring)[0xFFFF]], `[x"FFFF"d]` ); } } unittest { // nested range formatting with array of string formatTest( "%({%(%02x %)}%| %)", ["test", "msg"], `{74 65 73 74} {6d 73 67}` ); } // input range formatting private void formatRange(Writer, T, Char)(ref Writer w, ref T val, ref FormatSpec!Char f) if (isInputRange!T) { // Formatting character ranges like string static if (isSomeChar!(ElementType!T)) if (f.spec == 's') { static if (isSomeString!T) { auto s = val[0 .. f.precision < $ ? f.precision : $]; if (!f.flDash) { // right align if (f.width > s.length) foreach (i ; 0 .. f.width - s.length) put(w, ' '); put(w, s); } else { // left align put(w, s); if (f.width > s.length) foreach (i ; 0 .. f.width - s.length) put(w, ' '); } } else { if (!f.flDash) { static if (hasLength!T) { // right align auto len = val.length; } else static if (isForwardRange!T) { auto len = walkLength(val.save); } else { enforce(f.width == 0, "Cannot right-align a range without length"); size_t len = 0; } if (f.precision != f.UNSPECIFIED && len > f.precision) len = f.precision; if (f.width > len) foreach (i ; 0 .. f.width - len) put(w, ' '); if (f.precision == f.UNSPECIFIED) put(w, val); else { size_t printed = 0; for (; !val.empty && printed < f.precision; val.popFront(), ++printed) put(w, val.front); } } else { size_t printed = void; // left align if (f.precision == f.UNSPECIFIED) { static if (hasLength!T) { printed = val.length; put(w, val); } else { printed = 0; for (; !val.empty; val.popFront(), ++printed) put(w, val.front); } } else { printed = 0; for (; !val.empty && printed < f.precision; val.popFront(), ++printed) put(w, val.front); } if (f.width > printed) foreach (i ; 0 .. f.width - printed) put(w, ' '); } } return; } if (f.spec == 'r') { // raw writes for (size_t i; !val.empty; val.popFront(), ++i) { formatValue(w, val.front, f); } } else if (f.spec == 's') { put(w, f.seqBefore); if (!val.empty) { formatElement(w, val.front, f); val.popFront(); for (size_t i; !val.empty; val.popFront(), ++i) { put(w, f.seqSeparator); formatElement(w, val.front, f); } } static if (!isInfinite!T) put(w, f.seqAfter); } else if (f.spec == '(') { if (val.empty) return; // Nested specifier is to be used for (;;) { auto fmt = FormatSpec!Char(f.nested); fmt.writeUpToNextSpec(w); formatElement(w, val.front, fmt); if (f.sep) { put(w, fmt.trailing); val.popFront(); if (val.empty) break; put(w, f.sep); } else { val.popFront(); if (val.empty) break; put(w, fmt.trailing); } } } else throw new Exception(text("Incorrect format specifier for range: %", f.spec)); } // character formatting with ecaping private void formatChar(Writer)(Writer w, dchar c) { if (std.uni.isGraphical(c)) { if (c == '\"' || c == '\\') put(w, '\\'), put(w, c); else put(w, c); } else if (c <= 0xFF) { put(w, '\\'); switch (c) { case '\a': put(w, 'a'); break; case '\b': put(w, 'b'); break; case '\f': put(w, 'f'); break; case '\n': put(w, 'n'); break; case '\r': put(w, 'r'); break; case '\t': put(w, 't'); break; case '\v': put(w, 'v'); break; default: formattedWrite(w, "x%02X", cast(uint)c); } } else if (c <= 0xFFFF) formattedWrite(w, "\\u%04X", cast(uint)c); else formattedWrite(w, "\\U%08X", cast(uint)c); } // undocumented // string elements are formatted like UTF-8 string literals. void formatElement(Writer, T, Char)(Writer w, T val, ref FormatSpec!Char f) if (isSomeString!T) { if (f.spec == 's') { try { // ignore other specifications and quote auto app = appender!(typeof(T[0])[])(); put(app, '\"'); for (size_t i = 0; i < val.length; ) { auto c = std.utf.decode(val, i); // \uFFFE and \uFFFF are considered valid by isValidDchar, // so need checking for interchange. if (c == 0xFFFE || c == 0xFFFF) goto LinvalidSeq; formatChar(app, c); } put(app, '\"'); put(w, app.data()); return; } catch (UTFException) { } // If val contains invalid UTF sequence, formatted like HexString literal LinvalidSeq: static if (is(typeof(val[0]) : const(char))) { enum postfix = 'c'; alias const(ubyte)[] IntArr; } else static if (is(typeof(val[0]) : const(wchar))) { enum postfix = 'w'; alias const(ushort)[] IntArr; } else static if (is(typeof(val[0]) : const(dchar))) { enum postfix = 'd'; alias const(uint)[] IntArr; } formattedWrite(w, "x\"%(%02X %)\"%s", cast(IntArr)val, postfix); } else formatValue(w, val, f); } // undocumented // character elements are formatted like UTF-8 character literals. void formatElement(Writer, T, Char)(Writer w, T val, ref FormatSpec!Char f) if (isSomeChar!T) { if (f.spec == 's') { put(w, '\''); formatChar(w, val); put(w, '\''); } else formatValue(w, val, f); } // undocumented // Maybe T is noncopyable struct, so receive it by 'auto ref'. void formatElement(Writer, T, Char)(Writer w, auto ref T val, ref FormatSpec!Char f) if (!isSomeString!T && !isSomeChar!T) { formatValue(w, val, f); } /** Associative arrays are formatted by using $(D ':') and $(D ', ') as separators, and enclosed by $(D '[') and $(D ']'). */ void formatValue(Writer, T, Char)(Writer w, T obj, ref FormatSpec!Char f) if (!hasToString!(T, Char) && isAssociativeArray!T && !is(T == enum)) { AssocArrayTypeOf!T val = obj; enforceEx!FormatException( f.spec == 's' || f.spec == '(', "associative"); enum const(Char)[] defSpec = "%s" ~ f.keySeparator ~ "%s" ~ f.seqSeparator; auto fmtSpec = f.spec == '(' ? f.nested : defSpec; size_t i = 0, end = val.length; if (f.spec == 's') put(w, f.seqBefore); foreach (k, ref v; val) { auto fmt = FormatSpec!Char(fmtSpec); fmt.writeUpToNextSpec(w); formatElement(w, k, fmt); fmt.writeUpToNextSpec(w); formatElement(w, v, fmt); if (f.sep) { fmt.writeUpToNextSpec(w); if (++i != end) put(w, f.sep); } else { if (++i != end) fmt.writeUpToNextSpec(w); } } if (f.spec == 's') put(w, f.seqAfter); } unittest { int[string] aa0; formatTest( aa0, `[]` ); // elements escaping formatTest( ["aaa":1, "bbb":2, "ccc":3], `["aaa":1, "bbb":2, "ccc":3]` ); formatTest( ['c':"str"], `['c':"str"]` ); // range formatting for AA auto aa3 = [1:"hello", 2:"world"]; // escape formatTest( "{%(%s:%s $ %)}", aa3, `{1:"hello" $ 2:"world"}`); // use range formatting for key and value, and use %| formatTest( "{%([%04d->%(%c.%)]%| $ %)}", aa3, `{[0001->h.e.l.l.o] $ [0002->w.o.r.l.d]}` ); } unittest { class C1 { int[char] val; alias val this; this(int[char] v){ val = v; } } class C2 { int[char] val; alias val this; this(int[char] v){ val = v; } override string toString(){ return "C"; } } formatTest( new C1(['c':1, 'd':2]), `['c':1, 'd':2]` ); formatTest( new C2(['c':1, 'd':2]), "C" ); struct S1 { int[char] val; alias val this; } struct S2 { int[char] val; alias val this; string toString(){ return "S"; } } formatTest( S1(['c':1, 'd':2]), `['c':1, 'd':2]` ); formatTest( S2(['c':1, 'd':2]), "S" ); } template hasToString(T, Char) { static if (is(typeof({ T val; FormatSpec!Char f; val.toString((const(char)[] s){}, f); }))) { enum hasToString = 4; } else static if (is(typeof({ T val; val.toString((const(char)[] s){}, "%s"); }))) { enum hasToString = 3; } else static if (is(typeof({ T val; val.toString((const(char)[] s){}); }))) { enum hasToString = 2; } else static if (is(typeof({ T val; return val.toString(); }()) S) && isSomeString!S) { enum hasToString = 1; } else { enum hasToString = 0; } } // object formatting with toString private void formatObject(Writer, T, Char)(ref Writer w, ref T val, ref FormatSpec!Char f) if (hasToString!(T, Char)) { static if (is(typeof(val.toString((const(char)[] s){}, f)))) { val.toString((const(char)[] s) { put(w, s); }, f); } else static if (is(typeof(val.toString((const(char)[] s){}, "%s")))) { val.toString((const(char)[] s) { put(w, s); }, f.getCurFmtStr()); } else static if (is(typeof(val.toString((const(char)[] s){})))) { val.toString((const(char)[] s) { put(w, s); }); } else static if (is(typeof(val.toString()) S) && isSomeString!S) { put(w, val.toString()); } else static assert(0); } /** Aggregates ($(D struct), $(D union), $(D class), and $(D interface)) are basically formatted by calling $(D toString). $(D toString) should have one of the following signatures: --- const void toString(scope void delegate(const(char)[]) sink, FormatSpec fmt); const void toString(scope void delegate(const(char)[]) sink, string fmt); const void toString(scope void delegate(const(char)[]) sink); const string toString(); --- For the class objects which have input range interface, $(UL $(LI If the instance $(D toString) has overridden $(D Object.toString), it is used.) $(LI Otherwise, the objects are formatted as input range.)) For the struct and union objects which does not have $(D toString), $(UL $(LI If they have range interface, formatted as input range.) $(LI Otherwise, they are formatted like $(D Type(field1, filed2, ...)).)) Otherwise, are formatted just as their type name. */ void formatValue(Writer, T, Char)(Writer w, T val, ref FormatSpec!Char f) if (is(T == class) && !is(T == enum)) { // TODO: Change this once toString() works for shared objects. static assert(!is(T == shared), "unable to format shared objects"); if (val is null) put(w, "null"); else { static if (hasToString!(T, Char) > 1 || (!isInputRange!T && !isBuiltinType!T)) { formatObject!(Writer, T, Char)(w, val, f); } else { //string delegate() dg = &val.toString; Object o = val; // workaround string delegate() dg = &o.toString; if (dg.funcptr != &Object.toString) // toString is overridden { formatObject(w, val, f); } else static if (isInputRange!T) { formatRange(w, val, f); } else static if (is(BuiltinTypeOf!T X)) { X x = val; formatValue(w, x, f); } else { formatObject(w, val, f); } } } } unittest { // class range (issue 5154) auto c = inputRangeObject([1,2,3,4]); formatTest( c, "[1, 2, 3, 4]" ); assert(c.empty); c = null; formatTest( c, "null" ); } unittest { // 5354 // If the class has both range I/F and custom toString, the use of custom // toString routine is prioritized. // Enable the use of custom toString that gets a sink delegate // for class formatting. enum inputRangeCode = q{ int[] arr; this(int[] a){ arr = a; } @property int front() const { return arr[0]; } @property bool empty() const { return arr.length == 0; } void popFront(){ arr = arr[1..$]; } }; class C1 { mixin(inputRangeCode); void toString(scope void delegate(const(char)[]) dg, ref FormatSpec!char f) const { dg("[012]"); } } class C2 { mixin(inputRangeCode); void toString(scope void delegate(const(char)[]) dg, string f) const { dg("[012]"); } } class C3 { mixin(inputRangeCode); void toString(scope void delegate(const(char)[]) dg) const { dg("[012]"); } } class C4 { mixin(inputRangeCode); override string toString() { return "[012]"; } } class C5 { mixin(inputRangeCode); } formatTest( new C1([0, 1, 2]), "[012]" ); formatTest( new C2([0, 1, 2]), "[012]" ); formatTest( new C3([0, 1, 2]), "[012]" ); formatTest( new C4([0, 1, 2]), "[012]" ); formatTest( new C5([0, 1, 2]), "[0, 1, 2]" ); } /// ditto void formatValue(Writer, T, Char)(Writer w, T val, ref FormatSpec!Char f) if (is(T == interface) && (hasToString!(T, Char) || !isBuiltinType!T) && !is(T == enum)) { if (val is null) put(w, "null"); else { static if (hasToString!(T, Char)) { formatObject(w, val, f); } else static if (isInputRange!T) { formatRange(w, val, f); } else { formatValue(w, cast(Object)val, f); } } } unittest { // interface InputRange!int i = inputRangeObject([1,2,3,4]); formatTest( i, "[1, 2, 3, 4]" ); assert(i.empty); i = null; formatTest( i, "null" ); // interface (downcast to Object) interface Whatever {} class C : Whatever { override @property string toString() { return "ab"; } } Whatever val = new C; formatTest( val, "ab" ); } /// ditto // Maybe T is noncopyable struct, so receive it by 'auto ref'. void formatValue(Writer, T, Char)(Writer w, auto ref T val, ref FormatSpec!Char f) if ((is(T == struct) || is(T == union)) && (hasToString!(T, Char) || !isBuiltinType!T) && !is(T == enum)) { static if (hasToString!(T, Char)) { formatObject(w, val, f); } else static if (isInputRange!T) { formatRange(w, val, f); } else static if (is(T == struct)) { enum left = T.stringof~"("; enum separator = ", "; enum right = ")"; put(w, left); foreach (i, e; val.tupleof) { static if (0 < i && val.tupleof[i-1].offsetof == val.tupleof[i].offsetof) { static if (i == val.tupleof.length - 1 || val.tupleof[i].offsetof != val.tupleof[i+1].offsetof) put(w, separator~val.tupleof[i].stringof[4..$]~"}"); else put(w, separator~val.tupleof[i].stringof[4..$]); } else { static if (i+1 < val.tupleof.length && val.tupleof[i].offsetof == val.tupleof[i+1].offsetof) put(w, (i > 0 ? separator : "")~"#{overlap "~val.tupleof[i].stringof[4..$]); else { static if (i > 0) put(w, separator); formatElement(w, e, f); } } } put(w, right); } else { put(w, T.stringof); } } unittest { // bug 4638 struct U8 { string toString() { return "blah"; } } struct U16 { wstring toString() { return "blah"; } } struct U32 { dstring toString() { return "blah"; } } formatTest( U8(), "blah" ); formatTest( U16(), "blah" ); formatTest( U32(), "blah" ); } unittest { // 3890 struct Int{ int n; } struct Pair{ string s; Int i; } formatTest( Pair("hello", Int(5)), `Pair("hello", Int(5))` ); } unittest { // union formatting without toString union U1 { int n; string s; } U1 u1; formatTest( u1, "U1" ); // union formatting with toString union U2 { int n; string s; string toString(){ return s; } } U2 u2; u2.s = "hello"; formatTest( u2, "hello" ); } unittest { // 7230 static struct Bug7230 { string s = "hello"; union { string a; int b; double c; } long x = 10; } Bug7230 bug; bug.b = 123; FormatSpec!char f; auto w = appender!(char[])(); formatValue(w, bug, f); assert(w.data == `Bug7230("hello", #{overlap a, b, c}, 10)`); } unittest { static struct S{ @disable this(this); } S s; FormatSpec!char f; auto w = appender!string(); formatValue(w, s, f); assert(w.data == "S()"); } /** $(D enum) is formatted like its base value. */ void formatValue(Writer, T, Char)(Writer w, T val, ref FormatSpec!Char f) if (is(T == enum)) { if (f.spec == 's') { foreach (i, e; EnumMembers!T) { if (val == e) { formatValue(w, __traits(allMembers, T)[i], f); return; } } // val is not a member of T, output cast(T)rawValue instead. put(w, "cast(" ~ T.stringof ~ ")"); static assert(!is(OriginalType!T == T)); } formatValue(w, cast(OriginalType!T)val, f); } unittest { enum A { first, second, third } formatTest( A.second, "second" ); formatTest( cast(A)72, "cast(A)72" ); } unittest { enum A : string { one = "uno", two = "dos", three = "tres" } formatTest( A.three, "three" ); formatTest( cast(A)"mill\&oacute;n", "cast(A)mill\&oacute;n" ); } unittest { enum A : bool { no, yes } formatTest( A.yes, "yes" ); formatTest( A.no, "no" ); } unittest { // Test for bug 6892 enum Foo { A = 10 } formatTest("%s", Foo.A, "A"); formatTest(">%4s<", Foo.A, "> A<"); formatTest("%04d", Foo.A, "0010"); formatTest("%+2u", Foo.A, "+10"); formatTest("%02x", Foo.A, "0a"); formatTest("%3o", Foo.A, " 12"); formatTest("%b", Foo.A, "1010"); } /** Pointers are formatted as hex integers. */ void formatValue(Writer, T, Char)(Writer w, T val, ref FormatSpec!Char f) if (/*!hasToString!(T, Char) && */isPointer!T) { if (val is null) put(w, "null"); else { static if (isInputRange!T) { formatRange(w, *val, f); } else { const void * p = val; if (f.spec == 's') { FormatSpec!Char fs = f; // fs is copy for change its values. fs.spec = 'X'; formatValue(w, cast(ulong) p, fs); } else { enforceEx!FormatException(f.spec == 'X' || f.spec == 'x', "Expected one of %s, %x or %X for pointer type."); formatValue(w, cast(ulong) p, f); } } } } unittest { // pointer auto r = retro([1,2,3,4]); auto p = &r; formatTest( p, "[4, 3, 2, 1]" ); assert(p.empty); p = null; formatTest( p, "null" ); auto q = cast(void*)0xFFEECCAA; formatTest( q, "FFEECCAA" ); } unittest { struct S { string toString(){ return ""; } } S* p = null; formatTest( p, "null" ); S* q = cast(S*)0xFFEECCAA; formatTest( q, "FFEECCAA" ); } /** Delegates are formatted by 'Attributes ReturnType delegate(Parameters)' */ void formatValue(Writer, T, Char)(Writer w, T val, ref FormatSpec!Char f) if (!hasToString!(T, Char) && is(T == delegate)) { alias FunctionAttribute FA; if (functionAttributes!T & FA.pure_) formatValue(w, "pure ", f); if (functionAttributes!T & FA.nothrow_) formatValue(w, "nothrow ", f); if (functionAttributes!T & FA.ref_) formatValue(w, "ref ", f); if (functionAttributes!T & FA.property) formatValue(w, "@property ", f); if (functionAttributes!T & FA.trusted) formatValue(w, "@trusted ", f); if (functionAttributes!T & FA.safe) formatValue(w, "@safe ", f); formatValue(w, ReturnType!(T).stringof,f); formatValue(w, " delegate",f); formatValue(w, ParameterTypeTuple!(T).stringof,f); } unittest { void func() {} formatTest( &func, "void delegate()" ); } /* Formatting a $(D typedef) is deprecated but still kept around for a while. */ void formatValue(Writer, T, Char)(Writer w, T val, ref FormatSpec!Char f) if (is(T == typedef)) { static if (is(T U == typedef)) { formatValue(w, cast(U) val, f); } } /* Formats an object of type 'D' according to 'f' and writes it to 'w'. The pointer 'arg' is assumed to point to an object of type 'D'. The untyped signature is for the sake of taking this function's address. */ private void formatGeneric(Writer, D, Char)(Writer w, const(void)* arg, ref FormatSpec!Char f) { formatValue(w, *cast(D*) arg, f); } private void formatNth(Writer, Char, A...)(Writer w, ref FormatSpec!Char f, size_t index, A args) { static string gencode(size_t count)() { string result; foreach (n; 0 .. count) { auto num = to!string(n); result ~= "case "~num~":"~ " formatValue(w, args["~num~"], f);"~ " break;"; } return result; } switch (index) { mixin(gencode!(A.length)()); default: assert(0, "n = "~cast(char)(index + '0')); } } unittest { int[] a = [ 1, 3, 2 ]; formatTest( "testing %(%s & %) embedded", a, "testing 1 & 3 & 2 embedded"); formatTest( "testing %((%s) %)) wyda3", a, "testing (1) (3) (2) wyda3" ); int[0] empt = []; formatTest( "(%s)", empt, "([])" ); } //------------------------------------------------------------------------------ // Fix for issue 1591 private int getNthInt(A...)(uint index, A args) { static if (A.length) { if (index) { return getNthInt(index - 1, args[1 .. $]); } static if (is(typeof(args[0]) : long) || is(typeof(arg) : ulong)) { return to!(int)(args[0]); } else { throw new FormatException("int expected"); } } else { throw new FormatException("int expected"); } } /* ======================== Unit Tests ====================================== */ version(unittest) void formatTest(T)(T val, string expected, size_t ln = __LINE__, string fn = __FILE__) { FormatSpec!char f; auto w = appender!string(); formatValue(w, val, f); enforceEx!AssertError( w.data == expected, text("expected = `", expected, "`, result = `", w.data, "`"), fn, ln); } version(unittest) void formatTest(T)(string fmt, T val, string expected, size_t ln = __LINE__, string fn = __FILE__) { auto w = appender!string(); formattedWrite(w, fmt, val); enforceEx!AssertError( w.data == expected, text("expected = `", expected, "`, result = `", w.data, "`"), fn, ln); } unittest { auto stream = appender!string(); formattedWrite(stream, "%s", 1.1); assert(stream.data == "1.1", stream.data); stream = appender!string(); formattedWrite(stream, "%s", map!"a*a"([2, 3, 5])); assert(stream.data == "[4, 9, 25]", stream.data); // Test shared data. stream = appender!string(); shared int s = 6; formattedWrite(stream, "%s", s); assert(stream.data == "6"); } unittest { auto stream = appender!string(); formattedWrite(stream, "%u", 42); assert(stream.data == "42", stream.data); } unittest { // testing raw writes auto w = appender!(char[])(); uint a = 0x02030405; formattedWrite(w, "%+r", a); assert(w.data.length == 4 && w.data[0] == 2 && w.data[1] == 3 && w.data[2] == 4 && w.data[3] == 5); w.clear(); formattedWrite(w, "%-r", a); assert(w.data.length == 4 && w.data[0] == 5 && w.data[1] == 4 && w.data[2] == 3 && w.data[3] == 2); } unittest { // testing positional parameters auto w = appender!(char[])(); formattedWrite(w, "Numbers %2$s and %1$s are reversed and %1$s%2$s repeated", 42, 0); assert(w.data == "Numbers 0 and 42 are reversed and 420 repeated", w.data); w.clear(); formattedWrite(w, "asd%s", 23); assert(w.data == "asd23", w.data); w.clear(); formattedWrite(w, "%s%s", 23, 45); assert(w.data == "2345", w.data); } unittest { debug(format) printf("std.format.format.unittest\n"); auto stream = appender!(char[])(); //goto here; formattedWrite(stream, "hello world! %s %s ", true, 57, 1_000_000_000, 'x', " foo"); assert(stream.data == "hello world! true 57 ", stream.data); stream.clear(); formattedWrite(stream, "%g %A %s", 1.67, -1.28, float.nan); // std.c.stdio.fwrite(stream.data.ptr, stream.data.length, 1, stderr); /* The host C library is used to format floats. C99 doesn't * specify what the hex digit before the decimal point is for * %A. */ version (linux) { assert(stream.data == "1.67 -0X1.47AE147AE147BP+0 nan", stream.data); } else version (OSX) { assert(stream.data == "1.67 -0X1.47AE147AE147BP+0 nan", stream.data); } else { assert(stream.data == "1.67 -0X1.47AE147AE147BP+0 nan", stream.data); } stream.clear(); formattedWrite(stream, "%x %X", 0x1234AF, 0xAFAFAFAF); assert(stream.data == "1234af AFAFAFAF"); stream.clear(); formattedWrite(stream, "%b %o", 0x1234AF, 0xAFAFAFAF); assert(stream.data == "100100011010010101111 25753727657"); stream.clear(); formattedWrite(stream, "%d %s", 0x1234AF, 0xAFAFAFAF); assert(stream.data == "1193135 2947526575"); stream.clear(); // formattedWrite(stream, "%s", 1.2 + 3.4i); // assert(stream.data == "1.2+3.4i"); // stream.clear(); formattedWrite(stream, "%a %A", 1.32, 6.78f); //formattedWrite(stream, "%x %X", 1.32); assert(stream.data == "0x1.51eb851eb851fp+0 0X1.B1EB86P+2"); stream.clear(); formattedWrite(stream, "%#06.*f",2,12.345); assert(stream.data == "012.35"); stream.clear(); formattedWrite(stream, "%#0*.*f",6,2,12.345); assert(stream.data == "012.35"); stream.clear(); const real constreal = 1; formattedWrite(stream, "%g",constreal); assert(stream.data == "1"); stream.clear(); formattedWrite(stream, "%7.4g:", 12.678); assert(stream.data == " 12.68:"); stream.clear(); formattedWrite(stream, "%7.4g:", 12.678L); assert(stream.data == " 12.68:"); stream.clear(); formattedWrite(stream, "%04f|%05d|%#05x|%#5x",-4.,-10,1,1); assert(stream.data == "-4.000000|-0010|0x001| 0x1", stream.data); stream.clear(); int i; string s; i = -10; formattedWrite(stream, "%d|%3d|%03d|%1d|%01.4f",i,i,i,i,cast(double) i); assert(stream.data == "-10|-10|-10|-10|-10.0000"); stream.clear(); i = -5; formattedWrite(stream, "%d|%3d|%03d|%1d|%01.4f",i,i,i,i,cast(double) i); assert(stream.data == "-5| -5|-05|-5|-5.0000"); stream.clear(); i = 0; formattedWrite(stream, "%d|%3d|%03d|%1d|%01.4f",i,i,i,i,cast(double) i); assert(stream.data == "0| 0|000|0|0.0000"); stream.clear(); i = 5; formattedWrite(stream, "%d|%3d|%03d|%1d|%01.4f",i,i,i,i,cast(double) i); assert(stream.data == "5| 5|005|5|5.0000"); stream.clear(); i = 10; formattedWrite(stream, "%d|%3d|%03d|%1d|%01.4f",i,i,i,i,cast(double) i); assert(stream.data == "10| 10|010|10|10.0000"); stream.clear(); formattedWrite(stream, "%.0d", 0); assert(stream.data == ""); stream.clear(); formattedWrite(stream, "%.g", .34); assert(stream.data == "0.3"); stream.clear(); stream.clear(); formattedWrite(stream, "%.0g", .34); assert(stream.data == "0.3"); stream.clear(); formattedWrite(stream, "%.2g", .34); assert(stream.data == "0.34"); stream.clear(); formattedWrite(stream, "%0.0008f", 1e-08); assert(stream.data == "0.00000001"); stream.clear(); formattedWrite(stream, "%0.0008f", 1e-05); assert(stream.data == "0.00001000"); //return; //std.c.stdio.fwrite(stream.data.ptr, stream.data.length, 1, stderr); s = "helloworld"; string r; stream.clear(); formattedWrite(stream, "%.2s", s[0..5]); assert(stream.data == "he"); stream.clear(); formattedWrite(stream, "%.20s", s[0..5]); assert(stream.data == "hello"); stream.clear(); formattedWrite(stream, "%8s", s[0..5]); assert(stream.data == " hello"); byte[] arrbyte = new byte[4]; arrbyte[0] = 100; arrbyte[1] = -99; arrbyte[3] = 0; stream.clear(); formattedWrite(stream, "%s", arrbyte); assert(stream.data == "[100, -99, 0, 0]", stream.data); ubyte[] arrubyte = new ubyte[4]; arrubyte[0] = 100; arrubyte[1] = 200; arrubyte[3] = 0; stream.clear(); formattedWrite(stream, "%s", arrubyte); assert(stream.data == "[100, 200, 0, 0]", stream.data); short[] arrshort = new short[4]; arrshort[0] = 100; arrshort[1] = -999; arrshort[3] = 0; stream.clear(); formattedWrite(stream, "%s", arrshort); assert(stream.data == "[100, -999, 0, 0]"); stream.clear(); formattedWrite(stream, "%s",arrshort); assert(stream.data == "[100, -999, 0, 0]"); ushort[] arrushort = new ushort[4]; arrushort[0] = 100; arrushort[1] = 20_000; arrushort[3] = 0; stream.clear(); formattedWrite(stream, "%s", arrushort); assert(stream.data == "[100, 20000, 0, 0]"); int[] arrint = new int[4]; arrint[0] = 100; arrint[1] = -999; arrint[3] = 0; stream.clear(); formattedWrite(stream, "%s", arrint); assert(stream.data == "[100, -999, 0, 0]"); stream.clear(); formattedWrite(stream, "%s",arrint); assert(stream.data == "[100, -999, 0, 0]"); long[] arrlong = new long[4]; arrlong[0] = 100; arrlong[1] = -999; arrlong[3] = 0; stream.clear(); formattedWrite(stream, "%s", arrlong); assert(stream.data == "[100, -999, 0, 0]"); stream.clear(); formattedWrite(stream, "%s",arrlong); assert(stream.data == "[100, -999, 0, 0]"); ulong[] arrulong = new ulong[4]; arrulong[0] = 100; arrulong[1] = 999; arrulong[3] = 0; stream.clear(); formattedWrite(stream, "%s", arrulong); assert(stream.data == "[100, 999, 0, 0]"); string[] arr2 = new string[4]; arr2[0] = "hello"; arr2[1] = "world"; arr2[3] = "foo"; stream.clear(); formattedWrite(stream, "%s", arr2); assert(stream.data == `["hello", "world", "", "foo"]`, stream.data); stream.clear(); formattedWrite(stream, "%.8d", 7); assert(stream.data == "00000007"); stream.clear(); formattedWrite(stream, "%.8x", 10); assert(stream.data == "0000000a"); stream.clear(); formattedWrite(stream, "%-3d", 7); assert(stream.data == "7 "); stream.clear(); formattedWrite(stream, "%*d", -3, 7); assert(stream.data == "7 "); stream.clear(); formattedWrite(stream, "%.*d", -3, 7); //writeln(stream.data); assert(stream.data == "7"); // assert(false); // typedef int myint; // myint m = -7; // stream.clear(); formattedWrite(stream, "", m); // assert(stream.data == "-7"); stream.clear(); formattedWrite(stream, "%s", "abc"c); assert(stream.data == "abc"); stream.clear(); formattedWrite(stream, "%s", "def"w); assert(stream.data == "def", text(stream.data.length)); stream.clear(); formattedWrite(stream, "%s", "ghi"d); assert(stream.data == "ghi"); here: void* p = cast(void*)0xDEADBEEF; stream.clear(); formattedWrite(stream, "%s", p); assert(stream.data == "DEADBEEF", stream.data); stream.clear(); formattedWrite(stream, "%#x", 0xabcd); assert(stream.data == "0xabcd"); stream.clear(); formattedWrite(stream, "%#X", 0xABCD); assert(stream.data == "0XABCD"); stream.clear(); formattedWrite(stream, "%#o", octal!12345); assert(stream.data == "012345"); stream.clear(); formattedWrite(stream, "%o", 9); assert(stream.data == "11"); stream.clear(); formattedWrite(stream, "%+d", 123); assert(stream.data == "+123"); stream.clear(); formattedWrite(stream, "%+d", -123); assert(stream.data == "-123"); stream.clear(); formattedWrite(stream, "% d", 123); assert(stream.data == " 123"); stream.clear(); formattedWrite(stream, "% d", -123); assert(stream.data == "-123"); stream.clear(); formattedWrite(stream, "%%"); assert(stream.data == "%"); stream.clear(); formattedWrite(stream, "%d", true); assert(stream.data == "1"); stream.clear(); formattedWrite(stream, "%d", false); assert(stream.data == "0"); stream.clear(); formattedWrite(stream, "%d", 'a'); assert(stream.data == "97", stream.data); wchar wc = 'a'; stream.clear(); formattedWrite(stream, "%d", wc); assert(stream.data == "97"); dchar dc = 'a'; stream.clear(); formattedWrite(stream, "%d", dc); assert(stream.data == "97"); byte b = byte.max; stream.clear(); formattedWrite(stream, "%x", b); assert(stream.data == "7f"); stream.clear(); formattedWrite(stream, "%x", ++b); assert(stream.data == "80"); stream.clear(); formattedWrite(stream, "%x", ++b); assert(stream.data == "81"); short sh = short.max; stream.clear(); formattedWrite(stream, "%x", sh); assert(stream.data == "7fff"); stream.clear(); formattedWrite(stream, "%x", ++sh); assert(stream.data == "8000"); stream.clear(); formattedWrite(stream, "%x", ++sh); assert(stream.data == "8001"); i = int.max; stream.clear(); formattedWrite(stream, "%x", i); assert(stream.data == "7fffffff"); stream.clear(); formattedWrite(stream, "%x", ++i); assert(stream.data == "80000000"); stream.clear(); formattedWrite(stream, "%x", ++i); assert(stream.data == "80000001"); stream.clear(); formattedWrite(stream, "%x", 10); assert(stream.data == "a"); stream.clear(); formattedWrite(stream, "%X", 10); assert(stream.data == "A"); stream.clear(); formattedWrite(stream, "%x", 15); assert(stream.data == "f"); stream.clear(); formattedWrite(stream, "%X", 15); assert(stream.data == "F"); Object c = null; stream.clear(); formattedWrite(stream, "%s", c); assert(stream.data == "null"); enum TestEnum { Value1, Value2 } stream.clear(); formattedWrite(stream, "%s", TestEnum.Value2); assert(stream.data == "Value2", stream.data); stream.clear(); formattedWrite(stream, "%s", cast(TestEnum)5); assert(stream.data == "cast(TestEnum)5", stream.data); //immutable(char[5])[int] aa = ([3:"hello", 4:"betty"]); //stream.clear(); formattedWrite(stream, "%s", aa.values); //std.c.stdio.fwrite(stream.data.ptr, stream.data.length, 1, stderr); //assert(stream.data == "[[h,e,l,l,o],[b,e,t,t,y]]"); //stream.clear(); formattedWrite(stream, "%s", aa); //assert(stream.data == "[3:[h,e,l,l,o],4:[b,e,t,t,y]]"); static const dchar[] ds = ['a','b']; for (int j = 0; j < ds.length; ++j) { stream.clear(); formattedWrite(stream, " %d", ds[j]); if (j == 0) assert(stream.data == " 97"); else assert(stream.data == " 98"); } stream.clear(); formattedWrite(stream, "%.-3d", 7); assert(stream.data == "7", ">" ~ stream.data ~ "<"); // systematic test const string[] flags = [ "-", "+", "#", "0", " ", "" ]; const string[] widths = [ "", "0", "4", "20" ]; const string[] precs = [ "", ".", ".0", ".4", ".20" ]; const string formats = "sdoxXeEfFgGaA"; /+ foreach (flag1; flags) foreach (flag2; flags) foreach (flag3; flags) foreach (flag4; flags) foreach (flag5; flags) foreach (width; widths) foreach (prec; precs) foreach (format; formats) { stream.clear(); auto fmt = "%" ~ flag1 ~ flag2 ~ flag3 ~ flag4 ~ flag5 ~ width ~ prec ~ format ~ '\0'; fmt = fmt[0 .. $ - 1]; // keep it zero-term char buf[256]; buf[0] = 0; switch (format) { case 's': formattedWrite(stream, fmt, "wyda"); snprintf(buf.ptr, buf.length, fmt.ptr, "wyda\0".ptr); break; case 'd': formattedWrite(stream, fmt, 456); snprintf(buf.ptr, buf.length, fmt.ptr, 456); break; case 'o': formattedWrite(stream, fmt, 345); snprintf(buf.ptr, buf.length, fmt.ptr, 345); break; case 'x': formattedWrite(stream, fmt, 63546); snprintf(buf.ptr, buf.length, fmt.ptr, 63546); break; case 'X': formattedWrite(stream, fmt, 12566); snprintf(buf.ptr, buf.length, fmt.ptr, 12566); break; case 'e': formattedWrite(stream, fmt, 3245.345234); snprintf(buf.ptr, buf.length, fmt.ptr, 3245.345234); break; case 'E': formattedWrite(stream, fmt, 3245.2345234); snprintf(buf.ptr, buf.length, fmt.ptr, 3245.2345234); break; case 'f': formattedWrite(stream, fmt, 3245234.645675); snprintf(buf.ptr, buf.length, fmt.ptr, 3245234.645675); break; case 'F': formattedWrite(stream, fmt, 213412.43); snprintf(buf.ptr, buf.length, fmt.ptr, 213412.43); break; case 'g': formattedWrite(stream, fmt, 234134.34); snprintf(buf.ptr, buf.length, fmt.ptr, 234134.34); break; case 'G': formattedWrite(stream, fmt, 23141234.4321); snprintf(buf.ptr, buf.length, fmt.ptr, 23141234.4321); break; case 'a': formattedWrite(stream, fmt, 21341234.2134123); snprintf(buf.ptr, buf.length, fmt.ptr, 21341234.2134123); break; case 'A': formattedWrite(stream, fmt, 1092384098.45234); snprintf(buf.ptr, buf.length, fmt.ptr, 1092384098.45234); break; default: break; } auto exp = buf[0 .. strlen(buf.ptr)]; if (stream.data != exp) { writeln("Format: \"", fmt, '"'); writeln("Expected: >", exp, "<"); writeln("Actual: >", stream.data, "<"); assert(false); } }+/ } unittest { immutable(char[5])[int] aa = ([3:"hello", 4:"betty"]); if (false) writeln(aa.keys); assert(aa[3] == "hello"); assert(aa[4] == "betty"); // if (false) // { // writeln(aa.values[0]); // writeln(aa.values[1]); // writefln("%s", typeid(typeof(aa.values))); // writefln("%s", aa[3]); // writefln("%s", aa[4]); // writefln("%s", aa.values); // //writefln("%s", aa); // wstring a = "abcd"; // writefln(a); // dstring b = "abcd"; // writefln(b); // } auto stream = appender!(char[])(); alias TypeTuple!(byte, ubyte, short, ushort, int, uint, long, ulong, float, double, real) AllNumerics; foreach (T; AllNumerics) { T value = 1; stream.clear(); formattedWrite(stream, "%s", value); assert(stream.data == "1"); } //auto r = std.string.format("%s", aa.values); stream.clear(); formattedWrite(stream, "%s", aa); //assert(stream.data == "[3:[h,e,l,l,o],4:[b,e,t,t,y]]", stream.data); // r = std.string.format("%s", aa); // assert(r == "[3:[h,e,l,l,o],4:[b,e,t,t,y]]"); } unittest { string s = "hello!124:34.5"; string a; int b; double c; formattedRead(s, "%s!%s:%s", &a, &b, &c); assert(a == "hello" && b == 124 && c == 34.5); } version(unittest) void formatReflectTest(T)(ref T val, string fmt, string formatted, string fn = __FILE__, size_t ln = __LINE__) { auto w = appender!string(); formattedWrite(w, fmt, val); auto input = w.data; enforceEx!AssertError( input == formatted, input, fn, ln); T val2; formattedRead(input, fmt, &val2); static if (isAssociativeArray!T) if (__ctfe) { alias val aa1; alias val2 aa2; //assert(aa1 == aa2); assert(aa1.length == aa2.length); assert(aa1.keys == aa2.keys); //assert(aa1.values == aa2.values); assert(aa1.values.length == aa2.values.length); foreach (i; 0 .. aa1.values.length) assert(aa1.values[i] == aa2.values[i]); //foreach (i, key; aa1.keys) // assert(aa1.values[i] == aa1[key]); //foreach (i, key; aa2.keys) // assert(aa2.values[i] == aa2[key]); return; } enforceEx!AssertError( val == val2, input, fn, ln); } version(unittest) @property void checkCTFEable(alias dg)() { static assert({ dg(); return true; }()); dg(); } unittest { void booleanTest() { auto b = true; formatReflectTest(b, "%s", `true`); formatReflectTest(b, "%b", `1`); formatReflectTest(b, "%o", `1`); formatReflectTest(b, "%d", `1`); formatReflectTest(b, "%u", `1`); formatReflectTest(b, "%x", `1`); } void integerTest() { auto n = 127; formatReflectTest(n, "%s", `127`); formatReflectTest(n, "%b", `1111111`); formatReflectTest(n, "%o", `177`); formatReflectTest(n, "%d", `127`); formatReflectTest(n, "%u", `127`); formatReflectTest(n, "%x", `7f`); } void floatingTest() { auto f = 3.14; formatReflectTest(f, "%s", `3.14`); formatReflectTest(f, "%e", `3.140000e+00`); formatReflectTest(f, "%f", `3.140000`); formatReflectTest(f, "%g", `3.14`); } void charTest() { auto c = 'a'; formatReflectTest(c, "%s", `a`); formatReflectTest(c, "%c", `a`); formatReflectTest(c, "%b", `1100001`); formatReflectTest(c, "%o", `141`); formatReflectTest(c, "%d", `97`); formatReflectTest(c, "%u", `97`); formatReflectTest(c, "%x", `61`); } void strTest() { auto s = "hello"; formatReflectTest(s, "%s", `hello`); formatReflectTest(s, "%(%c,%)", `h,e,l,l,o`); formatReflectTest(s, "%(%s,%)", `'h','e','l','l','o'`); formatReflectTest(s, "[%(<%c>%| $ %)]", `[<h> $ <e> $ <l> $ <l> $ <o>]`); } void daTest() { auto a = [1,2,3,4]; formatReflectTest(a, "%s", `[1, 2, 3, 4]`); formatReflectTest(a, "[%(%s; %)]", `[1; 2; 3; 4]`); formatReflectTest(a, "[%(<%s>%| $ %)]", `[<1> $ <2> $ <3> $ <4>]`); } void saTest() { int[4] sa = [1,2,3,4]; formatReflectTest(sa, "%s", `[1, 2, 3, 4]`); formatReflectTest(sa, "[%(%s; %)]", `[1; 2; 3; 4]`); formatReflectTest(sa, "[%(<%s>%| $ %)]", `[<1> $ <2> $ <3> $ <4>]`); } void aaTest() { auto aa = [1:"hello", 2:"world"]; formatReflectTest(aa, "%s", `[1:"hello", 2:"world"]`); formatReflectTest(aa, "[%(%s->%s, %)]", `[1->"hello", 2->"world"]`); formatReflectTest(aa, "{%([%s=%(%c%)]%|; %)}", `{[1=hello]; [2=world]}`); } checkCTFEable!({ booleanTest(); integerTest(); if (!__ctfe) floatingTest(); // snprintf charTest(); strTest(); daTest(); saTest(); aaTest(); return true; }); } //------------------------------------------------------------------------------ private void skipData(Range, Char)(ref Range input, ref FormatSpec!Char spec) { switch (spec.spec) { case 'c': input.popFront(); break; case 'd': if (input.front == '+' || input.front == '-') input.popFront(); goto case 'u'; case 'u': while (!input.empty && isDigit(input.front)) input.popFront(); break; default: assert(false, text("Format specifier not understood: %", spec.spec)); } } private template acceptedSpecs(T) { static if (isIntegral!T) enum acceptedSpecs = "bdosuxX"; else static if (isFloatingPoint!T) enum acceptedSpecs = "seEfgG"; else static if (isSomeChar!T) enum acceptedSpecs = "bcdosuxX"; // integral + 'c' else enum acceptedSpecs = ""; } /** * Reads a boolean value and returns it. */ T unformatValue(T, Range, Char)(ref Range input, ref FormatSpec!Char spec) if (isInputRange!Range && is(Unqual!T == bool)) { if (spec.spec == 's') { return parse!T(input); } enforce(std.algorithm.find(acceptedSpecs!long, spec.spec).length, text("Wrong unformat specifier '%", spec.spec , "' for ", T.stringof)); return unformatValue!long(input, spec) != 0; } unittest { string line; bool f1; line = "true"; formattedRead(line, "%s", &f1); assert(f1); line = "TrUE"; formattedRead(line, "%s", &f1); assert(f1); line = "false"; formattedRead(line, "%s", &f1); assert(!f1); line = "fALsE"; formattedRead(line, "%s", &f1); assert(!f1); line = "1"; formattedRead(line, "%d", &f1); assert(f1); line = "-1"; formattedRead(line, "%d", &f1); assert(f1); line = "0"; formattedRead(line, "%d", &f1); assert(!f1); line = "-0"; formattedRead(line, "%d", &f1); assert(!f1); } /** Reads an integral value and returns it. */ T unformatValue(T, Range, Char)(ref Range input, ref FormatSpec!Char spec) if (isInputRange!Range && isIntegral!T) { enforce(std.algorithm.find(acceptedSpecs!T, spec.spec).length, text("Wrong unformat specifier '%", spec.spec , "' for ", T.stringof)); enforce(spec.width == 0); // TODO uint base = spec.spec == 'x' || spec.spec == 'X' ? 16 : spec.spec == 'o' ? 8 : spec.spec == 'b' ? 2 : spec.spec == 's' || spec.spec == 'd' || spec.spec == 'u' ? 10 : 0; assert(base != 0); return parse!T(input, base); } /** Reads a floating-point value and returns it. */ T unformatValue(T, Range, Char)(ref Range input, ref FormatSpec!Char spec) if (isFloatingPoint!T) { if (spec.spec == 'r') { // raw read //enforce(input.length >= T.sizeof); enforce(isSomeString!Range || ElementType!(Range).sizeof == 1); union X { ubyte[T.sizeof] raw; T typed; } X x; foreach (i; 0 .. T.sizeof) { static if (isSomeString!Range) { x.raw[i] = input[0]; input = input[1 .. $]; } else { // TODO: recheck this x.raw[i] = cast(ubyte) input.front; input.popFront(); } } return x.typed; } enforce(std.algorithm.find(acceptedSpecs!T, spec.spec).length, text("Wrong unformat specifier '%", spec.spec , "' for ", T.stringof)); return parse!T(input); } version(none)unittest { union A { char[float.sizeof] untyped; float typed; } A a; a.typed = 5.5; char[] input = a.untyped[]; float witness; formattedRead(input, "%r", &witness); assert(witness == a.typed); } unittest { char[] line = "1 2".dup; int a, b; formattedRead(line, "%s %s", &a, &b); assert(a == 1 && b == 2); line = "10 2 3".dup; formattedRead(line, "%d ", &a); assert(a == 10); assert(line == "2 3"); Tuple!(int, float) t; line = "1 2.125".dup; formattedRead(line, "%d %g", &t); assert(t[0] == 1 && t[1] == 2.125); line = "1 7643 2.125".dup; formattedRead(line, "%s %*u %s", &t); assert(t[0] == 1 && t[1] == 2.125); } /** * Reads one character and returns it. */ T unformatValue(T, Range, Char)(ref Range input, ref FormatSpec!Char spec) if (isInputRange!Range && isSomeChar!T) { if (spec.spec == 's' || spec.spec == 'c') { auto result = to!T(input.front); input.popFront(); return result; } enforce(std.algorithm.find(acceptedSpecs!T, spec.spec).length, text("Wrong unformat specifier '%", spec.spec , "' for ", T.stringof)); static if (T.sizeof == 1) return unformatValue!ubyte(input, spec); else static if (T.sizeof == 2) return unformatValue!ushort(input, spec); else static if (T.sizeof == 4) return unformatValue!uint(input, spec); else static assert(0); } unittest { string line; char c1, c2; line = "abc"; formattedRead(line, "%s%c", &c1, &c2); assert(c1 == 'a' && c2 == 'b'); assert(line == "c"); } /** Reads a string and returns it. */ T unformatValue(T, Range, Char)(ref Range input, ref FormatSpec!Char spec) if (isInputRange!Range && isSomeString!T) { if (spec.spec == '(') { return unformatRange!T(input, spec); } enforce(spec.spec == 's', text("Wrong unformat specifier '%", spec.spec , "' for ", T.stringof)); static if (isStaticArray!T) { T result; auto app = result[]; } else auto app = appender!T(); if (spec.trailing.empty) { for (; !input.empty; input.popFront()) { static if (isStaticArray!T) if (app.empty) break; app.put(input.front); } } else { auto end = spec.trailing.front; for (; !input.empty && input.front != end; input.popFront()) { static if (isStaticArray!T) if (app.empty) break; app.put(input.front); } } static if (isStaticArray!T) { enforce(app.empty, "need more input"); return result; } else return app.data; } unittest { string line; string s1, s2; line = "hello, world"; formattedRead(line, "%s", &s1); assert(s1 == "hello, world", s1); line = "hello, world;yah"; formattedRead(line, "%s;%s", &s1, &s2); assert(s1 == "hello, world", s1); assert(s2 == "yah", s2); line = `['h','e','l','l','o']`; string s3; formattedRead(line, "[%(%s,%)]", &s3); assert(s3 == "hello"); line = `"hello"`; string s4; formattedRead(line, "\"%(%c%)\"", &s4); assert(s4 == "hello"); } /** Reads an array (except for string types) and returns it. */ T unformatValue(T, Range, Char)(ref Range input, ref FormatSpec!Char spec) if (isInputRange!Range && isArray!T && !isSomeString!T) { if (spec.spec == '(') { return unformatRange!T(input, spec); } enforce(spec.spec == 's', text("Wrong unformat specifier '%", spec.spec , "' for ", T.stringof)); return parse!T(input); } unittest { string line; line = "[1,2,3]"; int[] s1; formattedRead(line, "%s", &s1); assert(s1 == [1,2,3]); } unittest { string line; line = "[1,2,3]"; int[] s1; formattedRead(line, "[%(%s,%)]", &s1); assert(s1 == [1,2,3]); line = `["hello", "world"]`; string[] s2; formattedRead(line, "[%(%s, %)]", &s2); assert(s2 == ["hello", "world"]); line = "123 456"; int[] s3; formattedRead(line, "%(%s %)", &s3); assert(s3 == [123, 456]); line = "h,e,l,l,o; w,o,r,l,d"; string[] s4; formattedRead(line, "%(%(%c,%); %)", &s4); assert(s4 == ["hello", "world"]); } unittest { string line; int[4] sa1; line = `[1,2,3,4]`; formattedRead(line, "%s", &sa1); assert(sa1 == [1,2,3,4]); int[4] sa2; line = `[1,2,3]`; assertThrown(formattedRead(line, "%s", &sa2)); int[4] sa3; line = `[1,2,3,4,5]`; assertThrown(formattedRead(line, "%s", &sa3)); } unittest { string input; int[4] sa1; input = `[1,2,3,4]`; formattedRead(input, "[%(%s,%)]", &sa1); assert(sa1 == [1,2,3,4]); int[4] sa2; input = `[1,2,3]`; assertThrown(formattedRead(input, "[%(%s,%)]", &sa2)); } unittest { // 7241 string input = "a"; auto spec = FormatSpec!char("%s"); spec.readUpToNextSpec(input); auto result = unformatValue!(dchar[1])(input, spec); assert(result[0] == 'a'); } /** * Reads an associative array and returns it. */ T unformatValue(T, Range, Char)(ref Range input, ref FormatSpec!Char spec) if (isInputRange!Range && isAssociativeArray!T) { if (spec.spec == '(') { return unformatRange!T(input, spec); } enforce(spec.spec == 's', text("Wrong unformat specifier '%", spec.spec , "' for ", T.stringof)); return parse!T(input); } unittest { string line; string[int] aa1; line = `[1:"hello", 2:"world"]`; formattedRead(line, "%s", &aa1); assert(aa1 == [1:"hello", 2:"world"]); int[string] aa2; line = `{"hello"=1; "world"=2}`; formattedRead(line, "{%(%s=%s; %)}", &aa2); assert(aa2 == ["hello":1, "world":2]); int[string] aa3; line = `{[hello=1]; [world=2]}`; formattedRead(line, "{%([%(%c%)=%s]%|; %)}", &aa3); assert(aa3 == ["hello":1, "world":2]); } //debug = unformatRange; private T unformatRange(T, Range, Char)(ref Range input, ref FormatSpec!Char spec) in { assert(spec.spec == '('); } body { debug (unformatRange) printf("unformatRange:\n"); T result; static if (isStaticArray!T) { size_t i; } const(Char)[] cont = spec.trailing; for (size_t j = 0; j < spec.trailing.length; ++j) { if (spec.trailing[j] == '%') { cont = spec.trailing[0 .. j]; break; } } debug (unformatRange) printf("\t"); debug (unformatRange) if (!input.empty) printf("input.front = %c, ", input.front); debug (unformatRange) printf("cont = %.*s\n", cont); bool checkEnd() { return input.empty || !cont.empty && input.front == cont.front; } if (!checkEnd()) { for (;;) { auto fmt = FormatSpec!Char(spec.nested); fmt.readUpToNextSpec(input); enforce(!input.empty); debug (unformatRange) printf("\t) spec = %c, front = %c ", fmt.spec, input.front); static if (isStaticArray!T) { result[i++] = unformatElement!(typeof(T.init[0]))(input, fmt); } else static if (isDynamicArray!T) { result ~= unformatElement!(ElementType!T)(input, fmt); } else static if (isAssociativeArray!T) { auto key = unformatElement!(typeof(T.keys[0]))(input, fmt); fmt.readUpToNextSpec(input); // eat key separator result[key] = unformatElement!(typeof(T.values[0]))(input, fmt); } debug (unformatRange) { if (input.empty) printf("-> front = [empty] "); else printf("-> front = %c ", input.front); } static if (isStaticArray!T) { debug (unformatRange) printf("i = %u < %u\n", i, T.length); enforce(i <= T.length); } auto sep = spec.sep ? fmt.readUpToNextSpec(input), spec.sep : fmt.trailing; debug (unformatRange) { if (!sep.empty && !input.empty) printf("-> %c, sep = %.*s\n", input.front, sep); else printf("\n"); } if (checkEnd()) break; if (!sep.empty && input.front == sep.front) { while (!sep.empty) { enforce(!input.empty); enforce(input.front == sep.front); input.popFront(); sep.popFront(); } debug (unformatRange) printf("input.front = %c\n", input.front); } } } static if (isStaticArray!T) { enforce(i == T.length); } return result; } // Undocumented T unformatElement(T, Range, Char)(ref Range input, ref FormatSpec!Char spec) if (isInputRange!Range) { static if (isSomeString!T) { if (spec.spec == 's') { return parseElement!T(input); } } else static if (isSomeChar!T) { if (spec.spec == 's') { return parseElement!T(input); } } return unformatValue!T(input, spec); } // Legacy implementation enum Mangle : char { Tvoid = 'v', Tbool = 'b', Tbyte = 'g', Tubyte = 'h', Tshort = 's', Tushort = 't', Tint = 'i', Tuint = 'k', Tlong = 'l', Tulong = 'm', Tfloat = 'f', Tdouble = 'd', Treal = 'e', Tifloat = 'o', Tidouble = 'p', Tireal = 'j', Tcfloat = 'q', Tcdouble = 'r', Tcreal = 'c', Tchar = 'a', Twchar = 'u', Tdchar = 'w', Tarray = 'A', Tsarray = 'G', Taarray = 'H', Tpointer = 'P', Tfunction = 'F', Tident = 'I', Tclass = 'C', Tstruct = 'S', Tenum = 'E', Ttypedef = 'T', Tdelegate = 'D', Tconst = 'x', Timmutable = 'y', } // return the TypeInfo for a primitive type and null otherwise. This // is required since for arrays of ints we only have the mangled char // to work from. If arrays always subclassed TypeInfo_Array this // routine could go away. private TypeInfo primitiveTypeInfo(Mangle m) { // BUG: should fix this in static this() to avoid double checked locking bug __gshared TypeInfo[Mangle] dic; if (!dic.length) { dic = [ Mangle.Tvoid : typeid(void), Mangle.Tbool : typeid(bool), Mangle.Tbyte : typeid(byte), Mangle.Tubyte : typeid(ubyte), Mangle.Tshort : typeid(short), Mangle.Tushort : typeid(ushort), Mangle.Tint : typeid(int), Mangle.Tuint : typeid(uint), Mangle.Tlong : typeid(long), Mangle.Tulong : typeid(ulong), Mangle.Tfloat : typeid(float), Mangle.Tdouble : typeid(double), Mangle.Treal : typeid(real), Mangle.Tifloat : typeid(ifloat), Mangle.Tidouble : typeid(idouble), Mangle.Tireal : typeid(ireal), Mangle.Tcfloat : typeid(cfloat), Mangle.Tcdouble : typeid(cdouble), Mangle.Tcreal : typeid(creal), Mangle.Tchar : typeid(char), Mangle.Twchar : typeid(wchar), Mangle.Tdchar : typeid(dchar) ]; } auto p = m in dic; return p ? *p : null; } // This stuff has been removed from the docs and is planned for deprecation. /* * Interprets variadic argument list pointed to by argptr whose types * are given by arguments[], formats them according to embedded format * strings in the variadic argument list, and sends the resulting * characters to putc. * * The variadic arguments are consumed in order. Each is formatted * into a sequence of chars, using the default format specification * for its type, and the characters are sequentially passed to putc. * If a $(D char[]), $(D wchar[]), or $(D dchar[]) argument is * encountered, it is interpreted as a format string. As many * arguments as specified in the format string are consumed and * formatted according to the format specifications in that string and * passed to putc. If there are too few remaining arguments, a * $(D FormatException) is thrown. If there are more remaining arguments than * needed by the format specification, the default processing of * arguments resumes until they are all consumed. * * Params: * putc = Output is sent do this delegate, character by character. * arguments = Array of $(D TypeInfo)s, one for each argument to be formatted. * argptr = Points to variadic argument list. * * Throws: * Mismatched arguments and formats result in a $(D FormatException) being thrown. * * Format_String: * <a name="format-string">$(I Format strings)</a> * consist of characters interspersed with * $(I format specifications). Characters are simply copied * to the output (such as putc) after any necessary conversion * to the corresponding UTF-8 sequence. * * A $(I format specification) starts with a '%' character, * and has the following grammar: <pre> $(I FormatSpecification): $(B '%%') $(B '%') $(I Flags) $(I Width) $(I Precision) $(I FormatChar) $(I Flags): $(I empty) $(B '-') $(I Flags) $(B '+') $(I Flags) $(B '#') $(I Flags) $(B '0') $(I Flags) $(B ' ') $(I Flags) $(I Width): $(I empty) $(I Integer) $(B '*') $(I Precision): $(I empty) $(B '.') $(B '.') $(I Integer) $(B '.*') $(I Integer): $(I Digit) $(I Digit) $(I Integer) $(I Digit): $(B '0') $(B '1') $(B '2') $(B '3') $(B '4') $(B '5') $(B '6') $(B '7') $(B '8') $(B '9') $(I FormatChar): $(B 's') $(B 'b') $(B 'd') $(B 'o') $(B 'x') $(B 'X') $(B 'e') $(B 'E') $(B 'f') $(B 'F') $(B 'g') $(B 'G') $(B 'a') $(B 'A') </pre> <dl> <dt>$(I Flags) <dl> <dt>$(B '-') <dd> Left justify the result in the field. It overrides any $(B 0) flag. <dt>$(B '+') <dd>Prefix positive numbers in a signed conversion with a $(B +). It overrides any $(I space) flag. <dt>$(B '#') <dd>Use alternative formatting: <dl> <dt>For $(B 'o'): <dd> Add to precision as necessary so that the first digit of the octal formatting is a '0', even if both the argument and the $(I Precision) are zero. <dt> For $(B 'x') ($(B 'X')): <dd> If non-zero, prefix result with $(B 0x) ($(B 0X)). <dt> For floating point formatting: <dd> Always insert the decimal point. <dt> For $(B 'g') ($(B 'G')): <dd> Do not elide trailing zeros. </dl> <dt>$(B '0') <dd> For integer and floating point formatting when not nan or infinity, use leading zeros to pad rather than spaces. Ignore if there's a $(I Precision). <dt>$(B ' ') <dd>Prefix positive numbers in a signed conversion with a space. </dl> <dt>$(I Width) <dd> Specifies the minimum field width. If the width is a $(B *), the next argument, which must be of type $(B int), is taken as the width. If the width is negative, it is as if the $(B -) was given as a $(I Flags) character. <dt>$(I Precision) <dd> Gives the precision for numeric conversions. If the precision is a $(B *), the next argument, which must be of type $(B int), is taken as the precision. If it is negative, it is as if there was no $(I Precision). <dt>$(I FormatChar) <dd> <dl> <dt>$(B 's') <dd>The corresponding argument is formatted in a manner consistent with its type: <dl> <dt>$(B bool) <dd>The result is <tt>'true'</tt> or <tt>'false'</tt>. <dt>integral types <dd>The $(B %d) format is used. <dt>floating point types <dd>The $(B %g) format is used. <dt>string types <dd>The result is the string converted to UTF-8. A $(I Precision) specifies the maximum number of characters to use in the result. <dt>classes derived from $(B Object) <dd>The result is the string returned from the class instance's $(B .toString()) method. A $(I Precision) specifies the maximum number of characters to use in the result. <dt>non-string static and dynamic arrays <dd>The result is [s<sub>0</sub>, s<sub>1</sub>, ...] where s<sub>k</sub> is the kth element formatted with the default format. </dl> <dt>$(B 'b','d','o','x','X') <dd> The corresponding argument must be an integral type and is formatted as an integer. If the argument is a signed type and the $(I FormatChar) is $(B d) it is converted to a signed string of characters, otherwise it is treated as unsigned. An argument of type $(B bool) is formatted as '1' or '0'. The base used is binary for $(B b), octal for $(B o), decimal for $(B d), and hexadecimal for $(B x) or $(B X). $(B x) formats using lower case letters, $(B X) uppercase. If there are fewer resulting digits than the $(I Precision), leading zeros are used as necessary. If the $(I Precision) is 0 and the number is 0, no digits result. <dt>$(B 'e','E') <dd> A floating point number is formatted as one digit before the decimal point, $(I Precision) digits after, the $(I FormatChar), &plusmn;, followed by at least a two digit exponent: $(I d.dddddd)e$(I &plusmn;dd). If there is no $(I Precision), six digits are generated after the decimal point. If the $(I Precision) is 0, no decimal point is generated. <dt>$(B 'f','F') <dd> A floating point number is formatted in decimal notation. The $(I Precision) specifies the number of digits generated after the decimal point. It defaults to six. At least one digit is generated before the decimal point. If the $(I Precision) is zero, no decimal point is generated. <dt>$(B 'g','G') <dd> A floating point number is formatted in either $(B e) or $(B f) format for $(B g); $(B E) or $(B F) format for $(B G). The $(B f) format is used if the exponent for an $(B e) format is greater than -5 and less than the $(I Precision). The $(I Precision) specifies the number of significant digits, and defaults to six. Trailing zeros are elided after the decimal point, if the fractional part is zero then no decimal point is generated. <dt>$(B 'a','A') <dd> A floating point number is formatted in hexadecimal exponential notation 0x$(I h.hhhhhh)p$(I &plusmn;d). There is one hexadecimal digit before the decimal point, and as many after as specified by the $(I Precision). If the $(I Precision) is zero, no decimal point is generated. If there is no $(I Precision), as many hexadecimal digits as necessary to exactly represent the mantissa are generated. The exponent is written in as few digits as possible, but at least one, is in decimal, and represents a power of 2 as in $(I h.hhhhhh)*2<sup>$(I &plusmn;d)</sup>. The exponent for zero is zero. The hexadecimal digits, x and p are in upper case if the $(I FormatChar) is upper case. </dl> Floating point NaN's are formatted as $(B nan) if the $(I FormatChar) is lower case, or $(B NAN) if upper. Floating point infinities are formatted as $(B inf) or $(B infinity) if the $(I FormatChar) is lower case, or $(B INF) or $(B INFINITY) if upper. </dl> Example: ------------------------- import std.c.stdio; import std.format; void myPrint(...) { void putc(char c) { fputc(c, stdout); } std.format.doFormat(&putc, _arguments, _argptr); } ... int x = 27; // prints 'The answer is 27:6' myPrint("The answer is %s:", x, 6); ------------------------ */ void doFormat(void delegate(dchar) putc, TypeInfo[] arguments, va_list argptr) { doFormatPtr(putc, arguments, argptr, null); } void doFormatPtr(void delegate(dchar) putc, TypeInfo[] arguments, va_list argptr, void* p_args) { TypeInfo ti; Mangle m; uint flags; int field_width; int precision; enum : uint { FLdash = 1, FLplus = 2, FLspace = 4, FLhash = 8, FLlngdbl = 0x20, FL0pad = 0x40, FLprecision = 0x80, } static TypeInfo skipCI(TypeInfo valti) { for (;;) { if (valti.classinfo.name.length == 18 && valti.classinfo.name[9..18] == "Invariant") valti = (cast(TypeInfo_Invariant)valti).next; else if (valti.classinfo.name.length == 14 && valti.classinfo.name[9..14] == "Const") valti = (cast(TypeInfo_Const)valti).next; else break; } return valti; } void formatArg(char fc) { bool vbit; ulong vnumber; char vchar; dchar vdchar; Object vobject; real vreal; creal vcreal; Mangle m2; int signed = 0; uint base = 10; int uc; char[ulong.sizeof * 8] tmpbuf; // long enough to print long in binary const(char)* prefix = ""; string s; void putstr(const char[] s) { //printf("putstr: s = %.*s, flags = x%x\n", s.length, s.ptr, flags); sizediff_t padding = field_width - (strlen(prefix) + toUCSindex(s, s.length)); sizediff_t prepad = 0; sizediff_t postpad = 0; if (padding > 0) { if (flags & FLdash) postpad = padding; else prepad = padding; } if (flags & FL0pad) { while (*prefix) putc(*prefix++); while (prepad--) putc('0'); } else { while (prepad--) putc(' '); while (*prefix) putc(*prefix++); } foreach (dchar c; s) putc(c); while (postpad--) putc(' '); } void putreal(real v) { //printf("putreal %Lg\n", vreal); switch (fc) { case 's': fc = 'g'; break; case 'f', 'F', 'e', 'E', 'g', 'G', 'a', 'A': break; default: //printf("fc = '%c'\n", fc); Lerror: throw new FormatException("floating"); } version (DigitalMarsC) { uint sl; char[] fbuf = tmpbuf; if (!(flags & FLprecision)) precision = 6; while (1) { sl = fbuf.length; prefix = (*__pfloatfmt)(fc, flags | FLlngdbl, precision, &v, cast(char*)fbuf, &sl, field_width); if (sl != -1) break; sl = fbuf.length * 2; fbuf = (cast(char*)alloca(sl * char.sizeof))[0 .. sl]; } putstr(fbuf[0 .. sl]); } else { sizediff_t sl; char[] fbuf = tmpbuf; char[12] format; format[0] = '%'; int i = 1; if (flags & FLdash) format[i++] = '-'; if (flags & FLplus) format[i++] = '+'; if (flags & FLspace) format[i++] = ' '; if (flags & FLhash) format[i++] = '#'; if (flags & FL0pad) format[i++] = '0'; format[i + 0] = '*'; format[i + 1] = '.'; format[i + 2] = '*'; format[i + 3] = 'L'; format[i + 4] = fc; format[i + 5] = 0; if (!(flags & FLprecision)) precision = -1; while (1) { sl = fbuf.length; auto n = snprintf(fbuf.ptr, sl, format.ptr, field_width, precision, v); //printf("format = '%s', n = %d\n", cast(char*)format, n); if (n >= 0 && n < sl) { sl = n; break; } if (n < 0) sl = sl * 2; else sl = n + 1; fbuf = (cast(char*)alloca(sl * char.sizeof))[0 .. sl]; } putstr(fbuf[0 .. sl]); } return; } static Mangle getMan(TypeInfo ti) { auto m = cast(Mangle)ti.classinfo.name[9]; if (ti.classinfo.name.length == 20 && ti.classinfo.name[9..20] == "StaticArray") m = cast(Mangle)'G'; return m; } /* p = pointer to the first element in the array * len = number of elements in the array * valti = type of the elements */ void putArray(void* p, size_t len, TypeInfo valti) { //printf("\nputArray(len = %u), tsize = %u\n", len, valti.tsize()); putc('['); valti = skipCI(valti); size_t tsize = valti.tsize(); auto argptrSave = p_args; auto tiSave = ti; auto mSave = m; ti = valti; //printf("\n%.*s\n", valti.classinfo.name.length, valti.classinfo.name.ptr); m = getMan(valti); while (len--) { //doFormat(putc, (&valti)[0 .. 1], p); p_args = p; formatArg('s'); p += tsize; if (len > 0) putc(','); } m = mSave; ti = tiSave; p_args = argptrSave; putc(']'); } void putAArray(ubyte[long] vaa, TypeInfo valti, TypeInfo keyti) { putc('['); bool comma=false; auto argptrSave = p_args; auto tiSave = ti; auto mSave = m; valti = skipCI(valti); keyti = skipCI(keyti); foreach(ref fakevalue; vaa) { if (comma) putc(','); comma = true; void *pkey = &fakevalue; version (D_LP64) pkey -= (long.sizeof + 15) & ~(15); else pkey -= (long.sizeof + size_t.sizeof - 1) & ~(size_t.sizeof - 1); // the key comes before the value auto keysize = keyti.tsize; version (D_LP64) auto keysizet = (keysize + 15) & ~(15); else auto keysizet = (keysize + size_t.sizeof - 1) & ~(size_t.sizeof - 1); void* pvalue = pkey + keysizet; //doFormat(putc, (&keyti)[0..1], pkey); p_args = pkey; ti = keyti; m = getMan(keyti); formatArg('s'); putc(':'); //doFormat(putc, (&valti)[0..1], pvalue); p_args = pvalue; ti = valti; m = getMan(valti); formatArg('s'); } m = mSave; ti = tiSave; p_args = argptrSave; putc(']'); } //printf("formatArg(fc = '%c', m = '%c')\n", fc, m); if (! p_args) switch (m) { case Mangle.Tbool: vbit = va_arg!(bool)(argptr); if (fc != 's') { vnumber = vbit; goto Lnumber; } putstr(vbit ? "true" : "false"); return; case Mangle.Tchar: vchar = va_arg!(char)(argptr); if (fc != 's') { vnumber = vchar; goto Lnumber; } L2: putstr((&vchar)[0 .. 1]); return; case Mangle.Twchar: vdchar = va_arg!(wchar)(argptr); goto L1; case Mangle.Tdchar: vdchar = va_arg!(dchar)(argptr); L1: if (fc != 's') { vnumber = vdchar; goto Lnumber; } if (vdchar <= 0x7F) { vchar = cast(char)vdchar; goto L2; } else { if (!isValidDchar(vdchar)) throw new UTFException("invalid dchar in format"); char[4] vbuf; putstr(toUTF8(vbuf, vdchar)); } return; case Mangle.Tbyte: signed = 1; vnumber = va_arg!(byte)(argptr); goto Lnumber; case Mangle.Tubyte: vnumber = va_arg!(ubyte)(argptr); goto Lnumber; case Mangle.Tshort: signed = 1; vnumber = va_arg!(short)(argptr); goto Lnumber; case Mangle.Tushort: vnumber = va_arg!(ushort)(argptr); goto Lnumber; case Mangle.Tint: signed = 1; vnumber = va_arg!(int)(argptr); goto Lnumber; case Mangle.Tuint: Luint: vnumber = va_arg!(uint)(argptr); goto Lnumber; case Mangle.Tlong: signed = 1; vnumber = cast(ulong)va_arg!(long)(argptr); goto Lnumber; case Mangle.Tulong: Lulong: vnumber = va_arg!(ulong)(argptr); goto Lnumber; case Mangle.Tclass: vobject = va_arg!(Object)(argptr); if (vobject is null) s = "null"; else s = vobject.toString(); goto Lputstr; case Mangle.Tpointer: vnumber = cast(ulong)va_arg!(void*)(argptr); if (fc != 'x') uc = 1; flags |= FL0pad; if (!(flags & FLprecision)) { flags |= FLprecision; precision = (void*).sizeof; } base = 16; goto Lnumber; case Mangle.Tfloat: case Mangle.Tifloat: if (fc == 'x' || fc == 'X') goto Luint; vreal = va_arg!(float)(argptr); goto Lreal; case Mangle.Tdouble: case Mangle.Tidouble: if (fc == 'x' || fc == 'X') goto Lulong; vreal = va_arg!(double)(argptr); goto Lreal; case Mangle.Treal: case Mangle.Tireal: vreal = va_arg!(real)(argptr); goto Lreal; case Mangle.Tcfloat: vcreal = va_arg!(cfloat)(argptr); goto Lcomplex; case Mangle.Tcdouble: vcreal = va_arg!(cdouble)(argptr); goto Lcomplex; case Mangle.Tcreal: vcreal = va_arg!(creal)(argptr); goto Lcomplex; case Mangle.Tsarray: /* Static arrays are converted to dynamic arrays when passed as a variadic argument, so this code should never be executed with GDC. The case of an embedded static array is handled below. putArray(argptr, (cast(TypeInfo_StaticArray)ti).len, (cast(TypeInfo_StaticArray)ti).next); return; */ goto Lerror; case Mangle.Tarray: int mi = 10; if (ti.classinfo.name.length == 14 && ti.classinfo.name[9..14] == "Array") { // array of non-primitive types TypeInfo tn = (cast(TypeInfo_Array)ti).next; tn = skipCI(tn); switch (cast(Mangle)tn.classinfo.name[9]) { case Mangle.Tchar: goto LarrayChar; case Mangle.Twchar: goto LarrayWchar; case Mangle.Tdchar: goto LarrayDchar; default: break; } void[] va = va_arg!(void[])(argptr); putArray(va.ptr, va.length, tn); return; } if (ti.classinfo.name.length == 25 && ti.classinfo.name[9..25] == "AssociativeArray") { // associative array ubyte[long] vaa = va_arg!(ubyte[long])(argptr); putAArray(vaa, (cast(TypeInfo_AssociativeArray)ti).next, (cast(TypeInfo_AssociativeArray)ti).key); return; } while (1) { m2 = cast(Mangle)ti.classinfo.name[mi]; switch (m2) { case Mangle.Tchar: LarrayChar: s = va_arg!(string)(argptr); goto Lputstr; case Mangle.Twchar: LarrayWchar: wchar[] sw = va_arg!(wchar[])(argptr); s = toUTF8(sw); goto Lputstr; case Mangle.Tdchar: LarrayDchar: auto sd = va_arg!(dstring)(argptr); s = toUTF8(sd); Lputstr: if (fc != 's') throw new FormatException("string"); if (flags & FLprecision && precision < s.length) s = s[0 .. precision]; putstr(s); break; case Mangle.Tconst: case Mangle.Timmutable: mi++; continue; default: TypeInfo ti2 = primitiveTypeInfo(m2); if (!ti2) goto Lerror; void[] va = va_arg!(void[])(argptr); putArray(va.ptr, va.length, ti2); } return; } assert(0); case Mangle.Ttypedef: ti = (cast(TypeInfo_Typedef)ti).base; m = cast(Mangle)ti.classinfo.name[9]; formatArg(fc); return; case Mangle.Tenum: ti = (cast(TypeInfo_Enum)ti).base; m = cast(Mangle)ti.classinfo.name[9]; formatArg(fc); return; case Mangle.Tstruct: { TypeInfo_Struct tis = cast(TypeInfo_Struct)ti; if (tis.xtoString is null) throw new FormatException("Can't convert " ~ tis.toString() ~ " to string: \"string toString()\" not defined"); static if (is(va_list : void[]) || is(va_list == struct)) { version(PPC) { // Structs are pass-by-reference in V4 ABI s = tis.xtoString(va_arg!(void*)(argptr)); goto Lputstr; } else { throw new FormatException("cannot portably format a struct on this target"); } } else { s = tis.xtoString(argptr); argptr += (tis.tsize() + 3) & ~3; goto Lputstr; } } default: goto Lerror; } else { switch (m) { case Mangle.Tbool: vbit = *cast(bool*)(p_args); p_args += bool.sizeof; // int.sizeof, etc.? if (fc != 's') { vnumber = vbit; goto Lnumber; } putstr(vbit ? "true" : "false"); return; case Mangle.Tchar: vchar = *cast(char*)(p_args); p_args += char.sizeof; if (fc != 's') { vnumber = vchar; goto Lnumber; } PL2: putstr((&vchar)[0 .. 1]); return; case Mangle.Twchar: vdchar = *cast(wchar*)(p_args); p_args += wchar.sizeof; goto PL1; case Mangle.Tdchar: vdchar = *cast(dchar*)(p_args); p_args += dchar.sizeof; PL1: if (fc != 's') { vnumber = vdchar; goto Lnumber; } if (vdchar <= 0x7F) { vchar = cast(char)vdchar; goto PL2; } else { if (!isValidDchar(vdchar)) throw new UtfException("invalid dchar in format", 0); char[4] vbuf; putstr(toUTF8(vbuf, vdchar)); } return; case Mangle.Tbyte: signed = 1; vnumber = *cast(byte*)p_args; p_args += byte.sizeof; goto Lnumber; case Mangle.Tubyte: vnumber = *cast(ubyte*)p_args; p_args += ubyte.sizeof; goto Lnumber; case Mangle.Tshort: signed = 1; vnumber = *cast(short*)p_args; p_args += short.sizeof; goto Lnumber; case Mangle.Tushort: vnumber = *cast(ushort*)p_args; p_args += ushort.sizeof; goto Lnumber; case Mangle.Tint: signed = 1; vnumber = *cast(int*)p_args; p_args += int.sizeof; goto Lnumber; case Mangle.Tuint: PLuint: vnumber = *cast(uint*)p_args; p_args += uint.sizeof; goto Lnumber; case Mangle.Tlong: signed = 1; vnumber = cast(ulong)*cast(long*)p_args; p_args += long.sizeof; goto Lnumber; case Mangle.Tulong: PLulong: vnumber = *cast(ulong*)p_args; p_args += ulong.sizeof; goto Lnumber; case Mangle.Tclass: vobject = *cast(Object*)p_args; p_args += Object.sizeof; if (vobject is null) s = "null"; else s = vobject.toString(); goto Lputstr; case Mangle.Tpointer: vnumber = cast(size_t)*cast(void**)p_args; p_args += (void*).sizeof; uc = 1; flags |= FL0pad; if (!(flags & FLprecision)) { flags |= FLprecision; precision = (void*).sizeof; } base = 16; goto Lnumber; case Mangle.Tfloat: case Mangle.Tifloat: if (fc == 'x' || fc == 'X') goto PLuint; vreal = *cast(float*)p_args; p_args += float.sizeof; goto Lreal; case Mangle.Tdouble: case Mangle.Tidouble: if (fc == 'x' || fc == 'X') goto PLulong; vreal = *cast(double*)p_args; p_args += double.sizeof; goto Lreal; case Mangle.Treal: case Mangle.Tireal: vreal = *cast(real*)p_args; p_args += real.sizeof; goto Lreal; case Mangle.Tcfloat: vcreal = *cast(cfloat*)p_args; p_args += cfloat.sizeof; goto Lcomplex; case Mangle.Tcdouble: vcreal = *cast(cdouble*)p_args; p_args += cdouble.sizeof; goto Lcomplex; case Mangle.Tcreal: vcreal = *cast(creal*)p_args; p_args += creal.sizeof; goto Lcomplex; case Mangle.Tsarray: putArray(p_args, (cast(TypeInfo_StaticArray)ti).len, (cast(TypeInfo_StaticArray)ti).next); p_args += ti.tsize(); return; case Mangle.Tarray: int mi = 10; if (ti.classinfo.name.length == 14 && ti.classinfo.name[9..14] == "Array") { // array of non-primitive types TypeInfo tn = (cast(TypeInfo_Array)ti).next; tn = skipCI(tn); switch (cast(Mangle)tn.classinfo.name[9]) { case Mangle.Tchar: goto LarrayChar; case Mangle.Twchar: goto LarrayWchar; case Mangle.Tdchar: goto LarrayDchar; default: break; } void[] va = *cast(void[]*)p_args; p_args += (void[]).sizeof; putArray(va.ptr, va.length, tn); return; } if (ti.classinfo.name.length == 25 && ti.classinfo.name[9..25] == "AssociativeArray") { // associative array ubyte[long] vaa = *cast(ubyte[long]*)p_args; p_args += (ubyte[long]).sizeof; putAArray(vaa, (cast(TypeInfo_AssociativeArray)ti).next, (cast(TypeInfo_AssociativeArray)ti).key); return; } while (1) { m2 = cast(Mangle)ti.classinfo.name[mi]; switch (m2) { case Mangle.Tchar: PLarrayChar: s = *cast(string*)p_args; p_args += (string).sizeof; goto PLputstr; case Mangle.Twchar: PLarrayWchar: wchar[] sw = *cast(wchar[]*)p_args; p_args += (wchar[]).sizeof; s = toUTF8(sw); goto PLputstr; case Mangle.Tdchar: PLarrayDchar: auto sd = *cast(dchar[]*)p_args; p_args += (dchar[]).sizeof; s = toUTF8(sd); PLputstr: if (fc != 's') throw new FormatException("string"); if (flags & FLprecision && precision < s.length) s = s[0 .. precision]; putstr(s); break; case Mangle.Tconst: case Mangle.Timmutable: mi++; continue; default: TypeInfo ti2 = primitiveTypeInfo(m2); if (!ti2) goto Lerror; void[] va = *cast(void[]*)p_args; p_args += (void[]).sizeof; putArray(va.ptr, va.length, ti2); } return; } assert(0); case Mangle.Ttypedef: ti = (cast(TypeInfo_Typedef)ti).base; m = cast(Mangle)ti.classinfo.name[9]; formatArg(fc); return; case Mangle.Tenum: ti = (cast(TypeInfo_Enum)ti).base; m = cast(Mangle)ti.classinfo.name[9]; formatArg(fc); return; case Mangle.Tstruct: { TypeInfo_Struct tis = cast(TypeInfo_Struct)ti; if (tis.xtoString is null) throw new FormatException("Can't convert " ~ tis.toString() ~ " to string: \"string toString()\" not defined"); s = tis.xtoString(p_args); p_args += tis.tsize(); goto Lputstr; } default: goto Lerror; } } Lnumber: switch (fc) { case 's': case 'd': if (signed) { if (cast(long)vnumber < 0) { prefix = "-"; vnumber = -vnumber; } else if (flags & FLplus) prefix = "+"; else if (flags & FLspace) prefix = " "; } break; case 'b': signed = 0; base = 2; break; case 'o': signed = 0; base = 8; break; case 'X': uc = 1; if (flags & FLhash && vnumber) prefix = "0X"; signed = 0; base = 16; break; case 'x': if (flags & FLhash && vnumber) prefix = "0x"; signed = 0; base = 16; break; default: goto Lerror; } if (!signed) { switch (m) { case Mangle.Tbyte: vnumber &= 0xFF; break; case Mangle.Tshort: vnumber &= 0xFFFF; break; case Mangle.Tint: vnumber &= 0xFFFFFFFF; break; default: break; } } if (flags & FLprecision && fc != 'p') flags &= ~FL0pad; if (vnumber < base) { if (vnumber == 0 && precision == 0 && flags & FLprecision && !(fc == 'o' && flags & FLhash)) { putstr(null); return; } if (precision == 0 || !(flags & FLprecision)) { vchar = cast(char)('0' + vnumber); if (vnumber < 10) vchar = cast(char)('0' + vnumber); else vchar = cast(char)((uc ? 'A' - 10 : 'a' - 10) + vnumber); goto L2; } } sizediff_t n = tmpbuf.length; char c; int hexoffset = uc ? ('A' - ('9' + 1)) : ('a' - ('9' + 1)); while (vnumber) { c = cast(char)((vnumber % base) + '0'); if (c > '9') c += hexoffset; vnumber /= base; tmpbuf[--n] = c; } if (tmpbuf.length - n < precision && precision < tmpbuf.length) { sizediff_t m = tmpbuf.length - precision; tmpbuf[m .. n] = '0'; n = m; } else if (flags & FLhash && fc == 'o') prefix = "0"; putstr(tmpbuf[n .. tmpbuf.length]); return; Lreal: putreal(vreal); return; Lcomplex: putreal(vcreal.re); putc('+'); putreal(vcreal.im); putc('i'); return; Lerror: throw new FormatException("formatArg"); } for (int j = 0; j < arguments.length; ) { ti = arguments[j++]; //printf("arg[%d]: '%.*s' %d\n", j, ti.classinfo.name.length, ti.classinfo.name.ptr, ti.classinfo.name.length); //ti.print(); flags = 0; precision = 0; field_width = 0; ti = skipCI(ti); int mi = 9; do { if (ti.classinfo.name.length <= mi) goto Lerror; m = cast(Mangle)ti.classinfo.name[mi++]; } while (m == Mangle.Tconst || m == Mangle.Timmutable); if (m == Mangle.Tarray) { if (ti.classinfo.name.length == 14 && ti.classinfo.name[9..14] == "Array") { TypeInfo tn = (cast(TypeInfo_Array)ti).next; tn = skipCI(tn); switch (cast(Mangle)tn.classinfo.name[9]) { case Mangle.Tchar: case Mangle.Twchar: case Mangle.Tdchar: ti = tn; mi = 9; break; default: break; } } L1: Mangle m2 = cast(Mangle)ti.classinfo.name[mi]; string fmt; // format string wstring wfmt; dstring dfmt; /* For performance reasons, this code takes advantage of the * fact that most format strings will be ASCII, and that the * format specifiers are always ASCII. This means we only need * to deal with UTF in a couple of isolated spots. */ switch (m2) { case Mangle.Tchar: fmt = va_arg!(string)(argptr); break; case Mangle.Twchar: wfmt = va_arg!(wstring)(argptr); fmt = toUTF8(wfmt); break; case Mangle.Tdchar: dfmt = va_arg!(dstring)(argptr); fmt = toUTF8(dfmt); break; case Mangle.Tconst: case Mangle.Timmutable: mi++; goto L1; default: formatArg('s'); continue; } for (size_t i = 0; i < fmt.length; ) { dchar c = fmt[i++]; dchar getFmtChar() { // Valid format specifier characters will never be UTF if (i == fmt.length) throw new FormatException("invalid specifier"); return fmt[i++]; } int getFmtInt() { int n; while (1) { n = n * 10 + (c - '0'); if (n < 0) // overflow throw new FormatException("int overflow"); c = getFmtChar(); if (c < '0' || c > '9') break; } return n; } int getFmtStar() { Mangle m; TypeInfo ti; if (j == arguments.length) throw new FormatException("too few arguments"); ti = arguments[j++]; m = cast(Mangle)ti.classinfo.name[9]; if (m != Mangle.Tint) throw new FormatException("int argument expected"); return va_arg!(int)(argptr); } if (c != '%') { if (c > 0x7F) // if UTF sequence { i--; // back up and decode UTF sequence c = std.utf.decode(fmt, i); } Lputc: putc(c); continue; } // Get flags {-+ #} flags = 0; while (1) { c = getFmtChar(); switch (c) { case '-': flags |= FLdash; continue; case '+': flags |= FLplus; continue; case ' ': flags |= FLspace; continue; case '#': flags |= FLhash; continue; case '0': flags |= FL0pad; continue; case '%': if (flags == 0) goto Lputc; break; default: break; } break; } // Get field width field_width = 0; if (c == '*') { field_width = getFmtStar(); if (field_width < 0) { flags |= FLdash; field_width = -field_width; } c = getFmtChar(); } else if (c >= '0' && c <= '9') field_width = getFmtInt(); if (flags & FLplus) flags &= ~FLspace; if (flags & FLdash) flags &= ~FL0pad; // Get precision precision = 0; if (c == '.') { flags |= FLprecision; //flags &= ~FL0pad; c = getFmtChar(); if (c == '*') { precision = getFmtStar(); if (precision < 0) { precision = 0; flags &= ~FLprecision; } c = getFmtChar(); } else if (c >= '0' && c <= '9') precision = getFmtInt(); } if (j == arguments.length) goto Lerror; ti = arguments[j++]; ti = skipCI(ti); mi = 9; do { m = cast(Mangle)ti.classinfo.name[mi++]; } while (m == Mangle.Tconst || m == Mangle.Timmutable); if (c > 0x7F) // if UTF sequence goto Lerror; // format specifiers can't be UTF formatArg(cast(char)c); } } else { formatArg('s'); } } return; Lerror: throw new FormatException(); } /* ======================== Unit Tests ====================================== */ unittest { int i; string s; debug(format) printf("std.format.format.unittest\n"); s = std.string.format("hello world! %s %s ", true, 57, 1_000_000_000, 'x', " foo"); assert(s == "hello world! true 57 1000000000x foo"); s = std.string.format(1.67, " %A ", -1.28, float.nan); /* The host C library is used to format floats. * C99 doesn't specify what the hex digit before the decimal point * is for %A. */ version (linux) assert(s == "1.67 -0XA.3D70A3D70A3D8P-3 nan"); else version (OSX) assert(s == "1.67 -0XA.3D70A3D70A3D8P-3 nan", s); else assert(s == "1.67 -0X1.47AE147AE147BP+0 nan"); s = std.string.format("%x %X", 0x1234AF, 0xAFAFAFAF); assert(s == "1234af AFAFAFAF"); s = std.string.format("%b %o", 0x1234AF, 0xAFAFAFAF); assert(s == "100100011010010101111 25753727657"); s = std.string.format("%d %s", 0x1234AF, 0xAFAFAFAF); assert(s == "1193135 2947526575"); version(X86_64) { pragma(msg, "several format tests disabled on x86_64 due to bug 5625"); } else { s = std.string.format("%s", 1.2 + 3.4i); assert(s == "1.2+3.4i"); s = std.string.format("%x %X", 1.32, 6.78f); assert(s == "3ff51eb851eb851f 40D8F5C3"); } s = std.string.format("%#06.*f",2,12.345); assert(s == "012.35"); s = std.string.format("%#0*.*f",6,2,12.345); assert(s == "012.35"); s = std.string.format("%7.4g:", 12.678); assert(s == " 12.68:"); s = std.string.format("%7.4g:", 12.678L); assert(s == " 12.68:"); s = std.string.format("%04f|%05d|%#05x|%#5x",-4.,-10,1,1); assert(s == "-4.000000|-0010|0x001| 0x1"); i = -10; s = std.string.format("%d|%3d|%03d|%1d|%01.4f",i,i,i,i,cast(double) i); assert(s == "-10|-10|-10|-10|-10.0000"); i = -5; s = std.string.format("%d|%3d|%03d|%1d|%01.4f",i,i,i,i,cast(double) i); assert(s == "-5| -5|-05|-5|-5.0000"); i = 0; s = std.string.format("%d|%3d|%03d|%1d|%01.4f",i,i,i,i,cast(double) i); assert(s == "0| 0|000|0|0.0000"); i = 5; s = std.string.format("%d|%3d|%03d|%1d|%01.4f",i,i,i,i,cast(double) i); assert(s == "5| 5|005|5|5.0000"); i = 10; s = std.string.format("%d|%3d|%03d|%1d|%01.4f",i,i,i,i,cast(double) i); assert(s == "10| 10|010|10|10.0000"); s = std.string.format("%.0d", 0); assert(s == ""); s = std.string.format("%.g", .34); assert(s == "0.3"); s = std.string.format("%.0g", .34); assert(s == "0.3"); s = std.string.format("%.2g", .34); assert(s == "0.34"); s = std.string.format("%0.0008f", 1e-08); assert(s == "0.00000001"); s = std.string.format("%0.0008f", 1e-05); assert(s == "0.00001000"); s = "helloworld"; string r; r = std.string.format("%.2s", s[0..5]); assert(r == "he"); r = std.string.format("%.20s", s[0..5]); assert(r == "hello"); r = std.string.format("%8s", s[0..5]); assert(r == " hello"); byte[] arrbyte = new byte[4]; arrbyte[0] = 100; arrbyte[1] = -99; arrbyte[3] = 0; r = std.string.format(arrbyte); assert(r == "[100,-99,0,0]"); ubyte[] arrubyte = new ubyte[4]; arrubyte[0] = 100; arrubyte[1] = 200; arrubyte[3] = 0; r = std.string.format(arrubyte); assert(r == "[100,200,0,0]"); short[] arrshort = new short[4]; arrshort[0] = 100; arrshort[1] = -999; arrshort[3] = 0; r = std.string.format(arrshort); assert(r == "[100,-999,0,0]"); r = std.string.format("%s",arrshort); assert(r == "[100,-999,0,0]"); ushort[] arrushort = new ushort[4]; arrushort[0] = 100; arrushort[1] = 20_000; arrushort[3] = 0; r = std.string.format(arrushort); assert(r == "[100,20000,0,0]"); int[] arrint = new int[4]; arrint[0] = 100; arrint[1] = -999; arrint[3] = 0; r = std.string.format(arrint); assert(r == "[100,-999,0,0]"); r = std.string.format("%s",arrint); assert(r == "[100,-999,0,0]"); long[] arrlong = new long[4]; arrlong[0] = 100; arrlong[1] = -999; arrlong[3] = 0; r = std.string.format(arrlong); assert(r == "[100,-999,0,0]"); r = std.string.format("%s",arrlong); assert(r == "[100,-999,0,0]"); ulong[] arrulong = new ulong[4]; arrulong[0] = 100; arrulong[1] = 999; arrulong[3] = 0; r = std.string.format(arrulong); assert(r == "[100,999,0,0]"); string[] arr2 = new string[4]; arr2[0] = "hello"; arr2[1] = "world"; arr2[3] = "foo"; r = std.string.format(arr2); assert(r == "[hello,world,,foo]"); r = std.string.format("%.8d", 7); assert(r == "00000007"); r = std.string.format("%.8x", 10); assert(r == "0000000a"); r = std.string.format("%-3d", 7); assert(r == "7 "); r = std.string.format("%*d", -3, 7); assert(r == "7 "); r = std.string.format("%.*d", -3, 7); assert(r == "7"); //typedef int myint; //myint m = -7; //r = std.string.format(m); //assert(r == "-7"); r = std.string.format("abc"c); assert(r == "abc"); r = std.string.format("def"w); assert(r == "def"); r = std.string.format("ghi"d); assert(r == "ghi"); void* p = cast(void*)0xDEADBEEF; r = std.string.format(p); assert(r == "DEADBEEF"); r = std.string.format("%#x", 0xabcd); assert(r == "0xabcd"); r = std.string.format("%#X", 0xABCD); assert(r == "0XABCD"); r = std.string.format("%#o", octal!12345); assert(r == "012345"); r = std.string.format("%o", 9); assert(r == "11"); r = std.string.format("%+d", 123); assert(r == "+123"); r = std.string.format("%+d", -123); assert(r == "-123"); r = std.string.format("% d", 123); assert(r == " 123"); r = std.string.format("% d", -123); assert(r == "-123"); r = std.string.format("%%"); assert(r == "%"); r = std.string.format("%d", true); assert(r == "1"); r = std.string.format("%d", false); assert(r == "0"); r = std.string.format("%d", 'a'); assert(r == "97"); wchar wc = 'a'; r = std.string.format("%d", wc); assert(r == "97"); dchar dc = 'a'; r = std.string.format("%d", dc); assert(r == "97"); byte b = byte.max; r = std.string.format("%x", b); assert(r == "7f"); r = std.string.format("%x", ++b); assert(r == "80"); r = std.string.format("%x", ++b); assert(r == "81"); short sh = short.max; r = std.string.format("%x", sh); assert(r == "7fff"); r = std.string.format("%x", ++sh); assert(r == "8000"); r = std.string.format("%x", ++sh); assert(r == "8001"); i = int.max; r = std.string.format("%x", i); assert(r == "7fffffff"); r = std.string.format("%x", ++i); assert(r == "80000000"); r = std.string.format("%x", ++i); assert(r == "80000001"); r = std.string.format("%x", 10); assert(r == "a"); r = std.string.format("%X", 10); assert(r == "A"); r = std.string.format("%x", 15); assert(r == "f"); r = std.string.format("%X", 15); assert(r == "F"); Object c = null; r = std.string.format(c); assert(r == "null"); enum TestEnum { Value1, Value2 } r = std.string.format("%s", TestEnum.Value2); assert(r == "1"); immutable(char[5])[int] aa = ([3:"hello", 4:"betty"]); r = std.string.format("%s", aa.values); assert(r == "[[h,e,l,l,o],[b,e,t,t,y]]"); r = std.string.format("%s", aa); assert(r == "[3:[h,e,l,l,o],4:[b,e,t,t,y]]"); static const dchar[] ds = ['a','b']; for (int j = 0; j < ds.length; ++j) { r = std.string.format(" %d", ds[j]); if (j == 0) assert(r == " 97"); else assert(r == " 98"); } r = std.string.format(">%14d<, ", 15, [1,2,3]); assert(r == "> 15<, [1,2,3]"); assert(std.string.format("%8s", "bar") == " bar"); assert(std.string.format("%8s", "b\u00e9ll\u00f4") == " b\u00e9ll\u00f4"); } unittest { // bugzilla 3479 auto stream = appender!(char[])(); formattedWrite(stream, "%2$.*1$d", 12, 10); assert(stream.data == "000000000010", stream.data); }
D
# FIXED F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/source/F2837xS_Gpio.c F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_device.h F2837xS_Gpio.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/assert.h F2837xS_Gpio.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/linkage.h F2837xS_Gpio.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/stdarg.h F2837xS_Gpio.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/stdbool.h F2837xS_Gpio.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/stddef.h F2837xS_Gpio.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/stdint.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_adc.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_analogsubsys.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_cla.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_cmpss.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_cputimer.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_dac.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_dcsm.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_dma.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_defaultisr.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_ecap.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_emif.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_epwm.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_epwm_xbar.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_eqep.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_flash.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_gpio.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_i2c.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_input_xbar.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_mcbsp.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_memconfig.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_nmiintrupt.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_output_xbar.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_piectrl.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_pievect.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_sci.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_sdfm.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_spi.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_sysctrl.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_trig_xbar.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_upp.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_xbar.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_xint.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_Examples.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_GlobalPrototypes.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_cputimervars.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_Cla_defines.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_EPwm_defines.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_Adc_defines.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_Emif_defines.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_Gpio_defines.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_I2c_defines.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_Pie_defines.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_Dma_defines.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_SysCtrl_defines.h F2837xS_Gpio.obj: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_Upp_defines.h C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/source/F2837xS_Gpio.c: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_device.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/assert.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/linkage.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/stdarg.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/stdbool.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/stddef.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/stdint.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_adc.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_analogsubsys.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_cla.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_cmpss.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_cputimer.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_dac.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_dcsm.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_dma.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_defaultisr.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_ecap.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_emif.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_epwm.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_epwm_xbar.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_eqep.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_flash.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_gpio.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_i2c.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_input_xbar.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_mcbsp.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_memconfig.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_nmiintrupt.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_output_xbar.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_piectrl.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_pievect.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_sci.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_sdfm.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_spi.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_sysctrl.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_trig_xbar.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_upp.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_xbar.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_headers/include/F2837xS_xint.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_Examples.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_GlobalPrototypes.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_cputimervars.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_Cla_defines.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_EPwm_defines.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_Adc_defines.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_Emif_defines.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_Gpio_defines.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_I2c_defines.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_Pie_defines.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_Dma_defines.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_SysCtrl_defines.h: C:/ayush2_nigam4/repo/trunk/Lab6/v140/F2837xS_common/include/F2837xS_Upp_defines.h:
D
module UnrealScript.Engine.StaticMeshComponent; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.Engine.MeshComponent; import UnrealScript.Core.UObject; import UnrealScript.Engine.ShadowMap2D; import UnrealScript.Engine.EngineTypes; import UnrealScript.Engine.Texture; import UnrealScript.Engine.StaticMesh; extern(C++) interface StaticMeshComponent : MeshComponent { public extern(D): private static __gshared ScriptClass mStaticClass; @property final static ScriptClass StaticClass() { mixin(MGSCC("Class Engine.StaticMeshComponent")); } private static __gshared StaticMeshComponent mDefaultProperties; @property final static StaticMeshComponent DefaultProperties() { mixin(MGDPC("StaticMeshComponent", "StaticMeshComponent Engine.Default__StaticMeshComponent")); } static struct Functions { private static __gshared { ScriptFunction mCanBecomeDynamic; ScriptFunction mSetStaticMesh; ScriptFunction mDisableRBCollisionWithSMC; ScriptFunction mSetForceStaticDecals; } public @property static final { ScriptFunction CanBecomeDynamic() { mixin(MGF("mCanBecomeDynamic", "Function Engine.StaticMeshComponent.CanBecomeDynamic")); } ScriptFunction SetStaticMesh() { mixin(MGF("mSetStaticMesh", "Function Engine.StaticMeshComponent.SetStaticMesh")); } ScriptFunction DisableRBCollisionWithSMC() { mixin(MGF("mDisableRBCollisionWithSMC", "Function Engine.StaticMeshComponent.DisableRBCollisionWithSMC")); } ScriptFunction SetForceStaticDecals() { mixin(MGF("mSetForceStaticDecals", "Function Engine.StaticMeshComponent.SetForceStaticDecals")); } } } enum ELightmapModificationFunction : ubyte { MLMF_Modulate = 0, MLMF_ModulateAlpha = 1, MLMF_MAX = 2, } struct StaticMeshComponentLODInfo { private ubyte __buffer__[44]; public extern(D): private static __gshared ScriptStruct mStaticClass; @property final static ScriptStruct StaticClass() { mixin(MGSCS("ScriptStruct Engine.StaticMeshComponent.StaticMeshComponentLODInfo")); } @property final auto ref { ScriptArray!(ShadowMap2D) ShadowMaps() { mixin(MGPS("ScriptArray!(ShadowMap2D)", 0)); } ScriptArray!(UObject) ShadowVertexBuffers() { mixin(MGPS("ScriptArray!(UObject)", 12)); } ScriptArray!(Vector) VertexColorPositions() { mixin(MGPS("ScriptArray!(Vector)", 32)); } Pointer OverrideVertexColors() { mixin(MGPS("Pointer", 28)); } Pointer LightMap() { mixin(MGPS("Pointer", 24)); } } } @property final { auto ref { ScriptArray!(UObject.Guid) IrrelevantLights() { mixin(MGPC("ScriptArray!(UObject.Guid)", 552)); } ScriptArray!(StaticMeshComponent.StaticMeshComponentLODInfo) LODData() { mixin(MGPC("ScriptArray!(StaticMeshComponent.StaticMeshComponentLODInfo)", 564)); } EngineTypes.LightmassPrimitiveSettings LightmassSettings() { mixin(MGPC("EngineTypes.LightmassPrimitiveSettings", 580)); } int VertexPositionVersionNumber() { mixin(MGPC("int", 576)); } StaticMeshComponent.ELightmapModificationFunction SimpleLightmapModificationFunction() { mixin(MGPC("StaticMeshComponent.ELightmapModificationFunction", 544)); } int ForcedLodModel() { mixin(MGPC("int", 500)); } Texture SimpleLightmapModificationTexture() { mixin(MGPC("Texture", 540)); } int SubDivisionStepSize() { mixin(MGPC("int", 532)); } float OverriddenLODMaxRange() { mixin(MGPC("float", 528)); } int OverriddenLightMapRes() { mixin(MGPC("int", 524)); } int OverriddenLightMapResolution() { mixin(MGPC("int", 520)); } UObject.Color WireframeColor() { mixin(MGPC("UObject.Color", 512)); } StaticMesh StaticMeshVar() { mixin(MGPC("StaticMesh", 508)); } int PreviousLODLevel() { mixin(MGPC("int", 504)); } } bool bNeverBecomeDynamic() { mixin(MGBPC(548, 0x1)); } bool bNeverBecomeDynamic(bool val) { mixin(MSBPC(548, 0x1)); } bool bUseSimpleLightmapModifications() { mixin(MGBPC(536, 0x8)); } bool bUseSimpleLightmapModifications(bool val) { mixin(MSBPC(536, 0x8)); } bool bCanHighlightSelectedSections() { mixin(MGBPC(536, 0x4)); } bool bCanHighlightSelectedSections(bool val) { mixin(MSBPC(536, 0x4)); } bool bForceStaticDecals() { mixin(MGBPC(536, 0x2)); } bool bForceStaticDecals(bool val) { mixin(MSBPC(536, 0x2)); } bool bUseSubDivisions() { mixin(MGBPC(536, 0x1)); } bool bUseSubDivisions(bool val) { mixin(MSBPC(536, 0x1)); } bool bOverrideLightMapRes() { mixin(MGBPC(516, 0x4)); } bool bOverrideLightMapRes(bool val) { mixin(MSBPC(516, 0x4)); } bool bOverrideLightMapResolution() { mixin(MGBPC(516, 0x2)); } bool bOverrideLightMapResolution(bool val) { mixin(MSBPC(516, 0x2)); } bool bIgnoreInstanceForTextureStreaming() { mixin(MGBPC(516, 0x1)); } bool bIgnoreInstanceForTextureStreaming(bool val) { mixin(MSBPC(516, 0x1)); } } final: bool CanBecomeDynamic() { ubyte params[4]; params[] = 0; (cast(ScriptObject)this).ProcessEvent(Functions.CanBecomeDynamic, params.ptr, cast(void*)0); return *cast(bool*)params.ptr; } bool SetStaticMesh(StaticMesh NewMesh, bool* bForce = null) { ubyte params[12]; params[] = 0; *cast(StaticMesh*)params.ptr = NewMesh; if (bForce !is null) *cast(bool*)&params[4] = *bForce; (cast(ScriptObject)this).ProcessEvent(Functions.SetStaticMesh, params.ptr, cast(void*)0); return *cast(bool*)&params[8]; } void DisableRBCollisionWithSMC( // ERROR: Unknown object class 'Class Core.ComponentProperty'! void* OtherSMC, bool bDisabled) { ubyte params[8]; params[] = 0; *cast( // ERROR: Unknown object class 'Class Core.ComponentProperty'! void**)params.ptr = OtherSMC; *cast(bool*)&params[4] = bDisabled; (cast(ScriptObject)this).ProcessEvent(Functions.DisableRBCollisionWithSMC, params.ptr, cast(void*)0); } void SetForceStaticDecals(bool bInForceStaticDecals) { ubyte params[4]; params[] = 0; *cast(bool*)params.ptr = bInForceStaticDecals; (cast(ScriptObject)this).ProcessEvent(Functions.SetForceStaticDecals, params.ptr, cast(void*)0); } }
D
module mach.math.vector3; private: import std.math : sin, cos, atan2, sqrt; import mach.traits : isNumeric, Unqual, isTemplateOf; import mach.error : enforcebounds; public: enum isVector3(T) = isTemplateOf!(T, Vector3); auto Vector(N)(N x, N y, N z) if(isNumeric!N){ return Vector3!N(x, y, z); } struct Vector3(T) if(isNumeric!T){ Unqual!T x, y, z; this(N)(in N x) if(isNumeric!N){ this(x, x, x); } this(N)(in N x, in N y, in N z) if(isNumeric!N){ this.x = cast(T) x; this.y = cast(T) y; this.z = cast(T) z; } this(N)(in Vector3!N vector){ this(vector.x, vector.y, vector.z); } /// Get the null vector. static Vector3!T zero(){ return Vector3!T(0, 0, 0); } /// Returns true if this is not the null vector. @property bool nonzero() const{ return (this.x != 0) | (this.y != 0) | (this.z != 0); } T dot(N)(in Vector3!N vector) const{ return this.x * vector.x + this.y * vector.y + this.z * vector.z; } alias scalar = dot; Vector3!T cross(N)(in Vector3!N vector) const{ return Vector3!T( this.y * vector.z - this.z * vector.y, this.z * vector.x - this.x * vector.z, this.x * vector.y - this.y * vector.x ); } Vector3!T lerp(N)(in Vector3!N vector, in double time) const{ Vector3!T result = vector - this; result *= time; result += this; return result; } /// Get the Euclidean distance between two vectors. double distance(N)(in Vector3!N vector) const{ return (this - vector).length(); } /// Get the squared Euclidean distance between two vectors. T distancesq(N)(in Vector3!N vector) const{ return (this - vector).lengthsq(); } /// Get the normal of this vector. @property Vector3!T normal() const{ return this / this.length(); } /// Normalize this vector. void normalize(){ this /= this.length(); } /// Get the length of this vector. @property double length() const{ return sqrt(cast(double) this.lengthsq()); } @property void length(in double length){ this *= length / this.length(); } /// Get the squared length of this vector. @property T lengthsq() const{ return (this.x * this.x) + (this.y * this.y) + (this.z * this.z); } /// Negate this vector. void negate(){ this.x = -this.x; this.y = -this.y; this.z = -this.z; } double opUnary(string op)() const if (op == `*`){ return this.length(); } Vector3!T opUnary(string op)() const if (op == `~`){ return this.normal(); } Vector3!T opUnary(string op)() const if (op == `-`){ return Vector3!T(-this.x, -this.y, -this.z); } void opOpAssign(string op, N)(Vector3!N rhs){ mixin(` this.x ` ~ op ~ `= rhs.x; this.y ` ~ op ~ `= rhs.y; this.z ` ~ op ~ `= rhs.z; `); } void opOpAssign(string op, N)(N rhs) if(isNumeric!N){ mixin(` this.x ` ~ op ~ `= rhs; this.y ` ~ op ~ `= rhs; this.z ` ~ op ~ `= rhs; `); } Vector3!T opBinary(string op, N)(Vector3!N rhs) const{ mixin(`return Vector3!T( this.x ` ~ op ~ ` rhs.x, this.y ` ~ op ~ ` rhs.y, this.z ` ~ op ~ ` rhs.z );`); } Vector3!T opBinary(string op, N)(N rhs) const if(isNumeric!N){ mixin(`return Vector3!T( this.x ` ~ op ~ ` rhs, this.y ` ~ op ~ ` rhs, this.z ` ~ op ~ ` rhs );`); } Vector3!T opBinaryRight(string op, N)(N rhs) const if(isNumeric!N){ mixin(`return Vector3!T( rhs ` ~ op ~ ` this.x, rhs ` ~ op ~ ` this.y, rhs ` ~ op ~ ` this.z );`); } T opIndex(in size_t index) const in{ enforcebounds(index, 0, 2); }body{ if(index == 0) return this.x; else if(index == 1) return this.y; else return this.z; } void opIndexAssign(N)(in N value, in size_t index) if(isNumeric!N) in{ enforcebounds(index, 0, 2); }body{ if(index == 0) this.x = cast(T) value; else if(index == 1) this.y = cast(T) value; else this.z = cast(T) value; } bool opEquals(N)(Vector3!N vector) const{ return( (this.x == vector.x) & (this.y == vector.y) & (this.z == vector.z) ); } bool opCast(Type : bool)(){ return this.nonzero(); } Vector3!N opCast(Type : Vector3!N, N)() if(!is(N == T)){ return Type(this); } } unittest{ // TODO }
D
/Users/yq/Project/Swift/SwiftGroup/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ElementAt.o : /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Deprecated.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Cancelable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ObservableType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ObserverType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Reactive.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/RecursiveLock.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Errors.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/AtomicInt.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Event.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/First.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Rx.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/Platform.Linux.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/RxSwift/RxSwift-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/RxSwift/RxSwift.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/yq/Project/Swift/SwiftGroup/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ElementAt~partial.swiftmodule : /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Deprecated.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Cancelable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ObservableType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ObserverType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Reactive.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/RecursiveLock.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Errors.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/AtomicInt.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Event.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/First.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Rx.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/Platform.Linux.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/RxSwift/RxSwift-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/RxSwift/RxSwift.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/yq/Project/Swift/SwiftGroup/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ElementAt~partial.swiftdoc : /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Deprecated.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Cancelable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ObservableType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ObserverType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Reactive.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/RecursiveLock.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Errors.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/AtomicInt.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Event.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/First.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Rx.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/Platform.Linux.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/RxSwift/RxSwift-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/RxSwift/RxSwift.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/yq/Project/Swift/SwiftGroup/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ElementAt~partial.swiftsourceinfo : /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Deprecated.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Cancelable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ObservableType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ObserverType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Reactive.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/RecursiveLock.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Errors.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/AtomicInt.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Event.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/First.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Rx.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/Platform/Platform.Linux.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/RxSwift/RxSwift-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/RxSwift/RxSwift.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
module os.win32.activex; /*************************************************************** * $HeadURL: http://svn.dsource.org/projects/core32/trunk/activex/activex.d $ * $Revision: 39 $ * $Date: 2009-05-23 02:44:15 +0400 (Сб, 23 май 2009) $ * $Author: l8night $ */ private: //import std.array; /* for ArrayBoundsError */ import std.stdarg; import std.string; import std.utf; import std.io: writefln; import os.win32.winnt, os.win32.winnls, os.win32.uuid, os.win32.wtypes, os.win32.basetyps; import os.win32.oaidl, os.win32.objbase; /* for VARIANTARG */ pragma(lib, "rulada.lib"); public: class AXO { private static LCID defaultLCID; static this() { defaultLCID = GetUserDefaultLCID(); CoInitialize(null); } static ~this() { CoUninitialize(); } struct MemberDef { char [] name; DISPID dispid; INVOKEKIND invkind; FUNCDESC * pFuncDesc; } private ITypeInfo [FUNCDESC *] allFuncDescs; private ITypeInfo typeInfo; private IDispatch pIDispatch; private MemberDef [] allMembers; private char[] [ DISPID ] methods; private char[] [ DISPID ] getters; private SHORT [ DISPID ] returns; private char[] [ DISPID ] setters; private char[] [ DISPID ] settersbyref; this(char [] appName) { wchar* prog = toUTF16z(appName); CLSID clsid; HRESULT hr = CLSIDFromProgID(cast(wchar*)prog, &clsid); hr = CoCreateInstance(&clsid, null, CLSCTX_SERVER, &IID_IDispatch, cast(void**)&pIDispatch); loadMembers(); } ~this() { foreach (FUNCDESC* pFuncDesc, ITypeInfo ti; allFuncDescs) ti.ReleaseFuncDesc(cast(FUNCDESC *)pFuncDesc); } void loadMembers() { HRESULT hr = pIDispatch.GetTypeInfo(0,defaultLCID, &typeInfo); loadMembers(typeInfo); } void loadMembers(ITypeInfo pTypeInfo) { TYPEATTR * pTypeAttr; HRESULT hr = pTypeInfo.GetTypeAttr(&pTypeAttr); for(uint i;i<pTypeAttr.cImplTypes;++i) { HREFTYPE pRefType; hr = pTypeInfo.GetRefTypeOfImplType(i,&pRefType); ITypeInfo ppTInfo; hr = pTypeInfo.GetRefTypeInfo(pRefType,&ppTInfo); loadMembers(ppTInfo); } for(uint i;i<pTypeAttr.cFuncs;++i) { MemberDef mem; hr = pTypeInfo.GetFuncDesc(i,& mem.pFuncDesc); FUNCDESC * pFuncDesc=mem.pFuncDesc; allFuncDescs[pFuncDesc] = pTypeInfo; wchar * methodName; hr = pTypeInfo.GetDocumentation(pFuncDesc.memid, &methodName, null, null, null); wchar [] tmp; uint l=wcslen(methodName); tmp.length=l; for (uint j;j<l;++j) tmp[j]=methodName[j]; char [] theName_i=toUTF8(tmp); char [] theName = theName_i.dup; mem.name=theName; mem.invkind=pFuncDesc.invkind; DISPID dispid/* = pFuncDesc.memid*/; //* hr = pIDispatch.GetIDsOfNames(cast(REFIID) &IID_NULL, &methodName, 1, defaultLCID, &dispid); mem.dispid=dispid; /**/ allMembers ~= mem; SysFreeString (methodName); switch (mem.invkind) { case INVOKE_FUNC: methods[dispid] = theName; break; case INVOKE_PROPERTYGET: getters[dispid] = theName; returns[dispid] = pFuncDesc.lprgelemdescParam[0].tdesc.vt; break; case INVOKE_PROPERTYPUT: setters[dispid] = theName; break; case INVOKE_PROPERTYPUTREF: settersbyref[dispid] = theName; break; default: } } pTypeInfo.ReleaseTypeAttr(pTypeAttr); } public void showMembers() { writefln("\nmethods"); foreach(char[] key; methods) writefln("\t%s", key); writefln("\ngetters"); foreach(DISPID value, char[] key; getters) writefln("\t%s", key); writefln("\nsetters"); foreach(DISPID value, char[] key; setters) writefln("\t%s", key); writefln("\nsettersbyref"); foreach(DISPID value, char[] key; settersbyref) writefln("\t%s", key); /+ private SHORT [ DISPID ] returns; +/ } VARIANTARG [] makeArray(TypeInfo [] args, void* ptr) { VARIANTARG [] array; array.length = args.length; for (uint i;i<args.length;++i) { if (args[i] == typeid(VARIANTARG)) array [i] = va_arg!(VARIANTARG)(ptr); else throw new Exception( "Expected arguments of type VARIANTARG" ); } return array; } private DISPID findMember(char [] member, INVOKEKIND ik) { INVOKEKIND tmp=0xffff; foreach(inout MemberDef mem; allMembers) if (mem.name==member) if (mem.invkind==ik) return mem.dispid; else tmp=mem.invkind; if (tmp==0xffff) throw new Exception(format("no such member '%s'",member)); else throw new Exception(format("member '%s' found with INVOKEKIND %s",member,tmp)); } VARIANT get(char [] member) { INVOKEKIND ik=INVOKE_PROPERTYGET; DISPID dispid = findMember(member,ik); if (!(dispid in getters)) throw new Exception("can only get properties"); DISPPARAMS param; VARIANT result; HRESULT hr = pIDispatch.Invoke(dispid, cast(REFIID) &IID_NULL, defaultLCID, ik, &param, &result, null, null); return result; } void set(char [] member,VARIANTARG arg) { INVOKEKIND ik=INVOKE_PROPERTYPUT; DISPID dispid = findMember(member,ik); if (!(dispid in setters)) throw new Exception("can only set properties"); VARIANTARG [] myArgs = (&arg)[0..1]; DISPPARAMS param; param.cArgs=myArgs.length; param.rgvarg=myArgs.ptr; DISPID dispidNamed = DISPID_PROPERTYPUT; param.cNamedArgs = 1; param.rgdispidNamedArgs = &dispidNamed; HRESULT hr = pIDispatch.Invoke(dispid, cast(REFIID) &IID_NULL, defaultLCID, ik, &param, null, null, null); } void setByRef(char [] member,VARIANTARG arg) { INVOKEKIND ik=INVOKE_PROPERTYPUTREF; DISPID dispid = findMember(member,ik); if (!(dispid in settersbyref)) throw new Exception("can only set properties"); VARIANTARG [] myArgs = (&arg)[0..1]; DISPPARAMS param; param.cArgs=myArgs.length; param.rgvarg=myArgs.ptr; DISPID dispidNamed = DISPID_PROPERTYPUT; param.cNamedArgs = 1; param.rgdispidNamedArgs = &dispidNamed; VARIANT * result; HRESULT hr = pIDispatch.Invoke(dispid, cast(REFIID) &IID_NULL, defaultLCID, ik, &param, result, null, null); } VARIANT call(char [] member,...) { /* Can I change the char[] into a variant? */ INVOKEKIND ik = INVOKE_FUNC; DISPID dispid = findMember(member,ik); if (!(dispid in methods)) throw new Exception("can only call methods"); VARIANTARG [] myArgs = makeArray(_arguments,_argptr); DISPPARAMS param; param.cArgs=myArgs.length; param.rgvarg=myArgs.ptr; debug writef("Calling %s...", member); VARIANT result; HRESULT hr = pIDispatch.Invoke(dispid, cast(REFIID) &IID_NULL, defaultLCID, ik, &param, &result, null, null); return result; } } VARIANTARG toVariant(...) { VARIANTARG variant; if (_arguments.length < 1) return VARIANT.init; if(_arguments.length == 1) { /* Strings */ if (_arguments[0] == typeid(wchar[])) { debug writef("wchar[]\t"); variant.vt = VARENUM.VT_BSTR; variant.bstrVal = cast(wchar*) (va_arg!(char[])(_argptr) ~ "\0"); } else if (_arguments[0] == typeid(char[])) { debug writef("char[]\t"); variant.vt = VARENUM.VT_BSTR; wchar[] buf = std.utf.toUTF16(va_arg!(char[])(_argptr) ~ "\0"); variant.bstrVal = SysAllocString( cast(wchar*)(buf.ptr) ); } /* Unsigned Integers */ else if (_arguments[0] == typeid(bool)) { debug writef("bool\t"); variant.vt = VARENUM.VT_BOOL; if(va_arg!(bool)(_argptr) == true) variant.boolVal = 1; else variant.boolVal = 0; } else if (_arguments[0] == typeid(ubyte)) { debug writef("ubyte\t"); variant.vt = VARENUM.VT_UI1; /* I'm not sure about this. */ variant.bVal = va_arg!(ubyte)(_argptr); } else if (_arguments[0] == typeid(ushort)) { debug writef("ushort\t"); variant.vt = VARENUM.VT_UI2; /* I'm not sure about this. */ variant.uiVal = va_arg!(ushort)(_argptr); } else if (_arguments[0] == typeid(uint)) { debug writef("uint\t"); variant.vt = VARENUM.VT_UI4; /* I'm not sure about this. */ variant.ulVal = va_arg!(uint)(_argptr); } else if (_arguments[0] == typeid(ulong)) /* 8 bits */ { debug writef("ulong\t"); variant.vt = VARENUM.VT_UI4; /* 4 bits -- long won't fit! */ variant.lVal = va_arg!(ulong)(_argptr); } /* Signed Integers */ else if (_arguments[0] == typeid(byte)) { debug writef("byte\t"); variant.vt = VARENUM.VT_I1; /* I'm not sure about this. */ variant. cVal = va_arg!(byte)(_argptr); } else if (_arguments[0] == typeid(short)) { debug writef("short\t"); variant.vt = VARENUM.VT_I2; variant.iVal = va_arg!(short)(_argptr); } else if (_arguments[0] == typeid(int)) { debug writef("int\t"); variant.vt = VARENUM.VT_I4; variant.lVal = va_arg!(int)(_argptr); } else if (_arguments[0] == typeid(long)) /* 8 bits */ { debug writef("long\t"); variant.vt = VARENUM.VT_I4; /* 4 bits -- long might not fit! */ variant.lVal = cast(int) va_arg!(long)(_argptr); } /* Floating Point */ else if (_arguments[0] == typeid(float)) { debug writef("float\t"); variant.vt = VARENUM.VT_R4; variant.fltVal = va_arg!(float)(_argptr); } else if (_arguments[0] == typeid(double)) { debug writef("double\t"); variant.vt = VARENUM.VT_R8; variant.dblVal = va_arg!(double)(_argptr); } /* objects */ else if (_arguments[0] == typeid(Object)) /* need to be an AXO to work right now */ { debug writef("object\t"); variant.vt = VARENUM.VT_BYREF; //VARENUM.VT_STORED_OBJECT; /* I doubt this is right. */ variant.byref = cast(void*)( va_arg!(Object)(_argptr) ); /* need to get some kind of pointer from the AXO object */ } else throw new Exception("toVariant doesn't know what to do with it."); } else throw new Exception("[unimplemented feature] toVariant can't use more than one arguemnt yet"); return variant; } extern(C) int wcslen(wchar*); extern(Windows) { alias uint tagINVOKEKIND; alias tagINVOKEKIND INVOKEKIND; enum :INVOKEKIND { INVOKE_FUNC = 1, INVOKE_PROPERTYGET = 2, INVOKE_PROPERTYPUT = 4, INVOKE_PROPERTYPUTREF = 8 } const WORD DISPATCH_METHOD = 0x1; const WORD DISPATCH_PROPERTYGET = 0x2; const WORD DISPATCH_PROPERTYPUT = 0x4; const WORD DISPATCH_PROPERTYPUTREF = 0x8; alias GUID_NULL IID_NULL; HRESULT CLSIDFromProgID (LPCOLESTR lpszProgID, CLSID * lpclsid); LCID GetUserDefaultLCID(); BSTR SysAllocString(OLECHAR *); void SysFreeString(wchar*); DWORD FormatMessageA(DWORD dwFlags,LPCVOID lpSource,DWORD dwMessageId,DWORD dwLanguageId,LPSTR lpBuffer,DWORD nSize,va_list *Arguments); }
D
/Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/URLEncodedForm.build/Objects-normal/x86_64/URLEncodedFormParser.o : /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Data/URLEncodedFormData.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Data/URLEncodedFormDataConvertible.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Codable/URLEncodedFormDecoder.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Codable/URLEncodedFormEncoder.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Data/URLEncodedFormParser.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Data/URLEncodedFormSerializer.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Utilities/URLEncodedFormError.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Utilities/Exports.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Async.framework/Modules/Async.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/COperatingSystem.framework/Modules/COperatingSystem.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOFoundationCompat.framework/Modules/NIOFoundationCompat.swiftmodule/x86_64.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/cpp_magic.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIODarwin/include/c_nio_darwin.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/c-atomics.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOLinux/include/c_nio_linux.h /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-zlib-support.git-4597058737275259177/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/URLEncodedForm.build/Objects-normal/x86_64/URLEncodedFormParser~partial.swiftmodule : /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Data/URLEncodedFormData.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Data/URLEncodedFormDataConvertible.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Codable/URLEncodedFormDecoder.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Codable/URLEncodedFormEncoder.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Data/URLEncodedFormParser.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Data/URLEncodedFormSerializer.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Utilities/URLEncodedFormError.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Utilities/Exports.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Async.framework/Modules/Async.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/COperatingSystem.framework/Modules/COperatingSystem.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOFoundationCompat.framework/Modules/NIOFoundationCompat.swiftmodule/x86_64.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/cpp_magic.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIODarwin/include/c_nio_darwin.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/c-atomics.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOLinux/include/c_nio_linux.h /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-zlib-support.git-4597058737275259177/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/URLEncodedForm.build/Objects-normal/x86_64/URLEncodedFormParser~partial.swiftdoc : /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Data/URLEncodedFormData.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Data/URLEncodedFormDataConvertible.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Codable/URLEncodedFormDecoder.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Codable/URLEncodedFormEncoder.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Data/URLEncodedFormParser.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Data/URLEncodedFormSerializer.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Utilities/URLEncodedFormError.swift /Users/brunodaluz/Desktop/project/.build/checkouts/url-encoded-form.git-8532762057692740576/Sources/URLEncodedForm/Utilities/Exports.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Async.framework/Modules/Async.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/COperatingSystem.framework/Modules/COperatingSystem.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOFoundationCompat.framework/Modules/NIOFoundationCompat.swiftmodule/x86_64.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/cpp_magic.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIODarwin/include/c_nio_darwin.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/c-atomics.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOLinux/include/c_nio_linux.h /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-zlib-support.git-4597058737275259177/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/* * $Id: pad.d,v 1.1.1.1 2006/11/19 07:54:55 kenta Exp $ * * Copyright 2006 Kenta Cho. Some rights reserved. */ module abagames.util.sdl.pad; private import std.string; private import std.conv; private import std.stdio; private import SDL; private import abagames.util.sdl.input; private import abagames.util.sdl.recordableinput; /** * Inputs from a joystick and a keyboard. */ public class Pad: Input { public: Uint8 *keys; bool buttonsExchanged = false; private: SDL_Joystick *stick = null; const int JOYSTICK_AXIS = 16384; PadState state; public this() { state = new PadState; } public SDL_Joystick* openJoystick(SDL_Joystick *st = null) { if (st == null) { if (SDL_InitSubSystem(SDL_INIT_JOYSTICK) < 0) return null; version (PANDORA) { foreach (i; 0..SDL_NumJoysticks()) { if (to!string(SDL_JoystickName(i)) == "nub0") { stick = SDL_JoystickOpen(i); } } } else { stick = SDL_JoystickOpen(0); } } else { stick = st; } return stick; } public void handleEvent(SDL_Event *event) { keys = SDL_GetKeyState(null); } public PadState getState() { int x = 0, y = 0; state.dir = 0; if (stick) { x = SDL_JoystickGetAxis(stick, 0); y = SDL_JoystickGetAxis(stick, 1); } if (keys[SDLK_RIGHT] == SDL_PRESSED || keys[SDLK_KP6] == SDL_PRESSED || keys[SDLK_d] == SDL_PRESSED || keys[SDLK_l] == SDL_PRESSED || x > JOYSTICK_AXIS) state.dir |= PadState.Dir.RIGHT; if (keys[SDLK_LEFT] == SDL_PRESSED || keys[SDLK_KP4] == SDL_PRESSED || keys[SDLK_a] == SDL_PRESSED || keys[SDLK_j] == SDL_PRESSED || x < -JOYSTICK_AXIS) state.dir |= PadState.Dir.LEFT; if (keys[SDLK_DOWN] == SDL_PRESSED || keys[SDLK_KP2] == SDL_PRESSED || keys[SDLK_s] == SDL_PRESSED || keys[SDLK_k] == SDL_PRESSED || y > JOYSTICK_AXIS) state.dir |= PadState.Dir.DOWN; if (keys[SDLK_UP] == SDL_PRESSED || keys[SDLK_KP8] == SDL_PRESSED || keys[SDLK_w] == SDL_PRESSED || keys[SDLK_i] == SDL_PRESSED || y < -JOYSTICK_AXIS) state.dir |= PadState.Dir.UP; state.button = 0; bool btnx = false, btnz = false; int btn1 = 0, btn2 = 0; float leftTrigger = 0, rightTrigger = 0; if (stick) { btn1 = SDL_JoystickGetButton(stick, 0) + SDL_JoystickGetButton(stick, 2) + SDL_JoystickGetButton(stick, 4) + SDL_JoystickGetButton(stick, 6) + SDL_JoystickGetButton(stick, 8) + SDL_JoystickGetButton(stick, 10); btn2 = SDL_JoystickGetButton(stick, 1) + SDL_JoystickGetButton(stick, 3) + SDL_JoystickGetButton(stick, 5) + SDL_JoystickGetButton(stick, 7) + SDL_JoystickGetButton(stick, 9) + SDL_JoystickGetButton(stick, 11); } version (PANDORA) { if (keys[SDLK_HOME] == SDL_PRESSED || keys[SDLK_PAGEUP] == SDL_PRESSED) btnz = true; if (keys[SDLK_PAGEDOWN] == SDL_PRESSED || keys[SDLK_END] == SDL_PRESSED) btnx = true; } else { if (keys[SDLK_z] == SDL_PRESSED || keys[SDLK_PERIOD] == SDL_PRESSED || keys[SDLK_LCTRL] == SDL_PRESSED || keys[SDLK_RCTRL] == SDL_PRESSED || btn1) btnz = true; if (keys[SDLK_x] == SDL_PRESSED || keys[SDLK_SLASH] == SDL_PRESSED || keys[SDLK_LALT] == SDL_PRESSED || keys[SDLK_RALT] == SDL_PRESSED || keys[SDLK_LSHIFT] == SDL_PRESSED || keys[SDLK_RSHIFT] == SDL_PRESSED || keys[SDLK_RETURN] == SDL_PRESSED || btn2) btnx = true; } if (btnz) { if (!buttonsExchanged) state.button |= PadState.Button.A; else state.button |= PadState.Button.B; } if (btnx) { if (!buttonsExchanged) state.button |= PadState.Button.B; else state.button |= PadState.Button.A; } return state; } public PadState getNullState() { state.clear(); return state; } } public class PadState { public: static enum Dir { UP = 1, DOWN = 2, LEFT = 4, RIGHT = 8, }; static enum Button { A = 16, B = 32, ANY = 48, }; int dir, button; private: public static PadState newInstance() { return new PadState; } public static PadState newInstance(PadState s) { return new PadState(s); } public this() { } public this(PadState s) { this(); set(s); } public void set(PadState s) { dir = s.dir; button = s.button; } public void clear() { dir = button = 0; } public void read(File fd) { int read_data[1]; fd.rawRead(read_data); dir = read_data[0] & (Dir.UP | Dir.DOWN | Dir.LEFT | Dir.RIGHT); button = read_data[0] & Button.ANY; } public void write(File fd) { int write_data[1] = [dir | button]; fd.rawWrite(write_data); } public bool equals(PadState s) { if (dir == s.dir && button == s.button) return true; else return false; } } public class RecordablePad: Pad { mixin RecordableInput!(PadState); private: public override PadState getState() { return getState(true); } public PadState getState(bool doRecord) { PadState s = super.getState(); if (doRecord) record(s); return s; } }
D
/* * Paradigm for fixation (and eventually saccade) training. Allows the * experimenter to control background luminance and fixation spot size * and color. * * This version updated to be compatible with Rex version 5.4 * KHB, 12/21/95 * * joymap.d spawned from fix.d, to handle joystick mapping of RFs. * dotmap.d is almost identical to joymap. * * Tertiary state list set control fixation monitoring LED added * 4/03/98 HWH. Allows user control of fixation LED by setting * a variable in the statelist (st menu) true. This variable, fix_led, * is by default false (0); setting it to 1 turns on the monitoring. * */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include "cnf.h" #include "ldev.h" /* hardware device defines */ #include "lcode.h" /* Ecodes */ #include "lcalib.h" #include "pixels.h" /* pixel <==> degree conversion */ #include "make_msg.h" /* generates msgs, and provides all structs for commands.See /rexr3c/*.h */ #include "actions.h" /* action lib for render */ /* New render stuff * */ DotStruct f_fpStruct; // fp parameters static FF2DStruct f_ff2dStruct; // ff2d parameters int f_fpHandle = 0; // handle for dot int f_ff2dHandle = 0; // handle for ff2d int f_handleCount=0; // used in my_check_for_handles() /* End of new render stuff. */ #define FALSE 0 #define TRUE 1 #define WIND0 0 #define EYEH_SIG 0 #define EYEV_SIG 1 #define JOY_X 6 #define JOY_Y 7 #define PTSIZ 4 #define FPSIZ 1 #define PI 3.14159265 /********************************************************************** * Global variables. **********************************************************************/ int framecnt, errcnt; static unsigned char fph, fprh, dh, drh; /* handles for FP, bar */ int isfpon = 0, isdotconf = 0, window_on = 0; static int coh_seed, loc_seed; static float joy_x, joy_y; /* in pixel coordinates */ static int dir = 0; static int ptsiz = PTSIZ; static int fpsiz = 2; static int framerate = 85; static int fpred = 255; static int fpgreen = 0; static int fpblue = 0; /************************************************************************ * Declaration of statelist variables. ************************************************************************/ int fixx = 0, fixy = 0, stimz = 290, //in mm coh = 750, width = 0, islinear = 1, bar_R = 255, bar_G = 255, bar_B = 255, ntrials = 1000, msec = 3000, fix_led = 0, remain, density = 50, radius = 20, speed = 50, bg = 0; /* background grayscale value */ static int f_joyXMin=160; static int f_joyXMax=1600; static int f_joyYMin=160; static int f_joyYMax=1600; static int f_joyDebug = 0; static int f_forceDotsOn = 0; char local_addr[16] = "192.168.1.1"; char remote_addr[16]="192.168.1.2"; int remote_port = 2000; /************************************************************************ * Control functions to make things happen. ************************************************************************/ /******************************** rinitf() *********************************/ void rinitf(void) { int status=0; // initialize tcpip - The last arg (0) turns autoflush off. status = init_tcpip(local_addr, remote_addr, remote_port, 0); } /********************************* setbg() ******************************* * * sets the background luminance */ int setbg() { // vsend(MSG_SETBG, "bbb", (unsigned char)bg, (unsigned char)bg, // (unsigned char)bg); render_bgcolor(bg, bg, bg); return 0; } /******************************** trcount() ******************************* * * bookkeeping function */ int trcount(int flag) { score(flag); /* Rex trial counter */ //msec = msec - 1; framecnt = msec/11; /* frame counter (approximate time) */ if (!flag) errcnt++; return 0; } void get_dot_param(DotStruct *pdot) { // set dot parameters. Note color is hard-coded! int siz; siz = to_pixels((float)fpsiz/10); pdot->xorigin = fixx; pdot->yorigin = fixy; pdot->xsize = siz; pdot->ysize = siz; pdot->depth = 10; pdot->r = fpred; pdot->g = fpgreen; pdot->b = fpblue; pdot->a = 0; } void get_ff2d_param(FF2DStruct* pff2d) { int npoints; float degperframe = (float)speed/10/framerate; float area = 1.0; float rad = to_pixels((float)radius/10); float den = (float)density/100; area = PI*radius*radius/100; npoints = (int)(den*area); pff2d->linear = islinear; pff2d->npts = npoints; pff2d->prob = (float)coh/1000.0f; pff2d->radius = rad; pff2d->pseed = loc_seed; pff2d->cseed = coh_seed; pff2d->pixsz = PTSIZ; pff2d->depth = 20; // TODO: NO HARDCODING pff2d->v = to_pixels(degperframe); //pff2d->dx = 0; //pff2d->dy = 0; pff2d->x = joy_x; pff2d->y = joy_y; pff2d->width = (float)width/10.0f; // TESTING pff2d->angle = dir; pff2d->r = bar_R; pff2d->g = bar_G; pff2d->b = bar_B; //dprintf("%d\n", npoints); } /***************************** my_conf_all() ********************************** * * Configure dot and ff2d. Sends commands, but does not fetch handles. See my_check_for_handles * */ int my_conf_all() { // background color render_bgcolor(bg, bg, bg); // Get dot parameters, send DOT command get_dot_param(&f_fpStruct); render_dot(&f_fpStruct); // will need to get handle return // Get ff2d parameters, send FF2D command get_ff2d_param(&f_ff2dStruct); render_ff2d(&f_ff2dStruct); } /* * my_check_for_handles * * Escape function that returns 1 when two handles have been received. * The first handle received will be the fp handle. * The second handle received will be the dotfield handle. * * Uses a global int, f_handleCount. When that count reaches 2 we're done. * */ int my_check_for_handles() { int h=0; while (render_check_for_handle(&h)) { if (f_handleCount == 0) { f_fpHandle = h; f_handleCount = 1; dprintf("fp handle %d\n", f_fpHandle); } else if (f_handleCount == 1) { f_ff2dHandle = h; f_handleCount = 2; dprintf("ff2d handle %d\n", f_ff2dHandle); } else { dprintf("ERROR: Handle count is %d\n", f_handleCount); } } return (f_handleCount == 2); } /******************************* conf_fp() ***************************** * * configures the fixation point */ void conf_fp(DotStruct *pdot) { // set dot parameters. Note color is hard-coded! pdot->xorigin = fixx; pdot->yorigin = fixy; pdot->xsize = to_pixels((float)fpsiz/10); pdot->ysize = to_pixels((float)fpsiz/10); pdot->depth = 10; pdot->r = fpred; pdot->g = fpgreen; pdot->b = fpblue; pdot->a = 0; } /******************************* initial() ******************************* * * setup function */ int initial(void) { initialize_pixel_conversion(x_dimension_mm, y_dimension_mm, x_resolution, y_resolution, stimz); // Initializes to_pixels function properties framecnt = msec/11; remain = ntrials; errcnt = 0; coh_seed = joy_x; loc_seed = joy_y; return 0; } /****************************** fpask() ******************************* * * requests that a FP be displayed */ int fpask(void) { render_update(f_fpHandle, &f_fpStruct, sizeof(f_fpStruct) , HANDLE_ON); render_frame(0); return 0; } /***************************** ff2d_update ***************************/ int ff2d_update() { get_ff2d_param(&f_ff2dStruct); return 0; } /***************************** fpoff() ********************************* * * turns off the fixation point */ int fpoff(void) { /* Added by swe 8/22 */ render_onoff(&f_fpHandle, HANDLE_OFF, ONOFF_NO_FRAME); render_frame(0); return 0; } /***************************** dotoff() ********************************* * * turns off the dot field */ int dotoff(void) { render_onoff(&f_ff2dHandle, HANDLE_OFF, ONOFF_NO_FRAME); render_frame(0); return 0; } /****************************** winon() ********************************** * * opens fixation window */ int winon(long xsiz, long ysiz) { wd_src_pos(WIND0, WD_DIRPOS, 0, WD_DIRPOS, 0); wd_pos(WIND0, (long)fixx, (long)fixy); wd_siz(WIND0, (long)xsiz, (long)ysiz); wd_cntrl(WIND0, WD_ON); wd_src_check(WIND0, WD_SIGNAL, EYEH_SIG, WD_SIGNAL, EYEV_SIG); return 0; } /* my_check_for_went *********************************/ int swe_check_for_went() { int frames = 0; int wstatus; wstatus = render_check_for_went(&frames); if (wstatus < 0) { // ERROR! not clear what to do ... dprintf("ERROR in render_check_for_went!\n"); } else if (wstatus == 1) { //if (frames > 1) dprintf("Drop %d\n", frames); } return wstatus; } /******************************wincheck() ******************************* * * checks if fixation window on (window_on = 1) for LED control */ int wincheck() { dprintf("wincheck\n"); window_on = 1; return 0; } /***************************** alloff() ********************************** * * both fixation point and window off, for clean state list */ int alloff() { render_onoff(&f_fpHandle, HANDLE_OFF, ONOFF_NO_FRAME); render_onoff(&f_ff2dHandle, HANDLE_OFF, ONOFF_NO_FRAME); render_frame(0); wd_pos(WIND0, (long)9999, (long)9999);// disappear the window on eyd display window_on = 0; return 0; } /***************************** showdot() ********************************* * * shows (reshows) dot field if necessary */ int showdot() { if (JOY_BUT_0 & dina) dprintf("button 0 down\n"); if ((JOY_BUT_0 & dina) || f_forceDotsOn) /* on-off button down */ { render_update(f_ff2dHandle, &f_ff2dStruct, sizeof(f_ff2dStruct), HANDLE_ON); render_frame(0); } else /* button up - want no stim */ { dotoff(); } return 0; } /**************************** getjoy() *********************************** * * gets analog joystick values from A/D channels 6 & 7 */ int getjoy() { float fx, fy; float fxn, fyn; // normalized fx = (float)(addh); fy = (float)(addv); if (f_joyDebug==1) { dprintf("%d addxy: %d %d joyxy: %d %d eye %d %d\n", getClockTime(), addh, addv, joyh, joyv, eyeh, eyev); } // assume the joystick AD values run from xmin-xmax and ymin-ymax. // Scale fx and fy against this and shift to [-0.5, 0.5] fxn = (fx - f_joyXMin)/(f_joyXMax-f_joyXMin) - 0.5; fyn = (fy - f_joyYMin)/(f_joyYMax-f_joyYMin) - 0.5; // now scale these by the x and y resolutions joy_x = fxn * x_resolution; joy_y = -1.0 * fyn * y_resolution; if (f_joyDebug == 2) dprintf("t %d dina %x\n", getClockTime(), dina); return 0; } /*int report(void) { dprintf("eyeflag=%d\n", eyeflag); return 0; }*/ VLIST joy_vl[] = { "xmin(ADC)", &f_joyXMin, NP, NP, 0, ME_DEC, "xmax(ADC)", &f_joyXMax, NP, NP, 0, ME_DEC, "ymin(ADC)", &f_joyYMin, NP, NP, 0, ME_DEC, "ymax(ADC)", &f_joyYMax, NP, NP, 0, ME_DEC, "debug(0/1)", &f_joyDebug, NP, NP, 0, ME_DEC, "forceDotOn", &f_forceDotsOn, NP, NP, 0, ME_DEC, NS, }; MENU joy_me = { "joy_params", &joy_vl, NP, NP, 0, NP, NS, }; char hm_joy[] = ""; VLIST state_vl[] = { "fp_x", &fixx, NP, NP, 0, ME_DEC, "fp_y", &fixy, NP, NP, 0, ME_DEC, "fp_size", &fpsiz, NP, NP, 0, ME_DEC, "duration", &msec, NP, NP, 0, ME_DEC, "bg(0-255)", &bg, NP, NP, 0, ME_DEC, "CRT_dist(mm)", &stimz, NP, NP, 0, ME_DEC, "radius(1/10deg)?", &radius, NP, NP, 0, ME_DEC, "density?(100*d/d^2)",&density, NP, NP, 0, ME_DEC, "coherence(0-1000)", &coh, NP, NP, 0, ME_DEC, "speed(deg/sec) ", &speed, NP, NP, 0, ME_DEC, "linear?(0,1)", &islinear, NP, NP, 0, ME_DEC, "width(1/10deg)", &width, NP, NP, 0, ME_DEC, "dot_R", &bar_R, NP, NP, 0, ME_DEC, "dot_G", &bar_G, NP, NP, 0, ME_DEC, "dot_B", &bar_B, NP, NP, 0, ME_DEC, "background", &bg, NP, NP, 0, ME_DEC, "fix_led", &fix_led, NP, NP, 0, ME_DEC, "trials", &ntrials, NP, NP, 0, ME_DEC, "local_ip_addr", local_addr, NP, NP, 0, ME_STR, "remote_ip_addr", remote_addr, NP, NP, 0, ME_STR, "remote_port", &remote_port, NP, NP, 0, ME_DEC, NS, }; VLIST fp_vl[] = { "fixpt_R", &fpred, NP, NP, 0, ME_DEC, "fixpt_G", &fpgreen, NP, NP, 0, ME_DEC, "fixpt_B", &fpblue, NP, NP, 0, ME_DEC, "background", &bg, NP, NP, 0, ME_DEC, "dot_R", &bar_R, NP, NP, 0, ME_DEC, "dot_G", &bar_G, NP, NP, 0, ME_DEC, "dot_B", &bar_B, NP, NP, 0, ME_DEC, NS, }; char hm_fp[] = ""; // "stim_params", &stim_me, NP, NP, 0, ME_SUBMENU, /* * Help message. */ char hm_sv_vl[] = ""; MENU umenus[] = { {"state_vars", &state_vl, NP, NP, 0, NP, hm_sv_vl}, {"separator", NP}, {"fp_vars", &fp_vl, NP, NP, 0, NP, hm_fp}, {"joy vars", &joy_vl, NP, NP, 0, NP, hm_joy}, {NS}, }; #define TESTF(a) ((a)*100) /* * User-supplied noun table. */ NOUN unouns[] = { "", }; %% id 10 restart rinitf main_set { status ON begin first: code STARTCD rl 0 to sendping sendping: rl 5 do render_send_ping() to waitping waitping: rl 10 time 100 to checkping checkping: rl 15 to reset on 1 % render_check_for_ping to pauseping pauseping: rl 20 time 1000 to sendping reset: rl 25 do render_reset() to initial initial: do initial() to pause1 pause1: to pause2 on +PSTOP & softswitch to initial on -PSTOP & softswitch pause2: code PAUSECD to confall on -PSTOP & softswitch confall: do my_conf_all() to loop on 1 % my_check_for_handles loop: time 100 to pause3 pause3: to pause4 on +PSTOP & softswitch to setbg2 on -PSTOP & softswitch pause4: code PAUSECD to setbg2 on -PSTOP & softswitch setbg2: do setbg() to isi isi: time 1000 to fpon fpon: code FIXASK do fpask() /* fpask() sends a MSG_FRAME and returns */ to winon on 1 % swe_check_for_went winon: code FPONCD do winon(20,20) time 20 to grace grace: time 4000 to fixtim on -WD0_XY & eyeflag to off off: do alloff() to loop on 1 % swe_check_for_went fixtim: time 150 rl 20 do wincheck() to noise on +WD0_XY & eyeflag to dncnt noise: do alloff() to loop on 1 % swe_check_for_went dncnt: do ff2d_update(); to bad on +WD0_XY & eyeflag to fpoff on 0 ? framecnt to showdot showdot: do showdot() to dncnt on 1 % swe_check_for_went fpoff: do alloff() rl 10 to good on 1 % swe_check_for_went bad: do alloff() to punish on 1 % swe_check_for_went punish: code BREAKFIXCD do trcount(FALSE) to beep beep: do dio_on(BEEP) time 1000 to bpoff bpoff: do dio_off(BEEP) to timout timout: time 1000 to trlend good: do trcount(TRUE) to reward reward: code REWCD do dio_on(REW) time 50 to rewoff rewoff: do dio_off(REW) to trlend trlend: to blkdone on 0 ? remain to loop blkdone: rl 0 to pause1 on 0 < remain abort list: initial } /* * Auxiliary set for updating joystick location variables. */ joy_set { status ON begin no_op: to getjoy getjoy: time 5 do getjoy() to getjoy2 getjoy2: /* identical to state getjoy; needed to avoid recursion */ time 5 do getjoy() to getjoy } /* * Auxiliary set for LED control * used for fixation monitoring */ fixled_set{ status ON begin led_control: to led_off on 1 = fix_led led_on: do dio_on(FIX_LED) to led_off on 0 = window_on led_off: do dio_off(FIX_LED) to led_on on 1 = window_on }
D
/** * D header file for C99. * * Copyright: Copyright Sean Kelly 2005 - 2009. * License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. * Authors: Sean Kelly * Standards: ISO/IEC 9899:1999 (E) */ /* Copyright Sean Kelly 2005 - 2009. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE or copy at * http://www.boost.org/LICENSE_1_0.txt) */ module core.stdc.time; private import core.stdc.config; private import core.stdc.stddef; // for size_t extern (C): @trusted: // There are only a few functions here that use unsafe C strings. nothrow: version( Windows ) { struct tm { int tm_sec; // seconds after the minute - [0, 60] int tm_min; // minutes after the hour - [0, 59] int tm_hour; // hours since midnight - [0, 23] int tm_mday; // day of the month - [1, 31] int tm_mon; // months since January - [0, 11] int tm_year; // years since 1900 int tm_wday; // days since Sunday - [0, 6] int tm_yday; // days since January 1 - [0, 365] int tm_isdst; // Daylight Saving Time flag } } else { struct tm { int tm_sec; // seconds after the minute [0-60] int tm_min; // minutes after the hour [0-59] int tm_hour; // hours since midnight [0-23] int tm_mday; // day of the month [1-31] int tm_mon; // months since January [0-11] int tm_year; // years since 1900 int tm_wday; // days since Sunday [0-6] int tm_yday; // days since January 1 [0-365] int tm_isdst; // Daylight Savings Time flag c_long tm_gmtoff; // offset from CUT in seconds char* tm_zone; // timezone abbreviation } } alias c_long time_t; alias c_long clock_t; version( Windows ) { enum clock_t CLOCKS_PER_SEC = 1000; } else version( OSX ) { enum clock_t CLOCKS_PER_SEC = 100; } else version( FreeBSD ) { enum clock_t CLOCKS_PER_SEC = 128; } else version (linux) { enum clock_t CLOCKS_PER_SEC = 1000000; } clock_t clock(); double difftime(time_t time1, time_t time0); time_t mktime(tm* timeptr); time_t time(time_t* timer); char* asctime(in tm* timeptr); char* ctime(in time_t* timer); tm* gmtime(in time_t* timer); tm* localtime(in time_t* timer); @system size_t strftime(char* s, size_t maxsize, in char* format, in tm* timeptr); version( Windows ) { void tzset(); // non-standard void _tzset(); // non-standard @system char* _strdate(char* s); // non-standard @system char* _strtime(char* s); // non-standard extern __gshared const(char)*[2] tzname; // non-standard } else version( OSX ) { void tzset(); // non-standard extern __gshared const(char)*[2] tzname; // non-standard } else version( linux ) { void tzset(); // non-standard extern __gshared const(char)*[2] tzname; // non-standard } else version( FreeBSD ) { void tzset(); // non-standard extern __gshared const(char)*[2] tzname; // non-standard }
D
module android.java.javax.net.ssl.SSLSocket_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import6 = android.java.java.nio.channels.SocketChannel_d_interface; import import4 = android.java.java.net.SocketAddress_d_interface; import import3 = android.java.java.util.function_.BiFunction_d_interface; import import10 = android.java.java.lang.Class_d_interface; import import2 = android.java.javax.net.ssl.SSLParameters_d_interface; import import8 = android.java.java.io.OutputStream_d_interface; import import7 = android.java.java.io.InputStream_d_interface; import import1 = android.java.javax.net.ssl.HandshakeCompletedListener_d_interface; import import0 = android.java.javax.net.ssl.SSLSession_d_interface; import import5 = android.java.java.net.InetAddress_d_interface; import import9 = android.java.java.net.SocketImplFactory_d_interface; final class SSLSocket : IJavaObject { static immutable string[] _d_canCastTo = [ ]; @Import string[] getSupportedCipherSuites(); @Import string[] getEnabledCipherSuites(); @Import void setEnabledCipherSuites(string[]); @Import string[] getSupportedProtocols(); @Import string[] getEnabledProtocols(); @Import void setEnabledProtocols(string[]); @Import import0.SSLSession getSession(); @Import import0.SSLSession getHandshakeSession(); @Import void addHandshakeCompletedListener(import1.HandshakeCompletedListener); @Import void removeHandshakeCompletedListener(import1.HandshakeCompletedListener); @Import void startHandshake(); @Import void setUseClientMode(bool); @Import bool getUseClientMode(); @Import void setNeedClientAuth(bool); @Import bool getNeedClientAuth(); @Import void setWantClientAuth(bool); @Import bool getWantClientAuth(); @Import void setEnableSessionCreation(bool); @Import bool getEnableSessionCreation(); @Import import2.SSLParameters getSSLParameters(); @Import void setSSLParameters(import2.SSLParameters); @Import string getApplicationProtocol(); @Import string getHandshakeApplicationProtocol(); @Import void setHandshakeApplicationProtocolSelector(import3.BiFunction); @Import import3.BiFunction getHandshakeApplicationProtocolSelector(); @Import @JavaName("toString") string toString_(); override string toString() { return arsd.jni.javaObjectToString(this); } @Import void connect(import4.SocketAddress); @Import void connect(import4.SocketAddress, int); @Import void bind(import4.SocketAddress); @Import import5.InetAddress getInetAddress(); @Import import5.InetAddress getLocalAddress(); @Import int getPort(); @Import int getLocalPort(); @Import import4.SocketAddress getRemoteSocketAddress(); @Import import4.SocketAddress getLocalSocketAddress(); @Import import6.SocketChannel getChannel(); @Import import7.InputStream getInputStream(); @Import import8.OutputStream getOutputStream(); @Import void setTcpNoDelay(bool); @Import bool getTcpNoDelay(); @Import void setSoLinger(bool, int); @Import int getSoLinger(); @Import void sendUrgentData(int); @Import void setOOBInline(bool); @Import bool getOOBInline(); @Import void setSoTimeout(int); @Import int getSoTimeout(); @Import void setSendBufferSize(int); @Import int getSendBufferSize(); @Import void setReceiveBufferSize(int); @Import int getReceiveBufferSize(); @Import void setKeepAlive(bool); @Import bool getKeepAlive(); @Import void setTrafficClass(int); @Import int getTrafficClass(); @Import void setReuseAddress(bool); @Import bool getReuseAddress(); @Import void close(); @Import void shutdownInput(); @Import void shutdownOutput(); @Import bool isConnected(); @Import bool isBound(); @Import bool isClosed(); @Import bool isInputShutdown(); @Import bool isOutputShutdown(); @Import static void setSocketImplFactory(import9.SocketImplFactory); @Import void setPerformancePreferences(int, int, int); @Import import10.Class getClass(); @Import int hashCode(); @Import bool equals(IJavaObject); @Import void notify(); @Import void notifyAll(); @Import void wait(long); @Import void wait(long, int); @Import void wait(); mixin IJavaObjectImplementation!(false); public static immutable string _javaParameterString = "Ljavax/net/ssl/SSLSocket;"; }
D
//******************************************************************************************* // AddOn Prototypen instance APrototype (Npc_Default) { //-------- primary data -------- name = "APrototype"; guild = GIL_NONE; level = 10; voice = 11;//4 id = 3999; //-------- abilities -------- attribute[ATR_STRENGTH] = 10; attribute[ATR_DEXTERITY] = 7; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 18; attribute[ATR_HITPOINTS] = 18; //-------- visuals -------- // animations Mdl_SetVisual (self,"HUMANS.MDS"); // body mesh, head mesh, hairmesh, face-tex, hair-tex, skin Mdl_SetVisualBody (self,"hum_body_Naked0",DEFAULT,DEFAULT,"Hum_Head_Bald", DEFAULT, DEFAULT,-1); //Npc_LearnFightTalent (self,TAL_1H_SWORD2); Npc_SetAttitude (self,ATT_HOSTILE); //-------- inventory -------- //CreateInvItem (self, ItMw1hSword01); //CreateInvItem (self, ItMw1hAxe01); //CreateInvItem (self, ItMwPoker01); // FAI fight_tactic = FAI_HUMAN_COWARD; //-------------Daily Routine------------- daily_routine = Rtn_start_3999; //start_aistate = ZS_Stand; }; FUNC VOID Rtn_start_3999 () { TA_Stand ( 0, 0, 12, 0, "TEST1"); TA_Stand ( 12, 0, 0, 0, "TEST4"); }; instance BPrototype (Npc_Default) { //-------- primary data -------- name = "BPrototype"; guild = GIL_NONE; level = 10; voice = 11;//4 id = 3998; //-------- abilities -------- attribute[ATR_STRENGTH] = 10; attribute[ATR_DEXTERITY] = 7; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 18; attribute[ATR_HITPOINTS] = 18; //-------- visuals -------- // animations Mdl_SetVisual (self,"HUMANS.MDS"); // body mesh, head mesh, hairmesh, face-tex, hair-tex, skin Mdl_SetVisualBody (self,"hum_body_Naked0",DEFAULT,DEFAULT,"Hum_Head_Bald", DEFAULT, DEFAULT,-1); //Npc_LearnFightTalent (self,TAL_1H_SWORD2); Npc_SetAttitude (self,ATT_HOSTILE); //-------- inventory -------- //CreateInvItem (self, ItMw1hSword01); //CreateInvItem (self, ItMw1hAxe01); //CreateInvItem (self, ItMwPoker01); // FAI fight_tactic = FAI_HUMAN_COWARD; //-------------Daily Routine------------- daily_routine = Rtn_start_30002; //start_aistate = ZS_Stand; }; FUNC VOID Rtn_start_30002 () { TA_Stand ( 0, 0, 12, 0, "TEST1"); TA_Stand ( 12, 0, 0, 0, "TEST4"); };
D
/******************************************************************************* Yaml parsing wrapper method Copyright: Copyright (c) 2018 sociomantic labs GmbH. All rights reserved. License: Boost Software License Version 1.0. See LICENSE.txt for details. *******************************************************************************/ module lib.yaml.parse; /** YAML parsing helper for usage in pipeline Params: content = raw data that is expected to contain UTF-8 YAML text **/ public auto parseYAML ( const void[] content ) { import std.utf; import dyaml.loader; auto s = cast(char[]) content.dup; validate(s); return Loader.fromString(s).load(); }
D
instance DIA_Addon_TAL_BDT_1_EXIT(C_Info) { nr = 999; condition = DIA_Addon_TAL_BDT_1_EXIT_Condition; information = DIA_Addon_TAL_BDT_1_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_Addon_TAL_BDT_1_EXIT_Condition() { return TRUE; }; func void DIA_Addon_TAL_BDT_1_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_Addon_TAL_BDT_1_Hi(C_Info) { nr = 2; condition = DIA_Addon_TAL_BDT_1_Hi_Condition; information = DIA_Addon_TAL_BDT_1_Hi_Info; permanent = TRUE; description = "Как дела?"; }; func int DIA_Addon_TAL_BDT_1_Hi_Condition() { return TRUE; }; func void DIA_Addon_TAL_BDT_1_Hi_Info() { AI_Output(other,self,"DIA_Addon_TAL_BDT_1_Hi_15_00"); //Как дела? AI_Output(self,other,"DIA_Addon_TAL_BDT_1_Hi_01_01"); //Я жду, пока им не понадобится кто-нибудь новый и не придет моя очередь. AI_Output(self,other,"DIA_Addon_TAL_BDT_1_Hi_01_02"); //Из всех людей, кто снаружи, только Франко мог войти сюда. if(Npc_IsDead(Franco)) { AI_Output(self,other,"DIA_Addon_TAL_BDT_1_Hi_01_03"); //А теперь Франко мертв, и, может быть, у меня появится шанс. }; }; instance DIA_Addon_TAL_BDT_1_Lager(C_Info) { nr = 3; condition = DIA_Addon_TAL_BDT_1_Lager_Condition; information = DIA_Addon_TAL_BDT_1_Lager_Info; permanent = TRUE; description = "Можешь рассказать мне что-нибудь о лагере?"; }; func int DIA_Addon_TAL_BDT_1_Lager_Condition() { return TRUE; }; func void DIA_Addon_TAL_BDT_1_Lager_Info() { AI_Output(other,self,"DIA_Addon_TAL_BDT_1_Lager_15_00"); //Можешь рассказать мне что-нибудь о лагере? AI_Output(self,other,"DIA_Addon_TAL_BDT_1_Lager_01_01"); //Смотри, с кем связываешься! Если ты начнешь драться без причины, они все очень быстро набросятся на тебя! AI_Output(self,other,"DIA_Addon_TAL_BDT_1_Lager_01_02"); //Большинство из них чересчур пекутся о своем золоте и некоторые внимательно следят за другими. }; instance DIA_Addon_TAL_BDT_1_Raven(C_Info) { nr = 4; condition = DIA_Addon_TAL_BDT_1_Raven_Condition; information = DIA_Addon_TAL_BDT_1_Raven_Info; permanent = TRUE; description = "Что тебе известно про Ворона?"; }; func int DIA_Addon_TAL_BDT_1_Raven_Condition() { return TRUE; }; func void DIA_Addon_TAL_BDT_1_Raven_Info() { AI_Output(other,self,"DIA_Addon_TAL_BDT_1_Raven_15_00"); //Что тебе известно про Ворона? AI_Output(self,other,"DIA_Addon_TAL_BDT_1_Raven_01_01"); //Этот человек первым оказался здесь со своими ребятами. if(RavenIsDead == FALSE) { AI_Output(self,other,"DIA_Addon_TAL_BDT_1_Raven_01_02"); //Он - командир лагеря. Я тебе советую не крутиться вокруг него. }; AI_Output(self,other,"DIA_Addon_TAL_BDT_1_Raven_01_03"); //Однажды им потребовались пять новых бойцов, потому что он сорвал свою злость на своих же людях. }; func void B_AssignAmbientInfos_Addon_TAL_BDT_1(var C_Npc slf) { DIA_Addon_TAL_BDT_1_EXIT.npc = Hlp_GetInstanceID(slf); DIA_Addon_TAL_BDT_1_Hi.npc = Hlp_GetInstanceID(slf); DIA_Addon_TAL_BDT_1_Lager.npc = Hlp_GetInstanceID(slf); DIA_Addon_TAL_BDT_1_Raven.npc = Hlp_GetInstanceID(slf); };
D
module game.freecam; import game.gameobject, game.game; import std.math; class FreeCam : IGameObject, IControllable { private: SmartPtr!IRenderProxy m_RenderProxy; Position m_Position; Quaternion m_Rotation; mat4 m_ViewMatrix; vec3 m_Velocity; float m_Rotate; float m_RotateAroundCenter = 0.0f; float m_RotateAroundCenterSpeed = 3.0f; float m_RotateAroundCenterPos = 0.0f; float m_RotateAroundCenterOffset = 20.0f; // TODO: Fix units for speeds // Rotation speed in degree per second float m_RotationSpeed = 0.45; // Movement speed in meters per second float m_MovementSpeed = 0.10; // Factor by which the booster increases the normal velocity (increased by // the booster() function) float m_BoostFactor = 1.0; mixin DummyMessageCode; public: this(IRenderProxy renderProxy){ m_RenderProxy = renderProxy; m_Position = Position(vec3(0,-0.001f,20)); m_Rotation = Quaternion(vec3(1,0,0),15.0f); m_Velocity = vec3(0.0f,0.0f,0.0f); m_Rotate = 0.0f; } ~this() { } override bool syncOverNetwork() const { return false; } override IRenderProxy renderProxy() { return m_RenderProxy; } override EntityId entityId() const { return cast(EntityId)1; } override Position position() const { return m_Position; } override void position(Position pos){ m_Position = pos; } override Quaternion rotation() const { return m_Rotation; } override mat4 transformation(Position origin) const { if(m_RotateAroundCenter <= 0.0f) return m_Rotation.toMat4() * TranslationMatrix(m_Position - origin); else return m_ViewMatrix.Inverse() * TranslationMatrix(m_Position - origin); } override IGameObject father() const { return null; } override AlignedBox boundingBox() const { return AlignedBox(Position(vec3(-1,-1,-1)),Position(vec3(1,1,1))); } override bool hasMoved() const { return true; } override void update(float timeDiff){ if(m_RotateAroundCenter <= 0.0f){ vec4 dir = vec4(1.0f,0.0f,0.0f,1.0f); dir = m_Rotation.toMat4() * dir; if(m_Velocity.x != 0.0f) m_Position = m_Position + vec3(dir * m_Velocity.x * timeDiff) * m_BoostFactor; dir = vec4(0.0f,0.0f,1.0f,1.0f); dir = m_Rotation.toMat4() * dir; if(m_Velocity.y != 0.0f) m_Position = m_Position + vec3(dir * m_Velocity.y * timeDiff) * m_BoostFactor; if(m_Rotate != 0.0f){ m_Rotation = Quaternion(vec3(0.0f,0.0f,1.0f),m_Rotate * timeDiff) * m_Rotation; } } else { m_RotateAroundCenterPos += m_RotateAroundCenterSpeed * timeDiff; vec3 pos = vec3(sin(m_RotateAroundCenterPos) * m_RotateAroundCenter, m_RotateAroundCenterOffset, cos(m_RotateAroundCenterPos) * m_RotateAroundCenter); m_Position = Position(pos); auto tempPos = vec4(-pos); auto tempUp = vec4(0,1,0,1); m_ViewMatrix = mat4.LookDirMatrix(tempPos, tempUp); } } void rotateAroundCenter(float radius, float speed, float offset){ m_RotateAroundCenter = radius; m_RotateAroundCenterSpeed = speed; m_RotateAroundCenterOffset = offset; } // // Controller stuff // void look(float screenDeltaX, float screenDeltaY){ auto qy = Quaternion(vec3(1, 0, 0), screenDeltaY); auto qx = Quaternion(vec3(0, 1, 0), screenDeltaX); m_Rotation = qy * m_Rotation; m_Rotation = qx * m_Rotation; } void moveForward(bool pressed){ auto dir = vec3(0, -1, 0) * m_MovementSpeed; m_Velocity += (pressed) ? dir : -dir; } void moveBackward(bool pressed){ auto dir = vec3(0, 1, 0) * m_MovementSpeed; m_Velocity += (pressed) ? dir : -dir; } void moveLeft(bool pressed){ auto dir = vec3(-1, 0, 0) * m_MovementSpeed; m_Velocity += (pressed) ? dir : -dir; } void moveRight(bool pressed){ auto dir = vec3(1, 0, 0) * m_MovementSpeed; m_Velocity += (pressed) ? dir : -dir; } void moveUp(bool pressed){ auto dir = vec3(0, 0, 1) * m_MovementSpeed; m_Velocity += (pressed) ? dir : -dir; } void moveDown(bool pressed){ auto dir = vec3(0, 0, -1) * m_MovementSpeed; m_Velocity += (pressed) ? dir : -dir; } void rotateLeft(bool pressed){ m_Rotate -= (pressed) ? m_RotationSpeed : -m_RotationSpeed; } void rotateRight(bool pressed){ m_Rotate += (pressed) ? m_RotationSpeed : -m_RotationSpeed; } void booster(bool pressed){ if (pressed) m_BoostFactor += 20; else m_BoostFactor -= 20; } void fire(ubyte weapon, bool pressed){ // Nothing to do right now } void scoreBoard(bool pressed){ // Nothing to do right now } void select(){ // Nothing to do right now } override rcstring inspect(){ return format("<%s id: %d pos: (cell: %s, pos: %s) vel: %s, rot: (axis: %s, %s, %s, angle: %s)>", this.classinfo.name, this.entityId, m_Position.cell.f, m_Position.relPos.f, m_Velocity.f, m_Rotation.x, m_Rotation.y, m_Rotation.z, m_Rotation.angle); } override void debugDraw(shared(IRenderer) renderer){ // Nothing to do right now } // // Do nothing stuff // TODO: The camera should not be a game object. It should be attached to the // player (still todo, too). // override void postSpawn(){ } override void onDeleteRequest(){ } override void toggleCollMode(){ } override void serialize(ISerializer ser, bool fullSerialization){ } override void resetChangedFlags(){ } }
D
instance STRF_1131_Addon_Sklave (Npc_Default) { // ------ NSC ------ name = NAME_Addon_Sklave; guild = GIL_STRF; id = 1131; voice = 3; flags = 0; npctype = NPCTYPE_MAIN; //aivars aivar[AIV_NoFightParker] = TRUE; aivar[AIV_IgnoresArmor] = TRUE; // ------ Attribute ------ B_SetAttributesToChapter (self, 2); // ------ Kampf-Taktik ------ fight_tactic = FAI_HUMAN_COWARD; // ------ Inventory ------ B_CreateAmbientInv (self); // ------ visuals ------ B_SetNpcVisual (self, MALE, "Hum_Head_Psionic", Face_N_Weak_Asghan, BodyTex_N, ITAR_Prisoner); Mdl_SetModelFatness (self, -1); Mdl_ApplyOverlayMds (self, "Humans_Tired.mds"); // ------ NSC-relevante Talente vergeben ------ B_GiveNpcTalents (self); // ------ Kampf-Talente ------ B_SetFightSkills (self, 60); // ------ TA anmelden ------ daily_routine = Rtn_Start_1131; }; FUNC VOID Rtn_Start_1131 () { TA_Stand_WP (08,00,23,00,"ADW_MINE_SKLAVENTOD_01"); TA_Stand_WP (23,00,08,00,"ADW_MINE_SKLAVENTOD_01"); };
D
/** * All storage implementations * * Copyright: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. * Authors: $(LINK2 http://cattermole.co.nz, Richard Andrew Cattermole) */ module std.experimental.graphic.image.storage; public import std.experimental.graphic.image.storage.base; public import std.experimental.graphic.image.storage.flat;
D
/* * Copyright (c) 2004-2006 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', 'DerelictGLU', 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.glu; private { import derelict.opengl.gltypes; import derelict.util.loader; } private void load(SharedLib lib) { // bindFunc(gluBuild1DMipmapLevels)("gluBuild1DMipmapLevels", lib); bindFunc(gluBuild1DMipmaps)("gluBuild1DMipmaps", lib); // bindFunc(gluBuild2DMipmapLevels)("gluBuild2DMipmapLevels", lib); bindFunc(gluBuild2DMipmaps)("gluBuild2DMipmaps", lib); // bindFunc(gluBuild3DMipmapLevels)("gluBuild3DMipmapLevels", lib); // bindFunc(gluBuild3DMipmaps)("gluBuild3DMipmaps", lib); // bindFunc(gluCheckExtension)("gluCheckExtension", lib); bindFunc(gluErrorString)("gluErrorString", lib); bindFunc(gluGetString)("gluGetString", lib); bindFunc(gluCylinder)("gluCylinder", lib); bindFunc(gluDisk)("gluDisk", lib); bindFunc(gluPartialDisk)("gluPartialDisk", lib); bindFunc(gluSphere)("gluSphere", lib); bindFunc(gluBeginCurve)("gluBeginCurve", lib); bindFunc(gluBeginPolygon)("gluBeginPolygon", lib); bindFunc(gluBeginSurface)("gluBeginSurface", lib); bindFunc(gluBeginTrim)("gluBeginTrim", lib); bindFunc(gluEndCurve)("gluEndCurve", lib); bindFunc(gluEndPolygon)("gluEndPolygon", lib); bindFunc(gluEndSurface)("gluEndSurface", lib); bindFunc(gluEndTrim)("gluEndTrim", lib); bindFunc(gluDeleteNurbsRenderer)("gluDeleteNurbsRenderer", lib); bindFunc(gluDeleteQuadric)("gluDeleteQuadric", lib); bindFunc(gluDeleteTess)("gluDeleteTess", lib); bindFunc(gluGetNurbsProperty)("gluGetNurbsProperty", lib); bindFunc(gluGetTessProperty)("gluGetTessProperty", lib); bindFunc(gluLoadSamplingMatrices)("gluLoadSamplingMatrices", lib); bindFunc(gluNewNurbsRenderer)("gluNewNurbsRenderer", lib); bindFunc(gluNewQuadric)("gluNewQuadric", lib); bindFunc(gluNewTess)("gluNewTess", lib); bindFunc(gluNextContour)("gluNextContour", lib); bindFunc(gluNurbsCallback)("gluNurbsCallback", lib); // bindFunc(gluNurbsCallbackData)("gluNurbsCallbackData", lib); // bindFunc(gluNurbsCallbackDataEXT)("gluNurbsCallbackDataEXT", lib); bindFunc(gluNurbsCurve)("gluNurbsCurve", lib); bindFunc(gluNurbsProperty)("gluNurbsProperty", lib); bindFunc(gluNurbsSurface)("gluNurbsSurface", lib); bindFunc(gluPwlCurve)("gluPwlCurve", lib); bindFunc(gluQuadricCallback)("gluQuadricCallback", lib); bindFunc(gluQuadricDrawStyle)("gluQuadricDrawStyle", lib); bindFunc(gluQuadricNormals)("gluQuadricNormals", lib); bindFunc(gluQuadricOrientation)("gluQuadricOrientation", lib); bindFunc(gluQuadricTexture)("gluQuadricTexture", lib); bindFunc(gluTessBeginContour)("gluTessBeginContour", lib); bindFunc(gluTessBeginPolygon)("gluTessBeginPolygon", lib); bindFunc(gluTessCallback)("gluTessCallback", lib); bindFunc(gluTessEndContour)("gluTessEndContour", lib); bindFunc(gluTessEndPolygon)("gluTessEndPolygon", lib); bindFunc(gluTessNormal)("gluTessNormal", lib); bindFunc(gluTessProperty)("gluTessProperty", lib); bindFunc(gluTessVertex)("gluTessVertex", lib); bindFunc(gluLookAt)("gluLookAt", lib); bindFunc(gluOrtho2D)("gluOrtho2D", lib); bindFunc(gluPerspective)("gluPerspective", lib); bindFunc(gluPickMatrix)("gluPickMatrix", lib); bindFunc(gluProject)("gluProject", lib); bindFunc(gluScaleImage)("gluScaleImage", lib); bindFunc(gluUnProject)("gluUnProject", lib); // bindFunc(gluUnProject4)("gluUnProject4", lib); } GenericLoader DerelictGLU; static this() { DerelictGLU.setup( "glu32.dll", "libGLU.so,libGLU.so.1", "", &load ); } //============================================================================== // CONSTANTS //============================================================================== enum : GLenum { // StringName GLU_VERSION = 100800, GLU_EXTENSIONS = 100801, // ErrorCode GLU_INVALID_ENUM = 100900, GLU_INVALID_VALUE = 100901, GLU_OUT_OF_MEMORY = 100902, GLU_INVALID_OPERATION = 100904, // NurbsDisplay GLU_OUTLINE_POLYGON = 100240, GLU_OUTLINE_PATCH = 100241, // NurbsCallback GLU_NURBS_ERROR = 100103, GLU_ERROR = 100103, GLU_NURBS_BEGIN = 100164, GLU_NURBS_BEGIN_EXT = 100164, GLU_NURBS_VERTEX = 100165, GLU_NURBS_VERTEX_EXT = 100165, GLU_NURBS_NORMAL = 100166, GLU_NURBS_NORMAL_EXT = 100166, GLU_NURBS_COLOR = 100167, GLU_NURBS_COLOR_EXT = 100167, GLU_NURBS_TEXTURE_COORD = 100168, GLU_NURBS_TEX_COORD_EXT = 100168, GLU_NURBS_END = 100169, GLU_NURBS_END_EXT = 100169, GLU_NURBS_BEGIN_DATA = 100170, GLU_NURBS_BEGIN_DATA_EXT = 100170, GLU_NURBS_VERTEX_DATA = 100171, GLU_NURBS_VERTEX_DATA_EXT = 100171, GLU_NURBS_NORMAL_DATA = 100172, GLU_NURBS_NORMAL_DATA_EXT = 100172, GLU_NURBS_COLOR_DATA = 100173, GLU_NURBS_COLOR_DATA_EXT = 100173, GLU_NURBS_TEXTURE_COORD_DATA = 100174, GLU_NURBS_TEX_COORD_DATA_EXT = 100174, GLU_NURBS_END_DATA = 100175, GLU_NURBS_END_DATA_EXT = 100175, // NurbsError GLU_NURBS_ERROR1 = 100251, GLU_NURBS_ERROR2 = 100252, GLU_NURBS_ERROR3 = 100253, GLU_NURBS_ERROR4 = 100254, GLU_NURBS_ERROR5 = 100255, GLU_NURBS_ERROR6 = 100256, GLU_NURBS_ERROR7 = 100257, GLU_NURBS_ERROR8 = 100258, GLU_NURBS_ERROR9 = 100259, GLU_NURBS_ERROR10 = 100260, GLU_NURBS_ERROR11 = 100261, GLU_NURBS_ERROR12 = 100262, GLU_NURBS_ERROR13 = 100263, GLU_NURBS_ERROR14 = 100264, GLU_NURBS_ERROR15 = 100265, GLU_NURBS_ERROR16 = 100266, GLU_NURBS_ERROR17 = 100267, GLU_NURBS_ERROR18 = 100268, GLU_NURBS_ERROR19 = 100269, GLU_NURBS_ERROR20 = 100270, GLU_NURBS_ERROR21 = 100271, GLU_NURBS_ERROR22 = 100272, GLU_NURBS_ERROR23 = 100273, GLU_NURBS_ERROR24 = 100274, GLU_NURBS_ERROR25 = 100275, GLU_NURBS_ERROR26 = 100276, GLU_NURBS_ERROR27 = 100277, GLU_NURBS_ERROR28 = 100278, GLU_NURBS_ERROR29 = 100279, GLU_NURBS_ERROR30 = 100280, GLU_NURBS_ERROR31 = 100281, GLU_NURBS_ERROR32 = 100282, GLU_NURBS_ERROR33 = 100283, GLU_NURBS_ERROR34 = 100284, GLU_NURBS_ERROR35 = 100285, GLU_NURBS_ERROR36 = 100286, GLU_NURBS_ERROR37 = 100287, // NurbsProperty GLU_AUTO_LOAD_MATRIX = 100200, GLU_CULLING = 100201, GLU_SAMPLING_TOLERANCE = 100203, GLU_DISPLAY_MODE = 100204, GLU_PARAMETRIC_TOLERANCE = 100202, GLU_SAMPLING_METHOD = 100205, GLU_U_STEP = 100206, GLU_V_STEP = 100207, GLU_NURBS_MODE = 100160, GLU_NURBS_MODE_EXT = 100160, GLU_NURBS_TESSELLATOR = 100161, GLU_NURBS_TESSELLATOR_EXT = 100161, GLU_NURBS_RENDERER = 100162, GLU_NURBS_RENDERER_EXT = 100162, // NurbsSampling GLU_OBJECT_PARAMETRIC_ERROR = 100208, GLU_OBJECT_PARAMETRIC_ERROR_EXT = 100208, GLU_OBJECT_PATH_LENGTH = 100209, GLU_OBJECT_PATH_LENGTH_EXT = 100209, GLU_PATH_LENGTH = 100215, GLU_PARAMETRIC_ERROR = 100216, GLU_DOMAIN_DISTANCE = 100217, // NurbsTrim GLU_MAP1_TRIM_2 = 100210, GLU_MAP2_TRIM_3 = 100211, // QuadricDrawStyle GLU_POINT = 100010, GLU_LINE = 100011, GLU_FILL = 100012, GLU_SILHOUETTE = 100013, // QuadricNormal GLU_SMOOTH = 100000, GLU_FLAT = 100001, GLU_NONE = 100002, // QuadricOrientation GLU_OUTSITE = 100020, GLU_INSIDE = 100021, // TessCallback GLU_TESS_BEGIN = 100100, GLU_BEGIN = 100100, GLU_TESS_VERTEX = 100101, GLU_VERTEX = 100101, GLU_TESS_END = 100102, GLU_END = 100102, GLU_TESS_ERROR = 100103, GLU_TESS_EDGE_FLAG = 100104, GLU_EDGE_FLAG = 100104, GLU_TESS_COMBINE = 100105, GLU_TESS_BEGIN_DATA = 100106, GLU_TESS_VERTEX_DATA = 100107, GLU_TESS_END_DATA = 100108, GLU_TESS_ERROR_DATA = 100109, GLU_TESS_EDGE_FLAG_DATA = 100110, GLU_TESS_COMBINE_DATA = 100111, // TessContour GLU_CW = 100120, GLU_CCW = 100121, GLU_INTERIOR = 100122, GLU_EXTERIOR = 100123, GLU_UNKNOWN = 100124, // TessProperty GLU_TESS_WINDING_RULE = 100140, GLU_TESS_BOUNDARY_ONLY = 100141, GLU_TESS_TOLERANCE = 100142, // TessError GLU_TESS_ERROR1 = 100151, GLU_TESS_ERROR2 = 100152, GLU_TESS_ERROR3 = 100153, GLU_TESS_ERROR4 = 100154, GLU_TESS_ERROR5 = 100155, GLU_TESS_ERROR6 = 100156, GLU_TESS_ERROR7 = 100157, GLU_TESS_ERROR8 = 100158, GLU_TESS_MISSING_BEGIN_POLYGON = 100151, GLU_TESS_MISSING_BEGIN_COUNTER = 100152, GLU_TESS_MISSING_END_POLYGON = 100153, GLU_TESS_MISSING_END_COUNTER = 100154, GLU_TESS_COORD_TOO_LARGE = 100155, GLU_TESS_NEED_COMBINE_CALLBACK = 100156, // TessWinding GLU_TESS_WINDING_ODD = 100130, GLU_TESS_WINDING_NONZERO = 100131, GLU_TESS_WINDING_POSITIVE = 100132, GLU_TESS_WINDING_NEGATIVE = 100133, GLU_TESS_WINDING_ABS_GEQ_TWO = 100134, } const GLdouble GLU_TESS_MAX_COORD = 1.0e150; //============================================================================== // TYPES //============================================================================== struct GLUnurbs {} struct GLUquadric {} struct GLUtesselator {} typedef GLUnurbs GLUnurbsObj; typedef GLUquadric GLUquadricObj; typedef GLUtesselator GLUtesselatorObj; typedef GLUtesselator GLUtriangulatorObj; version(Windows) { extern(Windows) typedef void function() _GLUfuncptr; } else { extern(C) typedef void function() _GLUfuncptr; } //============================================================================== // DLL FUNCTIONS //============================================================================== extern(System): typedef GLint function(GLenum,GLint,GLsizei,GLenum,GLenum,GLint,GLint,GLint,void*) pfgluBuild1DMipmapLevels; typedef GLint function(GLenum,GLint,GLsizei,GLenum,GLenum,void*) pfgluBuild1DMipmaps; typedef GLint function(GLenum,GLint,GLsizei,GLsizei,GLenum,GLenum,GLint,GLint,GLint,void*) pfgluBuild2DMipmapLevels; typedef GLint function(GLenum,GLint,GLsizei,GLsizei,GLenum,GLenum,void*) pfgluBuild2DMipmaps; typedef GLint function(GLenum,GLint,GLsizei,GLsizei,GLsizei,GLenum,GLenum,GLint,GLint,GLint,void*) pfgluBuild3DMipmapLevels; typedef GLint function(GLenum,GLint,GLsizei,GLsizei,GLsizei,GLenum,GLenum,void*) pfgluBuild3DMipmaps; //pfgluBuild1DMipmapLevels gluBuild1DMipmapLevels; pfgluBuild1DMipmaps gluBuild1DMipmaps; //pfgluBuild2DMipmapLevels gluBuild2DMipmapLevels; pfgluBuild2DMipmaps gluBuild2DMipmaps; //pfgluBuild3DMipmapLevels gluBuild3DMipmapLevels; //pfgluBuild3DMipmaps gluBuild3DMipmaps; typedef GLboolean function(GLubyte*,GLubyte*) pfgluCheckExtension; typedef GLubyte* function(GLenum) pfgluErrorString; typedef GLubyte* function(GLenum) pfgluGetString; //pfgluCheckExtension gluCheckExtension; pfgluErrorString gluErrorString; pfgluGetString gluGetString; typedef void function(GLUquadric*,GLdouble,GLdouble,GLdouble,GLint,GLint) pfgluCylinder; typedef void function(GLUquadric*,GLdouble,GLdouble,GLint,GLint) pfgluDisk; typedef void function(GLUquadric*,GLdouble,GLdouble,GLint,GLint,GLdouble,GLdouble) pfgluPartialDisk; typedef void function(GLUquadric*,GLdouble,GLint,GLint) pfgluSphere; pfgluCylinder gluCylinder; pfgluDisk gluDisk; pfgluPartialDisk gluPartialDisk; pfgluSphere gluSphere; typedef void function(GLUnurbs*) pfgluBeginCurve; typedef void function(GLUtesselator*) pfgluBeginPolygon; typedef void function(GLUnurbs*) pfgluBeginSurface; typedef void function(GLUnurbs*) pfgluBeginTrim; typedef void function(GLUnurbs*) pfgluEndCurve; typedef void function(GLUtesselator*) pfgluEndPolygon; typedef void function(GLUnurbs*) pfgluEndSurface; typedef void function(GLUnurbs*) pfgluEndTrim; pfgluBeginCurve gluBeginCurve; pfgluBeginPolygon gluBeginPolygon; pfgluBeginSurface gluBeginSurface; pfgluBeginTrim gluBeginTrim; pfgluEndCurve gluEndCurve; pfgluEndPolygon gluEndPolygon; pfgluEndSurface gluEndSurface; pfgluEndTrim gluEndTrim; typedef void function(GLUnurbs*) pfgluDeleteNurbsRenderer; typedef void function(GLUquadric*) pfgluDeleteQuadric; typedef void function(GLUtesselator*) pfgluDeleteTess; typedef void function(GLUnurbs*,GLenum,GLfloat*) pfgluGetNurbsProperty; typedef void function(GLUtesselator*,GLenum,GLdouble*) pfgluGetTessProperty; typedef void function(GLUnurbs*,GLfloat*,GLfloat*,GLint*) pfgluLoadSamplingMatrices; typedef GLUnurbs* function() pfgluNewNurbsRenderer; typedef GLUquadric* function() pfgluNewQuadric; typedef GLUtesselator* function() pfgluNewTess; pfgluDeleteNurbsRenderer gluDeleteNurbsRenderer; pfgluDeleteQuadric gluDeleteQuadric; pfgluDeleteTess gluDeleteTess; pfgluGetNurbsProperty gluGetNurbsProperty; pfgluGetTessProperty gluGetTessProperty; pfgluLoadSamplingMatrices gluLoadSamplingMatrices; pfgluNewNurbsRenderer gluNewNurbsRenderer; pfgluNewQuadric gluNewQuadric; pfgluNewTess gluNewTess; typedef void function(GLUtesselator*,GLenum) pfgluNextContour; typedef void function(GLUnurbs*,GLenum,_GLUfuncptr) pfgluNurbsCallback; typedef void function(GLUnurbs*,GLvoid*) pfgluNurbsCallbackData; typedef void function(GLUnurbs*,GLvoid*) pfgluNurbsCallbackDataEXT; typedef void function(GLUnurbs*,GLint,GLfloat*,GLint,GLfloat*,GLint,GLenum) pfgluNurbsCurve; typedef void function(GLUnurbs*,GLenum,GLfloat) pfgluNurbsProperty; typedef void function(GLUnurbs*,GLint,GLfloat*,GLint,GLfloat*,GLint,GLint,GLfloat*,GLint,GLint,GLenum) pfgluNurbsSurface; typedef void function(GLUnurbs*,GLint,GLfloat*,GLint,GLenum) pfgluPwlCurve; pfgluNextContour gluNextContour; pfgluNurbsCallback gluNurbsCallback; //pfgluNurbsCallbackData gluNurbsCallbackData; //pfgluNurbsCallbackDataEXT gluNurbsCallbackDataEXT; pfgluNurbsCurve gluNurbsCurve; pfgluNurbsProperty gluNurbsProperty; pfgluNurbsSurface gluNurbsSurface; pfgluPwlCurve gluPwlCurve; typedef void function(GLUquadric*,GLenum,_GLUfuncptr) pfgluQuadricCallback; typedef void function(GLUquadric*,GLenum) pfgluQuadricDrawStyle; typedef void function(GLUquadric*,GLenum) pfgluQuadricNormals; typedef void function(GLUquadric*,GLenum) pfgluQuadricOrientation; typedef void function(GLUquadric*,GLboolean) pfgluQuadricTexture; pfgluQuadricCallback gluQuadricCallback; pfgluQuadricDrawStyle gluQuadricDrawStyle; pfgluQuadricNormals gluQuadricNormals; pfgluQuadricOrientation gluQuadricOrientation; pfgluQuadricTexture gluQuadricTexture; typedef void function(GLUtesselator*) pfgluTessBeginContour; typedef void function(GLUtesselator*,GLvoid*) pfgluTessBeginPolygon; typedef void function(GLUtesselator*,GLenum,_GLUfuncptr) pfgluTessCallback; typedef void function(GLUtesselator*) pfgluTessEndContour; typedef void function(GLUtesselator*) pfgluTessEndPolygon; typedef void function(GLUtesselator*,GLdouble,GLdouble,GLdouble) pfgluTessNormal; typedef void function(GLUtesselator*,GLenum,GLdouble) pfgluTessProperty; typedef void function(GLUtesselator*,GLdouble*,GLvoid*) pfgluTessVertex; pfgluTessBeginContour gluTessBeginContour; pfgluTessBeginPolygon gluTessBeginPolygon; pfgluTessCallback gluTessCallback; pfgluTessEndContour gluTessEndContour; pfgluTessEndPolygon gluTessEndPolygon; pfgluTessProperty gluTessProperty; pfgluTessNormal gluTessNormal; pfgluTessVertex gluTessVertex; typedef void function(GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble) pfgluLookAt; typedef void function(GLdouble,GLdouble,GLdouble,GLdouble) pfgluOrtho2D; typedef void function(GLdouble,GLdouble,GLdouble,GLdouble) pfgluPerspective; typedef void function(GLdouble,GLdouble,GLdouble,GLdouble,GLint*) pfgluPickMatrix; typedef GLint function(GLdouble,GLdouble,GLdouble,GLdouble*,GLdouble*,GLint*,GLdouble*,GLdouble*,GLdouble*) pfgluProject; typedef GLint function(GLenum,GLsizei,GLsizei,GLenum,void*,GLsizei,GLsizei,GLenum,GLvoid*) pfgluScaleImage; typedef GLint function(GLdouble,GLdouble,GLdouble,GLdouble*,GLdouble*,GLint*,GLdouble*,GLdouble*,GLdouble*) pfgluUnProject; typedef GLint function(GLdouble,GLdouble,GLdouble,GLdouble,GLdouble*,GLdouble*,GLint*,GLdouble,GLdouble,GLdouble*,GLdouble*,GLdouble*,GLdouble*) pfgluUnProject4; pfgluLookAt gluLookAt; pfgluOrtho2D gluOrtho2D; pfgluPerspective gluPerspective; pfgluPickMatrix gluPickMatrix; pfgluProject gluProject; pfgluScaleImage gluScaleImage; pfgluUnProject gluUnProject; //pfgluUnProject4 gluUnProject4;
D
/** DGui project file. Copyright: Trogu Antonio Davide 2011-2013 License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Trogu Antonio Davide */ /* From MSDN Rich Edit version DLL Window Class ---- 1.0 Riched32.dll RICHEDIT_CLASS 2.0 Riched20.dll RICHEDIT_CLASS 3.0 Riched20.dll RICHEDIT_CLASS 4.1 Msftedit.dll MSFTEDIT_CLASS Windows XP SP1: Includes Microsoft Rich Edit 4.1, Microsoft Rich Edit 3.0, and a Microsoft Rich Edit 1.0 emulator. Windows XP: Includes Microsoft Rich Edit 3.0 with a Microsoft Rich Edit 1.0 emulator. Windows Me: Includes Microsoft Rich Edit 1.0 and 3.0. Windows 2000: Includes Microsoft Rich Edit 3.0 with a Microsoft Rich Edit 1.0 emulator. Windows NT 4.0: Includes Microsoft Rich Edit 1.0 and 2.0. Windows 98: Includes Microsoft Rich Edit 1.0 and 2.0. Windows 95: Includes only Microsoft Rich Edit 1.0. However, Riched20.dll is compatible with Windows 95 and may be installed by an application that requires it. */ module dgui.richtextbox; public import dgui.core.controls.textcontrol; class RichTextBox: TextControl { private static int _refCount = 0; private static HMODULE _hRichDll; public override void dispose() { --_refCount; if(!_refCount) { FreeLibrary(_hRichDll); _hRichDll = null; } super.dispose(); } public void redo() { this.sendMessage(EM_REDO, 0, 0); } protected override void createControlParams(ref CreateControlParams ccp) { // Probably the RichTextbox ignores the wParam parameter in WM_PAINT ++_refCount; if(!_hRichDll) { _hRichDll = loadLibrary("RichEd20.dll"); // Load the standard version } this.setStyle(ES_MULTILINE | ES_WANTRETURN, true); ccp.SuperclassName = WC_RICHEDIT; ccp.ClassName = WC_DRICHEDIT; super.createControlParams(ccp); } protected override void onHandleCreated(EventArgs e) { super.onHandleCreated(e); this.sendMessage(EM_SETEVENTMASK, 0, ENM_CHANGE | ENM_UPDATE); this.sendMessage(EM_SETBKGNDCOLOR, 0, this._backColor.colorref); } }
D
a medium that disseminates via telecommunications taking part in a radio or tv program broadcast over the airwaves, as in radio or television sow over a wide area, especially by hand cause to become widely known
D
// REQUIRED_ARGS: -m32 /* TEST_OUTPUT: --- fail_compilation/diag9635.d(17): Error: need 'this' for 'i' of type 'int' fail_compilation/diag9635.d(18): Error: need 'this' for 'foo' of type 'pure nothrow @nogc @safe void()' --- */ struct Foo { int i; void foo()() { } static void bar() { i = 4; foo(); } }
D
module ui.childslist; import ui.element : Element; struct ChildsList { Element* parentNode; Element* prevSibling; Element* nextSibling; Element* firstChild; Element* lastChild; ref ChildsList opAssign( Element*[] b ) return { return this; } int opApply( int delegate( Element* ) dg ) { int result; if ( firstChild ) for ( auto c = firstChild; c !is null; c = c.nextSibling ) { result = dg( c ); if ( result ) break; } return result; } int opApply( int delegate( size_t i, Element* ) dg ) { int result; size_t i; if ( firstChild ) for ( auto c = firstChild; c !is null; c = c.nextSibling, i += 1 ) { result = dg( i, c ); if ( result ) break; } return result; } } struct Child { Element* parentNode; Element* prevSibling; Element* nextSibling; Element* firstChild; Element* lastChild; ref Child opAssign( Element* b ) return { return this; } }
D
# FIXED simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/source/netapp.c simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/simplelink.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/platform/msp430f5529lp/user.h simplelink/source/netapp.obj: C:/ti/ccsv7/tools/compiler/msp430_4.3.8/include/string.h simplelink/source/netapp.obj: C:/ti/ccsv7/tools/compiler/msp430_4.3.8/include/linkage.h simplelink/source/netapp.obj: C:/ti/ccsv7/ccs_base/msp430/include/msp430.h simplelink/source/netapp.obj: C:/ti/ccsv7/ccs_base/msp430/include/msp430f5529.h simplelink/source/netapp.obj: C:/ti/ccsv7/ccs_base/msp430/include/in430.h simplelink/source/netapp.obj: C:/ti/ccsv7/tools/compiler/msp430_4.3.8/include/intrinsics.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/platform/msp430f5529lp/board.h simplelink/source/netapp.obj: C:/ti/ccsv7/tools/compiler/msp430_4.3.8/include/stdint.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/platform/msp430f5529lp/cli_uart.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/platform/msp430f5529lp/spi.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/../source/objInclusion.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/simplelink.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/trace.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/fs.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/socket.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/netapp.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/wlan.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/device.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/netcfg.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/wlan_rx_filters.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/../source/nonos.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/source/protocol.h simplelink/source/netapp.obj: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/source/driver.h C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/source/netapp.c: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/simplelink.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/platform/msp430f5529lp/user.h: C:/ti/ccsv7/tools/compiler/msp430_4.3.8/include/string.h: C:/ti/ccsv7/tools/compiler/msp430_4.3.8/include/linkage.h: C:/ti/ccsv7/ccs_base/msp430/include/msp430.h: C:/ti/ccsv7/ccs_base/msp430/include/msp430f5529.h: C:/ti/ccsv7/ccs_base/msp430/include/in430.h: C:/ti/ccsv7/tools/compiler/msp430_4.3.8/include/intrinsics.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/platform/msp430f5529lp/board.h: C:/ti/ccsv7/tools/compiler/msp430_4.3.8/include/stdint.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/platform/msp430f5529lp/cli_uart.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/platform/msp430f5529lp/spi.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/../source/objInclusion.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/simplelink.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/trace.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/fs.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/socket.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/netapp.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/wlan.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/device.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/netcfg.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/wlan_rx_filters.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/include/../source/nonos.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/source/protocol.h: C:/ti/CC3100SDK_1.1.0/cc3100-sdk/simplelink/source/driver.h:
D
/Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/Fill.o : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Description.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Legend.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/LegendEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarLineScatterCandleBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmCandleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineScatterCandleRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmPieDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmScatterDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.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/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMResults_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealm_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealmConfiguration_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMProperty_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMOptionalBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObject_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectStore.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMListBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMArray_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMAccessor.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMResults.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealmConfiguration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMConstants.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMProperty.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMPlatform.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObject.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMMigration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMCollection.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMArray.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/Realm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Realm.build/module.modulemap /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/Fill~partial.swiftmodule : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Description.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Legend.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/LegendEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarLineScatterCandleBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmCandleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineScatterCandleRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmPieDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmScatterDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.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/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMResults_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealm_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealmConfiguration_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMProperty_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMOptionalBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObject_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectStore.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMListBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMArray_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMAccessor.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMResults.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealmConfiguration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMConstants.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMProperty.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMPlatform.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObject.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMMigration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMCollection.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMArray.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/Realm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Realm.build/module.modulemap /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/Fill~partial.swiftdoc : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Description.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Legend.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/LegendEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarLineScatterCandleBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmCandleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineScatterCandleRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmPieDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmScatterDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.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/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMResults_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealm_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealmConfiguration_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMProperty_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMOptionalBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObject_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectStore.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMListBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMArray_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMAccessor.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMResults.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealmConfiguration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMConstants.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMProperty.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMPlatform.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObject.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMMigration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMCollection.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMArray.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/Realm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Realm.build/module.modulemap
D
module mach.range.map.singular; private: import mach.meta : AdjoinFlat; import mach.traits : isRange, isBidirectionalRange, isSavingRange; import mach.traits : isRandomAccessRange, isSlicingRange, ElementType; import mach.range.asrange : asrange, validAsRange; import mach.range.meta : MetaRangeEmptyMixin, MetaRangeLengthMixin; public: template canMapSingular(alias transform, T){ enum bool canMapSingular = validAsRange!T && is(typeof({ auto x = transform(T.init.asrange.front); })); } template canMapSingularRange(alias transform, T){ enum bool canMapSingularRange = isRange!T && canMapSingular!(transform, T); } /// Returns a range whose elements are those of the given iterable transformed /// by some function or functions. template mapsingular(transformations...) if(transformations.length){ alias transform = AdjoinFlat!transformations; auto mapsingular(Iter)(Iter iter) if(canMapSingular!(transform, Iter)){ auto range = iter.asrange; return MapSingularRange!(transform, typeof(range))(range); } } struct MapSingularRange(alias transform, Range) if(canMapSingularRange!(transform, Range)){ mixin MetaRangeEmptyMixin!Range; mixin MetaRangeLengthMixin!Range; Range source; this(Range source){ this.source = source; } @property auto front() in{assert(!this.empty);} body{ return transform(this.source.front); } void popFront() in{assert(!this.empty);} body{ this.source.popFront(); } static if(isBidirectionalRange!Range){ @property auto back() in{assert(!this.empty);} body{ return transform(this.source.back); } void popBack() in{assert(!this.empty);} body{ this.source.popBack(); } } static if(isRandomAccessRange!Range){ auto ref opIndex(size_t index){ return transform(this.source[index]); } } static if(isSlicingRange!Range){ typeof(this) opSlice(size_t low, size_t high){ return typeof(this)(this.source[low .. high]); } } static if(isSavingRange!Range){ @property typeof(this) save(){ return typeof(this)(this.source.save); } } } private version(unittest){ import mach.test; import mach.range.compare : equals; } unittest{ tests("Map", { alias square = (n) => (n * n); alias cube = (n) => (n * n * n); tests("Single function", { test!equals([1, 2, 3, 4].mapsingular!square, [1, 4, 9, 16]); test!equals([1, 1, 1, 1].mapsingular!square, [1, 1, 1, 1]); tests("Not empty", { auto range = [1, 2, 3].mapsingular!square; testeq(range.length, 3); testf(range.empty); tests("Random access", { testeq(range[0], 1); testeq(range[1], 4); testeq(range[2], 9); testfail({range[3];}); }); tests("Slicing", { test!equals(range[0 .. 0], new int[0]); test!equals(range[0 .. 1], [1]); test!equals(range[0 .. 2], [1, 4]); test!equals(range[0 .. $], [1, 4, 9]); }); tests("Bidirectionality & Saving", { testeq(range.remaining, 3); testeq(range.front, 1); testeq(range.back, 9); range.popFront(); testeq(range.remaining, 2); testeq(range.front, 4); range.popBack(); testeq(range.front, 4); testeq(range.back, 4); auto saved = range.save(); range.popFront(); test(range.empty); testeq(range.remaining, 0); testfail({range.front;}); testfail({range.popFront;}); testfail({range.back;}); testfail({range.popBack;}); testf(saved.empty); }); }); tests("Empty input", { auto empty = new int[0]; auto range = empty.mapsingular!square; test(range.empty); testeq(range.length, 0); test!equals(range, empty); test!equals(range[0 .. 0], empty); testfail({range[0];}); testfail({range.front;}); testfail({range.popFront;}); testfail({range.back;}); testfail({range.popBack;}); }); }); tests("Multiple functions", { auto input = [1, 2, 3]; auto range = input.mapsingular!(square, cube); testeq(range[0][0], 1); testeq(range[0][1], 1); testeq(range[1][0], 4); testeq(range[1][1], 8); testeq(range[2][0], 9); testeq(range[2][1], 27); }); tests("Static array", { int[3] input = [1, 2, 3]; auto range = input.mapsingular!(square); test(range.equals([1, 4, 9])); test(range[0 .. 2].equals([1, 4])); }); }); }
D
/Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/SQLIndexModifier.swift.o : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLBind.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLJoinMethod.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLTable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCreateTable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDropTable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLAlterTable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLSerializable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDataType.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLUpdate.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDelete.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLLiteral.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLBoolLiteral.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDefaultLiteral.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLTableConstraintAlgorithm.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnConstraintAlgorithm.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLJoin.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLExpression.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLSelectExpression.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCollation.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLForeignKeyAction.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLConnection.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDirection.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLFunction.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnDefinition.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCreateTableBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDropTableBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLAlterTableBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLPredicateBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLUpdateBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDeleteBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLPredicateGroupBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLSelectBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLInsertBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLRawBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCreateIndexBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLQueryBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLQueryEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLQueryFetcher.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLIndexModifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLTableIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLBinaryOperator.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLSelect.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDistinct.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLFunctionArgument.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLTableConstraint.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnConstraint.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLInsert.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCreateIndex.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDropIndex.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLGroupBy.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLOrderBy.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLForeignKey.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLPrimaryKey.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLQuery.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/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/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/SQLIndexModifier~partial.swiftmodule : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLBind.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLJoinMethod.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLTable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCreateTable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDropTable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLAlterTable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLSerializable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDataType.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLUpdate.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDelete.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLLiteral.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLBoolLiteral.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDefaultLiteral.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLTableConstraintAlgorithm.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnConstraintAlgorithm.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLJoin.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLExpression.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLSelectExpression.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCollation.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLForeignKeyAction.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLConnection.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDirection.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLFunction.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnDefinition.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCreateTableBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDropTableBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLAlterTableBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLPredicateBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLUpdateBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDeleteBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLPredicateGroupBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLSelectBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLInsertBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLRawBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCreateIndexBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLQueryBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLQueryEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLQueryFetcher.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLIndexModifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLTableIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLBinaryOperator.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLSelect.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDistinct.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLFunctionArgument.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLTableConstraint.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnConstraint.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLInsert.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCreateIndex.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDropIndex.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLGroupBy.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLOrderBy.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLForeignKey.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLPrimaryKey.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLQuery.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/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/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/SQLIndexModifier~partial.swiftdoc : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLBind.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLJoinMethod.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLTable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCreateTable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDropTable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLAlterTable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLSerializable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDataType.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLUpdate.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDelete.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLLiteral.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLBoolLiteral.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDefaultLiteral.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLTableConstraintAlgorithm.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnConstraintAlgorithm.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLJoin.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLExpression.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLSelectExpression.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCollation.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLForeignKeyAction.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLConnection.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDirection.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLFunction.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnDefinition.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCreateTableBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDropTableBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLAlterTableBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLPredicateBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLUpdateBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDeleteBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLPredicateGroupBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLSelectBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLInsertBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLRawBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCreateIndexBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLQueryBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLQueryEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLQueryFetcher.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLIndexModifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLTableIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLBinaryOperator.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLSelect.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDistinct.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLFunctionArgument.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLTableConstraint.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnConstraint.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLInsert.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCreateIndex.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDropIndex.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLGroupBy.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLOrderBy.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLForeignKey.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLPrimaryKey.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLQuery.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/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/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/SQLIndexModifier~partial.swiftsourceinfo : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLBind.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLJoinMethod.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLTable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCreateTable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDropTable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLAlterTable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLSerializable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDataType.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLUpdate.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDelete.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLLiteral.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLBoolLiteral.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDefaultLiteral.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLTableConstraintAlgorithm.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnConstraintAlgorithm.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLJoin.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLExpression.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLSelectExpression.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCollation.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLForeignKeyAction.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLConnection.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDirection.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLFunction.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnDefinition.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCreateTableBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDropTableBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLAlterTableBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLPredicateBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLUpdateBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDeleteBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLPredicateGroupBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLSelectBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLInsertBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLRawBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCreateIndexBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLQueryBuilder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLQueryEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLQueryFetcher.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLIndexModifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLTableIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLBinaryOperator.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLSelect.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDistinct.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLFunctionArgument.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLTableConstraint.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLColumnConstraint.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLInsert.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLCreateIndex.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLDropIndex.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLGroupBy.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLOrderBy.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLForeignKey.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLPrimaryKey.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/sql/Sources/SQL/SQLQuery.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/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
func void zs_charlotte_dance() { printdebugnpc(PD_TA_FRAME,"ZS_Charlotte_Dance"); AI_SetWalkMode(self,NPC_RUN); AI_GotoWP(self,self.wp); AI_AlignToWP(self); }; func void zs_charlotte_dance_loop() { var int dancestyle; printdebugnpc(PD_TA_LOOP,"ZS_Charlotte_Dance_Loop"); dancestyle = Hlp_Random(9); if(dancestyle == 0) { AI_PlayAni(self,"S_DANCE1"); }; if(dancestyle == 1) { AI_PlayAni(self,"S_DANCE2"); }; if(dancestyle == 2) { AI_PlayAni(self,"S_DANCE3"); }; if(dancestyle == 3) { AI_PlayAni(self,"S_DANCE4"); }; if(dancestyle == 4) { AI_PlayAni(self,"S_DANCE5"); }; if(dancestyle == 5) { AI_PlayAni(self,"S_DANCE6"); }; if(dancestyle == 6) { AI_PlayAni(self,"S_DANCE7"); }; if(dancestyle == 7) { AI_PlayAni(self,"S_DANCE8"); }; if(dancestyle == 8) { AI_PlayAni(self,"S_DANCE9"); }; AI_GotoWP(self,self.wp); }; func void zs_charlotte_dance_end() { printdebugnpc(PD_TA_FRAME,"ZS_Charlotte_Dance_End"); };
D
/** * Compiler implementation of the * $(LINK2 http://www.dlang.org, D programming language). * * Copyright: Copyright (c) 1999-2017 by Digital Mars, All Rights Reserved * Authors: $(LINK2 http://www.digitalmars.com, Walter Bright) * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(DMDSRC _inlinecost.d) */ module ddmd.inlinecost; import core.stdc.stdio; import core.stdc.string; import ddmd.aggregate; import ddmd.apply; import ddmd.arraytypes; import ddmd.attrib; import ddmd.declaration; import ddmd.dmodule; import ddmd.dscope; import ddmd.dstruct; import ddmd.dsymbol; import ddmd.expression; import ddmd.func; import ddmd.globals; import ddmd.id; import ddmd.identifier; import ddmd.init; import ddmd.mtype; import ddmd.opover; import ddmd.statement; import ddmd.tokens; import ddmd.visitor; enum COST_MAX = 250; private enum STATEMENT_COST = 0x1000; private enum STATEMENT_COST_MAX = 250 * STATEMENT_COST; // STATEMENT_COST be power of 2 and greater than COST_MAX static assert((STATEMENT_COST & (STATEMENT_COST - 1)) == 0); static assert(STATEMENT_COST > COST_MAX); /********************************* * Determine if too expensive to inline. * Params: * cost = cost of inlining * Returns: * true if too costly */ bool tooCostly(int cost) pure nothrow { return ((cost & (STATEMENT_COST - 1)) >= COST_MAX); } /********************************* * Determine cost of inlining Expression * Params: * e = Expression to determine cost of * Returns: * cost of inlining e */ int inlineCostExpression(Expression e) { scope InlineCostVisitor icv = new InlineCostVisitor(false, true, true, null); icv.expressionInlineCost(e); return icv.cost; } /********************************* * Determine cost of inlining function * Params: * fd = function to determine cost of * Returns: * cost of inlining fd */ int inlineCostFunction(FuncDeclaration fd, bool hasthis, bool hdrscan) { scope InlineCostVisitor icv = new InlineCostVisitor(hasthis, hdrscan, false, fd); fd.fbody.accept(icv); return icv.cost; } private: /*********************************************************** * Compute cost of inlining. * * Walk trees to determine if inlining can be done, and if so, * if it is too complex to be worth inlining or not. */ extern (C++) final class InlineCostVisitor : Visitor { alias visit = super.visit; public: int nested; bool hasthis; bool hdrscan; // if inline scan for 'header' content bool allowAlloca; FuncDeclaration fd; int cost; // zero start for subsequent AST extern (D) this() { } extern (D) this(bool hasthis, bool hdrscan, bool allowAlloca, FuncDeclaration fd) { this.hasthis = hasthis; this.hdrscan = hdrscan; this.allowAlloca = allowAlloca; this.fd = fd; } extern (D) this(InlineCostVisitor icv) { nested = icv.nested; hasthis = icv.hasthis; hdrscan = icv.hdrscan; allowAlloca = icv.allowAlloca; fd = icv.fd; } override void visit(Statement s) { //printf("Statement.inlineCost = %d\n", COST_MAX); //printf("%p\n", s.isScopeStatement()); //printf("%s\n", s.toChars()); cost += COST_MAX; // default is we can't inline it } override void visit(ExpStatement s) { expressionInlineCost(s.exp); } override void visit(CompoundStatement s) { scope InlineCostVisitor icv = new InlineCostVisitor(this); foreach (i; 0 .. s.statements.dim) { Statement s2 = (*s.statements)[i]; if (s2) { /* Specifically allow: * if (condition) * return exp1; * return exp2; */ IfStatement ifs; Statement s3; if ((ifs = s2.isIfStatement()) !is null && ifs.ifbody && ifs.ifbody.isReturnStatement() && !ifs.elsebody && i + 1 < s.statements.dim && (s3 = (*s.statements)[i + 1]) !is null && s3.isReturnStatement() ) { if (ifs.prm) // if variables are declared { cost = COST_MAX; return; } expressionInlineCost(ifs.condition); ifs.ifbody.accept(this); s3.accept(this); } else s2.accept(icv); if (tooCostly(icv.cost)) break; } } cost += icv.cost; } override void visit(UnrolledLoopStatement s) { scope InlineCostVisitor icv = new InlineCostVisitor(this); foreach (s2; *s.statements) { if (s2) { s2.accept(icv); if (tooCostly(icv.cost)) break; } } cost += icv.cost; } override void visit(ScopeStatement s) { cost++; if (s.statement) s.statement.accept(this); } override void visit(IfStatement s) { /* Can't declare variables inside ?: expressions, so * we cannot inline if a variable is declared. */ if (s.prm) { cost = COST_MAX; return; } expressionInlineCost(s.condition); /* Specifically allow: * if (condition) * return exp1; * else * return exp2; * Otherwise, we can't handle return statements nested in if's. */ if (s.elsebody && s.ifbody && s.ifbody.isReturnStatement() && s.elsebody.isReturnStatement()) { s.ifbody.accept(this); s.elsebody.accept(this); //printf("cost = %d\n", cost); } else { nested += 1; if (s.ifbody) s.ifbody.accept(this); if (s.elsebody) s.elsebody.accept(this); nested -= 1; } //printf("IfStatement.inlineCost = %d\n", cost); } override void visit(ReturnStatement s) { // Can't handle return statements nested in if's if (nested) { cost = COST_MAX; } else { expressionInlineCost(s.exp); } } override void visit(ImportStatement s) { } override void visit(ForStatement s) { cost += STATEMENT_COST; if (s._init) s._init.accept(this); if (s.condition) s.condition.accept(this); if (s.increment) s.increment.accept(this); if (s._body) s._body.accept(this); //printf("ForStatement: inlineCost = %d\n", cost); } override void visit(ThrowStatement s) { cost += STATEMENT_COST; s.exp.accept(this); } /* -------------------------- */ void expressionInlineCost(Expression e) { //printf("expressionInlineCost()\n"); //e.print(); if (e) { extern (C++) final class LambdaInlineCost : StoppableVisitor { alias visit = super.visit; InlineCostVisitor icv; public: extern (D) this(InlineCostVisitor icv) { this.icv = icv; } override void visit(Expression e) { e.accept(icv); stop = icv.cost >= COST_MAX; } } scope InlineCostVisitor icv = new InlineCostVisitor(this); scope LambdaInlineCost lic = new LambdaInlineCost(icv); walkPostorder(e, lic); cost += icv.cost; } } override void visit(Expression e) { cost++; } override void visit(VarExp e) { //printf("VarExp.inlineCost3() %s\n", toChars()); Type tb = e.type.toBasetype(); if (tb.ty == Tstruct) { StructDeclaration sd = (cast(TypeStruct)tb).sym; if (sd.isNested()) { /* An inner struct will be nested inside another function hierarchy than where * we're inlining into, so don't inline it. * At least not until we figure out how to 'move' the struct to be nested * locally. Example: * struct S(alias pred) { void unused_func(); } * void abc() { int w; S!(w) m; } * void bar() { abc(); } */ cost = COST_MAX; return; } } FuncDeclaration fd = e.var.isFuncDeclaration(); if (fd && fd.isNested()) // see Bugzilla 7199 for test case cost = COST_MAX; else cost++; } override void visit(ThisExp e) { //printf("ThisExp.inlineCost3() %s\n", toChars()); if (!fd) { cost = COST_MAX; return; } if (!hdrscan) { if (fd.isNested() || !hasthis) { cost = COST_MAX; return; } } cost++; } override void visit(StructLiteralExp e) { //printf("StructLiteralExp.inlineCost3() %s\n", toChars()); if (e.sd.isNested()) cost = COST_MAX; else cost++; } override void visit(NewExp e) { //printf("NewExp.inlineCost3() %s\n", e.toChars()); AggregateDeclaration ad = isAggregate(e.newtype); if (ad && ad.isNested()) cost = COST_MAX; else cost++; } override void visit(FuncExp e) { //printf("FuncExp.inlineCost3()\n"); // Right now, this makes the function be output to the .obj file twice. cost = COST_MAX; } override void visit(DelegateExp e) { //printf("DelegateExp.inlineCost3()\n"); cost = COST_MAX; } override void visit(DeclarationExp e) { //printf("DeclarationExp.inlineCost3()\n"); VarDeclaration vd = e.declaration.isVarDeclaration(); if (vd) { TupleDeclaration td = vd.toAlias().isTupleDeclaration(); if (td) { cost = COST_MAX; // finish DeclarationExp.doInlineAs return; } if (!hdrscan && vd.isDataseg()) { cost = COST_MAX; return; } if (vd.edtor) { // if destructor required // needs work to make this work cost = COST_MAX; return; } // Scan initializer (vd.init) if (vd._init) { ExpInitializer ie = vd._init.isExpInitializer(); if (ie) { expressionInlineCost(ie.exp); } } cost += 1; } // These can contain functions, which when copied, get output twice. if (e.declaration.isStructDeclaration() || e.declaration.isClassDeclaration() || e.declaration.isFuncDeclaration() || e.declaration.isAttribDeclaration() || e.declaration.isTemplateMixin()) { cost = COST_MAX; return; } //printf("DeclarationExp.inlineCost3('%s')\n", toChars()); } override void visit(CallExp e) { //printf("CallExp.inlineCost3() %s\n", toChars()); // Bugzilla 3500: super.func() calls must be devirtualized, and the inliner // can't handle that at present. if (e.e1.op == TOKdotvar && (cast(DotVarExp)e.e1).e1.op == TOKsuper) cost = COST_MAX; else if (e.f && e.f.ident == Id.__alloca && e.f.linkage == LINKc && !allowAlloca) cost = COST_MAX; // inlining alloca may cause stack overflows else cost++; } }
D
INSTANCE Mod_1746_KDF_Tojan_PAT (Npc_Default) { // ------ NSC ------ name = "Tojan"; guild = GIL_VLK; id = 1746; voice = 0; flags = 0; npctype = NPCTYPE_MAIN; // ------ Attribute ------ B_SetAttributesToChapter (self, 4); aivar[AIV_MagicUser] = MAGIC_ALWAYS; B_SetAttitude (self, ATT_FRIENDLY); // ------ Kampf-Taktik ------ fight_tactic = FAI_HUMAN_STRONG; // ------ Equippte Waffen ------ EquipItem (self, ItMW_Addon_Stab01); // ------ Inventory ------ B_CreateAmbientInv (self); // ------ visuals ------ B_SetNpcVisual (self, MALE, "Hum_Head_Thief", 193, BodyTex_N, ITAR_Kdf_h); Mdl_SetModelFatness (self, 1); Mdl_ApplyOverlayMds (self, "Humans_Mage.mds"); // ------ NSC-relevante Talente vergeben ------ B_GiveNpcTalents (self); // ------ Kampf-Talente ------ B_SetFightSkills (self, 70); // ------ TA anmelden ------ daily_routine = Rtn_Start_1746; }; FUNC VOID Rtn_Start_1746 () { TA_Stand_WP (08,00,23,00,"WP_PAT_WEG_54"); TA_Stand_WP (23,00,08,00,"WP_PAT_WEG_54"); }; FUNC VOID Rtn_Mine_1746 () { TA_Smalltalk_Laehmen (08,00,23,00,"WP_PAT_UNTERGRUND_06"); TA_Smalltalk_Laehmen (23,00,08,00,"WP_PAT_UNTERGRUND_06"); }; FUNC VOID Rtn_Falle_1746 () { TA_Stand_WP (08,00,23,00,"WP_PAT_WEG_202"); TA_Stand_WP (23,00,08,00,"WP_PAT_WEG_202"); };
D
/////////////////////////////////////////////////////////////////////// // Info EXIT /////////////////////////////////////////////////////////////////////// INSTANCE DIA_Pyrokar_EXIT (C_INFO) { npc = KDF_500_Pyrokar; nr = 999; condition = DIA_Pyrokar_EXIT_Condition; information = DIA_Pyrokar_EXIT_Info; permanent = TRUE; description = DIALOG_ENDE; }; FUNC INT DIA_Pyrokar_EXIT_Condition() { if (Kapitel < 3) { return TRUE; }; }; FUNC VOID DIA_Pyrokar_EXIT_Info() { AI_StopProcessInfos (self); }; /////////////////////////////////////////////////////////////////////// // Info WELCOME /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_WELCOME (C_INFO) { npc = KDF_500_Pyrokar; nr = 2; condition = DIA_Pyrokar_WELCOME_Condition; information = DIA_Pyrokar_WELCOME_Info; permanent = FALSE; important = TRUE; }; func int DIA_Pyrokar_WELCOME_Condition () { if (Npc_IsInState (self, ZS_Talk) && (KNOWS_FIRE_CONTEST == FALSE)) && (hero.guild == GIL_NOV) { return TRUE; }; }; func void DIA_Pyrokar_WELCOME_Info () { AI_Output (self, other, "DIA_Pyrokar_WELCOME_11_00"); //Tak ty jsi ten nový novic. Dobrá, pâedpokládám, že už tę s tvými povinnostmi obeznámil otec Parlan. AI_Output (self, other, "DIA_Pyrokar_WELCOME_11_01"); //(lehce káravę) Víš, že každý člen Společenstva ohnę by męl své povinnosti plnit v souladu s Innosovou vůlí. }; /////////////////////////////////////////////////////////////////////// // Info Hagen /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_Hagen (C_INFO) { npc = KDF_500_Pyrokar; nr = 10; condition = DIA_Pyrokar_Hagen_Condition; information = DIA_Pyrokar_Hagen_Info; permanent = FALSE; description = "Musím mluvit s paladiny. Dost to spęchá."; }; func int DIA_Pyrokar_Hagen_Condition () { if (other.guild == GIL_NOV) //muss kommen { return TRUE; }; }; func void DIA_Pyrokar_Hagen_Info () { AI_Output (other, self, "DIA_Pyrokar_Hagen_15_00"); //Musím mluvit s paladiny. Dost to spęchá. AI_Output (self, other, "DIA_Pyrokar_Hagen_11_01"); //A âekneš nám, proč s nimi chceš mluvit? AI_Output (other, self, "DIA_Pyrokar_Hagen_15_02"); //Mám pro nę důležitou zprávu. AI_Output (self, other, "DIA_Pyrokar_Hagen_11_03"); //Co by to jako męlo být za zprávu? AI_Output (other, self, "DIA_Pyrokar_Hagen_15_04"); //V Hornickém údolí se shromažëuje armáda zla vedená draky! Musíme je zastavit, dokud můžeme. AI_Output (self, other, "DIA_Pyrokar_Hagen_11_05"); //Hm. Budeme o tvých slovech pâemýšlet, novici. Až nadejde čas, dáme ti vędęt, jak rada rozhodla. AI_Output (self, other, "DIA_Pyrokar_Hagen_11_06"); //Mezitím by sis męl lépe hledęt povinností novice. if Npc_KnowsInfo (other,DIA_Pyrokar_Auge) { AI_Output (self, other, "DIA_Pyrokar_ALL_11_07"); //Dobrá, už tę nebudeme déle zdržovat od tvé práce - můžeš jít. AI_StopProcessInfos (self); }; }; /////////////////////////////////////////////////////////////////////// // Info Auge /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_Auge (C_INFO) { npc = KDF_500_Pyrokar; nr = 10; condition = DIA_Pyrokar_Auge_Condition; information = DIA_Pyrokar_Auge_Info; permanent = FALSE; description = "Hledám Innosovo oko."; }; func int DIA_Pyrokar_Auge_Condition () { if (KNOWS_FIRE_CONTEST == FALSE) && (other.guild == GIL_NOV) { return TRUE; }; }; func void DIA_Pyrokar_Auge_Info () { AI_Output (other, self, "DIA_Pyrokar_Auge_15_00"); //Hledám Innosovo oko. AI_Output (self, other, "DIA_Pyrokar_Auge_11_01"); //Každý, kdo si myslí, že by mohl svatý amulet nejen najít, ale dokonce ho i používat, je hlupák. AI_Output (self, other, "DIA_Pyrokar_Auge_11_02"); //Amulet si sám vybírá svého majitele - nikdo, kromę toho, komu je to pâedurčeno, ho není schopen nosit. AI_Output (other, self, "DIA_Pyrokar_Auge_15_03"); //Jsem ochotný to zkusit. AI_Output (self, other, "DIA_Pyrokar_Auge_11_04"); //Povinnosti novice tę mají naučit pokoâe - ne žádostivosti. B_LogEntry (TOPIC_INNOSEYE, "Nemyslím, že by to bylo tak tęžké, ale Pyrokar mi Oko dobrovolnę a bez pomoci paladinů nevydá."); if Npc_KnowsInfo (other,DIA_Pyrokar_Hagen) { AI_Output (self, other, "DIA_Pyrokar_ALL_11_05"); //Dobrá, už tę nebudeme dál zdržovat od tvé práce - můžeš jít. AI_StopProcessInfos (self); }; }; /////////////////////////////////////////////////////////////////////// // Info MissingPeople /////////////////////////////////////////////////////////////////////// instance DIA_Addon_Pyrokar_MissingPeople (C_INFO) { npc = KDF_500_Pyrokar; nr = 5; condition = DIA_Addon_Pyrokar_MissingPeople_Condition; information = DIA_Addon_Pyrokar_MissingPeople_Info; description = "Nękteâí občané Khorinisu zmizeli za podivných okolností."; }; func int DIA_Addon_Pyrokar_MissingPeople_Condition () { if (SC_HearedAboutMissingPeople == TRUE) && (Sklaven_Flucht == FALSE) { return TRUE; }; }; func void DIA_Addon_Pyrokar_MissingPeople_Info () { AI_Output (other, self, "DIA_Addon_Pyrokar_MissingPeople_15_00"); //Nękteâí občané Khorinisu zmizeli za podivných okolností. AI_Output (self, other, "DIA_Addon_Pyrokar_MissingPeople_11_01"); //Jsem si toho vędom a je to politováníhodné. Nicménę jsme souhlasili s mágy Vody, že na tu vęc dohlídnou. AI_Output (self, other, "DIA_Addon_Pyrokar_MissingPeople_11_02"); //To samé se týka té záležistosti s tęmi podivnými zemętâesenímy v severovýchodní oblasti Khorinosu. AI_Output (self, other, "DIA_Addon_Pyrokar_MissingPeople_11_03"); //To samé se týka té záležistosti s tęmi podivnými zemętâesenímy v severovýchodní oblasti Khorinosu. AI_Output (other, self, "DIA_Addon_Pyrokar_MissingPeople_15_04"); //Ano, ale ... AI_Output (self, other, "DIA_Addon_Pyrokar_MissingPeople_11_05"); //Žádné ALE! Budeme pokračovat jak uznáme za vhodné a doufám, že i TY budeš respektovat toto usnesení. Log_CreateTopic (TOPIC_Addon_WhoStolePeople, LOG_MISSION); Log_SetTopicStatus(TOPIC_Addon_WhoStolePeople, LOG_RUNNING); B_LogEntry (TOPIC_Addon_WhoStolePeople,"Mágové Ohnę litují zmizelých občanů Khorinosu . Nicménę âíkají, že by to byl úkol pro mágy Vody. Neočekávejte tedy pomoc od kláštera ohnivých mágů."); if (other.guild == GIL_NOV) && (KNOWS_FIRE_CONTEST == FALSE) { AI_StopProcessInfos (self); }; }; /////////////////////////////////////////////////////////////////////// // Info GOAWAY /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_GOAWAY (C_INFO) { npc = KDF_500_Pyrokar; nr = 10; condition = DIA_Pyrokar_GOAWAY_Condition; information = DIA_Pyrokar_GOAWAY_Info; permanent = TRUE; important = TRUE; }; func int DIA_Pyrokar_GOAWAY_Condition () { //ADDON> if (Npc_KnowsInfo (hero, DIA_Addon_Pyrokar_MissingPeople) == FALSE) && (SC_HearedAboutMissingPeople == TRUE) { return FALSE; }; //ADDON< if (Npc_IsInState (self, ZS_Talk) && Npc_KnowsInfo (hero, DIA_Pyrokar_Hagen) && Npc_KnowsInfo (hero, DIA_Pyrokar_Auge) && (KNOWS_FIRE_CONTEST == FALSE)) && (other.guild == GIL_NOV) { return TRUE; }; }; func void DIA_Pyrokar_GOAWAY_Info () { AI_Output (self, other, "DIA_Pyrokar_GOAWAY_11_00"); //(rozzlobenę) Poslušnost patâí mezi ctnosti, kterých se máš ještę co učit. Aă tak, či tak. AI_StopProcessInfos (self); }; /////////////////////////////////////////////////////////////////////// // Info FIRE /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_FIRE (C_INFO) { npc = KDF_500_Pyrokar; nr = 1; condition = DIA_Pyrokar_FIRE_Condition; information = DIA_Pyrokar_FIRE_Info; permanent = FALSE; description = "Chtęl bych podstoupit Zkoušku ohnę."; }; func int DIA_Pyrokar_FIRE_Condition () { if (KNOWS_FIRE_CONTEST == TRUE) && (other.guild == GIL_NOV) && Npc_KnowsInfo (other,DIA_Pyrokar_Hagen) { return TRUE; }; }; func void DIA_Pyrokar_FIRE_Info () { AI_Output (other, self, "DIA_Pyrokar_FIRE_15_00"); //Chtęl bych podstoupit Zkoušku ohnę. AI_Output (self, other, "DIA_Pyrokar_FIRE_11_01"); //(pâekvapenę) Tak ty o tom víš... ty chceš podstoupit Zkoušku ohnę? AI_Output (other, self, "DIA_Pyrokar_FIRE_15_02"); //Ano, pročetl jsem si Právo ohnę, kde se âíká... AI_Output (self, other, "DIA_Pyrokar_FIRE_11_03"); //(pâíkâe pâeruší) My známe Právo ohnę. Taky jsme ale vidęli mnoho noviců bęhem toho testu zemâít. Męl bys své rozhodnutí ještę zvážit. AI_Output (other, self, "DIA_Pyrokar_FIRE_15_04"); //To jsem už udęlal. Chci tu zkoušku - a jsem pâipraven jí projít. AI_Output (self, other, "DIA_Pyrokar_FIRE_11_05"); //(varovnę) Když na tom bezpodmínečnę trváš, tak tę Rada k té zkoušce pâizve. AI_Output (other, self, "DIA_Pyrokar_FIRE_15_06"); //Trvám na tom, abych byl pâizván ke Zkoušce ohnę. AI_Output (self, other, "DIA_Pyrokar_FIRE_11_07"); //V tom pâípadę - aă je po tvém. Až budeš pâipraven, dostaneš od každého mága Rady úkol, jejž musíš splnit. AI_Output (self, other, "DIA_Pyrokar_FIRE_11_08"); //Nechă se Innos slituje nad tvou duší. B_LogEntry (TOPIC_FireContest,"Požádal jsem Pyrokara o Zkoušku ohnę. Nyní musím splnit tâi úkoly, které mi zadá Nejvyšší rada."); }; /////////////////////////////////////////////////////////////////////// // Info TEST /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_TEST (C_INFO) { npc = KDF_500_Pyrokar; nr = 10; condition = DIA_Pyrokar_TEST_Condition; information = DIA_Pyrokar_TEST_Info; permanent = FALSE; description = "Jsem pâipraven podrobit se tvé zkoušce, Mistâe."; }; func int DIA_Pyrokar_TEST_Condition () { if Npc_KnowsInfo (hero,DIA_Pyrokar_FIRE) && (MIS_SCHNITZELJAGD == FALSE) && (hero.guild == GIL_NOV) { return TRUE; }; }; func void DIA_Pyrokar_TEST_Info () { AI_Output (other, self, "DIA_Pyrokar_TEST_15_00"); //Jsem pâipraven podrobit se tvé zkoušce, Mistâe. AI_Output (self, other, "DIA_Pyrokar_TEST_11_01"); //A jedinę Innos sám ví, jestli jí projdeš. Podstupuješ stejnou zkoušku, jaká je určena vyvoleným novicům. AI_Output (self, other, "DIA_Pyrokar_TEST_11_02"); //Zkouška magie. (odmęâenę) Asi víš, že zkouškou může projít pouze jeden jediný novic. AI_Output (other, self, "DIA_Pyrokar_TEST_15_03"); //To vím. Tak kdo jsou moji soupeâi? AI_Output (self, other, "DIA_Pyrokar_TEST_11_04"); //Innos ve své moudrosti vybral tâi novice, kteâí se také chystají projít testem: Agon, Igaraz a Ulf. Už začali s hledáním. AI_Output (self, other, "DIA_Pyrokar_TEST_11_05"); //(úsečnę) Ale dost už o tom! Slyš slova této zkoušky: 'Následuj Innosova znamení a dones nám, co vęâící nalezl na konci cesty.' AI_Output (self, other, "DIA_Pyrokar_TEST_11_06"); //Budeš potâebovat tenhle klíč. AI_Output (self, other, "DIA_Pyrokar_TEST_11_07"); //To je vše, co ti k tomu âekneme. Log_CreateTopic (TOPIC_Schnitzeljagd,LOG_MISSION); Log_SetTopicStatus (TOPIC_Schnitzeljagd,LOG_RUNNING); B_LogEntry (TOPIC_Schnitzeljagd,"Pyrokar pro mę pâipravuje zkoušku magie - stejnou jako je ta, kterou podstoupí zvolení novicové Ulf, Igaraz a Agon."); B_LogEntry (TOPIC_Schnitzeljagd,"Musím následovat Innosova znamení a pâinést to, co vęâící najde na své cestę. Dostal jsem k tomu i klíč."); CreateInvItems (self,ItKe_MagicChest,1); B_GiveInvItems (self,other,ItKe_MagicChest,1); //------------Igaraz klar machen------------------- B_StartOtherRoutine (Igaraz,"CONTEST"); AI_Teleport (Igaraz,"NW_TAVERNE_BIGFARM_05"); CreateInvItems (Igaraz, ItKe_MagicChest,1); Igaraz.aivar [AIV_DropDeadAndKill] = TRUE; Igaraz.aivar [AIV_NewsOverride] = TRUE; //---------Smalltalk Partner herbeirufen B_StartOtherRoutine (NOV607,"EXCHANGE"); //------------Agon klar machen------------------- B_StartOtherRoutine (Agon,"GOLEMDEAD"); AI_Teleport (Agon,"NW_MAGECAVE_RUNE"); CreateInvItems (Agon, ItKe_MagicChest,1); Agon.aivar [AIV_DropDeadAndKill] = TRUE; Agon.aivar [AIV_NewsOverride] = TRUE; //------------Ulf klar machen------------------- B_StartOtherRoutine (Ulf,"SUCHE"); AI_Teleport (Ulf,"NW_TROLLAREA_PATH_42"); CreateInvItems (Ulf, ItKe_MagicChest,1); Ulf.aivar [AIV_DropDeadAndKill] = TRUE; Ulf.aivar [AIV_NewsOverride] = TRUE; //------------------------------- MIS_SCHNITZELJAGD = LOG_RUNNING; AI_StopProcessInfos (self); }; /////////////////////////////////////////////////////////////////////// // Info RUNNING /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_RUNNING (C_INFO) { npc = KDF_500_Pyrokar; nr = 20; condition = DIA_Pyrokar_RUNNING_Condition; information = DIA_Pyrokar_RUNNING_Info; important = TRUE; permanent = TRUE; }; func int DIA_Pyrokar_RUNNING_Condition () { if (MIS_SCHNITZELJAGD == LOG_RUNNING) && Npc_IsInState (self, ZS_Talk) && (other.guild == GIL_NOV) && (Mob_HasItems ("MAGICCHEST",ItMi_RuneBlank)) { return TRUE; }; }; func void DIA_Pyrokar_RUNNING_Info () { var int randomizer; randomizer = Hlp_Random (3); if (randomizer == 0) { AI_Output (self, other, "DIA_Pyrokar_RUNNING_11_00"); //Dokud budeš pracovat na zkoušce, nesmíme ti nic âíct. } else if (randomizer == 1) { AI_Output (self, other, "DIA_Pyrokar_RUNNING_11_01"); //Co tady ještę postáváš? Bęž se vypoâádat se svou zkouškou! } else if (randomizer == 2) { AI_Output (self, other, "DIA_Pyrokar_RUNNING_11_02"); //Nadešel čas porovnat tvá velká slova s tvými skutky. Nemyslíš, novici? }; AI_StopProcessInfos (self); }; /////////////////////////////////////////////////////////////////////// // Info SUCCESS /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_SUCCESS (C_INFO) { npc = KDF_500_Pyrokar; nr = 2; condition = DIA_Pyrokar_SUCCESS_Condition; information = DIA_Pyrokar_SUCCESS_Info; permanent = FALSE; description = "Našel jsem ten runový kámen."; }; func int DIA_Pyrokar_SUCCESS_Condition () { if (MIS_SCHNITZELJAGD == LOG_RUNNING) && (hero.guild == GIL_NOV) && (!Mob_HasItems ("MAGICCHEST",ItMi_RuneBlank)) && (( Npc_HasItems (other,itmi_runeblank) >= 1) || ( Npc_HasItems (other,itru_firebolt) >= 1)) { return TRUE; }; }; func void DIA_Pyrokar_SUCCESS_Info () { AI_Output (other, self, "DIA_Pyrokar_SUCCESS_15_00"); //Našel jsem ten runový kámen. AI_Output (self, other, "DIA_Pyrokar_SUCCESS_11_01"); //(nevęâícnę) Ty... dokázal jsi to?! Sledoval jsi znamení a objevil ukrytý portál... AI_Output (other, self, "DIA_Pyrokar_SUCCESS_15_02"); //... a taky jsem porazil všechna ta stvoâení, co mę považovala za pâíjemnou svačinku. AI_Output (self, other, "DIA_Pyrokar_SUCCESS_11_03"); //A co ostatní novicové? Co Agon? Neuspęl dâív než ty? AI_Output (other, self, "DIA_Pyrokar_SUCCESS_15_04"); //Neobstáli. Pâedpokládám, že jim zkouška nebyla pâedurčena. AI_Output (self, other, "DIA_Pyrokar_SUCCESS_11_05"); //Dobrá, takže vyhlásíme, že jsi prošel zkouškou. A ten runový kámen si můžeš ponechat. MIS_SCHNITZELJAGD = LOG_SUCCESS; B_GivePlayerXP (XP_SCHNITZELJAGD); }; /////////////////////////////////////////////////////////////////////// // Info PERM wenn Prüfung erfolgreich und die anderen noch nicht. /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_Todo (C_INFO) { npc = KDF_500_Pyrokar; nr = 2; condition = DIA_Pyrokar_Todo_Condition; information = DIA_Pyrokar_Todo_Info; permanent = TRUE; important = TRUE; }; func int DIA_Pyrokar_Todo_Condition () { if (MIS_SCHNITZELJAGD == LOG_SUCCESS) && (Npc_IsInState (self, ZS_Talk)) && (other.guild == GIL_NOV) && ((MIS_RUNE != LOG_SUCCESS) || (MIS_GOLEM != LOG_SUCCESS)) { return TRUE; }; }; func void DIA_Pyrokar_Todo_Info () { AI_Output (self, other, "DIA_Pyrokar_Todo_11_00"); //Prošel jsi zkouškou, kterou jsem ti pâichystal. AI_Output (self, other, "DIA_Pyrokar_Todo_11_01"); //Ale... if (MIS_RUNE != LOG_SUCCESS) { AI_Output (self, other, "DIA_Pyrokar_Todo_11_02"); //... ale ještę musíš splnit Uthlarův úkol. }; if (MIS_GOLEM != LOG_SUCCESS) { AI_Output (self, other, "DIA_Pyrokar_Todo_11_03"); //... ještę musíš dokončit Serpentesův test. }; AI_StopProcessInfos (self); }; /////////////////////////////////////////////////////////////////////// // Info AUFNAHME /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_MAGICAN (C_INFO) { npc = KDF_500_Pyrokar; nr = 3; condition = DIA_Pyrokar_MAGICAN_Condition; information = DIA_Pyrokar_MAGICAN_Info; permanent = FALSE; description = "A budu teë pâijat do Společenstva mágů?"; }; func int DIA_Pyrokar_MAGICAN_Condition () { if (MIS_SCHNITZELJAGD == LOG_SUCCESS) && (MIS_RUNE == LOG_SUCCESS) && (MIS_GOLEM == LOG_SUCCESS) && (other.guild == GIL_NOV) { return TRUE; }; }; func void DIA_Pyrokar_MAGICAN_Info () { AI_Output (other, self, "DIA_Pyrokar_MAGICAN_15_00"); //A budu teë pâijat do Společenstva mágů? AI_Output (self, other, "DIA_Pyrokar_MAGICAN_11_01"); //Dokázal jsi to. Prošel jsi Zkouškou ohnę. Celou dobu jsme si tvým úspęchem byli jistí. AI_Output (self, other, "DIA_Pyrokar_MAGICAN_11_02"); //(neústupnę) Tak jako je jisté, že ze sebe vydáš to nejlepší, aby ses mohl stát ctihodným služebníkem Innose. AI_Output (self, other, "DIA_Pyrokar_MAGICAN_11_03"); //Takže pokud jsi pâipraven složit Pâísahu ohnę, pâijmeme tę mezi sebe jako mága. }; /////////////////////////////////////////////////////////////////////// // Info OATH /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_OATH (C_INFO) { npc = KDF_500_Pyrokar; nr = 1; condition = DIA_Pyrokar_OATH_Condition; information = DIA_Pyrokar_OATH_Info; permanent = FALSE; description = "Jsem pâipraven vstoupit to Kruhu ohnę."; }; func int DIA_Pyrokar_OATH_Condition () { if (Npc_KnowsInfo (hero, DIA_Pyrokar_MAGICAN)) && (hero.guild == GIL_NOV) { return TRUE; }; }; func void DIA_Pyrokar_OATH_Info () { AI_Output (other, self, "DIA_Pyrokar_OATH_15_00"); //Jsem pâipraven vstoupit to Kruhu ohnę. AI_Output (self, other, "DIA_Pyrokar_OATH_11_01"); //Dobrá, tak slož svatou Pâísahu ohnę. AI_Output (self, other, "DIA_Pyrokar_OATH_11_02"); //(vážnę) Pâísaháš pâed Innosem, který je naším Všemohoucím, jeho služebníky a Svatým plamenem... AI_Output (self, other, "DIA_Pyrokar_OATH_11_03"); //... že od nynęjška navždy bude celý tvůj život zasvęcen ohni... AI_Output (self, other, "DIA_Pyrokar_OATH_11_04"); //... dokud tvé tęlo a tvá duše nenalezne odpočinku v jeho svatých komnatách a plamen tvého života nevyhasne? AI_Output (other, self, "DIA_Pyrokar_OATH_15_05"); //Pâísahám. AI_Output (self, other, "DIA_Pyrokar_OATH_11_06"); //Vyâčením slov pâísahy jsi vstoupil do svazku s ohnęm. AI_Output (self, other, "DIA_Pyrokar_OATH_11_07"); //Nos tuto róbu jako symbol vęčného pouta. CreateInvItems (hero,ITAR_KDF_L,1); AI_EquipArmor (hero,ITAR_KDF_L); other.guild = GIL_KDF; Npc_ExchangeRoutine (Lothar, "START"); Npc_SetTrueGuild (other, GIL_KDF); Fire_Contest = TRUE;//fürs Log Snd_Play ("LEVELUP"); KDF_Aufnahme = LOG_SUCCESS; SLD_Aufnahme = LOG_OBSOLETE; MIL_Aufnahme = LOG_OBSOLETE; B_GivePlayerXP (XP_BecomeMage); AI_Output (self, other, "DIA_Pyrokar_OATH_11_08"); //Teë, když jsme tę pâijali mezi nás, si můžeš promluvit s lordem Hagenem, nejvyšším velitelem paladinů. AI_Output (self, other, "DIA_Pyrokar_OATH_11_09"); //Taky bychom velmi rádi vędęli, jak on hodnotí situaci. Takže je ti dovoleno odejít do Khorinisu. AI_Output (self, other, "DIA_Pyrokar_OATH_11_10"); //Očekáváme, že nám odpovęë doneseš neprodlenę. }; /////////////////////////////////////////////////////////////////////// // Info Lernen /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_Lernen (C_INFO) { npc = KDF_500_Pyrokar; nr = 2; condition = DIA_Pyrokar_Lernen_Condition; information = DIA_Pyrokar_Lernen_Info; PERMANENT = FALSE; description = "Co všechno se teë můžu naučit?"; }; func int DIA_Pyrokar_Lernen_Condition () { if (other.guild == GIL_KDF) { return TRUE; }; }; func void DIA_Pyrokar_Lernen_Info () { AI_Output (other, self, "DIA_Pyrokar_Lernen_15_00"); //Co všechno se teë můžu naučit? AI_Output (self, other, "DIA_Pyrokar_Lernen_11_01"); //Hlavnę máš teë právo dozvędęt se vše, co se týká magických kruhů. Dají ti moc, kterou budeš potâebovat k používání magických run. AI_Output (self, other, "DIA_Pyrokar_Lernen_11_02"); //Čím vyššího magického kruhu dosáhneš, tím silnęjší kouzla budeš moci používat. AI_Output (self, other, "DIA_Pyrokar_Lernen_11_03"); //Od bratrů v klášteâe se můžeš naučit magickým formulím. Každý z nich se zamęâuje na určitou oblast, o které tę mohou hodnę naučit. AI_Output (self, other, "DIA_Pyrokar_Lernen_11_04"); //Napâíklad Karras je mistrem vzývání a vyvolávání. Hyglas tę zase zasvętí do ohnivé magie. AI_Output (self, other, "DIA_Pyrokar_Lernen_11_05"); //Nikdo toho o síle mrazu neví víc než Marduk. Parlan tę může naučit všechna ostatní zaklínadla - a zasvętí tę do prvních kruhů. AI_Output (self, other, "DIA_Pyrokar_Lernen_11_06"); //Ale mohou tę naučit jen magickým formulím - runy si budeš muset vyrobit sám. Log_CreateTopic (Topic_KlosterTeacher,LOG_NOTE); B_LogEntry (Topic_KlosterTeacher,"Bratr Parlan mę uvede do prvních magických kruhů."); B_LogEntry (Topic_KlosterTeacher,"Bratr Karras vyučuje formule pro invokační a vyvolávací kouzla."); B_LogEntry (Topic_KlosterTeacher,"Bratr Hyglas mi pâiblíží tajemství ohnę."); B_LogEntry (Topic_KlosterTeacher,"Bratr Marduk mę seznámí s mocí ledu a bouâí."); B_LogEntry (Topic_KlosterTeacher,"Bratr Parlan vyučuje různé další formule."); }; /////////////////////////////////////////////////////////////////////// // Info Wunsch /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_Wunsch (C_INFO) { npc = KDF_500_Pyrokar; nr = 2; condition = DIA_Pyrokar_Wunsch_Condition; information = DIA_Pyrokar_Wunsch_Info; PERMANENT = FALSE; description = "Chtęl bych vyslovit jedno pâání."; }; func int DIA_Pyrokar_Wunsch_Condition () { if (other.guild == GIL_KDF) && (Kapitel < 2) { return TRUE; }; }; func void DIA_Pyrokar_Wunsch_Info () { AI_Output (other, self, "DIA_Pyrokar_Wunsch_15_00"); //Chtęl bych vyslovit jedno pâání. AI_Output (self, other, "DIA_Pyrokar_Wunsch_11_01"); //Poté, co je každý mág pâijat do Společenstva, má právo prvního skutku. AI_Output (self, other, "DIA_Pyrokar_Wunsch_11_02"); //Tak co udęláš jako první vęc v roli mága? Info_ClearChoices (DIA_Pyrokar_Wunsch); Info_AddChoice (DIA_Pyrokar_Wunsch,"Nic.",DIA_Pyrokar_Wunsch_Nothing); if (MIS_HelpBabo == LOG_RUNNING) { Info_AddChoice (DIA_Pyrokar_Wunsch,"Nechă se novým klášterním zahradníkem stane Babo.",DIA_Pyrokar_Wunsch_Babo); }; if (MIS_HelpOpolos == LOG_RUNNING ) { Info_AddChoice (DIA_Pyrokar_Wunsch,"Aă má novic Opolos pâístup do knihovny.",DIA_Pyrokar_Wunsch_Opolos); }; if (MIS_HelpDyrian == LOG_RUNNING) { Info_AddChoice (DIA_Pyrokar_Wunsch,"Kdyby tak Dyrian zůstal i nadále v klášteâe.",DIA_Pyrokar_Wunsch_Dyrian); }; }; FUNC VOID DIA_Pyrokar_Wunsch_Nothing () { AI_Teleport (Dyrian,"TAVERNE"); AI_Output (other,self ,"DIA_Pyrokar_Wunsch_Nothing_15_00"); //Nic. AI_Output (self ,other,"DIA_Pyrokar_Wunsch_Nothing_11_01"); //(užasle) Tak tedy budiž. Nový mág se vzdal svého činu. B_StartOtherRoutine (Dyrian,"NOFAVOUR"); if (MIS_HelpDyrian == LOG_RUNNING) { MIS_HelpDyrian = LOG_FAILED; }; if (MIS_HelpOpolos == LOG_RUNNING ) { MIS_HelpOpolos = LOG_FAILED; }; if (MIS_HelpBabo == LOG_RUNNING) { MIS_HelpBabo = LOG_FAILED; }; Info_ClearChoices (DIA_Pyrokar_Wunsch); }; FUNC VOID DIA_Pyrokar_Wunsch_Dyrian () { AI_Output (other,self ,"DIA_Pyrokar_Wunsch_Dyrian_15_00"); //Aă novic Dyrian zůstane v klášteâe. AI_Output (self ,other,"DIA_Pyrokar_Wunsch_Dyrian_11_01"); //Jak si pâeješ. AI_Output (self ,other,"DIA_Pyrokar_Wunsch_Dyrian_11_02"); //Novicovi bude dovoleno zůstat v klášteâe a bude zastávat funkci zahradníka, která je právę k dispozici. B_GivePlayerXP (XP_HelpDyrian); B_StartOtherRoutine (Dyrian,"FAVOUR"); MIS_HelpDyrian = LOG_SUCCESS; if (MIS_HelpOpolos == LOG_RUNNING ) { MIS_HelpOpolos = LOG_FAILED; }; if (MIS_HelpBabo == LOG_RUNNING) { MIS_HelpBabo = LOG_FAILED; }; Info_ClearChoices (DIA_Pyrokar_Wunsch); }; FUNC VOID DIA_Pyrokar_Wunsch_Babo () { AI_Teleport (Dyrian,"TAVERNE"); AI_Output (other,self ,"DIA_Pyrokar_Wunsch_Babo_15_00"); //Aă se novic Babo stará o klášterní zahradu. AI_Output (self ,other,"DIA_Pyrokar_Wunsch_Babo_11_01"); //Jak si pâeješ. AI_Output (self ,other,"DIA_Pyrokar_Wunsch_Babo_11_02"); //Novicovi Babovi se s okamžitou platností svęâuje do péče klášterní zahrada. B_GivePlayerXP (XP_HelpBabo); B_StartOtherRoutine (Babo,"FAVOUR"); B_StartOtherRoutine (Dyrian,"NOFAVOUR"); MIS_HelpBabo = LOG_SUCCESS; if (MIS_HelpDyrian == LOG_RUNNING) { MIS_HelpDyrian = LOG_FAILED; }; if (MIS_HelpOpolos == LOG_RUNNING ) { MIS_HelpOpolos = LOG_FAILED; }; Info_ClearChoices (DIA_Pyrokar_Wunsch); }; FUNC VOID DIA_Pyrokar_Wunsch_Opolos () { AI_Teleport (Dyrian,"TAVERNE"); AI_Output (other,self ,"DIA_Pyrokar_Wunsch_Opolos_15_00"); //Aă má novic Opolos pâístup do knihovny. AI_Output (self ,other,"DIA_Pyrokar_Wunsch_Opolos_11_01"); //Jak si pâeješ. AI_Output (self ,other,"DIA_Pyrokar_Wunsch_Opolos_11_02"); //Odteë může novic Opolos studovat Innosovo písmo. B_GivePlayerXP (XP_HelpOpolos); B_StartOtherRoutine (Opolos,"FAVOUR"); B_StartOtherRoutine(Dyrian,"NOFAVOUR"); MIS_HelpOpolos = LOG_SUCCESS; if (MIS_HelpDyrian == LOG_RUNNING) { MIS_HelpDyrian = LOG_FAILED; }; if (MIS_HelpBabo == LOG_RUNNING) { MIS_HelpBabo = LOG_FAILED; }; Info_ClearChoices (DIA_Pyrokar_Wunsch); }; /////////////////////////////////////////////////////////////////////// // Info war bei LH und nicht in der OW /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_Nachricht (C_INFO) { npc = KDF_500_Pyrokar; nr = 2; condition = DIA_Pyrokar_Nachricht_Condition; information = DIA_Pyrokar_Nachricht_Info; permanent = FALSE; description = "Mám zprávy od lorda Hagena..."; }; func int DIA_Pyrokar_Nachricht_Condition () { if (MIS_OLDWORLD == LOG_RUNNING) && (other.guild == GIL_KDF) { return TRUE; }; }; func void DIA_Pyrokar_Nachricht_Info () { AI_Output (other, self, "DIA_Pyrokar_Nachricht_15_00"); //Mám zprávy od lorda Hagena. Požaduje důkazy o pâítomnosti draků a armády zla. if (EnterOW_Kapitel2 == FALSE) { AI_Teleport (Sergio,"NW_MONASTERY_PLACE_09"); AI_Output (other, self, "DIA_Pyrokar_Nachricht_15_01"); //Takže vyrazím do Hornického údolí a pâinesu jim ten důkaz. AI_Output (self, other, "DIA_Pyrokar_Nachricht_11_02"); //Dobrá. Tak tedy splŕ tento úkol. Paladin Sergio tę doprovodí do průsmyku. AI_Output (self, other, "DIA_Pyrokar_Nachricht_11_03"); //Nechă tę Innos ochraŕuje. Sergio_Follow = TRUE; AI_StopProcessInfos (self); B_StartOtherRoutine (Sergio,"WAITFORPLAYER"); } else { AI_Output (other, self, "DIA_Pyrokar_Nachricht_15_04"); //Takže vyrazím pâímo do Hornického údolí. AI_Output (self, other, "DIA_Pyrokar_Nachricht_11_05"); //Dobrá. Jelikož cestu do Hornického údolí už znáš, nebudeš potâebovat žádný doprovod. AI_Output (self, other, "DIA_Pyrokar_Nachricht_11_06"); //Postarej se o tu záležitost pro lorda Hagena - nechă tę Innos provází. }; }; /////////////////////////////////////////////////////////////////////// // Info TEACH /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_TEACH (C_INFO) { npc = KDF_500_Pyrokar; nr = 4; condition = DIA_Pyrokar_TEACH_Condition; information = DIA_Pyrokar_TEACH_Info; permanent = TRUE; description = "Nauč mę poslední magický kruh."; }; func int DIA_Pyrokar_TEACH_Condition () { if (Npc_GetTalentSkill (hero, NPC_TALENT_MAGE) == 5) && (Kapitel >= 5) { return TRUE; }; }; func void DIA_Pyrokar_TEACH_Info () { AI_Output (other, self, "DIA_Pyrokar_TEACH_15_00"); //Nauč mę poslední magický kruh. if (MIS_SCKnowsWayToIrdorath == TRUE) { if B_TeachMagicCircle (self,other, 6) { AI_Output (self, other, "DIA_Pyrokar_TEACH_11_01"); //Uplynulo mnoho času od chvíle, co jsi vstoupil do svazku s ohnęm. Pâihodilo se mnohé a na odpočinek nikdy nebylo pâíliš času. AI_Output (self, other, "DIA_Pyrokar_TEACH_11_02"); //Jsi Innosovým Vyvoleným. Proto budeš potâebovat všechnu svou sílu, abys obstál ve všech nadcházejících bitvách. AI_Output (self, other, "DIA_Pyrokar_TEACH_11_03"); //Teë se ode mę dočkáš zasvęcení, Vyvolený. Vstupuješ do šestého kruhu - šiâ svętlo a rozptyluj temnotu. AI_Output (self, other, "DIA_Pyrokar_TEACH_11_04"); //Teë se ode mę můžeš naučit magické formule posledního kruhu. Pokud po tom tedy toužíš. AI_Output (self, other, "DIA_Pyrokar_TEACH_11_05"); //Ach. A ještę jedna vęc - chvíli mi trvalo, než jsem tę poznal. AI_Output (self, other, "DIA_Pyrokar_TEACH_11_06"); //Męl jsi u sebe ten dopis, co ti dali, když tę uvrhli za bariéru. AI_Output (other, self, "DIA_Pyrokar_TEACH_15_07"); //Ano, ušetâil jsi mi tak spoustu tęch soudních keců. AI_Output (self, other, "DIA_Pyrokar_TEACH_11_08"); //A ty jsi Innosovým Vyvoleným. AI_Output (self, other, "DIA_Pyrokar_TEACH_11_09"); //Pâijmi teë ode mę požehnání, ó Vyvolený! AI_Output (self, other, "DIA_Pyrokar_TEACH_11_10"); //Innosi, svętlo slunce a ohni svęta, požehnej tomuto muži, tvému vyvolenému služebníkovi. AI_Output (self, other, "DIA_Pyrokar_TEACH_11_11"); //Dej mu odvahu, sílu a moudrost, aby mohl pâijmout cestu, kterou jsi mu zvolil. }; } else { AI_Output (self, other, "DIA_Pyrokar_TEACH_11_12"); //Čas ještę nenadešel. Jakmile po cestę, kterou ti Innos ukazuje, dojdeš trochu dál, pak tę začnu učit. }; }; /////////////////////////////////////////////////////////////////////// // Info SPELLS /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_SPELLS (C_INFO) { npc = KDF_500_Pyrokar; nr = 2; condition = DIA_Pyrokar_SPELLS_Condition; information = DIA_Pyrokar_SPELLS_Info; permanent = TRUE; description = "Instruuj mę (vytvoâení run)"; }; func int DIA_Pyrokar_SPELLS_Condition () { if (Npc_GetTalentSkill (hero, NPC_TALENT_MAGE) >= 6) { return TRUE; }; }; func void DIA_Pyrokar_SPELLS_Info () { var int abletolearn; abletolearn = 0; AI_Output (other, self, "DIA_Pyrokar_SPELLS_15_00"); //Instruuj mę Info_ClearChoices (DIA_Pyrokar_SPELLS); Info_AddChoice (DIA_Pyrokar_SPELLS, DIALOG_BACK, DIA_Pyrokar_SPELLS_BACK); if (PLAYER_TALENT_RUNES [SPL_Firerain] == FALSE) { Info_AddChoice (DIA_Pyrokar_SPELLS, B_BuildLearnString (NAME_SPL_Firerain, B_GetLearnCostTalent (other, NPC_TALENT_RUNES, SPL_Firerain)) ,DIA_Pyrokar_SPELLS_Firerain); abletolearn = (abletolearn +1); }; if (PLAYER_TALENT_RUNES [SPL_BreathOfDeath] == FALSE) { Info_AddChoice (DIA_Pyrokar_SPELLS, B_BuildLearnString (NAME_SPL_BreathOfDeath, B_GetLearnCostTalent (other, NPC_TALENT_RUNES, SPL_BreathOfDeath)) ,DIA_Pyrokar_SPELLS_BreathOfDeath); abletolearn = (abletolearn +1); }; if (PLAYER_TALENT_RUNES [SPL_MassDeath] == FALSE) { Info_AddChoice (DIA_Pyrokar_SPELLS, B_BuildLearnString (NAME_SPL_MassDeath, B_GetLearnCostTalent (other, NPC_TALENT_RUNES, SPL_MassDeath)) ,DIA_Pyrokar_SPELLS_MassDeath); abletolearn = (abletolearn +1); }; if (PLAYER_TALENT_RUNES [SPL_Shrink] == FALSE) { Info_AddChoice (DIA_Pyrokar_SPELLS, B_BuildLearnString (NAME_SPL_Shrink, B_GetLearnCostTalent (other, NPC_TALENT_RUNES, SPL_Shrink)) ,DIA_Pyrokar_SPELLS_Shrink); abletolearn = (abletolearn +1); }; if (abletolearn < 1) { AI_Output (self, other, "DIA_Pyrokar_SPELLS_11_01"); //Není nic dalšího, čemu bych tę mohl ještę naučit. }; }; FUNC VOID DIA_Pyrokar_SPELLS_BACK() { Info_ClearChoices (DIA_Pyrokar_SPELLS); }; FUNC VOID DIA_Pyrokar_SPELLS_Firerain() { B_TeachPlayerTalentRunes (self, other, SPL_Firerain); }; FUNC VOID DIA_Pyrokar_SPELLS_BreathOfDeath() { B_TeachPlayerTalentRunes (self, other, SPL_BreathOfDeath); }; FUNC VOID DIA_Pyrokar_SPELLS_MassDeath() { B_TeachPlayerTalentRunes (self, other, SPL_MassDeath); }; FUNC VOID DIA_Pyrokar_SPELLS_Shrink() { B_TeachPlayerTalentRunes (self, other, SPL_Shrink); }; /////////////////////////////////////////////////////////////////////// // Info Parlan /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_Parlan (C_INFO) { npc = KDF_500_Pyrokar; nr = 99; condition = DIA_Pyrokar_Parlan_Condition; information = DIA_Pyrokar_Parlan_Info; permanent = FALSE; description = "Posílá mę Parlan..."; }; func int DIA_Pyrokar_Parlan_Condition () { if (hero.guild == GIL_KDF || hero.guild == GIL_NOV || hero.guild == GIL_PAL) && (Parlan_Sends == TRUE) { return TRUE; }; }; func void DIA_Pyrokar_Parlan_Info () { AI_Output (other, self, "DIA_Pyrokar_Parlan_15_00"); //Posílá mę Parlan. Chtęl bych posílit svoji magickou moc. AI_Output (self, other, "DIA_Pyrokar_Parlan_11_01"); //Dobrá, už ses dost naučil a značnę jsi zesílil. Odteë se budeš učit ode mę. }; /////////////////////////////////////////////////////////////////////// // Info TEACH MANA /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_TEACH_MANA (C_INFO) { npc = KDF_500_Pyrokar; nr = 99; condition = DIA_Pyrokar_TEACH_MANA_Condition; information = DIA_Pyrokar_TEACH_MANA_Info; permanent = TRUE; description = "Chtęl bych posílit svoji magickou moc."; }; func int DIA_Pyrokar_TEACH_MANA_Condition () { if (hero.guild == GIL_KDF || hero.guild == GIL_NOV || hero.guild == GIL_PAL) && Npc_KnowsInfo (hero,DIA_Pyrokar_Parlan) { return TRUE; }; }; func void DIA_Pyrokar_TEACH_MANA_Info () { AI_Output (other, self, "DIA_Pyrokar_TEACH_MANA_15_00"); //Chtęl bych posílit svoji magickou moc. Info_ClearChoices (DIA_Pyrokar_TEACH_MANA); Info_AddChoice (DIA_Pyrokar_TEACH_MANA,DIALOG_BACK,DIA_Pyrokar_TEACH_MANA_BACK); Info_AddChoice (DIA_Pyrokar_TEACH_MANA, B_BuildLearnString(PRINT_LearnMANA1 , B_GetLearnCostAttribute(other, ATR_MANA_MAX)) ,DIA_Pyrokar_TEACH_MANA_1); Info_AddChoice (DIA_Pyrokar_TEACH_MANA, B_BuildLearnString(PRINT_LearnMANA5 , B_GetLearnCostAttribute(other, ATR_MANA_MAX)*5) ,DIA_Pyrokar_TEACH_MANA_5); }; FUNC VOID DIA_Pyrokar_TEACH_MANA_BACK() { if (other.attribute[ATR_MANA_MAX] >= 250) { AI_Output (self, other, "DIA_Pyrokar_TEACH_MANA_11_00"); //Cítím, že tebou magická moc prochází v plné síle. Dokonce už nejsem schopen ti ukázat, jak bys ji mohl ještę více posílit. }; Info_ClearChoices (DIA_Pyrokar_TEACH_MANA); }; FUNC VOID DIA_Pyrokar_TEACH_MANA_1() { B_TeachAttributePoints (self, other, ATR_MANA_MAX, 1, T_MEGA); Info_ClearChoices (DIA_Pyrokar_TEACH_MANA); Info_AddChoice (DIA_Pyrokar_TEACH_MANA,DIALOG_BACK,DIA_Pyrokar_TEACH_MANA_BACK); Info_AddChoice (DIA_Pyrokar_TEACH_MANA, B_BuildLearnString(PRINT_LearnMANA1 , B_GetLearnCostAttribute(other, ATR_MANA_MAX)) ,DIA_Pyrokar_TEACH_MANA_1); Info_AddChoice (DIA_Pyrokar_TEACH_MANA, B_BuildLearnString(PRINT_LearnMANA5 , B_GetLearnCostAttribute(other, ATR_MANA_MAX)*5) ,DIA_Pyrokar_TEACH_MANA_5); }; FUNC VOID DIA_Pyrokar_TEACH_MANA_5() { B_TeachAttributePoints (self, other, ATR_MANA_MAX, 5, T_MEGA); Info_ClearChoices (DIA_Pyrokar_TEACH_MANA); Info_AddChoice (DIA_Pyrokar_TEACH_MANA,DIALOG_BACK,DIA_Pyrokar_TEACH_MANA_BACK); Info_AddChoice (DIA_Pyrokar_TEACH_MANA, B_BuildLearnString(PRINT_LearnMANA1 , B_GetLearnCostAttribute(other, ATR_MANA_MAX)) ,DIA_Pyrokar_TEACH_MANA_1); Info_AddChoice (DIA_Pyrokar_TEACH_MANA, B_BuildLearnString(PRINT_LearnMANA5 , B_GetLearnCostAttribute(other, ATR_MANA_MAX)*5) ,DIA_Pyrokar_TEACH_MANA_5); }; /////////////////////////////////////////////////////////////////////// // Info PERM /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_PERM (C_INFO) { npc = KDF_500_Pyrokar; nr = 900; condition = DIA_Pyrokar_PERM_Condition; information = DIA_Pyrokar_PERM_Info; permanent = TRUE; description = "(Požehnání)"; }; func int DIA_Pyrokar_PERM_Condition () { if (Kapitel >= 2) { return TRUE; }; }; func void DIA_Pyrokar_PERM_Info () { if (hero.guild == GIL_KDF) { AI_Output (other, self, "DIA_Pyrokar_PERM_15_00"); //Požehnej mi, Mistâe. } else { AI_Output (other, self, "DIA_Pyrokar_PERM_15_01"); //Co takhle malé požehnání? Opravdu by se mi hodilo. }; if (Kapitel == 5) && (MIS_PyrokarClearDemonTower == LOG_SUCCESS) { AI_Output (self, other, "DIA_Pyrokar_PERM_11_02"); //Nechă je tvá poslední bitva proti našemu arcinepâíteli korunována úspęchem. Innos buë s tebou. } else { AI_Output (self, other, "DIA_Pyrokar_PERM_11_03"); //Nechă je Innos s tebou a zažehná všechny pekelné cesty, které se ti otevâou. }; }; //############################################################## //## //## //## KAPITEL 3 //## //## //############################################################## // ************************************************************ // EXIT KAP3 // ************************************************************ INSTANCE DIA_Pyrokar_KAP3_EXIT(C_INFO) { npc = KDF_500_Pyrokar; nr = 999; condition = DIA_Pyrokar_KAP3_EXIT_Condition; information = DIA_Pyrokar_KAP3_EXIT_Info; permanent = TRUE; description = DIALOG_ENDE; }; FUNC INT DIA_Pyrokar_KAP3_EXIT_Condition() { if (Kapitel == 3) { return TRUE; }; }; FUNC VOID DIA_Pyrokar_KAP3_EXIT_Info() { AI_StopProcessInfos (self); }; /////////////////////////////////////////////////////////////////////// // Info BackFromOW /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_BACKFROMOW (C_INFO) { npc = KDF_500_Pyrokar; nr = 30; condition = DIA_Pyrokar_BACKFROMOW_Condition; information = DIA_Pyrokar_BACKFROMOW_Info; description = "Pâicházím z Hornického údolí."; }; func int DIA_Pyrokar_BACKFROMOW_Condition () { if (Kapitel >= 3) { return TRUE; }; }; func void DIA_Pyrokar_BACKFROMOW_Info () { AI_Output (other, self, "DIA_Pyrokar_BACKFROMOW_15_00"); //Pâicházím z Hornického údolí. AI_Output (self, other, "DIA_Pyrokar_BACKFROMOW_11_01"); //Co pâinášíš za zprávy? AI_Output (other, self, "DIA_Pyrokar_BACKFROMOW_15_02"); //Nepâítel se spojil se skâetí armádou a s draky. AI_Output (self, other, "DIA_Pyrokar_BACKFROMOW_11_03"); //To už jsme se dozvędęli od Miltena - ale co královský náklad rudy? AI_Output (other, self, "DIA_Pyrokar_BACKFROMOW_15_04"); //Doly, ve kterých se tęžilo pro Garonda, nemohou uspokojit královy požadavky. AI_Output (self, other, "DIA_Pyrokar_BACKFROMOW_11_05"); //Dny jsou stále zastâenęjší a sluneční svętlo slábne. AI_Output (other, self, "DIA_Pyrokar_BACKFROMOW_15_06"); //Byl jsem napaden muži v černých kápích. AI_Output (self, other, "DIA_Pyrokar_BACKFROMOW_11_07"); //Já vím. To jsou Pátrači. Nohsledi z Beliarovy podsvętní âíše. Snaží se nad tebou získat moc. AI_Output (self, other, "DIA_Pyrokar_BACKFROMOW_11_08"); //Jakmile se tę zmocní, už to nebudeš ty. Jedinę tady v klášteâe ti pak bude pomoci. Takže buë opatrný. if (hero.guild == GIL_KDF) { Log_CreateTopic (TOPIC_DEMENTOREN, LOG_MISSION); Log_SetTopicStatus(TOPIC_DEMENTOREN, LOG_RUNNING); B_LogEntry (TOPIC_DEMENTOREN,"Pyrokar mi vyprávęl o Pátračích, mužích v černých hábitech, kteâí jsou Beliarovými nohsledy. Varoval mę, že dokáží ovládat a posednout druhé. Mám se vrátit pâímo do kláštera, aby se mi to náhodou nestalo také."); }; if ((Npc_IsDead(Karras))==FALSE) && (hero.guild == GIL_KDF) { AI_Output (self, other, "DIA_Pyrokar_BACKFROMOW_11_09"); //Požádal jsem Karrase, aby se na tu záležitost podíval. Určitę brzy dojde k nęčemu, co nám dopomůže k lepšímu pochopení toho všeho. PyrokarToldKarrasToResearchDMT = TRUE; B_LogEntry (TOPIC_DEMENTOREN,"Pyrokar nakázal Karrasovi, aby se vypoâádal s hrozbou Pátračů."); }; AI_Output (self ,other, "DIA_Pyrokar_Add_11_00"); //Tady - pokud budeš potâebovat naši pomoc, pâenese tę tahle runa pâímo do kláštera. B_GiveInvItems (self, other, itru_teleportmonastery, 1); AI_Output (self, other, "DIA_Pyrokar_BACKFROMOW_11_10"); //Pamatuj, musíme zůstat ostražití, nebo budeme odsouzeni k záhubę. }; /////////////////////////////////////////////////////////////////////// // Info GiveInnoseye /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_GIVEINNOSEYE (C_INFO) { npc = KDF_500_Pyrokar; nr = 31; condition = DIA_Pyrokar_GIVEINNOSEYE_Condition; information = DIA_Pyrokar_GIVEINNOSEYE_Info; description = "Pâišel jsem si pro Innosovo oko."; }; func int DIA_Pyrokar_GIVEINNOSEYE_Condition () { if (Kapitel == 3) && (Npc_HasItems (other,ItWr_PermissionToWearInnosEye_MIS)) { return TRUE; }; }; func void DIA_Pyrokar_GIVEINNOSEYE_Info () { AI_Output (other, self, "DIA_Pyrokar_GIVEINNOSEYE_15_00"); //Pâišel jsem si pro Innosovo oko. B_GiveInvItems (other, self, ItWr_PermissionToWearInnosEye_MIS,1); //Joly: hier kein B_UseFakeScroll(); Pyrokar poppt aus seinem Thron!!! AI_Output (self, other, "DIA_Pyrokar_GIVEINNOSEYE_11_01"); //Vidím, že tę lord Hagen povęâil údęlem nést Innosovo oko. AI_Output (self, other, "DIA_Pyrokar_GIVEINNOSEYE_11_02"); //Bojím se, že tę musím zklamat. Stali jsme se obętí zrádného spiknutí nepâítele. AI_Output (self, other, "DIA_Pyrokar_GIVEINNOSEYE_11_03"); //Innosovo oko bylo násilnę odebráno z tęchto svatých zdí. if (hero.guild == GIL_KDF) { Info_AddChoice (DIA_Pyrokar_GIVEINNOSEYE, "Kdo se opovážil, pane?", DIA_Pyrokar_GIVEINNOSEYE_wer ); } else { Info_AddChoice (DIA_Pyrokar_GIVEINNOSEYE, "Kdo to byl?", DIA_Pyrokar_GIVEINNOSEYE_wer ); }; }; func void DIA_Pyrokar_GIVEINNOSEYE_wer () { if (hero.guild == GIL_KDF) { AI_Output (other, self, "DIA_Pyrokar_GIVEINNOSEYE_wer_15_00"); //Kdo se opovážil, pane? } else { AI_Output (other, self, "DIA_Pyrokar_GIVEINNOSEYE_wer_15_01"); //Kdo to byl? }; AI_Output (self, other, "DIA_Pyrokar_GIVEINNOSEYE_wer_11_02"); //Zlo je vychytralé a vždycky pracuje v utajení. Jen velmi vzácnę se ti podaâí odhalit jeho intriky na denním svętle. AI_Output (self, other, "DIA_Pyrokar_GIVEINNOSEYE_wer_11_03"); //Ale v tęchto dnech je to jiná vęc. Nepâítel se ukazuje zcela otevâenę na ulicích, v každém domę a na každém námęstí. AI_Output (self, other, "DIA_Pyrokar_GIVEINNOSEYE_wer_11_04"); //To může znamenat jen to, že už se nebojí žádného nepâítele a nezastaví se pâed ničím. AI_Output (self, other, "DIA_Pyrokar_GIVEINNOSEYE_wer_11_05"); //Jeden z našich vęrných následovníků, kandidát na nositele róby vyvolených mágů ohnę, nečekanę zmęnil pâedmęt své vęrnosti a propadl obyčejům zla. Pedro. AI_Output (self, other, "DIA_Pyrokar_GIVEINNOSEYE_wer_11_06"); //Nepâítel se zmocnil jeho mysli a pâivedl nás tak ke strašné prohâe. AI_Output (self, other, "DIA_Pyrokar_GIVEINNOSEYE_wer_11_07"); //Pedro se probil našimi nejsvatęjšími komnatami a ukradl Oko. AI_Output (self, other, "DIA_Pyrokar_GIVEINNOSEYE_wer_11_08"); //Bojím se, že trávil pâíliš mnoho času o samotę mimo klášter, a tedy mimo dosah jeho ochranných zdí. Vystavoval se tak mnohému nebezpečí. Pedro.flags = 0; //Joly: Pedro ist nun mortal und zum Abschuß freigegeben. Pedro_Traitor = TRUE; //Joly: Pedro ist für den SC nun als Traitor bekannt. Muß hier stehen bleiben und darf nur einmal auf True gesetzt werden B_LogEntry (TOPIC_INNOSEYE, "No to jsem si mohl myslet. Trochu jsem se opozdil a ti zabednęnci z kláštera zatím dopustili, aby jim nęjaký novic pâímo pâed nosem vyfoukl Innosovo oko. Teë mi nezbývá nic jiného, než jít po tom zrádci Pedrovi a doufat, že je ještę nikomu neprodal."); B_LogEntry (TOPIC_TraitorPedro, "Innosovo oko ukradl z kláštera zrádce Pedro. Mám pocit, že ohniví mágové by ho až moc rádi dostali do rukou."); }; /////////////////////////////////////////////////////////////////////// // Info NOVIZENCHASE /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_NOVIZENCHASE (C_INFO) { npc = KDF_500_Pyrokar; nr = 34; condition = DIA_Pyrokar_NOVIZENCHASE_Condition; information = DIA_Pyrokar_NOVIZENCHASE_Info; description = "Máte tušení, kam ten zlodęj utekl?"; }; func int DIA_Pyrokar_NOVIZENCHASE_Condition () { if (Kapitel == 3) && (Pedro_Traitor == TRUE) { return TRUE; }; }; func void DIA_Pyrokar_NOVIZENCHASE_Info () { AI_Output (other, self, "DIA_Pyrokar_NOVIZENCHASE_15_00"); //Máte tušení, kam ten zlodęj utekl? AI_Output (self, other, "DIA_Pyrokar_NOVIZENCHASE_11_01"); //Pedro zneškodnil nękolik dalších noviců, kteâí se ho pokoušeli zastavit, a zmizel v ranní mlze. AI_Output (self, other, "DIA_Pyrokar_NOVIZENCHASE_11_02"); //Už se za ním vydalo mnoho noviců, aby mohli Oko vrátit v poâádku na své místo. AI_Output (self, other, "DIA_Pyrokar_NOVIZENCHASE_11_03"); //Pokud ho chceš dopadnout, musíš si pospíšit, dokud Pedro nezmizí z tvého dosahu. MIS_NovizenChase = LOG_RUNNING; }; /////////////////////////////////////////////////////////////////////// // Info FoundInnosEye /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_FOUNDINNOSEYE (C_INFO) { npc = KDF_500_Pyrokar; nr = 35; condition = DIA_Pyrokar_FOUNDINNOSEYE_Condition; information = DIA_Pyrokar_FOUNDINNOSEYE_Info; description = "Nalezl jsem Innosovo oko. Je rozbité."; }; func int DIA_Pyrokar_FOUNDINNOSEYE_Condition () { if (Kapitel == 3) && (MIS_NovizenChase == LOG_RUNNING) && ((Npc_HasItems (other,ItMi_InnosEye_Broken_MIS)) || (MIS_SCKnowsInnosEyeIsBroken == TRUE)) { return TRUE; }; }; func void DIA_Pyrokar_FOUNDINNOSEYE_Info () { AI_Output (other, self, "DIA_Pyrokar_FOUNDINNOSEYE_15_00"); //Nalezl jsem Innosovo oko. Je rozbité. AI_Output (self, other, "DIA_Pyrokar_FOUNDINNOSEYE_11_01"); //Ale... to nejde. Co se stalo? AI_Output (other, self, "DIA_Pyrokar_FOUNDINNOSEYE_15_02"); //Padlo do rukou tęch odporných zrůd. Stejnę jsem už pâišel pozdę. AI_Output (other, self, "DIA_Pyrokar_FOUNDINNOSEYE_15_03"); //Pâipravovali tam nahoâe v lesích podivné zaklínadlo pro nęjaký męsíční rituál. AI_Output (self, other, "DIA_Pyrokar_FOUNDINNOSEYE_11_04"); //Innos s námi. Znesvętili náš kruh Slunce. AI_Output (self, other, "DIA_Pyrokar_FOUNDINNOSEYE_11_05"); //Ani ve svých nejhorších nočních můrách jsem si nikdy nepâedstavoval, že se zmocní takového druhu moci. MIS_SCKnowsInnosEyeIsBroken = TRUE; MIS_NovizenChase = LOG_SUCCESS; B_GivePlayerXP (XP_Ambient); Info_ClearChoices (DIA_Pyrokar_FOUNDINNOSEYE); Info_AddChoice (DIA_Pyrokar_FOUNDINNOSEYE, "Co budeme dęlat teë?", DIA_Pyrokar_FOUNDINNOSEYE_was ); }; func void DIA_Pyrokar_FOUNDINNOSEYE_was () { AI_Output (other, self, "DIA_Pyrokar_FOUNDINNOSEYE_was_15_00"); //Co budeme dęlat teë? AI_Output (self, other, "DIA_Pyrokar_FOUNDINNOSEYE_was_11_01"); //Nepâítel se stal velmi silným. Ještę stále však pro nęj tenhle artefakt pâedstavuje mocnou hrozbu. AI_Output (self, other, "DIA_Pyrokar_FOUNDINNOSEYE_was_11_02"); //Musíme Innosovo oko opravit a navrátit mu jeho starou sílu. Ale čas je proti nám. AI_Output (self, other, "DIA_Pyrokar_FOUNDINNOSEYE_was_11_03"); //Nedokážu si pâedstavit, co se s námi všemi stane. Bez ochrany Oka jsme nepâíteli vydáni na milost. AI_Output (self, other, "DIA_Pyrokar_FOUNDINNOSEYE_was_11_04"); //Zajdi do męsta za Vatrasem, vodním mágem. Za tęchto strašných okolností si bude vędęt rady jedinę on. Vezmi Oko k nęmu a pospęš si. Info_AddChoice (DIA_Pyrokar_FOUNDINNOSEYE, DIALOG_BACK, DIA_Pyrokar_FOUNDINNOSEYE_weiter ); if (hero.guild == GIL_KDF) { Info_AddChoice (DIA_Pyrokar_FOUNDINNOSEYE, "Proč Vatras?", DIA_Pyrokar_FOUNDINNOSEYE_was_vatras ); }; Info_AddChoice (DIA_Pyrokar_FOUNDINNOSEYE, "Co je to kruh Slunce?", DIA_Pyrokar_FOUNDINNOSEYE_sonnenkreis ); B_LogEntry (TOPIC_INNOSEYE, "Pyrokar chce, abych ve męstę poprosil o radu mágy vody a otázal se jich, co dęlat s poškozeným Okem."); MIS_Pyrokar_GoToVatrasInnoseye = LOG_RUNNING; }; func void DIA_Pyrokar_FOUNDINNOSEYE_was_vatras () { AI_Output (other, self, "DIA_Pyrokar_FOUNDINNOSEYE_was_vatras_15_00"); //Proč Vatras? AI_Output (self, other, "DIA_Pyrokar_FOUNDINNOSEYE_was_vatras_11_01"); //Privilegium nosit róbu ti ještę neopravŕuje k tomu, aby ses vyptával na důvody mých instrukcí, bratâe. AI_Output (self, other, "DIA_Pyrokar_FOUNDINNOSEYE_was_vatras_11_02"); //Vatras je Adanosův služebník. Vędomosti toho vodního mága nám pâinesou trochu svętla do tohoto temného času. AI_Output (self, other, "DIA_Pyrokar_FOUNDINNOSEYE_was_vatras_11_03"); //To je vše, co potâebuješ vędęt. }; func void DIA_Pyrokar_FOUNDINNOSEYE_sonnenkreis () { AI_Output (other, self, "DIA_Pyrokar_FOUNDINNOSEYE_sonnenkreis_15_00"); //Co je to kruh Slunce? AI_Output (self, other, "DIA_Pyrokar_FOUNDINNOSEYE_sonnenkreis_11_01"); //Každoročnę se v čase slunovratu všichni mágové a novicové kláštera vydávají na cestu na toto místo, aby tak pâivítali počátek nového cyklu. AI_Output (self, other, "DIA_Pyrokar_FOUNDINNOSEYE_sonnenkreis_11_02"); //To místo zaplŕuje nesmírná moc Slunce. AI_Output (self, other, "DIA_Pyrokar_FOUNDINNOSEYE_sonnenkreis_11_03"); //Nikdy jsem ani nepomyslel na to, že by tato moc mohla být zvrácena. A teë se právę tohle stalo. }; func void DIA_Pyrokar_FOUNDINNOSEYE_weiter () { Info_ClearChoices (DIA_Pyrokar_FOUNDINNOSEYE); }; /////////////////////////////////////////////////////////////////////// // Info spokeToVatras /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_SPOKETOVATRAS (C_INFO) { npc = KDF_500_Pyrokar; nr = 30; condition = DIA_Pyrokar_SPOKETOVATRAS_Condition; information = DIA_Pyrokar_SPOKETOVATRAS_Info; description = "Mluvil jsem s Vatrasem."; }; func int DIA_Pyrokar_SPOKETOVATRAS_Condition () { if (MIS_RitualInnosEyeRepair == LOG_RUNNING) && (Kapitel == 3) { return TRUE; }; }; func void DIA_Pyrokar_SPOKETOVATRAS_Info () { AI_Output (other, self, "DIA_Pyrokar_SPOKETOVATRAS_15_00"); //Mluvil jsem s Vatrasem. AI_Output (self, other, "DIA_Pyrokar_SPOKETOVATRAS_11_01"); //Výbornę. Kde je? AI_Output (other, self, "DIA_Pyrokar_SPOKETOVATRAS_15_02"); //Pâipravuje ve slunečním kruhu rituál potâebný k opravę Innosova oka. AI_Output (self, other, "DIA_Pyrokar_SPOKETOVATRAS_11_03"); //Pokud je to pravda, tak nám ještę možná zůstala jiskâička nadęje. AI_Output (other, self, "DIA_Pyrokar_SPOKETOVATRAS_15_04"); //Vatras chce, abyste mu s tím ty a Xardas pomohli. AI_Output (self, other, "DIA_Pyrokar_SPOKETOVATRAS_11_05"); //CO? Xardas tam bude taky? To nemůžeš myslet vážnę. AI_Output (other, self, "DIA_Pyrokar_SPOKETOVATRAS_15_06"); //Hele. Já o tom nerozhodl. Požaduje to Vatras. AI_Output (self, other, "DIA_Pyrokar_SPOKETOVATRAS_11_07"); //Poâád ten Xardas. Už mę začíná unavovat. Jen tęžko to mohlo dopadnout hůâ. AI_Output (self, other, "DIA_Pyrokar_SPOKETOVATRAS_11_08"); //Jak mám vędęt, že Xardas není ve spolku s nepâítelem? AI_Output (self, other, "DIA_Pyrokar_SPOKETOVATRAS_11_09"); //Nemůžu Xardasovi vęâit a je jedno, jak moc ho potâebujeme. AI_Output (self, other, "DIA_Pyrokar_SPOKETOVATRAS_11_10"); //Je mi líto, ale za tęchto okolností nemohu Vatrasovi pomoci. B_GivePlayerXP (XP_Ambient); }; /////////////////////////////////////////////////////////////////////// // Info XardasVertrauen /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_XARDASVERTRAUEN (C_INFO) { npc = KDF_500_Pyrokar; nr = 30; condition = DIA_Pyrokar_XARDASVERTRAUEN_Condition; information = DIA_Pyrokar_XARDASVERTRAUEN_Info; description = "Bez tebe to nepůjde. Vatras není schopen ten rituál jinak pâipravit."; }; func int DIA_Pyrokar_XARDASVERTRAUEN_Condition () { if (Npc_KnowsInfo(other, DIA_Pyrokar_SPOKETOVATRAS)) && (Kapitel == 3) { return TRUE; }; }; func void DIA_Pyrokar_XARDASVERTRAUEN_Info () { AI_Output (other, self, "DIA_Pyrokar_XARDASVERTRAUEN_15_00"); //Bez tebe to nepůjde. Vatras není schopen ten rituál jinak pâipravit. AI_Output (other, self, "DIA_Pyrokar_XARDASVERTRAUEN_15_01"); //Budeš muset Xardasovi vęâit. AI_Output (self, other, "DIA_Pyrokar_XARDASVERTRAUEN_11_02"); //Nemůžu nic dęlat, slyšíš? Nemám ani nejmenší důkaz toho, že Xardas nepracuje proti nám. Nemůžu to udęlat. AI_Output (other, self, "DIA_Pyrokar_XARDASVERTRAUEN_15_03"); //A co když ti nęjaký důkaz seženu? AI_Output (self, other, "DIA_Pyrokar_XARDASVERTRAUEN_11_04"); //Bojím se, že to je nemožné. To by mę opravdu pâekvapilo. AI_Output (self, other, "DIA_Pyrokar_XARDASVERTRAUEN_11_05"); //A mám značné pochybnosti o tom, že by mę Xardas ještę mohl nęčím pâekvapit. I pâi jeho nevypočitatelnosti. B_LogEntry (TOPIC_INNOSEYE, "Pyrokar má z Xardase poâádný strach. Musím s Xardasem prodiskutovat, jak ho pâimęt k účasti na rituálu kruhu Slunce."); Pyrokar_DeniesInnosEyeRitual = TRUE; }; /////////////////////////////////////////////////////////////////////// // Info Buchzurueck /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_BUCHZURUECK (C_INFO) { npc = KDF_500_Pyrokar; nr = 30; condition = DIA_Pyrokar_BUCHZURUECK_Condition; information = DIA_Pyrokar_BUCHZURUECK_Info; description = "Pâinesl jsem od Xardase tuhle knihu."; }; func int DIA_Pyrokar_BUCHZURUECK_Condition () { if (Npc_HasItems (other,ItWr_XardasBookForPyrokar_Mis)) && (Kapitel == 3) { return TRUE; }; }; func void DIA_Pyrokar_BUCHZURUECK_Info () { AI_Output (other, self, "DIA_Pyrokar_BUCHZURUECK_15_00"); //Pâinesl jsem od Xardase tuhle knihu. AI_Output (other, self, "DIA_Pyrokar_BUCHZURUECK_15_01"); //Je to symbol jeho důvęryhodnosti. AI_Output (self, other, "DIA_Pyrokar_BUCHZURUECK_11_02"); //Ukaž mi to. B_GiveInvItems (other, self, ItWr_XardasBookForPyrokar_Mis,1); Npc_RemoveInvItems (self, ItWr_XardasBookForPyrokar_Mis,1); AI_Output (self, other, "DIA_Pyrokar_BUCHZURUECK_11_03"); //(vzrušenę) Ale to je neuvęâitelné. Máš ty vůbec ponętí, co je to, cos mi právę dal? AI_Output (other, self, "DIA_Pyrokar_BUCHZURUECK_15_04"); //Ehm. Ne. AI_Output (self, other, "DIA_Pyrokar_BUCHZURUECK_11_05"); //(podráždęnę) Tohle je starobylá, velmi dlouho ztracená kniha z časů dávno minulých. AI_Output (self, other, "DIA_Pyrokar_BUCHZURUECK_11_06"); //Męli jsme za to, že je ztracena jednou provždy, ale teë vidím, že Xardas celou tu dobu vędęl, co se s ní stalo. AI_Output (other, self, "DIA_Pyrokar_BUCHZURUECK_15_07"); //Takže souhlasíš s tím rituálem? AI_Output (self, other, "DIA_Pyrokar_BUCHZURUECK_11_08"); //Ano, męl bych vyrazit ke slunečnímu kruhu, ale rozhodnę ne proto, že bych byl pâesvędčený o Xardasových dobrých úmyslech. AI_Output (self, other, "DIA_Pyrokar_BUCHZURUECK_11_09"); //Vlastnę se chystám z toho psa dostat vysvętlení, kde tolik let ukrýval tu knihu. Tentokrát zašel pâíliš daleko. AI_Output (self, other, "DIA_Pyrokar_BUCHZURUECK_11_10"); //Uvidíme se u slunečního kruhu. AI_StopProcessInfos (self); AI_UseMob (self,"THRONE",-1); Npc_ExchangeRoutine (self,"RitualInnosEyeRepair"); B_LogEntry (TOPIC_INNOSEYE, "Pyrokar konečnę souhlasil, že navštíví kruh Slunce."); Pyrokar_GoesToRitualInnosEye = TRUE; }; /////////////////////////////////////////////////////////////////////// // Info preRitual /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_PRERITUAL (C_INFO) { npc = KDF_500_Pyrokar; nr = 30; condition = DIA_Pyrokar_PRERITUAL_Condition; information = DIA_Pyrokar_PRERITUAL_Info; permanent = TRUE; description = "Myslíš, že můžeš Innosovo oko opravit?"; }; func int DIA_Pyrokar_PRERITUAL_Condition () { if (Pyrokar_GoesToRitualInnosEye == TRUE) && (MIS_RitualInnosEyeRepair == LOG_RUNNING) && (Kapitel == 3) { return TRUE; }; }; func void DIA_Pyrokar_PRERITUAL_Info () { AI_Output (other, self, "DIA_Pyrokar_PRERITUAL_15_00"); //Myslíš, že můžeš Innosovo oko opravit? AI_Output (self, other, "DIA_Pyrokar_PRERITUAL_11_01"); //Tęžko âíct. Počkáme a uvidíme. }; /////////////////////////////////////////////////////////////////////// // Info AugeGeheilt /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_AUGEGEHEILT (C_INFO) { npc = KDF_500_Pyrokar; nr = 30; condition = DIA_Pyrokar_AUGEGEHEILT_Condition; information = DIA_Pyrokar_AUGEGEHEILT_Info; description = "Dokázal jsi to. Innosovo oko je zase v poâádku."; }; func int DIA_Pyrokar_AUGEGEHEILT_Condition () { if (MIS_RitualInnosEyeRepair == LOG_SUCCESS) && (Kapitel == 3) { return TRUE; }; }; func void DIA_Pyrokar_AUGEGEHEILT_Info () { AI_Output (other, self, "DIA_Pyrokar_AUGEGEHEILT_15_00"); //Dokázal jsi to. Innosovo oko je zase v poâádku. AI_Output (self, other, "DIA_Pyrokar_AUGEGEHEILT_11_01"); //Jen stęží můžu uvęâit, že je nęco takového možné. if (hero.guild == GIL_KDF) { AI_Output (other, self, "DIA_Pyrokar_AUGEGEHEILT_15_02"); //Ano, mistâe. AI_Output (self, other, "DIA_Pyrokar_AUGEGEHEILT_11_03"); //Už jsi mnohokrát prokázal, že jsi hoden Vyššího âádu ohnivých mágů. AI_Output (self, other, "DIA_Pyrokar_AUGEGEHEILT_11_04"); //Od tohoto dne jsi členem Rady a budeš nás âád reprezentovat po celém svęte. Teë jsi jedním z vyšších ohnivých mágů. AI_Output (self, other, "DIA_Pyrokar_AUGEGEHEILT_11_05"); //Užívej róbu vyvolených s důstojností a pâines âádu slávu a bohatství, můj bratâe. CreateInvItem (hero, ITAR_KDF_H); AI_EquipArmor (hero, ITAR_KDF_H); heroGIL_KDF2 = TRUE; }; }; ////////////////////////////////////////////////////////////////////// // Info Kap4_Ready /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_KAP3_READY (C_INFO) { npc = KDF_500_Pyrokar; nr = 30; condition = DIA_Pyrokar_KAP3_READY_Condition; information = DIA_Pyrokar_KAP3_READY_Info; description = "Co tu ještę musím učinit?"; }; func int DIA_Pyrokar_KAP3_READY_Condition () { if (Kapitel == 3) && (Npc_KnowsInfo(other, DIA_Pyrokar_AUGEGEHEILT)) { return TRUE; }; }; func void DIA_Pyrokar_KAP3_READY_Info () { AI_Output (other, self, "DIA_Pyrokar_KAP3_READY_15_00"); //Co tu ještę musím učinit? AI_Output (self, other, "DIA_Pyrokar_KAP3_READY_11_01"); //Neplýtvej svým časem na malichernosti. Bęž porazit draky. Tady, vezmi si Oko. CreateInvItems (self,ItMi_InnosEye_MIS,1); B_GiveInvItems (self, other, ItMi_InnosEye_MIS,1); AI_Output (self, other, "DIA_Pyrokar_KAP3_READY_11_02"); //Nezapomeŕ, že musíš s drakem nejprve promluvit, než ho napadneš. //AI_Output (self, other, "DIA_Pyrokar_KAP3_READY_11_03"); //Das Auge wird dir helfen, die Drachen dazu zu zwingen, mit dir zu reden. //AI_Output (self, other, "DIA_Pyrokar_KAP3_READY_11_04"); //Es bietet dir nicht nur Schutz gegen ihre Angriffe, es fügt ihnen auch unerträgliche Schmerzen zu, wenn du es bei dir trägst. AI_Output (self ,other, "DIA_Pyrokar_Add_11_01"); //Moc Oka pâinutí draka promluvit a âíkat pravdu. AI_Output (self ,other, "DIA_Pyrokar_Add_11_02"); //Také ti, pokud ho máš na sobę, poskytuje ochranu proti jejich útokům. AI_Output (self, other, "DIA_Pyrokar_KAP3_READY_11_05"); //Nicménę, moc Oka není nevyčerpatelná. Budeš ho muset doplŕovat magickou energií. AI_Output (self, other, "DIA_Pyrokar_KAP3_READY_11_06"); //Budeš k tomu potâebovat esenci z dračího srdce, kterou můžeš s Okem spojit za pomoci alchymistické kolony. AI_Output (self, other, "DIA_Pyrokar_KAP3_READY_11_07"); //Jedinę pak se můžeš odvážit postavit drakovi. AI_Output (other, self, "DIA_Pyrokar_KAP3_READY_15_08"); //Díky. Budu si to pamatovat. AI_Output (self, other, "DIA_Pyrokar_KAP3_READY_11_09"); //Teë máš vše, co potâebuješ. Tak jdi. Už ti nezbývá mnoho času. PLAYER_TALENT_ALCHEMY[Charge_InnosEye] = TRUE; PrintScreen (PRINT_LearnAlchemyInnosEye, -1, -1, FONT_Screen, 2); TOPIC_END_INNOSEYE = TRUE; B_GivePlayerXP (XP_Ambient); CreateInvItems (Gorax, ItMi_RuneBlank, 1); Log_CreateTopic (TOPIC_DRACHENJAGD, LOG_MISSION); Log_SetTopicStatus(TOPIC_DRACHENJAGD, LOG_RUNNING); B_LogEntry (TOPIC_DRACHENJAGD,"Teë už mohu bez obav čelit drakům - stačí si pâi boji nasadit Innosovo oko a mohu je všechny postupnę zničit. Pâed bojem si ale musím s drakem vždycky promluvit, jinak nemám šanci. Problém je, že každý takový rozhovor pâipravuje Oko o část moci. Obnovit ji mohu pouze s alchymistickou kolonou s pomocí dračího srdce a prázdné laboratorní baŕky, kde s pomocí extraktu z dračího srdce mohu moc artefaktu znovu probudit. Teprve pak se mohu postavit dalšímu obludnému ještęrovi."); MIS_ReadyforChapter4 = TRUE; //Joly: Mit dieser Varible in den Levelchange zur OW -> Kapitel 4 B_NPC_IsAliveCheck (NEWWORLD_ZEN); AI_StopProcessInfos (self); Npc_ExchangeRoutine (self,"Start"); }; /////////////////////////////////////////////////////////////////////// // Info BuchderBessenen /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_BUCHDERBESSENEN (C_INFO) { npc = KDF_500_Pyrokar; nr = 39; condition = DIA_Pyrokar_BUCHDERBESSENEN_Condition; information = DIA_Pyrokar_BUCHDERBESSENEN_Info; description = "Nalezl jsem podivný almanach."; }; func int DIA_Pyrokar_BUCHDERBESSENEN_Condition () { if (Npc_KnowsInfo(other, DIA_Pyrokar_BACKFROMOW)) && (Npc_HasItems (other,ITWR_DementorObsessionBook_MIS)) { return TRUE; }; }; func void DIA_Pyrokar_BUCHDERBESSENEN_Info () { AI_Output (other, self, "DIA_Pyrokar_BUCHDERBESSENEN_15_00"); //Nalezl jsem podivný almanach. AI_Output (self, other, "DIA_Pyrokar_BUCHDERBESSENEN_11_01"); //Opravdu? Co je to za almanach? AI_Output (other, self, "DIA_Pyrokar_BUCHDERBESSENEN_15_02"); //Nejsem si jistý. Męl jsem dojem, že ty budeš vędęt, k čemu to je. B_GiveInvItems (other, self, ITWR_DementorObsessionBook_MIS,1); AI_Output (self, other, "DIA_Pyrokar_BUCHDERBESSENEN_11_03"); //Vęru, to je velmi znepokojivé. Jsem rád, žes mi to pâinesl. To od tebe bylo opravdu moudré. B_GivePlayerXP (XP_Ambient); if (hero.guild == GIL_KDF) { AI_Output (self, other, "DIA_Pyrokar_BUCHDERBESSENEN_11_04"); //Pâedpokládám, že tam toho bude víc. Bęž a najdi více tęchto knih zatracení. AI_Output (self, other, "DIA_Pyrokar_BUCHDERBESSENEN_11_05"); //Vypadá to, že je to nástroj moci Pátračů. AI_Output (self, other, "DIA_Pyrokar_BUCHDERBESSENEN_11_06"); //Používají jej k ovládání ztracených duší svých obętí. AI_Output (self, other, "DIA_Pyrokar_BUCHDERBESSENEN_11_07"); //Obvykle si do tęch knih zapisují jména tęch, kterých se chtęjí zmocnit. AI_Output (self, other, "DIA_Pyrokar_BUCHDERBESSENEN_11_08"); //Poslouchej. Dám ti tenhle magický svitek. Ukáže ti jména, která jsou zanesená do tęch knih. CreateInvItems (self, ItWr_PyrokarsObsessionList, 1); B_GiveInvItems (self, other, ItWr_PyrokarsObsessionList, 1); AI_Output (self, other, "DIA_Pyrokar_BUCHDERBESSENEN_11_09"); //Najdi ty obęti a pâines mi jejich knihy. Męl bych je zprovodit ze svęta. if ((Npc_IsDead(Karras))== FALSE) { AI_Output (self, other, "DIA_Pyrokar_BUCHDERBESSENEN_11_10"); //Ale nejprve bys męl alespoŕ jednu z nich ukázat Karrasovi. Možná se mu bude pâi jeho studiích k nęčemu hodit. }; AI_Output (self, other, "DIA_Pyrokar_BUCHDERBESSENEN_11_11"); //Neudęlej hloupost a nepokoušej se je ničit sám. Ještę nejsi schopen odolat jejich moci. B_LogEntry (TOPIC_DEMENTOREN,"Pyrokar chce zlomit moc Almanachu posedlých. Dal mi proto seznam všech, které Pátrači hodlají ovládnout - postupem času se může rozrůstat o další jména."); }; AI_Output (self, other, "DIA_Pyrokar_BUCHDERBESSENEN_11_12"); //Nepâibližuj se k Pátračům, jinak tę proklejí. AI_Output (self, other, "DIA_Pyrokar_BUCHDERBESSENEN_11_13"); //Pokud nebudeš schopen odolávat jejich volání, vraă se ke mnę, jak nejrychleji to bude možné. AI_Output (self, other, "DIA_Pyrokar_BUCHDERBESSENEN_11_14"); //Pouze tady v klášteâe je tvá duše v bezpečí. if ((Npc_IsDead(Karras))== FALSE) && (hero.guild == GIL_KDF) { AI_Output (other, self, "DIA_Pyrokar_BUCHDERBESSENEN_15_15"); //Neexistuje proti tęm mentálním útokům nęjaké ochrana? AI_Output (self, other, "DIA_Pyrokar_BUCHDERBESSENEN_11_16"); //Možné to je. Karras by o tom mohl nęco vędęt. Pyrokar_AskKarrasAboutDMTAmulett = TRUE; B_LogEntry (TOPIC_DEMENTOREN,"S Karrasovou pomocí prý mohu najít ochranu pâed mentálními útoky Pátračů."); }; }; /////////////////////////////////////////////////////////////////////// // Info SCObsessed /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_SCOBSESSED (C_INFO) { npc = KDF_500_Pyrokar; nr = 70; condition = DIA_Pyrokar_SCOBSESSED_Condition; information = DIA_Pyrokar_SCOBSESSED_Info; permanent = TRUE; description = "(Vyléčit posedlost)"; }; func int DIA_Pyrokar_SCOBSESSED_Condition () { if (SC_IsObsessed == TRUE) { return TRUE; }; }; var int Got_HealObsession_Day; func void DIA_Pyrokar_SCOBSESSED_Info () { if ((Got_HealObsession_Day<=(Wld_GetDay()-2)) || (Got_HealObsession_Day == 0)) && (Npc_HasItems (other,ItPo_HealObsession_MIS) == FALSE) { if (hero.guild == GIL_KDF) { AI_Output (other, self, "DIA_Pyrokar_SCOBSESSED_15_00"); //Vyleč mę, pane, byl jsem proklet. AI_Output (self, other, "DIA_Pyrokar_SCOBSESSED_11_01"); //Budiž! Vezmi si tenhle lektvar. To tę zbaví tvých nočních můr. AI_Output (self, other, "DIA_Pyrokar_SCOBSESSED_11_02"); //Nechă je ti Innosova spása ochranou. AI_Output (self, other, "DIA_Pyrokar_SCOBSESSED_11_03"); //Jednej v jeho jménu a stâez se zlého nepâítelova pohledu. if (SC_ObsessionTimes > 3) { AI_Output (self, other, "DIA_Pyrokar_SCOBSESSED_11_04"); //Ale abych tę varoval - pokud budeš jejich vlivu vystaven pâíliš často, už pro tebe za jistých okolností nebude návratu. Vždycky na to pamatuj. }; CreateInvItems (self, ItPo_HealObsession_MIS, 2); B_GiveInvItems (self, other, ItPo_HealObsession_MIS, 2); Got_HealObsession_Day = Wld_GetDay(); } else { AI_Output (other, self, "DIA_Pyrokar_SCOBSESSED_15_05"); //Mám dojem, že jsem byl proklet. Můžeš mę vyléčit? AI_Output (self, other, "DIA_Pyrokar_SCOBSESSED_11_06"); //Ne bez důkazu tvého respektu k tomuto klášteru, můj synu. 300 zlatých. Info_ClearChoices (DIA_Pyrokar_SCOBSESSED); Info_AddChoice (DIA_Pyrokar_SCOBSESSED, "To je pâíliš.", DIA_Pyrokar_SCOBSESSED_nein ); Info_AddChoice (DIA_Pyrokar_SCOBSESSED, "Výbornę. Tady jsou peníze.", DIA_Pyrokar_SCOBSESSED_ok ); }; } else { AI_Output (self, other, "DIA_Pyrokar_SCOBSESSED_11_07"); //Ale vždyă ty ještę jeden léčivý lektvar máš. Vraă se, až budeš mou pomoc opravdu potâebovat. }; }; func void DIA_Pyrokar_SCOBSESSED_ok () { AI_Output (other, self, "DIA_Pyrokar_SCOBSESSED_ok_15_00"); //Výbornę. Tady jsou peníze. if (B_GiveInvItems (other, self, ItMi_Gold,300)) { AI_Output (self, other, "DIA_Pyrokar_SCOBSESSED_ok_11_01"); //Tady, vypij tohle. Nechă je ti Innosova spása ochranou. CreateInvItems (self, ItPo_HealObsession_MIS, 2); B_GiveInvItems (self, other, ItPo_HealObsession_MIS, 2); Got_HealObsession_Day = Wld_GetDay(); } else { AI_Output (self, other, "DIA_Pyrokar_SCOBSESSED_ok_11_02"); //Pâines mi ty peníze a dostane se ti pomoci. }; Info_ClearChoices (DIA_Pyrokar_SCOBSESSED); }; func void DIA_Pyrokar_SCOBSESSED_nein () { AI_Output (other, self, "DIA_Pyrokar_SCOBSESSED_nein_15_00"); //To je pâíliš. Info_ClearChoices (DIA_Pyrokar_SCOBSESSED); }; /////////////////////////////////////////////////////////////////////// // Info AlmanachBringen /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_AlmanachBringen (C_INFO) { npc = KDF_500_Pyrokar; nr = 5; condition = DIA_Pyrokar_AlmanachBringen_Condition; information = DIA_Pyrokar_AlmanachBringen_Info; permanent = TRUE; description = "Můžu ti o tom prokletí âíct i nęco víc."; }; func int DIA_Pyrokar_AlmanachBringen_Condition () { if (Kapitel >= 3) && (Npc_HasItems (other,ITWR_DementorObsessionBook_MIS) >= 1) && (hero.guild == GIL_KDF) && (Npc_KnowsInfo(other, DIA_Pyrokar_BUCHDERBESSENEN)) { return TRUE; }; }; var int AlmanachCounter; var int DIA_Pyrokar_AlmanachBringen_OneTime; func void DIA_Pyrokar_AlmanachBringen_Info () { AI_Output (other, self, "DIA_Pyrokar_AlmanachBringen_15_00"); //Můžu ti o tom prokletí âíct i nęco víc. AI_Output (self, other, "DIA_Pyrokar_AlmanachBringen_11_01"); //Mluv, bratâe. var int AlmanachCount; var int XP_KDF_BringAlmanachs; var int AlmanachGeld; var int PyrokarsAlmanachOffer; PyrokarsAlmanachOffer = 400; //Joly: Gold für einen Almanach AlmanachCount = Npc_HasItems(other, ITWR_DementorObsessionBook_MIS); if (AlmanachCount == 1) { AI_Output (other, self, "DIA_Pyrokar_AlmanachBringen_15_02"); //Nalezl jsem další almanach. B_GivePlayerXP (XP_KDF_BringAlmanach); B_GiveInvItems (other, self, ITWR_DementorObsessionBook_MIS,1); AlmanachCounter = AlmanachCounter + 1; } else { AI_Output (other, self, "DIA_Pyrokar_AlmanachBringen_15_03"); //Mám pro tebe tęch Spáčových knih ještę víc. B_GiveInvItems (other, self, ITWR_DementorObsessionBook_MIS, AlmanachCount); XP_KDF_BringAlmanachs = (AlmanachCount * XP_KDF_BringAlmanach); AlmanachCounter = (AlmanachCounter + AlmanachCount); B_GivePlayerXP (XP_KDF_BringAlmanachs); }; if (AlmanachCounter <= 5) { AI_Output (self, other, "DIA_Pyrokar_AlmanachBringen_11_04"); //Dobrá. Nicménę se obávám, že je jich k nalezení mnohem víc. Pokračuj v hledání. } else if (AlmanachCounter <= 8) { AI_Output (self, other, "DIA_Pyrokar_AlmanachBringen_11_05"); //Nalezli jsme jich už mnoho. Nemyslím si však, že to jsou úplnę všechny. } else { AI_Output (self, other, "DIA_Pyrokar_AlmanachBringen_11_06"); //Už jsi mi pâinesl spoustu tęch nepâátelských knih. AI_Output (self, other, "DIA_Pyrokar_AlmanachBringen_11_07"); //Docela by mę pâekvapilo, kdyby mezi sebou męli ještę nęjakou. }; AI_Output (self, other, "DIA_Pyrokar_AlmanachBringen_11_08"); //Vezmi si tohle. Je to dárek od kláštera, který ti pomůže pokaždé, když se stâetneš se zlem. if (DIA_Pyrokar_AlmanachBringen_OneTime == FALSE) { AI_Output (self, other, "DIA_Pyrokar_AlmanachBringen_11_09"); //A nezapomeŕ se jednou za čas podívat do mého magického svitku. AI_Output (self, other, "DIA_Pyrokar_AlmanachBringen_11_10"); //Je docela dobâe možné, že se pokusí to samé provést i nękomu jinému, jehož jméno jsme v tęch knihách nenašli. DIA_Pyrokar_AlmanachBringen_OneTime = TRUE; }; AlmanachGeld = (AlmanachCount * PyrokarsAlmanachOffer); CreateInvItems (self, ItMi_Gold, AlmanachGeld); B_GiveInvItems (self, other, ItMi_Gold, AlmanachGeld); }; //##################################################################### //## //## //## KAPITEL 4 //## //## //##################################################################### // ************************************************************ // EXIT KAP4 // ************************************************************ INSTANCE DIA_Pyrokar_KAP4_EXIT(C_INFO) { npc = KDF_500_Pyrokar; nr = 999; condition = DIA_Pyrokar_KAP4_EXIT_Condition; information = DIA_Pyrokar_KAP4_EXIT_Info; permanent = TRUE; description = DIALOG_ENDE; }; FUNC INT DIA_Pyrokar_KAP4_EXIT_Condition() { if (Kapitel == 4) { return TRUE; }; }; FUNC VOID DIA_Pyrokar_KAP4_EXIT_Info() { AI_StopProcessInfos (self); }; //##################################################################### //## //## //## KAPITEL 5 //## //## //##################################################################### // ************************************************************ // EXIT KAP5 // ************************************************************ INSTANCE DIA_Pyrokar_KAP5_EXIT(C_INFO) { npc = KDF_500_Pyrokar; nr = 999; condition = DIA_Pyrokar_KAP5_EXIT_Condition; information = DIA_Pyrokar_KAP5_EXIT_Info; permanent = TRUE; description = DIALOG_ENDE; }; FUNC INT DIA_Pyrokar_KAP5_EXIT_Condition() { if (Kapitel == 5) { return TRUE; }; }; FUNC VOID DIA_Pyrokar_KAP5_EXIT_Info() { AI_StopProcessInfos (self); }; /////////////////////////////////////////////////////////////////////// // Info Drachentot /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_DRACHENTOT (C_INFO) { npc = KDF_500_Pyrokar; nr = 2; condition = DIA_Pyrokar_DRACHENTOT_Condition; information = DIA_Pyrokar_DRACHENTOT_Info; description = "Všichni draci jsou mrtví."; }; func int DIA_Pyrokar_DRACHENTOT_Condition () { if (Kapitel == 5) { return TRUE; }; }; func void DIA_Pyrokar_DRACHENTOT_Info () { AI_Output (other, self, "DIA_Pyrokar_DRACHENTOT_15_00"); //Všichni draci jsou mrtví. AI_Output (self, other, "DIA_Pyrokar_DRACHENTOT_11_01"); //To je bezesporu dobrá zpráva. Ale na situaci to nic nemęní. Vypadá to dost beznadęjnę. AI_Output (self, other, "DIA_Pyrokar_DRACHENTOT_11_02"); //Pátrači ještę poâád nezmizeli. Právę naopak. Slyšel jsem mnoho zvęstí o tom, že se posledních pár dní jejich počet ještę zvýšil. AI_Output (self, other, "DIA_Pyrokar_DRACHENTOT_11_03"); //Vybití draků męlo nepâítele zneškodnit, ale asi to nestačilo. Musíme to zlo vyrvat i s koâeny. }; /////////////////////////////////////////////////////////////////////// // Info DerMeister /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_DERMEISTER (C_INFO) { npc = KDF_500_Pyrokar; nr = 2; condition = DIA_Pyrokar_DERMEISTER_Condition; information = DIA_Pyrokar_DERMEISTER_Info; description = "Mluvil jsem s draky."; }; func int DIA_Pyrokar_DERMEISTER_Condition () { if (Kapitel == 5) { return TRUE; }; }; func void DIA_Pyrokar_DERMEISTER_Info () { AI_Output (other, self, "DIA_Pyrokar_DERMEISTER_15_00"); //Mluvil jsem s draky. AI_Output (self, other, "DIA_Pyrokar_DERMEISTER_11_01"); //Co âíkali? AI_Output (other, self, "DIA_Pyrokar_DERMEISTER_15_02"); //Povídali o moci jejich Pána a o tom, že se usadil Irdorathských síních. AI_Output (self, other, "DIA_Pyrokar_DERMEISTER_11_03"); //Innos s námi. Temný chrám znovu nabyl svou sílu a teë vysílá své posluhovače do našeho svęta. }; /////////////////////////////////////////////////////////////////////// // Info WasIstIrdorath /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_WASISTIRDORATH (C_INFO) { npc = KDF_500_Pyrokar; nr = 2; condition = DIA_Pyrokar_WASISTIRDORATH_Condition; information = DIA_Pyrokar_WASISTIRDORATH_Info; description = "Co jsou to ty Irdorathské sínę?"; }; func int DIA_Pyrokar_WASISTIRDORATH_Condition () { if (Kapitel == 5) && (Npc_KnowsInfo(other, DIA_Pyrokar_DERMEISTER)) { return TRUE; }; }; func void DIA_Pyrokar_WASISTIRDORATH_Info () { AI_Output (other, self, "DIA_Pyrokar_WASISTIRDORATH_15_00"); //Co jsou to ty Irdorathské sínę? AI_Output (self, other, "DIA_Pyrokar_WASISTIRDORATH_11_01"); //Východní chrám vzývání boha Beliara. V zemi Myrtana jsou celkem čtyâi. Ale tenhle je pravdępodobnę nejdęsivęjší ze všech. AI_Output (self, other, "DIA_Pyrokar_WASISTIRDORATH_11_02"); //Asi pâed 40 lety byly zničeny chrámy tohoto strašného božstva na západę a na severu. AI_Output (self, other, "DIA_Pyrokar_WASISTIRDORATH_11_03"); //Stateční rytíâi tęch časů srovnali ty mocné stavby se zemí. AI_Output (self, other, "DIA_Pyrokar_WASISTIRDORATH_11_04"); //Pak se černé hordy nepâátel staly proti pâevaze hrdinské odvahy rytíâů a paladinů bezmocnými. AI_Output (self, other, "DIA_Pyrokar_WASISTIRDORATH_11_05"); //Nemęlo by být pâíliš tęžké zničit i ty zbylé dva chrámy a očistit tak navždy zemi od zla. AI_Output (self, other, "DIA_Pyrokar_WASISTIRDORATH_11_06"); //... ale poté, co druhý chrám padl, prostę zmizely. AI_Output (other, self, "DIA_Pyrokar_WASISTIRDORATH_15_07"); //(posmęšnę) Zmizely. Celé chrámy. Jo, jasnę. AI_Output (self, other, "DIA_Pyrokar_WASISTIRDORATH_11_08"); //Nesmęj se. Situace je vážná. Pokud Irdorathské sínę znovu nabyly své moci, pak nebude nijak snadné nepâítele porazit. AI_Output (self, other, "DIA_Pyrokar_WASISTIRDORATH_11_09"); //Proto ho budeš muset najít a považovat to za svůj další a ještę tęžší úkol. AI_Output (other, self, "DIA_Pyrokar_WASISTIRDORATH_15_10"); //Uvidíme. B_LogEntry (TOPIC_BuchHallenVonIrdorath,"Podle Pyrokara jsou Irdoratské sínę ztraceným chrámem, kde uctívači vzývali boha Beliara. Musím jej najít."); }; /////////////////////////////////////////////////////////////////////// // Info BuchIrdorath /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_BUCHIRDORATH (C_INFO) { npc = KDF_500_Pyrokar; nr = 54; condition = DIA_Pyrokar_BUCHIRDORATH_Condition; information = DIA_Pyrokar_BUCHIRDORATH_Info; description = "Xardasova kniha, která byla považována za ztracenou - kde je?"; }; func int DIA_Pyrokar_BUCHIRDORATH_Condition () { if (Kapitel == 5) && (ItWr_HallsofIrdorathIsOpen == FALSE) && (Npc_KnowsInfo(other, DIA_Pyrokar_WASISTIRDORATH)) { return TRUE; }; }; func void DIA_Pyrokar_BUCHIRDORATH_Info () { AI_Output (other, self, "DIA_Pyrokar_BUCHIRDORATH_15_00"); //Xardasova kniha, která byla považována za ztracenou - kde je? AI_Output (self, other, "DIA_Pyrokar_BUCHIRDORATH_11_01"); //Čekal jsem, že se na to zeptáš. Ale obávám se, že ti to k ničemu nebude. AI_Output (self, other, "DIA_Pyrokar_BUCHIRDORATH_11_02"); //Byla magicky zapečetęna. Ukryl jsem ji do jedné z našich podzemních skrýší. Dokonce jsme se už pokoušeli ji otevâít. Marnę. AI_Output (self, other, "DIA_Pyrokar_BUCHIRDORATH_11_03"); //Ten zpropadený Xardas s námi hraje špinavou hru. AI_Output (other, self, "DIA_Pyrokar_BUCHIRDORATH_15_04"); //Můžu se na tu knihu podívat? AI_Output (self, other, "DIA_Pyrokar_BUCHIRDORATH_11_05"); //Jak je libo. Nedokážu si pâedstavit, že bys uspęl, když se to nepovedlo nejvętším mistrům kláštera. AI_Output (self, other, "DIA_Pyrokar_BUCHIRDORATH_11_06"); //Ale klidnę bęž a zkus to, Talamon ti nebude bránit. B_LogEntry (TOPIC_BuchHallenVonIrdorath,"Xardasova kniha Irdoratské sínę je ukryta ve sklepeních kláštera, kde ji stâeží Talamon. Mágové ji ale nedokáží otevâít - její magickou pečeă prý má na svędomí sám Xardas."); Pyrokar_LetYouPassTalamon = TRUE; }; /////////////////////////////////////////////////////////////////////// // Info IrdorathBookOpen /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_IRDORATHBOOKOPEN (C_INFO) { npc = KDF_500_Pyrokar; nr = 3; condition = DIA_Pyrokar_IRDORATHBOOKOPEN_Condition; information = DIA_Pyrokar_IRDORATHBOOKOPEN_Info; description = "Podaâilo se mi otevâít Xardasovu knihu."; }; func int DIA_Pyrokar_IRDORATHBOOKOPEN_Condition () { if (ItWr_HallsofIrdorathIsOpen == TRUE) && (Kapitel == 5) { return TRUE; }; }; func void DIA_Pyrokar_IRDORATHBOOKOPEN_Info () { AI_Output (other, self, "DIA_Pyrokar_IRDORATHBOOKOPEN_15_00"); //Podaâilo se mi otevâít Xardasovu knihu. AI_Output (self, other, "DIA_Pyrokar_IRDORATHBOOKOPEN_11_01"); //Co? Jak jsi to dokázal? Málem mę to pâivedlo k zoufalství. Info_ClearChoices (DIA_Pyrokar_IRDORATHBOOKOPEN); Info_AddChoice (DIA_Pyrokar_IRDORATHBOOKOPEN, "Xardas mi to prozradil.", DIA_Pyrokar_IRDORATHBOOKOPEN_Xardas ); Info_AddChoice (DIA_Pyrokar_IRDORATHBOOKOPEN, "Âekl bych, že štęstí si prostę jednou sedne i na vola, nic jiného.", DIA_Pyrokar_IRDORATHBOOKOPEN_glueck ); }; func void DIA_Pyrokar_IRDORATHBOOKOPEN_glueck () { AI_Output (other, self, "DIA_Pyrokar_IRDORATHBOOKOPEN_glueck_15_00"); //Âekl bych, že štęstí si prostę jednou sedne i na vola, nic jiného. AI_Output (self, other, "DIA_Pyrokar_IRDORATHBOOKOPEN_glueck_11_01"); //Nevykládej nesmysly. Štęstí! AI_Output (self, other, "DIA_Pyrokar_IRDORATHBOOKOPEN_glueck_11_02"); //Mnę se to vůbec nezdaâilo a pak je to pro nękoho jako ty úplná hračka... AI_Output (self, other, "DIA_Pyrokar_IRDORATHBOOKOPEN_glueck_11_03"); //... proto mám o čem pâemýšlet. AI_Output (self, other, "DIA_Pyrokar_IRDORATHBOOKOPEN_glueck_11_04"); //Jinak. Jelikož jsi byl jediným, kdo to dokázal otevâít, asi bude nejlepší, když ti bude svęâena do péče. Alespoŕ do té doby, než pâekonáme tuhle krizi. B_GivePlayerXP (XP_Ambient); Info_ClearChoices (DIA_Pyrokar_IRDORATHBOOKOPEN); }; func void DIA_Pyrokar_IRDORATHBOOKOPEN_Xardas () { AI_Output (other, self, "DIA_Pyrokar_IRDORATHBOOKOPEN_Xardas_15_00"); //Xardas mi to prozradil. AI_Output (self, other, "DIA_Pyrokar_IRDORATHBOOKOPEN_Xardas_11_01"); //Á, tak je to. Jak zajímavé. Jen ve tvém vlastním zájmu doufám, že tę Xardasův špatný vliv ještę nezkazil. AI_Output (self, other, "DIA_Pyrokar_IRDORATHBOOKOPEN_Xardas_11_02"); //Varuju tę. Nepodlehni úskokům toho starého zla. Mohl bys toho pozdęji litovat. B_GivePlayerXP (XP_Ambient); Info_ClearChoices (DIA_Pyrokar_IRDORATHBOOKOPEN); }; /////////////////////////////////////////////////////////////////////// // Info GeheimeBibliothek /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_GEHEIMEBIBLIOTHEK (C_INFO) { npc = KDF_500_Pyrokar; nr = 3; condition = DIA_Pyrokar_GEHEIMEBIBLIOTHEK_Condition; information = DIA_Pyrokar_GEHEIMEBIBLIOTHEK_Info; description = "V té knize je zmínka o tajné knihovnę."; }; func int DIA_Pyrokar_GEHEIMEBIBLIOTHEK_Condition () { if (ItWr_SCReadsHallsofIrdorath == TRUE) && (Kapitel == 5) && (MIS_SCKnowsWayToIrdorath == FALSE) && (Npc_KnowsInfo(other, DIA_Pyrokar_IRDORATHBOOKOPEN)) { return TRUE; }; }; func void DIA_Pyrokar_GEHEIMEBIBLIOTHEK_Info () { AI_Output (other, self, "DIA_Pyrokar_GEHEIMEBIBLIOTHEK_15_00"); //V té knize je zmínka o tajné knihovnę. AI_Output (self, other, "DIA_Pyrokar_GEHEIMEBIBLIOTHEK_11_01"); //O čem to mluvíš? AI_Output (other, self, "DIA_Pyrokar_GEHEIMEBIBLIOTHEK_15_02"); //O knihovnę tady za tou zdí. Trefil jsem se? AI_Output (self, other, "DIA_Pyrokar_GEHEIMEBIBLIOTHEK_11_03"); //Ne. Kde jsi âíkal, že by ta knihovna męla být? AI_Output (other, self, "DIA_Pyrokar_GEHEIMEBIBLIOTHEK_15_04"); //Rozumím. Nemáš tušení. Mmh. B_LogEntry (TOPIC_BuchHallenVonIrdorath,"Pyrokar o tajné knihovnę nic neví - pravdępodobnę do ní męl pâístup pouze Xardas."); }; /////////////////////////////////////////////////////////////////////// // Info SCKnowsWayToIrdorath /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_SCKNOWSWAYTOIRDORATH (C_INFO) { npc = KDF_500_Pyrokar; nr = 2; condition = DIA_Pyrokar_SCKNOWSWAYTOIRDORATH_Condition; information = DIA_Pyrokar_SCKNOWSWAYTOIRDORATH_Info; description = "Vím, kde hledat Irdorathské sínę."; }; func int DIA_Pyrokar_SCKNOWSWAYTOIRDORATH_Condition () { if (Kapitel == 5) && (MIS_SCKnowsWayToIrdorath == TRUE) && (Npc_KnowsInfo(other, DIA_Pyrokar_IRDORATHBOOKOPEN)) { return TRUE; }; }; func void DIA_Pyrokar_SCKNOWSWAYTOIRDORATH_Info () { AI_Output (other, self, "DIA_Pyrokar_SCKNOWSWAYTOIRDORATH_15_00"); //Vím, kde hledat Irdorathské sínę. AI_Output (other, self, "DIA_Pyrokar_SCKNOWSWAYTOIRDORATH_15_01"); //Ten chrám je na ostrovę. Nalezl jsem námoâní mapu, na které je zachycena cesta. AI_Output (self, other, "DIA_Pyrokar_SCKNOWSWAYTOIRDORATH_11_02"); //To je skvęlé. Tak to budeš potâebovat loë a posádku, aby ses mohl postavit nepâíteli. AI_Output (self, other, "DIA_Pyrokar_SCKNOWSWAYTOIRDORATH_11_03"); //Ale nezapomeŕ, že se musíš dobâe pâipravit, abys byl schopen porazit Pána Irdorathu. AI_Output (other, self, "DIA_Pyrokar_SCKNOWSWAYTOIRDORATH_15_04"); //Kde najdu nęjakou posádku? AI_Output (self, other, "DIA_Pyrokar_SCKNOWSWAYTOIRDORATH_11_05"); //Tvoje posádka by męla sestávat z mužů, kterým se dá vęâit. AI_Output (self, other, "DIA_Pyrokar_SCKNOWSWAYTOIRDORATH_11_06"); //Promluv si se svými pâáteli a popâemýšlej, kdo by se ti mohl hodit, až budeš na ostrovę. AI_Output (self, other, "DIA_Pyrokar_SCKNOWSWAYTOIRDORATH_11_07"); //Taky budeš potâebovat mága. Ale bohužel, já nemůžu nikoho z kláštera postrádat. AI_Output (self, other, "DIA_Pyrokar_SCKNOWSWAYTOIRDORATH_11_08"); //Budeš se muset zeptat nęjakého mága, co nežije v klášteâe. }; /////////////////////////////////////////////////////////////////////// // Info SCWillJorgen /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_SCWILLJORGEN (C_INFO) { npc = KDF_500_Pyrokar; nr = 59; condition = DIA_Pyrokar_SCWILLJORGEN_Condition; information = DIA_Pyrokar_SCWILLJORGEN_Info; description = "Jorgen je zkušeným námoâníkem. Mohl by mi pomoci dostat se na ostrov Irdorath."; }; func int DIA_Pyrokar_SCWILLJORGEN_Condition () { if (Npc_KnowsInfo(other, DIA_Jorgen_Home)) &&(Npc_KnowsInfo(other, DIA_Pyrokar_SCKNOWSWAYTOIRDORATH)) && (Kapitel == 5) { return TRUE; }; }; func void DIA_Pyrokar_SCWILLJORGEN_Info () { AI_Output (other, self, "DIA_Pyrokar_SCWILLJORGEN_15_00"); //Jorgen je zkušeným námoâníkem. Mohl by mi pomoci dostat se na ostrov Irdorath. AI_Output (self, other, "DIA_Pyrokar_SCWILLJORGEN_11_01"); //Obávám se, že to nebude tak snadné. AI_Output (self, other, "DIA_Pyrokar_SCWILLJORGEN_11_02"); //Upsal se práci pro bratrstvo. Nesložil nám ani poplatek, ani nám nepâivedl ovci. AI_Output (self, other, "DIA_Pyrokar_SCWILLJORGEN_11_03"); //Jorgen musí nejprve dokončit svou práci a pak si ho můžeš odvést, pokud budeš mít zájem. AI_Output (other, self, "DIA_Pyrokar_SCWILLJORGEN_15_04"); //Jak dlouho to bude trvat? AI_Output (self, other, "DIA_Pyrokar_SCWILLJORGEN_11_05"); //Spotâeboval tolik zásob, kolik by novicovi stačilo pâinejmenším na tâi týdny. A to za jeden den. AI_Output (self, other, "DIA_Pyrokar_SCWILLJORGEN_11_06"); //Takže ho nemůžu nechat jít dâív, než si v naší zahradę tvrdę odpracuje tâi męsíce. }; /////////////////////////////////////////////////////////////////////// // Info MachDTFrei /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_MACHDTFREI (C_INFO) { npc = KDF_500_Pyrokar; nr = 59; condition = DIA_Pyrokar_MACHDTFREI_Condition; information = DIA_Pyrokar_MACHDTFREI_Info; description = "Co musím udęlat, abych si mohl Jorgena odvést hned teë?"; }; func int DIA_Pyrokar_MACHDTFREI_Condition () { if (Npc_KnowsInfo(other, DIA_Pyrokar_SCWILLJORGEN)) && (Kapitel == 5) { return TRUE; }; }; func void DIA_Pyrokar_MACHDTFREI_Info () { AI_Output (other, self, "DIA_Pyrokar_MACHDTFREI_15_00"); //Co musím udęlat, abych si mohl Jorgena odvést hned teë? AI_Output (self, other, "DIA_Pyrokar_MACHDTFREI_11_01"); //Mmh. Jasnę, že je tu jedna vęc, kterou bys mohl udęlat. Mohly by ti s tím pomoct tvoje dobré vztahy s Xardasem. AI_Output (self, other, "DIA_Pyrokar_MACHDTFREI_11_02"); //Všiml jsem si, že se posledních pár dní dęjí na jeho vęži divné vęci. AI_Output (self, other, "DIA_Pyrokar_MACHDTFREI_11_03"); //Mnoho lidí âíká, že odtamtud v noci vycházejí různé skâeky a že nad jeho vęží tancují divná svętla. AI_Output (self, other, "DIA_Pyrokar_MACHDTFREI_11_04"); //Jako bychom nemęli dost svých vlastních starostí. Bęž zjistit, co se tam dęje, a zaâië, aă to pâestane. AI_Output (self, other, "DIA_Pyrokar_MACHDTFREI_11_05"); //Pak dostaneš Jorgena. MIS_PyrokarClearDemonTower = LOG_RUNNING; Log_CreateTopic (TOPIC_PyrokarClearDemonTower,LOG_MISSION); Log_SetTopicStatus (TOPIC_PyrokarClearDemonTower,LOG_RUNNING); B_LogEntry (TOPIC_PyrokarClearDemonTower,"V Xardasovę vęži se dęjí divné vęci. Pokud se o nę postarám, mohu vzít Jorgena s sebou."); }; /////////////////////////////////////////////////////////////////////// // Info DTCleared /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_DTCLEARED (C_INFO) { npc = KDF_500_Pyrokar; nr = 59; condition = DIA_Pyrokar_DTCLEARED_Condition; information = DIA_Pyrokar_DTCLEARED_Info; description = "Považuj tu vęc s Xardasovou vęží za vyâízenou."; }; func int DIA_Pyrokar_DTCLEARED_Condition () { if (Npc_IsDead(Xardas_DT_Demon1)) && (Npc_IsDead(Xardas_DT_Demon2)) && (Npc_IsDead(Xardas_DT_Demon3)) && (Npc_IsDead(Xardas_DT_Demon4)) && (Npc_IsDead(Xardas_DT_Demon5)) && (Npc_IsDead(Xardas_DT_DemonLord)) && (MIS_PyrokarClearDemonTower == LOG_RUNNING) { return TRUE; }; }; func void DIA_Pyrokar_DTCLEARED_Info () { AI_Output (other, self, "DIA_Pyrokar_DTCLEARED_15_00"); //Považuj tu vęc s Xardasovou vęží za vyâízenou. AI_Output (self, other, "DIA_Pyrokar_DTCLEARED_11_01"); //Tak co se tam dęlo... ne, počkej, radši to nechci vędęt. AI_Output (self, other, "DIA_Pyrokar_DTCLEARED_11_02"); //Jestli poâád chceš Jorgena, tak bęž a vezmi ho s sebou na tu svou cestu. AI_Output (self, other, "DIA_Pyrokar_DTCLEARED_11_03"); //Nechă tę Innos ochraŕuje. MIS_PyrokarClearDemonTower = LOG_SUCCESS; B_GivePlayerXP (XP_PyrokarClearDemonTower); }; /////////////////////////////////////////////////////////////////////// // Amulett des Todes /////////////////////////////////////////////////////////////////////// //--------------------------------- var int Pyro_Gives_Aura; //--------------------------------- instance DIA_Pyrokar_AmulettofDeath (C_INFO) { npc = KDF_500_Pyrokar; nr = 57; condition = DIA_Pyrokar_AmulettofDeath_Condition; information = DIA_Pyrokar_AmulettofDeath_Info; permanent = TRUE; description = "Proroctví se zmiŕuje o posvátné Innosovę auâe."; }; func int DIA_Pyrokar_AmulettofDeath_Condition () { if (PlayerGetsAmulettOfDeath == TRUE) && (Pyro_Gives_Aura == FALSE) { return TRUE; }; }; func void DIA_Pyrokar_AmulettofDeath_Info () { AI_Output (other, self, "DIA_Pyrokar_AmulettofDeath_15_00"); //Proroctví se zmiŕuje o posvátné Innosovę auâe. AI_Output (self, other, "DIA_Pyrokar_AmulettofDeath_11_01"); //Innosova aura je amulet, který je povoleno nosit jen nejvętším mágům své doby. Info_ClearChoices (DIA_Pyrokar_AmulettofDeath); Info_AddChoice (DIA_Pyrokar_AmulettofDeath,DIALOG_BACK,DIA_Pyrokar_AmulettofDeath_BAck); Info_AddChoice (DIA_Pyrokar_AmulettofDeath,"Mohl bych ho dostat?",DIA_Pyrokar_AmulettofDeath_CanHaveIt); Info_AddChoice (DIA_Pyrokar_AmulettofDeath,"Co je to za amulet?",DIA_Pyrokar_AmulettofDeath_Amulett); }; FUNC VOID DIA_Pyrokar_AmulettofDeath_BAck () { Info_ClearChoices (DIA_Pyrokar_AmulettofDeath); }; FUNC VOID DIA_Pyrokar_AmulettofDeath_CanHaveIt () { AI_Output (other,self ,"DIA_Pyrokar_AmulettofDeath_CanHaveIt_15_00"); //Mohl bych ho dostat? AI_Output (self ,other,"DIA_Pyrokar_AmulettofDeath_CanHaveIt_11_01"); //Cože? Co s ním chceš dęlat? AI_Output (other,self ,"DIA_Pyrokar_AmulettofDeath_CanHaveIt_15_02"); //Postavit se drakovi. AI_Output (self ,other,"DIA_Pyrokar_AmulettofDeath_CanHaveIt_11_03"); //Ano, samozâejmę. Dám ti ten amulet, ale zacházej s ním opatrnę. AI_Output (other,self ,"DIA_Pyrokar_AmulettofDeath_CanHaveIt_15_04"); //Jo, jasnę. AI_Output (self ,other,"DIA_Pyrokar_AmulettofDeath_CanHaveIt_11_05"); //Nerad bych jej musel pozdęji vykupovat od nęjakého kupce. AI_Output (self ,other,"DIA_Pyrokar_AmulettofDeath_CanHaveIt_11_06"); //Používej ho moudâe, a nechă tę Innos stále ochraŕuje. CreateInvItems (self,ItAm_AmulettofDeath_Mis,1); B_GiveInvItems (self,other,ItAm_AmulettOfDeath_MIS,1); Pyro_Gives_Aura = TRUE; }; FUNC VOID DIA_Pyrokar_AmulettofDeath_Amulett() { AI_Output (other,self ,"DIA_Pyrokar_AmulettofDeath_Amulett_15_00"); //Co je to za amulet? AI_Output (self ,other,"DIA_Pyrokar_AmulettofDeath_Amulett_11_01"); //Âíká se, že ho ukul sám Innos a dal jej lidstvu jako dar. AI_Output (self ,other,"DIA_Pyrokar_AmulettofDeath_Amulett_11_02"); //Ochraŕuje toho, kdo jej nosí, pâed jakoukoliv újmou. }; /////////////////////////////////////////////////////////////////////// // Trank des Todes /////////////////////////////////////////////////////////////////////// instance DIA_Pyrokar_PotionofDeath (C_INFO) { npc = KDF_500_Pyrokar; nr = 57; condition = DIA_Pyrokar_PotionofDeath_Condition; information = DIA_Pyrokar_PotionofDeath_Info; permanent = TRUE; description = "Co jsou Innosovy slzy?"; }; func int DIA_Pyrokar_PotionofDeath_Condition () { if (Npc_HasItems (other,ItPo_PotionOfDeath_01_MIS)) { return TRUE; }; }; func void DIA_Pyrokar_PotionofDeath_Info () { AI_Output (other, self, "DIA_Pyrokar_PotionofDeath_15_00"); //Co jsou Innosovy slzy? AI_Output (self, other, "DIA_Pyrokar_PotionofDeath_11_01"); //Innosovy slzy jsou jen součástí staré báchorky pro dęti. Vypráví o tom, jak na počátku časů začala bitva mezi Innosem a Beliarem. Info_ClearChoices (DIA_Pyrokar_PotionofDeath); Info_AddChoice (DIA_Pyrokar_PotionofDeath,"Aha.",DIA_Pyrokar_PotionofDeath_Aha); Info_AddChoice (DIA_Pyrokar_PotionofDeath,"Našel jsem tenhle lektvar.",DIA_Pyrokar_PotionofDeath_Potion); }; FUNC VOID DIA_Pyrokar_PotionofDeath_Aha() { AI_Output (other,self ,"DIA_Pyrokar_PotionofDeath_Aha_15_00"); //Aha. AI_Output (self ,other,"DIA_Pyrokar_PotionofDeath_Aha_11_01"); //Nevím, jestli si jsi plnę vędom toho, jaká je naše situace, ale tęžko dokážu uvęâit tomu, že bys doufal, že nepâítele porazíme pohádkou pro dęti. Info_ClearChoices (DIA_Pyrokar_PotionofDeath); }; FUNC VOID DIA_Pyrokar_PotionofDeath_Potion () { AI_Output (other,self ,"DIA_Pyrokar_PotionofDeath_Potion_15_00"); //Našel jsem tenhle lektvar. AI_Output (self ,other,"DIA_Pyrokar_PotionofDeath_Potion_11_01"); //To není možné. Tomu nemůžu uvęâit. AI_Output (other,self ,"DIA_Pyrokar_PotionofDeath_Potion_15_02"); //Co se dęje? AI_Output (self ,other,"DIA_Pyrokar_PotionofDeath_Potion_11_03"); //Pokud jsou tohle skutečné Innosovy slzy, pak... AI_Output (other,self ,"DIA_Pyrokar_PotionofDeath_Potion_15_04"); //(skočí do âeči) Tęžko. AI_Output (self ,other,"DIA_Pyrokar_PotionofDeath_Potion_11_05"); //Nepâerušuj mę. Pokud jsou tohle skutečné Innosovy slzy, pak máme proti našemu nepâíteli mocnou zbraŕ. Info_ClearChoices (DIA_Pyrokar_PotionofDeath); Info_AddChoice (DIA_Pyrokar_PotionofDeath,Dialog_back,DIA_Pyrokar_PotionofDeath_BACK); Info_AddChoice (DIA_Pyrokar_PotionofDeath,"Tak co jsou ty Innosovy slzy?",DIA_Pyrokar_PotionofDeath_Teardrops); Info_AddChoice (DIA_Pyrokar_PotionofDeath,"Co myslíš tím 'zbraŕ'?",DIA_Pyrokar_PotionofDeath_Weapon); }; FUNC VOID DIA_Pyrokar_PotionofDeath_BACK() { Info_ClearChoices (DIA_Pyrokar_PotionofDeath); }; FUNC VOID DIA_Pyrokar_PotionofDeath_Teardrops() { AI_Output (other,self ,"DIA_Pyrokar_PotionofDeath_Teardrops_15_00"); //Tak co jsou ty Innosovy slzy? AI_Output (self ,other,"DIA_Pyrokar_PotionofDeath_Teardrops_11_01"); //Když si Innos uvędomil, že aby zachránil svęt, musí bojovat proti Beliarovi, svému vlastnímu bratrovi, byl jeho zármutek nevyslovitelný. AI_Output (self ,other,"DIA_Pyrokar_PotionofDeath_Teardrops_11_02"); //Začal plakat a jeho slzy spadly dolů na svęt. Bylo jich mnoho, protože jeho srdce bylo tak plné zármutku, že plakal celých 13 let. AI_Output (other,self ,"DIA_Pyrokar_PotionofDeath_Teardrops_15_03"); //Jdi pâímo k vęci. AI_Output (self ,other,"DIA_Pyrokar_PotionofDeath_Teardrops_11_04"); //Všechny, kdo tyto slzy našli a okusili je, rázem naplnila nadpâirozená síla a bystrost. Poznali moudrost Innosova stvoâení a začali mu sloužit. AI_Output (self ,other,"DIA_Pyrokar_PotionofDeath_Teardrops_11_05"); //Byli to první členové Společenstva ohnę. Ty slzy jim daly sílu, odvahu a moudrost. Ale to už bylo velice dávno, a už více než 250 let nikdo Innosovy slzy nespatâil. Info_ClearChoices (DIA_Pyrokar_PotionofDeath); }; FUNC VOID DIA_Pyrokar_PotionofDeath_Weapon () { AI_Output (other,self ,"DIA_Pyrokar_PotionofDeath_Weapon_15_00"); //Co myslíš tím "zbraŕ"? AI_Output (self ,other,"DIA_Pyrokar_PotionofDeath_Weapon_11_01"); //Legenda vypráví, že pod vlivem této látky dokázali Innosovi válečníci vykonávat témęâ nadlidské skutky. AI_Output (self ,other,"DIA_Pyrokar_PotionofDeath_Weapon_11_02"); //Nedotkla se jich žádná únava a byli silní jako dva medvędi. AI_Output (self ,other,"DIA_Pyrokar_PotionofDeath_Weapon_11_03"); //Nejvętší hrdinské činy starých dnů bylo možné vykonat jen s pomocí Innosových slz. AI_Output (other,self ,"DIA_Pyrokar_PotionofDeath_Weapon_15_04"); //Rozumím. AI_Output (self ,other,"DIA_Pyrokar_PotionofDeath_Weapon_11_05"); //Avšak ty slzy mohou pâinést také utrpení a smrt. Tento lektvar mohou pít jen členové našeho âádu. AI_Output (self ,other,"DIA_Pyrokar_PotionofDeath_Weapon_11_06"); //Kohokoliv jiného - dokonce i paladiny našeho Pána - by okamžitę potkala krutá smrt. Npc_RemoveInvItems (hero,ItPo_PotionOfDeath_01_Mis,1); CreateInvItems (hero,ItPo_PotionOfDeath_02_Mis,1); }; //##################################################################### //## //## //## KAPITEL 6 //## //## //##################################################################### // ************************************************************ // EXIT KAP6 // ************************************************************ INSTANCE DIA_Pyrokar_KAP6_EXIT(C_INFO) { npc = KDF_500_Pyrokar; nr = 999; condition = DIA_Pyrokar_KAP6_EXIT_Condition; information = DIA_Pyrokar_KAP6_EXIT_Info; permanent = TRUE; description = DIALOG_ENDE; }; FUNC INT DIA_Pyrokar_KAP6_EXIT_Condition() { if (Kapitel == 6) { return TRUE; }; }; FUNC VOID DIA_Pyrokar_KAP6_EXIT_Info() { AI_StopProcessInfos (self); }; // ************************************************************ // PICK POCKET // ************************************************************ INSTANCE DIA_Pyrokar_PICKPOCKET (C_INFO) { npc = KDF_500_Pyrokar; nr = 900; condition = DIA_Pyrokar_PICKPOCKET_Condition; information = DIA_Pyrokar_PICKPOCKET_Info; permanent = TRUE; description = Pickpocket_120; }; FUNC INT DIA_Pyrokar_PICKPOCKET_Condition() { C_Beklauen (108, 550); }; FUNC VOID DIA_Pyrokar_PICKPOCKET_Info() { Info_ClearChoices (DIA_Pyrokar_PICKPOCKET); Info_AddChoice (DIA_Pyrokar_PICKPOCKET, DIALOG_BACK ,DIA_Pyrokar_PICKPOCKET_BACK); Info_AddChoice (DIA_Pyrokar_PICKPOCKET, DIALOG_PICKPOCKET ,DIA_Pyrokar_PICKPOCKET_DoIt); }; func void DIA_Pyrokar_PICKPOCKET_DoIt() { B_Beklauen (); Info_ClearChoices (DIA_Pyrokar_PICKPOCKET); }; func void DIA_Pyrokar_PICKPOCKET_BACK() { Info_ClearChoices (DIA_Pyrokar_PICKPOCKET); };
D
module danode.client; import core.thread : Thread; import std.array : Appender, appender; import std.conv : to; import std.datetime : Clock, SysTime, msecs, dur; import std.socket : Address, Socket; import std.string; import std.stdio : write, writefln, writeln; import danode.functions : Msecs; import danode.router : Router; import danode.httpstatus : StatusCode; import danode.interfaces : DriverInterface, ClientInterface; import danode.response : Response; import danode.request : Request; import danode.payload : Message; import danode.log : NORMAL, INFO, DEBUG; class Client : Thread, ClientInterface { private: Router router; /// Router class from server DriverInterface driver; /// Driver long maxtime; /// Maximum quiet time before we cut the connection public: bool terminated; /// Is the client / connection terminated this(Router router, DriverInterface driver, long maxtime = 5000){ // writefln("[INFO] client constructor"); this.driver = driver; this.router = router; this.maxtime = maxtime; super(&run); } final void run() { if (router.verbose >= DEBUG) writefln("[DEBUG] new connection established %s:%d", ip(), port() ); try { if (driver.openConnection() == false) { writefln("[WARN] new connection aborted: unable to open connection"); terminated = true; return; } scope (exit) { if (driver.isAlive()) driver.closeConnection(); } Request request; Response response; while (running) { if (driver.receive(driver.socket) > 0) { // We've received new data if (!response.ready) { // If we're not ready to respond yet // Parse the data and try to create a response (Could fail multiple times) router.route(ip(), port(), request, response, to!string(driver.inbuffer.data), driver.isSecure()); } if (response.ready && !response.completed) { // We know what to respond, but haven't send all of it yet driver.send(response, driver.socket); // Send the response, hit multiple times, send what you can and return } if (response.ready && response.completed) { // We've completed the request, response cycle router.logrequest(this, request, response); // Log the response to the request request.clearUploadFiles(); // Remove any upload files left over request.destroy(); // Clear the request structure driver.inbuffer.destroy(); // Clear the input buffer driver.requests++; if(!response.keepalive) stop(); // No keep alive, then stop this client response.destroy(); // Clear the response structure } } else { Thread.sleep(dur!"msecs"(1)); } if(lastmodified >= maxtime) terminated = true; // writefln("[INFO] connection %s:%s (%s msecs) %s", ip, port, Msecs(driver.starttime), to!string(driver.inbuffer.data)); Thread.yield(); } } catch(Exception e) { writefln("[WARN] unknown client exception: %s", e.msg); terminated = true; } if (router.verbose >= INFO) { writefln("[INFO] connection %s:%s (%s) closed after %d requests %s (%s msecs)", ip, port, (driver.isSecure() ? "⚐" : "⚑"), driver.requests, driver.senddata, Msecs(driver.starttime)); } driver.destroy(); // Clear the response structure } final @property bool running() { if (driver.socket is null) return(false); return(driver.socket.isAlive() && !terminated); } final @property long starttime(){ return(Msecs(driver.starttime)); } final @property long lastmodified(){ return(Msecs(driver.modtime)); } final @property void stop(){ if (router.verbose >= DEBUG) writefln("[DEBUG] connection %s:%s stop called", ip, port); terminated = true; } final @property long port() const { if (driver.address !is null) { return(to!long(driver.address.toPortString())); } return(-1); } final @property string ip() const { if (driver.address !is null) { return(driver.address.toAddrString()); } return("0.0.0.0"); } }
D
/* * Copyright (c) 2007-2008, Michael Baczynski * 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 name of the polygonal 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 arc.x.blaze.dynamics.forces.drag; import arc.x.blaze.dynamics.forces.forceGenerator; import arc.x.blaze.dynamics.Body; import arc.x.blaze.common.math; public class Drag : ForceGenerator { /** * velocity drag coefficient */ float k1; /** * velocity squared drag coefficient */ float k2; this (Body rBody, float k1, float k2 = 0) { super(rBody); this.k1 = k1; this.k2 = k2; } override void evaluate() { float mag = sqrt(rBody.linearVelocity.x * rBody.linearVelocity.x + rBody.linearVelocity.y * rBody.linearVelocity.y); float dragCoeff = -(k1 * mag + k2 * mag * mag); if (mag > 0) { rBody.force.x = rBody.force.x + (rBody.linearVelocity.x / mag) * dragCoeff; rBody.force.y = rBody.force.y + (rBody.linearVelocity.y / mag) * dragCoeff; } } }
D
module dccore.pack; struct FilePack(string path) { version (all) { enum bytes = cast(ubyte[]) import(path); string unpack() { import std.stdio; string depacked = null; try { import dccore.path; import std.algorithm; import std.file; import std.format; import std.range; import std.regex; import std.conv; depacked = buildPath(tempDir(), path); version (linux) writeln("Unpacking ", path ," to dir ", depacked); uint offset; // Read the index of the pack and write files to dir auto r = (cast(string)bytes).splitter("\n"); offset += r.front.length + 1; r.popFront(); // skip comment int lineCount = r.front.matchFirst(`files:\s(\d+)`)[1].to!int; // writeln("Reading ", lineCount, " files"); offset += r.front.length + 1; r.popFront(); struct FileInfo { string path; uint size; } FileInfo []infos; foreach (inf; r.takeExactly(lineCount)) { offset += inf.length + 1; auto m = inf.matchFirst(`"(.*)"\s(\d+)`); infos ~= FileInfo(m[1], m[2].to!uint); } r.popFrontExactly(lineCount); if (exists(depacked)) rmdirRecurse(depacked); // Extract files ranges and save to dir foreach (inf; infos) { ubyte[] fileData = bytes[offset..offset+inf.size]; offset += inf.size; // Make sure the dir exists string targetPath = buildPath(depacked, inf.path); mkdirRecurse(dirName(targetPath)); std.file.write(targetPath, fileData); // Writing the dynlib to a temporary file. //writeln("Wrote ",inf, " ", targetPath, " size ", inf.size); } } catch(Exception e) { version (linux) writeln("Error loading ", path, " pack ", e); return null; } return depacked; } } else { string unpack() { return ""; } } }
D
/Users/gbonda/Documents/Libraries/RWPickFlavor/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Notifications.o : /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/MultipartFormData.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Timeline.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Alamofire.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Response.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/TaskDelegate.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/SessionDelegate.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/ParameterEncoding.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Validation.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/ResponseSerialization.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/SessionManager.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/AFError.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Notifications.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Result.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Request.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/ServerTrustPolicy.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/gbonda/Documents/Libraries/RWPickFlavor/Pods/Headers/Public/Alamofire/Alamofire-umbrella.h /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Headers/Public/Alamofire/Alamofire.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/gbonda/Documents/Libraries/RWPickFlavor/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Notifications~partial.swiftmodule : /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/MultipartFormData.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Timeline.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Alamofire.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Response.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/TaskDelegate.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/SessionDelegate.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/ParameterEncoding.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Validation.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/ResponseSerialization.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/SessionManager.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/AFError.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Notifications.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Result.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Request.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/ServerTrustPolicy.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/gbonda/Documents/Libraries/RWPickFlavor/Pods/Headers/Public/Alamofire/Alamofire-umbrella.h /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Headers/Public/Alamofire/Alamofire.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/gbonda/Documents/Libraries/RWPickFlavor/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Notifications~partial.swiftdoc : /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/MultipartFormData.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Timeline.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Alamofire.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Response.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/TaskDelegate.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/SessionDelegate.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/ParameterEncoding.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Validation.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/ResponseSerialization.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/SessionManager.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/AFError.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Notifications.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Result.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/Request.swift /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Alamofire/Source/ServerTrustPolicy.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/gbonda/Documents/Libraries/RWPickFlavor/Pods/Headers/Public/Alamofire/Alamofire-umbrella.h /Users/gbonda/Documents/Libraries/RWPickFlavor/Pods/Headers/Public/Alamofire/Alamofire.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
module gcalendar.models.eventreminder; import std.json; import std.datetime : SysTime; import common.common; import vibe.data.json : optional; public struct EventReminder { /** Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes). Required when adding a reminder.*/ private static const string MINUTES = "minutes"; int _minutes; mixin(GetterSetter!("int", "EventReminder")(MINUTES)); /** The method used by this reminder. Possible values are: - "email" - Reminders are sent via email. - "popup" - Reminders are sent via a UI popup. Required when adding a reminder.*/ private static const string METHOD = "method"; string _method; mixin(GetterSetter!("string", "EventReminder")(METHOD)); }
D
instance Mod_7560_OUT_Malfama_EIS (Npc_Default) { // ------ NSC ------ name = "Malfama"; guild = GIL_OUT; id = 7560; voice = 43; flags = 0; npctype = NPCTYPE_MAIN; // ------ Attribute ------ B_SetAttributesToChapter (self, 1); // ------ Kampf-Taktik ------ fight_tactic = FAI_HUMAN_COWARD; // ------ Equippte Waffen ------ // ------ Inventory ------ B_CreateAmbientInv (self); EquipItem (self, ItMw_1H_quantarie_Schwert_01); // ------ visuals ------ B_SetNpcVisual (self, FEMALE, "Hum_Head_BabeHair", FaceBabe_N_HairAndCloth, BodyTex_N, ItAr_Eisgebiet_04); Mdl_SetModelFatness (self, 0); Mdl_ApplyOverlayMds (self, "Humans_Babe.mds"); // ------ NSC-relevante Talente vergeben ------ B_GiveNpcTalents (self); // ------ Kampf-Talente ------ B_SetFightSkills (self, 30); // ------ TA anmelden ------ daily_routine = Rtn_Start_7560; }; FUNC VOID Rtn_Start_7560 () { TA_Sit_Throne (06,00,08,00,"EIS_DORF_009"); TA_Smalltalk (08,00,19,00,"EIS_DORF_001"); TA_Read_Bookstand (19,00,20,00,"EIS_DORF_011"); TA_Sleep (20,00,06,00,"EIS_DORF_008"); }; FUNC VOID Rtn_ToHome_7560 () { TA_Guide_Player (08,00,19,00,"EIS_DORF_003"); TA_Guide_Player (19,00,20,00,"EIS_DORF_003"); }; FUNC VOID Rtn_Alvar_7560 () { TA_Stand_Guarding (08,00,22,00,"EIS_76"); TA_Stand_Guarding (22,00,08,00,"EIS_76"); }; FUNC VOID Rtn_Hexenmagie_7560 () { TA_Hexenmagie (08,00,22,00,"EIS_76"); TA_Hexenmagie (22,00,08,00,"EIS_76"); };
D
/mnt/c/Users/zeliwang/hello_world/digital_signature/target/release/build/rand_chacha-d3ee2903102ba03d/build_script_build-d3ee2903102ba03d: /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_chacha-0.1.1/build.rs /mnt/c/Users/zeliwang/hello_world/digital_signature/target/release/build/rand_chacha-d3ee2903102ba03d/build_script_build-d3ee2903102ba03d.d: /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_chacha-0.1.1/build.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_chacha-0.1.1/build.rs:
D
module render.sfml; import render.window; import dsfml.graphics; import scene; import math.geometry; import map.map: MapLinesDescriptor, MapCoords, MercatorCoords, BBox; import map.region.region: RoadGraphCompressed; import cat = config.categories; import map.objects_properties: LineClass; // TODO: remove it? import render.road; import map.road_graph: RoadProperties; import std.conv: to; import std.random; import std.exception: enforce; debug(sfml) import std.stdio; debug(scene) import std.stdio; debug(controls) import std.stdio; struct Vector2f /// extending sfml vector type { dsfml.graphics.Vector2f vector; alias vector this; this()( float X, float Y ) { vector = dsfml.graphics.Vector2f( X , Y ); } this(T)( T vec ) { x = vec.x; y = vec.y; } void opAssign(T)( in T v ) if( !isScalarType!(T) ) { x = v.x; y = v.y; } } alias Vector2D!float Vector2F; /// our more powerful vector class Window : IWindow { POV scene; RenderWindow window; private { VertexArray vertex_array; } this() { ContextSettings context; // FIXME: not used! context.antialiasingLevel = 4; auto vmode = VideoMode( 640, 480 ); string title = "hello world!"; window = new RenderWindow( vmode, title ); window.setFramerateLimit(24); //window.setVerticalSyncEnabled(true); } void mainCycle() { while(window.isOpen) { eventsProcessing(); window.clear(Color(0xE0, 0xE0, 0xE0)); if( scene ) { scene.calcBoundary( this ); vertex_array = new VertexArray( PrimitiveType.Points, 0 ); auto pois = scene.getPOIs(); drawPOIs( pois ); window.draw( vertex_array ); auto any = scene.getLines(); drawLines( any ); } drawCenter; window.display; } } private void drawPOIs(T)( in T pois ) { for(auto i = 0; i < pois.length; i++) { MercatorCoords node = pois[i].coords.getMercatorCoords; auto window_coords = scene.metersToScreen( node ); debug(sfml) writeln("draw point i=", i, " encoded coords=", pois[i], " meters=", node, " window_coords=", window_coords); Vector2f c; c = cartesianToSFML(window_coords ); vertex_array.append( Vertex(c, Color.Cyan) ); } } private WindowCoords[] MapToWindowCoords( MapCoords[] map_points ) const { auto res = new WindowCoords[ map_points.length ]; foreach( i, point; map_points ) res[i] = scene.metersToScreen( point.mercator ); return res; } private void drawLines( MapLinesDescriptor[] map_lines ) { RoadsSorted roads; foreach( ref reg_lines; map_lines ) { foreach( ref line; reg_lines.lines ) { MapCoords[] encoded_points; Color color; with( LineClass ) final switch( line.line_class ) { case POLYLINE: auto graph = reg_lines.region._line_graph; encoded_points = graph.getMapCoords( line.line ); auto type = graph.getEdge( line.line ).payload.type; auto prop = &polylines.getProperty( type ); color = prop.color; break; case ROAD: auto graph = reg_lines.region.layers[ reg_lines.layer_num ].road_graph; auto road = SfmlRoad( this, graph, line.road ); roads.addRoad( road ); continue; case AREA: auto area_points = line.area.perimeter.points; encoded_points = area_points ~ area_points[0]; color = line.area.properties.color; break; } auto res_points = MapToWindowCoords( encoded_points ); drawLine( res_points, color ); } debug(rtree_draw_boxes) { drawDeepenBoxes( reg_lines.lines.boxes ); } } auto path = sfmlPath( scene.found_path ); roads.addRoads( path ); drawRoads( roads ); } struct SfmlRoad { alias RoadGraph.EdgeDescr EdgeDescr; Vector2F[] coords; RoadProperties props; this( Window window, inout RoadGraphCompressed g, in EdgeDescr edge, RoadProperties* ps = null ) { auto map_coords = g.getMapCoords( edge ); WindowCoords[] cartesian = window.MapToWindowCoords( map_coords ); coords = window.cartesianToSFML( cartesian ); if( ps != null ) props = *ps; else props = g.getEdge( edge ).payload.properties; } } struct RoadsSorted { immutable static direction_layers_num = 5; immutable static layers_num = direction_layers_num * 2 + 1; immutable static ubyte max_enum = 20; // TODO: is max enum type of roads, need read it from categories.d SfmlRoad[][max_enum][ layers_num ] sorted; void addRoad( SfmlRoad road ) { auto layer = road.props.layer; enforce( layer >= -direction_layers_num ); enforce( layer <= direction_layers_num ); sorted[ layer + direction_layers_num ][ road.props.type ] ~= road; } void addRoads( SfmlRoad[] roads ) { foreach( r; roads ) addRoad( r ); } } private void drawCenter() { auto c = getCenter(); auto horiz = Vector2f(8, 0); auto vert = Vector2f(0, 8); auto cross = new VertexArray( PrimitiveType.Lines, 4 ); cross.append( Vertex(c-vert) ); cross.append( Vertex(c+vert) ); cross.append( Vertex(c-horiz) ); cross.append( Vertex(c+horiz) ); window.draw( cross ); } private void drawDeepenBoxes( DeepenBox )( inout DeepenBox[] boxes ) { foreach( ref b; boxes ) drawDeepenBox( b ); } private void drawDeepenBox( DeepenBox )( inout DeepenBox dbox ) { auto b = dbox.box; alias MapCoords.Coords Coords; MapCoords[] map_points = [ MapCoords( b.ld ), MapCoords( Coords( b.ru.x, b.ld.y ) ), MapCoords( b.ru ), MapCoords( Coords( b.ld.x, b.ru.y ) ), MapCoords( b.ld ) ]; auto points = MapToWindowCoords( map_points ); auto shade = 255.0 / 10 * dbox.depth; import core.bitop: bt; auto color = Color( 0, 0, to!ubyte( shade ) ); drawLine(points, color); } private void drawLine( WindowCoords[] coords, Color color ) { debug(sfml) writeln("draw line, nodes num=", coords.length, " color=", color); auto line = new VertexArray( PrimitiveType.LinesStrip, coords.length ); foreach( i, point; coords ) { Vector2f c; c = cartesianToSFML( point ); debug(sfml) writeln("draw line node, window coords=", c); line[i] = Vertex(c, color); } window.draw( line ); } SfmlRoad[] sfmlPath( in RoadGraphCompressed.Polylines r_path ) { size_t path_length; foreach( gline; r_path.lines ) path_length += gline.descriptors.length; SfmlRoad[] res; res.length = path_length; size_t idx; foreach( gline; r_path.lines ) foreach( edge; gline.descriptors ) { auto ps = new RoadProperties; ps.type = cat.Line.PATH; ps.weight = 1; res[idx] = SfmlRoad( this, cast(RoadGraphCompressed) gline.map_graph, edge, ps ); // FIXME: cast?! idx++; } return res; } Vector2uint getSize() { Vector2uint res = window.size; return res; } Vector2f getCenter() { Vector2f c; c = window.size; c /= 2; return c; } Vector2F cartesianToSFML( in WindowCoords from ) const { Vector2F res; res.x = from.x; res.y = to!real(window.size.y) - from.y; return res; } Vector2F[] cartesianToSFML( in WindowCoords[] from ) const { auto res = new Vector2F[ from.length ]; foreach( i, c; from ) res[i] = cartesianToSFML( c ); return res; } mixin Road; private void eventsProcessing() { Event event; while (window.pollEvent(event)) { switch( event.type ) { case Event.Closed: window.close(); break; case Event.Resized: auto visibleArea = FloatRect(0, 0, event.size.width, event.size.height); auto view = new View( visibleArea ); window.view( view ); debug(controls) writeln("window size=", window.size); break; case Event.KeyPressed: immutable auto zoom_step = 1.05; auto center = scene.getCenter; auto zoom = scene.getZoom; auto dir_step = 10.0 / zoom; switch( event.key.code ) { case Keyboard.Key.Escape: window.close(); break; case Keyboard.Key.Equal: // zoom in zoom *= zoom_step; debug(controls) writeln(scene); break; case Keyboard.Key.Dash: // zoom out zoom /= zoom_step; debug(controls) writeln(scene); break; case Keyboard.Key.Right: center.x += dir_step; debug(controls) writeln(scene); break; case Keyboard.Key.Left: center.x -= dir_step; debug(controls) writeln(scene); break; case Keyboard.Key.Up: center.y += dir_step; debug(controls) writeln(scene); break; case Keyboard.Key.Down: center.y -= dir_step; debug(controls) writeln(scene); break; case Keyboard.Key.F: debug(controls) write("Find path..."), stdout.flush(); scene.updatePath(); debug(controls) writeln("done"); break; default: break; } scene.setZoom( zoom ); scene.setCenter( center ); break; default: break; } } } } Color randomColor() { return Color( to!ubyte( uniform(30, 255) ), to!ubyte( uniform(30, 255) ), to!ubyte( uniform(30, 255) ), ); }
D
instance Mod_7184_BDT_Esteban_OC (Npc_Default) { // ------ NSC ------ name = "Esteban"; guild = GIL_OUT; id = 7184; voice = 7; flags = 2; npctype = NPCTYPE_MAIN; //------- AIVAR ------- // ------ Attribute ------ B_SetAttributesToChapter (self, 5); // ------ Kampf-Taktik ------ fight_tactic = FAI_HUMAN_STRONG; // ------ Equippte Waffen ------ EquipItem (self, ItMw_Bastardschwert); // ------ Inventory ------ B_CreateAmbientInv (self); // ------ visuals ------ B_SetNpcVisual (self, MALE, "Hum_Head_Thief", Face_L_ToughBart_Quentin, BodyTex_L, ITAR_BDT_H_01); Mdl_SetModelFatness (self, 0); Mdl_ApplyOverlayMds (self, "Humans_Arrogance.mds"); // ------ NSC-relevante Talente vergeben ------ B_GiveNpcTalents (self); // ------ Kampf-Talente ------ B_SetFightSkills (self, 50); // ------ TA anmelden ------ daily_routine = Rtn_Start_7184; }; FUNC VOID Rtn_Start_7184 () { TA_Follow_Player (08,00,20,00,"WP_OCC_258"); TA_Follow_Player (20,00,08,00,"WP_OCC_258"); }; FUNC VOID Rtn_Tot_7184() { TA_Stand_WP (08,00,20,00,"TOT"); TA_Stand_WP (20,00,08,00,"TOT"); };
D
/Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Cards.build/Objects-normal/x86_64/CardGroupSliding.o : /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/Card.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardArticle.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardGroupSliding.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardGroup.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/DetailViewController.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/LayoutHelper.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardPlayer.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/Animator.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardHighlight.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/radibarq/developer/NasaInArabic/build/Debug-iphonesimulator/Player/Player.framework/Modules/Player.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/radibarq/developer/NasaInArabic/Pods/Target\ Support\ Files/Player/Player-umbrella.h /Users/radibarq/developer/NasaInArabic/Pods/Target\ Support\ Files/Cards/Cards-umbrella.h /Users/radibarq/developer/NasaInArabic/build/Debug-iphonesimulator/Player/Player.framework/Headers/Player-Swift.h /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Cards.build/unextended-module.modulemap /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Player.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Cards.build/Objects-normal/x86_64/CardGroupSliding~partial.swiftmodule : /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/Card.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardArticle.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardGroupSliding.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardGroup.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/DetailViewController.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/LayoutHelper.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardPlayer.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/Animator.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardHighlight.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/radibarq/developer/NasaInArabic/build/Debug-iphonesimulator/Player/Player.framework/Modules/Player.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/radibarq/developer/NasaInArabic/Pods/Target\ Support\ Files/Player/Player-umbrella.h /Users/radibarq/developer/NasaInArabic/Pods/Target\ Support\ Files/Cards/Cards-umbrella.h /Users/radibarq/developer/NasaInArabic/build/Debug-iphonesimulator/Player/Player.framework/Headers/Player-Swift.h /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Cards.build/unextended-module.modulemap /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Player.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Cards.build/Objects-normal/x86_64/CardGroupSliding~partial.swiftdoc : /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/Card.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardArticle.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardGroupSliding.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardGroup.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/DetailViewController.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/LayoutHelper.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardPlayer.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/Animator.swift /Users/radibarq/developer/NasaInArabic/Pods/Cards/Cards/Sources/CardHighlight.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/radibarq/developer/NasaInArabic/build/Debug-iphonesimulator/Player/Player.framework/Modules/Player.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/radibarq/developer/NasaInArabic/Pods/Target\ Support\ Files/Player/Player-umbrella.h /Users/radibarq/developer/NasaInArabic/Pods/Target\ Support\ Files/Cards/Cards-umbrella.h /Users/radibarq/developer/NasaInArabic/build/Debug-iphonesimulator/Player/Player.framework/Headers/Player-Swift.h /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Cards.build/unextended-module.modulemap /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Player.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/** * Compiler implementation of the $(LINK2 http://www.dlang.org, D programming language) * * Do mangling for C++ linkage. * * Copyright: Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved * Authors: Walter Bright, http://www.digitalmars.com * 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/cppmangle.d, _cppmangle.d) * Documentation: https://dlang.org/phobos/dmd_cppmangle.html * Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/cppmangle.d * * References: * Follows Itanium C++ ABI 1.86 section 5.1 * http://refspecs.linux-foundation.org/cxxabi-1.86.html#mangling * which is where the grammar comments come from. * * Bugs: * https://issues.dlang.org/query.cgi * enter `C++, mangling` as the keywords. */ module dmd.cppmangle; import core.stdc.string; import core.stdc.stdio; import dmd.arraytypes; import dmd.declaration; import dmd.dsymbol; import dmd.dtemplate; import dmd.errors; import dmd.expression; import dmd.func; import dmd.globals; import dmd.id; import dmd.identifier; import dmd.mtype; import dmd.root.outbuffer; import dmd.root.rootobject; import dmd.target; import dmd.tokens; import dmd.typesem; import dmd.visitor; extern (C++): const(char)* toCppMangleItanium(Dsymbol s) { //printf("toCppMangleItanium(%s)\n", s.toChars()); OutBuffer buf; scope CppMangleVisitor v = new CppMangleVisitor(&buf, s.loc); v.mangleOf(s); return buf.extractString(); } const(char)* cppTypeInfoMangleItanium(Dsymbol s) { //printf("cppTypeInfoMangle(%s)\n", s.toChars()); OutBuffer buf; buf.writestring("_ZTI"); // "TI" means typeinfo structure scope CppMangleVisitor v = new CppMangleVisitor(&buf, s.loc); v.cpp_mangle_name(s, false); return buf.extractString(); } /****************************** * Determine if sym is the 'primary' destructor, that is, * the most-aggregate destructor (the one that is defined as __xdtor) * Params: * sym = Dsymbol * Returns: * true if sym is the primary destructor for an aggregate */ bool isPrimaryDtor(const Dsymbol sym) { const dtor = sym.isDtorDeclaration(); if (!dtor) return false; const ad = dtor.isMember(); assert(ad); return dtor == ad.dtor; } private final class CppMangleVisitor : Visitor { alias visit = Visitor.visit; Objects components; // array of components available for substitution OutBuffer* buf; // append the mangling to buf[] Loc loc; // location for use in error messages final: bool substitute(RootObject p) { //printf("substitute %s\n", p ? p.toChars() : null); auto i = find(p); if (i >= 0) { //printf("\tmatch\n"); /* Sequence is S_, S0_, .., S9_, SA_, ..., SZ_, S10_, ... */ buf.writeByte('S'); if (i) { // Write <seq-id> to buf void write_seq_id(size_t i) { if (i >= 36) { write_seq_id(i / 36); i %= 36; } i += (i < 10) ? '0' : 'A' - 10; buf.writeByte(cast(char)i); } write_seq_id(i - 1); } buf.writeByte('_'); return true; } return false; } /****** * See if `p` exists in components[] * Returns: * index if found, -1 if not */ int find(RootObject p) { //printf("find %p %d %s\n", p, p.dyncast(), p ? p.toChars() : null); foreach (i, component; components) { if (p == component) return cast(int)i; } return -1; } /********************* * Append p to components[] */ void append(RootObject p) { //printf("append %p %d %s\n", p, p.dyncast(), p ? p.toChars() : "null"); components.push(p); } /************************ * Determine if symbol is indeed the global ::std namespace. * Params: * s = symbol to check * Returns: * true if it is ::std */ static bool isStd(Dsymbol s) { return (s && s.ident == Id.std && // the right name s.isNspace() && // g++ disallows global "std" for other than a namespace !getQualifier(s)); // at global level } /****************************** * Write the mangled representation of the template arguments. * Params: * ti = the template instance */ void template_args(TemplateInstance ti) { /* <template-args> ::= I <template-arg>+ E */ if (!ti) // could happen if std::basic_string is not a template return; buf.writeByte('I'); foreach (i, o; *ti.tiargs) { TemplateDeclaration td = ti.tempdecl.isTemplateDeclaration(); assert(td); TemplateParameter tp = (*td.parameters)[i]; /* * <template-arg> ::= <type> # type or template * ::= X <expression> E # expression * ::= <expr-primary> # simple expressions * ::= I <template-arg>* E # argument pack */ if (TemplateTupleParameter tt = tp.isTemplateTupleParameter()) { buf.writeByte('I'); // argument pack // mangle the rest of the arguments as types foreach (j; i .. (*ti.tiargs).dim) { Type t = isType((*ti.tiargs)[j]); assert(t); t.accept(this); } buf.writeByte('E'); break; } if (tp.isTemplateTypeParameter()) { Type t = isType(o); assert(t); t.accept(this); } else if (TemplateValueParameter tv = tp.isTemplateValueParameter()) { // <expr-primary> ::= L <type> <value number> E # integer literal if (tv.valType.isintegral()) { Expression e = isExpression(o); assert(e); buf.writeByte('L'); tv.valType.accept(this); auto val = e.toUInteger(); if (!tv.valType.isunsigned() && cast(sinteger_t)val < 0) { val = -val; buf.writeByte('n'); } buf.print(val); buf.writeByte('E'); } else { ti.error("Internal Compiler Error: C++ `%s` template value parameter is not supported", tv.valType.toChars()); fatal(); } } else if (tp.isTemplateAliasParameter()) { Dsymbol d = isDsymbol(o); Expression e = isExpression(o); if (d && d.isFuncDeclaration()) { bool is_nested = d.toParent() && !d.toParent().isModule() && (cast(TypeFunction)d.isFuncDeclaration().type).linkage == LINK.cpp; if (is_nested) buf.writeByte('X'); buf.writeByte('L'); mangle_function(d.isFuncDeclaration()); buf.writeByte('E'); if (is_nested) buf.writeByte('E'); } else if (e && e.op == TOK.variable && (cast(VarExp)e).var.isVarDeclaration()) { VarDeclaration vd = (cast(VarExp)e).var.isVarDeclaration(); buf.writeByte('L'); mangle_variable(vd, true); buf.writeByte('E'); } else if (d && d.isTemplateDeclaration() && d.isTemplateDeclaration().onemember) { if (!substitute(d)) { cpp_mangle_name(d, false); } } else { ti.error("Internal Compiler Error: C++ `%s` template alias parameter is not supported", o.toChars()); fatal(); } } else if (tp.isTemplateThisParameter()) { ti.error("Internal Compiler Error: C++ `%s` template this parameter is not supported", o.toChars()); fatal(); } else { assert(0); } } buf.writeByte('E'); } void source_name(Dsymbol s) { //printf("source_name(%s)\n", s.toChars()); if (TemplateInstance ti = s.isTemplateInstance()) { if (!substitute(ti.tempdecl)) { append(ti.tempdecl); const name = ti.tempdecl.toAlias().ident.toString(); buf.print(name.length); buf.writestring(name); } template_args(ti); } else { const name = s.ident.toString(); buf.print(name.length); buf.writestring(name); } } /******** * See if s is actually an instance of a template * Params: * s = symbol * Returns: * if s is instance of a template, return the instance, otherwise return s */ Dsymbol getInstance(Dsymbol s) { Dsymbol p = s.toParent(); if (p) { if (TemplateInstance ti = p.isTemplateInstance()) return ti; } return s; } /******** * Get qualifier for `s`, meaning the symbol * that s is in the symbol table of. * The module does not count as a qualifier, because C++ * does not have modules. * Params: * s = symbol that may have a qualifier * s is rewritten to be TemplateInstance if s is one * Returns: * qualifier, null if none */ static Dsymbol getQualifier(Dsymbol s) { Dsymbol p = s.toParent(); return (p && !p.isModule()) ? p : null; } // Detect type char static bool isChar(RootObject o) { Type t = isType(o); return (t && t.equals(Type.tchar)); } // Detect type ::std::char_traits<char> static bool isChar_traits_char(RootObject o) { return isIdent_char(Id.char_traits, o); } // Detect type ::std::allocator<char> static bool isAllocator_char(RootObject o) { return isIdent_char(Id.allocator, o); } // Detect type ::std::ident<char> static bool isIdent_char(Identifier ident, RootObject o) { Type t = isType(o); if (!t || t.ty != Tstruct) return false; Dsymbol s = (cast(TypeStruct)t).toDsymbol(null); if (s.ident != ident) return false; Dsymbol p = s.toParent(); if (!p) return false; TemplateInstance ti = p.isTemplateInstance(); if (!ti) return false; Dsymbol q = getQualifier(ti); return isStd(q) && ti.tiargs.dim == 1 && isChar((*ti.tiargs)[0]); } /*** * Detect template args <char, ::std::char_traits<char>> * and write st if found. * Returns: * true if found */ extern (D) bool char_std_char_traits_char(TemplateInstance ti, string st) { if (ti.tiargs.dim == 2 && isChar((*ti.tiargs)[0]) && isChar_traits_char((*ti.tiargs)[1])) { buf.writestring(st.ptr); return true; } return false; } void prefix_name(Dsymbol s) { //printf("prefix_name(%s)\n", s.toChars()); if (!substitute(s)) { auto si = getInstance(s); Dsymbol p = getQualifier(si); if (p) { if (isStd(p)) { TemplateInstance ti = si.isTemplateInstance(); if (ti) { if (s.ident == Id.allocator) { buf.writestring("Sa"); template_args(ti); append(ti); return; } if (s.ident == Id.basic_string) { // ::std::basic_string<char, ::std::char_traits<char>, ::std::allocator<char>> if (ti.tiargs.dim == 3 && isChar((*ti.tiargs)[0]) && isChar_traits_char((*ti.tiargs)[1]) && isAllocator_char((*ti.tiargs)[2])) { buf.writestring("Ss"); return; } buf.writestring("Sb"); // ::std::basic_string template_args(ti); append(ti); return; } // ::std::basic_istream<char, ::std::char_traits<char>> if (s.ident == Id.basic_istream && char_std_char_traits_char(ti, "Si")) return; // ::std::basic_ostream<char, ::std::char_traits<char>> if (s.ident == Id.basic_ostream && char_std_char_traits_char(ti, "So")) return; // ::std::basic_iostream<char, ::std::char_traits<char>> if (s.ident == Id.basic_iostream && char_std_char_traits_char(ti, "Sd")) return; } buf.writestring("St"); } else prefix_name(p); } source_name(si); if (!isStd(si)) /* Do this after the source_name() call to keep components[] * in the right order. * https://issues.dlang.org/show_bug.cgi?id=17947 */ append(si); } } void cpp_mangle_name(Dsymbol s, bool qualified) { //printf("cpp_mangle_name(%s, %d)\n", s.toChars(), qualified); Dsymbol p = s.toParent(); Dsymbol se = s; bool write_prefix = true; if (p && p.isTemplateInstance()) { se = p; if (find(p.isTemplateInstance().tempdecl) >= 0) write_prefix = false; p = p.toParent(); } if (p && !p.isModule()) { /* The N..E is not required if: * 1. the parent is 'std' * 2. 'std' is the initial qualifier * 3. there is no CV-qualifier or a ref-qualifier for a member function * ABI 5.1.8 */ if (isStd(p) && !qualified) { TemplateInstance ti = se.isTemplateInstance(); if (s.ident == Id.allocator) { buf.writestring("Sa"); // "Sa" is short for ::std::allocator template_args(ti); } else if (s.ident == Id.basic_string) { // ::std::basic_string<char, ::std::char_traits<char>, ::std::allocator<char>> if (ti.tiargs.dim == 3 && isChar((*ti.tiargs)[0]) && isChar_traits_char((*ti.tiargs)[1]) && isAllocator_char((*ti.tiargs)[2])) { buf.writestring("Ss"); return; } buf.writestring("Sb"); // ::std::basic_string template_args(ti); } else { // ::std::basic_istream<char, ::std::char_traits<char>> if (s.ident == Id.basic_istream) { if (char_std_char_traits_char(ti, "Si")) return; } else if (s.ident == Id.basic_ostream) { if (char_std_char_traits_char(ti, "So")) return; } else if (s.ident == Id.basic_iostream) { if (char_std_char_traits_char(ti, "Sd")) return; } buf.writestring("St"); source_name(se); } } else { buf.writeByte('N'); if (write_prefix) prefix_name(p); source_name(se); buf.writeByte('E'); } } else source_name(se); append(s); } void CV_qualifiers(Type t) { // CV-qualifiers are 'r': restrict, 'V': volatile, 'K': const if (t.isConst()) buf.writeByte('K'); } void mangle_variable(VarDeclaration d, bool is_temp_arg_ref) { // fake mangling for fields to fix https://issues.dlang.org/show_bug.cgi?id=16525 if (!(d.storage_class & (STC.extern_ | STC.field | STC.gshared))) { d.error("Internal Compiler Error: C++ static non-`__gshared` non-`extern` variables not supported"); fatal(); } Dsymbol p = d.toParent(); if (p && !p.isModule()) //for example: char Namespace1::beta[6] should be mangled as "_ZN10Namespace14betaE" { buf.writestring("_ZN"); prefix_name(p); source_name(d); buf.writeByte('E'); } else //char beta[6] should mangle as "beta" { if (!is_temp_arg_ref) { buf.writestring(d.ident.toChars()); } else { buf.writestring("_Z"); source_name(d); } } } void mangle_function(FuncDeclaration d) { //printf("mangle_function(%s)\n", d.toChars()); /* * <mangled-name> ::= _Z <encoding> * <encoding> ::= <function name> <bare-function-type> * ::= <data name> * ::= <special-name> */ TypeFunction tf = cast(TypeFunction)d.type; buf.writestring("_Z"); if (TemplateDeclaration ftd = getFuncTemplateDecl(d)) { /* It's an instance of a function template */ TemplateInstance ti = d.parent.isTemplateInstance(); assert(ti); Dsymbol p = ti.toParent(); if (p && !p.isModule() && tf.linkage == LINK.cpp) { buf.writeByte('N'); CV_qualifiers(d.type); prefix_name(p); if (d.isCtorDeclaration()) buf.writestring("C1"); else if (d.isPrimaryDtor()) buf.writestring("D1"); else source_name(ti); buf.writeByte('E'); } else source_name(ti); headOfType(tf.nextOf()); // mangle return type } else { Dsymbol p = d.toParent(); if (p && !p.isModule() && tf.linkage == LINK.cpp) { /* <nested-name> ::= N [<CV-qualifiers>] <prefix> <unqualified-name> E * ::= N [<CV-qualifiers>] <template-prefix> <template-args> E */ buf.writeByte('N'); CV_qualifiers(d.type); /* <prefix> ::= <prefix> <unqualified-name> * ::= <template-prefix> <template-args> * ::= <template-param> * ::= # empty * ::= <substitution> * ::= <prefix> <data-member-prefix> */ prefix_name(p); //printf("p: %s\n", buf.peekString()); if (d.isCtorDeclaration()) { buf.writestring("C1"); } else if (d.isPrimaryDtor()) { buf.writestring("D1"); } else { source_name(d); } buf.writeByte('E'); } else { source_name(d); } } if (tf.linkage == LINK.cpp) //Template args accept extern "C" symbols with special mangling { assert(tf.ty == Tfunction); mangleFunctionParameters(tf.parameters, tf.varargs); } } void mangleFunctionParameters(Parameters* parameters, int varargs) { int numparams = 0; int paramsCppMangleDg(size_t n, Parameter fparam) { Type t = Target.cppParameterType(fparam); if (t.ty == Tsarray) { // Static arrays in D are passed by value; no counterpart in C++ t.error(loc, "Internal Compiler Error: unable to pass static array `%s` to extern(C++) function, use pointer instead", t.toChars()); fatal(); } headOfType(t); ++numparams; return 0; } if (parameters) Parameter._foreach(parameters, &paramsCppMangleDg); if (varargs) buf.writeByte('z'); else if (!numparams) buf.writeByte('v'); // encode (void) parameters } public: extern (D) this(OutBuffer* buf, Loc loc) { this.buf = buf; this.loc = loc; } /***** * Entry point. Append mangling to buf[] * Params: * s = symbol to mangle */ void mangleOf(Dsymbol s) { if (VarDeclaration vd = s.isVarDeclaration()) { mangle_variable(vd, false); } else if (FuncDeclaration fd = s.isFuncDeclaration()) { mangle_function(fd); } else { assert(0); } } /****** The rest is type mangling ************/ void error(Type t) { const(char)* p; if (t.isImmutable()) p = "`immutable` "; else if (t.isShared()) p = "`shared` "; else p = ""; t.error(loc, "Internal Compiler Error: %stype `%s` can not be mapped to C++\n", p, t.toChars()); fatal(); //Fatal, because this error should be handled in frontend } /**************************** * Mangle a type, * treating it as a Head followed by a Tail. * Params: * t = Head of a type */ void headOfType(Type t) { if (t.ty == Tclass) { mangleTypeClass(cast(TypeClass)t, true); } else { // For value types, strip const/immutable/shared from the head of the type t.mutableOf().unSharedOf().accept(this); } } override void visit(Type t) { error(t); } /****** * Write out 1 or 2 character basic type mangling. * Handle const and substitutions. * Params: * t = type to mangle * p = if not 0, then character prefix * c = mangling character */ void writeBasicType(Type t, char p, char c) { if (p || t.isConst()) { if (substitute(t)) return; else append(t); } CV_qualifiers(t); if (p) buf.writeByte(p); buf.writeByte(c); } override void visit(TypeNull t) { if (t.isImmutable() || t.isShared()) return error(t); writeBasicType(t, 'D', 'n'); } override void visit(TypeBasic t) { if (t.isImmutable() || t.isShared()) return error(t); /* <builtin-type>: * v void * w wchar_t * b bool * c char * a signed char * h unsigned char * s short * t unsigned short * i int * j unsigned int * l long * m unsigned long * x long long, __int64 * y unsigned long long, __int64 * n __int128 * o unsigned __int128 * f float * d double * e long double, __float80 * g __float128 * z ellipsis * Dd 64 bit IEEE 754r decimal floating point * De 128 bit IEEE 754r decimal floating point * Df 32 bit IEEE 754r decimal floating point * Dh 16 bit IEEE 754r half-precision floating point * Di char32_t * Ds char16_t * u <source-name> # vendor extended type */ char c; char p = 0; switch (t.ty) { case Tvoid: c = 'v'; break; case Tint8: c = 'a'; break; case Tuns8: c = 'h'; break; case Tint16: c = 's'; break; case Tuns16: c = 't'; break; case Tint32: c = 'i'; break; case Tuns32: c = 'j'; break; case Tfloat32: c = 'f'; break; case Tint64: c = Target.c_longsize == 8 ? Target.int64Mangle : 'x'; break; case Tuns64: c = Target.c_longsize == 8 ? Target.uint64Mangle : 'y'; break; case Tint128: c = 'n'; break; case Tuns128: c = 'o'; break; case Tfloat64: c = 'd'; break; case Tfloat80: c = 'e'; break; case Tbool: c = 'b'; break; case Tchar: c = 'c'; break; case Twchar: c = 't'; break; // unsigned short (perhaps use 'Ds' ? case Tdchar: c = 'w'; break; // wchar_t (UTF-32) (perhaps use 'Di' ? case Timaginary32: p = 'G'; c = 'f'; break; // 'G' means imaginary case Timaginary64: p = 'G'; c = 'd'; break; case Timaginary80: p = 'G'; c = 'e'; break; case Tcomplex32: p = 'C'; c = 'f'; break; // 'C' means complex case Tcomplex64: p = 'C'; c = 'd'; break; case Tcomplex80: p = 'C'; c = 'e'; break; default: // Handle any target-specific basic types. if (auto tm = Target.cppTypeMangle(t)) { if (substitute(t)) return; else append(t); CV_qualifiers(t); buf.writestring(tm); return; } return error(t); } writeBasicType(t, p, c); } override void visit(TypeVector t) { if (t.isImmutable() || t.isShared()) return error(t); if (substitute(t)) return; append(t); CV_qualifiers(t); // Handle any target-specific vector types. if (auto tm = Target.cppTypeMangle(t)) { buf.writestring(tm); } else { assert(t.basetype && t.basetype.ty == Tsarray); assert((cast(TypeSArray)t.basetype).dim); version (none) { buf.writestring("Dv"); buf.print((cast(TypeSArray *)t.basetype).dim.toInteger()); // -- Gnu ABI v.4 buf.writeByte('_'); } else buf.writestring("U8__vector"); //-- Gnu ABI v.3 t.basetype.nextOf().accept(this); } } override void visit(TypeSArray t) { if (t.isImmutable() || t.isShared()) return error(t); if (!substitute(t)) append(t); CV_qualifiers(t); buf.writeByte('A'); buf.print(t.dim ? t.dim.toInteger() : 0); buf.writeByte('_'); t.next.accept(this); } override void visit(TypePointer t) { if (t.isImmutable() || t.isShared()) return error(t); if (substitute(t)) return; CV_qualifiers(t); buf.writeByte('P'); t.next.accept(this); append(t); } override void visit(TypeReference t) { //printf("TypeReference %s\n", t.toChars()); if (substitute(t)) return; buf.writeByte('R'); t.next.accept(this); append(t); } override void visit(TypeFunction t) { /* * <function-type> ::= F [Y] <bare-function-type> E * <bare-function-type> ::= <signature type>+ * # types are possible return type, then parameter types */ /* ABI says: "The type of a non-static member function is considered to be different, for the purposes of substitution, from the type of a namespace-scope or static member function whose type appears similar. The types of two non-static member functions are considered to be different, for the purposes of substitution, if the functions are members of different classes. In other words, for the purposes of substitution, the class of which the function is a member is considered part of the type of function." BUG: Right now, types of functions are never merged, so our simplistic component matcher always finds them to be different. We should use Type.equals on these, and use different TypeFunctions for non-static member functions, and non-static member functions of different classes. */ if (substitute(t)) return; buf.writeByte('F'); if (t.linkage == LINK.c) buf.writeByte('Y'); Type tn = t.next; if (t.isref) tn = tn.referenceTo(); tn.accept(this); mangleFunctionParameters(t.parameters, t.varargs); buf.writeByte('E'); append(t); } override void visit(TypeStruct t) { if (t.isImmutable() || t.isShared()) return error(t); /* __c_long and __c_ulong get special mangling */ const id = t.sym.ident; //printf("struct id = '%s'\n", id.toChars()); if (id == Id.__c_long) return writeBasicType(t, 0, 'l'); else if (id == Id.__c_ulong) return writeBasicType(t, 0, 'm'); //printf("TypeStruct %s\n", t.toChars()); doSymbol(t); } override void visit(TypeEnum t) { if (t.isImmutable() || t.isShared()) return error(t); /* __c_(u)long(long) get special mangling */ const id = t.sym.ident; //printf("enum id = '%s'\n", id.toChars()); if (id == Id.__c_long) return writeBasicType(t, 0, 'l'); else if (id == Id.__c_ulong) return writeBasicType(t, 0, 'm'); else if (id == Id.__c_longlong) return writeBasicType(t, 0, 'x'); else if (id == Id.__c_ulonglong) return writeBasicType(t, 0, 'y'); doSymbol(t); } /**************** * Write structs and enums. * Params: * t = TypeStruct or TypeEnum */ final void doSymbol(Type t) { if (substitute(t)) return; CV_qualifiers(t); // Handle any target-specific struct types. if (auto tm = Target.cppTypeMangle(t)) { buf.writestring(tm); } else { Dsymbol s = t.toDsymbol(null); Dsymbol p = s.toParent(); if (p && p.isTemplateInstance()) { /* https://issues.dlang.org/show_bug.cgi?id=17947 * Substitute the template instance symbol, not the struct/enum symbol */ if (substitute(p)) return; } if (!substitute(s)) { cpp_mangle_name(s, t.isConst()); } } if (t.isConst()) append(t); } override void visit(TypeClass t) { mangleTypeClass(t, false); } /************************ * Mangle a class type. * If it's the head, treat the initial pointer as a value type. * Params: * t = class type * head = true for head of a type */ void mangleTypeClass(TypeClass t, bool head) { if (t.isImmutable() || t.isShared()) return error(t); /* Mangle as a <pointer to><struct> */ if (substitute(t)) return; if (!head) CV_qualifiers(t); buf.writeByte('P'); CV_qualifiers(t); { Dsymbol s = t.toDsymbol(null); Dsymbol p = s.toParent(); if (p && p.isTemplateInstance()) { /* https://issues.dlang.org/show_bug.cgi?id=17947 * Substitute the template instance symbol, not the class symbol */ if (substitute(p)) return; } } if (!substitute(t.sym)) { cpp_mangle_name(t.sym, t.isConst()); } if (t.isConst()) append(null); // C++ would have an extra type here append(t); } }
D
module godot.curve3d; import std.meta : AliasSeq, staticIndexOf; import std.traits : Unqual; import godot.d.meta; import godot.core; import godot.c; import godot.d.bind; import godot.object; import godot.classdb; import godot.resource; @GodotBaseClass struct Curve3D { static immutable string _GODOT_internal_name = "Curve3D"; public: union { godot_object _godot_object; Resource base; } alias base this; alias BaseClasses = AliasSeq!(typeof(base), typeof(base).BaseClasses); bool opEquals(in Curve3D other) const { return _godot_object.ptr is other._godot_object.ptr; } Curve3D opAssign(T : typeof(null))(T n) { _godot_object.ptr = null; } bool opEquals(typeof(null) n) const { return _godot_object.ptr is null; } mixin baseCasts; static Curve3D _new() { static godot_class_constructor constructor; if(constructor is null) constructor = godot_get_class_constructor("Curve3D"); if(constructor is null) return typeof(this).init; return cast(Curve3D)(constructor()); } package(godot) static GodotMethod!(int) _GODOT_get_point_count; package(godot) alias _GODOT_methodBindInfo(string name : "get_point_count") = _GODOT_get_point_count; int get_point_count() const { _GODOT_get_point_count.bind("Curve3D", "get_point_count"); return ptrcall!(int)(_GODOT_get_point_count, _godot_object); } package(godot) static GodotMethod!(void, Vector3, Vector3, Vector3, int) _GODOT_add_point; package(godot) alias _GODOT_methodBindInfo(string name : "add_point") = _GODOT_add_point; void add_point(in Vector3 position, in Vector3 _in = Vector3(0, 0, 0), in Vector3 _out = Vector3(0, 0, 0), in int at_position = -1) { _GODOT_add_point.bind("Curve3D", "add_point"); ptrcall!(void)(_GODOT_add_point, _godot_object, position, _in, _out, at_position); } package(godot) static GodotMethod!(void, int, Vector3) _GODOT_set_point_position; package(godot) alias _GODOT_methodBindInfo(string name : "set_point_position") = _GODOT_set_point_position; void set_point_position(in int idx, in Vector3 position) { _GODOT_set_point_position.bind("Curve3D", "set_point_position"); ptrcall!(void)(_GODOT_set_point_position, _godot_object, idx, position); } package(godot) static GodotMethod!(Vector3, int) _GODOT_get_point_position; package(godot) alias _GODOT_methodBindInfo(string name : "get_point_position") = _GODOT_get_point_position; Vector3 get_point_position(in int idx) const { _GODOT_get_point_position.bind("Curve3D", "get_point_position"); return ptrcall!(Vector3)(_GODOT_get_point_position, _godot_object, idx); } package(godot) static GodotMethod!(void, int, float) _GODOT_set_point_tilt; package(godot) alias _GODOT_methodBindInfo(string name : "set_point_tilt") = _GODOT_set_point_tilt; void set_point_tilt(in int idx, in float tilt) { _GODOT_set_point_tilt.bind("Curve3D", "set_point_tilt"); ptrcall!(void)(_GODOT_set_point_tilt, _godot_object, idx, tilt); } package(godot) static GodotMethod!(float, int) _GODOT_get_point_tilt; package(godot) alias _GODOT_methodBindInfo(string name : "get_point_tilt") = _GODOT_get_point_tilt; float get_point_tilt(in int idx) const { _GODOT_get_point_tilt.bind("Curve3D", "get_point_tilt"); return ptrcall!(float)(_GODOT_get_point_tilt, _godot_object, idx); } package(godot) static GodotMethod!(void, int, Vector3) _GODOT_set_point_in; package(godot) alias _GODOT_methodBindInfo(string name : "set_point_in") = _GODOT_set_point_in; void set_point_in(in int idx, in Vector3 position) { _GODOT_set_point_in.bind("Curve3D", "set_point_in"); ptrcall!(void)(_GODOT_set_point_in, _godot_object, idx, position); } package(godot) static GodotMethod!(Vector3, int) _GODOT_get_point_in; package(godot) alias _GODOT_methodBindInfo(string name : "get_point_in") = _GODOT_get_point_in; Vector3 get_point_in(in int idx) const { _GODOT_get_point_in.bind("Curve3D", "get_point_in"); return ptrcall!(Vector3)(_GODOT_get_point_in, _godot_object, idx); } package(godot) static GodotMethod!(void, int, Vector3) _GODOT_set_point_out; package(godot) alias _GODOT_methodBindInfo(string name : "set_point_out") = _GODOT_set_point_out; void set_point_out(in int idx, in Vector3 position) { _GODOT_set_point_out.bind("Curve3D", "set_point_out"); ptrcall!(void)(_GODOT_set_point_out, _godot_object, idx, position); } package(godot) static GodotMethod!(Vector3, int) _GODOT_get_point_out; package(godot) alias _GODOT_methodBindInfo(string name : "get_point_out") = _GODOT_get_point_out; Vector3 get_point_out(in int idx) const { _GODOT_get_point_out.bind("Curve3D", "get_point_out"); return ptrcall!(Vector3)(_GODOT_get_point_out, _godot_object, idx); } package(godot) static GodotMethod!(void, int) _GODOT_remove_point; package(godot) alias _GODOT_methodBindInfo(string name : "remove_point") = _GODOT_remove_point; void remove_point(in int idx) { _GODOT_remove_point.bind("Curve3D", "remove_point"); ptrcall!(void)(_GODOT_remove_point, _godot_object, idx); } package(godot) static GodotMethod!(void) _GODOT_clear_points; package(godot) alias _GODOT_methodBindInfo(string name : "clear_points") = _GODOT_clear_points; void clear_points() { _GODOT_clear_points.bind("Curve3D", "clear_points"); ptrcall!(void)(_GODOT_clear_points, _godot_object); } package(godot) static GodotMethod!(Vector3, int, float) _GODOT_interpolate; package(godot) alias _GODOT_methodBindInfo(string name : "interpolate") = _GODOT_interpolate; Vector3 interpolate(in int idx, in float t) const { _GODOT_interpolate.bind("Curve3D", "interpolate"); return ptrcall!(Vector3)(_GODOT_interpolate, _godot_object, idx, t); } package(godot) static GodotMethod!(Vector3, float) _GODOT_interpolatef; package(godot) alias _GODOT_methodBindInfo(string name : "interpolatef") = _GODOT_interpolatef; Vector3 interpolatef(in float fofs) const { _GODOT_interpolatef.bind("Curve3D", "interpolatef"); return ptrcall!(Vector3)(_GODOT_interpolatef, _godot_object, fofs); } package(godot) static GodotMethod!(void, float) _GODOT_set_bake_interval; package(godot) alias _GODOT_methodBindInfo(string name : "set_bake_interval") = _GODOT_set_bake_interval; void set_bake_interval(in float distance) { _GODOT_set_bake_interval.bind("Curve3D", "set_bake_interval"); ptrcall!(void)(_GODOT_set_bake_interval, _godot_object, distance); } package(godot) static GodotMethod!(float) _GODOT_get_bake_interval; package(godot) alias _GODOT_methodBindInfo(string name : "get_bake_interval") = _GODOT_get_bake_interval; float get_bake_interval() const { _GODOT_get_bake_interval.bind("Curve3D", "get_bake_interval"); return ptrcall!(float)(_GODOT_get_bake_interval, _godot_object); } package(godot) static GodotMethod!(float) _GODOT_get_baked_length; package(godot) alias _GODOT_methodBindInfo(string name : "get_baked_length") = _GODOT_get_baked_length; float get_baked_length() const { _GODOT_get_baked_length.bind("Curve3D", "get_baked_length"); return ptrcall!(float)(_GODOT_get_baked_length, _godot_object); } package(godot) static GodotMethod!(Vector3, float, bool) _GODOT_interpolate_baked; package(godot) alias _GODOT_methodBindInfo(string name : "interpolate_baked") = _GODOT_interpolate_baked; Vector3 interpolate_baked(in float offset, in bool cubic = false) const { _GODOT_interpolate_baked.bind("Curve3D", "interpolate_baked"); return ptrcall!(Vector3)(_GODOT_interpolate_baked, _godot_object, offset, cubic); } package(godot) static GodotMethod!(PoolVector3Array) _GODOT_get_baked_points; package(godot) alias _GODOT_methodBindInfo(string name : "get_baked_points") = _GODOT_get_baked_points; PoolVector3Array get_baked_points() const { _GODOT_get_baked_points.bind("Curve3D", "get_baked_points"); return ptrcall!(PoolVector3Array)(_GODOT_get_baked_points, _godot_object); } package(godot) static GodotMethod!(PoolRealArray) _GODOT_get_baked_tilts; package(godot) alias _GODOT_methodBindInfo(string name : "get_baked_tilts") = _GODOT_get_baked_tilts; PoolRealArray get_baked_tilts() const { _GODOT_get_baked_tilts.bind("Curve3D", "get_baked_tilts"); return ptrcall!(PoolRealArray)(_GODOT_get_baked_tilts, _godot_object); } package(godot) static GodotMethod!(PoolVector3Array, int, float) _GODOT_tessellate; package(godot) alias _GODOT_methodBindInfo(string name : "tessellate") = _GODOT_tessellate; PoolVector3Array tessellate(in int max_stages = 5, in float tolerance_degrees = 4) const { _GODOT_tessellate.bind("Curve3D", "tessellate"); return ptrcall!(PoolVector3Array)(_GODOT_tessellate, _godot_object, max_stages, tolerance_degrees); } package(godot) static GodotMethod!(Dictionary) _GODOT__get_data; package(godot) alias _GODOT_methodBindInfo(string name : "_get_data") = _GODOT__get_data; Dictionary _get_data() const { Array _GODOT_args = Array.empty_array; String _GODOT_method_name = String("_get_data"); return this.callv(_GODOT_method_name, _GODOT_args).as!(Dictionary); } package(godot) static GodotMethod!(void, Dictionary) _GODOT__set_data; package(godot) alias _GODOT_methodBindInfo(string name : "_set_data") = _GODOT__set_data; void _set_data(in Dictionary arg0) { Array _GODOT_args = Array.empty_array; _GODOT_args.append(arg0); String _GODOT_method_name = String("_set_data"); this.callv(_GODOT_method_name, _GODOT_args); } }
D
class Base { this() shared {} this() {} } class Derived1 : Base { this() { // implicit super(); } } class Derived2 : Base { // implicit this() } class Base2 { this() shared {} } class Derived3 : Base2 { // implicit this() shared } void test() { auto d2 = new Derived2; auto d3 = new shared(Derived3); }
D
/** * Compiler implementation of the * $(LINK2 http://www.dlang.org, D programming language). * * Copyright: Copyright (c) 1999-2016 by Digital Mars, All Rights Reserved * Authors: $(LINK2 http://www.digitalmars.com, Walter Bright) * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(DMDSRC _dsymbol.d) */ module ddmd.dsymbol; import core.stdc.stdarg; import core.stdc.stdio; import core.stdc.string; import core.stdc.stdlib; import ddmd.aggregate; import ddmd.aliasthis; import ddmd.arraytypes; import ddmd.attrib; import ddmd.gluelayer; import ddmd.dclass; import ddmd.declaration; import ddmd.denum; import ddmd.dimport; import ddmd.dmodule; import ddmd.dscope; import ddmd.dstruct; import ddmd.dtemplate; import ddmd.errors; import ddmd.expression; import ddmd.func; import ddmd.globals; import ddmd.id; import ddmd.identifier; import ddmd.init; import ddmd.lexer; import ddmd.mtype; import ddmd.nspace; import ddmd.opover; import ddmd.root.aav; import ddmd.root.rmem; import ddmd.root.rootobject; import ddmd.root.speller; import ddmd.statement; import ddmd.tokens; import ddmd.visitor; struct Ungag { uint oldgag; extern (D) this(uint old) { this.oldgag = old; } extern (C++) ~this() { global.gag = oldgag; } } enum PROTKIND : int { PROTundefined, PROTnone, // no access PROTprivate, PROTpackage, PROTprotected, PROTpublic, PROTexport, } alias PROTundefined = PROTKIND.PROTundefined; alias PROTnone = PROTKIND.PROTnone; alias PROTprivate = PROTKIND.PROTprivate; alias PROTpackage = PROTKIND.PROTpackage; alias PROTprotected = PROTKIND.PROTprotected; alias PROTpublic = PROTKIND.PROTpublic; alias PROTexport = PROTKIND.PROTexport; struct Prot { PROTKIND kind; Package pkg; extern (D) this(PROTKIND kind) { this.kind = kind; } extern (C++): /** * Checks if `this` is superset of `other` restrictions. * For example, "protected" is more restrictive than "public". */ bool isMoreRestrictiveThan(const Prot other) const { return this.kind < other.kind; } /** * Checks if `this` is absolutely identical protection attribute to `other` */ bool opEquals(ref const Prot other) const { if (this.kind == other.kind) { if (this.kind == PROTpackage) return this.pkg == other.pkg; return true; } return false; } /** * Checks if parent defines different access restrictions than this one. * * Params: * parent = protection attribute for scope that hosts this one * * Returns: * 'true' if parent is already more restrictive than this one and thus * no differentiation is needed. */ bool isSubsetOf(ref const Prot parent) const { if (this.kind != parent.kind) return false; if (this.kind == PROTpackage) { if (!this.pkg) return true; if (!parent.pkg) return false; if (parent.pkg.isAncestorPackageOf(this.pkg)) return true; } return true; } } enum PASS : int { PASSinit, // initial state PASSsemantic, // semantic() started PASSsemanticdone, // semantic() done PASSsemantic2, // semantic2() started PASSsemantic2done, // semantic2() done PASSsemantic3, // semantic3() started PASSsemantic3done, // semantic3() done PASSinline, // inline started PASSinlinedone, // inline done PASSobj, // toObjFile() run } alias PASSinit = PASS.PASSinit; alias PASSsemantic = PASS.PASSsemantic; alias PASSsemanticdone = PASS.PASSsemanticdone; alias PASSsemantic2 = PASS.PASSsemantic2; alias PASSsemantic2done = PASS.PASSsemantic2done; alias PASSsemantic3 = PASS.PASSsemantic3; alias PASSsemantic3done = PASS.PASSsemantic3done; alias PASSinline = PASS.PASSinline; alias PASSinlinedone = PASS.PASSinlinedone; alias PASSobj = PASS.PASSobj; // Search options enum : int { IgnoreNone = 0x00, // default IgnorePrivateImports = 0x01, // don't search private imports IgnoreErrors = 0x02, // don't give error messages IgnoreAmbiguous = 0x04, // return NULL if ambiguous SearchLocalsOnly = 0x08, // only look at locals (don't search imports) SearchImportsOnly = 0x10, // only look in imports SearchUnqualifiedModule = 0x20, // the module scope search is unqualified, // meaning don't search imports in that scope, // because qualified module searches search // their imports IgnoreSymbolVisibility = 0x80, // also find private and package protected symbols } extern (C++) alias Dsymbol_apply_ft_t = int function(Dsymbol, void*); /*********************************************************** */ extern (C++) class Dsymbol : RootObject { Identifier ident; Dsymbol parent; Symbol* csym; // symbol for code generator Symbol* isym; // import version of csym const(char)* comment; // documentation comment for this Dsymbol Loc loc; // where defined Scope* _scope; // !=null means context to use for semantic() const(char)* prettystring; // cached value of toPrettyChars() bool errors; // this symbol failed to pass semantic() PASS semanticRun; DeprecatedDeclaration depdecl; // customized deprecation message UserAttributeDeclaration userAttribDecl; // user defined attributes // !=null means there's a ddoc unittest associated with this symbol // (only use this with ddoc) UnitTestDeclaration ddocUnittest; final extern (D) this() { //printf("Dsymbol::Dsymbol(%p)\n", this); this.semanticRun = PASSinit; } final extern (D) this(Identifier ident) { //printf("Dsymbol::Dsymbol(%p, ident)\n", this); this.ident = ident; this.semanticRun = PASSinit; } static Dsymbol create(Identifier ident) { return new Dsymbol(ident); } override const(char)* toChars() { return ident ? ident.toChars() : "__anonymous"; } // helper to print fully qualified (template) arguments const(char)* toPrettyCharsHelper() { return toChars(); } final ref Loc getLoc() { if (!loc.filename) // avoid bug 5861. { auto m = getModule(); if (m && m.srcfile) loc.filename = m.srcfile.toChars(); } return loc; } final const(char)* locToChars() { return getLoc().toChars(); } override bool equals(RootObject o) { if (this == o) return true; Dsymbol s = cast(Dsymbol)o; // Overload sets don't have an ident if (s && ident && s.ident && ident.equals(s.ident)) return true; return false; } final bool isAnonymous() { return ident is null; } final void error(Loc loc, const(char)* format, ...) { va_list ap; va_start(ap, format); .verror(loc, format, ap, kind(), toPrettyChars()); va_end(ap); } final void error(const(char)* format, ...) { va_list ap; va_start(ap, format); .verror(getLoc(), format, ap, kind(), toPrettyChars()); va_end(ap); } final void deprecation(Loc loc, const(char)* format, ...) { va_list ap; va_start(ap, format); .vdeprecation(loc, format, ap, kind(), toPrettyChars()); va_end(ap); } final void deprecation(const(char)* format, ...) { va_list ap; va_start(ap, format); .vdeprecation(getLoc(), format, ap, kind(), toPrettyChars()); va_end(ap); } final void checkDeprecated(Loc loc, Scope* sc) { if (global.params.useDeprecated != 1 && isDeprecated()) { // Don't complain if we're inside a deprecated symbol's scope for (Dsymbol sp = sc.parent; sp; sp = sp.parent) { if (sp.isDeprecated()) goto L1; } for (Scope* sc2 = sc; sc2; sc2 = sc2.enclosing) { if (sc2.scopesym && sc2.scopesym.isDeprecated()) goto L1; // If inside a StorageClassDeclaration that is deprecated if (sc2.stc & STCdeprecated) goto L1; } const(char)* message = null; for (Dsymbol p = this; p; p = p.parent) { message = p.depdecl ? p.depdecl.getMessage() : null; if (message) break; } if (message) deprecation(loc, "is deprecated - %s", message); else deprecation(loc, "is deprecated"); } L1: Declaration d = isDeclaration(); if (d && d.storage_class & STCdisable) { if (!(sc.func && sc.func.storage_class & STCdisable)) { if (d.toParent() && d.isPostBlitDeclaration()) d.toParent().error(loc, "is not copyable because it is annotated with @disable"); else error(loc, "is not callable because it is annotated with @disable"); } } } /********************************** * Determine which Module a Dsymbol is in. */ final Module getModule() { //printf("Dsymbol::getModule()\n"); if (TemplateInstance ti = isInstantiated()) return ti.tempdecl.getModule(); Dsymbol s = this; while (s) { //printf("\ts = %s '%s'\n", s->kind(), s->toPrettyChars()); Module m = s.isModule(); if (m) return m; s = s.parent; } return null; } /********************************** * Determine which Module a Dsymbol is in, as far as access rights go. */ final Module getAccessModule() { //printf("Dsymbol::getAccessModule()\n"); if (TemplateInstance ti = isInstantiated()) return ti.tempdecl.getAccessModule(); Dsymbol s = this; while (s) { //printf("\ts = %s '%s'\n", s->kind(), s->toPrettyChars()); Module m = s.isModule(); if (m) return m; TemplateInstance ti = s.isTemplateInstance(); if (ti && ti.enclosing) { /* Because of local template instantiation, the parent isn't where the access * rights come from - it's the template declaration */ s = ti.tempdecl; } else s = s.parent; } return null; } final inout(Dsymbol) pastMixin() inout { //printf("Dsymbol::pastMixin() %s\n", toChars()); if (!isTemplateMixin()) return this; if (!parent) return null; return parent.pastMixin(); } /********************************** * `parent` field returns a lexically enclosing scope symbol this is a member of. * * `toParent()` returns a logically enclosing scope symbol this is a member of. * It skips over TemplateMixin's. * * `toParent2()` returns an enclosing scope symbol this is living at runtime. * It skips over both TemplateInstance's and TemplateMixin's. * It's used when looking for the 'this' pointer of the enclosing function/class. * * Examples: * module mod; * template Foo(alias a) { mixin Bar!(); } * mixin template Bar() { * public { // ProtDeclaration * void baz() { a = 2; } * } * } * void test() { * int v = 1; * alias foo = Foo!(v); * foo.baz(); * assert(v == 2); * } * * // s == FuncDeclaration('mod.test.Foo!().Bar!().baz()') * // s.parent == TemplateMixin('mod.test.Foo!().Bar!()') * // s.toParent() == TemplateInstance('mod.test.Foo!()') * // s.toParent2() == FuncDeclaration('mod.test') */ final inout(Dsymbol) toParent() inout { return parent ? parent.pastMixin() : null; } /// ditto final inout(Dsymbol) toParent2() inout { if (!parent || !parent.isTemplateInstance) return parent; return parent.toParent2; } final inout(TemplateInstance) isInstantiated() inout { if (!parent) return null; auto ti = parent.isTemplateInstance(); if (ti && !ti.isTemplateMixin()) return ti; return parent.isInstantiated(); } // Check if this function is a member of a template which has only been // instantiated speculatively, eg from inside is(typeof()). // Return the speculative template instance it is part of, // or NULL if not speculative. final inout(TemplateInstance) isSpeculative() inout { if (!parent) return null; auto ti = parent.isTemplateInstance(); if (ti && ti.gagged) return ti; if (!parent.toParent()) return null; return parent.isSpeculative(); } final Ungag ungagSpeculative() const { uint oldgag = global.gag; if (global.gag && !isSpeculative() && !toParent2().isFuncDeclaration()) global.gag = 0; return Ungag(oldgag); } // kludge for template.isSymbol() override final int dyncast() const { return DYNCAST_DSYMBOL; } /************************************* * Do syntax copy of an array of Dsymbol's. */ static Dsymbols* arraySyntaxCopy(Dsymbols* a) { Dsymbols* b = null; if (a) { b = a.copy(); for (size_t i = 0; i < b.dim; i++) { (*b)[i] = (*b)[i].syntaxCopy(null); } } return b; } Identifier getIdent() { return ident; } const(char)* toPrettyChars(bool QualifyTypes = false) { if (prettystring && !QualifyTypes) return prettystring; //printf("Dsymbol::toPrettyChars() '%s'\n", toChars()); if (!parent) { auto s = toChars(); if (!QualifyTypes) prettystring = s; return s; } // Computer number of components size_t complength = 0; for (Dsymbol p = this; p; p = p.parent) ++complength; // Allocate temporary array comp[] alias T = const(char)[]; auto compptr = cast(T*)malloc(complength * T.sizeof); if (!compptr) Mem.error(); auto comp = compptr[0 .. complength]; // Fill in comp[] and compute length of final result size_t length = 0; int i; for (Dsymbol p = this; p; p = p.parent) { const s = QualifyTypes ? p.toPrettyCharsHelper() : p.toChars(); const len = strlen(s); comp[i] = s[0 .. len]; ++i; length += len + 1; } auto s = cast(char*)mem.xmalloc(length); auto q = s + length - 1; *q = 0; foreach (j; 0 .. complength) { const t = comp[j].ptr; const len = comp[j].length; q -= len; memcpy(q, t, len); if (q == s) break; *--q = '.'; } free(comp.ptr); if (!QualifyTypes) prettystring = s; return s; } const(char)* kind() const { return "symbol"; } /********************************* * If this symbol is really an alias for another, * return that other. * If needed, semantic() is invoked due to resolve forward reference. */ Dsymbol toAlias() { return this; } /********************************* * Resolve recursive tuple expansion in eponymous template. */ Dsymbol toAlias2() { return toAlias(); } /********************************* * Iterate this dsymbol or members of this scoped dsymbol, then * call `fp` with the found symbol and `param`. * Params: * fp = function pointer to process the iterated symbol. * If it returns nonzero, the iteration will be aborted. * param = a parameter passed to fp. * Returns: * nonzero if the iteration is aborted by the return value of fp, * or 0 if it's completed. */ int apply(Dsymbol_apply_ft_t fp, void* param) { return (*fp)(this, param); } void addMember(Scope* sc, ScopeDsymbol sds) { //printf("Dsymbol::addMember('%s')\n", toChars()); //printf("Dsymbol::addMember(this = %p, '%s' scopesym = '%s')\n", this, toChars(), sds->toChars()); //printf("Dsymbol::addMember(this = %p, '%s' sds = %p, sds->symtab = %p)\n", this, toChars(), sds, sds->symtab); parent = sds; if (!isAnonymous()) // no name, so can't add it to symbol table { if (!sds.symtabInsert(this)) // if name is already defined { Dsymbol s2 = sds.symtab.lookup(ident); if (!s2.overloadInsert(this)) { sds.multiplyDefined(Loc(), this, s2); errors = true; } } if (sds.isAggregateDeclaration() || sds.isEnumDeclaration()) { if (ident == Id.__sizeof || ident == Id.__xalignof || ident == Id._mangleof) { error(".%s property cannot be redefined", ident.toChars()); errors = true; } } } } /************************************* * Set scope for future semantic analysis so we can * deal better with forward references. */ void setScope(Scope* sc) { //printf("Dsymbol::setScope() %p %s, %p stc = %llx\n", this, toChars(), sc, sc->stc); if (!sc.nofree) sc.setNoFree(); // may need it even after semantic() finishes _scope = sc; if (sc.depdecl) depdecl = sc.depdecl; if (!userAttribDecl) userAttribDecl = sc.userAttribDecl; } void importAll(Scope* sc) { } /************************************* * Does semantic analysis on the public face of declarations. */ void semantic(Scope* sc) { error("%p has no semantic routine", this); } /************************************* * Does semantic analysis on initializers and members of aggregates. */ void semantic2(Scope* sc) { // Most Dsymbols have no further semantic analysis needed } /************************************* * Does semantic analysis on function bodies. */ void semantic3(Scope* sc) { // Most Dsymbols have no further semantic analysis needed } /********************************************* * Search for ident as member of s. * Params: * loc = location to print for error messages * ident = identifier to search for * flags = IgnoreXXXX * Returns: * null if not found */ Dsymbol search(Loc loc, Identifier ident, int flags = IgnoreNone) { //printf("Dsymbol::search(this=%p,%s, ident='%s')\n", this, toChars(), ident.toChars()); return null; } final Dsymbol search_correct(Identifier ident) { /*************************************************** * Search for symbol with correct spelling. */ extern (D) void* symbol_search_fp(const(char)* seed, ref int cost) { /* If not in the lexer's string table, it certainly isn't in the symbol table. * Doing this first is a lot faster. */ size_t len = strlen(seed); if (!len) return null; Identifier id = Identifier.lookup(seed, len); if (!id) return null; cost = 0; Dsymbol s = this; Module.clearCache(); return cast(void*)s.search(Loc(), id, IgnoreErrors); } if (global.gag) return null; // don't do it for speculative compiles; too time consuming return cast(Dsymbol)speller(ident.toChars(), &symbol_search_fp, idchars); } /*************************************** * Search for identifier id as a member of 'this'. * id may be a template instance. * Returns: * symbol found, NULL if not */ final Dsymbol searchX(Loc loc, Scope* sc, RootObject id) { //printf("Dsymbol::searchX(this=%p,%s, ident='%s')\n", this, toChars(), ident->toChars()); Dsymbol s = toAlias(); Dsymbol sm; if (Declaration d = s.isDeclaration()) { if (d.inuse) { .error(loc, "circular reference to '%s'", d.toPrettyChars()); return null; } } switch (id.dyncast()) { case DYNCAST_IDENTIFIER: sm = s.search(loc, cast(Identifier)id); break; case DYNCAST_DSYMBOL: { // It's a template instance //printf("\ttemplate instance id\n"); Dsymbol st = cast(Dsymbol)id; TemplateInstance ti = st.isTemplateInstance(); sm = s.search(loc, ti.name); if (!sm) { sm = s.search_correct(ti.name); if (sm) .error(loc, "template identifier '%s' is not a member of %s '%s', did you mean %s '%s'?", ti.name.toChars(), s.kind(), s.toPrettyChars(), sm.kind(), sm.toChars()); else .error(loc, "template identifier '%s' is not a member of %s '%s'", ti.name.toChars(), s.kind(), s.toPrettyChars()); return null; } sm = sm.toAlias(); TemplateDeclaration td = sm.isTemplateDeclaration(); if (!td) { .error(loc, "%s.%s is not a template, it is a %s", s.toPrettyChars(), ti.name.toChars(), sm.kind()); return null; } ti.tempdecl = td; if (!ti.semanticRun) ti.semantic(sc); sm = ti.toAlias(); break; } case DYNCAST_TYPE: case DYNCAST_EXPRESSION: default: assert(0); } return sm; } bool overloadInsert(Dsymbol s) { //printf("Dsymbol::overloadInsert('%s')\n", s->toChars()); return false; } /********************************* * Returns: * SIZE_INVALID when the size cannot be determined */ d_uns64 size(Loc loc) { error("Dsymbol '%s' has no size", toChars()); return SIZE_INVALID; } bool isforwardRef() { return false; } // is a 'this' required to access the member AggregateDeclaration isThis() { return null; } // is Dsymbol exported? bool isExport() { return false; } // is Dsymbol imported? bool isImportedSymbol() { return false; } // is Dsymbol deprecated? bool isDeprecated() { return false; } bool isOverloadable() { return false; } // is this a LabelDsymbol()? LabelDsymbol isLabel() { return null; } /// Returns an AggregateDeclaration when toParent() is that. final AggregateDeclaration isMember() { //printf("Dsymbol::isMember() %s\n", toChars()); auto p = toParent(); //printf("parent is %s %s\n", p.kind(), p.toChars()); return p ? p.isAggregateDeclaration() : null; } /// Returns an AggregateDeclaration when toParent2() is that. final AggregateDeclaration isMember2() { //printf("Dsymbol::isMember2() '%s'\n", toChars()); auto p = toParent2(); //printf("parent is %s %s\n", p.kind(), p.toChars()); return p ? p.isAggregateDeclaration() : null; } // is this a member of a ClassDeclaration? final ClassDeclaration isClassMember() { auto ad = isMember(); return ad ? ad.isClassDeclaration() : null; } // is this a type? Type getType() { return null; } // need a 'this' pointer? bool needThis() { return false; } /************************************* */ Prot prot() { return Prot(PROTpublic); } /************************************** * Copy the syntax. * Used for template instantiations. * If s is NULL, allocate the new object, otherwise fill it in. */ Dsymbol syntaxCopy(Dsymbol s) { print(); printf("%s %s\n", kind(), toChars()); assert(0); } /************************************** * Determine if this symbol is only one. * Returns: * false, *ps = NULL: There are 2 or more symbols * true, *ps = NULL: There are zero symbols * true, *ps = symbol: The one and only one symbol */ bool oneMember(Dsymbol* ps, Identifier ident) { //printf("Dsymbol::oneMember()\n"); *ps = this; return true; } /***************************************** * Same as Dsymbol::oneMember(), but look at an array of Dsymbols. */ static bool oneMembers(Dsymbols* members, Dsymbol* ps, Identifier ident) { //printf("Dsymbol::oneMembers() %d\n", members ? members.dim : 0); Dsymbol s = null; if (members) { for (size_t i = 0; i < members.dim; i++) { Dsymbol sx = (*members)[i]; bool x = sx.oneMember(ps, ident); //printf("\t[%d] kind %s = %d, s = %p\n", i, sx.kind(), x, *ps); if (!x) { //printf("\tfalse 1\n"); assert(*ps is null); return false; } if (*ps) { assert(ident); if (!(*ps).ident || !(*ps).ident.equals(ident)) continue; if (!s) s = *ps; else if (s.isOverloadable() && (*ps).isOverloadable()) { // keep head of overload set FuncDeclaration f1 = s.isFuncDeclaration(); FuncDeclaration f2 = (*ps).isFuncDeclaration(); if (f1 && f2) { assert(!f1.isFuncAliasDeclaration()); assert(!f2.isFuncAliasDeclaration()); for (; f1 != f2; f1 = f1.overnext0) { if (f1.overnext0 is null) { f1.overnext0 = f2; break; } } } } else // more than one symbol { *ps = null; //printf("\tfalse 2\n"); return false; } } } } *ps = s; // s is the one symbol, null if none //printf("\ttrue\n"); return true; } void setFieldOffset(AggregateDeclaration ad, uint* poffset, bool isunion) { } /***************************************** * Is Dsymbol a variable that contains pointers? */ bool hasPointers() { //printf("Dsymbol::hasPointers() %s\n", toChars()); return false; } bool hasStaticCtorOrDtor() { //printf("Dsymbol::hasStaticCtorOrDtor() %s\n", toChars()); return false; } void addLocalClass(ClassDeclarations*) { } void checkCtorConstInit() { } /**************************************** * Add documentation comment to Dsymbol. * Ignore NULL comments. */ void addComment(const(char)* comment) { //if (comment) // printf("adding comment '%s' to symbol %p '%s'\n", comment, this, toChars()); if (!this.comment) this.comment = comment; else if (comment && strcmp(cast(char*)comment, cast(char*)this.comment) != 0) { // Concatenate the two this.comment = Lexer.combineComments(this.comment, comment); } } /**************************************** * Returns true if this symbol is defined in a non-root module without instantiation. */ final bool inNonRoot() { Dsymbol s = parent; for (; s; s = s.toParent()) { if (auto ti = s.isTemplateInstance()) { return false; } if (auto m = s.isModule()) { if (!m.isRoot()) return true; break; } } return false; } // Eliminate need for dynamic_cast inout(Package) isPackage() inout { return null; } inout(Module) isModule() inout { return null; } inout(EnumMember) isEnumMember() inout { return null; } inout(TemplateDeclaration) isTemplateDeclaration() inout { return null; } inout(TemplateInstance) isTemplateInstance() inout { return null; } inout(TemplateMixin) isTemplateMixin() inout { return null; } inout(Nspace) isNspace() inout { return null; } inout(Declaration) isDeclaration() inout { return null; } inout(ThisDeclaration) isThisDeclaration() inout { return null; } inout(TypeInfoDeclaration) isTypeInfoDeclaration() inout { return null; } inout(TupleDeclaration) isTupleDeclaration() inout { return null; } inout(AliasDeclaration) isAliasDeclaration() inout { return null; } inout(AggregateDeclaration) isAggregateDeclaration() inout { return null; } inout(FuncDeclaration) isFuncDeclaration() inout { return null; } inout(FuncAliasDeclaration) isFuncAliasDeclaration() inout { return null; } inout(OverDeclaration) isOverDeclaration() inout { return null; } inout(FuncLiteralDeclaration) isFuncLiteralDeclaration() inout { return null; } inout(CtorDeclaration) isCtorDeclaration() inout { return null; } inout(PostBlitDeclaration) isPostBlitDeclaration() inout { return null; } inout(DtorDeclaration) isDtorDeclaration() inout { return null; } inout(StaticCtorDeclaration) isStaticCtorDeclaration() inout { return null; } inout(StaticDtorDeclaration) isStaticDtorDeclaration() inout { return null; } inout(SharedStaticCtorDeclaration) isSharedStaticCtorDeclaration() inout { return null; } inout(SharedStaticDtorDeclaration) isSharedStaticDtorDeclaration() inout { return null; } inout(InvariantDeclaration) isInvariantDeclaration() inout { return null; } inout(UnitTestDeclaration) isUnitTestDeclaration() inout { return null; } inout(NewDeclaration) isNewDeclaration() inout { return null; } inout(VarDeclaration) isVarDeclaration() inout { return null; } inout(ClassDeclaration) isClassDeclaration() inout { return null; } inout(StructDeclaration) isStructDeclaration() inout { return null; } inout(UnionDeclaration) isUnionDeclaration() inout { return null; } inout(InterfaceDeclaration) isInterfaceDeclaration() inout { return null; } inout(ScopeDsymbol) isScopeDsymbol() inout { return null; } inout(WithScopeSymbol) isWithScopeSymbol() inout { return null; } inout(ArrayScopeSymbol) isArrayScopeSymbol() inout { return null; } inout(Import) isImport() inout { return null; } inout(EnumDeclaration) isEnumDeclaration() inout { return null; } inout(DeleteDeclaration) isDeleteDeclaration() inout { return null; } inout(SymbolDeclaration) isSymbolDeclaration() inout { return null; } inout(AttribDeclaration) isAttribDeclaration() inout { return null; } inout(AnonDeclaration) isAnonDeclaration() inout { return null; } inout(OverloadSet) isOverloadSet() inout { return null; } /************ */ void accept(Visitor v) { v.visit(this); } } /*********************************************************** * Dsymbol that generates a scope */ extern (C++) class ScopeDsymbol : Dsymbol { Dsymbols* members; // all Dsymbol's in this scope DsymbolTable symtab; // members[] sorted into table uint endlinnum; // the linnumber of the statement after the scope (0 if unknown) private: /// symbols whose members have been imported, i.e. imported modules and template mixins Dsymbols* importedScopes; PROTKIND* prots; // array of PROTKIND, one for each import import ddmd.root.array : BitArray; BitArray accessiblePackages, privateAccessiblePackages;// whitelists of accessible (imported) packages public: final extern (D) this() { } final extern (D) this(Identifier id) { super(id); } override Dsymbol syntaxCopy(Dsymbol s) { //printf("ScopeDsymbol::syntaxCopy('%s')\n", toChars()); ScopeDsymbol sds = s ? cast(ScopeDsymbol)s : new ScopeDsymbol(ident); sds.members = arraySyntaxCopy(members); sds.endlinnum = endlinnum; return sds; } /***************************************** * This function is #1 on the list of functions that eat cpu time. * Be very, very careful about slowing it down. */ override Dsymbol search(Loc loc, Identifier ident, int flags = SearchLocalsOnly) { //printf("%s.ScopeDsymbol::search(ident='%s', flags=x%x)\n", toChars(), ident.toChars(), flags); //if (strcmp(ident->toChars(),"c") == 0) *(char*)0=0; // Look in symbols declared in this module if (symtab && !(flags & SearchImportsOnly)) { //printf(" look in locals\n"); auto s1 = symtab.lookup(ident); if (s1) { //printf("\tfound in locals = '%s.%s'\n",toChars(),s1.toChars()); return s1; } } //printf(" not found in locals\n"); // Look in imported scopes if (importedScopes) { //printf(" look in imports\n"); Dsymbol s = null; OverloadSet a = null; // Look in imported modules for (size_t i = 0; i < importedScopes.dim; i++) { // If private import, don't search it if ((flags & IgnorePrivateImports) && prots[i] == PROTprivate) continue; int sflags = flags & (IgnoreErrors | IgnoreAmbiguous | IgnoreSymbolVisibility); // remember these in recursive searches Dsymbol ss = (*importedScopes)[i]; //printf("\tscanning import '%s', prots = %d, isModule = %p, isImport = %p\n", ss->toChars(), prots[i], ss->isModule(), ss->isImport()); if (ss.isModule()) { if (flags & SearchLocalsOnly) continue; } else // mixin template { if (flags & SearchImportsOnly) continue; // compatibility with -transition=import (Bugzilla 15925) // SearchLocalsOnly should always get set for new lookup rules sflags |= (flags & SearchLocalsOnly); } /* Don't find private members if ss is a module */ Dsymbol s2 = ss.search(loc, ident, sflags | (ss.isModule() ? IgnorePrivateImports : IgnoreNone)); import ddmd.access : symbolIsVisible; if (!s2 || !(flags & IgnoreSymbolVisibility) && !symbolIsVisible(this, s2)) continue; if (!s) { s = s2; if (s && s.isOverloadSet()) a = mergeOverloadSet(ident, a, s); } else if (s2 && s != s2) { if (s.toAlias() == s2.toAlias() || s.getType() == s2.getType() && s.getType()) { /* After following aliases, we found the same * symbol, so it's not an ambiguity. But if one * alias is deprecated or less accessible, prefer * the other. */ if (s.isDeprecated() || s.prot().isMoreRestrictiveThan(s2.prot()) && s2.prot().kind != PROTnone) s = s2; } else { /* Two imports of the same module should be regarded as * the same. */ Import i1 = s.isImport(); Import i2 = s2.isImport(); if (!(i1 && i2 && (i1.mod == i2.mod || (!i1.parent.isImport() && !i2.parent.isImport() && i1.ident.equals(i2.ident))))) { /* Bugzilla 8668: * Public selective import adds AliasDeclaration in module. * To make an overload set, resolve aliases in here and * get actual overload roots which accessible via s and s2. */ s = s.toAlias(); s2 = s2.toAlias(); /* If both s2 and s are overloadable (though we only * need to check s once) */ if ((s2.isOverloadSet() || s2.isOverloadable()) && (a || s.isOverloadable())) { a = mergeOverloadSet(ident, a, s2); continue; } if (flags & IgnoreAmbiguous) // if return NULL on ambiguity return null; if (!(flags & IgnoreErrors)) ScopeDsymbol.multiplyDefined(loc, s, s2); break; } } } } if (s) { /* Build special symbol if we had multiple finds */ if (a) { if (!s.isOverloadSet()) a = mergeOverloadSet(ident, a, s); s = a; } // TODO: remove once private symbol visibility has been deprecated if (!(flags & IgnoreErrors) && s.prot().kind == PROTprivate && !s.isOverloadable() && !s.parent.isTemplateMixin() && !s.parent.isNspace()) { AliasDeclaration ad = void; // accessing private selective and renamed imports is // deprecated by restricting the symbol visibility if (s.isImport() || (ad = s.isAliasDeclaration()) !is null && ad._import !is null) {} else error(loc, "%s %s is private", s.kind(), s.toPrettyChars()); } //printf("\tfound in imports %s.%s\n", toChars(), s.toChars()); return s; } //printf(" not found in imports\n"); } return null; } final OverloadSet mergeOverloadSet(Identifier ident, OverloadSet os, Dsymbol s) { if (!os) { os = new OverloadSet(ident); os.parent = this; } if (OverloadSet os2 = s.isOverloadSet()) { // Merge the cross-module overload set 'os2' into 'os' if (os.a.dim == 0) { os.a.setDim(os2.a.dim); memcpy(os.a.tdata(), os2.a.tdata(), (os.a[0]).sizeof * os2.a.dim); } else { for (size_t i = 0; i < os2.a.dim; i++) { os = mergeOverloadSet(ident, os, os2.a[i]); } } } else { assert(s.isOverloadable()); /* Don't add to os[] if s is alias of previous sym */ for (size_t j = 0; j < os.a.dim; j++) { Dsymbol s2 = os.a[j]; if (s.toAlias() == s2.toAlias()) { if (s2.isDeprecated() || (s2.prot().isMoreRestrictiveThan(s.prot()) && s.prot().kind != PROTnone)) { os.a[j] = s; } goto Lcontinue; } } os.push(s); Lcontinue: } return os; } final void importScope(Dsymbol s, Prot protection) { //printf("%s->ScopeDsymbol::importScope(%s, %d)\n", toChars(), s->toChars(), protection); // No circular or redundant import's if (s != this) { if (!importedScopes) importedScopes = new Dsymbols(); else { for (size_t i = 0; i < importedScopes.dim; i++) { Dsymbol ss = (*importedScopes)[i]; if (ss == s) // if already imported { if (protection.kind > prots[i]) prots[i] = protection.kind; // upgrade access return; } } } importedScopes.push(s); prots = cast(PROTKIND*)mem.xrealloc(prots, importedScopes.dim * (prots[0]).sizeof); prots[importedScopes.dim - 1] = protection.kind; } } final void addAccessiblePackage(Package p, Prot protection) { auto pary = protection.kind == PROTprivate ? &privateAccessiblePackages : &accessiblePackages; if (pary.length <= p.tag) pary.length = p.tag + 1; (*pary)[p.tag] = true; } bool isPackageAccessible(Package p, Prot protection, int flags = 0) { if (p.tag < accessiblePackages.length && accessiblePackages[p.tag] || protection.kind == PROTprivate && p.tag < privateAccessiblePackages.length && privateAccessiblePackages[p.tag]) return true; foreach (i, ss; importedScopes ? (*importedScopes)[] : null) { // only search visible scopes && imported modules should ignore private imports if (protection.kind <= prots[i] && ss.isScopeDsymbol.isPackageAccessible(p, protection, IgnorePrivateImports)) return true; } return false; } override final bool isforwardRef() { return (members is null); } static void multiplyDefined(Loc loc, Dsymbol s1, Dsymbol s2) { version (none) { printf("ScopeDsymbol::multiplyDefined()\n"); printf("s1 = %p, '%s' kind = '%s', parent = %s\n", s1, s1.toChars(), s1.kind(), s1.parent ? s1.parent.toChars() : ""); printf("s2 = %p, '%s' kind = '%s', parent = %s\n", s2, s2.toChars(), s2.kind(), s2.parent ? s2.parent.toChars() : ""); } if (loc.filename) { .error(loc, "%s at %s conflicts with %s at %s", s1.toPrettyChars(), s1.locToChars(), s2.toPrettyChars(), s2.locToChars()); } else { s1.error(s1.loc, "conflicts with %s %s at %s", s2.kind(), s2.toPrettyChars(), s2.locToChars()); } } override const(char)* kind() const { return "ScopeDsymbol"; } /******************************************* * Look for member of the form: * const(MemberInfo)[] getMembers(string); * Returns NULL if not found */ final FuncDeclaration findGetMembers() { Dsymbol s = search_function(this, Id.getmembers); FuncDeclaration fdx = s ? s.isFuncDeclaration() : null; version (none) { // Finish static __gshared TypeFunction tfgetmembers; if (!tfgetmembers) { Scope sc; auto parameters = new Parameters(); Parameters* p = new Parameter(STCin, Type.tchar.constOf().arrayOf(), null, null); parameters.push(p); Type tret = null; tfgetmembers = new TypeFunction(parameters, tret, 0, LINKd); tfgetmembers = cast(TypeFunction)tfgetmembers.semantic(Loc(), &sc); } if (fdx) fdx = fdx.overloadExactMatch(tfgetmembers); } if (fdx && fdx.isVirtual()) fdx = null; return fdx; } Dsymbol symtabInsert(Dsymbol s) { return symtab.insert(s); } /**************************************** * Return true if any of the members are static ctors or static dtors, or if * any members have members that are. */ override bool hasStaticCtorOrDtor() { if (members) { for (size_t i = 0; i < members.dim; i++) { Dsymbol member = (*members)[i]; if (member.hasStaticCtorOrDtor()) return true; } } return false; } /*************************************** * Determine number of Dsymbols, folding in AttribDeclaration members. */ static size_t dim(Dsymbols* members) { size_t n = 0; int dimDg(size_t idx, Dsymbol s) { ++n; return 0; } _foreach(null, members, &dimDg, &n); return n; } /*************************************** * Get nth Dsymbol, folding in AttribDeclaration members. * Returns: * Dsymbol* nth Dsymbol * NULL not found, *pn gets incremented by the number * of Dsymbols */ static Dsymbol getNth(Dsymbols* members, size_t nth, size_t* pn = null) { Dsymbol sym = null; int getNthSymbolDg(size_t n, Dsymbol s) { if (n == nth) { sym = s; return 1; } return 0; } int res = _foreach(null, members, &getNthSymbolDg); return res ? sym : null; } extern (D) alias ForeachDg = int delegate(size_t idx, Dsymbol s); /*************************************** * Expands attribute declarations in members in depth first * order. Calls dg(size_t symidx, Dsymbol *sym) for each * member. * If dg returns !=0, stops and returns that value else returns 0. * Use this function to avoid the O(N + N^2/2) complexity of * calculating dim and calling N times getNth. * Returns: * last value returned by dg() */ extern (D) static int _foreach(Scope* sc, Dsymbols* members, scope ForeachDg dg, size_t* pn = null) { assert(dg); if (!members) return 0; size_t n = pn ? *pn : 0; // take over index int result = 0; foreach (size_t i; 0 .. members.dim) { Dsymbol s = (*members)[i]; if (AttribDeclaration a = s.isAttribDeclaration()) result = _foreach(sc, a.include(sc, null), dg, &n); else if (TemplateMixin tm = s.isTemplateMixin()) result = _foreach(sc, tm.members, dg, &n); else if (s.isTemplateInstance()) { } else if (s.isUnitTestDeclaration()) { } else result = dg(n++, s); if (result) break; } if (pn) *pn = n; // update index return result; } override final inout(ScopeDsymbol) isScopeDsymbol() inout { return this; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * With statement scope */ extern (C++) final class WithScopeSymbol : ScopeDsymbol { WithStatement withstate; extern (D) this(WithStatement withstate) { this.withstate = withstate; } override Dsymbol search(Loc loc, Identifier ident, int flags = SearchLocalsOnly) { //printf("WithScopeSymbol.search(%s)\n", ident.toChars()); if (flags & SearchImportsOnly) return null; // Acts as proxy to the with class declaration Dsymbol s = null; Expression eold = null; for (Expression e = withstate.exp; e != eold; e = resolveAliasThis(_scope, e)) { if (e.op == TOKscope) { s = (cast(ScopeExp)e).sds; } else if (e.op == TOKtype) { s = e.type.toDsymbol(null); } else { Type t = e.type.toBasetype(); s = t.toDsymbol(null); } if (s) { s = s.search(loc, ident, flags); if (s) return s; } eold = e; } return null; } override inout(WithScopeSymbol) isWithScopeSymbol() inout { return this; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * Array Index/Slice scope */ extern (C++) final class ArrayScopeSymbol : ScopeDsymbol { Expression exp; // IndexExp or SliceExp TypeTuple type; // for tuple[length] TupleDeclaration td; // for tuples of objects Scope* sc; extern (D) this(Scope* sc, Expression e) { assert(e.op == TOKindex || e.op == TOKslice || e.op == TOKarray); exp = e; this.sc = sc; } extern (D) this(Scope* sc, TypeTuple t) { type = t; this.sc = sc; } extern (D) this(Scope* sc, TupleDeclaration s) { td = s; this.sc = sc; } override Dsymbol search(Loc loc, Identifier ident, int flags = IgnoreNone) { //printf("ArrayScopeSymbol::search('%s', flags = %d)\n", ident->toChars(), flags); if (ident == Id.dollar) { VarDeclaration* pvar; Expression ce; L1: if (td) { /* $ gives the number of elements in the tuple */ auto v = new VarDeclaration(loc, Type.tsize_t, Id.dollar, null); Expression e = new IntegerExp(Loc(), td.objects.dim, Type.tsize_t); v._init = new ExpInitializer(Loc(), e); v.storage_class |= STCtemp | STCstatic | STCconst; v.semantic(sc); return v; } if (type) { /* $ gives the number of type entries in the type tuple */ auto v = new VarDeclaration(loc, Type.tsize_t, Id.dollar, null); Expression e = new IntegerExp(Loc(), type.arguments.dim, Type.tsize_t); v._init = new ExpInitializer(Loc(), e); v.storage_class |= STCtemp | STCstatic | STCconst; v.semantic(sc); return v; } if (exp.op == TOKindex) { /* array[index] where index is some function of $ */ IndexExp ie = cast(IndexExp)exp; pvar = &ie.lengthVar; ce = ie.e1; } else if (exp.op == TOKslice) { /* array[lwr .. upr] where lwr or upr is some function of $ */ SliceExp se = cast(SliceExp)exp; pvar = &se.lengthVar; ce = se.e1; } else if (exp.op == TOKarray) { /* array[e0, e1, e2, e3] where e0, e1, e2 are some function of $ * $ is a opDollar!(dim)() where dim is the dimension(0,1,2,...) */ ArrayExp ae = cast(ArrayExp)exp; pvar = &ae.lengthVar; ce = ae.e1; } else { /* Didn't find $, look in enclosing scope(s). */ return null; } while (ce.op == TOKcomma) ce = (cast(CommaExp)ce).e2; /* If we are indexing into an array that is really a type * tuple, rewrite this as an index into a type tuple and * try again. */ if (ce.op == TOKtype) { Type t = (cast(TypeExp)ce).type; if (t.ty == Ttuple) { type = cast(TypeTuple)t; goto L1; } } /* *pvar is lazily initialized, so if we refer to $ * multiple times, it gets set only once. */ if (!*pvar) // if not already initialized { /* Create variable v and set it to the value of $ */ VarDeclaration v; Type t; if (ce.op == TOKtuple) { /* It is for an expression tuple, so the * length will be a const. */ Expression e = new IntegerExp(Loc(), (cast(TupleExp)ce).exps.dim, Type.tsize_t); v = new VarDeclaration(loc, Type.tsize_t, Id.dollar, new ExpInitializer(Loc(), e)); v.storage_class |= STCtemp | STCstatic | STCconst; } else if (ce.type && (t = ce.type.toBasetype()) !is null && (t.ty == Tstruct || t.ty == Tclass)) { // Look for opDollar assert(exp.op == TOKarray || exp.op == TOKslice); AggregateDeclaration ad = isAggregate(t); assert(ad); Dsymbol s = ad.search(loc, Id.opDollar); if (!s) // no dollar exists -- search in higher scope return null; s = s.toAlias(); Expression e = null; // Check for multi-dimensional opDollar(dim) template. if (TemplateDeclaration td = s.isTemplateDeclaration()) { dinteger_t dim = 0; if (exp.op == TOKarray) { dim = (cast(ArrayExp)exp).currentDimension; } else if (exp.op == TOKslice) { dim = 0; // slices are currently always one-dimensional } else { assert(0); } auto tiargs = new Objects(); Expression edim = new IntegerExp(Loc(), dim, Type.tsize_t); edim = edim.semantic(sc); tiargs.push(edim); e = new DotTemplateInstanceExp(loc, ce, td.ident, tiargs); } else { /* opDollar exists, but it's not a template. * This is acceptable ONLY for single-dimension indexing. * Note that it's impossible to have both template & function opDollar, * because both take no arguments. */ if (exp.op == TOKarray && (cast(ArrayExp)exp).arguments.dim != 1) { exp.error("%s only defines opDollar for one dimension", ad.toChars()); return null; } Declaration d = s.isDeclaration(); assert(d); e = new DotVarExp(loc, ce, d); } e = e.semantic(sc); if (!e.type) exp.error("%s has no value", e.toChars()); t = e.type.toBasetype(); if (t && t.ty == Tfunction) e = new CallExp(e.loc, e); v = new VarDeclaration(loc, null, Id.dollar, new ExpInitializer(Loc(), e)); v.storage_class |= STCtemp | STCctfe | STCrvalue; } else { /* For arrays, $ will either be a compile-time constant * (in which case its value in set during constant-folding), * or a variable (in which case an expression is created in * toir.c). */ auto e = new VoidInitializer(Loc()); e.type = Type.tsize_t; v = new VarDeclaration(loc, Type.tsize_t, Id.dollar, e); v.storage_class |= STCtemp | STCctfe; // it's never a true static variable } *pvar = v; } (*pvar).semantic(sc); return (*pvar); } return null; } override inout(ArrayScopeSymbol) isArrayScopeSymbol() inout { return this; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * Overload Sets */ extern (C++) final class OverloadSet : Dsymbol { Dsymbols a; // array of Dsymbols extern (D) this(Identifier ident, OverloadSet os = null) { super(ident); if (os) { for (size_t i = 0; i < os.a.dim; i++) a.push(os.a[i]); } } void push(Dsymbol s) { a.push(s); } override inout(OverloadSet) isOverloadSet() inout { return this; } override const(char)* kind() const { return "overloadset"; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * Table of Dsymbol's */ extern (C++) final class DsymbolTable : RootObject { AA* tab; // Look up Identifier. Return Dsymbol if found, NULL if not. Dsymbol lookup(const Identifier ident) { //printf("DsymbolTable::lookup(%s)\n", (char*)ident->string); return cast(Dsymbol)dmd_aaGetRvalue(tab, cast(void*)ident); } // Insert Dsymbol in table. Return NULL if already there. Dsymbol insert(Dsymbol s) { //printf("DsymbolTable::insert(this = %p, '%s')\n", this, s->ident->toChars()); const ident = s.ident; Dsymbol* ps = cast(Dsymbol*)dmd_aaGet(&tab, cast(void*)ident); if (*ps) return null; // already in table *ps = s; return s; } // Look for Dsymbol in table. If there, return it. If not, insert s and return that. Dsymbol update(Dsymbol s) { const ident = s.ident; Dsymbol* ps = cast(Dsymbol*)dmd_aaGet(&tab, cast(void*)ident); *ps = s; return s; } // when ident and s are not the same Dsymbol insert(const Identifier ident, Dsymbol s) { //printf("DsymbolTable::insert()\n"); Dsymbol* ps = cast(Dsymbol*)dmd_aaGet(&tab, cast(void*)ident); if (*ps) return null; // already in table *ps = s; return s; } /***** * Returns: * number of symbols in symbol table */ uint len() const pure { return cast(uint)dmd_aaLen(tab); } }
D
/** * Connector * * Copyright: * (C) 2012-2015 Tatsuhiro Tsujikawa * (C) 2014-2015 Etienne Cimon * * License: * Distributed under the terms of the MIT license with an additional section 1.2 of the curl/libcurl project. * Consult the provided LICENSE.md file for details */ module libhttp2.connector; import libhttp2.types; import libhttp2.frame; import libhttp2.session; public: abstract class Connector { public: ////////////////// Protocol //////////////////////// /** * Callback function invoked when Session wants to send data to the * remote peer. The implementation of this function must send at most * |data.length| bytes of data stored in |data|. * It must return the number of bytes sent if * it succeeds. If it cannot send any single byte without blocking, * it must return $(D ErrorCode.WOULDBLOCK). For other errors, * it must return $(D ErrorCode.CALLBACK_FAILURE). * * This callback is required if the application uses * $(D Session.send) to send data to the remote endpoint. If * the application uses solely $(D Session.memSend) instead, * this callback function is unnecessary. */ int write(in ubyte[] data); /** * Callback function invoked when `DataFlags.NO_COPY` is * used in `DataProvider` to send complete DATA frame. * * The |frame| is a DATA frame to send. The |framehd| is the * serialized frame header (9 bytes). The |length| is the length of * application data to send (this does not include padding). The * |source| is the same pointer passed to `DataProvider`. * * The application first must send frame header |framehd| of length 9 * bytes. If `frame->padlen > 0`, send 1 byte of value * `frame->padlen - 1`. Then send exactly |length| bytes of * application data. Finally, if `frame->padlen > 0`, send * `frame->padlen - 1` bytes of zero (they are padding). * * The application has to send complete DATA frame in this callback. * If all data were written successfully, return 0. * * If it cannot send it all, just return * `ErrorCode.WOULDBLOCK`, the library will call this callback * with the same parameters later (It is recommended to send complete * DATA frame at once in this function to deal with error; if partial * frame data has already sent, it is impossible to send another data * in that state, and all we can do is tear down connection). If * application decided to reset this stream, return * `ErrorCode.TEMPORAL_CALLBACK_FAILURE`, then the library * will send RST_STREAM with INTERNAL_ERROR as error code. The * application can also return `ErrorCode.CALLBACK_FAILURE`, * which will result in connection closure. Returning any other value * is treated as if `ErrorCode.CALLBACK_FAILURE` was returned. */ ErrorCode writeData(in Frame frame, ubyte[] frame_hd, uint length); /** * Callback function invoked when Session wants to receive data from * the remote peer. The implementation of this function must read at * most |data.length| bytes of data and store it in |data|. * * It must return the number of * bytes written in |buf| if it succeeds. If it cannot read any * single byte without blocking, it must return * $(D ErrorCode.WOULDBLOCK). If it gets EOF before it reads any * single byte, it must return $(D ErrorCode.EOF). For other * errors, it must return $(D ErrorCode.CALLBACK_FAILURE). * Returning 0 is treated as $(D ErrorCode.WOULDBLOCK). * * This callback is required if the application uses * $(D Session.recv) to receive data from the remote endpoint. * If the application uses solely `http2_session_mem_recv()` * instead, this callback function is unnecessary. */ int read(ubyte[] data); /** * Callback function invoked when the stream |stream_id| is closed. * The reason of closure is indicated by the |error_code|. The * |error_code| is usually one of $(D FrameError), but that * is not guaranteed. * * This function is also called for a stream in reserved state. * * If this callback returns false, it is treated as fatal error and * $(D Session.recv) and $(D Session.send) functions * immediately return $(D ErrorCode.CALLBACK_FAILURE). */ bool onStreamExit(int stream_id, FrameError error_code); /////////////////// Receiving //////////////////////// /** * Callback function invoked by $(D Session.recv) when a frame * is received. The |user_data| pointer is the third argument passed * in to the call to `http2_session_client_new()` or * `http2_session_server_new()`. * * If frame is HEADERS or PUSH_PROMISE, the ``nva`` * member of their data structure are always ``NULL`` and 0 * respectively. The header fields are emitted via * $(D onFrameHeader). * * For HEADERS, PUSH_PROMISE and DATA frames, this callback may be * called after stream is closed (see $(D Connector.onStreamExit)). * * Only HEADERS and DATA frame can signal the end of incoming data. * If ``frame.hd.flags & FrameFlags.END_STREAM`` is nonzero, the * |frame| is the last frame from the remote peer in this stream. * * This callback won't be called for CONTINUATION frames. * HEADERS/PUSH_PROMISE + CONTINUATIONs are treated as single frame. * * If false value is returned, it is treated as fatal error and * $(D Session.recv) and $(D Session.memRecv) functions * immediately return $(D ErrorCode.CALLBACK_FAILURE). */ bool onFrame(in Frame frame); /** * Callback function invoked when a frame header is received. The * |hd| points to received frame header. * * Unlike $(D Connector.onFrame), this callback will * also be called when frame header of CONTINUATION frame is received. * * If both $(D Connector.onFrameHeader) and * $(D Connector.onHeaders) are set and HEADERS or * PUSH_PROMISE is received, $(D Connector.onFrameReady) * will be called first. * * The implementation of this function must return true if it succeeds. * If false value is returned, it is treated as fatal error and * $(D Session.recv) and `http2_session_mem_recv()` functions * immediately return $(D ErrorCode.CALLBACK_FAILURE). */ bool onFrameHeader(in FrameHeader hd); /** * Callback function invoked when the reception of header block in * HEADERS or PUSH_PROMISE is started. Each header header field * will be emitted by $(D Connector.onHeaderField)`. * * The ``frame.hd.flags`` may not have * $(D FrameFlags.END_HEADERS) flag set, which indicates that one * or more CONTINUATION frames are involved. But the application does * not need to care about that because the header fields are * emitted transparently regardless of CONTINUATION frames. * * If this callback returns false, stream fails with `ErrorCode.CALLBACK_FAILURE` */ bool onHeaders(in Frame frame); /** * Callback function invoked when a header header field is received * for the |frame|. The |hf.name| of length |hf.name.length| is header name. * The |hf.value| of length |hf.value.length| is header value. The |hf.flags| * is a $(D HeaderFlag). * * If $(D HeaderFlag.NO_INDEX) is set in |hf.flags|, the receiver * must not index this header field when forwarding it to the next * hop. More specifically, "Literal Header Field never Indexed" * representation must be used in HPACK encoding. * * When this callback is invoked, $(D frame.hd.type) is either * $(D FrameFlags.HEADERS) or $(D FrameFlags.PUSH_PROMISE). After all * header fields are processed with this callback, and no * error has been detected, $(D Connector.onFrame) will be invoked. * If there is an error in decompression, $(D Connector.onFrame) for the |frame| * will not be invoked. * * The |value| may be null if the |value.length| is 0. * * Please note that unless `setNoHTTPMessaging()` is * used, nghttp2 library does perform validation against |hf.name| * and |hf.value| using `hf.validateName()` and * `hf.validateValue()`. In addition to this, libhttp2 * performs vaidation based on HTTP Messaging rule, which is briefly * explained in `HTTP Messaging`_ section. * * If the application uses $(D Session.memRecv), it can enable * $(D pause) to make $(D Session.memRecv) return without processing * further input bytes. The memory pointed by |frame|, |name| and |value| * parameters are retained until $(D Session.memRecv) or $(D Session.recv) is called. * The application must retain the input bytes which was used to * produce these parameters, because it may refer to the memory region * included in the input bytes. * * Enabling $(D rst_stream) will close the stream by issuing RST_STREAM with * $(D FrameError.INTERNAL_ERROR). In this case, $(D Connector.onFrame) will * not be invoked. If a different error code is desirable, use * $(D submitRstStream) with a desired error code and then * set $(D rst_stream) to true. * * The implementation of this function must return true if it succeeds. * If false is returned, it is treated as $(D ErrorCode.CALLBACK_FAILURE) and * in this case, $(D Session.recv) or $(D Session.memRecv) functions immediately * return $(D ErrorCode.CALLBACK_FAILURE). */ bool onHeaderField(in Frame frame, HeaderField hf, ref bool pause, ref bool rst_stream); /** * Callback function invoked when a chunk of data in DATA frame is * received. The |stream_id| is the stream this DATA frame belongs * to. The |flags| is the flags of DATA frame which this data chunk * is contained. ``(flags & FrameFlags.END_STREAM) != 0`` does not * necessarily mean this chunk of data is the last one in the stream. * You should use $(D Connector.onFrame) to determine that all data * frames are received. * * * The memory pointed by the |data| is not copied within $(D Session.memRecv) * or $(D Session.recv), so the data provider controls its lifetime. This * can be either $(D Connector.read) for $(D Session.recv), or a $(D ubyte[]) * slice from the one provided to $(D Session.memRecv) * * If the application uses $(D Session.memRecv), it can set |pause| * to make $(D Session.memRecv) return without processing further input bytes. * * If the function returns false, $(D Session.memRecv) or $(D Session.recv) * would return with $(D ErrorCode.CALLBACK_FAILURE). */ bool onDataChunk(FrameFlags flags, int stream_id, in ubyte[] data, ref bool pause); /** * Callback function invoked by $(D Session.recv) when an * invalid non-DATA frame is received. The |error_code| indicates the * error. It is usually one of the $(D FrameError) but * that is not guaranteed. When this callback function is invoked, * the library automatically submits either RST_STREAM or GOAWAY * frame. * * If frame is HEADERS or PUSH_PROMISE, the ``hfa`` * member of thee data structure is always ``null`` * * If this callback returns false, it is treated as fatal error and * $(D Session.recv) and $(D Session.send) functions * immediately return $(D ErrorCode.CALLBACK_FAILURE). */ bool onInvalidFrame(in Frame frame, FrameError error_code); /////////////////// Sending ///////////////////////// /** * Callback function invoked after the non-DATA frame |frame| is not * sent because of the error. The error is indicated by the * |error_code|, which is one of the values defined in * $(D ErrorCode). * * If this callback returns false, it is treated as fatal error and * $(D Session.recv) and $(D Session.send) functions * immediately return $(D ErrorCode.CALLBACK_FAILURE). */ bool onFrameFailure(in Frame frame, ErrorCode error_code); /** * Callback function invoked just before the non-DATA frame |frame| is * sent. * * The implementation of this function must return true if it succeeds. * If this callback returns false, it is treated as fatal error and * $(D Session.recv) and $(D Session.send) functions * immediately return $(D ErrorCode.CALLBACK_FAILURE). */ bool onFrameReady(in Frame frame); /** * Callback function invoked after the frame |frame| is sent. * * If this callback returns false, it is treated as fatal error and * $(D Session.recv) and $(D Session.send) functions * immediately return $(D ErrorCode.CALLBACK_FAILURE). */ bool onFrameSent(in Frame frame); /** * Callback function invoked when the library asks application how * many padding bytes are required for the transmission of the * |frame|. The application must choose the total length of payload * including padded bytes in range [frame.hd.length, max_payloadlen], * inclusive. Choosing number not in this range will be treated as * $(D ErrorCode.CALLBACK_FAILURE). Returning ``frame.hd.length`` * means no padding is added. Returning $(D ErrorCode.CALLBACK_FAILURE) will make * $(D Session.send()) function immediately return $(D ErrorCode.CALLBACK_FAILURE). */ int selectPaddingLength(in Frame frame, int max_payloadlen) { return frame.hd.length; } /** * Callback function invoked when library wants to get max length of * data to send data to the remote peer. The implementation of this * function should return a value in the following range. [1, * min(|session_remote_window_size|, |stream_remote_window_size|, * |remote_max_frame_size|)]. If a value greater than this range is * returned than the max allow value will be used. Returning a value * smaller than this range is treated as * $(D ErrorCode.CALLBACK_FAILURE). The |frame_type| is provided * for future extensibility and identifies the type of frame (see * $(D FrameType)) for which to get the length for. * Currently supported frame types are: $(D HTTP2_DATA). * * This callback can be used to control the length in bytes for which * $(D DataProvider) is allowed to send to the * remote endpoint. This callback is optional. Returning * $(D ErrorCode.CALLBACK_FAILURE) will signal the entire session * failure.. */ int maxFrameSize(FrameType frame_type, int stream_id, int session_remote_window_size, int stream_remote_window_size, uint remote_max_frame_size) { import std.algorithm : min; return min(session_remote_window_size, stream_remote_window_size, remote_max_frame_size); } } class CallbackConnector : Connector { public: /** * Callback function invoked when the session wants to send data to * the remote peer. This callback is not necessary if the * application uses solely $(D Session.memSend) to serialize * data to transmit. */ int delegate(in ubyte[]) write_cb; /** * Callback function invoked when $(D DataFlags.NO_COPY) is used in $(D DataProvider) * to avoid data copy. */ ErrorCode delegate(in Frame, ubyte[], uint) write_data_cb; /** * Callback function invoked when the session wants to receive data * from the remote peer. This callback is not necessary if the * application uses solely `nghttp2_session_mem_recv()` to process * received data. */ int delegate(ubyte[]) read_cb; /** * Callback function invoked when the stream is closed. */ bool delegate(int, FrameError) on_stream_exit_cb; /** * Callback function invoked by $(D Session.recv) when a * frame is received. */ bool delegate(in Frame) on_frame_cb; /** * Sets callback function invoked when a frame header is received. */ bool delegate(in FrameHeader) on_frame_header_cb; /** * Callback function invoked when the reception of header block in * HEADERS or PUSH_PROMISE is started. */ bool delegate(in Frame) on_headers_cb; /** * Callback function invoked when a header name/value pair is * received. */ bool delegate(in Frame, in HeaderField, ref bool, ref bool) on_header_field_cb; /** * Callback function invoked when a chunk of data in DATA frame is * received. */ bool delegate(FrameFlags, int, in ubyte[], ref bool) on_data_chunk_cb; /** * Callback function invoked by $(D Session.recv) when an * invalid non-DATA frame is received. */ bool delegate(in Frame, FrameError) on_invalid_frame_cb; /** * The callback function invoked when a non-DATA frame is not sent * because of an error. */ bool delegate(in Frame, ErrorCode) on_frame_failure_cb; /** * Callback function invoked before a non-DATA frame is sent. */ bool delegate(in Frame) on_frame_ready_cb; /** * Callback function invoked after a frame is sent. */ bool delegate(in Frame) on_frame_sent_cb; /** * Callback function invoked when the library asks application how * many padding bytes are required for the transmission of the given * frame. */ int delegate(in Frame, int) select_padding_length_cb; /** * The callback function used to determine the length allowed in * $(D DataProvider) */ int delegate(FrameType, int, int, int, uint) max_frame_size_cb; ///////////////// Derived ////////////////// override: int write(in ubyte[] data) { if (!write_cb) return true; return write_cb(data); } ErrorCode writeData(in Frame frame, ubyte[] frame_hd, uint length) { if (!write_data_cb) return ErrorCode.OK; return write_data_cb(frame, frame_hd, length); } int read(ubyte[] data) { if (!read_cb) return true; return read_cb(data); } bool onStreamExit(int stream_id, FrameError error_code) { if (!on_stream_exit_cb) return true; return on_stream_exit_cb(stream_id, error_code); } bool onFrame(in Frame frame) { if (!on_frame_cb) return true; return on_frame_cb(frame); } bool onFrameHeader(in FrameHeader hd) { if (!on_frame_header_cb) return true; return on_frame_header_cb(hd); } bool onHeaders(in Frame frame) { if (!on_headers_cb) return true; return on_headers_cb(frame); } bool onHeaderField(in Frame frame, HeaderField hf, ref bool pause, ref bool rst_stream) { if (!on_header_field_cb) return true; return on_header_field_cb(frame, hf, pause, rst_stream); } bool onDataChunk(FrameFlags flags, int stream_id, in ubyte[] data, ref bool pause) { if (!on_data_chunk_cb) return true; return on_data_chunk_cb(flags, stream_id, data, pause); } bool onInvalidFrame(in Frame frame, FrameError error_code) { if (!on_invalid_frame_cb) return true; return on_invalid_frame_cb(frame, error_code); } bool onFrameFailure(in Frame frame, ErrorCode error_code) { if (!on_frame_failure_cb) return true; return on_frame_failure_cb(frame, error_code); } bool onFrameReady(in Frame frame) { if (!on_frame_ready_cb) return true; return on_frame_ready_cb(frame); } bool onFrameSent(in Frame frame) { if (!on_frame_sent_cb) return true; return on_frame_sent_cb(frame); } int selectPaddingLength(in Frame frame, int max_payloadlen) { if (!select_padding_length_cb) return super.selectPaddingLength(frame, max_payloadlen); return select_padding_length_cb(frame, max_payloadlen); } int maxFrameSize(FrameType frame_type, int stream_id, int session_remote_window_size, int stream_remote_window_size, uint remote_max_frame_size) { if (!max_frame_size_cb) return super.maxFrameSize(frame_type, stream_id, session_remote_window_size, stream_remote_window_size, remote_max_frame_size); return max_frame_size_cb(frame_type, stream_id, session_remote_window_size, stream_remote_window_size, remote_max_frame_size); } }
D
module engine.systems.physics; debug import std.stdio; import dsfml.graphics; import star.entity; import engine.game; import engine.quadtree; import engine.components.controller; import engine.components.physics; import engine.components.position; class PhysicsSystem : System { private RenderWindow window; private QuadTree!Entity tree; this(Game game) { window = game.getWindow(); auto size = window.getSize(); tree = new QuadTree!Entity(FloatRect(0, 0, size.x, size.y)); } void configure(EventManager events) { } void moveEntities(EntityManager entities, float delta) { foreach (entity; entities.entities!(Physics, Position)()) { auto physics = entity.component!Physics(); auto position = entity.component!Position(); position.lastPosition = position.position; position.position += physics.velocity * delta; if (physics.keepInWindow) { auto container = window.getSize() - physics.size + physics.offset; if (position.position.x < 0) { position.position.x = 0; } else if (position.position.x > container.x) { position.position.x = container.x; } if (position.position.y < 0) { position.position.y = 0; } else if (position.position.y > container.y) { position.position.y = container.y; } } tree.insert(physics.getBounds(position.position), entity); } } void checkCollision(Entity a, Entity b) { auto aPhysics = a.component!Physics(); auto bPhysics = b.component!Physics(); auto aPosition = a.component!Position(); auto bPosition = b.component!Position(); auto aBounds = aPhysics.getBounds(aPosition.position); auto bBounds = bPhysics.getBounds(bPosition.position); if (aBounds.intersects(bBounds)) { // Should probably resolve positions more intelligently than this if (aPhysics.collideWith == CollisionGroup.BOTH || aPhysics.collideWith == bPhysics.collisionGroup) { aPosition.position = aPosition.lastPosition; if (a.hasComponent!EntityController()) { a.component!EntityController().controller.collide(a, b); } } if (bPhysics.collideWith == CollisionGroup.BOTH || bPhysics.collideWith == aPhysics.collisionGroup) { bPosition.position = bPosition.lastPosition; if (b.hasComponent!EntityController()) { b.component!EntityController().controller.collide(b, a); } } } } void checkCollisions(EntityManager entities) { foreach (entity; entities.entities!(Physics, Position)()) { auto physics = entity.component!Physics(); auto position = entity.component!Position(); if (physics.collisionMode != CollisionMode.NONE) { auto bounds = physics.getBounds(position.position); foreach (target; tree.retrieve(bounds)) { if (target.id != entity.id && target.component!Physics().collisionMode != CollisionMode.NONE) { checkCollision(entity, target); } } } } } void update(EntityManager entities, EventManager events, double delta) { tree.clear(); moveEntities(entities, delta); checkCollisions(entities); } }
D
import std.stdio; import std.conv; import std.math; import std.random; import std.datetime; import std.algorithm; import std.array; import std.string; import std.format; import std.typecons : No; import std.typecons; import std.range : chain; import std.file; import core.thread; import std.parallelism; import std.concurrency; import std.range; void helloString(){ string s1 = "Hello"; writeln(s1); // s1[0] writeln(typeof(s1).stringof); s1 = "World"; writeln(s1.length); string s2 = s1 ~ "Friend"; // combine strings writeln("W: ", indexOf(s2, 'W', No.caseSensitive)); // or lastIndexOf string s3 = "1 2 3"; auto numArr = to!(int[])(split(s3)); //convert to int arr writeln(numArr); string s4 = "1 2 3"; writeln(s3 == s4); writeln(toUpper(s2)); writeln(toLower(s2)); writeln(isNumeric("10")); } void associativeArray(){ // key value pairs double[string] favNums = ["Pi" : 3.14, "Euler" : 2.7182]; favNums["num"] = 123.456; writeln(favNums); writeln(favNums.length); writeln(favNums.keys); writeln(favNums.values); if("num" in favNums){ favNums.remove("num"); } writeln(favNums); } void userInput(){ char[] userArray; write("What's your name? "); readln(userArray); writeln("Hello, ", strip(userArray)); // strip off white space/new line } void fullName(){ write("What's your first and last name? "); string fName = strip(readln()); string firstName, lastName; formattedRead(fName, "%s %s", firstName, lastName); writeln("Hello ", firstName, " ", lastName); } void main(){ // associativeArray(); fullName(); }
D
module android.java.android.graphics.drawable.ShapeDrawable; public import android.java.android.graphics.drawable.ShapeDrawable_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!ShapeDrawable; import import14 = android.java.android.graphics.drawable.Drawable; import import23 = android.java.java.lang.Class; import import13 = android.java.android.graphics.drawable.Drawable_ConstantState; import import2 = android.java.android.graphics.Paint; import import18 = android.java.android.graphics.Region; import import19 = android.java.android.graphics.Insets;
D
var int evt_undeaddragon_trap_01_func_count; var int EVT_UNDEADDRAGON_TRAP_01_FUNC_COUNT_NoMore; func void evt_undeaddragon_trap_01_func() { if(EVT_UNDEADDRAGON_TRAP_01_FUNC_COUNT_NoMore < 10) { if((evt_undeaddragon_trap_01_func_count < 2) && (evt_undeaddragon_trap_01_func_count != 0)) { Wld_InsertNpc(UndeadOrcWarrior,"DI_UNDEADDRAGON_TRAP_01"); }; evt_undeaddragon_trap_01_func_count = evt_undeaddragon_trap_01_func_count + 1; if(evt_undeaddragon_trap_01_func_count > 2) { evt_undeaddragon_trap_01_func_count = 1; }; EVT_UNDEADDRAGON_TRAP_01_FUNC_COUNT_NoMore = EVT_UNDEADDRAGON_TRAP_01_FUNC_COUNT_NoMore + 1; }; }; var int evt_undeaddragon_trap_02_func_count; var int EVT_UNDEADDRAGON_TRAP_02_FUNC_COUNT_NoMore; func void evt_undeaddragon_trap_02_func() { if(EVT_UNDEADDRAGON_TRAP_02_FUNC_COUNT_NoMore < 10) { if((evt_undeaddragon_trap_02_func_count < 2) && (evt_undeaddragon_trap_02_func_count != 0)) { Wld_InsertNpc(UndeadOrcWarrior,"DI_UNDEADDRAGON_TRAP_02"); }; evt_undeaddragon_trap_02_func_count = evt_undeaddragon_trap_02_func_count + 1; if(evt_undeaddragon_trap_02_func_count > 2) { evt_undeaddragon_trap_02_func_count = 1; }; EVT_UNDEADDRAGON_TRAP_02_FUNC_COUNT_NoMore = EVT_UNDEADDRAGON_TRAP_02_FUNC_COUNT_NoMore + 1; }; }; var int evt_undeaddragon_trap_03_func_count; var int EVT_UNDEADDRAGON_TRAP_03_FUNC_COUNT_NoMore; func void evt_undeaddragon_trap_03_func() { if(EVT_UNDEADDRAGON_TRAP_03_FUNC_COUNT_NoMore < 10) { if((evt_undeaddragon_trap_03_func_count < 2) && (evt_undeaddragon_trap_03_func_count != 0)) { Wld_InsertNpc(UndeadOrcWarrior,"DI_UNDEADDRAGON_TRAP_03"); }; evt_undeaddragon_trap_03_func_count = evt_undeaddragon_trap_03_func_count + 1; if(evt_undeaddragon_trap_03_func_count > 2) { evt_undeaddragon_trap_03_func_count = 1; }; EVT_UNDEADDRAGON_TRAP_03_FUNC_COUNT_NoMore = EVT_UNDEADDRAGON_TRAP_03_FUNC_COUNT_NoMore + 1; }; };
D
instance STRF_1112_Straefling (Npc_Default) { // ------ NSC ------ name = NAME_STRAEFLING; guild = GIL_STRF; id = 1112; voice = 13; flags = 0; //NPC_FLAG_IMMORTAL oder 0 npctype = NPCTYPE_AMBIENT; // ------ Attribute ------ B_SetAttributesToChapter (self, 1); //setzt Attribute und LEVEL entsprechend dem angegebenen Kapitel (1-6) // ------ Kampf-Taktik ------ fight_tactic = FAI_HUMAN_COWARD; // MASTER / STRONG / COWARD // ------ Equippte Waffen ------ //Munition wird automatisch generiert, darf aber angegeben werden EquipItem (self, ItMw_2H_Axe_L_01 ); // ------ Inventory ------ B_CreateAmbientInv (self); // ------ visuals ------ //Muss NACH Attributen kommen, weil in B_SetNpcVisual die Breite abh. v. STR skaliert wird B_SetNpcVisual (self, MALE, "Hum_Head_Bald", Face_N_Normal08, BodyTex_N, ITAR_Prisoner); Mdl_SetModelFatness (self, 0); Mdl_ApplyOverlayMds (self, "Humans_Tired.mds"); // Tired / Militia / Mage / Arrogance / Relaxed // ------ NSC-relevante Talente vergeben ------ B_GiveNpcTalents (self); // ------ Kampf-Talente ------ //Der enthaltene B_AddFightSkill setzt Talent-Ani abhängig von TrefferChance% - alle Kampftalente werden gleichhoch gesetzt B_SetFightSkills (self, 15); //Grenzen für Talent-Level liegen bei 30 und 60 // ------ TA anmelden ------ daily_routine = Rtn_Start_1112; }; FUNC VOID Rtn_Start_1112 () { TA_Sit_Campfire (08,00,23,00,"OW_NEWMINE_11"); TA_Sit_Campfire (23,00,08,00,"OW_NEWMINE_11"); };
D
import { Component, ElementRef, Input } from '@angular/core'; import { RaPercentPipe } from '../pipes'; import * as d3 from 'd3'; import { HistoryService } from 'services' @Component({ selector: 'history-graph', templateUrl: 'history-graph.html', providers: [RaPercentPipe], }) export class HisotryGraphComponent { @Input() riskLevel: number; datePickerList: any[]; selectedPicker: any; defaultPeriod: string = '1m'; options: any; raData: any[]; indexData: any[]; svg: any; getX: any; getY: any; xAxis: any; yAxis: any; valueLine: any; area: any; isDomSetup = false; constructor(public element: ElementRef, private raPercentPipe: RaPercentPipe, private historyService: HistoryService) { this.datePickerList = [ { text: '1个月', period: '1m' }, { text: '3个月', period: '3m' }, { text: '6个月', period: '6m' }, { text: '1年', period: '1y' } ]; } ngOnInit() { this.selectPicker(this.defaultPeriod); this.options = { height: 260, width: d3.select(this.element.nativeElement).node().clientWidth - 32, margin: { left: 41, right: 0, top: 0, bottom: 40 } } this.setupDom(); this.getHistoryRate(); } ngOnChanges(changes) { let riskLevel = changes.riskLevel; if (riskLevel && riskLevel.currentValue && this.isDomSetup) { this.getHistoryRate(); } } selectPicker(period) { for (let picker of this.datePickerList) { picker.active = picker.period === period; if (picker.active) { this.selectedPicker = picker; } } } pick(picker) { this.selectPicker(picker.period); this.getHistoryRate(); } getHistoryRate() { if (this.riskLevel && this.selectedPicker) { let formatDate = d3.timeFormat("%Y-%m-%d"); let current = new Date(); let startDate = formatDate(this.getStartDate(current, this.selectedPicker.period)); let endDate = formatDate(current); let promiseRa = this.historyService.getReturn(this.riskLevel, startDate, endDate).then((result) => { this.raData = []; for (let i = 0; i < result.date.length; i++) { let dateStr = result.date[i]; let value = result.historical_data[i]; this.raData.push({ date: new Date(dateStr), value: value }); } }); let promiseIndex = this.historyService.getIndexReturn('HS300净值', startDate, endDate).then((result) => { this.indexData = []; for (let i = 0; i < result.date.length; i++) { let dateStr = result.date[i]; let value = result.historical_pricing['HS300净值'][i]; this.indexData.push({ date: new Date(dateStr), value: value }); } }); Promise.all([promiseRa, promiseIndex]).then(() => { this.draw(this.raData, this.indexData); }); } } getStartDate(baseDate, period: string) { let result = new Date(baseDate); if (period === '1m' || period === '3m' || period === '6m') { let monthDiff = 0; if (period === '1m') { monthDiff = -1; } else if (period === '3m') { monthDiff = -3; } else if (period === '6m') { monthDiff = -6; } result.setMonth(result.getMonth() + monthDiff); } else if (period === '1y') { result.setFullYear(result.getFullYear() - 1); } return result; } setupDom() { let options = this.options; this.getX = d3.scaleTime().range([this.options.margin.left, this.options.width - this.options.margin.right]); this.getY = d3.scaleLinear().range([this.options.height - this.options.margin.bottom, this.options.margin.top]); let xParser = d => { return this.getX(d.date); }; let yParser = d => { return this.getY(d.value); }; this.valueLine = d3.line() .x(xParser) .y(yParser); this.svg = d3.select(this.element.nativeElement).insert('svg', ':nth-child(2)') .attr('class', 'container') .attr('width', options.width) .attr('height', options.height + 35); this.svg.append('g') .attr("transform", "translate(0," + (options.height - options.margin.bottom) + ")") .attr('class', 'x-axis-g axis-g'); this.svg.append('g').attr('class', 'y-axis-g axis-g'); this.svg.append('path').attr('class', 'performance-line'); this.svg.append('path').attr('class', 'index-line'); this.setupArea('performance-area', 'hist-graph-gradient'); this.setupArea('index-area', 'index-hist-graph-gradient'); this.xAxis = d3.axisBottom() .tickPadding(10) .tickSizeInner(0) .scale(this.getX); this.yAxis = d3.axisLeft() .tickFormat(d => this.raPercentPipe.transform(d - 1)) .ticks(4) .tickPadding(0) .tickSizeInner(-(options.width - options.margin.left + 41)) .scale(this.getY); this.area = d3.area() .x(xParser) .y1(yParser) .y0(options.height - options.margin.bottom); var legendContainer = this.svg.append('g').attr('class', 'legend'); var legend = legendContainer .selectAll('g') .data(['投资组合', '沪深300']) .enter() .append('g') .attr('transform', function (name, index) { let x = 110 + index * 90; let y = options.height - options.margin.bottom + 41; return `translate(${x}, ${y})`; }); legend.append('rect') .attr('x', 0) .attr('y', 8) .attr('width', 11) .attr('height', 4) .attr('rx', 1) .attr('fill', function (name, index) { if (index == 0) { return '#28BBE8'; } else if (index == 1) { return '#1580F3'; } }); legend.append('text') .attr('x', 16) .attr('y', 10) .attr('dy', '0.32em') .text(function (d) { return d; }); this.isDomSetup = true; } setupArea(areaName, gradientName) { let areaG = this.svg.append('g'); let linear = areaG.append('defs') .append('linearGradient') .attr('id', gradientName) .attr('x2', '0') .attr('y2', '1'); linear.append('stop') .attr('class', 'top-stop') .attr('offset', '0%'); linear.append('stop') .attr('class', 'bottom-stop') .attr('offset', '100%'); areaG.append('path').attr('class', areaName); } draw(raData, indexData) { this.getX.domain(d3.extent(raData, function (d) { return d.date; })); let unionData = raData.concat(indexData); this.getY.domain(d3.extent(unionData, function (d) { return d.value; })); let tickValues = this.getTickValues(raData, this.selectedPicker.period); let currentPeriodFormat = this.getPeriodDateFormat(this.selectedPicker.period); this.xAxis .tickFormat(function (d) { return currentPeriodFormat(d); }) .tickValues(tickValues); this.svg.select('.x-axis-g').call(this.xAxis); this.svg.select('.y-axis-g').call(this.yAxis); this.svg.selectAll('.y-axis-g .tick text').attr('x', '40px').attr('dy', '1.1em'); this.svg.select(".performance-line") .data([raData]) .attr("d", this.valueLine); this.svg.select(".index-line") .data([indexData]) .attr("d", this.valueLine); this.svg.select('.performance-area') .data([raData]) .attr('d', this.area) .style('fill', 'url(#hist-graph-gradient)'); this.svg.select('.index-area') .data([indexData]) .attr('d', this.area) .style('fill', 'url(#index-hist-graph-gradient)'); } getTickValues(data, activePeriod) { var ticksCount = 3; if (data.length === 0) { return []; } let start: any = data[0].date; let end: any = data[data.length - 1].date; let mid = data[Math.round(data.length / 2) - 1].date; // var factor = (end - start) / (ticksCount + 1); // var values = []; // for (var i = start.getTime() + factor; i < end.getTime(); i += factor) { // values.push(new Date(i)); // } if (data.length % 3 == 0) { return [start, mid, end] } else if (data.length > 14) { return [start, mid, end] } else { return [start, end] } }; getPeriodDateFormat(period: string) { let defaultTickDateFormat = d3.timeFormat("%Y/%-m/%-d"); let periodDateFormatMap = { '1m': defaultTickDateFormat, '3m': defaultTickDateFormat, '6m': defaultTickDateFormat, '1y': defaultTickDateFormat }; return periodDateFormatMap[period]; } }
D
void main() { void foo() {} void function() bar = function void() { foo(); }; }
D
/Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/build/Ingenium.build/Release-iphonesimulator/Ingenium.build/Objects-normal/i386/CosmosDistrib.o : /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/TutorDetailVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringLabel.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/ImageLoader.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/Misc.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableImageView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringImageView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/ViewController.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SoundPlayer.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringTextView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/AppDelegate.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/addHotspotVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringAnimation.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/CosmosDistrib.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/Spring.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/LoadingView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringTextField.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/NearbyTutorsVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableButton.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableTextField.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/AsyncButton.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/KeyboardLayoutConstraint.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringButton.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/AsyncImageView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Tutor.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/TutorAnnotation.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/ProfileVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/AssignmentVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/loginVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableTabBarController.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/AutoTextView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/addAssignmentVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Action.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableTextView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableLabel.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/UnwindSegue.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Assignment.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/TransitionManager.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/BlurView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/TransitionZoom.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBObject.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/MapViewVC.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreLocation.swiftmodule /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFWebViewAppLinkResolver.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFURL.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFMeasurementEvent.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLinkTarget.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLinkResolving.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLinkNavigation.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLink.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFTaskCompletionSource.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFTask.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFExecutor.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFDefines.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFCancellationTokenSource.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFCancellationToken.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BoltsVersion.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/Bolts.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Modules/module.modulemap /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFPurchase.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFProduct.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFPush.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFNetworkActivityIndicatorManager.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFInstallation.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFUserAuthenticationDelegate.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFSession.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFRole.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFRelation.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFQuery.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFObject+Subclass.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFGeoPoint.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFFile.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFConfig.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFCloud.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFSubclassing.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFObject.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFUser.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFAnonymousUtils.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFConstants.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFAnalytics.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFACL.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/Parse.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Modules/module.modulemap /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKMacros.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Modules/module.modulemap /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreAudio.swiftmodule /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/build/Ingenium.build/Release-iphonesimulator/Ingenium.build/Objects-normal/i386/CosmosDistrib~partial.swiftmodule : /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/TutorDetailVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringLabel.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/ImageLoader.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/Misc.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableImageView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringImageView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/ViewController.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SoundPlayer.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringTextView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/AppDelegate.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/addHotspotVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringAnimation.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/CosmosDistrib.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/Spring.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/LoadingView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringTextField.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/NearbyTutorsVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableButton.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableTextField.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/AsyncButton.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/KeyboardLayoutConstraint.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringButton.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/AsyncImageView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Tutor.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/TutorAnnotation.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/ProfileVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/AssignmentVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/loginVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableTabBarController.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/AutoTextView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/addAssignmentVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Action.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableTextView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableLabel.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/UnwindSegue.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Assignment.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/TransitionManager.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/BlurView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/TransitionZoom.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBObject.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/MapViewVC.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreLocation.swiftmodule /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFWebViewAppLinkResolver.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFURL.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFMeasurementEvent.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLinkTarget.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLinkResolving.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLinkNavigation.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLink.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFTaskCompletionSource.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFTask.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFExecutor.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFDefines.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFCancellationTokenSource.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFCancellationToken.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BoltsVersion.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/Bolts.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Modules/module.modulemap /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFPurchase.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFProduct.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFPush.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFNetworkActivityIndicatorManager.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFInstallation.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFUserAuthenticationDelegate.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFSession.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFRole.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFRelation.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFQuery.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFObject+Subclass.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFGeoPoint.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFFile.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFConfig.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFCloud.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFSubclassing.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFObject.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFUser.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFAnonymousUtils.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFConstants.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFAnalytics.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFACL.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/Parse.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Modules/module.modulemap /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKMacros.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Modules/module.modulemap /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreAudio.swiftmodule /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/build/Ingenium.build/Release-iphonesimulator/Ingenium.build/Objects-normal/i386/CosmosDistrib~partial.swiftdoc : /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/TutorDetailVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringLabel.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/ImageLoader.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/Misc.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableImageView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringImageView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/ViewController.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SoundPlayer.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringTextView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/AppDelegate.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/addHotspotVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringAnimation.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/CosmosDistrib.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/Spring.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/LoadingView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringTextField.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/NearbyTutorsVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableButton.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableTextField.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/AsyncButton.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/KeyboardLayoutConstraint.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringButton.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/AsyncImageView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Tutor.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/TutorAnnotation.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/ProfileVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/AssignmentVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/loginVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableTabBarController.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/AutoTextView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/addAssignmentVC.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Action.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableTextView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/DesignableLabel.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/UnwindSegue.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Assignment.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/TransitionManager.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/BlurView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/SpringView.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Spring/TransitionZoom.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBObject.swift /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/MapViewVC.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreLocation.swiftmodule /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFWebViewAppLinkResolver.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFURL.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFMeasurementEvent.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLinkTarget.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLinkResolving.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLinkNavigation.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFAppLink.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFTaskCompletionSource.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFTask.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFExecutor.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFDefines.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFCancellationTokenSource.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BFCancellationToken.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/BoltsVersion.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Headers/Bolts.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Bolts.framework/Modules/module.modulemap /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFPurchase.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFProduct.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFPush.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFNetworkActivityIndicatorManager.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFInstallation.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFUserAuthenticationDelegate.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFSession.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFRole.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFRelation.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFQuery.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFObject+Subclass.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFGeoPoint.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFFile.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFConfig.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFCloud.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFSubclassing.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFObject.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFUser.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFAnonymousUtils.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFConstants.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFAnalytics.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/PFACL.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Headers/Parse.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/Parse.framework/Modules/module.modulemap /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKMacros.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKCoreKit.framework/Modules/module.modulemap /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Users/varun/Documents/2015Desktop/SwiftAdventures/Ingenium/Ingenium/FBSDKLoginKit.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreAudio.swiftmodule
D
/home/thodges/Workspace/Rust/rust_by_example/chapter08/for_iter_mut/target/debug/deps/for_iter_mut-4b65fd17c68659b8: src/main.rs /home/thodges/Workspace/Rust/rust_by_example/chapter08/for_iter_mut/target/debug/deps/for_iter_mut-4b65fd17c68659b8.d: src/main.rs src/main.rs:
D
module aurora.immediate; public import aurora.immediate.types; public import aurora.immediate.input; public import aurora.immediate.entry; public import aurora.immediate.application; public import aurora.immediate.window;
D
/** * Simple ASCII char classification functions. * * Copyright: Copyright Digital Mars 2004 - 2009. * License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. * Authors: Walter Bright */ /* Copyright Digital Mars 2004 - 2009. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ module rt.util.ctype; int isalnum(dchar c) { return (c <= 0x7F) ? _ctype[c] & (_ALP|_DIG) : 0; } int isalpha(dchar c) { return (c <= 0x7F) ? _ctype[c] & (_ALP) : 0; } int iscntrl(dchar c) { return (c <= 0x7F) ? _ctype[c] & (_CTL) : 0; } int isdigit(dchar c) { return (c <= 0x7F) ? _ctype[c] & (_DIG) : 0; } int islower(dchar c) { return (c <= 0x7F) ? _ctype[c] & (_LC) : 0; } int ispunct(dchar c) { return (c <= 0x7F) ? _ctype[c] & (_PNC) : 0; } int isspace(dchar c) { return (c <= 0x7F) ? _ctype[c] & (_SPC) : 0; } int isupper(dchar c) { return (c <= 0x7F) ? _ctype[c] & (_UC) : 0; } int isxdigit(dchar c) { return (c <= 0x7F) ? _ctype[c] & (_HEX) : 0; } int isgraph(dchar c) { return (c <= 0x7F) ? _ctype[c] & (_ALP|_DIG|_PNC) : 0; } int isprint(dchar c) { return (c <= 0x7F) ? _ctype[c] & (_ALP|_DIG|_PNC|_BLK) : 0; } int isascii(dchar c) { return c <= 0x7F; } dchar tolower(dchar c) out (result) { assert(!isupper(result)); } body { return isupper(c) ? c + (cast(dchar)'a' - 'A') : c; } dchar toupper(dchar c) out (result) { assert(!islower(result)); } body { return islower(c) ? c - (cast(dchar)'a' - 'A') : c; } private: enum { _SPC = 8, _CTL = 0x20, _BLK = 0x40, _HEX = 0x80, _UC = 1, _LC = 2, _PNC = 0x10, _DIG = 4, _ALP = _UC|_LC, } immutable ubyte _ctype[128] = [ _CTL,_CTL,_CTL,_CTL,_CTL,_CTL,_CTL,_CTL, _CTL,_CTL|_SPC,_CTL|_SPC,_CTL|_SPC,_CTL|_SPC,_CTL|_SPC,_CTL,_CTL, _CTL,_CTL,_CTL,_CTL,_CTL,_CTL,_CTL,_CTL, _CTL,_CTL,_CTL,_CTL,_CTL,_CTL,_CTL,_CTL, _SPC|_BLK,_PNC,_PNC,_PNC,_PNC,_PNC,_PNC,_PNC, _PNC,_PNC,_PNC,_PNC,_PNC,_PNC,_PNC,_PNC, _DIG|_HEX,_DIG|_HEX,_DIG|_HEX,_DIG|_HEX,_DIG|_HEX, _DIG|_HEX,_DIG|_HEX,_DIG|_HEX,_DIG|_HEX,_DIG|_HEX, _PNC,_PNC,_PNC,_PNC,_PNC,_PNC, _PNC,_UC|_HEX,_UC|_HEX,_UC|_HEX,_UC|_HEX,_UC|_HEX,_UC|_HEX,_UC, _UC,_UC,_UC,_UC,_UC,_UC,_UC,_UC, _UC,_UC,_UC,_UC,_UC,_UC,_UC,_UC, _UC,_UC,_UC,_PNC,_PNC,_PNC,_PNC,_PNC, _PNC,_LC|_HEX,_LC|_HEX,_LC|_HEX,_LC|_HEX,_LC|_HEX,_LC|_HEX,_LC, _LC,_LC,_LC,_LC,_LC,_LC,_LC,_LC, _LC,_LC,_LC,_LC,_LC,_LC,_LC,_LC, _LC,_LC,_LC,_PNC,_PNC,_PNC,_PNC,_CTL ]; unittest { assert(isspace(' ')); assert(!isspace('z')); assert(toupper('a') == 'A'); assert(tolower('Q') == 'q'); assert(!isxdigit('G')); }
D
/Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/HTTP.build/Serializer/Serializer.swift.o : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Async/Response+Async.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Method/Method.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Messages/Message.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/ResponseRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/BodyRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Messages/Message+CustomStringConvertible.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Middleware/Middleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/Response.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Middleware/Middleware+Chaining.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Method/Method+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/Response+Chunk.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/Body+Chunk.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/ChunkStream.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Version/Version.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/URI+Foundation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Response+Foundation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Client+Foundation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Request+Foundation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Responder/Responder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Responder/AsyncResponder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/AsyncServerWorker.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/CHTTPParser.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ResponseParser.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/RequestParser.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/Server.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/TCPServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/TLSServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/BasicServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/AsyncServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/Serializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/ResponseSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/RequestSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ParserError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/ServerError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/SerializerError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/Body+Bytes.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Headers/Headers.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ParseResults.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Status/Status.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/Response+Redirect.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Client/HTTP+Client.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Client/Client.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Request/Request.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/ThreadsafeArray.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/Body.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/HTTP.build/Serializer~partial.swiftmodule : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Async/Response+Async.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Method/Method.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Messages/Message.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/ResponseRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/BodyRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Messages/Message+CustomStringConvertible.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Middleware/Middleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/Response.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Middleware/Middleware+Chaining.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Method/Method+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/Response+Chunk.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/Body+Chunk.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/ChunkStream.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Version/Version.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/URI+Foundation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Response+Foundation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Client+Foundation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Request+Foundation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Responder/Responder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Responder/AsyncResponder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/AsyncServerWorker.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/CHTTPParser.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ResponseParser.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/RequestParser.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/Server.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/TCPServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/TLSServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/BasicServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/AsyncServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/Serializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/ResponseSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/RequestSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ParserError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/ServerError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/SerializerError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/Body+Bytes.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Headers/Headers.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ParseResults.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Status/Status.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/Response+Redirect.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Client/HTTP+Client.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Client/Client.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Request/Request.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/ThreadsafeArray.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/Body.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/HTTP.build/Serializer~partial.swiftdoc : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Async/Response+Async.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Method/Method.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Messages/Message.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/ResponseRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/BodyRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Messages/Message+CustomStringConvertible.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Middleware/Middleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/Response.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Middleware/Middleware+Chaining.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Method/Method+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/Response+Chunk.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/Body+Chunk.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/ChunkStream.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Version/Version.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/URI+Foundation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Response+Foundation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Client+Foundation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Request+Foundation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Responder/Responder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Responder/AsyncResponder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/AsyncServerWorker.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/CHTTPParser.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ResponseParser.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/RequestParser.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/Server.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/TCPServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/TLSServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/BasicServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/AsyncServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/Serializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/ResponseSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/RequestSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ParserError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/ServerError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/SerializerError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/Body+Bytes.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Headers/Headers.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ParseResults.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Status/Status.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/Response+Redirect.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Client/HTTP+Client.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Client/Client.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Request/Request.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/ThreadsafeArray.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/Body.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
D
/* * 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.codec.bytetomessagedecoder; import collie.channel; abstract class ByteToMessageDecoder(M) : InboundHandler!(ubyte[], M) { bool decode(Context* ctx, ubyte[] buf, ref M result); override void read(Context* ctx, ubyte[] msg) { bool success = true; M result; success = decode(ctx, msg, result); if (success) { ctx.fireRead(result); } } }
D
/** * Entry point for DMD. * * This modules defines the entry point (main) for DMD, as well as related * utilities needed for arguments parsing, path manipulation, etc... * This file is not shared with other compilers which use the DMD front-end. * * Copyright: Copyright (C) 1999-2020 by The D Language Foundation, All Rights Reserved * Authors: $(LINK2 http://www.digitalmars.com, Walter Bright) * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/mars.d, _mars.d) * Documentation: https://dlang.org/phobos/dmd_mars.html * Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/mars.d */ module dmd.mars; import core.stdc.ctype; import core.stdc.limits; import core.stdc.stdio; import core.stdc.stdlib; import core.stdc.string; import dmd.arraytypes; import dmd.astcodegen; import dmd.gluelayer; import dmd.builtin; import dmd.cond; import dmd.console; import dmd.compiler; import dmd.dinifile; import dmd.dinterpret; import dmd.dmodule; import dmd.doc; import dmd.dsymbol; import dmd.dsymbolsem; import dmd.dtemplate; import dmd.dtoh; import dmd.errors; import dmd.expression; import dmd.globals; import dmd.hdrgen; import dmd.id; import dmd.identifier; import dmd.inline; import dmd.json; version (NoMain) {} else { import dmd.lib; import dmd.link; import dmd.vsoptions; } import dmd.mtype; import dmd.objc; import dmd.root.array; import dmd.root.file; import dmd.root.filename; import dmd.root.man; import dmd.root.outbuffer; import dmd.root.response; import dmd.root.rmem; import dmd.root.string; import dmd.root.stringtable; import dmd.semantic2; import dmd.semantic3; import dmd.target; import dmd.utils; /** * Print DMD's logo on stdout */ private void logo() { printf("DMD%llu D Compiler %.*s\n%.*s %.*s\n", cast(ulong)size_t.sizeof * 8, cast(int) global._version.length - 1, global._version.ptr, cast(int)global.copyright.length, global.copyright.ptr, cast(int)global.written.length, global.written.ptr ); } /** Print DMD's logo with more debug information and error-reporting pointers. Params: stream = output stream to print the information on */ extern(C) void printInternalFailure(FILE* stream) { fputs(("---\n" ~ "ERROR: This is a compiler bug.\n" ~ "Please report it via https://issues.dlang.org/enter_bug.cgi\n" ~ "with, preferably, a reduced, reproducible example and the information below.\n" ~ "DustMite (https://github.com/CyberShadow/DustMite/wiki) can help with the reduction.\n" ~ "---\n").ptr, stream); stream.fprintf("DMD %.*s\n", cast(int) global._version.length - 1, global._version.ptr); stream.printPredefinedVersions; stream.printGlobalConfigs(); fputs("---\n".ptr, stream); } /** * Print DMD's usage message on stdout */ private void usage() { import dmd.cli : CLIUsage; logo(); auto help = CLIUsage.usage; const inifileCanon = FileName.canonicalName(global.inifilename); printf(" Documentation: https://dlang.org/ Config file: %.*s Usage: dmd [<option>...] <file>... dmd [<option>...] -run <file> [<arg>...] Where: <file> D source file <arg> Argument to pass when running the resulting program <option>: @<cmdfile> read arguments from cmdfile %.*s", cast(int)inifileCanon.length, inifileCanon.ptr, cast(int)help.length, &help[0]); } /** * DMD's real entry point * * Parses command line arguments and config file, open and read all * provided source file and do semantic analysis on them. * * Params: * argc = Number of arguments passed via command line * argv = Array of string arguments passed via command line * * Returns: * Application return code */ version (NoMain) {} else private int tryMain(size_t argc, const(char)** argv, ref Param params) { Strings files; Strings libmodules; global._init(); // Check for malformed input if (argc < 1 || !argv) { Largs: error(Loc.initial, "missing or null command line arguments"); fatal(); } // Convert argc/argv into arguments[] for easier handling Strings arguments = Strings(argc); for (size_t i = 0; i < argc; i++) { if (!argv[i]) goto Largs; arguments[i] = argv[i]; } if (!responseExpand(arguments)) // expand response files error(Loc.initial, "can't open response file"); //for (size_t i = 0; i < arguments.dim; ++i) printf("arguments[%d] = '%s'\n", i, arguments[i]); files.reserve(arguments.dim - 1); // Set default values params.argv0 = arguments[0].toDString; // Temporary: Use 32 bits OMF as the default on Windows, for config parsing static if (TARGET.Windows) { params.is64bit = false; params.mscoff = false; } global.inifilename = parse_conf_arg(&arguments); if (global.inifilename) { // can be empty as in -conf= if (global.inifilename.length && !FileName.exists(global.inifilename)) error(Loc.initial, "Config file '%.*s' does not exist.", cast(int)global.inifilename.length, global.inifilename.ptr); } else { version (Windows) { global.inifilename = findConfFile(params.argv0, "sc.ini"); } else version (Posix) { global.inifilename = findConfFile(params.argv0, "dmd.conf"); } else { static assert(0, "fix this"); } } // Read the configuration file const iniReadResult = global.inifilename.toCStringThen!(fn => File.read(fn.ptr)); const inifileBuffer = iniReadResult.buffer.data; /* Need path of configuration file, for use in expanding @P macro */ const(char)[] inifilepath = FileName.path(global.inifilename); Strings sections; StringTable!(char*) environment; environment._init(7); /* Read the [Environment] section, so we can later * pick up any DFLAGS settings. */ sections.push("Environment"); parseConfFile(environment, global.inifilename, inifilepath, inifileBuffer, &sections); const(char)[] arch = params.is64bit ? "64" : "32"; // use default arch = parse_arch_arg(&arguments, arch); // parse architecture from DFLAGS read from [Environment] section { Strings dflags; getenv_setargv(readFromEnv(environment, "DFLAGS"), &dflags); environment.reset(7); // erase cached environment updates arch = parse_arch_arg(&dflags, arch); } bool is64bit = arch[0] == '6'; version(Windows) // delete LIB entry in [Environment] (necessary for optlink) to allow inheriting environment for MS-COFF if (is64bit || arch == "32mscoff") environment.update("LIB", 3).value = null; // read from DFLAGS in [Environment{arch}] section char[80] envsection = void; sprintf(envsection.ptr, "Environment%.*s", cast(int) arch.length, arch.ptr); sections.push(envsection.ptr); parseConfFile(environment, global.inifilename, inifilepath, inifileBuffer, &sections); getenv_setargv(readFromEnv(environment, "DFLAGS"), &arguments); updateRealEnvironment(environment); environment.reset(1); // don't need environment cache any more if (parseCommandLine(arguments, argc, params, files)) { Loc loc; errorSupplemental(loc, "run `dmd` to print the compiler manual"); errorSupplemental(loc, "run `dmd -man` to open browser on manual"); return EXIT_FAILURE; } if (params.usage) { usage(); return EXIT_SUCCESS; } if (params.logo) { logo(); return EXIT_SUCCESS; } /* Prints a supplied usage text to the console and returns the exit code for the help usage page. Returns: `EXIT_SUCCESS` if no errors occurred, `EXIT_FAILURE` otherwise */ static int printHelpUsage(string help) { printf("%.*s", cast(int)help.length, &help[0]); return global.errors ? EXIT_FAILURE : EXIT_SUCCESS; } /* Generates code to check for all `params` whether any usage page has been requested. If so, the generated code will print the help page of the flag and return with an exit code. Params: params = parameters with `Usage` suffices in `params` for which their truthness should be checked. Returns: generated code for checking the usage pages of the provided `params`. */ static string generateUsageChecks(string[] params) { string s; foreach (n; params) { s ~= q{ if (params.}~n~q{Usage) return printHelpUsage(CLIUsage.}~n~q{Usage); }; } return s; } import dmd.cli : CLIUsage; mixin(generateUsageChecks(["mcpu", "transition", "check", "checkAction", "preview", "revert", "externStd"])); if (params.manual) { version (Windows) { browse("http://dlang.org/dmd-windows.html"); } version (linux) { browse("http://dlang.org/dmd-linux.html"); } version (OSX) { browse("http://dlang.org/dmd-osx.html"); } version (FreeBSD) { browse("http://dlang.org/dmd-freebsd.html"); } /*NOTE: No regular builds for openbsd/dragonflybsd (yet) */ /* version (OpenBSD) { browse("http://dlang.org/dmd-openbsd.html"); } version (DragonFlyBSD) { browse("http://dlang.org/dmd-dragonflybsd.html"); } */ return EXIT_SUCCESS; } if (params.color) global.console = Console.create(core.stdc.stdio.stderr); setTarget(params); // set target operating system setTargetCPU(params); if (params.is64bit != is64bit) error(Loc.initial, "the architecture must not be changed in the %s section of %.*s", envsection.ptr, cast(int)global.inifilename.length, global.inifilename.ptr); if (global.errors) { fatal(); } if (files.dim == 0) { if (params.jsonFieldFlags) { generateJson(null); return EXIT_SUCCESS; } usage(); return EXIT_FAILURE; } reconcileCommands(params, files.dim); // Add in command line versions if (params.versionids) foreach (charz; *params.versionids) VersionCondition.addGlobalIdent(charz.toDString()); if (params.debugids) foreach (charz; *params.debugids) DebugCondition.addGlobalIdent(charz.toDString()); setTarget(params); // Predefined version identifiers addDefaultVersionIdentifiers(params); setDefaultLibrary(); // Initialization Type._init(); Id.initialize(); Module._init(); target._init(params); Expression._init(); Objc._init(); import dmd.filecache : FileCache; FileCache._init(); version(CRuntime_Microsoft) { import dmd.root.longdouble; initFPU(); } import dmd.root.ctfloat : CTFloat; CTFloat.initialize(); if (params.verbose) { stdout.printPredefinedVersions(); stdout.printGlobalConfigs(); } //printf("%d source files\n",files.dim); // Build import search path static Strings* buildPath(Strings* imppath) { Strings* result = null; if (imppath) { foreach (const path; *imppath) { Strings* a = FileName.splitPath(path); if (a) { if (!result) result = new Strings(); result.append(a); } } } return result; } if (params.mixinFile) { params.mixinOut = cast(OutBuffer*)Mem.check(calloc(1, OutBuffer.sizeof)); atexit(&flushMixins); // see comment for flushMixins } scope(exit) flushMixins(); global.path = buildPath(params.imppath); global.filePath = buildPath(params.fileImppath); if (params.addMain) files.push("__main.d"); // Create Modules Modules modules = createModules(files, libmodules); // Read files // Start by "reading" the special files (__main.d, __stdin.d) foreach (m; modules) { if (params.addMain && m.srcfile.toString() == "__main.d") { auto data = arraydup("int main(){return 0;}\0\0\0\0"); // need 2 trailing nulls for sentinel and 2 for lexer m.srcBuffer = new FileBuffer(cast(ubyte[]) data[0 .. $-4]); } else if (m.srcfile.toString() == "__stdin.d") { auto buffer = readFromStdin(); m.srcBuffer = new FileBuffer(buffer.extractSlice()); } } foreach (m; modules) { m.read(Loc.initial); } // Parse files bool anydocfiles = false; size_t filecount = modules.dim; for (size_t filei = 0, modi = 0; filei < filecount; filei++, modi++) { Module m = modules[modi]; if (params.verbose) message("parse %s", m.toChars()); if (!Module.rootModule) Module.rootModule = m; m.importedFrom = m; // m.isRoot() == true if (!params.oneobj || modi == 0 || m.isDocFile) m.deleteObjFile(); m.parse(); if (m.isHdrFile) { // Remove m's object file from list of object files for (size_t j = 0; j < params.objfiles.length; j++) { if (m.objfile.toChars() == params.objfiles[j]) { params.objfiles.remove(j); break; } } if (params.objfiles.length == 0) params.link = false; } if (m.isDocFile) { anydocfiles = true; gendocfile(m); // Remove m from list of modules modules.remove(modi); modi--; // Remove m's object file from list of object files for (size_t j = 0; j < params.objfiles.length; j++) { if (m.objfile.toChars() == params.objfiles[j]) { params.objfiles.remove(j); break; } } if (params.objfiles.length == 0) params.link = false; } } if (anydocfiles && modules.dim && (params.oneobj || params.objname)) { error(Loc.initial, "conflicting Ddoc and obj generation options"); fatal(); } if (global.errors) fatal(); if (params.doHdrGeneration) { /* Generate 'header' import files. * Since 'header' import files must be independent of command * line switches and what else is imported, they are generated * before any semantic analysis. */ foreach (m; modules) { if (m.isHdrFile) continue; if (params.verbose) message("import %s", m.toChars()); genhdrfile(m); } } if (global.errors) removeHdrFilesAndFail(params, modules); // load all unconditional imports for better symbol resolving foreach (m; modules) { if (params.verbose) message("importall %s", m.toChars()); m.importAll(null); } if (global.errors) removeHdrFilesAndFail(params, modules); backend_init(); // Do semantic analysis foreach (m; modules) { if (params.verbose) message("semantic %s", m.toChars()); m.dsymbolSemantic(null); } //if (global.errors) // fatal(); Module.dprogress = 1; Module.runDeferredSemantic(); if (Module.deferred.dim) { for (size_t i = 0; i < Module.deferred.dim; i++) { Dsymbol sd = Module.deferred[i]; sd.error("unable to resolve forward reference in definition"); } //fatal(); } // Do pass 2 semantic analysis foreach (m; modules) { if (params.verbose) message("semantic2 %s", m.toChars()); m.semantic2(null); } Module.runDeferredSemantic2(); if (global.errors) removeHdrFilesAndFail(params, modules); // Do pass 3 semantic analysis foreach (m; modules) { if (params.verbose) message("semantic3 %s", m.toChars()); m.semantic3(null); } if (includeImports) { // Note: DO NOT USE foreach here because Module.amodules.dim can // change on each iteration of the loop for (size_t i = 0; i < compiledImports.dim; i++) { auto m = compiledImports[i]; assert(m.isRoot); if (params.verbose) message("semantic3 %s", m.toChars()); m.semantic3(null); modules.push(m); } } Module.runDeferredSemantic3(); if (global.errors) removeHdrFilesAndFail(params, modules); // Scan for functions to inline foreach (m; modules) { if (params.useInline || m.hasAlwaysInlines) { if (params.verbose) message("inline scan %s", m.toChars()); inlineScanModule(m); } } // Do not attempt to generate output files if errors or warnings occurred if (global.errors || global.warnings) removeHdrFilesAndFail(params, modules); // inlineScan incrementally run semantic3 of each expanded functions. // So deps file generation should be moved after the inlining stage. if (OutBuffer* ob = params.moduleDeps) { foreach (i; 1 .. modules[0].aimports.dim) semantic3OnDependencies(modules[0].aimports[i]); Module.runDeferredSemantic3(); const data = (*ob)[]; if (params.moduleDepsFile) writeFile(Loc.initial, params.moduleDepsFile, data); else printf("%.*s", cast(int)data.length, data.ptr); } printCtfePerformanceStats(); printTemplateStats(); Library library = null; if (params.lib) { if (params.objfiles.length == 0) { error(Loc.initial, "no input files"); return EXIT_FAILURE; } library = Library.factory(); library.setFilename(params.objdir, params.libname); // Add input object and input library files to output library foreach (p; libmodules) library.addObject(p.toDString(), null); } // Generate output files if (params.doJsonGeneration) { generateJson(&modules); } if (!global.errors && params.doDocComments) { foreach (m; modules) { gendocfile(m); } } if (params.vcg_ast) { import dmd.hdrgen; foreach (mod; modules) { auto buf = OutBuffer(); buf.doindent = 1; moduleToBuffer(&buf, mod); // write the output to $(filename).cg auto cgFilename = FileName.addExt(mod.srcfile.toString(), "cg"); File.write(cgFilename.ptr, buf[]); } } if (global.params.doCxxHdrGeneration) genCppHdrFiles(modules); if (global.errors) fatal(); if (!params.obj) { } else if (params.oneobj) { Module firstm; // first module we generate code for foreach (m; modules) { if (m.isHdrFile) continue; if (!firstm) { firstm = m; obj_start(m.srcfile.toChars()); } if (params.verbose) message("code %s", m.toChars()); genObjFile(m, false); } if (!global.errors && firstm) { obj_end(library, firstm.objfile.toChars()); } } else { foreach (m; modules) { if (m.isHdrFile) continue; if (params.verbose) message("code %s", m.toChars()); obj_start(m.srcfile.toChars()); genObjFile(m, params.multiobj); obj_end(library, m.objfile.toChars()); obj_write_deferred(library); if (global.errors && !params.lib) m.deleteObjFile(); } } if (params.lib && !global.errors) library.write(); backend_term(); if (global.errors) fatal(); int status = EXIT_SUCCESS; if (!params.objfiles.length) { if (params.link) error(Loc.initial, "no object files to link"); } else { if (params.link) status = runLINK(); if (params.run) { if (!status) { status = runProgram(); /* Delete .obj files and .exe file */ foreach (m; modules) { m.deleteObjFile(); if (params.oneobj) break; } params.exefile.toCStringThen!(ef => File.remove(ef.ptr)); } } } if (global.errors || global.warnings) removeHdrFilesAndFail(params, modules); return status; } private FileBuffer readFromStdin() { enum bufIncrement = 128 * 1024; size_t pos = 0; size_t sz = bufIncrement; ubyte* buffer = null; for (;;) { buffer = cast(ubyte*)mem.xrealloc(buffer, sz + 4); // +2 for sentinel and +2 for lexer // Fill up buffer do { assert(sz > pos); size_t rlen = fread(buffer + pos, 1, sz - pos, stdin); pos += rlen; if (ferror(stdin)) { import core.stdc.errno; error(Loc.initial, "cannot read from stdin, errno = %d", errno); fatal(); } if (feof(stdin)) { // We're done assert(pos < sz + 2); buffer[pos] = '\0'; buffer[pos + 1] = '\0'; buffer[pos + 2] = '\0'; buffer[pos + 3] = '\0'; return FileBuffer(buffer[0 .. pos]); } } while (pos < sz); // Buffer full, expand sz += bufIncrement; } assert(0); } extern (C++) void generateJson(Modules* modules) { OutBuffer buf; json_generate(&buf, modules); // Write buf to file const(char)[] name = global.params.jsonfilename; if (name == "-") { // Write to stdout; assume it succeeds size_t n = fwrite(buf[].ptr, 1, buf.length, stdout); assert(n == buf.length); // keep gcc happy about return values } else { /* The filename generation code here should be harmonized with Module.setOutfilename() */ const(char)[] jsonfilename; if (name) { jsonfilename = FileName.defaultExt(name, global.json_ext); } else { if (global.params.objfiles.length == 0) { error(Loc.initial, "cannot determine JSON filename, use `-Xf=<file>` or provide a source file"); fatal(); } // Generate json file name from first obj name const(char)[] n = global.params.objfiles[0].toDString; n = FileName.name(n); //if (!FileName::absolute(name)) // name = FileName::combine(dir, name); jsonfilename = FileName.forceExt(n, global.json_ext); } writeFile(Loc.initial, jsonfilename, buf[]); } } version (DigitalMars) { private void installMemErrHandler() { // (only available on some platforms on DMD) const shouldDoMemoryError = getenv("DMD_INSTALL_MEMERR_HANDLER"); if (shouldDoMemoryError !is null && *shouldDoMemoryError == '1') { import etc.linux.memoryerror; static if (is(typeof(registerMemoryErrorHandler()))) { registerMemoryErrorHandler(); } else { printf("**WARNING** Memory error handler not supported on this platform!\n"); } } } } version (NoMain) { version (DigitalMars) { shared static this() { installMemErrHandler(); } } } else { // in druntime: alias MainFunc = extern(C) int function(char[][] args); extern (C) int _d_run_main(int argc, char** argv, MainFunc dMain); // When using a C main, host DMD may not link against host druntime by default. version (DigitalMars) { version (Win64) pragma(lib, "phobos64"); else version (Win32) { version (CRuntime_Microsoft) pragma(lib, "phobos32mscoff"); else pragma(lib, "phobos"); } } extern extern(C) __gshared string[] rt_options; /** * DMD's entry point, C main. * * Without `-lowmem`, we need to switch to the bump-pointer allocation scheme * right from the start, before any module ctors are run, so we need this hook * before druntime is initialized and `_Dmain` is called. * * Returns: * Return code of the application */ extern (C) int main(int argc, char** argv) { static if (isGCAvailable) { bool lowmem = false; foreach (i; 1 .. argc) { if (strcmp(argv[i], "-lowmem") == 0) { lowmem = true; break; } } if (!lowmem) { __gshared string[] disable_options = [ "gcopt=disable:1" ]; rt_options = disable_options; mem.disableGC(); } } // initialize druntime and call _Dmain() below return _d_run_main(argc, argv, &_Dmain); } /** * Manual D main (for druntime initialization), which forwards to `tryMain`. * * Returns: * Return code of the application */ extern (C) int _Dmain(char[][]) { // possibly install memory error handler version (DigitalMars) { installMemErrHandler(); } import core.runtime; import core.memory; static if (!isGCAvailable) GC.disable(); version(D_Coverage) { // for now we need to manually set the source path string dirName(string path, char separator) { for (size_t i = path.length - 1; i > 0; i--) { if (path[i] == separator) return path[0..i]; } return path; } version (Windows) enum sourcePath = dirName(dirName(dirName(__FILE_FULL_PATH__, '\\'), '\\'), '\\'); else enum sourcePath = dirName(dirName(dirName(__FILE_FULL_PATH__, '/'), '/'), '/'); dmd_coverSourcePath(sourcePath); dmd_coverDestPath(sourcePath); dmd_coverSetMerge(true); } scope(failure) stderr.printInternalFailure; auto args = Runtime.cArgs(); return tryMain(args.argc, cast(const(char)**)args.argv, global.params); } } // !NoMain /** * Parses an environment variable containing command-line flags * and append them to `args`. * * This function is used to read the content of DFLAGS. * Flags are separated based on spaces and tabs. * * Params: * envvalue = The content of an environment variable * args = Array to append the flags to, if any. */ void getenv_setargv(const(char)* envvalue, Strings* args) { if (!envvalue) return; char* env = mem.xstrdup(envvalue); // create our own writable copy //printf("env = '%s'\n", env); while (1) { switch (*env) { case ' ': case '\t': env++; break; case 0: return; default: { args.push(env); // append auto p = env; auto slash = 0; bool instring = false; while (1) { auto c = *env++; switch (c) { case '"': p -= (slash >> 1); if (slash & 1) { p--; goto default; } instring ^= true; slash = 0; continue; case ' ': case '\t': if (instring) goto default; *p = 0; //if (wildcard) // wildcardexpand(); // not implemented break; case '\\': slash++; *p++ = c; continue; case 0: *p = 0; //if (wildcard) // wildcardexpand(); // not implemented return; default: slash = 0; *p++ = c; continue; } break; } break; } } } } /** * Parse command line arguments for the last instance of -m32, -m64 or -m32mscoff * to detect the desired architecture. * * Params: * args = Command line arguments * arch = Default value to use for architecture. * Should be "32" or "64" * * Returns: * "32", "64" or "32mscoff" if the "-m32", "-m64", "-m32mscoff" flags were passed, * respectively. If they weren't, return `arch`. */ const(char)[] parse_arch_arg(Strings* args, const(char)[] arch) { foreach (const p; *args) { const(char)[] arg = p.toDString; if (arg.length && arg[0] == '-') { if (arg[1 .. $] == "m32" || arg[1 .. $] == "m32mscoff" || arg[1 .. $] == "m64") arch = arg[2 .. $]; else if (arg[1 .. $] == "run") break; } } return arch; } /** * Parse command line arguments for the last instance of -conf=path. * * Params: * args = Command line arguments * * Returns: * The 'path' in -conf=path, which is the path to the config file to use */ const(char)[] parse_conf_arg(Strings* args) { const(char)[] conf; foreach (const p; *args) { const(char)[] arg = p.toDString; if (arg.length && arg[0] == '-') { if(arg.length >= 6 && arg[1 .. 6] == "conf="){ conf = arg[6 .. $]; } else if (arg[1 .. $] == "run") break; } } return conf; } /** * Set the default and debug libraries to link against, if not already set * * Must be called after argument parsing is done, as it won't * override any value. * Note that if `-defaultlib=` or `-debuglib=` was used, * we don't override that either. */ private void setDefaultLibrary() { if (global.params.defaultlibname is null) { static if (TARGET.Windows) { if (global.params.is64bit) global.params.defaultlibname = "phobos64"; else if (global.params.mscoff) global.params.defaultlibname = "phobos32mscoff"; else global.params.defaultlibname = "phobos"; } else static if (TARGET.Linux || TARGET.FreeBSD || TARGET.OpenBSD || TARGET.Solaris || TARGET.DragonFlyBSD) { global.params.defaultlibname = "libphobos2.a"; } else static if (TARGET.OSX) { global.params.defaultlibname = "phobos2"; } else { static assert(0, "fix this"); } } else if (!global.params.defaultlibname.length) // if `-defaultlib=` (i.e. an empty defaultlib) global.params.defaultlibname = null; if (global.params.debuglibname is null) global.params.debuglibname = global.params.defaultlibname; } /************************************* * Set the `is` target fields of `params` according * to the TARGET value. * Params: * params = where the `is` fields are */ void setTarget(ref Param params) { static if (TARGET.Windows) params.isWindows = true; else static if (TARGET.Linux) params.isLinux = true; else static if (TARGET.OSX) params.isOSX = true; else static if (TARGET.FreeBSD) params.isFreeBSD = true; else static if (TARGET.OpenBSD) params.isOpenBSD = true; else static if (TARGET.Solaris) params.isSolaris = true; else static if (TARGET.DragonFlyBSD) params.isDragonFlyBSD = true; else static assert(0, "unknown TARGET"); } /** * Add default `version` identifier for dmd, and set the * target platform in `params`. * https://dlang.org/spec/version.html#predefined-versions * * Needs to be run after all arguments parsing (command line, DFLAGS environment * variable and config file) in order to add final flags (such as `X86_64` or * the `CRuntime` used). * * Params: * params = which target to compile for (set by `setTarget()`) */ void addDefaultVersionIdentifiers(const ref Param params) { VersionCondition.addPredefinedGlobalIdent("DigitalMars"); if (params.isWindows) { VersionCondition.addPredefinedGlobalIdent("Windows"); if (global.params.mscoff) { VersionCondition.addPredefinedGlobalIdent("CRuntime_Microsoft"); VersionCondition.addPredefinedGlobalIdent("CppRuntime_Microsoft"); } else { VersionCondition.addPredefinedGlobalIdent("CRuntime_DigitalMars"); VersionCondition.addPredefinedGlobalIdent("CppRuntime_DigitalMars"); } } else if (params.isLinux) { VersionCondition.addPredefinedGlobalIdent("Posix"); VersionCondition.addPredefinedGlobalIdent("linux"); VersionCondition.addPredefinedGlobalIdent("ELFv1"); // Note: This should be done with a target triplet, to support cross compilation. // However DMD currently does not support it, so this is a simple // fix to make DMD compile on Musl-based systems such as Alpine. // See https://github.com/dlang/dmd/pull/8020 // And https://wiki.osdev.org/Target_Triplet version (CRuntime_Musl) VersionCondition.addPredefinedGlobalIdent("CRuntime_Musl"); else VersionCondition.addPredefinedGlobalIdent("CRuntime_Glibc"); VersionCondition.addPredefinedGlobalIdent("CppRuntime_Gcc"); } else if (params.isOSX) { VersionCondition.addPredefinedGlobalIdent("Posix"); VersionCondition.addPredefinedGlobalIdent("OSX"); VersionCondition.addPredefinedGlobalIdent("CppRuntime_Clang"); // For legacy compatibility VersionCondition.addPredefinedGlobalIdent("darwin"); } else if (params.isFreeBSD) { VersionCondition.addPredefinedGlobalIdent("Posix"); VersionCondition.addPredefinedGlobalIdent("FreeBSD"); VersionCondition.addPredefinedGlobalIdent("ELFv1"); VersionCondition.addPredefinedGlobalIdent("CppRuntime_Clang"); } else if (params.isOpenBSD) { VersionCondition.addPredefinedGlobalIdent("Posix"); VersionCondition.addPredefinedGlobalIdent("OpenBSD"); VersionCondition.addPredefinedGlobalIdent("ELFv1"); VersionCondition.addPredefinedGlobalIdent("CppRuntime_Gcc"); } else if (params.isDragonFlyBSD) { VersionCondition.addPredefinedGlobalIdent("Posix"); VersionCondition.addPredefinedGlobalIdent("DragonFlyBSD"); VersionCondition.addPredefinedGlobalIdent("ELFv1"); VersionCondition.addPredefinedGlobalIdent("CppRuntime_Gcc"); } else if (params.isSolaris) { VersionCondition.addPredefinedGlobalIdent("Posix"); VersionCondition.addPredefinedGlobalIdent("Solaris"); VersionCondition.addPredefinedGlobalIdent("ELFv1"); VersionCondition.addPredefinedGlobalIdent("CppRuntime_Sun"); } else { assert(0); } VersionCondition.addPredefinedGlobalIdent("LittleEndian"); VersionCondition.addPredefinedGlobalIdent("D_Version2"); VersionCondition.addPredefinedGlobalIdent("all"); if (params.cpu >= CPU.sse2) { VersionCondition.addPredefinedGlobalIdent("D_SIMD"); if (params.cpu >= CPU.avx) VersionCondition.addPredefinedGlobalIdent("D_AVX"); if (params.cpu >= CPU.avx2) VersionCondition.addPredefinedGlobalIdent("D_AVX2"); } if (params.is64bit) { VersionCondition.addPredefinedGlobalIdent("D_InlineAsm_X86_64"); VersionCondition.addPredefinedGlobalIdent("X86_64"); if (params.isWindows) { VersionCondition.addPredefinedGlobalIdent("Win64"); } } else { VersionCondition.addPredefinedGlobalIdent("D_InlineAsm"); //legacy VersionCondition.addPredefinedGlobalIdent("D_InlineAsm_X86"); VersionCondition.addPredefinedGlobalIdent("X86"); if (params.isWindows) { VersionCondition.addPredefinedGlobalIdent("Win32"); } } if (params.isLP64) VersionCondition.addPredefinedGlobalIdent("D_LP64"); if (params.doDocComments) VersionCondition.addPredefinedGlobalIdent("D_Ddoc"); if (params.cov) VersionCondition.addPredefinedGlobalIdent("D_Coverage"); if (params.pic != PIC.fixed) VersionCondition.addPredefinedGlobalIdent(params.pic == PIC.pic ? "D_PIC" : "D_PIE"); if (params.useUnitTests) VersionCondition.addPredefinedGlobalIdent("unittest"); if (params.useAssert == CHECKENABLE.on) VersionCondition.addPredefinedGlobalIdent("assert"); if (params.useArrayBounds == CHECKENABLE.off) VersionCondition.addPredefinedGlobalIdent("D_NoBoundsChecks"); if (params.betterC) { VersionCondition.addPredefinedGlobalIdent("D_BetterC"); } else { VersionCondition.addPredefinedGlobalIdent("D_ModuleInfo"); VersionCondition.addPredefinedGlobalIdent("D_Exceptions"); VersionCondition.addPredefinedGlobalIdent("D_TypeInfo"); } VersionCondition.addPredefinedGlobalIdent("D_HardFloat"); } private void printPredefinedVersions(FILE* stream) { if (global.versionids) { OutBuffer buf; foreach (const str; *global.versionids) { buf.writeByte(' '); buf.writestring(str.toChars()); } stream.fprintf("predefs %s\n", buf.peekChars()); } } extern(C) void printGlobalConfigs(FILE* stream) { stream.fprintf("binary %.*s\n", cast(int)global.params.argv0.length, global.params.argv0.ptr); stream.fprintf("version %.*s\n", cast(int) global._version.length - 1, global._version.ptr); const iniOutput = global.inifilename ? global.inifilename : "(none)"; stream.fprintf("config %.*s\n", cast(int)iniOutput.length, iniOutput.ptr); // Print DFLAGS environment variable { StringTable!(char*) environment; environment._init(0); Strings dflags; getenv_setargv(readFromEnv(environment, "DFLAGS"), &dflags); environment.reset(1); OutBuffer buf; foreach (flag; dflags[]) { bool needsQuoting; foreach (c; flag.toDString()) { if (!(isalnum(c) || c == '_')) { needsQuoting = true; break; } } if (flag.strchr(' ')) buf.printf("'%s' ", flag); else buf.printf("%s ", flag); } auto res = buf[] ? buf[][0 .. $ - 1] : "(none)"; stream.fprintf("DFLAGS %.*s\n", cast(int)res.length, res.ptr); } } /**************************************** * Determine the instruction set to be used, i.e. set params.cpu * by combining the command line setting of * params.cpu with the target operating system. * Params: * params = parameters set by command line switch */ private void setTargetCPU(ref Param params) { if (target.isXmmSupported()) { switch (params.cpu) { case CPU.baseline: params.cpu = CPU.sse2; break; case CPU.native: { import core.cpuid; params.cpu = core.cpuid.avx2 ? CPU.avx2 : core.cpuid.avx ? CPU.avx : CPU.sse2; break; } default: break; } } else params.cpu = CPU.x87; // cannot support other instruction sets } /************************************** * we want to write the mixin expansion file also on error, but there * are too many ways to terminate dmd (e.g. fatal() which calls exit(EXIT_FAILURE)), * so we can't rely on scope(exit) ... in tryMain() actually being executed * so we add atexit(&flushMixins); for those fatal exits (with the GC still valid) */ extern(C) void flushMixins() { if (!global.params.mixinOut) return; assert(global.params.mixinFile); File.write(global.params.mixinFile, (*global.params.mixinOut)[]); global.params.mixinOut.destroy(); global.params.mixinOut = null; } /**************************************************** * Parse command line arguments. * * Prints message(s) if there are errors. * * Params: * arguments = command line arguments * argc = argument count * params = set to result of parsing `arguments` * files = set to files pulled from `arguments` * Returns: * true if errors in command line */ bool parseCommandLine(const ref Strings arguments, const size_t argc, ref Param params, ref Strings files) { bool errors; void error(Args ...)(const(char)* format, Args args) { dmd.errors.error(Loc.initial, format, args); errors = true; } /** * Print an error messsage about an invalid switch. * If an optional supplemental message has been provided, * it will be printed too. * * Params: * p = 0 terminated string * availableOptions = supplemental help message listing the available options */ void errorInvalidSwitch(const(char)* p, string availableOptions = null) { error("Switch `%s` is invalid", p); if (availableOptions !is null) errorSupplemental(Loc.initial, "%.*s", cast(int)availableOptions.length, availableOptions.ptr); } enum CheckOptions { success, error, help } /* Checks whether the CLI options contains a valid argument or a help argument. If a help argument has been used, it will set the `usageFlag`. Params: p = string as a D array usageFlag = parameter for the usage help page to set (by `ref`) missingMsg = error message to use when no argument has been provided Returns: `success` if a valid argument has been passed and it's not a help page `error` if an error occurred (e.g. `-foobar`) `help` if a help page has been request (e.g. `-flag` or `-flag=h`) */ CheckOptions checkOptions(const(char)[] p, ref bool usageFlag, string missingMsg) { // Checks whether a flag has no options (e.g. -foo or -foo=) if (p.length == 0 || p == "=") { .error(Loc.initial, "%.*s", cast(int)missingMsg.length, missingMsg.ptr); errors = true; usageFlag = true; return CheckOptions.help; } if (p[0] != '=') return CheckOptions.error; p = p[1 .. $]; /* Checks whether the option pointer supplied is a request for the help page, e.g. -foo=j */ if ((p == "h" || p == "?") || // -flag=h || -flag=? p == "help") { usageFlag = true; return CheckOptions.help; } return CheckOptions.success; } static string checkOptionsMixin(string usageFlag, string missingMsg) { return q{ final switch (checkOptions(arg[len - 1 .. $], params.}~usageFlag~","~ `"`~missingMsg~`"`~q{)) { case CheckOptions.error: goto Lerror; case CheckOptions.help: return false; case CheckOptions.success: break; } }; } import dmd.cli : Usage; bool parseCLIOption(string name, Usage.Feature[] features)(ref Param params, const(char)[] p) { // Parse: // -<name>=<feature> const(char)[] ps = p[name.length + 1 .. $]; const(char)[] ident = ps[1 .. $]; if (Identifier.isValidIdentifier(ident)) { string generateTransitionsText() { import dmd.cli : Usage; string buf = `case "all":`; foreach (t; features) { if (t.deprecated_) continue; buf ~= `params.`~t.paramName~` = true;`; } buf ~= "return true;\n"; foreach (t; features) { buf ~= `case "`~t.name~`":`; if (t.deprecated_) buf ~= "deprecation(Loc.initial, \"`-"~name~"="~t.name~"` no longer has any effect.\"); "; buf ~= `params.`~t.paramName~` = true; return true;`; } return buf; } switch (ident) { mixin(generateTransitionsText()); default: return false; } } return false; } version (none) { for (size_t i = 0; i < arguments.dim; i++) { printf("arguments[%d] = '%s'\n", i, arguments[i]); } } for (size_t i = 1; i < arguments.dim; i++) { const(char)* p = arguments[i]; const(char)[] arg = p.toDString(); if (*p != '-') { static if (TARGET.Windows) { const ext = FileName.ext(arg); if (ext.length && FileName.equals(ext, "exe")) { params.objname = arg; continue; } if (arg == "/?") { params.usage = true; return false; } } files.push(p); continue; } if (arg == "-allinst") // https://dlang.org/dmd.html#switch-allinst params.allInst = true; else if (arg == "-de") // https://dlang.org/dmd.html#switch-de params.useDeprecated = DiagnosticReporting.error; else if (arg == "-d") // https://dlang.org/dmd.html#switch-d params.useDeprecated = DiagnosticReporting.off; else if (arg == "-dw") // https://dlang.org/dmd.html#switch-dw params.useDeprecated = DiagnosticReporting.inform; else if (arg == "-c") // https://dlang.org/dmd.html#switch-c params.link = false; else if (startsWith(p + 1, "checkaction")) // https://dlang.org/dmd.html#switch-checkaction { /* Parse: * -checkaction=D|C|halt|context */ enum len = "-checkaction=".length; mixin(checkOptionsMixin("checkActionUsage", "`-check=<behavior>` requires a behavior")); switch (arg[len .. $]) { case "D": params.checkAction = CHECKACTION.D; break; case "C": params.checkAction = CHECKACTION.C; break; case "halt": params.checkAction = CHECKACTION.halt; break; case "context": params.checkAction = CHECKACTION.context; break; default: errorInvalidSwitch(p); params.checkActionUsage = true; return false; } } else if (startsWith(p + 1, "check")) // https://dlang.org/dmd.html#switch-check { enum len = "-check=".length; mixin(checkOptionsMixin("checkUsage", "`-check=<action>` requires an action")); /* Parse: * -check=[assert|bounds|in|invariant|out|switch][=[on|off]] */ // Check for legal option string; return true if so static bool check(const(char)[] checkarg, string name, ref CHECKENABLE ce) { if (checkarg.length >= name.length && checkarg[0 .. name.length] == name) { checkarg = checkarg[name.length .. $]; if (checkarg.length == 0 || checkarg == "=on") { ce = CHECKENABLE.on; return true; } else if (checkarg == "=off") { ce = CHECKENABLE.off; return true; } } return false; } const(char)[] checkarg = arg[len .. $]; if (!(check(checkarg, "assert", params.useAssert ) || check(checkarg, "bounds", params.useArrayBounds) || check(checkarg, "in", params.useIn ) || check(checkarg, "invariant", params.useInvariants ) || check(checkarg, "out", params.useOut ) || check(checkarg, "switch", params.useSwitchError))) { errorInvalidSwitch(p); params.checkUsage = true; return false; } } else if (startsWith(p + 1, "color")) // https://dlang.org/dmd.html#switch-color { // Parse: // -color // -color=auto|on|off if (p[6] == '=') { switch(arg[7 .. $]) { case "on": params.color = true; break; case "off": params.color = false; break; case "auto": break; default: errorInvalidSwitch(p, "Available options for `-color` are `on`, `off` and `auto`"); return true; } } else if (p[6]) goto Lerror; else params.color = true; } else if (startsWith(p + 1, "conf=")) // https://dlang.org/dmd.html#switch-conf { // ignore, already handled above } else if (startsWith(p + 1, "cov")) // https://dlang.org/dmd.html#switch-cov { params.cov = true; // Parse: // -cov // -cov=ctfe // -cov=nnn if (arg == "-cov=ctfe") { params.ctfe_cov = true; } else if (p[4] == '=') { if (!params.covPercent.parseDigits(p.toDString()[5 .. $], 100)) { errorInvalidSwitch(p, "Only a number between 0 and 100 can be passed to `-cov=<num>`"); return true; } } else if (p[4]) goto Lerror; } else if (arg == "-shared") params.dll = true; else if (arg == "-fPIC") { static if (TARGET.Linux || TARGET.OSX || TARGET.FreeBSD || TARGET.OpenBSD || TARGET.Solaris || TARGET.DragonFlyBSD) { params.pic = PIC.pic; } else { goto Lerror; } } else if (arg == "-fPIE") { static if (TARGET.Linux || TARGET.OSX || TARGET.FreeBSD || TARGET.OpenBSD || TARGET.Solaris || TARGET.DragonFlyBSD) { params.pic = PIC.pie; } else { goto Lerror; } } else if (arg == "-map") // https://dlang.org/dmd.html#switch-map params.map = true; else if (arg == "-multiobj") params.multiobj = true; else if (startsWith(p + 1, "mixin=")) { auto tmp = p + 6 + 1; if (!tmp[0]) goto Lnoarg; params.mixinFile = mem.xstrdup(tmp); } else if (arg == "-g") // https://dlang.org/dmd.html#switch-g params.symdebug = 1; else if (arg == "-gf") { if (!params.symdebug) params.symdebug = 1; params.symdebugref = true; } else if (arg == "-gs") // https://dlang.org/dmd.html#switch-gs params.alwaysframe = true; else if (arg == "-gx") // https://dlang.org/dmd.html#switch-gx params.stackstomp = true; else if (arg == "-lowmem") // https://dlang.org/dmd.html#switch-lowmem { static if (isGCAvailable) { // ignore, already handled in C main } else { error("switch '%s' requires DMD to be built with '-version=GC'", arg.ptr); continue; } } else if (arg.length > 6 && arg[0..6] == "--DRT-") { continue; // skip druntime options, e.g. used to configure the GC } else if (arg == "-m32") // https://dlang.org/dmd.html#switch-m32 { static if (TARGET.DragonFlyBSD) { error("-m32 is not supported on DragonFlyBSD, it is 64-bit only"); } else { params.is64bit = false; params.mscoff = false; } } else if (arg == "-m64") // https://dlang.org/dmd.html#switch-m64 { params.is64bit = true; static if (TARGET.Windows) { params.mscoff = true; } } else if (arg == "-m32mscoff") // https://dlang.org/dmd.html#switch-m32mscoff { static if (TARGET.Windows) { params.is64bit = 0; params.mscoff = true; } else { error("-m32mscoff can only be used on windows"); } } else if (startsWith(p + 1, "mscrtlib=")) { static if (TARGET.Windows) { params.mscrtlib = arg[10 .. $]; } else { error("-mscrtlib"); } } else if (startsWith(p + 1, "profile")) // https://dlang.org/dmd.html#switch-profile { // Parse: // -profile // -profile=gc if (p[8] == '=') { if (arg[9 .. $] == "gc") params.tracegc = true; else { errorInvalidSwitch(p, "Only `gc` is allowed for `-profile`"); return true; } } else if (p[8]) goto Lerror; else params.trace = true; } else if (arg == "-v") // https://dlang.org/dmd.html#switch-v params.verbose = true; else if (arg == "-vcg-ast") params.vcg_ast = true; else if (arg == "-vtls") // https://dlang.org/dmd.html#switch-vtls params.vtls = true; else if (startsWith(p + 1, "vtemplates")) // https://dlang.org/dmd.html#switch-vtemplates { params.vtemplates = true; if (p[1 + "vtemplates".length] == '=') { const(char)[] style = arg[1 + "vtemplates=".length .. $]; switch (style) { case "list-instances": params.vtemplatesListInstances = true; break; default: error("unknown vtemplates style '%.*s', must be 'list-instances'", cast(int) style.length, style.ptr); } } } else if (arg == "-vcolumns") // https://dlang.org/dmd.html#switch-vcolumns params.showColumns = true; else if (arg == "-vgc") // https://dlang.org/dmd.html#switch-vgc params.vgc = true; else if (startsWith(p + 1, "verrors")) // https://dlang.org/dmd.html#switch-verrors { if (p[8] != '=') { errorInvalidSwitch(p, "Expected argument following `-verrors , e.g. `-verrors=100`"); return true; } if (startsWith(p + 9, "spec")) { params.showGaggedErrors = true; } else if (startsWith(p + 9, "context")) { params.printErrorContext = true; } else if (!params.errorLimit.parseDigits(p.toDString()[9 .. $])) { errorInvalidSwitch(p, "Only number, `spec`, or `context` are allowed for `-verrors`"); return true; } } else if (startsWith(p + 1, "verror-style=")) { const(char)[] style = arg["verror-style=".length + 1 .. $]; switch (style) { case "digitalmars": params.messageStyle = MessageStyle.digitalmars; break; case "gnu": params.messageStyle = MessageStyle.gnu; break; default: error("unknown error style '%.*s', must be 'digitalmars' or 'gnu'", cast(int) style.length, style.ptr); } } else if (startsWith(p + 1, "mcpu")) // https://dlang.org/dmd.html#switch-mcpu { enum len = "-mcpu=".length; // Parse: // -mcpu=identifier mixin(checkOptionsMixin("mcpuUsage", "`-mcpu=<architecture>` requires an architecture")); if (Identifier.isValidIdentifier(p + len)) { const ident = p + len; switch (ident.toDString()) { case "baseline": params.cpu = CPU.baseline; break; case "avx": params.cpu = CPU.avx; break; case "avx2": params.cpu = CPU.avx2; break; case "native": params.cpu = CPU.native; break; default: errorInvalidSwitch(p, "Only `baseline`, `avx`, `avx2` or `native` are allowed for `-mcpu`"); params.mcpuUsage = true; return false; } } else { errorInvalidSwitch(p, "Only `baseline`, `avx`, `avx2` or `native` are allowed for `-mcpu`"); params.mcpuUsage = true; return false; } } else if (startsWith(p + 1, "extern-std")) // https://dlang.org/dmd.html#switch-extern-std { enum len = "-extern-std=".length; // Parse: // -extern-std=identifier mixin(checkOptionsMixin("externStdUsage", "`-extern-std=<standard>` requires a standard")); const(char)[] cpprev = arg[len .. $]; switch (cpprev) { case "c++98": params.cplusplus = CppStdRevision.cpp98; break; case "c++11": params.cplusplus = CppStdRevision.cpp11; break; case "c++14": params.cplusplus = CppStdRevision.cpp14; break; case "c++17": params.cplusplus = CppStdRevision.cpp17; break; default: error("Switch `%s` is invalid", p); params.externStdUsage = true; return false; } } else if (startsWith(p + 1, "transition")) // https://dlang.org/dmd.html#switch-transition { enum len = "-transition=".length; // Parse: // -transition=number mixin(checkOptionsMixin("transitionUsage", "`-transition=<name>` requires a name")); if (!parseCLIOption!("transition", Usage.transitions)(params, arg)) { // Legacy -transition flags // Before DMD 2.085, DMD `-transition` was used for all language flags // These are kept for backwards compatibility, but no longer documented if (isdigit(cast(char)p[len])) { uint num; if (!num.parseDigits(p.toDString()[len .. $])) goto Lerror; // Bugzilla issue number switch (num) { case 3449: params.vfield = true; break; case 14_246: params.dtorFields = true; break; case 14_488: params.vcomplex = true; break; case 16_997: params.fix16997 = true; break; default: error("Transition `%s` is invalid", p); params.transitionUsage = true; return false; } } else if (Identifier.isValidIdentifier(p + len)) { const ident = p + len; switch (ident.toDString()) { case "dtorfields": params.dtorFields = true; break; case "intpromote": params.fix16997 = true; break; case "markdown": params.markdown = true; break; default: error("Transition `%s` is invalid", p); params.transitionUsage = true; return false; } } errorInvalidSwitch(p); params.transitionUsage = true; return false; } } else if (startsWith(p + 1, "preview") ) // https://dlang.org/dmd.html#switch-preview { enum len = "-preview=".length; // Parse: // -preview=name mixin(checkOptionsMixin("previewUsage", "`-preview=<name>` requires a name")); if (!parseCLIOption!("preview", Usage.previews)(params, arg)) { error("Preview `%s` is invalid", p); params.previewUsage = true; return false; } if (params.useDIP1021) params.vsafe = true; // dip1021 implies dip1000 // copy previously standalone flags from -transition // -preview=dip1000 implies -preview=dip25 too if (params.vsafe) params.useDIP25 = true; } else if (startsWith(p + 1, "revert") ) // https://dlang.org/dmd.html#switch-revert { enum len = "-revert=".length; // Parse: // -revert=name mixin(checkOptionsMixin("revertUsage", "`-revert=<name>` requires a name")); if (!parseCLIOption!("revert", Usage.reverts)(params, arg)) { error("Revert `%s` is invalid", p); params.revertUsage = true; return false; } if (params.noDIP25) params.useDIP25 = false; } else if (arg == "-w") // https://dlang.org/dmd.html#switch-w params.warnings = DiagnosticReporting.error; else if (arg == "-wi") // https://dlang.org/dmd.html#switch-wi params.warnings = DiagnosticReporting.inform; else if (arg == "-O") // https://dlang.org/dmd.html#switch-O params.optimize = true; else if (p[1] == 'o') { const(char)* path; switch (p[2]) { case '-': // https://dlang.org/dmd.html#switch-o- params.obj = false; break; case 'd': // https://dlang.org/dmd.html#switch-od if (!p[3]) goto Lnoarg; path = p + 3 + (p[3] == '='); version (Windows) { path = toWinPath(path); } params.objdir = path.toDString; break; case 'f': // https://dlang.org/dmd.html#switch-of if (!p[3]) goto Lnoarg; path = p + 3 + (p[3] == '='); version (Windows) { path = toWinPath(path); } params.objname = path.toDString; break; case 'p': // https://dlang.org/dmd.html#switch-op if (p[3]) goto Lerror; params.preservePaths = true; break; case 0: error("-o no longer supported, use -of or -od"); break; default: goto Lerror; } } else if (p[1] == 'D') // https://dlang.org/dmd.html#switch-D { params.doDocComments = true; switch (p[2]) { case 'd': // https://dlang.org/dmd.html#switch-Dd if (!p[3]) goto Lnoarg; params.docdir = (p + 3 + (p[3] == '=')).toDString(); break; case 'f': // https://dlang.org/dmd.html#switch-Df if (!p[3]) goto Lnoarg; params.docname = (p + 3 + (p[3] == '=')).toDString(); break; case 0: break; default: goto Lerror; } } else if (p[1] == 'H' && p[2] == 'C') // https://dlang.org/dmd.html#switch-HC { params.doCxxHdrGeneration = true; switch (p[3]) { case 'd': // https://dlang.org/dmd.html#switch-HCd if (!p[4]) goto Lnoarg; params.cxxhdrdir = (p + 4 + (p[4] == '=')).toDString; break; case 'f': // https://dlang.org/dmd.html#switch-HCf if (!p[4]) goto Lnoarg; params.cxxhdrname = (p + 4 + (p[4] == '=')).toDString; break; case 0: break; default: goto Lerror; } } else if (p[1] == 'H') // https://dlang.org/dmd.html#switch-H { params.doHdrGeneration = true; switch (p[2]) { case 'd': // https://dlang.org/dmd.html#switch-Hd if (!p[3]) goto Lnoarg; params.hdrdir = (p + 3 + (p[3] == '=')).toDString; break; case 'f': // https://dlang.org/dmd.html#switch-Hf if (!p[3]) goto Lnoarg; params.hdrname = (p + 3 + (p[3] == '=')).toDString; break; case 0: break; default: goto Lerror; } } else if (startsWith(p + 1, "Xcc=")) { // Linking code is guarded by version (Posix): static if (TARGET.Linux || TARGET.OSX || TARGET.FreeBSD || TARGET.OpenBSD || TARGET.Solaris || TARGET.DragonFlyBSD) { params.linkswitches.push(p + 5); params.linkswitchIsForCC.push(true); } else { goto Lerror; } } else if (p[1] == 'X') // https://dlang.org/dmd.html#switch-X { params.doJsonGeneration = true; switch (p[2]) { case 'f': // https://dlang.org/dmd.html#switch-Xf if (!p[3]) goto Lnoarg; params.jsonfilename = (p + 3 + (p[3] == '=')).toDString; break; case 'i': if (!p[3]) goto Lnoarg; if (p[3] != '=') goto Lerror; if (!p[4]) goto Lnoarg; { auto flag = tryParseJsonField(p + 4); if (!flag) { error("unknown JSON field `-Xi=%s`, expected one of " ~ jsonFieldNames, p + 4); continue; } global.params.jsonFieldFlags |= flag; } break; case 0: break; default: goto Lerror; } } else if (arg == "-ignore") // https://dlang.org/dmd.html#switch-ignore params.ignoreUnsupportedPragmas = true; else if (arg == "-inline") // https://dlang.org/dmd.html#switch-inline { params.useInline = true; params.hdrStripPlainFunctions = false; } else if (arg == "-i") includeImports = true; else if (startsWith(p + 1, "i=")) { includeImports = true; if (!p[3]) { error("invalid option '%s', module patterns cannot be empty", p); } else { // NOTE: we could check that the argument only contains valid "module-pattern" characters. // Invalid characters doesn't break anything but an error message to the user might // be nice. includeModulePatterns.push(p + 3); } } else if (arg == "-dip25") // https://dlang.org/dmd.html#switch-dip25 params.useDIP25 = true; else if (arg == "-dip1000") { params.useDIP25 = true; params.vsafe = true; } else if (arg == "-dip1008") { params.ehnogc = true; } else if (arg == "-lib") // https://dlang.org/dmd.html#switch-lib params.lib = true; else if (arg == "-nofloat") params.nofloat = true; else if (arg == "-quiet") { // Ignore } else if (arg == "-release") // https://dlang.org/dmd.html#switch-release params.release = true; else if (arg == "-betterC") // https://dlang.org/dmd.html#switch-betterC params.betterC = true; else if (arg == "-noboundscheck") // https://dlang.org/dmd.html#switch-noboundscheck { params.boundscheck = CHECKENABLE.off; } else if (startsWith(p + 1, "boundscheck")) // https://dlang.org/dmd.html#switch-boundscheck { // Parse: // -boundscheck=[on|safeonly|off] if (p[12] == '=') { const(char)[] boundscheck = arg[13 .. $]; switch (boundscheck) { case "on": params.boundscheck = CHECKENABLE.on; break; case "safeonly": params.boundscheck = CHECKENABLE.safeonly; break; case "off": params.boundscheck = CHECKENABLE.off; break; default: goto Lerror; } } else goto Lerror; } else if (arg == "-unittest") params.useUnitTests = true; else if (p[1] == 'I') // https://dlang.org/dmd.html#switch-I { if (!params.imppath) params.imppath = new Strings(); params.imppath.push(p + 2 + (p[2] == '=')); } else if (p[1] == 'm' && p[2] == 'v' && p[3] == '=') // https://dlang.org/dmd.html#switch-mv { if (p[4] && strchr(p + 5, '=')) { params.modFileAliasStrings.push(p + 4); } else goto Lerror; } else if (p[1] == 'J') // https://dlang.org/dmd.html#switch-J { if (!params.fileImppath) params.fileImppath = new Strings(); params.fileImppath.push(p + 2 + (p[2] == '=')); } else if (startsWith(p + 1, "debug") && p[6] != 'l') // https://dlang.org/dmd.html#switch-debug { // Parse: // -debug // -debug=number // -debug=identifier if (p[6] == '=') { if (isdigit(cast(char)p[7])) { if (!params.debuglevel.parseDigits(p.toDString()[7 .. $])) goto Lerror; } else if (Identifier.isValidIdentifier(p + 7)) { if (!params.debugids) params.debugids = new Array!(const(char)*); params.debugids.push(p + 7); } else goto Lerror; } else if (p[6]) goto Lerror; else params.debuglevel = 1; } else if (startsWith(p + 1, "version")) // https://dlang.org/dmd.html#switch-version { // Parse: // -version=number // -version=identifier if (p[8] == '=') { if (isdigit(cast(char)p[9])) { if (!params.versionlevel.parseDigits(p.toDString()[9 .. $])) goto Lerror; } else if (Identifier.isValidIdentifier(p + 9)) { if (!params.versionids) params.versionids = new Array!(const(char)*); params.versionids.push(p + 9); } else goto Lerror; } else goto Lerror; } else if (arg == "--b") params.debugb = true; else if (arg == "--c") params.debugc = true; else if (arg == "--f") params.debugf = true; else if (arg == "--help" || arg == "-h") { params.usage = true; return false; } else if (arg == "--r") params.debugr = true; else if (arg == "--version") { params.logo = true; return false; } else if (arg == "--x") params.debugx = true; else if (arg == "--y") params.debugy = true; else if (p[1] == 'L') // https://dlang.org/dmd.html#switch-L { params.linkswitches.push(p + 2 + (p[2] == '=')); params.linkswitchIsForCC.push(false); } else if (startsWith(p + 1, "defaultlib=")) // https://dlang.org/dmd.html#switch-defaultlib { params.defaultlibname = (p + 1 + 11).toDString; } else if (startsWith(p + 1, "debuglib=")) // https://dlang.org/dmd.html#switch-debuglib { params.debuglibname = (p + 1 + 9).toDString; } else if (startsWith(p + 1, "deps")) // https://dlang.org/dmd.html#switch-deps { if (params.moduleDeps) { error("-deps[=file] can only be provided once!"); break; } if (p[5] == '=') { params.moduleDepsFile = (p + 1 + 5).toDString; if (!params.moduleDepsFile[0]) goto Lnoarg; } else if (p[5] != '\0') { // Else output to stdout. goto Lerror; } params.moduleDeps = new OutBuffer(); } else if (arg == "-main") // https://dlang.org/dmd.html#switch-main { params.addMain = true; } else if (startsWith(p + 1, "man")) // https://dlang.org/dmd.html#switch-man { params.manual = true; return false; } else if (arg == "-run") // https://dlang.org/dmd.html#switch-run { params.run = true; size_t length = argc - i - 1; if (length) { const(char)[] runarg = arguments[i + 1].toDString(); const(char)[] ext = FileName.ext(runarg); if (ext && FileName.equals(ext, "d") == 0 && FileName.equals(ext, "di") == 0) { error("-run must be followed by a source file, not '%s'", arguments[i + 1]); break; } if (runarg == "-") files.push("__stdin.d"); else files.push(arguments[i + 1]); params.runargs.setDim(length - 1); for (size_t j = 0; j < length - 1; ++j) { params.runargs[j] = arguments[i + 2 + j]; } i += length; } else { params.run = false; goto Lnoarg; } } else if (p[1] == '\0') files.push("__stdin.d"); else { Lerror: error("unrecognized switch '%s'", arguments[i]); continue; Lnoarg: error("argument expected for switch '%s'", arguments[i]); continue; } } return errors; } /*********************************************** * Adjust gathered command line switches and reconcile them. * Params: * params = switches gathered from command line, * and update in place * numSrcFiles = number of source files */ version (NoMain) {} else private void reconcileCommands(ref Param params, size_t numSrcFiles) { static if (TARGET.OSX) { params.pic = PIC.pic; } static if (TARGET.Linux || TARGET.OSX || TARGET.FreeBSD || TARGET.OpenBSD || TARGET.Solaris || TARGET.DragonFlyBSD) { if (params.lib && params.dll) error(Loc.initial, "cannot mix -lib and -shared"); } static if (TARGET.Windows) { if (params.mscoff && !params.mscrtlib) { VSOptions vsopt; vsopt.initialize(); params.mscrtlib = vsopt.defaultRuntimeLibrary(params.is64bit).toDString; } } // Target uses 64bit pointers. params.isLP64 = params.is64bit; if (params.boundscheck != CHECKENABLE._default) { if (params.useArrayBounds == CHECKENABLE._default) params.useArrayBounds = params.boundscheck; } if (params.useUnitTests) { if (params.useAssert == CHECKENABLE._default) params.useAssert = CHECKENABLE.on; } if (params.release) { if (params.useInvariants == CHECKENABLE._default) params.useInvariants = CHECKENABLE.off; if (params.useIn == CHECKENABLE._default) params.useIn = CHECKENABLE.off; if (params.useOut == CHECKENABLE._default) params.useOut = CHECKENABLE.off; if (params.useArrayBounds == CHECKENABLE._default) params.useArrayBounds = CHECKENABLE.safeonly; if (params.useAssert == CHECKENABLE._default) params.useAssert = CHECKENABLE.off; if (params.useSwitchError == CHECKENABLE._default) params.useSwitchError = CHECKENABLE.off; } else { if (params.useInvariants == CHECKENABLE._default) params.useInvariants = CHECKENABLE.on; if (params.useIn == CHECKENABLE._default) params.useIn = CHECKENABLE.on; if (params.useOut == CHECKENABLE._default) params.useOut = CHECKENABLE.on; if (params.useArrayBounds == CHECKENABLE._default) params.useArrayBounds = CHECKENABLE.on; if (params.useAssert == CHECKENABLE._default) params.useAssert = CHECKENABLE.on; if (params.useSwitchError == CHECKENABLE._default) params.useSwitchError = CHECKENABLE.on; } if (params.betterC) { params.checkAction = CHECKACTION.C; params.useModuleInfo = false; params.useTypeInfo = false; params.useExceptions = false; } if (!params.obj || params.lib) params.link = false; if (params.link) { params.exefile = params.objname; params.oneobj = true; if (params.objname) { /* Use this to name the one object file with the same * name as the exe file. */ params.objname = FileName.forceExt(params.objname, global.obj_ext); /* If output directory is given, use that path rather than * the exe file path. */ if (params.objdir) { const(char)[] name = FileName.name(params.objname); params.objname = FileName.combine(params.objdir, name); } } } else if (params.run) { error(Loc.initial, "flags conflict with -run"); fatal(); } else if (params.lib) { params.libname = params.objname; params.objname = null; // Haven't investigated handling these options with multiobj if (!params.cov && !params.trace) params.multiobj = true; } else { if (params.objname && numSrcFiles) { params.oneobj = true; //error("multiple source files, but only one .obj name"); //fatal(); } } if (params.noDIP25) params.useDIP25 = false; } /** Creates the module based on the file provided The file is dispatched in one of the various arrays (global.params.{ddocfiles,dllfiles,jsonfiles,etc...}) according to its extension. If it is a binary file, it is added to libmodules. Params: file = File name to dispatch libmodules = Array to which binaries (shared/static libs and object files) will be appended Returns: A D module */ Module createModule(const(char)* file, ref Strings libmodules) { const(char)[] name; version (Windows) { file = toWinPath(file); } const(char)[] p = file.toDString(); p = FileName.name(p); // strip path const(char)[] ext = FileName.ext(p); if (!ext) { if (!p.length) { error(Loc.initial, "invalid file name '%s'", file); fatal(); } auto id = Identifier.idPool(p); return new Module(file.toDString, id, global.params.doDocComments, global.params.doHdrGeneration); } /* Deduce what to do with a file based on its extension */ if (FileName.equals(ext, global.obj_ext)) { global.params.objfiles.push(file); libmodules.push(file); return null; } if (FileName.equals(ext, global.lib_ext)) { global.params.libfiles.push(file); libmodules.push(file); return null; } static if (TARGET.Linux || TARGET.OSX || TARGET.FreeBSD || TARGET.OpenBSD || TARGET.Solaris || TARGET.DragonFlyBSD) { if (FileName.equals(ext, global.dll_ext)) { global.params.dllfiles.push(file); libmodules.push(file); return null; } } if (ext == global.ddoc_ext) { global.params.ddocfiles.push(file); return null; } if (FileName.equals(ext, global.json_ext)) { global.params.doJsonGeneration = true; global.params.jsonfilename = file.toDString; return null; } if (FileName.equals(ext, global.map_ext)) { global.params.mapfile = file.toDString; return null; } static if (TARGET.Windows) { if (FileName.equals(ext, "res")) { global.params.resfile = file.toDString; return null; } if (FileName.equals(ext, "def")) { global.params.deffile = file.toDString; return null; } if (FileName.equals(ext, "exe")) { assert(0); // should have already been handled } } /* Examine extension to see if it is a valid * D source file extension */ if (FileName.equals(ext, global.mars_ext) || FileName.equals(ext, global.hdr_ext) || FileName.equals(ext, "dd")) { name = FileName.removeExt(p); if (!name.length || name == ".." || name == ".") { error(Loc.initial, "invalid file name '%s'", file); fatal(); } } else { error(Loc.initial, "unrecognized file extension %.*s", cast(int)ext.length, ext.ptr); fatal(); } /* At this point, name is the D source file name stripped of * its path and extension. */ auto id = Identifier.idPool(name); return new Module(file.toDString, id, global.params.doDocComments, global.params.doHdrGeneration); } /** Creates the list of modules based on the files provided Files are dispatched in the various arrays (global.params.{ddocfiles,dllfiles,jsonfiles,etc...}) according to their extension. Binary files are added to libmodules. Params: files = File names to dispatch libmodules = Array to which binaries (shared/static libs and object files) will be appended Returns: An array of path to D modules */ Modules createModules(ref Strings files, ref Strings libmodules) { Modules modules; modules.reserve(files.dim); bool firstmodule = true; for (size_t i = 0; i < files.dim; i++) { auto m = createModule(files[i], libmodules); if (m is null) continue; modules.push(m); if (firstmodule) { global.params.objfiles.push(m.objfile.toChars()); firstmodule = false; } } return modules; }
D
/Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/Build/Intermediates.noindex/AgendaPage.build/Debug-iphonesimulator/AgendaPage.build/Objects-normal/x86_64/AgnedaTableViewController.o : /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/DataModel/Agenda.swift /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/AppDelegate.swift /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/Views/AgendaTableViewCell.swift /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/Controller/AgnedaTableViewController.swift /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/Extension/CustomCorners.swift /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/Controller/csv.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/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/Build/Intermediates.noindex/AgendaPage.build/Debug-iphonesimulator/AgendaPage.build/Objects-normal/x86_64/AgnedaTableViewController~partial.swiftmodule : /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/DataModel/Agenda.swift /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/AppDelegate.swift /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/Views/AgendaTableViewCell.swift /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/Controller/AgnedaTableViewController.swift /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/Extension/CustomCorners.swift /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/Controller/csv.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/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/Build/Intermediates.noindex/AgendaPage.build/Debug-iphonesimulator/AgendaPage.build/Objects-normal/x86_64/AgnedaTableViewController~partial.swiftdoc : /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/DataModel/Agenda.swift /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/AppDelegate.swift /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/Views/AgendaTableViewCell.swift /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/Controller/AgnedaTableViewController.swift /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/Extension/CustomCorners.swift /Users/oussamaajerd/Documents/GitHub/ReconnectConference-iOS-App-/AgendaPage2/AgendaPage/AgendaPage/Controller/csv.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/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
<?xml version="1.0" encoding="ASCII" standalone="no"?> <di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0"> <pageList> <availablePage> <emfPageIdentifier href="VAR_0_agm-9959616485.notation#_copSALmGEeKQQp7P9cQvNQ"/> </availablePage> </pageList> <sashModel currentSelection="//@sashModel/@windows.0/@children.0"> <windows> <children xsi:type="di:TabFolder"> <children> <emfPageIdentifier href="VAR_0_agm-9959616485.notation#_copSALmGEeKQQp7P9cQvNQ"/> </children> </children> </windows> </sashModel> </di:SashWindowsMngr>
D
/Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Build/Intermediates.noindex/IBDesignables/Intermediates.noindex/AlchemintProject.build/Debug-iphonesimulator/AlchemintProject.build/Objects-normal/x86_64/Data+Util.o : /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Crypto/RIPEMD160.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Crypto/PBKDF2.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/NEP2.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Crypto/SHA256.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/Base58.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/NEP9.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/View/TaskForGCD.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/WIF.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Crypto/AES.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/TextOffsetX.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/View/AccountTextField.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Balance.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/NeoScanBalance.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/AppDelegate.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/AccountState.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/TransactionAttritbute.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Block.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/NEONetwork.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/Data+Util.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/Array+Util.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/UIColorPreinstall.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/MoreModule/More_RootViewController/MoreListCell.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/ProductModule/Product_RootViewController/ProductListCell.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/ValueIn.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/NeoScan.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Token.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Contracts/NEP5Token.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/JWTextFieldExtension.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/View/JWButtonExtension.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/JWUIViewExtension/JWViewExtension.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Transaction.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/UIImageCommon.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/SwiftHeader.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Contracts/ScriptBuilder.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Peer.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/RootTabBarViewController/RootTabBarController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/JWBaseViewControllers/JWBaseViewController/JWBaseViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/ProductModule/Product_RootViewController/ProductDetailViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/LoginModule/LoginViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/LoginModule/RegisterViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/HomePageModule/HomePage_RootViewController/HomePage_RootViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/MoreModule/More_RootViewController/More_RootViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/MyWealthModule/MyWealth_RootViewController/MyWealth_RootViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/ProductModule/Product_RootViewController/Product_RootViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/OtherModule/StartViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Parameter.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/validator.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Contracts/OpCodes.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Claims.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/View/JWUIKits.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/AssetIdConstants.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/JWNavigationBarEt.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/ShamirSecret.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Asset.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/ContractResult.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/NeoClient.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/Network/AlchemintClient.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Account.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Script.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Crypto/scrypt.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/View/AutoLayoutAssist.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/ValueOut.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/TransactionHistory.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/NeoScanTransactionHistory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Build/Intermediates.noindex/IBDesignables/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/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/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Build/Intermediates.noindex/IBDesignables/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Neoutils.framework/Headers/Universe.objc.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Neoutils.framework/Headers/Neoutils.objc.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Neoutils.framework/Headers/ref.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Neoutils.framework/Headers/Neoutils.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Build/Intermediates.noindex/IBDesignables/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/CommonCrypto/module.modulemap /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Build/Intermediates.noindex/IBDesignables/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Neoutils.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Build/Intermediates.noindex/IBDesignables/Intermediates.noindex/AlchemintProject.build/Debug-iphonesimulator/AlchemintProject.build/Objects-normal/x86_64/Data+Util~partial.swiftmodule : /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Crypto/RIPEMD160.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Crypto/PBKDF2.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/NEP2.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Crypto/SHA256.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/Base58.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/NEP9.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/View/TaskForGCD.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/WIF.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Crypto/AES.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/TextOffsetX.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/View/AccountTextField.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Balance.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/NeoScanBalance.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/AppDelegate.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/AccountState.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/TransactionAttritbute.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Block.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/NEONetwork.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/Data+Util.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/Array+Util.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/UIColorPreinstall.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/MoreModule/More_RootViewController/MoreListCell.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/ProductModule/Product_RootViewController/ProductListCell.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/ValueIn.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/NeoScan.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Token.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Contracts/NEP5Token.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/JWTextFieldExtension.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/View/JWButtonExtension.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/JWUIViewExtension/JWViewExtension.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Transaction.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/UIImageCommon.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/SwiftHeader.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Contracts/ScriptBuilder.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Peer.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/RootTabBarViewController/RootTabBarController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/JWBaseViewControllers/JWBaseViewController/JWBaseViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/ProductModule/Product_RootViewController/ProductDetailViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/LoginModule/LoginViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/LoginModule/RegisterViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/HomePageModule/HomePage_RootViewController/HomePage_RootViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/MoreModule/More_RootViewController/More_RootViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/MyWealthModule/MyWealth_RootViewController/MyWealth_RootViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/ProductModule/Product_RootViewController/Product_RootViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/OtherModule/StartViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Parameter.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/validator.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Contracts/OpCodes.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Claims.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/View/JWUIKits.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/AssetIdConstants.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/JWNavigationBarEt.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/ShamirSecret.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Asset.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/ContractResult.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/NeoClient.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/Network/AlchemintClient.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Account.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Script.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Crypto/scrypt.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/View/AutoLayoutAssist.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/ValueOut.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/TransactionHistory.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/NeoScanTransactionHistory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Build/Intermediates.noindex/IBDesignables/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/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/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Build/Intermediates.noindex/IBDesignables/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Neoutils.framework/Headers/Universe.objc.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Neoutils.framework/Headers/Neoutils.objc.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Neoutils.framework/Headers/ref.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Neoutils.framework/Headers/Neoutils.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Build/Intermediates.noindex/IBDesignables/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/CommonCrypto/module.modulemap /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Build/Intermediates.noindex/IBDesignables/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Neoutils.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Build/Intermediates.noindex/IBDesignables/Intermediates.noindex/AlchemintProject.build/Debug-iphonesimulator/AlchemintProject.build/Objects-normal/x86_64/Data+Util~partial.swiftdoc : /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Crypto/RIPEMD160.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Crypto/PBKDF2.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/NEP2.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Crypto/SHA256.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/Base58.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/NEP9.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/View/TaskForGCD.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/WIF.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Crypto/AES.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/TextOffsetX.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/View/AccountTextField.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Balance.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/NeoScanBalance.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/AppDelegate.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/AccountState.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/TransactionAttritbute.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Block.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/NEONetwork.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/Data+Util.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/Array+Util.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/UIColorPreinstall.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/MoreModule/More_RootViewController/MoreListCell.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/ProductModule/Product_RootViewController/ProductListCell.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/ValueIn.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/NeoScan.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Token.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Contracts/NEP5Token.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/JWTextFieldExtension.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/View/JWButtonExtension.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/JWUIViewExtension/JWViewExtension.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Transaction.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/UIImageCommon.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/SwiftHeader.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Contracts/ScriptBuilder.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Peer.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/RootTabBarViewController/RootTabBarController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/JWBaseViewControllers/JWBaseViewController/JWBaseViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/ProductModule/Product_RootViewController/ProductDetailViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/LoginModule/LoginViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/LoginModule/RegisterViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/HomePageModule/HomePage_RootViewController/HomePage_RootViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/MoreModule/More_RootViewController/More_RootViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/MyWealthModule/MyWealth_RootViewController/MyWealth_RootViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/ProductModule/Product_RootViewController/Product_RootViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/ViewControllers/Modules/Modules/OtherModule/StartViewController.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Parameter.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Util/validator.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Contracts/OpCodes.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Claims.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/View/JWUIKits.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/AssetIdConstants.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/CateGory/JWNavigationBarEt.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/ShamirSecret.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Asset.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/ContractResult.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/NeoClient.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/Network/AlchemintClient.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Account.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/Script.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Crypto/scrypt.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/Custom/View/AutoLayoutAssist.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/ValueOut.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/TransactionHistory.swift /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Models/NeoScanTransactionHistory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Build/Intermediates.noindex/IBDesignables/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/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/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Build/Intermediates.noindex/IBDesignables/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Neoutils.framework/Headers/Universe.objc.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Neoutils.framework/Headers/Neoutils.objc.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Neoutils.framework/Headers/ref.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Neoutils.framework/Headers/Neoutils.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Build/Intermediates.noindex/IBDesignables/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/CommonCrypto/module.modulemap /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Build/Intermediates.noindex/IBDesignables/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/AlchemintProject/Sources/External/NeoSwift/Neoutils.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
D
module scone.core.dummy; import scone.output.buffer : Buffer; import scone.output.types.size : Size; import scone.input.keyboard_event : KeyboardEvent; import scone.output.os.standard_output : StandardOutput; import scone.input.os.standard_input : StandardInput; class DummyOutput : StandardOutput { void initialize() { } void deinitialize() { } Size size() { return this.currentSize; } void size(in Size size) { this.currentSize = size; } void title(in string title) { } void cursorVisible(in bool visible) { } void renderBuffer(Buffer buffer) { } private Size currentSize = Size(80, 24); } unittest { auto output = new DummyOutput(); assert(output.size == Size(80, 24)); output.size = Size(10, 10); assert(output.size == Size(10, 10)); } class DummyInput : StandardInput { void initialize() { } void deinitialize() { } KeyboardEvent[] latestKeyboardEvents() { scope (exit) { this.latestDummyEvents = []; } return this.latestDummyEvents; } void appendDummyKeyboardEvent(KeyboardEvent event) { this.latestDummyEvents ~= event; } private KeyboardEvent[] latestDummyEvents; } unittest { import scone.input.scone_key : SK; import scone.input.scone_control_key : SCK; auto input = new DummyInput(); assert(input.latestKeyboardEvents == []); // dfmt off version (Windows) { input.appendDummyKeyboardEvent(KeyboardEvent(SK.a, SCK.none, true)); input.appendDummyKeyboardEvent(KeyboardEvent(SK.b, SCK.none, true)); assert(input.latestKeyboardEvents == [KeyboardEvent(SK.a, SCK.none, true), KeyboardEvent(SK.b, SCK.none, true)]); assert(input.latestKeyboardEvents == []); } else { input.appendDummyKeyboardEvent(KeyboardEvent(SK.a, SCK.none)); input.appendDummyKeyboardEvent(KeyboardEvent(SK.b, SCK.none)); assert(input.latestKeyboardEvents == [KeyboardEvent(SK.a, SCK.none), KeyboardEvent(SK.b, SCK.none)]); assert(input.latestKeyboardEvents == []); } // dfmt on }
D
// **************************** // Nahkampf - AI Minecrawler (5) // **************************** /* CONST INT MOVE_RUN = 1; // Gegner in meinem Fokus + steht wer dazwischen? (G) CONST INT MOVE_JUMPBACK = 3; // löst t_ParadeJumpB aus (Attacke wird nur pariert, wenn man schnell genug aus der W-Reichweite kommt! CONST INT MOVE_TURN = 4; // Immer bis Gegner im Fokus (also nie durch neue Aktion unterbrochen, höchstens durch Gegner-Attacke) CONST INT MOVE_STRAFE = 5; // (Richtung wird vom Programm entschieden) CONST INT MOVE_ATTACK = 6; // in ComboZone = Combo / im Rennen = Sturmattacke? CONST INT MOVE_PARADE = 17; // (keine Attacke = oben) CONST INT MOVE_WAIT = 19; // 200 ms */ // W - Waffen-Reichweite (FIGHT_RANGE_FIST * 3) // G - Gehen-Reichweite (3 * W). Puffer für Fernkämpfer in dem sie zur NK-Waffe wechseln sollten // FK - Fernkampf-Reichweite (30m) ////////////////////////////////////////////////// // Meine Reaktionen auf Gegner-Aktionen: ////////////////////////////////////////////////// // Gegner attackiert mich INSTANCE FA_ENEMY_PREHIT_5 (C_FightAI) { move[0] = MOVE_WAIT; move[1] = MOVE_WAIT; move[2] = MOVE_STRAFE; move[3] = MOVE_JUMPBACK; }; // Gegner macht Sturmattacke INSTANCE FA_ENEMY_STORMPREHIT_5 (C_FightAI) { // FIXME: Auch wenn ich einfach so auf das Monster zurenne, macht es eine ParadeJumpB! move[0] = MOVE_JUMPBACK; }; ////////////////////////////////////////////////// // Meine Aktionen wenn Gegner in Waffenreichweite: ////////////////////////////////////////////////// // was tun, wenn ich gerade auf den Gegner zurenne? INSTANCE FA_MY_W_RUNTO_5 (C_FightAI) { move[0] = MOVE_TURN; }; // was tun, wenn ich gerade Strafe? INSTANCE FA_MY_W_STRAFE_5 (C_FightAI) { move[0] = MOVE_ATTACK; }; // was tun, wenn ich den Gegner im Focus habe? INSTANCE FA_MY_W_FOCUS_5 (C_FightAI) { move[0] = MOVE_WAIT; move[1] = MOVE_STRAFE; move[2] = MOVE_WAIT; move[3] = MOVE_ATTACK; move[4] = MOVE_ATTACK; move[5] = MOVE_ATTACK; }; // was tun, wenn ich den Gegner nicht im Focus habe? INSTANCE FA_MY_W_NOFOCUS_5 (C_FightAI) { move[0] = MOVE_TURN; }; //////////////////////////////////////////////////////////// // Meine Aktionen wenn Gegner Waffenreichweite * 3 entfernt: //////////////////////////////////////////////////////////// // was tun, wenn ich gerade auf den Gegner zurenne? INSTANCE FA_MY_G_RUNTO_5 (C_FightAI) { move[0] = MOVE_TURN; }; // was tun, wenn ich gerade Strafe? // FIXME: wenn hier ATTACK eingetragen ist, müsste dann nicht nach jedem Strafe eine Attack kommen?? INSTANCE FA_MY_G_STRAFE_5 (C_FightAI) { move[0] = MOVE_TURN; move[1] = MOVE_ATTACK; }; // was tun, wenn ich den Gegner im Focus habe? INSTANCE FA_MY_G_FOCUS_5 (C_FightAI) { move[0] = MOVE_RUN; }; //////////////////////////////////// // Gegner weiter als Waffenreichweite * 3 entfernt //////////////////////////////////// // was tun, wenn ich den Gegner im Focus habe? INSTANCE FA_MY_FK_FOCUS_5 (C_FightAI) { move[0] = MOVE_RUN; }; // was tun, wenn ich den Gegner nicht im Focus habe? (gilt auch für G-Distanz!) INSTANCE FA_MY_G_FK_NOFOCUS_5 (C_FightAI) { move[0] = MOVE_TURN; };
D
module UnrealScript.TribesGame.TrAttachment_NJ4SMG; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.TribesGame.TrDeviceAttachment; extern(C++) interface TrAttachment_NJ4SMG : TrDeviceAttachment { public extern(D): private static __gshared ScriptClass mStaticClass; @property final static ScriptClass StaticClass() { mixin(MGSCC("Class TribesGame.TrAttachment_NJ4SMG")); } private static __gshared TrAttachment_NJ4SMG mDefaultProperties; @property final static TrAttachment_NJ4SMG DefaultProperties() { mixin(MGDPC("TrAttachment_NJ4SMG", "TrAttachment_NJ4SMG TribesGame.Default__TrAttachment_NJ4SMG")); } }
D
/home/shing/Documents/Rust/test2/target/debug/build/libc-51190b76cde6b739/build_script_build-51190b76cde6b739: /home/shing/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.49/build.rs /home/shing/Documents/Rust/test2/target/debug/build/libc-51190b76cde6b739/build_script_build-51190b76cde6b739.d: /home/shing/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.49/build.rs /home/shing/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.49/build.rs:
D
/afs/cern.ch/work/m/mizhou/ES/RootCoreBin/obj/x86_64-slc6-gcc48-opt/xAODForward/obj/ZdcModuleAuxContainer_v1.o /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/obj/x86_64-slc6-gcc48-opt/xAODForward/obj/ZdcModuleAuxContainer_v1.d : /afs/cern.ch/work/m/mizhou/ES/xAODForward/Root/ZdcModuleAuxContainer_v1.cxx /afs/cern.ch/work/m/mizhou/ES/xAODForward/xAODForward/versions/ZdcModuleAuxContainer_v1.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODCore/AuxContainerBase.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainersInterfaces/IAuxStore.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainersInterfaces/IConstAuxStore.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainersInterfaces/AuxTypes.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/CxxUtils/unordered_set.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/CxxUtils/hashtable.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/remove_const.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_volatile.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/config.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/config/user.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/config/select_compiler_config.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/config/compiler/gcc.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/config/select_stdlib_config.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/config/stdlib/libstdcpp3.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/config/select_platform_config.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/config/platform/linux.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/config/posix_features.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/config/suffix.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/detail/workaround.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/cv_traits_impl.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/bool_trait_def.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/template_arity_spec.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/int.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/int_fwd.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/adl_barrier.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/adl.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/msvc.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/intel.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/gcc.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/workaround.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/nttp_decl.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/nttp.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/integral_wrapper.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/integral_c_tag.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/static_constant.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/static_cast.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/cat.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/config/config.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/template_arity_fwd.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/preprocessor/params.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/preprocessor.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/comma_if.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/punctuation/comma_if.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/control/if.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/control/iif.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/logical/bool.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/facilities/empty.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/punctuation/comma.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/repeat.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/repetition/repeat.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/debug/error.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/detail/auto_rec.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/tuple/eat.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/inc.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/arithmetic/inc.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/lambda.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/ttp.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/ctps.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/overload_resolution.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/integral_constant.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/bool.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/bool_fwd.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/integral_c.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/integral_c_fwd.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/lambda_support.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/bool_trait_undef.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/type_trait_def.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/type_trait_undef.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainersInterfaces/IAuxStoreIO.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainersInterfaces/IAuxStoreHolder.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/threading.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/threading.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/PackedContainer.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainersInterfaces/IAuxSetOption.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/PackedParameters.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainersInterfaces/AuxDataOption.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainersInterfaces/AuxDataOption.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/PackedParameters.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/CxxUtils/override.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/PackedContainer.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODCore/AuxSelection.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODCore/CLASS_DEF.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODCore/ClassID_traits.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODCore/BaseInfo.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODCore/AuxContainerBase.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/AuxTypeRegistry.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainersInterfaces/IAuxTypeVector.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainersInterfaces/IAuxTypeVectorFactory.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/AuxTypeVector.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/AuxDataTraits.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/AuxTypeVector.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/AuxTypeVectorFactory.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/AuxTypeVectorFactory.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/AuxTypeRegistry.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODCore/tools/AuxPersVector.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODTrigL1Calo/TriggerTowerContainer.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODTrigL1Calo/TriggerTower.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODTrigL1Calo/versions/TriggerTower_v1.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthLinks/ElementLink.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthLinks/ElementLinkBase.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthLinks/tools/selection_ns.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/RVersion.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/RootMetaSelection.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthLinks/tools/TypeTools.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthLinks/ElementLink.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODRootAccessInterfaces/TVirtualEvent.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODRootAccessInterfaces/TVirtualEvent.icc /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TError.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/Rtypes.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/RtypesCore.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/RConfig.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/DllImport.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/Rtypeinfo.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/snprintf.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/strlcpy.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TGenericClassInfo.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TSchemaHelper.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODRootAccessInterfaces/TActiveEvent.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/AuxElement.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainersInterfaces/IAuxElement.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthLinks/DataLink.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthLinks/DataLinkBase.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthLinks/DataLink.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/AuxVectorData.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/likely.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/assume.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/AuxVectorData.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/exceptions.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/CxxUtils/noreturn.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/AuxElement.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODTrigL1Calo/versions/TriggerTower_v2.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODBase/IParticle.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TLorentzVector.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TMath.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TMathBase.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TError.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TVector3.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TVector2.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TObject.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TStorage.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TVersionCheck.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/Riosfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TBuffer.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TMatrix.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TMatrixF.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TMatrixT.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TMatrixTBase.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TNamed.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TString.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TMatrixFBasefwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TMatrixDBasefwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TVectorFfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TVectorDfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TMatrixTUtils.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TMatrixFfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TMatrixFUtils.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TMatrixFUtilsfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.02.12-x86_64-slc6-gcc48-opt/include/TRotation.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODBase/ObjectType.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/CxxUtils/final.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODTrigL1Calo/versions/TriggerTowerContainer_v1.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/DataVector.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/OwnershipPolicy.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/IndexTrackingPolicy.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/AuxVectorBase.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/ATHCONTAINERS_ASSERT.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainersInterfaces/AuxStore_traits.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/AuxVectorBase.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/DVLNoBase.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/DVLInfo.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/ClassID.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/DVLInfo.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/DVLCast.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/DVLIterator.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/ElementProxy.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/ElementProxy.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/iterator/iterator_adaptor.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/static_assert.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/iterator.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/detail/iterator.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/iterator/iterator_categories.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/iterator/detail/config_def.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/eval_if.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/if.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/value_wknd.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/integral.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/eti.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/na_spec.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/lambda_fwd.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/void_fwd.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/na.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/na_fwd.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/lambda_arity_param.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/arity.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/dtp.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/preprocessor/enum.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/limits/arity.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/logical/and.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/logical/bitand.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/identity.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/facilities/identity.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/empty.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/arithmetic/add.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/arithmetic/dec.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/control/while.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/list/fold_left.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/list/detail/fold_left.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/control/expr_iif.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/list/adt.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/detail/is_binary.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/detail/check.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/logical/compl.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/list/fold_right.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/list/detail/fold_right.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/list/reverse.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/control/detail/while.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/tuple/elem.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/facilities/expand.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/facilities/overload.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/variadic/size.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/tuple/rem.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/tuple/detail/is_single_return.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/variadic/elem.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/arithmetic/sub.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/identity.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/placeholders.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/arg.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/arg_fwd.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/na_assert.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/assert.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/not.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/nested_type_wknd.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/yes_no.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/arrays.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/gpu.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/pp_counter.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/arity_spec.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/arg_typedef.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/use_preprocessed.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/include_preprocessed.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/compiler.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/stringize.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/arg.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_convertible.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/intrinsics.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/config.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_same.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_reference.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_lvalue_reference.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_rvalue_reference.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/ice.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/yes_no_type.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/ice_or.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/ice_and.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/ice_not.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/ice_eq.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_array.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_arithmetic.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_integral.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_float.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_void.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_abstract.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/add_lvalue_reference.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/add_reference.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/add_rvalue_reference.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_function.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/false_result.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/is_function_ptr_helper.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/utility/declval.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/iterator/detail/config_undef.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/iterator/iterator_facade.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/iterator/interoperable.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/or.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/or.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/iterator/iterator_traits.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/iterator/detail/facade_iterator_category.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/and.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/and.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_const.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/detail/indirect_traits.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_pointer.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_member_pointer.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_member_function_pointer.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/remove_cv.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_class.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/remove_reference.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/remove_pointer.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/iterator/detail/enable_if.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/utility/addressof.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/core/addressof.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/add_const.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/add_pointer.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_pod.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_scalar.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_enum.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/always.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/preprocessor/default_params.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/apply.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/apply_fwd.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/apply_wrap.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/has_apply.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/has_xxx.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/type_wrapper.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/has_xxx.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/msvc_typename.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/array/elem.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/array/data.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/array/size.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/repetition/enum_params.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/repetition/enum_trailing_params.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/has_apply.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/msvc_never_true.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/lambda.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/bind.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/bind_fwd.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/bind.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/next.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/next_prior.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/common_name_wknd.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/protect.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/bind.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/full_lambda.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/quote.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/void.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/has_type.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/config/bcc.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/quote.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/template_arity.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/apply.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/version.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/DVL_iter_swap.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/DVL_algorithms.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/DVL_algorithms.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/IsMostDerivedFlag.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/add_cv.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/add_volatile.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/aligned_storage.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/aligned_storage.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/alignment_of.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/size_t_trait_def.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/size_t.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/mpl/size_t_fwd.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/size_t_trait_undef.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/type_with_alignment.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/list/for_each_i.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/repetition/for.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/repetition/detail/for.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/tuple/to_list.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/tuple/size.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/list/transform.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/preprocessor/list/append.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/common_type.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/conditional.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/decay.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/remove_bounds.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/extent.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/floating_point_promotion.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/function_traits.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_new_operator.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_nothrow_assign.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_trivial_assign.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_nothrow_constructor.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_trivial_constructor.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_nothrow_copy.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_trivial_copy.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_nothrow_destructor.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_trivial_destructor.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_operator.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_bit_and.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/has_binary_operator.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_base_of.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_base_and_derived.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_fundamental.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_bit_and_assign.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_bit_or.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_bit_or_assign.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_bit_xor.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_bit_xor_assign.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_complement.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/has_prefix_operator.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_dereference.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_divides.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_divides_assign.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_equal_to.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_greater.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_greater_equal.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_left_shift.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_left_shift_assign.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_less.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_less_equal.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_logical_and.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_logical_not.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_logical_or.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_minus.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_minus_assign.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_modulus.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_modulus_assign.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_multiplies.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_multiplies_assign.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_negate.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_not_equal_to.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_plus.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_plus_assign.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_post_decrement.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/detail/has_postfix_operator.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_post_increment.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_pre_decrement.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_pre_increment.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_right_shift.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_right_shift_assign.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_unary_minus.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_unary_plus.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_trivial_move_assign.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_trivial_move_constructor.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/has_virtual_destructor.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_complex.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_compound.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_copy_constructible.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/noncopyable.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/core/noncopyable.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_copy_assignable.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_empty.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_floating_point.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_member_object_pointer.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_nothrow_move_assignable.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/utility/enable_if.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/core/enable_if.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_nothrow_move_constructible.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_object.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_polymorphic.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_signed.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_stateless.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_union.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_unsigned.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/is_virtual_base_of.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/make_unsigned.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/make_signed.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/rank.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/remove_extent.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/remove_all_extents.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/remove_volatile.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/integral_promotion.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/boost/type_traits/promote.hpp /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/ClassName.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/ClassName.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/error.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/DataVector.icc /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/AthContainers/tools/CompareAndPrint.h /afs/cern.ch/work/m/mizhou/ES/RootCoreBin/include/xAODTrigL1Calo/versions/TriggerTowerContainer_v2.h
D
.build_1i2o2_lin33_48k_xscopectl_farenddsp/_m_usb_audio/reboot.xc.d .build_1i2o2_lin33_48k_xscopectl_farenddsp/_m_usb_audio/reboot.xc.o .build_1i2o2_lin33_48k_xscopectl_farenddsp/_m_usb_audio/reboot.xc.pca.xml: C:/Users/user/workspace/module_usb_audio/reboot.xc
D
/** For testing only. Contains tests related to member privacy that cannot be verified inside std.range itself. */ module std.internal.test.range; // Note: currently can't be @safe because RefCounted, which is used by chunks, // isn't. @system /*@safe*/ unittest { import std.algorithm.comparison : equal; import std.range : chunks; struct R { int state = 0; @property bool empty() { return state >= 5; } @property int front() { return state; } void popFront() { state++; } } auto r = R().chunks(3); assert(r.equal!equal([[ 0, 1, 2 ], [ 3, 4 ]])); }
D
import amigos.dk.dkinter; import std.io; int main(string[] args) { auto root=new Tk(); auto sc=new Scale(root,"масштаб");sc.pack(); sc.cfg(["orient":HORIZONTAL]); auto sbtn=new Button(root,"Вывести", delegate (Widget w,Event) { writefln("get: ",sc.get()); sc.set(10); }); sbtn.pack(); auto btn=new Button(root,"Выход",delegate (Widget w,Event){root.exit();});btn.pack(); root.mainloop(); return 0; }
D
import vibe.core.core; import vibe.core.net; import vibe.http.server; import vibe.stream.operations; import core.time : msecs; import std.datetime : Clock, UTC; shared static this() { auto s1 = new HTTPServerSettings; s1.bindAddresses = ["::1"]; s1.port = 11388; listenHTTP(s1, &handler); runTask({ auto conn = connectTCP("::1", 11388); conn.write("GET / HTTP/1.1\r\nHost: [::1]\r\n\r\n"); string res = cast(string)conn.readLine(); assert(res == "HTTP/1.1 200 OK", res); while (conn.readLine().length > 0) {} assert(cast(string)conn.readLine() == "success"); conn.write("GET / HTTP/1.1\r\nHost: [::1]:11388\r\n\r\n"); res = cast(string)conn.readLine(); assert(res == "HTTP/1.1 200 OK", res); while (conn.readLine().length > 0) {} assert(cast(string)conn.readLine() == "success"); conn.close(); exitEventLoop(); }); } void handler(scope HTTPServerRequest req, scope HTTPServerResponse res) { res.writeBody("success\r\n"); }
D
/** * Bellman-Ford path finding algorithm * * License: * D version of code is under MIT. The original is under Apache 2.0. * * The MIT License (MIT) * * Copyright (c) 2014 Devisualization (Richard Andrew Cattermole) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * See_Also: * http://en.wikipedia.org/wiki/Bellman%E2%80%93Ford_algorithm */ module devisualization.util.algorithms.pathfinding.bellmanford; import devisualization.util.algorithms.pathfinding.defs; deprecated("Killing"): /** * Performs a Bellman-Ford search on a graph * * Params: * graph = The graph * source = The starting position * distance = Output: Distance between node and starting position * predecessor = Output: A node's previous node */ void bellmanFord_search(T, U)(GridWithWeights graph, T source, out U[T] distance, out T[T] predecessor) { // This implementation takes in a graph, represented as // lists of vertices and edges, and fills two arrays // (distance and predecessor) with shortest-path // (less cost/distance/metric) information // Step 1: initialize graph foreach(k, v; graph.edges) { if (k == source) distance[k] = T.init; else static if (__traits(compiles, {T v = T.nan;})) distance[k] = T.nan; else distance[k] = T.max; predecessor[k] = null; } // Step 2: relax edges repeatedly foreach(k, v; graph.edges) { foreach(v2; v) { auto w = graph.cost(k, v2); if (distance[u] + w < distance[v]) { distance[v] = distance[u] + w; predecessor[v] = u; } } } // Step 3: check for negative-weight cycles foreach(k, v; graph.edges) { foreach(v2; v) { auto w = graph.cost(k, v2); if (distance[u] + w < distance[v]) { throw new Exception("Graph contains a negative-weight cycle"); } } } }
D
In the Bahamas, hurricane Floyd's 140 mph winds uprooted trees, toppled power lines, stripped roofs off homes and flooded streets. Several people were treated for minor injuries. Vacationers sought shelter inside secure hotel lobbies. The storm interrupted airline flights, cruises and shipping traffic between the US and the Caribbean. In the US, the president issued a disaster declaration, enabling FEMA to begin supporting state and local authorities. The National Guard was activated in Florida, Georgia, and both Carolinas. Walt Disney World closed for the first time ever because of weather and military sent aircraft inland and ships out of port.
D
/* * Hunt - A refined core library for D programming language. * * Copyright (C) 2018-2019 HuntLabs * * Website: https://www.huntlabs.net/ * * Licensed under the Apache-2.0 License. * */ module hunt.logging.ConsoleLogger; // import hunt.util.ThreadHelper; import hunt.util.ThreadHelper; import core.stdc.stdlib; import core.runtime; import core.thread; import std.conv; import std.datetime; import std.exception; import std.format; import std.range; import std.regex; import std.stdio; import std.string; import std.typecons; import std.traits; alias LogLayoutHandler = string delegate(string time_prior, string tid, string level, string myFunc, string msg, string file, size_t line); private { __gshared LogLayoutHandler _layoutHandler; LogLayoutHandler layoutHandler() { if(_layoutHandler is null) { _layoutHandler = (string time_prior, string tid, string level, string fun, string msg, string file, size_t line) { return time_prior ~ " | " ~ tid ~ " | " ~ level ~ " | " ~ fun ~ " | " ~ msg ~ " | " ~ file ~ ":" ~ to!string(line); }; } return _layoutHandler; } } version (Windows) { import core.sys.windows.wincon; import core.sys.windows.winbase; import core.sys.windows.windef; import hunt.system.WindowsHelper; } version (Posix) { enum PRINT_COLOR_NONE = "\033[m"; enum PRINT_COLOR_RED = "\033[0;32;31m"; enum PRINT_COLOR_GREEN = "\033[0;32;32m"; enum PRINT_COLOR_YELLOW = "\033[1;33m"; } version (Android) { import core.stdc.stdarg : va_end, va_list, va_start; import core.sys.posix.sys.types; enum { AASSET_MODE_UNKNOWN, AASSET_MODE_RANDOM, AASSET_MODE_STREAMING, AASSET_MODE_BUFFER } enum android_LogPriority { ANDROID_LOG_UNKNOWN, ANDROID_LOG_DEFAULT, ANDROID_LOG_VERBOSE, ANDROID_LOG_DEBUG, ANDROID_LOG_INFO, ANDROID_LOG_WARN, ANDROID_LOG_ERROR, ANDROID_LOG_FATAL, ANDROID_LOG_SILENT } enum LOG_TAG = "HUNT"; // dfmt off extern (C): @system: nothrow: @nogc: // dfmt on struct AAssetManager; struct AAssetDir; struct AAsset; AAssetDir* AAssetManager_openDir(AAssetManager* mgr, const(char)* dirName); AAsset* AAssetManager_open(AAssetManager* mgr, const(char)* filename, int mode); const(char)* AAssetDir_getNextFileName(AAssetDir* assetDir); void AAssetDir_rewind(AAssetDir* assetDir); void AAssetDir_close(AAssetDir* assetDir); int AAsset_read(AAsset* asset, void* buf, size_t count); off_t AAsset_seek(AAsset* asset, off_t offset, int whence); void AAsset_close(AAsset* asset); const(void)* AAsset_getBuffer(AAsset* asset); off_t AAsset_getLength(AAsset* asset); off_t AAsset_getRemainingLength(AAsset* asset); int AAsset_openFileDescriptor(AAsset* asset, off_t* outStart, off_t* outLength); int AAsset_isAllocated(AAsset* asset); int __android_log_write(int prio, const(char)* tag, const(char)* text); int __android_log_print(int prio, const(char)* tag, const(char)* fmt, ...); int __android_log_vprint(int prio, const(char)* tag, const(char)* fmt, va_list ap); void __android_log_assert(const(char)* cond, const(char)* tag, const(char)* fmt, ...); } enum LogLevel { Trace = 0, Info = 1, Warning = 2, Error = 3, Fatal = 4, Off = 5 } /** * */ class ConsoleLogger { private __gshared LogLevel g_logLevel = LogLevel.Trace; private enum traceLevel = toString(LogLevel.Trace); private enum infoLevel = toString(LogLevel.Info); private enum warningLevel = toString(LogLevel.Warning); private enum errorLevel = toString(LogLevel.Error); private enum fatalLevel = toString(LogLevel.Fatal); private enum offlLevel = toString(LogLevel.Off); static void setLogLevel(LogLevel level) { g_logLevel = level; } static void trace(string file = __FILE__, size_t line = __LINE__, string func = __FUNCTION__, A...)(lazy A args) nothrow { writeFormatColor(LogLevel.Trace, layout!(file, line, func)(logFormat(args), traceLevel)); } static void tracef(string file = __FILE__, size_t line = __LINE__, string func = __FUNCTION__, A...)(lazy A args) nothrow { writeFormatColor(LogLevel.Trace, layout!(file, line, func)(logFormatf(args), traceLevel)); } static void info(string file = __FILE__, size_t line = __LINE__, string func = __FUNCTION__, A...)(lazy A args) nothrow { writeFormatColor(LogLevel.Info, layout!(file, line, func)(logFormat(args), infoLevel)); } static void infof(string file = __FILE__, size_t line = __LINE__, string func = __FUNCTION__, A...)(lazy A args) nothrow { writeFormatColor(LogLevel.Info, layout!(file, line, func)(logFormatf(args), infoLevel)); } static void warning(string file = __FILE__, size_t line = __LINE__, string func = __FUNCTION__, A...)(lazy A args) nothrow { writeFormatColor(LogLevel.Warning, layout!(file, line, func)(logFormat(args), warningLevel)); } static void warningf(string file = __FILE__, size_t line = __LINE__, string func = __FUNCTION__, A...)(lazy A args) nothrow { writeFormatColor(LogLevel.Warning, layout!(file, line, func)(logFormatf(args), warningLevel)); } static void error(string file = __FILE__, size_t line = __LINE__, string func = __FUNCTION__, A...)(lazy A args) nothrow { writeFormatColor(LogLevel.Error, layout!(file, line, func)(logFormat(args), errorLevel)); } static void errorf(string file = __FILE__, size_t line = __LINE__, string func = __FUNCTION__, A...)(lazy A args) nothrow { writeFormatColor(LogLevel.Error, layout!(file, line, func)(logFormatf(args), errorLevel)); } static void fatal(string file = __FILE__, size_t line = __LINE__, string func = __FUNCTION__, A...)(lazy A args) nothrow { writeFormatColor(LogLevel.Fatal, layout!(file, line, func)(logFormat(args), fatalLevel)); } static void fatalf(string file = __FILE__, size_t line = __LINE__, string func = __FUNCTION__, A...)(lazy A args) nothrow { writeFormatColor(LogLevel.Fatal, layout!(file, line, func)(logFormatf(args), fatalLevel)); } private static string logFormatf(A...)(A args) { Appender!string buffer; formattedWrite(buffer, args); return buffer.data; } private static string logFormat(A...)(A args) { auto w = appender!string(); foreach (arg; args) { alias A = typeof(arg); static if (isAggregateType!A || is(A == enum)) { import std.format : formattedWrite; formattedWrite(w, "%s", arg); } else static if (isSomeString!A) { put(w, arg); } else static if (isIntegral!A) { import std.conv : toTextRange; toTextRange(arg, w); } else static if (isBoolean!A) { put(w, arg ? "true" : "false"); } else static if (isSomeChar!A) { put(w, arg); } else { import std.format : formattedWrite; // Most general case formattedWrite(w, "%s", arg); } } return w.data; } private static string layout(string file = __FILE__, size_t line = __LINE__, string func = __FUNCTION__)(string msg, string level) { enum lineNum = std.conv.to!string(line); string time_prior = Clock.currTime.toString(); string tid = std.conv.to!string(cast(size_t)getTid()); // writeln("fullname: ",func); string fun = func; ptrdiff_t index = lastIndexOf(func, '.'); if (index != -1) { if (func[index - 1] != ')') { ptrdiff_t idx = lastIndexOf(func, '.', index); if (idx != -1) index = idx; } fun = func[index + 1 .. $]; } LogLayoutHandler handler = layoutHandler(); if(handler !is null) { return handler(time_prior, tid, level, fun, msg, file, line); } else { return time_prior ~ " | " ~ tid ~ " | " ~ level ~ " | " ~ fun ~ " | " ~ msg ~ " | " ~ file ~ ":" ~ lineNum; } } // private static string defaultLayout(string context, string msg, string level) // { // string time_prior = Clock.currTime.toString(); // string tid = std.conv.to!string(getTid()); // return time_prior ~ " | " ~ tid ~ " | " ~ level ~ context ~ msg; // } static string toString(LogLevel level) nothrow { string r; final switch (level) with (LogLevel) { case Trace: r = "trace"; break; case Info: r = "info"; break; case Warning: r = "warning"; break; case Error: r = "error"; break; case Fatal: r = "fatal"; break; case Off: r = "off"; break; } return r; } private static void writeFormatColor(LogLevel level, lazy string msg) nothrow { if (level < g_logLevel) return; version (Posix) { version (Android) { string prior_color; android_LogPriority logPrioity = android_LogPriority.ANDROID_LOG_INFO; switch (level) with (LogLevel) { case Error: case Fatal: prior_color = PRINT_COLOR_RED; logPrioity = android_LogPriority.ANDROID_LOG_ERROR; break; case Warning: prior_color = PRINT_COLOR_YELLOW; logPrioity = android_LogPriority.ANDROID_LOG_WARN; break; case Info: prior_color = PRINT_COLOR_GREEN; break; default: prior_color = string.init; } try { __android_log_write(logPrioity, LOG_TAG, toStringz(prior_color ~ msg ~ PRINT_COLOR_NONE)); } catch(Exception ex) { collectException( { write(PRINT_COLOR_RED); write(ex); writeln(PRINT_COLOR_NONE); }()); } } else { string prior_color; switch (level) with (LogLevel) { case Error: case Fatal: prior_color = PRINT_COLOR_RED; break; case Warning: prior_color = PRINT_COLOR_YELLOW; break; case Info: prior_color = PRINT_COLOR_GREEN; break; default: prior_color = string.init; } try { writeln(prior_color ~ msg ~ PRINT_COLOR_NONE); } catch(Exception ex) { collectException( { write(PRINT_COLOR_RED); write(ex); writeln(PRINT_COLOR_NONE); }()); } } } else version (Windows) { enum defaultColor = FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_BLUE; ushort color; switch (level) with (LogLevel) { case Error: case Fatal: color = FOREGROUND_RED; break; case Warning: color = FOREGROUND_GREEN | FOREGROUND_RED; break; case Info: color = FOREGROUND_GREEN; break; default: color = defaultColor; } ConsoleHelper.writeWithAttribute(msg, color); } else { assert(false, "Unsupported OS."); } } } void setLogLayout(LogLayoutHandler handler) { _layoutHandler = handler; } alias trace = ConsoleLogger.trace; alias tracef = ConsoleLogger.tracef; alias info = ConsoleLogger.info; alias infof = ConsoleLogger.infof; alias warning = ConsoleLogger.warning; alias warningf = ConsoleLogger.warningf; alias error = ConsoleLogger.error; alias errorf = ConsoleLogger.errorf; // alias critical = ConsoleLogger.critical; // alias criticalf = ConsoleLogger.criticalf; alias logDebug = trace; alias logDebugf = tracef; alias logInfo = info; alias logInfof = infof; alias logWarning = warning; alias logWarningf = warningf; alias logError = error; alias logErrorf = errorf;
D
// Written in the D programming language. /** * Templates which extract information about types and symbols at compile time. * * $(SCRIPT inhibitQuickIndex = 1;) * * $(DIVC quickindex, * $(BOOKTABLE , * $(TR $(TH Category) $(TH Templates)) * $(TR $(TD Symbol Name traits) $(TD * $(LREF fullyQualifiedName) * $(LREF moduleName) * $(LREF packageName) * )) * $(TR $(TD Function traits) $(TD * $(LREF isFunction) * $(LREF arity) * $(LREF functionAttributes) * $(LREF hasFunctionAttributes) * $(LREF functionLinkage) * $(LREF FunctionTypeOf) * $(LREF isSafe) * $(LREF isUnsafe) * $(LREF isFinal) * $(LREF ParameterDefaults) * $(LREF ParameterIdentifierTuple) * $(LREF ParameterStorageClassTuple) * $(LREF Parameters) * $(LREF ReturnType) * $(LREF SetFunctionAttributes) * $(LREF variadicFunctionStyle) * )) * $(TR $(TD Aggregate Type traits) $(TD * $(LREF BaseClassesTuple) * $(LREF BaseTypeTuple) * $(LREF classInstanceAlignment) * $(LREF EnumMembers) * $(LREF FieldNameTuple) * $(LREF Fields) * $(LREF hasAliasing) * $(LREF hasElaborateAssign) * $(LREF hasElaborateCopyConstructor) * $(LREF hasElaborateDestructor) * $(LREF hasElaborateMove) * $(LREF hasIndirections) * $(LREF hasMember) * $(LREF hasStaticMember) * $(LREF hasNested) * $(LREF hasUnsharedAliasing) * $(LREF InterfacesTuple) * $(LREF isInnerClass) * $(LREF isNested) * $(LREF MemberFunctionsTuple) * $(LREF RepresentationTypeTuple) * $(LREF TemplateArgsOf) * $(LREF TemplateOf) * $(LREF TransitiveBaseTypeTuple) * )) * $(TR $(TD Type Conversion) $(TD * $(LREF CommonType) * $(LREF ImplicitConversionTargets) * $(LREF CopyTypeQualifiers) * $(LREF CopyConstness) * $(LREF isAssignable) * $(LREF isCovariantWith) * $(LREF isImplicitlyConvertible) * )) * $(TR $(TD SomethingTypeOf) $(TD * $(LREF rvalueOf) * $(LREF lvalueOf) * $(LREF InoutOf) * $(LREF ConstOf) * $(LREF SharedOf) * $(LREF SharedInoutOf) * $(LREF SharedConstOf) * $(LREF ImmutableOf) * $(LREF QualifierOf) * )) * $(TR $(TD Categories of types) $(TD * $(LREF allSameType) * $(LREF ifTestable) * $(LREF isType) * $(LREF isAggregateType) * $(LREF isArray) * $(LREF isAssociativeArray) * $(LREF isAutodecodableString) * $(LREF isBasicType) * $(LREF isBoolean) * $(LREF isBuiltinType) * $(LREF isCopyable) * $(LREF isDynamicArray) * $(LREF isEqualityComparable) * $(LREF isFloatingPoint) * $(LREF isIntegral) * $(LREF isNarrowString) * $(LREF isConvertibleToString) * $(LREF isNumeric) * $(LREF isOrderingComparable) * $(LREF isPointer) * $(LREF isScalarType) * $(LREF isSigned) * $(LREF isSIMDVector) * $(LREF isSomeChar) * $(LREF isSomeString) * $(LREF isStaticArray) * $(LREF isUnsigned) * )) * $(TR $(TD Type behaviours) $(TD * $(LREF isAbstractClass) * $(LREF isAbstractFunction) * $(LREF isCallable) * $(LREF isDelegate) * $(LREF isExpressions) * $(LREF isFinalClass) * $(LREF isFinalFunction) * $(LREF isFunctionPointer) * $(LREF isInstanceOf) * $(LREF isIterable) * $(LREF isMutable) * $(LREF isSomeFunction) * $(LREF isTypeTuple) * )) * $(TR $(TD General Types) $(TD * $(LREF ForeachType) * $(LREF KeyType) * $(LREF Largest) * $(LREF mostNegative) * $(LREF OriginalType) * $(LREF PointerTarget) * $(LREF Signed) * $(LREF Unconst) * $(LREF Unqual) * $(LREF Unsigned) * $(LREF ValueType) * $(LREF Promoted) * )) * $(TR $(TD Misc) $(TD * $(LREF mangledName) * $(LREF Select) * $(LREF select) * )) * $(TR $(TD User-Defined Attributes) $(TD * $(LREF hasUDA) * $(LREF getUDAs) * $(LREF getSymbolsByUDA) * )) * ) * ) * * Copyright: Copyright The D Language Foundation 2005 - 2009. * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). * Authors: $(HTTP digitalmars.com, Walter Bright), * Tomasz Stachowiak (`isExpressions`), * $(HTTP erdani.org, Andrei Alexandrescu), * Shin Fujishiro, * $(HTTP octarineparrot.com, Robert Clipsham), * $(HTTP klickverbot.at, David Nadlinger), * Kenji Hara, * Shoichi Kato * Source: $(PHOBOSSRC std/traits.d) */ /* Copyright The D Language Foundation 2005 - 2009. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ module std.traits; import std.meta : AliasSeq, allSatisfy, anySatisfy; import std.functional : unaryFun; // Legacy inheritance from std.typetuple // See also: https://github.com/dlang/phobos/pull/5484#discussion_r122602797 import std.meta : staticMapMeta = staticMap; // TODO: find a way to trigger deprecation warnings //deprecated("staticMap is part of std.meta: Please import std.meta") alias staticMap = staticMapMeta; /////////////////////////////////////////////////////////////////////////////// // Functions /////////////////////////////////////////////////////////////////////////////// // Petit demangler // (this or similar thing will eventually go to std.demangle if necessary // ctfe stuffs are available) private { struct Demangle(T) { T value; // extracted information string rest; } /* Demangles mstr as the storage class part of Argument. */ Demangle!uint demangleParameterStorageClass(string mstr) { uint pstc = 0; // parameter storage class // Argument --> Argument2 | M Argument2 if (mstr.length > 0 && mstr[0] == 'M') { pstc |= ParameterStorageClass.scope_; mstr = mstr[1 .. $]; } // Argument2 --> Type | J Type | K Type | L Type ParameterStorageClass stc2; switch (mstr.length ? mstr[0] : char.init) { case 'J': stc2 = ParameterStorageClass.out_; break; case 'K': stc2 = ParameterStorageClass.ref_; break; case 'L': stc2 = ParameterStorageClass.lazy_; break; case 'N': if (mstr.length >= 2 && mstr[1] == 'k') stc2 = ParameterStorageClass.return_; break; default : break; } if (stc2 != ParameterStorageClass.init) { pstc |= stc2; mstr = mstr[1 .. $]; if (stc2 & ParameterStorageClass.return_) mstr = mstr[1 .. $]; } return Demangle!uint(pstc, mstr); } /* Demangles mstr as FuncAttrs. */ Demangle!uint demangleFunctionAttributes(string mstr) { immutable LOOKUP_ATTRIBUTE = [ 'a': FunctionAttribute.pure_, 'b': FunctionAttribute.nothrow_, 'c': FunctionAttribute.ref_, 'd': FunctionAttribute.property, 'e': FunctionAttribute.trusted, 'f': FunctionAttribute.safe, 'i': FunctionAttribute.nogc, 'j': FunctionAttribute.return_, 'l': FunctionAttribute.scope_ ]; uint atts = 0; // FuncAttrs --> FuncAttr | FuncAttr FuncAttrs // FuncAttr --> empty | Na | Nb | Nc | Nd | Ne | Nf | Ni | Nj // except 'Ng' == inout, because it is a qualifier of function type while (mstr.length >= 2 && mstr[0] == 'N' && mstr[1] != 'g' && mstr[1] != 'k') { if (FunctionAttribute att = LOOKUP_ATTRIBUTE[ mstr[1] ]) { atts |= att; mstr = mstr[2 .. $]; } else assert(0); } return Demangle!uint(atts, mstr); } static if (is(ucent)) { alias CentTypeList = AliasSeq!(cent, ucent); alias SignedCentTypeList = AliasSeq!(cent); alias UnsignedCentTypeList = AliasSeq!(ucent); } else { alias CentTypeList = AliasSeq!(); alias SignedCentTypeList = AliasSeq!(); alias UnsignedCentTypeList = AliasSeq!(); } alias IntegralTypeList = AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong, CentTypeList); alias SignedIntTypeList = AliasSeq!(byte, short, int, long, SignedCentTypeList); alias UnsignedIntTypeList = AliasSeq!(ubyte, ushort, uint, ulong, UnsignedCentTypeList); alias FloatingPointTypeList = AliasSeq!(float, double, real); alias ImaginaryTypeList = AliasSeq!(ifloat, idouble, ireal); alias ComplexTypeList = AliasSeq!(cfloat, cdouble, creal); alias NumericTypeList = AliasSeq!(IntegralTypeList, FloatingPointTypeList); alias CharTypeList = AliasSeq!(char, wchar, dchar); } package { // Add the mutable qualifier to the given type T. template MutableOf(T) { alias MutableOf = T ; } } /** * Params: * T = The type to qualify * Returns: * `T` with the `inout` qualifier added. */ template InoutOf(T) { alias InoutOf = inout(T); } /// @safe unittest { static assert(is(InoutOf!(int) == inout int)); static assert(is(InoutOf!(inout int) == inout int)); static assert(is(InoutOf!(const int) == inout const int)); static assert(is(InoutOf!(shared int) == inout shared int)); } /** * Params: * T = The type to qualify * Returns: * `T` with the `const` qualifier added. */ template ConstOf(T) { alias ConstOf = const(T); } /// @safe unittest { static assert(is(ConstOf!(int) == const int)); static assert(is(ConstOf!(const int) == const int)); static assert(is(ConstOf!(inout int) == const inout int)); static assert(is(ConstOf!(shared int) == const shared int)); } /** * Params: * T = The type to qualify * Returns: * `T` with the `shared` qualifier added. */ template SharedOf(T) { alias SharedOf = shared(T); } /// @safe unittest { static assert(is(SharedOf!(int) == shared int)); static assert(is(SharedOf!(shared int) == shared int)); static assert(is(SharedOf!(inout int) == shared inout int)); static assert(is(SharedOf!(immutable int) == shared immutable int)); } /** * Params: * T = The type to qualify * Returns: * `T` with the `inout` and `shared` qualifiers added. */ template SharedInoutOf(T) { alias SharedInoutOf = shared(inout(T)); } /// @safe unittest { static assert(is(SharedInoutOf!(int) == shared inout int)); static assert(is(SharedInoutOf!(int) == inout shared int)); static assert(is(SharedInoutOf!(const int) == shared inout const int)); static assert(is(SharedInoutOf!(immutable int) == shared inout immutable int)); } /** * Params: * T = The type to qualify * Returns: * `T` with the `const` and `shared` qualifiers added. */ template SharedConstOf(T) { alias SharedConstOf = shared(const(T)); } /// @safe unittest { static assert(is(SharedConstOf!(int) == shared const int)); static assert(is(SharedConstOf!(int) == const shared int)); static assert(is(SharedConstOf!(inout int) == shared inout const int)); // immutable variables are implicitly shared and const static assert(is(SharedConstOf!(immutable int) == immutable int)); } /** * Params: * T = The type to qualify * Returns: * `T` with the `immutable` qualifier added. */ template ImmutableOf(T) { alias ImmutableOf = immutable(T); } /// @safe unittest { static assert(is(ImmutableOf!(int) == immutable int)); static assert(is(ImmutableOf!(const int) == immutable int)); static assert(is(ImmutableOf!(inout int) == immutable int)); static assert(is(ImmutableOf!(shared int) == immutable int)); } @safe unittest { static assert(is( MutableOf!int == int)); static assert(is( InoutOf!int == inout int)); static assert(is( ConstOf!int == const int)); static assert(is( SharedOf!int == shared int)); static assert(is(SharedInoutOf!int == shared inout int)); static assert(is(SharedConstOf!int == shared const int)); static assert(is( ImmutableOf!int == immutable int)); } /** * Gives a template that can be used to apply the same * attributes that are on the given type `T`. E.g. passing * `inout shared int` will return `SharedInoutOf`. * * Params: * T = the type to check qualifiers from * Returns: * The qualifier template from the given type `T` */ template QualifierOf(T) { static if (is(T == shared(const U), U)) alias QualifierOf = SharedConstOf; else static if (is(T == const U, U)) alias QualifierOf = ConstOf; else static if (is(T == shared(inout U), U)) alias QualifierOf = SharedInoutOf; else static if (is(T == inout U, U)) alias QualifierOf = InoutOf; else static if (is(T == immutable U, U)) alias QualifierOf = ImmutableOf; else static if (is(T == shared U, U)) alias QualifierOf = SharedOf; else alias QualifierOf = MutableOf; } /// @safe unittest { static assert(__traits(isSame, QualifierOf!(immutable int), ImmutableOf)); static assert(__traits(isSame, QualifierOf!(shared int), SharedOf)); static assert(__traits(isSame, QualifierOf!(shared inout int), SharedInoutOf)); } @safe unittest { alias Qual1 = QualifierOf!( int); static assert(is(Qual1!long == long)); alias Qual2 = QualifierOf!( inout int); static assert(is(Qual2!long == inout long)); alias Qual3 = QualifierOf!( const int); static assert(is(Qual3!long == const long)); alias Qual4 = QualifierOf!(shared int); static assert(is(Qual4!long == shared long)); alias Qual5 = QualifierOf!(shared inout int); static assert(is(Qual5!long == shared inout long)); alias Qual6 = QualifierOf!(shared const int); static assert(is(Qual6!long == shared const long)); alias Qual7 = QualifierOf!( immutable int); static assert(is(Qual7!long == immutable long)); } version (unittest) { alias TypeQualifierList = AliasSeq!(MutableOf, ConstOf, SharedOf, SharedConstOf, ImmutableOf); struct SubTypeOf(T) { T val; alias val this; } } private alias parentOf(alias sym) = Identity!(__traits(parent, sym)); private alias parentOf(alias sym : T!Args, alias T, Args...) = Identity!(__traits(parent, T)); /** * Get the full package name for the given symbol. */ template packageName(alias T) { import std.algorithm.searching : startsWith; enum bool isNotFunc = !isSomeFunction!(T); static if (__traits(compiles, parentOf!T)) enum parent = packageName!(parentOf!T); else enum string parent = null; static if (isNotFunc && T.stringof.startsWith("package ")) enum packageName = (parent.length ? parent ~ '.' : "") ~ T.stringof[8 .. $]; else static if (parent) enum packageName = parent; else static assert(false, T.stringof ~ " has no parent"); } /// @safe unittest { static assert(packageName!packageName == "std"); } @safe unittest { import std.array; static assert(packageName!std == "std"); static assert(packageName!(std.traits) == "std"); // this module static assert(packageName!packageName == "std"); // symbol in this module static assert(packageName!(std.array) == "std"); // other module from same package import core.sync.barrier; // local import static assert(packageName!core == "core"); static assert(packageName!(core.sync) == "core.sync"); static assert(packageName!Barrier == "core.sync"); struct X12287(T) { T i; } static assert(packageName!(X12287!int.i) == "std"); } version (none) @safe unittest //Please uncomment me when changing packageName to test global imports { import core.sync.barrier; // global import static assert(packageName!core == "core"); static assert(packageName!(core.sync) == "core.sync"); static assert(packageName!Barrier == "core.sync"); } /// @safe unittest { static assert(packageName!moduleName == "std"); } @safe unittest // issue 13741 { import std.ascii : isWhite; static assert(packageName!(isWhite) == "std"); struct Foo{void opCall(int){}} static assert(packageName!(Foo.opCall) == "std"); @property void function(int) vf; static assert(packageName!(vf) == "std"); } /** * Get the module name (including package) for the given symbol. */ template moduleName(alias T) { import std.algorithm.searching : startsWith; enum bool isNotFunc = !isSomeFunction!(T); static if (isNotFunc) static assert(!T.stringof.startsWith("package "), "cannot get the module name for a package"); static if (isNotFunc && T.stringof.startsWith("module ")) { static if (__traits(compiles, packageName!T)) enum packagePrefix = packageName!T ~ '.'; else enum packagePrefix = ""; enum moduleName = packagePrefix ~ T.stringof[7..$]; } else alias moduleName = moduleName!(parentOf!T); // If you use enum, it will cause compiler ICE } /// @safe unittest { static assert(moduleName!moduleName == "std.traits"); } @safe unittest { import std.array; static assert(!__traits(compiles, moduleName!std)); static assert(moduleName!(std.traits) == "std.traits"); // this module static assert(moduleName!moduleName == "std.traits"); // symbol in this module static assert(moduleName!(std.array) == "std.array"); // other module static assert(moduleName!(std.array.array) == "std.array"); // symbol in other module import core.sync.barrier; // local import static assert(!__traits(compiles, moduleName!(core.sync))); static assert(moduleName!(core.sync.barrier) == "core.sync.barrier"); static assert(moduleName!Barrier == "core.sync.barrier"); struct X12287(T) { T i; } static assert(moduleName!(X12287!int.i) == "std.traits"); } @safe unittest // issue 13741 { import std.ascii : isWhite; static assert(moduleName!(isWhite) == "std.ascii"); struct Foo{void opCall(int){}} static assert(moduleName!(Foo.opCall) == "std.traits"); @property void function(int) vf; static assert(moduleName!(vf) == "std.traits"); } version (none) @safe unittest //Please uncomment me when changing moduleName to test global imports { import core.sync.barrier; // global import static assert(!__traits(compiles, moduleName!(core.sync))); static assert(moduleName!(core.sync.barrier) == "core.sync.barrier"); static assert(moduleName!Barrier == "core.sync.barrier"); } /*** * Get the fully qualified name of a type or a symbol. Can act as an intelligent type/symbol to string converter. Example: ----------------- module myModule; struct MyStruct {} static assert(fullyQualifiedName!(const MyStruct[]) == "const(myModule.MyStruct[])"); ----------------- */ template fullyQualifiedName(T...) if (T.length == 1) { static if (is(T)) enum fullyQualifiedName = fqnType!(T[0], false, false, false, false); else enum fullyQualifiedName = fqnSym!(T[0]); } /// @safe unittest { static assert(fullyQualifiedName!fullyQualifiedName == "std.traits.fullyQualifiedName"); } version (unittest) { // Used for both fqnType and fqnSym unittests private struct QualifiedNameTests { struct Inner { bool value; } ref const(Inner[string]) func( ref Inner var1, lazy scope string var2 ); ref const(Inner[string]) retfunc( return ref Inner var1 ); Inner inoutFunc(inout Inner) inout; shared(const(Inner[string])[]) data; const Inner delegate(double, string) @safe nothrow deleg; inout(int) delegate(inout int) inout inoutDeleg; Inner function(out double, string) funcPtr; extern(C) Inner function(double, string) cFuncPtr; extern(C) void cVarArg(int, ...); void dVarArg(...); void dVarArg2(int, ...); void typesafeVarArg(int[] ...); Inner[] array; Inner[16] sarray; Inner[Inner] aarray; const(Inner[const(Inner)]) qualAarray; shared(immutable(Inner) delegate(ref double, scope string) const shared @trusted nothrow) attrDeleg; struct Data(T) { int x; } void tfunc(T...)(T args) {} template Inst(alias A) { int x; } class Test12309(T, int x, string s) {} } private enum QualifiedEnum { a = 42 } } private template fqnSym(alias T : X!A, alias X, A...) { template fqnTuple(T...) { static if (T.length == 0) enum fqnTuple = ""; else static if (T.length == 1) { static if (isExpressionTuple!T) enum fqnTuple = T[0].stringof; else enum fqnTuple = fullyQualifiedName!(T[0]); } else enum fqnTuple = fqnTuple!(T[0]) ~ ", " ~ fqnTuple!(T[1 .. $]); } enum fqnSym = fqnSym!(__traits(parent, X)) ~ '.' ~ __traits(identifier, X) ~ "!(" ~ fqnTuple!A ~ ")"; } private template fqnSym(alias T) { static if (__traits(compiles, __traits(parent, T)) && !__traits(isSame, T, __traits(parent, T))) enum parentPrefix = fqnSym!(__traits(parent, T)) ~ "."; else enum parentPrefix = null; static string adjustIdent(string s) { import std.algorithm.searching : findSplit, skipOver; if (s.skipOver("package ") || s.skipOver("module ")) return s; return s.findSplit("(")[0]; } enum fqnSym = parentPrefix ~ adjustIdent(__traits(identifier, T)); } @safe unittest { alias fqn = fullyQualifiedName; // Make sure those 2 are the same static assert(fqnSym!fqn == fqn!fqn); static assert(fqn!fqn == "std.traits.fullyQualifiedName"); alias qnTests = QualifiedNameTests; enum prefix = "std.traits.QualifiedNameTests."; static assert(fqn!(qnTests.Inner) == prefix ~ "Inner"); static assert(fqn!(qnTests.func) == prefix ~ "func"); static assert(fqn!(qnTests.Data!int) == prefix ~ "Data!(int)"); static assert(fqn!(qnTests.Data!int.x) == prefix ~ "Data!(int).x"); static assert(fqn!(qnTests.tfunc!(int[])) == prefix ~ "tfunc!(int[])"); static assert(fqn!(qnTests.Inst!(Object)) == prefix ~ "Inst!(object.Object)"); static assert(fqn!(qnTests.Inst!(Object).x) == prefix ~ "Inst!(object.Object).x"); static assert(fqn!(qnTests.Test12309!(int, 10, "str")) == prefix ~ "Test12309!(int, 10, \"str\")"); import core.sync.barrier; static assert(fqn!Barrier == "core.sync.barrier.Barrier"); } @safe unittest { struct TemplatedStruct() { enum foo = 0; } alias TemplatedStructAlias = TemplatedStruct; assert("TemplatedStruct.foo" == fullyQualifiedName!(TemplatedStructAlias!().foo)); } private template fqnType(T, bool alreadyConst, bool alreadyImmutable, bool alreadyShared, bool alreadyInout) { import std.format : format; // Convenience tags enum { _const = 0, _immutable = 1, _shared = 2, _inout = 3 } alias qualifiers = AliasSeq!(is(T == const), is(T == immutable), is(T == shared), is(T == inout)); alias noQualifiers = AliasSeq!(false, false, false, false); string storageClassesString(uint psc)() @property { alias PSC = ParameterStorageClass; return format("%s%s%s%s%s", psc & PSC.scope_ ? "scope " : "", psc & PSC.return_ ? "return " : "", psc & PSC.out_ ? "out " : "", psc & PSC.ref_ ? "ref " : "", psc & PSC.lazy_ ? "lazy " : "" ); } string parametersTypeString(T)() @property { alias parameters = Parameters!(T); alias parameterStC = ParameterStorageClassTuple!(T); enum variadic = variadicFunctionStyle!T; static if (variadic == Variadic.no) enum variadicStr = ""; else static if (variadic == Variadic.c) enum variadicStr = ", ..."; else static if (variadic == Variadic.d) enum variadicStr = parameters.length ? ", ..." : "..."; else static if (variadic == Variadic.typesafe) enum variadicStr = " ..."; else static assert(0, "New variadic style has been added, please update fullyQualifiedName implementation"); static if (parameters.length) { import std.algorithm.iteration : map; import std.array : join; import std.meta : staticMap; import std.range : zip; string result = join( map!(a => format("%s%s", a[0], a[1]))( zip([staticMap!(storageClassesString, parameterStC)], [staticMap!(fullyQualifiedName, parameters)]) ), ", " ); return result ~= variadicStr; } else return variadicStr; } string linkageString(T)() @property { enum linkage = functionLinkage!T; if (linkage != "D") return format("extern(%s) ", linkage); else return ""; } string functionAttributeString(T)() @property { alias FA = FunctionAttribute; enum attrs = functionAttributes!T; static if (attrs == FA.none) return ""; else return format("%s%s%s%s%s%s%s%s", attrs & FA.pure_ ? " pure" : "", attrs & FA.nothrow_ ? " nothrow" : "", attrs & FA.ref_ ? " ref" : "", attrs & FA.property ? " @property" : "", attrs & FA.trusted ? " @trusted" : "", attrs & FA.safe ? " @safe" : "", attrs & FA.nogc ? " @nogc" : "", attrs & FA.return_ ? " return" : "" ); } string addQualifiers(string typeString, bool addConst, bool addImmutable, bool addShared, bool addInout) { auto result = typeString; if (addShared) { result = format("shared(%s)", result); } if (addConst || addImmutable || addInout) { result = format("%s(%s)", addConst ? "const" : addImmutable ? "immutable" : "inout", result ); } return result; } // Convenience template to avoid copy-paste template chain(string current) { enum chain = addQualifiers(current, qualifiers[_const] && !alreadyConst, qualifiers[_immutable] && !alreadyImmutable, qualifiers[_shared] && !alreadyShared, qualifiers[_inout] && !alreadyInout); } static if (is(T == string)) { enum fqnType = "string"; } else static if (is(T == wstring)) { enum fqnType = "wstring"; } else static if (is(T == dstring)) { enum fqnType = "dstring"; } else static if (isBasicType!T && !is(T == enum)) { enum fqnType = chain!((Unqual!T).stringof); } else static if (isAggregateType!T || is(T == enum)) { enum fqnType = chain!(fqnSym!T); } else static if (isStaticArray!T) { enum fqnType = chain!( format("%s[%s]", fqnType!(typeof(T.init[0]), qualifiers), T.length) ); } else static if (isArray!T) { enum fqnType = chain!( format("%s[]", fqnType!(typeof(T.init[0]), qualifiers)) ); } else static if (isAssociativeArray!T) { enum fqnType = chain!( format("%s[%s]", fqnType!(ValueType!T, qualifiers), fqnType!(KeyType!T, noQualifiers)) ); } else static if (isSomeFunction!T) { static if (is(T F == delegate)) { enum qualifierString = format("%s%s", is(F == shared) ? " shared" : "", is(F == inout) ? " inout" : is(F == immutable) ? " immutable" : is(F == const) ? " const" : "" ); enum formatStr = "%s%s delegate(%s)%s%s"; enum fqnType = chain!( format(formatStr, linkageString!T, fqnType!(ReturnType!T, noQualifiers), parametersTypeString!(T), functionAttributeString!T, qualifierString) ); } else { static if (isFunctionPointer!T) enum formatStr = "%s%s function(%s)%s"; else enum formatStr = "%s%s(%s)%s"; enum fqnType = chain!( format(formatStr, linkageString!T, fqnType!(ReturnType!T, noQualifiers), parametersTypeString!(T), functionAttributeString!T) ); } } else static if (isPointer!T) { enum fqnType = chain!( format("%s*", fqnType!(PointerTarget!T, qualifiers)) ); } else static if (is(T : __vector(V[N]), V, size_t N)) { enum fqnType = chain!( format("__vector(%s[%s])", fqnType!(V, qualifiers), N) ); } else // In case something is forgotten static assert(0, "Unrecognized type " ~ T.stringof ~ ", can't convert to fully qualified string"); } @safe unittest { import std.format : format; alias fqn = fullyQualifiedName; // Verify those 2 are the same for simple case alias Ambiguous = const(QualifiedNameTests.Inner); static assert(fqn!Ambiguous == fqnType!(Ambiguous, false, false, false, false)); // Main tests enum inner_name = "std.traits.QualifiedNameTests.Inner"; with (QualifiedNameTests) { // Special cases static assert(fqn!(string) == "string"); static assert(fqn!(wstring) == "wstring"); static assert(fqn!(dstring) == "dstring"); static assert(fqn!(void) == "void"); static assert(fqn!(const(void)) == "const(void)"); static assert(fqn!(shared(void)) == "shared(void)"); static assert(fqn!(shared const(void)) == "const(shared(void))"); static assert(fqn!(shared inout(void)) == "inout(shared(void))"); static assert(fqn!(shared inout const(void)) == "const(shared(void))"); static assert(fqn!(inout(void)) == "inout(void)"); static assert(fqn!(inout const(void)) == "const(void)"); static assert(fqn!(immutable(void)) == "immutable(void)"); // Basic qualified name static assert(fqn!(Inner) == inner_name); static assert(fqn!(QualifiedEnum) == "std.traits.QualifiedEnum"); // type static assert(fqn!(QualifiedEnum.a) == "std.traits.QualifiedEnum.a"); // symbol // Array types static assert(fqn!(typeof(array)) == format("%s[]", inner_name)); static assert(fqn!(typeof(sarray)) == format("%s[16]", inner_name)); static assert(fqn!(typeof(aarray)) == format("%s[%s]", inner_name, inner_name)); // qualified key for AA static assert(fqn!(typeof(qualAarray)) == format("const(%s[const(%s)])", inner_name, inner_name)); // Qualified composed data types static assert(fqn!(typeof(data)) == format("shared(const(%s[string])[])", inner_name)); // Function types + function attributes static assert(fqn!(typeof(func)) == format("const(%s[string])(ref %s, scope lazy string) ref", inner_name, inner_name)); static assert(fqn!(typeof(retfunc)) == format("const(%s[string])(return %s) ref", inner_name, inner_name)); static assert(fqn!(typeof(inoutFunc)) == format("inout(%s(inout(%s)))", inner_name, inner_name)); static assert(fqn!(typeof(deleg)) == format("const(%s delegate(double, string) nothrow @safe)", inner_name)); static assert(fqn!(typeof(inoutDeleg)) == "inout(int) delegate(inout(int)) inout"); static assert(fqn!(typeof(funcPtr)) == format("%s function(out double, string)", inner_name)); static assert(fqn!(typeof(cFuncPtr)) == format("extern(C) %s function(double, string)", inner_name)); // Delegate type with qualified function type static assert(fqn!(typeof(attrDeleg)) == format("shared(immutable(%s) "~ "delegate(ref double, scope string) nothrow @trusted shared const)", inner_name)); // Variable argument function types static assert(fqn!(typeof(cVarArg)) == "extern(C) void(int, ...)"); static assert(fqn!(typeof(dVarArg)) == "void(...)"); static assert(fqn!(typeof(dVarArg2)) == "void(int, ...)"); static assert(fqn!(typeof(typesafeVarArg)) == "void(int[] ...)"); // SIMD vector static if (is(__vector(float[4]))) { static assert(fqn!(__vector(float[4])) == "__vector(float[4])"); } } } /*** * Get the type of the return value from a function, * a pointer to function, a delegate, a struct * with an opCall, a pointer to a struct with an opCall, * or a class with an `opCall`. Please note that $(D_KEYWORD ref) * is not part of a type, but the attribute of the function * (see template $(LREF functionAttributes)). */ template ReturnType(func...) if (func.length == 1 && isCallable!func) { static if (is(FunctionTypeOf!func R == return)) alias ReturnType = R; else static assert(0, "argument has no return type"); } /// @safe unittest { int foo(); ReturnType!foo x; // x is declared as int } @safe unittest { struct G { int opCall (int i) { return 1;} } alias ShouldBeInt = ReturnType!G; static assert(is(ShouldBeInt == int)); G g; static assert(is(ReturnType!g == int)); G* p; alias pg = ReturnType!p; static assert(is(pg == int)); class C { int opCall (int i) { return 1;} } static assert(is(ReturnType!C == int)); C c; static assert(is(ReturnType!c == int)); class Test { int prop() @property { return 0; } } alias R_Test_prop = ReturnType!(Test.prop); static assert(is(R_Test_prop == int)); alias R_dglit = ReturnType!((int a) { return a; }); static assert(is(R_dglit == int)); } /*** Get, as a tuple, the types of the parameters to a function, a pointer to function, a delegate, a struct with an `opCall`, a pointer to a struct with an `opCall`, or a class with an `opCall`. */ template Parameters(func...) if (func.length == 1 && isCallable!func) { static if (is(FunctionTypeOf!func P == function)) alias Parameters = P; else static assert(0, "argument has no parameters"); } /// @safe unittest { int foo(int, long); void bar(Parameters!foo); // declares void bar(int, long); void abc(Parameters!foo[1]); // declares void abc(long); } /** * Alternate name for $(LREF Parameters), kept for legacy compatibility. */ alias ParameterTypeTuple = Parameters; @safe unittest { int foo(int i, bool b) { return 0; } static assert(is(ParameterTypeTuple!foo == AliasSeq!(int, bool))); static assert(is(ParameterTypeTuple!(typeof(&foo)) == AliasSeq!(int, bool))); struct S { real opCall(real r, int i) { return 0.0; } } S s; static assert(is(ParameterTypeTuple!S == AliasSeq!(real, int))); static assert(is(ParameterTypeTuple!(S*) == AliasSeq!(real, int))); static assert(is(ParameterTypeTuple!s == AliasSeq!(real, int))); class Test { int prop() @property { return 0; } } alias P_Test_prop = ParameterTypeTuple!(Test.prop); static assert(P_Test_prop.length == 0); alias P_dglit = ParameterTypeTuple!((int a){}); static assert(P_dglit.length == 1); static assert(is(P_dglit[0] == int)); } /** Returns the number of arguments of function `func`. arity is undefined for variadic functions. */ template arity(func...) if (func.length == 1 && isCallable!func && variadicFunctionStyle!func == Variadic.no) { enum size_t arity = Parameters!func.length; } /// @safe unittest { void foo(){} static assert(arity!foo == 0); void bar(uint){} static assert(arity!bar == 1); void variadicFoo(uint...){} static assert(!__traits(compiles, arity!variadicFoo)); } @safe unittest // issue 11389 { alias TheType = size_t function( string[] ); static assert(arity!TheType == 1); } /** Get tuple, one per function parameter, of the storage classes of the parameters. Params: func = function symbol or type of function, delegate, or pointer to function Returns: A tuple of ParameterStorageClass bits */ enum ParameterStorageClass : uint { /** * These flags can be bitwise OR-ed together to represent complex storage * class. */ none = 0, scope_ = 1, /// ditto out_ = 2, /// ditto ref_ = 4, /// ditto lazy_ = 8, /// ditto return_ = 0x10, /// ditto } /// ditto template ParameterStorageClassTuple(func...) if (func.length == 1 && isCallable!func) { alias Func = FunctionTypeOf!func; static if (is(Func PT == __parameters)) { template StorageClass(size_t i) { static if (i < PT.length) { alias StorageClass = AliasSeq!( extractParameterStorageClassFlags!(__traits(getParameterStorageClasses, Func, i)), StorageClass!(i + 1)); } else alias StorageClass = AliasSeq!(); } alias ParameterStorageClassTuple = StorageClass!0; } else { static assert(0, func[0].stringof ~ " is not a function"); alias ParameterStorageClassTuple = AliasSeq!(); } } /// @safe unittest { alias STC = ParameterStorageClass; // shorten the enum name void func(ref int ctx, out real result, real param) { } alias pstc = ParameterStorageClassTuple!func; static assert(pstc.length == 3); // three parameters static assert(pstc[0] == STC.ref_); static assert(pstc[1] == STC.out_); static assert(pstc[2] == STC.none); } /** Convert the result of `__traits(getParameterStorageClasses)` to $(LREF ParameterStorageClass) `enum`s. Params: Attribs = The return value of `__traits(getParameterStorageClasses)` Returns: The bitwise OR of the equivalent $(LREF ParameterStorageClass) `enum`s. */ template extractParameterStorageClassFlags(Attribs...) { enum ParameterStorageClass extractParameterStorageClassFlags = () { auto result = ParameterStorageClass.none; static if (Attribs.length > 0) { static foreach (attrib; Attribs) { final switch (attrib) with (ParameterStorageClass) { case "scope": result |= scope_; break; case "out": result |= out_; break; case "ref": result |= ref_; break; case "lazy": result |= lazy_; break; case "return": result |= return_; break; } } /* Mimic behavor of original version of ParameterStorageClassTuple() * to avoid breaking existing code. */ if (result == (ParameterStorageClass.ref_ | ParameterStorageClass.return_)) result = ParameterStorageClass.return_; } return result; }(); } /// @safe unittest { static void func(ref int ctx, out real result); enum param1 = extractParameterStorageClassFlags!( __traits(getParameterStorageClasses, func, 0) ); static assert(param1 == ParameterStorageClass.ref_); enum param2 = extractParameterStorageClassFlags!( __traits(getParameterStorageClasses, func, 1) ); static assert(param2 == ParameterStorageClass.out_); enum param3 = extractParameterStorageClassFlags!( __traits(getParameterStorageClasses, func, 0), __traits(getParameterStorageClasses, func, 1) ); static assert(param3 == (ParameterStorageClass.ref_ | ParameterStorageClass.out_)); } @safe unittest { alias STC = ParameterStorageClass; void noparam() {} static assert(ParameterStorageClassTuple!noparam.length == 0); ref int test(scope int*, ref int, out int, lazy int, int, return ref int i) { return i; } alias test_pstc = ParameterStorageClassTuple!test; static assert(test_pstc.length == 6); static assert(test_pstc[0] == STC.scope_); static assert(test_pstc[1] == STC.ref_); static assert(test_pstc[2] == STC.out_); static assert(test_pstc[3] == STC.lazy_); static assert(test_pstc[4] == STC.none); static assert(test_pstc[5] == STC.return_); interface Test { void test_const(int) const; void test_sharedconst(int) shared const; } Test testi; alias test_const_pstc = ParameterStorageClassTuple!(Test.test_const); static assert(test_const_pstc.length == 1); static assert(test_const_pstc[0] == STC.none); alias test_sharedconst_pstc = ParameterStorageClassTuple!(testi.test_sharedconst); static assert(test_sharedconst_pstc.length == 1); static assert(test_sharedconst_pstc[0] == STC.none); alias dglit_pstc = ParameterStorageClassTuple!((ref int a) {}); static assert(dglit_pstc.length == 1); static assert(dglit_pstc[0] == STC.ref_); // Bugzilla 9317 static inout(int) func(inout int param) { return param; } static assert(ParameterStorageClassTuple!(typeof(func))[0] == STC.none); } @safe unittest { // Bugzilla 14253 static struct Foo { ref Foo opAssign(ref Foo rhs) return { return this; } } alias tup = ParameterStorageClassTuple!(__traits(getOverloads, Foo, "opAssign")[0]); } /** Get, as a tuple, the identifiers of the parameters to a function symbol. */ template ParameterIdentifierTuple(func...) if (func.length == 1 && isCallable!func) { static if (is(FunctionTypeOf!func PT == __parameters)) { template Get(size_t i) { static if (!isFunctionPointer!func && !isDelegate!func // Unnamed parameters yield CT error. && is(typeof(__traits(identifier, PT[i .. i+1]))) // Filter out unnamed args, which look like (Type) instead of (Type name). && PT[i].stringof != PT[i .. i+1].stringof[1..$-1]) { enum Get = __traits(identifier, PT[i .. i+1]); } else { enum Get = ""; } } } else { static assert(0, func[0].stringof ~ "is not a function"); // Define dummy entities to avoid pointless errors template Get(size_t i) { enum Get = ""; } alias PT = AliasSeq!(); } template Impl(size_t i = 0) { static if (i == PT.length) alias Impl = AliasSeq!(); else alias Impl = AliasSeq!(Get!i, Impl!(i+1)); } alias ParameterIdentifierTuple = Impl!(); } /// @safe unittest { int foo(int num, string name, int); static assert([ParameterIdentifierTuple!foo] == ["num", "name", ""]); } // Issue 19456 @safe unittest { struct SomeType {} void foo(SomeType); void bar(int); static assert([ParameterIdentifierTuple!foo] == [""]); static assert([ParameterIdentifierTuple!bar] == [""]); } @safe unittest { alias PIT = ParameterIdentifierTuple; void bar(int num, string name, int[] array){} static assert([PIT!bar] == ["num", "name", "array"]); // might be changed in the future? void function(int num, string name) fp; static assert([PIT!fp] == ["", ""]); // might be changed in the future? void delegate(int num, string name, int[long] aa) dg; static assert([PIT!dg] == ["", "", ""]); interface Test { @property string getter(); @property void setter(int a); Test method(int a, long b, string c); } static assert([PIT!(Test.getter)] == []); static assert([PIT!(Test.setter)] == ["a"]); static assert([PIT!(Test.method)] == ["a", "b", "c"]); /+ // depends on internal void baw(int, string, int[]){} static assert([PIT!baw] == ["_param_0", "_param_1", "_param_2"]); // depends on internal void baz(AliasSeq!(int, string, int[]) args){} static assert([PIT!baz] == ["_param_0", "_param_1", "_param_2"]); +/ } /** Get, as a tuple, the default value of the parameters to a function symbol. If a parameter doesn't have the default value, `void` is returned instead. */ template ParameterDefaults(func...) if (func.length == 1 && isCallable!func) { alias param_names = ParameterIdentifierTuple!func; static if (is(FunctionTypeOf!(func[0]) PT == __parameters)) { template Get(size_t i) { // `PT[i .. i+1]` declares a parameter with an arbitrary name. // To avoid a name clash, generate local names that are distinct // from the parameter name, and mix them in. enum name = param_names[i]; enum args = "args" ~ (name == "args" ? "_" : ""); enum val = "val" ~ (name == "val" ? "_" : ""); enum ptr = "ptr" ~ (name == "ptr" ? "_" : ""); mixin(" // workaround scope escape check, see // https://issues.dlang.org/show_bug.cgi?id=16582 // should use return scope once available enum get = (PT[i .. i+1] " ~ args ~ ") @trusted { // If the parameter is lazy, we force it to be evaluated // like this. auto " ~ val ~ " = " ~ args ~ "[0]; auto " ~ ptr ~ " = &" ~ val ~ "; // workaround Bugzilla 16582 return *" ~ ptr ~ "; }; "); static if (is(typeof(get()))) enum Get = get(); else alias Get = void; // If default arg doesn't exist, returns void instead. } } else { static assert(0, func[0].stringof ~ "is not a function"); // Define dummy entities to avoid pointless errors template Get(size_t i) { enum Get = ""; } alias PT = AliasSeq!(); } template Impl(size_t i = 0) { static if (i == PT.length) alias Impl = AliasSeq!(); else alias Impl = AliasSeq!(Get!i, Impl!(i+1)); } alias ParameterDefaults = Impl!(); } /// @safe unittest { int foo(int num, string name = "hello", int[] = [1,2,3], lazy int x = 0); static assert(is(ParameterDefaults!foo[0] == void)); static assert( ParameterDefaults!foo[1] == "hello"); static assert( ParameterDefaults!foo[2] == [1,2,3]); static assert( ParameterDefaults!foo[3] == 0); } @safe unittest // issue 17192 { static void func(int i, int PT, int __pd_value, int __pd_val, int __args, int name, int args, int val, int ptr, int args_, int val_, int ptr_) { } alias Voids = ParameterDefaults!func; static assert(Voids.length == 12); static foreach (V; Voids) static assert(is(V == void)); } /** * Alternate name for $(LREF ParameterDefaults), kept for legacy compatibility. */ alias ParameterDefaultValueTuple = ParameterDefaults; @safe unittest { alias PDVT = ParameterDefaultValueTuple; void bar(int n = 1, string s = "hello"){} static assert(PDVT!bar.length == 2); static assert(PDVT!bar[0] == 1); static assert(PDVT!bar[1] == "hello"); static assert(is(typeof(PDVT!bar) == typeof(AliasSeq!(1, "hello")))); void baz(int x, int n = 1, string s = "hello"){} static assert(PDVT!baz.length == 3); static assert(is(PDVT!baz[0] == void)); static assert( PDVT!baz[1] == 1); static assert( PDVT!baz[2] == "hello"); static assert(is(typeof(PDVT!baz) == typeof(AliasSeq!(void, 1, "hello")))); // bug 10800 - property functions return empty string @property void foo(int x = 3) { } static assert(PDVT!foo.length == 1); static assert(PDVT!foo[0] == 3); static assert(is(typeof(PDVT!foo) == typeof(AliasSeq!(3)))); struct Colour { ubyte a,r,g,b; static immutable Colour white = Colour(255,255,255,255); } void bug8106(Colour c = Colour.white) {} //pragma(msg, PDVT!bug8106); static assert(PDVT!bug8106[0] == Colour.white); void bug16582(scope int* val = null) {} static assert(PDVT!bug16582[0] is null); } /** Returns the FunctionAttribute mask for function `func`. See_Also: $(LREF hasFunctionAttributes) */ enum FunctionAttribute : uint { /** * These flags can be bitwise OR-ed together to represent a complex attribute. */ none = 0, pure_ = 1 << 0, /// ditto nothrow_ = 1 << 1, /// ditto ref_ = 1 << 2, /// ditto property = 1 << 3, /// ditto trusted = 1 << 4, /// ditto safe = 1 << 5, /// ditto nogc = 1 << 6, /// ditto system = 1 << 7, /// ditto const_ = 1 << 8, /// ditto immutable_ = 1 << 9, /// ditto inout_ = 1 << 10, /// ditto shared_ = 1 << 11, /// ditto return_ = 1 << 12, /// ditto scope_ = 1 << 13, /// ditto } /// ditto template functionAttributes(func...) if (func.length == 1 && isCallable!func) { // @bug: workaround for opCall alias FuncSym = Select!(is(typeof(__traits(getFunctionAttributes, func))), func, Unqual!(FunctionTypeOf!func)); enum FunctionAttribute functionAttributes = extractAttribFlags!(__traits(getFunctionAttributes, FuncSym))(); } /// @safe unittest { alias FA = FunctionAttribute; // shorten the enum name real func(real x) pure nothrow @safe { return x; } static assert(functionAttributes!func & FA.pure_); static assert(functionAttributes!func & FA.safe); static assert(!(functionAttributes!func & FA.trusted)); // not @trusted } @system unittest { alias FA = FunctionAttribute; struct S { int noF() { return 0; } int constF() const { return 0; } int immutableF() immutable { return 0; } int inoutF() inout { return 0; } int sharedF() shared { return 0; } int x; ref int refF() return { return x; } int propertyF() @property { return 0; } int nothrowF() nothrow { return 0; } int nogcF() @nogc { return 0; } int systemF() @system { return 0; } int trustedF() @trusted { return 0; } int safeF() @safe { return 0; } int pureF() pure { return 0; } } static assert(functionAttributes!(S.noF) == FA.system); static assert(functionAttributes!(typeof(S.noF)) == FA.system); static assert(functionAttributes!(S.constF) == (FA.const_ | FA.system)); static assert(functionAttributes!(typeof(S.constF)) == (FA.const_ | FA.system)); static assert(functionAttributes!(S.immutableF) == (FA.immutable_ | FA.system)); static assert(functionAttributes!(typeof(S.immutableF)) == (FA.immutable_ | FA.system)); static assert(functionAttributes!(S.inoutF) == (FA.inout_ | FA.system)); static assert(functionAttributes!(typeof(S.inoutF)) == (FA.inout_ | FA.system)); static assert(functionAttributes!(S.sharedF) == (FA.shared_ | FA.system)); static assert(functionAttributes!(typeof(S.sharedF)) == (FA.shared_ | FA.system)); static assert(functionAttributes!(S.refF) == (FA.ref_ | FA.system | FA.return_)); static assert(functionAttributes!(typeof(S.refF)) == (FA.ref_ | FA.system | FA.return_)); static assert(functionAttributes!(S.propertyF) == (FA.property | FA.system)); static assert(functionAttributes!(typeof(&S.propertyF)) == (FA.property | FA.system)); static assert(functionAttributes!(S.nothrowF) == (FA.nothrow_ | FA.system)); static assert(functionAttributes!(typeof(S.nothrowF)) == (FA.nothrow_ | FA.system)); static assert(functionAttributes!(S.nogcF) == (FA.nogc | FA.system)); static assert(functionAttributes!(typeof(S.nogcF)) == (FA.nogc | FA.system)); static assert(functionAttributes!(S.systemF) == FA.system); static assert(functionAttributes!(typeof(S.systemF)) == FA.system); static assert(functionAttributes!(S.trustedF) == FA.trusted); static assert(functionAttributes!(typeof(S.trustedF)) == FA.trusted); static assert(functionAttributes!(S.safeF) == FA.safe); static assert(functionAttributes!(typeof(S.safeF)) == FA.safe); static assert(functionAttributes!(S.pureF) == (FA.pure_ | FA.system)); static assert(functionAttributes!(typeof(S.pureF)) == (FA.pure_ | FA.system)); int pure_nothrow() nothrow pure; void safe_nothrow() @safe nothrow; static ref int static_ref_property() @property; ref int ref_property() @property; static assert(functionAttributes!(pure_nothrow) == (FA.pure_ | FA.nothrow_ | FA.system)); static assert(functionAttributes!(typeof(pure_nothrow)) == (FA.pure_ | FA.nothrow_ | FA.system)); static assert(functionAttributes!(safe_nothrow) == (FA.safe | FA.nothrow_)); static assert(functionAttributes!(typeof(safe_nothrow)) == (FA.safe | FA.nothrow_)); static assert(functionAttributes!(static_ref_property) == (FA.property | FA.ref_ | FA.system)); static assert(functionAttributes!(typeof(&static_ref_property)) == (FA.property | FA.ref_ | FA.system)); static assert(functionAttributes!(ref_property) == (FA.property | FA.ref_ | FA.system)); static assert(functionAttributes!(typeof(&ref_property)) == (FA.property | FA.ref_ | FA.system)); struct S2 { int pure_const() const pure { return 0; } int pure_sharedconst() const shared pure { return 0; } } static assert(functionAttributes!(S2.pure_const) == (FA.const_ | FA.pure_ | FA.system)); static assert(functionAttributes!(typeof(S2.pure_const)) == (FA.const_ | FA.pure_ | FA.system)); static assert(functionAttributes!(S2.pure_sharedconst) == (FA.const_ | FA.shared_ | FA.pure_ | FA.system)); static assert(functionAttributes!(typeof(S2.pure_sharedconst)) == (FA.const_ | FA.shared_ | FA.pure_ | FA.system)); static assert(functionAttributes!((int a) { }) == (FA.pure_ | FA.nothrow_ | FA.nogc | FA.safe)); static assert(functionAttributes!(typeof((int a) { })) == (FA.pure_ | FA.nothrow_ | FA.nogc | FA.safe)); auto safeDel = delegate() @safe { }; static assert(functionAttributes!(safeDel) == (FA.pure_ | FA.nothrow_ | FA.nogc | FA.safe)); static assert(functionAttributes!(typeof(safeDel)) == (FA.pure_ | FA.nothrow_ | FA.nogc | FA.safe)); auto trustedDel = delegate() @trusted { }; static assert(functionAttributes!(trustedDel) == (FA.pure_ | FA.nothrow_ | FA.nogc | FA.trusted)); static assert(functionAttributes!(typeof(trustedDel)) == (FA.pure_ | FA.nothrow_ | FA.nogc | FA.trusted)); auto systemDel = delegate() @system { }; static assert(functionAttributes!(systemDel) == (FA.pure_ | FA.nothrow_ | FA.nogc | FA.system)); static assert(functionAttributes!(typeof(systemDel)) == (FA.pure_ | FA.nothrow_ | FA.nogc | FA.system)); } private FunctionAttribute extractAttribFlags(Attribs...)() { auto res = FunctionAttribute.none; static foreach (attrib; Attribs) { switch (attrib) with (FunctionAttribute) { case "pure": res |= pure_; break; case "nothrow": res |= nothrow_; break; case "ref": res |= ref_; break; case "@property": res |= property; break; case "@trusted": res |= trusted; break; case "@safe": res |= safe; break; case "@nogc": res |= nogc; break; case "@system": res |= system; break; case "const": res |= const_; break; case "immutable": res |= immutable_; break; case "inout": res |= inout_; break; case "shared": res |= shared_; break; case "return": res |= return_; break; case "scope": res |= scope_; break; default: assert(0, attrib); } } return res; } /** Checks whether a function has the given attributes attached. Params: args = Function to check, followed by a variadic number of function attributes as strings Returns: `true`, if the function has the list of attributes attached and `false` otherwise. See_Also: $(LREF functionAttributes) */ template hasFunctionAttributes(args...) if (args.length > 0 && isCallable!(args[0]) && allSatisfy!(isSomeString, typeof(args[1 .. $]))) { enum bool hasFunctionAttributes = { import std.algorithm.searching : canFind; import std.range : only; enum funcAttribs = only(__traits(getFunctionAttributes, args[0])); static foreach (attribute; args[1 .. $]) { if (!funcAttribs.canFind(attribute)) return false; } return true; }(); } /// @safe unittest { real func(real x) pure nothrow @safe; static assert(hasFunctionAttributes!(func, "@safe", "pure")); static assert(!hasFunctionAttributes!(func, "@trusted")); // for templates attributes are automatically inferred bool myFunc(T)(T b) { return !b; } static assert(hasFunctionAttributes!(myFunc!bool, "@safe", "pure", "@nogc", "nothrow")); static assert(!hasFunctionAttributes!(myFunc!bool, "shared")); } @system unittest { struct S { int noF(); int constF() const; int immutableF() immutable; int inoutF() inout; int sharedF() shared; ref int refF() return; int propertyF() @property; int nothrowF() nothrow; int nogcF() @nogc; int systemF() @system; int trustedF() @trusted; int safeF() @safe; int pureF() pure; } // true if no args passed static assert(hasFunctionAttributes!(S.noF)); static assert(hasFunctionAttributes!(S.noF, "@system")); static assert(hasFunctionAttributes!(typeof(S.noF), "@system")); static assert(!hasFunctionAttributes!(S.noF, "@system", "pure")); static assert(hasFunctionAttributes!(S.constF, "const", "@system")); static assert(hasFunctionAttributes!(typeof(S.constF), "const", "@system")); static assert(!hasFunctionAttributes!(S.constF, "const", "@system", "@nogc")); static assert(hasFunctionAttributes!(S.immutableF, "immutable", "@system")); static assert(hasFunctionAttributes!(typeof(S.immutableF), "immutable", "@system")); static assert(!hasFunctionAttributes!(S.immutableF, "immutable", "@system", "pure")); static assert(hasFunctionAttributes!(S.inoutF, "inout", "@system")); static assert(hasFunctionAttributes!(typeof(S.inoutF), "inout", "@system")); static assert(!hasFunctionAttributes!(S.inoutF, "inout", "@system", "pure")); static assert(hasFunctionAttributes!(S.sharedF, "shared", "@system")); static assert(hasFunctionAttributes!(typeof(S.sharedF), "shared", "@system")); static assert(!hasFunctionAttributes!(S.sharedF, "shared", "@system", "@trusted")); static assert(hasFunctionAttributes!(S.refF, "ref", "@system", "return")); static assert(hasFunctionAttributes!(typeof(S.refF), "ref", "@system", "return")); static assert(!hasFunctionAttributes!(S.refF, "ref", "@system", "return", "pure")); static assert(hasFunctionAttributes!(S.propertyF, "@property", "@system")); static assert(hasFunctionAttributes!(typeof(&S.propertyF), "@property", "@system")); static assert(!hasFunctionAttributes!(S.propertyF, "@property", "@system", "ref")); static assert(hasFunctionAttributes!(S.nothrowF, "nothrow", "@system")); static assert(hasFunctionAttributes!(typeof(S.nothrowF), "nothrow", "@system")); static assert(!hasFunctionAttributes!(S.nothrowF, "nothrow", "@system", "@trusted")); static assert(hasFunctionAttributes!(S.nogcF, "@nogc", "@system")); static assert(hasFunctionAttributes!(typeof(S.nogcF), "@nogc", "@system")); static assert(!hasFunctionAttributes!(S.nogcF, "@nogc", "@system", "ref")); static assert(hasFunctionAttributes!(S.systemF, "@system")); static assert(hasFunctionAttributes!(typeof(S.systemF), "@system")); static assert(!hasFunctionAttributes!(S.systemF, "@system", "ref")); static assert(hasFunctionAttributes!(S.trustedF, "@trusted")); static assert(hasFunctionAttributes!(typeof(S.trustedF), "@trusted")); static assert(!hasFunctionAttributes!(S.trustedF, "@trusted", "@safe")); static assert(hasFunctionAttributes!(S.safeF, "@safe")); static assert(hasFunctionAttributes!(typeof(S.safeF), "@safe")); static assert(!hasFunctionAttributes!(S.safeF, "@safe", "nothrow")); static assert(hasFunctionAttributes!(S.pureF, "pure", "@system")); static assert(hasFunctionAttributes!(typeof(S.pureF), "pure", "@system")); static assert(!hasFunctionAttributes!(S.pureF, "pure", "@system", "ref")); int pure_nothrow() nothrow pure { return 0; } void safe_nothrow() @safe nothrow { } static ref int static_ref_property() @property { return *(new int); } ref int ref_property() @property { return *(new int); } static assert(hasFunctionAttributes!(pure_nothrow, "pure", "nothrow", "@safe")); static assert(hasFunctionAttributes!(typeof(pure_nothrow), "pure", "nothrow", "@safe")); static assert(!hasFunctionAttributes!(pure_nothrow, "pure", "nothrow", "@safe", "@trusted")); static assert(hasFunctionAttributes!(safe_nothrow, "@safe", "nothrow")); static assert(hasFunctionAttributes!(typeof(safe_nothrow), "@safe", "nothrow")); static assert(hasFunctionAttributes!(safe_nothrow, "@safe", "nothrow", "pure")); static assert(!hasFunctionAttributes!(safe_nothrow, "@safe", "nothrow", "pure", "@trusted")); static assert(hasFunctionAttributes!(static_ref_property, "@property", "ref", "@safe")); static assert(hasFunctionAttributes!(typeof(&static_ref_property), "@property", "ref", "@safe")); static assert(hasFunctionAttributes!(static_ref_property, "@property", "ref", "@safe", "nothrow")); static assert(!hasFunctionAttributes!(static_ref_property, "@property", "ref", "@safe", "nothrow", "@nogc")); static assert(hasFunctionAttributes!(ref_property, "@property", "ref", "@safe")); static assert(hasFunctionAttributes!(typeof(&ref_property), "@property", "ref", "@safe")); static assert(!hasFunctionAttributes!(ref_property, "@property", "ref", "@safe", "@nogc")); struct S2 { int pure_const() const pure { return 0; } int pure_sharedconst() const shared pure { return 0; } } static assert(hasFunctionAttributes!(S2.pure_const, "const", "pure", "@system")); static assert(hasFunctionAttributes!(typeof(S2.pure_const), "const", "pure", "@system")); static assert(!hasFunctionAttributes!(S2.pure_const, "const", "pure", "@system", "ref")); static assert(hasFunctionAttributes!(S2.pure_sharedconst, "const", "shared", "pure", "@system")); static assert(hasFunctionAttributes!(typeof(S2.pure_sharedconst), "const", "shared", "pure", "@system")); static assert(!hasFunctionAttributes!(S2.pure_sharedconst, "const", "shared", "pure", "@system", "@nogc")); static assert(hasFunctionAttributes!((int a) { }, "pure", "nothrow", "@nogc", "@safe")); static assert(hasFunctionAttributes!(typeof((int a) { }), "pure", "nothrow", "@nogc", "@safe")); static assert(!hasFunctionAttributes!((int a) { }, "pure", "nothrow", "@nogc", "@safe", "ref")); auto safeDel = delegate() @safe { }; static assert(hasFunctionAttributes!(safeDel, "pure", "nothrow", "@nogc", "@safe")); static assert(hasFunctionAttributes!(typeof(safeDel), "pure", "nothrow", "@nogc", "@safe")); static assert(!hasFunctionAttributes!(safeDel, "pure", "nothrow", "@nogc", "@safe", "@system")); auto trustedDel = delegate() @trusted { }; static assert(hasFunctionAttributes!(trustedDel, "pure", "nothrow", "@nogc", "@trusted")); static assert(hasFunctionAttributes!(typeof(trustedDel), "pure", "nothrow", "@nogc", "@trusted")); static assert(!hasFunctionAttributes!(trustedDel, "pure", "nothrow", "@nogc", "@trusted", "ref")); auto systemDel = delegate() @system { }; static assert(hasFunctionAttributes!(systemDel, "pure", "nothrow", "@nogc", "@system")); static assert(hasFunctionAttributes!(typeof(systemDel), "pure", "nothrow", "@nogc", "@system")); static assert(!hasFunctionAttributes!(systemDel, "pure", "nothrow", "@nogc", "@system", "@property")); // call functions to make CodeCov happy { assert(pure_nothrow == 0); safe_nothrow; assert(static_ref_property == 0); assert(ref_property == 0); assert(S2().pure_const == 0); assert((shared S2()).pure_sharedconst == 0); cast(void) safeDel; cast(void) trustedDel; cast(void) systemDel; } } /** `true` if `func` is `@safe` or `@trusted`. */ template isSafe(alias func) if (isCallable!func) { enum isSafe = (functionAttributes!func & FunctionAttribute.safe) != 0 || (functionAttributes!func & FunctionAttribute.trusted) != 0; } /// @safe unittest { @safe int add(int a, int b) {return a+b;} @trusted int sub(int a, int b) {return a-b;} @system int mul(int a, int b) {return a*b;} static assert( isSafe!add); static assert( isSafe!sub); static assert(!isSafe!mul); } @safe unittest { //Member functions interface Set { int systemF() @system; int trustedF() @trusted; int safeF() @safe; } static assert( isSafe!(Set.safeF)); static assert( isSafe!(Set.trustedF)); static assert(!isSafe!(Set.systemF)); //Functions @safe static void safeFunc() {} @trusted static void trustedFunc() {} @system static void systemFunc() {} static assert( isSafe!safeFunc); static assert( isSafe!trustedFunc); static assert(!isSafe!systemFunc); //Delegates auto safeDel = delegate() @safe {}; auto trustedDel = delegate() @trusted {}; auto systemDel = delegate() @system {}; static assert( isSafe!safeDel); static assert( isSafe!trustedDel); static assert(!isSafe!systemDel); //Lambdas static assert( isSafe!({safeDel();})); static assert( isSafe!({trustedDel();})); static assert(!isSafe!({systemDel();})); //Static opCall struct SafeStatic { @safe static SafeStatic opCall() { return SafeStatic.init; } } struct TrustedStatic { @trusted static TrustedStatic opCall() { return TrustedStatic.init; } } struct SystemStatic { @system static SystemStatic opCall() { return SystemStatic.init; } } static assert( isSafe!(SafeStatic())); static assert( isSafe!(TrustedStatic())); static assert(!isSafe!(SystemStatic())); //Non-static opCall struct Safe { @safe Safe opCall() { return Safe.init; } } struct Trusted { @trusted Trusted opCall() { return Trusted.init; } } struct System { @system System opCall() { return System.init; } } static assert( isSafe!(Safe.init())); static assert( isSafe!(Trusted.init())); static assert(!isSafe!(System.init())); } /** `true` if `func` is `@system`. */ template isUnsafe(alias func) { enum isUnsafe = !isSafe!func; } /// @safe unittest { @safe int add(int a, int b) {return a+b;} @trusted int sub(int a, int b) {return a-b;} @system int mul(int a, int b) {return a*b;} static assert(!isUnsafe!add); static assert(!isUnsafe!sub); static assert( isUnsafe!mul); } @safe unittest { //Member functions interface Set { int systemF() @system; int trustedF() @trusted; int safeF() @safe; } static assert(!isUnsafe!(Set.safeF)); static assert(!isUnsafe!(Set.trustedF)); static assert( isUnsafe!(Set.systemF)); //Functions @safe static void safeFunc() {} @trusted static void trustedFunc() {} @system static void systemFunc() {} static assert(!isUnsafe!safeFunc); static assert(!isUnsafe!trustedFunc); static assert( isUnsafe!systemFunc); //Delegates auto safeDel = delegate() @safe {}; auto trustedDel = delegate() @trusted {}; auto systemDel = delegate() @system {}; static assert(!isUnsafe!safeDel); static assert(!isUnsafe!trustedDel); static assert( isUnsafe!systemDel); //Lambdas static assert(!isUnsafe!({safeDel();})); static assert(!isUnsafe!({trustedDel();})); static assert( isUnsafe!({systemDel();})); //Static opCall struct SafeStatic { @safe static SafeStatic opCall() { return SafeStatic.init; } } struct TrustedStatic { @trusted static TrustedStatic opCall() { return TrustedStatic.init; } } struct SystemStatic { @system static SystemStatic opCall() { return SystemStatic.init; } } static assert(!isUnsafe!(SafeStatic())); static assert(!isUnsafe!(TrustedStatic())); static assert( isUnsafe!(SystemStatic())); //Non-static opCall struct Safe { @safe Safe opCall() { return Safe.init; } } struct Trusted { @trusted Trusted opCall() { return Trusted.init; } } struct System { @system System opCall() { return System.init; } } static assert(!isUnsafe!(Safe.init())); static assert(!isUnsafe!(Trusted.init())); static assert( isUnsafe!(System.init())); } /** Determine the linkage attribute of the function. Params: func = the function symbol, or the type of a function, delegate, or pointer to function Returns: one of the strings "D", "C", "C++", "Windows", "Objective-C", or "System". */ template functionLinkage(func...) if (func.length == 1 && isCallable!func) { enum string functionLinkage = __traits(getLinkage, FunctionTypeOf!func); } /// @safe unittest { extern(D) void Dfunc() {} extern(C) void Cfunc() {} static assert(functionLinkage!Dfunc == "D"); static assert(functionLinkage!Cfunc == "C"); string a = functionLinkage!Dfunc; assert(a == "D"); auto fp = &Cfunc; string b = functionLinkage!fp; assert(b == "C"); } @safe unittest { interface Test { void const_func() const; void sharedconst_func() shared const; } static assert(functionLinkage!(Test.const_func) == "D"); static assert(functionLinkage!(Test.sharedconst_func) == "D"); static assert(functionLinkage!((int a){}) == "D"); } /** Determines what kind of variadic parameters function has. Params: func = function symbol or type of function, delegate, or pointer to function Returns: enum Variadic */ enum Variadic { /// Function is not variadic. no, /// Function is a _C-style variadic function, which uses /// `core.stdc.stdarg` c, /// Function is a _D-style variadic function, which uses /// `__argptr` and `__arguments`. d, /// Function is a typesafe variadic function. typesafe, } /// ditto template variadicFunctionStyle(func...) if (func.length == 1 && isCallable!func) { enum string varargs = __traits(getFunctionVariadicStyle, FunctionTypeOf!func); enum Variadic variadicFunctionStyle = (varargs == "stdarg") ? Variadic.c : (varargs == "argptr") ? Variadic.d : (varargs == "typesafe") ? Variadic.typesafe : (varargs == "none") ? Variadic.no : Variadic.no; } /// @safe unittest { void func() {} static assert(variadicFunctionStyle!func == Variadic.no); extern(C) int printf(in char*, ...); static assert(variadicFunctionStyle!printf == Variadic.c); } @safe unittest { import core.vararg; extern(D) void novar() {} extern(C) void cstyle(int, ...) {} extern(D) void dstyle(...) {} extern(D) void typesafe(int[]...) {} static assert(variadicFunctionStyle!novar == Variadic.no); static assert(variadicFunctionStyle!cstyle == Variadic.c); static assert(variadicFunctionStyle!dstyle == Variadic.d); static assert(variadicFunctionStyle!typesafe == Variadic.typesafe); static assert(variadicFunctionStyle!((int[] a...) {}) == Variadic.typesafe); } /** Get the function type from a callable object `func`. Using builtin `typeof` on a property function yields the types of the property value, not of the property function itself. Still, `FunctionTypeOf` is able to obtain function types of properties. Note: Do not confuse function types with function pointer types; function types are usually used for compile-time reflection purposes. */ template FunctionTypeOf(func...) if (func.length == 1 && isCallable!func) { static if (is(typeof(& func[0]) Fsym : Fsym*) && is(Fsym == function) || is(typeof(& func[0]) Fsym == delegate)) { alias FunctionTypeOf = Fsym; // HIT: (nested) function symbol } else static if (is(typeof(& func[0].opCall) Fobj == delegate)) { alias FunctionTypeOf = Fobj; // HIT: callable object } else static if (is(typeof(& func[0].opCall) Ftyp : Ftyp*) && is(Ftyp == function)) { alias FunctionTypeOf = Ftyp; // HIT: callable type } else static if (is(func[0] T) || is(typeof(func[0]) T)) { static if (is(T == function)) alias FunctionTypeOf = T; // HIT: function else static if (is(T Fptr : Fptr*) && is(Fptr == function)) alias FunctionTypeOf = Fptr; // HIT: function pointer else static if (is(T Fdlg == delegate)) alias FunctionTypeOf = Fdlg; // HIT: delegate else static assert(0); } else static assert(0); } /// @safe unittest { class C { int value() @property { return 0; } } static assert(is( typeof(C.value) == int )); static assert(is( FunctionTypeOf!(C.value) == function )); } @system unittest { int test(int a); int propGet() @property; int propSet(int a) @property; int function(int) test_fp; int delegate(int) test_dg; static assert(is( typeof(test) == FunctionTypeOf!(typeof(test)) )); static assert(is( typeof(test) == FunctionTypeOf!test )); static assert(is( typeof(test) == FunctionTypeOf!test_fp )); static assert(is( typeof(test) == FunctionTypeOf!test_dg )); alias int GetterType() @property; alias int SetterType(int) @property; static assert(is( FunctionTypeOf!propGet == GetterType )); static assert(is( FunctionTypeOf!propSet == SetterType )); interface Prop { int prop() @property; } Prop prop; static assert(is( FunctionTypeOf!(Prop.prop) == GetterType )); static assert(is( FunctionTypeOf!(prop.prop) == GetterType )); class Callable { int opCall(int) { return 0; } } auto call = new Callable; static assert(is( FunctionTypeOf!call == typeof(test) )); struct StaticCallable { static int opCall(int) { return 0; } } StaticCallable stcall_val; StaticCallable* stcall_ptr; static assert(is( FunctionTypeOf!stcall_val == typeof(test) )); static assert(is( FunctionTypeOf!stcall_ptr == typeof(test) )); interface Overloads { void test(string); real test(real); int test(int); int test() @property; } alias ov = __traits(getVirtualFunctions, Overloads, "test"); alias F_ov0 = FunctionTypeOf!(ov[0]); alias F_ov1 = FunctionTypeOf!(ov[1]); alias F_ov2 = FunctionTypeOf!(ov[2]); alias F_ov3 = FunctionTypeOf!(ov[3]); static assert(is(F_ov0* == void function(string))); static assert(is(F_ov1* == real function(real))); static assert(is(F_ov2* == int function(int))); static assert(is(F_ov3* == int function() @property)); alias F_dglit = FunctionTypeOf!((int a){ return a; }); static assert(is(F_dglit* : int function(int))); } /** * Constructs a new function or delegate type with the same basic signature * as the given one, but different attributes (including linkage). * * This is especially useful for adding/removing attributes to/from types in * generic code, where the actual type name cannot be spelt out. * * Params: * T = The base type. * linkage = The desired linkage of the result type. * attrs = The desired $(LREF FunctionAttribute)s of the result type. */ template SetFunctionAttributes(T, string linkage, uint attrs) if (isFunctionPointer!T || isDelegate!T) { mixin({ import std.algorithm.searching : canFind; static assert(!(attrs & FunctionAttribute.trusted) || !(attrs & FunctionAttribute.safe), "Cannot have a function/delegate that is both trusted and safe."); static immutable linkages = ["D", "C", "Windows", "C++", "System"]; static assert(canFind(linkages, linkage), "Invalid linkage '" ~ linkage ~ "', must be one of " ~ linkages.stringof ~ "."); string result = "alias "; static if (linkage != "D") result ~= "extern(" ~ linkage ~ ") "; static if (attrs & FunctionAttribute.ref_) result ~= "ref "; result ~= "ReturnType!T"; static if (isDelegate!T) result ~= " delegate"; else result ~= " function"; result ~= "("; static if (Parameters!T.length > 0) result ~= "Parameters!T"; enum varStyle = variadicFunctionStyle!T; static if (varStyle == Variadic.c) result ~= ", ..."; else static if (varStyle == Variadic.d) result ~= "..."; else static if (varStyle == Variadic.typesafe) result ~= "..."; result ~= ")"; static if (attrs & FunctionAttribute.pure_) result ~= " pure"; static if (attrs & FunctionAttribute.nothrow_) result ~= " nothrow"; static if (attrs & FunctionAttribute.property) result ~= " @property"; static if (attrs & FunctionAttribute.trusted) result ~= " @trusted"; static if (attrs & FunctionAttribute.safe) result ~= " @safe"; static if (attrs & FunctionAttribute.nogc) result ~= " @nogc"; static if (attrs & FunctionAttribute.system) result ~= " @system"; static if (attrs & FunctionAttribute.const_) result ~= " const"; static if (attrs & FunctionAttribute.immutable_) result ~= " immutable"; static if (attrs & FunctionAttribute.inout_) result ~= " inout"; static if (attrs & FunctionAttribute.shared_) result ~= " shared"; static if (attrs & FunctionAttribute.return_) result ~= " return"; result ~= " SetFunctionAttributes;"; return result; }()); } /// Ditto template SetFunctionAttributes(T, string linkage, uint attrs) if (is(T == function)) { // To avoid a lot of syntactic headaches, we just use the above version to // operate on the corresponding function pointer type and then remove the // indirection again. alias SetFunctionAttributes = FunctionTypeOf!(SetFunctionAttributes!(T*, linkage, attrs)); } /// @safe unittest { alias ExternC(T) = SetFunctionAttributes!(T, "C", functionAttributes!T); auto assumePure(T)(T t) if (isFunctionPointer!T || isDelegate!T) { enum attrs = functionAttributes!T | FunctionAttribute.pure_; return cast(SetFunctionAttributes!(T, functionLinkage!T, attrs)) t; } int f() { import core.thread : getpid; return getpid(); } int g() pure @trusted { auto pureF = assumePure(&f); return pureF(); } assert(g() > 0); } version (unittest) { private: // Some function types to test. int sc(scope int, ref int, out int, lazy int, int); extern(System) int novar(); extern(C) int cstyle(int, ...); extern(D) int dstyle(...); extern(D) int typesafe(int[]...); } @safe unittest { import std.algorithm.iteration : reduce; alias FA = FunctionAttribute; static foreach (BaseT; AliasSeq!(typeof(&sc), typeof(&novar), typeof(&cstyle), typeof(&dstyle), typeof(&typesafe))) { static foreach (T; AliasSeq!(BaseT, FunctionTypeOf!BaseT)) {{ enum linkage = functionLinkage!T; enum attrs = functionAttributes!T; static assert(is(SetFunctionAttributes!(T, linkage, attrs) == T), "Identity check failed for: " ~ T.stringof); // Check that all linkage types work (D-style variadics require D linkage). static if (variadicFunctionStyle!T != Variadic.d) { static foreach (newLinkage; AliasSeq!("D", "C", "Windows", "C++")) {{ alias New = SetFunctionAttributes!(T, newLinkage, attrs); static assert(functionLinkage!New == newLinkage, "Linkage test failed for: " ~ T.stringof ~ ", " ~ newLinkage ~ " (got " ~ New.stringof ~ ")"); }} } // Add @safe. alias T1 = SetFunctionAttributes!(T, functionLinkage!T, FA.safe); static assert(functionAttributes!T1 == FA.safe); // Add all known attributes, excluding conflicting ones. enum allAttrs = reduce!"a | b"([EnumMembers!FA]) & ~FA.safe & ~FA.property & ~FA.const_ & ~FA.immutable_ & ~FA.inout_ & ~FA.shared_ & ~FA.system & ~FA.return_ & ~FA.scope_; alias T2 = SetFunctionAttributes!(T1, functionLinkage!T, allAttrs); static assert(functionAttributes!T2 == allAttrs); // Strip all attributes again. alias T3 = SetFunctionAttributes!(T2, functionLinkage!T, FA.none); static assert(is(T3 == T)); }} } } //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Aggregate Types //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// /** Determines whether `T` is a class nested inside another class and that `T.outer` is the implicit reference to the outer class (i.e. `outer` has not been used as a field or method name) Params: T = type to test Returns: `true` if `T` is a class nested inside another, with the conditions described above; `false` otherwise */ template isInnerClass(T) if (is(T == class)) { static if (is(typeof(T.outer))) { bool hasOuterMember(string[] members...) { foreach (m; members) { if (m == "outer") return true; } return false; } enum isInnerClass = __traits(isSame, typeof(T.outer), __traits(parent, T)) && !hasOuterMember(__traits(allMembers, T)); } else enum isInnerClass = false; } /// @safe unittest { class C { int outer; } static assert(!isInnerClass!C); class Outer1 { class Inner1 { } class Inner2 { int outer; } } static assert(isInnerClass!(Outer1.Inner1)); static assert(!isInnerClass!(Outer1.Inner2)); static class Outer2 { static class Inner { int outer; } } static assert(!isInnerClass!(Outer2.Inner)); } /** Determines whether `T` has its own context pointer. `T` must be either `class`, `struct`, or `union`. */ template isNested(T) if (is(T == class) || is(T == struct) || is(T == union)) { enum isNested = __traits(isNested, T); } /// @safe unittest { static struct S { } static assert(!isNested!S); int i; struct NestedStruct { void f() { ++i; } } static assert(isNested!NestedStruct); } /** Determines whether `T` or any of its representation types have a context pointer. */ template hasNested(T) { import std.meta : Filter; static if (isStaticArray!T && T.length) enum hasNested = hasNested!(typeof(T.init[0])); else static if (is(T == class) || is(T == struct) || is(T == union)) { // prevent infinite recursion for class with member of same type enum notSame(U) = !is(Unqual!T == Unqual!U); enum hasNested = isNested!T || anySatisfy!(.hasNested, Filter!(notSame, Fields!T)); } else enum hasNested = false; } /// @safe unittest { static struct S { } int i; struct NS { void f() { ++i; } } static assert(!hasNested!(S[2])); static assert(hasNested!(NS[2])); } @safe unittest { static assert(!__traits(compiles, isNested!int)); static assert(!hasNested!int); static struct StaticStruct { } static assert(!isNested!StaticStruct); static assert(!hasNested!StaticStruct); int i; struct NestedStruct { void f() { ++i; } } static assert( isNested!NestedStruct); static assert( hasNested!NestedStruct); static assert( isNested!(immutable NestedStruct)); static assert( hasNested!(immutable NestedStruct)); static assert(!__traits(compiles, isNested!(NestedStruct[1]))); static assert( hasNested!(NestedStruct[1])); static assert(!hasNested!(NestedStruct[0])); struct S1 { NestedStruct nested; } static assert(!isNested!S1); static assert( hasNested!S1); static struct S2 { NestedStruct nested; } static assert(!isNested!S2); static assert( hasNested!S2); static struct S3 { NestedStruct[0] nested; } static assert(!isNested!S3); static assert(!hasNested!S3); static union U { NestedStruct nested; } static assert(!isNested!U); static assert( hasNested!U); static class StaticClass { } static assert(!isNested!StaticClass); static assert(!hasNested!StaticClass); class NestedClass { void f() { ++i; } } static assert( isNested!NestedClass); static assert( hasNested!NestedClass); static assert( isNested!(immutable NestedClass)); static assert( hasNested!(immutable NestedClass)); static assert(!__traits(compiles, isNested!(NestedClass[1]))); static assert( hasNested!(NestedClass[1])); static assert(!hasNested!(NestedClass[0])); static class A { A a; } static assert(!hasNested!A); } /*** * Get as a tuple the types of the fields of a struct, class, or union. * This consists of the fields that take up memory space, * excluding the hidden fields like the virtual function * table pointer or a context pointer for nested types. * If `T` isn't a struct, class, or union returns a tuple * with one element `T`. */ template Fields(T) { static if (is(T == struct) || is(T == union)) alias Fields = typeof(T.tupleof[0 .. $ - isNested!T]); else static if (is(T == class)) alias Fields = typeof(T.tupleof); else alias Fields = AliasSeq!T; } /// @safe unittest { import std.meta : AliasSeq; struct S { int x; float y; } static assert(is(Fields!S == AliasSeq!(int, float))); } /** * Alternate name for $(LREF Fields), kept for legacy compatibility. */ alias FieldTypeTuple = Fields; @safe unittest { static assert(is(FieldTypeTuple!int == AliasSeq!int)); static struct StaticStruct1 { } static assert(is(FieldTypeTuple!StaticStruct1 == AliasSeq!())); static struct StaticStruct2 { int a, b; } static assert(is(FieldTypeTuple!StaticStruct2 == AliasSeq!(int, int))); int i; struct NestedStruct1 { void f() { ++i; } } static assert(is(FieldTypeTuple!NestedStruct1 == AliasSeq!())); struct NestedStruct2 { int a; void f() { ++i; } } static assert(is(FieldTypeTuple!NestedStruct2 == AliasSeq!int)); class NestedClass { int a; void f() { ++i; } } static assert(is(FieldTypeTuple!NestedClass == AliasSeq!int)); } //Required for FieldNameTuple private enum NameOf(alias T) = T.stringof; /** * Get as an expression tuple the names of the fields of a struct, class, or * union. This consists of the fields that take up memory space, excluding the * hidden fields like the virtual function table pointer or a context pointer * for nested types. * Inherited fields (for classes) are not included. * If `T` isn't a struct, class, or union, an * expression tuple with an empty string is returned. */ template FieldNameTuple(T) { import std.meta : staticMap; static if (is(T == struct) || is(T == union)) alias FieldNameTuple = staticMap!(NameOf, T.tupleof[0 .. $ - isNested!T]); else static if (is(T == class)) alias FieldNameTuple = staticMap!(NameOf, T.tupleof); else alias FieldNameTuple = AliasSeq!""; } /// @safe unittest { import std.meta : AliasSeq; struct S { int x; float y; } static assert(FieldNameTuple!S == AliasSeq!("x", "y")); static assert(FieldNameTuple!int == AliasSeq!""); } @safe unittest { static assert(FieldNameTuple!int == AliasSeq!""); static struct StaticStruct1 { } static assert(is(FieldNameTuple!StaticStruct1 == AliasSeq!())); static struct StaticStruct2 { int a, b; } static assert(FieldNameTuple!StaticStruct2 == AliasSeq!("a", "b")); static class StaticClass1 { } static assert(is(FieldNameTuple!StaticClass1 == AliasSeq!())); static class StaticClass2 : StaticClass1 { int a, b; } static assert(FieldNameTuple!StaticClass2 == AliasSeq!("a", "b")); static class StaticClass3 : StaticClass2 { int c; } static assert(FieldNameTuple!StaticClass3 == AliasSeq!("c")); int i; struct NestedStruct1 { void f() { ++i; } } static assert(is(FieldNameTuple!NestedStruct1 == AliasSeq!())); struct NestedStruct2 { int a; void f() { ++i; } } static assert(FieldNameTuple!NestedStruct2 == AliasSeq!"a"); class NestedClass { int a; void f() { ++i; } } static assert(FieldNameTuple!NestedClass == AliasSeq!"a"); } /*** Get the primitive types of the fields of a struct or class, in topological order. */ template RepresentationTypeTuple(T) { static if (is(T == struct) || is(T == union) || is(T == class)) { alias RepresentationTypeTuple = staticMapMeta!(RepresentationTypeTupleImpl, FieldTypeTuple!T); } else { alias RepresentationTypeTuple = RepresentationTypeTupleImpl!T; } } /// @safe unittest { struct S1 { int a; float b; } struct S2 { char[] a; union { S1 b; S1 * c; } } alias R = RepresentationTypeTuple!S2; assert(R.length == 4 && is(R[0] == char[]) && is(R[1] == int) && is(R[2] == float) && is(R[3] == S1*)); } @safe unittest { alias S1 = RepresentationTypeTuple!int; static assert(is(S1 == AliasSeq!int)); struct S2 { int a; } struct S3 { int a; char b; } struct S4 { S1 a; int b; S3 c; } static assert(is(RepresentationTypeTuple!S2 == AliasSeq!int)); static assert(is(RepresentationTypeTuple!S3 == AliasSeq!(int, char))); static assert(is(RepresentationTypeTuple!S4 == AliasSeq!(int, int, int, char))); struct S11 { int a; float b; } struct S21 { char[] a; union { S11 b; S11 * c; } } alias R = RepresentationTypeTuple!S21; assert(R.length == 4 && is(R[0] == char[]) && is(R[1] == int) && is(R[2] == float) && is(R[3] == S11*)); class C { int a; float b; } alias R1 = RepresentationTypeTuple!C; static assert(R1.length == 2 && is(R1[0] == int) && is(R1[1] == float)); /* Issue 6642 */ import std.typecons : Rebindable; struct S5 { int a; Rebindable!(immutable Object) b; } alias R2 = RepresentationTypeTuple!S5; static assert(R2.length == 2 && is(R2[0] == int) && is(R2[1] == immutable(Object))); } @safe unittest { struct VeryLargeType { import std.format : format; import std.range : iota; static foreach (i; 500.iota) { mixin(format!"int v%s;"(i)); } } alias BigList = RepresentationTypeTuple!VeryLargeType; } private template RepresentationTypeTupleImpl(T) { import std.typecons : Rebindable; static if (is(T R: Rebindable!R)) { alias RepresentationTypeTupleImpl = staticMapMeta!(.RepresentationTypeTupleImpl, RepresentationTypeTupleImpl!R); } else static if (is(T == struct) || is(T == union)) { // @@@BUG@@@ this should work //alias .RepresentationTypes!(T[0].tupleof) // RepresentationTypes; alias RepresentationTypeTupleImpl = staticMapMeta!(.RepresentationTypeTupleImpl, FieldTypeTuple!(T)); } else { alias RepresentationTypeTupleImpl = AliasSeq!T; } } /* Statically evaluates to `true` if and only if `T`'s representation contains at least one field of pointer or array type. Members of class types are not considered raw pointers. Pointers to immutable objects are not considered raw aliasing. */ private template hasRawAliasing(T) { enum hasRawAliasing = anySatisfy!(hasRawAliasingImpl, RepresentationTypeTuple!T); } // @safe unittest { // simple types static assert(!hasRawAliasing!int); static assert( hasRawAliasing!(char*)); // references aren't raw pointers static assert(!hasRawAliasing!Object); // built-in arrays do contain raw pointers static assert( hasRawAliasing!(int[])); // aggregate of simple types struct S1 { int a; double b; } static assert(!hasRawAliasing!S1); // indirect aggregation struct S2 { S1 a; double b; } static assert(!hasRawAliasing!S2); } // Issue 19228 @safe unittest { static struct C { int*[1] a; } static assert(hasRawAliasing!C); } @safe unittest { // struct with a pointer member struct S3 { int a; double * b; } static assert( hasRawAliasing!S3); // struct with an indirect pointer member struct S4 { S3 a; double b; } static assert( hasRawAliasing!S4); struct S5 { int a; Object z; int c; } static assert( hasRawAliasing!S3); static assert( hasRawAliasing!S4); static assert(!hasRawAliasing!S5); union S6 { int a; int b; } union S7 { int a; int * b; } static assert(!hasRawAliasing!S6); static assert( hasRawAliasing!S7); static assert(!hasRawAliasing!(void delegate())); static assert(!hasRawAliasing!(void delegate() const)); static assert(!hasRawAliasing!(void delegate() immutable)); static assert(!hasRawAliasing!(void delegate() shared)); static assert(!hasRawAliasing!(void delegate() shared const)); static assert(!hasRawAliasing!(const(void delegate()))); static assert(!hasRawAliasing!(immutable(void delegate()))); struct S8 { void delegate() a; int b; Object c; } class S12 { typeof(S8.tupleof) a; } class S13 { typeof(S8.tupleof) a; int* b; } static assert(!hasRawAliasing!S8); static assert(!hasRawAliasing!S12); static assert( hasRawAliasing!S13); enum S9 { a } static assert(!hasRawAliasing!S9); // indirect members struct S10 { S7 a; int b; } struct S11 { S6 a; int b; } static assert( hasRawAliasing!S10); static assert(!hasRawAliasing!S11); static assert( hasRawAliasing!(int[string])); static assert(!hasRawAliasing!(immutable(int[string]))); } private template hasRawAliasingImpl(T) { static if (is(T foo : U*, U) && !isFunctionPointer!T) enum hasRawAliasingImpl = !is(U == immutable); else static if (is(T foo : U[N], U, size_t N)) // separate static ifs to avoid forward reference static if (is(U == class) || is(U == interface)) enum hasRawAliasingImpl = false; else enum hasRawAliasingImpl = hasRawAliasingImpl!U; else static if (is(T foo : U[], U) && !isStaticArray!(T)) enum hasRawAliasingImpl = !is(U == immutable); else static if (isAssociativeArray!(T)) enum hasRawAliasingImpl = !is(T == immutable); else enum hasRawAliasingImpl = false; } /* Statically evaluates to `true` if and only if `T`'s representation contains at least one non-shared field of pointer or array type. Members of class types are not considered raw pointers. Pointers to immutable objects are not considered raw aliasing. */ private template hasRawUnsharedAliasing(T) { enum hasRawUnsharedAliasing = anySatisfy!(hasRawUnsharedAliasingImpl, RepresentationTypeTuple!T); } // @safe unittest { // simple types static assert(!hasRawUnsharedAliasing!int); static assert( hasRawUnsharedAliasing!(char*)); static assert(!hasRawUnsharedAliasing!(shared char*)); // references aren't raw pointers static assert(!hasRawUnsharedAliasing!Object); // built-in arrays do contain raw pointers static assert( hasRawUnsharedAliasing!(int[])); static assert(!hasRawUnsharedAliasing!(shared int[])); // aggregate of simple types struct S1 { int a; double b; } static assert(!hasRawUnsharedAliasing!S1); // indirect aggregation struct S2 { S1 a; double b; } static assert(!hasRawUnsharedAliasing!S2); // struct with a pointer member struct S3 { int a; double * b; } static assert( hasRawUnsharedAliasing!S3); struct S4 { int a; shared double * b; } static assert(!hasRawUnsharedAliasing!S4); } @safe unittest { // struct with a pointer member struct S3 { int a; double * b; } static assert( hasRawUnsharedAliasing!S3); struct S4 { int a; shared double * b; } static assert(!hasRawUnsharedAliasing!S4); // struct with an indirect pointer member struct S5 { S3 a; double b; } static assert( hasRawUnsharedAliasing!S5); struct S6 { S4 a; double b; } static assert(!hasRawUnsharedAliasing!S6); struct S7 { int a; Object z; int c; } static assert( hasRawUnsharedAliasing!S5); static assert(!hasRawUnsharedAliasing!S6); static assert(!hasRawUnsharedAliasing!S7); union S8 { int a; int b; } union S9 { int a; int* b; } union S10 { int a; shared int* b; } static assert(!hasRawUnsharedAliasing!S8); static assert( hasRawUnsharedAliasing!S9); static assert(!hasRawUnsharedAliasing!S10); static assert(!hasRawUnsharedAliasing!(void delegate())); static assert(!hasRawUnsharedAliasing!(void delegate() const)); static assert(!hasRawUnsharedAliasing!(void delegate() immutable)); static assert(!hasRawUnsharedAliasing!(void delegate() shared)); static assert(!hasRawUnsharedAliasing!(void delegate() shared const)); static assert(!hasRawUnsharedAliasing!(const(void delegate()))); static assert(!hasRawUnsharedAliasing!(const(void delegate() const))); static assert(!hasRawUnsharedAliasing!(const(void delegate() immutable))); static assert(!hasRawUnsharedAliasing!(const(void delegate() shared))); static assert(!hasRawUnsharedAliasing!(const(void delegate() shared const))); static assert(!hasRawUnsharedAliasing!(immutable(void delegate()))); static assert(!hasRawUnsharedAliasing!(immutable(void delegate() const))); static assert(!hasRawUnsharedAliasing!(immutable(void delegate() immutable))); static assert(!hasRawUnsharedAliasing!(immutable(void delegate() shared))); static assert(!hasRawUnsharedAliasing!(immutable(void delegate() shared const))); static assert(!hasRawUnsharedAliasing!(shared(void delegate()))); static assert(!hasRawUnsharedAliasing!(shared(void delegate() const))); static assert(!hasRawUnsharedAliasing!(shared(void delegate() immutable))); static assert(!hasRawUnsharedAliasing!(shared(void delegate() shared))); static assert(!hasRawUnsharedAliasing!(shared(void delegate() shared const))); static assert(!hasRawUnsharedAliasing!(shared(const(void delegate())))); static assert(!hasRawUnsharedAliasing!(shared(const(void delegate() const)))); static assert(!hasRawUnsharedAliasing!(shared(const(void delegate() immutable)))); static assert(!hasRawUnsharedAliasing!(shared(const(void delegate() shared)))); static assert(!hasRawUnsharedAliasing!(shared(const(void delegate() shared const)))); static assert(!hasRawUnsharedAliasing!(void function())); enum S13 { a } static assert(!hasRawUnsharedAliasing!S13); // indirect members struct S14 { S9 a; int b; } struct S15 { S10 a; int b; } struct S16 { S6 a; int b; } static assert( hasRawUnsharedAliasing!S14); static assert(!hasRawUnsharedAliasing!S15); static assert(!hasRawUnsharedAliasing!S16); static assert( hasRawUnsharedAliasing!(int[string])); static assert(!hasRawUnsharedAliasing!(shared(int[string]))); static assert(!hasRawUnsharedAliasing!(immutable(int[string]))); struct S17 { void delegate() shared a; void delegate() immutable b; void delegate() shared const c; shared(void delegate()) d; shared(void delegate() shared) e; shared(void delegate() immutable) f; shared(void delegate() shared const) g; immutable(void delegate()) h; immutable(void delegate() shared) i; immutable(void delegate() immutable) j; immutable(void delegate() shared const) k; shared(const(void delegate())) l; shared(const(void delegate() shared)) m; shared(const(void delegate() immutable)) n; shared(const(void delegate() shared const)) o; } struct S18 { typeof(S17.tupleof) a; void delegate() p; } struct S19 { typeof(S17.tupleof) a; Object p; } struct S20 { typeof(S17.tupleof) a; int* p; } class S21 { typeof(S17.tupleof) a; } class S22 { typeof(S17.tupleof) a; void delegate() p; } class S23 { typeof(S17.tupleof) a; Object p; } class S24 { typeof(S17.tupleof) a; int* p; } static assert(!hasRawUnsharedAliasing!S17); static assert(!hasRawUnsharedAliasing!(immutable(S17))); static assert(!hasRawUnsharedAliasing!(shared(S17))); static assert(!hasRawUnsharedAliasing!S18); static assert(!hasRawUnsharedAliasing!(immutable(S18))); static assert(!hasRawUnsharedAliasing!(shared(S18))); static assert(!hasRawUnsharedAliasing!S19); static assert(!hasRawUnsharedAliasing!(immutable(S19))); static assert(!hasRawUnsharedAliasing!(shared(S19))); static assert( hasRawUnsharedAliasing!S20); static assert(!hasRawUnsharedAliasing!(immutable(S20))); static assert(!hasRawUnsharedAliasing!(shared(S20))); static assert(!hasRawUnsharedAliasing!S21); static assert(!hasRawUnsharedAliasing!(immutable(S21))); static assert(!hasRawUnsharedAliasing!(shared(S21))); static assert(!hasRawUnsharedAliasing!S22); static assert(!hasRawUnsharedAliasing!(immutable(S22))); static assert(!hasRawUnsharedAliasing!(shared(S22))); static assert(!hasRawUnsharedAliasing!S23); static assert(!hasRawUnsharedAliasing!(immutable(S23))); static assert(!hasRawUnsharedAliasing!(shared(S23))); static assert( hasRawUnsharedAliasing!S24); static assert(!hasRawUnsharedAliasing!(immutable(S24))); static assert(!hasRawUnsharedAliasing!(shared(S24))); struct S25 {} class S26 {} interface S27 {} union S28 {} static assert(!hasRawUnsharedAliasing!S25); static assert(!hasRawUnsharedAliasing!S26); static assert(!hasRawUnsharedAliasing!S27); static assert(!hasRawUnsharedAliasing!S28); } private template hasRawUnsharedAliasingImpl(T) { static if (is(T foo : U*, U) && !isFunctionPointer!T) enum hasRawUnsharedAliasingImpl = !is(U == immutable) && !is(U == shared); else static if (is(T foo : U[], U) && !isStaticArray!T) enum hasRawUnsharedAliasingImpl = !is(U == immutable) && !is(U == shared); else static if (isAssociativeArray!T) enum hasRawUnsharedAliasingImpl = !is(T == immutable) && !is(T == shared); else enum hasRawUnsharedAliasingImpl = false; } /* Statically evaluates to `true` if and only if `T`'s representation includes at least one non-immutable object reference. */ private template hasObjects(T) { static if (is(T == struct)) { enum hasObjects = anySatisfy!(.hasObjects, RepresentationTypeTuple!T); } else { enum hasObjects = (is(T == class) || is(T == interface)) && !is(T == immutable); } } /* Statically evaluates to `true` if and only if `T`'s representation includes at least one non-immutable non-shared object reference. */ private template hasUnsharedObjects(T) { static if (is(T == struct)) { enum hasUnsharedObjects = anySatisfy!(.hasUnsharedObjects, RepresentationTypeTuple!T); } else { enum hasUnsharedObjects = (is(T == class) || is(T == interface)) && !is(T == immutable) && !is(T == shared); } } /** Returns `true` if and only if `T`'s representation includes at least one of the following: $(OL $(LI a raw pointer `U*` and `U` is not immutable;) $(LI an array `U[]` and `U` is not immutable;) $(LI a reference to a class or interface type `C` and `C` is not immutable.) $(LI an associative array that is not immutable.) $(LI a delegate.)) */ template hasAliasing(T...) { enum hasAliasing = anySatisfy!(hasAliasingImpl, T); } /// @safe unittest { struct S1 { int a; Object b; } struct S2 { string a; } struct S3 { int a; immutable Object b; } struct S4 { float[3] vals; } static assert( hasAliasing!S1); static assert(!hasAliasing!S2); static assert(!hasAliasing!S3); static assert(!hasAliasing!S4); } @safe unittest { static assert( hasAliasing!(uint[uint])); static assert(!hasAliasing!(immutable(uint[uint]))); static assert( hasAliasing!(void delegate())); static assert( hasAliasing!(void delegate() const)); static assert(!hasAliasing!(void delegate() immutable)); static assert( hasAliasing!(void delegate() shared)); static assert( hasAliasing!(void delegate() shared const)); static assert( hasAliasing!(const(void delegate()))); static assert( hasAliasing!(const(void delegate() const))); static assert(!hasAliasing!(const(void delegate() immutable))); static assert( hasAliasing!(const(void delegate() shared))); static assert( hasAliasing!(const(void delegate() shared const))); static assert(!hasAliasing!(immutable(void delegate()))); static assert(!hasAliasing!(immutable(void delegate() const))); static assert(!hasAliasing!(immutable(void delegate() immutable))); static assert(!hasAliasing!(immutable(void delegate() shared))); static assert(!hasAliasing!(immutable(void delegate() shared const))); static assert( hasAliasing!(shared(const(void delegate())))); static assert( hasAliasing!(shared(const(void delegate() const)))); static assert(!hasAliasing!(shared(const(void delegate() immutable)))); static assert( hasAliasing!(shared(const(void delegate() shared)))); static assert( hasAliasing!(shared(const(void delegate() shared const)))); static assert(!hasAliasing!(void function())); interface I; static assert( hasAliasing!I); import std.typecons : Rebindable; static assert( hasAliasing!(Rebindable!(const Object))); static assert(!hasAliasing!(Rebindable!(immutable Object))); static assert( hasAliasing!(Rebindable!(shared Object))); static assert( hasAliasing!(Rebindable!Object)); struct S5 { void delegate() immutable b; shared(void delegate() immutable) f; immutable(void delegate() immutable) j; shared(const(void delegate() immutable)) n; } struct S6 { typeof(S5.tupleof) a; void delegate() p; } static assert(!hasAliasing!S5); static assert( hasAliasing!S6); struct S7 { void delegate() a; int b; Object c; } class S8 { int a; int b; } class S9 { typeof(S8.tupleof) a; } class S10 { typeof(S8.tupleof) a; int* b; } static assert( hasAliasing!S7); static assert( hasAliasing!S8); static assert( hasAliasing!S9); static assert( hasAliasing!S10); struct S11 {} class S12 {} interface S13 {} union S14 {} static assert(!hasAliasing!S11); static assert( hasAliasing!S12); static assert( hasAliasing!S13); static assert(!hasAliasing!S14); class S15 { S15[1] a; } static assert( hasAliasing!S15); static assert(!hasAliasing!(immutable(S15))); } private template hasAliasingImpl(T) { import std.typecons : Rebindable; static if (is(T : Rebindable!R, R)) { enum hasAliasingImpl = hasAliasingImpl!R; } else { template isAliasingDelegate(T) { enum isAliasingDelegate = isDelegate!T && !is(T == immutable) && !is(FunctionTypeOf!T == immutable); } enum hasAliasingImpl = hasRawAliasing!T || hasObjects!T || anySatisfy!(isAliasingDelegate, T, RepresentationTypeTuple!T); } } /** Returns `true` if and only if `T`'s representation includes at least one of the following: $(OL $(LI a raw pointer `U*`;) $(LI an array `U[]`;) $(LI a reference to a class type `C`.) $(LI an associative array.) $(LI a delegate.)) */ template hasIndirections(T) { static if (is(T == struct) || is(T == union)) enum hasIndirections = anySatisfy!(.hasIndirections, FieldTypeTuple!T); else static if (isStaticArray!T && is(T : E[N], E, size_t N)) enum hasIndirections = is(E == void) ? true : hasIndirections!E; else static if (isFunctionPointer!T) enum hasIndirections = false; else enum hasIndirections = isPointer!T || isDelegate!T || isDynamicArray!T || isAssociativeArray!T || is (T == class) || is(T == interface); } /// @safe unittest { static assert( hasIndirections!(int[string])); static assert( hasIndirections!(void delegate())); static assert( hasIndirections!(void delegate() immutable)); static assert( hasIndirections!(immutable(void delegate()))); static assert( hasIndirections!(immutable(void delegate() immutable))); static assert(!hasIndirections!(void function())); static assert( hasIndirections!(void*[1])); static assert(!hasIndirections!(byte[1])); } @safe unittest { // void static array hides actual type of bits, so "may have indirections". static assert( hasIndirections!(void[1])); interface I {} struct S1 {} struct S2 { int a; } struct S3 { int a; int b; } struct S4 { int a; int* b; } struct S5 { int a; Object b; } struct S6 { int a; string b; } struct S7 { int a; immutable Object b; } struct S8 { int a; immutable I b; } struct S9 { int a; void delegate() b; } struct S10 { int a; immutable(void delegate()) b; } struct S11 { int a; void delegate() immutable b; } struct S12 { int a; immutable(void delegate() immutable) b; } class S13 {} class S14 { int a; } class S15 { int a; int b; } class S16 { int a; Object b; } class S17 { string a; } class S18 { int a; immutable Object b; } class S19 { int a; immutable(void delegate() immutable) b; } union S20 {} union S21 { int a; } union S22 { int a; int b; } union S23 { int a; Object b; } union S24 { string a; } union S25 { int a; immutable Object b; } union S26 { int a; immutable(void delegate() immutable) b; } static assert( hasIndirections!I); static assert(!hasIndirections!S1); static assert(!hasIndirections!S2); static assert(!hasIndirections!S3); static assert( hasIndirections!S4); static assert( hasIndirections!S5); static assert( hasIndirections!S6); static assert( hasIndirections!S7); static assert( hasIndirections!S8); static assert( hasIndirections!S9); static assert( hasIndirections!S10); static assert( hasIndirections!S12); static assert( hasIndirections!S13); static assert( hasIndirections!S14); static assert( hasIndirections!S15); static assert( hasIndirections!S16); static assert( hasIndirections!S17); static assert( hasIndirections!S18); static assert( hasIndirections!S19); static assert(!hasIndirections!S20); static assert(!hasIndirections!S21); static assert(!hasIndirections!S22); static assert( hasIndirections!S23); static assert( hasIndirections!S24); static assert( hasIndirections!S25); static assert( hasIndirections!S26); } @safe unittest //12000 { static struct S(T) { static assert(hasIndirections!T); } static class A(T) { S!A a; } A!int dummy; } /** Returns `true` if and only if `T`'s representation includes at least one of the following: $(OL $(LI a raw pointer `U*` and `U` is not immutable or shared;) $(LI an array `U[]` and `U` is not immutable or shared;) $(LI a reference to a class type `C` and `C` is not immutable or shared.) $(LI an associative array that is not immutable or shared.) $(LI a delegate that is not shared.)) */ template hasUnsharedAliasing(T...) { enum hasUnsharedAliasing = anySatisfy!(hasUnsharedAliasingImpl, T); } /// @safe unittest { struct S1 { int a; Object b; } struct S2 { string a; } struct S3 { int a; immutable Object b; } static assert( hasUnsharedAliasing!S1); static assert(!hasUnsharedAliasing!S2); static assert(!hasUnsharedAliasing!S3); struct S4 { int a; shared Object b; } struct S5 { char[] a; } struct S6 { shared char[] b; } struct S7 { float[3] vals; } static assert(!hasUnsharedAliasing!S4); static assert( hasUnsharedAliasing!S5); static assert(!hasUnsharedAliasing!S6); static assert(!hasUnsharedAliasing!S7); } @safe unittest { /* Issue 6642 */ import std.typecons : Rebindable; struct S8 { int a; Rebindable!(immutable Object) b; } static assert(!hasUnsharedAliasing!S8); static assert( hasUnsharedAliasing!(uint[uint])); static assert( hasUnsharedAliasing!(void delegate())); static assert( hasUnsharedAliasing!(void delegate() const)); static assert(!hasUnsharedAliasing!(void delegate() immutable)); static assert(!hasUnsharedAliasing!(void delegate() shared)); static assert(!hasUnsharedAliasing!(void delegate() shared const)); } @safe unittest { import std.typecons : Rebindable; static assert( hasUnsharedAliasing!(const(void delegate()))); static assert( hasUnsharedAliasing!(const(void delegate() const))); static assert(!hasUnsharedAliasing!(const(void delegate() immutable))); static assert(!hasUnsharedAliasing!(const(void delegate() shared))); static assert(!hasUnsharedAliasing!(const(void delegate() shared const))); static assert(!hasUnsharedAliasing!(immutable(void delegate()))); static assert(!hasUnsharedAliasing!(immutable(void delegate() const))); static assert(!hasUnsharedAliasing!(immutable(void delegate() immutable))); static assert(!hasUnsharedAliasing!(immutable(void delegate() shared))); static assert(!hasUnsharedAliasing!(immutable(void delegate() shared const))); static assert(!hasUnsharedAliasing!(shared(void delegate()))); static assert(!hasUnsharedAliasing!(shared(void delegate() const))); static assert(!hasUnsharedAliasing!(shared(void delegate() immutable))); static assert(!hasUnsharedAliasing!(shared(void delegate() shared))); static assert(!hasUnsharedAliasing!(shared(void delegate() shared const))); static assert(!hasUnsharedAliasing!(shared(const(void delegate())))); static assert(!hasUnsharedAliasing!(shared(const(void delegate() const)))); static assert(!hasUnsharedAliasing!(shared(const(void delegate() immutable)))); static assert(!hasUnsharedAliasing!(shared(const(void delegate() shared)))); static assert(!hasUnsharedAliasing!(shared(const(void delegate() shared const)))); static assert(!hasUnsharedAliasing!(void function())); interface I {} static assert(hasUnsharedAliasing!I); static assert( hasUnsharedAliasing!(Rebindable!(const Object))); static assert(!hasUnsharedAliasing!(Rebindable!(immutable Object))); static assert(!hasUnsharedAliasing!(Rebindable!(shared Object))); static assert( hasUnsharedAliasing!(Rebindable!Object)); /* Issue 6979 */ static assert(!hasUnsharedAliasing!(int, shared(int)*)); static assert( hasUnsharedAliasing!(int, int*)); static assert( hasUnsharedAliasing!(int, const(int)[])); static assert( hasUnsharedAliasing!(int, shared(int)*, Rebindable!Object)); static assert(!hasUnsharedAliasing!(shared(int)*, Rebindable!(shared Object))); static assert(!hasUnsharedAliasing!()); struct S9 { void delegate() shared a; void delegate() immutable b; void delegate() shared const c; shared(void delegate()) d; shared(void delegate() shared) e; shared(void delegate() immutable) f; shared(void delegate() shared const) g; immutable(void delegate()) h; immutable(void delegate() shared) i; immutable(void delegate() immutable) j; immutable(void delegate() shared const) k; shared(const(void delegate())) l; shared(const(void delegate() shared)) m; shared(const(void delegate() immutable)) n; shared(const(void delegate() shared const)) o; } struct S10 { typeof(S9.tupleof) a; void delegate() p; } struct S11 { typeof(S9.tupleof) a; Object p; } struct S12 { typeof(S9.tupleof) a; int* p; } class S13 { typeof(S9.tupleof) a; } class S14 { typeof(S9.tupleof) a; void delegate() p; } class S15 { typeof(S9.tupleof) a; Object p; } class S16 { typeof(S9.tupleof) a; int* p; } static assert(!hasUnsharedAliasing!S9); static assert(!hasUnsharedAliasing!(immutable(S9))); static assert(!hasUnsharedAliasing!(shared(S9))); static assert( hasUnsharedAliasing!S10); static assert(!hasUnsharedAliasing!(immutable(S10))); static assert(!hasUnsharedAliasing!(shared(S10))); static assert( hasUnsharedAliasing!S11); static assert(!hasUnsharedAliasing!(immutable(S11))); static assert(!hasUnsharedAliasing!(shared(S11))); static assert( hasUnsharedAliasing!S12); static assert(!hasUnsharedAliasing!(immutable(S12))); static assert(!hasUnsharedAliasing!(shared(S12))); static assert( hasUnsharedAliasing!S13); static assert(!hasUnsharedAliasing!(immutable(S13))); static assert(!hasUnsharedAliasing!(shared(S13))); static assert( hasUnsharedAliasing!S14); static assert(!hasUnsharedAliasing!(immutable(S14))); static assert(!hasUnsharedAliasing!(shared(S14))); static assert( hasUnsharedAliasing!S15); static assert(!hasUnsharedAliasing!(immutable(S15))); static assert(!hasUnsharedAliasing!(shared(S15))); static assert( hasUnsharedAliasing!S16); static assert(!hasUnsharedAliasing!(immutable(S16))); static assert(!hasUnsharedAliasing!(shared(S16))); struct S17 {} class S18 {} interface S19 {} union S20 {} static assert(!hasUnsharedAliasing!S17); static assert( hasUnsharedAliasing!S18); static assert( hasUnsharedAliasing!S19); static assert(!hasUnsharedAliasing!S20); } private template hasUnsharedAliasingImpl(T) { import std.typecons : Rebindable; static if (is(T R: Rebindable!R)) { enum hasUnsharedAliasingImpl = hasUnsharedAliasingImpl!R; } else { template unsharedDelegate(T) { enum bool unsharedDelegate = isDelegate!T && !is(T == shared) && !is(T == immutable) && !is(FunctionTypeOf!T == shared) && !is(FunctionTypeOf!T == immutable); } enum hasUnsharedAliasingImpl = hasRawUnsharedAliasing!T || anySatisfy!(unsharedDelegate, RepresentationTypeTuple!T) || hasUnsharedObjects!T; } } /** True if `S` or any type embedded directly in the representation of `S` defines an elaborate copy constructor. Elaborate copy constructors are introduced by defining `this(this)` for a `struct`. Classes and unions never have elaborate copy constructors. */ template hasElaborateCopyConstructor(S) { import core.internal.traits : hasElabCCtor = hasElaborateCopyConstructor; alias hasElaborateCopyConstructor = hasElabCCtor!(S); } /// @safe unittest { static assert(!hasElaborateCopyConstructor!int); static struct S1 { } static struct S2 { this(this) {} } static struct S3 { S2 field; } static struct S4 { S3[1] field; } static struct S5 { S3[] field; } static struct S6 { S3[0] field; } static struct S7 { @disable this(); S3 field; } static assert(!hasElaborateCopyConstructor!S1); static assert( hasElaborateCopyConstructor!S2); static assert( hasElaborateCopyConstructor!(immutable S2)); static assert( hasElaborateCopyConstructor!S3); static assert( hasElaborateCopyConstructor!(S3[1])); static assert(!hasElaborateCopyConstructor!(S3[0])); static assert( hasElaborateCopyConstructor!S4); static assert(!hasElaborateCopyConstructor!S5); static assert(!hasElaborateCopyConstructor!S6); static assert( hasElaborateCopyConstructor!S7); } /** True if `S` or any type directly embedded in the representation of `S` defines an elaborate assignment. Elaborate assignments are introduced by defining `opAssign(typeof(this))` or $(D opAssign(ref typeof(this))) for a `struct` or when there is a compiler-generated `opAssign`. A type `S` gets compiler-generated `opAssign` in case it has an elaborate copy constructor or elaborate destructor. Classes and unions never have elaborate assignments. Note: Structs with (possibly nested) postblit operator(s) will have a hidden yet elaborate compiler generated assignment operator (unless explicitly disabled). */ template hasElaborateAssign(S) { static if (isStaticArray!S && S.length) { enum bool hasElaborateAssign = hasElaborateAssign!(typeof(S.init[0])); } else static if (is(S == struct)) { enum hasElaborateAssign = is(typeof(S.init.opAssign(rvalueOf!S))) || is(typeof(S.init.opAssign(lvalueOf!S))) || anySatisfy!(.hasElaborateAssign, FieldTypeTuple!S); } else { enum bool hasElaborateAssign = false; } } /// @safe unittest { static assert(!hasElaborateAssign!int); static struct S { void opAssign(S) {} } static assert( hasElaborateAssign!S); static assert(!hasElaborateAssign!(const(S))); static struct S1 { void opAssign(ref S1) {} } static struct S2 { void opAssign(int) {} } static struct S3 { S s; } static assert( hasElaborateAssign!S1); static assert(!hasElaborateAssign!S2); static assert( hasElaborateAssign!S3); static assert( hasElaborateAssign!(S3[1])); static assert(!hasElaborateAssign!(S3[0])); } @safe unittest { static struct S { void opAssign(S) {} } static struct S4 { void opAssign(U)(U u) {} @disable void opAssign(U)(ref U u); } static assert( hasElaborateAssign!S4); static struct S41 { void opAssign(U)(ref U u) {} @disable void opAssign(U)(U u); } static assert( hasElaborateAssign!S41); static struct S5 { @disable this(); this(int n){ s = S(); } S s; } static assert( hasElaborateAssign!S5); static struct S6 { this(this) {} } static struct S7 { this(this) {} @disable void opAssign(S7); } static struct S8 { this(this) {} @disable void opAssign(S8); void opAssign(int) {} } static struct S9 { this(this) {} void opAssign(int) {} } static struct S10 { ~this() { } } static assert( hasElaborateAssign!S6); static assert(!hasElaborateAssign!S7); static assert(!hasElaborateAssign!S8); static assert( hasElaborateAssign!S9); static assert( hasElaborateAssign!S10); static struct SS6 { S6 s; } static struct SS7 { S7 s; } static struct SS8 { S8 s; } static struct SS9 { S9 s; } static assert( hasElaborateAssign!SS6); static assert(!hasElaborateAssign!SS7); static assert(!hasElaborateAssign!SS8); static assert( hasElaborateAssign!SS9); } /** True if `S` or any type directly embedded in the representation of `S` defines an elaborate destructor. Elaborate destructors are introduced by defining `~this()` for a $(D struct). Classes and unions never have elaborate destructors, even though classes may define `~this()`. */ template hasElaborateDestructor(S) { import core.internal.traits : hasElabDest = hasElaborateDestructor; alias hasElaborateDestructor = hasElabDest!(S); } /// @safe unittest { static assert(!hasElaborateDestructor!int); static struct S1 { } static struct S2 { ~this() {} } static struct S3 { S2 field; } static struct S4 { S3[1] field; } static struct S5 { S3[] field; } static struct S6 { S3[0] field; } static struct S7 { @disable this(); S3 field; } static assert(!hasElaborateDestructor!S1); static assert( hasElaborateDestructor!S2); static assert( hasElaborateDestructor!(immutable S2)); static assert( hasElaborateDestructor!S3); static assert( hasElaborateDestructor!(S3[1])); static assert(!hasElaborateDestructor!(S3[0])); static assert( hasElaborateDestructor!S4); static assert(!hasElaborateDestructor!S5); static assert(!hasElaborateDestructor!S6); static assert( hasElaborateDestructor!S7); } /** True if `S` or any type embedded directly in the representation of `S` defines elaborate move semantics. Elaborate move semantics are introduced by defining `opPostMove(ref typeof(this))` for a `struct`. Classes and unions never have elaborate move semantics. */ template hasElaborateMove(S) { import core.internal.traits : hasElabMove = hasElaborateMove; alias hasElaborateMove = hasElabMove!(S); } /// @safe unittest { static assert(!hasElaborateMove!int); static struct S1 { } static struct S2 { void opPostMove(ref S2) {} } static struct S3 { void opPostMove(inout ref S3) inout {} } static struct S4 { void opPostMove(const ref S4) {} } static struct S5 { void opPostMove(S5) {} } static struct S6 { void opPostMove(int) {} } static struct S7 { S3[1] field; } static struct S8 { S3[] field; } static struct S9 { S3[0] field; } static struct S10 { @disable this(); S3 field; } static assert(!hasElaborateMove!S1); static assert( hasElaborateMove!S2); static assert( hasElaborateMove!S3); static assert( hasElaborateMove!(immutable S3)); static assert( hasElaborateMove!S4); static assert(!hasElaborateMove!S5); static assert(!hasElaborateMove!S6); static assert( hasElaborateMove!S7); static assert(!hasElaborateMove!S8); static assert(!hasElaborateMove!S9); static assert( hasElaborateMove!S10); } package alias Identity(alias A) = A; /** Yields `true` if and only if `T` is an aggregate that defines a symbol called `name`. */ enum hasMember(T, string name) = __traits(hasMember, T, name); /// @safe unittest { static assert(!hasMember!(int, "blah")); struct S1 { int blah; } struct S2 { int blah(){ return 0; } } class C1 { int blah; } class C2 { int blah(){ return 0; } } static assert(hasMember!(S1, "blah")); static assert(hasMember!(S2, "blah")); static assert(hasMember!(C1, "blah")); static assert(hasMember!(C2, "blah")); } @safe unittest { // 8321 struct S { int x; void f(){} void t()(){} template T(){} } struct R1(T) { T t; alias t this; } struct R2(T) { T t; @property ref inout(T) payload() inout { return t; } alias t this; } static assert(hasMember!(S, "x")); static assert(hasMember!(S, "f")); static assert(hasMember!(S, "t")); static assert(hasMember!(S, "T")); static assert(hasMember!(R1!S, "x")); static assert(hasMember!(R1!S, "f")); static assert(hasMember!(R1!S, "t")); static assert(hasMember!(R1!S, "T")); static assert(hasMember!(R2!S, "x")); static assert(hasMember!(R2!S, "f")); static assert(hasMember!(R2!S, "t")); static assert(hasMember!(R2!S, "T")); } @safe unittest { static struct S { void opDispatch(string n, A)(A dummy) {} } static assert(hasMember!(S, "foo")); } /** * Whether the symbol represented by the string, member, exists and is a static member of T. * * Params: * T = Type containing symbol `member`. * member = Name of symbol to test that resides in `T`. * * Returns: * `true` iff `member` exists and is static. */ template hasStaticMember(T, string member) { static if (__traits(hasMember, T, member)) { static if (isPointer!T) alias U = PointerTarget!T; else alias U = T; import std.meta : Alias; alias sym = Alias!(__traits(getMember, U, member)); static if (__traits(getOverloads, U, member).length == 0) enum bool hasStaticMember = __traits(compiles, &sym); else enum bool hasStaticMember = __traits(isStaticFunction, sym); } else { enum bool hasStaticMember = false; } } /// @safe unittest { static struct S { static void sf() {} void f() {} static int si; int i; } static assert( hasStaticMember!(S, "sf")); static assert(!hasStaticMember!(S, "f")); static assert( hasStaticMember!(S, "si")); static assert(!hasStaticMember!(S, "i")); static assert(!hasStaticMember!(S, "hello")); } @safe unittest { static struct S { enum X = 10; enum Y { i = 10 } struct S {} class C {} static int sx = 0; __gshared int gx = 0; Y y; static Y sy; static void f(); static void f2() pure nothrow @nogc @safe; shared void g(); static void function() fp; __gshared void function() gfp; void function() fpm; void delegate() dm; static void delegate() sd; void m(); void m2() const pure nothrow @nogc @safe; inout(int) iom() inout; static inout(int) iosf(inout int x); @property int p(); static @property int sp(); } static class C { enum X = 10; enum Y { i = 10 } struct S {} class C {} static int sx = 0; __gshared int gx = 0; Y y; static Y sy; static void f(); static void f2() pure nothrow @nogc @safe; shared void g() { } static void function() fp; __gshared void function() gfp; void function() fpm; void delegate() dm; static void delegate() sd; void m() {} final void m2() const pure nothrow @nogc @safe; inout(int) iom() inout { return 10; } static inout(int) iosf(inout int x); @property int p() { return 10; } static @property int sp(); } static assert(!hasStaticMember!(S, "na")); static assert(!hasStaticMember!(S, "X")); static assert(!hasStaticMember!(S, "Y")); static assert(!hasStaticMember!(S, "Y.i")); static assert(!hasStaticMember!(S, "S")); static assert(!hasStaticMember!(S, "C")); static assert( hasStaticMember!(S, "sx")); static assert( hasStaticMember!(S, "gx")); static assert(!hasStaticMember!(S, "y")); static assert( hasStaticMember!(S, "sy")); static assert( hasStaticMember!(S, "f")); static assert( hasStaticMember!(S, "f2")); static assert(!hasStaticMember!(S, "dm")); static assert( hasStaticMember!(S, "sd")); static assert(!hasStaticMember!(S, "g")); static assert( hasStaticMember!(S, "fp")); static assert( hasStaticMember!(S, "gfp")); static assert(!hasStaticMember!(S, "fpm")); static assert(!hasStaticMember!(S, "m")); static assert(!hasStaticMember!(S, "m2")); static assert(!hasStaticMember!(S, "iom")); static assert( hasStaticMember!(S, "iosf")); static assert(!hasStaticMember!(S, "p")); static assert( hasStaticMember!(S, "sp")); static assert(!hasStaticMember!(C, "na")); static assert(!hasStaticMember!(C, "X")); static assert(!hasStaticMember!(C, "Y")); static assert(!hasStaticMember!(C, "Y.i")); static assert(!hasStaticMember!(C, "S")); static assert(!hasStaticMember!(C, "C")); static assert( hasStaticMember!(C, "sx")); static assert( hasStaticMember!(C, "gx")); static assert(!hasStaticMember!(C, "y")); static assert( hasStaticMember!(C, "sy")); static assert( hasStaticMember!(C, "f")); static assert( hasStaticMember!(C, "f2")); static assert(!hasStaticMember!(C, "dm")); static assert( hasStaticMember!(C, "sd")); static assert(!hasStaticMember!(C, "g")); static assert( hasStaticMember!(C, "fp")); static assert( hasStaticMember!(C, "gfp")); static assert(!hasStaticMember!(C, "fpm")); static assert(!hasStaticMember!(C, "m")); static assert(!hasStaticMember!(C, "m2")); static assert(!hasStaticMember!(C, "iom")); static assert( hasStaticMember!(C, "iosf")); static assert(!hasStaticMember!(C, "p")); static assert( hasStaticMember!(C, "sp")); alias P = S*; static assert(!hasStaticMember!(P, "na")); static assert(!hasStaticMember!(P, "X")); static assert(!hasStaticMember!(P, "Y")); static assert(!hasStaticMember!(P, "Y.i")); static assert(!hasStaticMember!(P, "S")); static assert(!hasStaticMember!(P, "C")); static assert( hasStaticMember!(P, "sx")); static assert( hasStaticMember!(P, "gx")); static assert(!hasStaticMember!(P, "y")); static assert( hasStaticMember!(P, "sy")); static assert( hasStaticMember!(P, "f")); static assert( hasStaticMember!(P, "f2")); static assert(!hasStaticMember!(P, "dm")); static assert( hasStaticMember!(P, "sd")); static assert(!hasStaticMember!(P, "g")); static assert( hasStaticMember!(P, "fp")); static assert( hasStaticMember!(P, "gfp")); static assert(!hasStaticMember!(P, "fpm")); static assert(!hasStaticMember!(P, "m")); static assert(!hasStaticMember!(P, "m2")); static assert(!hasStaticMember!(P, "iom")); static assert( hasStaticMember!(P, "iosf")); static assert(!hasStaticMember!(P, "p")); static assert( hasStaticMember!(P, "sp")); } /** Retrieves the members of an enumerated type `enum E`. Params: E = An enumerated type. `E` may have duplicated values. Returns: Static tuple composed of the members of the enumerated type `E`. The members are arranged in the same order as declared in `E`. The name of the enum can be found by querying the compiler for the name of the identifier, i.e. `__traits(identifier, EnumMembers!MyEnum[i])`. For enumerations with unique values, $(REF to, std,conv) can also be used. Note: An enum can have multiple members which have the same value. If you want to use EnumMembers to e.g. generate switch cases at compile-time, you should use the $(REF NoDuplicates, std,meta) template to avoid generating duplicate switch cases. Note: Returned values are strictly typed with `E`. Thus, the following code does not work without the explicit cast: -------------------- enum E : int { a, b, c } int[] abc = cast(int[]) [ EnumMembers!E ]; -------------------- Cast is not necessary if the type of the variable is inferred. See the example below. */ template EnumMembers(E) if (is(E == enum)) { import std.meta : AliasSeq; // Supply the specified identifier to an constant value. template WithIdentifier(string ident) { static if (ident == "Symbolize") { template Symbolize(alias value) { enum Symbolize = value; } } else { mixin("template Symbolize(alias "~ ident ~")" ~"{" ~"alias Symbolize = "~ ident ~";" ~"}"); } } template EnumSpecificMembers(names...) { static if (names.length == 1) { alias EnumSpecificMembers = AliasSeq!(WithIdentifier!(names[0]) .Symbolize!(__traits(getMember, E, names[0]))); } else static if (names.length > 0) { alias EnumSpecificMembers = AliasSeq!( WithIdentifier!(names[0]) .Symbolize!(__traits(getMember, E, names[0])), EnumSpecificMembers!(names[1 .. $/2]), EnumSpecificMembers!(names[$/2..$]) ); } else { alias EnumSpecificMembers = AliasSeq!(); } } alias EnumMembers = EnumSpecificMembers!(__traits(allMembers, E)); } /// Create an array of enumerated values @safe unittest { enum Sqrts : real { one = 1, two = 1.41421, three = 1.73205 } auto sqrts = [EnumMembers!Sqrts]; assert(sqrts == [Sqrts.one, Sqrts.two, Sqrts.three]); } /** A generic function `rank(v)` in the following example uses this template for finding a member `e` in an enumerated type `E`. */ @safe unittest { // Returns i if e is the i-th enumerator of E. static size_t rank(E)(E e) if (is(E == enum)) { static foreach (i, member; EnumMembers!E) { if (e == member) return i; } assert(0, "Not an enum member"); } enum Mode { read = 1, write = 2, map = 4 } assert(rank(Mode.read) == 0); assert(rank(Mode.write) == 1); assert(rank(Mode.map) == 2); } /** Use EnumMembers to generate a switch statement using static foreach. */ @safe unittest { import std.conv : to; class FooClass { string calledMethod; void foo() @safe { calledMethod = "foo"; } void bar() @safe { calledMethod = "bar"; } void baz() @safe { calledMethod = "baz"; } } enum FooEnum { foo, bar, baz } auto var = FooEnum.bar; auto fooObj = new FooClass(); s: final switch (var) { static foreach (member; EnumMembers!FooEnum) { case member: // Generate a case for each enum value. // Call fooObj.{name of enum value}(). __traits(getMember, fooObj, to!string(member))(); break s; } } // As we pass in FooEnum.bar, the bar() method gets called. assert(fooObj.calledMethod == "bar"); } @safe unittest { enum A { a } static assert([ EnumMembers!A ] == [ A.a ]); enum B { a, b, c, d, e } static assert([ EnumMembers!B ] == [ B.a, B.b, B.c, B.d, B.e ]); } @safe unittest // typed enums { enum A : string { a = "alpha", b = "beta" } static assert([ EnumMembers!A ] == [ A.a, A.b ]); static struct S { int value; int opCmp(S rhs) const nothrow { return value - rhs.value; } } enum B : S { a = S(1), b = S(2), c = S(3) } static assert([ EnumMembers!B ] == [ B.a, B.b, B.c ]); } @safe unittest // duplicated values { enum A { a = 0, b = 0, c = 1, d = 1, e } static assert([ EnumMembers!A ] == [ A.a, A.b, A.c, A.d, A.e ]); } @safe unittest // Bugzilla 14561: huge enums { string genEnum() { string result = "enum TLAs {"; foreach (c0; '0'..'2'+1) foreach (c1; '0'..'9'+1) foreach (c2; '0'..'9'+1) foreach (c3; '0'..'9'+1) { result ~= '_'; result ~= c0; result ~= c1; result ~= c2; result ~= c3; result ~= ','; } result ~= '}'; return result; } mixin(genEnum); static assert(EnumMembers!TLAs[0] == TLAs._0000); static assert(EnumMembers!TLAs[$-1] == TLAs._2999); } @safe unittest { enum E { member, a = 0, b = 0 } static assert(__traits(identifier, EnumMembers!E[0]) == "member"); static assert(__traits(identifier, EnumMembers!E[1]) == "a"); static assert(__traits(identifier, EnumMembers!E[2]) == "b"); } //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Classes and Interfaces //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// /*** * Get a $(D_PARAM AliasSeq) of the base class and base interfaces of * this class or interface. $(D_PARAM BaseTypeTuple!Object) returns * the empty type tuple. */ template BaseTypeTuple(A) { static if (is(A P == super)) alias BaseTypeTuple = P; else static assert(0, "argument is not a class or interface"); } /// @safe unittest { import std.meta : AliasSeq; interface I1 { } interface I2 { } interface I12 : I1, I2 { } static assert(is(BaseTypeTuple!I12 == AliasSeq!(I1, I2))); interface I3 : I1 { } interface I123 : I1, I2, I3 { } static assert(is(BaseTypeTuple!I123 == AliasSeq!(I1, I2, I3))); } @safe unittest { interface I1 { } interface I2 { } class A { } class C : A, I1, I2 { } alias TL = BaseTypeTuple!C; assert(TL.length == 3); assert(is (TL[0] == A)); assert(is (TL[1] == I1)); assert(is (TL[2] == I2)); assert(BaseTypeTuple!Object.length == 0); } /** * Get a $(D_PARAM AliasSeq) of $(I all) base classes of this class, * in decreasing order. Interfaces are not included. $(D_PARAM * BaseClassesTuple!Object) yields the empty type tuple. */ template BaseClassesTuple(T) if (is(T == class)) { static if (is(T == Object)) { alias BaseClassesTuple = AliasSeq!(); } else static if (is(BaseTypeTuple!T[0] == Object)) { alias BaseClassesTuple = AliasSeq!Object; } else static if (!is(BaseTypeTuple!T[0] == Object) && !is(BaseTypeTuple!T[0] == class)) { alias BaseClassesTuple = AliasSeq!(); } else { alias BaseClassesTuple = AliasSeq!(BaseTypeTuple!T[0], BaseClassesTuple!(BaseTypeTuple!T[0])); } } /// @safe unittest { import std.meta : AliasSeq; class C1 { } class C2 : C1 { } class C3 : C2 { } static assert(!BaseClassesTuple!Object.length); static assert(is(BaseClassesTuple!C1 == AliasSeq!(Object))); static assert(is(BaseClassesTuple!C2 == AliasSeq!(C1, Object))); static assert(is(BaseClassesTuple!C3 == AliasSeq!(C2, C1, Object))); } @safe unittest // issue 17276 { extern (C++) static interface Ext { void someext(); } extern (C++) static class E : Ext { void someext() {} } alias BaseClassesWithNoObject = BaseClassesTuple!E; } @safe unittest { struct S { } static assert(!__traits(compiles, BaseClassesTuple!S)); interface I { } static assert(!__traits(compiles, BaseClassesTuple!I)); class C4 : I { } class C5 : C4, I { } static assert(is(BaseClassesTuple!C5 == AliasSeq!(C4, Object))); } /** Params: T = The `class` or `interface` to search. Returns: $(REF AliasSeq,std,meta) of all interfaces directly or indirectly inherited by this class or interface. Interfaces do not repeat if multiply implemented. `InterfacesTuple!Object` yields an empty `AliasSeq`. */ template InterfacesTuple(T) { import std.meta : NoDuplicates; template Flatten(H, T...) { static if (T.length) { alias Flatten = AliasSeq!(Flatten!H, Flatten!T); } else { static if (is(H == interface)) alias Flatten = AliasSeq!(H, InterfacesTuple!H); else alias Flatten = InterfacesTuple!H; } } static if (is(T S == super) && S.length) alias InterfacesTuple = NoDuplicates!(Flatten!S); else alias InterfacesTuple = AliasSeq!(); } /// @safe unittest { interface I1 {} interface I2 {} class A : I1, I2 {} class B : A, I1 {} class C : B {} alias TL = InterfacesTuple!C; static assert(is(TL[0] == I1) && is(TL[1] == I2)); } @safe unittest { interface Iaa {} interface Iab {} interface Iba {} interface Ibb {} interface Ia : Iaa, Iab {} interface Ib : Iba, Ibb {} interface I : Ia, Ib {} interface J {} class B2 : J {} class C2 : B2, Ia, Ib {} static assert(is(InterfacesTuple!I == AliasSeq!(Ia, Iaa, Iab, Ib, Iba, Ibb))); static assert(is(InterfacesTuple!C2 == AliasSeq!(J, Ia, Iaa, Iab, Ib, Iba, Ibb))); } /** * Get a $(D_PARAM AliasSeq) of $(I all) base classes of $(D_PARAM * T), in decreasing order, followed by $(D_PARAM T)'s * interfaces. $(D_PARAM TransitiveBaseTypeTuple!Object) yields the * empty type tuple. */ template TransitiveBaseTypeTuple(T) { static if (is(T == Object)) alias TransitiveBaseTypeTuple = AliasSeq!(); else alias TransitiveBaseTypeTuple = AliasSeq!(BaseClassesTuple!T, InterfacesTuple!T); } /// @safe unittest { interface J1 {} interface J2 {} class B1 {} class B2 : B1, J1, J2 {} class B3 : B2, J1 {} alias TL = TransitiveBaseTypeTuple!B3; assert(TL.length == 5); assert(is (TL[0] == B2)); assert(is (TL[1] == B1)); assert(is (TL[2] == Object)); assert(is (TL[3] == J1)); assert(is (TL[4] == J2)); assert(TransitiveBaseTypeTuple!Object.length == 0); } /** Returns a tuple of non-static functions with the name `name` declared in the class or interface `C`. Covariant duplicates are shrunk into the most derived one. */ template MemberFunctionsTuple(C, string name) if (is(C == class) || is(C == interface)) { static if (__traits(hasMember, C, name)) { /* * First, collect all overloads in the class hierarchy. */ template CollectOverloads(Node) { static if (__traits(hasMember, Node, name) && __traits(compiles, __traits(getMember, Node, name))) { // Get all overloads in sight (not hidden). alias inSight = __traits(getVirtualFunctions, Node, name); // And collect all overloads in ancestor classes to reveal hidden // methods. The result may contain duplicates. template walkThru(Parents...) { static if (Parents.length > 0) alias walkThru = AliasSeq!( CollectOverloads!(Parents[0]), walkThru!(Parents[1 .. $]) ); else alias walkThru = AliasSeq!(); } static if (is(Node Parents == super)) alias CollectOverloads = AliasSeq!(inSight, walkThru!Parents); else alias CollectOverloads = AliasSeq!inSight; } else alias CollectOverloads = AliasSeq!(); // no overloads in this hierarchy } // duplicates in this tuple will be removed by shrink() alias overloads = CollectOverloads!C; // shrinkOne!args[0] = the most derived one in the covariant siblings of target // shrinkOne!args[1..$] = non-covariant others template shrinkOne(/+ alias target, rest... +/ args...) { import std.meta : AliasSeq; alias target = args[0 .. 1]; // prevent property functions from being evaluated alias rest = args[1 .. $]; static if (rest.length > 0) { alias Target = FunctionTypeOf!target; alias Rest0 = FunctionTypeOf!(rest[0]); static if (isCovariantWith!(Target, Rest0) && isCovariantWith!(Rest0, Target)) { // One of these overrides the other. Choose the one from the most derived parent. static if (is(__traits(parent, target) : __traits(parent, rest[0]))) alias shrinkOne = shrinkOne!(target, rest[1 .. $]); else alias shrinkOne = shrinkOne!(rest[0], rest[1 .. $]); } else static if (isCovariantWith!(Target, Rest0)) // target overrides rest[0] -- erase rest[0]. alias shrinkOne = shrinkOne!(target, rest[1 .. $]); else static if (isCovariantWith!(Rest0, Target)) // rest[0] overrides target -- erase target. alias shrinkOne = shrinkOne!(rest[0], rest[1 .. $]); else // target and rest[0] are distinct. alias shrinkOne = AliasSeq!( shrinkOne!(target, rest[1 .. $]), rest[0] // keep ); } else alias shrinkOne = AliasSeq!target; // done } /* * Now shrink covariant overloads into one. */ template shrink(overloads...) { static if (overloads.length > 0) { alias temp = shrinkOne!overloads; alias shrink = AliasSeq!(temp[0], shrink!(temp[1 .. $])); } else alias shrink = AliasSeq!(); // done } // done. alias MemberFunctionsTuple = shrink!overloads; } else alias MemberFunctionsTuple = AliasSeq!(); } /// @safe unittest { interface I { I foo(); } class B { real foo(real v) { return v; } } class C : B, I { override C foo() { return this; } // covariant overriding of I.foo() } alias foos = MemberFunctionsTuple!(C, "foo"); static assert(foos.length == 2); static assert(__traits(isSame, foos[0], C.foo)); static assert(__traits(isSame, foos[1], B.foo)); } @safe unittest // Issue 15920 { import std.meta : AliasSeq; class A { void f(){} void f(int){} } class B : A { override void f(){} override void f(int){} } alias fs = MemberFunctionsTuple!(B, "f"); alias bfs = __traits(getOverloads, B, "f"); assert(__traits(isSame, fs[0], bfs[0]) || __traits(isSame, fs[0], bfs[1])); assert(__traits(isSame, fs[1], bfs[0]) || __traits(isSame, fs[1], bfs[1])); } @safe unittest { interface I { I test(); } interface J : I { J test(); } interface K { K test(int); } class B : I, K { K test(int) { return this; } B test() { return this; } static void test(string) { } } class C : B, J { override C test() { return this; } } alias test =MemberFunctionsTuple!(C, "test"); static assert(test.length == 2); static assert(is(FunctionTypeOf!(test[0]) == FunctionTypeOf!(C.test))); static assert(is(FunctionTypeOf!(test[1]) == FunctionTypeOf!(K.test))); alias noexist = MemberFunctionsTuple!(C, "noexist"); static assert(noexist.length == 0); interface L { int prop() @property; } alias prop = MemberFunctionsTuple!(L, "prop"); static assert(prop.length == 1); interface Test_I { void foo(); void foo(int); void foo(int, int); } interface Test : Test_I {} alias Test_foo = MemberFunctionsTuple!(Test, "foo"); static assert(Test_foo.length == 3); static assert(is(typeof(&Test_foo[0]) == void function())); static assert(is(typeof(&Test_foo[2]) == void function(int))); static assert(is(typeof(&Test_foo[1]) == void function(int, int))); } /** Returns an alias to the template that `T` is an instance of. It will return `void` if a symbol without a template is given. */ template TemplateOf(alias T : Base!Args, alias Base, Args...) { alias TemplateOf = Base; } /// ditto template TemplateOf(T : Base!Args, alias Base, Args...) { alias TemplateOf = Base; } /// ditto template TemplateOf(T) { alias TemplateOf = void; } /// @safe unittest { struct Foo(T, U) {} static assert(__traits(isSame, TemplateOf!(Foo!(int, real)), Foo)); } @safe unittest { template Foo1(A) {} template Foo2(A, B) {} template Foo3(alias A) {} template Foo4(string A) {} struct Foo5(A) {} struct Foo6(A, B) {} struct Foo7(alias A) {} template Foo8(A) { template Foo9(B) {} } template Foo10() {} static assert(__traits(isSame, TemplateOf!(Foo1!(int)), Foo1)); static assert(__traits(isSame, TemplateOf!(Foo2!(int, int)), Foo2)); static assert(__traits(isSame, TemplateOf!(Foo3!(123)), Foo3)); static assert(__traits(isSame, TemplateOf!(Foo4!("123")), Foo4)); static assert(__traits(isSame, TemplateOf!(Foo5!(int)), Foo5)); static assert(__traits(isSame, TemplateOf!(Foo6!(int, int)), Foo6)); static assert(__traits(isSame, TemplateOf!(Foo7!(123)), Foo7)); static assert(__traits(isSame, TemplateOf!(Foo8!(int).Foo9!(real)), Foo8!(int).Foo9)); static assert(__traits(isSame, TemplateOf!(Foo10!()), Foo10)); } // https://issues.dlang.org/show_bug.cgi?id=18214 @safe unittest { static assert(is(TemplateOf!(int[]) == void)); static assert(is(TemplateOf!bool == void)); } /** Returns a `AliasSeq` of the template arguments used to instantiate `T`. */ template TemplateArgsOf(alias T : Base!Args, alias Base, Args...) { alias TemplateArgsOf = Args; } /// ditto template TemplateArgsOf(T : Base!Args, alias Base, Args...) { alias TemplateArgsOf = Args; } /// @safe unittest { import std.meta : AliasSeq; struct Foo(T, U) {} static assert(is(TemplateArgsOf!(Foo!(int, real)) == AliasSeq!(int, real))); } @safe unittest { template Foo1(A) {} template Foo2(A, B) {} template Foo3(alias A) {} template Foo4(string A) {} struct Foo5(A) {} struct Foo6(A, B) {} struct Foo7(alias A) {} template Foo8(A) { template Foo9(B) {} } template Foo10() {} enum x = 123; enum y = "123"; static assert(is(TemplateArgsOf!(Foo1!(int)) == AliasSeq!(int))); static assert(is(TemplateArgsOf!(Foo2!(int, int)) == AliasSeq!(int, int))); static assert(__traits(isSame, TemplateArgsOf!(Foo3!(x)), AliasSeq!(x))); static assert(TemplateArgsOf!(Foo4!(y)) == AliasSeq!(y)); static assert(is(TemplateArgsOf!(Foo5!(int)) == AliasSeq!(int))); static assert(is(TemplateArgsOf!(Foo6!(int, int)) == AliasSeq!(int, int))); static assert(__traits(isSame, TemplateArgsOf!(Foo7!(x)), AliasSeq!(x))); static assert(is(TemplateArgsOf!(Foo8!(int).Foo9!(real)) == AliasSeq!(real))); static assert(is(TemplateArgsOf!(Foo10!()) == AliasSeq!())); } package template maxAlignment(U...) if (isTypeTuple!U) { static if (U.length == 0) static assert(0); else static if (U.length == 1) enum maxAlignment = U[0].alignof; else static if (U.length == 2) enum maxAlignment = U[0].alignof > U[1].alignof ? U[0].alignof : U[1].alignof; else { enum a = maxAlignment!(U[0 .. ($+1)/2]); enum b = maxAlignment!(U[($+1)/2 .. $]); enum maxAlignment = a > b ? a : b; } } /** Returns class instance alignment. */ template classInstanceAlignment(T) if (is(T == class)) { alias classInstanceAlignment = maxAlignment!(void*, typeof(T.tupleof)); } /// @safe unittest { class A { byte b; } class B { long l; } // As class instance always has a hidden pointer static assert(classInstanceAlignment!A == (void*).alignof); static assert(classInstanceAlignment!B == long.alignof); } //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Type Conversion //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// /** Get the type that all types can be implicitly converted to. Useful e.g. in figuring out an array type from a bunch of initializing values. Returns $(D_PARAM void) if passed an empty list, or if the types have no common type. */ template CommonType(T...) { static if (!T.length) { alias CommonType = void; } else static if (T.length == 1) { static if (is(typeof(T[0]))) { alias CommonType = typeof(T[0]); } else { alias CommonType = T[0]; } } else static if (is(typeof(true ? T[0].init : T[1].init) U)) { alias CommonType = CommonType!(U, T[2 .. $]); } else alias CommonType = void; } /// @safe unittest { alias X = CommonType!(int, long, short); assert(is(X == long)); alias Y = CommonType!(int, char[], short); assert(is(Y == void)); } /// @safe unittest { static assert(is(CommonType!(3) == int)); static assert(is(CommonType!(double, 4, float) == double)); static assert(is(CommonType!(string, char[]) == const(char)[])); static assert(is(CommonType!(3, 3U) == uint)); static assert(is(CommonType!(double, int) == double)); } /** Params: T = The type to check Returns: An $(REF AliasSeq,std,meta) with all possible target types of an implicit conversion `T`. If `T` is a class derived from `Object`, the the result of $(LREF TransitiveBaseTypeTuple) is returned. If the type is not a built-in value type or a class derived from `Object`, the an empty $(REF AliasSeq,std,meta) is returned. Note: The possible targets are computed more conservatively than the language allows, eliminating all dangerous conversions. For example, `ImplicitConversionTargets!double` does not include `float`. See_Also: $(LREF isImplicitlyConvertible) */ template ImplicitConversionTargets(T) { static if (is(T == bool)) alias ImplicitConversionTargets = AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong, CentTypeList, float, double, real, char, wchar, dchar); else static if (is(T == byte)) alias ImplicitConversionTargets = AliasSeq!(short, ushort, int, uint, long, ulong, CentTypeList, float, double, real, char, wchar, dchar); else static if (is(T == ubyte)) alias ImplicitConversionTargets = AliasSeq!(short, ushort, int, uint, long, ulong, CentTypeList, float, double, real, char, wchar, dchar); else static if (is(T == short)) alias ImplicitConversionTargets = AliasSeq!(int, uint, long, ulong, CentTypeList, float, double, real); else static if (is(T == ushort)) alias ImplicitConversionTargets = AliasSeq!(int, uint, long, ulong, CentTypeList, float, double, real); else static if (is(T == int)) alias ImplicitConversionTargets = AliasSeq!(long, ulong, CentTypeList, float, double, real); else static if (is(T == uint)) alias ImplicitConversionTargets = AliasSeq!(long, ulong, CentTypeList, float, double, real); else static if (is(T == long)) alias ImplicitConversionTargets = AliasSeq!(float, double, real); else static if (is(T == ulong)) alias ImplicitConversionTargets = AliasSeq!(float, double, real); else static if (is(cent) && is(T == cent)) alias ImplicitConversionTargets = AliasSeq!(float, double, real); else static if (is(ucent) && is(T == ucent)) alias ImplicitConversionTargets = AliasSeq!(float, double, real); else static if (is(T == float)) alias ImplicitConversionTargets = AliasSeq!(double, real); else static if (is(T == double)) alias ImplicitConversionTargets = AliasSeq!real; else static if (is(T == char)) alias ImplicitConversionTargets = AliasSeq!(wchar, dchar, byte, ubyte, short, ushort, int, uint, long, ulong, CentTypeList, float, double, real); else static if (is(T == wchar)) alias ImplicitConversionTargets = AliasSeq!(dchar, short, ushort, int, uint, long, ulong, CentTypeList, float, double, real); else static if (is(T == dchar)) alias ImplicitConversionTargets = AliasSeq!(int, uint, long, ulong, CentTypeList, float, double, real); else static if (is(T : typeof(null))) alias ImplicitConversionTargets = AliasSeq!(typeof(null)); else static if (is(T : Object)) alias ImplicitConversionTargets = TransitiveBaseTypeTuple!(T); else static if (isDynamicArray!T && !is(typeof(T.init[0]) == const)) { static if (is(typeof(T.init[0]) == shared)) alias ImplicitConversionTargets = AliasSeq!(const(shared(Unqual!(typeof(T.init[0]))))[]); else alias ImplicitConversionTargets = AliasSeq!(const(Unqual!(typeof(T.init[0])))[]); } else static if (is(T : void*)) alias ImplicitConversionTargets = AliasSeq!(void*); else alias ImplicitConversionTargets = AliasSeq!(); } /// @safe unittest { import std.meta : AliasSeq; static assert(is(ImplicitConversionTargets!(ulong) == AliasSeq!(float, double, real))); static assert(is(ImplicitConversionTargets!(int) == AliasSeq!(long, ulong, float, double, real))); static assert(is(ImplicitConversionTargets!(float) == AliasSeq!(double, real))); static assert(is(ImplicitConversionTargets!(double) == AliasSeq!(real))); static assert(is(ImplicitConversionTargets!(char) == AliasSeq!( wchar, dchar, byte, ubyte, short, ushort, int, uint, long, ulong, float, double, real ))); static assert(is(ImplicitConversionTargets!(wchar) == AliasSeq!( dchar, short, ushort, int, uint, long, ulong, float, double, real ))); static assert(is(ImplicitConversionTargets!(dchar) == AliasSeq!( int, uint, long, ulong, float, double, real ))); static assert(is(ImplicitConversionTargets!(string) == AliasSeq!(const(char)[]))); static assert(is(ImplicitConversionTargets!(void*) == AliasSeq!(void*))); interface A {} interface B {} class C : A, B {} static assert(is(ImplicitConversionTargets!(C) == AliasSeq!(Object, A, B))); } @safe unittest { static assert(is(ImplicitConversionTargets!(double)[0] == real)); static assert(is(ImplicitConversionTargets!(string)[0] == const(char)[])); } /** Is `From` implicitly convertible to `To`? */ enum bool isImplicitlyConvertible(From, To) = is(From : To); /// @safe unittest { static assert( isImplicitlyConvertible!(immutable(char), char)); static assert( isImplicitlyConvertible!(const(char), char)); static assert( isImplicitlyConvertible!(char, wchar)); static assert(!isImplicitlyConvertible!(wchar, char)); static assert(!isImplicitlyConvertible!(const(ushort), ubyte)); static assert(!isImplicitlyConvertible!(const(uint), ubyte)); static assert(!isImplicitlyConvertible!(const(ulong), ubyte)); static assert(!isImplicitlyConvertible!(const(char)[], string)); static assert( isImplicitlyConvertible!(string, const(char)[])); } /** Returns `true` iff a value of type `Rhs` can be assigned to a variable of type `Lhs`. `isAssignable` returns whether both an lvalue and rvalue can be assigned. If you omit `Rhs`, `isAssignable` will check identity assignable of `Lhs`. */ enum isAssignable(Lhs, Rhs = Lhs) = isRvalueAssignable!(Lhs, Rhs) && isLvalueAssignable!(Lhs, Rhs); /// @safe unittest { static assert( isAssignable!(long, int)); static assert(!isAssignable!(int, long)); static assert( isAssignable!(const(char)[], string)); static assert(!isAssignable!(string, char[])); // int is assignable to int static assert( isAssignable!int); // immutable int is not assignable to immutable int static assert(!isAssignable!(immutable int)); } // ditto private enum isRvalueAssignable(Lhs, Rhs = Lhs) = __traits(compiles, lvalueOf!Lhs = rvalueOf!Rhs); // ditto private enum isLvalueAssignable(Lhs, Rhs = Lhs) = __traits(compiles, lvalueOf!Lhs = lvalueOf!Rhs); @safe unittest { static assert(!isAssignable!(immutable int, int)); static assert( isAssignable!(int, immutable int)); static assert(!isAssignable!(inout int, int)); static assert( isAssignable!(int, inout int)); static assert(!isAssignable!(inout int)); static assert( isAssignable!(shared int, int)); static assert( isAssignable!(int, shared int)); static assert( isAssignable!(shared int)); static assert( isAssignable!(void[1], void[1])); struct S { @disable this(); this(int n){} } static assert( isAssignable!(S, S)); struct S2 { this(int n){} } static assert( isAssignable!(S2, S2)); static assert(!isAssignable!(S2, int)); struct S3 { @disable void opAssign(); } static assert( isAssignable!(S3, S3)); struct S3X { @disable void opAssign(S3X); } static assert(!isAssignable!(S3X, S3X)); struct S4 { void opAssign(int); } static assert( isAssignable!(S4, S4)); static assert( isAssignable!(S4, int)); static assert( isAssignable!(S4, immutable int)); struct S5 { @disable this(); @disable this(this); } struct S6 { void opAssign(in ref S5); } static assert(!isAssignable!(S6, S5)); static assert(!isRvalueAssignable!(S6, S5)); static assert( isLvalueAssignable!(S6, S5)); static assert( isLvalueAssignable!(S6, immutable S5)); } // Equivalent with TypeStruct::isAssignable in compiler code. package template isBlitAssignable(T) { static if (is(OriginalType!T U) && !is(T == U)) { enum isBlitAssignable = isBlitAssignable!U; } else static if (isStaticArray!T && is(T == E[n], E, size_t n)) // Workaround for issue 11499 : isStaticArray!T should not be necessary. { enum isBlitAssignable = isBlitAssignable!E; } else static if (is(T == struct) || is(T == union)) { enum isBlitAssignable = isMutable!T && { size_t offset = 0; bool assignable = true; foreach (i, F; FieldTypeTuple!T) { static if (i == 0) { } else { if (T.tupleof[i].offsetof == offset) { if (assignable) continue; } else { if (!assignable) return false; } } assignable = isBlitAssignable!(typeof(T.tupleof[i])); offset = T.tupleof[i].offsetof; } return assignable; }(); } else enum isBlitAssignable = isMutable!T; } @safe unittest { static assert( isBlitAssignable!int); static assert(!isBlitAssignable!(const int)); class C{ const int i; } static assert( isBlitAssignable!C); struct S1{ int i; } struct S2{ const int i; } static assert( isBlitAssignable!S1); static assert(!isBlitAssignable!S2); struct S3X { union { int x; int y; } } struct S3Y { union { int x; const int y; } } struct S3Z { union { const int x; const int y; } } static assert( isBlitAssignable!(S3X)); static assert( isBlitAssignable!(S3Y)); static assert(!isBlitAssignable!(S3Z)); static assert(!isBlitAssignable!(const S3X)); static assert(!isBlitAssignable!(inout S3Y)); static assert(!isBlitAssignable!(immutable S3Z)); static assert( isBlitAssignable!(S3X[3])); static assert( isBlitAssignable!(S3Y[3])); static assert(!isBlitAssignable!(S3Z[3])); enum ES3X : S3X { a = S3X() } enum ES3Y : S3Y { a = S3Y() } enum ES3Z : S3Z { a = S3Z() } static assert( isBlitAssignable!(ES3X)); static assert( isBlitAssignable!(ES3Y)); static assert(!isBlitAssignable!(ES3Z)); static assert(!isBlitAssignable!(const ES3X)); static assert(!isBlitAssignable!(inout ES3Y)); static assert(!isBlitAssignable!(immutable ES3Z)); static assert( isBlitAssignable!(ES3X[3])); static assert( isBlitAssignable!(ES3Y[3])); static assert(!isBlitAssignable!(ES3Z[3])); union U1X { int x; int y; } union U1Y { int x; const int y; } union U1Z { const int x; const int y; } static assert( isBlitAssignable!(U1X)); static assert( isBlitAssignable!(U1Y)); static assert(!isBlitAssignable!(U1Z)); static assert(!isBlitAssignable!(const U1X)); static assert(!isBlitAssignable!(inout U1Y)); static assert(!isBlitAssignable!(immutable U1Z)); static assert( isBlitAssignable!(U1X[3])); static assert( isBlitAssignable!(U1Y[3])); static assert(!isBlitAssignable!(U1Z[3])); enum EU1X : U1X { a = U1X() } enum EU1Y : U1Y { a = U1Y() } enum EU1Z : U1Z { a = U1Z() } static assert( isBlitAssignable!(EU1X)); static assert( isBlitAssignable!(EU1Y)); static assert(!isBlitAssignable!(EU1Z)); static assert(!isBlitAssignable!(const EU1X)); static assert(!isBlitAssignable!(inout EU1Y)); static assert(!isBlitAssignable!(immutable EU1Z)); static assert( isBlitAssignable!(EU1X[3])); static assert( isBlitAssignable!(EU1Y[3])); static assert(!isBlitAssignable!(EU1Z[3])); struct SA { @property int[3] foo() { return [1,2,3]; } alias foo this; const int x; // SA is not blit assignable } static assert(!isStaticArray!SA); static assert(!isBlitAssignable!(SA[3])); } /* Works like `isImplicitlyConvertible`, except this cares only about storage classes of the arguments. */ private template isStorageClassImplicitlyConvertible(From, To) { alias Pointify(T) = void*; enum isStorageClassImplicitlyConvertible = isImplicitlyConvertible!( ModifyTypePreservingTQ!(Pointify, From), ModifyTypePreservingTQ!(Pointify, To) ); } @safe unittest { static assert( isStorageClassImplicitlyConvertible!( int, const int)); static assert( isStorageClassImplicitlyConvertible!(immutable int, const int)); static assert(!isStorageClassImplicitlyConvertible!(const int, int)); static assert(!isStorageClassImplicitlyConvertible!(const int, immutable int)); static assert(!isStorageClassImplicitlyConvertible!(int, shared int)); static assert(!isStorageClassImplicitlyConvertible!(shared int, int)); } /** Determines whether the function type `F` is covariant with `G`, i.e., functions of the type `F` can override ones of the type `G`. */ template isCovariantWith(F, G) if (is(F == function) && is(G == function) || is(F == delegate) && is(G == delegate) || isFunctionPointer!F && isFunctionPointer!G) { static if (is(F : G)) enum isCovariantWith = true; else { alias Upr = F; alias Lwr = G; /* * Check for calling convention: require exact match. */ template checkLinkage() { enum ok = functionLinkage!Upr == functionLinkage!Lwr; } /* * Check for variadic parameter: require exact match. */ template checkVariadicity() { enum ok = variadicFunctionStyle!Upr == variadicFunctionStyle!Lwr; } /* * Check for function storage class: * - overrider can have narrower storage class than base */ template checkSTC() { // Note the order of arguments. The convertion order Lwr -> Upr is // correct since Upr should be semantically 'narrower' than Lwr. enum ok = isStorageClassImplicitlyConvertible!(Lwr, Upr); } /* * Check for function attributes: * - require exact match for ref and @property * - overrider can add pure and nothrow, but can't remove them * - @safe and @trusted are covariant with each other, unremovable */ template checkAttributes() { alias FA = FunctionAttribute; enum uprAtts = functionAttributes!Upr; enum lwrAtts = functionAttributes!Lwr; // enum wantExact = FA.ref_ | FA.property; enum safety = FA.safe | FA.trusted; enum ok = ( (uprAtts & wantExact) == (lwrAtts & wantExact)) && ( (uprAtts & FA.pure_ ) >= (lwrAtts & FA.pure_ )) && ( (uprAtts & FA.nothrow_) >= (lwrAtts & FA.nothrow_)) && (!!(uprAtts & safety ) >= !!(lwrAtts & safety )) ; } /* * Check for return type: usual implicit convertion. */ template checkReturnType() { enum ok = is(ReturnType!Upr : ReturnType!Lwr); } /* * Check for parameters: * - require exact match for types (cf. bugzilla 3075) * - require exact match for in, out, ref and lazy * - overrider can add scope, but can't remove */ template checkParameters() { alias STC = ParameterStorageClass; alias UprParams = Parameters!Upr; alias LwrParams = Parameters!Lwr; alias UprPSTCs = ParameterStorageClassTuple!Upr; alias LwrPSTCs = ParameterStorageClassTuple!Lwr; // template checkNext(size_t i) { static if (i < UprParams.length) { enum uprStc = UprPSTCs[i]; enum lwrStc = LwrPSTCs[i]; // enum wantExact = STC.out_ | STC.ref_ | STC.lazy_ | STC.return_; enum ok = ((uprStc & wantExact ) == (lwrStc & wantExact )) && ((uprStc & STC.scope_) >= (lwrStc & STC.scope_)) && checkNext!(i + 1).ok; } else enum ok = true; // done } static if (UprParams.length == LwrParams.length) enum ok = is(UprParams == LwrParams) && checkNext!(0).ok; else enum ok = false; } /* run all the checks */ enum isCovariantWith = checkLinkage !().ok && checkVariadicity!().ok && checkSTC !().ok && checkAttributes !().ok && checkReturnType !().ok && checkParameters !().ok ; } } /// @safe unittest { interface I { I clone(); } interface J { J clone(); } class C : I { override C clone() // covariant overriding of I.clone() { return new C; } } // C.clone() can override I.clone(), indeed. static assert(isCovariantWith!(typeof(C.clone), typeof(I.clone))); // C.clone() can't override J.clone(); the return type C is not implicitly // convertible to J. static assert(!isCovariantWith!(typeof(C.clone), typeof(J.clone))); } @safe unittest { enum bool isCovariantWith(alias f, alias g) = .isCovariantWith!(typeof(f), typeof(g)); // covariant return type interface I {} interface J : I {} interface BaseA { const(I) test(int); } interface DerivA_1 : BaseA { override const(J) test(int); } interface DerivA_2 : BaseA { override J test(int); } static assert( isCovariantWith!(DerivA_1.test, BaseA.test)); static assert( isCovariantWith!(DerivA_2.test, BaseA.test)); static assert(!isCovariantWith!(BaseA.test, DerivA_1.test)); static assert(!isCovariantWith!(BaseA.test, DerivA_2.test)); static assert( isCovariantWith!(BaseA.test, BaseA.test)); static assert( isCovariantWith!(DerivA_1.test, DerivA_1.test)); static assert( isCovariantWith!(DerivA_2.test, DerivA_2.test)); // function, function pointer and delegate J function() derived_function; I function() base_function; J delegate() derived_delegate; I delegate() base_delegate; static assert(.isCovariantWith!(typeof(derived_function), typeof(base_function))); static assert(.isCovariantWith!(typeof(*derived_function), typeof(*base_function))); static assert(.isCovariantWith!(typeof(derived_delegate), typeof(base_delegate))); // scope parameter interface BaseB { void test( int*, int*); } interface DerivB_1 : BaseB { override void test(scope int*, int*); } interface DerivB_2 : BaseB { override void test( int*, scope int*); } interface DerivB_3 : BaseB { override void test(scope int*, scope int*); } static assert( isCovariantWith!(DerivB_1.test, BaseB.test)); static assert( isCovariantWith!(DerivB_2.test, BaseB.test)); static assert( isCovariantWith!(DerivB_3.test, BaseB.test)); static assert(!isCovariantWith!(BaseB.test, DerivB_1.test)); static assert(!isCovariantWith!(BaseB.test, DerivB_2.test)); static assert(!isCovariantWith!(BaseB.test, DerivB_3.test)); // function storage class interface BaseC { void test() ; } interface DerivC_1 : BaseC { override void test() const; } static assert( isCovariantWith!(DerivC_1.test, BaseC.test)); static assert(!isCovariantWith!(BaseC.test, DerivC_1.test)); // increasing safety interface BaseE { void test() ; } interface DerivE_1 : BaseE { override void test() @safe ; } interface DerivE_2 : BaseE { override void test() @trusted; } static assert( isCovariantWith!(DerivE_1.test, BaseE.test)); static assert( isCovariantWith!(DerivE_2.test, BaseE.test)); static assert(!isCovariantWith!(BaseE.test, DerivE_1.test)); static assert(!isCovariantWith!(BaseE.test, DerivE_2.test)); // @safe and @trusted interface BaseF { void test1() @safe; void test2() @trusted; } interface DerivF : BaseF { override void test1() @trusted; override void test2() @safe; } static assert( isCovariantWith!(DerivF.test1, BaseF.test1)); static assert( isCovariantWith!(DerivF.test2, BaseF.test2)); } // Needed for rvalueOf/lvalueOf because "inout on return means // inout must be on a parameter as well" private struct __InoutWorkaroundStruct{} /** Creates an lvalue or rvalue of type `T` for `typeof(...)` and `__traits(compiles, ...)` purposes. No actual value is returned. Params: T = The type to transform Note: Trying to use returned value will result in a "Symbol Undefined" error at link time. */ @property T rvalueOf(T)(inout __InoutWorkaroundStruct = __InoutWorkaroundStruct.init); /// ditto @property ref T lvalueOf(T)(inout __InoutWorkaroundStruct = __InoutWorkaroundStruct.init); // Note: can't put these unittests together as function overloads // aren't allowed inside functions. /// @system unittest { static int f(int); static assert(is(typeof(f(rvalueOf!int)) == int)); } /// @system unittest { static bool f(ref int); static assert(is(typeof(f(lvalueOf!int)) == bool)); } @system unittest { void needLvalue(T)(ref T); static struct S { } int i; struct Nested { void f() { ++i; } } static foreach (T; AliasSeq!(int, immutable int, inout int, string, S, Nested, Object)) { static assert(!__traits(compiles, needLvalue(rvalueOf!T))); static assert( __traits(compiles, needLvalue(lvalueOf!T))); static assert(is(typeof(rvalueOf!T) == T)); static assert(is(typeof(lvalueOf!T) == T)); } static assert(!__traits(compiles, rvalueOf!int = 1)); static assert( __traits(compiles, lvalueOf!byte = 127)); static assert(!__traits(compiles, lvalueOf!byte = 128)); } //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // SomethingTypeOf //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// private template AliasThisTypeOf(T) if (isAggregateType!T) { alias members = __traits(getAliasThis, T); static if (members.length == 1) { alias AliasThisTypeOf = typeof(__traits(getMember, T.init, members[0])); } else static assert(0, T.stringof~" does not have alias this type"); } /* */ template BooleanTypeOf(T) { static if (is(AliasThisTypeOf!T AT) && !is(AT[] == AT)) alias X = BooleanTypeOf!AT; else alias X = OriginalType!T; static if (is(Unqual!X == bool)) { alias BooleanTypeOf = X; } else static assert(0, T.stringof~" is not boolean type"); } @safe unittest { // unexpected failure, maybe dmd type-merging bug static foreach (T; AliasSeq!bool) static foreach (Q; TypeQualifierList) { static assert( is(Q!T == BooleanTypeOf!( Q!T ))); static assert( is(Q!T == BooleanTypeOf!( SubTypeOf!(Q!T) ))); } static foreach (T; AliasSeq!(void, NumericTypeList, /*ImaginaryTypeList, ComplexTypeList,*/ CharTypeList)) static foreach (Q; TypeQualifierList) { static assert(!is(BooleanTypeOf!( Q!T )), Q!T.stringof); static assert(!is(BooleanTypeOf!( SubTypeOf!(Q!T) ))); } } @safe unittest { struct B { bool val; alias val this; } struct S { B b; alias b this; } static assert(is(BooleanTypeOf!B == bool)); static assert(is(BooleanTypeOf!S == bool)); } /* */ template IntegralTypeOf(T) { import std.meta : staticIndexOf; static if (is(AliasThisTypeOf!T AT) && !is(AT[] == AT)) alias X = IntegralTypeOf!AT; else alias X = OriginalType!T; static if (staticIndexOf!(Unqual!X, IntegralTypeList) >= 0) { alias IntegralTypeOf = X; } else static assert(0, T.stringof~" is not an integral type"); } @safe unittest { static foreach (T; IntegralTypeList) static foreach (Q; TypeQualifierList) { static assert( is(Q!T == IntegralTypeOf!( Q!T ))); static assert( is(Q!T == IntegralTypeOf!( SubTypeOf!(Q!T) ))); } static foreach (T; AliasSeq!(void, bool, FloatingPointTypeList, /*ImaginaryTypeList, ComplexTypeList,*/ CharTypeList)) static foreach (Q; TypeQualifierList) { static assert(!is(IntegralTypeOf!( Q!T ))); static assert(!is(IntegralTypeOf!( SubTypeOf!(Q!T) ))); } } /* */ template FloatingPointTypeOf(T) { import std.meta : staticIndexOf; static if (is(AliasThisTypeOf!T AT) && !is(AT[] == AT)) alias X = FloatingPointTypeOf!AT; else alias X = OriginalType!T; static if (staticIndexOf!(Unqual!X, FloatingPointTypeList) >= 0) { alias FloatingPointTypeOf = X; } else static assert(0, T.stringof~" is not a floating point type"); } @safe unittest { static foreach (T; FloatingPointTypeList) static foreach (Q; TypeQualifierList) { static assert( is(Q!T == FloatingPointTypeOf!( Q!T ))); static assert( is(Q!T == FloatingPointTypeOf!( SubTypeOf!(Q!T) ))); } static foreach (T; AliasSeq!(void, bool, IntegralTypeList, /*ImaginaryTypeList, ComplexTypeList,*/ CharTypeList)) static foreach (Q; TypeQualifierList) { static assert(!is(FloatingPointTypeOf!( Q!T ))); static assert(!is(FloatingPointTypeOf!( SubTypeOf!(Q!T) ))); } } /* */ template NumericTypeOf(T) { static if (is(IntegralTypeOf!T X) || is(FloatingPointTypeOf!T X)) { alias NumericTypeOf = X; } else static assert(0, T.stringof~" is not a numeric type"); } @safe unittest { static foreach (T; NumericTypeList) static foreach (Q; TypeQualifierList) { static assert( is(Q!T == NumericTypeOf!( Q!T ))); static assert( is(Q!T == NumericTypeOf!( SubTypeOf!(Q!T) ))); } static foreach (T; AliasSeq!(void, bool, CharTypeList, /*ImaginaryTypeList, ComplexTypeList*/)) static foreach (Q; TypeQualifierList) { static assert(!is(NumericTypeOf!( Q!T ))); static assert(!is(NumericTypeOf!( SubTypeOf!(Q!T) ))); } } /* */ template UnsignedTypeOf(T) { import std.meta : staticIndexOf; static if (is(IntegralTypeOf!T X) && staticIndexOf!(Unqual!X, UnsignedIntTypeList) >= 0) alias UnsignedTypeOf = X; else static assert(0, T.stringof~" is not an unsigned type."); } /* */ template SignedTypeOf(T) { import std.meta : staticIndexOf; static if (is(IntegralTypeOf!T X) && staticIndexOf!(Unqual!X, SignedIntTypeList) >= 0) alias SignedTypeOf = X; else static if (is(FloatingPointTypeOf!T X)) alias SignedTypeOf = X; else static assert(0, T.stringof~" is not an signed type."); } /* */ template CharTypeOf(T) { import std.meta : staticIndexOf; static if (is(AliasThisTypeOf!T AT) && !is(AT[] == AT)) alias X = CharTypeOf!AT; else alias X = OriginalType!T; static if (staticIndexOf!(Unqual!X, CharTypeList) >= 0) { alias CharTypeOf = X; } else static assert(0, T.stringof~" is not a character type"); } @safe unittest { static foreach (T; CharTypeList) static foreach (Q; TypeQualifierList) { static assert( is(CharTypeOf!( Q!T ))); static assert( is(CharTypeOf!( SubTypeOf!(Q!T) ))); } static foreach (T; AliasSeq!(void, bool, NumericTypeList, /*ImaginaryTypeList, ComplexTypeList*/)) static foreach (Q; TypeQualifierList) { static assert(!is(CharTypeOf!( Q!T ))); static assert(!is(CharTypeOf!( SubTypeOf!(Q!T) ))); } static foreach (T; AliasSeq!(string, wstring, dstring, char[4])) static foreach (Q; TypeQualifierList) { static assert(!is(CharTypeOf!( Q!T ))); static assert(!is(CharTypeOf!( SubTypeOf!(Q!T) ))); } } /* */ template StaticArrayTypeOf(T) { static if (is(AliasThisTypeOf!T AT) && !is(AT[] == AT)) alias X = StaticArrayTypeOf!AT; else alias X = OriginalType!T; static if (is(X : E[n], E, size_t n)) alias StaticArrayTypeOf = X; else static assert(0, T.stringof~" is not a static array type"); } @safe unittest { static foreach (T; AliasSeq!(bool, NumericTypeList, /*ImaginaryTypeList, ComplexTypeList*/)) static foreach (Q; AliasSeq!(TypeQualifierList, InoutOf, SharedInoutOf)) { static assert(is( Q!( T[1] ) == StaticArrayTypeOf!( Q!( T[1] ) ) )); static foreach (P; TypeQualifierList) { // SubTypeOf cannot have inout type static assert(is( Q!(P!(T[1])) == StaticArrayTypeOf!( Q!(SubTypeOf!(P!(T[1]))) ) )); } } static foreach (T; AliasSeq!void) static foreach (Q; AliasSeq!TypeQualifierList) { static assert(is( StaticArrayTypeOf!( Q!(void[1]) ) == Q!(void[1]) )); } } /* */ template DynamicArrayTypeOf(T) { static if (is(AliasThisTypeOf!T AT) && !is(AT[] == AT)) alias X = DynamicArrayTypeOf!AT; else alias X = OriginalType!T; static if (is(Unqual!X : E[], E) && !is(typeof({ enum n = X.length; }))) { alias DynamicArrayTypeOf = X; } else static assert(0, T.stringof~" is not a dynamic array"); } @safe unittest { static foreach (T; AliasSeq!(/*void, */bool, NumericTypeList, /*ImaginaryTypeList, ComplexTypeList*/)) static foreach (Q; AliasSeq!(TypeQualifierList, InoutOf, SharedInoutOf)) { static assert(is( Q!T[] == DynamicArrayTypeOf!( Q!T[] ) )); static assert(is( Q!(T[]) == DynamicArrayTypeOf!( Q!(T[]) ) )); static foreach (P; AliasSeq!(MutableOf, ConstOf, ImmutableOf)) { static assert(is( Q!(P!T[]) == DynamicArrayTypeOf!( Q!(SubTypeOf!(P!T[])) ) )); static assert(is( Q!(P!(T[])) == DynamicArrayTypeOf!( Q!(SubTypeOf!(P!(T[]))) ) )); } } static assert(!is(DynamicArrayTypeOf!(int[3]))); static assert(!is(DynamicArrayTypeOf!(void[3]))); static assert(!is(DynamicArrayTypeOf!(typeof(null)))); } /* */ template ArrayTypeOf(T) { static if (is(StaticArrayTypeOf!T X) || is(DynamicArrayTypeOf!T X)) { alias ArrayTypeOf = X; } else static assert(0, T.stringof~" is not an array type"); } /* * Converts strings and string-like types to the corresponding dynamic array of characters. * Params: * T = one of the following: * 1. dynamic arrays of `char`, `wchar`, or `dchar` that are implicitly convertible to `const` * (`shared` is rejected) * 2. static arrays of `char`, `wchar`, or `dchar` that are implicitly convertible to `const` * (`shared` is rejected) * 3. aggregates that use `alias this` to refer to a field that is (1), (2), or (3) * * Other cases are rejected with a compile time error. * `typeof(null)` is rejected. * * Returns: * The result of `[]` applied to the qualified character type. */ template StringTypeOf(T) { static if (is(T == typeof(null))) { // It is impossible to determine exact string type from typeof(null) - // it means that StringTypeOf!(typeof(null)) is undefined. // Then this behavior is convenient for template constraint. static assert(0, T.stringof~" is not a string type"); } else static if (is(T : const char[]) || is(T : const wchar[]) || is(T : const dchar[])) { static if (is(T : U[], U)) alias StringTypeOf = U[]; else static assert(0); } else static assert(0, T.stringof~" is not a string type"); } @safe unittest { static foreach (T; CharTypeList) static foreach (Q; AliasSeq!(MutableOf, ConstOf, ImmutableOf, InoutOf)) { static assert(is(Q!T[] == StringTypeOf!( Q!T[] ))); static if (!__traits(isSame, Q, InoutOf)) {{ static assert(is(Q!T[] == StringTypeOf!( SubTypeOf!(Q!T[]) ))); alias Str = Q!T[]; class C(S) { S val; alias val this; } static assert(is(StringTypeOf!(C!Str) == Str)); }} } static foreach (T; CharTypeList) static foreach (Q; AliasSeq!(SharedOf, SharedConstOf, SharedInoutOf)) { static assert(!is(StringTypeOf!( Q!T[] ))); } } @safe unittest { static assert(is(StringTypeOf!(char[4]) == char[])); struct S { string s; alias s this; } struct T { S s; alias s this; } static assert(is(StringTypeOf!S == string)); static assert(is(StringTypeOf!T == string)); } /* */ template AssocArrayTypeOf(T) { static if (is(AliasThisTypeOf!T AT) && !is(AT[] == AT)) alias X = AssocArrayTypeOf!AT; else alias X = OriginalType!T; static if (is(Unqual!X : V[K], K, V)) { alias AssocArrayTypeOf = X; } else static assert(0, T.stringof~" is not an associative array type"); } @safe unittest { static foreach (T; AliasSeq!(int/*bool, CharTypeList, NumericTypeList, ImaginaryTypeList, ComplexTypeList*/)) static foreach (P; AliasSeq!(TypeQualifierList, InoutOf, SharedInoutOf)) static foreach (Q; AliasSeq!(TypeQualifierList, InoutOf, SharedInoutOf)) static foreach (R; AliasSeq!(TypeQualifierList, InoutOf, SharedInoutOf)) { static assert(is( P!(Q!T[R!T]) == AssocArrayTypeOf!( P!(Q!T[R!T]) ) )); } static foreach (T; AliasSeq!(int/*bool, CharTypeList, NumericTypeList, ImaginaryTypeList, ComplexTypeList*/)) static foreach (O; AliasSeq!(TypeQualifierList, InoutOf, SharedInoutOf)) static foreach (P; AliasSeq!TypeQualifierList) static foreach (Q; AliasSeq!TypeQualifierList) static foreach (R; AliasSeq!TypeQualifierList) { static assert(is( O!(P!(Q!T[R!T])) == AssocArrayTypeOf!( O!(SubTypeOf!(P!(Q!T[R!T]))) ) )); } } /* */ template BuiltinTypeOf(T) { static if (is(T : void)) alias BuiltinTypeOf = void; else static if (is(BooleanTypeOf!T X)) alias BuiltinTypeOf = X; else static if (is(IntegralTypeOf!T X)) alias BuiltinTypeOf = X; else static if (is(FloatingPointTypeOf!T X))alias BuiltinTypeOf = X; else static if (is(T : const(ireal))) alias BuiltinTypeOf = ireal; //TODO else static if (is(T : const(creal))) alias BuiltinTypeOf = creal; //TODO else static if (is(CharTypeOf!T X)) alias BuiltinTypeOf = X; else static if (is(ArrayTypeOf!T X)) alias BuiltinTypeOf = X; else static if (is(AssocArrayTypeOf!T X)) alias BuiltinTypeOf = X; else static assert(0); } //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // isSomething //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// /** * Detect whether `T` is a built-in boolean type. */ enum bool isBoolean(T) = is(BooleanTypeOf!T) && !isAggregateType!T; /// @safe unittest { static assert( isBoolean!bool); enum EB : bool { a = true } static assert( isBoolean!EB); static assert(!isBoolean!(SubTypeOf!bool)); } @safe unittest { static struct S(T) { T t; alias t this; } static assert(!isIntegral!(S!bool)); } /** * Detect whether `T` is a built-in integral type. Types `bool`, * `char`, `wchar`, and `dchar` are not considered integral. */ enum bool isIntegral(T) = is(IntegralTypeOf!T) && !isAggregateType!T; /// @safe unittest { static assert( isIntegral!byte && isIntegral!short && isIntegral!int && isIntegral!long && isIntegral!(const(long)) && isIntegral!(immutable(long)) ); static assert( !isIntegral!bool && !isIntegral!char && !isIntegral!double ); // types which act as integral values do not pass struct S { int val; alias val this; } static assert(!isIntegral!S); } @safe unittest { static foreach (T; IntegralTypeList) { static foreach (Q; TypeQualifierList) { static assert( isIntegral!(Q!T)); static assert(!isIntegral!(SubTypeOf!(Q!T))); } } static assert(!isIntegral!float); enum EU : uint { a = 0, b = 1, c = 2 } // base type is unsigned enum EI : int { a = -1, b = 0, c = 1 } // base type is signed (bug 7909) static assert(isIntegral!EU && isUnsigned!EU && !isSigned!EU); static assert(isIntegral!EI && !isUnsigned!EI && isSigned!EI); } /** * Detect whether `T` is a built-in floating point type. */ enum bool isFloatingPoint(T) = __traits(isFloating, T) && !(is(Unqual!T == cfloat) || is(Unqual!T == cdouble) || is(Unqual!T == creal) || is(Unqual!T == ifloat) || is(Unqual!T == idouble) || is(Unqual!T == ireal)); /// @safe unittest { static assert( isFloatingPoint!float && isFloatingPoint!double && isFloatingPoint!real && isFloatingPoint!(const(real)) && isFloatingPoint!(immutable(real)) ); static assert(!isFloatingPoint!int); // complex and imaginary numbers do not pass static assert( !isFloatingPoint!cfloat && !isFloatingPoint!ifloat ); // types which act as floating point values do not pass struct S { float val; alias val this; } static assert(!isFloatingPoint!S); } @safe unittest { enum EF : real { a = 1.414, b = 1.732, c = 2.236 } static foreach (T; AliasSeq!(FloatingPointTypeList, EF)) { static foreach (Q; TypeQualifierList) { static assert( isFloatingPoint!(Q!T)); static assert(!isFloatingPoint!(SubTypeOf!(Q!T))); } } static foreach (T; IntegralTypeList) { static foreach (Q; TypeQualifierList) { static assert(!isFloatingPoint!(Q!T)); } } } // https://issues.dlang.org/show_bug.cgi?id=17195 @safe unittest { static assert(!isFloatingPoint!cfloat); static assert(!isFloatingPoint!cdouble); static assert(!isFloatingPoint!creal); static assert(!isFloatingPoint!ifloat); static assert(!isFloatingPoint!idouble); static assert(!isFloatingPoint!ireal); } /** * Detect whether `T` is a built-in numeric type (integral or floating * point). */ enum bool isNumeric(T) = __traits(isArithmetic, T) && !(is(Unqual!T == bool) || is(Unqual!T == char) || is(Unqual!T == wchar) || is(Unqual!T == dchar)); /// @safe unittest { static assert( isNumeric!byte && isNumeric!short && isNumeric!int && isNumeric!long && isNumeric!float && isNumeric!double && isNumeric!real && isNumeric!(const(real)) && isNumeric!(immutable(real)) ); static assert( !isNumeric!void && !isNumeric!bool && !isNumeric!char && !isNumeric!wchar && !isNumeric!dchar ); // types which act as numeric values do not pass struct S { int val; alias val this; } static assert(!isIntegral!S); } @safe unittest { static foreach (T; AliasSeq!(NumericTypeList)) { static foreach (Q; TypeQualifierList) { static assert( isNumeric!(Q!T)); static assert(!isNumeric!(SubTypeOf!(Q!T))); } } static struct S(T) { T t; alias t this; } static assert(!isNumeric!(S!int)); } /** * Detect whether `T` is a scalar type (a built-in numeric, character or * boolean type). */ enum bool isScalarType(T) = is(T : real) && !isAggregateType!T; /// @safe unittest { static assert(!isScalarType!void); static assert( isScalarType!(immutable(byte))); static assert( isScalarType!(immutable(ushort))); static assert( isScalarType!(immutable(int))); static assert( isScalarType!(ulong)); static assert( isScalarType!(shared(float))); static assert( isScalarType!(shared(const bool))); static assert( isScalarType!(const(char))); static assert( isScalarType!(wchar)); static assert( isScalarType!(const(dchar))); static assert( isScalarType!(const(double))); static assert( isScalarType!(const(real))); } @safe unittest { static struct S(T) { T t; alias t this; } static assert(!isScalarType!(S!int)); } /** * Detect whether `T` is a basic type (scalar type or void). */ enum bool isBasicType(T) = isScalarType!T || is(Unqual!T == void); /// @safe unittest { static assert(isBasicType!void); static assert(isBasicType!(const(void))); static assert(isBasicType!(shared(void))); static assert(isBasicType!(immutable(void))); static assert(isBasicType!(shared const(void))); static assert(isBasicType!(shared inout(void))); static assert(isBasicType!(shared inout const(void))); static assert(isBasicType!(inout(void))); static assert(isBasicType!(inout const(void))); static assert(isBasicType!(immutable(int))); static assert(isBasicType!(shared(float))); static assert(isBasicType!(shared(const bool))); static assert(isBasicType!(const(dchar))); } /** * Detect whether `T` is a built-in unsigned numeric type. */ enum bool isUnsigned(T) = __traits(isUnsigned, T) && !(is(Unqual!T == char) || is(Unqual!T == wchar) || is(Unqual!T == dchar) || is(Unqual!T == bool)); /// @safe unittest { static assert( isUnsigned!uint && isUnsigned!ulong ); static assert( !isUnsigned!char && !isUnsigned!int && !isUnsigned!long && !isUnsigned!char && !isUnsigned!wchar && !isUnsigned!dchar ); } @safe unittest { static foreach (T; AliasSeq!(UnsignedIntTypeList)) { static foreach (Q; TypeQualifierList) { static assert( isUnsigned!(Q!T)); static assert(!isUnsigned!(SubTypeOf!(Q!T))); } } static struct S(T) { T t; alias t this; } static assert(!isUnsigned!(S!uint)); } /** * Detect whether `T` is a built-in signed numeric type. */ enum bool isSigned(T) = __traits(isArithmetic, T) && !__traits(isUnsigned, T); /// @safe unittest { static assert( isSigned!int && isSigned!long ); static assert( !isSigned!uint && !isSigned!ulong ); } @safe unittest { enum E { e1 = 0 } static assert(isSigned!E); enum Eubyte : ubyte { e1 = 0 } static assert(!isSigned!Eubyte); static foreach (T; AliasSeq!(SignedIntTypeList)) { static foreach (Q; TypeQualifierList) { static assert( isSigned!(Q!T)); static assert(!isSigned!(SubTypeOf!(Q!T))); } } static struct S(T) { T t; alias t this; } static assert(!isSigned!(S!uint)); } // https://issues.dlang.org/show_bug.cgi?id=17196 @safe unittest { static assert(isUnsigned!bool == false); static assert(isSigned!bool == false); } /** * Detect whether `T` is one of the built-in character types. * * The built-in char types are any of `char`, `wchar` or `dchar`, with * or without qualifiers. */ enum bool isSomeChar(T) = is(CharTypeOf!T) && !isAggregateType!T; /// @safe unittest { //Char types static assert( isSomeChar!char); static assert( isSomeChar!wchar); static assert( isSomeChar!dchar); static assert( isSomeChar!(typeof('c'))); static assert( isSomeChar!(immutable char)); static assert( isSomeChar!(const dchar)); //Non char types static assert(!isSomeChar!int); static assert(!isSomeChar!byte); static assert(!isSomeChar!string); static assert(!isSomeChar!wstring); static assert(!isSomeChar!dstring); static assert(!isSomeChar!(char[4])); } @safe unittest { enum EC : char { a = 'x', b = 'y' } static foreach (T; AliasSeq!(CharTypeList, EC)) { static foreach (Q; TypeQualifierList) { static assert( isSomeChar!( Q!T )); static assert(!isSomeChar!( SubTypeOf!(Q!T) )); } } // alias-this types are not allowed static struct S(T) { T t; alias t this; } static assert(!isSomeChar!(S!char)); } /** Detect whether `T` is one of the built-in string types. The built-in string types are `Char[]`, where `Char` is any of `char`, `wchar` or `dchar`, with or without qualifiers. Static arrays of characters (like `char[80]`) are not considered built-in string types. */ enum bool isSomeString(T) = is(StringTypeOf!T) && !isAggregateType!T && !isStaticArray!T && !is(T == enum); /// @safe unittest { //String types static assert( isSomeString!string); static assert( isSomeString!(wchar[])); static assert( isSomeString!(dchar[])); static assert( isSomeString!(typeof("aaa"))); static assert( isSomeString!(const(char)[])); //Non string types static assert(!isSomeString!int); static assert(!isSomeString!(int[])); static assert(!isSomeString!(byte[])); static assert(!isSomeString!(typeof(null))); static assert(!isSomeString!(char[4])); enum ES : string { a = "aaa", b = "bbb" } static assert(!isSomeString!ES); static struct Stringish { string str; alias str this; } static assert(!isSomeString!Stringish); } @safe unittest { static foreach (T; AliasSeq!(char[], dchar[], string, wstring, dstring)) { static assert( isSomeString!( T )); static assert(!isSomeString!(SubTypeOf!(T))); } } /** * Detect whether type `T` is a narrow string. * * All arrays that use char, wchar, and their qualified versions are narrow * strings. (Those include string and wstring). */ enum bool isNarrowString(T) = isSomeString!T && !is(T : const dchar[]); /// @safe unittest { static assert(isNarrowString!string); static assert(isNarrowString!wstring); static assert(isNarrowString!(char[])); static assert(isNarrowString!(wchar[])); static assert(!isNarrowString!dstring); static assert(!isNarrowString!(dchar[])); static assert(!isNarrowString!(typeof(null))); static assert(!isNarrowString!(char[4])); enum ES : string { a = "aaa", b = "bbb" } static assert(!isNarrowString!ES); static struct Stringish { string str; alias str this; } static assert(!isNarrowString!Stringish); } @safe unittest { static foreach (T; AliasSeq!(char[], string, wstring)) { static foreach (Q; AliasSeq!(MutableOf, ConstOf, ImmutableOf)/*TypeQualifierList*/) { static assert( isNarrowString!( Q!T )); static assert(!isNarrowString!( SubTypeOf!(Q!T) )); } } static foreach (T; AliasSeq!(int, int[], byte[], dchar[], dstring, char[4])) { static foreach (Q; TypeQualifierList) { static assert(!isNarrowString!( Q!T )); static assert(!isNarrowString!( SubTypeOf!(Q!T) )); } } } /** * Detects whether `T` is a comparable type. Basic types and structs and * classes that implement opCmp are ordering comparable. */ enum bool isOrderingComparable(T) = ifTestable!(T, unaryFun!"a < a"); /// @safe unittest { static assert(isOrderingComparable!int); static assert(isOrderingComparable!string); static assert(!isOrderingComparable!creal); static struct Foo {} static assert(!isOrderingComparable!Foo); static struct Bar { int a; auto opCmp(Bar b1) const { return a - b1.a; } } Bar b1 = Bar(5); Bar b2 = Bar(7); assert(isOrderingComparable!Bar && b2 > b1); } /// ditto enum bool isEqualityComparable(T) = ifTestable!(T, unaryFun!"a == a"); @safe unittest { static assert(isEqualityComparable!int); static assert(isEqualityComparable!string); static assert(!isEqualityComparable!void); struct Foo {} static assert(isEqualityComparable!Foo); struct Bar { int a; auto opEquals(Bar b1) const { return a == b1.a; } } Bar b1 = Bar(5); Bar b2 = Bar(5); Bar b3 = Bar(7); static assert(isEqualityComparable!Bar); assert(b1 == b2); assert(b1 != b3); } version (TestComplex) deprecated @safe unittest { static assert(isEqualityComparable!creal); } /** $(RED Warning: This trait will be deprecated as soon as it is no longer used in Phobos. For a function parameter to safely accept a type that implicitly converts to string as a string, the conversion needs to happen at the callsite; otherwise, the conversion is done inside the function, and in many cases, that means that local memory is sliced (e.g. if a static array is passed to the function, then it's copied, and the resulting dynamic array will be a slice of a local variable). So, if the resulting string escapes the function, the string refers to invalid memory, and accessing it would mean accessing invalid memory. As such, the only safe way for a function to accept types that implicitly convert to string is for the implicit conversion to be done at the callsite, and that can only occur if the parameter is explicitly typed as an array, whereas using isConvertibleToString in a template constraint would result in the conversion being done inside the function. As such, isConvertibleToString is inherently unsafe and is going to be deprecated.) Detect whether `T` is a struct, static array, or enum that is implicitly convertible to a string. */ template isConvertibleToString(T) { enum isConvertibleToString = (isAggregateType!T || isStaticArray!T || is(T == enum)) && is(StringTypeOf!T); } /// @safe unittest { static struct AliasedString { string s; alias s this; } enum StringEnum { a = "foo" } assert(!isConvertibleToString!string); assert(isConvertibleToString!AliasedString); assert(isConvertibleToString!StringEnum); assert(isConvertibleToString!(char[25])); assert(!isConvertibleToString!(char[])); } @safe unittest // Bugzilla 16573 { enum I : int { foo = 1 } enum S : string { foo = "foo" } assert(!isConvertibleToString!I); assert(isConvertibleToString!S); } package template convertToString(T) { static if (isConvertibleToString!T) alias convertToString = StringTypeOf!T; else alias convertToString = T; } /** * Detect whether type `T` is a string that will be autodecoded. * * Given a type `S` that is one of: * $(OL * $(LI `const(char)[]`) * $(LI `const(wchar)[]`) * ) * Type `T` can be one of: * $(OL * $(LI `S`) * $(LI implicitly convertible to `T`) * $(LI an enum with a base type `T`) * $(LI an aggregate with a base type `T`) * ) * with the proviso that `T` cannot be a static array. * * Params: * T = type to be tested * * Returns: * true if T represents a string that is subject to autodecoding * * See Also: * $(LREF isNarrowString) */ template isAutodecodableString(T) { import std.range.primitives : autodecodeStrings; enum isAutodecodableString = autodecodeStrings && (is(T : const char[]) || is(T : const wchar[])) && !isStaticArray!T; } /// @safe unittest { static struct Stringish { string s; alias s this; } static assert(isAutodecodableString!wstring); static assert(isAutodecodableString!Stringish); static assert(!isAutodecodableString!dstring); enum E : const(char)[3] { X = "abc" } enum F : const(char)[] { X = "abc" } enum G : F { X = F.init } static assert(isAutodecodableString!(char[])); static assert(!isAutodecodableString!(E)); static assert(isAutodecodableString!(F)); static assert(isAutodecodableString!(G)); struct Stringish2 { Stringish s; alias s this; } enum H : Stringish { X = Stringish() } enum I : Stringish2 { X = Stringish2() } static assert(isAutodecodableString!(H)); static assert(isAutodecodableString!(I)); } /** * Detect whether type `T` is a static array. */ enum bool isStaticArray(T) = __traits(isStaticArray, T); /// @safe unittest { static assert( isStaticArray!(int[3])); static assert( isStaticArray!(const(int)[5])); static assert( isStaticArray!(const(int)[][5])); static assert(!isStaticArray!(const(int)[])); static assert(!isStaticArray!(immutable(int)[])); static assert(!isStaticArray!(const(int)[4][])); static assert(!isStaticArray!(int[])); static assert(!isStaticArray!(int[char])); static assert(!isStaticArray!(int[1][])); static assert(!isStaticArray!(int[int])); static assert(!isStaticArray!int); } @safe unittest { static foreach (T; AliasSeq!(int[51], int[][2], char[][int][11], immutable char[13u], const(real)[1], const(real)[1][1], void[0])) { static foreach (Q; TypeQualifierList) { static assert( isStaticArray!( Q!T )); static assert(!isStaticArray!( SubTypeOf!(Q!T) )); } } //enum ESA : int[1] { a = [1], b = [2] } //static assert( isStaticArray!ESA); } /** * Detect whether type `T` is a dynamic array. */ enum bool isDynamicArray(T) = is(DynamicArrayTypeOf!T) && !isAggregateType!T; /// @safe unittest { static assert( isDynamicArray!(int[])); static assert( isDynamicArray!(string)); static assert( isDynamicArray!(long[3][])); static assert(!isDynamicArray!(int[5])); static assert(!isDynamicArray!(typeof(null))); } @safe unittest { import std.meta : AliasSeq; static foreach (T; AliasSeq!(int[], char[], string, long[3][], double[string][])) { static foreach (Q; TypeQualifierList) { static assert( isDynamicArray!( Q!T )); static assert(!isDynamicArray!( SubTypeOf!(Q!T) )); } } } /** * Detect whether type `T` is an array (static or dynamic; for associative * arrays see $(LREF isAssociativeArray)). */ enum bool isArray(T) = isStaticArray!T || isDynamicArray!T; /// @safe unittest { static assert( isArray!(int[])); static assert( isArray!(int[5])); static assert( isArray!(string)); static assert(!isArray!uint); static assert(!isArray!(uint[uint])); static assert(!isArray!(typeof(null))); } @safe unittest { import std.meta : AliasSeq; static foreach (T; AliasSeq!(int[], int[5], void[])) { static foreach (Q; TypeQualifierList) { static assert( isArray!(Q!T)); static assert(!isArray!(SubTypeOf!(Q!T))); } } } /** * Detect whether `T` is an associative array type */ enum bool isAssociativeArray(T) = __traits(isAssociativeArray, T); @safe unittest { struct Foo { @property uint[] keys() { return null; } @property uint[] values() { return null; } } static foreach (T; AliasSeq!(int[int], int[string], immutable(char[5])[int])) { static foreach (Q; TypeQualifierList) { static assert( isAssociativeArray!(Q!T)); static assert(!isAssociativeArray!(SubTypeOf!(Q!T))); } } static assert(!isAssociativeArray!Foo); static assert(!isAssociativeArray!int); static assert(!isAssociativeArray!(int[])); static assert(!isAssociativeArray!(typeof(null))); //enum EAA : int[int] { a = [1:1], b = [2:2] } //static assert( isAssociativeArray!EAA); } /** * Detect whether type `T` is a builtin type. */ enum bool isBuiltinType(T) = is(BuiltinTypeOf!T) && !isAggregateType!T; /// @safe unittest { class C; union U; struct S; interface I; static assert( isBuiltinType!void); static assert( isBuiltinType!string); static assert( isBuiltinType!(int[])); static assert( isBuiltinType!(C[string])); static assert(!isBuiltinType!C); static assert(!isBuiltinType!U); static assert(!isBuiltinType!S); static assert(!isBuiltinType!I); static assert(!isBuiltinType!(void delegate(int))); } /** * Detect whether type `T` is a SIMD vector type. */ enum bool isSIMDVector(T) = is(T : __vector(V[N]), V, size_t N); @safe unittest { static if (is(__vector(float[4]))) { alias SimdVec = __vector(float[4]); static assert(isSIMDVector!(__vector(float[4]))); static assert(isSIMDVector!SimdVec); } static assert(!isSIMDVector!uint); static assert(!isSIMDVector!(float[4])); } /** * Detect whether type `T` is a pointer. */ enum bool isPointer(T) = is(T == U*, U) && !isAggregateType!T; @safe unittest { static foreach (T; AliasSeq!(int*, void*, char[]*)) { static foreach (Q; TypeQualifierList) { static assert( isPointer!(Q!T)); static assert(!isPointer!(SubTypeOf!(Q!T))); } } static assert(!isPointer!uint); static assert(!isPointer!(uint[uint])); static assert(!isPointer!(char[])); static assert(!isPointer!(typeof(null))); } /** Returns the target type of a pointer. */ alias PointerTarget(T : T*) = T; /// @safe unittest { static assert(is(PointerTarget!(int*) == int)); static assert(is(PointerTarget!(void*) == void)); } /** * Detect whether type `T` is an aggregate type. */ enum bool isAggregateType(T) = is(T == struct) || is(T == union) || is(T == class) || is(T == interface); /// @safe unittest { class C; union U; struct S; interface I; static assert( isAggregateType!C); static assert( isAggregateType!U); static assert( isAggregateType!S); static assert( isAggregateType!I); static assert(!isAggregateType!void); static assert(!isAggregateType!string); static assert(!isAggregateType!(int[])); static assert(!isAggregateType!(C[string])); static assert(!isAggregateType!(void delegate(int))); } /** * Returns `true` if T can be iterated over using a `foreach` loop with * a single loop variable of automatically inferred type, regardless of how * the `foreach` loop is implemented. This includes ranges, structs/classes * that define `opApply` with a single loop variable, and builtin dynamic, * static and associative arrays. */ enum bool isIterable(T) = is(typeof({ foreach (elem; T.init) {} })); /// @safe unittest { struct OpApply { int opApply(scope int delegate(ref uint) dg) { assert(0); } } struct Range { @property uint front() { assert(0); } void popFront() { assert(0); } enum bool empty = false; } static assert( isIterable!(uint[])); static assert( isIterable!OpApply); static assert( isIterable!(uint[string])); static assert( isIterable!Range); static assert(!isIterable!uint); } /** * Returns true if T is not const or immutable. Note that isMutable is true for * string, or immutable(char)[], because the 'head' is mutable. */ enum bool isMutable(T) = !is(T == const) && !is(T == immutable) && !is(T == inout); /// @safe unittest { static assert( isMutable!int); static assert( isMutable!string); static assert( isMutable!(shared int)); static assert( isMutable!(shared const(int)[])); static assert(!isMutable!(const int)); static assert(!isMutable!(inout int)); static assert(!isMutable!(shared(const int))); static assert(!isMutable!(shared(inout int))); static assert(!isMutable!(immutable string)); } /** * Returns true if T is an instance of the template S. */ enum bool isInstanceOf(alias S, T) = is(T == S!Args, Args...); /// ditto template isInstanceOf(alias S, alias T) { enum impl(alias T : S!Args, Args...) = true; enum impl(alias T) = false; enum isInstanceOf = impl!T; } /// @safe unittest { static struct Foo(T...) { } static struct Bar(T...) { } static struct Doo(T) { } static struct ABC(int x) { } static void fun(T)() { } template templ(T) { } static assert(isInstanceOf!(Foo, Foo!int)); static assert(!isInstanceOf!(Foo, Bar!int)); static assert(!isInstanceOf!(Foo, int)); static assert(isInstanceOf!(Doo, Doo!int)); static assert(isInstanceOf!(ABC, ABC!1)); static assert(!isInstanceOf!(Foo, Foo)); static assert(isInstanceOf!(fun, fun!int)); static assert(isInstanceOf!(templ, templ!int)); } /** * To use `isInstanceOf` to check the identity of a template while inside of said * template, use $(LREF TemplateOf). */ @safe unittest { static struct A(T = void) { // doesn't work as expected, only accepts A when T = void void func(B)(B b) if (isInstanceOf!(A, B)) {} // correct behavior void method(B)(B b) if (isInstanceOf!(TemplateOf!(A), B)) {} } A!(void) a1; A!(void) a2; A!(int) a3; static assert(!__traits(compiles, a1.func(a3))); static assert( __traits(compiles, a1.method(a2))); static assert( __traits(compiles, a1.method(a3))); } @safe unittest { static void fun1(T)() { } static void fun2(T)() { } template templ1(T) { } template templ2(T) { } static assert(!isInstanceOf!(fun1, fun2!int)); static assert(!isInstanceOf!(templ1, templ2!int)); } /** * Check whether the tuple T is an expression tuple. * An expression tuple only contains expressions. * * See_Also: $(LREF isTypeTuple). */ template isExpressions(T...) { static foreach (Ti; T) { static if (!is(typeof(isExpressions) == bool) && // not yet defined (is(Ti) || !__traits(compiles, { auto ex = Ti; }))) { enum isExpressions = false; } } static if (!is(typeof(isExpressions) == bool)) // if not yet defined { enum isExpressions = true; } } /// @safe unittest { static assert(isExpressions!(1, 2.0, "a")); static assert(!isExpressions!(int, double, string)); static assert(!isExpressions!(int, 2.0, "a")); } /** * Alternate name for $(LREF isExpressions), kept for legacy compatibility. */ alias isExpressionTuple = isExpressions; @safe unittest { void foo(); static int bar() { return 42; } immutable aa = [ 1: -1 ]; alias myint = int; static assert( isExpressionTuple!(42)); static assert( isExpressionTuple!aa); static assert( isExpressionTuple!("cattywampus", 2.7, aa)); static assert( isExpressionTuple!(bar())); static assert(!isExpressionTuple!isExpressionTuple); static assert(!isExpressionTuple!foo); static assert(!isExpressionTuple!( (a) { } )); static assert(!isExpressionTuple!int); static assert(!isExpressionTuple!myint); } /** * Check whether the tuple `T` is a type tuple. * A type tuple only contains types. * * See_Also: $(LREF isExpressions). */ template isTypeTuple(T...) { static if (T.length >= 2) enum bool isTypeTuple = isTypeTuple!(T[0 .. $/2]) && isTypeTuple!(T[$/2 .. $]); else static if (T.length == 1) enum bool isTypeTuple = is(T[0]); else enum bool isTypeTuple = true; // default } /// @safe unittest { static assert(isTypeTuple!(int, float, string)); static assert(!isTypeTuple!(1, 2.0, "a")); static assert(!isTypeTuple!(1, double, string)); } @safe unittest { class C {} void func(int) {} auto c = new C; enum CONST = 42; static assert( isTypeTuple!int); static assert( isTypeTuple!string); static assert( isTypeTuple!C); static assert( isTypeTuple!(typeof(func))); static assert( isTypeTuple!(int, char, double)); static assert(!isTypeTuple!c); static assert(!isTypeTuple!isTypeTuple); static assert(!isTypeTuple!CONST); } /** Detect whether symbol or type `T` is a function pointer. */ template isFunctionPointer(T...) if (T.length == 1) { static if (is(T[0] U) || is(typeof(T[0]) U)) { static if (is(U F : F*) && is(F == function)) enum bool isFunctionPointer = true; else enum bool isFunctionPointer = false; } else enum bool isFunctionPointer = false; } /// @safe unittest { static void foo() {} void bar() {} auto fpfoo = &foo; static assert( isFunctionPointer!fpfoo); static assert( isFunctionPointer!(void function())); auto dgbar = &bar; static assert(!isFunctionPointer!dgbar); static assert(!isFunctionPointer!(void delegate())); static assert(!isFunctionPointer!foo); static assert(!isFunctionPointer!bar); static assert( isFunctionPointer!((int a) {})); } /** Detect whether symbol or type `T` is a delegate. */ template isDelegate(T...) if (T.length == 1) { static if (is(typeof(& T[0]) U : U*) && is(typeof(& T[0]) U == delegate)) { // T is a (nested) function symbol. enum bool isDelegate = true; } else static if (is(T[0] W) || is(typeof(T[0]) W)) { // T is an expression or a type. Take the type of it and examine. enum bool isDelegate = is(W == delegate); } else enum bool isDelegate = false; } /// @safe unittest { static void sfunc() { } int x; void func() { x++; } int delegate() dg; assert(isDelegate!dg); assert(isDelegate!(int delegate())); assert(isDelegate!(typeof(&func))); int function() fp; assert(!isDelegate!fp); assert(!isDelegate!(int function())); assert(!isDelegate!(typeof(&sfunc))); } /** Detect whether symbol or type `T` is a function, a function pointer or a delegate. Params: T = The type to check Returns: A `bool` */ template isSomeFunction(T...) if (T.length == 1) { static if (is(typeof(& T[0]) U : U*) && is(U == function) || is(typeof(& T[0]) U == delegate)) { // T is a (nested) function symbol. enum bool isSomeFunction = true; } else static if (is(T[0] W) || is(typeof(T[0]) W)) { // T is an expression or a type. Take the type of it and examine. static if (is(W F : F*) && is(F == function)) enum bool isSomeFunction = true; // function pointer else enum bool isSomeFunction = is(W == function) || is(W == delegate); } else enum bool isSomeFunction = false; } /// @safe unittest { static real func(ref int) { return 0; } static void prop() @property { } class C { real method(ref int) { return 0; } real prop() @property { return 0; } } auto c = new C; auto fp = &func; auto dg = &c.method; real val; static assert( isSomeFunction!func); static assert( isSomeFunction!prop); static assert( isSomeFunction!(C.method)); static assert( isSomeFunction!(C.prop)); static assert( isSomeFunction!(c.prop)); static assert( isSomeFunction!(c.prop)); static assert( isSomeFunction!fp); static assert( isSomeFunction!dg); static assert(!isSomeFunction!int); static assert(!isSomeFunction!val); } @safe unittest { void nestedFunc() { } void nestedProp() @property { } static assert(isSomeFunction!nestedFunc); static assert(isSomeFunction!nestedProp); static assert(isSomeFunction!(real function(ref int))); static assert(isSomeFunction!(real delegate(ref int))); static assert(isSomeFunction!((int a) { return a; })); static assert(!isSomeFunction!isSomeFunction); } /** Detect whether `T` is a callable object, which can be called with the function call operator `$(LPAREN)...$(RPAREN)`. */ template isCallable(T...) if (T.length == 1) { static if (is(typeof(& T[0].opCall) == delegate)) // T is a object which has a member function opCall(). enum bool isCallable = true; else static if (is(typeof(& T[0].opCall) V : V*) && is(V == function)) // T is a type which has a static member function opCall(). enum bool isCallable = true; else enum bool isCallable = isSomeFunction!T; } /// @safe unittest { interface I { real value() @property; } struct S { static int opCall(int) { return 0; } } class C { int opCall(int) { return 0; } } auto c = new C; static assert( isCallable!c); static assert( isCallable!S); static assert( isCallable!(c.opCall)); static assert( isCallable!(I.value)); static assert( isCallable!((int a) { return a; })); static assert(!isCallable!I); } /** Detect whether `T` is an abstract function. Params: T = The type to check Returns: A `bool` */ template isAbstractFunction(T...) if (T.length == 1) { enum bool isAbstractFunction = __traits(isAbstractFunction, T[0]); } /// @safe unittest { struct S { void foo() { } } class C { void foo() { } } class AC { abstract void foo(); } static assert(!isAbstractFunction!(int)); static assert(!isAbstractFunction!(S.foo)); static assert(!isAbstractFunction!(C.foo)); static assert( isAbstractFunction!(AC.foo)); } /** * Detect whether `T` is a final function. */ template isFinalFunction(T...) if (T.length == 1) { enum bool isFinalFunction = __traits(isFinalFunction, T[0]); } /// @safe unittest { struct S { void bar() { } } final class FC { void foo(); } class C { void bar() { } final void foo(); } static assert(!isFinalFunction!(int)); static assert(!isFinalFunction!(S.bar)); static assert( isFinalFunction!(FC.foo)); static assert(!isFinalFunction!(C.bar)); static assert( isFinalFunction!(C.foo)); } /** Determines if `f` is a function that requires a context pointer. Params: f = The type to check Returns A `bool` */ template isNestedFunction(alias f) { enum isNestedFunction = __traits(isNested, f) && isSomeFunction!(f); } /// @safe unittest { static void f() {} static void fun() { int i; int f() { return i; } static assert(isNestedFunction!(f)); } static assert(!isNestedFunction!f); } // issue 18669 @safe unittest { static class Outer { class Inner { } } int i; struct SS { int bar() { return i; } } static assert(!isNestedFunction!(Outer.Inner)); static assert(!isNestedFunction!(SS)); } /** * Detect whether `T` is an abstract class. */ template isAbstractClass(T...) if (T.length == 1) { enum bool isAbstractClass = __traits(isAbstractClass, T[0]); } /// @safe unittest { struct S { } class C { } abstract class AC { } static assert(!isAbstractClass!S); static assert(!isAbstractClass!C); static assert( isAbstractClass!AC); C c; static assert(!isAbstractClass!c); AC ac; static assert( isAbstractClass!ac); } /** * Detect whether `T` is a final class. */ template isFinalClass(T...) if (T.length == 1) { enum bool isFinalClass = __traits(isFinalClass, T[0]); } /// @safe unittest { class C { } abstract class AC { } final class FC1 : C { } final class FC2 { } static assert(!isFinalClass!C); static assert(!isFinalClass!AC); static assert( isFinalClass!FC1); static assert( isFinalClass!FC2); C c; static assert(!isFinalClass!c); FC1 fc1; static assert( isFinalClass!fc1); } //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // General Types //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// /** Removes `const`, `inout` and `immutable` qualifiers, if any, from type `T`. */ template Unconst(T) { import core.internal.traits : CoreUnconst = Unconst; alias Unconst = CoreUnconst!(T); } /// @safe unittest { static assert(is(Unconst!int == int)); static assert(is(Unconst!(const int) == int)); static assert(is(Unconst!(immutable int) == int)); static assert(is(Unconst!(shared int) == shared int)); static assert(is(Unconst!(shared(const int)) == shared int)); } @safe unittest { static assert(is(Unconst!( int) == int)); static assert(is(Unconst!( const int) == int)); static assert(is(Unconst!( inout int) == int)); static assert(is(Unconst!( inout const int) == int)); static assert(is(Unconst!(shared int) == shared int)); static assert(is(Unconst!(shared const int) == shared int)); static assert(is(Unconst!(shared inout int) == shared int)); static assert(is(Unconst!(shared inout const int) == shared int)); static assert(is(Unconst!( immutable int) == int)); alias ImmIntArr = immutable(int[]); static assert(is(Unconst!ImmIntArr == immutable(int)[])); } /** Removes all qualifiers, if any, from type `T`. */ template Unqual(T) { import core.internal.traits : CoreUnqual = Unqual; alias Unqual = CoreUnqual!(T); } /// @safe unittest { static assert(is(Unqual!int == int)); static assert(is(Unqual!(const int) == int)); static assert(is(Unqual!(immutable int) == int)); static assert(is(Unqual!(shared int) == int)); static assert(is(Unqual!(shared(const int)) == int)); } @safe unittest { static assert(is(Unqual!( int) == int)); static assert(is(Unqual!( const int) == int)); static assert(is(Unqual!( inout int) == int)); static assert(is(Unqual!( inout const int) == int)); static assert(is(Unqual!(shared int) == int)); static assert(is(Unqual!(shared const int) == int)); static assert(is(Unqual!(shared inout int) == int)); static assert(is(Unqual!(shared inout const int) == int)); static assert(is(Unqual!( immutable int) == int)); alias ImmIntArr = immutable(int[]); static assert(is(Unqual!ImmIntArr == immutable(int)[])); } // [For internal use] package template ModifyTypePreservingTQ(alias Modifier, T) { static if (is(T U == immutable U)) alias ModifyTypePreservingTQ = immutable Modifier!U; else static if (is(T U == shared inout const U)) alias ModifyTypePreservingTQ = shared inout const Modifier!U; else static if (is(T U == shared inout U)) alias ModifyTypePreservingTQ = shared inout Modifier!U; else static if (is(T U == shared const U)) alias ModifyTypePreservingTQ = shared const Modifier!U; else static if (is(T U == shared U)) alias ModifyTypePreservingTQ = shared Modifier!U; else static if (is(T U == inout const U)) alias ModifyTypePreservingTQ = inout const Modifier!U; else static if (is(T U == inout U)) alias ModifyTypePreservingTQ = inout Modifier!U; else static if (is(T U == const U)) alias ModifyTypePreservingTQ = const Modifier!U; else alias ModifyTypePreservingTQ = Modifier!T; } @safe unittest { alias Intify(T) = int; static assert(is(ModifyTypePreservingTQ!(Intify, real) == int)); static assert(is(ModifyTypePreservingTQ!(Intify, const real) == const int)); static assert(is(ModifyTypePreservingTQ!(Intify, inout real) == inout int)); static assert(is(ModifyTypePreservingTQ!(Intify, inout const real) == inout const int)); static assert(is(ModifyTypePreservingTQ!(Intify, shared real) == shared int)); static assert(is(ModifyTypePreservingTQ!(Intify, shared const real) == shared const int)); static assert(is(ModifyTypePreservingTQ!(Intify, shared inout real) == shared inout int)); static assert(is(ModifyTypePreservingTQ!(Intify, shared inout const real) == shared inout const int)); static assert(is(ModifyTypePreservingTQ!(Intify, immutable real) == immutable int)); } /** * Copies type qualifiers from `FromType` to `ToType`. * * Supported type qualifiers: * $(UL * $(LI `const`) * $(LI `inout`) * $(LI `immutable`) * $(LI `shared`) * ) */ template CopyTypeQualifiers(FromType, ToType) { alias T(U) = ToType; alias CopyTypeQualifiers = ModifyTypePreservingTQ!(T, FromType); } /// @safe unittest { static assert(is(CopyTypeQualifiers!(inout const real, int) == inout const int)); } @safe unittest { static assert(is(CopyTypeQualifiers!( real, int) == int)); static assert(is(CopyTypeQualifiers!( const real, int) == const int)); static assert(is(CopyTypeQualifiers!( inout real, int) == inout int)); static assert(is(CopyTypeQualifiers!( inout const real, int) == inout const int)); static assert(is(CopyTypeQualifiers!(shared real, int) == shared int)); static assert(is(CopyTypeQualifiers!(shared const real, int) == shared const int)); static assert(is(CopyTypeQualifiers!(shared inout real, int) == shared inout int)); static assert(is(CopyTypeQualifiers!(shared inout const real, int) == shared inout const int)); static assert(is(CopyTypeQualifiers!( immutable real, int) == immutable int)); } /** Returns the type of `Target` with the "constness" of `Source`. A type's $(B constness) refers to whether it is `const`, `immutable`, or `inout`. If `source` has no constness, the returned type will be the same as `Target`. */ template CopyConstness(FromType, ToType) { alias Unshared(T) = T; alias Unshared(T: shared U, U) = U; alias CopyConstness = Unshared!(CopyTypeQualifiers!(FromType, ToType)); } /// @safe unittest { const(int) i; CopyConstness!(typeof(i), float) f; assert( is(typeof(f) == const float)); CopyConstness!(char, uint) u; assert( is(typeof(u) == uint)); //The 'shared' qualifier will not be copied assert(!is(CopyConstness!(shared bool, int) == shared int)); //But the constness will be assert( is(CopyConstness!(shared const real, double) == const double)); //Careful, const(int)[] is a mutable array of const(int) alias MutT = CopyConstness!(const(int)[], int); assert(!is(MutT == const(int))); //Okay, const(int[]) applies to array and contained ints alias CstT = CopyConstness!(const(int[]), int); assert( is(CstT == const(int))); } @safe unittest { struct Test { void method1() {} void method2() const {} void method3() immutable {} } assert(is(CopyConstness!(typeof(Test.method1), real) == real)); assert(is(CopyConstness!(typeof(Test.method2), byte) == const(byte))); assert(is(CopyConstness!(typeof(Test.method3), string) == immutable(string))); } @safe unittest { assert(is(CopyConstness!(inout(int)[], int[]) == int[])); assert(is(CopyConstness!(inout(int[]), int[]) == inout(int[]))); } @safe unittest { static assert(is(CopyConstness!( int, real) == real)); static assert(is(CopyConstness!(const int, real) == const real)); static assert(is(CopyConstness!(inout int, real) == inout real)); static assert(is(CopyConstness!(inout const int, real) == inout const real)); static assert(is(CopyConstness!(shared int, real) == real)); static assert(is(CopyConstness!(shared const int, real) == const real)); static assert(is(CopyConstness!(shared inout int, real) == inout real)); static assert(is(CopyConstness!(shared inout const int, real) == inout const real)); static assert(is(CopyConstness!(immutable int, real) == immutable real)); } /** Returns the inferred type of the loop variable when a variable of type T is iterated over using a `foreach` loop with a single loop variable and automatically inferred return type. Note that this may not be the same as `std.range.ElementType!Range` in the case of narrow strings, or if T has both opApply and a range interface. */ template ForeachType(T) { alias ForeachType = ReturnType!(typeof( (inout int x = 0) { foreach (elem; T.init) { return elem; } assert(0); })); } /// @safe unittest { static assert(is(ForeachType!(uint[]) == uint)); static assert(is(ForeachType!string == immutable(char))); static assert(is(ForeachType!(string[string]) == string)); static assert(is(ForeachType!(inout(int)[]) == inout(int))); } /** * Strips off all `enum`s from type `T`. */ template OriginalType(T) { template Impl(T) { static if (is(T U == enum)) alias Impl = OriginalType!U; else alias Impl = T; } alias OriginalType = ModifyTypePreservingTQ!(Impl, T); } /// @safe unittest { enum E : real { a = 0 } // NOTE: explicit initialization to 0 required during Enum init deprecation cycle enum F : E { a = E.a } alias G = const(F); static assert(is(OriginalType!E == real)); static assert(is(OriginalType!F == real)); static assert(is(OriginalType!G == const real)); } /** * Get the Key type of an Associative Array. */ alias KeyType(V : V[K], K) = K; /// @safe unittest { alias Hash = int[string]; static assert(is(KeyType!Hash == string)); static assert(is(ValueType!Hash == int)); KeyType!Hash str = "a"; // str is declared as string ValueType!Hash num = 1; // num is declared as int } /** * Get the Value type of an Associative Array. */ alias ValueType(V : V[K], K) = V; /// @safe unittest { alias Hash = int[string]; static assert(is(KeyType!Hash == string)); static assert(is(ValueType!Hash == int)); KeyType!Hash str = "a"; // str is declared as string ValueType!Hash num = 1; // num is declared as int } /** Params: T = A built in integral or vector type. Returns: The corresponding unsigned numeric type for `T` with the same type qualifiers. If `T` is not a integral or vector, a compile-time error is given. */ template Unsigned(T) { template Impl(T) { static if (is(T : __vector(V[N]), V, size_t N)) alias Impl = __vector(Impl!V[N]); else static if (isUnsigned!T) alias Impl = T; else static if (isSigned!T && !isFloatingPoint!T) { static if (is(T == byte )) alias Impl = ubyte; static if (is(T == short)) alias Impl = ushort; static if (is(T == int )) alias Impl = uint; static if (is(T == long )) alias Impl = ulong; static if (is(ucent) && is(T == cent )) alias Impl = ucent; } else static assert(false, "Type " ~ T.stringof ~ " does not have an Unsigned counterpart"); } alias Unsigned = ModifyTypePreservingTQ!(Impl, OriginalType!T); } /// @safe unittest { static assert(is(Unsigned!(int) == uint)); static assert(is(Unsigned!(long) == ulong)); static assert(is(Unsigned!(const short) == const ushort)); static assert(is(Unsigned!(immutable byte) == immutable ubyte)); static assert(is(Unsigned!(inout int) == inout uint)); } /// Unsigned types are forwarded @safe unittest { static assert(is(Unsigned!(uint) == uint)); static assert(is(Unsigned!(const uint) == const uint)); static assert(is(Unsigned!(ubyte) == ubyte)); static assert(is(Unsigned!(immutable uint) == immutable uint)); } @safe unittest { alias U1 = Unsigned!int; alias U2 = Unsigned!(const(int)); alias U3 = Unsigned!(immutable(int)); static assert(is(U1 == uint)); static assert(is(U2 == const(uint))); static assert(is(U3 == immutable(uint))); static if (is(__vector(int[4])) && is(__vector(uint[4]))) { alias UV1 = Unsigned!(__vector(int[4])); alias UV2 = Unsigned!(const(__vector(int[4]))); static assert(is(UV1 == __vector(uint[4]))); static assert(is(UV2 == const(__vector(uint[4])))); } //struct S {} //alias U2 = Unsigned!S; //alias U3 = Unsigned!double; static if (is(ucent)) { alias U4 = Unsigned!cent; alias U5 = Unsigned!(const(cent)); alias U6 = Unsigned!(immutable(cent)); static assert(is(U4 == ucent)); static assert(is(U5 == const(ucent))); static assert(is(U6 == immutable(ucent))); } } /** Returns the largest type, i.e. T such that T.sizeof is the largest. If more than one type is of the same size, the leftmost argument of these in will be returned. */ template Largest(T...) if (T.length >= 1) { static if (T.length == 1) { alias Largest = T[0]; } else static if (T.length == 2) { static if (T[0].sizeof >= T[1].sizeof) { alias Largest = T[0]; } else { alias Largest = T[1]; } } else { alias Largest = Largest!(Largest!(T[0 .. $/2]), Largest!(T[$/2 .. $])); } } /// @safe unittest { static assert(is(Largest!(uint, ubyte, ushort, real) == real)); static assert(is(Largest!(ulong, double) == ulong)); static assert(is(Largest!(double, ulong) == double)); static assert(is(Largest!(uint, byte, double, short) == double)); static if (is(ucent)) static assert(is(Largest!(uint, ubyte, ucent, ushort) == ucent)); } /** Returns the corresponding signed type for T. T must be a numeric integral type, otherwise a compile-time error occurs. */ template Signed(T) { template Impl(T) { static if (is(T : __vector(V[N]), V, size_t N)) alias Impl = __vector(Impl!V[N]); else static if (isSigned!T) alias Impl = T; else static if (isUnsigned!T) { static if (is(T == ubyte )) alias Impl = byte; static if (is(T == ushort)) alias Impl = short; static if (is(T == uint )) alias Impl = int; static if (is(T == ulong )) alias Impl = long; static if (is(ucent) && is(T == ucent )) alias Impl = cent; } else static assert(false, "Type " ~ T.stringof ~ " does not have an Signed counterpart"); } alias Signed = ModifyTypePreservingTQ!(Impl, OriginalType!T); } /// @safe unittest { alias S1 = Signed!uint; static assert(is(S1 == int)); alias S2 = Signed!(const(uint)); static assert(is(S2 == const(int))); alias S3 = Signed!(immutable(uint)); static assert(is(S3 == immutable(int))); static if (is(ucent)) { alias S4 = Signed!ucent; static assert(is(S4 == cent)); } } @safe unittest { static assert(is(Signed!float == float)); static if (is(__vector(int[4])) && is(__vector(uint[4]))) { alias SV1 = Signed!(__vector(uint[4])); alias SV2 = Signed!(const(__vector(uint[4]))); static assert(is(SV1 == __vector(int[4]))); static assert(is(SV2 == const(__vector(int[4])))); } } /** Returns the most negative value of the numeric type T. */ template mostNegative(T) if (isNumeric!T || isSomeChar!T || isBoolean!T) { static if (is(typeof(T.min_normal))) enum mostNegative = -T.max; else static if (T.min == 0) enum byte mostNegative = 0; else enum mostNegative = T.min; } /// @safe unittest { static assert(mostNegative!float == -float.max); static assert(mostNegative!double == -double.max); static assert(mostNegative!real == -real.max); static assert(mostNegative!bool == false); } /// @safe unittest { import std.meta : AliasSeq; static foreach (T; AliasSeq!(bool, byte, short, int, long)) static assert(mostNegative!T == T.min); static foreach (T; AliasSeq!(ubyte, ushort, uint, ulong, char, wchar, dchar)) static assert(mostNegative!T == 0); } /** Get the type that a scalar type `T` will $(LINK2 $(ROOT_DIR)spec/type.html#integer-promotions, promote) to in multi-term arithmetic expressions. */ template Promoted(T) if (isScalarType!T) { alias Promoted = CopyTypeQualifiers!(T, typeof(T.init + T.init)); } /// @safe unittest { ubyte a = 3, b = 5; static assert(is(typeof(a * b) == Promoted!ubyte)); static assert(is(Promoted!ubyte == int)); static assert(is(Promoted!(shared(bool)) == shared(int))); static assert(is(Promoted!(const(int)) == const(int))); static assert(is(Promoted!double == double)); } @safe unittest { // promote to int: static foreach (T; AliasSeq!(bool, byte, ubyte, short, ushort, char, wchar)) { static assert(is(Promoted!T == int)); static assert(is(Promoted!(shared(const T)) == shared(const int))); } // already promoted: static foreach (T; AliasSeq!(int, uint, long, ulong, float, double, real)) { static assert(is(Promoted!T == T)); static assert(is(Promoted!(immutable(T)) == immutable(T))); } } //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// // Misc. //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// /** Returns the mangled name of symbol or type `sth`. `mangledName` is the same as builtin `.mangleof` property, but might be more convenient in generic code, e.g. as a template argument when invoking staticMap. */ template mangledName(sth...) if (sth.length == 1) { enum string mangledName = sth[0].mangleof; } /// @safe unittest { import std.meta : AliasSeq; alias TL = staticMap!(mangledName, int, const int, immutable int); static assert(TL == AliasSeq!("i", "xi", "yi")); } version (unittest) private void freeFunc(string); @safe unittest { class C { int value() @property { return 0; } } static assert(mangledName!int == int.mangleof); static assert(mangledName!C == C.mangleof); static assert(mangledName!(C.value) == C.value.mangleof); static assert(mangledName!(C.value)[$ - 12 .. $] == "5valueMFNdZi"); static assert(mangledName!mangledName == "3std6traits11mangledName"); static assert(mangledName!freeFunc == "_D3std6traits8freeFuncFAyaZv"); int x; static if (is(typeof({ return x; }) : int delegate() pure)) // issue 9148 static assert(mangledName!((int a) { return a+x; }) == "DFNaNbNiNfiZi"); // pure nothrow @safe @nogc else static assert(mangledName!((int a) { return a+x; }) == "DFNbNiNfiZi"); // nothrow @safe @nnogc } @system unittest { // @system due to demangle // Test for bug 5718 import std.demangle : demangle; int foo; auto foo_demangled = demangle(mangledName!foo); assert(foo_demangled[0 .. 4] == "int " && foo_demangled[$-3 .. $] == "foo", foo_demangled); void bar(); auto bar_demangled = demangle(mangledName!bar); assert(bar_demangled[0 .. 5] == "void " && bar_demangled[$-5 .. $] == "bar()"); } // XXX Select & select should go to another module. (functional or algorithm?) /** Aliases itself to `T[0]` if the boolean `condition` is `true` and to `T[1]` otherwise. */ template Select(bool condition, T...) if (T.length == 2) { import std.meta : Alias; alias Select = Alias!(T[!condition]); } /// @safe unittest { // can select types static assert(is(Select!(true, int, long) == int)); static assert(is(Select!(false, int, long) == long)); static struct Foo {} static assert(is(Select!(false, const(int), const(Foo)) == const(Foo))); // can select symbols int a = 1; int b = 2; alias selA = Select!(true, a, b); alias selB = Select!(false, a, b); assert(selA == 1); assert(selB == 2); // can select (compile-time) expressions enum val = Select!(false, -4, 9 - 6); static assert(val == 3); } /** Select one of two functions to run via template parameter. Params: cond = A `bool` which determines which function is run a = The first function b = The second function Returns: `a` without evaluating `b` if `cond` is `true`. Otherwise, returns `b` without evaluating `a`. */ A select(bool cond : true, A, B)(A a, lazy B b) { return a; } /// Ditto B select(bool cond : false, A, B)(lazy A a, B b) { return b; } /// @safe unittest { real run() { return 0; } int fail() { assert(0); } auto a = select!true(run(), fail()); auto b = select!false(fail(), run()); static assert(is(typeof(a) == real)); static assert(is(typeof(b) == real)); } /++ Determine if a symbol has a given $(DDSUBLINK spec/attribute, uda, user-defined attribute). See_Also: $(LREF getUDAs) +/ template hasUDA(alias symbol, alias attribute) { enum hasUDA = getUDAs!(symbol, attribute).length != 0; } /// @safe unittest { enum E; struct S {} @("alpha") int a; static assert(hasUDA!(a, "alpha")); static assert(!hasUDA!(a, S)); static assert(!hasUDA!(a, E)); @(E) int b; static assert(!hasUDA!(b, "alpha")); static assert(!hasUDA!(b, S)); static assert(hasUDA!(b, E)); @E int c; static assert(!hasUDA!(c, "alpha")); static assert(!hasUDA!(c, S)); static assert(hasUDA!(c, E)); @(S, E) int d; static assert(!hasUDA!(d, "alpha")); static assert(hasUDA!(d, S)); static assert(hasUDA!(d, E)); @S int e; static assert(!hasUDA!(e, "alpha")); static assert(hasUDA!(e, S)); static assert(!hasUDA!(e, S())); static assert(!hasUDA!(e, E)); @S() int f; static assert(!hasUDA!(f, "alpha")); static assert(hasUDA!(f, S)); static assert(hasUDA!(f, S())); static assert(!hasUDA!(f, E)); @(S, E, "alpha") int g; static assert(hasUDA!(g, "alpha")); static assert(hasUDA!(g, S)); static assert(hasUDA!(g, E)); @(100) int h; static assert(hasUDA!(h, 100)); struct Named { string name; } @Named("abc") int i; static assert(hasUDA!(i, Named)); static assert(hasUDA!(i, Named("abc"))); static assert(!hasUDA!(i, Named("def"))); struct AttrT(T) { string name; T value; } @AttrT!int("answer", 42) int j; static assert(hasUDA!(j, AttrT)); static assert(hasUDA!(j, AttrT!int)); static assert(!hasUDA!(j, AttrT!string)); @AttrT!string("hello", "world") int k; static assert(hasUDA!(k, AttrT)); static assert(!hasUDA!(k, AttrT!int)); static assert(hasUDA!(k, AttrT!string)); struct FuncAttr(alias f) { alias func = f; } static int fourtyTwo() { return 42; } static size_t getLen(string s) { return s.length; } @FuncAttr!getLen int l; static assert(hasUDA!(l, FuncAttr)); static assert(!hasUDA!(l, FuncAttr!fourtyTwo)); static assert(hasUDA!(l, FuncAttr!getLen)); static assert(!hasUDA!(l, FuncAttr!fourtyTwo())); static assert(!hasUDA!(l, FuncAttr!getLen())); @FuncAttr!getLen() int m; static assert(hasUDA!(m, FuncAttr)); static assert(!hasUDA!(m, FuncAttr!fourtyTwo)); static assert(hasUDA!(m, FuncAttr!getLen)); static assert(!hasUDA!(m, FuncAttr!fourtyTwo())); static assert(hasUDA!(m, FuncAttr!getLen())); } /++ Gets the matching $(DDSUBLINK spec/attribute, uda, user-defined attributes) from the given symbol. If the UDA is a type, then any UDAs of the same type on the symbol will match. If the UDA is a template for a type, then any UDA which is an instantiation of that template will match. And if the UDA is a value, then any UDAs on the symbol which are equal to that value will match. See_Also: $(LREF hasUDA) +/ template getUDAs(alias symbol, alias attribute) { import std.meta : Filter; alias getUDAs = Filter!(isDesiredUDA!attribute, __traits(getAttributes, symbol)); } /// @safe unittest { struct Attr { string name; int value; } @Attr("Answer", 42) int a; static assert(getUDAs!(a, Attr).length == 1); static assert(getUDAs!(a, Attr)[0].name == "Answer"); static assert(getUDAs!(a, Attr)[0].value == 42); @(Attr("Answer", 42), "string", 9999) int b; static assert(getUDAs!(b, Attr).length == 1); static assert(getUDAs!(b, Attr)[0].name == "Answer"); static assert(getUDAs!(b, Attr)[0].value == 42); @Attr("Answer", 42) @Attr("Pi", 3) int c; static assert(getUDAs!(c, Attr).length == 2); static assert(getUDAs!(c, Attr)[0].name == "Answer"); static assert(getUDAs!(c, Attr)[0].value == 42); static assert(getUDAs!(c, Attr)[1].name == "Pi"); static assert(getUDAs!(c, Attr)[1].value == 3); static assert(getUDAs!(c, Attr("Answer", 42)).length == 1); static assert(getUDAs!(c, Attr("Answer", 42))[0].name == "Answer"); static assert(getUDAs!(c, Attr("Answer", 42))[0].value == 42); static assert(getUDAs!(c, Attr("Answer", 99)).length == 0); struct AttrT(T) { string name; T value; } @AttrT!uint("Answer", 42) @AttrT!int("Pi", 3) @AttrT int d; static assert(getUDAs!(d, AttrT).length == 2); static assert(getUDAs!(d, AttrT)[0].name == "Answer"); static assert(getUDAs!(d, AttrT)[0].value == 42); static assert(getUDAs!(d, AttrT)[1].name == "Pi"); static assert(getUDAs!(d, AttrT)[1].value == 3); static assert(getUDAs!(d, AttrT!uint).length == 1); static assert(getUDAs!(d, AttrT!uint)[0].name == "Answer"); static assert(getUDAs!(d, AttrT!uint)[0].value == 42); static assert(getUDAs!(d, AttrT!int).length == 1); static assert(getUDAs!(d, AttrT!int)[0].name == "Pi"); static assert(getUDAs!(d, AttrT!int)[0].value == 3); struct SimpleAttr {} @SimpleAttr int e; static assert(getUDAs!(e, SimpleAttr).length == 1); static assert(is(getUDAs!(e, SimpleAttr)[0] == SimpleAttr)); @SimpleAttr() int f; static assert(getUDAs!(f, SimpleAttr).length == 1); static assert(is(typeof(getUDAs!(f, SimpleAttr)[0]) == SimpleAttr)); struct FuncAttr(alias f) { alias func = f; } static int add42(int v) { return v + 42; } static string concat(string l, string r) { return l ~ r; } @FuncAttr!add42 int g; static assert(getUDAs!(g, FuncAttr).length == 1); static assert(getUDAs!(g, FuncAttr)[0].func(5) == 47); static assert(getUDAs!(g, FuncAttr!add42).length == 1); static assert(getUDAs!(g, FuncAttr!add42)[0].func(5) == 47); static assert(getUDAs!(g, FuncAttr!add42()).length == 0); static assert(getUDAs!(g, FuncAttr!concat).length == 0); static assert(getUDAs!(g, FuncAttr!concat()).length == 0); @FuncAttr!add42() int h; static assert(getUDAs!(h, FuncAttr).length == 1); static assert(getUDAs!(h, FuncAttr)[0].func(5) == 47); static assert(getUDAs!(h, FuncAttr!add42).length == 1); static assert(getUDAs!(h, FuncAttr!add42)[0].func(5) == 47); static assert(getUDAs!(h, FuncAttr!add42()).length == 1); static assert(getUDAs!(h, FuncAttr!add42())[0].func(5) == 47); static assert(getUDAs!(h, FuncAttr!concat).length == 0); static assert(getUDAs!(h, FuncAttr!concat()).length == 0); @("alpha") @(42) int i; static assert(getUDAs!(i, "alpha").length == 1); static assert(getUDAs!(i, "alpha")[0] == "alpha"); static assert(getUDAs!(i, 42).length == 1); static assert(getUDAs!(i, 42)[0] == 42); static assert(getUDAs!(i, 'c').length == 0); } private template isDesiredUDA(alias attribute) { template isDesiredUDA(alias toCheck) { static if (is(typeof(attribute)) && !__traits(isTemplate, attribute)) { static if (__traits(compiles, toCheck == attribute)) enum isDesiredUDA = toCheck == attribute; else enum isDesiredUDA = false; } else static if (is(typeof(toCheck))) { static if (__traits(isTemplate, attribute)) enum isDesiredUDA = isInstanceOf!(attribute, typeof(toCheck)); else enum isDesiredUDA = is(typeof(toCheck) == attribute); } else static if (__traits(isTemplate, attribute)) enum isDesiredUDA = isInstanceOf!(attribute, toCheck); else enum isDesiredUDA = is(toCheck == attribute); } } /** Params: symbol = The aggregate type to search attribute = The user-defined attribute to search for Returns: All symbols within `symbol` that have the given UDA `attribute`. Note: This is not recursive; it will not search for symbols within symbols such as nested structs or unions. */ template getSymbolsByUDA(alias symbol, alias attribute) if (isAggregateType!symbol) { alias membersWithUDA = getSymbolsByUDAImpl!(symbol, attribute, __traits(allMembers, symbol)); // if the symbol itself has the UDA, tack it on to the front of the list static if (hasUDA!(symbol, attribute)) alias getSymbolsByUDA = AliasSeq!(symbol, membersWithUDA); else alias getSymbolsByUDA = membersWithUDA; } /// @safe unittest { enum Attr; struct A { @Attr int a; int b; } static assert(getSymbolsByUDA!(A, Attr).length == 1); static assert(hasUDA!(getSymbolsByUDA!(A, Attr)[0], Attr)); } /// @safe unittest { enum Attr; static struct A { @Attr int a; int b; @Attr void doStuff() {} void doOtherStuff() {} static struct Inner { // Not found by getSymbolsByUDA @Attr int c; } } // Finds both variables and functions with the attribute, but // doesn't include the variables and functions without it. static assert(getSymbolsByUDA!(A, Attr).length == 2); // Can access attributes on the symbols returned by getSymbolsByUDA. static assert(hasUDA!(getSymbolsByUDA!(A, Attr)[0], Attr)); static assert(hasUDA!(getSymbolsByUDA!(A, Attr)[1], Attr)); } /// Finds multiple attributes @safe unittest { static struct UDA { string name; } static struct B { @UDA("X") int x; @UDA("Y") int y; @(100) int z; } // Finds both UDA attributes. static assert(getSymbolsByUDA!(B, UDA).length == 2); // Finds one `100` attribute. static assert(getSymbolsByUDA!(B, 100).length == 1); // Can get the value of the UDA from the return value static assert(getUDAs!(getSymbolsByUDA!(B, UDA)[0], UDA)[0].name == "X"); } /// Checks for UDAs on the aggregate symbol itself @safe unittest { static struct UDA { string name; } @UDA("A") static struct C { @UDA("B") int d; } static assert(getSymbolsByUDA!(C, UDA).length == 2); static assert(getSymbolsByUDA!(C, UDA)[0].stringof == "C"); static assert(getSymbolsByUDA!(C, UDA)[1].stringof == "d"); } /// Finds nothing if there is no member with specific UDA @safe unittest { static struct UDA { string name; } static struct D { int x; } static assert(getSymbolsByUDA!(D, UDA).length == 0); } // Issue 18314 @safe unittest { enum attr1; enum attr2; struct A { @attr1 int n; // Removed due to Issue 16206 //@attr1 //void foo()(string){} @attr1 void foo(); @attr2 void foo(int a); } static assert(getSymbolsByUDA!(A, attr1).length == 2); static assert(getSymbolsByUDA!(A, attr2).length == 1); } // Issue 19105 @safe unittest { struct A(Args...) {} struct B {} // modules cannot be passed as the first argument of getSymbolsByUDA static assert(!__traits(compiles, A!( getSymbolsByUDA!(traits, B)))); } // #15335: getSymbolsByUDA fails if type has private members @safe unittest { // HasPrivateMembers has, well, private members, one of which has a UDA. import std.internal.test.uda : Attr, HasPrivateMembers; // Trying access to private member from another file therefore we do not have access // for this otherwise we get deprecation warning - not visible from module // This line is commented because `__traits(getMember)` should also consider // private members; this is not currently the case, but the PR that // fixes `__traits(getMember)` is blocked by this specific test. //static assert(getSymbolsByUDA!(HasPrivateMembers, Attr).length == 1); static assert(hasUDA!(getSymbolsByUDA!(HasPrivateMembers, Attr)[0], Attr)); } // #16387: getSymbolsByUDA works with structs but fails with classes @safe unittest { enum Attr; class A { @Attr uint a; } alias res = getSymbolsByUDA!(A, Attr); static assert(res.length == 1); static assert(res[0].stringof == "a"); } // #18884: getSymbolsByUDA fails on AliasSeq members @safe unittest { struct X { alias A = AliasSeq!(ulong, uint); } static assert(is(getSymbolsByUDA!(X, X) == AliasSeq!())); } // #18624: getSymbolsByUDA produces wrong result if one of the symbols having the UDA is a function @safe unittest { enum Attr; struct A { @Attr void a(); @Attr void a(int n); void b(); @Attr void c(); } static assert(getSymbolsByUDA!(A, Attr).stringof == "tuple(a, a, c)"); } private template getSymbolsByUDAImpl(alias symbol, alias attribute, names...) { import std.meta : Alias, AliasSeq, Filter; static if (names.length == 0) { alias getSymbolsByUDAImpl = AliasSeq!(); } else { alias tail = getSymbolsByUDAImpl!(symbol, attribute, names[1 .. $]); // Filtering inaccessible members. static if (!__traits(compiles, __traits(getMember, symbol, names[0]))) { alias getSymbolsByUDAImpl = tail; } else { alias member = __traits(getMember, symbol, names[0]); // Filtering not compiled members such as alias of basic types. static if (!__traits(compiles, hasUDA!(member, attribute))) { alias getSymbolsByUDAImpl = tail; } // Get overloads for functions, in case different overloads have different sets of UDAs. else static if (isFunction!member) { enum hasSpecificUDA(alias member) = hasUDA!(member, attribute); alias overloadsWithUDA = Filter!(hasSpecificUDA, __traits(getOverloads, symbol, names[0])); alias getSymbolsByUDAImpl = AliasSeq!(overloadsWithUDA, tail); } else static if (hasUDA!(member, attribute)) { alias getSymbolsByUDAImpl = AliasSeq!(member, tail); } else { alias getSymbolsByUDAImpl = tail; } } } } /** Returns: `true` iff all types `T` are the same. */ template allSameType(T...) { static foreach (idx, Ti; T) { static if (idx + 1 < T.length && !is(typeof(allSameType) == bool) && !is(T[idx] == T[idx + 1])) { enum bool allSameType = false; } } static if (!is(typeof(allSameType) == bool)) { enum bool allSameType = true; } } /// @safe unittest { static assert(allSameType!(int, int)); static assert(allSameType!(int, int, int)); static assert(allSameType!(float, float, float)); static assert(!allSameType!(int, double)); static assert(!allSameType!(int, float, double)); static assert(!allSameType!(int, float, double, real)); static assert(!allSameType!(short, int, float, double, real)); } /** Returns: `true` iff the type `T` can be tested in an $(D if)-expression, that is if $(D if (pred(T.init)) {}) is compilable. */ enum ifTestable(T, alias pred = a => a) = __traits(compiles, { if (pred(T.init)) {} }); @safe unittest { import std.meta : AliasSeq, allSatisfy; static assert(allSatisfy!(ifTestable, AliasSeq!(bool, int, float, double, string))); struct BoolWrapper { bool value; } static assert(!ifTestable!(bool, a => BoolWrapper(a))); } /** * Detect whether `X` is a type. Analogous to `is(X)`. This is useful when used * in conjunction with other templates, e.g. `allSatisfy!(isType, X)`. * * Returns: * `true` if `X` is a type, `false` otherwise */ template isType(X...) if (X.length == 1) { enum isType = is(X[0]); } /// @safe unittest { struct S { template Test() {} } class C {} interface I {} union U {} static assert(isType!int); static assert(isType!string); static assert(isType!(int[int])); static assert(isType!S); static assert(isType!C); static assert(isType!I); static assert(isType!U); int n; void func(){} static assert(!isType!n); static assert(!isType!func); static assert(!isType!(S.Test)); static assert(!isType!(S.Test!())); } /** * Detect whether symbol or type `X` is a function. This is different that finding * if a symbol is callable or satisfying `is(X == function)`, it finds * specifically if the symbol represents a normal function declaration, i.e. * not a delegate or a function pointer. * * Returns: * `true` if `X` is a function, `false` otherwise * * See_Also: * Use $(LREF isFunctionPointer) or $(LREF isDelegate) for detecting those types * respectively. */ template isFunction(X...) if (X.length == 1) { static if (is(typeof(&X[0]) U : U*) && is(U == function) || is(typeof(&X[0]) U == delegate)) { // x is a (nested) function symbol. enum isFunction = true; } else static if (is(X[0] T)) { // x is a type. Take the type of it and examine. enum isFunction = is(T == function); } else enum isFunction = false; } /// @safe unittest { static void func(){} static assert(isFunction!func); struct S { void func(){} } static assert(isFunction!(S.func)); } /** * Detect whether `X` is a final method or class. * * Returns: * `true` if `X` is final, `false` otherwise */ template isFinal(X...) if (X.length == 1) { static if (is(X[0] == class)) enum isFinal = __traits(isFinalClass, X[0]); else static if (isFunction!X) enum isFinal = __traits(isFinalFunction, X[0]); else enum isFinal = false; } /// @safe unittest { class C { void nf() {} static void sf() {} final void ff() {} } final class FC { } static assert(!isFinal!(C)); static assert( isFinal!(FC)); static assert(!isFinal!(C.nf)); static assert(!isFinal!(C.sf)); static assert( isFinal!(C.ff)); } /++ + Determines whether the type `S` can be copied. + If a type cannot be copied, then code such as `MyStruct x; auto y = x;` will fail to compile. + Copying for structs can be disabled by using `@disable this(this)`. + + Params: + S = The type to check. + + Returns: + `true` if `S` can be copied. `false` otherwise. + ++/ enum isCopyable(S) = is(typeof( { S foo = S.init; S copy = foo; } )); /// @safe unittest { struct S1 {} // Fine. Can be copied struct S2 { this(this) {}} // Fine. Can be copied struct S3 {@disable this(this); } // Not fine. Copying is disabled. struct S4 {S3 s;} // Not fine. A field has copying disabled. class C1 {} static assert( isCopyable!S1); static assert( isCopyable!S2); static assert(!isCopyable!S3); static assert(!isCopyable!S4); static assert(isCopyable!C1); static assert(isCopyable!int); static assert(isCopyable!(int[])); }
D
/** * Widget module. * * License: * MIT. See LICENSE for full details. */ module tkd.widget.treeview; /** * Imports. */ import std.algorithm; import std.array; import std.regex; import std.string; import tkd.element.color; import tkd.element.element; import tkd.element.uielement; import tkd.image.image; import tkd.widget.anchorposition; import tkd.widget.common.height; import tkd.widget.common.padding; import tkd.widget.common.xscrollcommand; import tkd.widget.common.yscrollcommand; import tkd.widget.widget; /** * The treeview widget displays a hierarchical collection of items. Each item * has a textual label, an optional image, and an optional list of data values. * * There are two varieties of columns. The first is the main tree view column * that is present all the time. The second are data columns that can be added * when needed. * * Each tree item has a list of tags, which can be used to associate event * bindings and control their appearance. Treeview widgets support horizontal * and vertical scrolling with the standard scroll commands. * * Example: * --- * auto treeView = new TreeView() * .setHeading("Text") * .addRow(new TreeViewRow(["row1"])) * .addRow(new TreeViewRow(["row2"])) * .pack(); * --- * * Common_Commands: * These are injected common commands that can also be used with this widget. * $(P * $(LINK2 ./common/height.html, Height) $(BR) * $(LINK2 ./common/padding.html, Padding) $(BR) * $(LINK2 ./common/xscrollcommand.html, XScrollCommand) $(BR) * $(LINK2 ./common/yscrollcommand.html, YScrollCommand) $(BR) * ) * * Additional_Events: * Additional events that can also be bound to using the $(LINK2 ../element/uielement.html#UiElement.bind, bind) method. * $(P * &lt;&lt;PrevWindow&gt;&gt;, * &lt;&lt;TreeviewClose&gt;&gt; * &lt;&lt;TreeviewOpen&gt;&gt; * &lt;&lt;TreeviewSelect&gt;&gt; * &lt;Alt-Key&gt;, * &lt;B1-Leave&gt;, * &lt;B1-Motion&gt;, * &lt;Button-1&gt;, * &lt;Button-4&gt;, * &lt;Button-5&gt;, * &lt;ButtonRelease-1&gt;, * &lt;Control-Button-1&gt;, * &lt;Double-Button-1&gt;, * &lt;Key-Down&gt;, * &lt;Key-F10&gt;, * &lt;Key-Left&gt;, * &lt;Key-Next&gt;, * &lt;Key-Prior&gt;, * &lt;Key-Return&gt;, * &lt;Key-Right&gt;, * &lt;Key-Tab&gt;, * &lt;Key-Up&gt;, * &lt;Key-space&gt;, * &lt;Leave&gt;, * &lt;Motion&gt;, * &lt;Shift-Button-1&gt;, * &lt;Shift-Button-4&gt;, * &lt;Shift-Button-5&gt;, * ) * * See_Also: * $(LINK2 ./widget.html, tkd.widget.widget) */ class TreeView : Widget, IXScrollable!(TreeView), IYScrollable!(TreeView) { /** * An array containing all the columns. */ private TreeViewColumn[] _columns; /** * Construct the widget. * * Params: * parent = The parent of this widget. * * See_Also: * $(LINK2 ../element/uielement.html, tkd.element.uielement) $(BR) */ this(UiElement parent = null) { super(parent); this._elementId = "treeview"; this._tk.eval("ttk::treeview %s -selectmode browse", this.id); // Add the treeview column to the column collection. this._columns ~= new TreeViewColumn(); this._columns[0].init(this); } /** * Get the column identifiers of the passed data column indexes. * * Params: * indexex = The indexes of the data columns. * * Returns: * A string array containing the columns relating to the indexes. */ private string[] getDataColumnIdentifiers(int[] indexes) { string[] columns; for (int x = 1; x < this._columns.length; x++) { if (indexes.canFind(x)) { columns ~= this._columns[x].id; } } return columns; } /** * Get all column identifiers. * * Returns: * A string array containing all column identifiers. */ private string[] getDataColumnIdentifiers() { string[] columns; for (int x = 1; x < this._columns.length; x++) { columns ~= this._columns[x].id; } return columns; } /** * Get the tree view elements that are currently being shown. * * Returns: * An array cotaining all shown elements. */ private string[] getShownElements() { this._tk.eval("%s cget -show", this.id); return this._tk.getResult!(string).split(); } /** * Build the columns found in the column array. This is needed because the * data columns always seem to forget setting if configured piece-meal. */ private void buildColumns() { this._tk.eval("%s configure -columns { \"%s\" }", this.id, this.getDataColumnIdentifiers().join("\" \"")); for (int x = 1; x < this._columns.length; x++) { this.columns[x].init(this); } } /** * Convenience method to set the tree column heading text. * * Params: * title = The title of the column. * anchor = The anchor position of the text. * * Returns: * This widget to aid method chaining. * * See_Also: * $(LINK2 ./anchorposition.html, tkd.widget.anchorposition) $(BR) */ public auto setHeading(this T)(string title, string anchor = AnchorPosition.west) { this._columns[0].setHeading(title, anchor); return cast(T) this; } /** * Convenience method to set the tree column heading image. * * Params: * image = The image to use. * * Returns: * This widget to aid method chaining. */ public auto setHeadingImage(this T)(Image image) { this._columns[0].setHeadingImage(image); return cast(T) this; } /** * Convenience method to set the tree column command to be executed when * clicking on the heading. * * Params: * callback = The delegate callback to execute when invoking the command. * * Returns: * This widget to aid method chaining. * * Callback_Arguments: * These are the fields within the callback's $(LINK2 * ../element/element.html#CommandArgs, CommandArgs) parameter which * are populated by this method when the callback is executed. * $(P * $(PARAM_TABLE * $(PARAM_ROW CommandArgs.element, The tree column.) * $(PARAM_ROW CommandArgs.uniqueData, The internal id of the tree view (An implementation detail that's not very useful).) * $(PARAM_ROW CommandArgs.callback, The callback which was executed.) * ) * ) * * See_Also: * $(LINK2 ../element/element.html#CommandCallback, tkd.element.element.CommandCallback) */ public auto setHeadingCommand(this T)(CommandCallback callback) { this._columns[0].setHeadingCommand(callback); return cast(T) this; } /** * Convenience method to remove the tree view column command. * * Returns: * This widget to aid method chaining. */ public auto removeHeadingCommand(this T)() { this._columns[0].removeHeadingCommand(); return cast(T) this; } /** * Convenience method to set the minium width of the tree column. * * Params: * minWidth = The minimum width in pixels. * * Returns: * This widget to aid method chaining. */ public auto setMinWidth(this T)(int minWidth) { this._columns[0].setMinWidth(minWidth); return cast(T) this; } /** * Convenience method to enable or disable stretching for the tree column. * This controls how this column react when other columns or the parent * widget is resized. * * Params: * stretch = true for enabling stretching, false to disable. * * Returns: * This widget to aid method chaining. */ public auto setStretch(this T)(bool stretch) { this._columns[0].setStretch(stretch); return cast(T) this; } /** * Convenience method to set the width of the tree column. * * Params: * width = The width in pixels. * * Returns: * This widget to aid method chaining. */ public auto setWidth(this T)(int width) { this._columns[0].setWidth(width); return cast(T) this; } /** * Add a new column to the tree view. * * Params: * column = The new column to add. * * Returns: * This widget to aid method chaining. */ public auto addColumn(this T)(TreeViewColumn column) { this._columns ~= column; this.buildColumns(); return cast(T) this; } /** * Add a row to the tree view. * * Params: * row = The row to add. * * Returns: * This widget to aid method chaining. */ public auto addRow(this T)(TreeViewRow row) { this.appendRows("", [row]); return cast(T) this; } /** * Add an array of rowr to the tree view. * * Params: * rows = The rows to add. * * Returns: * This widget to aid method chaining. */ public auto addRows(this T)(TreeViewRow[] rows) { this.appendRows("", rows); return cast(T) this; } /** * This method does the actualy work of adding rows to the tree view. * All children are recursed and add too. * * Params: * parentRow = The id of the parent row. Use '{}' for the top level. * rows = The rows to add to the tree view. */ private void appendRows(string parentRow, TreeViewRow[] rows) { string dataValues; string tags; foreach (row; rows) { if (row.values.length > 1) { dataValues = format("\"%s\"", row.values[1 .. $].join("\" \"")); } if (row.tags.length) { tags = format("\"%s\"", row.tags.join("\" \"")); } this._tk.eval("%s insert {%s} end -text {%s} -values {%s} -open %s -tags {%s}", this.id, parentRow, row.values[0], dataValues, row.isOpen, tags); if (row.children.length) { this.appendRows(this._tk.getResult!(string), row.children); } } } /** * Set image and colors for a specific tag. * Use colors from the preset color $(LINK2 ../element/color.html, list) or a web style hex color. * * Params: * name = The name of the tag. * image = The image to associate to the tag. * foreground = The forground color. * background = The background color. * * Returns: * This widget to aid method chaining. * * See_Also: * $(LINK2 ../element/color.html, tkd.widget.color) $(BR) */ public auto setTag(this T)(string name, Image image, string foreground = Color.default_, string background = Color.default_) { this._tk.eval("%s tag configure %s -image %s -foreground {%s} -background {%s}", this.id, name, image.id, foreground, background); return cast(T) this; } /** * Get the columns. * * Returns: * An array containing all the data columns. */ public @property TreeViewColumn[] columns() { return this._columns; } /** * Show all data columns in the event some or all are hidden. * * Returns: * This widget to aid method chaining. */ public auto displayAllDataColumns(this T)() { this._tk.eval("%s configure -displaycolumns #all", this.id); return cast(T) this; } /** * Show the data columns that relate to the indexes passed. * * Params: * indexes = The indexes of the data columns to show. * * Returns: * This widget to aid method chaining. */ public auto displayDataColumns(this T)(int[] indexes) { this._tk.eval("%s configure -displaycolumns {\"%s\"}", this.id, this.getDataColumnIdentifiers(indexes).join("\" \"")); return cast(T) this; } /** * Set the selection mode. * * Params: * mode = The mode of the selection. * * Returns: * This widget to aid method chaining. * * See_Also: * $(LINK2 ./treeview.html#TreeViewSelectionMode, tkd.widget.treeview.TreeViewSelectionMode) $(BR) */ public auto setSelectionMode(this T)(string mode) { this._tk.eval("%s configure -selectmode %s", this.id, mode); return cast(T) this; } /** * Hide the headings from all columns. * * Returns: * This widget to aid method chaining. */ public auto hideHeadings(this T)() { this._tk.eval("%s configure -show { %s }", this.id, this.getShownElements() .remove!(x => x == "headings") .join(" ") ); return cast(T) this; } /** * Show the headings for all columns. * * Returns: * This widget to aid method chaining. */ public auto showHeadings(this T)() { string[] elements = this.getShownElements(); elements ~= "headings"; this._tk.eval("%s configure -show { %s }", this.id, elements.join(" ")); return cast(T) this; } /** * Hide the tree view column. * * Returns: * This widget to aid method chaining. */ public auto hideTreeColumn(this T)() { this._tk.eval("%s configure -show { %s }", this.id, this.getShownElements() .remove!(x => x == "tree") .join(" ") ); return cast(T) this; } /** * Show the tree view column. * * Returns: * This widget to aid method chaining. */ public auto showTreeColumn(this T)() { string[] elements = this.getShownElements(); elements ~= "tree"; this._tk.eval("%s configure -show { %s }", this.id, elements.join(" ")); return cast(T) this; } /** * Construct a row object from a row id. * * Params: * rowId = The id of the row to construct. * * Returns: * A tree view row. */ private TreeViewRow getRowFromId(string rowId) { auto row = new TreeViewRow(); this._tk.eval("%s item %s -text", this.id, rowId); row._values ~= this._tk.getResult!(string); this._tk.eval("%s item %s -values", this.id, rowId); auto results = matchAll(this._tk.getResult!(string), "\"(.*?)\""); foreach (result; results) { row._values ~= result.captures[1]; } this._tk.eval("%s item %s -open", this.id, rowId); row._isOpen = this._tk.getResult!(bool); this._tk.eval("%s item %s -tags", this.id, rowId); results = matchAll(this._tk.getResult!(string), "\"(.*?)\""); foreach (result; results) { row._tags ~= result.captures[1]; } return row; } /** * Populate row objects and return them. * * Params: * rows = An array to append the rows to. * includeChildren = Specifies whether or not to include the children. * * Returns: * AN array of tree view rows. */ private TreeViewRow[] populateRows(string[] rowIds, bool includeChildren) { TreeViewRow[] rows; TreeViewRow currentRow; foreach (rowId; rowIds) { currentRow = this.getRowFromId(rowId); if (includeChildren) { this._tk.eval("%s children %s", this.id, rowId); currentRow.children = this.populateRows(this._tk.getResult!(string).split(), includeChildren); } rows ~= currentRow; } return rows; } /** * Get the row(s) selected in the tree view. * * Params: * includeChildren = Specifies whether or not to include the children. * * Returns: * An array containing the selected rows. */ public TreeViewRow[] getSelectedRows(bool includeChildren = false) { this._tk.eval("%s selection", this.id); string[] rowIds = this._tk.getResult!(string).split(); return this.populateRows(rowIds, includeChildren); } /** * Delete all rows in the widget. * * Returns: * This widget to aid method chaining. */ public auto deleteRows() { this._tk.eval("%s children {}", this.id); this._tk.eval("%s delete {%s}", this.id, this._tk.getResult!(string)); } /** * Mixin common commands. */ mixin Height; mixin Padding; mixin XScrollCommand!(TreeView); mixin YScrollCommand!(TreeView); } /** * A class representing a column in the tree view. */ class TreeViewColumn : Element { /** * The parent of this column. */ private TreeView _parent; /** * The title of the heading. */ private string _title; /** * The anchor position of the heading title. */ private string _anchor = AnchorPosition.west; /** * The image of the heading. */ private Image _image; /** * The minimum width of the column. */ private int _minWidth = 20; /** * Whether to alter the size of the column when the widget is resized. */ private bool _stretch = true; /** * Width of the column. */ private int _width = 200; /** * The command associated with the heading. */ private CommandCallback _commandCallback; /** * Construct a new column to add the treeview column to the column * collection. * * '#0' is the built-in Tcl/Tk display id of the tree view column. * This allows access to this column even if it wasn't created by us. */ private this() { super(); this.overrideGeneratedId("#0"); } /** * Construct a new column. * * Params: * title = The optional title of the heading. * anchor = The anchor position of the heading title. */ public this(string title = null, string anchor = AnchorPosition.west) { this._elementId = "column"; this.setHeading(title, anchor); } /** * Initialise the column and attach to a parent. * * Params: * parent = The parent tree view. */ private void init(TreeView parent) { this._parent = parent; this.setHeading(this._title, this._anchor); this.setHeadingImage(this._image); this.setHeadingCommand(this._commandCallback); this.setMinWidth(this._minWidth); this.setStretch(this._stretch); this.setWidth(this._width); } /** * Set the heading title. * * Params: * title = The title of the column. * anchor = The anchor position of the text. * * Returns: * This column to aid method chaining. * * See_Also: * $(LINK2 ./anchorposition.html, tkd.widget.anchorposition) $(BR) */ public auto setHeading(this T)(string title, string anchor = AnchorPosition.west) { this._title = title; this._anchor = anchor; if (this._parent) { this._tk.eval("%s heading %s -text {%s} -anchor %s", this._parent.id, this.id, this._title, this._anchor); } return cast(T) this; } /** * Set the heading image. * * Params: * image = The image to use. * * Returns: * This column to aid method chaining. */ public auto setHeadingImage(this T)(Image image) { this._image = image; if (this._parent && this._image) { this._tk.eval("%s heading %s -text {%s} -anchor %s -image %s", this._parent.id, this.id, this._title, this._anchor, image.id); } return cast(T) this; } /** * Set the column command to be executed when clicking on the heading. * * Params: * callback = The delegate callback to execute when invoking the command. * * Returns: * This widget to aid method chaining. * * Callback_Arguments: * These are the fields within the callback's $(LINK2 * ../element/element.html#CommandArgs, CommandArgs) parameter which * are populated by this method when the callback is executed. * $(P * $(PARAM_TABLE * $(PARAM_ROW CommandArgs.element, The column that executed the callback.) * $(PARAM_ROW CommandArgs.uniqueData, The internal id of the tree view (An implementation detail that's not very useful).) * $(PARAM_ROW CommandArgs.callback, The callback which was executed.) * ) * ) * * See_Also: * $(LINK2 ../element/element.html#CommandCallback, tkd.element.element.CommandCallback) */ public auto setHeadingCommand(this T)(CommandCallback callback) { this._commandCallback = callback; if (this._parent && this._commandCallback) { string command = this.createCommand(callback, this._parent.id); this._tk.eval("%s heading %s -command %s", this._parent.id, this.id, command); } return cast(T) this; } /** * Remove the column command. * * Returns: * This widget to aid method chaining. */ public auto removeHeadingCommand(this T)() { if (this._parent && this._commandCallback) { this._tk.deleteCommand(this.getCommandName(this._parent.id)); this._tk.eval("%s heading %s -command {}", this._parent.id, this.id); } return cast(T) this; } /** * Set the minium width of the column. * * Params: * minWidth = The minimum width in pixels. * * Returns: * This widget to aid method chaining. */ public auto setMinWidth(this T)(int minWidth) { this._minWidth = minWidth; if (this._parent) { this._tk.eval("%s column %s -minwidth %s", this._parent.id, this.id, this._minWidth); } return cast(T) this; } /** * Enable or disable stretching for the column. This controls how this * column react when other columns or the parent widget is resized. * * Params: * stretch = true for enabling stretching, false to disable. * * Returns: * This widget to aid method chaining. */ public auto setStretch(this T)(bool stretch) { this._stretch = stretch; if (this._parent) { this._tk.eval("%s column %s -stretch %s", this._parent.id, this.id, this._stretch); } return cast(T) this; } /** * Set the width of the column. * * Params: * width = The width in pixels. * * Returns: * This widget to aid method chaining. */ public auto setWidth(this T)(int width) { this._width = width; if (this._parent) { this._tk.eval("%s column %s -width %s", this._parent.id, this.id, this._width); } return cast(T) this; } } /** * A class representing a row in the tree view. */ class TreeViewRow { /** * An array containing the column values. */ private string[] _values; /** * Boolean representing if the row was set to be open when created. */ private bool _isOpen; /** * An array containing the tags. */ private string[] _tags; /** * An array containing the child rows. */ public TreeViewRow[] children; /** * Constructor. */ private this() { } /** * Constructor. * * Params: * values = The values of the columns. * isOpen = Whether or not to display the row open. * tags = The tags to associate to this row. */ public this(string[] values, bool isOpen = false, string[] tags = []) { assert(values.length, "There must be at least 1 value in the row."); this._values = values; this._isOpen = isOpen; this._tags = tags; } /** * Get the data column values. * * Returns: * An array containing the data values. */ public @property string[] values() { return this._values; } /** * Get if the row was open. * * Returns: * true if the row was set to be open, false if not. */ public @property bool isOpen() { return this._isOpen; } /** * Get the tags. * * Returns: * An array of tags assocaited to this row. */ public @property string[] tags() { return this._tags; } /** * String representation. */ debug override public string toString() { return format("Values: %s, isOpen: %s, Tags: %s, Children: %s", this.values, this.isOpen, this.tags, this.children); } } /** * Tree view selection modes. */ enum TreeViewSelectionMode : string { browse = "browse", /// The default mode, allows one selection only. extended = "extended", /// Allows multiple selections to be made. none = "none", /// Disabled all selection. }
D
version (linux) { //import us.voxg.ewiusb.alsa; import std.process, std.regex; } version (Windows) { import us.voxg.midi.winmidi; import core.thread; } import std.array, std.conv, std.string; class MidiDevice { string address; string name; this(string addr, string desc) { address = addr; name = desc; } } class MidiIO { version (Windows) { private static void sendShorty(HMIDIOUT hmo, ubyte status, ubyte data1, ubyte data2) { union Shorty { uint packed; ubyte data[4]; } Shorty s; s.data[0] = status; s.data[1] = data1; s.data[2] = data2; s.data[3] = 0; if (midiOutShortMsg(hmo, s.packed)) throw new Exception( format("Error sending message: %02x %02x %02x", status, data1, data2)); } private static void sendSysex(HMIDIOUT hmo, ubyte[] sysex) { MIDIHDR header; // Prepare the header for the message header.lpData = sysex; header.dwBufferLength = sysex.length; err = midiOutPrepareHeader(handle, &header, header.sizeof); if (err) throw new Exception("Error preparing MIDI header"); // Send the message err = midiOutLongMsg(handle, &header, header.sizeof); if (err) { char errMsg[120]; midiOutGetErrorTextA(err, errMsg, 120); throw new Exception(errMsg); } while (MIDIERR_STILLPLAYING == midiOutUnprepareHeader(handle, &header, header.sizeof)) { Thread.sleep(dur!("msecs")(10)); // sleep a bit until sent } } private static void enterSysexMode(HMIDIOUT hmo) { sendShorty(hmo, 0xB0, 0x63, 0x01); sendShorty(hmo, 0xB0, 0x62, 0x04); sendShorty(hmo, 0xB0, 0x06, 0x20); } private static void leaveSysexMode(HMIDIOUT hmo) { sendShorty(hmo, 0xB0, 0x63, 0x01); sendShorty(hmo, 0xB0, 0x62, 0x04); sendShorty(hmo, 0xB0, 0x06, 0x10); } static MidiDevice[] getDevices() { MidiDevice[] devs; int[string] devices; uint inputs = midiIntGetNumDevs(); for (uint i = 0; i < inputs; i++) { MIDIINCAPS incap; uint r = midiInGetDevCapsA(i, &incap, incap.sizeof); if (r == 0) { string name = incap.szPname[0..incap.szPname.indexOf('\0')]; devices[name] = i; } } uint outputs = midiOutGetNumDevs(); for (uint i = 0; i < outputs; i++) { MIDIOUTCAPS outcap; uint r = midiOutGetDevCapsA(i, &outcap, outcap.sizeof); if (r == 0) { string name = outcap.szPname[0..outcap.szPname.indexOf('\0')]; if (devices.get(name, -1) >= 0) { devs ~= new MidiDevice(format("%d,%d", devices[name], i), name); } } } return devs; } static void configure(string dev, ubyte[][] sysex) { HMIDIOUT handle; MIDIHDR header; uint err = midiOutOpen(&handle, parse!uint(split(dev, ",")[1]), 0, 0, CALLBACK_NULL); if (err) throw new Exception("Could not open output device"); scope(exit) midiOutClose(handle); foreach (m; sysex) { enterSysexMode(handle); sendSysex(handle, m); } leaveSysexMode(handle); } shared uint received = -1; shared ubyte sysex_input[128]; extern (Windows) { private void sysex_listener(HMIDIIN hdl, uint msg, void *inst, void *param1, void *param2) { if (msg == MIM_LONGDATA) { MIDIHDR *hdr = cast(MIDIHDR*)param1; ubyte *sysex = cast(ubyte*)hdr.lpData; for (int i = 0; i < hdr.dwBytesRecorded && i < sysex_input.length; i++) { sysex_input[i] = sysex[i]; } received = hdr.dwBytesRecorded; } } } static ubyte[] receiveConfig(string dev, uint bank) { ubyte bnk = 0x40; if (bank != 0) bnk = 0x42; ubyte[] sysex = [ 0xf0, 0x47, 0x7f, 0x6d, bnk, 0x00, 0x00, 0xf7 ]; // open the input and set up some callback HMIDIIN inhdl; uint err = midiInOpen(&inhdl, parse!uint(split(dev, ",")[0]), cast(void*)&sysex_listener, 0, CALLBACK_FUNCTION); if (err) throw new Exception("Could not open input device"); scope(exit) { midiInReset(inhdl); while (midiInClose(inhdl) == MIDIERR_STILLPLAYING) { Thread.sleep(dur!("msecs")(100)); } } MIDIHDR inhdr; ubyte[128] buffer; inhdr.lpData = buffer; inhdr.dwBufferLength = buffer.sizeof; err = midiInPrepareHeader(inhdl, &inhdr, inhdr.sizeof); if (err) throw new Exception("Could not initialize MIDI input buffer"); err = midiInAddBuffer(inhdl, &inhdr, inhdr.sizeof); if (err) throw new Exception("Error initializing MIDI input buffer"); err = midiInStart(inhdl); if (err) throw new Exception("Error starting MIDI input"); // open the output HMIDIOUT handle; MIDIHDR header; err = midiOutOpen(&handle, parse!uint(split(dev, ",")[1]), 0, 0, CALLBACK_NULL); if (err) throw new Exception("Could not open output device"); scope(exit) midiOutClose(handle); // Auto-close when we leave this function // send the sysex enterSysexMode(handle); sendSysex(handle, sysex); // wait for the input while (received < 1) { Thread.sleep(dur!("msecs")(25)); } // send the post_messages leaveSysexMode(handle); // return the sysex from input uint sysex_end = sysex_input.length; if (sysex_end > received) sysex_end = received; return sysex_input[0..sysex_end]; } } // version(Windows) version (linux) { static MidiDevice[] getDevices() { MidiDevice[] devs; string[] devices = splitLines(shell("amidi -l")); auto r = regex(`^IO +([^ ]+) +(.*)$`); foreach (string s; devices) { foreach (m; match(s, r)) { auto c = m.captures; devs ~= new MidiDevice(c[1], c[2]); } } return devs; } private static ubyte[] parseSysex(string s) { ubyte[] r; while (s.length > 1) { s.munch(" \t\r\n"); r ~= parse!ubyte(s, 16); } return r; } static void configure(string dev, ubyte[][] sysex) { string command = "amidi -p \"" ~ dev ~ "\" -S "; foreach (message; sysex) { command ~= "B06301B06204B00620"; // NRPN, turns on sysex mode foreach (b; message) { command ~= format("%02X ", cast(uint)b); } } command ~= "B06301B06204B00610"; // NRPN, turn off sysex mode shell(command); } static ubyte[] receiveConfig(string dev, uint bank) { string bnk = "0"; if (bank != 0) bnk = "2"; ubyte[] sysex = parseSysex(shell("amidi -p " ~ dev ~ " -S B06301B06204B00620F0477F6D4" ~ bnk ~ "0000F7 -d -t 1")); shell("amidi -p " ~ dev ~ " -S B06301B06204B00610"); return sysex; } } // version (linux) } // class MidiIO
D
instance VLK_451_Buerger(Npc_Default) { name[0] = NAME_Buerger; guild = GIL_VLK; id = 451; voice = 8; flags = 0; npcType = NPCTYPE_AMBIENT; B_SetAttributesToChapter(self,2); fight_tactic = FAI_HUMAN_COWARD; EquipItem(self,ItMw_1h_Vlk_Dagger); B_CreateAmbientInv(self); B_SetNpcVisual(self,MALE,"Hum_Head_Bald",Face_N_Lefty,BodyTex_N,ITAR_Vlk_L); Mdl_SetModelFatness(self,0); Mdl_ApplyOverlayMds(self,"Humans_Tired.mds"); B_GiveNpcTalents(self); B_SetFightSkills(self,30); daily_routine = Rtn_Start_451; }; func void Rtn_Start_451() { TA_Smalltalk(6,10,13,0,"NW_CITY_MERCHANT_SHOP01_FRONT_03"); TA_Smalltalk(13,0,14,2,"NW_CITY_MAINSTREET_05"); TA_Smalltalk(14,2,17,0,"NW_CITY_MERCHANT_SHOP01_FRONT_03"); TA_Smalltalk(17,0,18,2,"NW_CITY_MAINSTREET_05"); TA_Smalltalk(18,2,20,10,"NW_CITY_MERCHANT_SHOP01_FRONT_03"); TA_Sit_Chair(20,10,20,35,"NW_CITY_TAVERN_IN_05"); TA_Stand_ArmsCrossed(20,35,0,15,"NW_CITY_MERCHANT_TAVERN01_IN"); TA_Sit_Chair(0,15,6,10,"NW_CITY_TAVERN_IN_05"); };
D
/Users/lanussebaptiste/Desktop/AnimatedTabBar/Build/Intermediates/Pods.build/Debug-iphonesimulator/RAMAnimatedTabBarController.build/Objects-normal/x86_64/RAMBadge.o : /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/RAMAnimatedTabBarController.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/RAMBadge/RAMBadge.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/Animations/BounceAnimation/RAMBounceAnimation.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/Animations/FrameAnimation/RAMFrameItemAnimation.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/Animations/FumeAnimation/RAMFumeAnimation.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/RAMItemAnimationProtocol.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/Animations/RotationAnimation/RAMRotationAnimation.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/Animations/TransitionAniamtions/RAMTransitionItemAnimations.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/Target\ Support\ Files/RAMAnimatedTabBarController/RAMAnimatedTabBarController-umbrella.h /Users/lanussebaptiste/Desktop/AnimatedTabBar/Build/Intermediates/Pods.build/Debug-iphonesimulator/RAMAnimatedTabBarController.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 /Users/lanussebaptiste/Desktop/AnimatedTabBar/Build/Intermediates/Pods.build/Debug-iphonesimulator/RAMAnimatedTabBarController.build/Objects-normal/x86_64/RAMBadge~partial.swiftmodule : /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/RAMAnimatedTabBarController.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/RAMBadge/RAMBadge.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/Animations/BounceAnimation/RAMBounceAnimation.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/Animations/FrameAnimation/RAMFrameItemAnimation.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/Animations/FumeAnimation/RAMFumeAnimation.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/RAMItemAnimationProtocol.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/Animations/RotationAnimation/RAMRotationAnimation.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/Animations/TransitionAniamtions/RAMTransitionItemAnimations.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/Target\ Support\ Files/RAMAnimatedTabBarController/RAMAnimatedTabBarController-umbrella.h /Users/lanussebaptiste/Desktop/AnimatedTabBar/Build/Intermediates/Pods.build/Debug-iphonesimulator/RAMAnimatedTabBarController.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 /Users/lanussebaptiste/Desktop/AnimatedTabBar/Build/Intermediates/Pods.build/Debug-iphonesimulator/RAMAnimatedTabBarController.build/Objects-normal/x86_64/RAMBadge~partial.swiftdoc : /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/RAMAnimatedTabBarController.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/RAMBadge/RAMBadge.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/Animations/BounceAnimation/RAMBounceAnimation.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/Animations/FrameAnimation/RAMFrameItemAnimation.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/Animations/FumeAnimation/RAMFumeAnimation.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/RAMItemAnimationProtocol.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/Animations/RotationAnimation/RAMRotationAnimation.swift /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/RAMAnimatedTabBarController/RAMAnimatedTabBarController/Animations/TransitionAniamtions/RAMTransitionItemAnimations.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/lanussebaptiste/Desktop/AnimatedTabBar/Pods/Target\ Support\ Files/RAMAnimatedTabBarController/RAMAnimatedTabBarController-umbrella.h /Users/lanussebaptiste/Desktop/AnimatedTabBar/Build/Intermediates/Pods.build/Debug-iphonesimulator/RAMAnimatedTabBarController.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
D
module dscord.types.user; import std.stdio, std.format; import dscord.types, dscord.client; alias UserMap = ModelMap!(Snowflake, User); enum GameType : ushort { DEFAULT = 0, STREAMING = 1, LISTENING = 2, WATCHING = 3 } enum UserStatus : string { ONLINE = "online", IDLE = "idle", DND = "dnd", INVISIBLE = "invisible", OFFLINE = "offline", } class Game { string name; string url; GameType type; this(string name="", string url="", GameType type=GameType.DEFAULT) { this.name = name; this.url = url; this.type = type; } // TODO: remove VibeJSON dump() { VibeJSON obj = VibeJSON.emptyObject; obj["name"] = VibeJSON(this.name); if (this.url != "") { obj["url"] = VibeJSON(this.url); obj["type"] = VibeJSON(cast(ushort)this.type); } return obj; } } class Presence : IModel { mixin Model; User user; Game game; UserStatus status; } class User : IModel { mixin Model; Snowflake id; string username; string discriminator; string avatar; bool verified; string email; override string toString() { return format("<User %s#%s (%s)>", this.username, this.discriminator, this.id); } }
D
a method of treating disease with small amounts of remedies that, in large amounts in healthy people, produce symptoms similar to those being treated
D
/Users/apple/DailySchedule/step2/os/target/rls/riscv64imac-unknown-none-elf/debug/deps/bit_field-5f3674d09ccb80ec.rmeta: /Users/apple/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bit_field-0.10.0/src/lib.rs /Users/apple/DailySchedule/step2/os/target/rls/riscv64imac-unknown-none-elf/debug/deps/bit_field-5f3674d09ccb80ec.d: /Users/apple/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bit_field-0.10.0/src/lib.rs /Users/apple/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bit_field-0.10.0/src/lib.rs:
D
/** * D header file for POSIX. * * Copyright: Copyright Sean Kelly 2005 - 2009. * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). * Authors: Sean Kelly * Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition */ /* Copyright Sean Kelly 2005 - 2009. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE or copy at * http://www.boost.org/LICENSE_1_0.txt) */ module core.sys.posix.netinet.tcp; import core.sys.posix.config; version (OSX) version = Darwin; else version (iOS) version = Darwin; else version (TVOS) version = Darwin; else version (WatchOS) version = Darwin; version (Posix): extern (C): // // Required // /* TCP_NODELAY */ version (CRuntime_Glibc) { enum TCP_NODELAY = 1; } else version (Darwin) { enum TCP_NODELAY = 1; } else version (FreeBSD) { enum TCP_NODELAY = 1; } else version (NetBSD) { enum TCP_NODELAY = 1; } else version (OpenBSD) { enum TCP_NODELAY = 1; } else version (DragonFlyBSD) { enum TCP_NODELAY = 1; } else version (Solaris) { enum TCP_NODELAY = 1; } else version (linux) { enum TCP_NODELAY = 1; }
D
instance INFO_MINE_GRD_6_EXIT(C_INFO) { nr = 999; condition = info_mine_grd_6_exit_condition; information = info_mine_grd_6_exit_info; permanent = 1; description = DIALOG_ENDE; }; func int info_mine_grd_6_exit_condition() { return 1; }; func void info_mine_grd_6_exit_info() { AI_StopProcessInfos(self); }; instance INFO_MINE_GRD_6_MINE(C_INFO) { nr = 1; condition = info_mine_grd_6_mine_condition; information = info_mine_grd_6_mine_info; permanent = 1; description = "Что происходит на шахте?"; }; func int info_mine_grd_6_mine_condition() { if(KAPITEL < 3) { return 1; }; }; func void info_mine_grd_6_mine_info() { AI_Output(other,self,"Info_Mine_Grd_6_Mine_15_00"); //Что происходит на шахте? AI_Output(self,other,"Info_Mine_Grd_6_Mine_06_01"); //Рудокопы добывают руду. Кто не хочет работать, того ждет нещадное наказание. }; instance INFO_MINE_GRD_6_WICHTIGEPERSONEN(C_INFO) { nr = 1; condition = info_mine_grd_6_wichtigepersonen_condition; information = info_mine_grd_6_wichtigepersonen_info; permanent = 1; description = "Кто здесь командует?"; }; func int info_mine_grd_6_wichtigepersonen_condition() { if(KAPITEL < 3) { return 1; }; }; func void info_mine_grd_6_wichtigepersonen_info() { AI_Output(other,self,"Info_Mine_Grd_6_WichtigePersonen_15_00"); //Кто здесь командует? AI_Output(self,other,"Info_Mine_Grd_6_WichtigePersonen_06_01"); //Асгхан командует стражниками, а Ян управляет шахтой, организует добычу руды. }; instance INFO_MINE_GRD_6_MINECRAWLER(C_INFO) { nr = 1; condition = info_mine_grd_6_minecrawler_condition; information = info_mine_grd_6_minecrawler_info; permanent = 1; description = "Расскажи мне о ползунах."; }; func int info_mine_grd_6_minecrawler_condition() { if(KAPITEL < 3) { return 1; }; }; func void info_mine_grd_6_minecrawler_info() { AI_Output(other,self,"Info_Mine_Grd_6_Minecrawler_15_00"); //Расскажи мне о ползунах. AI_Output(self,other,"Info_Mine_Grd_6_Minecrawler_06_01"); //Эти твари сильно портят нам жизнь. Даже не знаю, от кого больше проблем: от них или от рудокопов. }; instance INFO_MINE_GRD_6_DIELAGE(C_INFO) { nr = 1; condition = info_mine_grd_6_dielage_condition; information = info_mine_grd_6_dielage_info; permanent = 1; description = "Как идут дела?"; }; func int info_mine_grd_6_dielage_condition() { if(KAPITEL < 3) { return 1; }; }; func void info_mine_grd_6_dielage_info() { AI_Output(other,self,"Info_Mine_Grd_6_DieLage_15_00"); //Как идут дела? AI_Output(self,other,"Info_Mine_Grd_6_DieLage_06_01"); //А ты как думаешь? }; func void b_assignambientinfos_mine_grd_6(var C_NPC slf) { info_mine_grd_6_exit.npc = Hlp_GetInstanceID(slf); info_mine_grd_6_mine.npc = Hlp_GetInstanceID(slf); info_mine_grd_6_wichtigepersonen.npc = Hlp_GetInstanceID(slf); info_mine_grd_6_minecrawler.npc = Hlp_GetInstanceID(slf); info_mine_grd_6_dielage.npc = Hlp_GetInstanceID(slf); };
D
// URL: https://yukicoder.me/problems/no/688 import std.algorithm, std.array, std.container, std.math, std.range, std.typecons, std.string; version(unittest) {} else void main() { int K; io.getV(K); foreach (long x; 0..31) foreach (long y; 0..31) if (x+y >= 1 && x+y <= 30 && 2^^x*y*(y-1)/2 == K) { io.put(x+y); io.put(chain(0.repeat.take(x), 1.repeat.take(y))); return; } } auto io = IO!()(); import lib.io;
D
/* TEST_OUTPUT: --- fail_compilation/fail20547.d(12): Error: cannot create a `string[string]` with `new` fail_compilation/fail20547.d(14): Error: cannot create a `string[string]` with `new` --- */ void main() { //https://issues.dlang.org/show_bug.cgi?id=11790 string[string] crash = new string[string]; //https://issues.dlang.org/show_bug.cgi?id=20547 int[string] c = new typeof(crash); }
D