code
stringlengths
3
10M
language
stringclasses
31 values
module ws.gui.inputFieldSimple; import std.conv, ws.event, ws.io, ws.time, ws.math.math, ws.gl.draw, ws.gui.base, ws.gui.text; class InputField: Base { bool hasFocus = false; Event!string onEnter; string text; size_t cursor; string error; double errorTime; bool blockChar; this(){ setCursor(Mouse.cursor.text); onEnter = new Event!string; } override void onKeyboard(dchar c){ if(!blockChar){ text = text[0..cursor] ~ c.to!string ~ text[cursor..$]; cursor++; blockChar = false; } } override void onKeyboard(Keyboard.key key, bool pressed){ if(!pressed) return; blockChar = true; switch(key){ case Keyboard.backspace: if(cursor > 0){ text = text[0..cursor-1] ~ text[cursor..$]; cursor--; } break; case Keyboard.del: if(cursor < text.length){ text = text[0..cursor] ~ text[cursor+1..$]; } break; case Keyboard.enter: try onEnter(text); catch(InputException e){ error = e.msg; errorTime = now; } break; case Keyboard.right: if(Keyboard.get(Keyboard.control)) while(cursor < text.length && text[cursor+1] != ' ') ++cursor; else if(cursor < text.length) ++cursor; break; case Keyboard.left: if(Keyboard.get(Keyboard.control)) while(cursor > 0 && text[cursor-1] != ' ') --cursor; else if(cursor > 0) --cursor; break; default: blockChar = false; break; } } override void onKeyboardFocus(bool hasFocus){ this.hasFocus = hasFocus; } override void onDraw(){ draw.setColor([0.867,0.514,0]); draw.rectOutline(pos, size); auto color = style.fg.normal; if(hasFocus || hasMouseFocus){ auto alpha = (sin(now*PI*2)+0.5).min(1).max(0)*0.9+0.1; draw.setColor([1*alpha,1*alpha,1*alpha]); int x = draw.width(text[0..cursor]); draw.rect(pos.a + [x+4, 4], [1, size.h-8]); } auto t = now; if(errorTime+2 > t){ auto alpha = clamp!float(errorTime+2 - t, 0, 1)/1; draw.setColor([1,0,0,alpha]); draw.rect(pos, size); draw.setFont("Consolas", 9); draw.setColor([1,1,1,alpha]); draw.text(pos.a + [2, 0], size.h, error); } draw.setColor([1,1,1]); draw.text(pos, size.h, text); } } class InputException: Exception { InputField text; this(InputField t, string msg, string file = __FILE__, size_t line = __LINE__){ text = t; super(msg, null, file, line); } this(InputField t, string msg, Exception cause, string file = __FILE__, size_t line = __LINE__){ text = t; super(msg, cause, file, line); } }
D
#!/usr/bin/env dub /+ dub.sdl: name "bench_jwtd" targetType "executable" dependency "jwtd" version="~>0.4.6" configuration "phobos" { targetName "bench_jwtd_phobos" subConfiguration "jwtd" "phobos" } configuration "openssl" { targetName "bench_jwtd_openssl" subConfiguration "jwtd" "openssl-1.1" } configuration "botan" { targetName "bench_jwtd_botan" subConfiguration "jwtd" "botan" } +/ module bench.jwtd; import core.memory; import std.conv; import std.datetime.stopwatch; import std.json; import std.stdio; import jwtd.jwt; int main(string[] args) { // args: enc/dec/val, cycle count, alg, token/payload, signature // output: // payload/token/true // msecs taken // GC used bytes if (args.length != 6) { writeln("Invalid args"); return 1; } size_t cycles = args[2].to!size_t; JWTAlgorithm alg = args[3].to!JWTAlgorithm; { StopWatch sw; sw.start(); immutable prevAllocated = GC.allocatedInCurrentThread; scope (exit) { sw.stop(); writeln(sw.peek.total!"msecs"); writeln(GC.allocatedInCurrentThread - prevAllocated); } try { if (args[1] == "val") return validate(cycles, args[4], args[5]); else if (args[1] == "dec") return decode(cycles, args[4], args[5]); else if (args[1] == "enc") return encode(cycles, alg, args[4], args[5]); } catch (Exception ex) { writeln(ex.msg); return 1; } } writeln("Invalid command: ", args[1]); return 1; } int validate(size_t cycles, string token, string secret) { bool res; foreach (_; 0..cycles) res = verify(token, secret); writeln(res); return 0; } int decode(size_t cycles, string token, string secret) { JSONValue res; foreach (_; 0..cycles) res = jwtd.jwt.decode(token, secret); writeln(res); return 0; } int encode(size_t cycles, JWTAlgorithm alg, string payload, string secret) { string res; JSONValue pay = parseJSON(payload); foreach (_; 0..cycles) res = jwtd.jwt.encode(pay, secret, alg); writeln(res); return 0; }
D
/workspace/target/debug/deps/lazy_static-add60b10b58fc28f.rmeta: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/inline_lazy.rs /workspace/target/debug/deps/lazy_static-add60b10b58fc28f.d: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/inline_lazy.rs /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/inline_lazy.rs:
D
// // Hello World client // Connects REQ socket to tcp://localhost:5555 // Sends "Hello" to server, expects "World" back // import zmq; import std.stdio; import core.thread; int main () { void *context = zmq_ctx_new (); // Socket to talk to server writeln ("Connecting to hello world server…"); void *requester = zmq_socket (context, ZMQ_REQ); zmq_connect (requester, "tcp://localhost:5555"); int request_nbr; for (request_nbr = 0; request_nbr != 10; request_nbr++) { zmq_msg_t request; zmq_msg_init_size (&request, 5); //memcpy (zmq_msg_data (&request), "Hello", 5); (cast(char*) zmq_msg_data(&request))[0..5] = "Hello"; write ("Sending Hello %d…\n", request_nbr); zmq_msg_send (&request, requester, 0); zmq_msg_close (&request); zmq_msg_t reply; zmq_msg_init (&reply); zmq_msg_recv (&reply, requester, 0); write ("Received World %d\n", request_nbr); zmq_msg_close (&reply); } Thread.sleep (dur!"msecs"(2)); zmq_close (requester); zmq_ctx_destroy (context); return 0; }
D
/** Copyright: Martin Nowak 2013-. License: MIT License, see LICENSE Authors: $(WEB code.dawg.eu, Martin Nowak) */ module hyphenate; import std.algorithm, std.conv, std.range; import std.ascii : isDigit; import std.uni : toLower; import std.stdio, std.traits; import core.bitop; /** Compressed representation for short integral arrays. */ struct BitArray { /// this(R)(in R data) if (isIntegral!(ElementType!R) && isUnsigned!(ElementType!R)) { _bits = encode(data); } /// @property bool empty() const { return _bits == fillBits; } /// @property ubyte front() const in { assert(!empty); } do { return cast(ubyte)((!!(_bits & 1) ? bsf(~_bits) : bsf(_bits)) - 1); } /// void popFront() { immutable shift = front + 1; _bits = _bits >> shift | fillBits << 32 - shift; } private: uint encode(R)(in R data) in { assert(reduce!"a+b"(0, data) + data.length < 32, data.to!string()); } do { uint res = fillBits; size_t i; foreach (val; data.retro()) { res <<= val + 1; if (i++ & 1) res |= (1 << val + 1) - 1; } return res; } enum fillBits = uint.max; uint _bits = fillBits; } unittest { foreach (val; BitArray([14u, 15u])) {} foreach (data; [[0u], [0u, 1u, 0u], [30u], [14u, 15u], [0u, 13u, 13u, 0u, 0u]]) assert(equal(BitArray(data), data)); } alias Priorities = BitArray; @property auto letters(string s) { return s.filter!(a => !a.isDigit())(); } @property Priorities priorities(R)(R r) { ubyte[20] buf = void; size_t pos = 0; while (!r.empty) { immutable c = r.front; r.popFront(); if (c.isDigit()) { buf[pos++] = cast(ubyte)(c - '0'); if (!r.empty) r.popFront(); } else { buf[pos++] = 0; } } while (pos && buf[pos-1] == 0) --pos; return Priorities(buf[0 .. pos]); } /// unittest { enum testcases = [ "a1bc3d4" : [0, 1, 0, 3, 4], "to2gr" : [0, 0, 2], "1to" : [1], "x3c2" : [0, 3, 2], "1a2b3c4" : [1, 2, 3, 4], ]; foreach (pat, prios; testcases) assert(equal(priorities(pat), prios)); } // HACK: core.bitop.bt is not always inlined bool bt(in uint* p, size_t bitnum) pure nothrow { return !!(p[bitnum >> 5] & 1 << (bitnum & 31)); } struct Trie { this(dchar c) { debug _c = c; } static struct Table { inout(Trie)* opBinaryRight(string op : "in")(dchar c) inout { if (c >= 128 || !bt(bitmask.ptr, c)) return null; return &entries[getPos(c)-1]; } ref Trie getLvalue(dchar c) { if (c >= 128) assert(0); auto npos = getPos(c); if (!bts(bitmaskPtr, c)) entries.insertInPlace(npos++, Trie(c)); return entries[npos-1]; } private size_t getPos(dchar c) const { immutable nbyte = c / 32; c &= 31; size_t npos; foreach (i; 0 .. nbyte) npos += _popcnt(bitmask[i]); npos += _popcnt(bitmask[nbyte] & (1 << c | (1 << c) - 1)); return npos; } private @property inout(size_t)* bitmaskPtr() inout { return cast(inout(size_t)*)bitmask.ptr; } version (DigitalMars) private static int asmPopCnt(uint val) pure { static if (__VERSION__ > 2066) enum pure_ = " pure"; else enum pure_ = ""; version (D_InlineAsm_X86) mixin("asm"~pure_~" { naked; popcnt EAX, EAX; ret; }"); else version (D_InlineAsm_X86_64) mixin("asm"~pure_~" { naked; popcnt EAX, EDI; ret; }"); else assert(0); } private static immutable int function(uint) pure _popcnt; shared static this() { import core.cpuid; static if (is(typeof(core.bitop.popcnt!()(0)))) _popcnt = &core.bitop.popcnt!(); else _popcnt = &core.bitop.popcnt; version (DigitalMars) if (hasPopcnt) _popcnt = &asmPopCnt; } uint[4] bitmask; Trie[] entries; } debug dchar _c; Priorities priorities; version (none) Trie[dchar] elems; else Table elems; } /** Hyphenator is used to build the pattern tries. */ struct Hyphenator { /// initialize with the content of a Tex pattern file this(string s) { auto lines = s.splitter("\n"); lines = lines.find!(a => a.startsWith(`\patterns{`))(); lines.popFront(); foreach (line; refRange(&lines).until!(a => a.startsWith("}"))()) { insertPattern(line); } assert(lines.front.startsWith("}")); lines.popFront(); assert(lines.front.startsWith(`\hyphenation{`)); lines.popFront(); foreach (line; refRange(&lines).until!(a => a.startsWith("}"))()) { insertException(line); } assert(lines.front.startsWith("}")); lines.popFront(); assert(lines.front.empty); lines.popFront(); assert(lines.empty); } /// hyphenate $(PARAM word) with $(PARAM hyphen) string hyphenate(const(char)[] word, const(char)[] hyphen) const { string ret; hyphenate(word, hyphen, (s) { ret ~= s; }); return ret; } /// hyphenate $(PARAM word) with $(PARAM hyphen) and output the result to $(PARAM sink) void hyphenate(const(char)[] word, const(char)[] hyphen, scope void delegate(in char[]) sink) const { if (word.length <= 3) return sink(word); static ubyte[] buf; static Appender!(char[]) app; app.put(word.map!toLower()); const(ubyte)[] prios; if (auto p = app.data in exceptions) prios = *p; else prios = buildPrios(app.data, buf); app.clear(); assert(prios.length == word.length-1); app.put(word.front); word.popFront(); foreach (c, prio; zip(word, prios)) { if (prio & 1) app.put(hyphen); app.put(c); } sink(app.data); app.clear(); } private: ubyte[] buildPrios(in char[] word, ref ubyte[] buf) const { auto search = chain(".", word, "."); if (buf.length < word.length + 3) { assumeSafeAppend(buf); buf.length = word.length + 3; } buf[] = 0; for (size_t pos; !search.empty; ++pos, search.popFront()) { auto p = &root; foreach (c; search) { if ((p = c in p.elems) is null) break; size_t off; foreach (prio; cast()p.priorities) { buf[pos + off] = max(buf[pos + off], prio); ++off; } } } // trim priorities before and after leading '.' // trim priorities before and after trailing '.' auto slice = buf[2..2+word.length-1]; // no hyphens after first or before last letter slice[0] = slice[$-1] = 0; return slice; } Leave findLeave(R)(R rng) { return root.getLeave(rng, false); } void insertPattern(R)(R rng) { auto p = &getTerminal(rng.letters); *p = rng.priorities; } private ref Priorities getTerminal(R)(R rng) { auto p = &root; foreach (c; rng) p = &p.elems.getLvalue(c); return p.priorities; } void insertException(string s) { auto prios = exceptionPriorities(s); s = s.filter!(a => a != '-')().to!string(); exceptions[s] = prios; } static immutable(ubyte)[] exceptionPriorities(string s) { typeof(return) prios; for (s.popFront(); !s.empty; s.popFront()) { if (s.front == '-') prios ~= 1, s.popFront(); else prios ~= 0; } return prios; } unittest { assert(exceptionPriorities("as-so-ciate") == [0, 1, 0, 1, 0, 0, 0, 0]); } immutable(ubyte)[][string] exceptions; Trie root; } unittest { import std.file : readText; auto h = Hyphenator(readText("patterns/hyphen.tex")); assert(h.hyphenate("hyphenate", "-") == "hy-phen-ate"); assert(h.hyphenate("patterns", "-") == "pat-terns"); assert(h.hyphenate("foobar", "|") == "foo|bar"); assert(h.hyphenate("obligatory", "-") == "oblig-a-tory"); } unittest { import std.array : appender; import std.file : readText; auto h = Hyphenator(readText("patterns/hyphen.tex")); auto app = appender!(char[]); h.hyphenate("hyphenate", "-", s => app.put(s)); assert(app.data == "hy-phen-ate"); }
D
// Compiler implementation of the D programming language // Copyright (c) 1999-2015 by Digital Mars // All Rights Reserved // written by Walter Bright // http://www.digitalmars.com // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt module ddmd.root.port; import core.stdc.ctype; import core.stdc.string; import core.math; version (Windows) __gshared extern (C) extern const(char)* __locale_decpoint; extern (C) float strtof(const(char)* p, char** endp); extern (C) double strtod(const(char)* p, char** endp); extern (C) real strtold(const(char)* p, char** endp); extern (C++) struct Port { enum nan = double.nan; enum infinity = double.infinity; enum ldbl_max = real.max; enum ldbl_nan = real.nan; enum ldbl_infinity = real.infinity; static __gshared bool yl2x_supported = true; static __gshared bool yl2xp1_supported = true; static __gshared real snan; static this() { /* * Use a payload which is different from the machine NaN, * so that uninitialised variables can be * detected even if exceptions are disabled. */ ushort* us = cast(ushort*)&snan; us[0] = 0; us[1] = 0; us[2] = 0; us[3] = 0xA000; us[4] = 0x7FFF; } static bool isNan(double r) { return !(r == r); } static real sqrt(real x) { return .sqrt(x); } static real fmodl(real a, real b) { return a % b; } static real fequal(real a, real b) { return memcmp(&a, &b, 10) == 0; } static int memicmp(const char* s1, const char* s2, size_t n) { int result = 0; for (int i = 0; i < n; i++) { char c1 = s1[i]; char c2 = s2[i]; result = c1 - c2; if (result) { result = toupper(c1) - toupper(c2); if (result) break; } } return result; } static char* strupr(char* s) { char* t = s; while (*s) { *s = cast(char)toupper(*s); s++; } return t; } static int isSignallingNan(double r) { return isNan(r) && !(((cast(ubyte*)&r)[6]) & 8); } static int isSignallingNan(real r) { return isNan(r) && !(((cast(ubyte*)&r)[7]) & 0x40); } static int isInfinity(double r) { return r is double.infinity || r is -double.infinity; } static float strtof(const(char)* p, char** endp) { version (Windows) { auto save = __locale_decpoint; __locale_decpoint = "."; } auto r = .strtof(p, endp); version (Windows) __locale_decpoint = save; return r; } static double strtod(const(char)* p, char** endp) { version (Windows) { auto save = __locale_decpoint; __locale_decpoint = "."; } auto r = .strtod(p, endp); version (Windows) __locale_decpoint = save; return r; } static real strtold(const(char)* p, char** endp) { version (Windows) { auto save = __locale_decpoint; __locale_decpoint = "."; } auto r = .strtold(p, endp); version (Windows) __locale_decpoint = save; return r; } static void yl2x_impl(real* x, real* y, real* res) { *res = yl2x(*x, *y); } static void yl2xp1_impl(real* x, real* y, real* res) { *res = yl2xp1(*x, *y); } // Little endian static void writelongLE(uint value, void* buffer) { auto p = cast(ubyte*)buffer; p[3] = cast(ubyte)(value >> 24); p[2] = cast(ubyte)(value >> 16); p[1] = cast(ubyte)(value >> 8); p[0] = cast(ubyte)(value); } // Little endian static uint readlongLE(void* buffer) { auto p = cast(ubyte*)buffer; return (((((p[3] << 8) | p[2]) << 8) | p[1]) << 8) | p[0]; } // Big endian static void writelongBE(uint value, void* buffer) { auto p = cast(ubyte*)buffer; p[0] = cast(ubyte)(value >> 24); p[1] = cast(ubyte)(value >> 16); p[2] = cast(ubyte)(value >> 8); p[3] = cast(ubyte)(value); } // Big endian static uint readlongBE(void* buffer) { auto p = cast(ubyte*)buffer; return (((((p[0] << 8) | p[1]) << 8) | p[2]) << 8) | p[3]; } // Little endian static uint readwordLE(void* buffer) { auto p = cast(ubyte*)buffer; return (p[1] << 8) | p[0]; } // Big endian static uint readwordBE(void* buffer) { auto p = cast(ubyte*)buffer; return (p[0] << 8) | p[1]; } }
D
/Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/YoutubeKit.build/Objects-normal/x86_64/ContentDetails.o : /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/ResourceID.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/YoutubeDataAPI.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoSyndicated.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/Localized.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/HTTPMethod.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchSafeMode.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoEmbeddable.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Common/QueryParameterable.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requestable.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchResourceType.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoType.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchEventType.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoLicense.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Player/YTSwiftyPlayerDelegate.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/MyRating.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/Thumbnail.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoDimension.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/ApiSession.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoDuration.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoDefinition.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoCaption.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/PageInfo.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/ResultOrder.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/Filter.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Player/YTSwiftyPlayer.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Error/ResponseError.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Error/RequestError.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/Statistics.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/ContentDetails.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Extensions/RequestableExtensions.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Extensions/BoolExtensions.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Extensions/DictionaryExtensions.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Player/YTSwiftyConstants.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/CommentModerationStatus.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/CommentTextFormat.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/Snippet.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/YoutubeKit.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Common/Result.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/Part.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/ActivityInsertRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/SearchListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/ChannelListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/CaptionListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/VideoListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/CommentThreadsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/I18nLanguagesListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/GuideCategoriesListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/PlaylistItemsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/I18nRegionsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/ChannelSectionsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/SubscriptionsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/VideoAbuseReportReasonsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/PlaylistsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/CommentListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/VideoCategoryListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/ActivityListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/SearchList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/ChannelList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/CaptionList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/VideoList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/CommentThreadsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/I18nLanguagesList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/GuideCategoriesList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/VideoCategoriesList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/PlaylistItemsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/I18nRegionsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/ChannelSectionsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/SubscriptionsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/VideoAbuseReportReasonsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/PlaylistsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/CommentList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/ActivityList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/VideoCategory.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/radibarq/developer/NasaInArabic/Pods/Target\ Support\ Files/YoutubeKit/YoutubeKit-umbrella.h /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/YoutubeKit.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.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/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/YoutubeKit.build/Objects-normal/x86_64/ContentDetails~partial.swiftmodule : /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/ResourceID.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/YoutubeDataAPI.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoSyndicated.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/Localized.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/HTTPMethod.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchSafeMode.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoEmbeddable.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Common/QueryParameterable.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requestable.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchResourceType.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoType.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchEventType.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoLicense.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Player/YTSwiftyPlayerDelegate.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/MyRating.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/Thumbnail.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoDimension.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/ApiSession.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoDuration.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoDefinition.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoCaption.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/PageInfo.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/ResultOrder.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/Filter.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Player/YTSwiftyPlayer.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Error/ResponseError.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Error/RequestError.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/Statistics.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/ContentDetails.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Extensions/RequestableExtensions.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Extensions/BoolExtensions.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Extensions/DictionaryExtensions.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Player/YTSwiftyConstants.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/CommentModerationStatus.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/CommentTextFormat.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/Snippet.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/YoutubeKit.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Common/Result.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/Part.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/ActivityInsertRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/SearchListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/ChannelListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/CaptionListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/VideoListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/CommentThreadsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/I18nLanguagesListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/GuideCategoriesListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/PlaylistItemsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/I18nRegionsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/ChannelSectionsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/SubscriptionsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/VideoAbuseReportReasonsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/PlaylistsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/CommentListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/VideoCategoryListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/ActivityListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/SearchList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/ChannelList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/CaptionList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/VideoList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/CommentThreadsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/I18nLanguagesList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/GuideCategoriesList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/VideoCategoriesList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/PlaylistItemsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/I18nRegionsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/ChannelSectionsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/SubscriptionsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/VideoAbuseReportReasonsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/PlaylistsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/CommentList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/ActivityList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/VideoCategory.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/radibarq/developer/NasaInArabic/Pods/Target\ Support\ Files/YoutubeKit/YoutubeKit-umbrella.h /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/YoutubeKit.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.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/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/YoutubeKit.build/Objects-normal/x86_64/ContentDetails~partial.swiftdoc : /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/ResourceID.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/YoutubeDataAPI.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoSyndicated.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/Localized.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/HTTPMethod.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchSafeMode.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoEmbeddable.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Common/QueryParameterable.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requestable.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchResourceType.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoType.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchEventType.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoLicense.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Player/YTSwiftyPlayerDelegate.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/MyRating.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/Thumbnail.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoDimension.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/ApiSession.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoDuration.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoDefinition.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/SearchVideoCaption.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/PageInfo.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/ResultOrder.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/Filter.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Player/YTSwiftyPlayer.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Error/ResponseError.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Error/RequestError.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/Statistics.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/ContentDetails.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Extensions/RequestableExtensions.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Extensions/BoolExtensions.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Extensions/DictionaryExtensions.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Player/YTSwiftyConstants.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/CommentModerationStatus.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/CommentTextFormat.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/Snippet.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/YoutubeKit.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/Common/Result.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/Part.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/ActivityInsertRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/SearchListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/ChannelListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/CaptionListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/VideoListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/CommentThreadsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/I18nLanguagesListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/GuideCategoriesListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/PlaylistItemsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/I18nRegionsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/ChannelSectionsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/SubscriptionsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/VideoAbuseReportReasonsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/PlaylistsListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/CommentListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/VideoCategoryListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Requests/ActivityListRequest.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/SearchList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/ChannelList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/CaptionList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/VideoList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/CommentThreadsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/I18nLanguagesList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/GuideCategoriesList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/VideoCategoriesList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/PlaylistItemsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/I18nRegionsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/ChannelSectionsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/SubscriptionsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/VideoAbuseReportReasonsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/PlaylistsList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/CommentList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Models/ActivityList.swift /Users/radibarq/developer/NasaInArabic/Pods/YoutubeKit/YoutubeKit/API/Constants/VideoCategory.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/radibarq/developer/NasaInArabic/Pods/Target\ Support\ Files/YoutubeKit/YoutubeKit-umbrella.h /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/YoutubeKit.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.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 app; import vibe.core.core; import vibe.core.log; import vibe.core.stream; import vibe.stream.operations; import vibe.stream.wrapper; import vibe.stream.tls; import vibe.stream.taskpipe; import std.encoding : sanitize; TLSContext createContext(TLSContextKind kind, string cert, string key, string trust, TLSPeerValidationMode mode) { auto ctx = createTLSContext(kind); ctx.peerValidationMode = mode; if (cert.length) ctx.useCertificateChainFile(cert); if (key.length) ctx.usePrivateKeyFile(key); if (trust.length) ctx.useTrustedCertificateFile(trust); return ctx; } void createPipePair(out Stream a, out Stream b) { auto p1 = new TaskPipe; auto p2 = new TaskPipe; a = new ProxyStream(p1, p2); b = new ProxyStream(p2, p1); } void testConn( bool cli_fail, string cli_cert, string cli_key, string cli_trust, string cli_peer, TLSPeerValidationMode cli_mode, bool srv_fail, string srv_cert, string srv_key, string srv_trust, string srv_peer, TLSPeerValidationMode srv_mode) { Stream ctunnel, stunnel; logInfo("Test client %s (%s, %s, %s, %s), server %s (%s, %s, %s, %s)", cli_fail ? "fail" : "success", cli_cert, cli_key, cli_trust, cli_peer, srv_fail ? "fail" : "success", srv_cert, srv_key, srv_trust, srv_peer); createPipePair(ctunnel, stunnel); auto t1 = runTask({ auto sctx = createContext(TLSContextKind.server, srv_cert, srv_key, srv_trust, srv_mode); TLSStream sconn; try { sconn = createTLSStream(stunnel, sctx, TLSStreamState.accepting, srv_peer); logDiagnostic("Successfully initiated server tunnel."); assert(!srv_fail, "Server expected to fail TLS connection."); } catch (Exception e) { if (srv_fail) logDiagnostic("Server tunnel failed as expected: %s", e.msg); else logError("Server tunnel failed: %s", e.toString().sanitize); assert(srv_fail, "Server not expected to fail TLS connection."); return; } if (cli_fail) return; assert(sconn.readLine() == "foo"); sconn.write("bar\r\n"); sconn.finalize(); }); auto t2 = runTask({ auto cctx = createContext(TLSContextKind.client, cli_cert, cli_key, cli_trust, cli_mode); TLSStream cconn; try { cconn = createTLSStream(ctunnel, cctx, TLSStreamState.connecting, cli_peer); logDiagnostic("Successfully initiated client tunnel."); assert(!cli_fail, "Client expected to fail TLS connection."); } catch (Exception e) { if (cli_fail) logDiagnostic("Client tunnel failed as expected: %s", e.msg); else logError("Client tunnel failed: %s", e.toString().sanitize); assert(cli_fail, "Client not expected to fail TLS connection."); return; } if (srv_fail) return; cconn.write("foo\r\n"); assert(cconn.readLine() == "bar"); cconn.finalize(); }); t1.join(); t2.join(); } void test() { // // Server certificates // // fail for untrusted server cert testConn( true, null, null, null, "localhost", TLSPeerValidationMode.trustedCert, true, "server.crt", "server.key", null, null, TLSPeerValidationMode.none ); // succeed for untrusted server cert with disabled validation testConn( false, null, null, null, null, TLSPeerValidationMode.none, false, "server.crt", "server.key", null, null, TLSPeerValidationMode.none ); // succeed for untrusted server cert if ignored testConn( false, null, null, null, "localhost", TLSPeerValidationMode.requireCert|TLSPeerValidationMode.checkPeer, false, "server.crt", "server.key", null, null, TLSPeerValidationMode.none ); // fail for trusted server cert with no/wrong host name testConn( true, null, null, "ca.crt", "wronghost", TLSPeerValidationMode.trustedCert, false, "server.crt", "server.key", null, null, TLSPeerValidationMode.none ); // succeed for trusted server cert with no/wrong host name if ignored testConn( false, null, null, "ca.crt", "wronghost", TLSPeerValidationMode.trustedCert & ~TLSPeerValidationMode.checkPeer, false, "server.crt", "server.key", null, null, TLSPeerValidationMode.none ); // succeed for trusted server cert testConn( false, null, null, "ca.crt", "localhost", TLSPeerValidationMode.trustedCert, false, "server.crt", "server.key", null, null, TLSPeerValidationMode.none ); // succeed with no certificates /*testConn( false, null, null, null, null, false, null, null, null, null );*/ // // Client certificates // // fail for untrusted server cert testConn( true, "client.crt", "client.key", null, null, TLSPeerValidationMode.none, true, "server.crt", "server.key", null, null, TLSPeerValidationMode.trustedCert ); // succeed for untrusted server cert with disabled validation testConn( false, "client.crt", "client.key", null, null, TLSPeerValidationMode.none, false, "server.crt", "server.key", null, null, TLSPeerValidationMode.none ); // succeed for untrusted server cert if ignored testConn( false, "client.crt", "client.key", null, null, TLSPeerValidationMode.none, false, "server.crt", "server.key", null, null, TLSPeerValidationMode.requireCert ); // succeed for trusted server cert testConn( false, "client.crt", "client.key", null, null, TLSPeerValidationMode.none, false, "server.crt", "server.key", "ca.crt", null, TLSPeerValidationMode.trustedCert & ~TLSPeerValidationMode.checkPeer ); exitEventLoop(); } void main() { import std.functional : toDelegate; runTask(toDelegate(&test)); runEventLoop(); }
D
/* THIS FILE GENERATED BY bcd.gen */ module bcd.libxml2.catalog; align(4): public import bcd.libxml2.threads; public import bcd.libxml2.globals; public import bcd.libxml2.SAX2; public import bcd.libxml2.SAX; public import bcd.libxml2.xlink; public import bcd.libxml2.parser; public import bcd.libxml2.xmlIO; public import bcd.libxml2.encoding; public import bcd.libxml2.entities; public import bcd.libxml2.hash; public import bcd.libxml2.valid; public import bcd.libxml2.xmlautomata; public import bcd.libxml2.list; public import bcd.libxml2.xmlerror; public import bcd.libxml2.xmlmemory; public import bcd.libxml2.tree; public import bcd.libxml2.xmlregexp; public import bcd.libxml2.dict; public import bcd.libxml2.xmlstring; public import bcd.libxml2.xmlversion; alias void xmlCatalog; alias void * xmlCatalogPtr; enum xmlCatalogAllow { XML_CATA_ALLOW_NONE=0, XML_CATA_ALLOW_GLOBAL=1, XML_CATA_ALLOW_DOCUMENT=2, XML_CATA_ALLOW_ALL=3, } enum xmlCatalogPrefer { XML_CATA_PREFER_NONE=0, XML_CATA_PREFER_PUBLIC=1, XML_CATA_PREFER_SYSTEM=2, } extern (C) char * xmlCatalogGetPublic(char *); extern (C) char * xmlCatalogGetSystem(char *); extern (C) int xmlCatalogGetDefaults(); extern (C) void xmlCatalogSetDefaults(int); extern (C) int xmlCatalogSetDefaultPrefer(int); extern (C) int xmlCatalogSetDebug(int); extern (C) char * xmlCatalogLocalResolveURI(void *, char *); extern (C) char * xmlCatalogLocalResolve(void *, char *, char *); extern (C) void * xmlCatalogAddLocal(void *, char *); extern (C) void xmlCatalogFreeLocal(void *); extern (C) int xmlCatalogConvert(); extern (C) _xmlDoc * xmlParseCatalogFile(char *); extern (C) int xmlCatalogRemove(char *); extern (C) int xmlCatalogAdd(char *, char *, char *); extern (C) char * xmlCatalogResolveURI(char *); extern (C) char * xmlCatalogResolvePublic(char *); extern (C) char * xmlCatalogResolveSystem(char *); extern (C) char * xmlCatalogResolve(char *, char *); extern (C) void xmlCatalogDump(_IO_FILE *); extern (C) void xmlCatalogCleanup(); extern (C) void xmlLoadCatalogs(char *); extern (C) int xmlLoadCatalog(char *); extern (C) void xmlInitializeCatalog(); extern (C) int xmlCatalogIsEmpty(void *); extern (C) void xmlFreeCatalog(void *); extern (C) void xmlACatalogDump(void *, _IO_FILE *); extern (C) char * xmlACatalogResolveURI(void *, char *); extern (C) char * xmlACatalogResolvePublic(void *, char *); extern (C) char * xmlACatalogResolveSystem(void *, char *); extern (C) char * xmlACatalogResolve(void *, char *, char *); extern (C) int xmlACatalogRemove(void *, char *); extern (C) int xmlACatalogAdd(void *, char *, char *, char *); extern (C) int xmlConvertSGMLCatalog(void *); extern (C) void * xmlLoadSGMLSuperCatalog(char *); extern (C) void * xmlLoadACatalog(char *); extern (C) void * xmlNewCatalog(int); alias void function(_xmlNode *) _BCD_func__1706; alias _xmlOutputBuffer * function(char *, _xmlCharEncodingHandler *, int) _BCD_func__1707; alias _xmlParserInputBuffer * function(char *, int) _BCD_func__1708; alias void function(void *, _xmlNode *, int, char * *, char * *, int, char * *, char * *) _BCD_func__1715; alias void function(void *, _xmlNode *, int, char * *, char * *, int, char * *, char * *, int *, int *, int, char * *, char * *) _BCD_func__1716; alias void function(void *, _xmlNode *, char *, char *, char *) _BCD_func__1717; alias void function(void *, _xmlNode *) _BCD_func__1718; alias int function(void *, void *) _BCD_func__1735; alias int function(void *) _BCD_func__1412; alias int function(void *, char *, int) _BCD_func__1884; alias void * function(char *) _BCD_func__1885; alias int function(char *) _BCD_func__1886; alias int function(void *, char *, int) _BCD_func__1887; alias int function(char *, int *, char *, int *) _BCD_func__1897; alias _xmlParserInput * function(char *, char *, _xmlParserCtxt *) _BCD_func__1900; alias void function(void *, char *, char *, char *) _BCD_func__1931; alias void function(void *, char *, char *, char *, int, char * *, int, int, char * *) _BCD_func__1932; alias void function(void *, char *, ...) _BCD_func__1933; alias void function(void *, char *, int) _BCD_func__1934; alias void function(void *, char *) _BCD_func__1935; alias void function(void *, char *, char *) _BCD_func__1936; alias void function(void *, char *, char * *) _BCD_func__1937; alias void function(void *) _BCD_func__1938; alias void function(void *, _xmlSAXLocator *) _BCD_func__1939; alias void function(void *, char *, char *, char *, char *) _BCD_func__1940; alias void function(void *, char *, int, _xmlElementContent *) _BCD_func__1941; alias void function(void *, char *, char *, int, int, char *, _xmlEnumeration *) _BCD_func__1942; alias void function(void *, char *, int, char *, char *, char *) _BCD_func__1943; alias _xmlEntity * function(void *, char *) _BCD_func__1944; alias _xmlParserInput * function(void *, char *, char *) _BCD_func__1945; alias void function(char *) _BCD_func__1958; alias void function(void *) _BCD_func__1978; alias void function(void *, _xmlError *) _BCD_func__1979; alias void function(void *, void *, char *, char *, char *) _BCD_func__1995; alias void function(void *, void *, char *) _BCD_func__1996; alias void * function(void *, char *) _BCD_func__1997; alias void function(void *, char *) _BCD_func__1998; alias char * function(char *) _BCD_func__2003; alias void * function(void *, uint) _BCD_func__2004; alias void * function(uint) _BCD_func__2005; alias void function(void *, char *, void *, void *) _BCD_func__2124; alias int function(void *, long *, int) _BCD_func__1414; alias int function(void *, char *, uint) _BCD_func__1416; alias int function(void *, char *, uint) _BCD_func__1418; alias int function(void * *, char *) _BCD_func__2397; alias int function(char *, char * * *, uint *) _BCD_func__2398; alias int function(void *, char *, char *, char *, char *) _BCD_func__2399;
D
module distGraph.skeleton.MapVertices; import distGraph.mpiez.admin; public import distGraph.skeleton.Register; import std.traits; import std.algorithm; import std.conv; import distGraph.utils.Options; import distGraph.dgraph.Vertex; import distGraph.dgraph.DistGraph; import distGraph.skeleton.Compose; private bool checkFunc (alias fun) () { isSkeletable!fun; alias a1 = ParameterTypeTuple! (fun); alias r1 = ReturnType!fun; static assert (a1.length == 1 && is (a1[0] : VertexD) && is (r1 : VertexD), "On a besoin de : T2 function (T : VertexD, T2 : VertexD) (T)"); return true; } /++ Applique une fonction de map à tout les sommets. Params: fun = une fonction de map. Example: ----- // DistGraph!(VertexD, EdgeD) grp = ...; auto grp2 = grp.MapVertices!( (VertexD vd) => new RankVertex (vd.data, 1.0) ); ----- +/ template MapVertices (alias fun) if (checkFunc!fun) { alias I = ParameterTypeTuple!(fun) [0]; alias T2 = ReturnType!fun; T2 [ulong] map (I [ulong] array) { T2 [ulong] res; foreach (key, value ; array) res [key] = fun (array [key]); return res; } /++ Cette fonction peut être lancé indépendament sur chaque processus. Aucune communication n'est faite. +/ DistGraph!(T2, E) MapVertices (T : DistGraph!(I, E), E) (T a) { //TODO, synchroniser avec les autres partitions pour voir si tout le monde à le même ID. auto aux = new DistGraph!(T2, E) (a.color, a.nbColor); aux.total = a.total; aux.vertices = map (a.vertices); aux.edges = a.edges; return aux; } }
D
public import GType; public import GSList; public import GList; public import sym_table; public import dt; extern (C): /*---------------------------------------------------------------------------* * modile declarations * *---------------------------------------------------------------------------*/ struct IrModule; GType ir_module_get_type(); IrModule * ir_module(void *obj); IrScope * ir_module_get_scope(IrModule *self); GSList * ir_module_get_functions(IrModule *self); GSList * ir_module_get_function_defs(IrModule *self); sym_table * ir_module_get_symbols(IrModule *self); char * ir_module_gen_label(IrModule *self); GList * ir_module_get_data_section(IrModule *self); /*---------------------------------------------------------------------------* * scope declarations * *---------------------------------------------------------------------------*/ struct IrScope; char * ir_scope_get_fqname(IrScope *self); /*---------------------------------------------------------------------------* * symbol declarations * *---------------------------------------------------------------------------*/ struct IrSymbol; IrSymbol * ir_symbol(void *obj); IrModule * ir_symbol_get_parent_module(IrSymbol *self); /*---------------------------------------------------------------------------* * function declarations * *---------------------------------------------------------------------------*/ struct IrFunction; enum ir_linkage_type { d_linkage, c_linkage } IrFunction * ir_function(void *obj); char * ir_function_get_mangled_name(IrFunction *self); /*---------------------------------------------------------------------------* * function definition declarations * *---------------------------------------------------------------------------*/ struct IrFunctionDef; GType ir_function_def_get_type(); IrFunctionDef * ir_function_def(void *obj); char * ir_function_def_get_name(IrFunctionDef *self); GSList * ir_function_def_get_parameters(IrFunctionDef *self); DtDataType * ir_function_def_get_return_type(IrFunctionDef *self); IrCodeBlock * ir_function_def_get_body(IrFunctionDef *self); /*---------------------------------------------------------------------------* * code block declarations * *---------------------------------------------------------------------------*/ struct IrCodeBlock; GType ir_code_block_get_type(); IrCodeBlock * ir_code_block(void *obj); GSList * ir_code_block_get_statments(IrCodeBlock *self); /*---------------------------------------------------------------------------* * return statment declarations * *---------------------------------------------------------------------------*/ struct IrReturn; GType ir_return_get_type(); IrReturn * ir_return(void *obj); IrExpression * ir_return_get_return_value(IrReturn *self); /*---------------------------------------------------------------------------* * foreach loop declarations * *---------------------------------------------------------------------------*/ struct IrForeach; GType ir_foreach_get_type(); IrForeach * ir_foreach(void *obj); IrVariable * ir_foreach_get_index(IrForeach *self); IrVariable * ir_foreach_get_value(IrForeach *self); IrCodeBlock * ir_foreach_get_body(IrForeach *self); /*---------------------------------------------------------------------------* * expression declarations * *---------------------------------------------------------------------------*/ struct IrExpression; IrExpression * ir_expression(void *obj); DtDataType * ir_expression_get_data_type(IrExpression *self); /*---------------------------------------------------------------------------* * assignment declarations * *---------------------------------------------------------------------------*/ struct IrAssignment; GType ir_assignment_get_type(); IrAssignment * ir_assignment(void *obj); IrExpression * ir_assignment_get_lvalue(IrAssignment *self); IrExpression * ir_assignment_get_value(IrAssignment *self); /*---------------------------------------------------------------------------* * function call declarations * *---------------------------------------------------------------------------*/ struct IrFunctionCall; GType ir_function_call_get_type(); IrFunctionCall * ir_function_call(void *obj); char * ir_function_call_get_name(IrFunctionCall *self); GSList * ir_function_call_get_arguments(IrFunctionCall *self); /*---------------------------------------------------------------------------* * variable declarations * *---------------------------------------------------------------------------*/ struct IrVariable; GType ir_variable_get_type(); IrVariable * ir_variable(void *obj); char * ir_variable_get_name(IrVariable *self); /*---------------------------------------------------------------------------* * var value declarations * *---------------------------------------------------------------------------*/ struct IrVarValue; GType ir_var_value_get_type(); IrVarValue * ir_var_value(void *obj); IrVariable * ir_var_value_get_var(IrVarValue *self); /*---------------------------------------------------------------------------* * var reference declarations * *---------------------------------------------------------------------------*/ struct IrVarRef; GType ir_var_ref_get_type(); IrVarValue * ir_var_ref(void *obj); IrVariable * ir_var_ref_get_var(IrVarValue *self); /*---------------------------------------------------------------------------* * address of declarations * *---------------------------------------------------------------------------*/ struct IrAddressOf; GType ir_address_of_get_type(); IrAddressOf * ir_address_of(void *obj); IrExpression * ir_address_of_get_expression(IrAddressOf *self); /*---------------------------------------------------------------------------* * cast operation declarations * *---------------------------------------------------------------------------*/ struct IrCast; GType ir_cast_get_type(); IrCast * ir_cast(void *obj); DtDataType * ir_cast_get_target_type(IrCast *self); IrExpression * ir_cast_get_value(IrCast *self); /*---------------------------------------------------------------------------* * binary operation declarations * *---------------------------------------------------------------------------*/ /* * binary operations types (defined in operations.h) */ enum binary_op_type { or, /* || */ and, /* && */ less, /* < */ greater, /* > */ less_or_eq, /* <= */ greater_or_eq, /* >= */ equal, /* == */ not_equal, /* != */ plus, /* + */ minus, /* - */ mult, /* * */ division, /* / */ modulo /* % */ } struct IrBinaryOperation; GType ir_binary_operation_get_type(); IrBinaryOperation * ir_binary_operation(void *obj); binary_op_type ir_binary_operation_get_operation(IrBinaryOperation *self); IrExpression * ir_binary_operation_get_left(IrBinaryOperation *self); IrExpression * ir_binary_operation_get_right(IrBinaryOperation *self); /*---------------------------------------------------------------------------* * literal declarations * *---------------------------------------------------------------------------*/ struct IrLiteral; IrLiteral * ir_literal(void *obj); char * ir_literal_get_data_label(IrLiteral *self); /*---------------------------------------------------------------------------* * basic constant declarations * *---------------------------------------------------------------------------*/ struct IrBasicConstant; GType ir_basic_constant_get_type(); IrBasicConstant * ir_basic_constant(void *obj); bool ir_basic_constant_get_bool(IrBasicConstant *self); char ir_basic_constant_get_char(IrBasicConstant *self); byte ir_basic_constant_get_byte(IrBasicConstant *self); ubyte ir_basic_constant_get_ubyte(IrBasicConstant *self); short ir_basic_constant_get_short(IrBasicConstant *self); ushort ir_basic_constant_get_ushort(IrBasicConstant *self); int ir_basic_constant_get_int(IrBasicConstant *self); uint ir_basic_constant_get_uint(IrBasicConstant *self); /*---------------------------------------------------------------------------* * array literal declarations * *---------------------------------------------------------------------------*/ struct IrArrayLiteral; GType ir_array_literal_get_type(); bool ir_is_array_literal(void *obj); IrArrayLiteral * ir_array_literal(void *obj); GSList * ir_array_literal_get_values(IrArrayLiteral *self); /*---------------------------------------------------------------------------* * struct literal declarations * *---------------------------------------------------------------------------*/ struct IrStructLiteral; bool ir_is_struct_literal(void *obj); IrStructLiteral * ir_struct_literal(void *obj); GSList * ir_struct_literal_get_members(IrStructLiteral *self); /*---------------------------------------------------------------------------* * struct member declarations * *---------------------------------------------------------------------------*/ struct IrStructMember; GType ir_struct_member_get_type(); IrExpression * ir_struct_member_get_base(IrStructMember *self); IrStructMember * ir_struct_member(void *obj); IrExpression * ir_struct_member_get_init(IrStructMember *self); uint ir_struct_member_get_padding(IrStructMember *self); /*---------------------------------------------------------------------------* * enum member declarations * *---------------------------------------------------------------------------*/ struct IrEnumMember; IrEnumMember * ir_enum_member(void *obj); IrExpression * ir_enum_member_get_value(IrEnumMember *self);
D
// Written in the D programming language. /** * Templates to manipulate template argument lists (also known as type lists). * * Some operations on alias sequences are built in to the language, * such as TL[$(I n)] which gets the $(I n)th type from the * alias sequence. TL[$(I lwr) .. $(I upr)] returns a new type * list that is a slice of the old one. * * Several templates in this module use or operate on eponymous templates that * take a single argument and evaluate to a boolean constant. Such templates * are referred to as $(I template predicates). * * References: * Based on ideas in Table 3.1 from * $(LINK2 http://amazon.com/exec/obidos/ASIN/0201704315/ref=ase_classicempire/102-2957199-2585768, * Modern C++ Design), * Andrei Alexandrescu (Addison-Wesley Professional, 2001) * Macros: * WIKI = Phobos/StdMeta * * Copyright: Copyright Digital Mars 2005 - 2015. * License: $(WEB www.boost.org/LICENSE_1_0.txt, Boost License 1.0). * Authors: * $(WEB digitalmars.com, Walter Bright), * $(WEB klickverbot.at, David Nadlinger) * Source: $(PHOBOSSRC std/_meta.d) */ module std.meta; /** * Creates a sequence of zero or more aliases. This is most commonly * used as template parameters or arguments. */ template AliasSeq(TList...) { alias AliasSeq = TList; } alias TypeTuple = AliasSeq; /// unittest { import std.meta; alias TL = AliasSeq!(int, double); int foo(TL td) // same as int foo(int, double); { return td[0] + cast(int)td[1]; } } /// unittest { alias TL = AliasSeq!(int, double); alias Types = AliasSeq!(TL, char); static assert(is(Types == AliasSeq!(int, double, char))); } /** * Returns the index of the first occurrence of type T in the * sequence of zero or more types TList. * If not found, -1 is returned. */ template staticIndexOf(T, TList...) { enum staticIndexOf = genericIndexOf!(T, TList).index; } /// Ditto template staticIndexOf(alias T, TList...) { enum staticIndexOf = genericIndexOf!(T, TList).index; } /// unittest { import std.stdio; void foo() { writefln("The index of long is %s", staticIndexOf!(long, AliasSeq!(int, long, double))); // prints: The index of long is 1 } } // [internal] private template genericIndexOf(args...) if (args.length >= 1) { alias e = Alias!(args[0]); alias tuple = args[1 .. $]; static if (tuple.length) { alias head = Alias!(tuple[0]); alias tail = tuple[1 .. $]; static if (isSame!(e, head)) { enum index = 0; } else { enum next = genericIndexOf!(e, tail).index; enum index = (next == -1) ? -1 : 1 + next; } } else { enum index = -1; } } unittest { static assert(staticIndexOf!( byte, byte, short, int, long) == 0); static assert(staticIndexOf!(short, byte, short, int, long) == 1); static assert(staticIndexOf!( int, byte, short, int, long) == 2); static assert(staticIndexOf!( long, byte, short, int, long) == 3); static assert(staticIndexOf!( char, byte, short, int, long) == -1); static assert(staticIndexOf!( -1, byte, short, int, long) == -1); static assert(staticIndexOf!(void) == -1); static assert(staticIndexOf!("abc", "abc", "def", "ghi", "jkl") == 0); static assert(staticIndexOf!("def", "abc", "def", "ghi", "jkl") == 1); static assert(staticIndexOf!("ghi", "abc", "def", "ghi", "jkl") == 2); static assert(staticIndexOf!("jkl", "abc", "def", "ghi", "jkl") == 3); static assert(staticIndexOf!("mno", "abc", "def", "ghi", "jkl") == -1); static assert(staticIndexOf!( void, "abc", "def", "ghi", "jkl") == -1); static assert(staticIndexOf!(42) == -1); static assert(staticIndexOf!(void, 0, "void", void) == 2); static assert(staticIndexOf!("void", 0, void, "void") == 2); } /// Kept for backwards compatibility alias IndexOf = staticIndexOf; /** * Returns a typetuple created from TList with the first occurrence, * if any, of T removed. */ template Erase(T, TList...) { alias Erase = GenericErase!(T, TList).result; } /// Ditto template Erase(alias T, TList...) { alias Erase = GenericErase!(T, TList).result; } /// unittest { alias Types = AliasSeq!(int, long, double, char); alias TL = Erase!(long, Types); static assert(is(TL == AliasSeq!(int, double, char))); } // [internal] private template GenericErase(args...) if (args.length >= 1) { alias e = Alias!(args[0]); alias tuple = args[1 .. $] ; static if (tuple.length) { alias head = Alias!(tuple[0]); alias tail = tuple[1 .. $]; static if (isSame!(e, head)) alias result = tail; else alias result = AliasSeq!(head, GenericErase!(e, tail).result); } else { alias result = AliasSeq!(); } } unittest { static assert(Pack!(Erase!(int, short, int, int, 4)). equals!(short, int, 4)); static assert(Pack!(Erase!(1, real, 3, 1, 4, 1, 5, 9)). equals!(real, 3, 4, 1, 5, 9)); } /** * Returns a typetuple created from TList with the all occurrences, * if any, of T removed. */ template EraseAll(T, TList...) { alias EraseAll = GenericEraseAll!(T, TList).result; } /// Ditto template EraseAll(alias T, TList...) { alias EraseAll = GenericEraseAll!(T, TList).result; } /// unittest { alias Types = AliasSeq!(int, long, long, int); alias TL = EraseAll!(long, Types); static assert(is(TL == AliasSeq!(int, int))); } // [internal] private template GenericEraseAll(args...) if (args.length >= 1) { alias e = Alias!(args[0]); alias tuple = args[1 .. $]; static if (tuple.length) { alias head = Alias!(tuple[0]); alias tail = tuple[1 .. $]; alias next = GenericEraseAll!(e, tail).result; static if (isSame!(e, head)) alias result = next; else alias result = AliasSeq!(head, next); } else { alias result = AliasSeq!(); } } unittest { static assert(Pack!(EraseAll!(int, short, int, int, 4)). equals!(short, 4)); static assert(Pack!(EraseAll!(1, real, 3, 1, 4, 1, 5, 9)). equals!(real, 3, 4, 5, 9)); } /** * Returns a typetuple created from TList with the all duplicate * types removed. */ template NoDuplicates(TList...) { static if (TList.length == 0) alias NoDuplicates = TList; else alias NoDuplicates = AliasSeq!(TList[0], NoDuplicates!(EraseAll!(TList[0], TList[1 .. $]))); } /// unittest { alias Types = AliasSeq!(int, long, long, int, float); alias TL = NoDuplicates!(Types); static assert(is(TL == AliasSeq!(int, long, float))); } unittest { static assert( Pack!( NoDuplicates!(1, int, 1, NoDuplicates, int, NoDuplicates, real)) .equals!(1, int, NoDuplicates, real)); } /** * Returns a typetuple created from TList with the first occurrence * of type T, if found, replaced with type U. */ template Replace(T, U, TList...) { alias Replace = GenericReplace!(T, U, TList).result; } /// Ditto template Replace(alias T, U, TList...) { alias Replace = GenericReplace!(T, U, TList).result; } /// Ditto template Replace(T, alias U, TList...) { alias Replace = GenericReplace!(T, U, TList).result; } /// Ditto template Replace(alias T, alias U, TList...) { alias Replace = GenericReplace!(T, U, TList).result; } /// unittest { alias Types = AliasSeq!(int, long, long, int, float); alias TL = Replace!(long, char, Types); static assert(is(TL == AliasSeq!(int, char, long, int, float))); } // [internal] private template GenericReplace(args...) if (args.length >= 2) { alias from = Alias!(args[0]); alias to = Alias!(args[1]); alias tuple = args[2 .. $]; static if (tuple.length) { alias head = Alias!(tuple[0]); alias tail = tuple[1 .. $]; static if (isSame!(from, head)) alias result = AliasSeq!(to, tail); else alias result = AliasSeq!(head, GenericReplace!(from, to, tail).result); } else { alias result = AliasSeq!(); } } unittest { static assert(Pack!(Replace!(byte, ubyte, short, byte, byte, byte)). equals!(short, ubyte, byte, byte)); static assert(Pack!(Replace!(1111, byte, 2222, 1111, 1111, 1111)). equals!(2222, byte, 1111, 1111)); static assert(Pack!(Replace!(byte, 1111, short, byte, byte, byte)). equals!(short, 1111, byte, byte)); static assert(Pack!(Replace!(1111, "11", 2222, 1111, 1111, 1111)). equals!(2222, "11", 1111, 1111)); } /** * Returns a typetuple created from TList with all occurrences * of type T, if found, replaced with type U. */ template ReplaceAll(T, U, TList...) { alias ReplaceAll = GenericReplaceAll!(T, U, TList).result; } /// Ditto template ReplaceAll(alias T, U, TList...) { alias ReplaceAll = GenericReplaceAll!(T, U, TList).result; } /// Ditto template ReplaceAll(T, alias U, TList...) { alias ReplaceAll = GenericReplaceAll!(T, U, TList).result; } /// Ditto template ReplaceAll(alias T, alias U, TList...) { alias ReplaceAll = GenericReplaceAll!(T, U, TList).result; } /// unittest { alias Types = AliasSeq!(int, long, long, int, float); alias TL = ReplaceAll!(long, char, Types); static assert(is(TL == AliasSeq!(int, char, char, int, float))); } // [internal] private template GenericReplaceAll(args...) if (args.length >= 2) { alias from = Alias!(args[0]); alias to = Alias!(args[1]); alias tuple = args[2 .. $]; static if (tuple.length) { alias head = Alias!(tuple[0]); alias tail = tuple[1 .. $]; alias next = GenericReplaceAll!(from, to, tail).result; static if (isSame!(from, head)) alias result = AliasSeq!(to, next); else alias result = AliasSeq!(head, next); } else { alias result = AliasSeq!(); } } unittest { static assert(Pack!(ReplaceAll!(byte, ubyte, byte, short, byte, byte)). equals!(ubyte, short, ubyte, ubyte)); static assert(Pack!(ReplaceAll!(1111, byte, 1111, 2222, 1111, 1111)). equals!(byte, 2222, byte, byte)); static assert(Pack!(ReplaceAll!(byte, 1111, byte, short, byte, byte)). equals!(1111, short, 1111, 1111)); static assert(Pack!(ReplaceAll!(1111, "11", 1111, 2222, 1111, 1111)). equals!("11", 2222, "11", "11")); } /** * Returns a typetuple created from TList with the order reversed. */ template Reverse(TList...) { static if (TList.length <= 1) { alias Reverse = TList; } else { alias Reverse = AliasSeq!( Reverse!(TList[$/2 .. $ ]), Reverse!(TList[ 0 .. $/2])); } } /// unittest { alias Types = AliasSeq!(int, long, long, int, float); alias TL = Reverse!(Types); static assert(is(TL == AliasSeq!(float, int, long, long, int))); } /** * Returns the type from TList that is the most derived from type T. * If none are found, T is returned. */ template MostDerived(T, TList...) { static if (TList.length == 0) alias MostDerived = T; else static if (is(TList[0] : T)) alias MostDerived = MostDerived!(TList[0], TList[1 .. $]); else alias MostDerived = MostDerived!(T, TList[1 .. $]); } /// unittest { class A { } class B : A { } class C : B { } alias Types = AliasSeq!(A, C, B); MostDerived!(Object, Types) x; // x is declared as type C static assert(is(typeof(x) == C)); } /** * Returns the typetuple TList with the types sorted so that the most * derived types come first. */ template DerivedToFront(TList...) { static if (TList.length == 0) alias DerivedToFront = TList; else alias DerivedToFront = AliasSeq!(MostDerived!(TList[0], TList[1 .. $]), DerivedToFront!(ReplaceAll!(MostDerived!(TList[0], TList[1 .. $]), TList[0], TList[1 .. $]))); } /// unittest { class A { } class B : A { } class C : B { } alias Types = AliasSeq!(A, C, B); alias TL = DerivedToFront!(Types); static assert(is(TL == AliasSeq!(C, B, A))); } /** Evaluates to $(D AliasSeq!(F!(T[0]), F!(T[1]), ..., F!(T[$ - 1]))). */ template staticMap(alias F, T...) { static if (T.length == 0) { alias staticMap = AliasSeq!(); } else static if (T.length == 1) { alias staticMap = AliasSeq!(F!(T[0])); } else { alias staticMap = AliasSeq!( staticMap!(F, T[ 0 .. $/2]), staticMap!(F, T[$/2 .. $ ])); } } /// unittest { import std.traits : Unqual; alias TL = staticMap!(Unqual, int, const int, immutable int); static assert(is(TL == AliasSeq!(int, int, int))); } unittest { import std.traits : Unqual; // empty alias Empty = staticMap!(Unqual); static assert(Empty.length == 0); // single alias Single = staticMap!(Unqual, const int); static assert(is(Single == AliasSeq!int)); alias T = staticMap!(Unqual, int, const int, immutable int); static assert(is(T == AliasSeq!(int, int, int))); } /** Tests whether all given items satisfy a template predicate, i.e. evaluates to $(D F!(T[0]) && F!(T[1]) && ... && F!(T[$ - 1])). Evaluation is $(I not) short-circuited if a false result is encountered; the template predicate must be instantiable with all the given items. */ template allSatisfy(alias F, T...) { static if (T.length == 0) { enum allSatisfy = true; } else static if (T.length == 1) { enum allSatisfy = F!(T[0]); } else { enum allSatisfy = allSatisfy!(F, T[ 0 .. $/2]) && allSatisfy!(F, T[$/2 .. $ ]); } } /// unittest { import std.traits : isIntegral; static assert(!allSatisfy!(isIntegral, int, double)); static assert( allSatisfy!(isIntegral, int, long)); } /** Tests whether any given items satisfy a template predicate, i.e. evaluates to $(D F!(T[0]) || F!(T[1]) || ... || F!(T[$ - 1])). Evaluation is $(I not) short-circuited if a true result is encountered; the template predicate must be instantiable with all the given items. */ template anySatisfy(alias F, T...) { static if(T.length == 0) { enum anySatisfy = false; } else static if (T.length == 1) { enum anySatisfy = F!(T[0]); } else { enum anySatisfy = anySatisfy!(F, T[ 0 .. $/2]) || anySatisfy!(F, T[$/2 .. $ ]); } } /// unittest { import std.traits : isIntegral; static assert(!anySatisfy!(isIntegral, string, double)); static assert( anySatisfy!(isIntegral, int, double)); } /** * Filters an $(D AliasSeq) using a template predicate. Returns a * $(D AliasSeq) of the elements which satisfy the predicate. */ template Filter(alias pred, TList...) { static if (TList.length == 0) { alias Filter = AliasSeq!(); } else static if (TList.length == 1) { static if (pred!(TList[0])) alias Filter = AliasSeq!(TList[0]); else alias Filter = AliasSeq!(); } else { alias Filter = AliasSeq!( Filter!(pred, TList[ 0 .. $/2]), Filter!(pred, TList[$/2 .. $ ])); } } /// unittest { import std.traits : isNarrowString, isUnsigned; alias Types1 = AliasSeq!(string, wstring, dchar[], char[], dstring, int); alias TL1 = Filter!(isNarrowString, Types1); static assert(is(TL1 == AliasSeq!(string, wstring, char[]))); alias Types2 = AliasSeq!(int, byte, ubyte, dstring, dchar, uint, ulong); alias TL2 = Filter!(isUnsigned, Types2); static assert(is(TL2 == AliasSeq!(ubyte, uint, ulong))); } unittest { import std.traits : isPointer; static assert(is(Filter!(isPointer, int, void*, char[], int*) == AliasSeq!(void*, int*))); static assert(is(Filter!isPointer == AliasSeq!())); } // Used in template predicate unit tests below. private version (unittest) { template testAlways(T...) { enum testAlways = true; } template testNever(T...) { enum testNever = false; } template testError(T...) { static assert(false, "Should never be instantiated."); } } /** * Negates the passed template predicate. */ template templateNot(alias pred) { enum templateNot(T...) = !pred!T; } /// unittest { import std.traits : isPointer; alias isNoPointer = templateNot!isPointer; static assert(!isNoPointer!(int*)); static assert(allSatisfy!(isNoPointer, string, char, float)); } unittest { foreach (T; AliasSeq!(int, staticMap, 42)) { static assert(!Instantiate!(templateNot!testAlways, T)); static assert(Instantiate!(templateNot!testNever, T)); } } /** * Combines several template predicates using logical AND, i.e. constructs a new * predicate which evaluates to true for a given input T if and only if all of * the passed predicates are true for T. * * The predicates are evaluated from left to right, aborting evaluation in a * short-cut manner if a false result is encountered, in which case the latter * instantiations do not need to compile. */ template templateAnd(Preds...) { template templateAnd(T...) { static if (Preds.length == 0) { enum templateAnd = true; } else { static if (Instantiate!(Preds[0], T)) alias templateAnd = Instantiate!(.templateAnd!(Preds[1 .. $]), T); else enum templateAnd = false; } } } /// unittest { import std.traits : isNumeric, isUnsigned; alias storesNegativeNumbers = templateAnd!(isNumeric, templateNot!isUnsigned); static assert(storesNegativeNumbers!int); static assert(!storesNegativeNumbers!string && !storesNegativeNumbers!uint); // An empty list of predicates always yields true. alias alwaysTrue = templateAnd!(); static assert(alwaysTrue!int); } unittest { foreach (T; AliasSeq!(int, staticMap, 42)) { static assert( Instantiate!(templateAnd!(), T)); static assert( Instantiate!(templateAnd!(testAlways), T)); static assert( Instantiate!(templateAnd!(testAlways, testAlways), T)); static assert(!Instantiate!(templateAnd!(testNever), T)); static assert(!Instantiate!(templateAnd!(testAlways, testNever), T)); static assert(!Instantiate!(templateAnd!(testNever, testAlways), T)); static assert(!Instantiate!(templateAnd!(testNever, testError), T)); static assert(!is(typeof(Instantiate!(templateAnd!(testAlways, testError), T)))); } } /** * Combines several template predicates using logical OR, i.e. constructs a new * predicate which evaluates to true for a given input T if and only at least * one of the passed predicates is true for T. * * The predicates are evaluated from left to right, aborting evaluation in a * short-cut manner if a true result is encountered, in which case the latter * instantiations do not need to compile. */ template templateOr(Preds...) { template templateOr(T...) { static if (Preds.length == 0) { enum templateOr = false; } else { static if (Instantiate!(Preds[0], T)) enum templateOr = true; else alias templateOr = Instantiate!(.templateOr!(Preds[1 .. $]), T); } } } /// unittest { import std.traits : isPointer, isUnsigned; alias isPtrOrUnsigned = templateOr!(isPointer, isUnsigned); static assert( isPtrOrUnsigned!uint && isPtrOrUnsigned!(short*)); static assert(!isPtrOrUnsigned!int && !isPtrOrUnsigned!(string)); // An empty list of predicates never yields true. alias alwaysFalse = templateOr!(); static assert(!alwaysFalse!int); } unittest { foreach (T; AliasSeq!(int, staticMap, 42)) { static assert( Instantiate!(templateOr!(testAlways), T)); static assert( Instantiate!(templateOr!(testAlways, testAlways), T)); static assert( Instantiate!(templateOr!(testAlways, testNever), T)); static assert( Instantiate!(templateOr!(testNever, testAlways), T)); static assert(!Instantiate!(templateOr!(), T)); static assert(!Instantiate!(templateOr!(testNever), T)); static assert( Instantiate!(templateOr!(testAlways, testError), T)); static assert( Instantiate!(templateOr!(testNever, testAlways, testError), T)); // DMD @@BUG@@: Assertion fails for int, seems like a error gagging // problem. The bug goes away when removing some of the other template // instantiations in the module. // static assert(!is(typeof(Instantiate!(templateOr!(testNever, testError), T)))); } } /** * Converts an input range $(D range) to an alias sequence. */ template aliasSeqOf(alias range) { import std.range : isInputRange; import std.traits : isArray, isNarrowString; alias ArrT = typeof(range); static if (isArray!ArrT && !isNarrowString!ArrT) { static if (range.length == 0) { alias aliasSeqOf = AliasSeq!(); } else static if (range.length == 1) { alias aliasSeqOf = AliasSeq!(range[0]); } else { alias aliasSeqOf = AliasSeq!(aliasSeqOf!(range[0 .. $/2]), aliasSeqOf!(range[$/2 .. $])); } } else static if (isInputRange!ArrT) { import std.array : array; alias aliasSeqOf = aliasSeqOf!(array(range)); } else { import std.string : format; static assert(false, format("Cannot transform %s of type %s into a AliasSeq.", range, ArrT.stringof)); } } /// unittest { import std.algorithm : map, sort; import std.string : capitalize; struct S { int a; int c; int b; } alias capMembers = aliasSeqOf!([__traits(allMembers, S)].sort().map!capitalize()); static assert(capMembers[0] == "A"); static assert(capMembers[1] == "B"); static assert(capMembers[2] == "C"); } /// unittest { enum REF = [0, 1, 2, 3]; foreach(I, V; aliasSeqOf!([0, 1, 2, 3])) { static assert(V == I); static assert(V == REF[I]); } } unittest { import std.range : iota; import std.conv : to, octal; //Testing compile time octal foreach (I2; aliasSeqOf!(iota(0, 8))) foreach (I1; aliasSeqOf!(iota(0, 8))) { enum oct = I2 * 8 + I1; enum dec = I2 * 10 + I1; enum str = to!string(dec); static assert(octal!dec == oct); static assert(octal!str == oct); } } unittest { enum REF = "日本語"d; foreach(I, V; aliasSeqOf!"日本語"c) { static assert(V == REF[I]); } } // : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : // package: /* * With the builtin alias declaration, you cannot declare * aliases of, for example, literal values. You can alias anything * including literal values via this template. */ // symbols and literal values template Alias(alias a) { static if (__traits(compiles, { alias x = a; })) alias Alias = a; else static if (__traits(compiles, { enum x = a; })) enum Alias = a; else static assert(0, "Cannot alias " ~ a.stringof); } // types and tuples template Alias(a...) { alias Alias = a; } unittest { enum abc = 1; alias a = Alias!(123); static assert(a == 123); alias b = Alias!(abc); static assert(b == 1); alias c = Alias!(int); static assert(is(c[0] == int)); alias d = Alias!(1, abc, int); static assert(d[0] == 1 && d[1] == 1 && is(d[2] == int)); } // : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : // private: /* * [internal] Returns true if a and b are the same thing, or false if * not. Both a and b can be types, literals, or symbols. * * How: When: * is(a == b) - both are types * a == b - both are literals (true literals, enums) * __traits(isSame, a, b) - other cases (variables, functions, * templates, etc.) */ private template isSame(ab...) if (ab.length == 2) { static if (__traits(compiles, expectType!(ab[0]), expectType!(ab[1]))) { enum isSame = is(ab[0] == ab[1]); } else static if (!__traits(compiles, expectType!(ab[0])) && !__traits(compiles, expectType!(ab[1])) && __traits(compiles, expectBool!(ab[0] == ab[1]))) { static if (!__traits(compiles, &ab[0]) || !__traits(compiles, &ab[1])) enum isSame = (ab[0] == ab[1]); else enum isSame = __traits(isSame, ab[0], ab[1]); } else { enum isSame = __traits(isSame, ab[0], ab[1]); } } private template expectType(T) {} private template expectBool(bool b) {} unittest { static assert( isSame!(int, int)); static assert(!isSame!(int, short)); enum a = 1, b = 1, c = 2, s = "a", t = "a"; static assert( isSame!(1, 1)); static assert( isSame!(a, 1)); static assert( isSame!(a, b)); static assert(!isSame!(b, c)); static assert( isSame!("a", "a")); static assert( isSame!(s, "a")); static assert( isSame!(s, t)); static assert(!isSame!(1, "1")); static assert(!isSame!(a, "a")); static assert( isSame!(isSame, isSame)); static assert(!isSame!(isSame, a)); static assert(!isSame!(byte, a)); static assert(!isSame!(short, isSame)); static assert(!isSame!(a, int)); static assert(!isSame!(long, isSame)); static immutable X = 1, Y = 1, Z = 2; static assert( isSame!(X, X)); static assert(!isSame!(X, Y)); static assert(!isSame!(Y, Z)); int foo(); int bar(); real baz(int); static assert( isSame!(foo, foo)); static assert(!isSame!(foo, bar)); static assert(!isSame!(bar, baz)); static assert( isSame!(baz, baz)); static assert(!isSame!(foo, 0)); int x, y; real z; static assert( isSame!(x, x)); static assert(!isSame!(x, y)); static assert(!isSame!(y, z)); static assert( isSame!(z, z)); static assert(!isSame!(x, 0)); } /* * [internal] Confines a tuple within a template. */ private template Pack(T...) { alias tuple = T; // For convenience template equals(U...) { static if (T.length == U.length) { static if (T.length == 0) enum equals = true; else enum equals = isSame!(T[0], U[0]) && Pack!(T[1 .. $]).equals!(U[1 .. $]); } else { enum equals = false; } } } unittest { static assert( Pack!(1, int, "abc").equals!(1, int, "abc")); static assert(!Pack!(1, int, "abc").equals!(1, int, "cba")); } /* * Instantiates the given template with the given list of parameters. * * Used to work around syntactic limitations of D with regard to instantiating * a template from an alias sequence (e.g. T[0]!(...) is not valid) or a template * returning another template (e.g. Foo!(Bar)!(Baz) is not allowed). */ // TODO: Consider publicly exposing this, maybe even if only for better // understandability of error messages. alias Instantiate(alias Template, Params...) = Template!Params;
D
instance TPL_1400_GorNaBar(Npc_Default) { name[0] = "Gor Na Bar"; npcType = npctype_main; guild = GIL_TPL; level = 17; flags = 0; voice = 9; id = 1400; attribute[ATR_STRENGTH] = 95; attribute[ATR_DEXTERITY] = 75; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 274; attribute[ATR_HITPOINTS] = 274; Mdl_SetVisual(self,"HUMANS.MDS"); Mdl_ApplyOverlayMds(self,"Humans_Mage.mds"); Mdl_SetVisualBody(self,"hum_body_Naked0",1,2,"Hum_Head_FatBald",16,1,tpl_armor_m_latinobody); B_Scale(self); Mdl_SetModelFatness(self,0); fight_tactic = FAI_HUMAN_Strong; Npc_SetTalentSkill(self,NPC_TALENT_2H,1); EquipItem(self,ItMw_2H_Sword_Light_03); CreateInvItem(self,ItFoSoup); CreateInvItem(self,ItMiJoint_3); CreateInvItem(self,ItLsTorch); daily_routine = Rtn_start_1400; }; func void Rtn_start_1400() { TA_Smalltalk(0,0,12,0,"OM_CAVE1_56"); TA_Smalltalk(12,0,24,0,"OM_CAVE1_56"); }; func void Rtn_Gate_1400() { TA_Guard(0,0,12,0,"OM_CAVE3_26"); TA_Guard(12,0,24,0,"OM_CAVE3_26"); }; func void rtn_omfull_1400() { TA_Guard(0,0,12,0,""); TA_Guard(12,0,24,0,""); }; instance tpl_5066_gornabar(Npc_Default) { name[0] = "Gor Na Bar"; npcType = npctype_main; guild = GIL_TPL; level = 17; flags = 0; voice = 9; id = 5066; attribute[ATR_STRENGTH] = 95; attribute[ATR_DEXTERITY] = 75; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 274; attribute[ATR_HITPOINTS] = 274; Mdl_SetVisual(self,"HUMANS.MDS"); Mdl_ApplyOverlayMds(self,"Humans_Mage.mds"); Mdl_SetVisualBody(self,"hum_body_Naked0",1,2,"Hum_Head_FatBald",16,1,tpl_armor_m_latinobody); B_Scale(self); Mdl_SetModelFatness(self,0); fight_tactic = FAI_HUMAN_Strong; Npc_SetTalentSkill(self,NPC_TALENT_2H,1); EquipItem(self,ItMw_2H_Sword_Light_03); CreateInvItem(self,ItFoSoup); CreateInvItem(self,ItMiJoint_3); CreateInvItem(self,ItLsTorch); daily_routine = rtn_start_5066; }; func void rtn_start_5066() { TA_GuardPalisade(6,0,12,0,"PSI_PLATFORM_WAIT"); TA_GuardPalisade(12,0,18,0,"PSI_PATH_9_2"); TA_GuardPalisade(18,0,6,0,"PSI_MEETINGPOINT"); };
D
# FIXED PROFILES/serial_port_service.obj: C:/ti/ble_examples-simplelink_sdk-1.35/source/ti/ble5stack/profiles/serial_port/serial_port_service.c PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/string.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/linkage.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/icall/src/inc/icall.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdbool.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdint.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdlib.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/inc/hal_assert.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/target/_common/hal_types.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/target/_common/../_common/cc26xx/_hal_types.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/inc/hal_defs.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/common/cc26xx/util.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Clock.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/std.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdarg.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/targets/arm/elf/std.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/targets/arm/elf/M3.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/targets/std.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/xdc.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types__prologue.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/package/package.defs.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types__epilogue.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/package/package.defs.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Assert.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Assert__prologue.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Main.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IHeap.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error__prologue.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Main.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error__epilogue.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Memory.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IHeap.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/package/Memory_HeapProxy.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IHeap.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IGateProvider.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/package/Main_Module_GateProxy.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IGateProvider.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags__prologue.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Main.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags__epilogue.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Assert__epilogue.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Log.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Log__prologue.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Main.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Text.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Log__epilogue.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/interfaces/ITimer.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/interfaces/package/package.defs.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Queue.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Swi.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Assert.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Log.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Queue.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/package/Clock_TimerProxy.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/interfaces/ITimer.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/package/Clock_TimerProxy.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Queue.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Event.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Event__prologue.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Assert.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Log.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Queue.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Clock.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Task.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Task__prologue.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Assert.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Log.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IHeap.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Queue.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/interfaces/ITaskSupport.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Clock.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/package/Task_SupportProxy.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/interfaces/ITaskSupport.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Task__epilogue.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Event__epilogue.h PROFILES/serial_port_service.obj: C:/ti/ble_examples-simplelink_sdk-1.35/source/ti/ble5stack/sdi/src/inc/sdi_task.h PROFILES/serial_port_service.obj: C:/ti/ble_examples-simplelink_sdk-1.35/source/ti/ble5stack/sdi/src/inc/sdi_data.h PROFILES/serial_port_service.obj: C:/ti/ble_examples-simplelink_sdk-1.35/source/ti/ble5stack/sdi/src/inc/sdi_tl_uart.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/UART.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/uart/UARTCC26XX.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/pin/PINCC26XX.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi__prologue.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/family/arm/m3/package/package.defs.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Log.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Assert.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/BIOS.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/BIOS__prologue.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/package/package.defs.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IGateProvider.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/package/BIOS_RtsGateProxy.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IGateProvider.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/BIOS__epilogue.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/interfaces/IHwi.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi__epilogue.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/PIN.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/ioc.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/hw_types.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/../inc/hw_chip_def.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/hw_memmap.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/hw_ioc.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/hw_ints.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/interrupt.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/hw_nvic.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/debug.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/cpu.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/hw_cpu_scs.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../driverlib/rom.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/gpio.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/hw_gpio.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/Power.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/utils/List.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/utils/RingBuf.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/uart.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/hw_uart.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Swi.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Clock.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Semaphore.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Log.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Assert.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Queue.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Task.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Clock.h PROFILES/serial_port_service.obj: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Event.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/target/board.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/target/./cc2640r2lp/cc2640r2lp_board.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/target/./cc2640r2lp/../../boards/CC2640R2_LAUNCHXL/Board.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/ADC.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/ADCBuf.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/PWM.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/SPI.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/Watchdog.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/target/./cc2640r2lp/../../boards/CC2640R2_LAUNCHXL/CC2640R2_LAUNCHXL.h PROFILES/serial_port_service.obj: C:/ti/ble5_spp_ble_server_cc2640r2lp_app/Application/spp_ble_server.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/string.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/icall/inc/icall_ble_api.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/icall/inc/icall_ble_apimsg.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/bcomdef.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/osal/src/inc/comdef.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/target/_common/hal_types.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/hci_ext.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/hci.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/osal/src/inc/osal.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/limits.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/osal/src/inc/osal_memory.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/osal/src/inc/osal_timers.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/controller/cc26xx_r2/inc/ll.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/hci_tl.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/hci_data.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/hci_event.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/hci_tl.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/gapgattserver.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/linkdb.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/profiles/roles/gapbondmgr.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/gap.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/sm.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/l2cap.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/gatt_uuid.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/gatt.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/att.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/gatt_profile_uuid.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/gattservapp.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/osal/src/inc/osal_snv.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/target/_common/hal_types.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/controller/cc26xx_r2/inc/ll_common.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/rf/RF.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/BIOS.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/package/BIOS_RtsGateProxy.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Clock.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Semaphore.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/rf_common_cmd.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/rf_mailbox.h PROFILES/serial_port_service.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/string.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/rf_prop_cmd.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/rf_ble_cmd.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/target/_common/cc26xx/rf_hal.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/target/_common/hal_types.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/controller/cc26xx_r2/inc/ll_scheduler.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/osal/src/inc/osal_bufmgr.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/../rom/rom_jt.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/../rom/map_direct.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/target/_common/TRNGCC26XX.h PROFILES/serial_port_service.obj: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/icall/inc/icall_api_idx.h PROFILES/serial_port_service.obj: C:/ti/ble_examples-simplelink_sdk-1.35/source/ti/ble5stack/profiles/serial_port/serial_port_service.h C:/ti/ble_examples-simplelink_sdk-1.35/source/ti/ble5stack/profiles/serial_port/serial_port_service.c: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/string.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/linkage.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/icall/src/inc/icall.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdbool.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdint.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdlib.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/inc/hal_assert.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/target/_common/hal_types.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/target/_common/../_common/cc26xx/_hal_types.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/inc/hal_defs.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/common/cc26xx/util.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Clock.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/std.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdarg.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/targets/arm/elf/std.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/targets/arm/elf/M3.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/targets/std.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/xdc.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types__prologue.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/package/package.defs.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types__epilogue.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/package/package.defs.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Assert.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Assert__prologue.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Main.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IHeap.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error__prologue.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Main.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error__epilogue.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Memory.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IHeap.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/package/Memory_HeapProxy.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IHeap.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IGateProvider.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/package/Main_Module_GateProxy.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IGateProvider.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags__prologue.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Main.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags__epilogue.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Assert__epilogue.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Log.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Log__prologue.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Main.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Text.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Log__epilogue.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/interfaces/ITimer.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/interfaces/package/package.defs.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Queue.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Swi.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Assert.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Log.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Queue.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/package/Clock_TimerProxy.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/interfaces/ITimer.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/package/Clock_TimerProxy.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Queue.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Event.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Event__prologue.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Assert.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Log.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Queue.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Clock.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Task.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Task__prologue.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Assert.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Log.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IHeap.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Queue.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/interfaces/ITaskSupport.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Clock.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/package/Task_SupportProxy.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/interfaces/ITaskSupport.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Task__epilogue.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Event__epilogue.h: C:/ti/ble_examples-simplelink_sdk-1.35/source/ti/ble5stack/sdi/src/inc/sdi_task.h: C:/ti/ble_examples-simplelink_sdk-1.35/source/ti/ble5stack/sdi/src/inc/sdi_data.h: C:/ti/ble_examples-simplelink_sdk-1.35/source/ti/ble5stack/sdi/src/inc/sdi_tl_uart.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/UART.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/uart/UARTCC26XX.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/pin/PINCC26XX.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi__prologue.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/family/arm/m3/package/package.defs.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Log.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Assert.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/BIOS.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/BIOS__prologue.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/package/package.defs.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IGateProvider.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/package/BIOS_RtsGateProxy.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IGateProvider.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/BIOS__epilogue.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/interfaces/IHwi.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi__epilogue.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/PIN.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/ioc.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/hw_types.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/../inc/hw_chip_def.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/hw_memmap.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/hw_ioc.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/hw_ints.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/interrupt.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/hw_nvic.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/debug.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/cpu.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/hw_cpu_scs.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../driverlib/rom.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/gpio.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/hw_gpio.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/Power.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/utils/List.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/utils/RingBuf.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/uart.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/../inc/hw_uart.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Swi.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Clock.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Semaphore.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Log.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/Assert.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Queue.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Task.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Clock.h: C:/ti/xdctools_3_50_01_12_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Event.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/target/board.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/target/./cc2640r2lp/cc2640r2lp_board.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/target/./cc2640r2lp/../../boards/CC2640R2_LAUNCHXL/Board.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/ADC.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/ADCBuf.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/PWM.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/SPI.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/Watchdog.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/target/./cc2640r2lp/../../boards/CC2640R2_LAUNCHXL/CC2640R2_LAUNCHXL.h: C:/ti/ble5_spp_ble_server_cc2640r2lp_app/Application/spp_ble_server.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/string.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/icall/inc/icall_ble_api.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/icall/inc/icall_ble_apimsg.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/bcomdef.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/osal/src/inc/comdef.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/target/_common/hal_types.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/hci_ext.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/hci.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/osal/src/inc/osal.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/limits.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/osal/src/inc/osal_memory.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/osal/src/inc/osal_timers.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/controller/cc26xx_r2/inc/ll.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/hci_tl.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/hci_data.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/hci_event.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/hci_tl.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/gapgattserver.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/linkdb.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/profiles/roles/gapbondmgr.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/gap.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/sm.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/l2cap.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/gatt_uuid.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/gatt.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/att.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/gatt_profile_uuid.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/gattservapp.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/osal/src/inc/osal_snv.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/target/_common/hal_types.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/controller/cc26xx_r2/inc/ll_common.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/drivers/rf/RF.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/BIOS.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/package/BIOS_RtsGateProxy.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Clock.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/kernel/tirtos/packages/ti/sysbios/knl/Semaphore.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/rf_common_cmd.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/rf_mailbox.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/string.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/rf_prop_cmd.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/devices/cc26x0r2/driverlib/rf_ble_cmd.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/target/_common/cc26xx/rf_hal.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/target/_common/hal_types.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/controller/cc26xx_r2/inc/ll_scheduler.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/osal/src/inc/osal_bufmgr.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/../rom/rom_jt.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/inc/../rom/map_direct.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/hal/src/target/_common/TRNGCC26XX.h: C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/ble5stack/icall/inc/icall_api_idx.h: C:/ti/ble_examples-simplelink_sdk-1.35/source/ti/ble5stack/profiles/serial_port/serial_port_service.h:
D
const int Value_Dragonegg = 200; const int Value_OrcEliteRing = 130; instance ItAm_Mana_Angar_MIS(C_Item) { name = NAME_Amulett; mainflag = ITEM_KAT_MAGIC; flags = ITEM_AMULET | ITEM_MISSION; value = Value_Am_Mana; visual = "ItAm_Mana_01.3ds"; visual_skin = 0; material = MAT_METAL; on_equip = Equip_ItAm_Mana_Angar; on_unequip = UnEquip_ItAm_Mana_Angar; wear = WEAR_EFFECT; effect = "SPELLFX_ITEMGLIMMER"; //description = "Магический амулет Ангара"; description = "Амулет магии"; text[0] = "Этот амулет принадлежит Ангару."; text[2] = NAME_Bonus_ManaMax; count[2] = 10; text[5] = NAME_Value; count[5] = value; inv_zbias = INVCAM_ENTF_AMULETTE_STANDARD; }; func void Equip_ItAm_Mana_Angar() { self.attribute[ATR_MANA_MAX] += Am_Mana; // self.attribute[ATR_MANA] += Am_Mana; }; func void UnEquip_ItAm_Mana_Angar() { self.attribute[ATR_MANA_MAX] -= Am_Mana; if(self.attribute[ATR_MANA] > self.attribute[ATR_MANA_MAX]) { self.attribute[ATR_MANA] = self.attribute[ATR_MANA_MAX]; }; // if(self.attribute[ATR_MANA] > Am_Mana) // { // self.attribute[ATR_MANA] -= Am_Mana; // } // else // { // self.attribute[ATR_MANA] = 0; // }; }; instance ItMW_1H_FerrosSword_Mis(C_Item) { name = "Меч Ферроса"; mainflag = ITEM_KAT_NF; flags = ITEM_SWD | ITEM_MISSION; material = MAT_METAL; value = Value_Special_1H_2; damageTotal = Damage_Special_1H_2; damagetype = DAM_EDGE; range = Range_Special_1H_2; cond_atr[2] = ATR_STRENGTH; cond_value[2] = Condition_Special_1H_2; // visual = "ItMw_060_1h_Sword_smith_03.3DS"; visual = "ItMw_060_1h_Sword_smith_04.3DS"; description = name; text[2] = NAME_Damage; count[2] = damageTotal; text[3] = NAME_Str_needed; count[3] = cond_value[2]; text[4] = NAME_OneHanded; text[5] = NAME_Value; count[5] = value; }; instance ItMi_KerolothsGeldbeutel_MIS(C_Item) { name = NAME_Beutel; mainflag = ITEM_KAT_NONE; flags = ITEM_MISSION; value = 300; visual = "ItMi_Pocket.3ds"; scemeName = "MAPSEALED"; material = MAT_LEATHER; on_state[0] = UseKerolothsGeldbeutel; description = "Кошелек Керолота"; text[0] = "Этот кошелек полон монет."; text[5] = NAME_Value; count[5] = value; }; func void UseKerolothsGeldbeutel() { CreateInvItems(self,ItMi_Gold,300); CreateInvItems(self,ItMi_KerolothsGeldbeutelLeer_MIS,1); Print(PRINT_KerolothsGeldBeutel); Snd_Play("Geldbeutel"); }; instance ItMi_KerolothsGeldbeutelLeer_MIS(C_Item) { name = NAME_Beutel; mainflag = ITEM_KAT_NONE; flags = ITEM_MISSION; value = 0; visual = "ItMi_Pocket_Empty.3ds"; material = MAT_LEATHER; description = "Кошелек Керолота"; text[0] = "Сейчас этот кошелек пуст."; }; instance ItRw_SengrathsArmbrust_MIS(C_Item) { name = "Арбалет Сенграта"; mainflag = ITEM_KAT_FF; flags = ITEM_CROSSBOW; material = MAT_WOOD; value = 300; damageTotal = 50; damagetype = DAM_POINT; munition = ItRw_Bolt; cond_atr[2] = ATR_STRENGTH; cond_value[2] = Condition_MilArmbrust; // visual = "ItRw_Mil_Crossbow.mms"; visual = "ITRW_CROSSBOW_MISSION_02.MMS"; description = name; text[2] = NAME_Damage; count[2] = damageTotal; text[3] = NAME_Str_needed; count[3] = cond_value[2]; text[5] = NAME_Value; count[5] = value; }; instance ItAt_TalbinsLurkerSkin(C_Item) { name = "Кожа луркера"; mainflag = ITEM_KAT_NONE; flags = ITEM_MULTI | ITEM_MISSION; value = Value_ReptileSkin; // visual = "ItAt_LurkerSkin.3DS"; visual = "ItAt_TalbinsLurkerSkin.3DS"; material = MAT_LEATHER; description = name; text[0] = "На внутренней стороне клеймо - 'Талбин'."; text[5] = NAME_Value; count[5] = value; }; instance ItAt_DragonEgg_MIS(C_Item) { name = "Драконье яйцо"; mainflag = ITEM_KAT_NONE; flags = ITEM_MISSION | ITEM_MULTI; value = Value_Dragonegg; visual = "ItAt_DragonEgg.3ds"; material = MAT_LEATHER; description = name; text[0] = "Это яйцо теплое, и изнутри"; text[1] = "доносится скребущийся звук."; text[5] = NAME_Value; count[5] = value; }; instance ItRi_OrcEliteRing(C_Item) { name = NAME_Ring; mainflag = ITEM_KAT_MAGIC; flags = ITEM_MISSION | ITEM_RING | ITEM_MULTI; value = Value_OrcEliteRing; // cond_atr[2] = ATR_STRENGTH; // cond_value[2] = 20; // visual = "ItRi_Str_02.3ds"; visual = "ItRi_OrcEliteRing.3ds"; visual_skin = 0; material = MAT_METAL; on_equip = Equip_OrcEliteRing; on_unequip = UnEquip_OrcEliteRing; description = "Кольцо предводителей орков"; text[0] = "Это грубое кольцо кажется"; text[1] = "странно холодным."; text[5] = NAME_Value; count[5] = value; wear = WEAR_EFFECT; effect = "SPELLFX_WEAKGLIMMER"; inv_zbias = INVCAM_ENTF_RING_STANDARD; inv_rotz = INVCAM_Z_RING_STANDARD; inv_rotx = INVCAM_X_RING_STANDARD; }; func void Equip_OrcEliteRing() { // var string strMessage; if(self.attribute[ATR_STRENGTH] >= 20) { Npc_ChangeAttribute(self,ATR_STRENGTH,-20); Print(PRINT_OrcEliteRingEquip); OrcEliteRing_Equipped = TRUE; }; /* else { strMessage = ConcatStrings(PRINT_STRENGTH_MISSING," "); strMessage = ConcatStrings(strMessage,IntToString(20 - self.attribute[ATR_STRENGTH])); Print(strMessage); OrcEliteRing_Equipped = FALSE; };*/ }; func void UnEquip_OrcEliteRing() { if(OrcEliteRing_Equipped == TRUE) { Npc_ChangeAttribute(self,ATR_STRENGTH,20); Print(PRINT_Eat3); OrcEliteRing_Equipped = FALSE; }; }; var int Neoras_SCUsedDragonEggDrink; instance ItPo_DragonEggDrinkNeoras_MIS(C_Item) { name = NAME_Trank; mainflag = ITEM_KAT_POTIONS; flags = ITEM_MULTI; value = Value_HpElixier; // visual = "ItPo_Perm_STR.3ds"; visual = "ItPo_Special_01.3ds"; material = MAT_GLAS; on_state[0] = Use_DragonEggDrinkNeoras; scemeName = "POTIONFAST"; wear = WEAR_EFFECT; effect = "SPELLFX_ITEMGLIMMER"; description = "Зелье из драконьего яйца"; // text[0] = PRINT_UnknownEffect; text[1] = TEXT_DragonEggDrinkNeoras_Setting; count[1] = COUNT_DragonEggDrinkNeoras_Setting; text[5] = NAME_Value; count[5] = value; }; func void Use_DragonEggDrinkNeoras() { Npc_ChangeAttribute(self,ATR_HITPOINTS,HP_Elixier); B_RaiseAttribute(self,ATR_STRENGTH,3); Snd_Play("DEM_Warn"); TEXT_DragonEggDrinkNeoras_Setting = NAME_Bonus_Str; COUNT_DragonEggDrinkNeoras_Setting = 3; Neoras_SCUsedDragonEggDrink = TRUE; }; instance ItWr_Map_Orcelite_MIS(C_Item) { name = "Военная карта орков"; mainflag = ITEM_KAT_DOCS; flags = ITEM_MISSION | ITEM_MULTI; value = 350; visual = "ItWr_Map_NW_01.3DS"; material = MAT_LEATHER; scemeName = "MAP"; on_state[0] = Use_Map_NewWorld_Orcelite_MIS; description = name; text[5] = NAME_Value; count[5] = value; inv_rotz = 180; inv_rotx = 90; inv_roty = 180; }; var int Use_Map_NewWorld_Orcelite_MIS_OneTime; func void Use_Map_NewWorld_Orcelite_MIS() { var int Document; if(Npc_IsPlayer(self)) { B_SetPlayerMap(ItWr_Map_Orcelite_MIS); }; Document = Doc_CreateMap(); Doc_SetPages(Document,1); Doc_SetPage(Document,0,"Map_NewWorld_Orcelite.tga",TRUE); Doc_SetLevel(Document,"NewWorld\NewWorld.zen"); Doc_SetLevelCoords(Document,-28000,50500,95500,-42500); Doc_Show(Document); if((Use_Map_NewWorld_Orcelite_MIS_OneTime == FALSE) && (MIS_KillOrkOberst != FALSE)) { B_LogEntry(TOPIC_OrcElite,"Я нашел необычную карту у полковника орков. Похоже на стратегические военные планы."); Use_Map_NewWorld_Orcelite_MIS_OneTime = TRUE; }; }; instance ItWr_Map_Caves_MIS(C_Item) { name = "Пещеры Хориниса"; mainflag = ITEM_KAT_DOCS; flags = ITEM_MISSION | ITEM_MULTI; value = 200; visual = "ItWr_Map_NW_01.3DS"; material = MAT_LEATHER; scemeName = "MAP"; on_state[0] = Use_Map_NewWorld_Caves_MIS; description = name; text[5] = NAME_Value; count[5] = value; inv_rotz = 180; inv_rotx = 90; inv_roty = 180; }; func void Use_Map_NewWorld_Caves_MIS() { var int Document; if(Npc_IsPlayer(self)) { B_SetPlayerMap(ItWr_Map_Caves_MIS); }; Document = Doc_CreateMap(); Doc_SetPages(Document,1); Doc_SetPage(Document,0,"Map_NewWorld_Caves.tga",TRUE); Doc_SetLevel(Document,"NewWorld\NewWorld.zen"); Doc_SetLevelCoords(Document,-28000,50500,95500,-42500); Doc_Show(Document); };
D
/root/github/compiler/week3_binary_operators/gacc/target/debug/build/memchr-c91f1865189b4115/build_script_build-c91f1865189b4115: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/memchr-2.2.0/build.rs /root/github/compiler/week3_binary_operators/gacc/target/debug/build/memchr-c91f1865189b4115/build_script_build-c91f1865189b4115.d: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/memchr-2.2.0/build.rs /root/.cargo/registry/src/github.com-1ecc6299db9ec823/memchr-2.2.0/build.rs:
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', 'DerelictGL', nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ module derelict.opengl.extension.arb.texture_border_clamp; private { import derelict.opengl.gltypes; import derelict.opengl.gl; import derelict.util.wrapper; } private bool enabled = false; struct ARBTextureBorderClamp { static bool load(char[] extString) { if(extString.findStr("GL_ARB_texture_border_clamp") != -1) { enabled = true; return true; } return false; } static bool isEnabled() { return enabled; } } version(DerelictGL_NoExtensionLoaders) { } else { static this() { DerelictGL.registerExtensionLoader(&ARBTextureBorderClamp.load); } } enum : GLenum { GL_CLAMP_TO_BORDER_ARB = 0x812D }
D
/Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/DerivedData3/WMSegmentControlAPP/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BetterSegmentedControl.build/Objects-normal/x86_64/BetterSegmentedControlSegment.o : /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/BetterSegmentedControl/Pod/Classes/BetterSegmentedControl.swift /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/BetterSegmentedControl/Pod/Classes/Options.swift /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/BetterSegmentedControl/Pod/Classes/Segments/LabelSegment.swift /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/BetterSegmentedControl/Pod/Classes/BetterSegmentedControlSegment.swift /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/BetterSegmentedControl/Pod/Classes/Segments/IconSegment.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/Headers/Public/BetterSegmentedControl/BetterSegmentedControl-umbrella.h /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/Headers/Public/BetterSegmentedControl/BetterSegmentedControl.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/DerivedData3/WMSegmentControlAPP/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BetterSegmentedControl.build/Objects-normal/x86_64/BetterSegmentedControlSegment~partial.swiftmodule : /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/BetterSegmentedControl/Pod/Classes/BetterSegmentedControl.swift /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/BetterSegmentedControl/Pod/Classes/Options.swift /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/BetterSegmentedControl/Pod/Classes/Segments/LabelSegment.swift /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/BetterSegmentedControl/Pod/Classes/BetterSegmentedControlSegment.swift /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/BetterSegmentedControl/Pod/Classes/Segments/IconSegment.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/Headers/Public/BetterSegmentedControl/BetterSegmentedControl-umbrella.h /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/Headers/Public/BetterSegmentedControl/BetterSegmentedControl.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/DerivedData3/WMSegmentControlAPP/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BetterSegmentedControl.build/Objects-normal/x86_64/BetterSegmentedControlSegment~partial.swiftdoc : /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/BetterSegmentedControl/Pod/Classes/BetterSegmentedControl.swift /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/BetterSegmentedControl/Pod/Classes/Options.swift /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/BetterSegmentedControl/Pod/Classes/Segments/LabelSegment.swift /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/BetterSegmentedControl/Pod/Classes/BetterSegmentedControlSegment.swift /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/BetterSegmentedControl/Pod/Classes/Segments/IconSegment.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/Headers/Public/BetterSegmentedControl/BetterSegmentedControl-umbrella.h /Users/nadiamettioui/Desktop/PortoFolio\ 2020/WMSegmentControlAPP/Pods/Headers/Public/BetterSegmentedControl/BetterSegmentedControl.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
module durge.system.windows.native.gdi; version (Windows): import durge.common; import durge.system.windows.native.common; import durge.system.windows.native.windows; enum // General { GDI_ERROR = 0xffffffffU, CCHDEVICENAME = 32, CCHFORMNAME = 32, } enum // Get Monitor Flags { MONITOR_DEFAULTTONULL = 0, MONITOR_DEFAULTTOPRIMARY = 1, MONITOR_DEFAULTTONEAREST = 2, } enum // Enum Display Settings { ENUM_CURRENT_SETTINGS = -1, ENUM_REGISTRY_SETTINGS = -2, } enum // Change Display Settings { CDS_UPDATEREGISTRY = 0x00000001U, CDS_TEST = 0x00000002U, CDS_FULLSCREEN = 0x00000004U, CDS_GLOBAL = 0x00000008U, CDS_SET_PRIMARY = 0x00000010U, CDS_VIDEOPARAMETERS = 0x00000020U, CDS_ENABLE_UNSAFE_MODES = 0x00000100U, CDS_DISABLE_UNSAFE_MODES = 0x00000200U, CDS_NORESET = 0x10000000U, CDS_RESET_EX = 0x20000000U, CDS_RESET = 0x40000000U, } enum // Change Display Settings Result { DISP_CHANGE_SUCCESSFUL = 0, DISP_CHANGE_RESTART = 1, DISP_CHANGE_FAILED = -1, DISP_CHANGE_BADMODE = -2, DISP_CHANGE_NOTUPDATED = -3, DISP_CHANGE_BADFLAGS = -4, DISP_CHANGE_BADPARAM = -5, DISP_CHANGE_BADDUALVIEW = -6, } enum // Device Mode Fields { DM_BITSPERPEL = 0x00040000, DM_PELSWIDTH = 0x00080000, DM_PELSHEIGHT = 0x00100000, DM_DISPLAYFLAGS = 0x00200000, DM_DISPLAYFREQUENCY = 0x00400000, } enum // Get Device Caps { RASTERCAPS = 38, } enum // Device Raster Caps { RC_PALETTE = 0x00000100U, } enum // DIB Section Usage { DIB_RGB_COLORS = 0, DIB_PAL_COLORS = 1, } enum // Bitmap Compression { BI_RGB = 0, BI_RLE8 = 1, BI_RLE4 = 2, BI_BITFIELDS = 3, BI_JPEG = 4, BI_PNG = 5, } enum // Blit Flags { SRCCOPY = 0x00CC0020U, SRCPAINT = 0x00EE0086U, SRCAND = 0x008800C6U, SRCINVERT = 0x00660046U, SRCERASE = 0x00440328U, NOTSRCCOPY = 0x00330008U, NOTSRCERASE = 0x001100A6U, MERGECOPY = 0x00C000CAU, MERGEPAINT = 0x00BB0226U, PATCOPY = 0x00F00021U, PATPAINT = 0x00FB0A09U, PATINVERT = 0x005A0049U, DSTINVERT = 0x00550009U, BLACKNESS = 0x00000042U, WHITENESS = 0x00FF0062U, CAPTUREBLT = 0x40000000U, NOMIRRORBITMAP = 0x80000000U, } enum // Palette Entry { PC_RESERVED = 1, PC_EXPLICIT = 2, PC_NOCOLLAPSE = 4, } enum // System Palette { SYSPAL_ERROR = 0, SYSPAL_STATIC = 1, SYSPAL_NOSTATIC = 2, SYSPAL_NOSTATIC256 = 3, } enum // Window Messages { WM_DISPLAYCHANGE = 0x007E, } alias HANDLE HBITMAP; alias HANDLE HBRUSH; alias HANDLE HDC; alias HANDLE HGDIOBJ; alias HANDLE HMONITOR; alias HANDLE HPALETTE; struct MONITORINFO { DWORD cbSize; RECT rcMonitor; RECT rcWork; DWORD dwFlags; } struct DEVMODE { WCHAR[CCHDEVICENAME] dmDeviceName; WORD dmSpecVersion; WORD dmDriverVersion; WORD dmSize; WORD dmDriverExtra; DWORD dmFields; union { struct { SHORT vdmOrientation; SHORT dmPaperSize; SHORT dmPaperLength; SHORT dmPaperWidth; SHORT dmScale; SHORT dmCopies; SHORT dmDefaultSource; SHORT dmPrintQuality; } struct { POINTL dmPosition; DWORD dmDisplayOrientation; DWORD dmDisplayFixedOutput; } } SHORT dmColor; SHORT dmDuplex; SHORT dmYResolution; SHORT dmTTOption; SHORT dmCollate; WCHAR[CCHFORMNAME] dmFormName; WORD dmLogPixels; DWORD dmBitsPerPel; DWORD dmPelsWidth; DWORD dmPelsHeight; union { DWORD dmDisplayFlags; DWORD dmNup; } DWORD dmDisplayFrequency; DWORD dmICMMethod; DWORD dmICMIntent; DWORD dmMediaType; DWORD dmDitherType; DWORD dmReserved1; DWORD dmReserved2; DWORD dmPanningWidth; DWORD dmPanningHeight; } struct BITMAPINFOHEADER { DWORD biSize; LONG biWidth; LONG biHeight; WORD biPlanes; WORD biBitCount; DWORD biCompression; DWORD biSizeImage; LONG biXPelsPerMeter; LONG biYPelsPerMeter; DWORD biClrUsed; DWORD biClrImportant; } struct BITMAPINFO { BITMAPINFOHEADER bmiHeader; union { RGBQUAD[256] bmiColors; DWORD[3] bmiBitMasks; } } struct RGBQUAD { BYTE rgbBlue; BYTE rgbGreen; BYTE rgbRed; BYTE rgbReserved; } struct LOGPALETTE { WORD palVersion; WORD palNumEntries; PALETTEENTRY[256] palPalEntry; } struct PALETTEENTRY { BYTE peRed; BYTE peGreen; BYTE peBlue; BYTE peFlags; } struct POINT { LONG x; LONG y; } struct RECT { LONG left; LONG top; LONG right; LONG bottom; } struct SIZE { LONG cx; LONG cy; } struct RGNDATAHEADER { DWORD dwSize; DWORD iType; DWORD nCount; DWORD nRgnSize; RECT rcBound; } struct RGNDATA { RGNDATAHEADER rdh; RECT[1] Buffer; } alias POINT POINTL; alias MONITORINFO* LPMONITORINFO; alias DEVMODE* LPDEVMODE; alias BITMAPINFO* LPBITMAPINFO; alias RGBQUAD* LPRGBQUAD; alias LOGPALETTE* LPLOGPALETTE; alias PALETTEENTRY* LPPALETTEENTRY; alias POINT* LPPOINT; alias RECT* LPRECT; alias SIZE* LPSIZE; alias RGNDATA* LPRGNDATA; alias const (BITMAPINFO)* LPCBITMAPINFO; alias const (LOGPALETTE)* LPCLOGPALETTE; alias const (RECT)* LPCRECT; extern (Windows) { nothrow: @nogc: BOOL BitBlt(HDC hdcDest, INT nXDest, INT nYDest, INT nWidth, INT nHeight, HDC hdcSrc, INT nXSrc, INT nYSrc, DWORD dwRop); LONG ChangeDisplaySettingsExW(LPCWSTR lpszDeviceName, LPDEVMODE lpDevMode, HWND hWnd, DWORD dwFlags, LPVOID lParam); BOOL ClientToScreen(HWND hWnd, LPPOINT lpPoint); HDC CreateCompatibleDC(HDC hdc); HBITMAP CreateDIBSection(HDC hdc, LPCBITMAPINFO pbmi, UINT iUsage, LPVOID* ppvBits, HANDLE hSection, DWORD dwOffset); HPALETTE CreatePalette(LPCLOGPALETTE lplgpl); BOOL DeleteDC(HDC hdc); BOOL DeleteObject(HGDIOBJ hObject); BOOL EnumDisplaySettingsW(LPCWSTR lpszDeviceName, DWORD iModeNum, LPDEVMODE lpDevMode); HDC GetDC(HWND hWnd); INT GetDeviceCaps(HDC hdc, INT nIndex); BOOL GetMonitorInfoW(HMONITOR hMonitor, LPMONITORINFO lpmi); HMONITOR MonitorFromWindow(HWND hwnd, DWORD dwFlags); BOOL OffsetRect(LPRECT lprc, INT dx, INT dy); UINT RealizePalette(HDC hdc); INT ReleaseDC(HWND hWnd, HDC hDC); HGDIOBJ SelectObject(HDC hdc, HGDIOBJ hgdiobj); HPALETTE SelectPalette(HDC hdc, HPALETTE hpal, BOOL bForceBackground); BOOL SetRect(LPRECT lprc, INT xLeft, INT yTop, INT xRight, INT yBottom); UINT SetSystemPaletteUse(HDC hdc, UINT uUsage); BOOL StretchBlt(HDC hdcDest, INT nXOriginDest, INT nYOriginDest, INT nWidthDest, INT nHeightDest, HDC hdcSrc, INT nXOriginSrc, INT nYOriginSrc, INT nWidthSrc, INT nHeightSrc, DWORD dwRop); BOOL UnrealizeObject(HGDIOBJ hgdiobj); } alias ChangeDisplaySettingsExW ChangeDisplaySettingsEx; alias EnumDisplaySettingsW EnumDisplaySettings; alias GetMonitorInfoW GetMonitorInfo; class ChangeDisplaySettingsException : WindowsException { this(LONG errorCode) { super(errorCode, getErrorMessage(errorCode)); } private string getErrorMessage(HRESULT errorCode) { import std.format : format; auto symbol = getChangeDisplaySettingsErrorSymbol(errorCode); auto message = getChangeDisplaySettingsErrorMessage(errorCode); return message !is null ? "%s(%s): %s".format(symbol, errorCode, message) : "Unknown error"; } } private string getChangeDisplaySettingsErrorSymbol(LONG errorCode) { string symbol; switch (errorCode) { case DISP_CHANGE_RESTART: symbol = "DISP_CHANGE_RESTART"; break; case DISP_CHANGE_FAILED: symbol = "DISP_CHANGE_FAILED"; break; case DISP_CHANGE_BADMODE: symbol = "DISP_CHANGE_BADMODE"; break; case DISP_CHANGE_NOTUPDATED: symbol = "DISP_CHANGE_NOTUPDATED"; break; case DISP_CHANGE_BADFLAGS: symbol = "DISP_CHANGE_BADFLAGS"; break; case DISP_CHANGE_BADPARAM: symbol = "DISP_CHANGE_BADPARAM"; break; case DISP_CHANGE_BADDUALVIEW: symbol = "DISP_CHANGE_BADDUALVIEW"; break; default: break; } return symbol; } private string getChangeDisplaySettingsErrorMessage(LONG errorCode) { string message; switch (errorCode) { case DISP_CHANGE_RESTART: message = "The computer must be restarted for the graphics mode to work."; break; case DISP_CHANGE_FAILED: message = "The display driver failed the specified graphics mode."; break; case DISP_CHANGE_BADMODE: message = "The graphics mode is not supported."; break; case DISP_CHANGE_NOTUPDATED: message = "Unable to write settings to the registry."; break; case DISP_CHANGE_BADFLAGS: message = "An invalid set of flags was passed in."; break; case DISP_CHANGE_BADPARAM: message = "An invalid parameter was passed in. This can include an invalid flag or combination of flags."; break; case DISP_CHANGE_BADDUALVIEW: message = "The settings change was unsuccessful because the system is DualView capable."; break; default: break; } return message; } VOID _BitBlt(HDC hdcDest, INT nXDest, INT nYDest, INT nWidth, INT nHeight, HDC hdcSrc, INT nXSrc, INT nYSrc, DWORD dwRop) { BOOL result = BitBlt(hdcDest, nXDest, nYDest, nWidth, nHeight, hdcSrc, nXSrc, nYSrc, dwRop); if (result == FALSE) { throw new WindowsException(); } } VOID _ChangeDisplaySettings(LPCWSTR lpszDeviceName, LPDEVMODE lpDevMode, DWORD dwFlags) { LONG result = ChangeDisplaySettingsEx(lpszDeviceName, lpDevMode, null, dwFlags, null); if (result != DISP_CHANGE_SUCCESSFUL) { throw new ChangeDisplaySettingsException(result); } } VOID _ClientToScreen(HWND hWnd, LPPOINT lpPoint) { BOOL result = ClientToScreen(hWnd, lpPoint); if (result == FALSE) { throw new WindowsException(); } } HDC _CreateCompatibleDC(HDC hdc) { HDC result = CreateCompatibleDC(hdc); if (result is null) { throw new WindowsException(); } return result; } HBITMAP _CreateDIBSection(HDC hdc, LPCBITMAPINFO pbmi, UINT iUsage, LPVOID* ppvBits) { HBITMAP result = CreateDIBSection(hdc, pbmi, iUsage, ppvBits, null, 0); if (cast (UINT) result == ERROR_INVALID_PARAMETER) { throw new WindowsException(ERROR_INVALID_PARAMETER); } else if (result is null) { throw new WindowsException(); } return result; } HPALETTE _CreatePalette(LPCLOGPALETTE lplgpl) { HPALETTE result = CreatePalette(lplgpl); if (result is null) { throw new WindowsException(); } return result; } VOID _DeleteDC(HDC hdc) { BOOL result = DeleteDC(hdc); if (result == FALSE) { throw new WindowsException(); } } nothrow @nogc VOID DeleteDCAndSetNull(ref HDC hdc) { if (hdc !is null) { DeleteDC(hdc); hdc = null; } } VOID _DeleteDCAndSetNull(ref HDC hdc) { if (hdc !is null) { BOOL result = DeleteDC(hdc); if (result == FALSE) { throw new WindowsException(); } hdc = null; } } VOID _DeleteObject(HGDIOBJ hObject) { BOOL result = DeleteObject(hObject); if (result == FALSE) { throw new WindowsException(); } } nothrow @nogc VOID DeleteObjectAndSetNull(ref HGDIOBJ hObject) { if (hObject !is null) { DeleteObject(hObject); hObject = null; } } VOID _DeleteObjectAndSetNull(ref HGDIOBJ hObject) { if (hObject !is null) { BOOL result = DeleteObject(hObject); if (result == FALSE) { throw new WindowsException(); } hObject = null; } } VOID _EnumDisplaySettings(LPCWSTR lpszDeviceName, DWORD iModeNum, LPDEVMODE lpDevMode) { BOOL result = EnumDisplaySettings(lpszDeviceName, iModeNum, lpDevMode); if (result == FALSE) { throw new WindowsException(); } } DEVMODE[] _EnumAllDisplaySettings(LPCWSTR lpszDeviceName) { DEVMODE[] devModes; for (auto iModeNum = 0; ; iModeNum++) { DEVMODE devMode; BOOL result = EnumDisplaySettings(lpszDeviceName, iModeNum, &devMode); if (result == FALSE) { if (iModeNum == 0) { throw new WindowsException(); } break; } devModes ~= devMode; } return devModes; } HDC _GetDC(HWND hWnd) { HDC result = GetDC(hWnd); if (result is null) { throw new WindowsException(); } return result; } INT _GetDeviceCaps(HDC hdc, INT nIndex) { SetLastError(0); INT result = GetDeviceCaps(hdc, nIndex); DWORD errorCode = GetLastError(); if (errorCode != 0) { throw new WindowsException(errorCode); } return result; } VOID _GetMonitorInfo(HMONITOR hMonitor, LPMONITORINFO lpmi) { BOOL result = GetMonitorInfo(hMonitor, lpmi); if (result == FALSE) { throw new WindowsException(); } } HMONITOR _MonitorFromWindow(HWND hWnd, DWORD dwFlags) { SetLastError(0); HMONITOR result = MonitorFromWindow(hWnd, dwFlags); DWORD errorCode = GetLastError(); if (errorCode != 0) { throw new WindowsException(errorCode); } return result; } VOID _OffsetRect(LPRECT lprc, INT dx, INT dy) { BOOL result = OffsetRect(lprc, dx, dy); if (result == FALSE) { throw new WindowsException(); } } UINT _RealizePalette(HDC hdc) { UINT result = RealizePalette(hdc); if (result == GDI_ERROR) { throw new WindowsException(); } return result; } VOID _ReleaseDC(HWND hWnd, HDC hdc) { INT result = ReleaseDC(hWnd, hdc); if (result == 0) { throw new WindowsException(); } } nothrow @nogc VOID ReleaseDCAndSetNull(HWND hWnd, ref HDC hdc) { if (hWnd !is null && hdc !is null) { ReleaseDC(hWnd, hdc); hdc = null; } } VOID _ReleaseDCAndSetNull(HWND hWnd, ref HDC hdc) { if (hWnd !is null && hdc !is null) { INT result = ReleaseDC(hWnd, hdc); if (result == 0) { throw new WindowsException(); } hdc = null; } } nothrow @nogc LONG ResetDisplaySettings(LPCWSTR lpszDeviceName) { return ChangeDisplaySettingsEx(lpszDeviceName, null, null, 0, null); } VOID _ResetDisplaySettings(LPCWSTR lpszDeviceName) { LONG result = ChangeDisplaySettingsEx(lpszDeviceName, null, null, 0, null); if (result != DISP_CHANGE_SUCCESSFUL) { auto message = getChangeDisplaySettingsErrorMessage(result); throw new WindowsException(0, message); } } HGDIOBJ _SelectObject(HDC hdc, HGDIOBJ hgdiobj) { HGDIOBJ result = SelectObject(hdc, hgdiobj); if (result is null) { throw new WindowsException(); } return result; } HPALETTE _SelectPalette(HDC hdc, HPALETTE hpal, BOOL bForceBackground) { HPALETTE result = SelectPalette(hdc, hpal, bForceBackground); if (result is null) { throw new WindowsException(); } return result; } VOID _SetRect(LPRECT lprc, INT xLeft, INT yTop, INT xRight, INT yBottom) { BOOL result = SetRect(lprc, xLeft, yTop, xRight, yBottom); if (result == FALSE) { throw new WindowsException(); } } UINT _SetSystemPaletteUse(HDC hdc, UINT uUsage) { UINT result = SetSystemPaletteUse(hdc, uUsage); if (result == SYSPAL_ERROR) { throw new WindowsException(); } return result; } VOID _StretchBlt(HDC hdcDest, INT nXOriginDest, INT nYOriginDest, INT nWidthDest, INT nHeightDest, HDC hdcSrc, INT nXOriginSrc, INT nYOriginSrc, INT nWidthSrc, INT nHeightSrc, DWORD dwRop) { BOOL result = StretchBlt(hdcDest, nXOriginDest, nYOriginDest, nWidthDest, nHeightDest, hdcSrc, nXOriginSrc, nYOriginSrc, nWidthSrc, nHeightSrc, dwRop); if (result == FALSE) { throw new WindowsException(); } } VOID _UnrealizeObject(HGDIOBJ hgdiobj) { BOOL result = UnrealizeObject(hgdiobj); if (result == FALSE) { throw new WindowsException(); } }
D
// Written in the D programming language. module windows.pointerinput; public import windows.core; public import windows.displaydevices : POINT, RECT; public import windows.menusandresources : POINTER_INPUT_TYPE; public import windows.systemservices : BOOL, HANDLE; public import windows.windowsandmessaging : HWND; extern(Windows) @nogc nothrow: // Enums ///Identifies a change in the state of a button associated with a pointer. alias POINTER_BUTTON_CHANGE_TYPE = int; enum : int { ///No change in button state. POINTER_CHANGE_NONE = 0x00000000, ///The first button (see POINTER_FLAG_FIRSTBUTTON) transitioned to a pressed state. POINTER_CHANGE_FIRSTBUTTON_DOWN = 0x00000001, ///The first button (see POINTER_FLAG_FIRSTBUTTON) transitioned to a released state. POINTER_CHANGE_FIRSTBUTTON_UP = 0x00000002, ///The second button (see POINTER_FLAG_SECONDBUTTON) transitioned to a pressed state. POINTER_CHANGE_SECONDBUTTON_DOWN = 0x00000003, ///The second button (see POINTER_FLAG_SECONDBUTTON) transitioned to a released state. POINTER_CHANGE_SECONDBUTTON_UP = 0x00000004, ///The third button (see POINTER_FLAG_THIRDBUTTON) transitioned to a pressed state. POINTER_CHANGE_THIRDBUTTON_DOWN = 0x00000005, ///The third button (see POINTER_FLAG_THIRDBUTTON) transitioned to a released state. POINTER_CHANGE_THIRDBUTTON_UP = 0x00000006, ///The fourth button (see POINTER_FLAG_FOURTHBUTTON) transitioned to a pressed state. POINTER_CHANGE_FOURTHBUTTON_DOWN = 0x00000007, ///The fourth button (see POINTER_FLAG_FOURTHBUTTON) transitioned to a released state. POINTER_CHANGE_FOURTHBUTTON_UP = 0x00000008, ///The fifth button (see POINTER_FLAG_FIFTHBUTTON) transitioned to a pressed state. POINTER_CHANGE_FIFTHBUTTON_DOWN = 0x00000009, ///The fifth button (see POINTER_FLAG_FIFTHBUTTON) transitioned to a released state. POINTER_CHANGE_FIFTHBUTTON_UP = 0x0000000a, } // Structs ///Contains basic pointer information common to all pointer types. Applications can retrieve this information using the ///GetPointerInfo, GetPointerFrameInfo, GetPointerInfoHistory and GetPointerFrameInfoHistory functions. struct POINTER_INFO { ///Type: <b>POINTER_INPUT_TYPE</b> A value from the POINTER_INPUT_TYPE enumeration that specifies the pointer type. POINTER_INPUT_TYPE pointerType; ///Type: <b>UINT32</b> An identifier that uniquely identifies a pointer during its lifetime. A pointer comes into ///existence when it is first detected and ends its existence when it goes out of detection range. Note that if a ///physical entity (finger or pen) goes out of detection range and then returns to be detected again, it is treated ///as a new pointer and may be assigned a new pointer identifier. uint pointerId; ///Type: <b>UINT32</b> An identifier common to multiple pointers for which the source device reported an update in a ///single input frame. For example, a parallel-mode multi-touch digitizer may report the positions of multiple touch ///contacts in a single update to the system. Note that frame identifier is assigned as input is reported to the ///system for all pointers across all devices. Therefore, this field may not contain strictly sequential values in a ///single series of messages that a window receives. However, this field will contain the same numerical value for ///all input updates that were reported in the same input frame by a single device. uint frameId; ///Type: <b>POINTER_FLAGS</b> May be any reasonable combination of flags from the Pointer Flags constants. uint pointerFlags; ///Type: <b>HANDLE</b> Handle to the source device that can be used in calls to the raw input device API and the ///digitizer device API. HANDLE sourceDevice; ///Type: <b>HWND</b> Window to which this message was targeted. If the pointer is captured, either implicitly by ///virtue of having made contact over this window or explicitly using the pointer capture API, this is the capture ///window. If the pointer is uncaptured, this is the window over which the pointer was when this message was ///generated. HWND hwndTarget; ///Type: <b>POINT</b> The predicted screen coordinates of the pointer, in pixels. The predicted value is based on ///the pointer position reported by the digitizer and the motion of the pointer. This correction can compensate for ///visual lag due to inherent delays in sensing and processing the pointer location on the digitizer. This is ///applicable to pointers of type PT_TOUCH. For other pointer types, the predicted value will be the same as the ///non-predicted value (see <b>ptPixelLocationRaw</b>). POINT ptPixelLocation; ///Type: <b>POINT</b> The predicted screen coordinates of the pointer, in HIMETRIC units. The predicted value is ///based on the pointer position reported by the digitizer and the motion of the pointer. This correction can ///compensate for visual lag due to inherent delays in sensing and processing the pointer location on the digitizer. ///This is applicable to pointers of type PT_TOUCH. For other pointer types, the predicted value will be the same as ///the non-predicted value (see <b>ptHimetricLocationRaw</b>). POINT ptHimetricLocation; ///Type: <b>POINT</b> The screen coordinates of the pointer, in pixels. For adjusted screen coordinates, see ///<b>ptPixelLocation</b>. POINT ptPixelLocationRaw; ///Type: <b>POINT</b> The screen coordinates of the pointer, in HIMETRIC units. For adjusted screen coordinates, see ///<b>ptHimetricLocation</b>. POINT ptHimetricLocationRaw; ///Type: <b>DWORD</b> 0 or the time stamp of the message, based on the system tick count when the message was ///received. The application can specify the input time stamp in either <b>dwTime</b> or <b>PerformanceCount</b>. ///The value cannot be more recent than the current tick count or <b>QueryPerformanceCount (QPC)</b> value of the ///injection thread. Once a frame is injected with a time stamp, all subsequent frames must include a timestamp ///until all contacts in the frame go to an UP state. The custom timestamp value must also be provided for the first ///element in the contacts array. The time stamp values after the first element are ignored. The custom timestamp ///value must increment in every injection frame. When <b>PerformanceCount</b> is specified, the time stamp will be ///converted to the current time in .1 millisecond resolution upon actual injection. If a custom ///<b>PerformanceCount</b> resulted in the same .1 millisecond window from the previous injection, ///<b>ERROR_NOT_READY</b> is returned and injection will not occur. While injection will not be invalidated ///immediately by the error, the next successful injection must have a <b>PerformanceCount</b> value that is at ///least 0.1 millisecond from the previously successful injection. This is also true if <b>dwTime</b> is used. If ///both <b>dwTime</b> and <b>PerformanceCount</b> are specified in InjectTouchInput, ERROR_INVALID_PARAMETER is ///returned. InjectTouchInput cannot switch between <b>dwTime</b> and <b>PerformanceCount</b> once injection has ///started. If neither <b>dwTime</b> and <b>PerformanceCount</b> are specified, InjectTouchInput allocates the ///timestamp based on the timing of the call. If <b>InjectTouchInput</b> calls are repeatedly less than 0.1 ///millisecond apart, ERROR_NOT_READY might be returned. The error will not invalidate the input immediately, but ///the injection application needs to retry the same frame again for injection to succeed. uint dwTime; ///Type: <b>UINT32</b> Count of inputs that were coalesced into this message. This count matches the total count of ///entries that can be returned by a call to GetPointerInfoHistory. If no coalescing occurred, this count is 1 for ///the single input represented by the message. uint historyCount; int InputData; ///Type: <b>DWORD</b> Indicates which keyboard modifier keys were pressed at the time the input was generated. May ///be zero or a combination of the following values. POINTER_MOD_SHIFT – A SHIFT key was pressed. POINTER_MOD_CTRL ///– A CTRL key was pressed. uint dwKeyStates; ///Type: <b>UINT64</b> The value of the high-resolution performance counter when the pointer message was received ///(high-precision, 64 bit alternative to <b>dwTime</b>). The value can be calibrated when the touch digitizer ///hardware supports the scan timestamp information in its input report. ulong PerformanceCount; ///Type: <b>POINTER_BUTTON_CHANGE_TYPE</b> A value from the POINTER_BUTTON_CHANGE_TYPE enumeration that specifies ///the change in button state between this input and the previous input. POINTER_BUTTON_CHANGE_TYPE ButtonChangeType; } ///Defines basic touch information common to all pointer types. struct POINTER_TOUCH_INFO { ///Type: <b>POINTER_INFO</b> An embedded POINTER_INFO header structure. POINTER_INFO pointerInfo; ///Type: <b>Touch Flags</b> Currently none. uint touchFlags; ///Type: <b>Touch Mask</b> Indicates which of the optional fields contain valid values. The member can be zero or ///any combination of the values from the Touch Mask constants. uint touchMask; ///Type: <b>RECT</b> The predicted screen coordinates of the contact area, in pixels. By default, if the device does ///not report a contact area, this field defaults to a 0-by-0 rectangle centered around the pointer location. The ///predicted value is based on the pointer position reported by the digitizer and the motion of the pointer. This ///correction can compensate for visual lag due to inherent delays in sensing and processing the pointer location on ///the digitizer. This is applicable to pointers of type PT_TOUCH. RECT rcContact; ///Type: <b>RECT</b> The raw screen coordinates of the contact area, in pixels. For adjusted screen coordinates, see ///<b>rcContact</b>. RECT rcContactRaw; ///Type: <b>UINT32</b> A pointer orientation, with a value between 0 and 359, where 0 indicates a touch pointer ///aligned with the x-axis and pointing from left to right; increasing values indicate degrees of rotation in the ///clockwise direction. This field defaults to 0 if the device does not report orientation. uint orientation; ///Type: <b>UINT32</b> A pen pressure normalized to a range between 0 and 1024. The default is 0 if the device does ///not report pressure. uint pressure; } ///Defines basic pen information common to all pointer types. struct POINTER_PEN_INFO { ///Type: <b>POINTER_INFO</b> An embedded POINTER_INFO structure. POINTER_INFO pointerInfo; ///Type: <b>PEN_FLAGS</b> The pen flag. This member can be zero or any reasonable combination of the values from the ///Pen Flags constants. uint penFlags; ///Type: <b>PEN_MASK</b> The pen mask. This member can be zero or any reasonable combination of the values from the ///Pen Mask constants. uint penMask; ///Type: <b>UINT32</b> A pen pressure normalized to a range between 0 and 1024. The default is 0 if the device does ///not report pressure. uint pressure; ///Type: <b>UINT32</b> The clockwise rotation, or twist, of the pointer normalized in a range of 0 to 359. The ///default is 0. uint rotation; ///Type: <b>INT32</b> The angle of tilt of the pointer along the x-axis in a range of -90 to +90, with a positive ///value indicating a tilt to the right. The default is 0. int tiltX; ///Type: <b>INT32</b> The angle of tilt of the pointer along the y-axis in a range of -90 to +90, with a positive ///value indicating a tilt toward the user. The default is 0. int tiltY; } ///Defines the matrix that represents a transform on a message consumer. This matrix can be used to transform pointer ///input data from client coordinates to screen coordinates, while the inverse can be used to transform pointer input ///data from screen coordinates to client coordinates. struct INPUT_TRANSFORM { union { struct { float _11; float _12; float _13; float _14; float _21; float _22; float _23; float _24; float _31; float _32; float _33; float _34; float _41; float _42; float _43; float _44; } float[16] m; } } // Functions ///Gets pointer data before it has gone through touch prediction processing. ///Returns: /// The screen location of the pointer input. /// @DllImport("USER32") uint GetUnpredictedMessagePos(); ///Retrieves the pointer type for a specified pointer. ///Params: /// pointerId = An identifier of the pointer for which to retrieve pointer type. /// pointerType = An address of a POINTER_INPUT_TYPE type to receive a pointer input type. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL GetPointerType(uint pointerId, uint* pointerType); ///Retrieves the cursor identifier associated with the specified pointer. ///Params: /// pointerId = An identifier of the pointer for which to retrieve the cursor identifier. /// cursorId = An address of a <b>UINT32</b> to receive the tablet cursor identifier, if any, associated with the specified /// pointer. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL GetPointerCursorId(uint pointerId, uint* cursorId); ///Gets the information for the specified pointer associated with the current message. <div class="alert"><b>Note</b> ///Use GetPointerType if you don't need the additional information exposed by <b>GetPointerInfo</b>.</div><div> </div> ///Params: /// pointerId = The pointer identifier. /// pointerInfo = Address of a POINTER_INFO structure that receives the pointer information. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL GetPointerInfo(uint pointerId, POINTER_INFO* pointerInfo); ///Gets the information associated with the individual inputs, if any, that were coalesced into the current message for ///the specified pointer. The most recent input is included in the returned history and is the same as the most recent ///input returned by the GetPointerInfo function. ///Params: /// pointerId = An identifier of the pointer for which to retrieve information. /// entriesCount = A pointer to a variable that specifies the count of structures in the buffer to which pointerInfo points. If /// <b>GetPointerInfoHistory</b> succceeds, <i>entriesCount</i> is updated with the total count of structures /// available. The total count of structures available is the same as the <b>historyCount</b> field of the /// POINTER_INFO structure returned by a call to GetPointerInfo. /// pointerInfo = Address of an array of POINTER_INFO structures to receive the pointer information. This parameter can be NULL if /// <i>*entriesCount</i> is zero. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL GetPointerInfoHistory(uint pointerId, uint* entriesCount, POINTER_INFO* pointerInfo); ///Gets the entire frame of information for the specified pointers associated with the current message. ///Params: /// pointerId = An identifier of the pointer for which to retrieve frame information. /// pointerCount = A pointer to a variable that specifies the count of structures in the buffer to which pointerInfo points. If /// <b>GetPointerFrameInfo</b> succeeds, <i>pointerCount</i> is updated with the total count of pointers in the /// frame. /// pointerInfo = Address of an array of POINTER_INFO structures to receive the pointer information. This parameter can be /// <b>NULL</b> if <i>*pointerCount</i> is zero. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL GetPointerFrameInfo(uint pointerId, uint* pointerCount, POINTER_INFO* pointerInfo); ///Gets the entire frame of information (including coalesced input frames) for the specified pointers associated with ///the current message. ///Params: /// pointerId = An identifier of the pointer for which to retrieve frame information. /// entriesCount = A pointer to a variable that specifies the count of rows in the two-dimensional array to which pointerInfo /// points. If <b>GetPointerFrameInfoHistory</b> succeeds, <i>entriesCount</i> is updated with the total count of /// frames available in the history. /// pointerCount = A pointer to a variable that specifies the count of columns in the two-dimensional array to which pointerInfo /// points. If <b>GetPointerFrameInfoHistory</b> succeeds, <i>pointerCount</i> is updated with the total count of /// pointers in each frame. /// pointerInfo = Address of a two-dimensional array of POINTER_INFO structures to receive the pointer information. This parameter /// can be NULL if <i>*entriesCount</i> and <i>*pointerCount</i> are both zero. This array is interpreted as /// <code>POINTER_INFO[*entriesCount][*pointerCount]</code>. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL GetPointerFrameInfoHistory(uint pointerId, uint* entriesCount, uint* pointerCount, POINTER_INFO* pointerInfo); ///Gets the touch-based information for the specified pointer (of type PT_TOUCH) associated with the current message. ///Params: /// pointerId = An identifier of the pointer for which to retrieve information. /// touchInfo = Address of a POINTER_TOUCH_INFO structure to receive the touch-specific pointer information. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL GetPointerTouchInfo(uint pointerId, POINTER_TOUCH_INFO* touchInfo); ///Gets the touch-based information associated with the individual inputs, if any, that were coalesced into the current ///message for the specified pointer (of type PT_TOUCH). The most recent input is included in the returned history and ///is the same as the most recent input returned by the GetPointerTouchInfo function. ///Params: /// pointerId = An identifier of the pointer for which to retrieve information. /// entriesCount = A pointer to a variable that specifies the count of structures in the buffer to which touchInfo points. If /// <b>GetPointerTouchInfoHistory</b> succeeds, <i>entriesCount</i> is updated with the total count of structures /// available. The total count of structures available is the same as the <i>historyCount</i> field in the /// POINTER_INFO structure returned by a call to GetPointerInfo or GetPointerTouchInfo. /// touchInfo = Address of an array of POINTER_TOUCH_INFO structures to receive the pointer information. This parameter can be /// NULL if *entriesCount is zero. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL GetPointerTouchInfoHistory(uint pointerId, uint* entriesCount, POINTER_TOUCH_INFO* touchInfo); ///Gets the entire frame of touch-based information for the specified pointers (of type PT_TOUCH) associated with the ///current message. ///Params: /// pointerId = An identifier of the pointer for which to retrieve frame information. /// pointerCount = A pointer to a variable that specifies the count of structures in the buffer to which touchInfo points. If /// <b>GetPointerFrameTouchInfo</b> succeeds, <i>pointerCount</i> is updated with the total count of pointers in the /// frame. /// touchInfo = Address of an array of POINTER_TOUCH_INFO structures to receive the pointer information. This parameter can be /// NULL if <i>*pointerCount</i> is zero. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL GetPointerFrameTouchInfo(uint pointerId, uint* pointerCount, POINTER_TOUCH_INFO* touchInfo); ///Gets the entire frame of touch-based information (including coalesced input frames) for the specified pointers (of ///type PT_TOUCH) associated with the current message. ///Params: /// pointerId = An identifier of the pointer for which to retrieve frame information. /// entriesCount = A pointer to variable that specifies the count of rows in the two-dimensional array to which touchInfo points. If /// <b>GetPointerFrameTouchInfoHistory</b> succeeds, <i>entriesCount</i> is updated with the total count of frames /// available in the history. /// pointerCount = A pointer to a variable that specifies the count of columns in the two-dimensional array to which touchInfo /// points. If <b>GetPointerFrameTouchInfoHistory</b> succeeds, <i>pointerCount</i> is updated with the total count /// of pointers in each frame. /// touchInfo = Address of a two-dimensional array of POINTER_TOUCH_INFO structures to receive the pointer information. This /// parameter can be NULL if <i>*entriesCount</i> and <i>*pointerCount</i> are both zero. This array is interpreted /// as <code>POINTER_TOUCH_INFO[*entriesCount][*pointerCount]</code>. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL GetPointerFrameTouchInfoHistory(uint pointerId, uint* entriesCount, uint* pointerCount, POINTER_TOUCH_INFO* touchInfo); ///Gets the pen-based information for the specified pointer (of type PT_PEN) associated with the current message. ///Params: /// pointerId = An identifier of the pointer for which to retrieve information. /// penInfo = Address of a POINTER_PEN_INFO structure to receive the pen-specific pointer information. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL GetPointerPenInfo(uint pointerId, POINTER_PEN_INFO* penInfo); ///Gets the pen-based information associated with the individual inputs, if any, that were coalesced into the current ///message for the specified pointer (of type PT_PEN). The most recent input is included in the returned history and is ///the same as the most recent input returned by the GetPointerPenInfo function. ///Params: /// pointerId = An identifier of the pointer for which to retrieve information. /// entriesCount = A pointer to a variable that specifies the count of structures in the buffer to which <i>penInfo</i> points. If /// <b>GetPointerPenInfoHistory</b> succeeds, <i>entriesCount</i> is updated with the total count of structures /// available. The total count of structures available is the same as the <i>historyCount</i> field in the /// POINTER_PEN_INFO structure returned by a call to GetPointerPenInfo. /// penInfo = Address of an array of POINTER_PEN_INFO structures to receive the pointer information. This parameter can be NULL /// if <i>*entriesCount</i> is zero. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL GetPointerPenInfoHistory(uint pointerId, uint* entriesCount, POINTER_PEN_INFO* penInfo); ///Gets the entire frame of pen-based information for the specified pointers (of type PT_PEN) associated with the ///current message. ///Params: /// pointerId = An identifier of the pointer for which to retrieve frame information. /// pointerCount = A pointer to a variable that specifies the count of structures in the buffer to which penInfo points. If /// <b>GetPointerFramePenInfo</b> succeeds, <i>pointerCount</i> is updated with the total count of pointers in the /// frame. /// penInfo = Address of an array of POINTER_PEN_INFO structures to receive the pointer information. This parameter can be NULL /// if <i>*pointerCount</i> is zero. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL GetPointerFramePenInfo(uint pointerId, uint* pointerCount, POINTER_PEN_INFO* penInfo); ///Gets the entire frame of pen-based information (including coalesced input frames) for the specified pointers (of type ///PT_PEN) associated with the current message. ///Params: /// pointerId = The identifier of the pointer for which to retrieve frame information. /// entriesCount = A pointer to a variable that specifies the count of rows in the two-dimensional array to which penInfo points. If /// <b>GetPointerFramePenInfoHistory</b> succeeds, <i>entriesCount</i> is updated with the total count of frames /// available in the history. /// pointerCount = A pointer to a variaable that specifies the count of columns in the two-dimensional array to which penInfo /// points. If <b>GetPointerFramePenInfoHistory</b> succeeds, <i>pointerCount</i> is updated with the total count of /// pointers in each frame. /// penInfo = Address of a two-dimensional array of POINTER_PEN_INFO structures to receive the pointer information. This /// parameter can be NULL if *entriesCount and *pointerCount are both zero. This array is interpreted as /// POINTER_PEN_INFO[*entriesCount][*pointerCount]. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL GetPointerFramePenInfoHistory(uint pointerId, uint* entriesCount, uint* pointerCount, POINTER_PEN_INFO* penInfo); ///Determines which pointer input frame generated the most recently retrieved message for the specified pointer and ///discards any queued (unretrieved) pointer input messages generated from the same pointer input frame. If an ///application has retrieved information for an entire frame using the GetPointerFrameInfo function, the ///GetPointerFrameInfoHistory function or one of their type-specific variants, it can use this function to avoid ///retrieving and discarding remaining messages from that frame one by one. ///Params: /// pointerId = Identifier of the pointer. Pending messages will be skipped for the frame that includes the most recently /// retrieved input for this pointer. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL SkipPointerFrameMessages(uint pointerId); ///Enables the mouse to act as a pointer input device and send WM_POINTER messages. ///Params: /// fEnable = <b>TRUE</b> to turn on mouse input support in WM_POINTER. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL EnableMouseInPointer(BOOL fEnable); ///Indicates whether EnableMouseInPointer is set for the mouse to act as a pointer input device and send WM_POINTER ///messages. ///Returns: /// If EnableMouseInPointer is set, the return value is nonzero. If EnableMouseInPointer is not set, the return value /// is zero. /// @DllImport("USER32") BOOL IsMouseInPointerEnabled(); ///Gets one or more transforms for the pointer information coordinates associated with the current message. ///Params: /// pointerId = An identifier of the pointer for which to retrieve information. /// historyCount = The number of INPUT_TRANSFORM structures that <i>inputTransform</i> can point to. This value must be no less than /// 1 and no greater than the value specified in <b>historyCount</b> of the POINTER_INFO structure returned by /// GetPointerInfo, GetPointerTouchInfo, or GetPointerPenInfo (for a single input transform) or /// GetPointerInfoHistory, GetPointerTouchInfoHistory, or GetPointerPenInfoHistory (for an array of input /// transforms). If <b>GetPointerInputTransform</b> succeeds, <i>inputTransform</i> is updated with the total count /// of structures available. The total count of structures available is the same as the <b>historyCount</b> field of /// the POINTER_INFO structure. /// inputTransform = Address of an array of INPUT_TRANSFORM structures to receive the transform information. This parameter cannot be /// NULL. ///Returns: /// If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get /// extended error information, call GetLastError. /// @DllImport("USER32") BOOL GetPointerInputTransform(uint pointerId, uint historyCount, INPUT_TRANSFORM* inputTransform);
D
module android.java.android.icu.text.MessagePattern_ArgType; public import android.java.android.icu.text.MessagePattern_ArgType_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!MessagePattern_ArgType; import import0 = android.java.android.icu.text.MessagePattern_ArgType; import import2 = android.java.java.lang.Class;
D
/* * This file has been automatically generated by Soupply and released under the MIT license. */ module soupply.bedrock.protocol; public import soupply.bedrock282.protocol;
D
an epidemic that is geographically widespread epidemic over a wide geographical area existing everywhere
D
// ********* // SPL_Oswojenie // ********* const int SPL_Cost_Oswojenie = 50; const int SPL_Damage_Oswojenie = 0; var int OswojenieUsed; INSTANCE Spell_Oswojenie(C_Spell_Proto) { time_per_mana = 0; spelltype = SPELL_NEUTRAL; damage_per_level = SPL_Damage_Oswojenie; damageType = DAM_MAGIC; // war vorher DAM_FIRE }; func int Spell_Logic_Oswojenie(var int manaInvested) { if ((Npc_GetActiveSpellIsScroll(self) && (self.attribute[ATR_MANA] >= SPL_Cost_Scroll))) || (self.attribute[ATR_MANA] >= SPL_Cost_Oswojenie) { Npc_ClearAIQueue (other); B_ClearPerceptions (other); AI_StartState (other, ZS_Oswojenie, 0, ""); //B_SetAttitude (other, ATT_FRIENDLY); //Npc_GetAttitude(other,self) = ATT_FRIENDLY; //Npc_GetPermAttitude(other,self) = ATT_FRIENDLY; return SPL_SENDCAST; } else //nicht genug Mana { return SPL_SENDSTOP; }; }; func void Spell_Cast_Oswojenie() { if (Npc_IsPlayer(self) && !OswojenieUsed) { OswojenieUsed = TRUE; WillUzyteZaklecia += 1; }; if (Npc_GetActiveSpellIsScroll(self)) { self.attribute[ATR_MANA] = self.attribute[ATR_MANA] - SPL_Cost_Scroll; } else { self.attribute[ATR_MANA] = self.attribute[ATR_MANA] - SPL_Cost_Oswojenie; }; self.aivar[AIV_SelectSpell] += 1; };
D
import std.stdio; void main(){ immutable int x = 3; }
D
/* Generate a random permutation of the elements of a list. Example: randomPermute(['a', 'b', 'c', 'd', 'e', 'f']) --> ['b', 'a', 'd', 'c', 'e', 'f'] */ import std.stdio; import std.random : randomShuffle; dchar[] randomPermute(dchar[] arr) { return arr.randomShuffle; } void main() { dchar[] darr = ['a', 'b', 'c', 'd', 'e', 'f']; writeln(randomPermute(darr)); } unittest { dchar[] darr = ['a', 'b', 'c', 'd', 'e', 'f']; assert(randomPermute(darr).length == darr.length); // lazy test }
D
module d.ir.type; import d.ir.error; import d.ir.symbol; public import d.common.builtintype; public import d.common.qualifier; import d.context.context; import d.common.type; // Conflict with Interface in object.di alias Interface = d.ir.symbol.Interface; enum TypeKind : ubyte { Builtin, // Symbols Alias, Struct, Class, Interface, Union, Enum, // Context Context, // Type constructors Pointer, Slice, Array, // Sequence Sequence, // Complex types Function, // Template type Template, // Error Error, } struct Type { private: mixin TypeMixin!(TypeKind, Payload); this(Desc d, inout Payload p = Payload.init) inout { desc = d; payload = p; } import util.fastcast; this(Desc d, inout Symbol s) inout { this(d, fastCast!(inout Payload)(s)); } this(Desc d, inout Type* t) inout { this(d, fastCast!(inout Payload)(t)); } this(Desc d, inout CompileError e) inout { this(d, fastCast!(inout Payload)(e)); } Type getConstructedType(this T)(TypeKind k, TypeQualifier q) { return qualify(q).getConstructedMixin(k, q); } auto acceptImpl(T)(T t) { final switch(kind) with(TypeKind) { case Builtin : return t.visit(builtin); case Struct : return t.visit(dstruct); case Class : return t.visit(dclass); case Enum : return t.visit(denum); case Alias : // XXX: consider how to propagate the qualifier properly. return t.visit(dalias); case Interface : return t.visit(dinterface); case Union : return t.visit(dunion); case Context : return t.visit(context); case Pointer : return t.visitPointerOf(element); case Slice : return t.visitSliceOf(element); case Array : return t.visitArrayOf(size, element); case Sequence : return t.visit(sequence); case Function : return t.visit(asFunctionType()); case Template : return t.visit(dtemplate); case Error : return t.visit(error); } } public: auto accept(T)(ref T t) if(is(T == struct)) { return acceptImpl(&t); } auto accept(T)(T t) if(is(T == class)) { return acceptImpl(t); } Type qualify(TypeQualifier q) { auto nq = q.add(qualifier); if (nq == qualifier) { return Type(desc, payload); } switch(kind) with(TypeKind) { case Builtin, Struct, Class, Enum, Alias : case Interface, Union, Context, Function : auto d = desc; d.qualifier = nq; return Type(d, payload); case Pointer : return element.qualify(nq).getPointer(nq); case Slice : return element.qualify(nq).getSlice(nq); case Array : return element.qualify(nq).getArray(size, nq); default : assert(0, "Not implemented"); } } Type unqual() { auto d = desc; d.qualifier = TypeQualifier.Mutable; return Type(d, payload); } @property BuiltinType builtin() inout in { assert(kind == TypeKind.Builtin, "Not a builtin type."); } body { return cast(BuiltinType) desc.data; } bool isAggregate() const { return (kind >= TypeKind.Struct) && (kind <= TypeKind.Union); } @property auto aggregate() inout in { assert(isAggregate, "Not an aggregate type."); } body { return payload.agg; } @property auto dstruct() inout in { assert(kind == TypeKind.Struct); } body { return payload.dstruct; } @property auto dclass() inout in { assert(kind == TypeKind.Class); } body { return payload.dclass; } @property auto denum() inout in { assert(kind == TypeKind.Enum); } body { return payload.denum; } @property auto dalias() inout in { assert(kind == TypeKind.Alias); } body { return payload.dalias; } auto getCanonical() { auto t = this; auto q = qualifier; while(t.kind == TypeKind.Alias) { // FIXME: Make sure alias is signed. t = t.dalias.type; q = q.add(t.qualifier); } return t.qualify(q); } auto getCanonicalAndPeelEnum() { auto t = this.getCanonical(); auto q = qualifier; while(t.kind == TypeKind.Enum) { // FIXME: Make sure enum is signed. t = t.denum.type.getCanonical(); q = q.add(t.qualifier); } return t.qualify(q); } @property auto dinterface() inout in { assert(kind == TypeKind.Interface); } body { return payload.dinterface; } @property auto dunion() inout in { assert(kind == TypeKind.Union); } body { return payload.dunion; } @property auto context() inout in { assert(kind == TypeKind.Context); } body { return payload.context; } @property auto dtemplate() inout in { assert(kind == TypeKind.Template); } body { return payload.dtemplate; } @property auto error() inout in { assert(kind == TypeKind.Error); } body { return payload.error; } Type getPointer(TypeQualifier q = TypeQualifier.Mutable) { return getConstructedType(TypeKind.Pointer, q); } Type getSlice(TypeQualifier q = TypeQualifier.Mutable) { return getConstructedType(TypeKind.Slice, q); } Type getArray(uint size, TypeQualifier q = TypeQualifier.Mutable) { auto t = qualify(q); // XXX: Consider caching in context. auto n = new Type(t.desc, t.payload); return Type(Desc(TypeKind.Array, q, size), n); } bool hasElement() const { return (kind >= TypeKind.Pointer) && (kind <= TypeKind.Array); } @property auto element() inout in { assert(hasElement, "element called on a type with no element."); } body { if (kind == TypeKind.Array) { return *payload.next; } return getElementMixin(); } @property uint size() const in { assert(kind == TypeKind.Array, "Only array have size."); } body { assert(desc.data <= uint.max); return cast(uint) desc.data; } @property auto sequence() inout in { assert(kind == TypeKind.Sequence, "Not a sequence type."); } body { return payload.next[0 .. desc.data]; } bool hasPointerABI() const { switch (kind) with(TypeKind) { case Class, Pointer : return true; case Alias : return dalias.type.hasPointerABI(); case Function : return asFunctionType().contexts.length == 0; default : return false; } } bool hasIndirection() { auto t = getCanonicalAndPeelEnum(); final switch(t.kind) with(TypeKind) { case Builtin: // Is this, really ? return t.builtin == BuiltinType.Null; case Alias, Enum, Template, Error: assert(0); case Pointer, Slice, Class, Interface, Context: return true; case Array: return element.hasIndirection; case Struct: return t.dstruct.hasIndirection; case Union: return t.dunion.hasIndirection; case Function: import std.algorithm; return asFunctionType() .contexts .any!(t => t.isRef || t.getType().hasIndirection); case Sequence: import std.algorithm; return sequence.any!(t => t.hasIndirection); } } string toString(const Context c, TypeQualifier q = TypeQualifier.Mutable) const { auto s = toUnqualString(c); if (q == qualifier) { return s; } final switch(qualifier) with(TypeQualifier) { case Mutable: return s; case Inout: return "inout(" ~ s ~ ")"; case Const: return "const(" ~ s ~ ")"; case Shared: return "shared(" ~ s ~ ")"; case ConstShared: assert(0, "const shared isn't supported"); case Immutable: return "immutable(" ~ s ~ ")"; } } string toUnqualString(const Context c) const { final switch(kind) with(TypeKind) { case Builtin : import d.common.builtintype : toString; return toString(builtin); case Struct : return dstruct.name.toString(c); case Class : return dclass.name.toString(c); case Enum : return denum.name.toString(c); case Alias : return dalias.name.toString(c); case Interface : return dinterface.name.toString(c); case Union : return dunion.name.toString(c); case Context : return "__ctx"; case Pointer : return element.toString(c, qualifier) ~ "*"; case Slice : return element.toString(c, qualifier) ~ "[]"; case Array : import std.conv; return element.toString(c, qualifier) ~ "[" ~ to!string(size) ~ "]"; case Sequence : import std.algorithm, std.range; // XXX: need to use this because of identifier hijacking in the import. return "(" ~ this.sequence.map!(e => e.toString(c, qualifier)).join(", ") ~ ")"; case Function : auto f = asFunctionType(); auto ret = f.returnType.toString(c); auto base = f.contexts.length ? " delegate(" : " function("; import std.algorithm, std.range; auto args = f.parameters.map!(p => p.toString(c)).join(", "); return ret ~ base ~ args ~ (f.isVariadic ? ", ...)" : ")"); case Template : return dtemplate.name.toString(c); case Error : return "__error__(" ~ error.toString(c) ~ ")"; } } static: Type get(BuiltinType bt, TypeQualifier q = TypeQualifier.Mutable) { Payload p; // Needed because of lolbug in inout return Type(Desc(TypeKind.Builtin, q, bt), p); } Type get(Struct s, TypeQualifier q = TypeQualifier.Mutable) { return Type(Desc(TypeKind.Struct, q), s); } Type get(Class c, TypeQualifier q = TypeQualifier.Mutable) { return Type(Desc(TypeKind.Class, q), c); } Type get(Enum e, TypeQualifier q = TypeQualifier.Mutable) { return Type(Desc(TypeKind.Enum, q), e); } Type get(TypeAlias a, TypeQualifier q = TypeQualifier.Mutable) { return Type(Desc(TypeKind.Alias, q), a); } Type get(Interface i, TypeQualifier q = TypeQualifier.Mutable) { return Type(Desc(TypeKind.Interface, q), i); } Type get(Union u, TypeQualifier q = TypeQualifier.Mutable) { return Type(Desc(TypeKind.Union, q), u); } Type get(Type[] elements, TypeQualifier q = TypeQualifier.Mutable) { return Type(Desc(TypeKind.Sequence, q, elements.length), elements.ptr); } Type get(TypeTemplateParameter p, TypeQualifier q = TypeQualifier.Mutable) { return Type(Desc(TypeKind.Template, q), p); } Type getContextType(Function f, TypeQualifier q = TypeQualifier.Mutable) { return Type(Desc(TypeKind.Context, q), f); } Type get(CompileError e, TypeQualifier q = TypeQualifier.Mutable) { return Type(Desc(TypeKind.Error, q), e); } } unittest { auto i = Type.get(BuiltinType.Int); auto pi = i.getPointer(); assert(i == pi.element); auto ci = i.qualify(TypeQualifier.Const); auto cpi = pi.qualify(TypeQualifier.Const); assert(ci == cpi.element); assert(i != cpi.element); } unittest { auto i = Type.get(BuiltinType.Int); auto t = i; foreach(_; 0 .. 64) { t = t.getPointer().getSlice(); } foreach(_; 0 .. 64) { assert(t.kind == TypeKind.Slice); t = t.element; assert(t.kind == TypeKind.Pointer); t = t.element; } assert(t == i); } unittest { auto i = Type.get(BuiltinType.Int); auto ai = i.getArray(42); assert(i == ai.element); assert(ai.size == 42); } unittest { auto i = Type.get(BuiltinType.Int); auto ci = Type.get(BuiltinType.Int, TypeQualifier.Const); auto cpi = i.getPointer(TypeQualifier.Const); assert(ci == cpi.element); auto csi = i.getSlice(TypeQualifier.Const); assert(ci == csi.element); auto cai = i.getArray(42, TypeQualifier.Const); assert(ci == cai.element); } unittest { import d.context.location, d.context.name, d.ir.symbol; auto m = new Module(Location.init, BuiltinName!"", null); auto c = new Class(Location.init, m, BuiltinName!"", []); auto tc = Type.get(c); assert(tc.isAggregate); assert(tc.aggregate is c); auto cc = Type.get(c, TypeQualifier.Const); auto csc = tc.getSlice(TypeQualifier.Const); assert(cc == csc.element); } unittest { import d.context.location, d.context.name, d.ir.symbol; auto i = Type.get(BuiltinType.Int); auto a1 = new TypeAlias(Location.init, BuiltinName!"", i); auto a1t = Type.get(a1); assert(a1t.getCanonical() == i); auto a2 = new TypeAlias(Location.init, BuiltinName!"", a1t); auto a2t = Type.get(a2, TypeQualifier.Immutable); assert(a2t.getCanonical() == i.qualify(TypeQualifier.Immutable)); auto a3 = new TypeAlias(Location.init, BuiltinName!"", a2t); auto a3t = Type.get(a3, TypeQualifier.Const); assert(a3t.getCanonical() == i.qualify(TypeQualifier.Immutable)); } unittest { import d.context.location, d.context.name, d.ir.symbol; auto f = Type.get(BuiltinType.Float, TypeQualifier.Const); auto a = new TypeAlias(Location.init, BuiltinName!"", f); auto m = new Module(Location.init, BuiltinName!"", null); auto e1 = new Enum(Location.init, m, BuiltinName!"", Type.get(a), []); auto e1t = Type.get(e1); assert(e1t.getCanonicalAndPeelEnum() == f); auto e2 = new Enum(Location.init, m, BuiltinName!"", e1t, []); auto e2t = Type.get(e2, TypeQualifier.Immutable); assert(e2t.getCanonicalAndPeelEnum() == f.qualify(TypeQualifier.Immutable)); auto e3 = new Enum(Location.init, m, BuiltinName!"", e2t, []); auto e3t = Type.get(e3, TypeQualifier.Const); assert(e3t.getCanonicalAndPeelEnum() == f.qualify(TypeQualifier.Immutable)); } alias ParamType = Type.ParamType; string toString(const ParamType t, const Context c) { string s; if (t.isRef && t.isFinal) { s = "final ref "; } else if (t.isRef) { s = "ref "; } else if (t.isFinal) { s = "final "; } return s ~ t.getType().toString(c); } inout(ParamType) getParamType(inout ParamType t, bool isRef, bool isFinal) { return t.getType().getParamType(isRef, isFinal); } unittest { auto pi = Type.get(BuiltinType.Int).getPointer(TypeQualifier.Const); auto p = pi.getParamType(true, false); assert(p.isRef == true); assert(p.isFinal == false); assert(p.qualifier == TypeQualifier.Const); auto pt = p.getType(); assert(pt == pi); } alias FunctionType = Type.FunctionType; unittest { auto r = Type.get(BuiltinType.Void).getPointer().getParamType(false, false); auto c = Type.get(BuiltinType.Null).getSlice().getParamType(false, true); auto p = Type.get(BuiltinType.Float).getSlice(TypeQualifier.Immutable).getParamType(true, true); auto f = FunctionType(Linkage.Java, r, [c, p], true); assert(f.linkage == Linkage.Java); assert(f.isVariadic == true); assert(f.isPure == false); assert(f.returnType == r); assert(f.parameters.length == 2); assert(f.parameters[0] == c); assert(f.parameters[1] == p); auto ft = f.getType(); assert(ft.asFunctionType() == f); auto d = f.getDelegate(); assert(d.linkage == Linkage.Java); assert(d.isVariadic == true); assert(d.isPure == false); assert(d.returnType == r); assert(d.contexts.length == 1); assert(d.contexts[0] == c); assert(d.parameters.length == 1); assert(d.parameters[0] == p); auto dt = d.getType(); assert(dt.asFunctionType() == d); assert(dt.asFunctionType() != f); auto d2 = d.getDelegate(2); assert(d2.contexts.length == 2); assert(d2.parameters.length == 0); assert(d2.getFunction() == f); } private: // XXX: we put it as a UFCS property to avoid forward reference. @property inout(ParamType)* params(inout Payload p) { import util.fastcast; return cast(inout ParamType*) p.next; } union Payload { Type* next; // Symbols TypeAlias dalias; Class dclass; Interface dinterface; Struct dstruct; Union dunion; Enum denum; // Context Function context; // For function and delegates. // ParamType* params; // For template instanciation. TypeTemplateParameter dtemplate; // For speculative compilation. CompileError error; // For simple construction Symbol sym; Aggregate agg; }
D
/* EXTRA_FILES: imports/a14235.d TEST_OUTPUT: --- fail_compilation/diag14235.d(12): Error: template identifier `Undefined` is not a member of module `imports.a14235` fail_compilation/diag14235.d(13): Error: template identifier `Something` is not a member of module `imports.a14235`, did you mean struct `SomeThing(T...)`? fail_compilation/diag14235.d(14): Error: `imports.a14235.SomeClass` is not a template, it is a class --- */ import imports.a14235; imports.a14235.Undefined!Object a; imports.a14235.Something!Object b; imports.a14235.SomeClass!Object c;
D
/// Super module for DGT-Core module dgt.core; import gfx.core.log : LogTag; enum dgtCoreLogMask = 0x0800_0000; package(dgt) immutable dgtCoreLog = LogTag("DGT-CORE", dgtCoreLogMask);
D
a woman who is engaged to be married
D
void main() { auto N = ri; ulong m; foreach(i; 0..N) { auto ip = readAs!(ulong[]), A = ip[0], B = ip[1]; m = max(m, A+B); } m.writeln; } // =================================== import std.stdio; import std.string; import std.functional; import std.algorithm; import std.range; import std.traits; import std.math; import std.container; import std.bigint; import std.numeric; import std.conv; import std.typecons; import std.uni; import std.ascii; import std.bitmanip; import core.bitop; T readAs(T)() if (isBasicType!T) { return readln.chomp.to!T; } T readAs(T)() if (isArray!T) { return readln.split.to!T; } T[][] readMatrix(T)(uint height, uint width) if (!isSomeChar!T) { auto res = new T[][](height, width); foreach(i; 0..height) { res[i] = readAs!(T[]); } return res; } T[][] readMatrix(T)(uint height, uint width) if (isSomeChar!T) { auto res = new T[][](height, width); foreach(i; 0..height) { auto s = rs; foreach(j; 0..width) res[i][j] = s[j].to!T; } return res; } int ri() { return readAs!int; } double rd() { return readAs!double; } string rs() { return readln.chomp; }
D
/* TEST_OUTPUT: --- fail_compilation/fail333.d(8): Error: forward reference to test --- */ void test(typeof(test) p) { }
D
/Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Queue.o : /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Deprecated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Cancelable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObserverType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Reactive.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/RecursiveLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Errors.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/AtomicInt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Event.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/First.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Linux.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxAtomic/RxAtomic-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxAtomic/RxAtomic/include/RxAtomic.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxAtomic.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Queue~partial.swiftmodule : /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Deprecated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Cancelable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObserverType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Reactive.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/RecursiveLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Errors.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/AtomicInt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Event.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/First.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Linux.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxAtomic/RxAtomic-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxAtomic/RxAtomic/include/RxAtomic.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxAtomic.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Queue~partial.swiftdoc : /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Deprecated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Cancelable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObserverType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Reactive.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/RecursiveLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Errors.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/AtomicInt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Event.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/First.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Linux.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxAtomic/RxAtomic-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxAtomic/RxAtomic/include/RxAtomic.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxAtomic.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/** * Copyright: Enalye * License: Zlib * Authors: Enalye */ module magia.core.vec3; import std.math; import magia.core.vec2; /// Represent a mathematical 3-dimensional vector. struct Vec3(T) { static assert(__traits(isArithmetic, T)); static if (__traits(isUnsigned, T)) { /// {1, 1, 1} vector. Its length is not one ! enum one = Vec3!T(1u, 1u, 1u); /// Null vector. enum zero = Vec3!T(0u, 0u, 0u); } else { static if (__traits(isFloating, T)) { /// {1, 1, 1} vector. Its length is not one ! enum one = Vec3!T(1f, 1f, 1f); /// {0.5, 0.5, 0.5} vector. Its length is not 0.5 ! enum half = Vec3!T(.5f, .5f, .5f); /// Null vector. enum zero = Vec3!T(0f, 0f, 0f); /// {-1, 0, 0} vector. enum left = Vec3!T(-1f, 0, 0); /// {1, 0, 0} vector. enum right = Vec3!T(1f, 0, 0); /// {0, -1, 0} vector. enum down = Vec3!T(0, -1f, 0); /// {0, 1, 0} vector. enum up = Vec3!T(0, 1f, 0); /// {0, 0, -1} vector. enum bottom = Vec3!T(0, 0, -1f); /// {0, 0, 1} vector. enum top = Vec3!T(0, 0, 1f); } else { /// {1, 1, 1} vector. Its length is not one ! enum one = Vec3!T(1, 1, 1); /// Null vector. enum zero = Vec3!T(0, 0, 0); /// {-1, 0, 0} vector. enum left = Vec3!T(-1, 0, 0); /// {1, 0, 0} vector. enum right = Vec3!T(1, 0, 0); /// {0, -1, 0} vector. enum down = Vec3!T(0, -1, 0); /// {0, 1, 0} vector. enum up = Vec3!T(0, 1, 0); /// {0, 0, -1} vector. enum bottom = Vec3!T(0, 0, -1); /// {0, 0, 1} vector. enum top = Vec3!T(0, 0, 1); } } /// x-axis coordinate. T x; /// y-axis coordinate. T y; /// z-axis coordinate. T z; @property { /// Return a 2-dimensional vector with {x, y} Vec2!T xy() const { return Vec2!T(x, y); } /// Ditto Vec2!T xy(Vec2!T v) { x = v.x; y = v.y; return v; } /// Return a 2-dimensional vector with {y, z} Vec2!T yz() const { return Vec2!T(y, z); } /// Ditto Vec2!T yz(Vec2!T v) { y = v.x; z = v.y; return v; } /// Return a 2-dimensional vector with {x, z} Vec2!T xz() const { return Vec2!T(x, z); } /// Ditto Vec2!T xz(Vec2!T v) { x = v.x; z = v.y; return v; } } /// Build a new 3-dimensional vector. this(T x_, T y_, T z_) { x = x_; y = y_; z = z_; } /// Ditto this(Vec2!T xy_, T z_) { x = xy_.x; y = xy_.y; z = z_; } /// Ditto this(T x_, Vec2!T yz_) { x = x_; y = yz_.x; z = yz_.y; } /// Changes {x, y, z} void set(T x_, T y_, T z_) { x = x_; y = y_; z = z_; } /// Ditto void set(Vec2!T xy_, T z_) { x = xy_.x; y = xy_.y; z = z_; } /// Ditto void set(T x_, Vec2!T yz_) { x = x_; y = yz_.x; z = yz_.y; } /// The distance between this point and the other one. T distance(Vec3!T v) const { static if (__traits(isUnsigned, T)) alias V = int; else alias V = T; V px = x - v.x, py = y - v.y, pz = z - v.z; static if (__traits(isFloating, T)) return std.math.sqrt(px * px + py * py + pz * pz); else return cast(T) std.math.sqrt(cast(float)(px * px + py * py + pz * pz)); } /// The distance between this point and the other one squared. /// Not square rooted, so no crash and more efficient. T distanceSquared(Vec3!T v) const { static if (__traits(isUnsigned, T)) alias V = int; else alias V = T; V px = x - v.x, py = y - v.y, pz = z - v.z; return px * px + py * py + pz * pz; } /// The smaller vector possible between the two. Vec3!T min(const Vec3!T v) const { return Vec3!T(x < v.x ? x : v.x, y < v.y ? y : v.y, z < v.z ? z : v.z); } /// The larger vector possible between the two. Vec3!T max(const Vec3!T v) const { return Vec3!T(x > v.x ? x : v.x, y > v.y ? y : v.y, z > v.z ? z : v.z); } /// Remove negative components. Vec3!T abs() const { static if (__traits(isFloating, T)) return Vec3!T(x < .0 ? -x : x, y < .0 ? -y : y, z < .0 ? -z : z); else static if (__traits(isUnsigned, T)) return Vec3!T(x < 0U ? -x : x, y < 0U ? -y : y, z < 0U ? -z : z); else return Vec3!T(x < 0 ? -x : x, y < 0 ? -y : y, z < 0 ? -z : z); } /// Truncate the values. Vec3!T floor() const { static if (__traits(isFloating, T)) return Vec3!T(std.math.floor(x), std.math.floor(y), std.math.floor(z)); else return this; } /// Round up the values. Vec3!T ceil() const { static if (__traits(isFloating, T)) return Vec3!T(std.math.ceil(x), std.math.ceil(y), std.math.ceil(z)); else return this; } /// Round the values to the nearest integer. Vec3!T round() const { static if (__traits(isFloating, T)) return Vec3!T(std.math.round(x), std.math.round(y), std.math.round(z)); else return this; } /// Adds x, y and z. T sum() const { return x + y + z; } /// The total length of this vector. T length() const { static if (__traits(isFloating, T)) return std.math.sqrt(x * x + y * y + z * z); else return cast(T) std.math.sqrt(cast(float)(x * x + y * y + z * z)); } /// The squared length of this vector. /// Can be null, and more efficiant than length. T lengthSquared() const { return x * x + y * y + z * z; } /// Transform this vector in a unit vector. void normalize() { if (this == Vec3!T.zero) return; static if (__traits(isFloating, T)) const T len = std.math.sqrt(x * x + y * y + z * z); else const T len = cast(T) std.math.sqrt(cast(float)(x * x + y * y + z * z)); x /= len; y /= len; z /= len; } /// Returns a unit vector from this one without modifying this one. Vec3!T normalized() const { if (this == Vec3!T.zero) return this; static if (__traits(isFloating, T)) const T len = std.math.sqrt(x * x + y * y + z * z); else const T len = cast(T) std.math.sqrt(cast(float)(x * x + y * y + z * z)); return Vec3!T(x / len, y / len, z / len); } /// Bounds the vector between those two. Vec3!T clamp(const Vec3!T min, const Vec3!T max) const { Vec3!T v = this; if (v.x < min.x) v.x = min.x; else if (v.x > max.x) v.x = max.x; if (v.y < min.y) v.y = min.y; else if (v.y > max.y) v.y = max.y; if (v.z < min.z) v.z = min.z; else if (v.z > max.z) v.z = max.z; return v; } /// Is this vector between those boundaries ? bool isBetween(const Vec3!T min, const Vec3!T max) const { if (x < min.x) return false; else if (x > max.x) return false; if (y < min.y) return false; else if (y > max.y) return false; if (z < min.z) return false; else if (z > max.z) return false; return true; } static if (__traits(isFloating, T)) { /// Returns an interpolated vector from this vector to the end vector by a factor. \ /// Does not modify this vector. Vec3!T lerp(Vec3!T end, float t) const { return (this * (1.0 - t)) + (end * t); } } /// Operators. bool opEquals(const Vec3!T v) const { return (x == v.x) && (y == v.y) && (z == v.z); } /// Ditto Vec3!T opUnary(string op)() const { return mixin("Vec3!T(" ~ op ~ " x, " ~ op ~ " y, " ~ op ~ " z)"); } /// Ditto Vec3!T opBinary(string op)(const Vec3!T v) const { return mixin("Vec3!T(x " ~ op ~ " v.x, y " ~ op ~ " v.y, z " ~ op ~ " v.z)"); } /// Ditto Vec3!T opBinary(string op)(T s) const { return mixin("Vec3!T(x " ~ op ~ " s, y " ~ op ~ " s, z " ~ op ~ " s)"); } /// Ditto Vec3!T opBinaryRight(string op)(T s) const { return mixin("Vec3!T(s " ~ op ~ " x, s " ~ op ~ " y, s " ~ op ~ " z)"); } /// Ditto Vec3!T opOpAssign(string op)(Vec3!T v) { mixin("x = x" ~ op ~ "v.x;y = y" ~ op ~ "v.y;z = z" ~ op ~ "v.z;"); return this; } /// Ditto Vec3!T opOpAssign(string op)(T s) { mixin("x = x" ~ op ~ "s;y = y" ~ op ~ "s;z = z" ~ op ~ "s;"); return this; } /// Ditto Vec3!U opCast(V : Vec3!U, U)() const { return V(cast(U) x, cast(U) y, cast(U) z); } } alias Vec3f = Vec3!(float); alias Vec3i = Vec3!(int); alias Vec3u = Vec3!(uint);
D
func void ZS_CommentFakeGuild() { Perception_Set_Minimal(); AI_Standup(self); if(!C_BodyStateContains(self,BS_SIT)) { B_TurnToNpc(self,other); }; if(!C_BodyStateContains(other,BS_SIT)) { // B_TurnToNpc(other,self); if(Npc_GetDistToNpc(other,self) < 80) { AI_Dodge(other); }; }; if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(Baltram)) { B_Say(self,other,"$ADDON_WRONGARMOR_SLD"); } else if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(Martin)) && (other.guild != GIL_MIL)) { B_Say(self,other,"$ADDON_WRONGARMOR"); } else if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(Cord)) && (other.guild != GIL_SLD) && (other.guild != GIL_DJG)) { B_Say(self,other,"$ADDON_WRONGARMOR"); } else if((self.guild == GIL_MIL) || (self.guild == GIL_PAL)) { B_Say(self,other,"$ADDON_WRONGARMOR_MIL"); } else if((self.guild == GIL_NOV) || (self.guild == GIL_KDF)) { B_Say(self,other,"$ADDON_WRONGARMOR_KDF"); } else if((self.guild == GIL_SLD) || (self.guild == GIL_DJG)) { if(Npc_HasEquippedArmor(other)) { B_Say(self,other,"$ADDON_WRONGARMOR_SLD"); } else { B_Say(self,other,"$ADDON_NOARMOR_BDT"); }; } else if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(Daron)) || (Hlp_GetInstanceID(self) == Hlp_GetInstanceID(Ulf))) { B_Say(self,other,"$ADDON_WRONGARMOR_KDF"); } else { B_Say(self,other,"$ADDON_WRONGARMOR"); }; };
D
/** * 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 cf.spew.implementation.streams.udp; import cf.spew.implementation.streams.base; import cf.spew.streams.defs; import cf.spew.streams.udp; import devisualization.util.core.memory.managed; import devisualization.bindings.libuv; import stdx.allocator : IAllocator, theAllocator, make, dispose, makeArray; import std.socket : Address, InternetAddress, Internet6Address, AddressFamily; import core.time : Duration; abstract class AnUDPLocalPoint : StreamPoint, ISocket_UDPLocalPoint { } abstract class AnUDPEndPoint : StreamPoint, ISocket_UDPEndPoint { } class LibUVUDPLocalPoint : AnUDPLocalPoint { package(cf.spew.implementation) { union { uv_handle_t ctx_handle; uv_stream_t ctx_stream; uv_udp_t ctx_udp; } IAllocator alloc; bool hasBeenClosed; LibUVUDPLocalPoint self; } this(IAllocator alloc) { import cf.spew.event_loop.wells.libuv; this.alloc = alloc; libuv.uv_udp_init(getThreadLoop_UV(), &ctx_udp); self = this; ctx_udp.data = &self; } bool joinMulticastGroup(scope string multicastAddress, scope string interfaceAddress=null) { return handleMulticastGroup(multicastAddress, interfaceAddress, uv_membership.UV_JOIN_GROUP); } bool leaveMulticastGroup(scope string multicastAddress, scope string interfaceAddress=null) { return handleMulticastGroup(multicastAddress, interfaceAddress, uv_membership.UV_LEAVE_GROUP); } bool handleMulticastGroup(scope string multicastAddress, scope string interfaceAddress, uv_membership membership) { if (multicastAddress.length == 0) return false; char[] theCopyMulticast, theCopyInterface; string toSendMulticast = multicastAddress, toSendInterface = interfaceAddress; if (multicastAddress[$-1] != '\0') { theCopyMulticast = alloc.makeArray!char(multicastAddress.length+1); theCopyMulticast[0 .. $-1] = multicastAddress[]; toSendMulticast = cast(string)theCopyMulticast; } if (interfaceAddress.length > 0) { if (interfaceAddress[$-1] != '\0') { theCopyInterface = alloc.makeArray!char(interfaceAddress.length+1); theCopyInterface[0 .. $-1] = interfaceAddress[]; toSendInterface = cast(string)theCopyInterface; } } int ret = libuv.uv_udp_set_membership(&ctx_udp, cast(const(char)*)toSendMulticast.ptr, cast(const(char)*)toSendInterface.ptr, membership); if (theCopyMulticast.length > 0) alloc.dispose(theCopyMulticast); if (theCopyInterface.length > 0) alloc.dispose(theCopyInterface); return ret == 0; } @property { void multicastLoopBack(bool v) { if (!isOpen) return; libuv.uv_udp_set_multicast_loop(&ctx_udp, v ? 1 : 0); } bool multicastInterface(scope string input) { if (input.length == 0) return false; char[] theCopy; string toSend = input; if (input[$-1] != '\0') { theCopy = alloc.makeArray!char(input.length+1); theCopy[0 .. $-1] = input[]; toSend = cast(string)theCopy; } int ret = libuv.uv_udp_set_multicast_interface(&ctx_udp, cast(const(char)*)toSend.ptr); if (theCopy.length > 0) alloc.dispose(theCopy); return ret == 0; } void multicastTTL(ubyte value=1) { if (!isOpen) return; if (value == 0) value = 1; libuv.uv_udp_set_multicast_ttl(&ctx_udp, value); } void broadcast(bool v) { if (!isOpen) return; libuv.uv_udp_set_broadcast(&ctx_udp, v ? 1 : 0); } void ttl(ubyte value=1) { if (!isOpen) return; if (value == 0) value = 1; libuv.uv_udp_set_ttl(&ctx_udp, value); } bool isOpen() { return !hasBeenClosed; } bool readable() { if (!isOpen) return false; else return libuv.uv_is_readable(&ctx_stream) == 1; } } ~this() { if (isOpen) { close(); } } static managed!ISocket_UDPLocalPoint create(Address address, IAllocator alloc=theAllocator()) { if (address is null || alloc is null) return managed!ISocket_UDPLocalPoint.init; auto ret = alloc.make!LibUVUDPLocalPoint(alloc); sockaddr_storage addrstorage; if (address.addressFamily == AddressFamily.INET) { (*cast(sockaddr_in*)&addrstorage) = *cast(sockaddr_in*)address.name(); } else if (address.addressFamily == AddressFamily.INET6) { (*cast(sockaddr_in6*)&addrstorage) = *cast(sockaddr_in6*)address.name(); } else assert(0, "Unknown address format"); if (libuv.uv_udp_bind(&ret.ctx_udp, cast(sockaddr*)&addrstorage, 0) != 0) { alloc.dispose(ret); return managed!ISocket_UDPLocalPoint.init; } if (libuv.uv_udp_recv_start(&ret.ctx_udp, &streamUDPAllocCB, &streamUDPReadCB) != 0) { alloc.dispose(ret); return managed!ISocket_UDPLocalPoint.init; } ret.addToLifeLL(); return cast(managed!ISocket_UDPLocalPoint)managed!LibUVUDPLocalPoint(ret, managers(), alloc); } managed!Address localAddress(IAllocator alloc=theAllocator()) { sockaddr_storage addr; int alen = sockaddr_storage.sizeof; if (!isOpen || libuv.uv_udp_getsockname(&ctx_udp, cast(sockaddr*)&addr, &alen) != 0) { } else if (addr.ss_family == AF_INET) { return cast(managed!Address)managed!InternetAddress(alloc.make!InternetAddress(*cast(sockaddr_in*)&addr), managers(), alloc); } else if (addr.ss_family == AF_INET6) { return cast(managed!Address)managed!Internet6Address(alloc.make!Internet6Address(*cast(sockaddr_in6*)&addr), managers(), alloc); } return managed!Address.init; } managed!ISocket_UDPEndPoint connectTo(Address address, IAllocator alloc=theAllocator()) { import std.typecons : tuple; if (address is null || alloc is null) return managed!ISocket_UDPEndPoint.init; sockaddr_storage addr_storage; if (address.addressFamily == AddressFamily.INET) { (*cast(sockaddr_in*)&addr_storage) = *cast(sockaddr_in*)address.name(); } else if (address.addressFamily == AddressFamily.INET6) { (*cast(sockaddr_in6*)&addr_storage) = *cast(sockaddr_in6*)address.name(); } else assert(0, "Unknown address format"); return cast(managed!ISocket_UDPEndPoint)managed!LibUVUDPEndPoint(managers(), tuple(addr_storage, this, alloc), alloc); } void close() { if (!isOpen) return; libuv.uv_read_stop(&ctx_stream); libuv.uv_close(&ctx_handle, &streamUDPCloseCB); } } class LibUVUDPEndPoint : AnUDPEndPoint { package(cf.spew.implementation) { LibUVUDPLocalPoint localPoint_; sockaddr_storage addrstorage; IAllocator alloc; } this(sockaddr_storage addr, LibUVUDPLocalPoint localPoint_, IAllocator alloc) { this.addrstorage = addr; this.localPoint_ = localPoint_; this.alloc = alloc; this.addToLifeLL(); } @property { void blocking(bool v) { if (!isOpen) return; libuv.uv_stream_set_blocking(&localPoint_.ctx_stream, v ? 1 : 0); } bool writable() { if (!isOpen) return false; return libuv.uv_is_writable(&localPoint_.ctx_stream) == 1; } bool isOpen() { return localPoint_.isOpen; } ISocket_UDPLocalPoint localPoint() { return localPoint_; } } void write(const(ubyte[]) data...) { import core.memory : GC; LibUVWriteUDP* writebuf = alloc.make!LibUVWriteUDP; GC.removeRoot(writebuf); writebuf.alloc = alloc; char* buffer = alloc.makeArray!char(data.length).ptr; GC.removeRoot(buffer); buffer[0 .. data.length] = cast(char[])data[]; assert(data.length < uint.max, "Too big of data to write, limit uint.max"); writebuf.buf = libuv.uv_buf_init(buffer, cast(uint)data.length); version(all) { writebuf.udpsend.data = writebuf; libuv.uv_udp_send(&writebuf.udpsend, &localPoint_.ctx_udp, &writebuf.buf, 1, cast(sockaddr*)&addrstorage, &streamUDPWriteCB); } else { writebuf.req.data = writebuf; libuv.uv_write(&writebuf.req, &localPoint_.ctx_stream, cast(const)&writebuf.buf, 1, &streamUDPWriteCB); } } managed!Address remoteAddress(IAllocator alloc=theAllocator()) { if (!isOpen) { } else if (addrstorage.ss_family == AF_INET) { return cast(managed!Address)managed!InternetAddress(alloc.make!InternetAddress(*cast(sockaddr_in*)&addrstorage), managers(), alloc); } else if (addrstorage.ss_family == AF_INET6) { return cast(managed!Address)managed!Internet6Address(alloc.make!Internet6Address(*cast(sockaddr_in6*)&addrstorage), managers(), alloc); } return managed!Address.init; } void close() {} } private { struct LibUVWriteUDP { IAllocator alloc; version(all) { uv_udp_send_t udpsend; } else { uv_write_t req; } uv_buf_t buf; } } extern(C) { version(all) { void streamUDPWriteCB(uv_udp_send_s* req, int status) { auto writebuf = cast(LibUVWriteUDP*)req.data; writebuf.alloc.dispose(cast(ubyte[])writebuf.buf.base[0 .. writebuf.buf.len]); writebuf.alloc.dispose(writebuf); } } else { void streamUDPWriteCB(uv_write_t* req, int status) { auto writebuf = cast(LibUVWriteUDP*)req.data; writebuf.alloc.dispose(cast(ubyte[])writebuf.buf.base[0 .. writebuf.buf.len]); writebuf.alloc.dispose(writebuf); } } void streamUDPCloseCB(uv_handle_t* handle) { if (handle.data is null) return; auto self = *cast(LibUVUDPLocalPoint*)handle.data; if (self.hasBeenClosed) return; self.hasBeenClosed = true; if (self.onStreamCloseDel !is null) self.onStreamCloseDel(self); } void streamUDPAllocCB(uv_handle_t* handle, size_t suggested_size, uv_buf_t* buf) { import core.memory : GC; if (handle.data is null) return; auto self = *cast(LibUVUDPLocalPoint*)handle.data; buf.base = self.alloc.makeArray!char(suggested_size).ptr; GC.removeRoot(buf.base); buf.len = cast(uint)suggested_size; } void streamUDPReadCB(uv_udp_t* handle, ptrdiff_t nread, const(uv_buf_t)* buf, const(sockaddr)* addr, uint flags) { if (handle.data is null || addr is null) return; auto self = *cast(LibUVUDPLocalPoint*)handle.data; if (self is null) return; sockaddr_storage addr_storage; if (addr.sa_family == AF_INET) { (*cast(sockaddr_in*)&addr_storage) = *cast(sockaddr_in*)addr; } else if (addr.sa_family == AF_INET6) { (*cast(sockaddr_in6*)&addr_storage) = *cast(sockaddr_in6*)addr; } auto endpoint = self.alloc.make!LibUVUDPEndPoint(addr_storage, self, self.alloc); if (self.onDataDel !is null) { if (nread > 0 && self.onDataDel(endpoint, cast(ubyte[])buf.base[0 .. cast(size_t)nread])) {} else self.close(); } else if (nread < 0) self.close(); self.alloc.dispose(endpoint); self.alloc.dispose(cast(char[])buf.base[0 .. buf.len]); } }
D
void main() { runSolver(); } void problem() { auto N = scan!long; auto K = scan!long; auto A = scan!long(N); auto solve() { long ans; auto dest = new long[](N); auto order = new long[](N); dest[] = -1; order[] = -1; long total, preTotal; long[] added; foreach(k; 0..K) { K--; ans += A[total]; added ~= A[total]; if (dest[total] != -1) break; auto nex = (total + A[total]) % N; dest[total] = nex; order[total] = k; preTotal = total; total = nex; } if (K == 0) return ans; dest.deb; order.deb; auto cycle = order[preTotal] - order[total] + 1; cycle.deb; added.deb; auto cycleAdds = added[$ - cycle..$]; cycleAdds.deb; const times = K / cycle; K -= times * cycle; ans += cycleAdds.sum * times; ans += cycleAdds.array[0..K].sum; return ans; } outputForAtCoder(&solve); } // ---------------------------------------------- import std.stdio, std.conv, std.array, std.string, std.algorithm, std.container, std.range, core.stdc.stdlib, std.math, std.typecons, std.numeric, std.traits, std.functional, std.bigint, std.datetime.stopwatch, core.time, core.bitop; T[][] combinations(T)(T[] s, in long m) { if (!m) return [[]]; if (s.empty) return []; return s[1 .. $].combinations(m - 1).map!(x => s[0] ~ x).array ~ s[1 .. $].combinations(m); } string scan(){ static string[] ss; while(!ss.length) ss = readln.chomp.split; string res = ss[0]; ss.popFront; return res; } T scan(T)(){ return scan.to!T; } T[] scan(T)(long n){ return n.iota.map!(i => scan!T()).array; } void deb(T ...)(T t){ debug writeln(t); } alias Point = Tuple!(long, "x", long, "y"); Point invert(Point p) { return Point(p.y, p.x); } long[] divisors(long n) { long[] ret; for (long i = 1; i * i <= n; i++) { if (n % i == 0) { ret ~= i; if (i * i != n) ret ~= n / i; } } return ret.sort.array; } bool chmin(T)(ref T a, T b) { if (b < a) { a = b; return true; } else return false; } bool chmax(T)(ref T a, T b) { if (b > a) { a = b; return true; } else return false; } string charSort(alias S = "a < b")(string s) { return (cast(char[])((cast(byte[])s).sort!S.array)).to!string; } ulong comb(ulong a, ulong b) { if (b == 0) {return 1;}else{return comb(a - 1, b - 1) * a / b;}} string toAnswerString(R)(R r) { return r.map!"a.to!string".joiner(" ").array.to!string; } struct ModInt(uint MD) if (MD < int.max) {ulong v;this(string v) {this(v.to!long);}this(int v) {this(long(v));}this(long v) {this.v = (v%MD+MD)%MD;}void opAssign(long t) {v = (t%MD+MD)%MD;}static auto normS(ulong x) {return (x<MD)?x:x-MD;}static auto make(ulong x) {ModInt m; m.v = x; return m;}auto opBinary(string op:"+")(ModInt r) const {return make(normS(v+r.v));}auto opBinary(string op:"-")(ModInt r) const {return make(normS(v+MD-r.v));}auto opBinary(string op:"*")(ModInt r) const {return make((ulong(v)*r.v%MD).to!ulong);}auto opBinary(string op:"^^", T)(T r) const {long x=v;long y=1;while(r){if(r%2==1)y=(y*x)%MD;x=x^^2%MD;r/=2;} return make(y);}auto opBinary(string op:"/")(ModInt r) const {return this*memoize!inv(r);}static ModInt inv(ModInt x) {return x^^(MD-2);}string toString() const {return v.to!string;}auto opOpAssign(string op)(ModInt r) {return mixin ("this=this"~op~"r");}} alias MInt1 = ModInt!(10^^9 + 7); alias MInt9 = ModInt!(998_244_353); void outputForAtCoder(T)(T delegate() fn) { static if (is(T == float) || is(T == double) || is(T == real)) "%.16f".writefln(fn()); else static if (is(T == void)) fn(); else static if (is(T == string)) fn().writeln; else static if (isInputRange!T) { static if (!is(string == ElementType!T) && isInputRange!(ElementType!T)) foreach(r; fn()) r.toAnswerString.writeln; else foreach(r; fn()) r.writeln; } else fn().writeln; } void runSolver() { enum BORDER = "=================================="; debug { BORDER.writeln; while(!stdin.eof) { "<<< Process time: %s >>>".writefln(benchmark!problem(1)); BORDER.writeln; } } else problem(); } enum YESNO = [true: "Yes", false: "No"];
D
<?xml version="1.0" encoding="UTF-8"?> <di:SashWindowsMngr xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation"> <pageList xmi:type="di:PageList"> <availablePage xmi:type="di:PageRef"> <emfPageIdentifier xmi:type="notation:Diagram" href="004_3_DesignPattern_FactoryMethod_exemple.notation#_wgWgABuhEeOap6IIE4eqWA"/> </availablePage> </pageList> <sashModel xmi:type="di:SashModel" currentSelection="//@sashModel/@windows.0/@children.0"> <windows xmi:type="di:Window"> <children xmi:type="di:TabFolder"> <children xmi:type="di:PageRef"> <emfPageIdentifier xmi:type="notation:Diagram" href="004_3_DesignPattern_FactoryMethod_exemple.notation#_wgWgABuhEeOap6IIE4eqWA"/> </children> </children> </windows> </sashModel> </di:SashWindowsMngr>
D
/************************************************************************** ВОСПРИЯТИЕ Функции, связанные с восприятием (реакция на происходящее вокруг). Активные восприятия (напр., игрока, врага) - действуют только через чувства (зрение, слух, обоняние). Зона действия - около 180 градусов перед персонажем, расстояние задается в поле senses_range класса C_NPC. //NS: только для зрения и слуха! обоняние действует на 360 градусов Пассивные воприятия - во всех направлениях, расстояние определяется при инициализации (см. ниже). //NS: пассивные восприятия ASSESSFIGHTSOUND и PERC_ASSESSQUIETSOUND действуют, даже если слуха нет Связаные файлы: типы восприятий (PERC_ASSESSx) _Intern\Constants.d константы расстояний (PERC_DIST_x) AI_Constants.d функции обработки восприятий для людей (B_ASSESSx) AI\Human\Human\B_Human для монстров (B_MM_ASSESSx) AI\Monster\B_Monster ***************************************************************************/ // ИНИЦИАЛИЗАЦИЯ ВОСПРИЯТИЙ ------------------------------------------------ /* В скриптах не вызывается. */ func void InitPerceptions() { //устанавливается дальность действия для пассивных восприятий //NS: на этих расстояниях запускается соответствующий обработчик восприятия, //но в нем может быть дополнительная проверка и реально персонаж будет реагировать с меньшего расстояния // сражение Perc_SetRange (PERC_ASSESSDAMAGE, 9999); //PB: дальность действия не учитывается движком! Perc_SetRange (PERC_ASSESSOTHERSDAMAGE, PERC_DIST_INTERMEDIAT); Perc_SetRange (PERC_ASSESSDEFEAT, WATCHFIGHT_DIST_MAX); Perc_SetRange (PERC_ASSESSMURDER, PERC_DIST_ACTIVE_MAX); Perc_SetRange (PERC_ASSESSTHREAT, PERC_DIST_INTERMEDIAT); //PB: БАГ! дальность действия, вероятно, не учитывается Perc_SetRange (PERC_DRAWWEAPON, PERC_DIST_DIALOG); // звуки Perc_SetRange (PERC_ASSESSFIGHTSOUND, 3000); //PB: почти всегда сокращается до PERC_DIST_INTERMEDIAT Perc_SetRange (PERC_ASSESSQUIETSOUND, PERC_DIST_INTERMEDIAT); // действия Perc_SetRange (PERC_ASSESSTHEFT, PERC_DIST_INTERMEDIAT); Perc_SetRange (PERC_ASSESSUSEMOB, PERC_DIST_INTERMEDIAT); Perc_SetRange (PERC_ASSESSENTERROOM, PERC_DIST_INTERMEDIAT); // магия Perc_SetRange (PERC_ASSESSMAGIC, 9999); //PB: дальность действия не учитывается движком! Perc_SetRange (PERC_ASSESSSTOPMAGIC, 9999); //PB: дальность действия не учитывается движком! // речь Perc_SetRange (PERC_ASSESSTALK, PERC_DIST_DIALOG); Perc_SetRange (PERC_ASSESSWARN, PERC_DIST_INTERMEDIAT); //PB: восприятие полностью реализовано в скриптах! // другие Perc_SetRange (PERC_MOVEMOB, PERC_DIST_DIALOG); Perc_SetRange (PERC_ASSESSSURPRISE, FIGHT_DIST_CANCEL); Perc_SetRange (PERC_OBSERVEINTRUDER, 100); Perc_SetRange (PERC_ASSESSREMOVEWEAPON, 100); Perc_SetRange (PERC_CATCHTHIEF, 100); Perc_SetRange (PERC_ASSESSCALL, 100); Perc_SetRange (PERC_MOVENPC, 100); Perc_SetRange (PERC_ASSESSCASTER, 100); Perc_SetRange (PERC_NPCCOMMAND, PERC_DIST_ACTIVE_MAX); Perc_SetRange (PERC_OBSERVESUSPECT, 100); }; // УСТАНОВКА ВОСПРИЯТИЙ -------------------------------------------------------- /* Устанавливаются для себя (self). Вызываются в функциях обработки поведения ZS_x */ //Нормальное восприятие (в обычном состоянии для людей) func void Perception_Set_Normal() { //Чувства self.senses = SENSE_HEAR | SENSE_SEE; //слух, зрение self.senses_range = PERC_DIST_ACTIVE_MAX; //дистанция восприятия - максимальная //Частота обработки восприятий if(Npc_KnowsInfo(self,1) || C_NpcIsGateGuard(self) || HasFlags(self.aivar[AIV_Temper], TEMPER_BodyGuard)) //если персонаж знает что-то важное или он охраниик у ворот { //то Npc_SetPercTime(self,0.3); //каждые 0.3 сек. } else { //иначе Npc_SetPercTime(self,1); //каждую 1 сек. }; //Приоритет восприятий (задается порядком их активации) // активные Npc_PercEnable(self,PERC_ASSESSPLAYER, B_AssessPlayer); Npc_PercEnable(self,PERC_ASSESSENEMY, B_AssessEnemy); // пассивные Npc_PercEnable(self,PERC_ASSESSMAGIC, B_AssessMagic); Npc_PercEnable(self,PERC_ASSESSDAMAGE, B_AssessDamage); Npc_PercEnable(self,PERC_ASSESSMURDER, B_AssessMurder); Npc_PercEnable(self,PERC_ASSESSTHEFT, B_AssessTheft); Npc_PercEnable(self,PERC_ASSESSUSEMOB, B_AssessUseMob); Npc_PercEnable(self,PERC_ASSESSENTERROOM, B_AssessPortalCollision); Npc_PercEnable(self,PERC_ASSESSTHREAT, B_AssessThreat); Npc_PercEnable(self,PERC_DRAWWEAPON, B_AssessDrawWeapon); Npc_PercEnable(self,PERC_ASSESSFIGHTSOUND, B_AssessFightSound); Npc_PercEnable(self,PERC_ASSESSQUIETSOUND, B_AssessQuietSound); Npc_PercEnable(self,PERC_ASSESSWARN, B_AssessWarn); Npc_PercEnable(self,PERC_ASSESSTALK, B_AssessTalk); Npc_PercEnable(self,PERC_MOVEMOB, B_MoveMob); }; //Минимальный набор восприятий (человек на чем-то сосредоточен) func void Perception_Set_Minimal() { //Чувства self.senses = SENSE_HEAR | SENSE_SEE; //слух, зрение self.senses_range = PERC_DIST_ACTIVE_MAX; //дистанция восприятия - максимальная //Приоритет восприятий (задается порядком их активации) // пассивные Npc_PercEnable(self,PERC_ASSESSMAGIC, B_AssessMagic); Npc_PercEnable(self,PERC_ASSESSDAMAGE, B_AssessDamage); Npc_PercEnable(self,PERC_ASSESSMURDER, B_AssessMurder); Npc_PercEnable(self,PERC_ASSESSTHEFT, B_AssessTheft); Npc_PercEnable(self,PERC_ASSESSUSEMOB, B_AssessUseMob); Npc_PercEnable(self,PERC_ASSESSENTERROOM, B_AssessPortalCollision); Npc_PercEnable(self,PERC_MOVEMOB, B_MoveMob); }; //Отключение воприятий (напр., при магическом сне, во время атаки) func void B_ClearPerceptions(var C_Npc slf) { // активные Npc_PercDisable(slf,PERC_ASSESSPLAYER); Npc_PercDisable(slf,PERC_ASSESSENEMY); Npc_PercDisable(slf,PERC_ASSESSBODY); // пассивные Npc_PercDisable(slf,PERC_ASSESSMAGIC); Npc_PercDisable(slf,PERC_ASSESSDAMAGE); Npc_PercDisable(slf,PERC_ASSESSMURDER); Npc_PercDisable(slf,PERC_ASSESSTHEFT); Npc_PercDisable(slf,PERC_ASSESSUSEMOB); Npc_PercDisable(slf,PERC_ASSESSENTERROOM); Npc_PercDisable(slf,PERC_ASSESSTHREAT); Npc_PercDisable(slf,PERC_DRAWWEAPON); Npc_PercDisable(slf,PERC_ASSESSFIGHTSOUND); Npc_PercDisable(slf,PERC_ASSESSQUIETSOUND); Npc_PercDisable(slf,PERC_ASSESSWARN); Npc_PercDisable(slf,PERC_ASSESSTALK); Npc_PercDisable(slf,PERC_MOVEMOB); Npc_PercDisable(slf,PERC_ASSESSOTHERSDAMAGE); Npc_PercDisable(slf,PERC_ASSESSSTOPMAGIC); Npc_PercDisable(slf,PERC_ASSESSSURPRISE); }; //Восприятие для монстров во время действий по расписанию и при охоте func void Perception_Set_Monster_Rtn() { // частота обработки восприятий Npc_SetPercTime(self,1); // 1 раз в сек. //Приоритет восприятий (задается порядком их активации) // активные Npc_PercEnable(self,PERC_ASSESSENEMY, B_MM_AssessEnemy); Npc_PercEnable(self,PERC_ASSESSBODY, B_MM_AssessBody); //для "говорящих" if (HasFlags(self.aivar[AIV_Behaviour],BEHAV_MM_Talk)) { Npc_PercEnable(self,PERC_ASSESSTALK, B_AssessTalk); }; // пассивные Npc_PercEnable(self,PERC_ASSESSMAGIC, B_AssessMagic); Npc_PercEnable(self,PERC_ASSESSDAMAGE, B_MM_AssessDamage); Npc_PercEnable(self,PERC_ASSESSOTHERSDAMAGE,B_MM_AssessOthersDamage); Npc_PercEnable(self,PERC_ASSESSMURDER, B_MM_AssessOthersDamage); Npc_PercEnable(self,PERC_ASSESSWARN, B_MM_AssessWarn); };
D
/Users/Renn/Desktop/AppDev/Apps/TipWell/DerivedData/Build/Intermediates/TipWell.build/Debug-iphoneos/TipWell.build/Objects-normal/armv7/TipCalculator.o : /Users/Renn/Desktop/AppDev/Apps/TipWell/TipWell/TipCalculator.swift /Users/Renn/Desktop/AppDev/Apps/TipWell/TipWell/ViewController.swift /Users/Renn/Desktop/AppDev/Apps/TipWell/TipWell/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/CoreImage.swiftmodule /Users/Renn/Desktop/AppDev/Apps/TipWell/DerivedData/Build/Intermediates/TipWell.build/Debug-iphoneos/TipWell.build/Objects-normal/armv7/TipCalculator~partial.swiftmodule : /Users/Renn/Desktop/AppDev/Apps/TipWell/TipWell/TipCalculator.swift /Users/Renn/Desktop/AppDev/Apps/TipWell/TipWell/ViewController.swift /Users/Renn/Desktop/AppDev/Apps/TipWell/TipWell/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/CoreImage.swiftmodule /Users/Renn/Desktop/AppDev/Apps/TipWell/DerivedData/Build/Intermediates/TipWell.build/Debug-iphoneos/TipWell.build/Objects-normal/armv7/TipCalculator~partial.swiftdoc : /Users/Renn/Desktop/AppDev/Apps/TipWell/TipWell/TipCalculator.swift /Users/Renn/Desktop/AppDev/Apps/TipWell/TipWell/ViewController.swift /Users/Renn/Desktop/AppDev/Apps/TipWell/TipWell/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/CoreImage.swiftmodule
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_14_agm-7461254632.notation#_copSALmGEeKQQp7P9cQvNQ"/> </availablePage> </pageList> <sashModel currentSelection="//@sashModel/@windows.0/@children.0"> <windows> <children xsi:type="di:TabFolder"> <children> <emfPageIdentifier href="VAR_14_agm-7461254632.notation#_copSALmGEeKQQp7P9cQvNQ"/> </children> </children> </windows> </sashModel> </di:SashWindowsMngr>
D
instance DIA_Mil_332_Stadtwache_EXIT(C_Info) { npc = Mil_332_Stadtwache; nr = 999; condition = DIA_Mil_332_Stadtwache_EXIT_Condition; information = DIA_Mil_332_Stadtwache_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_Mil_332_Stadtwache_EXIT_Condition() { return TRUE; }; func void DIA_Mil_332_Stadtwache_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_MIL_332_STADTWACHE_TOARMSCITYGATE(C_Info) { npc = Mil_332_Stadtwache; nr = 1; condition = dia_mil_332_stadtwache_toarmscitygate_condition; information = dia_mil_332_stadtwache_toarmscitygate_info; permanent = TRUE; important = TRUE; }; func int dia_mil_332_stadtwache_toarmscitygate_condition() { if((TOARMSCITYGATE == TRUE) && (CITYGATEACCESSGRANTED == FALSE)) { return TRUE; }; }; func void dia_mil_332_stadtwache_toarmscitygate_info() { B_Say(self,other,"$ALARM"); AI_StopProcessInfos(self); B_Attack(self,other,AR_GuardStopsIntruder,1); TOARMSCITYGATE = FALSE; }; instance DIA_Mil_332_Stadtwache_PERM(C_Info) { npc = Mil_332_Stadtwache; nr = 1; condition = DIA_Mil_332_Stadtwache_PERM_Condition; information = DIA_Mil_332_Stadtwache_PERM_Info; permanent = TRUE; description = "Jak se vede?"; }; func int DIA_Mil_332_Stadtwache_PERM_Condition() { return TRUE; }; func void DIA_Mil_332_Stadtwache_PERM_Info() { AI_Output(other,self,"DIA_Mil_332_Stadtwache_PERM_15_00"); //Jak se vede? AI_Output(self,other,"DIA_Mil_332_Stadtwache_PERM_04_01"); //Pokračuj! Jsem ve službě! AI_StopProcessInfos(self); }; //----------------------------------------dezertiry----------------------------------------------- instance DIA_Mil_3320_Stadtwache_EXIT(C_Info) { npc = Mil_3320_Stadtwache; nr = 999; condition = DIA_Mil_3320_Stadtwache_EXIT_Condition; information = DIA_Mil_3320_Stadtwache_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_Mil_3320_Stadtwache_EXIT_Condition() { return TRUE; }; func void DIA_Mil_3320_Stadtwache_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_Mil_3321_Stadtwache_EXIT(C_Info) { npc = Mil_3321_Stadtwache; nr = 999; condition = DIA_Mil_3321_Stadtwache_EXIT_Condition; information = DIA_Mil_3321_Stadtwache_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_Mil_3321_Stadtwache_EXIT_Condition() { return TRUE; }; func void DIA_Mil_3321_Stadtwache_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_Mil_3322_Stadtwache_EXIT(C_Info) { npc = Mil_3322_Stadtwache; nr = 999; condition = DIA_Mil_3322_Stadtwache_EXIT_Condition; information = DIA_Mil_3322_Stadtwache_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_Mil_3322_Stadtwache_EXIT_Condition() { return TRUE; }; func void DIA_Mil_3322_Stadtwache_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_Mil_3321_Stadtwache_FUCKOFF(C_Info) { npc = Mil_3321_Stadtwache; nr = 10; condition = DIA_Mil_3321_Stadtwache_FUCKOFF_condition; information = DIA_Mil_3321_Stadtwache_FUCKOFF_info; permanent = TRUE; important = TRUE; }; func int DIA_Mil_3321_Stadtwache_FUCKOFF_condition() { if(Npc_IsInState(self,ZS_Talk)) { return TRUE; }; }; func void DIA_Mil_3321_Stadtwache_FUCKOFF_info() { B_Say(self,other,"$NOTNOW"); AI_StopProcessInfos(self); Npc_SetRefuseTalk(self,300); }; instance DIA_Mil_3322_Stadtwache_FUCKOFF(C_Info) { npc = Mil_3322_Stadtwache; nr = 10; condition = DIA_Mil_3322_Stadtwache_FUCKOFF_condition; information = DIA_Mil_3322_Stadtwache_FUCKOFF_info; permanent = TRUE; important = TRUE; }; func int DIA_Mil_3322_Stadtwache_FUCKOFF_condition() { if(Npc_IsInState(self,ZS_Talk)) { return TRUE; }; }; func void DIA_Mil_3322_Stadtwache_FUCKOFF_info() { B_Say(self,other,"$NOTNOW"); AI_StopProcessInfos(self); Npc_SetRefuseTalk(self,300); }; instance DIA_Mil_3320_Stadtwache_Run(C_Info) { npc = Mil_3320_Stadtwache; nr = 1; condition = DIA_Mil_3320_Stadtwache_Run_condition; information = DIA_Mil_3320_Stadtwache_Run_info; permanent = FALSE; description = "Hej, co tady děláte?"; }; func int DIA_Mil_3320_Stadtwache_Run_condition() { if(MIS_DeadHead == LOG_Running) { return TRUE; }; }; func void DIA_Mil_3320_Stadtwache_Run_info() { B_GivePlayerXP(150); AI_Output(other,self,"DIA_Mil_3320_Stadtwache_Run_01_00"); //Hej, co tady děláte? AI_Output(self,other,"DIA_Mil_3320_Stadtwache_Run_01_01"); //Ehm... (váhavě) Dostali jsme rozkaz vrátit se zpátky na Khorinis! AI_Output(other,self,"DIA_Mil_3320_Stadtwache_Run_01_02"); //Rozkaz od koho? AI_Output(self,other,"DIA_Mil_3320_Stadtwache_Run_01_03"); //No... (přemýšlí) Byly to rozkaz od... lorda Andreho! Ano, od něho. AI_Output(other,self,"DIA_Mil_3320_Stadtwache_Run_01_04"); //Vždyť lord Andre je nyní v Khorinisu. Máte mě snad za hlupáka? AI_Output(self,other,"DIA_Mil_3320_Stadtwache_Run_01_05"); //Ne, co si... Já... jsem teď trochu zmatený... samozřejmě, že to nebyl rozkaz od lorda Andreho! AI_Output(other,self,"DIA_Mil_3320_Stadtwache_Run_01_06"); //Navíc, víš, rozkazy jako tyhle jsou obvykle potvrzeny i písemně. Máte snad nějaké takové dokumenty? AI_Output(self,other,"DIA_Mil_3320_Stadtwache_Run_01_08"); //Poslouchej, kamaráde... (nervózně) Jdi si svou cestou! A raději se nestarej do věcí ostatních. AI_Output(other,self,"DIA_Mil_3320_Stadtwache_Run_01_09"); //Tak to vás tedy budu muset nahlásit paladinům. AI_Output(other,self,"DIA_Mil_3320_Stadtwache_Run_01_10"); //A najednou z vás budou akorát tak obyčejní dezertéři. AI_Output(self,other,"DIA_Mil_3320_Stadtwache_Run_01_11"); //Ach, chlape. Vždyť jsem ti říkal, aby ses staral o své vlastní záležitosti. AI_Output(self,other,"DIA_Mil_3320_Stadtwache_Run_01_12"); //Promiň, ale říkal sis o to! B_LogEntry(TOPIC_DeadHead,"Nedaleko Khoriniského průsmyku jsem potkal tři domobránce. Vypadají jako dezertéři. Zřejmě mě nebudou chtít nechat jen tak odejít, jelikož bych je mohl nahlásit paladinům."); Info_ClearChoices(DIA_Mil_3320_Stadtwache_Run); Info_AddChoice(DIA_Mil_3320_Stadtwache_Run,Dialog_Ende,DIA_Mil_3320_Stadtwache_Run_End); }; func void DIA_Mil_3320_Stadtwache_Run_End() { AI_StopProcessInfos(self); self.aivar[AIV_EnemyOverride] = FALSE; Mil_3321_Stadtwache.aivar[AIV_EnemyOverride] = FALSE; Mil_3322_Stadtwache.aivar[AIV_EnemyOverride] = FALSE; B_Attack(self,other,AR_KILL,0); };
D
// Vicfred // https://atcoder.jp/contests/abc051/tasks/abc051_c // implementation, math import std.stdio; void main() { int sx, sy, tx, ty; readf("%d %d %d %d", &sx, &sy, &tx, &ty); int dx = tx - sx; int dy = ty - sy; foreach(_; 0..dy) "U".write; foreach(_; 0..dx) "R".write; foreach(_; 0..dy) "D".write; foreach(_; 0..dx) "L".write; "L".write; dx += 1; dy += 1; foreach(_; 0..dy) "U".write; foreach(_; 0..dx) "R".write; "D".write; "R".write; foreach(_; 0..dy) "D".write; foreach(_; 0..dx) "L".write; "U".writeln; }
D
/** * <hr /> * $(B Evanescent Applications: ) SUDOKU * * $(BR) * * Authors: Uwe Keller * License: MIT * * Version: 0.1 - April 2009, initial release */ module evanescent.apps.sudoku.solver.transform.SatTransformation; private import evanescent.deescover.core.SolverTypes; private import evanescent.deescover.core.Solver; private import evanescent.deescover.core.clause.Clause; private import evanescent.deescover.util.Vec; private import evanescent.apps.sudoku.core.Puzzle; private import evanescent.apps.sudoku.solver.transform.PropositionalSignature; private import evanescent.apps.sudoku.solver.transform.AbstractSatTransformation; import tango.io.Stdout; /** * A transformation of SUDOKU puzzles to propositional * logic. * * For a SUDOKU puzzle P, the transformation generates a * formula F(P) for with the following formal property: * * An interpretation I is a model of F(P) * iff * puzzle(I) is a solution of the SUDOKU puzzle P * * The transformation follows the non-minimal (i.e. redundant) formulation * of SUDOKU puzzles in propositional logic discussed in the paper: * * $(B I. Lynce and J. Ouaknine) $(I Sudoku as a SAT Problem), 9th International Symposium on Artificial Intelligence and Mathematics, January 2006. * * * * * Authors: Uwe Keller */ class SatTransformation : AbstractSatTransformation { private Puzzle p; // ---------------------------------------------- // Constructors // ---------------------------------------------- public this(Solver solver, PropositionalSignature signature) { super(solver, signature); } // ---------------------------------------------- // Methods // ---------------------------------------------- protected void doTransform() { // The generated constraints are not minimal (i.e. they represent // redundant information) but the redudancy helps the solver to // find solutions faster add_constraints_puzzle_fully_filled_in(); add_constraints_at_most_one_entry_per_cell(); add_constraints_every_entry_at_most_once_in_each_column(); add_constraints_every_entry_at_most_once_in_each_row(); add_constraints_every_entry_at_most_once_in_each_region(); add_constraints_every_entry_at_least_once_in_each_column(); add_constraints_every_entry_at_least_once_in_each_row(); add_constraints_every_entry_at_least_once_in_each_region(); add_constraints_given_hints(); } protected void add_constraints_puzzle_fully_filled_in() { // There is at least one number in each field Vec!(Lit) clause = new Vec!(Lit)(); for (int c = 0; c < puzzle.numberOfColumns(); c++) { for (int r = 0; r < puzzle.numberOfRows(); r++) { clause.clear(); for (int val = 1; val <= puzzle.numberOfColumns(); val++) { clause.push( getLiteral(signature.variable(c,r,val)) ); } solver.addClause(clause); } } } protected void add_constraints_at_most_one_entry_per_cell() { // There is at most one value in each cell of the puzzle Vec!(Lit) clause = new Vec!(Lit)(); for (int c = 0; c < puzzle.numberOfColumns(); c++) { for (int r = 0; r < puzzle.numberOfRows(); r++) { for (int val1 = 1; val1 <= puzzle.numberOfColumns(); val1++) { for (int val2 = val1 + 1; val2 <= puzzle.numberOfColumns(); val2++) { clause.clear(); clause.push( getLiteral(signature.variable(c,r,val1), false) ); clause.push( getLiteral(signature.variable(c,r,val2), false) ); solver.addClause(clause); } } } } } protected void add_constraints_every_entry_at_most_once_in_each_row() { // Every value occurs at most once in each row of the puzzle Vec!(Lit) clause = new Vec!(Lit)(); for (int c1 = 0; c1 < puzzle.numberOfColumns() - 1; c1++) { for (int c2 = c1 + 1; c2 < puzzle.numberOfColumns; c2++) { for (int r = 0; r < puzzle.numberOfRows(); r++) { for (int val = 1; val <= puzzle.numberOfColumns(); val++) { clause.clear(); clause.push( getLiteral(signature.variable(c1,r,val), false) ); clause.push( getLiteral(signature.variable(c2,r,val), false) ); solver.addClause(clause); } } } } } protected void add_constraints_every_entry_at_most_once_in_each_column() { // Every value occurs at most once in each column of the puzzle Vec!(Lit) clause = new Vec!(Lit)(); for (int c = 0; c < puzzle.numberOfColumns(); c++) { for (int r1 = 0; r1 < puzzle.numberOfRows() - 1; r1++) { for (int r2 = r1 + 1; r2 < puzzle.numberOfRows(); r2++) { for (int val = 1; val <= puzzle.numberOfColumns(); val++) { clause.clear(); clause.push( getLiteral(signature.variable(c,r1,val), false) ); clause.push( getLiteral(signature.variable(c,r2,val), false) ); solver.addClause(clause); } } } } } protected void add_constraints_every_entry_at_most_once_in_each_region() { // Every value occurs at most once in each region of the puzzle for (int c = 0; c < puzzle.numberOfColumns() / puzzle.width(); c++) { for (int r = 0; r < puzzle.numberOfRows() / puzzle.height(); r++) { add_constraints_every_entry_at_most_once_in_region(c, r); } } } protected void add_constraints_every_entry_at_most_once_in_region(uint w, uint h) { // Every value occurs at most once in the region with // coordinates (w,h) of the puzzle Vec!(Lit) clause = new Vec!(Lit)(); uint nofCellsInRegion = puzzle.width() * puzzle.height(); for (int val = 1; val <= puzzle.numberOfColumns(); val++) { for (int i = 0; i < nofCellsInRegion; i++) { for (int j = i+1; j < nofCellsInRegion; j++) { uint cell_i_x = w * puzzle.width() + i % puzzle.width(); uint cell_i_y = h * puzzle.height() + i / puzzle.width(); uint cell_j_x = w * puzzle.width() + j % puzzle.width(); uint cell_j_y = h * puzzle.height() + j / puzzle.width(); clause.clear(); clause.push( getLiteral( signature.variable(cell_i_x,cell_i_y,val), false) ); clause.push( getLiteral( signature.variable(cell_j_x,cell_j_y,val), false) ); solver.addClause(clause); } } } } protected void add_constraints_every_entry_at_least_once_in_each_row() { // Every value occurs at least once in each row of the puzzle Vec!(Lit) clause = new Vec!(Lit)(); for (int r = 0; r < puzzle.numberOfRows(); r++) { for (int val = 1; val <= puzzle.numberOfColumns(); val++) { clause.clear(); for (int c = 0; c < puzzle.numberOfColumns(); c++) { clause.push( getLiteral(signature.variable(c,r,val) )); } solver.addClause(clause); } } } protected void add_constraints_every_entry_at_least_once_in_each_column() { // Every value occurs at least once in each column of the puzzle Vec!(Lit) clause = new Vec!(Lit)(); for (int c = 0; c < puzzle.numberOfColumns(); c++) { for (int val = 1; val <= puzzle.numberOfColumns(); val++) { clause.clear(); for (int r = 0; r < puzzle.numberOfRows(); r++) { clause.push( getLiteral( signature.variable(c,r,val) )); } solver.addClause(clause); } } } protected void add_constraints_every_entry_at_least_once_in_each_region() { // Every value occurs at least once in each region of the puzzle for (int c = 0; c < puzzle.numberOfColumns() / puzzle.width(); c++) { for (int r = 0; r < puzzle.numberOfRows() / puzzle.height(); r++) { add_constraints_every_entry_at_least_once_in_region(c, r); } } } protected void add_constraints_every_entry_at_least_once_in_region(uint w, uint h) { // Every value occurs at most once in the region with // coordinates (w,h) of the puzzle Vec!(Lit) clause = new Vec!(Lit)(); uint nofCellsInRegion = puzzle.width() * puzzle.height(); for (int val = 1; val <= puzzle.numberOfColumns(); val++) { clause.clear(); for (int i = 0; i < nofCellsInRegion; i++) { uint cell_i_x = w * puzzle.width() + i % puzzle.width(); uint cell_i_y = h * puzzle.height() + i / puzzle.width(); clause.push( getLiteral( signature.variable(cell_i_x, cell_i_y, val ) )); } solver.addClause(clause); } } protected void add_constraints_given_hints() { Vec!(Lit) clause = new Vec!(Lit)(); for (int c = 0; c < puzzle.numberOfColumns(); c++) { for (int r = 0; r < puzzle.numberOfRows(); r++) { if (puzzle.hasFilledCellAt(r,c)) { clause.clear(); clause.push( getLiteral( signature.variable(c,r,puzzle.entry(r,c)) )); solver.addClause(clause); } } } } }
D
module org.serviio.library.online.WebResourceContainer; import java.lang.String; import java.util.ArrayList; import java.util.List; import org.serviio.library.online.WebResourceItem; public class WebResourceContainer { private String title; private String thumbnailUrl; private List!(WebResourceItem) items; public this() { items = new ArrayList!(WebResourceItem)(); } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public List!(WebResourceItem) getItems() { return items; } public void setItems(List!(WebResourceItem) items) { this.items = items; } public String getThumbnailUrl() { return thumbnailUrl; } public void setThumbnailUrl(String thumbnailUrl) { this.thumbnailUrl = thumbnailUrl; } override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("WebResourceContainer [title=").append(title).append(", thumbnailUrl=").append(thumbnailUrl).append(", items=").append(items).append("]"); return builder.toString(); } } /* Location: D:\Program Files\Serviio\lib\serviio.jar * Qualified Name: org.serviio.library.online.WebResourceContainer * JD-Core Version: 0.6.2 */
D
//#what about load?! module jecsdl.guiconfirm; import jecsdl.base; /// Confirm (yes/no) dialog box struct GuiConfirm { Wedget[] _wedgets; /// List of wedgets ref auto getWedgets() { return _wedgets; } /// basic set up void setup(Wedget[] wedgets) { _wedgets = wedgets; setHideAll(true); } void setHideAll(bool state) { import std.algorithm : each; _wedgets.each!(w => w.hidden = state); } void setQuestion(string[] headerLines) { _wedgets[StateConfirm.ask].list(headerLines); } /// Process checking for button press void process(in Point pos) { /+ if (! getWedgets[0].hidden) { if (g_keys[SDL_SCANCODE_Y].keyTrigger) { g_stateConfirm = StateConfirm.yes; //g_wedgetFile = WedgetFile.save; //#what about load?! setHideAll(true); } if (g_keys[SDL_SCANCODE_N].keyTrigger) { g_stateConfirm = StateConfirm.no; g_wedgetFile = WedgetFile.current; setHideAll(true); } } +/ foreach(ref wedget; _wedgets) with(wedget) { process; if (gotFocus(pos)) { _focus = Focus.on; if (gEvent.type == SDL_MOUSEBUTTONDOWN) { //if (g_keys[SDL_SCANCODE_V].keyInput) { setHideAll(true); if (wedget.nameid == "yes") g_stateConfirm = StateConfirm.yes; else if (wedget.nameid == "no") g_stateConfirm = StateConfirm.no; } } else { _focus = Focus.off; } } } /// Draw void draw() { foreach(w; _wedgets) { if (! w.hidden) w.draw; } } }
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_5_banking-7747491218.notation#_copSALmGEeKQQp7P9cQvNQ"/> </availablePage> </pageList> <sashModel currentSelection="//@sashModel/@windows.0/@children.0"> <windows> <children xsi:type="di:TabFolder"> <children> <emfPageIdentifier href="VAR_5_banking-7747491218.notation#_copSALmGEeKQQp7P9cQvNQ"/> </children> </children> </windows> </sashModel> </di:SashWindowsMngr>
D
// Written in the D programming language. /** * Yajl Decoder * * Example: * ----- * Decoder decoder; * if (decoder.decode(`{"foo":"bar"}`)) * assert(decoder.decodedValue!(string[string]) == ["foo":"bar"]); * ----- * * See_Also: * $(LINK2 http://lloyd.github.com/yajl/yajl-2.0.1/yajl__parse_8h.html, Yajl parse header)$(BR) * * Copyright: Copyright Masahiro Nakagawa 2013-. * License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. * Authors: Masahiro Nakagawa */ module yajl.decoder; import yajl.c.parse; import yajl.common; public import std.json; import std.array : popBack; import std.conv; /** * Decoder provides the method for deserializing JSON into a D object. */ struct Decoder { /// See: http://lloyd.github.com/yajl/yajl-2.0.1/yajl__parse_8h.html#a5434a7c3b3165d782ea42c17d6ba9ac3 static struct Option { bool allowComments; bool dontValidateStrings; bool allowTrailingGarbage; bool allowMultipleValues; bool allowPartialValue; } private: static enum ContainerType { arrayItem, mapKey, mapValue } static struct Container { ContainerType type; // value container type JSONValue value; // current value string key; // for map value } yajl_handle _handle; Container[] _stack; size_t _nested; public: /** * Constructs an Decoder object with $(D_PARAM opt). */ @trusted this(ref Option opt) { initialize(); setDecoderConfig(_handle, opt); } @trusted ~this() { clear(); } @property { /** * Returns the decoded object. */ nothrow ref inout(T) decodedValue(T = JSONValue)() inout if (is(T : JSONValue)) { return _stack[0].value; } /// ditto inout(T) decodedValue(T = JSONValue)() inout if (!is(T : JSONValue)) { return cast(inout(T))fromJSONValue!T(_stack[0].value); } } /** * Try to decode the $(D_PARAM json). The decoded result is retrieved from $(LREF decodedValue). * * Returns: * true if parsing succeeded. Passed json is insufficient, returns false. * * Throws: * a YajlException when parsing error ocurred. */ bool decode(in const(char)[] json) { initialize(); checkStatus(yajl_parse(_handle, cast(const(ubyte)*)json.ptr, json.length), json); if (_nested == 0) { checkStatus(yajl_complete_parse(_handle), json); return true; } return false; } private: void initialize() { if (_handle is null) _handle = yajl_alloc(&yajlCallbacks, &yajlAllocFuncs, &this); if (_nested == 0) _stack.clear(); } void clear() { if (_handle !is null) { yajl_free(_handle); _handle = null; } } @safe void checkStatus(in yajl_status status, lazy const(char)[] json) { if (status != yajl_status.yajl_status_ok) throw new YajlException(formatStatus(_handle, json)); } @trusted static void setDecoderConfig(yajl_handle handle, ref Decoder.Option opt) { if (opt.allowComments) yajl_config(handle, yajl_option.yajl_allow_comments, 1); if (opt.dontValidateStrings) yajl_config(handle, yajl_option.yajl_dont_validate_strings, 1); if (opt.allowTrailingGarbage) yajl_config(handle, yajl_option.yajl_allow_trailing_garbage, 1); if (opt.allowMultipleValues) yajl_config(handle, yajl_option.yajl_allow_multiple_values, 1); if (opt.allowPartialValue) yajl_config(handle, yajl_option.yajl_allow_partial_values, 1); } } unittest { static struct Handa { ulong id; string name; double height; int[] arr; bool opEquals(const Handa other) { return (id == other.id) && (name == other.name) && (height == other.height) && (arr == other.arr); } } Handa handa = Handa(1000, "shinobu", 170.0, [1, 2]); immutable json = `{"id":1000,"name":"shinobu","height":170.0,"arr":[1,2]}`; { // normal Decoder decoder; assert(decoder.decode(json)); assert(decoder.decodedValue!Handa == handa); } { // with splitted json Decoder decoder; assert(!decoder.decode(`{"id":1000,"name":"shino`)); assert(decoder.decode(`bu","height":170.0,"arr":[1,2]}`)); assert(decoder.decodedValue!Handa == handa); } { // with comments Decoder.Option opt; opt.allowComments = true; Decoder decoder = Decoder(opt); assert(decoder.decode(`{/* test */ "foo":"bar"}`)); assert(decoder.decodedValue!(string[string]) == ["foo":"bar"]); } { // with multiple values Decoder.Option opt; opt.allowMultipleValues = true; int i; Decoder decoder = Decoder(opt); foreach (_; 0..10) { assert(decoder.decode(json)); assert(decoder.decodedValue!Handa == handa); i++; } assert(i == 10); } { // json array static struct Sect { string attr = "sect"; bool opEquals(const Sect other) { return attr == other.attr; } } immutable composed = `[{"attr":"sect"},{"attr":"sect"},{"attr":"sect"}]`; Decoder decoder; assert(decoder.decode(composed)); assert(decoder.decodedValue!(Sect[]) == [Sect(), Sect(), Sect()]); } } private: @trusted string formatStatus(yajl_handle handle, in const(char)[] json) { import std.c.string : strlen; auto msg = yajl_get_error(handle, 1, cast(const(ubyte)*)json.ptr, json.length); scope(exit) { yajl_free_error(handle, msg); } return cast(string)(msg[0..strlen(cast(const(char*))msg)].dup); } @trusted void setParsedValue(T)(void* ctx, auto ref T value) { Decoder* decoder = cast(Decoder*)ctx; JSONValue v = JSONValue(value); setParsedValueToContainer(decoder, v); } @trusted void setParsedValueToContainer(Decoder* decoder, ref JSONValue value) { auto container = &decoder._stack[decoder._nested - 1]; final switch (container.type) { case Decoder.ContainerType.arrayItem: container.value.array ~= value; break; case Decoder.ContainerType.mapKey: container.key = value.str; container.type = Decoder.ContainerType.mapValue; break; case Decoder.ContainerType.mapValue: container.value.object[container.key] = value; container.type = Decoder.ContainerType.mapKey; break; } } extern(C) { int callbackNull(void* ctx) { setParsedValue(ctx, null); return 1; } int callbackBool(void* ctx, int boolean) { setParsedValue(ctx, boolean != 0); return 1; } int callbackNumber(void* ctx, const(char)* buf, size_t len) { static bool checkFloatFormat(const(char)* b, size_t l) { import std.c.string; return memchr(b, '.', l) || memchr(b, 'e', l) || memchr(b, 'E', l); } if (checkFloatFormat(buf, len)) setParsedValue(ctx, to!real(buf[0..len])); else setParsedValue(ctx, to!long(buf[0..len])); return 1; } int callbackString(void* ctx, const(ubyte)* buf, size_t len) { setParsedValue(ctx, cast(string)(buf[0..len])); return 1; } int callbackStartMap(void* ctx) { JSONValue[string] obj; JSONValue value = JSONValue(obj); Decoder* decoder = cast(Decoder*)ctx; decoder._nested++; decoder._stack.length = decoder._nested; decoder._stack[decoder._nested - 1] = Decoder.Container(Decoder.ContainerType.mapKey, value); return 1; } int callbackMapKey(void* ctx, const(ubyte)* buf, size_t len) { setParsedValue(ctx, cast(string)(buf[0..len])); return 1; } int callbackEndMap(void* ctx) { Decoder* decoder = cast(Decoder*)ctx; decoder._nested--; if (decoder._nested > 0) { setParsedValueToContainer(decoder, decoder._stack[decoder._nested].value); decoder._stack.popBack(); } return 1; } int callbackStartArray(void* ctx) { JSONValue[] arr; JSONValue value = JSONValue(arr); Decoder* decoder = cast(Decoder*)ctx; decoder._nested++; decoder._stack.length = decoder._nested; decoder._stack[decoder._nested - 1] = Decoder.Container(Decoder.ContainerType.arrayItem, value); return 1; } int callbackEndArray(void* ctx) { Decoder* decoder = cast(Decoder*)ctx; decoder._nested--; if (decoder._nested > 0) { setParsedValueToContainer(decoder, decoder._stack[decoder._nested].value); decoder._stack.popBack(); } return 1; } yajl_callbacks yajlCallbacks = yajl_callbacks(&callbackNull, &callbackBool, null, null, &callbackNumber, &callbackString, &callbackStartMap, &callbackMapKey, &callbackEndMap, &callbackStartArray, &callbackEndArray); } @trusted T fromJSONValue(T)(ref const JSONValue value) { import std.array : array; import std.algorithm : map; import std.range : ElementType; import std.traits; @trusted void typeMismatch(string type) { throw new JSONException(text("Not ", type,": type = ", value.type)); } T result; static if (is(Unqual!T U: Nullable!U)) { result = fromJSONValue!U(value); } else static if (isBoolean!T) { if (value.type != JSON_TYPE.TRUE && value.type != JSON_TYPE.FALSE) typeMismatch("boolean"); result = value.type == JSON_TYPE.TRUE; } else static if (isIntegral!T) { if (value.type != JSON_TYPE.INTEGER) typeMismatch("integer"); result = value.integer.to!T(); } else static if (isFloatingPoint!T) { switch (value.type) { case JSON_TYPE.FLOAT: result = value.floating.to!T(); break; case JSON_TYPE.INTEGER: result = value.integer.to!T(); break; case JSON_TYPE.STRING: // for "INF" result = value.str.to!T(); break; default: typeMismatch("floating point"); } } else static if (isSomeString!T) { if (value.type == JSON_TYPE.NULL) return null; if (value.type != JSON_TYPE.STRING) typeMismatch("string"); result = value.str.to!T(); } else static if (isArray!T) { if (value.type == JSON_TYPE.NULL) return null; if (value.type != JSON_TYPE.ARRAY) typeMismatch("array"); result = array(map!((a){ return fromJSONValue!(ElementType!T)(a); })(value.array)); } else static if (isAssociativeArray!T) { if (value.type == JSON_TYPE.NULL) return null; if (value.type != JSON_TYPE.OBJECT) typeMismatch("object"); foreach (k, v; value.object) result[k] = fromJSONValue!(ValueType!T)(v); } else static if (is(T == struct) || is(T == class)) { static if (is(T == class)) { if (value.type == JSON_TYPE.NULL) return null; } if (value.type != JSON_TYPE.OBJECT) typeMismatch("object"); static if (is(T == class)) { result = new T(); } foreach(i, ref v; result.tupleof) { auto field = getFieldName!(T, i) in value.object; if (field) v = fromJSONValue!(typeof(v))(*field); } } return result; }
D
// Written in the D programming language. /** Standard I/O functions that extend $(B core.stdc.stdio). $(B core.stdc.stdio) is $(D_PARAM public)ally imported when importing $(B std.stdio). Source: $(PHOBOSSRC std/stdio.d) Copyright: Copyright The D Language Foundation 2007-. License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: $(HTTP digitalmars.com, Walter Bright), $(HTTP erdani.org, Andrei Alexandrescu), Alex Rønne Petersen */ module std.stdio; import core.stdc.stddef : wchar_t; public import core.stdc.stdio; import std.algorithm.mutation : copy; import std.meta : allSatisfy; import std.range.primitives : ElementEncodingType, empty, front, isBidirectionalRange, isInputRange, put; import std.traits : isSomeChar, isSomeString, Unqual, isPointer; import std.typecons : Flag, No, Yes; /++ If flag `KeepTerminator` is set to `KeepTerminator.yes`, then the delimiter is included in the strings returned. +/ alias KeepTerminator = Flag!"keepTerminator"; version (CRuntime_Microsoft) { version = MICROSOFT_STDIO; } else version (CRuntime_DigitalMars) { // Specific to the way Digital Mars C does stdio version = DIGITAL_MARS_STDIO; } else version (CRuntime_Glibc) { // Specific to the way Gnu C does stdio version = GCC_IO; } else version (CRuntime_Bionic) { version = GENERIC_IO; } else version (CRuntime_Musl) { version = GENERIC_IO; } else version (CRuntime_UClibc) { // uClibc supports GCC IO version = GCC_IO; } else version (OSX) { version = GENERIC_IO; } else version (iOS) { version = GENERIC_IO; } else version (TVOS) { version = GENERIC_IO; } else version (WatchOS) { version = GENERIC_IO; } else version (FreeBSD) { version = GENERIC_IO; } else version (NetBSD) { version = GENERIC_IO; } else version (DragonFlyBSD) { version = GENERIC_IO; } else version (Solaris) { version = GENERIC_IO; } // Character type used for operating system filesystem APIs version (Windows) { private alias FSChar = wchar; } else { private alias FSChar = char; } version (Windows) { // core.stdc.stdio.fopen expects file names to be // encoded in CP_ACP on Windows instead of UTF-8. /+ Waiting for druntime pull 299 +/ extern (C) nothrow @nogc FILE* _wfopen(in wchar* filename, in wchar* mode); extern (C) nothrow @nogc FILE* _wfreopen(in wchar* filename, in wchar* mode, FILE* fp); import core.sys.windows.basetsd : HANDLE; } version (Posix) { static import core.sys.posix.stdio; // getdelim } version (DIGITAL_MARS_STDIO) { extern (C) { /* ** * Digital Mars under-the-hood C I/O functions. * Use _iobuf* for the unshared version of FILE*, * usable when the FILE is locked. */ nothrow: @nogc: int _fputc_nlock(int, _iobuf*); int _fputwc_nlock(int, _iobuf*); int _fgetc_nlock(_iobuf*); int _fgetwc_nlock(_iobuf*); int __fp_lock(FILE*); void __fp_unlock(FILE*); int setmode(int, int); } alias FPUTC = _fputc_nlock; alias FPUTWC = _fputwc_nlock; alias FGETC = _fgetc_nlock; alias FGETWC = _fgetwc_nlock; alias FLOCK = __fp_lock; alias FUNLOCK = __fp_unlock; alias _setmode = setmode; int _fileno(FILE* f) { return f._file; } alias fileno = _fileno; } else version (MICROSOFT_STDIO) { extern (C) { /* ** * Microsoft under-the-hood C I/O functions */ nothrow: @nogc: int _fputc_nolock(int, _iobuf*); int _fputwc_nolock(int, _iobuf*); int _fgetc_nolock(_iobuf*); int _fgetwc_nolock(_iobuf*); void _lock_file(FILE*); void _unlock_file(FILE*); int _setmode(int, int); int _fileno(FILE*); FILE* _fdopen(int, const (char)*); int _fseeki64(FILE*, long, int); long _ftelli64(FILE*); } alias FPUTC = _fputc_nolock; alias FPUTWC = _fputwc_nolock; alias FGETC = _fgetc_nolock; alias FGETWC = _fgetwc_nolock; alias FLOCK = _lock_file; alias FUNLOCK = _unlock_file; alias setmode = _setmode; alias fileno = _fileno; enum { _O_WTEXT = 0x10000, _O_U16TEXT = 0x20000, _O_U8TEXT = 0x40000, } } else version (GCC_IO) { /* ** * Gnu under-the-hood C I/O functions; see * http://gnu.org/software/libc/manual/html_node/I_002fO-on-Streams.html */ extern (C) { nothrow: @nogc: int fputc_unlocked(int, _iobuf*); int fputwc_unlocked(wchar_t, _iobuf*); int fgetc_unlocked(_iobuf*); int fgetwc_unlocked(_iobuf*); void flockfile(FILE*); void funlockfile(FILE*); private size_t fwrite_unlocked(const(void)* ptr, size_t size, size_t n, _iobuf *stream); } alias FPUTC = fputc_unlocked; alias FPUTWC = fputwc_unlocked; alias FGETC = fgetc_unlocked; alias FGETWC = fgetwc_unlocked; alias FLOCK = flockfile; alias FUNLOCK = funlockfile; } else version (GENERIC_IO) { nothrow: @nogc: extern (C) { void flockfile(FILE*); void funlockfile(FILE*); } int fputc_unlocked(int c, _iobuf* fp) { return fputc(c, cast(shared) fp); } int fputwc_unlocked(wchar_t c, _iobuf* fp) { import core.stdc.wchar_ : fputwc; return fputwc(c, cast(shared) fp); } int fgetc_unlocked(_iobuf* fp) { return fgetc(cast(shared) fp); } int fgetwc_unlocked(_iobuf* fp) { import core.stdc.wchar_ : fgetwc; return fgetwc(cast(shared) fp); } alias FPUTC = fputc_unlocked; alias FPUTWC = fputwc_unlocked; alias FGETC = fgetc_unlocked; alias FGETWC = fgetwc_unlocked; alias FLOCK = flockfile; alias FUNLOCK = funlockfile; } else { static assert(0, "unsupported C I/O system"); } static if (__traits(compiles, core.sys.posix.stdio.getdelim)) { extern(C) nothrow @nogc { // @@@DEPRECATED_2.104@@@ deprecated("To be removed after 2.104. Use core.sys.posix.stdio.getdelim instead.") ptrdiff_t getdelim(char**, size_t*, int, FILE*); // @@@DEPRECATED_2.104@@@ // getline() always comes together with getdelim() deprecated("To be removed after 2.104. Use core.sys.posix.stdio.getline instead.") ptrdiff_t getline(char**, size_t*, FILE*); } } //------------------------------------------------------------------------------ private struct ByRecordImpl(Fields...) { private: import std.typecons : Tuple; File file; char[] line; Tuple!(Fields) current; string format; public: this(File f, string format) { assert(f.isOpen); file = f; this.format = format; popFront(); // prime the range } /// Range primitive implementations. @property bool empty() { return !file.isOpen; } /// Ditto @property ref Tuple!(Fields) front() { return current; } /// Ditto void popFront() { import std.conv : text; import std.exception : enforce; import std.format : formattedRead; import std.string : chomp; enforce(file.isOpen, "ByRecord: File must be open"); file.readln(line); if (!line.length) { file.detach(); } else { line = chomp(line); formattedRead(line, format, &current); enforce(line.empty, text("Leftover characters in record: `", line, "'")); } } } template byRecord(Fields...) { auto byRecord(File f, string format) { return typeof(return)(f, format); } } /** Encapsulates a `FILE*`. Generally D does not attempt to provide thin wrappers over equivalent functions in the C standard library, but manipulating `FILE*` values directly is unsafe and error-prone in many ways. The `File` type ensures safe manipulation, automatic file closing, and a lot of convenience. The underlying `FILE*` handle is maintained in a reference-counted manner, such that as soon as the last `File` variable bound to a given `FILE*` goes out of scope, the underlying `FILE*` is automatically closed. Example: ---- // test.d import std.stdio; void main(string[] args) { auto f = File("test.txt", "w"); // open for writing f.write("Hello"); if (args.length > 1) { auto g = f; // now g and f write to the same file // internal reference count is 2 g.write(", ", args[1]); // g exits scope, reference count decreases to 1 } f.writeln("!"); // f exits scope, reference count falls to zero, // underlying `FILE*` is closed. } ---- $(CONSOLE % rdmd test.d Jimmy % cat test.txt Hello, Jimmy! % __ ) */ struct File { import core.atomic : atomicOp, atomicStore, atomicLoad; import std.range.primitives : ElementEncodingType; import std.traits : isScalarType, isArray; enum Orientation { unknown, narrow, wide } private struct Impl { FILE * handle = null; // Is null iff this Impl is closed by another File shared uint refs = uint.max / 2; bool isPopened; // true iff the stream has been created by popen() Orientation orientation; } private Impl* _p; private string _name; package this(FILE* handle, string name, uint refs = 1, bool isPopened = false) @trusted { import core.stdc.stdlib : malloc; import std.exception : enforce; assert(!_p); _p = cast(Impl*) enforce(malloc(Impl.sizeof), "Out of memory"); initImpl(handle, name, refs, isPopened); } private void initImpl(FILE* handle, string name, uint refs = 1, bool isPopened = false) { assert(_p); _p.handle = handle; atomicStore(_p.refs, refs); _p.isPopened = isPopened; _p.orientation = Orientation.unknown; _name = name; } /** Constructor taking the name of the file to open and the open mode. Copying one `File` object to another results in the two `File` objects referring to the same underlying file. The destructor automatically closes the file as soon as no `File` object refers to it anymore. Params: name = range or string representing the file _name stdioOpenmode = range or string represting the open mode (with the same semantics as in the C standard library $(HTTP cplusplus.com/reference/clibrary/cstdio/fopen.html, fopen) function) Throws: `ErrnoException` if the file could not be opened. */ this(string name, scope const(char)[] stdioOpenmode = "rb") @safe { import std.conv : text; import std.exception : errnoEnforce; this(errnoEnforce(_fopen(name, stdioOpenmode), text("Cannot open file `", name, "' in mode `", stdioOpenmode, "'")), name); // MSVCRT workaround (issue 14422) version (MICROSOFT_STDIO) { setAppendWin(stdioOpenmode); } } /// ditto this(R1, R2)(R1 name) if (isInputRange!R1 && isSomeChar!(ElementEncodingType!R1)) { import std.conv : to; this(name.to!string, "rb"); } /// ditto this(R1, R2)(R1 name, R2 mode) if (isInputRange!R1 && isSomeChar!(ElementEncodingType!R1) && isInputRange!R2 && isSomeChar!(ElementEncodingType!R2)) { import std.conv : to; this(name.to!string, mode.to!string); } @safe unittest { static import std.file; import std.utf : byChar; auto deleteme = testFilename(); auto f = File(deleteme.byChar, "w".byChar); f.close(); std.file.remove(deleteme); } ~this() @safe { detach(); } this(this) @safe nothrow { if (!_p) return; assert(atomicLoad(_p.refs)); atomicOp!"+="(_p.refs, 1); } /** Assigns a file to another. The target of the assignment gets detached from whatever file it was attached to, and attaches itself to the new file. */ ref File opAssign(File rhs) @safe return { import std.algorithm.mutation : swap; swap(this, rhs); return this; } // https://issues.dlang.org/show_bug.cgi?id=20129 @safe unittest { File[int] aa; aa.require(0, File.init); } /** Detaches from the current file (throwing on failure), and then attempts to _open file `name` with mode `stdioOpenmode`. The mode has the same semantics as in the C standard library $(HTTP cplusplus.com/reference/clibrary/cstdio/fopen.html, fopen) function. Throws: `ErrnoException` in case of error. */ void open(string name, scope const(char)[] stdioOpenmode = "rb") @trusted { resetFile(name, stdioOpenmode, false); } // https://issues.dlang.org/show_bug.cgi?id=20585 @system unittest { File f; try f.open("doesn't exist"); catch (Exception _e) { } assert(!f.isOpen); f.close(); // to check not crash here } private void resetFile(string name, scope const(char)[] stdioOpenmode, bool isPopened) @trusted { import core.stdc.stdlib : malloc; import std.exception : enforce; import std.conv : text; import std.exception : errnoEnforce; if (_p !is null) { detach(); } FILE* handle; version (Posix) { if (isPopened) { errnoEnforce(handle = _popen(name, stdioOpenmode), "Cannot run command `"~name~"'"); } else { errnoEnforce(handle = _fopen(name, stdioOpenmode), text("Cannot open file `", name, "' in mode `", stdioOpenmode, "'")); } } else { assert(isPopened == false); errnoEnforce(handle = _fopen(name, stdioOpenmode), text("Cannot open file `", name, "' in mode `", stdioOpenmode, "'")); } _p = cast(Impl*) enforce(malloc(Impl.sizeof), "Out of memory"); initImpl(handle, name, 1, isPopened); version (MICROSOFT_STDIO) { setAppendWin(stdioOpenmode); } } private void closeHandles() @trusted { assert(_p); import std.exception : errnoEnforce; version (Posix) { import core.sys.posix.stdio : pclose; import std.format : format; if (_p.isPopened) { auto res = pclose(_p.handle); errnoEnforce(res != -1, "Could not close pipe `"~_name~"'"); _p.handle = null; return; } } if (_p.handle) { auto handle = _p.handle; _p.handle = null; // fclose disassociates the FILE* even in case of error (issue 19751) errnoEnforce(.fclose(handle) == 0, "Could not close file `"~_name~"'"); } } version (MICROSOFT_STDIO) { private void setAppendWin(scope const(char)[] stdioOpenmode) @safe { bool append, update; foreach (c; stdioOpenmode) if (c == 'a') append = true; else if (c == '+') update = true; if (append && !update) seek(size); } } /** Reuses the `File` object to either open a different file, or change the file mode. If `name` is `null`, the mode of the currently open file is changed; otherwise, a new file is opened, reusing the C `FILE*`. The function has the same semantics as in the C standard library $(HTTP cplusplus.com/reference/cstdio/freopen/, freopen) function. Note: Calling `reopen` with a `null` `name` is not implemented in all C runtimes. Throws: `ErrnoException` in case of error. */ void reopen(string name, scope const(char)[] stdioOpenmode = "rb") @trusted { import std.conv : text; import std.exception : enforce, errnoEnforce; import std.internal.cstring : tempCString; enforce(isOpen, "Attempting to reopen() an unopened file"); auto namez = (name == null ? _name : name).tempCString!FSChar(); auto modez = stdioOpenmode.tempCString!FSChar(); FILE* fd = _p.handle; version (Windows) fd = _wfreopen(namez, modez, fd); else fd = freopen(namez, modez, fd); errnoEnforce(fd, name ? text("Cannot reopen file `", name, "' in mode `", stdioOpenmode, "'") : text("Cannot reopen file in mode `", stdioOpenmode, "'")); if (name !is null) _name = name; } @system unittest // Test changing filename { import std.exception : assertThrown, assertNotThrown; static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "foo"); scope(exit) std.file.remove(deleteme); auto f = File(deleteme); assert(f.readln() == "foo"); auto deleteme2 = testFilename(); std.file.write(deleteme2, "bar"); scope(exit) std.file.remove(deleteme2); f.reopen(deleteme2); assert(f.name == deleteme2); assert(f.readln() == "bar"); f.close(); } version (CRuntime_DigitalMars) {} else // Not implemented version (CRuntime_Microsoft) {} else // Not implemented @system unittest // Test changing mode { import std.exception : assertThrown, assertNotThrown; static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "foo"); scope(exit) std.file.remove(deleteme); auto f = File(deleteme, "r+"); assert(f.readln() == "foo"); f.reopen(null, "w"); f.write("bar"); f.seek(0); f.reopen(null, "a"); f.write("baz"); assert(f.name == deleteme); f.close(); assert(std.file.readText(deleteme) == "barbaz"); } /** Detaches from the current file (throwing on failure), and then runs a command by calling the C standard library function $(HTTP opengroup.org/onlinepubs/007908799/xsh/_popen.html, _popen). Throws: `ErrnoException` in case of error. */ version (Posix) void popen(string command, scope const(char)[] stdioOpenmode = "r") @safe { resetFile(command, stdioOpenmode ,true); } /** First calls `detach` (throwing on failure), then attempts to associate the given file descriptor with the `File`, and sets the file's name to `null`. The mode must be compatible with the mode of the file descriptor. Throws: `ErrnoException` in case of error. Params: fd = File descriptor to associate with this `File`. stdioOpenmode = Mode to associate with this File. The mode has the same semantics semantics as in the C standard library $(HTTP cplusplus.com/reference/cstdio/fopen/, fdopen) function, and must be compatible with `fd`. */ void fdopen(int fd, scope const(char)[] stdioOpenmode = "rb") @safe { fdopen(fd, stdioOpenmode, null); } package void fdopen(int fd, scope const(char)[] stdioOpenmode, string name) @trusted { import std.exception : errnoEnforce; import std.internal.cstring : tempCString; auto modez = stdioOpenmode.tempCString(); detach(); version (DIGITAL_MARS_STDIO) { // This is a re-implementation of DMC's fdopen, but without the // mucking with the file descriptor. POSIX standard requires the // new fdopen'd file to retain the given file descriptor's // position. auto fp = fopen("NUL", modez); errnoEnforce(fp, "Cannot open placeholder NUL stream"); FLOCK(fp); auto iob = cast(_iobuf*) fp; .close(iob._file); iob._file = fd; iob._flag &= ~_IOTRAN; FUNLOCK(fp); } else { version (Windows) // MSVCRT auto fp = _fdopen(fd, modez); else version (Posix) { import core.sys.posix.stdio : fdopen; auto fp = fdopen(fd, modez); } errnoEnforce(fp); } this = File(fp, name); } // Declare a dummy HANDLE to allow generating documentation // for Windows-only methods. version (StdDdoc) { version (Windows) {} else alias HANDLE = int; } /** First calls `detach` (throwing on failure), and then attempts to associate the given Windows `HANDLE` with the `File`. The mode must be compatible with the access attributes of the handle. Windows only. Throws: `ErrnoException` in case of error. */ version (StdDdoc) void windowsHandleOpen(HANDLE handle, scope const(char)[] stdioOpenmode); version (Windows) void windowsHandleOpen(HANDLE handle, scope const(char)[] stdioOpenmode) { import core.stdc.stdint : intptr_t; import std.exception : errnoEnforce; import std.format : format; // Create file descriptors from the handles version (DIGITAL_MARS_STDIO) auto fd = _handleToFD(handle, FHND_DEVICE); else // MSVCRT { int mode; modeLoop: foreach (c; stdioOpenmode) switch (c) { case 'r': mode |= _O_RDONLY; break; case '+': mode &=~_O_RDONLY; break; case 'a': mode |= _O_APPEND; break; case 'b': mode |= _O_BINARY; break; case 't': mode |= _O_TEXT; break; case ',': break modeLoop; default: break; } auto fd = _open_osfhandle(cast(intptr_t) handle, mode); } errnoEnforce(fd >= 0, "Cannot open Windows HANDLE"); fdopen(fd, stdioOpenmode, "HANDLE(%s)".format(handle)); } /** Returns `true` if the file is opened. */ @property bool isOpen() const @safe pure nothrow { return _p !is null && _p.handle; } /** Returns `true` if the file is at end (see $(HTTP cplusplus.com/reference/clibrary/cstdio/feof.html, feof)). Throws: `Exception` if the file is not opened. */ @property bool eof() const @trusted pure { import std.exception : enforce; enforce(_p && _p.handle, "Calling eof() against an unopened file."); return .feof(cast(FILE*) _p.handle) != 0; } /** Returns the name last used to initialize this `File`, if any. Some functions that create or initialize the `File` set the name field to `null`. Examples include $(LREF tmpfile), $(LREF wrapFile), and $(LREF fdopen). See the documentation of those functions for details. Returns: The name last used to initialize this this file, or `null` otherwise. */ @property string name() const @safe pure nothrow { return _name; } /** If the file is not opened, returns `true`. Otherwise, returns $(HTTP cplusplus.com/reference/clibrary/cstdio/ferror.html, ferror) for the file handle. */ @property bool error() const @trusted pure nothrow { return !isOpen || .ferror(cast(FILE*) _p.handle); } @safe unittest { // https://issues.dlang.org/show_bug.cgi?id=12349 static import std.file; auto deleteme = testFilename(); auto f = File(deleteme, "w"); scope(exit) std.file.remove(deleteme); f.close(); assert(f.error); } /** Detaches from the underlying file. If the sole owner, calls `close`. Throws: `ErrnoException` on failure if closing the file. */ void detach() @trusted { import core.stdc.stdlib : free; if (!_p) return; scope(exit) _p = null; if (atomicOp!"-="(_p.refs, 1) == 0) { scope(exit) free(_p); closeHandles(); } } @safe unittest { static import std.file; auto deleteme = testFilename(); scope(exit) std.file.remove(deleteme); auto f = File(deleteme, "w"); { auto f2 = f; f2.detach(); } assert(f._p.refs == 1); f.close(); } /** If the file was unopened, succeeds vacuously. Otherwise closes the file (by calling $(HTTP cplusplus.com/reference/clibrary/cstdio/fclose.html, fclose)), throwing on error. Even if an exception is thrown, afterwards the $(D File) object is empty. This is different from `detach` in that it always closes the file; consequently, all other `File` objects referring to the same handle will see a closed file henceforth. Throws: `ErrnoException` on error. */ void close() @trusted { import core.stdc.stdlib : free; import std.exception : errnoEnforce; if (!_p) return; // succeed vacuously scope(exit) { if (atomicOp!"-="(_p.refs, 1) == 0) free(_p); _p = null; // start a new life } if (!_p.handle) return; // Impl is closed by another File scope(exit) _p.handle = null; // nullify the handle anyway closeHandles(); } /** If the file is not opened, succeeds vacuously. Otherwise, returns $(HTTP cplusplus.com/reference/clibrary/cstdio/_clearerr.html, _clearerr) for the file handle. */ void clearerr() @safe pure nothrow { _p is null || _p.handle is null || .clearerr(_p.handle); } /** Flushes the C `FILE` buffers. Calls $(HTTP cplusplus.com/reference/clibrary/cstdio/_fflush.html, _fflush) for the file handle. Throws: `Exception` if the file is not opened or if the call to `fflush` fails. */ void flush() @trusted { import std.exception : enforce, errnoEnforce; enforce(isOpen, "Attempting to flush() in an unopened file"); errnoEnforce(.fflush(_p.handle) == 0); } @safe unittest { // https://issues.dlang.org/show_bug.cgi?id=12349 import std.exception : assertThrown; static import std.file; auto deleteme = testFilename(); auto f = File(deleteme, "w"); scope(exit) std.file.remove(deleteme); f.close(); assertThrown(f.flush()); } /** Forces any data buffered by the OS to be written to disk. Call $(LREF flush) before calling this function to flush the C `FILE` buffers first. This function calls $(HTTP msdn.microsoft.com/en-us/library/windows/desktop/aa364439%28v=vs.85%29.aspx, `FlushFileBuffers`) on Windows and $(HTTP pubs.opengroup.org/onlinepubs/7908799/xsh/fsync.html, `fsync`) on POSIX for the file handle. Throws: `Exception` if the file is not opened or if the OS call fails. */ void sync() @trusted { import std.exception : enforce; enforce(isOpen, "Attempting to sync() an unopened file"); version (Windows) { import core.sys.windows.winbase : FlushFileBuffers; wenforce(FlushFileBuffers(windowsHandle), "FlushFileBuffers failed"); } else { import core.sys.posix.unistd : fsync; import std.exception : errnoEnforce; errnoEnforce(fsync(fileno) == 0, "fsync failed"); } } /** Calls $(HTTP cplusplus.com/reference/clibrary/cstdio/fread.html, fread) for the file handle. The number of items to read and the size of each item is inferred from the size and type of the input array, respectively. Returns: The slice of `buffer` containing the data that was actually read. This will be shorter than `buffer` if EOF was reached before the buffer could be filled. Throws: `Exception` if `buffer` is empty. `ErrnoException` if the file is not opened or the call to `fread` fails. `rawRead` always reads in binary mode on Windows. */ T[] rawRead(T)(T[] buffer) { import std.exception : errnoEnforce; if (!buffer.length) throw new Exception("rawRead must take a non-empty buffer"); version (Windows) { immutable fd = ._fileno(_p.handle); immutable mode = ._setmode(fd, _O_BINARY); scope(exit) ._setmode(fd, mode); version (DIGITAL_MARS_STDIO) { import core.atomic : atomicOp; // https://issues.dlang.org/show_bug.cgi?id=4243 immutable info = __fhnd_info[fd]; atomicOp!"&="(__fhnd_info[fd], ~FHND_TEXT); scope(exit) __fhnd_info[fd] = info; } } immutable freadResult = trustedFread(_p.handle, buffer); assert(freadResult <= buffer.length); // fread return guarantee if (freadResult != buffer.length) // error or eof { errnoEnforce(!error); return buffer[0 .. freadResult]; } return buffer; } /// @system unittest { static import std.file; auto testFile = std.file.deleteme(); std.file.write(testFile, "\r\n\n\r\n"); scope(exit) std.file.remove(testFile); auto f = File(testFile, "r"); auto buf = f.rawRead(new char[5]); f.close(); assert(buf == "\r\n\n\r\n"); } /** Calls $(HTTP cplusplus.com/reference/clibrary/cstdio/fwrite.html, fwrite) for the file handle. The number of items to write and the size of each item is inferred from the size and type of the input array, respectively. An error is thrown if the buffer could not be written in its entirety. `rawWrite` always writes in binary mode on Windows. Throws: `ErrnoException` if the file is not opened or if the call to `fwrite` fails. */ void rawWrite(T)(in T[] buffer) { import std.conv : text; import std.exception : errnoEnforce; version (Windows) { immutable fd = ._fileno(_p.handle); immutable oldMode = ._setmode(fd, _O_BINARY); if (oldMode != _O_BINARY) { // need to flush the data that was written with the original mode ._setmode(fd, oldMode); flush(); // before changing translation mode ._setmode(fd, _O_BINARY); .setmode(fd, _O_BINARY); } version (DIGITAL_MARS_STDIO) { import core.atomic : atomicOp; // https://issues.dlang.org/show_bug.cgi?id=4243 immutable info = __fhnd_info[fd]; atomicOp!"&="(__fhnd_info[fd], ~FHND_TEXT); scope (exit) __fhnd_info[fd] = info; } scope (exit) { if (oldMode != _O_BINARY) { flush(); ._setmode(fd, oldMode); } } } auto result = trustedFwrite(_p.handle, buffer); if (result == result.max) result = 0; errnoEnforce(result == buffer.length, text("Wrote ", result, " instead of ", buffer.length, " objects of type ", T.stringof, " to file `", _name, "'")); } /// @system unittest { static import std.file; auto testFile = std.file.deleteme(); auto f = File(testFile, "w"); scope(exit) std.file.remove(testFile); f.rawWrite("\r\n\n\r\n"); f.close(); assert(std.file.read(testFile) == "\r\n\n\r\n"); } /** Calls $(HTTP cplusplus.com/reference/clibrary/cstdio/fseek.html, fseek) for the file handle to move its position indicator. Params: offset = Binary files: Number of bytes to offset from origin.$(BR) Text files: Either zero, or a value returned by $(LREF tell). origin = Binary files: Position used as reference for the offset, must be one of $(REF_ALTTEXT SEEK_SET, SEEK_SET, core,stdc,stdio), $(REF_ALTTEXT SEEK_CUR, SEEK_CUR, core,stdc,stdio) or $(REF_ALTTEXT SEEK_END, SEEK_END, core,stdc,stdio).$(BR) Text files: Shall necessarily be $(REF_ALTTEXT SEEK_SET, SEEK_SET, core,stdc,stdio). Throws: `Exception` if the file is not opened. `ErrnoException` if the call to `fseek` fails. */ void seek(long offset, int origin = SEEK_SET) @trusted { import std.conv : to, text; import std.exception : enforce, errnoEnforce; // Some libc sanitize the whence input (e.g. glibc), but some don't, // e.g. Microsoft runtime crashes on an invalid origin, // and Musl additionally accept SEEK_DATA & SEEK_HOLE (Linux extension). // To provide a consistent behavior cross platform, we use the glibc check // See also https://issues.dlang.org/show_bug.cgi?id=19797 enforce(origin == SEEK_SET || origin == SEEK_CUR || origin == SEEK_END, "Invalid `origin` argument passed to `seek`, must be one of: SEEK_SET, SEEK_CUR, SEEK_END"); enforce(isOpen, "Attempting to seek() in an unopened file"); version (Windows) { version (CRuntime_Microsoft) { alias fseekFun = _fseeki64; alias off_t = long; } else { alias fseekFun = fseek; alias off_t = int; } } else version (Posix) { import core.sys.posix.stdio : fseeko, off_t; alias fseekFun = fseeko; } errnoEnforce(fseekFun(_p.handle, to!off_t(offset), origin) == 0, "Could not seek in file `"~_name~"'"); } @system unittest { import std.conv : text; static import std.file; import std.exception; auto deleteme = testFilename(); auto f = File(deleteme, "w+"); scope(exit) { f.close(); std.file.remove(deleteme); } f.rawWrite("abcdefghijklmnopqrstuvwxyz"); f.seek(7); assert(f.readln() == "hijklmnopqrstuvwxyz"); version (CRuntime_DigitalMars) auto bigOffset = int.max - 100; else version (CRuntime_Bionic) auto bigOffset = int.max - 100; else auto bigOffset = cast(ulong) int.max + 100; f.seek(bigOffset); assert(f.tell == bigOffset, text(f.tell)); // Uncomment the tests below only if you want to wait for // a long time // f.rawWrite("abcdefghijklmnopqrstuvwxyz"); // f.seek(-3, SEEK_END); // assert(f.readln() == "xyz"); assertThrown(f.seek(0, ushort.max)); } /** Calls $(HTTP cplusplus.com/reference/clibrary/cstdio/ftell.html, ftell) for the managed file handle. Throws: `Exception` if the file is not opened. `ErrnoException` if the call to `ftell` fails. */ @property ulong tell() const @trusted { import std.exception : enforce, errnoEnforce; enforce(isOpen, "Attempting to tell() in an unopened file"); version (Windows) { version (CRuntime_Microsoft) immutable result = _ftelli64(cast(FILE*) _p.handle); else immutable result = ftell(cast(FILE*) _p.handle); } else version (Posix) { import core.sys.posix.stdio : ftello; immutable result = ftello(cast(FILE*) _p.handle); } errnoEnforce(result != -1, "Query ftell() failed for file `"~_name~"'"); return result; } /// @system unittest { import std.conv : text; static import std.file; auto testFile = std.file.deleteme(); std.file.write(testFile, "abcdefghijklmnopqrstuvwqxyz"); scope(exit) { std.file.remove(testFile); } auto f = File(testFile); auto a = new ubyte[4]; f.rawRead(a); assert(f.tell == 4, text(f.tell)); } /** Calls $(HTTP cplusplus.com/reference/clibrary/cstdio/_rewind.html, _rewind) for the file handle. Throws: `Exception` if the file is not opened. */ void rewind() @safe { import std.exception : enforce; enforce(isOpen, "Attempting to rewind() an unopened file"); .rewind(_p.handle); } /** Calls $(HTTP cplusplus.com/reference/clibrary/cstdio/_setvbuf.html, _setvbuf) for the file handle. Throws: `Exception` if the file is not opened. `ErrnoException` if the call to `setvbuf` fails. */ void setvbuf(size_t size, int mode = _IOFBF) @trusted { import std.exception : enforce, errnoEnforce; enforce(isOpen, "Attempting to call setvbuf() on an unopened file"); errnoEnforce(.setvbuf(_p.handle, null, mode, size) == 0, "Could not set buffering for file `"~_name~"'"); } /** Calls $(HTTP cplusplus.com/reference/clibrary/cstdio/_setvbuf.html, _setvbuf) for the file handle. Throws: `Exception` if the file is not opened. `ErrnoException` if the call to `setvbuf` fails. */ void setvbuf(void[] buf, int mode = _IOFBF) @trusted { import std.exception : enforce, errnoEnforce; enforce(isOpen, "Attempting to call setvbuf() on an unopened file"); errnoEnforce(.setvbuf(_p.handle, cast(char*) buf.ptr, mode, buf.length) == 0, "Could not set buffering for file `"~_name~"'"); } version (Windows) { import core.sys.windows.winbase : OVERLAPPED; import core.sys.windows.winnt : BOOL, ULARGE_INTEGER; private BOOL lockImpl(alias F, Flags...)(ulong start, ulong length, Flags flags) { if (!start && !length) length = ulong.max; ULARGE_INTEGER liStart = void, liLength = void; liStart.QuadPart = start; liLength.QuadPart = length; OVERLAPPED overlapped; overlapped.Offset = liStart.LowPart; overlapped.OffsetHigh = liStart.HighPart; overlapped.hEvent = null; return F(windowsHandle, flags, 0, liLength.LowPart, liLength.HighPart, &overlapped); } private static T wenforce(T)(T cond, lazy string str) { import core.sys.windows.winbase : GetLastError; import std.windows.syserror : sysErrorString; if (cond) return cond; throw new Exception(str ~ ": " ~ sysErrorString(GetLastError())); } } version (Posix) { private int lockImpl(int operation, short l_type, ulong start, ulong length) { import core.sys.posix.fcntl : fcntl, flock, off_t; import core.sys.posix.unistd : getpid; import std.conv : to; flock fl = void; fl.l_type = l_type; fl.l_whence = SEEK_SET; fl.l_start = to!off_t(start); fl.l_len = to!off_t(length); fl.l_pid = getpid(); return fcntl(fileno, operation, &fl); } } /** Locks the specified file segment. If the file segment is already locked by another process, waits until the existing lock is released. If both `start` and `length` are zero, the entire file is locked. Locks created using `lock` and `tryLock` have the following properties: $(UL $(LI All locks are automatically released when the process terminates.) $(LI Locks are not inherited by child processes.) $(LI Closing a file will release all locks associated with the file. On POSIX, even locks acquired via a different `File` will be released as well.) $(LI Not all NFS implementations correctly implement file locking.) ) */ void lock(LockType lockType = LockType.readWrite, ulong start = 0, ulong length = 0) { import std.exception : enforce; enforce(isOpen, "Attempting to call lock() on an unopened file"); version (Posix) { import core.sys.posix.fcntl : F_RDLCK, F_SETLKW, F_WRLCK; import std.exception : errnoEnforce; immutable short type = lockType == LockType.readWrite ? F_WRLCK : F_RDLCK; errnoEnforce(lockImpl(F_SETLKW, type, start, length) != -1, "Could not set lock for file `"~_name~"'"); } else version (Windows) { import core.sys.windows.winbase : LockFileEx, LOCKFILE_EXCLUSIVE_LOCK; immutable type = lockType == LockType.readWrite ? LOCKFILE_EXCLUSIVE_LOCK : 0; wenforce(lockImpl!LockFileEx(start, length, type), "Could not set lock for file `"~_name~"'"); } else static assert(false); } /** Attempts to lock the specified file segment. If both `start` and `length` are zero, the entire file is locked. Returns: `true` if the lock was successful, and `false` if the specified file segment was already locked. */ bool tryLock(LockType lockType = LockType.readWrite, ulong start = 0, ulong length = 0) { import std.exception : enforce; enforce(isOpen, "Attempting to call tryLock() on an unopened file"); version (Posix) { import core.stdc.errno : EACCES, EAGAIN, errno; import core.sys.posix.fcntl : F_RDLCK, F_SETLK, F_WRLCK; import std.exception : errnoEnforce; immutable short type = lockType == LockType.readWrite ? F_WRLCK : F_RDLCK; immutable res = lockImpl(F_SETLK, type, start, length); if (res == -1 && (errno == EACCES || errno == EAGAIN)) return false; errnoEnforce(res != -1, "Could not set lock for file `"~_name~"'"); return true; } else version (Windows) { import core.sys.windows.winbase : GetLastError, LockFileEx, LOCKFILE_EXCLUSIVE_LOCK, LOCKFILE_FAIL_IMMEDIATELY; import core.sys.windows.winerror : ERROR_IO_PENDING, ERROR_LOCK_VIOLATION; immutable type = lockType == LockType.readWrite ? LOCKFILE_EXCLUSIVE_LOCK : 0; immutable res = lockImpl!LockFileEx(start, length, type | LOCKFILE_FAIL_IMMEDIATELY); if (!res && (GetLastError() == ERROR_IO_PENDING || GetLastError() == ERROR_LOCK_VIOLATION)) return false; wenforce(res, "Could not set lock for file `"~_name~"'"); return true; } else static assert(false); } /** Removes the lock over the specified file segment. */ void unlock(ulong start = 0, ulong length = 0) { import std.exception : enforce; enforce(isOpen, "Attempting to call unlock() on an unopened file"); version (Posix) { import core.sys.posix.fcntl : F_SETLK, F_UNLCK; import std.exception : errnoEnforce; errnoEnforce(lockImpl(F_SETLK, F_UNLCK, start, length) != -1, "Could not remove lock for file `"~_name~"'"); } else version (Windows) { import core.sys.windows.winbase : UnlockFileEx; wenforce(lockImpl!UnlockFileEx(start, length), "Could not remove lock for file `"~_name~"'"); } else static assert(false); } version (Windows) @system unittest { static import std.file; auto deleteme = testFilename(); scope(exit) std.file.remove(deleteme); auto f = File(deleteme, "wb"); assert(f.tryLock()); auto g = File(deleteme, "wb"); assert(!g.tryLock()); assert(!g.tryLock(LockType.read)); f.unlock(); f.lock(LockType.read); assert(!g.tryLock()); assert(g.tryLock(LockType.read)); f.unlock(); g.unlock(); } version (Posix) @system unittest { static if (__traits(compiles, { import std.process : spawnProcess; })) { static import std.file; auto deleteme = testFilename(); scope(exit) std.file.remove(deleteme); // Since locks are per-process, we cannot test lock failures within // the same process. fork() is used to create a second process. static void runForked(void delegate() code) { import core.stdc.stdlib : exit; import core.sys.posix.sys.wait : waitpid; import core.sys.posix.unistd : fork; int child, status; if ((child = fork()) == 0) { code(); exit(0); } else { assert(waitpid(child, &status, 0) != -1); assert(status == 0, "Fork crashed"); } } auto f = File(deleteme, "w+b"); runForked ({ auto g = File(deleteme, "a+b"); assert(g.tryLock()); g.unlock(); assert(g.tryLock(LockType.read)); }); assert(f.tryLock()); runForked ({ auto g = File(deleteme, "a+b"); assert(!g.tryLock()); assert(!g.tryLock(LockType.read)); }); f.unlock(); f.lock(LockType.read); runForked ({ auto g = File(deleteme, "a+b"); assert(!g.tryLock()); assert(g.tryLock(LockType.read)); g.unlock(); }); f.unlock(); } // static if } // unittest /** Writes its arguments in text format to the file. Throws: `Exception` if the file is not opened. `ErrnoException` on an error writing to the file. */ void write(S...)(S args) { import std.traits : isBoolean, isIntegral, isAggregateType; auto w = lockingTextWriter(); foreach (arg; args) { alias A = typeof(arg); static if (isAggregateType!A || is(A == enum)) { import std.format : formattedWrite; formattedWrite(w, "%s", arg); } else static if (isSomeString!A) { put(w, arg); } else static if (isIntegral!A) { import std.conv : toTextRange; toTextRange(arg, w); } else static if (isBoolean!A) { put(w, arg ? "true" : "false"); } else static if (isSomeChar!A) { put(w, arg); } else { import std.format : formattedWrite; // Most general case formattedWrite(w, "%s", arg); } } } /** Writes its arguments in text format to the file, followed by a newline. Throws: `Exception` if the file is not opened. `ErrnoException` on an error writing to the file. */ void writeln(S...)(S args) { write(args, '\n'); } /** Writes its arguments in text format to the file, according to the format string fmt. Params: fmt = The $(REF_ALTTEXT format string, formattedWrite, std, _format). When passed as a compile-time argument, the string will be statically checked against the argument types passed. args = Items to write. Throws: `Exception` if the file is not opened. `ErrnoException` on an error writing to the file. */ void writef(alias fmt, A...)(A args) if (isSomeString!(typeof(fmt))) { import std.format : checkFormatException; alias e = checkFormatException!(fmt, A); static assert(!e, e.msg); return this.writef(fmt, args); } /// ditto void writef(Char, A...)(in Char[] fmt, A args) { import std.format : formattedWrite; formattedWrite(lockingTextWriter(), fmt, args); } /// Equivalent to `file.writef(fmt, args, '\n')`. void writefln(alias fmt, A...)(A args) if (isSomeString!(typeof(fmt))) { import std.format : checkFormatException; alias e = checkFormatException!(fmt, A); static assert(!e, e.msg); return this.writefln(fmt, args); } /// ditto void writefln(Char, A...)(in Char[] fmt, A args) { import std.format : formattedWrite; auto w = lockingTextWriter(); formattedWrite(w, fmt, args); w.put('\n'); } /** Read line from the file handle and return it as a specified type. This version manages its own read buffer, which means one memory allocation per call. If you are not retaining a reference to the read data, consider the `File.readln(buf)` version, which may offer better performance as it can reuse its read buffer. Params: S = Template parameter; the type of the allocated buffer, and the type returned. Defaults to `string`. terminator = Line terminator (by default, `'\n'`). Note: String terminators are not supported due to ambiguity with readln(buf) below. Returns: The line that was read, including the line terminator character. Throws: `StdioException` on I/O error, or `UnicodeException` on Unicode conversion error. Example: --- // Reads `stdin` and writes it to `stdout`. import std.stdio; void main() { string line; while ((line = stdin.readln()) !is null) write(line); } --- */ S readln(S = string)(dchar terminator = '\n') if (isSomeString!S) { Unqual!(ElementEncodingType!S)[] buf; readln(buf, terminator); return cast(S) buf; } @system unittest { import std.algorithm.comparison : equal; static import std.file; import std.meta : AliasSeq; auto deleteme = testFilename(); std.file.write(deleteme, "hello\nworld\n"); scope(exit) std.file.remove(deleteme); static foreach (String; AliasSeq!(string, char[], wstring, wchar[], dstring, dchar[])) {{ auto witness = [ "hello\n", "world\n" ]; auto f = File(deleteme); uint i = 0; String buf; while ((buf = f.readln!String()).length) { assert(i < witness.length); assert(equal(buf, witness[i++])); } assert(i == witness.length); }} } @system unittest { static import std.file; import std.typecons : Tuple; auto deleteme = testFilename(); std.file.write(deleteme, "cześć \U0002000D"); scope(exit) std.file.remove(deleteme); uint[] lengths = [12,8,7]; static foreach (uint i, C; Tuple!(char, wchar, dchar).Types) {{ immutable(C)[] witness = "cześć \U0002000D"; auto buf = File(deleteme).readln!(immutable(C)[])(); assert(buf.length == lengths[i]); assert(buf == witness); }} } /** Read line from the file handle and write it to `buf[]`, including terminating character. This can be faster than $(D line = File.readln()) because you can reuse the buffer for each call. Note that reusing the buffer means that you must copy the previous contents if you wish to retain them. Params: buf = Buffer used to store the resulting line data. buf is enlarged if necessary, then set to the slice exactly containing the line. terminator = Line terminator (by default, `'\n'`). Use $(REF newline, std,ascii) for portability (unless the file was opened in text mode). Returns: 0 for end of file, otherwise number of characters read. The return value will always be equal to `buf.length`. Throws: `StdioException` on I/O error, or `UnicodeException` on Unicode conversion error. Example: --- // Read lines from `stdin` into a string // Ignore lines starting with '#' // Write the string to `stdout` import std.stdio; void main() { string output; char[] buf; while (stdin.readln(buf)) { if (buf[0] == '#') continue; output ~= buf; } write(output); } --- This method can be more efficient than the one in the previous example because `stdin.readln(buf)` reuses (if possible) memory allocated for `buf`, whereas $(D line = stdin.readln()) makes a new memory allocation for every line. For even better performance you can help `readln` by passing in a large buffer to avoid memory reallocations. This can be done by reusing the largest buffer returned by `readln`: Example: --- // Read lines from `stdin` and count words import std.array, std.stdio; void main() { char[] buf; size_t words = 0; while (!stdin.eof) { char[] line = buf; stdin.readln(line); if (line.length > buf.length) buf = line; words += line.split.length; } writeln(words); } --- This is actually what $(LREF byLine) does internally, so its usage is recommended if you want to process a complete file. */ size_t readln(C)(ref C[] buf, dchar terminator = '\n') if (isSomeChar!C && is(Unqual!C == C) && !is(C == enum)) { import std.exception : enforce; static if (is(C == char)) { enforce(_p && _p.handle, "Attempt to read from an unopened file."); if (_p.orientation == Orientation.unknown) { import core.stdc.wchar_ : fwide; auto w = fwide(_p.handle, 0); if (w < 0) _p.orientation = Orientation.narrow; else if (w > 0) _p.orientation = Orientation.wide; } return readlnImpl(_p.handle, buf, terminator, _p.orientation); } else { string s = readln(terminator); if (!s.length) { buf = buf[0 .. 0]; return 0; } import std.utf : codeLength; buf.length = codeLength!C(s); size_t idx; foreach (C c; s) buf[idx++] = c; return buf.length; } } @system unittest { // @system due to readln static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "123\n456789"); scope(exit) std.file.remove(deleteme); auto file = File(deleteme); char[] buffer = new char[10]; char[] line = buffer; file.readln(line); auto beyond = line.length; buffer[beyond] = 'a'; file.readln(line); // should not write buffer beyond line assert(buffer[beyond] == 'a'); } // https://issues.dlang.org/show_bug.cgi?id=15293 @system unittest { // @system due to readln static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "a\n\naa"); scope(exit) std.file.remove(deleteme); auto file = File(deleteme); char[] buffer; char[] line; file.readln(buffer, '\n'); line = buffer; file.readln(line, '\n'); line = buffer; file.readln(line, '\n'); assert(line[0 .. 1].capacity == 0); } /** ditto */ size_t readln(C, R)(ref C[] buf, R terminator) if (isSomeChar!C && is(Unqual!C == C) && !is(C == enum) && isBidirectionalRange!R && is(typeof(terminator.front == dchar.init))) { import std.algorithm.mutation : swap; import std.algorithm.searching : endsWith; import std.range.primitives : back; auto last = terminator.back; C[] buf2; swap(buf, buf2); for (;;) { if (!readln(buf2, last) || endsWith(buf2, terminator)) { if (buf.empty) { buf = buf2; } else { buf ~= buf2; } break; } buf ~= buf2; } return buf.length; } @system unittest { static import std.file; import std.typecons : Tuple; auto deleteme = testFilename(); std.file.write(deleteme, "hello\n\rworld\nhow\n\rare ya"); scope(exit) std.file.remove(deleteme); foreach (C; Tuple!(char, wchar, dchar).Types) { immutable(C)[][] witness = [ "hello\n\r", "world\nhow\n\r", "are ya" ]; auto f = File(deleteme); uint i = 0; C[] buf; while (f.readln(buf, "\n\r")) { assert(i < witness.length); assert(buf == witness[i++]); } assert(buf.length == 0); } } /** * Reads formatted _data from the file using $(REF formattedRead, std,_format). * Params: * format = The $(REF_ALTTEXT format string, formattedWrite, std, _format). * When passed as a compile-time argument, the string will be statically checked * against the argument types passed. * data = Items to be read. * Example: ---- // test.d void main() { import std.stdio; auto f = File("input"); foreach (_; 0 .. 3) { int a; f.readf!" %d"(a); writeln(++a); } } ---- $(CONSOLE % echo "1 2 3" > input % rdmd test.d 2 3 4 ) */ uint readf(alias format, Data...)(auto ref Data data) if (isSomeString!(typeof(format))) { import std.format : checkFormatException; alias e = checkFormatException!(format, Data); static assert(!e, e.msg); return this.readf(format, data); } /// ditto uint readf(Data...)(scope const(char)[] format, auto ref Data data) { import std.format : formattedRead; assert(isOpen); auto input = LockingTextReader(this); return formattedRead(input, format, data); } /// @system unittest { static import std.file; auto deleteme = std.file.deleteme(); std.file.write(deleteme, "hello\nworld\ntrue\nfalse\n"); scope(exit) std.file.remove(deleteme); string s; auto f = File(deleteme); f.readf!"%s\n"(s); assert(s == "hello", "["~s~"]"); f.readf("%s\n", s); assert(s == "world", "["~s~"]"); bool b1, b2; f.readf("%s\n%s\n", b1, b2); assert(b1 == true && b2 == false); } // backwards compatibility with pointers @system unittest { // @system due to readf static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "hello\nworld\ntrue\nfalse\n"); scope(exit) std.file.remove(deleteme); string s; auto f = File(deleteme); f.readf("%s\n", &s); assert(s == "hello", "["~s~"]"); f.readf("%s\n", &s); assert(s == "world", "["~s~"]"); // https://issues.dlang.org/show_bug.cgi?id=11698 bool b1, b2; f.readf("%s\n%s\n", &b1, &b2); assert(b1 == true && b2 == false); } // backwards compatibility (mixed) @system unittest { // @system due to readf static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "hello\nworld\ntrue\nfalse\n"); scope(exit) std.file.remove(deleteme); string s1, s2; auto f = File(deleteme); f.readf("%s\n%s\n", s1, &s2); assert(s1 == "hello"); assert(s2 == "world"); // https://issues.dlang.org/show_bug.cgi?id=11698 bool b1, b2; f.readf("%s\n%s\n", &b1, b2); assert(b1 == true && b2 == false); } // Nice error of std.stdio.readf with newlines // https://issues.dlang.org/show_bug.cgi?id=12260 @system unittest { static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "1\n2"); scope(exit) std.file.remove(deleteme); int input; auto f = File(deleteme); f.readf("%s", &input); import std.conv : ConvException; import std.exception : collectException; assert(collectException!ConvException(f.readf("%s", &input)).msg == "Unexpected '\\n' when converting from type LockingTextReader to type int"); } /** Returns a temporary file by calling $(HTTP cplusplus.com/reference/clibrary/cstdio/_tmpfile.html, _tmpfile). Note that the created file has no $(LREF name).*/ static File tmpfile() @safe { import std.exception : errnoEnforce; return File(errnoEnforce(.tmpfile(), "Could not create temporary file with tmpfile()"), null); } /** Unsafe function that wraps an existing `FILE*`. The resulting $(D File) never takes the initiative in closing the file. Note that the created file has no $(LREF name)*/ /*private*/ static File wrapFile(FILE* f) @safe { import std.exception : enforce; return File(enforce(f, "Could not wrap null FILE*"), null, /*uint.max / 2*/ 9999); } /** Returns the `FILE*` corresponding to this object. */ FILE* getFP() @safe pure { import std.exception : enforce; enforce(_p && _p.handle, "Attempting to call getFP() on an unopened file"); return _p.handle; } @system unittest { static import core.stdc.stdio; assert(stdout.getFP() == core.stdc.stdio.stdout); } /** Returns the file number corresponding to this object. */ @property int fileno() const @trusted { import std.exception : enforce; enforce(isOpen, "Attempting to call fileno() on an unopened file"); return .fileno(cast(FILE*) _p.handle); } /** Returns the underlying operating system `HANDLE` (Windows only). */ version (StdDdoc) @property HANDLE windowsHandle(); version (Windows) @property HANDLE windowsHandle() { version (DIGITAL_MARS_STDIO) return _fdToHandle(fileno); else return cast(HANDLE)_get_osfhandle(fileno); } // Note: This was documented until 2013/08 /* Range that reads one line at a time. Returned by $(LREF byLine). Allows to directly use range operations on lines of a file. */ private struct ByLineImpl(Char, Terminator) { private: import std.typecons : RefCounted, RefCountedAutoInitialize; /* Ref-counting stops the source range's Impl * from getting out of sync after the range is copied, e.g. * when accessing range.front, then using std.range.take, * then accessing range.front again. */ alias PImpl = RefCounted!(Impl, RefCountedAutoInitialize.no); PImpl impl; static if (isScalarType!Terminator) enum defTerm = '\n'; else enum defTerm = cast(Terminator)"\n"; public: this(File f, KeepTerminator kt = No.keepTerminator, Terminator terminator = defTerm) { impl = PImpl(f, kt, terminator); } @property bool empty() { return impl.refCountedPayload.empty; } @property Char[] front() { return impl.refCountedPayload.front; } void popFront() { impl.refCountedPayload.popFront(); } private: struct Impl { private: File file; Char[] line; Char[] buffer; Terminator terminator; KeepTerminator keepTerminator; bool haveLine; public: this(File f, KeepTerminator kt, Terminator terminator) { file = f; this.terminator = terminator; keepTerminator = kt; } // Range primitive implementations. @property bool empty() { needLine(); return line is null; } @property Char[] front() { needLine(); return line; } void popFront() { needLine(); haveLine = false; } private: void needLine() { if (haveLine) return; import std.algorithm.searching : endsWith; assert(file.isOpen); line = buffer; file.readln(line, terminator); if (line.length > buffer.length) { buffer = line; } if (line.empty) { file.detach(); line = null; } else if (keepTerminator == No.keepTerminator && endsWith(line, terminator)) { static if (isScalarType!Terminator) enum tlen = 1; else static if (isArray!Terminator) { static assert( is(immutable ElementEncodingType!Terminator == immutable Char)); const tlen = terminator.length; } else static assert(false); line = line[0 .. line.length - tlen]; } haveLine = true; } } } /** Returns an $(REF_ALTTEXT input range, isInputRange, std,range,primitives) set up to read from the file handle one line at a time. The element type for the range will be `Char[]`. Range primitives may throw `StdioException` on I/O error. Note: Each `front` will not persist after $(D popFront) is called, so the caller must copy its contents (e.g. by calling `to!string`) when retention is needed. If the caller needs to retain a copy of every line, use the $(LREF byLineCopy) function instead. Params: Char = Character type for each line, defaulting to `char`. keepTerminator = Use `Yes.keepTerminator` to include the terminator at the end of each line. terminator = Line separator (`'\n'` by default). Use $(REF newline, std,ascii) for portability (unless the file was opened in text mode). Example: ---- import std.algorithm, std.stdio, std.string; // Count words in a file using ranges. void main() { auto file = File("file.txt"); // Open for reading const wordCount = file.byLine() // Read lines .map!split // Split into words .map!(a => a.length) // Count words per line .sum(); // Total word count writeln(wordCount); } ---- Example: ---- import std.range, std.stdio; // Read lines using foreach. void main() { auto file = File("file.txt"); // Open for reading auto range = file.byLine(); // Print first three lines foreach (line; range.take(3)) writeln(line); // Print remaining lines beginning with '#' foreach (line; range) { if (!line.empty && line[0] == '#') writeln(line); } } ---- Notice that neither example accesses the line data returned by `front` after the corresponding `popFront` call is made (because the contents may well have changed). */ auto byLine(Terminator = char, Char = char) (KeepTerminator keepTerminator = No.keepTerminator, Terminator terminator = '\n') if (isScalarType!Terminator) { return ByLineImpl!(Char, Terminator)(this, keepTerminator, terminator); } /// ditto auto byLine(Terminator, Char = char) (KeepTerminator keepTerminator, Terminator terminator) if (is(immutable ElementEncodingType!Terminator == immutable Char)) { return ByLineImpl!(Char, Terminator)(this, keepTerminator, terminator); } @system unittest { static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "hi"); scope(success) std.file.remove(deleteme); import std.meta : AliasSeq; static foreach (T; AliasSeq!(char, wchar, dchar)) {{ auto blc = File(deleteme).byLine!(T, T); assert(blc.front == "hi"); // check front is cached assert(blc.front is blc.front); }} } // https://issues.dlang.org/show_bug.cgi?id=19980 @system unittest { static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "Line 1\nLine 2\nLine 3\n"); scope(success) std.file.remove(deleteme); auto f = File(deleteme); f.byLine(); f.byLine(); assert(f.byLine().front == "Line 1"); } private struct ByLineCopy(Char, Terminator) { private: import std.typecons : RefCounted, RefCountedAutoInitialize; /* Ref-counting stops the source range's ByLineCopyImpl * from getting out of sync after the range is copied, e.g. * when accessing range.front, then using std.range.take, * then accessing range.front again. */ alias Impl = RefCounted!(ByLineCopyImpl!(Char, Terminator), RefCountedAutoInitialize.no); Impl impl; public: this(File f, KeepTerminator kt, Terminator terminator) { impl = Impl(f, kt, terminator); } @property bool empty() { return impl.refCountedPayload.empty; } @property Char[] front() { return impl.refCountedPayload.front; } void popFront() { impl.refCountedPayload.popFront(); } } private struct ByLineCopyImpl(Char, Terminator) { ByLineImpl!(Unqual!Char, Terminator).Impl impl; bool gotFront; Char[] line; public: this(File f, KeepTerminator kt, Terminator terminator) { impl = ByLineImpl!(Unqual!Char, Terminator).Impl(f, kt, terminator); } @property bool empty() { return impl.empty; } @property front() { if (!gotFront) { line = impl.front.dup; gotFront = true; } return line; } void popFront() { impl.popFront(); gotFront = false; } } /** Returns an $(REF_ALTTEXT input range, isInputRange, std,range,primitives) set up to read from the file handle one line at a time. Each line will be newly allocated. `front` will cache its value to allow repeated calls without unnecessary allocations. Note: Due to caching byLineCopy can be more memory-efficient than `File.byLine.map!idup`. The element type for the range will be `Char[]`. Range primitives may throw `StdioException` on I/O error. Params: Char = Character type for each line, defaulting to $(D immutable char). keepTerminator = Use `Yes.keepTerminator` to include the terminator at the end of each line. terminator = Line separator (`'\n'` by default). Use $(REF newline, std,ascii) for portability (unless the file was opened in text mode). Example: ---- import std.algorithm, std.array, std.stdio; // Print sorted lines of a file. void main() { auto sortedLines = File("file.txt") // Open for reading .byLineCopy() // Read persistent lines .array() // into an array .sort(); // then sort them foreach (line; sortedLines) writeln(line); } ---- See_Also: $(REF readText, std,file) */ auto byLineCopy(Terminator = char, Char = immutable char) (KeepTerminator keepTerminator = No.keepTerminator, Terminator terminator = '\n') if (isScalarType!Terminator) { return ByLineCopy!(Char, Terminator)(this, keepTerminator, terminator); } /// ditto auto byLineCopy(Terminator, Char = immutable char) (KeepTerminator keepTerminator, Terminator terminator) if (is(immutable ElementEncodingType!Terminator == immutable Char)) { return ByLineCopy!(Char, Terminator)(this, keepTerminator, terminator); } @safe unittest { static assert(is(typeof(File("").byLine.front) == char[])); static assert(is(typeof(File("").byLineCopy.front) == string)); static assert( is(typeof(File("").byLineCopy!(char, char).front) == char[])); } @system unittest { import std.algorithm.comparison : equal; static import std.file; scope(failure) printf("Failed test at line %d\n", __LINE__); auto deleteme = testFilename(); std.file.write(deleteme, ""); scope(success) std.file.remove(deleteme); // Test empty file auto f = File(deleteme); foreach (line; f.byLine()) { assert(false); } f.detach(); assert(!f.isOpen); void test(Terminator)(string txt, in string[] witness, KeepTerminator kt, Terminator term, bool popFirstLine = false) { import std.algorithm.sorting : sort; import std.array : array; import std.conv : text; import std.range.primitives : walkLength; uint i; std.file.write(deleteme, txt); auto f = File(deleteme); scope(exit) { f.close(); assert(!f.isOpen); } auto lines = f.byLine(kt, term); if (popFirstLine) { lines.popFront(); i = 1; } assert(lines.empty || lines.front is lines.front); foreach (line; lines) { assert(line == witness[i++]); } assert(i == witness.length, text(i, " != ", witness.length)); // https://issues.dlang.org/show_bug.cgi?id=11830 auto walkedLength = File(deleteme).byLine(kt, term).walkLength; assert(walkedLength == witness.length, text(walkedLength, " != ", witness.length)); // test persistent lines assert(File(deleteme).byLineCopy(kt, term).array.sort() == witness.dup.sort()); } KeepTerminator kt = No.keepTerminator; test("", null, kt, '\n'); test("\n", [ "" ], kt, '\n'); test("asd\ndef\nasdf", [ "asd", "def", "asdf" ], kt, '\n'); test("asd\ndef\nasdf", [ "asd", "def", "asdf" ], kt, '\n', true); test("asd\ndef\nasdf\n", [ "asd", "def", "asdf" ], kt, '\n'); test("foo", [ "foo" ], kt, '\n', true); test("bob\r\nmarge\r\nsteve\r\n", ["bob", "marge", "steve"], kt, "\r\n"); test("sue\r", ["sue"], kt, '\r'); kt = Yes.keepTerminator; test("", null, kt, '\n'); test("\n", [ "\n" ], kt, '\n'); test("asd\ndef\nasdf", [ "asd\n", "def\n", "asdf" ], kt, '\n'); test("asd\ndef\nasdf\n", [ "asd\n", "def\n", "asdf\n" ], kt, '\n'); test("asd\ndef\nasdf\n", [ "asd\n", "def\n", "asdf\n" ], kt, '\n', true); test("foo", [ "foo" ], kt, '\n'); test("bob\r\nmarge\r\nsteve\r\n", ["bob\r\n", "marge\r\n", "steve\r\n"], kt, "\r\n"); test("sue\r", ["sue\r"], kt, '\r'); } @system unittest { import std.algorithm.comparison : equal; import std.range : drop, take; version (Win64) { static import std.file; /* the C function tmpfile doesn't seem to work, even when called from C */ auto deleteme = testFilename(); auto file = File(deleteme, "w+"); scope(success) std.file.remove(deleteme); } else version (CRuntime_Bionic) { static import std.file; /* the C function tmpfile doesn't work when called from a shared library apk: https://code.google.com/p/android/issues/detail?id=66815 */ auto deleteme = testFilename(); auto file = File(deleteme, "w+"); scope(success) std.file.remove(deleteme); } else auto file = File.tmpfile(); file.write("1\n2\n3\n"); // https://issues.dlang.org/show_bug.cgi?id=9599 file.rewind(); File.ByLineImpl!(char, char) fbl = file.byLine(); auto fbl2 = fbl; assert(fbl.front == "1"); assert(fbl.front is fbl2.front); assert(fbl.take(1).equal(["1"])); assert(fbl.equal(["2", "3"])); assert(fbl.empty); assert(file.isOpen); // we still have a valid reference file.rewind(); fbl = file.byLine(); assert(!fbl.drop(2).empty); assert(fbl.equal(["3"])); assert(fbl.empty); assert(file.isOpen); file.detach(); assert(!file.isOpen); } @system unittest { static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "hi"); scope(success) std.file.remove(deleteme); auto blc = File(deleteme).byLineCopy; assert(!blc.empty); // check front is cached assert(blc.front is blc.front); } /** Creates an $(REF_ALTTEXT input range, isInputRange, std,range,primitives) set up to parse one line at a time from the file into a tuple. Range primitives may throw `StdioException` on I/O error. Params: format = tuple record $(REF_ALTTEXT _format, formattedRead, std, _format) Returns: The input range set up to parse one line at a time into a record tuple. See_Also: It is similar to $(LREF byLine) and uses $(REF_ALTTEXT _format, formattedRead, std, _format) under the hood. */ template byRecord(Fields...) { auto byRecord(string format) { return ByRecordImpl!(Fields)(this, format); } } /// @system unittest { static import std.file; import std.typecons : tuple; // prepare test file auto testFile = std.file.deleteme(); scope(failure) printf("Failed test at line %d\n", __LINE__); std.file.write(testFile, "1 2\n4 1\n5 100"); scope(exit) std.file.remove(testFile); File f = File(testFile); scope(exit) f.close(); auto expected = [tuple(1, 2), tuple(4, 1), tuple(5, 100)]; uint i; foreach (e; f.byRecord!(int, int)("%s %s")) { assert(e == expected[i++]); } } // Note: This was documented until 2013/08 /* * Range that reads a chunk at a time. */ private struct ByChunkImpl { private: File file_; ubyte[] chunk_; void prime() { chunk_ = file_.rawRead(chunk_); if (chunk_.length == 0) file_.detach(); } public: this(File file, size_t size) { this(file, new ubyte[](size)); } this(File file, ubyte[] buffer) { import std.exception : enforce; enforce(buffer.length, "size must be larger than 0"); file_ = file; chunk_ = buffer; prime(); } // `ByChunk`'s input range primitive operations. @property nothrow bool empty() const { return !file_.isOpen; } /// Ditto @property nothrow ubyte[] front() { version (assert) { import core.exception : RangeError; if (empty) throw new RangeError(); } return chunk_; } /// Ditto void popFront() { version (assert) { import core.exception : RangeError; if (empty) throw new RangeError(); } prime(); } } /** Returns an $(REF_ALTTEXT input range, isInputRange, std,range,primitives) set up to read from the file handle a chunk at a time. The element type for the range will be `ubyte[]`. Range primitives may throw `StdioException` on I/O error. Example: --------- void main() { // Read standard input 4KB at a time foreach (ubyte[] buffer; stdin.byChunk(4096)) { ... use buffer ... } } --------- The parameter may be a number (as shown in the example above) dictating the size of each chunk. Alternatively, `byChunk` accepts a user-provided buffer that it uses directly. Example: --------- void main() { // Read standard input 4KB at a time foreach (ubyte[] buffer; stdin.byChunk(new ubyte[4096])) { ... use buffer ... } } --------- In either case, the content of the buffer is reused across calls. That means `front` will not persist after `popFront` is called, so if retention is needed, the caller must copy its contents (e.g. by calling `buffer.dup`). In the example above, `buffer.length` is 4096 for all iterations, except for the last one, in which case `buffer.length` may be less than 4096 (but always greater than zero). With the mentioned limitations, `byChunk` works with any algorithm compatible with input ranges. Example: --- // Efficient file copy, 1MB at a time. import std.algorithm, std.stdio; void main() { stdin.byChunk(1024 * 1024).copy(stdout.lockingTextWriter()); } --- $(REF joiner, std,algorithm,iteration) can be used to join chunks together into a single range lazily. Example: --- import std.algorithm, std.stdio; void main() { //Range of ranges static assert(is(typeof(stdin.byChunk(4096).front) == ubyte[])); //Range of elements static assert(is(typeof(stdin.byChunk(4096).joiner.front) == ubyte)); } --- Returns: A call to `byChunk` returns a range initialized with the `File` object and the appropriate buffer. Throws: If the user-provided size is zero or the user-provided buffer is empty, throws an `Exception`. In case of an I/O error throws `StdioException`. */ auto byChunk(size_t chunkSize) { return ByChunkImpl(this, chunkSize); } /// Ditto auto byChunk(ubyte[] buffer) { return ByChunkImpl(this, buffer); } @system unittest { static import std.file; scope(failure) printf("Failed test at line %d\n", __LINE__); auto deleteme = testFilename(); std.file.write(deleteme, "asd\ndef\nasdf"); auto witness = ["asd\n", "def\n", "asdf" ]; auto f = File(deleteme); scope(exit) { f.close(); assert(!f.isOpen); std.file.remove(deleteme); } uint i; foreach (chunk; f.byChunk(4)) assert(chunk == cast(ubyte[]) witness[i++]); assert(i == witness.length); } @system unittest { static import std.file; scope(failure) printf("Failed test at line %d\n", __LINE__); auto deleteme = testFilename(); std.file.write(deleteme, "asd\ndef\nasdf"); auto witness = ["asd\n", "def\n", "asdf" ]; auto f = File(deleteme); scope(exit) { f.close(); assert(!f.isOpen); std.file.remove(deleteme); } uint i; foreach (chunk; f.byChunk(new ubyte[4])) assert(chunk == cast(ubyte[]) witness[i++]); assert(i == witness.length); } // Note: This was documented until 2013/08 /* `Range` that locks the file and allows fast writing to it. */ struct LockingTextWriter { private: import std.range.primitives : ElementType, isInfinite, isInputRange; // Access the FILE* handle through the 'file_' member // to keep the object alive through refcounting File file_; // the unshared version of FILE* handle, extracted from the File object @property _iobuf* handle_() @trusted { return cast(_iobuf*) file_._p.handle; } // the file's orientation (byte- or wide-oriented) int orientation_; // Buffers for when we need to transcode. wchar highSurrogate = '\0'; // '\0' indicates empty void highSurrogateShouldBeEmpty() @safe { import std.utf : UTFException; if (highSurrogate != '\0') throw new UTFException("unpaired surrogate UTF-16 value"); } char[4] rbuf8; size_t rbuf8Filled = 0; public: this(ref File f) @trusted { import std.exception : enforce; enforce(f._p && f._p.handle, "Attempting to write to closed File"); file_ = f; FILE* fps = f._p.handle; version (MICROSOFT_STDIO) { // Microsoft doesn't implement fwide. Instead, there's the // concept of ANSI/UNICODE mode. fputc doesn't work in UNICODE // mode; fputwc has to be used. So that essentially means // "wide-oriented" for us. immutable int mode = _setmode(f.fileno, _O_TEXT); // Set some arbitrary mode to obtain the previous one. _setmode(f.fileno, mode); // Restore previous mode. if (mode & (_O_WTEXT | _O_U16TEXT | _O_U8TEXT)) { orientation_ = 1; // wide } } else { import core.stdc.wchar_ : fwide; orientation_ = fwide(fps, 0); } FLOCK(fps); } ~this() @trusted { if (auto p = file_._p) { if (p.handle) FUNLOCK(p.handle); } file_ = File.init; /* Destroy file_ before possibly throwing. Else it wouldn't be destroyed, and its reference count would be wrong. */ highSurrogateShouldBeEmpty(); } this(this) @trusted { if (auto p = file_._p) { if (p.handle) FLOCK(p.handle); } } /// Range primitive implementations. void put(A)(scope A writeme) if ((isSomeChar!(Unqual!(ElementType!A)) || is(ElementType!A : const(ubyte))) && isInputRange!A && !isInfinite!A) { import std.exception : errnoEnforce; alias C = ElementEncodingType!A; static assert(!is(C == void)); static if (isSomeString!A && C.sizeof == 1 || is(A : const(ubyte)[])) { if (orientation_ <= 0) { //file.write(writeme); causes infinite recursion!!! //file.rawWrite(writeme); auto result = trustedFwrite(file_._p.handle, writeme); if (result != writeme.length) errnoEnforce(0); return; } } // put each element in turn. foreach (c; writeme) { put(c); } } /// ditto void put(C)(scope C c) @safe if (isSomeChar!C || is(C : const(ubyte))) { import std.traits : Parameters; import std.utf : decodeFront, encode, stride; static auto trustedFPUTC(int ch, _iobuf* h) @trusted { return FPUTC(ch, h); } static auto trustedFPUTWC(Parameters!FPUTWC[0] ch, _iobuf* h) @trusted { return FPUTWC(ch, h); } static if (c.sizeof == 1) { highSurrogateShouldBeEmpty(); if (orientation_ <= 0) trustedFPUTC(c, handle_); else if (c <= 0x7F) trustedFPUTWC(c, handle_); else if (c >= 0b1100_0000) // start byte of multibyte sequence { rbuf8[0] = c; rbuf8Filled = 1; } else // continuation byte of multibyte sequence { rbuf8[rbuf8Filled] = c; ++rbuf8Filled; if (stride(rbuf8[]) == rbuf8Filled) // sequence is complete { char[] str = rbuf8[0 .. rbuf8Filled]; immutable dchar d = decodeFront(str); wchar_t[4 / wchar_t.sizeof] wbuf; immutable size = encode(wbuf, d); foreach (i; 0 .. size) trustedFPUTWC(wbuf[i], handle_); rbuf8Filled = 0; } } } else static if (c.sizeof == 2) { import std.utf : decode; if (c <= 0x7F) { highSurrogateShouldBeEmpty(); if (orientation_ <= 0) trustedFPUTC(c, handle_); else trustedFPUTWC(c, handle_); } else if (0xD800 <= c && c <= 0xDBFF) // high surrogate { highSurrogateShouldBeEmpty(); highSurrogate = c; } else // standalone or low surrogate { dchar d = c; if (highSurrogate != '\0') { immutable wchar[2] rbuf = [highSurrogate, c]; size_t index = 0; d = decode(rbuf[], index); highSurrogate = 0; } if (orientation_ <= 0) { char[4] wbuf; immutable size = encode(wbuf, d); foreach (i; 0 .. size) trustedFPUTC(wbuf[i], handle_); } else { wchar_t[4 / wchar_t.sizeof] wbuf; immutable size = encode(wbuf, d); foreach (i; 0 .. size) trustedFPUTWC(wbuf[i], handle_); } rbuf8Filled = 0; } } else // 32-bit characters { import std.utf : encode; highSurrogateShouldBeEmpty(); if (orientation_ <= 0) { if (c <= 0x7F) { trustedFPUTC(c, handle_); } else { char[4] buf = void; immutable len = encode(buf, c); foreach (i ; 0 .. len) trustedFPUTC(buf[i], handle_); } } else { version (Windows) { import std.utf : isValidDchar; assert(isValidDchar(c)); if (c <= 0xFFFF) { trustedFPUTWC(c, handle_); } else { trustedFPUTWC(cast(wchar) ((((c - 0x10000) >> 10) & 0x3FF) + 0xD800), handle_); trustedFPUTWC(cast(wchar) (((c - 0x10000) & 0x3FF) + 0xDC00), handle_); } } else version (Posix) { trustedFPUTWC(c, handle_); } else { static assert(0); } } } } } /** * Output range which locks the file when created, and unlocks the file when it goes * out of scope. * * Returns: An $(REF_ALTTEXT output range, isOutputRange, std, range, primitives) * which accepts string types, `ubyte[]`, individual character types, and * individual `ubyte`s. * * Note: Writing either arrays of `char`s or `ubyte`s is faster than * writing each character individually from a range. For large amounts of data, * writing the contents in chunks using an intermediary array can result * in a speed increase. * * Throws: $(REF UTFException, std, utf) if the data given is a `char` range * and it contains malformed UTF data. * * See_Also: $(LREF byChunk) for an example. */ auto lockingTextWriter() @safe { return LockingTextWriter(this); } // An output range which optionally locks the file and puts it into // binary mode (similar to rawWrite). Because it needs to restore // the file mode on destruction, it is RefCounted on Windows. struct BinaryWriterImpl(bool locking) { import std.traits : hasIndirections; private: // Access the FILE* handle through the 'file_' member // to keep the object alive through refcounting File file_; string name; version (Windows) { int fd, oldMode; version (DIGITAL_MARS_STDIO) ubyte oldInfo; } package: this(ref File f) { import std.exception : enforce; file_ = f; enforce(f._p && f._p.handle); name = f._name; FILE* fps = f._p.handle; static if (locking) FLOCK(fps); version (Windows) { .fflush(fps); // before changing translation mode fd = ._fileno(fps); oldMode = ._setmode(fd, _O_BINARY); version (DIGITAL_MARS_STDIO) { import core.atomic : atomicOp; // https://issues.dlang.org/show_bug.cgi?id=4243 oldInfo = __fhnd_info[fd]; atomicOp!"&="(__fhnd_info[fd], ~FHND_TEXT); } } } public: ~this() { if (!file_._p || !file_._p.handle) return; FILE* fps = file_._p.handle; version (Windows) { .fflush(fps); // before restoring translation mode version (DIGITAL_MARS_STDIO) { // https://issues.dlang.org/show_bug.cgi?id=4243 __fhnd_info[fd] = oldInfo; } ._setmode(fd, oldMode); } FUNLOCK(fps); } void rawWrite(T)(in T[] buffer) { import std.conv : text; import std.exception : errnoEnforce; auto result = trustedFwrite(file_._p.handle, buffer); if (result == result.max) result = 0; errnoEnforce(result == buffer.length, text("Wrote ", result, " instead of ", buffer.length, " objects of type ", T.stringof, " to file `", name, "'")); } version (Windows) { @disable this(this); } else { this(this) { if (auto p = file_._p) { if (p.handle) FLOCK(p.handle); } } } void put(T)(auto ref scope const T value) if (!hasIndirections!T && !isInputRange!T) { rawWrite((&value)[0 .. 1]); } void put(T)(scope const(T)[] array) if (!hasIndirections!T && !isInputRange!T) { rawWrite(array); } } /** Returns an output range that locks the file and allows fast writing to it. Example: Produce a grayscale image of the $(LINK2 https://en.wikipedia.org/wiki/Mandelbrot_set, Mandelbrot set) in binary $(LINK2 https://en.wikipedia.org/wiki/Netpbm_format, Netpbm format) to standard output. --- import std.algorithm, std.complex, std.range, std.stdio; void main() { enum size = 500; writef("P5\n%d %d %d\n", size, size, ubyte.max); iota(-1, 3, 2.0/size).map!(y => iota(-1.5, 0.5, 2.0/size).map!(x => cast(ubyte)(1+ recurrence!((a, n) => x + y * complex(0, 1) + a[n-1]^^2)(complex(0)) .take(ubyte.max) .countUntil!(z => z.re^^2 + z.im^^2 > 4)) ) ) .copy(stdout.lockingBinaryWriter); } --- */ auto lockingBinaryWriter() { alias LockingBinaryWriterImpl = BinaryWriterImpl!true; version (Windows) { import std.typecons : RefCounted; alias LockingBinaryWriter = RefCounted!LockingBinaryWriterImpl; } else alias LockingBinaryWriter = LockingBinaryWriterImpl; return LockingBinaryWriter(this); } @system unittest { import std.algorithm.mutation : reverse; import std.exception : collectException; static import std.file; import std.range : only, retro; import std.string : format; auto deleteme = testFilename(); scope(exit) collectException(std.file.remove(deleteme)); { auto writer = File(deleteme, "wb").lockingBinaryWriter(); auto input = File(deleteme, "rb"); ubyte[1] byteIn = [42]; writer.rawWrite(byteIn); destroy(writer); ubyte[1] byteOut = input.rawRead(new ubyte[1]); assert(byteIn[0] == byteOut[0]); } auto output = File(deleteme, "wb"); auto writer = output.lockingBinaryWriter(); auto input = File(deleteme, "rb"); T[] readExact(T)(T[] buf) { auto result = input.rawRead(buf); assert(result.length == buf.length, "Read %d out of %d bytes" .format(result.length, buf.length)); return result; } // test raw values ubyte byteIn = 42; byteIn.only.copy(writer); output.flush(); ubyte byteOut = readExact(new ubyte[1])[0]; assert(byteIn == byteOut); // test arrays ubyte[] bytesIn = [1, 2, 3, 4, 5]; bytesIn.copy(writer); output.flush(); ubyte[] bytesOut = readExact(new ubyte[bytesIn.length]); scope(failure) .writeln(bytesOut); assert(bytesIn == bytesOut); // test ranges of values bytesIn.retro.copy(writer); output.flush(); bytesOut = readExact(bytesOut); bytesOut.reverse(); assert(bytesIn == bytesOut); // test string "foobar".copy(writer); output.flush(); char[] charsOut = readExact(new char[6]); assert(charsOut == "foobar"); // test ranges of arrays only("foo", "bar").copy(writer); output.flush(); charsOut = readExact(charsOut); assert(charsOut == "foobar"); // test that we are writing arrays as is, // without UTF-8 transcoding "foo"d.copy(writer); output.flush(); dchar[] dcharsOut = readExact(new dchar[3]); assert(dcharsOut == "foo"); } /** Returns the size of the file in bytes, ulong.max if file is not searchable or throws if the operation fails. Example: --- import std.stdio, std.file; void main() { string deleteme = "delete.me"; auto file_handle = File(deleteme, "w"); file_handle.write("abc"); //create temporary file scope(exit) deleteme.remove; //remove temporary file at scope exit assert(file_handle.size() == 3); //check if file size is 3 bytes } --- */ @property ulong size() @safe { import std.exception : collectException; ulong pos = void; if (collectException(pos = tell)) return ulong.max; scope(exit) seek(pos); seek(0, SEEK_END); return tell; } } @system unittest { @system struct SystemToString { string toString() { return "system"; } } @trusted struct TrustedToString { string toString() { return "trusted"; } } @safe struct SafeToString { string toString() { return "safe"; } } @system void systemTests() { //system code can write to files/stdout with anything! if (false) { auto f = File(); f.write("just a string"); f.write("string with arg: ", 47); f.write(SystemToString()); f.write(TrustedToString()); f.write(SafeToString()); write("just a string"); write("string with arg: ", 47); write(SystemToString()); write(TrustedToString()); write(SafeToString()); f.writeln("just a string"); f.writeln("string with arg: ", 47); f.writeln(SystemToString()); f.writeln(TrustedToString()); f.writeln(SafeToString()); writeln("just a string"); writeln("string with arg: ", 47); writeln(SystemToString()); writeln(TrustedToString()); writeln(SafeToString()); f.writef("string with arg: %s", 47); f.writef("%s", SystemToString()); f.writef("%s", TrustedToString()); f.writef("%s", SafeToString()); writef("string with arg: %s", 47); writef("%s", SystemToString()); writef("%s", TrustedToString()); writef("%s", SafeToString()); f.writefln("string with arg: %s", 47); f.writefln("%s", SystemToString()); f.writefln("%s", TrustedToString()); f.writefln("%s", SafeToString()); writefln("string with arg: %s", 47); writefln("%s", SystemToString()); writefln("%s", TrustedToString()); writefln("%s", SafeToString()); } } @safe void safeTests() { auto f = File(); //safe code can write to files only with @safe and @trusted code... if (false) { f.write("just a string"); f.write("string with arg: ", 47); f.write(TrustedToString()); f.write(SafeToString()); write("just a string"); write("string with arg: ", 47); write(TrustedToString()); write(SafeToString()); f.writeln("just a string"); f.writeln("string with arg: ", 47); f.writeln(TrustedToString()); f.writeln(SafeToString()); writeln("just a string"); writeln("string with arg: ", 47); writeln(TrustedToString()); writeln(SafeToString()); f.writef("string with arg: %s", 47); f.writef("%s", TrustedToString()); f.writef("%s", SafeToString()); writef("string with arg: %s", 47); writef("%s", TrustedToString()); writef("%s", SafeToString()); f.writefln("string with arg: %s", 47); f.writefln("%s", TrustedToString()); f.writefln("%s", SafeToString()); writefln("string with arg: %s", 47); writefln("%s", TrustedToString()); writefln("%s", SafeToString()); } static assert(!__traits(compiles, f.write(SystemToString().toString()))); static assert(!__traits(compiles, f.writeln(SystemToString()))); static assert(!__traits(compiles, f.writef("%s", SystemToString()))); static assert(!__traits(compiles, f.writefln("%s", SystemToString()))); static assert(!__traits(compiles, write(SystemToString().toString()))); static assert(!__traits(compiles, writeln(SystemToString()))); static assert(!__traits(compiles, writef("%s", SystemToString()))); static assert(!__traits(compiles, writefln("%s", SystemToString()))); } systemTests(); safeTests(); } @safe unittest { import std.exception : collectException; static import std.file; auto deleteme = testFilename(); scope(exit) collectException(std.file.remove(deleteme)); std.file.write(deleteme, "1 2 3"); auto f = File(deleteme); assert(f.size == 5); assert(f.tell == 0); } @system unittest { // @system due to readln static import std.file; import std.range : chain, only, repeat; import std.range.primitives : isOutputRange; auto deleteme = testFilename(); scope(exit) std.file.remove(deleteme); { auto writer = File(deleteme, "w").lockingTextWriter(); static assert(isOutputRange!(typeof(writer), dchar)); writer.put("日本語"); writer.put("日本語"w); writer.put("日本語"d); writer.put('日'); writer.put(chain(only('本'), only('語'))); // https://issues.dlang.org/show_bug.cgi?id=11945 writer.put(repeat('#', 12)); // https://issues.dlang.org/show_bug.cgi?id=17229 writer.put(cast(immutable(ubyte)[])"日本語"); } assert(File(deleteme).readln() == "日本語日本語日本語日本語############日本語"); } @safe unittest // wchar -> char { static import std.file; import std.exception : assertThrown; import std.utf : UTFException; auto deleteme = testFilename(); scope(exit) std.file.remove(deleteme); { auto writer = File(deleteme, "w").lockingTextWriter(); writer.put("\U0001F608"w); } assert(std.file.readText!string(deleteme) == "\U0001F608"); // Test invalid input: unpaired high surrogate { immutable wchar surr = "\U0001F608"w[0]; auto f = File(deleteme, "w"); assertThrown!UTFException(() { auto writer = f.lockingTextWriter(); writer.put('x'); writer.put(surr); assertThrown!UTFException(writer.put(char('y'))); assertThrown!UTFException(writer.put(wchar('y'))); assertThrown!UTFException(writer.put(dchar('y'))); assertThrown!UTFException(writer.put(surr)); // First `surr` is still unpaired at this point. `writer` gets // destroyed now, and the destructor throws a UTFException for // the unpaired surrogate. } ()); } assert(std.file.readText!string(deleteme) == "x"); // Test invalid input: unpaired low surrogate { immutable wchar surr = "\U0001F608"w[1]; auto writer = File(deleteme, "w").lockingTextWriter(); assertThrown!UTFException(writer.put(surr)); writer.put('y'); assertThrown!UTFException(writer.put(surr)); } assert(std.file.readText!string(deleteme) == "y"); } @safe unittest // issue 18801 { static import std.file; import std.string : stripLeft; auto deleteme = testFilename(); scope(exit) std.file.remove(deleteme); { auto writer = File(deleteme, "w,ccs=UTF-8").lockingTextWriter(); writer.put("foo"); } assert(std.file.readText!string(deleteme).stripLeft("\uFEFF") == "foo"); { auto writer = File(deleteme, "a,ccs=UTF-8").lockingTextWriter(); writer.put("bar"); } assert(std.file.readText!string(deleteme).stripLeft("\uFEFF") == "foobar"); } @safe unittest // char/wchar -> wchar_t { import core.stdc.locale : LC_CTYPE, setlocale; import core.stdc.wchar_ : fwide; import core.stdc.string : strlen; import std.algorithm.searching : any, endsWith; import std.conv : text; import std.meta : AliasSeq; import std.string : fromStringz, stripLeft; static import std.file; auto deleteme = testFilename(); scope(exit) std.file.remove(deleteme); const char* oldCt = () @trusted { const(char)* p = setlocale(LC_CTYPE, null); // Subsequent calls to `setlocale` might invalidate this return value, // so duplicate it. // See: https://github.com/dlang/phobos/pull/7660 return p ? p[0 .. strlen(p) + 1].idup.ptr : null; }(); const utf8 = ["en_US.UTF-8", "C.UTF-8", ".65001"].any!((loc) @trusted { return setlocale(LC_CTYPE, loc.ptr).fromStringz.endsWith(loc); }); scope(exit) () @trusted { setlocale(LC_CTYPE, oldCt); } (); version (DIGITAL_MARS_STDIO) // DM can't handle Unicode above U+07FF. { alias strs = AliasSeq!("xä\u07FE", "yö\u07FF"w); } else { alias strs = AliasSeq!("xä\U0001F607", "yö\U0001F608"w); } { auto f = File(deleteme, "w"); version (MICROSOFT_STDIO) { () @trusted { setmode(fileno(f.getFP()), _O_U8TEXT); } (); } else { assert(fwide(f.getFP(), 1) == 1); } auto writer = f.lockingTextWriter(); assert(writer.orientation_ == 1); static foreach (s; strs) writer.put(s); } assert(std.file.readText!string(deleteme).stripLeft("\uFEFF") == text(strs)); } @safe unittest // https://issues.dlang.org/show_bug.cgi?id=18789 { static import std.file; auto deleteme = testFilename(); scope(exit) std.file.remove(deleteme); // converting to char { auto f = File(deleteme, "w"); f.writeln("\U0001F608"w); // UTFException } // converting to wchar_t { auto f = File(deleteme, "w,ccs=UTF-16LE"); // from char f.writeln("ö"); // writes garbage f.writeln("\U0001F608"); // ditto // from wchar f.writeln("\U0001F608"w); // leads to ErrnoException } } @safe unittest { import std.exception : collectException; auto e = collectException({ File f; f.writeln("Hello!"); }()); assert(e && e.msg == "Attempting to write to closed File"); } version (StdStressTest) { // https://issues.dlang.org/show_bug.cgi?id=15768 @system unittest { import std.parallelism : parallel; import std.range : iota; auto deleteme = testFilename(); stderr = File(deleteme, "w"); foreach (t; 1_000_000.iota.parallel) { stderr.write("aaa"); } } } /// Used to specify the lock type for `File.lock` and `File.tryLock`. enum LockType { /** * Specifies a _read (shared) lock. A _read lock denies all processes * write access to the specified region of the file, including the * process that first locks the region. All processes can _read the * locked region. Multiple simultaneous _read locks are allowed, as * long as there are no exclusive locks. */ read, /** * Specifies a read/write (exclusive) lock. A read/write lock denies all * other processes both read and write access to the locked file region. * If a segment has an exclusive lock, it may not have any shared locks * or other exclusive locks. */ readWrite } struct LockingTextReader { private File _f; private char _front; private bool _hasChar; this(File f) { import std.exception : enforce; enforce(f.isOpen, "LockingTextReader: File must be open"); _f = f; FLOCK(_f._p.handle); } this(this) { FLOCK(_f._p.handle); } ~this() { if (_hasChar) ungetc(_front, cast(FILE*)_f._p.handle); // File locking has its own reference count if (_f.isOpen) FUNLOCK(_f._p.handle); } void opAssign(LockingTextReader r) { import std.algorithm.mutation : swap; swap(this, r); } @property bool empty() { if (!_hasChar) { if (!_f.isOpen || _f.eof) return true; immutable int c = FGETC(cast(_iobuf*) _f._p.handle); if (c == EOF) { .destroy(_f); return true; } _front = cast(char) c; _hasChar = true; } return false; } @property char front() { if (!_hasChar) { version (assert) { import core.exception : RangeError; if (empty) throw new RangeError(); } else { empty; } } return _front; } void popFront() { if (!_hasChar) empty; _hasChar = false; } } @system unittest { // @system due to readf static import std.file; import std.range.primitives : isInputRange; static assert(isInputRange!LockingTextReader); auto deleteme = testFilename(); std.file.write(deleteme, "1 2 3"); scope(exit) std.file.remove(deleteme); int x; auto f = File(deleteme); f.readf("%s ", &x); assert(x == 1); f.readf("%d ", &x); assert(x == 2); f.readf("%d ", &x); assert(x == 3); } // https://issues.dlang.org/show_bug.cgi?id=13686 @system unittest { import std.algorithm.comparison : equal; static import std.file; import std.utf : byDchar; auto deleteme = testFilename(); std.file.write(deleteme, "Тест"); scope(exit) std.file.remove(deleteme); string s; File(deleteme).readf("%s", &s); assert(s == "Тест"); auto ltr = LockingTextReader(File(deleteme)).byDchar; assert(equal(ltr, "Тест".byDchar)); } // https://issues.dlang.org/show_bug.cgi?id=12320 @system unittest { static import std.file; auto deleteme = testFilename(); std.file.write(deleteme, "ab"); scope(exit) std.file.remove(deleteme); auto ltr = LockingTextReader(File(deleteme)); assert(ltr.front == 'a'); ltr.popFront(); assert(ltr.front == 'b'); ltr.popFront(); assert(ltr.empty); } // https://issues.dlang.org/show_bug.cgi?id=14861 @system unittest { // @system due to readf static import std.file; auto deleteme = testFilename(); File fw = File(deleteme, "w"); for (int i; i != 5000; i++) fw.writeln(i, ";", "Иванов;Пётр;Петрович"); fw.close(); scope(exit) std.file.remove(deleteme); // Test read File fr = File(deleteme, "r"); scope (exit) fr.close(); int nom; string fam, nam, ot; // Error format read while (!fr.eof) fr.readf("%s;%s;%s;%s\n", &nom, &fam, &nam, &ot); } /** * Indicates whether `T` is a file handle, i.e. the type * is implicitly convertable to $(LREF File) or a pointer to a * $(REF FILE, core,stdc,stdio). * * Returns: * `true` if `T` is a file handle, `false` otherwise. */ template isFileHandle(T) { enum isFileHandle = is(T : FILE*) || is(T : File); } /// @safe unittest { static assert(isFileHandle!(FILE*)); static assert(isFileHandle!(File)); } /** * Property used by writeln/etc. so it can infer @safe since stdout is __gshared */ private @property File trustedStdout() @trusted { return stdout; } /*********************************** Writes its arguments in text format to standard output (without a trailing newline). Params: args = the items to write to `stdout` Throws: In case of an I/O error, throws an `StdioException`. Example: Reads `stdin` and writes it to `stdout` with an argument counter. --- import std.stdio; void main() { string line; for (size_t count = 0; (line = readln) !is null; count++) { write("Input ", count, ": ", line, "\n"); } } --- */ void write(T...)(T args) if (!is(T[0] : File)) { trustedStdout.write(args); } @system unittest { static import std.file; scope(failure) printf("Failed test at line %d\n", __LINE__); void[] buf; if (false) write(buf); // test write auto deleteme = testFilename(); auto f = File(deleteme, "w"); f.write("Hello, ", "world number ", 42, "!"); f.close(); scope(exit) { std.file.remove(deleteme); } assert(cast(char[]) std.file.read(deleteme) == "Hello, world number 42!"); } /*********************************** * Equivalent to `write(args, '\n')`. Calling `writeln` without * arguments is valid and just prints a newline to the standard * output. * * Params: * args = the items to write to `stdout` * * Throws: * In case of an I/O error, throws an $(LREF StdioException). * Example: * Reads `stdin` and writes it to `stdout` with an argument * counter. --- import std.stdio; void main() { string line; for (size_t count = 0; (line = readln) !is null; count++) { writeln("Input ", count, ": ", line); } } --- */ void writeln(T...)(T args) { static if (T.length == 0) { import std.exception : enforce; enforce(fputc('\n', .trustedStdout._p.handle) != EOF, "fputc failed"); } else static if (T.length == 1 && is(T[0] : const(char)[]) && (is(T[0] == U[], U) || __traits(isStaticArray, T[0]))) { // Specialization for strings - a very frequent case auto w = .trustedStdout.lockingTextWriter(); static if (__traits(isStaticArray, T[0])) { w.put(args[0][]); } else { w.put(args[0]); } w.put('\n'); } else { // Most general instance trustedStdout.write(args, '\n'); } } @safe unittest { // Just make sure the call compiles if (false) writeln(); if (false) writeln("wyda"); // https://issues.dlang.org/show_bug.cgi?id=8040 if (false) writeln(null); if (false) writeln(">", null, "<"); // https://issues.dlang.org/show_bug.cgi?id=14041 if (false) { char[8] a; writeln(a); immutable b = a; b.writeln; const c = a[]; c.writeln; } } @system unittest { static import std.file; scope(failure) printf("Failed test at line %d\n", __LINE__); // test writeln auto deleteme = testFilename(); auto f = File(deleteme, "w"); scope(exit) { std.file.remove(deleteme); } f.writeln("Hello, ", "world number ", 42, "!"); f.close(); version (Windows) assert(cast(char[]) std.file.read(deleteme) == "Hello, world number 42!\r\n"); else assert(cast(char[]) std.file.read(deleteme) == "Hello, world number 42!\n"); // test writeln on stdout auto saveStdout = stdout; scope(exit) stdout = saveStdout; stdout.open(deleteme, "w"); writeln("Hello, ", "world number ", 42, "!"); stdout.close(); version (Windows) assert(cast(char[]) std.file.read(deleteme) == "Hello, world number 42!\r\n"); else assert(cast(char[]) std.file.read(deleteme) == "Hello, world number 42!\n"); stdout.open(deleteme, "w"); writeln("Hello!"c); writeln("Hello!"w); // https://issues.dlang.org/show_bug.cgi?id=8386 writeln("Hello!"d); // https://issues.dlang.org/show_bug.cgi?id=8386 writeln("embedded\0null"c); // https://issues.dlang.org/show_bug.cgi?id=8730 stdout.close(); version (Windows) assert(cast(char[]) std.file.read(deleteme) == "Hello!\r\nHello!\r\nHello!\r\nembedded\0null\r\n"); else assert(cast(char[]) std.file.read(deleteme) == "Hello!\nHello!\nHello!\nembedded\0null\n"); } @system unittest { static import std.file; auto deleteme = testFilename(); auto f = File(deleteme, "w"); scope(exit) { std.file.remove(deleteme); } enum EI : int { A, B } enum ED : double { A = 0, B } // NOTE: explicit initialization to 0 required during Enum init deprecation cycle enum EC : char { A = 0, B } // NOTE: explicit initialization to 0 required during Enum init deprecation cycle enum ES : string { A = "aaa", B = "bbb" } f.writeln(EI.A); // false, but A on 2.058 f.writeln(EI.B); // true, but B on 2.058 f.writeln(ED.A); // A f.writeln(ED.B); // B f.writeln(EC.A); // A f.writeln(EC.B); // B f.writeln(ES.A); // A f.writeln(ES.B); // B f.close(); version (Windows) assert(cast(char[]) std.file.read(deleteme) == "A\r\nB\r\nA\r\nB\r\nA\r\nB\r\nA\r\nB\r\n"); else assert(cast(char[]) std.file.read(deleteme) == "A\nB\nA\nB\nA\nB\nA\nB\n"); } @system unittest { static auto useInit(T)(T ltw) { T val; val = ltw; val = T.init; return val; } useInit(stdout.lockingTextWriter()); } /*********************************** Writes formatted data to standard output (without a trailing newline). Params: fmt = The $(REF_ALTTEXT format string, formattedWrite, std, _format). When passed as a compile-time argument, the string will be statically checked against the argument types passed. args = Items to write. Note: In older versions of Phobos, it used to be possible to write: ------ writef(stderr, "%s", "message"); ------ to print a message to `stderr`. This syntax is no longer supported, and has been superceded by: ------ stderr.writef("%s", "message"); ------ */ void writef(alias fmt, A...)(A args) if (isSomeString!(typeof(fmt))) { import std.format : checkFormatException; alias e = checkFormatException!(fmt, A); static assert(!e, e.msg); return .writef(fmt, args); } /// ditto void writef(Char, A...)(in Char[] fmt, A args) { trustedStdout.writef(fmt, args); } @system unittest { static import std.file; scope(failure) printf("Failed test at line %d\n", __LINE__); // test writef auto deleteme = testFilename(); auto f = File(deleteme, "w"); scope(exit) { std.file.remove(deleteme); } f.writef!"Hello, %s world number %s!"("nice", 42); f.close(); assert(cast(char[]) std.file.read(deleteme) == "Hello, nice world number 42!"); // test write on stdout auto saveStdout = stdout; scope(exit) stdout = saveStdout; stdout.open(deleteme, "w"); writef!"Hello, %s world number %s!"("nice", 42); stdout.close(); assert(cast(char[]) std.file.read(deleteme) == "Hello, nice world number 42!"); } /*********************************** * Equivalent to $(D writef(fmt, args, '\n')). */ void writefln(alias fmt, A...)(A args) if (isSomeString!(typeof(fmt))) { import std.format : checkFormatException; alias e = checkFormatException!(fmt, A); static assert(!e, e.msg); return .writefln(fmt, args); } /// ditto void writefln(Char, A...)(in Char[] fmt, A args) { trustedStdout.writefln(fmt, args); } @system unittest { static import std.file; scope(failure) printf("Failed test at line %d\n", __LINE__); // test File.writefln auto deleteme = testFilename(); auto f = File(deleteme, "w"); scope(exit) { std.file.remove(deleteme); } f.writefln!"Hello, %s world number %s!"("nice", 42); f.close(); version (Windows) assert(cast(char[]) std.file.read(deleteme) == "Hello, nice world number 42!\r\n"); else assert(cast(char[]) std.file.read(deleteme) == "Hello, nice world number 42!\n", cast(char[]) std.file.read(deleteme)); // test writefln auto saveStdout = stdout; scope(exit) stdout = saveStdout; stdout.open(deleteme, "w"); writefln!"Hello, %s world number %s!"("nice", 42); stdout.close(); version (Windows) assert(cast(char[]) std.file.read(deleteme) == "Hello, nice world number 42!\r\n"); else assert(cast(char[]) std.file.read(deleteme) == "Hello, nice world number 42!\n"); } /** * Reads formatted data from `stdin` using $(REF formattedRead, std,_format). * Params: * format = The $(REF_ALTTEXT format string, formattedWrite, std, _format). * When passed as a compile-time argument, the string will be statically checked * against the argument types passed. * args = Items to be read. * Example: ---- // test.d void main() { import std.stdio; foreach (_; 0 .. 3) { int a; readf!" %d"(a); writeln(++a); } } ---- $(CONSOLE % echo "1 2 3" | rdmd test.d 2 3 4 ) */ uint readf(alias format, A...)(auto ref A args) if (isSomeString!(typeof(format))) { import std.format : checkFormatException; alias e = checkFormatException!(format, A); static assert(!e, e.msg); return .readf(format, args); } /// ditto uint readf(A...)(scope const(char)[] format, auto ref A args) { return stdin.readf(format, args); } @system unittest { float f; if (false) readf("%s", &f); char a; wchar b; dchar c; if (false) readf("%s %s %s", a, b, c); // backwards compatibility with pointers if (false) readf("%s %s %s", a, &b, c); if (false) readf("%s %s %s", &a, &b, &c); } /********************************** * Read line from `stdin`. * * This version manages its own read buffer, which means one memory allocation per call. If you are not * retaining a reference to the read data, consider the `readln(buf)` version, which may offer * better performance as it can reuse its read buffer. * * Returns: * The line that was read, including the line terminator character. * Params: * S = Template parameter; the type of the allocated buffer, and the type returned. Defaults to `string`. * terminator = Line terminator (by default, `'\n'`). * Note: * String terminators are not supported due to ambiguity with readln(buf) below. * Throws: * `StdioException` on I/O error, or `UnicodeException` on Unicode conversion error. * Example: * Reads `stdin` and writes it to `stdout`. --- import std.stdio; void main() { string line; while ((line = readln()) !is null) write(line); } --- */ S readln(S = string)(dchar terminator = '\n') if (isSomeString!S) { return stdin.readln!S(terminator); } /********************************** * Read line from `stdin` and write it to buf[], including terminating character. * * This can be faster than $(D line = readln()) because you can reuse * the buffer for each call. Note that reusing the buffer means that you * must copy the previous contents if you wish to retain them. * * Returns: * `size_t` 0 for end of file, otherwise number of characters read * Params: * buf = Buffer used to store the resulting line data. buf is resized as necessary. * terminator = Line terminator (by default, `'\n'`). Use $(REF newline, std,ascii) * for portability (unless the file was opened in text mode). * Throws: * `StdioException` on I/O error, or `UnicodeException` on Unicode conversion error. * Example: * Reads `stdin` and writes it to `stdout`. --- import std.stdio; void main() { char[] buf; while (readln(buf)) write(buf); } --- */ size_t readln(C)(ref C[] buf, dchar terminator = '\n') if (isSomeChar!C && is(Unqual!C == C) && !is(C == enum)) { return stdin.readln(buf, terminator); } /** ditto */ size_t readln(C, R)(ref C[] buf, R terminator) if (isSomeChar!C && is(Unqual!C == C) && !is(C == enum) && isBidirectionalRange!R && is(typeof(terminator.front == dchar.init))) { return stdin.readln(buf, terminator); } @safe unittest { import std.meta : AliasSeq; //we can't actually test readln, so at the very least, //we test compilability void foo() { readln(); readln('\t'); static foreach (String; AliasSeq!(string, char[], wstring, wchar[], dstring, dchar[])) { readln!String(); readln!String('\t'); } static foreach (String; AliasSeq!(char[], wchar[], dchar[])) {{ String buf; readln(buf); readln(buf, '\t'); readln(buf, "<br />"); }} } } /* * Convenience function that forwards to `core.sys.posix.stdio.fopen` * (to `_wfopen` on Windows) * with appropriately-constructed C-style strings. */ private FILE* _fopen(R1, R2)(R1 name, R2 mode = "r") if ((isInputRange!R1 && isSomeChar!(ElementEncodingType!R1) || isSomeString!R1) && (isInputRange!R2 && isSomeChar!(ElementEncodingType!R2) || isSomeString!R2)) { import std.internal.cstring : tempCString; auto namez = name.tempCString!FSChar(); auto modez = mode.tempCString!FSChar(); static _fopenImpl(const(FSChar)* namez, const(FSChar)* modez) @trusted nothrow @nogc { version (Windows) { return _wfopen(namez, modez); } else version (Posix) { /* * The new opengroup large file support API is transparently * included in the normal C bindings. http://opengroup.org/platform/lfs.html#1.0 * if _FILE_OFFSET_BITS in druntime is 64, off_t is 64 bit and * the normal functions work fine. If not, then large file support * probably isn't available. Do not use the old transitional API * (the native extern(C) fopen64, http://www.unix.org/version2/whatsnew/lfs20mar.html#3.0) */ import core.sys.posix.stdio : fopen; return fopen(namez, modez); } else { return fopen(namez, modez); } } return _fopenImpl(namez, modez); } version (Posix) { /*********************************** * Convenience function that forwards to `core.sys.posix.stdio.popen` * with appropriately-constructed C-style strings. */ FILE* _popen(R1, R2)(R1 name, R2 mode = "r") @trusted nothrow @nogc if ((isInputRange!R1 && isSomeChar!(ElementEncodingType!R1) || isSomeString!R1) && (isInputRange!R2 && isSomeChar!(ElementEncodingType!R2) || isSomeString!R2)) { import std.internal.cstring : tempCString; auto namez = name.tempCString!FSChar(); auto modez = mode.tempCString!FSChar(); static popenImpl(const(FSChar)* namez, const(FSChar)* modez) @trusted nothrow @nogc { import core.sys.posix.stdio : popen; return popen(namez, modez); } return popenImpl(namez, modez); } } /* * Convenience function that forwards to `core.stdc.stdio.fwrite` */ private auto trustedFwrite(T)(FILE* f, const T[] obj) @trusted { return fwrite(obj.ptr, T.sizeof, obj.length, f); } /* * Convenience function that forwards to `core.stdc.stdio.fread` */ private auto trustedFread(T)(FILE* f, T[] obj) @trusted { return fread(obj.ptr, T.sizeof, obj.length, f); } /** * Iterates through the lines of a file by using `foreach`. * * Example: * --------- void main() { foreach (string line; lines(stdin)) { ... use line ... } } --------- The line terminator (`'\n'` by default) is part of the string read (it could be missing in the last line of the file). Several types are supported for `line`, and the behavior of `lines` changes accordingly: $(OL $(LI If `line` has type `string`, $(D wstring), or `dstring`, a new string of the respective type is allocated every read.) $(LI If `line` has type $(D char[]), `wchar[]`, `dchar[]`, the line's content will be reused (overwritten) across reads.) $(LI If `line` has type `immutable(ubyte)[]`, the behavior is similar to case (1), except that no UTF checking is attempted upon input.) $(LI If `line` has type `ubyte[]`, the behavior is similar to case (2), except that no UTF checking is attempted upon input.)) In all cases, a two-symbols versions is also accepted, in which case the first symbol (of integral type, e.g. `ulong` or $(D uint)) tracks the zero-based number of the current line. Example: ---- foreach (ulong i, string line; lines(stdin)) { ... use line ... } ---- In case of an I/O error, an `StdioException` is thrown. See_Also: $(LREF byLine) */ struct lines { private File f; private dchar terminator = '\n'; /** Constructor. Params: f = File to read lines from. terminator = Line separator (`'\n'` by default). */ this(File f, dchar terminator = '\n') { this.f = f; this.terminator = terminator; } int opApply(D)(scope D dg) { import std.traits : Parameters; alias Parms = Parameters!(dg); static if (isSomeString!(Parms[$ - 1])) { int result = 0; static if (is(Parms[$ - 1] : const(char)[])) alias C = char; else static if (is(Parms[$ - 1] : const(wchar)[])) alias C = wchar; else static if (is(Parms[$ - 1] : const(dchar)[])) alias C = dchar; C[] line; static if (Parms.length == 2) Parms[0] i = 0; for (;;) { import std.conv : to; if (!f.readln(line, terminator)) break; auto copy = to!(Parms[$ - 1])(line); static if (Parms.length == 2) { result = dg(i, copy); ++i; } else { result = dg(copy); } if (result != 0) break; } return result; } else { // raw read return opApplyRaw(dg); } } // no UTF checking int opApplyRaw(D)(scope D dg) { import std.conv : to; import std.exception : assumeUnique; import std.traits : Parameters; alias Parms = Parameters!(dg); enum duplicate = is(Parms[$ - 1] : immutable(ubyte)[]); int result = 1; int c = void; FLOCK(f._p.handle); scope(exit) FUNLOCK(f._p.handle); ubyte[] buffer; static if (Parms.length == 2) Parms[0] line = 0; while ((c = FGETC(cast(_iobuf*) f._p.handle)) != -1) { buffer ~= to!(ubyte)(c); if (c == terminator) { static if (duplicate) auto arg = assumeUnique(buffer); else alias arg = buffer; // unlock the file while calling the delegate FUNLOCK(f._p.handle); scope(exit) FLOCK(f._p.handle); static if (Parms.length == 1) { result = dg(arg); } else { result = dg(line, arg); ++line; } if (result) break; static if (!duplicate) buffer.length = 0; } } // can only reach when FGETC returned -1 if (!f.eof) throw new StdioException("Error in reading file"); // error occured return result; } } @system unittest { static import std.file; import std.meta : AliasSeq; scope(failure) printf("Failed test at line %d\n", __LINE__); auto deleteme = testFilename(); scope(exit) { std.file.remove(deleteme); } alias TestedWith = AliasSeq!(string, wstring, dstring, char[], wchar[], dchar[]); foreach (T; TestedWith) { // test looping with an empty file std.file.write(deleteme, ""); auto f = File(deleteme, "r"); foreach (T line; lines(f)) { assert(false); } f.close(); // test looping with a file with three lines std.file.write(deleteme, "Line one\nline two\nline three\n"); f.open(deleteme, "r"); uint i = 0; foreach (T line; lines(f)) { if (i == 0) assert(line == "Line one\n"); else if (i == 1) assert(line == "line two\n"); else if (i == 2) assert(line == "line three\n"); else assert(false); ++i; } f.close(); // test looping with a file with three lines, last without a newline std.file.write(deleteme, "Line one\nline two\nline three"); f.open(deleteme, "r"); i = 0; foreach (T line; lines(f)) { if (i == 0) assert(line == "Line one\n"); else if (i == 1) assert(line == "line two\n"); else if (i == 2) assert(line == "line three"); else assert(false); ++i; } f.close(); } // test with ubyte[] inputs alias TestedWith2 = AliasSeq!(immutable(ubyte)[], ubyte[]); foreach (T; TestedWith2) { // test looping with an empty file std.file.write(deleteme, ""); auto f = File(deleteme, "r"); foreach (T line; lines(f)) { assert(false); } f.close(); // test looping with a file with three lines std.file.write(deleteme, "Line one\nline two\nline three\n"); f.open(deleteme, "r"); uint i = 0; foreach (T line; lines(f)) { if (i == 0) assert(cast(char[]) line == "Line one\n"); else if (i == 1) assert(cast(char[]) line == "line two\n", T.stringof ~ " " ~ cast(char[]) line); else if (i == 2) assert(cast(char[]) line == "line three\n"); else assert(false); ++i; } f.close(); // test looping with a file with three lines, last without a newline std.file.write(deleteme, "Line one\nline two\nline three"); f.open(deleteme, "r"); i = 0; foreach (T line; lines(f)) { if (i == 0) assert(cast(char[]) line == "Line one\n"); else if (i == 1) assert(cast(char[]) line == "line two\n"); else if (i == 2) assert(cast(char[]) line == "line three"); else assert(false); ++i; } f.close(); } static foreach (T; AliasSeq!(ubyte[])) { // test looping with a file with three lines, last without a newline // using a counter too this time std.file.write(deleteme, "Line one\nline two\nline three"); auto f = File(deleteme, "r"); uint i = 0; foreach (ulong j, T line; lines(f)) { if (i == 0) assert(cast(char[]) line == "Line one\n"); else if (i == 1) assert(cast(char[]) line == "line two\n"); else if (i == 2) assert(cast(char[]) line == "line three"); else assert(false); ++i; } f.close(); } } /** Iterates through a file a chunk at a time by using `foreach`. Example: --------- void main() { foreach (ubyte[] buffer; chunks(stdin, 4096)) { ... use buffer ... } } --------- The content of `buffer` is reused across calls. In the example above, `buffer.length` is 4096 for all iterations, except for the last one, in which case `buffer.length` may be less than 4096 (but always greater than zero). In case of an I/O error, an `StdioException` is thrown. */ auto chunks(File f, size_t size) { return ChunksImpl(f, size); } private struct ChunksImpl { private File f; private size_t size; // private string fileName; // Currently, no use this(File f, size_t size) in { assert(size, "size must be larger than 0"); } do { this.f = f; this.size = size; } int opApply(D)(scope D dg) { import core.stdc.stdlib : alloca; enum maxStackSize = 1024 * 16; ubyte[] buffer = void; if (size < maxStackSize) buffer = (cast(ubyte*) alloca(size))[0 .. size]; else buffer = new ubyte[size]; size_t r = void; int result = 1; uint tally = 0; while ((r = trustedFread(f._p.handle, buffer)) > 0) { assert(r <= size); if (r != size) { // error occured if (!f.eof) throw new StdioException(null); buffer.length = r; } static if (is(typeof(dg(tally, buffer)))) { if ((result = dg(tally, buffer)) != 0) break; } else { if ((result = dg(buffer)) != 0) break; } ++tally; } return result; } } @system unittest { static import std.file; scope(failure) printf("Failed test at line %d\n", __LINE__); auto deleteme = testFilename(); scope(exit) { std.file.remove(deleteme); } // test looping with an empty file std.file.write(deleteme, ""); auto f = File(deleteme, "r"); foreach (ubyte[] line; chunks(f, 4)) { assert(false); } f.close(); // test looping with a file with three lines std.file.write(deleteme, "Line one\nline two\nline three\n"); f = File(deleteme, "r"); uint i = 0; foreach (ubyte[] line; chunks(f, 3)) { if (i == 0) assert(cast(char[]) line == "Lin"); else if (i == 1) assert(cast(char[]) line == "e o"); else if (i == 2) assert(cast(char[]) line == "ne\n"); else break; ++i; } f.close(); } /** Writes an array or range to a file. Shorthand for $(D data.copy(File(fileName, "wb").lockingBinaryWriter)). Similar to $(REF write, std,file), strings are written as-is, rather than encoded according to the `File`'s $(HTTP en.cppreference.com/w/c/io#Narrow_and_wide_orientation, orientation). */ void toFile(T)(T data, string fileName) if (is(typeof(copy(data, stdout.lockingBinaryWriter)))) { copy(data, File(fileName, "wb").lockingBinaryWriter); } @system unittest { static import std.file; auto deleteme = testFilename(); scope(exit) { std.file.remove(deleteme); } "Test".toFile(deleteme); assert(std.file.readText(deleteme) == "Test"); } /********************* * Thrown if I/O errors happen. */ class StdioException : Exception { static import core.stdc.errno; /// Operating system error code. uint errno; /** Initialize with a message and an error code. */ this(string message, uint e = core.stdc.errno.errno) @trusted { import std.exception : errnoString; errno = e; auto sysmsg = errnoString(errno); // If e is 0, we don't use the system error message. (The message // is "Success", which is rather pointless for an exception.) super(e == 0 ? message : (message ? message ~ " (" ~ sysmsg ~ ")" : sysmsg)); } /** Convenience functions that throw an `StdioException`. */ static void opCall(string msg) { throw new StdioException(msg); } /// ditto static void opCall() { throw new StdioException(null, core.stdc.errno.errno); } } enum StdFileHandle: string { stdin = "core.stdc.stdio.stdin", stdout = "core.stdc.stdio.stdout", stderr = "core.stdc.stdio.stderr", } // Undocumented but public because the std* handles are aliasing it. @property ref File makeGlobal(StdFileHandle _iob)() { __gshared File.Impl impl; __gshared File result; // Use an inline spinlock to make sure the initializer is only run once. // We assume there will be at most uint.max / 2 threads trying to initialize // `handle` at once and steal the high bit to indicate that the globals have // been initialized. static shared uint spinlock; import core.atomic : atomicLoad, atomicOp, MemoryOrder; if (atomicLoad!(MemoryOrder.acq)(spinlock) <= uint.max / 2) { for (;;) { if (atomicLoad!(MemoryOrder.acq)(spinlock) > uint.max / 2) break; if (atomicOp!"+="(spinlock, 1) == 1) { with (StdFileHandle) assert(_iob == stdin || _iob == stdout || _iob == stderr); impl.handle = mixin(_iob); result._p = &impl; atomicOp!"+="(spinlock, uint.max / 2); break; } atomicOp!"-="(spinlock, 1); } } return result; } /** The standard input stream. Returns: stdin as a $(LREF File). Note: The returned $(LREF File) wraps $(REF stdin,core,stdc,stdio), and is therefore thread global. Reassigning `stdin` to a different `File` must be done in a single-threaded or locked context in order to avoid race conditions. All reading from `stdin` automatically locks the file globally, and will cause all other threads calling `read` to wait until the lock is released. */ alias stdin = makeGlobal!(StdFileHandle.stdin); /// @safe unittest { // Read stdin, sort lines, write to stdout import std.algorithm.mutation : copy; import std.algorithm.sorting : sort; import std.array : array; import std.typecons : Yes; void main() { stdin // read from stdin .byLineCopy(Yes.keepTerminator) // copying each line .array() // convert to array of lines .sort() // sort the lines .copy( // copy output of .sort to an OutputRange stdout.lockingTextWriter()); // the OutputRange } } /** The standard output stream. Returns: stdout as a $(LREF File). Note: The returned $(LREF File) wraps $(REF stdout,core,stdc,stdio), and is therefore thread global. Reassigning `stdout` to a different `File` must be done in a single-threaded or locked context in order to avoid race conditions. All writing to `stdout` automatically locks the file globally, and will cause all other threads calling `write` to wait until the lock is released. */ alias stdout = makeGlobal!(StdFileHandle.stdout); /// @safe unittest { void main() { stdout.writeln("Write a message to stdout."); } } /// @safe unittest { void main() { import std.algorithm.iteration : filter, map, sum; import std.format : format; import std.range : iota, tee; int len; const r = 6.iota .filter!(a => a % 2) // 1 3 5 .map!(a => a * 2) // 2 6 10 .tee!(_ => stdout.writefln("len: %d", len++)) .sum; assert(r == 18); } } /// @safe unittest { void main() { import std.algorithm.mutation : copy; import std.algorithm.iteration : map; import std.format : format; import std.range : iota; 10.iota .map!(e => "N: %d".format(e)) .copy(stdout.lockingTextWriter()); // the OutputRange } } /** The standard error stream. Returns: stderr as a $(LREF File). Note: The returned $(LREF File) wraps $(REF stderr,core,stdc,stdio), and is therefore thread global. Reassigning `stderr` to a different `File` must be done in a single-threaded or locked context in order to avoid race conditions. All writing to `stderr` automatically locks the file globally, and will cause all other threads calling `write` to wait until the lock is released. */ alias stderr = makeGlobal!(StdFileHandle.stderr); /// @safe unittest { void main() { stderr.writeln("Write a message to stderr."); } } @system unittest { static import std.file; import std.typecons : tuple; scope(failure) printf("Failed test at line %d\n", __LINE__); auto deleteme = testFilename(); std.file.write(deleteme, "1 2\n4 1\n5 100"); scope(exit) std.file.remove(deleteme); { File f = File(deleteme); scope(exit) f.close(); auto t = [ tuple(1, 2), tuple(4, 1), tuple(5, 100) ]; uint i; foreach (e; f.byRecord!(int, int)("%s %s")) { //writeln(e); assert(e == t[i++]); } assert(i == 3); } } @safe unittest { // Retain backwards compatibility // https://issues.dlang.org/show_bug.cgi?id=17472 static assert(is(typeof(stdin) == File)); static assert(is(typeof(stdout) == File)); static assert(is(typeof(stderr) == File)); } // roll our own appender, but with "safe" arrays private struct ReadlnAppender { char[] buf; size_t pos; bool safeAppend = false; void initialize(char[] b) { buf = b; pos = 0; } @property char[] data() @trusted { if (safeAppend) assumeSafeAppend(buf.ptr[0 .. pos]); return buf.ptr[0 .. pos]; } bool reserveWithoutAllocating(size_t n) { if (buf.length >= pos + n) // buf is already large enough return true; immutable curCap = buf.capacity; if (curCap >= pos + n) { buf.length = curCap; /* Any extra capacity we end up not using can safely be claimed by someone else. */ safeAppend = true; return true; } return false; } void reserve(size_t n) @trusted { import core.stdc.string : memcpy; if (!reserveWithoutAllocating(n)) { size_t ncap = buf.length * 2 + 128 + n; char[] nbuf = new char[ncap]; memcpy(nbuf.ptr, buf.ptr, pos); buf = nbuf; // Allocated a new buffer. No one else knows about it. safeAppend = true; } } void putchar(char c) @trusted { reserve(1); buf.ptr[pos++] = c; } void putdchar(dchar dc) @trusted { import std.utf : encode, UseReplacementDchar; char[4] ubuf; immutable size = encode!(UseReplacementDchar.yes)(ubuf, dc); reserve(size); foreach (c; ubuf) buf.ptr[pos++] = c; } void putonly(char[] b) @trusted { import core.stdc.string : memcpy; assert(pos == 0); // assume this is the only put call if (reserveWithoutAllocating(b.length)) memcpy(buf.ptr + pos, b.ptr, b.length); else buf = b.dup; pos = b.length; } } // Private implementation of readln private size_t readlnImpl(FILE* fps, ref char[] buf, dchar terminator, File.Orientation orientation) { version (DIGITAL_MARS_STDIO) { FLOCK(fps); scope(exit) FUNLOCK(fps); /* Since fps is now locked, we can create an "unshared" version * of fp. */ auto fp = cast(_iobuf*) fps; ReadlnAppender app; app.initialize(buf); if (__fhnd_info[fp._file] & FHND_WCHAR) { /* Stream is in wide characters. * Read them and convert to chars. */ static assert(wchar_t.sizeof == 2); for (int c = void; (c = FGETWC(fp)) != -1; ) { if ((c & ~0x7F) == 0) { app.putchar(cast(char) c); if (c == terminator) break; } else { if (c >= 0xD800 && c <= 0xDBFF) { int c2 = void; if ((c2 = FGETWC(fp)) != -1 || c2 < 0xDC00 && c2 > 0xDFFF) { StdioException("unpaired UTF-16 surrogate"); } c = ((c - 0xD7C0) << 10) + (c2 - 0xDC00); } app.putdchar(cast(dchar) c); } } if (ferror(fps)) StdioException(); } else if (fp._flag & _IONBF) { /* Use this for unbuffered I/O, when running * across buffer boundaries, or for any but the common * cases. */ L1: int c; while ((c = FGETC(fp)) != -1) { app.putchar(cast(char) c); if (c == terminator) { buf = app.data; return buf.length; } } if (ferror(fps)) StdioException(); } else { int u = fp._cnt; char* p = fp._ptr; int i; if (fp._flag & _IOTRAN) { /* Translated mode ignores \r and treats ^Z as end-of-file */ char c; while (1) { if (i == u) // if end of buffer goto L1; // give up c = p[i]; i++; if (c != '\r') { if (c == terminator) break; if (c != 0x1A) continue; goto L1; } else { if (i != u && p[i] == terminator) break; goto L1; } } app.putonly(p[0 .. i]); app.buf[i - 1] = cast(char) terminator; if (terminator == '\n' && c == '\r') i++; } else { while (1) { if (i == u) // if end of buffer goto L1; // give up auto c = p[i]; i++; if (c == terminator) break; } app.putonly(p[0 .. i]); } fp._cnt -= i; fp._ptr += i; } buf = app.data; return buf.length; } else version (MICROSOFT_STDIO) { FLOCK(fps); scope(exit) FUNLOCK(fps); /* Since fps is now locked, we can create an "unshared" version * of fp. */ auto fp = cast(_iobuf*) fps; ReadlnAppender app; app.initialize(buf); int c; while ((c = FGETC(fp)) != -1) { app.putchar(cast(char) c); if (c == terminator) { buf = app.data; return buf.length; } } if (ferror(fps)) StdioException(); buf = app.data; return buf.length; } else static if (__traits(compiles, core.sys.posix.stdio.getdelim)) { import core.stdc.stdlib : free; import core.stdc.wchar_ : fwide; if (orientation == File.Orientation.wide) { /* Stream is in wide characters. * Read them and convert to chars. */ FLOCK(fps); scope(exit) FUNLOCK(fps); auto fp = cast(_iobuf*) fps; version (Windows) { buf.length = 0; for (int c = void; (c = FGETWC(fp)) != -1; ) { if ((c & ~0x7F) == 0) { buf ~= c; if (c == terminator) break; } else { if (c >= 0xD800 && c <= 0xDBFF) { int c2 = void; if ((c2 = FGETWC(fp)) != -1 || c2 < 0xDC00 && c2 > 0xDFFF) { StdioException("unpaired UTF-16 surrogate"); } c = ((c - 0xD7C0) << 10) + (c2 - 0xDC00); } import std.utf : encode; encode(buf, c); } } if (ferror(fp)) StdioException(); return buf.length; } else version (Posix) { buf.length = 0; for (int c; (c = FGETWC(fp)) != -1; ) { import std.utf : encode; if ((c & ~0x7F) == 0) buf ~= cast(char) c; else encode(buf, cast(dchar) c); if (c == terminator) break; } if (ferror(fps)) StdioException(); return buf.length; } else { static assert(0); } } static char *lineptr = null; static size_t n = 0; scope(exit) { if (n > 128 * 1024) { // Bound memory used by readln free(lineptr); lineptr = null; n = 0; } } auto s = core.sys.posix.stdio.getdelim(&lineptr, &n, terminator, fps); if (s < 0) { if (ferror(fps)) StdioException(); buf.length = 0; // end of file return 0; } if (s <= buf.length) { buf = buf[0 .. s]; buf[] = lineptr[0 .. s]; } else { buf = lineptr[0 .. s].dup; } return s; } else // version (NO_GETDELIM) { import core.stdc.wchar_ : fwide; FLOCK(fps); scope(exit) FUNLOCK(fps); auto fp = cast(_iobuf*) fps; if (orientation == File.Orientation.wide) { /* Stream is in wide characters. * Read them and convert to chars. */ version (Windows) { buf.length = 0; for (int c; (c = FGETWC(fp)) != -1; ) { if ((c & ~0x7F) == 0) { buf ~= c; if (c == terminator) break; } else { if (c >= 0xD800 && c <= 0xDBFF) { int c2 = void; if ((c2 = FGETWC(fp)) != -1 || c2 < 0xDC00 && c2 > 0xDFFF) { StdioException("unpaired UTF-16 surrogate"); } c = ((c - 0xD7C0) << 10) + (c2 - 0xDC00); } import std.utf : encode; encode(buf, c); } } if (ferror(fp)) StdioException(); return buf.length; } else version (Posix) { import std.utf : encode; buf.length = 0; for (int c; (c = FGETWC(fp)) != -1; ) { if ((c & ~0x7F) == 0) buf ~= cast(char) c; else encode(buf, cast(dchar) c); if (c == terminator) break; } if (ferror(fps)) StdioException(); return buf.length; } else { static assert(0); } } // Narrow stream // First, fill the existing buffer for (size_t bufPos = 0; bufPos < buf.length; ) { immutable c = FGETC(fp); if (c == -1) { buf.length = bufPos; goto endGame; } buf[bufPos++] = cast(char) c; if (c == terminator) { // No need to test for errors in file buf.length = bufPos; return bufPos; } } // Then, append to it for (int c; (c = FGETC(fp)) != -1; ) { buf ~= cast(char) c; if (c == terminator) { // No need to test for errors in file return buf.length; } } endGame: if (ferror(fps)) StdioException(); return buf.length; } } @system unittest { static import std.file; auto deleteme = testFilename(); scope(exit) std.file.remove(deleteme); std.file.write(deleteme, "abcd\n0123456789abcde\n1234\n"); File f = File(deleteme, "rb"); char[] ln = new char[2]; f.readln(ln); assert(ln == "abcd\n"); char[] t = ln[0 .. 2]; t ~= 't'; assert(t == "abt"); // https://issues.dlang.org/show_bug.cgi?id=13856: ln stomped to "abtd" assert(ln == "abcd\n"); // it can also stomp the array length ln = new char[4]; f.readln(ln); assert(ln == "0123456789abcde\n"); char[100] buf; ln = buf[]; f.readln(ln); assert(ln == "1234\n"); assert(ln.ptr == buf.ptr); // avoid allocation, buffer is good enough } /** Experimental network access via the File interface Opens a TCP connection to the given host and port, then returns a File struct with read and write access through the same interface as any other file (meaning writef and the byLine ranges work!). Authors: Adam D. Ruppe Bugs: Only works on Linux */ version (linux) { File openNetwork(string host, ushort port) { import core.stdc.string : memcpy; import core.sys.posix.arpa.inet : htons; import core.sys.posix.netdb : gethostbyname; import core.sys.posix.netinet.in_ : sockaddr_in; static import core.sys.posix.unistd; static import sock = core.sys.posix.sys.socket; import std.conv : to; import std.exception : enforce; import std.internal.cstring : tempCString; auto h = enforce( gethostbyname(host.tempCString()), new StdioException("gethostbyname")); int s = sock.socket(sock.AF_INET, sock.SOCK_STREAM, 0); enforce(s != -1, new StdioException("socket")); scope(failure) { // want to make sure it doesn't dangle if something throws. Upon // normal exit, the File struct's reference counting takes care of // closing, so we don't need to worry about success core.sys.posix.unistd.close(s); } sockaddr_in addr; addr.sin_family = sock.AF_INET; addr.sin_port = htons(port); memcpy(&addr.sin_addr.s_addr, h.h_addr, h.h_length); enforce(sock.connect(s, cast(sock.sockaddr*) &addr, addr.sizeof) != -1, new StdioException("Connect failed")); File f; f.fdopen(s, "w+", host ~ ":" ~ to!string(port)); return f; } } version (StdUnittest) private string testFilename(string file = __FILE__, size_t line = __LINE__) @safe { import std.conv : text; import std.file : deleteme; import std.path : baseName; // filename intentionally contains non-ASCII (Russian) characters for // https://issues.dlang.org/show_bug.cgi?id=7648 return text(deleteme, "-детка.", baseName(file), ".", line); }
D
// Written in the D programming language. /** This module defines `TypedAllocator`, a statically-typed allocator that aggregates multiple untyped allocators and uses them depending on the static properties of the types allocated. For example, distinct allocators may be used for thread-local vs. thread-shared data, or for fixed-size data (`struct`, `class` objects) vs. resizable data (arrays). Source: $(PHOBOSSRC std/experimental/allocator/typed.d) Macros: T2=$(TR <td style="text-align:left">`$1`</td> $(TD $(ARGS $+))) */ module std.experimental.allocator.typed; import std.experimental.allocator; import std.experimental.allocator.common; import std.range : isInputRange, isForwardRange, walkLength, save, empty, front, popFront; import std.traits : isPointer, hasElaborateDestructor; import std.typecons : Flag, Yes, No; /** Allocation-related flags dictated by type characteristics. `TypedAllocator` deduces these flags from the type being allocated and uses the appropriate allocator accordingly. */ enum AllocFlag : uint { _init = 0, /** Fixed-size allocation (unlikely to get reallocated later). Examples: `int`, `double`, any `struct` or `class` type. By default it is assumed that the allocation is variable-size, i.e. susceptible to later reallocation (for example all array types). This flag is advisory, i.e. in-place resizing may be attempted for `fixedSize` allocations and may succeed. The flag is just a hint to the compiler it may use allocation strategies that work well with objects of fixed size. */ fixedSize = 1, /** The type being allocated embeds no pointers. Examples: `int`, `int[]`, $(D Tuple!(int, float)). The implicit conservative assumption is that the type has members with indirections so it needs to be scanned if garbage collected. Example of types with pointers: `int*[]`, $(D Tuple!(int, string)). */ hasNoIndirections = 4, /** By default it is conservatively assumed that allocated memory may be `cast` to `shared`, passed across threads, and deallocated in a different thread than the one that allocated it. If that's not the case, there are two options. First, `immutableShared` means the memory is allocated for `immutable` data and will be deallocated in the same thread it was allocated in. Second, `threadLocal` means the memory is not to be shared across threads at all. The two flags cannot be simultaneously present. */ immutableShared = 8, /// ditto threadLocal = 16, } /** `TypedAllocator` acts like a chassis on which several specialized allocators can be assembled. To let the system make a choice about a particular kind of allocation, use `Default` for the respective parameters. There is a hierarchy of allocation kinds. When an allocator is implemented for a given combination of flags, it is used. Otherwise, the next down the list is chosen. $(BOOKTABLE , $(TR $(TH `AllocFlag` combination) $(TH Description)) $(T2 AllocFlag.threadLocal |$(NBSP)AllocFlag.hasNoIndirections |$(NBSP)AllocFlag.fixedSize, This is the most specific allocation policy: the memory being allocated is thread local, has no indirections at all, and will not be reallocated. Examples of types fitting this description: `int`, `double`, $(D Tuple!(int, long)), but not $(D Tuple!(int, string)), which contains an indirection.) $(T2 AllocFlag.threadLocal |$(NBSP)AllocFlag.hasNoIndirections, As above, but may be reallocated later. Examples of types fitting this description are `int[]`, `double[]`, $(D Tuple!(int, long)[]), but not $(D Tuple!(int, string)[]), which contains an indirection.) $(T2 AllocFlag.threadLocal, As above, but may embed indirections. Examples of types fitting this description are `int*[]`, `Object[]`, $(D Tuple!(int, string)[]).) $(T2 AllocFlag.immutableShared |$(NBSP)AllocFlag.hasNoIndirections |$(NBSP)AllocFlag.fixedSize, The type being allocated is `immutable` and has no pointers. The thread that allocated it must also deallocate it. Example: `immutable(int)`.) $(T2 AllocFlag.immutableShared |$(NBSP)AllocFlag.hasNoIndirections, As above, but the type may be appended to in the future. Example: `string`.) $(T2 AllocFlag.immutableShared, As above, but the type may embed references. Example: `immutable(Object)[]`.) $(T2 AllocFlag.hasNoIndirections |$(NBSP)AllocFlag.fixedSize, The type being allocated may be shared across threads, embeds no indirections, and has fixed size.) $(T2 AllocFlag.hasNoIndirections, The type being allocated may be shared across threads, may embed indirections, and has variable size.) $(T2 AllocFlag.fixedSize, The type being allocated may be shared across threads, may embed indirections, and has fixed size.) $(T2 0, The most conservative/general allocation: memory may be shared, deallocated in a different thread, may or may not be resized, and may embed references.) ) Params: PrimaryAllocator = The default allocator. Policies = Zero or more pairs consisting of an `AllocFlag` and an allocator type. */ struct TypedAllocator(PrimaryAllocator, Policies...) { import std.algorithm.sorting : isSorted; import std.meta : AliasSeq; import std.typecons : Tuple; static assert(Policies.length == 0 || isSorted([Stride2!Policies])); private template Stride2(T...) { static if (T.length >= 2) { alias Stride2 = AliasSeq!(T[0], Stride2!(T[2 .. $])); } else { alias Stride2 = AliasSeq!(T[0 .. $]); } } // state static if (stateSize!PrimaryAllocator) private PrimaryAllocator primary; else alias primary = PrimaryAllocator.instance; static if (Policies.length > 0) private Tuple!(Stride2!(Policies[1 .. $])) extras; private static bool match(uint have, uint want) { enum uint maskAway = ~(AllocFlag.immutableShared | AllocFlag.threadLocal); // Do we offer thread local? if (have & AllocFlag.threadLocal) { if (want & AllocFlag.threadLocal) return match(have & maskAway, want & maskAway); return false; } if (have & AllocFlag.immutableShared) { // Okay to ask for either thread local or immutable shared if (want & (AllocFlag.threadLocal | AllocFlag.immutableShared)) return match(have & maskAway, want & maskAway); return false; } // From here on we have full-blown thread sharing. if (have & AllocFlag.hasNoIndirections) { if (want & AllocFlag.hasNoIndirections) return match(have & ~AllocFlag.hasNoIndirections, want & ~AllocFlag.hasNoIndirections); return false; } // Fixed size or variable size both match. return true; } /** Given `flags` as a combination of `AllocFlag` values, or a type `T`, returns the allocator that's a closest fit in capabilities. */ auto ref allocatorFor(uint flags)() { static if (Policies.length == 0 || !match(Policies[0], flags)) { return primary; } else static if (Policies.length && match(Policies[$ - 2], flags)) { return extras[$ - 1]; } else { foreach (i, choice; Stride2!Policies) { static if (!match(choice, flags)) { return extras[i - 1]; } } assert(0); } } /// ditto auto ref allocatorFor(T)() { static if (is(T == void[])) { return primary; } else { return allocatorFor!(type2flags!T)(); } } /** Given a type `T`, returns its allocation-related flags as a combination of `AllocFlag` values. */ static uint type2flags(T)() { uint result; static if (is(T == immutable)) result |= AllocFlag.immutableShared; else static if (is(T == shared)) result |= AllocFlag.forSharing; static if (!is(T == U[], U)) result |= AllocFlag.fixedSize; import std.traits : hasIndirections; static if (!hasIndirections!T) result |= AllocFlag.hasNoIndirections; return result; } /** Dynamically allocates (using the appropriate allocator chosen with `allocatorFor!T`) and then creates in the memory allocated an object of type `T`, using `args` (if any) for its initialization. Initialization occurs in the memory allocated and is otherwise semantically the same as `T(args)`. (Note that using `make!(T[])` creates a pointer to an (empty) array of `T`s, not an array. To allocate and initialize an array, use `makeArray!T` described below.) Params: T = Type of the object being created. args = Optional arguments used for initializing the created object. If not present, the object is default constructed. Returns: If `T` is a class type, returns a reference to the created `T` object. Otherwise, returns a `T*` pointing to the created object. In all cases, returns `null` if allocation failed. Throws: If `T`'s constructor throws, deallocates the allocated memory and propagates the exception. */ auto make(T, A...)(auto ref A args) { return .make!T(allocatorFor!T, args); } /** Create an array of `T` with `length` elements. The array is either default-initialized, filled with copies of `init`, or initialized with values fetched from `range`. Params: T = element type of the array being created length = length of the newly created array init = element used for filling the array range = range used for initializing the array elements Returns: The newly-created array, or `null` if either `length` was `0` or allocation failed. Throws: The first two overloads throw only if the used allocator's primitives do. The overloads that involve copy initialization deallocate memory and propagate the exception if the copy operation throws. */ T[] makeArray(T)(size_t length) { return .makeArray!T(allocatorFor!(T[]), length); } /// Ditto T[] makeArray(T)(size_t length, auto ref T init) { return .makeArray!T(allocatorFor!(T[]), init, length); } /// Ditto T[] makeArray(T, R)(R range) if (isInputRange!R) { return .makeArray!T(allocatorFor!(T[]), range); } /** Grows `array` by appending `delta` more elements. The needed memory is allocated using the same allocator that was used for the array type. The extra elements added are either default-initialized, filled with copies of `init`, or initialized with values fetched from `range`. Params: T = element type of the array being created array = a reference to the array being grown delta = number of elements to add (upon success the new length of `array` is $(D array.length + delta)) init = element used for filling the array range = range used for initializing the array elements Returns: `true` upon success, `false` if memory could not be allocated. In the latter case `array` is left unaffected. Throws: The first two overloads throw only if the used allocator's primitives do. The overloads that involve copy initialization deallocate memory and propagate the exception if the copy operation throws. */ bool expandArray(T)(ref T[] array, size_t delta) { return .expandArray(allocatorFor!(T[]), array, delta); } /// Ditto bool expandArray(T)(T[] array, size_t delta, auto ref T init) { return .expandArray(allocatorFor!(T[]), array, delta, init); } /// Ditto bool expandArray(T, R)(ref T[] array, R range) if (isInputRange!R) { return .expandArray(allocatorFor!(T[]), array, range); } /** Shrinks an array by `delta` elements using `allocatorFor!(T[])`. If $(D arr.length < delta), does nothing and returns `false`. Otherwise, destroys the last $(D arr.length - delta) elements in the array and then reallocates the array's buffer. If reallocation fails, fills the array with default-initialized data. Params: T = element type of the array being created arr = a reference to the array being shrunk delta = number of elements to remove (upon success the new length of `arr` is $(D arr.length - delta)) Returns: `true` upon success, `false` if memory could not be reallocated. In the latter case $(D arr[$ - delta .. $]) is left with default-initialized elements. Throws: The first two overloads throw only if the used allocator's primitives do. The overloads that involve copy initialization deallocate memory and propagate the exception if the copy operation throws. */ bool shrinkArray(T)(ref T[] arr, size_t delta) { return .shrinkArray(allocatorFor!(T[]), arr, delta); } /** Destroys and then deallocates (using `allocatorFor!T`) the object pointed to by a pointer, the class object referred to by a `class` or `interface` reference, or an entire array. It is assumed the respective entities had been allocated with the same allocator. */ void dispose(T)(T* p) { return .dispose(allocatorFor!T, p); } /// Ditto void dispose(T)(T p) if (is(T == class) || is(T == interface)) { return .dispose(allocatorFor!T, p); } /// Ditto void dispose(T)(T[] array) { return .dispose(allocatorFor!(T[]), array); } } /// @system unittest { import std.experimental.allocator.gc_allocator : GCAllocator; import std.experimental.allocator.mallocator : Mallocator; import std.experimental.allocator.mmap_allocator : MmapAllocator; alias MyAllocator = TypedAllocator!(GCAllocator, AllocFlag.fixedSize | AllocFlag.threadLocal, Mallocator, AllocFlag.fixedSize | AllocFlag.threadLocal | AllocFlag.hasNoIndirections, MmapAllocator, ); MyAllocator a; auto b = &a.allocatorFor!0(); static assert(is(typeof(*b) == shared const(GCAllocator))); enum f1 = AllocFlag.fixedSize | AllocFlag.threadLocal; auto c = &a.allocatorFor!f1(); static assert(is(typeof(*c) == Mallocator)); enum f2 = AllocFlag.fixedSize | AllocFlag.threadLocal; static assert(is(typeof(a.allocatorFor!f2()) == Mallocator)); // Partial match enum f3 = AllocFlag.threadLocal; static assert(is(typeof(a.allocatorFor!f3()) == Mallocator)); int* p = a.make!int; scope(exit) a.dispose(p); int[] arr = a.makeArray!int(42); scope(exit) a.dispose(arr); assert(a.expandArray(arr, 3)); assert(a.shrinkArray(arr, 4)); }
D
module ddbus.router; import ddbus.thin; import ddbus.c_lib; import ddbus.util; import std.string; import std.typecons; import core.memory; import std.array; import std.algorithm; import std.format; struct MessagePattern { ObjectPath path; InterfaceName iface; string method; bool signal; this(Message msg) { path = msg.path(); iface = msg.iface(); method = msg.member(); signal = (msg.type() == MessageType.Signal); } deprecated("Use the constructor taking a ObjectPath and InterfaceName instead") this(string path, string iface, string method, bool signal = false) { this(ObjectPath(path), interfaceName(iface), method, signal); } this(ObjectPath path, InterfaceName iface, string method, bool signal = false) { this.path = path; this.iface = iface; this.method = method; this.signal = signal; } size_t toHash() const @safe nothrow { size_t hash = 0; auto stringHash = &(typeid(path).getHash); hash += stringHash(&path); hash += stringHash(&iface); hash += stringHash(&method); hash += (signal ? 1 : 0); return hash; } bool opEquals(ref const typeof(this) s) const @safe pure nothrow { return (path == s.path) && (iface == s.iface) && (method == s.method) && (signal == s.signal); } } unittest { import dunit.toolkit; auto msg = Message(busName("org.example.test"), ObjectPath("/test"), interfaceName("org.example.testing"), "testMethod"); auto patt = new MessagePattern(msg); patt.assertEqual(patt); patt.signal.assertFalse(); patt.path.assertEqual("/test"); } struct MessageHandler { alias HandlerFunc = void delegate(Message call, Connection conn); HandlerFunc func; string[] argSig; string[] retSig; } class MessageRouter { MessageHandler[MessagePattern] callTable; bool handle(Message msg, Connection conn) { MessageType type = msg.type(); if (type != MessageType.Call && type != MessageType.Signal) { return false; } auto pattern = MessagePattern(msg); // import std.stdio; debug writeln("Handling ", pattern); if (pattern.iface == "org.freedesktop.DBus.Introspectable" && pattern.method == "Introspect" && !pattern.signal) { handleIntrospect(pattern.path, msg, conn); return true; } MessageHandler* handler = (pattern in callTable); if (handler is null) { return false; } // Check for matching argument types version (DDBusNoChecking) { } else { if (!equal(join(handler.argSig), msg.signature())) { return false; } } handler.func(msg, conn); return true; } void setHandler(Ret, Args...)(MessagePattern patt, Ret delegate(Args) handler) { void handlerWrapper(Message call, Connection conn) { Tuple!Args args = call.readTuple!(Tuple!Args)(); auto retMsg = call.createReturn(); static if (!is(Ret == void)) { Ret ret = handler(args.expand); static if (is(Ret == Tuple!T, T...)) { retMsg.build!T(ret.expand); } else { retMsg.build(ret); } } else { handler(args.expand); } if (!patt.signal) { conn.send(retMsg); } } static string[] args = typeSigArr!Args; static if (is(Ret == void)) { static string[] ret = []; } else { static string[] ret = typeSigReturn!Ret; } // dfmt off MessageHandler handleStruct = { func: &handlerWrapper, argSig: args, retSig: ret }; // dfmt on callTable[patt] = handleStruct; } static string introspectHeader = `<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> <node name="%s">`; deprecated("Use introspectXML(ObjectPath path) instead") string introspectXML(string path) { return introspectXML(ObjectPath(path)); } string introspectXML(ObjectPath path) { // dfmt off auto methods = callTable .byKey() .filter!(a => (a.path == path) && !a.signal) .array .sort!((a, b) => a.iface < b.iface)(); // dfmt on auto ifaces = methods.groupBy(); auto app = appender!string; formattedWrite(app, introspectHeader, path); foreach (iface; ifaces) { formattedWrite(app, `<interface name="%s">`, cast(string)iface.front.iface); foreach (methodPatt; iface.array()) { formattedWrite(app, `<method name="%s">`, methodPatt.method); auto handler = callTable[methodPatt]; foreach (arg; handler.argSig) { formattedWrite(app, `<arg type="%s" direction="in"/>`, arg); } foreach (arg; handler.retSig) { formattedWrite(app, `<arg type="%s" direction="out"/>`, arg); } app.put("</method>"); } app.put("</interface>"); } auto childPath = path; auto children = callTable.byKey().filter!(a => a.path.startsWith(childPath) && a.path != childPath && !a.signal)().map!((s) => s.path.chompPrefix(childPath)) .map!((s) => s.value[1 .. $].findSplit("/")[0]) .array().sort().uniq(); foreach (child; children) { formattedWrite(app, `<node name="%s"/>`, child); } app.put("</node>"); return app.data; } deprecated("Use the method taking an ObjectPath instead") void handleIntrospect(string path, Message call, Connection conn) { handleIntrospect(ObjectPath(path), call, conn); } void handleIntrospect(ObjectPath path, Message call, Connection conn) { auto retMsg = call.createReturn(); retMsg.build(introspectXML(path)); conn.sendBlocking(retMsg); } } extern (C) private DBusHandlerResult filterFunc(DBusConnection* dConn, DBusMessage* dMsg, void* routerP) { MessageRouter router = cast(MessageRouter) routerP; dbus_message_ref(dMsg); Message msg = Message(dMsg); dbus_connection_ref(dConn); Connection conn = Connection(dConn); bool handled = router.handle(msg, conn); if (handled) { return DBusHandlerResult.DBUS_HANDLER_RESULT_HANDLED; } else { return DBusHandlerResult.DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } } extern (C) private void unrootUserData(void* userdata) { GC.removeRoot(userdata); } void registerRouter(Connection conn, MessageRouter router) { void* routerP = cast(void*) router; GC.addRoot(routerP); dbus_connection_add_filter(conn.conn, &filterFunc, routerP, &unrootUserData); } unittest { import dunit.toolkit; import std.typecons : BitFlags; import std.variant : Algebraic; auto router = new MessageRouter(); // set up test messages MessagePattern patt = MessagePattern(ObjectPath("/root"), interfaceName("ca.thume.test"), "test"); router.setHandler!(int, int)(patt, (int p) { return 6; }); patt = MessagePattern(ObjectPath("/root"), interfaceName("ca.thume.tester"), "lolwut"); router.setHandler!(void, int, string)(patt, (int p, string p2) { }); patt = MessagePattern(ObjectPath("/root/wat"), interfaceName("ca.thume.tester"), "lolwut"); router.setHandler!(int, int)(patt, (int p) { return 6; }); patt = MessagePattern(ObjectPath("/root/bar"), interfaceName("ca.thume.tester"), "lolwut"); router.setHandler!(Variant!DBusAny, int)(patt, (int p) { return variant(DBusAny(p)); }); patt = MessagePattern(ObjectPath("/root/foo"), interfaceName("ca.thume.tester"), "lolwut"); router.setHandler!(Tuple!(string, string, int), int, Variant!DBusAny)(patt, (int p, Variant!DBusAny any) { Tuple!(string, string, int) ret; ret[0] = "a"; ret[1] = "b"; ret[2] = p; return ret; }); patt = MessagePattern(ObjectPath("/troll"), interfaceName("ca.thume.tester"), "wow"); router.setHandler!(void)(patt, { return; }); patt = MessagePattern(ObjectPath("/root/fancy"), interfaceName("ca.thume.tester"), "crazyTest"); enum F : ushort { a = 1, b = 8, c = 16 } struct S { ubyte b; ulong ul; F f; } router.setHandler!(int)(patt, (Algebraic!(ushort, BitFlags!F, S) v) { if (v.type is typeid(ushort) || v.type is typeid(BitFlags!F)) { return v.coerce!int; } else if (v.type is typeid(S)) { auto s = v.get!S; final switch (s.f) { case F.a: return s.b; case F.b: return cast(int) s.ul; case F.c: return cast(int) s.ul + s.b; } } assert(false); }); static assert(!__traits(compiles, { patt = MessagePattern("/root/bar", "ca.thume.tester", "lolwut"); router.setHandler!(void, DBusAny)(patt, (DBusAny wrongUsage) { return; }); })); // TODO: these tests rely on nondeterministic hash map ordering static string introspectResult = `<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> <node name="/root"><interface name="ca.thume.test"><method name="test"><arg type="i" direction="in"/><arg type="i" direction="out"/></method></interface><interface name="ca.thume.tester"><method name="lolwut"><arg type="i" direction="in"/><arg type="s" direction="in"/></method></interface><node name="bar"/><node name="fancy"/><node name="foo"/><node name="wat"/></node>`; router.introspectXML(ObjectPath("/root")).assertEqual(introspectResult); static string introspectResult2 = `<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> <node name="/root/foo"><interface name="ca.thume.tester"><method name="lolwut"><arg type="i" direction="in"/><arg type="v" direction="in"/><arg type="s" direction="out"/><arg type="s" direction="out"/><arg type="i" direction="out"/></method></interface></node>`; router.introspectXML(ObjectPath("/root/foo")).assertEqual(introspectResult2); static string introspectResult3 = `<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> <node name="/root/fancy"><interface name="ca.thume.tester"><method name="crazyTest"><arg type="v" direction="in"/><arg type="i" direction="out"/></method></interface></node>`; router.introspectXML(ObjectPath("/root/fancy")).assertEqual(introspectResult3); router.introspectXML(ObjectPath("/")) .assertEndsWith(`<node name="/"><node name="root"/><node name="troll"/></node>`); }
D
module MainBoard; public class MainBoard : Board { }
D
/** Vector utils */ module uctl.util.vec; import std.traits: isArray, Fields, isInstanceOf, TemplateOf; import std.range: ElementType; import uctl.num: isNumer, isInt; import uctl.unit: hasUnits; version(unittest) { import uctl.test: assert_eq, unittests; import uctl.num: fix; mixin unittests; } /// Partially applied vector type template Vec(uint N) { alias Vec(T) = .Vec!(N, T); } /// Partially applied vector type template Vec(T) { alias Vec(uint N) = .Vec!(N, T); } /// Simple vector type backed by static array struct Vec(uint N, T) { private T[N] data; alias data this; } /// Test `Vec` nothrow @nogc @safe unittest { alias Vec3 = Vec!3; alias FVec = Vec!float; alias FVec2 = FVec!2; alias FVec3 = Vec3!float; assert(isInstanceOf!(Vec, Vec!3)); assert(isInstanceOf!(Vec, Vec!float)); assert(isInstanceOf!(Vec, Vec!(3, float))); assert(isInstanceOf!(Vec, Vec3)); assert(isInstanceOf!(Vec, FVec)); assert(isInstanceOf!(Vec, FVec2)); assert(isInstanceOf!(Vec, FVec3)); assert(isInstanceOf!(Vec, Vec3!int)); assert(isInstanceOf!(Vec, FVec!2)); assert(!isVec!Vec3); assert(!isVec!FVec); assert(isVec!FVec2); assert(isVec!FVec3); } /** Get vector element type */ template VecType(X...) if (X.length == 1 && isVec!(X[0])) { static if (isArray!(X[0])) { alias VecType = ElementType!(X[0]); } else static if (is(X[0] == struct)) { alias VecType = Fields!(X[0])[0]; } } /** Get vector size in elements */ template vecSize(X...) if (X.length == 1 && isVec!(X[0])) { static if (isArray!(X[0])) { enum uint vecSize = X[0].length; } else static if (is(X[0] == struct)) { enum uint vecSize = Fields!(X[0]).length; } } private template checkFields(F...) { static if (F.length > 1) { enum bool checkFields = is(F[0] == F[1]) && checkFields!(F[1..$]); } else { enum bool checkFields = true; } } /** Check that some type can be treated as vector */ template isVec(X...) if (X.length >= 1 || X.length <= 3) { static if (X.length == 1) { static if (is(X[0])) { static if (isInstanceOf!(Vec, X[0]) || isArray!(X[0])) { enum bool isVec = true; } else static if (isNumer!(X[0]) || hasUnits!(X[0])) { enum bool isVec = false; } else static if (is(X[0] == struct) && Fields!(X[0]).length > 0 && checkFields!(Fields!(X[0]))) { enum bool isVec = true; } else { enum bool isVec = false; } } else { enum bool isVec = isVec!(typeof(X[0])); } } else static if (isVec!(X[0])) { static if (X.length == 2) { static if (is(X[1])) { enum bool isVec = is(VecType!(X[0]) == X[1]); } else static if (isInt!(X[1])) { enum bool isVec = vecSize!(X[0]) == X[1]; } else { enum bool isVec = false; } } else { enum bool isVec = isVec!(X[0], X[1]) && isVec!(X[0], X[2]); } } else { enum bool isVec = false; } } /// Test `isVec` nothrow @nogc @safe unittest { alias X = fix!(-1, 1); struct S(T) { T a; T b; } struct R(A, B) { A a; B b; } assert(isVec!(double[1])); assert(isVec!(int[2])); assert(isVec!(X[3])); assert(isVec!(S!float)); assert(isVec!(S!int)); assert(isVec!(S!X)); assert(isVec!(R!(X, X))); assert(isVec!(double[1], double)); assert(isVec!(int[2], int)); assert(isVec!(X[3], X)); assert(isVec!(S!float, float)); assert(isVec!(S!int, int)); assert(isVec!(S!X, X)); assert(isVec!(R!(X, X), X)); assert(isVec!(double[1], 1)); assert(isVec!(int[2], 2)); assert(isVec!(X[3], 3)); assert(isVec!(S!X, 2)); assert(isVec!(R!(X, X), 2)); assert(isVec!(double[1], double, 1)); assert(isVec!(int[2], int, 2)); assert(isVec!(X[3], X, 3)); assert(isVec!(S!X, X, 2)); assert(isVec!(R!(X, X), X, 2)); assert(isVec!(double[1], 1, double)); assert(isVec!(int[2], 2, int)); assert(isVec!(X[3], 3, X)); assert(isVec!(S!X, 2, X)); assert(isVec!(R!(X, X), 2, X)); assert(!isVec!(double)); assert(!isVec!(int)); assert(!isVec!(X)); assert(!isVec!(double[1], int)); assert(!isVec!(int[2], X)); assert(!isVec!(X[3], double)); assert(!isVec!(double[1], 2)); assert(!isVec!(int[2], 3)); assert(!isVec!(X[3], 1)); assert(!isVec!(R!(int, double))); assert(!isVec!(R!(X, float))); } /// Interpret vector-like value as slice pure nothrow @nogc @trusted ref VecType!V[vecSize!V] sliceof(V)(ref V v) if (isVec!V) { return * cast(typeof(return)*) &v; } /// Test `sliceof` nothrow @nogc unittest { struct AB(T) { T a; T b; this(const T a_, const T b_) { a = a_; b = b_; } } /// Immutable data access immutable auto iab = AB!float(1.0, 2.0); assert_eq(iab.sliceof[0], 1.0); assert_eq(iab.sliceof[1], 2.0); /// Mutable data access auto ab = AB!float(1.0, 2.0); assert_eq(ab.sliceof[0], 1.0); assert_eq(ab.sliceof[1], 2.0); ab.sliceof[0] = 2.0; ab.sliceof[1] = 1.0; assert_eq(ab.a, 2.0); assert_eq(ab.b, 1.0); } private template isGenVecArray(alias V) { static if (!is(V) && isArray!(typeof(V))) { enum bool isGenVecArray = V.length == 1 && isInt!(V[0]); } else { enum bool isGenVecArray = false; } } private template isGenVecStruct(alias V) { static if (!is(V)) { alias X = V!float; enum bool isGenVecStruct = is(X == struct) && checkFields!(Fields!X); } else { enum bool isGenVecStruct = false; } } /// Check for generic vector template isGenVec(X...) if (X.length >= 1 && X.length <= 2) { static if (X.length == 1) { static if (isNumer!(X[0]) || hasUnits!(X[0])) { enum bool isGenVec = false; } else static if (isGenVecArray!(X[0])) { enum bool isGenVec = X[0][0] > 0; } else static if (isGenVecStruct!(X[0])) { alias V = X[0]; enum bool isGenVec = Fields!(V!float).length > 0; } else { enum bool isGenVec = false; } } else static if (isGenVec!(X[0]) && isInt!(X[1])) { enum bool isGenVec = genVecSize!(X[0]) == X[1]; } else { enum bool isGenVec = false; } } /// Test `isGenVec` nothrow @nogc @safe unittest { assert(isGenVec!([1])); assert(isGenVec!([3])); assert(!isGenVec!([0])); assert(isGenVec!([3], 3)); assert(!isGenVec!([3], 2)); struct ABC(T) { T a; T b; T c; } assert(isGenVec!ABC); assert(isGenVec!(ABC, 3)); assert(!isGenVec!(ABC, 4)); struct ABX(T) { T a; T b; int c; } assert(!isGenVec!ABX); } /// Get size of generic vector template genVecSize(alias V) { static if (isGenVecArray!V) { enum uint genVecSize = V[0]; } else static if (isGenVecStruct!V) { enum uint genVecSize = Fields!(V!float).length; } } /// Test `genVecSize` nothrow @nogc @safe unittest { assert(genVecSize!([1]) == 1); assert(genVecSize!([3]) == 3); struct ABC(T) { T a; T b; T c; } assert(genVecSize!ABC == 3); } /// Instantiate generic vector template GenVec(alias V, T) { static if (isGenVecArray!V) { alias GenVec = T[V[0]]; } else static if (isGenVecStruct!V) { alias GenVec = V!T; } } /// Test `GenVec` nothrow @nogc @safe unittest { assert(is(GenVec!([1], int) == int[1])); assert(is(GenVec!([3], float) == float[3])); struct ABC(T) { T a; T b; T c; } assert(is(GenVec!(ABC, float) == ABC!float)); } /// Test return generic vector nothrow @nogc unittest { struct ABC(T) { T a; T b; T c; } auto retVec(alias V, T)(const T x) if (isGenVec!V) { GenVec!(V, T) ret; static foreach (i; 0..genVecSize!V) { ret.sliceof[i] = x; } return ret; } // Return as static array auto i2 = retVec!([2])(3); assert(i2[0] == 3); assert(i2[1] == 3); /// Return as ABC vector const auto abc = retVec!ABC(0.25); assert(abc.a == 0.25); assert(abc.b == 0.25); assert(abc.c == 0.25); } /// Generic vector from type template genVecOf(X...) if (X.length == 1 && isVec!(X[0])) { static if (is(X[0])) { alias T = X[0]; } else { alias T = typeof(X[0]); } static if (isArray!T) { enum uint[1] genVecOf = [vecSize!T]; } else static if (is(T == struct)) { alias genVecOf = TemplateOf!T; } } /// Test `genVecOf` nothrow @nogc unittest { alias A = genVecOf!(float[2]); assert(isArray!(typeof(A)) && A.length == 1 && A[0] == 2); const int[3] ab; alias B = genVecOf!(ab); assert(isArray!(typeof(B)) && B.length == 1 && B[0] == 3); struct X(T) { T x; } alias C = genVecOf!(X!double); assert(__traits(isSame, C, X)); }
D
module xf.nucleus.asset.compiler.MaterialCompiler; private { import xf.Common; import xf.nucleus.Param; import xf.nucleus.asset.compiler.TextureCompiler; import xf.nucleus.asset.CompiledMaterialAsset; import xf.nucleus.asset.CompiledTextureAsset; import xf.loader.scene.model.Material : LoaderMaterial = Material; import xf.omg.core.LinearAlgebra; import xf.omg.color.RGB; import xf.mem.ScratchAllocator; import xf.img.Image; } // TODO: put this in the asset conditioning pipeline CompiledMaterialAsset compileMaterialAsset( LoaderMaterial material, DgScratchAllocator allocator, MaterialAssetCompilationOptions opts = MaterialAssetCompilationOptions.init ) { final cmat = allocator._new!(CompiledMaterialAsset)(); alias CompiledTextureAsset Texture; Texture albedoTex; Texture specularTex; Texture maskTex; Texture normalTex; Texture emissiveTex; vec4 albedoTint = vec4.one; vec4 specularTint = vec4.one; float roughness = 0.9f; float albedoTexAmount = 0.0f; float specularTexAmount = 0.0f; float emissiveTexAmount = 0.0f; vec2 albedoTexTile = vec2.one; vec2 specularTexTile = vec2.one; vec2 maskTexTile = vec2.one; vec2 normalTexTile = vec2.one; vec2 emissiveTexTile = vec2.one; /+ float smoothness = 0.1f; float ior = 1.5f; //ior = material.ior; +/ enum { AlbedoIdx = 1, SpecularIdx = 2, RoughnessIdx = 3, EmissiveIdx = 5, MaskIdx = 6, NormalIdx = 8 } if (auto map = material.getMap(AlbedoIdx)) { TextureAssetCompilationOptions topts; topts.imgBaseDir = opts.imgBaseDir; albedoTex = compileTextureAsset(map, allocator, topts); albedoTexTile = map.uvTile; albedoTexAmount = map.amount; } else { TextureAssetCompilationOptions topts; albedoTex = compileTextureAsset("img/white.bmp", allocator, topts); } if (auto map = material.getMap(SpecularIdx)) { TextureAssetCompilationOptions topts; topts.imgBaseDir = opts.imgBaseDir; specularTex = compileTextureAsset(map, allocator, topts); specularTexTile = map.uvTile; specularTexAmount = map.amount; } else { TextureAssetCompilationOptions topts; specularTex = compileTextureAsset("img/white.bmp", allocator, topts); } if (auto map = material.getMap(MaskIdx)) { TextureAssetCompilationOptions topts; topts.imgBaseDir = opts.imgBaseDir; maskTex = compileTextureAsset(map, allocator, topts); maskTexTile = map.uvTile; } else { TextureAssetCompilationOptions topts; maskTex = compileTextureAsset("img/white.bmp", allocator, topts); } if (auto map = material.getMap(NormalIdx)) { TextureAssetCompilationOptions topts; topts.imgBaseDir = opts.imgBaseDir; normalTex = compileTextureAsset(map, allocator, topts); normalTex.colorSpace.value = Image.ColorSpace.Linear; normalTexTile = map.uvTile; } else { TextureAssetCompilationOptions topts; normalTex = compileTextureAsset("img/defnormal.bmp", allocator, topts); normalTex.colorSpace.value = Image.ColorSpace.Linear; } if (auto map = material.getMap(EmissiveIdx)) { TextureAssetCompilationOptions topts; topts.imgBaseDir = opts.imgBaseDir; emissiveTex = compileTextureAsset(map, allocator, topts); emissiveTexTile = map.uvTile; emissiveTexAmount = map.amount; } else { TextureAssetCompilationOptions topts; emissiveTex = compileTextureAsset("img/black.bmp", allocator, topts); } roughness = 1.0f - material.shininess; if (roughness < 0.01f) { roughness = 0.01f; } convertRGB !(RGBSpace.sRGB, RGBSpace.Linear_sRGB) (material.diffuseTint, &albedoTint); convertRGB !(RGBSpace.sRGB, RGBSpace.Linear_sRGB) (material.specularTint, &specularTint); uword numParams = 11; if (albedoTex) ++numParams; if (specularTex) ++numParams; if (maskTex) ++numParams; if (normalTex) ++numParams; if (emissiveTex) ++numParams; cmat.params.length = numParams; cmat.params.name = allocator.allocArray!(cstring)(numParams).ptr; cmat.params.valueType = allocator.allocArray!(ParamValueType)(numParams).ptr; cmat.params.value = allocator.allocArray!(void*)(numParams).ptr; uword i = 0; with (cmat.params) { if (albedoTex) { name[i] = "albedoTex"; valueType[i] = ParamValueType.ObjectRef; value[i] = cast(void*)albedoTex; ++i; } if (specularTex) { name[i] = "specularTex"; valueType[i] = ParamValueType.ObjectRef; value[i] = cast(void*)specularTex; ++i; } if (maskTex) { name[i] = "maskTex"; valueType[i] = ParamValueType.ObjectRef; value[i] = cast(void*)maskTex; ++i; } if (normalTex) { name[i] = "normalTex"; valueType[i] = ParamValueType.ObjectRef; value[i] = cast(void*)normalTex; ++i; } if (emissiveTex) { name[i] = "emissiveTex"; valueType[i] = ParamValueType.ObjectRef; value[i] = cast(void*)emissiveTex; ++i; } name[i] = "albedoTexTile"; valueType[i] = ParamValueType.Float2; value[i] = cast(void*)allocator._new!(vec2)(albedoTexTile.tuple); ++i; name[i] = "specularTexTile"; valueType[i] = ParamValueType.Float2; value[i] = cast(void*)allocator._new!(vec2)(specularTexTile.tuple); ++i; name[i] = "maskTexTile"; valueType[i] = ParamValueType.Float2; value[i] = cast(void*)allocator._new!(vec2)(maskTexTile.tuple); ++i; name[i] = "normalTexTile"; valueType[i] = ParamValueType.Float2; value[i] = cast(void*)allocator._new!(vec2)(maskTexTile.tuple); ++i; name[i] = "emissiveTexTile"; valueType[i] = ParamValueType.Float2; value[i] = cast(void*)allocator._new!(vec2)(emissiveTexTile.tuple); ++i; name[i] = "albedoTexAmount"; valueType[i] = ParamValueType.Float; value[i] = cast(void*)allocator._new!(float)(albedoTexAmount); ++i; name[i] = "specularTexAmount"; valueType[i] = ParamValueType.Float; value[i] = cast(void*)allocator._new!(float)(specularTexAmount); ++i; name[i] = "emissiveTexAmount"; valueType[i] = ParamValueType.Float; value[i] = cast(void*)allocator._new!(float)(emissiveTexAmount); ++i; name[i] = "albedoTint"; valueType[i] = ParamValueType.Float4; value[i] = cast(void*)allocator._new!(vec4)(albedoTint.tuple); ++i; name[i] = "specularTint"; valueType[i] = ParamValueType.Float4; value[i] = cast(void*)allocator._new!(vec4)(specularTint.tuple); ++i; name[i] = "roughness"; valueType[i] = ParamValueType.Float; value[i] = cast(void*)allocator._new!(float)(roughness); ++i; } assert (i == numParams); cmat.name = allocator.dupString(material.name); // TODO cmat.kernelName = "MaxDefaultMaterial"; return cmat; }
D
exact a tithe from levy a tithe on (produce or a crop pay one tenth of pay a tenth of one's income, especially to the church
D
module contract.operators; import contract; @("opCast no template") @safe unittest { const tu = parse( Cpp( q{ struct Struct { operator int() const; }; } ) ); tu.children.length.shouldEqual(1); const struct_ = tu.children[0]; printChildren(struct_); struct_.kind.should == Cursor.Kind.StructDecl; struct_.children.length.shouldEqual(1); const conversion = struct_.children[0]; printChildren(conversion); conversion.kind.should == Cursor.Kind.ConversionFunction; conversion.spelling.should == "operator int"; } @("opCast template") @safe unittest { const tu = parse( Cpp( q{ template<typename T> struct Struct { operator T() const; }; } ) ); tu.children.length.shouldEqual(1); const struct_ = tu.children[0]; printChildren(struct_); struct_.kind.should == Cursor.Kind.ClassTemplate; struct_.children.length.shouldEqual(2); const typeParam = struct_.children[0]; typeParam.kind.should == Cursor.Kind.TemplateTypeParameter; const conversion = struct_.children[1]; printChildren(conversion); conversion.kind.should == Cursor.Kind.ConversionFunction; conversion.spelling.should == "operator type-parameter-0-0"; const retType = conversion.returnType; retType.kind.should == Type.Kind.Unexposed; retType.canonical.kind.should == Type.Kind.Unexposed; retType.spelling.should == "T"; retType.canonical.spelling.should == "type-parameter-0-0"; }
D
module test10993; import core.demangle : demangleType; auto foo(T)(T a) { static immutable typeof(a) q; // pragma(msg, "foo: " ~ typeof(q).mangleof); return q; } struct test(alias fn) { bool ini = true; void* p; } auto fun() { auto x = foo!()(test!(a=>a)()); // pragma(msg, "fun: " ~ typeof(x).mangleof); return x; } void main() { const x = fun(); enum mangle_x = typeof(x).mangleof; // pragma(msg, "x : " ~ mangle_x); auto y = cast()x; enum mangle_y = typeof(y).mangleof; // pragma(msg, "y : " ~ mangle_y); enum demangle_x = demangleType(mangle_x); enum demangle_y = demangleType(mangle_y); static assert ("immutable(" ~ demangle_y ~ ")" == demangle_x); }
D
/Users/Yowa/WorkSpace/Pokedex/Build/Intermediates/Pokedex.build/Debug/Jay.build/Objects-normal/x86_64/CommentParser.o : /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/ArrayParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/BooleanParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/ByteReader.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/CommentParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Consts.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Error.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Extensions.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Formatter.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Jay.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/NativeParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/NativeTypeConversions.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/NullParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/NumberParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/ObjectParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/OutputStream.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Parser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Reader.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/RootParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/StringParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Types.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/ValueParser.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/Yowa/WorkSpace/Pokedex/Build/Intermediates/Pokedex.build/Debug/Jay.build/Objects-normal/x86_64/CommentParser~partial.swiftmodule : /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/ArrayParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/BooleanParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/ByteReader.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/CommentParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Consts.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Error.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Extensions.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Formatter.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Jay.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/NativeParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/NativeTypeConversions.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/NullParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/NumberParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/ObjectParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/OutputStream.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Parser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Reader.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/RootParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/StringParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Types.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/ValueParser.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/Yowa/WorkSpace/Pokedex/Build/Intermediates/Pokedex.build/Debug/Jay.build/Objects-normal/x86_64/CommentParser~partial.swiftdoc : /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/ArrayParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/BooleanParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/ByteReader.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/CommentParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Consts.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Error.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Extensions.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Formatter.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Jay.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/NativeParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/NativeTypeConversions.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/NullParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/NumberParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/ObjectParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/OutputStream.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Parser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Reader.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/RootParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/StringParser.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/Types.swift /Users/Yowa/WorkSpace/Pokedex/Packages/Jay-1.0.0/Sources/Jay/ValueParser.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule
D
// PERMUTE_ARGS: module breaker; import core.stdc.stdio, core.vararg; /**********************************/ U foo(T, U)(U i) { return i + 1; } int foo(T)(int i) { return i + 2; } void test1() { auto i = foo!(int)(2L); // assert(i == 4); // now returns 3 } /**********************************/ U foo2(T, U)(U i) { return i + 1; } void test2() { auto i = foo2!(int)(2L); assert(i == 3); } /**********************************/ class Foo3 { T bar(T,U)(U u) { return cast(T)u; } } void test3() { Foo3 foo = new Foo3; int i = foo.bar!(int)(1.0); assert(i == 1); } /**********************************/ T* begin4(T)(T[] a) { return a.ptr; } void copy4(string pred = "", Ranges...)(Ranges rs) { alias rs[$ - 1] target; pragma(msg, typeof(target).stringof); auto tb = begin4(target);//, te = end(target); } void test4() { int[] a, b, c; copy4(a, b, c); // comment the following line to prevent compiler from crashing copy4!("a > 1")(a, b, c); } /**********************************/ import std.stdio:writefln; template foo5(T,S) { void foo5(T t, S s) { writefln("typeof(T)=",typeid(T)," typeof(S)=",typeid(S)); } } template bar5(T,S) { void bar5(S s) { writefln("typeof(T)=",typeid(T),"typeof(S)=",typeid(S)); } } void test5() { foo5(1.0,33); bar5!(double,int)(33); bar5!(float)(33); } /**********************************/ int foo6(T...)(auto ref T x) { int result; foreach (i, v; x) { if (v == 10) assert(__traits(isRef, x[i])); else assert(!__traits(isRef, x[i])); result += v; } return result; } void test6() { int y = 10; int r; r = foo6(8); assert(r == 8); r = foo6(y); assert(r == 10); r = foo6(3, 4, y); assert(r == 17); r = foo6(4, 5, y); assert(r == 19); r = foo6(y, 6, y); assert(r == 26); } /**********************************/ auto ref min(T, U)(auto ref T lhs, auto ref U rhs) { return lhs > rhs ? rhs : lhs; } void test7() { int x = 7, y = 8; int i; i = min(4, 3); assert(i == 3); i = min(x, y); assert(i == 7); min(x, y) = 10; assert(x == 10); static assert(!__traits(compiles, min(3, y) = 10)); static assert(!__traits(compiles, min(y, 3) = 10)); } /**********************************/ // 5946 template TTest8() { int call(){ return this.g(); } } class CTest8 { int f() { mixin TTest8!(); return call(); } int g() { return 10; } } void test8() { assert((new CTest8()).f() == 10); } /**********************************/ // 693 template TTest9(alias sym) { int call(){ return sym.g(); } } class CTest9 { int f1() { mixin TTest9!(this); return call(); } int f2() { mixin TTest9!this; return call(); } int g() { return 10; } } void test9() { assert((new CTest9()).f1() == 10); assert((new CTest9()).f2() == 10); } /**********************************/ // 1780 template Tuple1780(Ts ...) { alias Ts Tuple1780; } template Decode1780( T ) { alias Tuple1780!() Types; } template Decode1780( T : TT!(Us), alias TT, Us... ) { alias Us Types; } void test1780() { struct S1780(T1, T2) {} // should extract tuple (bool,short) but matches the first specialisation alias Decode1780!( S1780!(bool,short) ).Types SQ1780; // --> SQ2 is empty tuple! static assert(is(SQ1780 == Tuple1780!(bool, short))); } /**********************************/ // 1659 class Foo1659 { } class Bar1659 : Foo1659 { } void f1659(T : Foo1659)() { } void f1659(alias T)() { static assert(false); } void test1659() { f1659!Bar1659(); } /**********************************/ // 2025 struct S2025 {} void f2025() {} template Foo2025(int i) { enum Foo2025 = 1; } template Foo2025(TL...) { enum Foo2025 = 2; } static assert(Foo2025!1 == 1); static assert(Foo2025!int == 2); static assert(Foo2025!S2025 == 2); static assert(Foo2025!f2025 == 2); template Bar2025(T) { enum Bar2025 = 1; } template Bar2025(A...) { enum Bar2025 = 2; } static assert(Bar2025!1 == 2); static assert(Bar2025!int == 1); // 2 -> 1 static assert(Bar2025!S2025 == 1); // 2 -> 1 static assert(Bar2025!f2025 == 2); template Baz2025(T) { enum Baz2025 = 1; } template Baz2025(alias A) { enum Baz2025 = 2; } static assert(Baz2025!1 == 2); static assert(Baz2025!int == 1); static assert(Baz2025!S2025 == 1); // 2 -> 1 static assert(Baz2025!f2025 == 2); /**********************************/ // 3608 template foo3608(T, U){} template BaseTemplate3608(alias TTT : U!V, alias U, V...) { alias U BaseTemplate3608; } template TemplateParams3608(alias T : U!V, alias U, V...) { alias V TemplateParams3608; } template TyueTuple3608(T...) { alias T TyueTuple3608; } void test3608() { alias foo3608!(int, long) Foo3608; static assert(__traits(isSame, BaseTemplate3608!Foo3608, foo3608)); static assert(is(TemplateParams3608!Foo3608 == TyueTuple3608!(int, long))); } /**********************************/ // 5015 import breaker; static if (is(ElemType!(int))){} template ElemType(T) { alias _ElemType!(T).type ElemType; } template _ElemType(T) { alias r type; } /**********************************/ // 5185 class C5185(V) { void f() { C5185!(C5185!(int)) c; } } void test5185() { C5185!(C5185!(int)) c; } /**********************************/ // 5893 class C5893 { int concatAssign(C5893 other) { return 1; } int concatAssign(int other) { return 2; } // to demonstrate overloading template opOpAssign(string op) if (op == "~") { alias concatAssign opOpAssign; } int opOpAssign(string op)(int other) if (op == "+") { return 3; } } void test5893() { auto c = new C5893; assert(c.opOpAssign!"~"(c) == 1); // works assert(c.opOpAssign!"~"(1) == 2); // works assert((c ~= 1) == 2); assert((c += 1) == 3); // overload } /**********************************/ // 5988 template Templ5988(alias T) { alias T!int Templ5988; } class C5988a(T) { Templ5988!C5988a foo; } //Templ5988!C5988a foo5988a; // Commented version void test5988a() { C5988a!int a; } // Was error, now works class C5988b(T) { Templ5988!C5988b foo; } Templ5988!C5988b foo5988b; // Uncomment version void test5988b() { C5988b!int a; } // Works /**********************************/ // 6404 // receive only rvalue void rvalue(T)(auto ref T x) if (!__traits(isRef, x)) {} void rvalueVargs(T...)(auto ref T x) if (!__traits(isRef, x[0])) {} // receive only lvalue void lvalue(T)(auto ref T x) if ( __traits(isRef, x)) {} void lvalueVargs(T...)(auto ref T x) if ( __traits(isRef, x[0])) {} void test6404() { int n; static assert(!__traits(compiles, rvalue(n))); static assert( __traits(compiles, rvalue(0))); static assert( __traits(compiles, lvalue(n))); static assert(!__traits(compiles, lvalue(0))); static assert(!__traits(compiles, rvalueVargs(n))); static assert( __traits(compiles, rvalueVargs(0))); static assert( __traits(compiles, lvalueVargs(n))); static assert(!__traits(compiles, lvalueVargs(0))); } /**********************************/ // 2246 class A2246(T,d){ T p; } class B2246(int rk){ int[rk] p; } class C2246(T,int rk){ T[rk] p; } template f2246(T:A2246!(U,d),U,d){ void f2246(){ } } template f2246(T:B2246!(rank),int rank){ void f2246(){ } } template f2246(T:C2246!(U,rank),U,int rank){ void f2246(){ } } void test2246(){ A2246!(int,long) a; B2246!(2) b; C2246!(int,2) c; f2246!(A2246!(int,long))(); f2246!(B2246!(2))(); f2246!(C2246!(int,2))(); } /**********************************/ // 2296 void foo2296(size_t D)(int[D] i...){} void test2296() { foo2296(1, 2, 3); } /**********************************/ // 1684 template Test1684( uint memberOffset ){} class MyClass1684 { int flags2; mixin Test1684!(cast(uint)flags2.offsetof) t1; // compiles ok mixin Test1684!(cast(int)flags2.offsetof) t2; // compiles ok mixin Test1684!(flags2.offsetof) t3; // Error: no property 'offsetof' for type 'int' } /**********************************/ void bug4984a(int n)() if (n > 0 && is(typeof(bug4984a!(n-1) ()))) { } void bug4984a(int n : 0)() { } void bug4984b(U...)(U args) if ( is(typeof( bug4984b(args[1..$]) )) ) { } void bug4984b(U)(U u) { } void bug4984() { // Note: compiling this overflows the stack if dmd is build with DEBUG //bug4984a!400(); bug4984a!200(); bug4984b(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19); } /***************************************/ // 2579 void foo2579(T)(T delegate(in Object) dlg) { } void test2579() { foo2579( (in Object o) { return 15; } ); } /**********************************/ // 2803 auto foo2803(T)(T t = 0) { return t; } struct S2803 {} S2803 s2803; ref S2803 getS2803() { return s2803; } auto fun2803(T, U)(T t, ref U u = getS2803) { static assert(is(U == S2803)); return &u; } // from the past version of std.conv template to2803(T) { T to2803(S)(S src) { return T.init; } } auto toImpl2803a(T, S)(S s, in T left, in T sep = ", ", in T right = "]") {} auto toImpl2803b(T, S)(S s, in T left = to2803!T(S.stringof~"("), in T right = ")") {} auto toImpl2803c(T, S)(S s, in T left = S.stringof~"(" , in T right = ")") {} // combination with enh 13944 // from std.range.package in 2.067a. auto enumerate2803(En = size_t, R)(R r, En start = 0) { // The type of 'start' should be size_t, it's the defaultArg of En, // rather than the deduced type from its defualtArg '0'. static assert(is(typeof(start) == size_t)); return start; } // from std.numeric. alias ElementType2803(R) = typeof(R.init[0].init); void normalize2803(R)(R range, ElementType2803!R sum = 1) { // The type of 'sum' should be determined to ElementType!(double[]) == double // before the type deduction from its defaultArg '1'. static assert(is(typeof(sum) == double)); } auto foo14468(T)(T[]...) { return 1; } auto foo14468(bool flag, T)(T[]...) { return 2; } void test2803() { assert(foo2803() == 0); assert(foo2803(1) == 1); S2803 s; assert(fun2803(1) is &s2803); assert(fun2803(1, s) is &s); // regression cases toImpl2803a!string(1, "["); toImpl2803b! string(1); toImpl2803b!wstring(1); toImpl2803b!dstring(1); toImpl2803c! string(1); toImpl2803c!wstring(1); // requires enhancement 13944 toImpl2803c!dstring(1); // requires enhancement 13944 enumerate2803([1]); double[] a = []; normalize2803(a); assert(foo14468!int() == 1); } /**********************************/ // 6613 alias Tuple6613(T...) = T; void f6613(T...)(int x = 0, T xs = Tuple6613!()) { assert(x == 0); static assert(T.length == 0); } void test6613() { f6613(); } /**********************************/ // 4953 void bug4953(T = void)(short x) {} static assert(is(typeof(bug4953(3)))); /**********************************/ // 5886 & 5393 mixin template Foo5886(T) { void foo(U : T, this X)() const { static assert(is(X == const K5886)); } } struct K5886 { void get1(this T)() const { pragma(msg, T); } void get2(int N=4, this T)() const { pragma(msg, N, " ; ", T); } mixin Foo5886!double; mixin Foo5886!string; void test() const { get1; // OK get2; // OK get2!8; // NG foo!(int); foo!(typeof(null)); } } void test5886() { K5886 km; const(K5886) kc; immutable(K5886) ki; km.get1; // OK kc.get1; // OK ki.get1; // OK km.get2; // OK kc.get2; // OK ki.get2; // OK km.get2!(1, K5886); // Ugly kc.get2!(2, const(K5886)); // Ugly ki.get2!(3, immutable(K5886)); // Ugly km.get2!8; // Error kc.get2!9; // Error ki.get2!10; // Error } // -------- void test5393() { class A { void opDispatch (string name, this T) () { } } class B : A {} auto b = new B; b.foobar(); } /**********************************/ // 5896 struct X5896 { T opCast(T)(){ return 1; } const T opCast(T)(){ return 2; } immutable T opCast(T)(){ return 3; } shared T opCast(T)(){ return 4; } const shared T opCast(T)(){ return 5; } } void test5896() { auto xm = X5896 (); auto xc = const(X5896) (); auto xi = immutable(X5896) (); auto xs = shared(X5896) (); auto xcs= const(shared(X5896))(); assert(cast(int)xm == 1); assert(cast(int)xc == 2); assert(cast(int)xi == 3); assert(cast(int)xs == 4); assert(cast(int)xcs== 5); } /**********************************/ // 6312 void h6312() {} class Bla6312 { mixin wrap6312!h6312; } mixin template wrap6312(alias f) { void blub(alias g = f)() { g(); } } void test6312() { Bla6312 b = new Bla6312(); b.blub(); } /**********************************/ // 6825 void test6825() { struct File { void write(S...)(S args) {} } void dump(void delegate(string) d) {} auto o = File(); dump(&o.write!string); } /**********************************/ // 6789 template isStaticArray6789(T) { static if (is(T U : U[N], size_t N)) // doesn't match { pragma(msg, "> U = ", U, ", N:", typeof(N), " = ", N); enum isStaticArray6789 = true; } else enum isStaticArray6789 = false; } void test6789() { alias int[3] T; static assert(isStaticArray6789!T); } /**********************************/ // 2778 struct ArrayWrapper2778(T) { T[] data; alias data this; } void doStuffFunc2778(int[] data) {} void doStuffTempl2778(T)(T[] data) {} int doStuffTemplOver2778(T)(void* data) { return 1; } int doStuffTemplOver2778(T)(ArrayWrapper2778!T w) { return 2; } void test2778() { ArrayWrapper2778!(int) foo; doStuffFunc2778(foo); // Works. doStuffTempl2778!(int)(foo); // Works. doStuffTempl2778(foo); // Error assert(doStuffTemplOver2778(foo) == 2); } // ---- void test2778aa() { void foo(K, V)(V[K] aa){ pragma(msg, "K=", K, ", V=", V); } int[string] aa1; foo(aa1); // OK struct SubTypeOf(T) { T val; alias val this; } SubTypeOf!(string[char]) aa2; foo(aa2); // NG } // ---- void test2778get() { void foo(ubyte[]){} static struct S { ubyte[] val = [1,2,3]; @property ref ubyte[] get(){ return val; } alias get this; } S s; foo(s); } /**********************************/ // 6208 int getRefNonref(T)(ref T s){ return 1; } int getRefNonref(T)( T s){ return 2; } int getAutoRef(T)(auto ref T s){ return __traits(isRef, s) ? 1 : 2; } void getOut(T)(out T s){ ; } void getLazy1(T=int)(lazy void s){ s(), s(); } void getLazy2(T)(lazy T s){ s(), s(); } void test6208a() { int lvalue; int rvalue(){ int t; return t; } assert(getRefNonref(lvalue ) == 1); assert(getRefNonref(rvalue()) == 2); assert(getAutoRef(lvalue ) == 1); assert(getAutoRef(rvalue()) == 2); static assert( __traits(compiles, getOut(lvalue ))); static assert(!__traits(compiles, getOut(rvalue()))); int n1; getLazy1(++n1); assert(n1 == 2); int n2; getLazy2(++n2); assert(n2 == 2); struct X { int f(T)(auto ref T t){ return 1; } int f(T)(auto ref T t, ...){ return -1; } } auto xm = X (); auto xc = const(X)(); int n; assert(xm.f!int(n) == 1); // resolved 'auto ref' assert(xm.f!int(0) == 1); // ditto } void test6208b() { void foo(T)(const T value) if (!is(T == int)) {} int mn; const int cn; static assert(!__traits(compiles, foo(mn))); // OK -> OK static assert(!__traits(compiles, foo(cn))); // NG -> OK } void test6208c() { struct S { // Original test case. int foo(V)(in V v) { return 1; } int foo(Args...)(auto ref const Args args) { return 2; } // Reduced test cases int hoo(V)(const V v) { return 1; } // typeof(10) : const V -> MATCHconst int hoo(Args...)(const Args args) { return 2; } // typeof(10) : const Args[0] -> MATCHconst // If deduction matching level is same, tuple parameter is less specialized than others. int bar(V)(V v) { return 1; } // typeof(10) : V -> MATCHexact int bar(Args...)(const Args args) { return 2; } // typeof(10) : const Args[0] -> MATCHconst int baz(V)(const V v) { return 1; } // typeof(10) : const V -> MATCHconst int baz(Args...)(Args args) { return 2; } // typeof(10) : Args[0] -> MATCHexact inout(int) war(V)(inout V v) { return 1; } inout(int) war(Args...)(inout Args args){ return 2; } inout(int) waz(Args...)(inout Args args){ return 0; } // wild deduction test } S s; int nm = 10; assert(s.foo(nm) == 1); assert(s.hoo(nm) == 1); assert(s.bar(nm) == 1); assert(s.baz(nm) == 2); assert(s.war(nm) == 1); static assert(is(typeof(s.waz(nm)) == int)); const int nc = 10; assert(s.foo(nc) == 1); assert(s.hoo(nc) == 1); assert(s.bar(nc) == 1); assert(s.baz(nc) == 1); assert(s.war(nc) == 1); static assert(is(typeof(s.waz(nc)) == const(int))); immutable int ni = 10; assert(s.foo(ni) == 1); assert(s.hoo(ni) == 1); assert(s.bar(ni) == 1); assert(s.baz(ni) == 2); assert(s.war(ni) == 1); static assert(is(typeof(s.waz(ni)) == immutable(int))); static assert(is(typeof(s.waz(nm, nm)) == int)); static assert(is(typeof(s.waz(nm, nc)) == const(int))); static assert(is(typeof(s.waz(nm, ni)) == const(int))); static assert(is(typeof(s.waz(nc, nm)) == const(int))); static assert(is(typeof(s.waz(nc, nc)) == const(int))); static assert(is(typeof(s.waz(nc, ni)) == const(int))); static assert(is(typeof(s.waz(ni, nm)) == const(int))); static assert(is(typeof(s.waz(ni, nc)) == const(int))); static assert(is(typeof(s.waz(ni, ni)) == immutable(int))); } /**********************************/ // 6805 struct T6805 { template opDispatch(string name) { alias int Type; } } static assert(is(T6805.xxx.Type == int)); /**********************************/ // 6738 struct Foo6738 { int _val = 10; @property int val()() { return _val; } int get() { return val; } // fail } void test6738() { Foo6738 foo; auto x = foo.val; // ok assert(x == 10); assert(foo.get() == 10); } /**********************************/ // 7498 template IndexMixin(){ void insert(T)(T value){ } } class MultiIndexContainer{ mixin IndexMixin!() index0; class Index0{ void baburk(){ this.outer.index0.insert(1); } } } /**********************************/ // 6780 @property int foo6780()(){ return 10; } int g6780; @property void bar6780()(int n){ g6780 = n; } void test6780() { auto n = foo6780; assert(n == 10); bar6780 = 10; assert(g6780 == 10); } /**********************************/ // 6810 int f6810(int n)(int) { return 1;} int f6810(U...)(U) { assert(0); } int f6810(U...)(U a) { assert(0); } int f6810(U...)(U) if (true) { assert(0); } int f6810(U...)(U a) if (true) { assert(0); } void test6810() { assert(f6810!0(0) == 1); } /**********************************/ // 6891 struct S6891(int N, T) { void f(U)(S6891!(N, U) u) { } } void test6891() { alias S6891!(1, void) A; A().f(A()); } /**********************************/ // 6994 struct Foo6994 { T get(T)(){ return T.init; } T func1(T)() if (__traits(compiles, get!T())) { return get!T; } T func2(T)() if (__traits(compiles, this.get!T())) // add explicit 'this' { return get!T; } } void test6994() { Foo6994 foo; foo.get!int(); // OK foo.func1!int(); // OK foo.func2!int(); // NG } /**********************************/ // 6764 enum N6764 = 1; //use const for D1 alias size_t[N6764] T6764; //workaround void f6764()(T6764 arr...) { } void g6764()(size_t[1] arr...) { } void h6764()(size_t[N6764] arr...) { } void test6764() { f6764(0); //good g6764(0); //good h6764!()(0); //good h6764(0); //Error: template main.f() does not match any function template declaration } /**********************************/ // 3467 & 6806 struct Foo3467( uint n ) { Foo3467!( n ) bar( ) { typeof( return ) result; return result; } } struct Vec3467(size_t N) { void opBinary(string op:"~", size_t M)(Vec3467!M) {} } void test3467() { Foo3467!( 4 ) baz; baz = baz.bar;// FAIL Vec3467!2 a1; Vec3467!3 a2; a1 ~ a2; // line 7, Error } struct TS6806(size_t n) { pragma(msg, typeof(n)); } static assert(is(TS6806!(1u) == TS6806!(1))); /**********************************/ // 4413 struct Foo4413 { alias typeof(this) typeof_this; void bar1(typeof_this other) {} void bar2()(typeof_this other) {} void bar3(typeof(this) other) {} void bar4()(typeof(this) other) {} } void test4413() { Foo4413 f; f.bar1(f); // OK f.bar2(f); // OK f.bar3(f); // OK f.bar4(f); // ERR } /**********************************/ // 4675 template isNumeric(T) { enum bool test1 = is(T : long); // should be hidden enum bool test2 = is(T : real); // should be hidden enum bool isNumeric = test1 || test2; } void test4675() { static assert( isNumeric!int); static assert(!isNumeric!string); static assert(!__traits(compiles, isNumeric!int.test1)); // should be an error static assert(!__traits(compiles, isNumeric!int.test2)); // should be an error static assert(!__traits(compiles, isNumeric!int.isNumeric)); } /**********************************/ // 5525 template foo5525(T) { T foo5525(T t) { return t; } T foo5525(T t, T u) { return t + u; } } void test5525() { alias foo5525!int f; assert(f(1) == 1); assert(f(1, 2) == 3); } /**********************************/ // 5801 int a5801; void bar5801(T = double)(typeof(a5801) i) {} void baz5801(T)(typeof(a5801) i, T t) {} void test5801() { bar5801(2); // Does not compile. baz5801(3, "baz"); // Does not compile. } /**********************************/ // 5832 struct Bar5832(alias v) {} template isBar5832a(T) { static if (is(T _ : Bar5832!(v), alias v)) enum isBar5832a = true; else enum isBar5832a = false; } template isBar5832b(T) { static if (is(T _ : Bar5832!(v), alias int v)) enum isBar5832b = true; else enum isBar5832b = false; } template isBar5832c(T) { static if (is(T _ : Bar5832!(v), alias string v)) enum isBar5832c = true; else enum isBar5832c = false; } static assert( isBar5832a!(Bar5832!1234)); static assert( isBar5832b!(Bar5832!1234)); static assert(!isBar5832c!(Bar5832!1234)); /**********************************/ // 2550 template pow10_2550(long n) { const long pow10_2550 = 0; static if (n < 0) const long pow10_2550 = 0; else const long pow10_2550 = 10 * pow10_2550!(n - 1); } template pow10_2550(long n:0) { const long pow10_2550 = 1; } static assert(pow10_2550!(0) == 1); /**********************************/ // [2.057] Remove top const in IFTI, 9198 void foo10a(T )(T) { static assert(is(T == const(int)[])); } void foo10b(T...)(T) { static assert(is(T[0] == const(int)[])); } // ref paramter doesn't remove top const void boo10a(T )(ref T) { static assert(is(T == const(int[]))); } void boo10b(T...)(ref T) { static assert(is(T[0] == const(int[]))); } // auto ref with lvalue doesn't void goo10a(T )(auto ref T) { static assert(is(T == const(int[]))); } void goo10b(T...)(auto ref T) { static assert(is(T[0] == const(int[]))); } // auto ref with rvalue does void hoo10a(T )(auto ref T) { static assert(is(T == const(int)[])); } void hoo10b(T...)(auto ref T) { static assert(is(T[0] == const(int)[])); } void bar10a(T )(T) { static assert(is(T == const(int)*)); } void bar10b(T...)(T) { static assert(is(T[0] == const(int)*)); } void test10() { const a = [1,2,3]; static assert(is(typeof(a) == const(int[]))); foo10a(a); foo10b(a); boo10a(a); boo10b(a); goo10a(a); goo10b(a); hoo10a(cast(const)[1,2,3]); hoo10b(cast(const)[1,2,3]); int n; const p = &n; static assert(is(typeof(p) == const(int*))); bar10a(p); bar10b(p); } /**********************************/ // 3092 template Foo3092(A...) { alias A[0] Foo3092; } static assert(is(Foo3092!(int, "foo") == int)); /**********************************/ // 7037 struct Foo7037 {} struct Bar7037 { Foo7037 f; alias f this; } void works7037( T )( T value ) if ( is( T : Foo7037 ) ) {} void doesnotwork7037( T : Foo7037 )( T value ) {} void test7037() { Bar7037 b; works7037( b ); doesnotwork7037( b ); } /**********************************/ // 7110 struct S7110 { int opSlice(int, int) const { return 0; } int opSlice() const { return 0; } int opIndex(int, int) const { return 0; } int opIndex(int) const { return 0; } } enum e7110 = S7110(); template T7110(alias a) { } // or T7110(a...) alias T7110!( S7110 ) T71100; // passes alias T7110!((S7110)) T71101; // passes alias T7110!( S7110()[0..0] ) A0; // passes alias T7110!( (e7110[0..0]) ) A1; // passes alias T7110!( e7110[0..0] ) A2; // passes alias T7110!( S7110()[0, 0] ) B0; // passes alias T7110!( (e7110[0, 0]) ) B1; // passes alias T7110!( e7110[0, 0] ) B2; // passes alias T7110!( S7110()[] ) C0; // passes alias T7110!( (e7110[]) ) C1; // passes alias T7110!( e7110[] ) C2; // fails: e7110 is used as a type alias T7110!( S7110()[0] ) D0; // passes alias T7110!( (e7110[0]) ) D1; // passes alias T7110!( e7110[0] ) D2; // fails: e7110 must be an array or pointer type, not S7110 /**********************************/ // 7124 template StaticArrayOf(T : E[dim], E, size_t dim) { pragma(msg, "T = ", T, ", E = ", E, ", dim = ", dim); alias E[dim] StaticArrayOf; } template DynamicArrayOf(T : E[], E) { pragma(msg, "T = ", T, ", E = ", E); alias E[] DynamicArrayOf; } template AssocArrayOf(T : V[K], K, V) { pragma(msg, "T = ", T, ", K = ", K, ", V = ", V); alias V[K] AssocArrayOf; } void test7124() { struct SA { int[5] sa; alias sa this; } static assert(is(StaticArrayOf!SA == int[5])); struct DA { int[] da; alias da this; } static assert(is(DynamicArrayOf!DA == int[])); struct AA { int[string] aa; alias aa this; } static assert(is(AssocArrayOf!AA == int[string])); } /**********************************/ // 7359 bool foo7359(T)(T[] a ...) { return true; } void test7359() { assert(foo7359(1,1,1,1,1,1)); // OK assert(foo7359("abc","abc","abc","abc")); // NG } /**********************************/ // 7363 template t7363() { enum e = 0; static if (true) enum t7363 = 0; } static assert(!__traits(compiles, t7363!().t7363 == 0)); // Assertion fails static assert(t7363!() == 0); // Error: void has no value template u7363() { static if (true) { enum e = 0; enum u73631 = 0; } alias u73631 u7363; } static assert(!__traits(compiles, u7363!().u7363 == 0)); // Assertion fails static assert(u7363!() == 0); // Error: void has no value /**********************************/ struct S4371(T ...) { } alias S4371!("hi!") t; static if (is(t U == S4371!(U))) { } /**********************************/ // 7416 void t7416(alias a)() if(is(typeof(a()))) {} void test7416() { void f() {} alias t7416!f x; } /**********************************/ // 7563 class Test7563 { void test(T, bool a = true)(T t) { } } void test7563() { auto test = new Test7563; pragma(msg, typeof(test.test!(int, true)).stringof); pragma(msg, typeof(test.test!(int)).stringof); // Error: expression (test.test!(int)) has no type } /**********************************/ // 7572 class F7572 { Tr fn7572(Tr, T...)(T t) { return 1; } } Tr Fn7572(Tr, T...)(T t) { return 2; } void test7572() { F7572 f = new F7572(); int delegate() dg = &f.fn7572!int; assert(dg() == 1); int function() fn = &Fn7572!int; assert(fn() == 2); } /**********************************/ // 7580 struct S7580(T) { void opAssign()(T value) {} } struct X7580(T) { private T val; @property ref inout(T) get()() inout { return val; } // template alias get this; } struct Y7580(T) { private T val; @property ref auto get()() inout { return val; } // template + auto return alias get this; } void test7580() { S7580!(int) s; X7580!int x; Y7580!int y; s = x; s = y; shared(X7580!int) sx; static assert(!__traits(compiles, s = sx)); } /**********************************/ // 7585 extern(C) alias void function() Callback; template W7585a(alias dg) { //pragma(msg, typeof(dg)); extern(C) void W7585a() { dg(); } } void test7585() { static void f7585a(){} Callback cb1 = &W7585a!(f7585a); // OK static assert(!__traits(compiles, { void f7585b(){} Callback cb2 = &W7585a!(f7585b); // NG })); Callback cb3 = &W7585a!((){}); // NG -> OK Callback cb4 = &W7585a!(function(){}); // OK static assert(!__traits(compiles, { Callback cb5 = &W7585a!(delegate(){}); // NG })); static int global; // global data Callback cb6 = &W7585a!((){return global;}); // NG -> OK static assert(!__traits(compiles, { int n; Callback cb7 = &W7585a!((){return n;}); // NG })); } /**********************************/ // 7643 template T7643(A...){ alias A T7643; } alias T7643!(long, "x", string, "y") Specs7643; alias T7643!( Specs7643[] ) U7643; // Error: tuple A is used as a type /**********************************/ // 7671 inout(int)[3] id7671n1 ( inout(int)[3] ); inout( U )[n] id7671x1(U, size_t n)( inout( U )[n] ); shared(inout int)[3] id7671n2 ( shared(inout int)[3] ); shared(inout U )[n] id7671x2(U, size_t n)( shared(inout U )[n] ); void test7671() { static assert(is( typeof( id7671n1( (immutable(int)[3]).init ) ) == immutable(int[3]) )); static assert(is( typeof( id7671x1( (immutable(int)[3]).init ) ) == immutable(int[3]) )); static assert(is( typeof( id7671n2( (immutable(int)[3]).init ) ) == immutable(int[3]) )); static assert(is( typeof( id7671x2( (immutable(int)[3]).init ) ) == immutable(int[3]) )); } /************************************/ // 7672 T foo7672(T)(T a){ return a; } void test7672(inout(int[]) a = null, inout(int*) p = null) { static assert(is( typeof( a ) == inout(int[]) )); static assert(is( typeof(foo7672(a)) == inout(int)[] )); static assert(is( typeof( p ) == inout(int*) )); static assert(is( typeof(foo7672(p)) == inout(int)* )); } /**********************************/ // 7684 U[] id7684(U)( U[] ); shared(U[]) id7684(U)( shared(U[]) ); void test7684() { shared(int)[] x; static assert(is( typeof(id7684(x)) == shared(int)[] )); } /**********************************/ // 7694 void match7694(alias m)() { m.foo(); //removing this line supresses ice in both cases } struct T7694 { void foo(){} void bootstrap() { //next line causes ice match7694!(this)(); //while this works: alias this p; match7694!(p)(); } } /**********************************/ // 7755 template to7755(T) { T to7755(A...)(A args) { return toImpl7755!T(args); } } T toImpl7755(T, S)(S value) { return T.init; } template Foo7755(T){} struct Bar7755 { void qux() { if (is(typeof(to7755!string(Foo7755!int)))){}; } } /**********************************/ U[] id11a(U)( U[] ); inout(U)[] id11a(U)( inout(U)[] ); inout(U[]) id11a(U)( inout(U[]) ); inout(shared(U[])) id11a(U)( inout(shared(U[])) ); void test11a(inout int _ = 0) { shared(const(int))[] x; static assert(is( typeof(id11a(x)) == shared(const(int))[] )); shared(int)[] y; static assert(is( typeof(id11a(y)) == shared(int)[] )); inout(U)[n] idz(U, size_t n)( inout(U)[n] ); inout(shared(bool[1])) z; static assert(is( typeof(idz(z)) == inout(shared(bool[1])) )); } inout(U[]) id11b(U)( inout(U[]) ); void test11b() { alias const(shared(int)[]) T; static assert(is(typeof(id11b(T.init)) == const(shared(int)[]))); } /**********************************/ // 7769 void f7769(K)(inout(K) value){} void test7769() { f7769("abc"); } /**********************************/ // 7812 template A7812(T...) {} template B7812(alias C) if (C) {} template D7812() { alias B7812!(A7812!(NonExistent!())) D7812; } static assert(!__traits(compiles, D7812!())); /**********************************/ // 7873 inout(T)* foo(T)(inout(T)* t) { static assert(is(T == int*)); return t; } inout(T)* bar(T)(inout(T)* t) { return foo(t); } void test7873() { int *i; bar(&i); } /**********************************/ // 7933 struct Boo7933(size_t dim){int a;} struct Baa7933(size_t dim) { Boo7933!dim a; //Boo7933!1 a; //(1) This version causes no errors } auto foo7933()(Boo7933!1 b){return b;} //auto fuu7933(Boo7933!1 b){return b;} //(2) This line neutralizes the error void test7933() { Baa7933!1 a; //(3) This line causes the error message auto b = foo7933(Boo7933!1(1)); } /**********************************/ // 8094 struct Tuple8094(T...) {} template getParameters8094(T, alias P) { static if (is(T t == P!U, U...)) alias U getParameters8094; else static assert(false); } void test8094() { alias getParameters8094!(Tuple8094!(int, string), Tuple8094) args; } /**********************************/ struct Tuple12(T...) { void foo(alias P)() { alias Tuple12 X; static if (is(typeof(this) t == X!U, U...)) alias U getParameters; else static assert(false); } } void test12() { Tuple12!(int, string) t; t.foo!Tuple12(); } /**********************************/ // 14290 struct Foo14290(int i) {} alias Foo14290a = Foo14290!1; static assert(!is(Foo14290!2 == Foo14290a!T, T...)); /**********************************/ // 8125 void foo8125(){} struct X8125(alias a) {} template Y8125a(T : A!f, alias A, alias f) {} //OK template Y8125b(T : A!foo8125, alias A) {} //NG void test8125() { alias Y8125a!(X8125!foo8125) y1; alias Y8125b!(X8125!foo8125) y2; } /**********************************/ struct A13() {} struct B13(TT...) {} struct C13(T1) {} struct D13(T1, TT...) {} struct E13(T1, T2) {} struct F13(T1, T2, TT...) {} template Test13(alias X) { static if (is(X x : P!U, alias P, U...)) enum Test13 = true; else enum Test13 = false; } void test13() { static assert(Test13!( A13!() )); static assert(Test13!( B13!(int) )); static assert(Test13!( B13!(int, double) )); static assert(Test13!( B13!(int, double, string) )); static assert(Test13!( C13!(int) )); static assert(Test13!( D13!(int) )); static assert(Test13!( D13!(int, double) )); static assert(Test13!( D13!(int, double, string) )); static assert(Test13!( E13!(int, double) )); static assert(Test13!( F13!(int, double) )); static assert(Test13!( F13!(int, double, string) )); static assert(Test13!( F13!(int, double, string, bool) )); } /**********************************/ struct A14(T, U, int n = 1) { } template Test14(alias X) { static if (is(X x : P!U, alias P, U...)) alias U Test14; else static assert(0); } void test14() { alias A14!(int, double) Type; alias Test14!Type Params; static assert(Params.length == 3); static assert(is(Params[0] == int)); static assert(is(Params[1] == double)); static assert( Params[2] == 1); } /**********************************/ // test for evaluateConstraint assertion bool canSearchInCodeUnits15(C)(dchar c) if (is(C == char)) { return true; } void test15() { int needle = 0; auto b = canSearchInCodeUnits15!char(needle); } /**********************************/ // 8129 class X8129 {} class A8129 {} class B8129 : A8129 {} int foo8129(T : A8129)(X8129 x) { return 1; } int foo8129(T : A8129)(X8129 x, void function (T) block) { return 2; } int bar8129(T, R)(R range, T value) { return 1; } int baz8129(T, R)(R range, T value) { return 1; } int baz8129(T, R)(R range, Undefined value) { return 2; } void test8129() { auto x = new X8129; assert(x.foo8129!B8129() == 1); assert(x.foo8129!B8129((a){}) == 2); assert(foo8129!B8129(x) == 1); assert(foo8129!B8129(x, (a){}) == 2); assert(foo8129!B8129(x) == 1); assert(foo8129!B8129(x, (B8129 b){}) == 2); ubyte[] buffer = [0, 1, 2]; assert(bar8129!ushort(buffer, 915) == 1); // While deduction, parameter type 'Undefined' shows semantic error. static assert(!__traits(compiles, { baz8129!ushort(buffer, 915); })); } /**********************************/ // 8238 void test8238() { static struct S { template t(){ int t; } } S s1, s2; assert(cast(void*)&s1 != cast(void*)&s2 ); assert(cast(void*)&s1 != cast(void*)&s1.t!()); assert(cast(void*)&s2 != cast(void*)&s2.t!()); assert(cast(void*)&s1.t!() == cast(void*)&s2.t!()); s1.t!() = 256; assert(s2.t!() == 256); } /**********************************/ // 8669 struct X8669 { void mfoo(this T)() { static assert(is(typeof(this) == T)); } void cfoo(this T)() const { static assert(is(typeof(this) == const(T))); } void sfoo(this T)() shared { static assert(is(typeof(this) == shared(T))); } void scfoo(this T)() shared const { static assert(is(typeof(this) == shared(const(T)))); } void ifoo(this T)() immutable { static assert(is(typeof(this) == immutable(T))); } } void test8669() { X8669 mx; const X8669 cx; immutable X8669 ix; shared X8669 sx; shared const X8669 scx; mx.mfoo(); cx.mfoo(); ix.mfoo(); sx.mfoo(); scx.mfoo(); mx.cfoo(); cx.cfoo(); ix.cfoo(); sx.cfoo(); scx.cfoo(); static assert(!is(typeof( mx.sfoo() ))); static assert(!is(typeof( cx.sfoo() ))); ix.sfoo(); sx.sfoo(); scx.sfoo(); static assert(!is(typeof( mx.scfoo() ))); static assert(!is(typeof( cx.scfoo() ))); ix.scfoo(); sx.scfoo(); scx.scfoo(); static assert(!is(typeof( mx.ifoo() ))); static assert(!is(typeof( cx.ifoo() ))); ix.ifoo(); static assert(!is(typeof( sx.ifoo() ))); static assert(!is(typeof( scx.ifoo() ))); } /**********************************/ // 8833 template TypeTuple8833(T...) { alias TypeTuple = T; } void func8833(alias arg)() { } void test8833() { int x, y; alias TypeTuple8833!( func8833!(x), func8833!(y), ) Map; } /**********************************/ // 8976 void f8976(ref int) { } void g8976()() { f8976(0); // line 5 } void h8976()() { g8976!()(); } static assert(! __traits(compiles, h8976!()() ) ); // causes error static assert(!is(typeof( h8976!()() ))); void test8976() { static assert(! __traits(compiles, h8976!()() ) ); static assert(!is(typeof( h8976!()() ))); } /****************************************/ // 8940 const int n8940; // or `immutable` static this() { n8940 = 3; } void f8940(T)(ref int val) { assert(val == 3); ++val; } static assert(!__traits(compiles, f8940!void(n8940))); // fails void test8940() { assert(n8940 == 3); static assert(!__traits(compiles, f8940!void(n8940))); //assert(n8940 == 3); // may pass as compiler caches comparison result //assert(n8940 != 4); // may pass but likely will fail } /**********************************/ // 6969 + 8990 class A6969() { alias C6969!() C1; } class B6969 { alias A6969!() A1; } class C6969() : B6969 {} struct A8990(T) { T t; } struct B8990(T) { A8990!T* a; } struct C8990 { B8990!C8990* b; } /**********************************/ // 9018 template Inst9018(alias Template, T) { alias Template!T Inst; } template Template9018(T) { enum Template9018 = T; } static assert(!__traits(compiles, Inst9018!(Template9018, int))); // Assert passes static assert(!__traits(compiles, Inst9018!(Template9018, int))); // Assert fails /**********************************/ // 9022 class C9022 { struct X {} alias B = X; } class D9022 { struct X {} } void test9022() { auto c = new C9022(); auto d = new D9022(); auto cx = C9022.X(); auto dx = D9022.X(); void foo1(T)(T, T.X) { static assert(is(T == C9022)); } void foo2(T)(T.X, T) { static assert(is(T == C9022)); } foo1(c, cx); foo2(cx, c); void hoo1(T)(T, T.B) { static assert(is(T == C9022)); } void hoo2(T)(T.B, T) { static assert(is(T == C9022)); } hoo1(c, cx); hoo1(c, cx); void bar1(alias A)(A.C9022, A.D9022) { static assert(A.stringof == "module breaker"); } void bar2(alias A)(A.D9022, A.C9022) { static assert(A.stringof == "module breaker"); } bar1(c, d); bar2(d, c); void var1(alias A)(A.C9022, A.D9022.X) { static assert(A.stringof == "module breaker"); } void var2(alias A)(A.D9022.X, A.C9022) { static assert(A.stringof == "module breaker"); } var1(c, dx); var2(dx, c); void baz(T)(T.X t, T.X u) { } static assert(!__traits(compiles, baz(cx, dx))); } /**********************************/ // 9026 mixin template node9026() { static if (is(this == struct)) alias typeof(this)* E; else alias typeof(this) E; E prev, next; } struct list9026(alias N) { N.E head; N.E tail; } class A9026 { mixin node9026 L1; mixin node9026 L2; } list9026!(A9026.L1) g9026_l1; list9026!(A9026.L2) g9026_l2; void test9026() { list9026!(A9026.L1) l9026_l1; list9026!(A9026.L2) l9026_l2; } /**********************************/ // 9038 mixin template Foo9038() { string data = "default"; } class Bar9038 { string data; mixin Foo9038 f; } void check_data9038(alias M, T)(T obj) { //writeln(M.stringof); assert(obj.data == "Bar"); assert(obj.f.data == "F"); } void test9038() { auto bar = new Bar9038; bar.data = "Bar"; bar.f.data = "F"; assert(bar.data == "Bar"); assert(bar.f.data == "F"); check_data9038!(Bar9038)(bar); check_data9038!(Bar9038.f)(bar); check_data9038!(bar.f)(bar); } /**********************************/ // 9050 struct A9050(T) {} struct B9050(T) { void f() { foo9050(A9050!int()); } } auto foo9050()(A9050!int base) pure { return B9050!int(); } auto s9050 = foo9050(A9050!int()); /**********************************/ // 10936 (dup of 9050) struct Vec10936(string s) { auto foo(string v)() { return Vec10936!(v)(); } static void bar() { Vec10936!"" v; auto p = v.foo!"sup"; } } Vec10936!"" v; /**********************************/ // 9076 template forward9076(args...) { @property forward9076()(){ return args[0]; } } void test9076() { int a = 1; int b = 1; assert(a == forward9076!b); } /**********************************/ // 9083 template isFunction9083(X...) if (X.length == 1) { enum isFunction9083 = true; } struct S9083 { static string func(alias Class)() { foreach (m; __traits(allMembers, Class)) { pragma(msg, m); // prints "func" enum x1 = isFunction9083!(mixin(m)); //NG enum x2 = isFunction9083!(func); //OK } return ""; } } enum nothing9083 = S9083.func!S9083(); class C9083 { int x; // some class members void func() { void templateFunc(T)(const T obj) { enum x1 = isFunction9083!(mixin("x")); // NG enum x2 = isFunction9083!(x); // NG } templateFunc(this); } } /**********************************/ // 9100 template Id(alias A) { alias Id = A; } template ErrId(alias A) { static assert(0); } template TypeTuple9100(TL...) { alias TypeTuple9100 = TL; } class C9100 { int value; int fun() { return value; } int tfun(T)() { return value; } TypeTuple9100!(int, long) field; void test() { this.value = 1; auto c = new C9100(); c.value = 2; alias t1a = Id!(c.fun); // OK alias t1b = Id!(this.fun); // Prints weird error, bad // -> internally given TOKdotvar assert(t1a() == this.value); assert(t1b() == this.value); alias t2a = Id!(c.tfun); // OK static assert(!__traits(compiles, ErrId!(this.tfun))); alias t2b = Id!(this.tfun); // No error occurs, why? // -> internally given TOKdottd assert(t2a!int() == this.value); assert(t2b!int() == this.value); alias t3a = Id!(foo9100); // OK alias t3b = Id!(mixin("foo9100")); // Prints weird error, bad // -> internally given TOKtemplate assert(t3a() == 10); assert(t3b() == 10); assert(field[0] == 0); alias t4a = TypeTuple9100!(field); // NG alias t4b = TypeTuple9100!(GetField9100!()); // NG t4a[0] = 1; assert(field[0] == 1); t4b[0] = 2; assert(field[0] == 2); } } int foo9100()() { return 10; } template GetField9100() { alias GetField9100 = C9100.field[0]; } void test9100() { (new C9100()).test(); } /**********************************/ // 9101 class Node9101 { template ForwardCtorNoId() { this() {} // default constructor void foo() { 0 = 1; } // wrong code } } enum x9101 = __traits(compiles, Node9101.ForwardCtorNoId!()); /**********************************/ // 9124 struct Foo9124a(N...) { enum SIZE = N[0]; private int _val; public void opAssign (T) (T other) if (is(T unused == Foo9124a!(_N), _N...)) { _val = other._val; // compile error this._val = other._val; // explicit this make it work } public auto opUnary (string op) () if (op == "~") { Foo9124a!(SIZE) result = this; return result; } } void test9124a() { Foo9124a!(28) a; Foo9124a!(28) b = ~a; } // -------- template Foo9124b(T, U, string OP) { enum N = T.SIZE; alias Foo9124b = Foo9124b!(false, true, N); } struct Foo9124b(bool S, bool L, N...) { enum SIZE = 5; long[1] _a = 0; void someFunction() const { auto data1 = _a; // Does not compile auto data2 = this._a; // <--- Compiles } auto opBinary(string op, T)(T) { Foo9124b!(typeof(this), T, op) test; } } void test9124b() { auto p = Foo9124b!(false, false, 5)(); auto q = Foo9124b!(false, false, 5)(); p|q; p&q; } /**********************************/ // 9143 struct Foo9143a(bool S, bool L) { auto noCall() { Foo9143a!(S, false) x1; // compiles if this line commented static if(S) Foo9143a!(true, false) x2; else Foo9143a!(false, false) x2; } this(T)(T other) // constructor if (is(T unused == Foo9143a!(P, Q), bool P, bool Q)) { } } struct Foo9143b(bool L, size_t N) { void baaz0() { bar!(Foo9143b!(false, N))(); // line 7 // -> move to before the baaz semantic } void baaz() { bar!(Foo9143b!(false, 2LU))(); // line 3 bar!(Foo9143b!(true, 2LU))(); // line 4 bar!(Foo9143b!(L, N))(); // line 5 bar!(Foo9143b!(true, N))(); // line 6 bar!(Foo9143b!(false, N))(); // line 7 } void bar(T)() if (is(T unused == Foo9143b!(_L, _N), bool _L, size_t _N)) {} } void test9143() { Foo9143a!(false, true) k = Foo9143a!(false, false)(); auto p = Foo9143b!(true, 2LU)(); } /**********************************/ // 9266 template Foo9266(T...) { T Foo9266; } struct Bar9266() { alias Foo9266!int f; } void test9266() { Bar9266!() a, b; } /**********************************/ // 9361 struct Unit9361(A) { void butPleaseDontUseMe()() if (is(unitType9361!((this)))) // ! {} } template isUnit9361(alias T) if ( is(T)) {} template isUnit9361(alias T) if (!is(T)) {} template unitType9361(alias T) if (isUnit9361!T) {} void test9361() { Unit9361!int u; static assert(!__traits(compiles, u.butPleaseDontUseMe())); // crashes } /**********************************/ // 9536 struct S9536 { static A foo(A)(A a) { return a * 2; } int bar() const { return foo(42); } } void test9536() { S9536 s; assert(s.bar() == 84); } /**********************************/ // 9578 template t9578(alias f) { void tf()() { f(); } } void g9578a(alias f)() { f(); } // Error -> OK void g9578b(alias ti)() { ti.tf(); } // Error -> OK void test9578() { int i = 0; int m() { return i; } g9578a!(t9578!m.tf)(); g9578b!(t9578!m)(); } /**********************************/ // 9596 int foo9596a(K, V)(inout( V [K])) { return 1; } int foo9596a(K, V)(inout(shared(V) [K])) { return 2; } int foo9596b(K, V)(inout( V [K])) { return 1; } int foo9596b(K, V)(inout( const(V) [K])) { return 3; } int foo9596c(K, V)(inout(shared(V) [K])) { return 2; } int foo9596c(K, V)(inout( const(V) [K])) { return 3; } int foo9596d(K, V)(inout( V [K])) { return 1; } int foo9596d(K, V)(inout(shared(V) [K])) { return 2; } int foo9596d(K, V)(inout( const(V) [K])) { return 3; } int foo9596e(K, V)(inout(shared(V) [K])) { return 2; } int foo9596e(K, V)(inout( V [K])) { return 1; } int foo9596e(K, V)(inout( const(V) [K])) { return 3; } void test9596() { shared(int)[int] aa; static assert(!__traits(compiles, foo9596a(aa))); assert(foo9596b(aa) == 1); assert(foo9596c(aa) == 2); static assert(!__traits(compiles, foo9596d(aa))); static assert(!__traits(compiles, foo9596e(aa))); } /******************************************/ // 9806 struct S9806a(alias x) { alias S9806a!0 N; } enum expr9806a = 0 * 0; alias S9806a!expr9806a T9806a; // -------- struct S9806b(alias x) { template Next() { enum expr = x + 1; alias S9806b!expr Next; } } alias S9806b!1 One9806b; alias S9806b!0.Next!() OneAgain9806b; // -------- struct S9806c(x...) { template Next() { enum expr = x[0] + 1; alias S9806c!expr Next; } } alias S9806c!1 One9806c; alias S9806c!0.Next!() OneAgain9806c; /******************************************/ // 9837 void test9837() { enum DA : int[] { a = [1,2,3] } DA da; int[] bda = da; static assert(is(DA : int[])); void fda1(int[] a) {} void fda2(T)(T[] a) {} fda1(da); fda2(da); enum SA : int[3] { a = [1,2,3] } SA sa; int[3] bsa = sa; static assert(is(SA : int[3])); void fsa1(int[3] a) {} void fsa2(T)(T[3] a) {} void fsa3(size_t d)(int[d] a) {} void fsa4(T, size_t d)(T[d] a) {} fsa1(sa); fsa2(sa); fsa3(sa); fsa4(sa); enum AA : int[int] { a = null } AA aa; int[int] baa = aa; static assert(is(AA : int[int])); void faa1(int[int] a) {} void faa2(V)(V[int] a) {} void faa3(K)(int[K] a) {} void faa4(K, V)(V[K] a) {} faa1(aa); faa2(aa); faa3(aa); faa4(aa); } /******************************************/ // 9874 bool foo9874() { return true; } void bar9874(T)(T) if (foo9874()) {} // OK void baz9874(T)(T) if (foo9874) {} // error void test9874() { foo9874; // OK bar9874(0); baz9874(0); } /******************************************/ void test9885() { void foo(int[1][]) {} void boo()(int[1][]){} struct X(T...) { static void xoo(T){} } struct Y(T...) { static void yoo()(T){} } struct Z(T...) { static void zoo(U...)(T, U){} } struct V(T...) { static void voo()(T, ...){} } struct W(T...) { static void woo()(T...){} } struct R(T...) { static void roo(U...)(int, U, T){} } // OK foo([[10]]); boo([[10]]); // OK X!(int[1][]).xoo([[10]]); // NG! Y!().yoo(); Y!(int).yoo(1); Y!(int, int[]).yoo(1, [10]); static assert(!__traits(compiles, Y!().yoo(1))); static assert(!__traits(compiles, Y!(int).yoo("a"))); static assert(!__traits(compiles, Y!().yoo!(int)())); // NG! Z!().zoo(); Z!().zoo([1], [1:1]); Z!(int, string).zoo(1, "a"); Z!(int, string).zoo(1, "a", [1], [1:1]); Z!().zoo!()(); static assert(!__traits(compiles, Z!().zoo!()(1))); // (none) <- 1 static assert(!__traits(compiles, Z!(int).zoo!()())); // int <- (none) static assert(!__traits(compiles, Z!(int).zoo!()(""))); // int <- "" static assert(!__traits(compiles, Z!().zoo!(int)())); // int <- (none) static assert(!__traits(compiles, Z!().zoo!(int)(""))); // int <- "" V!().voo(1,2,3); V!(int).voo(1,2,3); V!(int, long).voo(1,2,3); static assert(!__traits(compiles, V!(int).voo())); // int <- (none) static assert(!__traits(compiles, V!(int, long).voo(1))); // long <- (none) static assert(!__traits(compiles, V!(int, string).voo(1,2,3))); // string <- 2 W!().woo(); //W!().woo(1, 2, 3); // Access Violation { // this behavior is consistent with: //alias TL = TypeTuple!(); //void foo(TL...) {} //foo(1, 2, 3); // Access Violation //pragma(msg, typeof(foo)); // void(...) -> D-style variadic function? } W!(int,int[]).woo(1,2,3); W!(int,int[2]).woo(1,2,3); static assert(!__traits(compiles, W!(int,int,int).woo(1,2,3))); // int... <- 2 static assert(!__traits(compiles, W!(int,int).woo(1,2))); // int... <- 2 static assert(!__traits(compiles, W!(int,int[2]).woo(1,2))); // int[2]... <- 2 R!().roo(1, "", []); R!(int).roo(1, "", [], 1); R!(int, string).roo(1, "", [], 1, ""); R!(int, string).roo(1, 2, ""); static assert(!__traits(compiles, R!(int).roo(1, "", []))); // int <- [] static assert(!__traits(compiles, R!(int, int).roo(1, "", []))); // int <- [] static assert(!__traits(compiles, R!(int, string).roo(1, 2, 3))); // string <- 3 // test case struct Tuple(T...) { this()(T values) {} } alias T = Tuple!(int[1][]); auto t = T([[10]]); } /******************************************/ // 9971 void goo9971()() { auto g = &goo9971; } struct S9971 { void goo()() { auto g = &goo; static assert(is(typeof(g) == delegate)); } } void test9971() { goo9971!()(); S9971.init.goo!()(); } /******************************************/ // 9977 void test9977() { struct S1(T) { T value; } auto func1(T)(T value) { return value; } static assert(is(S1!int == struct)); assert(func1(10) == 10); template S2(T) { struct S2 { T value; } } template func2(T) { auto func2(T value) { return value; } } static assert(is(S2!int == struct)); assert(func2(10) == 10); template X(T) { alias X = T[3]; } static assert(is(X!int == int[3])); int a; template Y(T) { alias Y = T[typeof(a)]; } static assert(is(Y!double == double[int])); int v = 10; template Z() { alias Z = v; } assert(v == 10); Z!() = 20; assert(v == 20); } /******************************************/ enum T8848a(int[] a) = a; enum T8848b(int[int] b) = b; enum T8848c(void* c) = c; static assert(T8848a!([1,2,3]) == [1,2,3]); static assert(T8848b!([1:2,3:4]) == [1:2,3:4]); static assert(T8848c!(null) == null); /******************************************/ // 9990 auto initS9990() { return "hi"; } class C9990(alias init) {} alias SC9990 = C9990!(initS9990); /******************************************/ // 10067 struct assumeSize10067(alias F) {} template useItemAt10067(size_t idx, T) { void impl(){ } alias useItemAt10067 = assumeSize10067!(impl); } useItemAt10067!(0, char) mapS10067; /******************************************/ // 4072 void bug4072(T)(T x) if (is(typeof(bug4072(x)))) {} static assert(!is(typeof(bug4072(7)))); /******************************************/ // 10074 template foo10074(F) { enum foo10074 = false; } bool foo10074(F)(F f) if (foo10074!F) { return false; } static assert(!is(typeof(foo10074(1)))); /******************************************/ // 10083 // [a-c] IFTI can find syntactic eponymous member template foo10083a(T) { int foo10083a(double) { return 1; } int foo10083a(T) { return 2; } } template foo10083b(T) { int foo10083b(T) { return 1; } int foo10083b(T, T) { return 2; } } template foo10083c1(T) { int foo10083c1(T) { return 1; } static if (true) { int x; } } template foo10083c2(T) { int foo10083c2(T) { return 1; } static if (true) { int x; } else { int y; } } // [d-f] IFTI cannot find syntactic eponymous member template foo10083d1(T) { static if (true) { int foo10083d1(T) { return 1; } } else { } } template foo10083d2(T) { static if (true) { } else { int foo10083d2(T) { return 1; } } } template foo10083e(T) { static if (true) { int foo10083e(double arg) { return 1; } } int foo10083e(T arg) { return 2; } } template foo10083f(T) { static if (true) { int foo10083f(T) { return 1; } } else { int foo10083f(T) { return 2; } } } void test10083() { assert(foo10083a(1) == 2); assert(foo10083a!int(1) == 2); assert(foo10083a!int(1.0) == 1); static assert(!__traits(compiles, foo10083a!double(1))); static assert(!__traits(compiles, foo10083a!double(1.0))); static assert(!__traits(compiles, foo10083a!real(1))); assert(foo10083a!real(1.0) == 1); assert(foo10083a!real(1.0L) == 2); assert(foo10083b(2) == 1); assert(foo10083b(3, 4) == 2); static assert(!__traits(compiles, foo10083b(2, ""))); assert(foo10083c1(1) == 1); assert(foo10083c2(1) == 1); static assert(!__traits(compiles, foo10083d1(2))); static assert(!__traits(compiles, foo10083d2(2))); static assert(!__traits(compiles, foo10083e(3))); static assert(!__traits(compiles, foo10083f(3))); } /******************************************/ // 10134 template ReturnType10134(alias func) { static if (is(typeof(func) R == return)) alias R ReturnType10134; else static assert(0); } struct Result10134(T) {} template getResultType10134(alias func) { static if(is(ReturnType10134!(func.exec) _ == Result10134!(T), T)) { alias getResultType10134 = T; } } template f10134(alias func) { Result10134!(getResultType10134!(func)) exec(int i) { return typeof(return)(); } } template a10134() { Result10134!(double) exec(int i) { return b10134!().exec(i); } } template b10134() { Result10134!(double) exec(int i) { return f10134!(a10134!()).exec(i); } } pragma(msg, getResultType10134!(a10134!())); /******************************************/ // 10313 void test10313() { struct Nullable(T) { this()(inout T value) inout {} } struct S { S[] array; } S s; auto ns = Nullable!S(s); class C { C[] array; } C c; auto nc = Nullable!C(c); } /******************************************/ // 10498 template triggerIssue10498a() { enum triggerIssue10498a = __traits(compiles, { T10498a; }); } template PackedGenericTuple10498a(Args...) { alias Args Tuple; enum e = triggerIssue10498a!(); } struct S10498a { } template T10498a() { alias PackedGenericTuple10498a!S10498a T10498a; } void test10498a() { alias T10498a!() t; static assert(is(t.Tuple[0])); // Fails -> OK } // -------- template triggerIssue10498b(A...) { enum triggerIssue10498b = __traits(compiles, { auto a = A[0]; }); } template PackedGenericTuple10498b(Args...) { alias Args Tuple; enum e = triggerIssue10498b!Args; } template T10498b() { struct S {} // The fact `S` is in `T` causes the problem alias PackedGenericTuple10498b!S T10498b; } void test10498b() { alias T10498b!() t; static assert(is(t.Tuple[0])); } /******************************************/ // 10537 struct Iota10537 { int s,e,i; mixin Yield10537!q{ ; }; } auto skipStrings10537(T)(T source) { return ""; } mixin template Yield10537(dstring code) { alias X = typeof({ enum x = rewriteCode10537(code); }()); } dstring rewriteCode10537(dstring code) { skipStrings10537(code); // IFTI causes forward reference return ""; } /******************************************/ // 10558 template Template10558() {} struct Struct10558(alias T){} alias bar10558 = foo10558!(Template10558!()); template foo10558(alias T) { alias foobar = Struct10558!T; void fun() { alias a = foo10558!T; } } /******************************************/ // 10592 void test10592() { struct A(E) { int put()(const(E)[] data) { return 1; } int put()(const(dchar)[] data) if (!is(E == dchar)) { return 2; } int put(C)(const(C)[] data) if (!is(C == dchar) && !is(E == C)) { return 3; } } A!char x; assert(x.put("abcde"c) == 1); // OK: hit 1 assert(x.put("abcde"w) == 3); // NG: this should hit 3 assert(x.put("abcde"d) == 2); // OK: hit 2 } /******************************************/ // 11242 inout(T[]) fromString11242(T)(inout(char[]) s, T[] dst) { return s; } void test11242() { char[] a; fromString11242(a, a); } /******************************************/ // 10811 void foo10811a(R1, R2)(R1, R2) {} template foo10811a(alias pred) { void foo10811a(R1, R2)(R1, R2) {} } template foo10811b(alias pred) { void foo10811b(R1, R2)(R1, R2) {} } void foo10811b(R1, R2)(R1, R2) {} void test10811() { foo10811a(1, 2); foo10811a!(a => a)(1, 2); foo10811b(1, 2); foo10811b!(a => a)(1, 2); } /******************************************/ // 10969 template A10969(T, U...) { alias A10969 = T; } void foo10969(T, U...)(A10969!(T, U) a) {} template B10969(T, U) { alias B10969 = T; } void bar10969(T, U...)(B10969!(T, U[0]) a) {} void test10969() { foo10969!(int, float)(3); bar10969!(int, float)(3); } /******************************************/ // 11271 struct SmartPtr11271(T) { ~this() {} void opAssign(U)(auto ref U rh) {} } void test11271() { SmartPtr11271!Object a; a = SmartPtr11271!Object(); } /******************************************/ // 11533 version (none) { struct S11533 { void put(alias fun)() { fun!int(); } } void test11533a() { static void foo(T)() {} S11533 s; s.put!foo(); } void test11533b() { static void bar(alias fun)() { fun(); } void nested() {} bar!nested(); } void test11533c() { static struct Foo(alias fun) { auto call() { return fun(); } } int var = 1; auto getVar() { return var; } Foo!getVar foo; assert(foo.call() == var); var += 1; assert(foo.call() == var); } void test11533() { test11533a(); test11533b(); test11533c(); } } else { void test11533() { } } /******************************************/ // 11553 struct Pack11553(T ...) { alias Unpack = T; enum length = T.length; } template isPack11553(TList ...) { static if (TList.length == 1 && is(Pack11553!(TList[0].Unpack) == TList[0])) { enum isPack11553 = true; } else { enum isPack11553 = false; } } template PartialApply11553(alias T, uint argLoc, Arg ...) if (Arg.length == 1) { template PartialApply11553(L ...) { alias PartialApply11553 = T!(L[0 .. argLoc], Arg, L[argLoc .. $]); } } template _hasLength11553(size_t len, T) { static if (T.length == len) { enum _hasLength11553 = true; } else { enum _hasLength11553 = false; } } alias _hasLength11553(size_t len) = PartialApply11553!(._hasLength11553, 0, len); alias hl11553 = _hasLength11553!1; // this segfaults static if (!isPack11553!hl11553) { pragma(msg, "All good 1"); } // these are fine static if ( hl11553!(Pack11553!(5))) { pragma(msg, "All good 2"); } static if (!hl11553!(Pack11553!( ))) { pragma(msg, "All good 3"); } /******************************************/ // 11818 enum E11818 { e0, e1 } struct SortedRange11818 { void fun(E11818 e = true ? E11818.e0 : E11818.e1)() { } } void test11818() { SortedRange11818 s; s.fun(); } /******************************************/ // 11843 void test11843() { struct Foo { int x[string]; } struct Bar(alias foo) {} enum bar1 = Bar!(Foo(["a": 1]))(); enum bar2 = Bar!(Foo(["a": 1]))(); static assert(is(typeof(bar1) == typeof(bar2))); enum foo1 = Foo(["a": 1]); enum foo2 = Foo(["b": -1]); static assert(!__traits(isSame, foo1, foo2)); enum bar3 = Bar!foo1(); enum bar4 = Bar!foo2(); static assert(!is(typeof(bar3) == typeof(bar4))); } /******************************************/ // 11872 class Foo11872 { auto test(int v)() {} auto test(int v)(string) {} template Bar(T) { void test(T) {} } } void test11872() { auto foo = new Foo11872(); with (foo) { // ScopeExp(ti) -> DotTemplateInstanceExp(wthis, ti) foo.test!2(); // works test!2(); // works <- fails test!2; // works <- fails // ScopeExp(ti) -> DotTemplateInstanceExp(wthis, ti) -> DotExp(wthis, ScopeExp) foo.Bar!int.test(1); // works Bar!int.test(1); // works <- fails } } /******************************************/ // 12042 struct S12042 { int[] t; void m()() { t = null; // CTFE error -> OK } } int test12042() { S12042 s; with (s) m!()(); return 1; } static assert(test12042()); /******************************************/ // 12077 struct S12077(A) {} alias T12077(alias T : Base!Args, alias Base, Args...) = Base; static assert(__traits(isSame, T12077!(S12077!int), S12077)); alias U12077(alias T : Base!Args, alias Base, Args...) = Base; alias U12077( T : Base!Args, alias Base, Args...) = Base; static assert(__traits(isSame, U12077!(S12077!int), S12077)); /******************************************/ // 12262 template Inst12262(T) { int x; } enum fqnSym12262(alias a) = 1; enum fqnSym12262(alias a : B!A, alias B, A...) = 2; static assert(fqnSym12262!(Inst12262!(Object)) == 2); static assert(fqnSym12262!(Inst12262!(Object).x) == 1); /******************************************/ // 12264 struct S12264(A) {} template AX12264(alias A1) { enum AX12264 = 1; } template AX12264(alias A2 : B!A, alias B, A...) { enum AX12264 = 2; } template AY12264(alias A1) { enum AY12264 = 1; } template AY12264(alias A2 : B!int, alias B) { enum AY12264 = 2; } template AZ12264(alias A1) { enum AZ12264 = 1; } template AZ12264(alias A2 : S12264!T, T) { enum AZ12264 = 2; } static assert(AX12264!(S12264!int) == 2); static assert(AY12264!(S12264!int) == 2); static assert(AZ12264!(S12264!int) == 2); template TX12264(T1) { enum TX12264 = 1; } template TX12264(T2 : B!A, alias B, A...) { enum TX12264 = 2; } template TY12264(T1) { enum TY12264 = 1; } template TY12264(T2 : B!int, alias B) { enum TY12264 = 2; } template TZ12264(T1) { enum TZ12264 = 1; } template TZ12264(T2 : S12264!T, T) { enum TZ12264 = 2; } static assert(TX12264!(S12264!int) == 2); static assert(TY12264!(S12264!int) == 2); static assert(TZ12264!(S12264!int) == 2); /******************************************/ // 12122 enum N12122 = 1; void foo12122(T)(T[N12122]) if(is(T == int)) {} void test12122() { int[N12122] data; foo12122(data); } /******************************************/ // 12186 template map_front12186(fun...) { auto map_front12186(Range)(Range r) { return fun[0](r[0]); } } void test12186() { immutable int[][] mat; mat.map_front12186!((in r) => 0); // OK mat.map_front12186!((const r) => 0); // OK mat.map_front12186!((immutable int[] r) => 0); // OK mat.map_front12186!((immutable r) => 0); // OK <- Error } /******************************************/ // 12207 void test12207() { static struct S { static void f(T)(T) {} } immutable S s; s.f(1); } /******************************************/ // 12263 template A12263(alias a) { int x; } template B12263(alias a) { int x; } template fqnSym12263(alias T : B12263!A, alias B12263, A...) { enum fqnSym12263 = true; } static assert(fqnSym12263!(A12263!(Object))); static assert(fqnSym12263!(B12263!(Object))); /******************************************/ // 12290 void test12290() { short[] arrS; float[] arrF; double[] arrD; real[] arrR; string cstr; wstring wstr; dstring dstr; short[short] aa; auto func1a(E)(E[], E) { return E.init; } auto func1b(E)(E, E[]) { return E.init; } static assert(is(typeof(func1a(arrS, 1)) == short)); static assert(is(typeof(func1b(1, arrS)) == short)); static assert(is(typeof(func1a(arrF, 1.0)) == float)); static assert(is(typeof(func1b(1.0, arrF)) == float)); static assert(is(typeof(func1a(arrD, 1.0L)) == double)); static assert(is(typeof(func1b(1.0L, arrD)) == double)); static assert(is(typeof(func1a(arrR, 1)) == real)); static assert(is(typeof(func1b(1, arrR)) == real)); static assert(is(typeof(func1a("str" , 'a')) == immutable char)); static assert(is(typeof(func1b('a', "str" )) == immutable char)); static assert(is(typeof(func1a("str"c, 'a')) == immutable char)); static assert(is(typeof(func1b('a', "str"c)) == immutable char)); static assert(is(typeof(func1a("str"w, 'a')) == immutable wchar)); static assert(is(typeof(func1b('a', "str"w)) == immutable wchar)); static assert(is(typeof(func1a("str"d, 'a')) == immutable dchar)); static assert(is(typeof(func1b('a', "str"d)) == immutable dchar)); static assert(is(typeof(func1a([1,2,3], 1L)) == long)); static assert(is(typeof(func1b(1L, [1,2,3])) == long)); static assert(is(typeof(func1a([1,2,3], 1.5)) == double)); static assert(is(typeof(func1b(1.5, [1,2,3])) == double)); static assert(is(typeof(func1a(["a","b"], "s"c)) == string)); static assert(is(typeof(func1b("s"c, ["a","b"])) == string)); static assert(is(typeof(func1a(["a","b"], "s"w)) == wstring)); static assert(is(typeof(func1b("s"w, ["a","b"])) == wstring)); static assert(is(typeof(func1a(["a","b"], "s"d)) == dstring)); static assert(is(typeof(func1b("s"d, ["a","b"])) == dstring)); auto func2a(K, V)(V[K], K, V) { return V[K].init; } auto func2b(K, V)(V, K, V[K]) { return V[K].init; } static assert(is(typeof(func2a(aa, 1, 1)) == short[short])); static assert(is(typeof(func2b(1, 1, aa)) == short[short])); static assert(is(typeof(func2a([1:10,2:20,3:30], 1L, 10L)) == long[long])); static assert(is(typeof(func2b(1L, 10L, [1:20,2:20,3:30])) == long[long])); auto func3a(T)(T, T) { return T.init; } auto func3b(T)(T, T) { return T.init; } static assert(is(typeof(func3a(arrS, null)) == short[])); static assert(is(typeof(func3b(null, arrS)) == short[])); static assert(is(typeof(func3a(arrR, null)) == real[])); static assert(is(typeof(func3b(null, arrR)) == real[])); static assert(is(typeof(func3a(cstr, "str")) == string)); static assert(is(typeof(func3b("str", cstr)) == string)); static assert(is(typeof(func3a(wstr, "str")) == wstring)); static assert(is(typeof(func3b("str", wstr)) == wstring)); static assert(is(typeof(func3a(dstr, "str")) == dstring)); static assert(is(typeof(func3b("str", dstr)) == dstring)); static assert(is(typeof(func3a("str1" , "str2"c)) == string)); static assert(is(typeof(func3b("str1"c, "str2" )) == string)); static assert(is(typeof(func3a("str1" , "str2"w)) == wstring)); static assert(is(typeof(func3b("str1"w, "str2" )) == wstring)); static assert(is(typeof(func3a("str1" , "str2"d)) == dstring)); static assert(is(typeof(func3b("str1"d, "str2" )) == dstring)); inout(V) get(K, V)(inout(V[K]) aa, K key, lazy V defaultValue) { return V.init; } short[short] hash12220; short res12220 = get(hash12220, 1, 1); short[short] hash12221; enum Key12221 : short { a } get(hash12221, Key12221.a, Key12221.a); int[][string] mapping13026; int[] v = get(mapping13026, "test", []); } /******************************************/ // 12292 void test12292() { void fun(T : string)(T data) {} ubyte[3] sa; static assert(!__traits(compiles, fun(sa))); static assert(!__traits(compiles, { alias f = fun!(ubyte[3]); })); } /******************************************/ // 12376 static auto encode12376(size_t sz)(dchar ch) if (sz > 1) { undefined; } void test12376() { enum x = __traits(compiles, encode12376!2(x)); } /******************************************/ // 12447 enum test12447(string str) = str; // [1] string test12447(T...)(T args) if (T.length) { return args[0]; } // [2] // With [1]: The template parameter str cannot be be deduced -> no match // With [2]: T is deduced to a type tuple (string), then match to the function call. static assert(test12447("foo") == "foo"); // With [1]: template parameter str is deduced to "bar", then match. // With [2]: T is deduced to an expression tuple ("bar"), but it will make invalid the function signature (T args). // The failure should be masked silently and prefer the 1st version. static assert(test12447!("bar") == "bar"); /******************************************/ // 12651 alias TemplateArgsOf12651(alias T : Base!Args, alias Base, Args...) = Args; struct S12651(T) { } static assert(!__traits(compiles, TemplateArgsOf12651!(S12651!int, S, float))); /******************************************/ // 12719 struct A12719 { B12719!int b(); } struct B12719(T) { A12719 a; void m() { auto v = B12719!T.init; } } // -------- enum canDoIt12719(R) = is(typeof(W12719!R)); struct W12719(R) { R r; static if (canDoIt12719!R) {} } W12719!int a12719; /******************************************/ // 12746 template foo12746() { void bar() { static assert(!__traits(compiles, bar(1))); } alias foo12746 = bar; } void foo12746(int) { assert(0); } void test12746() { foo12746(); // instantiate } /******************************************/ // 9708 struct S9708 { void f()(inout(Object)) inout {} } void test9708() { S9708 s; s.f(new Object); } /******************************************/ // 12880 void f12880(T)(in T value) { static assert(is(T == string)); } void test12880() { f12880(string.init); } /******************************************/ // 13087 struct Vec13087 { int x; void m() { auto n = component13087!(this, 'x'); } void c() const { auto n = component13087!(this, 'x'); } void w() inout { auto n = component13087!(this, 'x'); } void wc() inout const { auto n = component13087!(this, 'x'); } void s() shared { auto n = component13087!(this, 'x'); } void sc() shared const { auto n = component13087!(this, 'x'); } void sw() shared inout { auto n = component13087!(this, 'x'); } void swc() shared inout const { auto n = component13087!(this, 'x'); } void i() immutable { auto n = component13087!(this, 'x'); } } template component13087(alias vec, char c) { alias component13087 = vec.x; } /******************************************/ // 13127 /+void test13127(inout int = 0) { int [] ma1; const(int)[] ca1; const(int[]) ca2; inout( int)[] wma1; inout( int[]) wma2; inout(const int)[] wca1; inout(const int[]) wca2; immutable(int)[] ia1; immutable(int[]) ia2; shared( int)[] sma1; shared( int[]) sma2; shared( const int)[] sca1; shared( const int[]) sca2; shared(inout int)[] swma1; shared(inout int[]) swma2; shared(inout const int)[] swca1; shared(inout const int[]) swca2; /* In all cases, U should be deduced to top-unqualified type. */ /* Parameter is (shared) mutable */ U f_m(U)( U) { return null; } U fsm(U)(shared U) { return null; } // 9 * 2 - 1 static assert(is(typeof(f_m( ma1)) == int [])); static assert(is(typeof(f_m( ca1)) == const(int)[])); static assert(is(typeof(f_m( ca2)) == const(int)[])); static assert(is(typeof(f_m( wma1)) == inout( int)[])); static assert(is(typeof(f_m( wma2)) == inout( int)[])); static assert(is(typeof(f_m( wca1)) == inout(const int)[])); static assert(is(typeof(f_m( wca2)) == inout(const int)[])); static assert(is(typeof(f_m( ia1)) == immutable(int)[])); static assert(is(typeof(f_m( ia2)) == immutable(int)[])); static assert(is(typeof(f_m( sma1)) == shared( int)[])); static assert(is(typeof(f_m( sma2)) == shared( int)[])); // <- shared(int[]) static assert(is(typeof(f_m( sca1)) == shared( const int)[])); static assert(is(typeof(f_m( sca2)) == shared( const int)[])); // <- shared(const(int)[]) static assert(is(typeof(f_m(swma1)) == shared(inout int)[])); static assert(is(typeof(f_m(swma2)) == shared(inout int)[])); // <- shared(inout(int[])) static assert(is(typeof(f_m(swca1)) == shared(inout const int)[])); static assert(is(typeof(f_m(swca2)) == shared(inout const int)[])); // <- shared(inout(const(int))[]) // 9 * 2 - 1 static assert(is(typeof(fsm( ma1))) == false); static assert(is(typeof(fsm( ca1))) == false); static assert(is(typeof(fsm( ca2))) == false); static assert(is(typeof(fsm( wma1))) == false); static assert(is(typeof(fsm( wma2))) == false); static assert(is(typeof(fsm( wca1))) == false); static assert(is(typeof(fsm( wca2))) == false); static assert(is(typeof(fsm( ia1))) == false); static assert(is(typeof(fsm( ia2))) == false); static assert(is(typeof(fsm( sma1)) == shared( int)[])); // <- NG static assert(is(typeof(fsm( sma2)) == shared( int)[])); static assert(is(typeof(fsm( sca1)) == shared( const int)[])); // <- NG static assert(is(typeof(fsm( sca2)) == shared( const int)[])); static assert(is(typeof(fsm(swma1)) == shared(inout int)[])); // <- NG static assert(is(typeof(fsm(swma2)) == shared(inout int)[])); static assert(is(typeof(fsm(swca1)) == shared(inout const int)[])); // <- NG static assert(is(typeof(fsm(swca2)) == shared(inout const int)[])); /* Parameter is (shared) const */ U f_c(U)( const U) { return null; } U fsc(U)(shared const U) { return null; } // 9 * 2 - 1 static assert(is(typeof(f_c( ma1)) == int [])); static assert(is(typeof(f_c( ca1)) == const(int)[])); static assert(is(typeof(f_c( ca2)) == const(int)[])); static assert(is(typeof(f_c( wma1)) == inout( int)[])); static assert(is(typeof(f_c( wma2)) == inout( int)[])); static assert(is(typeof(f_c( wca1)) == inout(const int)[])); static assert(is(typeof(f_c( wca2)) == inout(const int)[])); static assert(is(typeof(f_c( ia1)) == immutable(int)[])); static assert(is(typeof(f_c( ia2)) == immutable(int)[])); static assert(is(typeof(f_c( sma1)) == shared( int)[])); static assert(is(typeof(f_c( sma2)) == shared( int)[])); // <- shared(int[]) static assert(is(typeof(f_c( sca1)) == shared( const int)[])); static assert(is(typeof(f_c( sca2)) == shared( const int)[])); // <- shared(const(int)[]) static assert(is(typeof(f_c(swma1)) == shared(inout int)[])); static assert(is(typeof(f_c(swma2)) == shared(inout int)[])); // shared(inout(int)[]) static assert(is(typeof(f_c(swca1)) == shared(inout const int)[])); static assert(is(typeof(f_c(swca2)) == shared(inout const int)[])); // shared(inout(const(int))[]) // 9 * 2 - 1 static assert(is(typeof(fsc( ma1))) == false); static assert(is(typeof(fsc( ca1))) == false); static assert(is(typeof(fsc( ca2))) == false); static assert(is(typeof(fsc( wma1))) == false); static assert(is(typeof(fsc( wma2))) == false); static assert(is(typeof(fsc( wca1))) == false); static assert(is(typeof(fsc( wca2))) == false); static assert(is(typeof(fsc( ia1)) == immutable(int)[])); // <- NG static assert(is(typeof(fsc( ia2)) == immutable(int)[])); // <- NG static assert(is(typeof(fsc( sma1)) == shared( int)[])); // <- NG static assert(is(typeof(fsc( sma2)) == shared( int)[])); static assert(is(typeof(fsc( sca1)) == shared( const int)[])); // <- NG static assert(is(typeof(fsc( sca2)) == shared( const int)[])); static assert(is(typeof(fsc(swma1)) == shared(inout int)[])); // <- NG static assert(is(typeof(fsc(swma2)) == shared(inout int)[])); static assert(is(typeof(fsc(swca1)) == shared(inout const int)[])); // <- NG static assert(is(typeof(fsc(swca2)) == shared(inout const int)[])); /* Parameter is immutable */ U fi(U)(immutable U) { return null; } // 9 * 2 - 1 static assert(is(typeof(fi( ma1))) == false); static assert(is(typeof(fi( ca1))) == false); static assert(is(typeof(fi( ca2))) == false); static assert(is(typeof(fi( wma1))) == false); static assert(is(typeof(fi( wma2))) == false); static assert(is(typeof(fi( wca1))) == false); static assert(is(typeof(fi( wca2))) == false); static assert(is(typeof(fi( ia1)) == immutable(int)[])); // <- NG static assert(is(typeof(fi( ia2)) == immutable(int)[])); // <- NG static assert(is(typeof(fi( sma1))) == false); static assert(is(typeof(fi( sma2))) == false); static assert(is(typeof(fi( sca1))) == false); static assert(is(typeof(fi( sca2))) == false); static assert(is(typeof(fi(swma1))) == false); static assert(is(typeof(fi(swma2))) == false); static assert(is(typeof(fi(swca1))) == false); static assert(is(typeof(fi(swca2))) == false); /* Parameter is (shared) inout */ U f_w(U)( inout U) { return null; } U fsw(U)(shared inout U) { return null; } // 9 * 2 - 1 static assert(is(typeof(f_w( ma1)) == int [])); static assert(is(typeof(f_w( ca1)) == int [])); // <- const(int)[] static assert(is(typeof(f_w( ca2)) == int [])); // <- const(int)[] static assert(is(typeof(f_w( wma1)) == int [])); // <- inout(int)[] static assert(is(typeof(f_w( wma2)) == int [])); // <- inout(int)[] static assert(is(typeof(f_w( wca1)) == const(int)[])); // <- inout(const(int))[] static assert(is(typeof(f_w( wca2)) == const(int)[])); // <- inout(const(int))[] static assert(is(typeof(f_w( ia1)) == int [])); // <- immutable(int)[] static assert(is(typeof(f_w( ia2)) == int [])); // <- immutable(int)[] static assert(is(typeof(f_w( sma1)) == shared( int)[])); static assert(is(typeof(f_w( sma2)) == shared( int)[])); // <- shared(int[]) static assert(is(typeof(f_w( sca1)) == shared( int)[])); // <- shared(const(int))[] static assert(is(typeof(f_w( sca2)) == shared( int)[])); // <- shared(const(int)[]) static assert(is(typeof(f_w(swma1)) == shared( int)[])); // <- shared(inout(int))[] static assert(is(typeof(f_w(swma2)) == shared( int)[])); // <- shared(inout(int)[]) static assert(is(typeof(f_w(swca1)) == shared(const int)[])); // <- shared(inout(const(int)))[] static assert(is(typeof(f_w(swca2)) == shared(const int)[])); // <- shared(inout(const(int))[]) // 9 * 2 - 1 static assert(is(typeof(fsw( ma1))) == false); static assert(is(typeof(fsw( ca1))) == false); static assert(is(typeof(fsw( ca2))) == false); static assert(is(typeof(fsw( wma1))) == false); static assert(is(typeof(fsw( wma2))) == false); static assert(is(typeof(fsw( wca1))) == false); static assert(is(typeof(fsw( wca2))) == false); static assert(is(typeof(fsw( ia1)) == int [])); // <- NG static assert(is(typeof(fsw( ia2)) == int [])); // <- NG static assert(is(typeof(fsw( sma1)) == int [])); // <- NG static assert(is(typeof(fsw( sma2)) == int [])); static assert(is(typeof(fsw( sca1)) == int [])); // <- NG static assert(is(typeof(fsw( sca2)) == int [])); // const(int)[] static assert(is(typeof(fsw(swma1)) == int [])); // <- NG static assert(is(typeof(fsw(swma2)) == int [])); // inout(int)[] static assert(is(typeof(fsw(swca1)) == const(int)[])); // <- NG static assert(is(typeof(fsw(swca2)) == const(int)[])); // <- inout(const(int))[] /* Parameter is (shared) inout const */ U f_wc(U)( inout const U) { return null; } U fswc(U)(shared inout const U) { return null; } // 9 * 2 - 1 static assert(is(typeof(f_wc( ma1)) == int [])); static assert(is(typeof(f_wc( ca1)) == int [])); // <- const(int)[] static assert(is(typeof(f_wc( ca2)) == int [])); // <- const(int)[] static assert(is(typeof(f_wc( wma1)) == int [])); // <- inout(int)[] static assert(is(typeof(f_wc( wma2)) == int [])); // <- inout(int)[] static assert(is(typeof(f_wc( wca1)) == int [])); // <- inout(const(int))[] static assert(is(typeof(f_wc( wca2)) == int [])); // <- inout(const(int))[] static assert(is(typeof(f_wc( ia1)) == int [])); // <- immutable(int)[] static assert(is(typeof(f_wc( ia2)) == int [])); // <- immutable(int)[] static assert(is(typeof(f_wc( sma1)) == shared(int)[])); static assert(is(typeof(f_wc( sma2)) == shared(int)[])); // <- shared(int[]) static assert(is(typeof(f_wc( sca1)) == shared(int)[])); // <- shared(const(int))[] static assert(is(typeof(f_wc( sca2)) == shared(int)[])); // <- shared(const(int)[]) static assert(is(typeof(f_wc(swma1)) == shared(int)[])); // <- shared(inout(int))[] static assert(is(typeof(f_wc(swma2)) == shared(int)[])); // <- shared(inout(int)[]) static assert(is(typeof(f_wc(swca1)) == shared(int)[])); // <- shared(inout(const(int)))[] static assert(is(typeof(f_wc(swca2)) == shared(int)[])); // <- shared(inout(const(int))[]) // 9 * 2 - 1 static assert(is(typeof(fswc( ma1))) == false); static assert(is(typeof(fswc( ca1))) == false); static assert(is(typeof(fswc( ca2))) == false); static assert(is(typeof(fswc( wma1))) == false); static assert(is(typeof(fswc( wma2))) == false); static assert(is(typeof(fswc( wca1))) == false); static assert(is(typeof(fswc( wca2))) == false); static assert(is(typeof(fswc( ia1)) == int [])); // <- NG static assert(is(typeof(fswc( ia2)) == int [])); // <- NG static assert(is(typeof(fswc( sma1)) == int [])); // <- NG static assert(is(typeof(fswc( sma2)) == int [])); static assert(is(typeof(fswc( sca1)) == int [])); // <- NG static assert(is(typeof(fswc( sca2)) == int [])); // <- const(int)[] static assert(is(typeof(fswc(swma1)) == int [])); // <- NG static assert(is(typeof(fswc(swma2)) == int [])); // <- inout(int)[] static assert(is(typeof(fswc(swca1)) == int [])); // <- NG static assert(is(typeof(fswc(swca2)) == int [])); // <- inout(const(int))[] }+/ void test13127a() { void foo(T)(in T[] src, T[] dst) { static assert(is(T == int[])); } int[][] a; foo(a, a); } /******************************************/ // 13159 template maxSize13159(T...) { static if (T.length == 1) { enum size_t maxSize13159 = T[0].sizeof; } else { enum size_t maxSize13159 = T[0].sizeof >= maxSize13159!(T[1 .. $]) ? T[0].sizeof : maxSize13159!(T[1 .. $]); } } struct Node13159 { struct Pair { Node13159 value; } //alias Algebraic!(Node[], int) Value; enum n = maxSize13159!(Node13159[], int); } /******************************************/ // 13180 void test13180() { inout(V) get1a(K, V)(inout(V[K]) aa, lazy inout(V) defaultValue) { static assert(is(V == string)); static assert(is(K == string)); return defaultValue; } inout(V) get1b(K, V)(lazy inout(V) defaultValue, inout(V[K]) aa) { static assert(is(V == string)); static assert(is(K == string)); return defaultValue; } inout(V) get2a(K, V)(inout(V)[K] aa, lazy inout(V) defaultValue) { static assert(is(V == string)); static assert(is(K == string)); return defaultValue; } inout(V) get2b(K, V)(lazy inout(V) defaultValue, inout(V)[K] aa) { static assert(is(V == string)); static assert(is(K == string)); return defaultValue; } string def; string[string] aa; string s1a = get1a(aa, def); string s1b = get1b(def, aa); string s2a = get2a(aa, def); string s2b = get2b(def, aa); } /******************************************/ // 13204 struct A13204(uint v) { alias whatever = A13204y; static assert(is(whatever == A13204)); } alias A13204x = A13204!1; alias A13204y = A13204x; struct B13204(uint v) { alias whatever = B13204z; static assert(is(whatever == B13204)); } alias B13204x = B13204!1; alias B13204y = B13204x; alias B13204z = B13204y; void test13204() { static assert(is(A13204x == A13204!1)); static assert(is(A13204x == A13204!1.whatever)); static assert(is(A13204x == A13204y)); static assert(is(B13204x == B13204!1)); static assert(is(B13204x == B13204!1.whatever)); static assert(is(B13204x == B13204y)); static assert(is(B13204x == B13204z)); } /******************************************/ // 8462 (dup of 13204) alias FP8462 = void function(C8462.Type arg); class C8462 { enum Type { Foo } alias funcPtrPtr = FP8462*; } /******************************************/ // 13218 template isCallable13218(T...) if (T.length == 1) { static assert(0); } template ParameterTypeTuple13218(func...) if (func.length == 1 && isCallable13218!func) { static assert(0); } struct R13218 { private static string mangleFuncPtr(ArgTypes...)() { string result = "fnp_"; foreach (T; ArgTypes) result ~= T.mangleof; return result; } void function(int) fnp_i; double delegate(double) fnp_d; void opAssign(FnT)(FnT func) { mixin(mangleFuncPtr!( ParameterTypeTuple13218!FnT) ~ " = func;"); // parsed as TypeInstance //mixin(mangleFuncPtr!(.ParameterTypeTuple13218!FnT) ~ " = func;"); // parsed as DotTemplateInstanceExp -> works } } /******************************************/ // 13219 struct Map13219(V) {} void test13219a(alias F, VA, VB)(Map13219!VA a, Map13219!VB b) if (is(VA : typeof(F(VA.init, VB.init)))) {} void test13219b(alias F)() { test13219a!((a, b) => b)(Map13219!int.init, Map13219!int.init); } void test13219() { int x; test13219b!x(); } /******************************************/ // 13223 void test13223() { T[] f1(T)(T[] a1, T[] a2) { static assert(is(T == int)); return a1 ~ a2; } T[] f2(T)(T[] a1, T[] a2) { static assert(is(T == int)); return a1 ~ a2; } int[] a = [1, 2]; static assert(is(typeof(f1(a, [])) == int[])); static assert(is(typeof(f2([], a)) == int[])); static assert(is(typeof(f1(a, null)) == int[])); static assert(is(typeof(f2(null, a)) == int[])); T[] f3(T)(T[] a) { return a; } static assert(is(typeof(f3([])) == void[])); static assert(is(typeof(f3(null)) == void[])); T f4(T)(T a) { return a; } static assert(is(typeof(f4([])) == void[])); static assert(is(typeof(f4(null)) == typeof(null))); T[][] f5(T)(T[][] a) { return a; } static assert(is(typeof(f5([])) == void[][])); static assert(is(typeof(f5(null)) == void[][])); void translate(C = immutable char)(const(C)[] toRemove) { static assert(is(C == char)); } translate(null); } void test13223a() { T f(T)(T, T) { return T.init; } immutable i = 0; const c = 0; auto m = 0; shared s = 0; static assert(is(typeof(f(i, i)) == immutable int)); static assert(is(typeof(f(i, c)) == const int)); static assert(is(typeof(f(c, i)) == const int)); static assert(is(typeof(f(i, m)) == int)); static assert(is(typeof(f(m, i)) == int)); static assert(is(typeof(f(c, m)) == int)); static assert(is(typeof(f(m, c)) == int)); static assert(is(typeof(f(m, m)) == int)); static assert(is(typeof(f(i, s)) == shared int)); static assert(is(typeof(f(s, i)) == shared int)); static assert(is(typeof(f(c, s)) == shared int)); static assert(is(typeof(f(s, c)) == shared int)); static assert(is(typeof(f(s, s)) == shared int)); static assert(is(typeof(f(s, m)) == int)); static assert(is(typeof(f(m, s)) == int)); } /******************************************/ // 13235 struct Tuple13235(T...) { T expand; alias expand field; this(T values) { field = values; } } struct Foo13235 { Tuple13235!(int, Foo13235)* foo; } template Inst13235(T...) { struct Tuple { T expand; alias expand field; this(T values) { field = values; } } alias Inst13235 = Tuple*; } struct Bar13235 { Inst13235!(int, Bar13235) bar; } void test13235() { alias Tup1 = Tuple13235!(int, Foo13235); assert(Tup1(1, Foo13235()).expand[0] == 1); alias Tup2 = typeof(*Inst13235!(int, Bar13235).init); assert(Tup2(1, Bar13235()).expand[0] == 1); } /******************************************/ // 13252 alias TypeTuple13252(T...) = T; static assert(is(typeof(TypeTuple13252!(cast(int )1)[0]) == int )); static assert(is(typeof(TypeTuple13252!(cast(long)1)[0]) == long)); static assert(is(typeof(TypeTuple13252!(cast(float )3.14)[0]) == float )); static assert(is(typeof(TypeTuple13252!(cast(double)3.14)[0]) == double)); static assert(is(typeof(TypeTuple13252!(cast(cfloat )(1 + 2i))[0]) == cfloat )); static assert(is(typeof(TypeTuple13252!(cast(cdouble)(1 + 2i))[0]) == cdouble)); static assert(is(typeof(TypeTuple13252!(cast(string )null)[0]) == string )); static assert(is(typeof(TypeTuple13252!(cast(string[])null)[0]) == string[])); // OK <- NG static assert(is(typeof(TypeTuple13252!(cast(wstring)"abc")[0]) == wstring)); static assert(is(typeof(TypeTuple13252!(cast(dstring)"abc")[0]) == dstring)); static assert(is(typeof(TypeTuple13252!(cast(int[] )[])[0]) == int[] )); static assert(is(typeof(TypeTuple13252!(cast(long[])[])[0]) == long[])); // OK <- NG struct S13252 { } static assert(is(typeof(TypeTuple13252!(const S13252())[0]) == const(S13252))); static assert(is(typeof(TypeTuple13252!(immutable S13252())[0]) == immutable(S13252))); // OK <- NG /******************************************/ // 13294 void test13294() { void f(T)(const ref T src, ref T dst) { pragma(msg, "T = ", T); static assert(!is(T == const)); } { const byte src; byte dst; f(src, dst); } { const char src; char dst; f(src, dst); } // 13351 T add(T)(in T x, in T y) { T z; z = x + y; return z; } const double a = 1.0; const double b = 2.0; double c; c = add(a,b); } /******************************************/ // 13299 struct Foo13299 { Foo13299 opDispatch(string name)(int a, int[] b...) if (name == "bar") { return Foo13299(); } Foo13299 opDispatch(string name)() if (name != "bar") { return Foo13299(); } } void test13299() { Foo13299() .bar(0) .bar(1) .bar(2); Foo13299() .opDispatch!"bar"(0) .opDispatch!"bar"(1) .opDispatch!"bar"(2); } /******************************************/ // 13333 template AliasThisTypeOf13333(T) { static assert(0, T.stringof); // T.stringof is important } template StaticArrayTypeOf13333(T) { static if (is(AliasThisTypeOf13333!T AT)) alias X = StaticArrayTypeOf13333!AT; else alias X = T; static if (is(X : E[n], E, size_t n)) alias StaticArrayTypeOf13333 = X; else static assert(0, T.stringof~" is not a static array type"); } enum bool isStaticArray13333(T) = is(StaticArrayTypeOf13333!T); struct VaraiantN13333(T) { static if (isStaticArray13333!T) ~this() { static assert(0); } } struct DummyScope13333 { alias A = VaraiantN13333!C; static class C { A entity; } } void test13333() { struct DummyScope { alias A = VaraiantN13333!C; static class C { A entity; } } } /******************************************/ // 13374 int f13374(alias a)() { return 1; } int f13374(string s)() { return 2; } void x13374(int i) {} void test13374() { assert(f13374!x13374() == 1); } /******************************************/ // 14109 string f14109() { return "a"; } string g14109()() { return "a"; } struct S14109(string s) { static assert(s == "a"); } alias X14109 = S14109!(f14109); alias Y14109 = S14109!(g14109!()); static assert(is(X14109 == Y14109)); /******************************************/ // 13378 struct Vec13378(size_t n, T, string as) { T[n] data; } void doSome13378(size_t n, T, string as)(Vec13378!(n,T,as) v) {} void test13378() { auto v = Vec13378!(3, float, "xyz")([1,2,3]); doSome13378(v); } /******************************************/ // 13379 void test13379() { match13379(""); } auto match13379(RegEx )(RegEx re) if (is(RegEx == Regex13379!char)) // #1 Regex!char (speculative && tinst == NULL) {} auto match13379(String)(String re) {} struct Regex13379(Char) { ShiftOr13379!Char kickstart; // #2 ShiftOr!char (speculative && tinst == Regex!char) } struct ShiftOr13379(Char) { this(ref Regex13379!Char re) // #3 Regex!Char (speculative && tinst == ShiftOr!char) { uint n_length; uint idx; n_length = min13379(idx, n_length); } } template MinType13379(T...) { alias MinType13379 = T[0]; } MinType13379!T min13379(T...)(T args) // #4 MinType!uint (speculative && thist == ShiftOr!char) { alias a = args[0]; alias b = args[$-1]; return cast(typeof(return)) (a < b ? a : b); } /******************************************/ // 13417 struct V13417(size_t N, E, alias string AS) { } auto f13417(E)(in V13417!(4, E, "ijka")) { return V13417!(3, E, "xyz")(); } void test13417() { f13417(V13417!(4, float, "ijka")()); } /******************************************/ // 13484 int foo13484()(void delegate() hi) { return 1; } int foo13484(T)(void delegate(T) hi) { return 2; } void test13484() { assert(foo13484({}) == 1); // works assert(foo13484((float v){}) == 2); // works <- throws error } /******************************************/ // 13675 enum E13675; bool foo13675(T : E13675)() { return false; } void test13675() { if (foo13675!E13675) {} } /******************************************/ // 13694 auto foo13694(T)(string A, T[] G ...) { return 1; } auto foo13694(T)(string A, long E, T[] G ...) { return 2; } void test13694() { struct S {} S v; assert(foo13694("A", v) == 1); // <- OK assert(foo13694("A", 0, v) == 2); // <- used to be OK but now fails assert(foo13694!S("A", 0, v) == 2); // <- workaround solution } /******************************************/ // 13760 void test13760() { void func(K, V)(inout(V[K]) aa, inout(V) val) {} class C {} C[int] aa; func(aa, new C); } /******************************************/ // 13714 struct JSONValue13714 { this(T)(T arg) { } this(T : JSONValue13714)(inout T arg) inout { //store = arg.store; } void opAssign(T)(T arg) { } } void test13714() { enum DummyStringEnum { foo = "bar" } JSONValue13714[string] aa; aa["A"] = DummyStringEnum.foo; } /******************************************/ // 13807 T f13807(T)(inout(T)[] arr) { return T.init; } void test13807() { static assert(is(typeof(f13807([1, 2, 3])) == int)); // OK static assert(is(typeof(f13807(["a", "b"])) == string)); // OK <- Error static assert(is(typeof(f13807!string(["a", "b"])) == string)); // OK } /******************************************/ // 14174 struct Config14174(a, b) {} struct N14174 {} alias defConfig14174 = Config14174!(N14174, N14174); void accepter14174a(Config : Config14174!(T) = defConfig14174, T...)() { static assert(accepter14174a.mangleof == "_D7breaker131__T14"~ "accepter14174a"~ "HTS7breaker51__T11Config14174TS7breaker6N14174TS7breaker6N14174Z11Config14174TS7breaker6N14174TS7breaker6N14174Z14"~ "accepter14174a"~ "FZv"); } void accepter14174b(Config : Config14174!(T) = defConfig14174, T...)() { static assert(accepter14174b.mangleof == "_D7breaker131__T14"~ "accepter14174b"~ "HTS7breaker51__T11Config14174TS7breaker6N14174TS7breaker6N14174Z11Config14174TS7breaker6N14174TS7breaker6N14174Z14"~ "accepter14174b"~ "FZv"); } void test14174() { accepter14174a!()(); // ok accepter14174b(); // error } /******************************************/ // 14836 template a14836x(alias B, C...) { int a14836x(D...)() if (D.length == 0) { return 1; } int a14836x(D...)(D d) if (D.length > 0) { return 2; } } template a14836y(alias B, C...) { int a14836y(T, D...)(T t) if (D.length == 0) { return 1; } int a14836y(T, D...)(T t, D d) if (D.length > 0) { return 2; } } void test14836() { int v; assert(a14836x!(v)() == 1); assert(a14836x!(v)(1) == 2); assert(a14836y!(v)(1) == 1); assert(a14836y!(v)(1, 2) == 2); } /******************************************/ // 14357 template Qux14357(T : U*, U : V*, V) { pragma(msg, T); // no match <- float** pragma(msg, U); // no match <- float* pragma(msg, V); // no match <- int enum Qux14357 = T.sizeof + V.sizeof; } static assert(!__traits(compiles, Qux14357!(float**, int*))); /******************************************/ // 14481 template someT14481(alias e) { alias someT14481 = e; } mixin template Mix14481(alias e) { alias SomeAlias = someT14481!e; } struct Hoge14481 { mixin Mix14481!e; enum e = 10; } /******************************************/ // 14520 template M14520(alias a) { enum M14520 = 1; } template M14520(string s) { enum M14520 = 2; } int f14520a(); string f14520b() { assert(0); } string f14520c() { return "a"; } static assert(M14520!f14520a == 1); static assert(M14520!f14520b == 1); static assert(M14520!f14520c == 1); /******************************************/ // 14568 struct Interval14568() { auto left = INVALID; auto opAssign()(Interval14568) { left; } } auto interval14568(T)(T point) { Interval14568!(); } alias Instantiate14568(alias symbol, Args...) = symbol!Args; template Match14568(patterns...) { static if (__traits(compiles, Instantiate14568!(patterns[0]))) { alias Match14568 = patterns[0]; } else static if (patterns.length == 1) {} } template SubOps14568(Args...) { auto opIndex() { template IntervalType(T...) { alias Point() = typeof(T.interval14568); alias IntervalType = Match14568!(Point); } alias Subspace = IntervalType!(Args); } } struct Nat14568 { mixin SubOps14568!(null); } /******************************************/ // 14735 enum CS14735 { yes, no } int indexOf14735a(Range )(Range s, in dchar c) { return 1; } int indexOf14735a(T, size_t n)(ref T[n] s, in dchar c) { return 2; } int indexOf14735b(Range )(Range s, in dchar c, in CS14735 cs = CS14735.yes) { return 1; } int indexOf14735b(T, size_t n)(ref T[n] s, in dchar c, in CS14735 cs = CS14735.yes) { return 2; } void test14735() { char[64] buf; // Supported from 2.063: (http://dlang.org/changelog#implicitarraycast) assert(indexOf14735a(buf[0..32], '\0') == 2); assert(indexOf14735b(buf[0..32], '\0') == 2); // Have to work as same as above. assert(indexOf14735a(buf[], '\0') == 2); assert(indexOf14735b(buf[], '\0') == 2); } /******************************************/ // 14743 class A14743 { auto func1 = (A14743 a) { a.func2!int(); }; auto func2(T)() {} } /******************************************/ // 14802 void test14802() { auto func(T)(T x, T y) { return x; } struct S1 { double x; alias x this; } struct S2 { double x; alias x this; } S1 s1; S2 s2; enum E1 : double { a = 1.0 } enum E2 : double { a = 1.0 } static assert(is(typeof( func(1 , 1 ) ) == int)); static assert(is(typeof( func(1u, 1u) ) == uint)); static assert(is(typeof( func(1u, 1 ) ) == uint)); static assert(is(typeof( func(1 , 1u) ) == uint)); static assert(is(typeof( func(1.0f, 1.0f) ) == float)); static assert(is(typeof( func(1.0 , 1.0 ) ) == double)); static assert(is(typeof( func(1.0 , 1.0f) ) == double)); static assert(is(typeof( func(1.0f, 1.0 ) ) == double)); static assert(is(typeof( func(s1, s1) ) == S1)); static assert(is(typeof( func(s2, s2) ) == S2)); static assert(is(typeof( func(s1, s2) ) == double)); static assert(is(typeof( func(s2, s1) ) == double)); static assert(is(typeof( func(E1.a, E1.a) ) == E1)); static assert(is(typeof( func(E2.a, E2.a) ) == E2)); static assert(is(typeof( func(E1.a, 1.0) ) == double)); static assert(is(typeof( func(E2.a, 1.0) ) == double)); static assert(is(typeof( func(1.0, E1.a) ) == double)); static assert(is(typeof( func(1.0, E2.a) ) == double)); static assert(is(typeof( func(E1.a, E2.a) ) == double)); static assert(is(typeof( func(E2.a, E1.a) ) == double)); } /******************************************/ // 14886 void test14886() { alias R = int[100_000]; auto front(T)(T[] a) {} front(R.init); auto bar1(T)(T, T[] a) { return T.init; } auto bar2(T)(T[] a, T) { return T.init; } static assert(is(typeof(bar1(1L, R.init)) == long)); static assert(is(typeof(bar2(R.init, 1L)) == long)); // <-- T should be deduced to int because R.init is rvalue...? ubyte x; static assert(is(typeof(bar1(x, R.init)) == int)); static assert(is(typeof(bar2(R.init, x)) == int)); } /******************************************/ // 15156 // 15156 auto f15116a(T)(string s, string arg2) { return 1; } auto f15116b(T)(int i, string arg2) { return 2; } template bish15116(T) { alias bish15116 = f15116a!T; alias bish15116 = f15116b!T; } void test15116() { alias func = bish15116!string; assert(func("", "") == 1); assert(func(12, "") == 2); } /******************************************/ // 15152 void test15152() { void func(string M)() { } struct S { enum name = "a"; } enum s = S.init; func!(s.name); } /******************************************/ // 15352 struct S15352(T, T delegate(uint idx) supplier) { } auto make15352a(T, T delegate(uint idx) supplier)() { enum local = supplier; // OK S15352!(T, local) ret; return ret; } auto make15352b(T, T delegate(uint idx) supplier)() { S15352!(T, supplier) ret; // OK <- Error return ret; } void test15352() { enum dg = delegate(uint idx) => idx; auto s1 = S15352!(uint, dg)(); auto s2 = make15352a!(uint, dg)(); auto s3 = make15352b!(uint, dg)(); assert(is(typeof(s1) == typeof(s2))); assert(is(typeof(s1) == typeof(s3))); } /******************************************/ int main() { test1(); test2(); test3(); test4(); test5(); test6(); test7(); test8(); test9(); test1780(); test3608(); test5893(); test6404(); test2246(); test2296(); bug4984(); test2579(); test2803(); test6613(); test5886(); test5393(); test5896(); test6825(); test6789(); test2778(); test2778aa(); test2778get(); test6208a(); test6208b(); test6208c(); test6738(); test6780(); test6810(); test6891(); test6994(); test6764(); test3467(); test4413(); test5525(); test5801(); test10(); test7037(); test7124(); test7359(); test7416(); test7563(); test7572(); test7580(); test7585(); test7671(); test7672(); test7684(); test11a(); test11b(); test7769(); test7873(); test7933(); test8094(); test12(); test8125(); test13(); test14(); test8129(); test8238(); test8669(); test8833(); test8976(); test8940(); test9022(); test9026(); test9038(); test9076(); test9100(); test9124a(); test9124b(); test9143(); test9266(); test9536(); test9578(); test9596(); test9837(); test9874(); test9885(); test9971(); test9977(); test10083(); test10592(); test11242(); test10811(); test10969(); test11271(); test11533(); test11818(); test11843(); test11872(); test12122(); test12207(); test12376(); test13235(); test13294(); test13299(); test13374(); test13378(); test13379(); test13484(); test13694(); test14836(); test14735(); test14802(); test15116(); printf("Success\n"); return 0; }
D
instance SPELLFX_SLEEPER_FIREBALL(CFX_BASE_PROTO) { visname_s = "MFX_Fireball_INIT"; emtrjmode_s = "FIXED"; emtrjoriginnode = "BIP01 JAWS"; emtrjtargetnode = "BIP01 FIRE"; emtrjloopmode_s = "NONE"; emtrjeasefunc_s = "LINEAR"; emactioncollstat_s = "COLLIDE CREATEONCE CREATEQUAD"; emactioncolldyn_s = "COLLIDE CREATEONCE"; emfxcollstat_s = "spellFX_Fireball_COLLIDE"; emfxcolldyn_s = "spellFX_Fireball_SENDPERCEPTION"; emfxcollstatalign_s = "COLLISIONNORMAL"; emfxcreatedowntrj = 0; emtrjtargetrange = 20; emtrjtargetelev = 0; emtrjdynupdatedelay = 20000; userstring[0] = "fireballquadmark.tga"; userstring[1] = "100 100"; userstring[2] = "MUL"; lightpresetname = "FIRESMALL"; }; instance SPELLFX_SLEEPER_FIREBALL_KEY_OPEN(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_SLEEPER_FIREBALL_KEY_INIT(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_INIT"; lightrange = 0.01; }; instance SPELLFX_SLEEPER_FIREBALL_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_INVEST"; emcreatefxid = "spellFX_Fireball_InVEST_BLAST1"; lightrange = 150; sfxid = "MFX_Fireball_invest1"; sfxisambient = 1; }; instance SPELLFX_SLEEPER_FIREBALL_KEY_INVEST_2(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_INVEST_L2"; emcreatefxid = "spellFX_Fireball_InVEST_BLAST2"; sfxid = "MFX_Fireball_invest2"; sfxisambient = 1; }; instance SPELLFX_SLEEPER_FIREBALL_KEY_INVEST_3(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_INVEST_L3"; emcreatefxid = "spellFX_Fireball_InVEST_BLAST3"; sfxid = "MFX_Fireball_invest3"; sfxisambient = 1; }; instance SPELLFX_SLEEPER_FIREBALL_KEY_INVEST_4(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_INVEST_L4"; emcreatefxid = "spellFX_Fireball_InVEST_BLAST4"; sfxid = "MFX_Fireball_invest4"; sfxisambient = 1; }; instance SPELLFX_SLEEPER_FIREBALL_KEY_CAST(C_PARTICLEFXEMITKEY) { lightrange = 200; visname_s = "MFX_Fireball_CAST"; emtrjmode_s = "TARGET"; emtrjeasevel = 1400; sfxid = "MFX_Fireball_Cast"; sfxisambient = 1; emcheckcollision = 1; }; instance SPELLFX_SLEEPER_FIREBALL_KEY_COLLIDE(C_PARTICLEFXEMITKEY) { pfx_flygravity_s = "0 0.0002 0"; emtrjeasevel = 1e-006; }; instance SPELLFX_LIGHT(CFX_BASE_PROTO) { visname_s = "MFX_Light_INIT"; visalpha = 1; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emfxcreate_s = "spellFX_Light_ACTIVE"; emfxcreatedowntrj = 1; }; instance SPELLFX_LIGHT_KEY_CAST(C_PARTICLEFXEMITKEY) { pfx_ppsisloopingchg = 1; }; instance SPELLFX_LIGHT_ACTIVE(CFX_BASE_PROTO) { visname_s = ""; visalpha = 1; emtrjmode_s = "FOLLOW TARGET"; emtrjeasevel = 0; emtrjoriginnode = "BIP01 Head"; emtrjloopmode_s = "HALT"; emtrjeasefunc_s = "LINEAR"; emtrjdynupdatedelay = 0.4; emtrjtargetrange = 1.2; emtrjtargetelev = 89; lightpresetname = "JUSTWHITE"; }; instance SPELLFX_LIGHT_ACTIVE_KEY_OPEN(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_LIGHT_ACTIVE_KEY_INIT(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_LIGHT_ACTIVE_KEY_CAST(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Light_ORIGIN"; lightrange = 1000; sfxid = "MFX_Light_CAST"; sfxisambient = 1; emtrjeasevel = 1400; }; instance SPELLFX_FIREBOLT(CFX_BASE_PROTO) { visname_s = "MFX_Firebolt_INIT"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjloopmode_s = "NONE"; emtrjeasefunc_s = "LINEAR"; emactioncollstat_s = "COLLIDE CREATE CREATEQUAD"; emactioncolldyn_s = "COLLIDE CREATEONCE"; emfxcollstat_s = "spellFX_Firebolt_COLLIDEFX"; emfxcolldyn_s = "spellFX_Firebolt_SENDPERCEPTION"; emtrjtargetrange = 20; emtrjtargetelev = 0; emtrjdynupdatedelay = 20000; lightpresetname = "FIRESMALL"; userstring[0] = "fireballquadmark.tga"; userstring[1] = "40 40"; userstring[2] = "MUL"; }; instance SPELLFX_FIREBOLT_KEY_OPEN(C_PARTICLEFXEMITKEY) { lightrange = 0.001; }; instance SPELLFX_FIREBOLT_KEY_INIT(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Firebolt_INIT"; lightrange = 0.001; }; instance SPELLFX_FIREBOLT_KEY_CAST(C_PARTICLEFXEMITKEY) { visname_s = "mfx_firebolt_cast"; emtrjmode_s = "TARGET"; emtrjeasevel = 1400; sfxid = "Torch_Enlight"; lightrange = 200; emcheckcollision = 1; }; instance SPELLFX_FIREBOLT_KEY_COLLIDE(C_PARTICLEFXEMITKEY) { visname_s = ""; pfx_flygravity_s = "0 0.0002 0"; emtrjeasevel = 1e-006; sfxid = "TORCH_ENLIGHT"; }; instance SPELLFX_FIREBOLT_COLLIDEFX(CFX_BASE_PROTO) { visname_s = "MFX_Firebolt_Collide"; visalpha = 1; emtrjmode_s = "FIXED"; lightpresetname = "FIRESMALL"; }; instance SPELLFX_FIREBOLT_SENDPERCEPTION(CFX_BASE_PROTO) { visname_s = "MFX_Firebolt_Collide"; visalpha = 1; emtrjmode_s = "FIXED"; lightpresetname = "FIRESMALL"; sendassessmagic = 1; }; instance SPELLFX_FIREBALL(CFX_BASE_PROTO) { visname_s = "MFX_Fireball_INIT"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjtargetnode = "BIP01 FIRE"; emtrjloopmode_s = "NONE"; emtrjeasefunc_s = "LINEAR"; emactioncollstat_s = "COLLIDE CREATEONCE CREATEQUAD"; emactioncolldyn_s = "COLLIDE CREATEONCE"; emfxcollstat_s = "spellFX_Fireball_COLLIDE"; emfxcolldyn_s = "spellFX_Fireball_SENDPERCEPTION"; emfxcollstatalign_s = "COLLISIONNORMAL"; emfxcreatedowntrj = 0; emtrjtargetrange = 20; emtrjtargetelev = 0; emtrjdynupdatedelay = 20000; userstring[0] = "fireballquadmark.tga"; userstring[1] = "100 100"; userstring[2] = "MUL"; lightpresetname = "FIRESMALL"; }; instance SPELLFX_FIREBALL_KEY_OPEN(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_FIREBALL_KEY_INIT(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_INIT"; lightrange = 0.01; }; instance SPELLFX_FIREBALL_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_INVEST"; emcreatefxid = "spellFX_Fireball_InVEST_BLAST1"; lightrange = 150; sfxid = "MFX_Fireball_invest1"; sfxisambient = 1; }; instance SPELLFX_FIREBALL_KEY_INVEST_2(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_INVEST_L2"; emcreatefxid = "spellFX_Fireball_InVEST_BLAST2"; sfxid = "MFX_Fireball_invest2"; sfxisambient = 1; }; instance SPELLFX_FIREBALL_KEY_INVEST_3(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_INVEST_L3"; emcreatefxid = "spellFX_Fireball_InVEST_BLAST3"; sfxid = "MFX_Fireball_invest3"; sfxisambient = 1; }; instance SPELLFX_FIREBALL_KEY_INVEST_4(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_INVEST_L4"; emcreatefxid = "spellFX_Fireball_InVEST_BLAST4"; sfxid = "MFX_Fireball_invest4"; sfxisambient = 1; }; instance SPELLFX_FIREBALL_KEY_CAST(C_PARTICLEFXEMITKEY) { lightrange = 200; visname_s = "MFX_Fireball_CAST"; emtrjmode_s = "TARGET"; emtrjeasevel = 1400; sfxid = "MFX_Fireball_Cast"; sfxisambient = 1; emcheckcollision = 1; }; instance SPELLFX_FIREBALL_KEY_COLLIDE(C_PARTICLEFXEMITKEY) { pfx_flygravity_s = "0 0.0002 0"; emtrjeasevel = 1e-006; }; instance SPELLFX_FIREBALL_INVEST_BLAST1(CFX_BASE_PROTO) { visname_s = "MFX_Fireball_INVEST_BLAST"; visalpha = 1; emtrjmode_s = "FIXED"; sfxid = "MFX_Fireball_invest1"; sfxisambient = 1; visalpha = 0.3; }; instance SPELLFX_FIREBALL_INVEST_BLAST2(CFX_BASE_PROTO) { visname_s = "MFX_Fireball_INVEST_BLAST"; visalpha = 1; emtrjmode_s = "FIXED"; sfxid = "MFX_Fireball_invest2"; sfxisambient = 1; visalpha = 0.5; }; instance SPELLFX_FIREBALL_INVEST_BLAST3(CFX_BASE_PROTO) { visname_s = "MFX_Fireball_INVEST_BLAST"; visalpha = 1; emtrjmode_s = "FIXED"; sfxid = "MFX_Fireball_invest3"; sfxisambient = 1; visalpha = 0.8; }; instance SPELLFX_FIREBALL_INVEST_BLAST4(CFX_BASE_PROTO) { visname_s = "MFX_Fireball_INVEST_BLAST"; visalpha = 1; emtrjmode_s = "FIXED"; sfxid = "MFX_Fireball_invest4"; sfxisambient = 1; visalpha = 1; }; instance SPELLFX_FIREBALL_COLLIDE(CFX_BASE_PROTO) { visname_s = "MFX_Fireball_Collide1"; visalpha = 1; emtrjmode_s = "FIXED"; emtrjoriginnode = "BIP01"; lightpresetname = "FIRESMALL"; }; instance SPELLFX_FIREBALL_COLLIDE_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_Collide1"; sfxid = "MFX_Fireball_Collide1"; }; instance SPELLFX_FIREBALL_COLLIDE_KEY_INVEST_2(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_Collide2"; sfxid = "MFX_Fireball_Collide2"; }; instance SPELLFX_FIREBALL_COLLIDE_KEY_INVEST_3(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_Collide3"; sfxid = "MFX_Fireball_Collide3"; }; instance SPELLFX_FIREBALL_COLLIDE_KEY_INVEST_4(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_Collide4"; sfxid = "MFX_Fireball_Collide4"; }; instance SPELLFX_FIREBALL_SENDPERCEPTION(CFX_BASE_PROTO) { visname_s = "MFX_Fireball_Collide1"; visalpha = 1; emtrjoriginnode = "BIP01"; emtrjmode_s = "FIXED"; lightpresetname = "FIRESMALL"; sendassessmagic = 1; }; instance SPELLFX_FIREBALL_SENDPERCEPTION_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_Collide1"; sfxid = "MFX_Fireball_Collide1"; }; instance SPELLFX_FIREBALL_SENDPERCEPTION_KEY_INVEST_2(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_Collide2"; sfxid = "MFX_Fireball_Collide2"; }; instance SPELLFX_FIREBALL_SENDPERCEPTION_KEY_INVEST_3(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_Collide3"; sfxid = "MFX_Fireball_Collide3"; }; instance SPELLFX_FIREBALL_SENDPERCEPTION_KEY_INVEST_4(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Fireball_Collide4"; sfxid = "MFX_Fireball_Collide4"; }; instance SPELLFX_FIRESTORM(CFX_BASE_PROTO) { visname_s = "MFX_Firestorm_INIT"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjtargetnode = "BIP01 FIRE"; emtrjloopmode_s = "NONE"; emtrjeasefunc_s = "LINEAR"; emactioncollstat_s = "COLLIDE CREATEONCE CREATEQUAD"; emactioncolldyn_s = "COLLIDE CREATEONCE"; emfxcollstat_s = "spellFX_Firestorm_SPREAD"; emfxcolldyn_s = "spellFX_Firestorm_SPREAD"; emtrjtargetrange = 20; emtrjtargetelev = 0; emtrjdynupdatedelay = 20000; emfxinvestorigin_s = "spellFX_Firestorm_INVESTSOUND"; userstring[0] = "fireballquadmark.tga"; userstring[1] = "100 100"; userstring[2] = "MUL"; lightpresetname = "FIRESMALL"; }; instance SPELLFX_FIRESTORM_KEY_OPEN(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_FIRESTORM_KEY_INIT(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Firestorm_INIT"; lightrange = 0.01; }; instance SPELLFX_FIRESTORM_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { lightrange = 100; emcreatefxid = "spellFX_Firestorm_INVESTBLAST1"; }; instance SPELLFX_FIRESTORM_KEY_INVEST_2(C_PARTICLEFXEMITKEY) { lightrange = 200; emcreatefxid = "spellFX_Firestorm_INVESTBLAST2"; }; instance SPELLFX_FIRESTORM_KEY_INVEST_3(C_PARTICLEFXEMITKEY) { lightrange = 300; emcreatefxid = "spellFX_Firestorm_INVESTBLAST3"; }; instance SPELLFX_FIRESTORM_KEY_INVEST_4(C_PARTICLEFXEMITKEY) { lightrange = 400; emcreatefxid = "spellFX_Firestorm_INVESTBLAST4"; }; instance SPELLFX_FIRESTORM_KEY_CAST(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Firestorm_CAST"; emtrjmode_s = "TARGET"; emtrjeasevel = 1400; sfxid = "MFX_Firestorm_Cast"; sfxisambient = 1; emcheckcollision = 1; lightrange = 200; }; instance SPELLFX_FIRESTORM_KEY_COLLIDE(C_PARTICLEFXEMITKEY) { pfx_flygravity_s = "0 0.0002 0"; emtrjeasevel = 1e-006; }; instance SPELLFX_FIRESTORM_INVESTSOUND(CFX_BASE_PROTO) { visname_s = "simpleglow.tga"; visalpha = 0.01; sfxid = "MFX_Firestorm_Invest"; sfxisambient = 1; }; instance SPELLFX_FIRESTORM_INVESTBLAST1(CFX_BASE_PROTO) { visname_s = "MFX_Firestorm_INVESTBLAST1"; emtrjmode_s = "FIXED"; sfxid = "MFX_Fireball_invest1"; sfxisambient = 1; }; instance SPELLFX_FIRESTORM_INVESTBLAST2(CFX_BASE_PROTO) { visname_s = "MFX_Firestorm_INVESTBLAST2"; emtrjmode_s = "FIXED"; sfxid = "MFX_Fireball_invest2"; sfxisambient = 1; }; instance SPELLFX_FIRESTORM_INVESTBLAST3(CFX_BASE_PROTO) { visname_s = "MFX_Firestorm_INVESTBLAST3"; emtrjmode_s = "FIXED"; sfxid = "MFX_Fireball_invest3"; sfxisambient = 1; }; instance SPELLFX_FIRESTORM_INVESTBLAST4(CFX_BASE_PROTO) { visname_s = "MFX_Firestorm_INVESTBLAST4"; emtrjmode_s = "FIXED"; sfxid = "MFX_Fireball_invest4"; sfxisambient = 1; }; instance SPELLFX_FIRESTORM_SPREAD(CFX_BASE_PROTO) { visname_s = "MFX_Firestorm_SPREAD"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjtargetnode = "BIP01 FIRE"; emtrjloopmode_s = "NONE"; emtrjeasefunc_s = "LINEAR"; emactioncollstat_s = "CREATE CREATEQUAD"; emactioncolldyn_s = "CREATEONCE"; emtrjtargetrange = 20; emtrjtargetelev = 0; emtrjdynupdatedelay = 20000; emcheckcollision = 1; userstring[0] = "fireballquadmark.tga"; userstring[1] = "40 40"; userstring[2] = "MUL"; lightpresetname = "FIRESMALL"; emfxcreate_s = "spellFX_Firestorm_COLLIDE"; sfxid = "MFX_FIrestorm_Collide"; sfxisambient = 1; }; instance SPELLFX_FIRESTORM_COLLIDE(CFX_BASE_PROTO) { visname_s = "MFX_Fireball_Collide3"; visalpha = 1; emtrjmode_s = "FIXED"; lightpresetname = "FIRESMALL"; sfxid = "MFX_Fireball_Collide3"; }; instance SPELLFX_FIRERAIN(CFX_BASE_PROTO) { visname_s = "MFX_Firerain_INIT"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjloopmode_s = "NONE"; emfxinvestorigin_s = "spellFX_FireRAin_INVESTGLOW"; }; instance SPELLFX_FIRERAIN_KEY_CAST(C_PARTICLEFXEMITKEY) { emcreatefxid = "spellFX_FireRain_RAIN"; pfx_ppsisloopingchg = 1; }; instance SPELLFX_FIRERAIN_RAIN(CFX_BASE_PROTO) { visname_s = "MFX_FireRain_Rain"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emactioncolldyn_s = "CREATEONCE"; emfxcolldynalign_s = "COLLISIONNORMAL"; emcheckcollision = 1; lightpresetname = "CATACLYSM"; sfxid = "MFX_Firerain_rain"; sfxisambient = 1; }; instance SPELLFX_FIRERAIN_SUB(CFX_BASE_PROTO) { visname_s = ""; emtrjmode_s = "FIXED"; emtrjoriginnode = "BIP01 HEAD"; }; instance SPELLFX_FIRERAIN_INVESTGLOW(CFX_BASE_PROTO) { visname_s = "MFX_FireRain_INVESTGLOW"; emtrjoriginnode = "BIP01"; emfxcreatedowntrj = 1; emtrjmode_s = "FIXED"; lightpresetname = "REDAMBIENCE"; sfxid = "MFX_Firerain_INVEST"; sfxisambient = 1; emfxcreate_s = "FX_EarthQuake"; }; instance SPELLFX_SPEED(CFX_BASE_PROTO) { visname_s = "MFX_Heal_INIT"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emfxinvestorigin_s = "spellFX_Speed_ORIGIN"; }; instance SPELLFX_SPEED_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { emcreatefxid = "spellFX_Speed_START"; }; instance SPELLFX_SPEED_KEY_CAST(C_PARTICLEFXEMITKEY) { pfx_ppsisloopingchg = 1; }; instance SPELLFX_SPEED_START(CFX_BASE_PROTO) { visname_s = "MFX_Heal_Start"; sfxid = "MFX_Heal_CAST"; sfxisambient = 1; emtrjmode_s = "FIXED"; emtrjoriginnode = "BIP01 R FOOT"; }; instance SPELLFX_SPEED_ORIGIN(CFX_BASE_PROTO) { visname_s = "MFX_Heal_Invest"; visalpha = 1; lightpresetname = "AURA"; emtrjmode_s = "FIXED"; }; instance SPELLFX_TELEPORT(CFX_BASE_PROTO) { visname_s = "MFX_Teleport_INIT"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emfxinvestorigin_s = "spellFX_Teleport_ORIGIN"; lightpresetname = "AURA"; }; instance SPELLFX_TELEPORT_KEY_OPEN(C_PARTICLEFXEMITKEY) { lightrange = 0.1; }; instance SPELLFX_TELEPORT_KEY_INIT(C_PARTICLEFXEMITKEY) { lightrange = 0.1; }; instance SPELLFX_TELEPORT_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { lightrange = 200; }; instance SPELLFX_TELEPORT_KEY_CAST(C_PARTICLEFXEMITKEY) { emcreatefxid = "spellFX_Teleport_CAST"; pfx_ppsisloopingchg = 1; lightrange = 500; }; instance SPELLFX_TELEPORT_ORIGIN(CFX_BASE_PROTO) { visname_s = "MFX_TELEPORT_INVEST"; emtrjmode_s = "FIXED"; emtrjoriginnode = "BIP01"; emfxcreate_s = "spellFX_Teleport_Ring"; sfxid = "MFX_teleport_invest"; sfxisambient = 1; }; instance SPELLFX_TELEPORT_RING(CFX_BASE_PROTO) { visname_s = "MFX_TELEPORT_RING"; emtrjmode_s = "FIXED"; emtrjoriginnode = "BIP01"; }; instance SPELLFX_TELEPORT_CAST(CFX_BASE_PROTO) { visname_s = "MFX_TELEPORT_CAST"; emtrjmode_s = "FIXED"; emtrjoriginnode = "BIP01"; sfxid = "MFX_teleport_Cast"; sfxisambient = 1; emtrjmode_s = "FIXED"; }; instance SPELLFX_HEAL(CFX_BASE_PROTO) { visname_s = "MFX_Heal_INIT"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emfxinvestorigin_s = "spellFX_Heal_ORIGIN"; }; instance SPELLFX_HEAL_KEY_CAST(C_PARTICLEFXEMITKEY) { pfx_ppsisloopingchg = 1; }; instance SPELLFX_HEAL_START(CFX_BASE_PROTO) { visname_s = "MFX_Heal_Start"; sfxid = "MFX_Heal_CAST"; sfxisambient = 1; emtrjmode_s = "FIXED"; emtrjoriginnode = "BIP01 R FOOT"; }; instance SPELLFX_HEAL_ORIGIN(CFX_BASE_PROTO) { visname_s = "MFX_Heal_Invest"; emtrjoriginnode = "BIP01"; visalpha = 1; emfxcreate_s = "spellFX_Heal_START"; emtrjmode_s = "FIXED"; lightpresetname = "AURA"; }; instance SPELLFX_TRANSFORM(CFX_BASE_PROTO) { visname_s = "MFX_Transform_INIT"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjmode_s = "fixed"; emtrjloopmode_s = "NONE"; emtrjeasefunc_s = "LINEAR"; emtrjdynupdatedelay = 5000; }; instance SPELLFX_TRANSFORM_KEY_OPEN(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Transform_INIT"; }; instance SPELLFX_TRANSFORM_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Transform_ORIGIN"; emcreatefxid = "spellFX_Transform_GLOW_SFX"; }; instance SPELLFX_TRANSFORM_KEY_CAST(C_PARTICLEFXEMITKEY) { pfx_ppsisloopingchg = 1; emcreatefxid = "spellFX_Transform_BLEND"; }; instance SPELLFX_TRANSFORM_GLOW_SFX(CFX_BASE_PROTO) { visname_s = "MFX_Transform_GLOW"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjdynupdatedelay = 0; sfxid = "MFX_Transform_invest"; sfxisambient = 1; }; instance SPELLFX_TRANSFORM_GLOW(CFX_BASE_PROTO) { visname_s = "MFX_Transform_GLOW"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjdynupdatedelay = 0; }; instance SPELLFX_TRANSFORM_BLEND(CFX_BASE_PROTO) { visname_s = "MFX_Transform_BLEND"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjdynupdatedelay = 0; sfxid = "MFX_Transform_Cast"; sfxisambient = 1; }; instance SPELLFX_LIGHTNING(CFX_BASE_PROTO) { visname_s = "MFX_Lightning_Origin"; vissize_s = "40 40"; visalphablendfunc_s = "ADD"; vistexanifps = 17; vistexaniislooping = 1; emtrjmode_s = "FIXED"; emtrjnumkeys = 4; emtrjnumkeysvar = 1; emtrjangleelevvar = 20; emtrjangleheadvar = 20; emtrjloopmode_s = "PINGPONG"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjeasefunc_s = "LINEAR"; emtrjdynupdatedelay = 0.3; emselfrotvel_s = "0 0 50"; emtrjtargetrange = 20; emtrjtargetelev = 0; }; instance SPELLFX_LIGHTNING_KEY_INIT(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Lightning_Origin"; }; instance SPELLFX_LIGHTNING_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { visname_s = "Lightning_Single.ltn"; emtrjmode_s = "TARGET LINE RANDOM"; emtrjeasevel = 3000; }; instance SPELLFX_LIGHTNING_KEY_CAST(C_PARTICLEFXEMITKEY) { }; instance SPELLFX_CHAINLIGHTNING(CFX_BASE_PROTO) { visname_s = "lightning_big_a0.tga"; vissize_s = "3 3"; visalphablendfunc_s = "ADD"; vistexanifps = 17; vistexaniislooping = 1; emfxcreate_s = "spellFX_ChainLightning_Origin"; emtrjmode_s = "FIXED"; emtrjnumkeys = 12; emtrjnumkeysvar = 3; emtrjangleelevvar = 20; emtrjangleheadvar = 20; emtrjloopmode_s = "none"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjeasefunc_s = "LINEAR"; emtrjdynupdatedelay = 200000; emselfrotvel_s = "0 0 50"; emtrjtargetrange = 20; emtrjtargetelev = 0; }; instance SPELLFX_CHAINLIGHTNING_ORIGIN(CFX_BASE_PROTO) { visname_s = "MFX_Lightning_Origin"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; lightpresetname = "AURA"; }; instance SPELLFX_CHAINLIGHTNING_ORIGIN_KEY_OPEN(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_CHAINLIGHTNING_ORIGIN_KEY_INIT(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_CHAINLIGHTNING_ORIGIN_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { sfxid = "MFX_Lightning_Origin"; lightrange = 200; }; instance SPELLFX_THUNDERBOLT(CFX_BASE_PROTO) { visname_s = "MFX_Thunderebolt_INIT"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjtargetnode = "BIP01 FIRE"; emtrjloopmode_s = "NONE"; emtrjeasefunc_s = "LINEAR"; emactioncollstat_s = "COLLIDE CREATE"; emactioncolldyn_s = "COLLIDE CREATEONCE"; emfxcollstat_s = "spellFX_Thunderbolt_COLLIDE"; emfxcolldyn_s = "spellFX_Thunderbolt_SENDPERCEPTION"; emtrjtargetrange = 20; emtrjtargetelev = 0; emtrjdynupdatedelay = 20000; }; instance SPELLFX_THUNDERBOLT_KEY_INIT(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Thunderbolt_INIT"; scaleduration = 0.5; }; instance SPELLFX_THUNDERBOLT_KEY_CAST(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Thunderbolt_CAST"; emtrjmode_s = "TARGET"; emtrjeasevel = 1400; sfxid = "MFX_Thunderbolt_Cast"; emcheckcollision = 1; }; instance SPELLFX_THUNDERBOLT_KEY_COLLIDE(C_PARTICLEFXEMITKEY) { pfx_flygravity_s = "0 0.0002 0"; emtrjeasevel = 1e-006; emcheckcollision = 0; }; instance SPELLFX_THUNDERBOLT_COLLIDE(CFX_BASE_PROTO) { visname_s = "MFX_Thunderbolt_Collide"; visalpha = 1; emtrjmode_s = "FIXED"; sfxid = "Torch_Enlight"; }; instance SPELLFX_THUNDERBOLT_SENDPERCEPTION(CFX_BASE_PROTO) { visname_s = "MFX_Thunderbolt_Collide"; visalpha = 1; emtrjmode_s = "FIXED"; sfxid = "Torch_Enlight"; sendassessmagic = 1; }; instance SPELLFX_THUNDERBALL(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_INIT"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjtargetnode = "BIP01 FIRE"; emtrjloopmode_s = "NONE"; emtrjeasefunc_s = "LINEAR"; emactioncollstat_s = "COLLIDE CREATEONCE CREATEQUAD"; emactioncolldyn_s = "COLLIDE CREATEONCE"; emfxcollstat_s = "spellFX_Thunderball_COLLIDE"; emfxcolldyn_s = "spellFX_Thunderspell_TARGET"; emfxcollstatalign_s = "COLLISIONNORMAL"; emtrjtargetrange = 20; emtrjtargetelev = 0; emtrjdynupdatedelay = 20000; userstring[0] = "fireballquadmark.tga"; userstring[1] = "100 100"; userstring[2] = "MUL"; lightpresetname = "AURA"; }; instance SPELLFX_THUNDERBALL_KEY_OPEN(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Thunderball_INIT"; lightrange = 0.01; }; instance SPELLFX_THUNDERBALL_KEY_INIT(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Thunderball_INIT"; lightrange = 0.01; }; instance SPELLFX_THUNDERBALL_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Thunderball_INVEST"; emcreatefxid = "spellFX_Thunderball_InVEST_BLAST1"; lightrange = 50; sfxid = "MFX_Thunderball_invest1"; sfxisambient = 1; }; instance SPELLFX_THUNDERBALL_KEY_INVEST_2(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Thunderball_INVEST_L2"; emcreatefxid = "spellFX_Thunderball_InVEST_BLAST2"; sfxid = "MFX_Thunderball_invest2"; sfxisambient = 1; }; instance SPELLFX_THUNDERBALL_KEY_INVEST_3(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Thunderball_INVEST_L3"; emcreatefxid = "spellFX_Thunderball_InVEST_BLAST3"; sfxid = "MFX_Thunderball_invest3"; sfxisambient = 1; }; instance SPELLFX_THUNDERBALL_KEY_INVEST_4(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Thunderball_INVEST_L4"; emcreatefxid = "spellFX_Thunderball_InVEST_BLAST4"; sfxid = "MFX_Thunderball_invest4"; sfxisambient = 1; }; instance SPELLFX_THUNDERBALL_KEY_CAST(C_PARTICLEFXEMITKEY) { lightrange = 200; visname_s = "MFX_Thunderball_CAST"; emtrjmode_s = "TARGET"; emtrjeasevel = 1400; sfxid = "MFX_Thunderball_Cast"; sfxisambient = 1; emcheckcollision = 1; }; instance SPELLFX_THUNDERBALL_KEY_COLLIDE(C_PARTICLEFXEMITKEY) { pfx_flygravity_s = "0 0.0002 0"; emtrjeasevel = 1e-006; }; instance SPELLFX_THUNDERBALL_INVEST_BLAST1(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_INVEST_BLAST"; visalpha = 1; emtrjmode_s = "FIXED"; sfxid = "MFX_Thunderball_invest1"; sfxisambient = 1; visalpha = 0.3; }; instance SPELLFX_THUNDERBALL_INVEST_BLAST2(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_INVEST_BLAST"; visalpha = 1; emtrjmode_s = "FIXED"; sfxid = "MFX_Thunderball_invest2"; sfxisambient = 1; visalpha = 0.5; }; instance SPELLFX_THUNDERBALL_INVEST_BLAST3(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_INVEST_BLAST"; visalpha = 1; emtrjmode_s = "FIXED"; sfxid = "MFX_Thunderball_invest3"; sfxisambient = 1; visalpha = 0.8; }; instance SPELLFX_THUNDERBALL_INVEST_BLAST4(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_INVEST_BLAST"; visalpha = 1; emtrjmode_s = "FIXED"; sfxid = "MFX_Thunderball_invest4"; sfxisambient = 1; visalpha = 1; }; instance SPELLFX_THUNDERBALL_COLLIDE(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_Collide1"; visalpha = 1; emtrjoriginnode = "BIP01"; emtrjmode_s = "FIXED"; lightpresetname = "FIRESMALL"; }; instance SPELLFX_THUNDERBALL_COLLIDE_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Thunderball_Collide1"; sfxid = "MFX_Thunderball_Collide1"; }; instance SPELLFX_THUNDERBALL_COLLIDE_KEY_INVEST_2(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Thunderball_Collide2"; sfxid = "MFX_Thunderball_Collide2"; }; instance SPELLFX_THUNDERBALL_COLLIDE_KEY_INVEST_3(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Thunderball_Collide3"; sfxid = "MFX_Thunderball_Collide3"; }; instance SPELLFX_THUNDERBALL_COLLIDE_KEY_INVEST_4(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Thunderball_Collide4"; sfxid = "MFX_Thunderball_Collide4"; }; instance SPELLFX_ICECUBE(CFX_BASE_PROTO) { visname_s = "MFX_Icecube_INIT"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjtargetnode = "BIP01 FIRE"; emtrjloopmode_s = "NONE"; emtrjeasefunc_s = "LINEAR"; emactioncollstat_s = "COLLIDE CREATEONCE"; emactioncolldyn_s = "COLLIDE CREATEONCE"; emfxcollstat_s = "spellFX_IceCube_COLLIDE"; emfxcolldyn_s = "spellFX_Icespell_TARGET"; emtrjtargetrange = 20; emtrjtargetelev = 0; emtrjdynupdatedelay = 20000; emfxinvestorigin_s = "spellFX_Icespell_Invest"; lightpresetname = "AURA"; }; instance SPELLFX_ICECUBE_KEY_OPEN(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_ICECUBE_KEY_INIT(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Icecube_INIT"; lightrange = 0.01; scaleduration = 0.5; }; instance SPELLFX_ICECUBE_KEY_CAST(C_PARTICLEFXEMITKEY) { visname_s = "MFX_ICECUBE_CAST"; emtrjmode_s = "TARGET"; emtrjeasevel = 1400; emcheckcollision = 1; sfxid = "MFX_Icecube_cast"; sfxisambient = 1; lightrange = 200; }; instance SPELLFX_ICECUBE_KEY_COLLIDE(C_PARTICLEFXEMITKEY) { emtrjeasevel = 1e-006; }; instance SPELLFX_ICECUBE_COLLIDE(CFX_BASE_PROTO) { visname_s = "MFX_ICESPELL_Collide"; visalpha = 1; emtrjmode_s = "FIXED"; sfxid = "MFX_ICECUBE_COLLIDE"; }; instance SPELLFX_ICESPELL_INVEST(CFX_BASE_PROTO) { visname_s = ""; emtrjmode_s = "FIXED"; sfxid = "MFX_ICECUBE_INVEST"; sfxisambient = 1; }; instance SPELLFX_ICEWAVE(CFX_BASE_PROTO) { visname_s = "MFX_IceCUBE_INIT"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjloopmode_s = "NONE"; emfxinvestorigin_s = "spellFX_Icespell_Invest"; }; instance SPELLFX_ICEWAVE_KEY_INIT(C_PARTICLEFXEMITKEY) { visname_s = "MFX_IceCUBE_INIT"; }; instance SPELLFX_ICEWAVE_KEY_CAST(C_PARTICLEFXEMITKEY) { emcreatefxid = "spellFX_Icewave_WAVE"; pfx_ppsisloopingchg = 1; sfxid = "MFX_Icewave_Cast"; sfxisambient = 1; }; instance SPELLFX_ICEWAVE_WAVE(CFX_BASE_PROTO) { visname_s = "MFX_Icewave_WAVE"; emtrjoriginnode = "ZS_RIGHTHAND"; emactioncolldyn_s = "CREATEONCE"; emfxcolldyn_s = "spellFX_IceSpell_TARGET"; emfxcolldynalign_s = "COLLISIONNORMAL"; emcheckcollision = 1; lightpresetname = "WHITEBLEND"; }; instance SPELLFX_ICEWAVE_WAVE_KEY_OPEN(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_ICEWAVE_WAVE_KEY_INIT(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_ICEWAVE_WAVE_KEY_CAST(C_PARTICLEFXEMITKEY) { lightrange = 200; }; instance SPELLFX_ICEWAVE_SUB(CFX_BASE_PROTO) { visname_s = ""; emtrjmode_s = "FIXED"; emtrjoriginnode = "BIP01 HEAD"; }; instance SPELLFX_DEMON(CFX_BASE_PROTO) { visname_s = "MFX_Summondemon_INIT"; visalpha = 1; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; lightpresetname = "REDAMBIENCE"; emfxinvestorigin_s = "spellFX_Demon_INVEST"; }; instance SPELLFX_DEMON_KEY_OPEN(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_DEMON_KEY_INIT(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_DEMON_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { lightrange = 400; }; instance SPELLFX_DEMON_KEY_INVEST_2(C_PARTICLEFXEMITKEY) { }; instance SPELLFX_DEMON_KEY_INVEST_3(C_PARTICLEFXEMITKEY) { emcreatefxid = "FX_EarthQuake"; }; instance SPELLFX_DEMON_KEY_CAST(C_PARTICLEFXEMITKEY) { pfx_ppsisloopingchg = 1; }; instance SPELLFX_DEMON_INVEST(CFX_BASE_PROTO) { visname_s = "MFX_SummonDemon_Invest"; emtrjoriginnode = "Bip01"; }; instance SPELLFX_SKELETON(CFX_BASE_PROTO) { visname_s = "MFX_Summondemon_INIT"; visalpha = 1; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; lightpresetname = "REDAMBIENCE"; emfxinvestorigin_s = "spellFX_Demon_INVEST"; }; instance SPELLFX_SKELETON_KEY_OPEN(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_SKELETON_KEY_INIT(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_SKELETON_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { lightrange = 400; }; instance SPELLFX_SKELETON_KEY_INVEST_2(C_PARTICLEFXEMITKEY) { }; instance SPELLFX_SKELETON_KEY_INVEST_3(C_PARTICLEFXEMITKEY) { emcreatefxid = "FX_EarthQuake"; }; instance SPELLFX_SKELETON_KEY_CAST(C_PARTICLEFXEMITKEY) { pfx_ppsisloopingchg = 1; lightrange = 200; }; instance SPELLFX_GOLEM(CFX_BASE_PROTO) { visname_s = "MFX_Summondemon_INIT"; visalpha = 1; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; lightpresetname = "REDAMBIENCE"; emfxinvestorigin_s = "spellFX_Demon_INVEST"; }; instance SPELLFX_GOLEM_KEY_OPEN(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_GOLEM_KEY_INIT(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_GOLEM_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { lightrange = 400; }; instance SPELLFX_GOLEM_KEY_INVEST_2(C_PARTICLEFXEMITKEY) { }; instance SPELLFX_GOLEM_KEY_INVEST_3(C_PARTICLEFXEMITKEY) { emcreatefxid = "FX_EarthQuake"; }; instance SPELLFX_GOLEM_KEY_CAST(C_PARTICLEFXEMITKEY) { pfx_ppsisloopingchg = 1; lightrange = 200; }; instance SPELLFX_ARMYOFDARKNESS(CFX_BASE_PROTO) { visname_s = "MFX_Summondemon_INIT"; visalpha = 1; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; lightpresetname = "REDAMBIENCE"; emfxinvestorigin_s = "spellFX_Demon_INVEST"; }; instance SPELLFX_ARMYOFDARKNESS_KEY_OPEN(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_ARMYOFDARKNESS_KEY_INIT(C_PARTICLEFXEMITKEY) { lightrange = 0.01; }; instance SPELLFX_ARMYOFDARKNESS_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { lightrange = 400; }; instance SPELLFX_ARMYOFDARKNESS_KEY_INVEST_2(C_PARTICLEFXEMITKEY) { }; instance SPELLFX_ARMYOFDARKNESS_KEY_INVEST_3(C_PARTICLEFXEMITKEY) { emcreatefxid = "FX_EarthQuake"; }; instance SPELLFX_ARMYOFDARKNESS_KEY_CAST(C_PARTICLEFXEMITKEY) { emcreatefxid = "spellFX_ArmyOfDarkness_ORIGIN"; pfx_ppsisloopingchg = 1; }; instance SPELLFX_MASSDEATH(CFX_BASE_PROTO) { visname_s = "MFX_MassDeath_INIT"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjloopmode_s = "NONE"; emfxinvestorigin_s = "spellFX_Massdeath_INITGLOW"; emfxcreatedowntrj = 0; }; instance SPELLFX_MASSDEATH_KEY_INIT(C_PARTICLEFXEMITKEY) { visname_s = "MFX_MassDeath_INIT"; }; instance SPELLFX_MASSDEATH_KEY_CAST(C_PARTICLEFXEMITKEY) { emcreatefxid = "spellFX_MassDeath_GROUND"; pfx_ppsisloopingchg = 1; }; instance SPELLFX_MASSDEATH_GROUND(CFX_BASE_PROTO) { visname_s = "MFX_MassDeath_CAST"; emtrjoriginnode = "BIP01 R Foot"; emactioncolldyn_s = "CREATEONCE"; emfxcolldyn_s = "spellFX_MassDeath_Target"; emfxcolldynalign_s = "COLLISIONNORMAL"; emcheckcollision = 1; lightpresetname = "REDAMBIENCE"; sfxid = "MFX_Massdeath_Cast"; sfxisambient = 1; }; instance SPELLFX_MASSDEATH_SUB(CFX_BASE_PROTO) { visname_s = ""; emtrjmode_s = "FIXED"; emtrjoriginnode = "BIP01 HEAD"; }; instance SPELLFX_MASSDEATH_TARGET(CFX_BASE_PROTO) { visname_s = "MFX_Massdeath_TARGET"; emtrjoriginnode = "BIP01"; emfxcreatedowntrj = 1; emtrjmode_s = "FIXED"; sfxid = "MFX_MassdeatH_Target"; sendassessmagic = 1; }; instance SPELLFX_MASSDEATH_INITGLOW(CFX_BASE_PROTO) { visname_s = "MFX_Massdeath_INIT_GLOW"; emtrjoriginnode = "ZS_RIGHTHAND"; emfxcreatedowntrj = 0; emtrjmode_s = "FIXED"; lightpresetname = "REDAMBIENCE"; }; instance SPELLFX_DESTROYUNDEAD(CFX_BASE_PROTO) { visname_s = "MFX_DestroyUndead_INIT"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjtargetnode = "BIP01 FIRE"; emtrjloopmode_s = "NONE"; emtrjeasefunc_s = "LINEAR"; emactioncollstat_s = "COLLIDE CREATE"; emactioncolldyn_s = "COLLIDE CREATEONCE"; emfxcollstat_s = "spellFX_Destroyundead_COLLIDE"; emfxcolldyn_s = "spellFX_Destroyundead_SENDPERCEPTION"; emtrjtargetrange = 20; emtrjtargetelev = 0; emtrjdynupdatedelay = 20000; }; instance SPELLFX_DESTROYUNDEAD_KEY_INIT(C_PARTICLEFXEMITKEY) { visname_s = "MFX_DestroyUndead_INIT"; }; instance SPELLFX_DESTROYUNDEAD_KEY_CAST(C_PARTICLEFXEMITKEY) { visname_s = "MFX_DestroyUndead_CAST"; emtrjmode_s = "TARGET"; emtrjeasevel = 800; sfxid = "MFX_DestroyUndead_Cast"; sfxisambient = 1; emcheckcollision = 1; }; instance SPELLFX_DESTROYUNDEAD_COLLIDE(CFX_BASE_PROTO) { emtrjoriginnode = "BIP01"; visname_s = "MFX_DESTROYUNDEAD_COLLIDE"; emtrjmode_s = "FIXED"; emtrjdynupdatedelay = 0; lightpresetname = "AURA"; sfxid = "MFX_DESTROYUNDEAD_COLLIDE"; sfxisambient = 1; }; instance SPELLFX_DESTROYUNDEAD_SENDPERCEPTION(CFX_BASE_PROTO) { emtrjoriginnode = "BIP01"; visname_s = "MFX_DESTROYUNDEAD_COLLIDE"; emtrjmode_s = "FIXED"; emtrjdynupdatedelay = 0; lightpresetname = "AURA"; sendassessmagic = 1; sfxid = "MFX_DESTROYUNDEAD_COLLIDE"; sfxisambient = 1; }; instance SPELLFX_WINDFIST(CFX_BASE_PROTO) { visname_s = "MFX_WINDFIST_INIT"; vissize_s = "1 1"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjnumkeys = 7; emtrjnumkeysvar = 3; emtrjangleelevvar = 5; emtrjangleheadvar = 20; emtrjloopmode_s = "NONE"; emtrjeasefunc_s = "LINEAR"; emtrjdynupdatedelay = 200000; emtrjtargetrange = 100; emtrjtargetelev = 1; emactioncolldyn_s = "CREATEONCE"; emfxcolldyn_s = "spellFX_Windfist_Target"; emfxinvestorigin_s = "spellFX_Windfist_Invest"; }; instance SPELLFX_WINDFIST_KEY_INIT(C_PARTICLEFXEMITKEY) { emcheckcollision = 0; }; instance SPELLFX_WINDFIST_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { emcreatefxid = "spellFX_Windfist_INVESTBLAST"; }; instance SPELLFX_WINDFIST_KEY_INVEST_2(C_PARTICLEFXEMITKEY) { emcreatefxid = "spellFX_Windfist_INVESTBLAST"; }; instance SPELLFX_WINDFIST_KEY_INVEST_3(C_PARTICLEFXEMITKEY) { emcreatefxid = "spellFX_Windfist_INVESTBLAST"; }; instance SPELLFX_WINDFIST_KEY_INVEST_4(C_PARTICLEFXEMITKEY) { emcreatefxid = "spellFX_Windfist_INVESTBLAST"; }; instance SPELLFX_WINDFIST_KEY_CAST(C_PARTICLEFXEMITKEY) { visname_s = "simpleglow.tga"; emtrjmode_s = "TARGET"; emtrjeasevel = 1400; emcheckcollision = 1; emcreatefxid = "spellFX_WINDFIST_CAST"; }; instance SPELLFX_WINDFIST_INVEST(CFX_BASE_PROTO) { visname_s = "MFX_WINDFIST_INVEST"; sfxid = "MFX_WINDFIST_INVEST"; sfxisambient = 1; }; instance SPELLFX_WINDFIST_INVESTBLAST(CFX_BASE_PROTO) { visname_s = "MFX_WINDFIST_INVEST_BLAST"; sfxid = "MFX_WINDFIST_INVESBLASTT"; sfxisambient = 1; }; instance SPELLFX_WINDFIST_CAST(CFX_BASE_PROTO) { visname_s = "MFX_WINDFIST_Cast"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; sfxid = "MFX_Windfist_Cast"; sfxisambient = 1; }; instance SPELLFX_WINDFIST_TARGET(CFX_BASE_PROTO) { visname_s = "MFX_WINDFIST_COLLIDE"; sendassessmagic = 1; }; instance SPELLFX_STORMFIST(CFX_BASE_PROTO) { visname_s = "MFX_WINDFIST_INIT"; vissize_s = "1 1"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjnumkeys = 7; emtrjnumkeysvar = 3; emtrjangleelevvar = 5; emtrjangleheadvar = 20; emtrjloopmode_s = "NONE"; emtrjeasefunc_s = "LINEAR"; emtrjdynupdatedelay = 200000; emtrjtargetrange = 100; emtrjtargetelev = 1; emactioncolldyn_s = "CREATEONCE"; emfxcolldyn_s = "spellFX_Windfist_Target"; emfxinvestorigin_s = "spellFX_Windfist_Invest"; }; instance SPELLFX_STORMFIST_KEY_INIT(C_PARTICLEFXEMITKEY) { emcheckcollision = 0; }; instance SPELLFX_STORMFIST_KEY_CAST(C_PARTICLEFXEMITKEY) { visname_s = "MFX_STORMFIST_CAST"; emcheckcollision = 1; sfxid = "MFX_Stormfist_Cast"; sfxisambient = 1; }; instance SPELLFX_STORMFIST_INVEST(CFX_BASE_PROTO) { visname_s = "MFX_WINDFIST_INVEST"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; }; instance SPELLFX_TELEKINESIS(CFX_BASE_PROTO) { visname_s = "MFX_Telekinesis_INIT"; emtrjmode_s = "TARGET"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjnumkeys = 2; emtrjnumkeysvar = 1; emtrjangleelevvar = 2; emtrjangleheadvar = 0; emtrjeasefunc_s = "LINEAR"; emtrjloopmode_s = "HALT"; emtrjdynupdatedelay = 0; emfxinvestorigin_s = "spellFX_Telekinesis_ORIGIN"; emtrjtargetrange = 0; emtrjtargetelev = 0; }; instance SPELLFX_TELEKINESIS_KEY_INIT(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Telekinesis_INIT"; emtrjeasevel = 0.01; }; instance SPELLFX_TELEKINESIS_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Telekinesis_TARGET"; emtrjeasevel = 2000; sfxid = "MFX_TELEKINESIS_STARTINVEST"; sfxisambient = 1; }; instance SPELLFX_TELEKINESIS_KEY_CAST(C_PARTICLEFXEMITKEY) { visname_s = "MFX_Telekinesis_TargetEnd"; }; instance SPELLFX_TELEKINESIS_ORIGIN(CFX_BASE_PROTO) { visname_s = "MFX_Telekinesis_BRIDGE"; emtrjmode_s = "TARGET LINE"; emtrjeasevel = 0.001; emtrjoriginnode = "BIP01 R Hand"; emtrjdynupdatedelay = 0; lightpresetname = "AURA"; sfxid = "MFX_TELEKINESIS_INVEST"; sfxisambient = 1; }; instance SPELLFX_CHARM(CFX_BASE_PROTO) { visname_s = "MFX_CHARM_INIT"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjmode_s = "fixed"; emtrjloopmode_s = "NONE"; emtrjeasefunc_s = "LINEAR"; emtrjdynupdatedelay = 0; }; instance SPELLFX_CHARM_KEY_CAST(C_PARTICLEFXEMITKEY) { visname_s = "MFX_CHARM_ORIGIN"; emtrjmode_s = "TARGET"; emtrjeasevel = 1400; sfxid = "MFX_Charm_Cast"; sfxisambient = 1; }; instance SPELLFX_SLEEP(CFX_BASE_PROTO) { visname_s = "MFX_SLEEP_INIT"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjmode_s = "fixed"; emtrjloopmode_s = "NONE"; emtrjeasefunc_s = "LINEAR"; emtrjdynupdatedelay = 0; }; instance SPELLFX_SLEEP_KEY_INIT(C_PARTICLEFXEMITKEY) { visname_s = "MFX_SLEEP_INIT"; }; instance SPELLFX_SLEEP_KEY_CAST(C_PARTICLEFXEMITKEY) { visname_s = "MFX_SLEEP_ORIGIN"; emtrjeasevel = 1400; sfxid = "MFX_Sleep_Cast"; }; instance SPELLFX_SLEEP_ORIGIN(CFX_BASE_PROTO) { visname_s = "MFX_SLEEP_ORIGIN"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjdynupdatedelay = 0; }; instance SPELLFX_SLEEP_TARGET(CFX_BASE_PROTO) { lightpresetname = "AURA"; visname_s = "MFX_SLEEP_TARGET"; emtrjmode_s = "FIXED"; emtrjoriginnode = "BIP01"; emtrjdynupdatedelay = 0; }; instance SPELLFX_PYROKINESIS(CFX_BASE_PROTO) { visname_s = "MFX_Pyrokinesis_INIT"; visalpha = 1; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjtargetnode = "BIP01 HEAD"; emtrjnumkeys = 1; emtrjnumkeysvar = 1; emtrjangleelevvar = 15; emtrjangleheadvar = 0; emtrjdynupdatedelay = 0; emfxinvesttarget_s = "spellFX_Pyrokinesis_target"; emtrjtargetrange = 0; emtrjtargetelev = 0; }; instance SPELLFX_PYROKINESIS_KEY_CAST(C_PARTICLEFXEMITKEY) { pfx_ppsisloopingchg = 1; }; instance SPELLFX_PYROKINESIS_TARGET(CFX_BASE_PROTO) { visname_s = "MFX_Pyrokinesis_TARGET"; emtrjmode_s = "FIXED"; emtrjoriginnode = "BIP01 HEAD"; lightpresetname = "FIRESMALL"; emtrjtargetrange = 0; emtrjtargetelev = 0; sendassessmagic = 1; emtrjdynupdatedelay = 0.01; sfxid = "MFX_Pyrokinesis_target"; sfxisambient = 1; }; instance SPELLFX_CONTROL(CFX_BASE_PROTO) { visname_s = "MFX_CONTROL_INIT"; vissize_s = "1 1"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjtargetnode = "BIP01 HEAD"; emtrjloopmode_s = "none"; emtrjeasefunc_s = "LINEAR"; emtrjdynupdatedelay = 0; emtrjtargetrange = 0; emtrjtargetelev = 0; emfxinvesttarget_s = "spellFX_Control_TARGET"; emfxinvestorigin_s = "spellFX_Control_BRIDGE"; }; instance SPELLFX_CONTROL_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { visname_s = "simpleglow.tga"; sfxid = "MFX_CONTROL_STARTINVEST"; sfxisambient = 1; }; instance SPELLFX_CONTROL_KEY_CAST(C_PARTICLEFXEMITKEY) { pfx_ppsisloopingchg = 1; emcreatefxid = "CONTROL_CASTBLEND"; sfxid = "MFX_CONTROL_CAST"; sfxisambient = 1; }; instance SPELLFX_CONTROL_TARGET(CFX_BASE_PROTO) { visname_s = "MFX_CONTROL_TARGET"; emtrjmode_s = "FIXED"; emtrjoriginnode = "BIP01 HEAD"; emtrjtargetrange = 0; emtrjtargetelev = 0; sendassessmagic = 1; }; instance SPELLFX_CONTROL_BRIDGE(CFX_BASE_PROTO) { visname_s = "MFX_CONTROL_BRIDGE"; emtrjmode_s = "TARGET LINE"; emtrjoriginnode = "BIP01 HEAD"; emtrjtargetnode = "BIP01 HEAD"; emtrjtargetrange = 0; emtrjtargetelev = 0; emfxcreate_s = "spellFX_Control_ORIGIN"; sfxid = "MFX_CONTROL_INVEST"; sfxisambient = 1; }; instance SPELLFX_CONTROL_BRIDGE_KEY_INIT(C_PARTICLEFXEMITKEY) { emtrjeasevel = 0.01; }; instance SPELLFX_FEAR(CFX_BASE_PROTO) { visname_s = "MFX_FEAR_INIT"; emtrjmode_s = "FIXED"; emtrjeasefunc_s = "linear"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjdynupdatedelay = 10000; }; instance SPELLFX_FEAR_KEY_OPEN(C_PARTICLEFXEMITKEY) { emtrjeasevel = 0; }; instance SPELLFX_FEAR_KEY_INVEST_1(C_PARTICLEFXEMITKEY) { emcreatefxid = "FX_EarthQuake"; }; instance SPELLFX_FEAR_KEY_CAST(C_PARTICLEFXEMITKEY) { visname_s = "MFX_FEAR_ORIGIN"; emcreatefxid = "spellFX_Fear_Face"; }; instance SPELLFX_FEAR_FACE(CFX_BASE_PROTO) { emtrjmode_s = "FIXED"; emtrjeasefunc_s = "linear"; emtrjoriginnode = "BIP01 HEAD"; emtrjdynupdatedelay = 10000; lightpresetname = "REDAMBIENCE"; sfxid = "MFX_FEAR_CAST"; sfxisambient = 1; visname_s = "MFX_FEAR_FACE"; emfxcreate_s = "spellFX_Fear_WAVE"; }; instance SPELLFX_FEAR_WAVE(CFX_BASE_PROTO) { visname_s = "MFX_FEAR_WAVE"; emtrjoriginnode = "BIP01"; emactioncolldyn_s = "CREATEONCE"; emfxcolldyn_s = "spellFX_Fear_SENDPERCEPTION"; emfxcolldynalign_s = "COLLISIONNORMAL"; emcheckcollision = 1; }; instance SPELLFX_FEAR_SENDPERCEPTION(CFX_BASE_PROTO) { visname_s = ""; sfxid = "HAMMER"; sendassessmagic = 1; }; instance SPELLFX_BERZERK(CFX_BASE_PROTO) { visname_s = "MFX_BERZERK_INIT"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjmode_s = "fixed"; emtrjloopmode_s = "NONE"; emtrjeasefunc_s = "LINEAR"; emtrjdynupdatedelay = 0; }; instance SPELLFX_BERZERK_KEY_CAST(C_PARTICLEFXEMITKEY) { visname_s = "MFX_BERZERK_ORIGIN"; emtrjmode_s = "TARGET"; emtrjeasevel = 1400; sfxid = "MFX_Berzerk_Cast"; sfxisambient = 1; }; instance SPELLFX_BERZERK_ORIGIN(CFX_BASE_PROTO) { visname_s = "MFX_CHARM_ORIGIN"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjdynupdatedelay = 0; }; instance SPELLFX_BREATHOFDEATH(CFX_BASE_PROTO) { visname_s = "MFX_BREATHOFDEATH_INIT"; vissize_s = "1 1"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjnumkeys = 7; emtrjnumkeysvar = 3; emtrjangleelevvar = 5; emtrjangleheadvar = 20; emtrjloopmode_s = "NONE"; emtrjeasefunc_s = "LINEAR"; emtrjdynupdatedelay = 200000; emtrjtargetrange = 100; emtrjtargetelev = 1; emactioncolldyn_s = "CREATEONCE"; emfxcolldyn_s = "spellFX_BreathOfDeath_Target"; emfxinvestorigin_s = "spellFX_BreathOfDeath_Invest"; }; instance SPELLFX_BREATHOFDEATH_KEY_INIT(C_PARTICLEFXEMITKEY) { emcheckcollision = 0; }; instance SPELLFX_BREATHOFDEATH_KEY_CAST(C_PARTICLEFXEMITKEY) { visname_s = "simpleglow.tga"; emtrjmode_s = "TARGET"; emtrjeasevel = 1400; emcheckcollision = 1; emcreatefxid = "spellFX_BreathOfDeath_CAST"; }; instance SPELLFX_BREATHOFDEATH_INVEST(CFX_BASE_PROTO) { visname_s = "MFX_BREATHOFDEATH_INVEST"; sfxid = "MFX_BREATHOFDEATH_INVEST"; sfxisambient = 1; }; instance SPELLFX_BREATHOFDEATH_CAST(CFX_BASE_PROTO) { visname_s = "MFX_BREATHOFDEATH_Cast"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; sfxid = "MFX_BreathOfDeath_Cast"; sfxisambient = 1; }; instance SPELLFX_BREATHOFDEATH_TARGET(CFX_BASE_PROTO) { visname_s = "MFX_BREATHOFDEATH_COLLIDE"; sfxid = "MFX_BREATHOFDEATH_TARGET"; sfxisambient = 1; sendassessmagic = 1; }; instance SPELLFX_SHRINK(CFX_BASE_PROTO) { visname_s = "MFX_SHRINK_INIT"; emtrjmode_s = "FIXED"; emtrjoriginnode = "ZS_RIGHTHAND"; emtrjtargetnode = "BIP01"; emtrjnumkeys = 5; emtrjnumkeysvar = 1; emtrjangleelevvar = 15; emtrjangleheadvar = 0; emtrjeasefunc_s = "LINEAR"; emtrjloopmode_s = "HALT"; emtrjdynupdatedelay = 0; emtrjtargetrange = 0; emtrjtargetelev = 0; lightpresetname = "AURA"; emfxinvestorigin_s = "spellFX_SHRINK_ORIGIN"; }; instance SPELLFX_SHRINK_KEY_OPEN(C_PARTICLEFXEMITKEY) { emtrjeasevel = 0.01; lightrange = 0.01; }; instance SPELLFX_SHRINK_KEY_INIT(C_PARTICLEFXEMITKEY) { emtrjeasevel = 0.01; lightrange = 0.01; }; instance SPELLFX_SHRINK_KEY_CAST(C_PARTICLEFXEMITKEY) { emtrjmode_s = "TARGET LINE"; visname_s = "MFX_SHRINK_TARGET"; emtrjeasevel = 6000; lightrange = 200; sfxid = "MFX_SHRINK_CAST"; sfxisambient = 1; }; instance SPELLFX_SHRINK_ORIGIN(CFX_BASE_PROTO) { emfxcreatedowntrj = 0; visname_s = ""; emtrjmode_s = "FIXED"; emtrjoriginnode = "BIP01"; sfxid = "MFX_SHRINK_INVEST"; sfxisambient = 1; }; instance VOB_BURN(CFX_BASE_PROTO) { emtrjoriginnode = "BIP01 FIRE"; visname_s = "MFX_Firespell_HUMANBURN"; emfxcreate_s = "VOB_BURN_CHILD1"; emfxcreatedowntrj = 1; emtrjmode_s = "FIXED"; emtrjdynupdatedelay = 0; lightpresetname = "FIRESMALL"; sfxid = "MFX_Firespell_Humanburn"; }; instance VOB_BURN_CHILD1(CFX_BASE_PROTO) { emtrjoriginnode = "BIP01 R UPPERARM"; visname_s = "MFX_Firespell_HUMANBURN"; emfxcreate_s = "VOB_BURN_CHILD2"; emfxcreatedowntrj = 1; emtrjmode_s = "FIXED"; emtrjdynupdatedelay = 0; }; instance VOB_BURN_CHILD2(CFX_BASE_PROTO) { emtrjoriginnode = "BIP01 L UPPERARM"; visname_s = "MFX_Firespell_HUMANBURN"; emfxcreate_s = "VOB_BURN_CHILD3"; emfxcreatedowntrj = 1; emtrjmode_s = "FIXED"; emtrjdynupdatedelay = 0; }; instance VOB_BURN_CHILD3(CFX_BASE_PROTO) { emtrjoriginnode = "BIP01 L HAND"; visname_s = "MFX_Firespell_HUMANBURN"; emfxcreate_s = "VOB_BURN_CHILD4"; emfxcreatedowntrj = 1; emtrjmode_s = "FIXED"; emtrjdynupdatedelay = 0; }; instance VOB_BURN_CHILD4(CFX_BASE_PROTO) { emtrjoriginnode = "BIP01 R HAND"; visname_s = "MFX_Firespell_HUMANBURN"; emfxcreate_s = "VOB_BURN_CHILD5"; emfxcreatedowntrj = 1; emtrjmode_s = "FIXED"; emtrjdynupdatedelay = 0; }; instance VOB_BURN_CHILD5(CFX_BASE_PROTO) { emtrjoriginnode = "BIP01 L FOOT"; visname_s = "MFX_Firespell_HUMANBURN"; emfxcreate_s = "VOB_BURN_CHILD6"; emfxcreatedowntrj = 1; emtrjmode_s = "FIXED"; emtrjdynupdatedelay = 0; }; instance VOB_BURN_CHILD6(CFX_BASE_PROTO) { emtrjoriginnode = "BIP01 R FOOT"; visname_s = "MFX_Firespell_HUMANBURN"; emfxcreate_s = "spellFX_Firespell_HUMANSMOKE"; emfxcreatedowntrj = 1; emtrjmode_s = "FIXED"; emtrjdynupdatedelay = 0; }; instance SPELLFX_FIRESPELL_HUMANBURN(CFX_BASE_PROTO) { emtrjoriginnode = "BIP01 FIRE"; visname_s = "MFX_Firespell_HUMANBURN"; emfxcreatedowntrj = 1; emtrjmode_s = "FIXED"; emtrjdynupdatedelay = 0; emadjustshptoorigin = 1; }; instance SPELLFX_FIRESPELL_HUMANSMOKE(CFX_BASE_PROTO) { emtrjoriginnode = "BIP01 FIRE"; visname_s = "MFX_Firespell_HUMANSMOKE"; emtrjmode_s = "FIXED"; emtrjdynupdatedelay = 0; emadjustshptoorigin = 1; }; instance FX_ELECTRIC(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_Target"; emtrjoriginnode = "BIP01 Head"; emtrjmode_s = "FIXED"; sfxid = "MFX_Lightning_Target"; emfxcreate_s = "spellFX_Thunderspell_TARGET_CHILD1"; emfxcreatedowntrj = 1; }; instance SPELLFX_LIGHTNING_TARGET(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_Target"; emtrjoriginnode = "BIP01 Head"; visalpha = 1; emtrjmode_s = "FIXED"; sfxid = "MFX_Lightning_Target"; emfxcreate_s = "spellFX_Thunderspell_TARGET_CHILD1"; }; instance SPELLFX_THUNDERSPELL_TARGET(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_Target"; emtrjoriginnode = "BIP01 Head"; visalpha = 1; emtrjmode_s = "FIXED"; sendassessmagic = 1; sfxid = "MFX_Lightning_Target"; emfxcreate_s = "spellFX_Thunderspell_TARGET_CHILD1"; emfxcreatedowntrj = 1; }; instance SPELLFX_THUNDERSPELL_TARGET_CHILD1(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_Target"; emtrjoriginnode = "BIP01 R UPPERARM"; visalpha = 1; emtrjmode_s = "FIXED"; emfxcreate_s = "spellFX_Thunderspell_TARGET_CHILD2"; emfxcreatedowntrj = 1; }; instance SPELLFX_THUNDERSPELL_TARGET_CHILD2(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_Target"; emtrjoriginnode = "BIP01 L UPPERARM"; visalpha = 1; emtrjmode_s = "FIXED"; emfxcreate_s = "spellFX_Thunderspell_TARGET_CHILD3"; emfxcreatedowntrj = 1; }; instance SPELLFX_THUNDERSPELL_TARGET_CHILD3(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_Target"; emtrjoriginnode = "BIP01 L HAND"; visalpha = 1; emtrjmode_s = "FIXED"; emfxcreate_s = "spellFX_Thunderspell_TARGET_CHILD4"; emfxcreatedowntrj = 1; }; instance SPELLFX_THUNDERSPELL_TARGET_CHILD4(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_Target"; emtrjoriginnode = "BIP01 R HAND"; visalpha = 1; emtrjmode_s = "FIXED"; emfxcreate_s = "spellFX_Thunderspell_TARGET_CHILD5"; emfxcreatedowntrj = 1; }; instance SPELLFX_THUNDERSPELL_TARGET_CHILD5(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_Target"; emtrjoriginnode = "BIP01 L FOOT"; visalpha = 1; emtrjmode_s = "FIXED"; emfxcreate_s = "spellFX_Thunderspell_TARGET_CHILD6"; emfxcreatedowntrj = 1; }; instance SPELLFX_THUNDERSPELL_TARGET_CHILD6(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_Target"; emtrjoriginnode = "BIP01 R FOOT"; visalpha = 1; emtrjmode_s = "FIXED"; emfxcreate_s = "spellFX_Thunderspell_TARGET_CHILD7"; emfxcreatedowntrj = 1; }; instance SPELLFX_THUNDERSPELL_TARGET_CHILD7(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_Target"; emtrjoriginnode = "BIP01 L THIGH"; visalpha = 1; emtrjmode_s = "FIXED"; emfxcreate_s = "spellFX_Thunderspell_TARGET_CHILD8"; emfxcreatedowntrj = 1; }; instance SPELLFX_THUNDERSPELL_TARGET_CHILD8(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_Target"; emtrjoriginnode = "BIP01 R THIGH"; visalpha = 1; emtrjmode_s = "FIXED"; emfxcreate_s = "spellFX_Thunderspell_TARGET_CHILD9"; emfxcreatedowntrj = 1; }; instance SPELLFX_THUNDERSPELL_TARGET_CHILD9(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_Target"; emtrjoriginnode = "BIP01 L CALF"; visalpha = 1; emtrjmode_s = "FIXED"; emfxcreate_s = "spellFX_Thunderspell_TARGET_CHILD10"; emfxcreatedowntrj = 1; }; instance SPELLFX_THUNDERSPELL_TARGET_CHILD10(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_Target"; emtrjoriginnode = "BIP01 R CALF"; visalpha = 1; emtrjmode_s = "FIXED"; emfxcreate_s = "spellFX_Thunderspell_TARGET_CHILD11"; emfxcreatedowntrj = 1; }; instance SPELLFX_THUNDERSPELL_TARGET_CHILD11(CFX_BASE_PROTO) { visname_s = "MFX_Thunderball_Target"; emtrjoriginnode = "BIP01"; visalpha = 1; emtrjmode_s = "FIXED"; emfxcreate_s = "spellFX_Thunderball_COLLIDE"; emfxcreatedowntrj = 1; }; instance SPELLFX_ICESPELL_TARGET(CFX_BASE_PROTO) { visname_s = "MFX_IceSpell_Target"; visalpha = 1; emtrjmode_s = "FIXED"; sendassessmagic = 1; emadjustshptoorigin = 1; sfxid = "MFX_Icecube_Target"; }; instance FX_EARTHQUAKE(CFX_BASE_PROTO) { visname_s = "earthquake.eqk"; userstring[0] = "1000"; userstring[1] = "5"; userstring[2] = "5 5 5"; sfxid = "MFX_EarthQuake"; sfxisambient = 1; }; instance CONTROL_LEAVERANGEFX(CFX_BASE_PROTO) { visname_s = "screenblend.scx"; userstring[0] = "1"; userstring[1] = "0 100 0 100"; userstring[2] = "0.5"; }; instance CONTROL_CASTBLEND(CFX_BASE_PROTO) { visname_s = "screenblend.scx"; userstring[0] = "0.5"; userstring[1] = "255 255 255 255"; userstring[2] = "0.5"; emfxlifespan = 0.6; }; instance TRANSFORM_CASTBLEND(CFX_BASE_PROTO) { visname_s = "screenblend.scx"; userstring[0] = "0.5"; userstring[1] = "255 0 0 255"; userstring[2] = "0.5"; emfxlifespan = 0.6; }; instance TRANSFORM_NOPLACEFX(CFX_BASE_PROTO) { visname_s = "screenblend.scx"; userstring[0] = "1"; userstring[1] = "255 0 0 100"; userstring[2] = "1.5"; emfxlifespan = 0.6; }; instance FX_COLL_SMALL(CFX_BASE_PROTO) { visname_s = "coldummy.3ds"; emactioncollstat_s = "NORESP"; emactioncolldyn_s = "NORESP CREATEONCE"; visalpha = 0; }; instance FX_COLL_SMALL_KEY_CAST(C_PARTICLEFXEMITKEY) { emcheckcollision = 1; }; instance BARRIERE_PC_SHOOT(CFX_BASE_PROTO) { visname_s = "Blast"; emtrjmode_s = "FIXED"; emtrjdynupdatedelay = 0; sfxid = "MFX_Lightning_Origin"; }; instance BARRIERE_PC_WARNING(CFX_BASE_PROTO) { emtrjoriginnode = "BIP01 TOE"; visname_s = "MFX_lightning_target"; emtrjmode_s = "FIXED"; emtrjdynupdatedelay = 0; lightpresetname = "AURA"; };
D
E: c77, c48, c33, c20, c37, c65, c69, c0, c66, c19, c54, c39, c51, c47, c61, c63, c64, c80, c23, c7, c4, c86, c12, c45, c31, c21, c32, c36, c84, c49, c81, c16, c55, c78, c27, c18, c70, c76, c11, c3. p10(E,E) c77,c48 c23,c64 c20,c66 c19,c66 c12,c80 c18,c48 . p7(E,E) c33,c20 c33,c48 c65,c69 c0,c20 c51,c54 c48,c20 c80,c66 c7,c37 c21,c48 c21,c66 c32,c20 c84,c49 c0,c48 c21,c80 c0,c0 c0,c66 c51,c48 c33,c54 c48,c80 c80,c48 c48,c0 c51,c80 c32,c66 c32,c0 c0,c80 c0,c54 c21,c0 c33,c0 c32,c80 c48,c54 c80,c54 c51,c20 c80,c20 . p1(E,E) c37,c33 c61,c0 c45,c80 c81,c51 c20,c32 c70,c0 c11,c21 c3,c48 . p9(E,E) c66,c19 c20,c47 c54,c64 c64,c23 c86,c80 c80,c12 c48,c77 c16,c48 c48,c18 c27,c49 c66,c20 c4,c48 c31,c64 c81,c37 c86,c54 . p4(E,E) c54,c0 c48,c39 c48,c31 c66,c77 c80,c55 c0,c78 c20,c76 c54,c4 . p0(E,E) c69,c63 c48,c4 c66,c36 c20,c66 c54,c86 c49,c27 c37,c81 .
D
/Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/AST/TemplateIterator.swift.o : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Deprecated.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSource.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Uppercase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Lowercase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Capitalize.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateTag.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateConditional.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateCustom.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateExpression.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Var.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/TagRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/ViewRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/TemplateError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateIterator.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Contains.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/DateFormat.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateConstant.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Comment.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Print.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Count.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/TagContext.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Raw.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateRaw.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/View.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSyntax.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/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/TemplateKit.build/AST/TemplateIterator~partial.swiftmodule : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Deprecated.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSource.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Uppercase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Lowercase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Capitalize.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateTag.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateConditional.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateCustom.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateExpression.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Var.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/TagRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/ViewRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/TemplateError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateIterator.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Contains.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/DateFormat.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateConstant.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Comment.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Print.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Count.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/TagContext.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Raw.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateRaw.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/View.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSyntax.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/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/TemplateKit.build/AST/TemplateIterator~partial.swiftdoc : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Deprecated.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSource.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Uppercase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Lowercase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Capitalize.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateTag.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateConditional.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateCustom.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateExpression.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Var.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/TagRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/ViewRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/TemplateError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateIterator.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Contains.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/DateFormat.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateConstant.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Comment.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Print.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Count.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/TagContext.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Raw.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateRaw.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/View.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSyntax.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/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/TemplateKit.build/AST/TemplateIterator~partial.swiftsourceinfo : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Deprecated.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSource.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Uppercase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Lowercase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Capitalize.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateTag.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateConditional.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateCustom.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateExpression.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Var.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/TagRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/ViewRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/TemplateError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateIterator.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Contains.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/DateFormat.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateConstant.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Comment.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Print.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Count.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/TagContext.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Raw.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateRaw.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/View.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSyntax.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/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
; Copyright (C) 2008 The Android Open Source Project ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; http://www.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writing, software ; distributed under the License is distributed on an "AS IS" BASIS, ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ; See the License for the specific language governing permissions and ; limitations under the License. .source T_or_long_2addr_1.java .class public dot.junit.opcodes.or_long_2addr.d.T_or_long_2addr_1 .super java/lang/Object .method public <init>()V .limit regs 1 invoke-direct {v0}, java/lang/Object/<init>()V return-void .end method .method public run(JJ)J .limit regs 14 or-long/2addr v10, v12 return-wide v10 .end method
D
instance DIA_GRD_267_EXIT(C_Info) { npc = GRD_267_Gardist; nr = 999; condition = dia_grd_267_exit_condition; information = dia_grd_267_exit_info; permanent = 1; description = DIALOG_ENDE; }; func int dia_grd_267_exit_condition() { return 1; }; func void dia_grd_267_exit_info() { AI_StopProcessInfos(self); }; instance grd_267_gardist_sittingork(C_Info) { npc = GRD_267_Gardist; condition = grd_267_gardist_sittingork_condition; information = grd_267_gardist_sittingork_info; important = 1; permanent = 0; }; func int grd_267_gardist_sittingork_condition() { if((Npc_GetTrueGuild(hero) == GIL_None) && (Kapitel == 1)) { return TRUE; }; }; func void grd_267_gardist_sittingork_info() { AI_Output(self,other,"GRD_267_Gardist_SITTINGORK_Info_15_01"); //Ach, patrzcie no. Mamy gościa. AI_Output(self,other,"GRD_267_Gardist_SITTINGORK_Info_06_02"); //Nowa twarz. Od razu to po tobie zauważyłem. AI_Output(self,other,"GRD_267_Gardist_SITTINGORK_Info_06_03"); //Cóż, panuje tutaj taki zwyczaj, że my, Strażnicy, objaśniamy właśnie takim Kopaczom skąd wieje wiatr. AI_Output(self,other,"GRD_267_Gardist_SITTINGORK_Info_06_04"); //I oczywiście dbamy o to, żeby Kopacze tacy jak ty i twoi koledzy wydobywali tutaj rudę dla Gomeza. AI_Output(self,other,"GRD_267_Gardist_SITTINGORK_Info_06_05"); //To sprawia, że wszyscy tutaj dzięki temu mają przyzwoite życie. AI_Output(self,other,"GRD_267_Gardist_SITTINGORK_Info_06_06"); //Wy, Kopacze, opłacacie pewien rodzaj podatku - podatek od rudy. AI_Output(self,other,"GRD_267_Gardist_SITTINGORK_Info_06_07"); //My dbamy o to, żeby wasza ruda trafiła w dobre ręce, a wy w zamian za to macie tym samym spokojne życie w Starym Obozie. AI_Output(self,other,"GRD_267_Gardist_SITTINGORK_Info_06_08"); //Bądź co bądź, my, Strażnicy, doglądamy was na każdym kroku, a to jest... dość kosztowne zajęcie, jak zapewne rozumiesz. Hehe. AI_Output(self,other,"GRD_267_Gardist_SITTINGORK_Info_06_09"); //Myślę, że to najważniejsze, co na tę chwilę musisz wiedzieć. AI_Output(self,other,"GRD_267_Gardist_SITTINGORK_Info_06_10"); //Masz tu swój kilof. To będzie twój stały towarzysz w przyszłości. AI_Output(self,other,"GRD_267_Gardist_SITTINGORK_Info_06_11"); //Nie opłaciłeś mi jeszcze swojego podatku od rudy, więc do roboty i postaraj się o to, żebyś odpracował swój dług. AI_Output(self,other,"GRD_267_Gardist_SITTINGORK_Info_06_12"); //I nie martw się, będziemy was pilnować, tak że będziesz mógł pracować sobie w spokoju. AI_Output(self,other,"GRD_267_Gardist_SITTINGORK_Info_06_13"); //Miłej zabawy podczas swojego nowego zajęcia. Od teraz będę miał na ciebie oko, chłopcze. CreateInvItems(self,ItMwPickaxe,1); B_GiveInvItems(self,other,ItMwPickaxe,1); ore_vlk = LOG_RUNNING; Log_CreateTopic(CH1_HEROVLK,LOG_MISSION); Log_SetTopicStatus(CH1_HEROVLK,LOG_RUNNING); B_LogEntry(CH1_HEROVLK,"Jeden ze Strażników Starego Obozu zwrócił mi uwagę, że powinienem pracować w kopalni tak jak cała reszta. Dał mi kilof i posłał mnie do miejsca wydobycia. Jeśli do jutra nie uda mi się zebrać 150 bryłek, dostanę od niego porządną nauczkę."); }; instance GRD_267_GARDIST_WORKINGORK(C_Info) { npc = GRD_267_Gardist; condition = grd_267_gardist_workingork_condition; information = grd_267_gardist_workingork_info; important = 1; permanent = 0; }; func int grd_267_gardist_workingork_condition() { if(Npc_KnowsInfo(hero,grd_267_gardist_sittingork) && (ore_vlk == LOG_RUNNING) && (Npc_HasItems(other,ItMiNugget) >= 150)) { return 1; }; }; func void grd_267_gardist_workingork_info() { AI_Output(self,other,"GRD_267_Gardist_WORKINGORK_Info_15_01"); //No proszę, kto nas tu znowu odwiedził. Dobrze, że jesteś. Jestem właśnie w trakcie zbierania należności od Kopaczy. AI_Output(self,other,"GRD_267_Gardist_WORKINGORK_Info_15_02"); //Pokaż no, coś tam zdążył zebrać. AI_Output(self,other,"GRD_267_Gardist_WORKINGORK_Info_06_03"); //Achh. Pięknie się patrzy na tę rudę, nieprawdaż? Nie martw się, dobrze się nią zaopiekuję. if(Npc_HasItems(other,ItMiNugget) <= 150) { AI_Output(self,other,"GRD_267_Gardist_WORKINGORK_Info_01_02"); //150 bryłek? To pięknie, że tak trzymasz się naszej umowy i opłacasz swój należny podatek. AI_Output(self,other,"GRD_267_Gardist_WORKINGORK_Info_01_04"); //Masz tu jeszcze trochę rudy dla siebie. Z czegoś w końcu musisz żyć, prawda? AI_Output(self,other,"GRD_267_Gardist_WORKINGORK_Info_01_05"); //Uważaj na siebie, chłopcze. Na pewno jeszcze się kiedyś spotkamy. B_GiveInvItems(other,self,ItMiNugget,150); B_GiveInvItems(self,other,ItMiNugget,10); ore_vlk = LOG_SUCCESS; Log_SetTopicStatus(CH1_HEROVLK,LOG_SUCCESS); B_LogEntry(CH1_HEROVLK,"Przekazałem Strażnikowi jego 150 bryłek rudy, z czego 10 bryłek dostałem jako swój udział."); B_GiveXP(XP_VLKHERO); } else if(Npc_HasItems(other,ItMiNugget) <= 200) { AI_Output(self,other,"GRD_267_Gardist_WORKINGORK_Info_02_02"); //200 bryłek? Z pewnością nie będziesz miał nic przeciwko, jeśli uwzględnię sobie tę sumkę jako małą zaliczkę. AI_Output(self,other,"GRD_267_Gardist_WORKINGORK_Info_02_03"); //To dla dobra sprawy. Hehe. AI_Output(self,other,"GRD_267_Gardist_WORKINGORK_Info_02_04"); //Masz tu jeszcze trochę rudy dla siebie. Z czegoś w końcu musisz żyć, prawda? AI_Output(self,other,"GRD_267_Gardist_WORKINGORK_Info_02_05"); //Uważaj na siebie, chłopcze. Na pewno jeszcze się kiedyś spotkamy. B_GiveInvItems(other,self,ItMiNugget,200); B_GiveInvItems(self,other,ItMiNugget,15); ore_vlk = LOG_SUCCESS; Log_SetTopicStatus(CH1_HEROVLK,LOG_SUCCESS); B_LogEntry(CH1_HEROVLK,"Kiedy tylko Strażnik zauważył, że miałem przy sobie 200 bryłek rudy, bez ogródek wszystko zagarnął dla siebie i twierdził, że to będzie dla niego tylko taka zaliczka. 15 bryłek to wszystko co dostałem za całą robotę."); B_GiveXP(XP_VLKHERO); } else if(Npc_HasItems(other,ItMiNugget) >= 250) { AI_Output(self,other,"GRD_267_Gardist_WORKINGORK_Info_04_02"); //No, zdaje się, że całkiem porządnieś pracował. Sporo tej rudy zebrałeś. AI_Output(self,other,"GRD_267_Gardist_WORKINGORK_Info_04_03"); //Przechowam całą tę rudę dla ciebie. Bez obaw, jest w dobrych rękach. AI_Output(self,other,"GRD_267_Gardist_WORKINGORK_Info_04_04"); //Potraktuj to jako swego rodzaju inwestycję w przyszłość. Dobrze się twoją rudą zaopiekuję, możesz być tego pewien. AI_Output(self,other,"GRD_267_Gardist_WORKINGORK_Info_04_05"); //Uważaj na siebie, chłopcze. Na pewno jeszcze się kiedyś spotkamy. B_GiveInvItems(other,self,ItMiNugget,Npc_HasItems(other,ItMiNugget)); ore_vlk = LOG_SUCCESS; Log_SetTopicStatus(CH1_HEROVLK,LOG_SUCCESS); B_LogEntry(CH1_HEROVLK,"Miałem sporą ilość rudy przy sobie, kiedy spotkałem się ze Strażnikiem. Przywłaszczył sobie wszystko co miałem i potraktował to jako przyszłą inwestycję. Nie dostałem kompletnie nic za całą swoją pracę."); B_GiveXP(XP_VLKHERO_TIRED); }; };
D
instance Mod_7727_OUT_Wache_EIS (Npc_Default) { // ------ NSC ------ name = "Wache"; guild = GIL_OUT; id = 7727; voice = 0; flags = 0; npctype = NPCTYPE_MAIN; // ------ Attribute ------ B_SetAttributesToChapter (self, 3); // ------ Kampf-Taktik ------ fight_tactic = FAI_HUMAN_STRONG; // ------ Equippte Waffen ------ // ------ Inventory ------ B_CreateAmbientInv (self); // ------ visuals ------ B_SetNpcVisual (self, MALE, "Hum_Head_Bald", Face_N_Normal04, BodyTex_N, ITAR_Eisgebiet_Miliz); Mdl_SetModelFatness (self,0); Mdl_ApplyOverlayMds (self, "Humans_Militia.mds"); // ------ NSC-relevante Talente vergeben ------ B_GiveNpcTalents (self); // ------ Kampf-Talente ------ B_SetFightSkills (self, 40); // ------ TA anmelden ------ daily_routine = Rtn_Start_7727; }; FUNC VOID Rtn_Start_7727() { TA_Stand_Guarding (07,02,21,02,"EISFESTUNG_2"); TA_Stand_Guarding (21,02,07,02,"EISFESTUNG_2"); };
D
/* Copyright (c) 2013 Timur Gafarov Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following: The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ module dlib.xml; public { import dlib.xml.document; import dlib.xml.node; }
D
/** * Copyright: Copyright 2016 Mojo * Authors: Mojo * License: $(LINK2 https://github.com/coop-mojo/moecoop/blob/master/LICENSE, MIT License) */ module coop.mui.model.config; class Config { this(string file) { import std.file; import std.path; configFile = file; if (file.exists) { import vibe.data.json; import std.exception; import coop.util; auto json = file.readText.parseJsonString; enforce(json.type == Json.Type.object); windowWidth = json["initWindowWidth"].get!uint; windowHeight = json["initWindowHeight"].get!uint; if (auto ep = "endpoint" in json) { auto url = (*ep).get!string; endpoint = (url == deprecatedEndpoint) ? defaultEndpoint : url; } else { endpoint = defaultEndpoint; } } else { // デフォルト値を設定 windowWidth = 400; windowHeight = 300; endpoint = defaultEndpoint; } } auto save() { import std.file; import std.path; import std.stdio; mkdirRecurse(configFile.dirName); auto f = File(configFile, "w"); f.write(toJSON); } auto toJSON() { import vibe.data.json; auto json = Json([ "initWindowWidth": Json(windowWidth), "initWindowHeight": Json(windowHeight), "endpoint": Json(endpoint), ]); return json.serializeToPrettyJson; } uint windowWidth, windowHeight; string endpoint; private: string configFile; enum defaultEndpoint = "http://api.fukuro.coop.moe/"; enum deprecatedEndpoint = "https://moecoop-api.arukascloud.io/"; }
D
module evael.ecs.event_receiver; interface IEventReceiver { } interface EventReceiver(Event) : IEventReceiver { public void receive(ref Event event); }
D
// Written in the D programming language. /** Source: $(PHOBOSSRC std/experimental/allocator/building_blocks/_kernighan_ritchie.d) */ module std.experimental.allocator.building_blocks.kernighan_ritchie; import std.experimental.allocator.building_blocks.null_allocator; //debug = KRRegion; version(unittest) import std.conv : text; debug(KRRegion) import std.stdio; // KRRegion /** $(D KRRegion) draws inspiration from the $(MREF_ALTTEXT region allocation strategy, std,experimental,allocator,building_blocks,region) and also the $(HTTP stackoverflow.com/questions/13159564/explain-this-implementation-of-malloc-from-the-kr-book, famed allocator) described by Brian Kernighan and Dennis Ritchie in section 8.7 of the book $(HTTP amazon.com/exec/obidos/ASIN/0131103628/classicempire, "The C Programming Language"), Second Edition, Prentice Hall, 1988. $(H4 `KRRegion` = `Region` + Kernighan-Ritchie Allocator) Initially, `KRRegion` starts in "region" mode: allocations are served from the memory chunk in a region fashion. Thus, as long as there is enough memory left, $(D KRRegion.allocate) has the performance profile of a region allocator. Deallocation inserts (in $(BIGOH 1) time) the deallocated blocks in an unstructured freelist, which is not read in region mode. Once the region cannot serve an $(D allocate) request, $(D KRRegion) switches to "free list" mode. It sorts the list of previously deallocated blocks by address and serves allocation requests off that free list. The allocation and deallocation follow the pattern described by Kernighan and Ritchie. The recommended use of `KRRegion` is as a $(I region with deallocation). If the `KRRegion` is dimensioned appropriately, it could often not enter free list mode during its lifetime. Thus it is as fast as a simple region, whilst offering deallocation at a small cost. When the region memory is exhausted, the previously deallocated memory is still usable, at a performance cost. If the region is not excessively large and fragmented, the linear allocation and deallocation cost may still be compensated for by the good locality characteristics. If the chunk of memory managed is large, it may be desirable to switch management to free list from the beginning. That way, memory may be used in a more compact manner than region mode. To force free list mode, call $(D switchToFreeList) shortly after construction or when deemed appropriate. The smallest size that can be allocated is two words (16 bytes on 64-bit systems, 8 bytes on 32-bit systems). This is because the free list management needs two words (one for the length, the other for the next pointer in the singly-linked list). The $(D ParentAllocator) type parameter is the type of the allocator used to allocate the memory chunk underlying the $(D KRRegion) object. Choosing the default ($(D NullAllocator)) means the user is responsible for passing a buffer at construction (and for deallocating it if necessary). Otherwise, $(D KRRegion) automatically deallocates the buffer during destruction. For that reason, if $(D ParentAllocator) is not $(D NullAllocator), then $(D KRRegion) is not copyable. $(H4 Implementation Details) In free list mode, $(D KRRegion) embeds a free blocks list onto the chunk of memory. The free list is circular, coalesced, and sorted by address at all times. Allocations and deallocations take time proportional to the number of previously deallocated blocks. (In practice the cost may be lower, e.g. if memory is deallocated in reverse order of allocation, all operations take constant time.) Memory utilization is good (small control structure and no per-allocation overhead). The disadvantages of freelist mode include proneness to fragmentation, a minimum allocation size of two words, and linear worst-case allocation and deallocation times. Similarities of `KRRegion` (in free list mode) with the Kernighan-Ritchie allocator: $(UL $(LI Free blocks have variable size and are linked in a singly-linked list.) $(LI The freelist is maintained in increasing address order, which makes coalescing easy.) $(LI The strategy for finding the next available block is first fit.) $(LI The free list is circular, with the last node pointing back to the first.) $(LI Coalescing is carried during deallocation.) ) Differences from the Kernighan-Ritchie allocator: $(UL $(LI Once the chunk is exhausted, the Kernighan-Ritchie allocator allocates another chunk using operating system primitives. For better composability, $(D KRRegion) just gets full (returns $(D null) on new allocation requests). The decision to allocate more blocks is deferred to a higher-level entity. For an example, see the example below using $(D AllocatorList) in conjunction with $(D KRRegion).) $(LI Allocated blocks do not hold a size prefix. This is because in D the size information is available in client code at deallocation time.) ) */ struct KRRegion(ParentAllocator = NullAllocator) { import std.experimental.allocator.common : stateSize, alignedAt; import std.traits : hasMember; import std.typecons : Ternary; private static struct Node { import std.typecons : tuple, Tuple; Node* next; size_t size; this(this) @disable; void[] payload() inout { return (cast(ubyte*) &this)[0 .. size]; } bool adjacent(in Node* right) const { assert(right); auto p = payload; return p.ptr < right && right < p.ptr + p.length + Node.sizeof; } bool coalesce(void* memoryEnd = null) { // Coalesce the last node before the memory end with any possible gap if (memoryEnd && memoryEnd < payload.ptr + payload.length + Node.sizeof) { size += memoryEnd - (payload.ptr + payload.length); return true; } if (!adjacent(next)) return false; size = (cast(ubyte*) next + next.size) - cast(ubyte*) &this; next = next.next; return true; } Tuple!(void[], Node*) allocateHere(size_t bytes) { assert(bytes >= Node.sizeof); assert(bytes % Node.alignof == 0); assert(next); assert(!adjacent(next)); if (size < bytes) return typeof(return)(); assert(size >= bytes); immutable leftover = size - bytes; if (leftover >= Node.sizeof) { // There's room for another node auto newNode = cast(Node*) ((cast(ubyte*) &this) + bytes); newNode.size = leftover; newNode.next = next == &this ? newNode : next; assert(next); return tuple(payload, newNode); } // No slack space, just return next node return tuple(payload, next == &this ? null : next); } } // state /** If $(D ParentAllocator) holds state, $(D parent) is a public member of type $(D KRRegion). Otherwise, $(D parent) is an $(D alias) for `ParentAllocator.instance`. */ static if (stateSize!ParentAllocator) ParentAllocator parent; else alias parent = ParentAllocator.instance; private void[] payload; private Node* root; private bool regionMode() const { return bytesUsedRegionMode != size_t.max; } private void cancelRegionMode() { bytesUsedRegionMode = size_t.max; } private size_t bytesUsedRegionMode = 0; auto byNodePtr() { static struct Range { Node* start, current; @property bool empty() { return !current; } @property Node* front() { return current; } void popFront() { assert(current && current.next); current = current.next; if (current == start) current = null; } @property Range save() { return this; } } import std.range : isForwardRange; static assert(isForwardRange!Range); return Range(root, root); } string toString() { import std.format : format; string s = "KRRegion@"; s ~= format("%s-%s(0x%s[%s] %s", &this, &this + 1, payload.ptr, payload.length, regionMode ? "(region)" : "(freelist)"); Node* lastNode = null; if (!regionMode) { foreach (node; byNodePtr) { s ~= format(", %sfree(0x%s[%s])", lastNode && lastNode.adjacent(node) ? "+" : "", cast(void*) node, node.size); lastNode = node; } } else { for (auto node = root; node; node = node.next) { s ~= format(", %sfree(0x%s[%s])", lastNode && lastNode.adjacent(node) ? "+" : "", cast(void*) node, node.size); lastNode = node; } } s ~= ')'; return s; } private void assertValid(string s) { assert(!regionMode); if (!payload.ptr) { assert(!root, s); return; } if (!root) { return; } assert(root >= payload.ptr, s); assert(root < payload.ptr + payload.length, s); // Check that the list terminates size_t n; foreach (node; byNodePtr) { assert(node.next); assert(!node.adjacent(node.next)); assert(n++ < payload.length / Node.sizeof, s); } } private Node* sortFreelist(Node* root) { // Find a monotonic run auto last = root; for (;;) { if (!last.next) return root; if (last > last.next) break; assert(last < last.next); last = last.next; } auto tail = last.next; last.next = null; tail = sortFreelist(tail); return merge(root, tail); } private Node* merge(Node* left, Node* right) { assert(left != right); if (!left) return right; if (!right) return left; if (left < right) { auto result = left; result.next = merge(left.next, right); return result; } auto result = right; result.next = merge(left, right.next); return result; } private void coalesceAndMakeCircular() { for (auto n = root;;) { assert(!n.next || n < n.next); if (!n.next) { // Convert to circular n.next = root; break; } if (n.coalesce) continue; // possibly another coalesce n = n.next; } } /** Create a $(D KRRegion). If $(D ParentAllocator) is not $(D NullAllocator), $(D KRRegion)'s destructor will call $(D parent.deallocate). Params: b = Block of memory to serve as support for the allocator. Memory must be larger than two words and word-aligned. n = Capacity desired. This constructor is defined only if $(D ParentAllocator) is not $(D NullAllocator). */ this(ubyte[] b) { if (b.length < Node.sizeof) { // Init as empty assert(root is null); assert(payload is null); return; } assert(b.length >= Node.sizeof); assert(b.ptr.alignedAt(Node.alignof)); assert(b.length >= 2 * Node.sizeof); payload = b; root = cast(Node*) b.ptr; // Initialize the free list with all list assert(regionMode); root.next = null; root.size = b.length; debug(KRRegion) writefln("KRRegion@%s: init with %s[%s]", &this, b.ptr, b.length); } /// Ditto static if (!is(ParentAllocator == NullAllocator)) this(size_t n) { assert(n > Node.sizeof); this(cast(ubyte[])(parent.allocate(n))); } /// Ditto static if (!is(ParentAllocator == NullAllocator) && hasMember!(ParentAllocator, "deallocate")) ~this() { parent.deallocate(payload); } /** Forces free list mode. If already in free list mode, does nothing. Otherwise, sorts the free list accumulated so far and switches strategy for future allocations to KR style. */ void switchToFreeList() { if (!regionMode) return; cancelRegionMode; if (!root) return; root = sortFreelist(root); coalesceAndMakeCircular; } /* Noncopyable */ @disable this(this); /** Word-level alignment. */ enum alignment = Node.alignof; /** Allocates $(D n) bytes. Allocation searches the list of available blocks until a free block with $(D n) or more bytes is found (first fit strategy). The block is split (if larger) and returned. Params: n = number of bytes to _allocate Returns: A word-aligned buffer of $(D n) bytes, or $(D null). */ void[] allocate(size_t n) { if (!n || !root) return null; const actualBytes = goodAllocSize(n); // Try the region first if (regionMode) { // Only look at the head of the freelist if (root.size >= actualBytes) { // Enough room for allocation bytesUsedRegionMode += actualBytes; void* result = root; immutable balance = root.size - actualBytes; if (balance >= Node.sizeof) { auto newRoot = cast(Node*) (result + actualBytes); newRoot.next = root.next; newRoot.size = balance; root = newRoot; } else { root = null; switchToFreeList; } return result[0 .. n]; } // Not enough memory, switch to freelist mode and fall through switchToFreeList; } // Try to allocate from next after the iterating node for (auto pnode = root;;) { assert(!pnode.adjacent(pnode.next)); auto k = pnode.next.allocateHere(actualBytes); if (k[0] !is null) { // awes assert(k[0].length >= n); if (root == pnode.next) root = k[1]; pnode.next = k[1]; return k[0][0 .. n]; } pnode = pnode.next; if (pnode == root) break; } return null; } /** Deallocates $(D b), which is assumed to have been previously allocated with this allocator. Deallocation performs a linear search in the free list to preserve its sorting order. It follows that blocks with higher addresses in allocators with many free blocks are slower to deallocate. Params: b = block to be deallocated */ nothrow @nogc bool deallocate(void[] b) { debug(KRRegion) writefln("KRRegion@%s: deallocate(%s[%s])", &this, b.ptr, b.length); if (!b.ptr) return true; assert(owns(b) == Ternary.yes); assert(b.ptr.alignedAt(Node.alignof)); // Insert back in the freelist, keeping it sorted by address. Do not // coalesce at this time. Instead, do it lazily during allocation. auto n = cast(Node*) b.ptr; n.size = goodAllocSize(b.length); auto memoryEnd = payload.ptr + payload.length; if (regionMode) { assert(root); // Insert right after root bytesUsedRegionMode -= n.size; n.next = root.next; root.next = n; return true; } if (!root) { // What a sight for sore eyes root = n; root.next = root; // If the first block freed is the last one allocated, // maybe there's a gap after it. root.coalesce(memoryEnd); return true; } version(assert) foreach (test; byNodePtr) { assert(test != n); } // Linear search auto pnode = root; do { assert(pnode && pnode.next); assert(pnode != n); assert(pnode.next != n); if (pnode < pnode.next) { if (pnode > n || n > pnode.next) continue; // Insert in between pnode and pnode.next n.next = pnode.next; pnode.next = n; n.coalesce; pnode.coalesce; root = pnode; return true; } else if (pnode < n) { // Insert at the end of the list // Add any possible gap at the end of n to the length of n n.next = pnode.next; pnode.next = n; n.coalesce(memoryEnd); pnode.coalesce; root = pnode; return true; } else if (n < pnode.next) { // Insert at the front of the list n.next = pnode.next; pnode.next = n; n.coalesce; root = n; return true; } } while ((pnode = pnode.next) != root); assert(0, "Wrong parameter passed to deallocate"); } /** Allocates all memory available to this allocator. If the allocator is empty, returns the entire available block of memory. Otherwise, it still performs a best-effort allocation: if there is no fragmentation (e.g. $(D allocate) has been used but not $(D deallocate)), allocates and returns the only available block of memory. The operation takes time proportional to the number of adjacent free blocks at the front of the free list. These blocks get coalesced, whether $(D allocateAll) succeeds or fails due to fragmentation. */ void[] allocateAll() { if (regionMode) switchToFreeList; if (root && root.next == root) return allocate(root.size); return null; } /// version(unittest) @system unittest { import std.experimental.allocator.gc_allocator : GCAllocator; auto alloc = KRRegion!GCAllocator(1024 * 64); const b1 = alloc.allocate(2048); assert(b1.length == 2048); const b2 = alloc.allocateAll; assert(b2.length == 1024 * 62); } /** Deallocates all memory currently allocated, making the allocator ready for other allocations. This is a $(BIGOH 1) operation. */ pure nothrow @nogc bool deallocateAll() { debug(KRRegion) assertValid("deallocateAll"); debug(KRRegion) scope(exit) assertValid("deallocateAll"); root = cast(Node*) payload.ptr; // Reset to regionMode bytesUsedRegionMode = 0; if (root) { root.next = null; root.size = payload.length; } return true; } /** Checks whether the allocator is responsible for the allocation of $(D b). It does a simple $(BIGOH 1) range check. $(D b) should be a buffer either allocated with $(D this) or obtained through other means. */ pure nothrow @trusted @nogc Ternary owns(void[] b) { debug(KRRegion) assertValid("owns"); debug(KRRegion) scope(exit) assertValid("owns"); return Ternary(b && payload && (&b[0] >= &payload[0]) && (&b[0] < &payload[0] + payload.length)); } /** Adjusts $(D n) to a size suitable for allocation (two words or larger, word-aligned). */ pure nothrow @safe @nogc static size_t goodAllocSize(size_t n) { import std.experimental.allocator.common : roundUpToMultipleOf; return n <= Node.sizeof ? Node.sizeof : n.roundUpToMultipleOf(alignment); } /** Returns: `Ternary.yes` if the allocator is empty, `Ternary.no` otherwise. Never returns `Ternary.unknown`. */ pure nothrow @safe @nogc Ternary empty() { if (regionMode) return Ternary(bytesUsedRegionMode == 0); return Ternary(root && root.size == payload.length); } } /** $(D KRRegion) is preferable to $(D Region) as a front for a general-purpose allocator if $(D deallocate) is needed, yet the actual deallocation traffic is relatively low. The example below shows a $(D KRRegion) using stack storage fronting the GC allocator. */ @system unittest { import std.experimental.allocator.building_blocks.fallback_allocator : fallbackAllocator; import std.experimental.allocator.gc_allocator : GCAllocator; import std.typecons : Ternary; // KRRegion fronting a general-purpose allocator ubyte[1024 * 128] buf; auto alloc = fallbackAllocator(KRRegion!()(buf), GCAllocator.instance); auto b = alloc.allocate(100); assert(b.length == 100); assert((() pure nothrow @safe @nogc => alloc.primary.owns(b))() == Ternary.yes); } /** The code below defines a scalable allocator consisting of 1 MB (or larger) blocks fetched from the garbage-collected heap. Each block is organized as a KR-style heap. More blocks are allocated and freed on a need basis. This is the closest example to the allocator introduced in the K$(AMP)R book. It should perform slightly better because instead of searching through one large free list, it searches through several shorter lists in LRU order. Also, it actually returns memory to the operating system when possible. */ @system unittest { import std.algorithm.comparison : max; import std.experimental.allocator.building_blocks.allocator_list : AllocatorList; import std.experimental.allocator.gc_allocator : GCAllocator; import std.experimental.allocator.mmap_allocator : MmapAllocator; AllocatorList!(n => KRRegion!MmapAllocator(max(n * 16, 1024 * 1024))) alloc; } @system unittest { import std.algorithm.comparison : max; import std.experimental.allocator.building_blocks.allocator_list : AllocatorList; import std.experimental.allocator.gc_allocator : GCAllocator; import std.experimental.allocator.mallocator : Mallocator; import std.typecons : Ternary; /* Create a scalable allocator consisting of 1 MB (or larger) blocks fetched from the garbage-collected heap. Each block is organized as a KR-style heap. More blocks are allocated and freed on a need basis. */ AllocatorList!(n => KRRegion!Mallocator(max(n * 16, 1024 * 1024)), NullAllocator) alloc; void[][50] array; foreach (i; 0 .. array.length) { auto length = i * 10_000 + 1; array[i] = alloc.allocate(length); assert(array[i].ptr); assert(array[i].length == length); } import std.random : randomShuffle; randomShuffle(array[]); foreach (i; 0 .. array.length) { assert(array[i].ptr); assert((() pure nothrow @safe @nogc => alloc.owns(array[i]))() == Ternary.yes); () nothrow @nogc { alloc.deallocate(array[i]); }(); } } @system unittest { import std.algorithm.comparison : max; import std.experimental.allocator.building_blocks.allocator_list : AllocatorList; import std.experimental.allocator.gc_allocator : GCAllocator; import std.experimental.allocator.mmap_allocator : MmapAllocator; import std.typecons : Ternary; /* Create a scalable allocator consisting of 1 MB (or larger) blocks fetched from the garbage-collected heap. Each block is organized as a KR-style heap. More blocks are allocated and freed on a need basis. */ AllocatorList!((n) { auto result = KRRegion!MmapAllocator(max(n * 2, 1024 * 1024)); return result; }) alloc; void[][99] array; foreach (i; 0 .. array.length) { auto length = i * 10_000 + 1; array[i] = alloc.allocate(length); assert(array[i].ptr); foreach (j; 0 .. i) { assert(array[i].ptr != array[j].ptr); } assert(array[i].length == length); } import std.random : randomShuffle; randomShuffle(array[]); foreach (i; 0 .. array.length) { assert((() pure nothrow @safe @nogc => alloc.owns(array[i]))() == Ternary.yes); () nothrow @nogc { alloc.deallocate(array[i]); }(); } } @system unittest { import std.algorithm.comparison : max; import std.experimental.allocator.building_blocks.allocator_list : AllocatorList; import std.experimental.allocator.common : testAllocator; import std.experimental.allocator.gc_allocator : GCAllocator; testAllocator!(() => AllocatorList!( n => KRRegion!GCAllocator(max(n * 16, 1024 * 1024)))()); } @system unittest { import std.experimental.allocator.gc_allocator : GCAllocator; auto alloc = KRRegion!GCAllocator(1024 * 1024); void[][] array; foreach (i; 1 .. 4) { array ~= alloc.allocate(i); assert(array[$ - 1].length == i); } () nothrow @nogc { alloc.deallocate(array[1]); }(); () nothrow @nogc { alloc.deallocate(array[0]); }(); () nothrow @nogc { alloc.deallocate(array[2]); }(); assert(alloc.allocateAll().length == 1024 * 1024); } @system unittest { import std.experimental.allocator.gc_allocator : GCAllocator; import std.typecons : Ternary; auto alloc = KRRegion!()( cast(ubyte[])(GCAllocator.instance.allocate(1024 * 1024))); const store = alloc.allocate(KRRegion!().sizeof); auto p = cast(KRRegion!()* ) store.ptr; import core.stdc.string : memcpy; import std.algorithm.mutation : move; import std.conv : emplace; memcpy(p, &alloc, alloc.sizeof); emplace(&alloc); void[][100] array; foreach (i; 0 .. array.length) { auto length = 100 * i + 1; array[i] = p.allocate(length); assert(array[i].length == length, text(array[i].length)); assert((() pure nothrow @safe @nogc => p.owns(array[i]))() == Ternary.yes); } import std.random : randomShuffle; randomShuffle(array[]); foreach (i; 0 .. array.length) { assert((() pure nothrow @safe @nogc => p.owns(array[i]))() == Ternary.yes); () nothrow @nogc { p.deallocate(array[i]); }(); } auto b = p.allocateAll(); assert(b.length == 1024 * 1024 - KRRegion!().sizeof, text(b.length)); } @system unittest { import std.typecons : Ternary; import std.experimental.allocator.gc_allocator : GCAllocator; auto alloc = KRRegion!()( cast(ubyte[])(GCAllocator.instance.allocate(1024 * 1024))); auto p = alloc.allocateAll(); assert(p.length == 1024 * 1024); assert((() nothrow @nogc => alloc.deallocateAll())()); assert(alloc.empty() == Ternary.yes); p = alloc.allocateAll(); assert(p.length == 1024 * 1024); } @system unittest { import std.experimental.allocator.building_blocks; import std.random; import std.typecons : Ternary; // Both sequences must work on either system // A sequence of allocs which generates the error described in issue 16564 // that is a gap at the end of buf from the perspective of the allocator // for 64 bit systems (leftover balance = 8 bytes < 16) int[] sizes64 = [18904, 2008, 74904, 224, 111904, 1904, 52288, 8]; // for 32 bit systems (leftover balance < 8) int[] sizes32 = [81412, 107068, 49892, 23768]; void test(int[] sizes) { align(size_t.sizeof) ubyte[256 * 1024] buf; auto a = KRRegion!()(buf); void[][] bufs; foreach (size; sizes) { bufs ~= a.allocate(size); } foreach (b; bufs.randomCover) { () nothrow @nogc { a.deallocate(b); }(); } assert((() pure nothrow @safe @nogc => a.empty)() == Ternary.yes); } test(sizes64); test(sizes32); } @system unittest { import std.experimental.allocator.building_blocks; import std.random; import std.typecons : Ternary; // For 64 bits, we allocate in multiples of 8, but the minimum alloc size is 16. // This can create gaps. // This test is an example of such a case. The gap is formed between the block // allocated for the second value in sizes and the third. There is also a gap // at the very end. (total lost 2 * word) int[] sizes64 = [2008, 18904, 74904, 224, 111904, 1904, 52288, 8]; int[] sizes32 = [81412, 107068, 49892, 23768]; int word64 = 8; int word32 = 4; void test(int[] sizes, int word) { align(size_t.sizeof) ubyte[256 * 1024] buf; auto a = KRRegion!()(buf); void[][] bufs; foreach (size; sizes) { bufs ~= a.allocate(size); } () nothrow @nogc { a.deallocate(bufs[1]); }(); bufs ~= a.allocate(sizes[1] - word); () nothrow @nogc { a.deallocate(bufs[0]); }(); foreach (i; 2 .. bufs.length) { () nothrow @nogc { a.deallocate(bufs[i]); }(); } assert((() pure nothrow @safe @nogc => a.empty)() == Ternary.yes); } test(sizes64, word64); test(sizes32, word32); } @system unittest { import std.experimental.allocator.gc_allocator : GCAllocator; auto a = KRRegion!GCAllocator(1024 * 1024); assert((() pure nothrow @safe @nogc => a.goodAllocSize(1))() == typeof(*a.root).sizeof); } @system unittest { import std.typecons : Ternary; ubyte[1024] b; auto alloc = KRRegion!()(b); auto k = alloc.allocate(128); assert(k.length == 128); assert(alloc.empty == Ternary.no); assert(alloc.deallocate(k)); assert(alloc.empty == Ternary.yes); k = alloc.allocate(512); assert(k.length == 512); assert(alloc.empty == Ternary.no); assert(alloc.deallocate(k)); assert(alloc.empty == Ternary.yes); k = alloc.allocate(1024); assert(k.length == 1024); assert(alloc.empty == Ternary.no); assert(alloc.deallocate(k)); assert(alloc.empty == Ternary.yes); }
D
module opencore.schema.common; public import plist; public import plist.types;
D
/home/bexx/Projects/SmallRustProjects/battleship/target/debug/build/libc-72b431f3de491719/build_script_build-72b431f3de491719: /home/bexx/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.97/build.rs /home/bexx/Projects/SmallRustProjects/battleship/target/debug/build/libc-72b431f3de491719/build_script_build-72b431f3de491719.d: /home/bexx/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.97/build.rs /home/bexx/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.97/build.rs:
D
/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtDeclarative module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and Digia. For licensing terms and ** conditions see http://qt.digia.com/licensing. For further information ** use the contact form at http://qt.digia.com/contact-us. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 2.1 or version 3 as published by the Free ** Software Foundation and appearing in the file LICENSE.LGPLv21 and ** LICENSE.LGPLv3 included in the packaging of this file. Please review the ** following information to ensure the GNU Lesser General Public License ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** In addition, as a special exception, Digia gives you certain additional ** rights. These rights are described in the Digia Qt LGPL Exception ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. ** ** $QT_END_LICENSE$ ** ****************************************************************************/ #ifndef QDECLARATIVEERROR_H #define QDECLARATIVEERROR_H public import qt.QtDeclarative.qtdeclarativeglobal; public import qt.QtCore.qurl; public import qt.QtCore.qstring; QT_BEGIN_NAMESPACE QT_MODULE(Declarative) class QDebug; class QDeclarativeErrorPrivate; class Q_DECLARATIVE_EXPORT QDeclarativeError { public: QDeclarativeError(); QDeclarativeError(ref const(QDeclarativeError) ); QDeclarativeError &operator=(ref const(QDeclarativeError) ); ~QDeclarativeError(); bool isValid() const; QUrl url() const; void setUrl(ref const(QUrl) ); QString description() const; void setDescription(ref const(QString) ); int line() const; void setLine(int); int column() const; void setColumn(int); QString toString() const; private: QDeclarativeErrorPrivate *d; }; QDebug Q_DECLARATIVE_EXPORT operator<<(QDebug debug, ref const(QDeclarativeError) error); QT_END_NAMESPACE #endif // QDECLARATIVEERROR_H
D
/* * This file is part of EvinceD. * EvinceD is based on GtkD. * * EvinceD is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 3 * of the License, or (at your option) any later version, with * some exceptions, please read the COPYING file. * * EvinceD is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with EvinceD; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA */ // generated automatically - do not change // find conversion definition on APILookup.txt module evince.document.AnnotationMarkupIF; private import evince.document.Rectangle; private import evince.document.c.functions; public import evince.document.c.types; private import glib.Str; /** */ public interface AnnotationMarkupIF{ /** Get the main Gtk struct */ public EvAnnotationMarkup* getAnnotationMarkupStruct(bool transferOwnership = false); /** the main Gtk struct as a void* */ protected void* getStruct(); /** */ public static GType getType() { return ev_annotation_markup_get_type(); } /** */ public bool canHavePopup(); /** */ public string getLabel(); /** */ public double getOpacity(); /** */ public bool getPopupIsOpen(); /** */ public void getRectangle(Rectangle evRect); /** */ public bool hasPopup(); /** */ public bool setHasPopup(bool hasPopup); /** */ public bool setLabel(string label); /** */ public bool setOpacity(double opacity); /** */ public bool setPopupIsOpen(bool isOpen); /** */ public bool setRectangle(Rectangle evRect); }
D
/** * Copyright: (c) 2005-2009 Eric Poggel * Authors: Eric Poggel * License: <a href="lgpl3.txt">LGPL v3</a> * * Import every module in the yage.core.math package. */ module yage.core.math.all; public { import yage.core.math.math; import yage.core.math.matrix; import yage.core.math.plane; import yage.core.math.quatrn; import yage.core.math.vector; }
D
// Copyright (C) 2002-2013 Nikolaus Gebhardt // This file is part of the "Irrlicht Engine" for the D programming language. // For conditions of distribution and use, see copyright notice in irrlicht.d module. module irrlicht.video.EDriverTypes; /// An enum for all types of drivers the Irrlicht Engine supports. enum E_DRIVER_TYPE { /// Null driver, useful for applications to run the engine without visualisation. /** * The null device is able to load textures, but does not * render and display any graphics. */ EDT_NULL, /// The Irrlicht Engine Software renderer. /** * Runs on all platforms, with every hardware. It should only * be used for 2d graphics, but it can also perform some primitive * 3d functions. These 3d drawing functions are quite fast, but * very inaccurate, and don't even support clipping in 3D mode. */ EDT_SOFTWARE, /// The Burning's Software Renderer, an alternative software renderer /** * Basically it can be described as the Irrlicht Software * renderer on steroids. It rasterizes 3D geometry perfectly: It * is able to perform correct 3d clipping, perspective correct * texture mapping, perspective correct color mapping, and renders * sub pixel correct, sub texel correct primitives. In addition, * it does bilinear texel filtering and supports more materials * than the EDT_SOFTWARE driver. This renderer has been written * entirely by Thomas Alten, thanks a lot for this huge * contribution. */ EDT_BURNINGSVIDEO, /// Direct3D8 device, only available on Win32 platforms. /** * Performs hardware accelerated rendering of 3D and 2D * primitives. */ EDT_DIRECT3D8, /// Direct3D 9 device, only available on Win32 platforms. /** * Performs hardware accelerated rendering of 3D and 2D * primitives. */ EDT_DIRECT3D9, /// OpenGL device, available on most platforms. /** * Performs hardware accelerated rendering of 3D and 2D * primitives. */ EDT_OPENGL, /// No driver, just for counting the elements EDT_COUNT }
D
/Users/kabeone/kabeone/rust/fuse/target/debug/deps/standback-2a73e82c7615e538.rmeta: /Users/kabeone/.cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.1/src/lib.rs /Users/kabeone/.cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.1/src/v1_40.rs /Users/kabeone/.cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.1/src/v1_41.rs /Users/kabeone/.cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.1/src/v1_42.rs /Users/kabeone/kabeone/rust/fuse/target/debug/deps/libstandback-2a73e82c7615e538.rlib: /Users/kabeone/.cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.1/src/lib.rs /Users/kabeone/.cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.1/src/v1_40.rs /Users/kabeone/.cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.1/src/v1_41.rs /Users/kabeone/.cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.1/src/v1_42.rs /Users/kabeone/kabeone/rust/fuse/target/debug/deps/standback-2a73e82c7615e538.d: /Users/kabeone/.cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.1/src/lib.rs /Users/kabeone/.cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.1/src/v1_40.rs /Users/kabeone/.cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.1/src/v1_41.rs /Users/kabeone/.cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.1/src/v1_42.rs /Users/kabeone/.cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.1/src/lib.rs: /Users/kabeone/.cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.1/src/v1_40.rs: /Users/kabeone/.cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.1/src/v1_41.rs: /Users/kabeone/.cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.1/src/v1_42.rs:
D
class C { final override void foo(){} }
D
the system of numbering pages a sheet of any written or printed material (especially in a manuscript or book) a book (or manuscript) consisting of large sheets of paper folded in the middle to make two leaves or four pages
D
/* * Copyright (c) 2017-2018 sel-project * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * */ module condition; import selery.config : Config; bool cond(string condition, bool is_node)(inout Config config, bool match) { static if(condition == "java_enabled") { static if(is_node) return config.node.java.enabled == match; else return config.hub.java.enabled == match; } else static if(condition == "pocket_enabled") { static if(is_node) return config.node.bedrock.enabled == match; else return config.hub.bedrock.enabled == match; } else { return condImpl!condition(config, match); } } bool condImpl(string condition)(inout Config config, bool match) { static if(condition == "java_onlineMode") { return config.hub.java.onlineMode == match; } else static if(condition == "pocket_onlineMode") { return config.hub.bedrock.onlineMode == match; } else { static assert(0, "\"" ~ condition ~ "\" is not a valid condition"); } }
D
/** * Copyright: Copyright (c) 2010-2011 Jacob Carlborg. All rights reserved. * Authors: Jacob Carlborg * Version: Initial created: Aug 15, 2010 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) */ module dvm.dvm.Options; import std.exception : assumeUnique; import std.path : baseName; import std.process : environment; import tango.sys.Environment; import tango.sys.HomeFolder; import dvm.io.Path; enum Shell { invalid, unkown, bash, zsh } class Options { enum indentation = " "; enum numberOfIndentations = 1; enum path = Path(); private static Options instance_; bool verbose = false; bool tango = false; bool isDefault = false; bool force = false; bool decline = false; bool latest = false; bool compileDebug = false; private Shell shell_; version (D_LP64) bool is64bit = true; else bool is64bit = false; version (OSX) enum platform = "osx"; else version (FreeBSD) enum platform = "freebsd"; else version (linux) enum platform = "linux"; else version (Windows) enum platform = "windows"; else static assert (false, "Platform not supported"); private this () {} static Options instance () { if (instance_) return instance_; return instance_ = new typeof(this); } Shell shell() { if (shell_ != Shell.invalid) return shell_; if ("SHELL" in environment) { with(Shell) switch (environment["SHELL"].baseName) { case "bash": return shell_ = bash; case "zsh": return shell_ = zsh; default: return shell_ = unkown; } } return shell_ = Shell.unkown; } } private struct Path { enum bin = "bin"; enum bin32 = "bin32"; enum bin64 = "bin64"; enum src = "src"; enum lib = "lib"; enum lib32 = "lib32"; enum lib64 = "lib64"; enum import_ = "import"; enum license = "license.txt"; enum readme = "README.TXT"; enum std = "std"; enum object_di = "object.di"; version (Posix) { enum libExtension = ".a"; enum tangoLibName = "libtango"; enum pathSeparator = ":"; enum confName = "dmd.conf"; enum scriptExtension = ""; enum executableExtension = ""; } else { enum libExtension = ".lib"; enum tangoLibName = "tango"; enum pathSeparator = ";"; enum confName = "sc.ini"; enum scriptExtension = ".bat"; enum executableExtension = ".exe"; } private { string home_; string dvm_; string env_; string compilers_; string archives_; string result_; string tmp_; string scripts_; string binDir_; string dvmScript_; string dvmExecutable_; string conf_; string tangoZip_; string tangoTmp_; string tangoBob_; string tangoLib_; string tangoSrc_; string tangoObject_; string tangoVendor_; string tangoUnarchived_; string defaultEnv_; string defaultBin_; version (Posix) { enum string dvmDir = ".dvm"; enum string dvmExecName = "dvm"; } else version (Windows) { enum string dvmDir = "dvm"; enum string dvmExecName = "_dvm"; } } string home () { if (home_.length > 0) return home_; version (Posix) return home_ = homeFolder.assumeUnique; version (Windows) return home_ = standard(Environment.get("APPDATA")); } string dvm () { if (dvm_.length > 0) return dvm_; return dvm_ = join(home, dvmDir).assumeUnique; } string dvmExecutable () { if (dvmExecutable_.length > 0) return dvmExecutable_; return dvmExecutable_ = join(binDir, dvmExecName ~ executableExtension).assumeUnique; } string dvmScript () { if (dvmScript_.length > 0) return dvmScript_; version (Posix) auto dir = scripts; version (Windows) auto dir = binDir; return dvmScript_ = join(dir, "dvm" ~ scriptExtension).assumeUnique; } string env () { if (env_.length > 0) return env_; return env_ = join(dvm, "env").assumeUnique; } string compilers () { if (compilers_.length > 0) return compilers_; return compilers_ = join(dvm, "compilers").assumeUnique; } string archives () { if (archives_.length > 0) return archives_; return archives_ = join(dvm, "archives").assumeUnique; } string result () { if (result_.length > 0) return result_; return result_ = join(tmp, "result" ~ scriptExtension).assumeUnique; } string scripts () { if (scripts_.length > 0) return scripts_; return scripts_ = join(dvm, "scripts").assumeUnique; } string binDir () { if (binDir_.length > 0) return binDir_; return binDir_ = join(dvm, "bin").assumeUnique; } string tmp () { if (tmp_.length > 0) return tmp_; return tmp_ = join(dvm, "tmp").assumeUnique; } string conf () { if (conf_.length > 0) return conf_; return conf_ = join(bin, confName).assumeUnique; } string tangoZip () { if (tangoZip_.length > 0) return tangoZip_; return tangoZip_ = join(tmp, "tango.zip").assumeUnique; } string tangoTmp () { if (tangoTmp_.length > 0) return tangoTmp_; return tangoTmp_ = join(tangoUnarchived, "trunk").assumeUnique; } string tangoUnarchived () { if (tangoUnarchived_.length > 0) return tangoUnarchived_; return tangoUnarchived_ = join(tmp, "tango", "head").assumeUnique; } string tangoBob () { if (tangoBob_.length > 0) return tangoBob_; auto suffix = Options.instance.is64bit ? "64" : "32"; auto path = join(tangoTmp, "build", "bin").assumeUnique; version (OSX) path = join(path, "osx" ~ suffix).assumeUnique; else version (FreeBSD) path = join(path, "freebsd" ~ suffix).assumeUnique; else version (linux) path = join(path, "linux" ~ suffix).assumeUnique; else version (Windows) path = join(path, "win" ~ suffix).assumeUnique; else static assert(false, "Unhandled platform for installing Tango"); return tangoBob_ = join(path, "bob" ~ executableExtension).assumeUnique; } string tangoLib () { if (tangoLib_.length > 0) return tangoLib_; return tangoLib_ = join(tangoTmp, tangoLibName ~ libExtension).assumeUnique; } string tangoSrc () { if (tangoSrc_.length) return tangoSrc_; return tangoSrc_ = join(tangoTmp, "tango").assumeUnique; } string tangoObject () { if (tangoObject_.length > 0) return tangoObject_; return tangoObject_ = join(tangoTmp, object_di).assumeUnique; } string tangoVendor () { if (tangoVendor_.length > 0) return tangoVendor_; return tangoVendor_ = join(tangoSrc, "core", "vendor", std).assumeUnique; } string defaultEnv () { if (defaultEnv_.length > 0) return defaultEnv_; return defaultEnv_ = join(env, "default").assumeUnique; } string defaultBin () { if (defaultBin_.length > 0) return defaultBin_; return defaultBin_ = join(binDir, "dvm-default-dc" ~ scriptExtension).assumeUnique; } }
D
/Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/Jay.build/StringParser.swift.o : /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/ArrayParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/BooleanParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/ByteReader.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/CommentParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Consts.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Error.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Extensions.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Formatter.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Jay.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/NativeParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/NativeTypeConversions.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/NullParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/NumberParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/ObjectParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/OutputStream.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Parser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Reader.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/RootParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/StringParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Types.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/ValueParser.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/Jay.build/StringParser~partial.swiftmodule : /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/ArrayParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/BooleanParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/ByteReader.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/CommentParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Consts.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Error.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Extensions.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Formatter.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Jay.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/NativeParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/NativeTypeConversions.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/NullParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/NumberParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/ObjectParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/OutputStream.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Parser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Reader.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/RootParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/StringParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Types.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/ValueParser.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/Jay.build/StringParser~partial.swiftdoc : /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/ArrayParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/BooleanParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/ByteReader.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/CommentParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Consts.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Error.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Extensions.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Formatter.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Jay.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/NativeParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/NativeTypeConversions.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/NullParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/NumberParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/ObjectParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/OutputStream.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Parser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Reader.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/RootParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/StringParser.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/Types.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Jay-1.0.1/Sources/Jay/ValueParser.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule
D
sour-tasting liquid produced usually by oxidation of the alcohol in wine or cider and used as a condiment or food preservative dilute acetic acid
D
module purr.ir.bytecode; import core.memory; import std.conv; import std.array; import std.algorithm; import std.typecons; import std.meta; import purr.io; import purr.srcloc; import purr.bytecode; import purr.dynamic; import purr.inter; import purr.ir.emit; import purr.ir.opt; import purr.ir.repr; void modifyInstr(T)(Function func, T index, ushort v) { func.instrs[index - 2 .. index] = *cast(ubyte[2]*)&v; } void modifyInstrAhead(T)(Function func, T index, Opcode replacement) { func.instrs[index] = replacement; } void removeCount(T1, T2)(Function func, T1 index, T2 argc) { func.instrs = func.instrs[0 .. index] ~ func.instrs[index + 2 * argc + 1 .. $]; } void pushInstr(Function func, Opcode op, ushort[] shorts = null, int size = 0) { func.stackAt[func.instrs.length] = func.stackSizeCurrent; func.instrs ~= *cast(ubyte[2]*)&op; foreach (i; shorts) { func.instrs ~= *cast(ubyte[2]*)&i; } if (func.spans.length == 0) { func.spans.length++; } while (func.spans.length < func.instrs.length) { func.spans ~= func.spans[$ - 1]; } int* psize = op in opSizes; if (psize !is null) { func.stackSizeCurrent = func.stackSizeCurrent + *psize; } else { func.stackSizeCurrent = func.stackSizeCurrent + size; } if (func.stackSizeCurrent >= func.stackSize) { func.stackSize = func.stackSizeCurrent + 1; } assert(func.stackSizeCurrent >= 0); } TodoBlock[] todoBlocks = void; size_t[BasicBlock] disabled = void; size_t delayed = void; struct TodoBlock { BytecodeEmitter emitter; BasicBlock block; Function newFunc; void delegate(ushort) cb; this(BytecodeEmitter e, BasicBlock b, Function f, void delegate(ushort) c) { emitter = e; block = b; newFunc = f; cb = c; } void opCall() { size_t delayCount = 0; if (size_t* delayCountPtr = block in disabled) { delayCount = *delayCountPtr; } if (delayCount != 0) { foreach (key, ref value; disabled) { value--; } delayed++; todoBlocks ~= this; } else { delayed = 0; emitter.entryNew(block, newFunc); cb(emitter.counts[block][newFunc]); } } } void enable(BasicBlock bb) { disabled[bb]--; } void disable(BasicBlock bb) { if (size_t* ptr = bb in disabled) { *ptr += 1; } else { disabled[bb] = 1; } } class BytecodeEmitter { BasicBlock[] bbchecked; Function func; ushort[Function][BasicBlock] counts; bool isFirst = true; this() { todoBlocks = null; disabled = null; delayed = 0; } bool within(BasicBlock block, Function func) { if (ushort[Function]* tab = block in counts) { if (func in *tab) { return true; } return false; } else { return false; } } void entryFunc(BasicBlock block, Function func, string[] args = null) { bool isBlockFirst = isFirst; isFirst = false; if (isBlockFirst) { disabled = null; } entryNew(block, func); } void entryNew(BasicBlock block, Function newFunc) { Function oldFunc = func; TodoBlock[] oldTodoBlocks = todoBlocks; scope (exit) { func = oldFunc; todoBlocks = oldTodoBlocks; } func = newFunc; todoBlocks = null; emit(block); while (todoBlocks.length != 0) { TodoBlock cur = todoBlocks[0]; todoBlocks = todoBlocks[1 .. $]; cur(); } } void entry(BasicBlock block, Function newFunc, void delegate(ushort) cb) { todoBlocks ~= TodoBlock(this, block, newFunc, cb); } string[] predef(BasicBlock block, string[] checked = null) { assert(block.exit !is null, this.to!string); foreach (i; bbchecked) { if (i is block) { return checked; } } bbchecked ~= block; scope (exit) { bbchecked.length--; } foreach (instr; block.instrs) { if (StoreInstruction si = cast(StoreInstruction) instr) { if (!checked.canFind(si.var)) { checked ~= si.var; } } } foreach (blk; block.exit.target) { checked = predef(blk, checked); } return checked; } void emit(BasicBlock block) { if (block !in counts) { counts[block] = null; } if (!within(block, func)) { if (dumpir) { writeln(block); } counts[block][func] = cast(ushort) func.instrs.length; foreach (sym; predef(block)) { if (sym !in func.stab.byName) { func.stab.define(sym); } } foreach (instr; block.instrs) { func.spans ~= instr.span; emit(instr); } emit(block.exit); } } void emit(Emittable em) { static foreach (Instr; InstrTypes) { if (typeid(em) == typeid(Instr)) { emit(cast(Instr) em); return; } } assert(false, "not emittable " ~ em.to!string); } void emit(LogicalBranch branch) { // pushInstr(func, Opcode.iftrue, [cast(ushort) ushort.max]); // size_t j0 = func.instrs.length; // pushInstr(func, Opcode.jump, [cast(ushort) ushort.max]); // size_t j1 = func.instrs.length; // Function cfunc = func; // entry(branch.target[0], func, (t0) { // cfunc.modifyInstr(j0, t0); // }); // entry(branch.target[1], func, (t1) { // cfunc.modifyInstr(j1, t1); // }); pushInstr(func, Opcode.branch, [cast(ushort) ushort.max, cast(ushort) ushort.max]); size_t j0 = func.instrs.length - ushort.sizeof; size_t j1 = func.instrs.length; Function cfunc = func; entry(branch.target[0], func, (t0) { cfunc.modifyInstr(j0, t0); }); entry(branch.target[1], func, (t1) { cfunc.modifyInstr(j1, t1); }); } void emit(GotoBranch branch) { pushInstr(func, Opcode.jump, [cast(ushort) ushort.max]); size_t j0 = func.instrs.length; Function cfunc = func; entry(branch.target[0], func, (t0) { cfunc.modifyInstr(j0, cast(ushort) t0); }); } void emit(ReturnBranch branch) { pushInstr(func, Opcode.retval); } void emit(BuildArrayInstruction arr) { pushInstr(func, Opcode.array, [cast(ubyte) arr.argc], cast(int)(1 - arr.argc)); } void emit(BuildTupleInstruction arr) { pushInstr(func, Opcode.tuple, [cast(ubyte) arr.argc], cast(int)(1 - arr.argc)); } void emit(BuildTableInstruction table) { pushInstr(func, Opcode.table, [cast(ubyte) table.argc], cast(int)(1 - table.argc)); } void emit(StoreInstruction store) { if (uint* ius = store.var in func.stab.byName) { pushInstr(func, Opcode.store, [cast(ushort)*ius]); } else { throw new Exception("not mutable: " ~ store.var); } } void emit(StoreIndexInstruction store) { pushInstr(func, Opcode.istore, []); } void emit(LoadInstruction load) { bool unfound = true; foreach (argno, argname; func.args) { if (argname.str == load.var) { pushInstr(func, Opcode.argno, [cast(ushort) argno]); unfound = false; load.capture = LoadInstruction.Capture.arg; } } if (unfound) { uint* us = load.var in func.stab.byName; Function.Lookup.Flags flags; if (us !is null) { pushInstr(func, Opcode.load, [cast(ushort)*us]); flags = func.stab.flags(load.var); unfound = false; load.capture = LoadInstruction.Capture.not; } else { uint v = func.doCapture(load.var); pushInstr(func, Opcode.loadc, [cast(ushort) v]); flags = func.captab.flags(load.var); unfound = false; load.capture = LoadInstruction.Capture.cap; } } } void emit(FormInstruction call) { pushInstr(func, Opcode.call, [cast(ushort) call.argc], cast(int)-call.argc); } void emit(StaticFormInstruction call) { pushInstr(func, Opcode.scall, [cast(ushort) func.constants.length, cast(ushort) call.argc], cast(int)(1-call.argc)); func.constants ~= call.func; } void emit(PushInstruction push) { pushInstr(func, Opcode.push, [cast(ushort) func.constants.length]); func.constants ~= push.value; } void emit(RecInstruction rec) { pushInstr(func, Opcode.rec, []); } void emit(InspectInstruction inspect) { func.pushInstr(Opcode.inspect, null); } void emit(OperatorInstruction op) { sw: final switch (op.op) { case "index": func.pushInstr(Opcode.index); break; static foreach (i; operators) { case i: func.pushInstr(mixin("Opcode.op" ~ i)); break sw; } } } void emit(LambdaInstruction lambda) { func.flags |= Function.flags.isLocal; Function newFunc = new Function; newFunc.parent = func; newFunc.args = lambda.argNames; func.pushInstr(Opcode.sub, [cast(ushort) func.funcs.length]); entryFunc(lambda.entry, newFunc, lambda.argNames.map!(x => x.str).array); func.funcs ~= newFunc; } void emit(PopInstruction pop) { func.pushInstr(Opcode.pop); } void emit(ArgsInstruction args) { func.pushInstr(Opcode.args, null); } }
D
<?xml version="1.0" encoding="UTF-8"?> <di:SashWindowsMngr xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi"> <pageList> <availablePage> <emfPageIdentifier href="UseCase.notation#_YzueELvQEeO59O-KAUfscg"/> </availablePage> </pageList> <sashModel currentSelection="//@sashModel/@windows.0/@children.0"> <windows> <children xsi:type="di:TabFolder"> <children> <emfPageIdentifier href="UseCase.notation#_YzueELvQEeO59O-KAUfscg"/> </children> </children> </windows> </sashModel> </di:SashWindowsMngr>
D
/** * Compiler implementation of the * $(LINK2 http://www.dlang.org, D programming language). * * Copyright: Copyright (C) 1999-2019 by The D Language Foundation, All Rights Reserved * Authors: $(LINK2 http://www.digitalmars.com, Walter Bright) * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/libmach.d, _libmach.d) * Documentation: https://dlang.org/phobos/dmd_libmach.html * Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/libmach.d */ module dmd.libmach; version(OSX): import core.stdc.time; import core.stdc.string; import core.stdc.stdlib; import core.stdc.stdio; import core.stdc.config; import core.sys.posix.sys.stat; import core.sys.posix.unistd; import dmd.globals; import dmd.lib; import dmd.utils; import dmd.root.array; import dmd.root.file; import dmd.root.filename; import dmd.root.outbuffer; import dmd.root.port; import dmd.root.rmem; import dmd.root.stringtable; import dmd.scanmach; // Entry point (only public symbol in this module). public extern (C++) Library LibMach_factory() { return new LibMach(); } private: // for the remainder of this module enum LOG = false; struct MachObjSymbol { const(char)[] name; // still has a terminating 0 MachObjModule* om; } alias MachObjModules = Array!(MachObjModule*); alias MachObjSymbols = Array!(MachObjSymbol*); final class LibMach : Library { MachObjModules objmodules; // MachObjModule[] MachObjSymbols objsymbols; // MachObjSymbol[] StringTable!(MachObjSymbol*) tab; extern (D) this() { tab._init(14000); } /*************************************** * Add object module or library to the library. * Examine the buffer to see which it is. * If the buffer is NULL, use module_name as the file name * and load the file. */ override void addObject(const(char)* module_name, const ubyte[] buffer) { if (!module_name) module_name = ""; static if (LOG) { printf("LibMach::addObject(%s)\n", module_name); } void corrupt(int reason) { error("corrupt Mach object module %s %d", module_name, reason); } int fromfile = 0; auto buf = buffer.ptr; auto buflen = buffer.length; if (!buf) { assert(module_name[0]); // read file and take buffer ownership auto data = readFile(Loc.initial, module_name).extractSlice(); buf = data.ptr; buflen = data.length; fromfile = 1; } if (buflen < 16) { static if (LOG) { printf("buf = %p, buflen = %d\n", buf, buflen); } return corrupt(__LINE__); } if (memcmp(buf, cast(char*)"!<arch>\n", 8) == 0) { /* Library file. * Pull each object module out of the library and add it * to the object module array. */ static if (LOG) { printf("archive, buf = %p, buflen = %d\n", buf, buflen); } uint offset = 8; char* symtab = null; uint symtab_size = 0; uint mstart = cast(uint)objmodules.dim; while (offset < buflen) { if (offset + MachLibHeader.sizeof >= buflen) return corrupt(__LINE__); MachLibHeader* header = cast(MachLibHeader*)(cast(ubyte*)buf + offset); offset += MachLibHeader.sizeof; char* endptr = null; uint size = cast(uint)strtoul(header.file_size.ptr, &endptr, 10); if (endptr >= header.file_size.ptr + 10 || *endptr != ' ') return corrupt(__LINE__); if (offset + size > buflen) return corrupt(__LINE__); if (memcmp(header.object_name.ptr, cast(char*)"__.SYMDEF ", 16) == 0 || memcmp(header.object_name.ptr, cast(char*)"__.SYMDEF SORTED", 16) == 0) { /* Instead of rescanning the object modules we pull from a * library, just use the already created symbol table. */ if (symtab) return corrupt(__LINE__); symtab = cast(char*)buf + offset; symtab_size = size; if (size < 4) return corrupt(__LINE__); } else { auto om = new MachObjModule(); om.base = cast(ubyte*)buf + offset - MachLibHeader.sizeof; om.length = cast(uint)(size + MachLibHeader.sizeof); om.offset = 0; const n = cast(const(char)*)(om.base + MachLibHeader.sizeof); om.name = n.toDString(); om.file_time = cast(uint)strtoul(header.file_time.ptr, &endptr, 10); om.user_id = cast(uint)strtoul(header.user_id.ptr, &endptr, 10); om.group_id = cast(uint)strtoul(header.group_id.ptr, &endptr, 10); om.file_mode = cast(uint)strtoul(header.file_mode.ptr, &endptr, 8); om.scan = 0; // don't scan object module for symbols objmodules.push(om); } offset += (size + 1) & ~1; } if (offset != buflen) return corrupt(__LINE__); /* Scan the library's symbol table, and insert it into our own. * We use this instead of rescanning the object module, because * the library's creator may have a different idea of what symbols * go into the symbol table than we do. * This is also probably faster. */ uint nsymbols = Port.readlongLE(symtab) / 8; char* s = symtab + 4 + nsymbols * 8 + 4; if (4 + nsymbols * 8 + 4 > symtab_size) return corrupt(__LINE__); for (uint i = 0; i < nsymbols; i++) { uint soff = Port.readlongLE(symtab + 4 + i * 8); const(char)* name = s + soff; size_t namelen = strlen(name); //printf("soff = x%x name = %s\n", soff, name); if (s + namelen + 1 - symtab > symtab_size) return corrupt(__LINE__); uint moff = Port.readlongLE(symtab + 4 + i * 8 + 4); //printf("symtab[%d] moff = x%x x%x, name = %s\n", i, moff, moff + sizeof(Header), name); for (uint m = mstart; 1; m++) { if (m == objmodules.dim) return corrupt(__LINE__); // didn't find it MachObjModule* om = objmodules[m]; //printf("\tom offset = x%x\n", (char *)om.base - (char *)buf); if (moff == cast(char*)om.base - cast(char*)buf) { addSymbol(om, name[0 .. namelen], 1); //if (mstart == m) // mstart++; break; } } } return; } /* It's an object module */ auto om = new MachObjModule(); om.base = cast(ubyte*)buf; om.length = cast(uint)buflen; om.offset = 0; const n = cast(const(char)*)FileName.name(module_name); // remove path, but not extension om.name = n.toDString(); om.scan = 1; if (fromfile) { stat_t statbuf; int i = stat(module_name, &statbuf); if (i == -1) // error, errno is set return corrupt(__LINE__); om.file_time = statbuf.st_ctime; om.user_id = statbuf.st_uid; om.group_id = statbuf.st_gid; om.file_mode = statbuf.st_mode; } else { /* Mock things up for the object module file that never was * actually written out. */ __gshared uid_t uid; __gshared gid_t gid; __gshared int _init; if (!_init) { _init = 1; uid = getuid(); gid = getgid(); } time(&om.file_time); om.user_id = uid; om.group_id = gid; om.file_mode = (1 << 15) | (6 << 6) | (4 << 3) | (4 << 0); // 0100644 } objmodules.push(om); } /*****************************************************************************/ void addSymbol(MachObjModule* om, const(char)[] name, int pickAny = 0) { static if (LOG) { printf("LibMach::addSymbol(%s, %s, %d)\n", om.name.ptr, name.ptr, pickAny); } version (none) { // let linker sort out duplicates StringValue* s = tab.insert(name.ptr, name.length, null); if (!s) { // already in table if (!pickAny) { s = tab.lookup(name.ptr, name.length); assert(s); MachObjSymbol* os = cast(MachObjSymbol*)s.ptrvalue; error("multiple definition of %s: %s and %s: %s", om.name.ptr, name.ptr, os.om.name.ptr, os.name.ptr); } } else { auto os = new MachObjSymbol(); os.name = xarraydup(name); os.om = om; s.ptrvalue = cast(void*)os; objsymbols.push(os); } } else { auto os = new MachObjSymbol(); os.name = xarraydup(name); os.om = om; objsymbols.push(os); } } private: /************************************ * Scan single object module for dictionary symbols. * Send those symbols to LibMach::addSymbol(). */ void scanObjModule(MachObjModule* om) { static if (LOG) { printf("LibMach::scanObjModule(%s)\n", om.name.ptr); } extern (D) void addSymbol(const(char)[] name, int pickAny) { this.addSymbol(om, name, pickAny); } scanMachObjModule(&addSymbol, om.base[0 .. om.length], om.name.ptr, loc); } /*****************************************************************************/ /*****************************************************************************/ /********************************************** * Create and write library to libbuf. * The library consists of: * !<arch>\n * header * dictionary * object modules... */ protected override void WriteLibToBuffer(OutBuffer* libbuf) { static if (LOG) { printf("LibMach::WriteLibToBuffer()\n"); } __gshared char* pad = [0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A]; /************* Scan Object Modules for Symbols ******************/ for (size_t i = 0; i < objmodules.dim; i++) { MachObjModule* om = objmodules[i]; if (om.scan) { scanObjModule(om); } } /************* Determine module offsets ******************/ uint moffset = 8 + MachLibHeader.sizeof + 4 + 4; for (size_t i = 0; i < objsymbols.dim; i++) { MachObjSymbol* os = objsymbols[i]; moffset += 8 + os.name.length + 1; } moffset = (moffset + 3) & ~3; //if (moffset & 4) // moffset += 4; uint hoffset = moffset; static if (LOG) { printf("\tmoffset = x%x\n", moffset); } for (size_t i = 0; i < objmodules.dim; i++) { MachObjModule* om = objmodules[i]; moffset += moffset & 1; om.offset = moffset; if (om.scan) { const slen = om.name.length; int nzeros = 8 - ((slen + 4) & 7); if (nzeros < 4) nzeros += 8; // emulate mysterious behavior of ar int filesize = om.length; filesize = (filesize + 7) & ~7; moffset += MachLibHeader.sizeof + slen + nzeros + filesize; } else { moffset += om.length; } } libbuf.reserve(moffset); /************* Write the library ******************/ libbuf.write("!<arch>\n"); MachObjModule om; om.base = null; om.length = cast(uint)(hoffset - (8 + MachLibHeader.sizeof)); om.offset = 8; om.name = ""; .time(&om.file_time); om.user_id = getuid(); om.group_id = getgid(); om.file_mode = (1 << 15) | (6 << 6) | (4 << 3) | (4 << 0); // 0100644 MachLibHeader h; MachOmToHeader(&h, &om); memcpy(h.object_name.ptr, cast(const(char)*)"__.SYMDEF", 9); int len = sprintf(h.file_size.ptr, "%u", om.length); assert(len <= 10); memset(h.file_size.ptr + len, ' ', 10 - len); libbuf.write((&h)[0 .. 1]); char[4] buf; Port.writelongLE(cast(uint)(objsymbols.dim * 8), buf.ptr); libbuf.write(buf[0 .. 4]); int stringoff = 0; for (size_t i = 0; i < objsymbols.dim; i++) { MachObjSymbol* os = objsymbols[i]; Port.writelongLE(stringoff, buf.ptr); libbuf.write(buf[0 .. 4]); Port.writelongLE(os.om.offset, buf.ptr); libbuf.write(buf[0 .. 4]); stringoff += os.name.length + 1; } Port.writelongLE(stringoff, buf.ptr); libbuf.write(buf[0 .. 4]); for (size_t i = 0; i < objsymbols.dim; i++) { MachObjSymbol* os = objsymbols[i]; libbuf.writestring(os.name); libbuf.writeByte(0); } while (libbuf.length & 3) libbuf.writeByte(0); //if (libbuf.length & 4) // libbuf.write(pad[0 .. 4]); static if (LOG) { printf("\tlibbuf.moffset = x%x\n", libbuf.length); } assert(libbuf.length == hoffset); /* Write out each of the object modules */ for (size_t i = 0; i < objmodules.dim; i++) { MachObjModule* om2 = objmodules[i]; if (libbuf.length & 1) libbuf.writeByte('\n'); // module alignment assert(libbuf.length == om2.offset); if (om2.scan) { MachOmToHeader(&h, om2); libbuf.write((&h)[0 .. 1]); // module header libbuf.write(om2.name.ptr[0 .. om2.name.length]); int nzeros = 8 - ((om2.name.length + 4) & 7); if (nzeros < 4) nzeros += 8; // emulate mysterious behavior of ar libbuf.fill0(nzeros); libbuf.write(om2.base[0 .. om2.length]); // module contents // obj modules are padded out to 8 bytes in length with 0x0A int filealign = om2.length & 7; if (filealign) { libbuf.write(pad[0 .. 8 - filealign]); } } else { libbuf.write(om2.base[0 .. om2.length]); // module contents } } static if (LOG) { printf("moffset = x%x, libbuf.length = x%x\n", moffset, libbuf.length); } assert(libbuf.length == moffset); } } /*****************************************************************************/ /*****************************************************************************/ struct MachObjModule { ubyte* base; // where are we holding it in memory uint length; // in bytes uint offset; // offset from start of library const(char)[] name; // module name (file name) with terminating 0 c_long file_time; // file time uint user_id; uint group_id; uint file_mode; int scan; // 1 means scan for symbols } enum MACH_OBJECT_NAME_SIZE = 16; struct MachLibHeader { char[MACH_OBJECT_NAME_SIZE] object_name; char[12] file_time; char[6] user_id; char[6] group_id; char[8] file_mode; // in octal char[10] file_size; char[2] trailer; } extern (C++) void MachOmToHeader(MachLibHeader* h, MachObjModule* om) { const slen = om.name.length; int nzeros = 8 - ((slen + 4) & 7); if (nzeros < 4) nzeros += 8; // emulate mysterious behavior of ar size_t len = sprintf(h.object_name.ptr, "#1/%ld", slen + nzeros); memset(h.object_name.ptr + len, ' ', MACH_OBJECT_NAME_SIZE - len); /* In the following sprintf's, don't worry if the trailing 0 * that sprintf writes goes off the end of the field. It will * write into the next field, which we will promptly overwrite * anyway. (So make sure to write the fields in ascending order.) */ len = sprintf(h.file_time.ptr, "%llu", cast(long)om.file_time); assert(len <= 12); memset(h.file_time.ptr + len, ' ', 12 - len); if (om.user_id > 999999) // yes, it happens om.user_id = 0; // don't really know what to do here len = sprintf(h.user_id.ptr, "%u", om.user_id); assert(len <= 6); memset(h.user_id.ptr + len, ' ', 6 - len); if (om.group_id > 999999) // yes, it happens om.group_id = 0; // don't really know what to do here len = sprintf(h.group_id.ptr, "%u", om.group_id); assert(len <= 6); memset(h.group_id.ptr + len, ' ', 6 - len); len = sprintf(h.file_mode.ptr, "%o", om.file_mode); assert(len <= 8); memset(h.file_mode.ptr + len, ' ', 8 - len); int filesize = om.length; filesize = (filesize + 7) & ~7; len = sprintf(h.file_size.ptr, "%lu", slen + nzeros + filesize); assert(len <= 10); memset(h.file_size.ptr + len, ' ', 10 - len); h.trailer[0] = '`'; h.trailer[1] = '\n'; }
D
func void B_DIA_BDT_10XX_Fluechtling_Stimme7() { AI_Output(self,other,"DIA_B_DIA_BDT_10XX_Fluechtling_07_00"); //Забудь об этом, я не вернусь назад в тюрьму. }; func void B_DIA_BDT_10XX_Fluechtling_Stimme6() { AI_Output(self,other,"DIA_B_DIA_BDT_10XX_Fluechtling_06_00"); //Ты же пришел не затем, чтобы вернуть нас назад в тюрьму, правда? }; instance DIA_BDT_1031_Fluechtling_EXIT(C_Info) { npc = BDT_1031_Fluechtling; nr = 999; condition = DIA_BDT_1031_Fluechtling_EXIT_Condition; information = DIA_BDT_1031_Fluechtling_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_BDT_1031_Fluechtling_EXIT_Condition() { return TRUE; }; func void DIA_BDT_1031_Fluechtling_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_BDT_1031_Fluechtling_Tip1(C_Info) { npc = BDT_1031_Fluechtling; nr = 2; condition = DIA_BDT_1031_Fluechtling_Tip1_Condition; information = DIA_BDT_1031_Fluechtling_Tip1_Info; important = TRUE; }; func int DIA_BDT_1031_Fluechtling_Tip1_Condition() { if(Npc_IsInState(self,ZS_Talk)) { return TRUE; }; }; func void DIA_BDT_1031_Fluechtling_Tip1_Info() { AI_Output(self,other,"DIA_BDT_1031_Fluechtling_Tip1_07_00"); //Тебе лучше держаться от меня подальше, если не хочешь попасть в тюрьму. B_GivePlayerXP(150); if(SCFoundMorgahard == FALSE) { Info_ClearChoices(DIA_BDT_1031_Fluechtling_Tip1); Info_AddChoice(DIA_BDT_1031_Fluechtling_Tip1,"Я не собираюсь убивать тебя.",DIA_BDT_1031_Fluechtling_Tip1_frei); Info_AddChoice(DIA_BDT_1031_Fluechtling_Tip1,"Я пришел арестовать тебя.",DIA_BDT_1031_Fluechtling_Tip1_Knast); Info_AddChoice(DIA_BDT_1031_Fluechtling_Tip1,"Где Моргахард, ваш главарь?",DIA_BDT_1031_Fluechtling_Tip1_Morgahard); }; }; func void DIA_BDT_1031_Fluechtling_Tip1_Morgahard() { AI_Output(other,self,"DIA_BDT_1031_Fluechtling_Tip1_Morgahard_15_00"); //Где Моргахард, ваш главарь? AI_Output(self,other,"DIA_BDT_1031_Fluechtling_Tip1_Morgahard_07_01"); //Мы разделились, чтобы нас не поймали слишком быстро. Понятия не имею, где сейчас остальные. Info_AddChoice(DIA_BDT_1031_Fluechtling_Tip1,"Жаль. Тогда, пожалуй, мне придется доставить тебя к судье.",DIA_BDT_1031_Fluechtling_Tip1_Morgahard_drohen); }; func void DIA_BDT_1031_Fluechtling_Tip1_Morgahard_drohen() { AI_Output(other,self,"DIA_BDT_1031_Fluechtling_Tip1_Morgahard_drohen_15_00"); //Жаль. Тогда, пожалуй, мне придется доставить тебя к судье. AI_Output(self,other,"DIA_BDT_1031_Fluechtling_Tip1_Morgahard_drohen_07_01"); //Хорошо, хорошо. Я думаю, некоторые из нас направились в таверну. Но ты не слышал этого от меня, хорошо? AI_StopProcessInfos(self); }; func void DIA_BDT_1031_Fluechtling_Tip1_Knast() { AI_Output(other,self,"DIA_BDT_1031_Fluechtling_Tip1_Knast_15_00"); //Я пришел арестовать тебя. AI_Output(self,other,"DIA_BDT_1031_Fluechtling_Tip1_Knast_07_01"); //Только через мой труп. AI_StopProcessInfos(self); B_Attack(self,other,AR_SuddenEnemyInferno,1); }; func void DIA_BDT_1031_Fluechtling_Tip1_frei() { AI_Output(other,self,"DIA_BDT_1031_Fluechtling_Tip1_frei_15_00"); //Я не собираюсь убивать тебя. AI_Output(self,other,"DIA_BDT_1031_Fluechtling_Tip1_frei_07_01"); //Если тебя послал судья, скажи ему, чтобы он отстал от нас. Info_AddChoice(DIA_BDT_1031_Fluechtling_Tip1,"Так в каком преступлении ты обвиняешься?",DIA_BDT_1031_Fluechtling_Tip1_frei_verbrechen); }; func void DIA_BDT_1031_Fluechtling_Tip1_frei_verbrechen() { AI_Output(other,self,"DIA_BDT_1031_Fluechtling_Tip1_frei_verbrechen_15_00"); //Так в каком преступлении ты обвиняешься? AI_Output(self,other,"DIA_BDT_1031_Fluechtling_Tip1_frei_verbrechen_07_01"); //Это не твое дело. }; instance DIA_BDT_1031_Fluechtling_PERM(C_Info) { npc = BDT_1031_Fluechtling; nr = 3; condition = DIA_BDT_1031_Fluechtling_PERM_Condition; information = DIA_BDT_1031_Fluechtling_PERM_Info; important = TRUE; permanent = TRUE; }; func int DIA_BDT_1031_Fluechtling_PERM_Condition() { if(Npc_IsInState(self,ZS_Talk)) { return TRUE; }; }; func void DIA_BDT_1031_Fluechtling_PERM_Info() { B_DIA_BDT_10XX_Fluechtling_Stimme7(); AI_StopProcessInfos(self); }; instance DIA_BDT_1032_Fluechtling_EXIT(C_Info) { npc = BDT_1032_Fluechtling; nr = 999; condition = DIA_BDT_1032_Fluechtling_EXIT_Condition; information = DIA_BDT_1032_Fluechtling_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_BDT_1032_Fluechtling_EXIT_Condition() { return TRUE; }; func void DIA_BDT_1032_Fluechtling_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_BDT_1032_Fluechtling_PERM(C_Info) { npc = BDT_1032_Fluechtling; nr = 2; condition = DIA_BDT_1032_Fluechtling_PERM_Condition; information = DIA_BDT_1032_Fluechtling_PERM_Info; important = TRUE; permanent = TRUE; }; func int DIA_BDT_1032_Fluechtling_PERM_Condition() { if(Npc_IsInState(self,ZS_Talk)) { return TRUE; }; }; func void DIA_BDT_1032_Fluechtling_PERM_Info() { B_DIA_BDT_10XX_Fluechtling_Stimme6(); AI_StopProcessInfos(self); }; instance DIA_BDT_1033_Fluechtling_EXIT(C_Info) { npc = BDT_1033_Fluechtling; nr = 999; condition = DIA_BDT_1033_Fluechtling_EXIT_Condition; information = DIA_BDT_1033_Fluechtling_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_BDT_1033_Fluechtling_EXIT_Condition() { return TRUE; }; func void DIA_BDT_1033_Fluechtling_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_BDT_1033_Fluechtling_Tip2(C_Info) { npc = BDT_1033_Fluechtling; nr = 2; condition = DIA_BDT_1033_Fluechtling_Tip2_Condition; information = DIA_BDT_1033_Fluechtling_Tip2_Info; important = TRUE; }; func int DIA_BDT_1033_Fluechtling_Tip2_Condition() { if(Npc_IsInState(self,ZS_Talk)) { return TRUE; }; }; func void DIA_BDT_1033_Fluechtling_Tip2_Info() { AI_Output(self,other,"DIA_BDT_1033_Fluechtling_Tip2_07_00"); //(испуганно) Что тебе нужно от меня? B_GivePlayerXP(150); if(SCFoundMorgahard == FALSE) { Info_ClearChoices(DIA_BDT_1033_Fluechtling_Tip2); Info_AddChoice(DIA_BDT_1033_Fluechtling_Tip2,"Расслабься. Я просто хочу поговорить.",DIA_BDT_1033_Fluechtling_Tip2_frei); Info_AddChoice(DIA_BDT_1033_Fluechtling_Tip2,"Меня послал судья, чтобы я вернул тебя назад.",DIA_BDT_1033_Fluechtling_Tip2_Knast); Info_AddChoice(DIA_BDT_1033_Fluechtling_Tip2,"Где Моргахард, ваш главарь?",DIA_BDT_1033_Fluechtling_Tip2_Morgahard); }; }; func void DIA_BDT_1033_Fluechtling_Tip2_Morgahard() { AI_Output(other,self,"DIA_BDT_1033_Fluechtling_Tip2_Morgahard_15_00"); //Где Моргахард, ваш главарь? AI_Output(self,other,"DIA_BDT_1033_Fluechtling_Tip2_Morgahard_07_01"); //(испуганно) Мне не нужны проблемы. Иди к лендлорду. Он хотел спрятаться среди наемников. А меня оставь в покое. AI_StopProcessInfos(self); }; func void DIA_BDT_1033_Fluechtling_Tip2_Knast() { AI_Output(other,self,"DIA_BDT_1033_Fluechtling_Tip2_Knast_15_00"); //Меня послал судья, чтобы я вернул тебя назад. AI_Output(self,other,"DIA_BDT_1033_Fluechtling_Tip2_Knast_07_01"); //(вопит) НЕЕТ! AI_StopProcessInfos(self); B_Attack(self,other,AR_SuddenEnemyInferno,1); }; func void DIA_BDT_1033_Fluechtling_Tip2_frei() { AI_Output(other,self,"DIA_BDT_1033_Fluechtling_Tip2_frei_15_00"); //Расслабься. Я просто хочу поговорить. AI_Output(self,other,"DIA_BDT_1033_Fluechtling_Tip2_frei_07_01"); //Но я не хочу говорить с тобой. Проваливай! Info_AddChoice(DIA_BDT_1033_Fluechtling_Tip2,"Ты ведь напуган до смерти, нет?",DIA_BDT_1033_Fluechtling_Tip2_frei_verbrechen); }; func void DIA_BDT_1033_Fluechtling_Tip2_frei_verbrechen() { AI_Output(other,self,"DIA_BDT_1033_Fluechtling_Tip2_frei_verbrechen_15_00"); //Ты ведь напуган до смерти, нет? AI_Output(self,other,"DIA_BDT_1033_Fluechtling_Tip2_frei_verbrechen_07_01"); //Тебе легко говорить. Тебя не ждет виселица, если тебя поймают. }; instance DIA_BDT_1033_Fluechtling_PERM(C_Info) { npc = BDT_1033_Fluechtling; nr = 3; condition = DIA_BDT_1033_Fluechtling_PERM_Condition; information = DIA_BDT_1033_Fluechtling_PERM_Info; important = TRUE; permanent = TRUE; }; func int DIA_BDT_1033_Fluechtling_PERM_Condition() { if(Npc_IsInState(self,ZS_Talk)) { return TRUE; }; }; func void DIA_BDT_1033_Fluechtling_PERM_Info() { B_DIA_BDT_10XX_Fluechtling_Stimme7(); AI_StopProcessInfos(self); }; instance DIA_BDT_1034_Fluechtling_EXIT(C_Info) { npc = BDT_1034_Fluechtling; nr = 999; condition = DIA_BDT_1034_Fluechtling_EXIT_Condition; information = DIA_BDT_1034_Fluechtling_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_BDT_1034_Fluechtling_EXIT_Condition() { return TRUE; }; func void DIA_BDT_1034_Fluechtling_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_BDT_1034_Fluechtling_PERM(C_Info) { npc = BDT_1034_Fluechtling; nr = 2; condition = DIA_BDT_1034_Fluechtling_PERM_Condition; information = DIA_BDT_1034_Fluechtling_PERM_Info; important = TRUE; permanent = TRUE; }; func int DIA_BDT_1034_Fluechtling_PERM_Condition() { if(Npc_IsInState(self,ZS_Talk)) { return TRUE; }; }; func void DIA_BDT_1034_Fluechtling_PERM_Info() { B_DIA_BDT_10XX_Fluechtling_Stimme6(); AI_StopProcessInfos(self); }; instance DIA_BDT_1035_Fluechtling_EXIT(C_Info) { npc = BDT_1035_Fluechtling; nr = 999; condition = DIA_BDT_1035_Fluechtling_EXIT_Condition; information = DIA_BDT_1035_Fluechtling_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_BDT_1035_Fluechtling_EXIT_Condition() { return TRUE; }; func void DIA_BDT_1035_Fluechtling_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_BDT_1035_Fluechtling_PERM(C_Info) { npc = BDT_1035_Fluechtling; nr = 2; condition = DIA_BDT_1035_Fluechtling_PERM_Condition; information = DIA_BDT_1035_Fluechtling_PERM_Info; important = TRUE; permanent = TRUE; }; func int DIA_BDT_1035_Fluechtling_PERM_Condition() { if(Npc_IsInState(self,ZS_Talk)) { return TRUE; }; }; func void DIA_BDT_1035_Fluechtling_PERM_Info() { B_DIA_BDT_10XX_Fluechtling_Stimme7(); AI_StopProcessInfos(self); };
D
/* * Copyright 2015-2018 HuntLabs.cn * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ module hunt.sql.dialect.mysql.ast.expr.MySqlOrderingExpr; import hunt.sql.ast.SQLExpr; import hunt.sql.ast.SQLExprImpl; import hunt.sql.ast.SQLOrderingSpecification; import hunt.sql.dialect.mysql.visitor.MySqlASTVisitor; import hunt.sql.visitor.SQLASTVisitor; import hunt.sql.dialect.mysql.ast.expr.MySqlExpr; import hunt.sql.ast.SQLObject; import hunt.collection; public class MySqlOrderingExpr : SQLExprImpl , MySqlExpr { protected SQLExpr expr; protected SQLOrderingSpecification type; public this() { } public this(SQLExpr expr, SQLOrderingSpecification type){ super(); setExpr(expr); this.type = type; } override public MySqlOrderingExpr clone() { MySqlOrderingExpr x = new MySqlOrderingExpr(); if (expr !is null) { x.setExpr(expr.clone()); } x.type = type; return x; } override protected void accept0(SQLASTVisitor visitor) { MySqlASTVisitor mysqlVisitor = cast(MySqlASTVisitor) visitor; if (mysqlVisitor.visit(this)) { acceptChild(visitor, this.expr); } mysqlVisitor.endVisit(this); } override public List!SQLObject getChildren() { return Collections.singletonList!SQLObject(this.expr); } public SQLExpr getExpr() { return expr; } public void setExpr(SQLExpr expr) { if (expr !is null) { expr.setParent(this); } this.expr = expr; } public SQLOrderingSpecification getType() { return type; } public void setType(SQLOrderingSpecification type) { this.type = type; } override public bool opEquals(Object obj) { if (this == obj) { return true; } if (obj is null) { return false; } if ( typeid(this) != typeid(obj)) { return false; } MySqlOrderingExpr other = cast(MySqlOrderingExpr) obj; if (expr != other.expr) { return false; } if (type.name.length == 0) { if (other.type.name.length != 0) { return false; } } else if (!(type == other.type)) { return false; } return true; } override public size_t toHash() @trusted nothrow { int prime = 31; size_t result = 1; result = prime * result + ((expr is null) ? 0 : (cast(Object)expr).toHash()); result = prime * result + hashOf(type); return result; } }
D
// Copyright Ferdinand Majerech 2011. // Copyright Cameron Ross 2016. // 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) /** * YAML node _representer. Prepares YAML nodes for output. A tutorial can be * found $(LINK2 ../tutorials/custom_types.html, here). * * Code based on $(LINK2 http://www.pyyaml.org, PyYAML). */ module wyaml.representer; import std.algorithm; import std.array; import std.base64; import std.container; import std.conv; import std.datetime; import std.exception; import std.format; import std.math; import std.string; import std.typecons; import wyaml.exception; import wyaml.node; import wyaml.serializer; import wyaml.style; import wyaml.tag; ///Exception thrown on Representer errors. class RepresenterException : YAMLException { mixin ExceptionCtors; } /** * Represents YAML nodes as scalar, sequence and mapping nodes ready for output. * * This class is used to add support for dumping of custom data types. * * It can also override default node formatting styles for output. */ final class Representer { // Representer functions indexed by types. private Node function(ref Node, Representer)[TypeInfo] representers_; // Default style for scalar nodes. private ScalarStyle defaultScalarStyle_ = ScalarStyle.Invalid; // Default style for collection nodes. private CollectionStyle defaultCollectionStyle_ = CollectionStyle.Invalid; @disable bool opEquals(ref Representer) const; @disable int opCmp(ref Representer) const; /** * Construct a Representer. * * Params: useDefaultRepresenters = Use default representer functions * for default YAML types? This can be * disabled to use custom representer * functions for default types. */ public this(const Flag!"useDefaultRepresenters" useDefaultRepresenters = Yes.useDefaultRepresenters) @safe pure { if (!useDefaultRepresenters) { return; } addRepresenter!YAMLNull(&representNull); addRepresenter!string(&representString); addRepresenter!(ubyte[])(&representBytes); addRepresenter!bool(&representBool); addRepresenter!long(&representLong); addRepresenter!real(&representReal); addRepresenter!(Node[])(&representNodes); addRepresenter!(Node.Pair[])(&representPairs); addRepresenter!SysTime(&representSysTime); } ///Set default _style for scalars. If style is $(D ScalarStyle.Invalid), the _style is chosen automatically. public void defaultScalarStyle(ScalarStyle style) pure @safe nothrow { defaultScalarStyle_ = style; } ///Set default _style for collections. If style is $(D CollectionStyle.Invalid), the _style is chosen automatically. public void defaultCollectionStyle(CollectionStyle style) pure @safe nothrow { defaultCollectionStyle_ = style; } /** * Add a function to represent nodes with a specific data type. * * The representer function takes references to a $(D Node) storing the data * type and to the $(D Representer). It returns the represented node and may * throw a $(D RepresenterException). See the example for more information. * * * Only one function may be specified for one data type. Default data * types already have representer functions unless disabled in the * $(D Representer) constructor. * * * Structs and classes must implement the $(D opCmp()) operator for D:YAML * support. The signature of the operator that must be implemented * is $(D const int opCmp(ref const MyStruct s)) for structs where * $(I MyStruct) is the struct type, and $(D int opCmp(Object o)) for * classes. Note that the class $(D opCmp()) should not alter the compared * values - it is not const for compatibility reasons. * * Params: representer = Representer function to add. * * Examples: * * Representing a simple struct: * -------------------- * import std.string; * * import wyaml.all; * * struct MyStruct * { * int x, y, z; * * //Any D:YAML type must have a custom opCmp operator. * //This is used for ordering in mappings. * const int opCmp(ref const MyStruct s) * { * if(x != s.x){return x - s.x;} * if(y != s.y){return y - s.y;} * if(z != s.z){return z - s.z;} * return 0; * } * } * * Node representMyStruct(ref Node node, Representer representer) * { * //The node is guaranteed to be MyStruct as we add representer for MyStruct. * auto value = node.to!MyStruct; * //Using custom scalar format, x:y:z. * auto scalar = format("%s:%s:%s", value.x, value.y, value.z); * //Representing as a scalar, with custom tag to specify this data type. * return representer.representScalar("!mystruct.tag", scalar); * } * * void main() * { * auto dumper = Dumper("file.yaml"); * auto representer = new Representer; * representer.addRepresenter!MyStruct(&representMyStruct); * dumper.representer = representer; * dumper.dump(Node(MyStruct(1,2,3))); * } * -------------------- * * Representing a class: * -------------------- * import std.string; * * import wyaml.all; * * class MyClass * { * int x, y, z; * * this(int x, int y, int z) * { * this.x = x; * this.y = y; * this.z = z; * } * * //Any D:YAML type must have a custom opCmp operator. * //This is used for ordering in mappings. * override int opCmp(Object o) * { * MyClass s = cast(MyClass)o; * if(s is null){return -1;} * if(x != s.x){return x - s.x;} * if(y != s.y){return y - s.y;} * if(z != s.z){return z - s.z;} * return 0; * } * * ///Useful for Node.to!string . * override string toString() * { * return format("MyClass(%s, %s, %s)", x, y, z); * } * } * * //Same as representMyStruct. * Node representMyClass(ref Node node, Representer representer) * { * //The node is guaranteed to be MyClass as we add representer for MyClass. * auto value = node.to!MyClass; * //Using custom scalar format, x:y:z. * auto scalar = format("%s:%s:%s", value.x, value.y, value.z); * //Representing as a scalar, with custom tag to specify this data type. * return representer.representScalar("!myclass.tag", scalar); * } * * void main() * { * auto dumper = Dumper("file.yaml"); * auto representer = new Representer; * representer.addRepresenter!MyClass(&representMyClass); * dumper.representer = representer; * dumper.dump(Node(new MyClass(1,2,3))); * } * -------------------- */ public void addRepresenter(T)(Node function(ref Node, Representer) representer) @safe pure { assert((typeid(T) in representers_) is null, "Representer function for data type " ~ T.stringof ~ " already specified. Can't specify another one"); representers_[typeid(T)] = representer; } //If profiling shows a bottleneck on tag construction in these 3 methods, //we'll need to take Tag directly and have string based wrappers for //user code. /** * Represent a _scalar with specified _tag. * * This is used by representer functions that produce scalars. * * Params: tag = Tag of the _scalar. * scalar = Scalar value. * style = Style of the _scalar. If invalid, default _style will be used. * If the node was loaded before, previous _style will always be used. * * Returns: The represented node. * * Example: * -------------------- * struct MyStruct * { * int x, y, z; * * //Any D:YAML type must have a custom opCmp operator. * //This is used for ordering in mappings. * const int opCmp(ref const MyStruct s) * { * if(x != s.x){return x - s.x;} * if(y != s.y){return y - s.y;} * if(z != s.z){return z - s.z;} * return 0; * } * } * * Node representMyStruct(ref Node node, Representer representer) * { * auto value = node.to!MyStruct; * auto scalar = format("%s:%s:%s", value.x, value.y, value.z); * return representer.representScalar("!mystruct.tag", scalar); * } * -------------------- */ public Node representScalar(string tag, string scalar, ScalarStyle style = ScalarStyle.Invalid) { if (style == ScalarStyle.Invalid) { style = defaultScalarStyle_; } return Node.rawNode(Node.Value(scalar), Tag(tag), style, CollectionStyle.Invalid); } /** * Represent a _sequence with specified _tag, representing children first. * * This is used by representer functions that produce sequences. * * Params: tag = Tag of the _sequence. * sequence = Sequence of nodes. * style = Style of the _sequence. If invalid, default _style will be used. * If the node was loaded before, previous _style will always be used. * * Returns: The represented node. * * Throws: $(D RepresenterException) if a child could not be represented. * * Example: * -------------------- * struct MyStruct * { * int x, y, z; * * //Any D:YAML type must have a custom opCmp operator. * //This is used for ordering in mappings. * const int opCmp(ref const MyStruct s) * { * if(x != s.x){return x - s.x;} * if(y != s.y){return y - s.y;} * if(z != s.z){return z - s.z;} * return 0; * } * } * * Node representMyStruct(ref Node node, Representer representer) * { * auto value = node.to!MyStruct; * auto nodes = [Node(value.x), Node(value.y), Node(value.z)]; * //use flow style * return representer.representSequence("!mystruct.tag", nodes, * CollectionStyle.Flow); * } * -------------------- */ public Node representSequence(string tag, Node[] sequence, CollectionStyle style = CollectionStyle.Invalid) { Node[] value; value.length = sequence.length; auto bestStyle = CollectionStyle.Flow; foreach (idx, ref item; sequence) { value[idx] = representData(item); const isScalar = value[idx].isScalar; const s = value[idx].scalarStyle; if (!isScalar || (s != ScalarStyle.Invalid && s != ScalarStyle.Plain)) { bestStyle = CollectionStyle.Block; } } if (style == CollectionStyle.Invalid) { style = defaultCollectionStyle_ != CollectionStyle.Invalid ? defaultCollectionStyle_ : bestStyle; } return Node.rawNode(Node.Value(value), Tag(tag), ScalarStyle.Invalid, style); } /** * Represent a mapping with specified _tag, representing children first. * * This is used by representer functions that produce mappings. * * Params: tag = Tag of the mapping. * pairs = Key-value _pairs of the mapping. * style = Style of the mapping. If invalid, default _style will be used. * If the node was loaded before, previous _style will always be used. * * Returns: The represented node. * * Throws: $(D RepresenterException) if a child could not be represented. * * Example: * -------------------- * struct MyStruct * { * int x, y, z; * * //Any D:YAML type must have a custom opCmp operator. * //This is used for ordering in mappings. * const int opCmp(ref const MyStruct s) * { * if(x != s.x){return x - s.x;} * if(y != s.y){return y - s.y;} * if(z != s.z){return z - s.z;} * return 0; * } * } * * Node representMyStruct(ref Node node, Representer representer) * { * auto value = node.to!MyStruct; * auto pairs = [Node.Pair("x", value.x), * Node.Pair("y", value.y), * Node.Pair("z", value.z)]; * return representer.representMapping("!mystruct.tag", pairs); * } * -------------------- */ public Node representMapping(string tag, Node.Pair[] pairs, CollectionStyle style = CollectionStyle.Invalid) { Node.Pair[] value; value.length = pairs.length; auto bestStyle = CollectionStyle.Flow; foreach (idx, ref pair; pairs) { value[idx] = Node.Pair(representData(pair.key), representData(pair.value)); const keyScalar = value[idx].key.isScalar; const valScalar = value[idx].value.isScalar; const keyStyle = value[idx].key.scalarStyle; const valStyle = value[idx].value.scalarStyle; if (!keyScalar || (keyStyle != ScalarStyle.Invalid && keyStyle != ScalarStyle.Plain)) { bestStyle = CollectionStyle.Block; } if (!valScalar || (valStyle != ScalarStyle.Invalid && valStyle != ScalarStyle.Plain)) { bestStyle = CollectionStyle.Block; } } if (style == CollectionStyle.Invalid) { style = defaultCollectionStyle_ != CollectionStyle.Invalid ? defaultCollectionStyle_ : bestStyle; } return Node.rawNode(Node.Value(value), Tag(tag), ScalarStyle.Invalid, style); } //Represent a node based on its type, and return the represented result. package Node representData(ref Node data) @system { //User types are wrapped in YAMLObject. auto type = data.isUserType ? data.to!YAMLObject.type : data.type; enforce((type in representers_) !is null, new RepresenterException("No representer function for type " ~ type.text ~ " , cannot represent.")); Node result = representers_[type](data, this); //Override tag if specified. if (!data.tag_.isNull()) { result.tag_ = data.tag_; } //Remember style if this was loaded before. if (data.scalarStyle != ScalarStyle.Invalid) { result.scalarStyle = data.scalarStyle; } if (data.collectionStyle != CollectionStyle.Invalid) { result.collectionStyle = data.collectionStyle; } return result; } //Represent a node, serializing with specified Serializer. package void represent(T)(ref Serializer!T serializer, ref Node node) { auto data = representData(node); serializer.serialize(data); } } ///Represent a _null _node as a _null YAML value. Node representNull(ref Node node, Representer representer) { return representer.representScalar("tag:yaml.org,2002:null", "null"); } ///Represent a string _node as a string scalar. Node representString(ref Node node, Representer representer) { string value = node.to!string; return value is null ? representNull(node, representer) : representer.representScalar("tag:yaml.org,2002:str", value); } ///Represent a bytes _node as a binary scalar. Node representBytes(ref Node node, Representer representer) @system { const ubyte[] value = node.to!(ubyte[]); if (value is null) { return representNull(node, representer); } return representer.representScalar("tag:yaml.org,2002:binary", cast(string) Base64.encode(value), ScalarStyle.Literal); } ///Represent a bool _node as a bool scalar. Node representBool(ref Node node, Representer representer) { return representer.representScalar("tag:yaml.org,2002:bool", node.to!bool ? "true" : "false"); } ///Represent a long _node as an integer scalar. Node representLong(ref Node node, Representer representer) @system { return representer.representScalar("tag:yaml.org,2002:int", to!string(node.to!long)); } ///Represent a real _node as a floating point scalar. Node representReal(ref Node node, Representer representer) @system { real f = cast(real) node; string value = isNaN(f) ? ".nan" : f == real.infinity ? ".inf" : f == -1.0 * real.infinity ? "-.inf" : { auto a = appender!string(); formattedWrite(a, "%12f", f); return a.data.strip(); }(); return representer.representScalar("tag:yaml.org,2002:float", value); } ///Represent a SysTime _node as a timestamp. Node representSysTime(ref Node node, Representer representer) @system { return representer.representScalar("tag:yaml.org,2002:timestamp", node.to!SysTime.toISOExtString()); } ///Represent a sequence _node as sequence/set. Node representNodes(ref Node node, Representer representer) { auto nodes = node.to!(Node[]); if (!node.tag_.isNull() && node.tag_ == Tag("tag:yaml.org,2002:set")) { ///YAML sets are mapping with null values. Node.Pair[] pairs; pairs.length = nodes.length; Node dummy; foreach (idx, ref key; nodes) { pairs[idx] = Node.Pair(key, representNull(dummy, representer)); } return representer.representMapping(node.tag_.get, pairs); } else { return representer.representSequence("tag:yaml.org,2002:seq", nodes); } } ///Represent a mapping _node as map/ordered map/pairs. Node representPairs(ref Node node, Representer representer) @system { auto pairs = node.to!(Node.Pair[]); Node[] mapToSequence(Node.Pair[] pairs) { Node[] nodes; nodes.length = pairs.length; foreach (idx, ref pair; pairs) { nodes[idx] = representer.representMapping("tag:yaml.org,2002:map", [pair]); } return nodes; } if (!node.tag_.isNull() && node.tag_ == Tag("tag:yaml.org,2002:omap")) { enforce(!pairs.hasDuplicates, new RepresenterException("Duplicate entry in an ordered map")); return representer.representSequence(node.tag_.get, mapToSequence(pairs)); } else if (!node.tag_.isNull() && node.tag_ == Tag("tag:yaml.org,2002:pairs")) { return representer.representSequence(node.tag_.get, mapToSequence(pairs)); } else { enforce(!pairs.hasDuplicates, new RepresenterException("Duplicate entry in an unordered map")); return representer.representMapping("tag:yaml.org,2002:map", pairs); } } //Unittests //These should really all be encapsulated in unittests. private: version (unittest) { import wyaml.dumper; struct MyStruct { int x, y, z; int opCmp(ref const MyStruct s) const pure @safe nothrow { if (x != s.x) { return x - s.x; } if (y != s.y) { return y - s.y; } if (z != s.z) { return z - s.z; } return 0; } } Node representMyStruct(ref Node node, Representer representer) @system { //The node is guaranteed to be MyStruct as we add representer for MyStruct. auto value = node.to!MyStruct; //Using custom scalar format, x:y:z. auto scalar = format("%s:%s:%s", value.x, value.y, value.z); //Representing as a scalar, with custom tag to specify this data type. return representer.representScalar("!mystruct.tag", scalar); } Node representMyStructSeq(ref Node node, Representer representer) { auto value = node.to!MyStruct; auto nodes = [Node(value.x), Node(value.y), Node(value.z)]; return representer.representSequence("!mystruct.tag", nodes); } Node representMyStructMap(ref Node node, Representer representer) { auto value = node.to!MyStruct; auto pairs = [Node.Pair("x", value.x), Node.Pair("y", value.y), Node.Pair("z", value.z)]; return representer.representMapping("!mystruct.tag", pairs); } class MyClass { int x, y, z; this(int x, int y, int z) pure @safe nothrow { this.x = x; this.y = y; this.z = z; } override int opCmp(Object o) pure @safe nothrow { MyClass s = cast(MyClass) o; if (s is null) { return -1; } if (x != s.x) { return x - s.x; } if (y != s.y) { return y - s.y; } if (z != s.z) { return z - s.z; } return 0; } ///Useful for Node.to!string . override string toString() @safe { return format("MyClass(%s, %s, %s)", x, y, z); } } //Same as representMyStruct. Node representMyClass(ref Node node, Representer representer) @system { //The node is guaranteed to be MyClass as we add representer for MyClass. auto value = cast(MyClass) node; //Using custom scalar format, x:y:z. auto scalar = format("%s:%s:%s", value.x, value.y, value.z); //Representing as a scalar, with custom tag to specify this data type. return representer.representScalar("!myclass.tag", scalar); } } unittest { import std.outbuffer, std.range; foreach (r; [&representMyStruct, &representMyStructSeq, &representMyStructMap]) { auto dumper = Dumper(); auto representer = new Representer; representer.addRepresenter!MyStruct(r); dumper.representer = representer; dumper.dump(new OutBuffer, Node(MyStruct(1, 2, 3))); } } unittest { import std.outbuffer, std.range; auto dumper = Dumper(); auto representer = new Representer; representer.addRepresenter!MyClass(&representMyClass); dumper.representer = representer; dumper.dump(new OutBuffer, Node(new MyClass(1, 2, 3))); }
D
/Users/Nobuyuki/Desktop/SolarSystem/Build/Intermediates/SolarSystem.build/Debug-iphonesimulator/SolarSystem.build/Objects-normal/x86_64/MyTableViewController_2.o : /Users/Nobuyuki/Desktop/SolarSystem/SolarSystem/MyTableViewController_Settings.swift /Users/Nobuyuki/Desktop/SolarSystem/SolarSystem/MyTableViewCell.swift /Users/Nobuyuki/Desktop/SolarSystem/SolarSystem/MyTableViewController.swift /Users/Nobuyuki/Desktop/SolarSystem/SolarSystem/MyTableViewController_2.swift /Users/Nobuyuki/Desktop/SolarSystem/SolarSystem/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreImage.swiftmodule /Users/Nobuyuki/Desktop/SolarSystem/Build/Intermediates/SolarSystem.build/Debug-iphonesimulator/SolarSystem.build/Objects-normal/x86_64/MyTableViewController_2~partial.swiftmodule : /Users/Nobuyuki/Desktop/SolarSystem/SolarSystem/MyTableViewController_Settings.swift /Users/Nobuyuki/Desktop/SolarSystem/SolarSystem/MyTableViewCell.swift /Users/Nobuyuki/Desktop/SolarSystem/SolarSystem/MyTableViewController.swift /Users/Nobuyuki/Desktop/SolarSystem/SolarSystem/MyTableViewController_2.swift /Users/Nobuyuki/Desktop/SolarSystem/SolarSystem/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreImage.swiftmodule /Users/Nobuyuki/Desktop/SolarSystem/Build/Intermediates/SolarSystem.build/Debug-iphonesimulator/SolarSystem.build/Objects-normal/x86_64/MyTableViewController_2~partial.swiftdoc : /Users/Nobuyuki/Desktop/SolarSystem/SolarSystem/MyTableViewController_Settings.swift /Users/Nobuyuki/Desktop/SolarSystem/SolarSystem/MyTableViewCell.swift /Users/Nobuyuki/Desktop/SolarSystem/SolarSystem/MyTableViewController.swift /Users/Nobuyuki/Desktop/SolarSystem/SolarSystem/MyTableViewController_2.swift /Users/Nobuyuki/Desktop/SolarSystem/SolarSystem/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreImage.swiftmodule
D
// Copyright Juan Manuel Cabo 2012. // Copyright Mario Kröplin 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) module dunit.framework; import dunit.assertion; import dunit.attributes; import dunit.color; import core.runtime; import core.time; import std.algorithm; import std.array; import std.conv; import std.stdio; import std.string; public import std.typetuple; struct TestClass { string name; string[] tests; Disabled[string] disabled; Tag[][string] tags; Object function() create; void function() beforeAll; void function(Object o) beforeEach; void delegate(Object o, string test) test; void function(Object o) afterEach; void function() afterAll; } TestClass[] testClasses; struct TestSelection { TestClass testClass; string[] tests; } mixin template Main() { int main (string[] args) { return dunit_main(args); } } /** * Runs the tests according to the command-line arguments. */ public int dunit_main(string[] args) { import std.getopt : config, defaultGetoptPrinter, getopt, GetoptResult; import std.path : baseName; import std.regex : match; GetoptResult result; string[] filters = null; string[] includeTags = null; string[] excludeTags = null; bool list = false; string report = null; bool verbose = false; bool xml = false; string testSuiteName = "dunit"; try { result = getopt(args, config.caseSensitive, "list|l", "Display the test functions, then exit", &list, "filter|f", "Select test functions matching the regular expression", &filters, "include|t", "Provide a tag to be included in the test run", &includeTags, "exclude|T", "Provide a tag to be excluded from the test run", &excludeTags, "verbose|v", "Display more information as the tests are run", &verbose, "xml", "Display progressive XML output", &xml, "report", "Write JUnit-style XML test report", &report, "testsuite", "Provide a test-suite name for the JUnit-style XML test report", &testSuiteName, ); } catch (Exception exception) { stderr.writeln("error: ", exception.msg); return 1; } if (result.helpWanted) { writefln("Usage: %s [options]", args.empty ? "testrunner" : baseName(args[0])); writeln("Run the functions with @Test attribute of all classes that mix in UnitTest."); defaultGetoptPrinter("Options:", result.options); return 0; } testClasses = unitTestFunctions ~ testClasses; TestSelection[] testSelections = null; if (filters is null) { foreach (testClass; testClasses) testSelections ~= TestSelection(testClass, testClass.tests); } else { foreach (filter; filters) { foreach (testClass; testClasses) { foreach (test; testClass.tests) { string fullyQualifiedName = testClass.name ~ '.' ~ test; if (match(fullyQualifiedName, filter)) { auto foundTestSelections = testSelections.find!"a.testClass.name == b"(testClass.name); if (foundTestSelections.empty) testSelections ~= TestSelection(testClass, [test]); else foundTestSelections.front.tests ~= test; } } } } } if (!includeTags.empty) { testSelections = testSelections .select!"!a.findAmong(b).empty"(includeTags) .array; } if (!excludeTags.empty) { testSelections = testSelections .select!"a.findAmong(b).empty"(excludeTags) .array; } if (list) { foreach (testSelection; testSelections) with (testSelection) { foreach (test; tests) { string fullyQualifiedName = testClass.name ~ '.' ~ test; writeln(fullyQualifiedName); } } return 0; } if (xml) { testListeners ~= new XmlReporter(); } else { if (verbose) testListeners ~= new DetailReporter(); else testListeners ~= new IssueReporter(); } if (!report.empty) testListeners ~= new ReportReporter(report, testSuiteName); auto reporter = new ResultReporter(); testListeners ~= reporter; runTests(testSelections, testListeners); if (!xml) reporter.write(); return (reporter.errors > 0) ? 1 : (reporter.failures > 0) ? 2 : 0; } private auto select(alias pred)(TestSelection[] testSelections, string[] tags) { import std.functional : binaryFun; bool matches(TestClass testClass, string test) { auto testTags = testClass.tags.get(test, null) .map!(tag => tag.name); return binaryFun!pred(testTags, tags); } TestSelection select(TestSelection testSelection) { string[] tests = testSelection.tests .filter!(test => matches(testSelection.testClass, test)) .array; return TestSelection(testSelection.testClass, tests); } return testSelections .map!(testSelection => select(testSelection)) .filter!(testSelection => !testSelection.tests.empty); } private TestSelection[] restrict(alias pred)(TestSelection[] testSelections, string[] tags) { TestSelection restrict(TestSelection testSelection) { string[] tests = testSelection.tests .filter!(test => pred(testSelection.testClass.tags.get(test, null), tags)) .array; return TestSelection(testSelection.testClass, tests); } return testSelections .map!(testSelection => restrict(testSelection)) .filter!(testSelection => !testSelection.tests.empty) .array; } public bool matches(Tag[] tags, string[] choices) { return tags.any!(tag => choices.canFind(tag.name)); } public void runTests(TestSelection[] testSelections, TestListener[] testListeners) in { assert(all!"a !is null"(testListeners)); } body { bool tryRun(string phase, void delegate() action) { try { static if (__traits(compiles, { import unit_threaded.should : UnitTestException; })) { import unit_threaded.should : UnitTestException; try { action(); } catch (UnitTestException exception) { // convert exception to "fix" the message format throw new AssertException('\n' ~ exception.msg, exception.file, exception.line, exception); } } else { action(); } return true; } catch (AssertException exception) { foreach (testListener; testListeners) testListener.addFailure(phase, exception); return false; } catch (Throwable throwable) { foreach (testListener; testListeners) testListener.addError(phase, throwable); return false; } } foreach (testSelection; testSelections) with (testSelection) { foreach (testListener; testListeners) testListener.enterClass(testClass.name); bool initialized = false; bool setUp = false; // run each @Test of the class foreach (test; tests) { bool success = false; foreach (testListener; testListeners) testListener.enterTest(test); scope (exit) foreach (testListener; testListeners) testListener.exitTest(success); if (test in testClass.disabled || (initialized && !setUp)) { string reason = testClass.disabled.get(test, Disabled.init).reason; foreach (testListener; testListeners) testListener.skip(reason); continue; } // use lazy initialization to run @BeforeAll // (failure or error can only be reported for a given test) if (!initialized) { setUp = tryRun("@BeforeAll", { testClass.beforeAll(); }); initialized = true; } Object testObject = null; if (setUp) { success = tryRun("this", { testObject = testClass.create(); }); } if (success) { success = tryRun("@BeforeEach", { testClass.beforeEach(testObject); }); } if (success) { success = tryRun("@Test", { testClass.test(testObject, test); }); // run @AfterEach even if @Test failed success = tryRun("@AfterEach", { testClass.afterEach(testObject); }) && success; } } if (setUp) { tryRun("@AfterAll", { testClass.afterAll(); }); } } foreach (testListener; testListeners) testListener.exit(); } private __gshared TestListener[] testListeners = null; /** * Registered implementations of this interface will be notified * about events that occur during the test run. */ interface TestListener { public void enterClass(string className); public void enterTest(string test); public void skip(string reason); public void addFailure(string phase, AssertException exception); public void addError(string phase, Throwable throwable); public void exitTest(bool success); public void exit(); public static string prettyOrigin(string className, string test, string phase) { const origin = prettyOrigin(test, phase); if (origin.startsWith('@')) return className ~ origin; else return className ~ '.' ~ origin; } public static string prettyOrigin(string test, string phase) { switch (phase) { case "@Test": return test; case "this": case "@BeforeAll": case "@AfterAll": return phase; default: return test ~ phase; } } } /** * Writes a "progress bar", followed by the errors and the failures. */ class IssueReporter : TestListener { private struct Issue { string testClass; string test; string phase; Throwable throwable; } private Issue[] failures = null; private Issue[] errors = null; private string className; private string test; public override void enterClass(string className) { this.className = className; } public override void enterTest(string test) { this.test = test; } public override void skip(string reason) { writec(Color.onYellow, "S"); } public override void addFailure(string phase, AssertException exception) { this.failures ~= Issue(this.className, this.test, phase, exception); writec(Color.onRed, "F"); } public override void addError(string phase, Throwable throwable) { this.errors ~= Issue(this.className, this.test, phase, throwable); writec(Color.onRed, "E"); } public override void exitTest(bool success) { if (success) writec(Color.onGreen, "."); } public override void exit() { writeln(); // report errors if (!this.errors.empty) { writeln(); if (this.errors.length == 1) writeln("There was 1 error:"); else writefln("There were %d errors:", this.errors.length); foreach (i, issue; this.errors) { writefln("%d) %s", i + 1, prettyOrigin(issue.testClass, issue.test, issue.phase)); writeln(issue.throwable.description); stdout.lockingTextWriter.description(issue.throwable.info); } } // report failures if (!this.failures.empty) { writeln(); if (this.failures.length == 1) writeln("There was 1 failure:"); else writefln("There were %d failures:", this.failures.length); foreach (i, issue; this.failures) { writefln("%d) %s", i + 1, prettyOrigin(issue.testClass, issue.test, issue.phase)); writeln(issue.throwable.description); } } } } /** * Writes a detailed test report. */ class DetailReporter : TestListener { private string test; private TickDuration startTime; public override void enterClass(string className) { writeln(className); } public override void enterTest(string test) { this.test = test; this.startTime = TickDuration.currSystemTick(); } public override void skip(string reason) { writec(Color.yellow, " SKIP: "); writeln(this.test); if (!reason.empty) writeln(indent(format(`"%s"`, reason))); } public override void addFailure(string phase, AssertException exception) { writec(Color.red, " FAILURE: "); writeln(prettyOrigin(this.test, phase)); writeln(indent(exception.description)); } public override void addError(string phase, Throwable throwable) { writec(Color.red, " ERROR: "); writeln(prettyOrigin(this.test, phase)); writeln(indent(throwable.description)); stdout.lockingTextWriter.description(throwable.info); } public override void exitTest(bool success) { if (success) { const elapsed = (TickDuration.currSystemTick() - this.startTime).usecs() / 1_000.0; writec(Color.green, " OK: "); writefln("%6.2f ms %s", elapsed, this.test); } } public override void exit() { // do nothing } private static string indent(string s, string indent = " ") { return s.splitLines(KeepTerminator.yes).map!(line => indent ~ line).join; } } /** * Writes a summary about the tests run. */ class ResultReporter : TestListener { private uint tests = 0; private uint failures = 0; private uint errors = 0; private uint skips = 0; public override void enterClass(string className) { // do nothing } public override void enterTest(string test) { ++this.tests; } public override void skip(string reason) { ++this.skips; } public override void addFailure(string phase, AssertException exception) { ++this.failures; } public override void addError(string phase, Throwable throwable) { ++this.errors; } public override void exitTest(bool success) { // do nothing } public override void exit() { // do nothing } public void write() const { writeln(); writefln("Tests run: %d, Failures: %d, Errors: %d, Skips: %d", this.tests, this.failures, this.errors, this.skips); if (this.failures + this.errors == 0) { writec(Color.onGreen, "OK"); writeln(); } else { writec(Color.onRed, "NOT OK"); writeln(); } } } /** * Writes progressive XML output. */ class XmlReporter : TestListener { import std.xml : Document, Element, Tag; private Document testCase; private string className; private TickDuration startTime; public override void enterClass(string className) { this.className = className; } public override void enterTest(string test) { this.testCase = new Document(new Tag("testcase")); this.testCase.tag.attr["classname"] = this.className; this.testCase.tag.attr["name"] = test; this.startTime = TickDuration.currSystemTick(); } public override void skip(string reason) { auto element = new Element("skipped"); element.tag.attr["message"] = reason; this.testCase ~= element; } public override void addFailure(string phase, AssertException exception) { auto element = new Element("failure"); const message = format("%s %s", phase, exception.description); element.tag.attr["message"] = message; this.testCase ~= element; } public override void addError(string phase, Throwable throwable) { auto element = new Element("error", throwable.info.toString); const message = format("%s %s", phase, throwable.description); element.tag.attr["message"] = message; this.testCase ~= element; } public override void exitTest(bool success) { const elapsed = (TickDuration.currSystemTick() - this.startTime).msecs() / 1_000.0; this.testCase.tag.attr["time"] = format("%.3f", elapsed); const report = join(this.testCase.pretty(4), "\n"); writeln(report); } public override void exit() { // do nothing } } /** * Writes a JUnit-style XML test report. */ class ReportReporter : TestListener { import std.xml : Document, Element, Tag; private const string fileName; private Document document; private Element testSuite; private Element testCase; private string className; private TickDuration startTime; public this(string fileName, string testSuiteName) { this.fileName = fileName; this.document = new Document(new Tag("testsuites")); this.testSuite = new Element("testsuite"); this.testSuite.tag.attr["name"] = testSuiteName; this.document ~= this.testSuite; } public override void enterClass(string className) { this.className = className; } public override void enterTest(string test) { this.testCase = new Element("testcase"); this.testCase.tag.attr["classname"] = this.className; this.testCase.tag.attr["name"] = test; this.testSuite ~= this.testCase; this.startTime = TickDuration.currSystemTick(); } public override void skip(string reason) { // avoid wrong interpretation of more than one child if (this.testCase.elements.empty) { auto element = new Element("skipped"); element.tag.attr["message"] = reason; this.testCase ~= element; } } public override void addFailure(string phase, AssertException exception) { // avoid wrong interpretation of more than one child if (this.testCase.elements.empty) { auto element = new Element("failure"); const message = format("%s %s", phase, exception.description); element.tag.attr["message"] = message; this.testCase ~= element; } } public override void addError(string phase, Throwable throwable) { // avoid wrong interpretation of more than one child if (this.testCase.elements.empty) { auto element = new Element("error", throwable.info.toString); const message = format("%s %s", phase, throwable.description); element.tag.attr["message"] = message; this.testCase ~= element; } } public override void exitTest(bool success) { const elapsed = (TickDuration.currSystemTick() - this.startTime).msecs() / 1_000.0; this.testCase.tag.attr["time"] = format("%.3f", elapsed); } public override void exit() { import std.file : mkdirRecurse, write; import std.path: dirName; const report = join(this.document.pretty(4), "\n") ~ "\n"; mkdirRecurse(this.fileName.dirName); write(this.fileName, report); } } shared static this() { Runtime.moduleUnitTester = () => true; } private TestClass[] unitTestFunctions() { TestClass[] testClasses = null; TestClass testClass; testClass.tests = ["unittest"]; testClass.create = () => null; testClass.beforeAll = () {}; testClass.beforeEach = (o) {}; testClass.afterEach = (o) {}; testClass.afterAll = () {}; foreach (moduleInfo; ModuleInfo) { if (moduleInfo) { auto unitTest = moduleInfo.unitTest; if (unitTest) { testClass.name = moduleInfo.name; testClass.test = (o, test) { unitTest(); }; testClasses ~= testClass; } } } return testClasses; } /** * Registers a class as a unit test. */ mixin template UnitTest() { private static this() { TestClass testClass; testClass.name = this.classinfo.name; testClass.tests = _members!(typeof(this), Test); testClass.disabled = _attributeByMember!(typeof(this), Disabled); testClass.tags = _attributesByMember!(typeof(this), Tag); testClass.create = () { mixin("return new " ~ typeof(this).stringof ~ "();"); }; testClass.beforeAll = () { mixin(_staticSequence(_members!(typeof(this), BeforeAll))); }; testClass.beforeEach = (Object o) { mixin(_sequence(_members!(typeof(this), BeforeEach))); }; testClass.test = (Object o, string name) { mixin(_choice(_members!(typeof(this), Test))); }; testClass.afterEach = (Object o) { mixin(_sequence(_members!(typeof(this), AfterEach))); }; testClass.afterAll = () { mixin(_staticSequence(_members!(typeof(this), AfterAll))); }; testClasses ~= testClass; } private static string _choice(in string[] memberFunctions) { string block = "auto testObject = cast(" ~ typeof(this).stringof ~ ") o;\n"; block ~= "switch (name)\n{\n"; foreach (memberFunction; memberFunctions) block ~= `case "` ~ memberFunction ~ `": testObject.` ~ memberFunction ~ "(); break;\n"; block ~= "default: break;\n}\n"; return block; } private static string _staticSequence(in string[] memberFunctions) { string block = null; foreach (memberFunction; memberFunctions) block ~= memberFunction ~ "();\n"; return block; } private static string _sequence(in string[] memberFunctions) { string block = "auto testObject = cast(" ~ typeof(this).stringof ~ ") o;\n"; foreach (memberFunction; memberFunctions) block ~= "testObject." ~ memberFunction ~ "();\n"; return block; } template _members(T, alias attribute) { static string[] helper() { import std.meta : AliasSeq; import std.traits : hasUDA; string[] members; foreach (name; __traits(allMembers, T)) { static if (__traits(compiles, __traits(getMember, T, name))) { alias member = AliasSeq!(__traits(getMember, T, name)); static if (__traits(compiles, hasUDA!(member, attribute))) { static if (hasUDA!(member, attribute)) members ~= name; } } } return members; } enum _members = helper; } template _attributeByMember(T, Attribute) { static Attribute[string] helper() { import std.format : format; import std.meta : AliasSeq; Attribute[string] attributeByMember; foreach (name; __traits(allMembers, T)) { static if (__traits(compiles, __traits(getMember, T, name))) { alias member = AliasSeq!(__traits(getMember, T, name)); static if (__traits(compiles, _getUDAs!(member, Attribute))) { alias attributes = _getUDAs!(member, Attribute); static if (attributes.length > 0) { static assert(attributes.length == 1, format("%s.%s should not have more than one attribute @%s", T.stringof, name, Attribute.stringof)); attributeByMember[name] = attributes[0]; } } } } return attributeByMember; } enum _attributeByMember = helper; } template _attributesByMember(T, Attribute) { static Attribute[][string] helper() { import std.meta : AliasSeq; Attribute[][string] attributesByMember; foreach (name; __traits(allMembers, T)) { static if (__traits(compiles, __traits(getMember, T, name))) { alias member = AliasSeq!(__traits(getMember, T, name)); static if (__traits(compiles, _getUDAs!(member, Attribute))) { alias attributes = _getUDAs!(member, Attribute); static if (attributes.length > 0) attributesByMember[name] = attributes; } } } return attributesByMember; } enum _attributesByMember = helper; } // Gets user-defined attributes, but also gets Attribute.init for @Attribute. template _getUDAs(alias member, Attribute) { static auto helper() { Attribute[] attributes; static if (__traits(compiles, __traits(getAttributes, member))) { foreach (attribute; __traits(getAttributes, member)) { static if (is(attribute == Attribute)) attributes ~= Attribute.init; static if (is(typeof(attribute) == Attribute)) attributes ~= attribute; } } return attributes; } enum _getUDAs = helper; } }
D
/* crypto/err/err.h */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as * the following conditions are aheared to. The following conditions * apply to all code found in this distribution, be it the RC4, RSA, * lhash, DES, etc., code; not just the SSL code. The SSL documentation * included with this distribution is covered by the same copyright terms * except that the holder is Tim Hudson (tjh@cryptsoft.com). * * Copyright remains Eric Young's, and as such any Copyright notices in * the code are not to be removed. * If this package is used in a product, Eric Young should be given attribution * as the author of the parts of the library used. * This can be in the form of a textual message at program startup or * in documentation (online or textual) provided with the package. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * "This product includes cryptographic software written by * Eric Young (eay@cryptsoft.com)" * The word 'cryptographic' can be left out if the rouines from the library * being used are not cryptographic related :-). * 4. If you include any Windows specific code (or a derivative thereof) from * the apps directory (application code) you must include an acknowledgement: * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" * * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR 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. * * The licence and distribution terms for any publically available version or * derivative of this code cannot be changed. i.e. this code cannot simply be * copied and put under another distribution licence * [including the GNU Public Licence.] */ /* ==================================================================== * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. All advertising materials mentioning features or use of this * software must display the following acknowledgment: * "This product includes software developed by the OpenSSL Project * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" * * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to * endorse or promote products derived from this software without * prior written permission. For written permission, please contact * openssl-core@openssl.org. * * 5. Products derived from this software may not be called "OpenSSL" * nor may "OpenSSL" appear in their names without prior written * permission of the OpenSSL Project. * * 6. Redistributions of any form whatsoever must retain the following * acknowledgment: * "This product includes software developed by the OpenSSL Project * for use in the OpenSSL Toolkit (http://www.openssl.org/)" * * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY * EXPRESSED 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 OpenSSL PROJECT OR * ITS 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. * ==================================================================== * * This product includes cryptographic software written by Eric Young * (eay@cryptsoft.com). This product includes software written by Tim * Hudson (tjh@cryptsoft.com). * */ module deimos.openssl.err; import deimos.openssl._d_util; public import deimos.openssl.e_os2; version(OPENSSL_NO_FP_API) {} else { import core.stdc.stdio; import core.stdc.stdlib; } public import deimos.openssl.ossl_typ; version(OPENSSL_NO_BIO) {} else { public import deimos.openssl.bio; } version(OPENSSL_NO_LHASH) {} else { public import deimos.openssl.lhash; } extern (C): nothrow: // #ifndef OPENSSL_NO_ERR // #define ERR_PUT_error(a,b,c,d,e) ERR_put_error(a,b,c,d,e) // #else // #define ERR_PUT_error(a,b,c,d,e) ERR_put_error(a,b,c,NULL,0) // #endif version (OPENSSL_NO_ERR) { void ERR_PUT_error()(int a, int b,int c,const(char)* d,int e) { ERR_put_error(a,b,c,null,0); } } else { alias ERR_put_error ERR_PUT_error; } // #include <errno.h> enum ERR_TXT_MALLOCED = 0x01; enum ERR_TXT_STRING = 0x02; enum ERR_FLAG_MARK = 0x01; enum ERR_NUM_ERRORS = 16; struct err_state_st { CRYPTO_THREADID tid; int err_flags[ERR_NUM_ERRORS]; c_ulong err_buffer[ERR_NUM_ERRORS]; char* err_data[ERR_NUM_ERRORS]; int err_data_flags[ERR_NUM_ERRORS]; const(char)* err_file[ERR_NUM_ERRORS]; int err_line[ERR_NUM_ERRORS]; int top,bottom; } alias err_state_st ERR_STATE; /* library */ enum ERR_LIB_NONE = 1; enum ERR_LIB_SYS = 2; enum ERR_LIB_BN = 3; enum ERR_LIB_RSA = 4; enum ERR_LIB_DH = 5; enum ERR_LIB_EVP = 6; enum ERR_LIB_BUF = 7; enum ERR_LIB_OBJ = 8; enum ERR_LIB_PEM = 9; enum ERR_LIB_DSA = 10; enum ERR_LIB_X509 = 11; /* enum ERR_LIB_METH = 12; */ enum ERR_LIB_ASN1 = 13; enum ERR_LIB_CONF = 14; enum ERR_LIB_CRYPTO = 15; enum ERR_LIB_EC = 16; enum ERR_LIB_SSL = 20; /* enum ERR_LIB_SSL23 = 21; */ /* enum ERR_LIB_SSL2 = 22; */ /* enum ERR_LIB_SSL3 = 23; */ /* enum ERR_LIB_RSAREF = 30; */ /* enum ERR_LIB_PROXY = 31; */ enum ERR_LIB_BIO = 32; enum ERR_LIB_PKCS7 = 33; enum ERR_LIB_X509V3 = 34; enum ERR_LIB_PKCS12 = 35; enum ERR_LIB_RAND = 36; enum ERR_LIB_DSO = 37; enum ERR_LIB_ENGINE = 38; enum ERR_LIB_OCSP = 39; enum ERR_LIB_UI = 40; enum ERR_LIB_COMP = 41; enum ERR_LIB_ECDSA = 42; enum ERR_LIB_ECDH = 43; enum ERR_LIB_STORE = 44; enum ERR_LIB_FIPS = 45; enum ERR_LIB_CMS = 46; enum ERR_LIB_TS = 47; enum ERR_LIB_HMAC = 48; enum ERR_LIB_JPAKE = 49; enum ERR_LIB_USER = 128; void SYSerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_SYS,f,r,file,line); } void BNerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_BN,f,r,file,line); } void RSAerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_RSA,f,r,file,line); } void DHerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_DH,f,r,file,line); } void EVPerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_EVP,f,r,file,line); } void BUFerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_BUF,f,r,file,line); } void OBJerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_OBJ,f,r,file,line); } void PEMerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_PEM,f,r,file,line); } void DSAerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_DSA,f,r,file,line); } void X509err_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_X509,f,r,file,line); } void ASN1err_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_ASN1,f,r,file,line); } void CONFerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_CONF,f,r,file,line); } void CRYPTOerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_CRYPTO,f,r,file,line); } void ECerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_EC,f,r,file,line); } void SSLerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_SSL,f,r,file,line); } void BIOerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_BIO,f,r,file,line); } void PKCS7err_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_PKCS7,f,r,file,line); } void X509V3err_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_X509V3,f,r,file,line); } void PKCS12err_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_PKCS12,f,r,file,line); } void RANDerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_RAND,f,r,file,line); } void DSOerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_DSO,f,r,file,line); } void ENGINEerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_ENGINE,f,r,file,line); } void OCSPerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_OCSP,f,r,file,line); } void UIerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_UI,f,r,file,line); } void COMPerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_COMP,f,r,file,line); } void ECDSAerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_ECDSA,f,r,file,line); } void ECDHerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_ECDH,f,r,file,line); } void STOREerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_STORE,f,r,file,line); } void FIPSerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_FIPS,f,r,file,line); } void CMSerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_CMS,f,r,file,line); } void TSerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_TS,f,r,file,line); } void HMACerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_HMAC,f,r,file,line); } void JPAKEerr_err(string file = __FILE__, size_t line = __LINE__)(int f, int r){ ERR_PUT_error(ERR_LIB_JPAKE,f,r,file,line); } /* Borland C seems too stupid to be able to shift and do longs in * the pre-processor :-( */ auto ERR_PACK()(c_ulong l, c_ulong f, c_ulong r) { return ((((l)&0xffL)*0x1000000)| (((f)&0xfffL)*0x1000)| (((r)&0xfffL))); } auto ERR_GET_LIB()(c_ulong l) { return cast(int)(((l)>>24L)&0xffL); } auto ERR_GET_FUNC()(c_ulong l) { return cast(int)(((l)>>12L)&0xfffL); } auto ERR_GET_REASON()(c_ulong l) { return cast(int)((l)&0xfffL); } auto ERR_FATAL_ERROR()(c_ulong l) { return cast(int)((l)&ERR_R_FATAL); } /* OS functions */ enum SYS_F_FOPEN = 1; enum SYS_F_CONNECT = 2; enum SYS_F_GETSERVBYNAME = 3; enum SYS_F_SOCKET = 4; enum SYS_F_IOCTLSOCKET = 5; enum SYS_F_BIND = 6; enum SYS_F_LISTEN = 7; enum SYS_F_ACCEPT = 8; enum SYS_F_WSASTARTUP = 9; /* Winsock stuff */ enum SYS_F_OPENDIR = 10; enum SYS_F_FREAD = 11; /* reasons */ alias ERR_LIB_SYS ERR_R_SYS_LIB ; /* 2 */ alias ERR_LIB_BN ERR_R_BN_LIB ; /* 3 */ alias ERR_LIB_RSA ERR_R_RSA_LIB ; /* 4 */ alias ERR_LIB_DH ERR_R_DH_LIB ; /* 5 */ alias ERR_LIB_EVP ERR_R_EVP_LIB ; /* 6 */ alias ERR_LIB_BUF ERR_R_BUF_LIB ; /* 7 */ alias ERR_LIB_OBJ ERR_R_OBJ_LIB ; /* 8 */ alias ERR_LIB_PEM ERR_R_PEM_LIB ; /* 9 */ alias ERR_LIB_DSA ERR_R_DSA_LIB ; /* 10 */ alias ERR_LIB_X509 ERR_R_X509_LIB ; /* 11 */ alias ERR_LIB_ASN1 ERR_R_ASN1_LIB ; /* 13 */ alias ERR_LIB_CONF ERR_R_CONF_LIB ; /* 14 */ alias ERR_LIB_CRYPTO ERR_R_CRYPTO_LIB ; /* 15 */ alias ERR_LIB_EC ERR_R_EC_LIB ; /* 16 */ alias ERR_LIB_SSL ERR_R_SSL_LIB ; /* 20 */ alias ERR_LIB_BIO ERR_R_BIO_LIB ; /* 32 */ alias ERR_LIB_PKCS7 ERR_R_PKCS7_LIB ; /* 33 */ alias ERR_LIB_X509V3 ERR_R_X509V3_LIB ; /* 34 */ alias ERR_LIB_PKCS12 ERR_R_PKCS12_LIB ; /* 35 */ alias ERR_LIB_RAND ERR_R_RAND_LIB ; /* 36 */ alias ERR_LIB_DSO ERR_R_DSO_LIB ; /* 37 */ alias ERR_LIB_ENGINE ERR_R_ENGINE_LIB ; /* 38 */ alias ERR_LIB_OCSP ERR_R_OCSP_LIB ; /* 39 */ alias ERR_LIB_UI ERR_R_UI_LIB ; /* 40 */ alias ERR_LIB_COMP ERR_R_COMP_LIB ; /* 41 */ alias ERR_LIB_ECDSA ERR_R_ECDSA_LIB ; /* 42 */ alias ERR_LIB_ECDH ERR_R_ECDH_LIB ; /* 43 */ alias ERR_LIB_STORE ERR_R_STORE_LIB ; /* 44 */ alias ERR_LIB_TS ERR_R_TS_LIB ; /* 45 */ enum ERR_R_NESTED_ASN1_ERROR = 58; enum ERR_R_BAD_ASN1_OBJECT_HEADER = 59; enum ERR_R_BAD_GET_ASN1_OBJECT_CALL = 60; enum ERR_R_EXPECTING_AN_ASN1_SEQUENCE = 61; enum ERR_R_ASN1_LENGTH_MISMATCH = 62; enum ERR_R_MISSING_ASN1_EOS = 63; /* fatal error */ enum ERR_R_FATAL = 64; enum ERR_R_MALLOC_FAILURE = (1|ERR_R_FATAL); enum ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED = (2|ERR_R_FATAL); enum ERR_R_PASSED_NULL_PARAMETER = (3|ERR_R_FATAL); enum ERR_R_INTERNAL_ERROR = (4|ERR_R_FATAL); enum ERR_R_DISABLED = (5|ERR_R_FATAL); /* 99 is the maximum possible ERR_R_... code, higher values * are reserved for the individual libraries */ struct ERR_string_data_st { c_ulong error; const(char)* string; } alias ERR_string_data_st ERR_STRING_DATA; void ERR_put_error(int lib, int func,int reason,const(char)* file,int line); void ERR_set_error_data(char* data,int flags); c_ulong ERR_get_error(); c_ulong ERR_get_error_line(const(char)** file,int* line); c_ulong ERR_get_error_line_data(const(char)** file,int* line, const(char)** data, int* flags); c_ulong ERR_peek_error(); c_ulong ERR_peek_error_line(const(char)** file,int* line); c_ulong ERR_peek_error_line_data(const(char)** file,int* line, const(char)** data,int* flags); c_ulong ERR_peek_last_error(); c_ulong ERR_peek_last_error_line(const(char)** file,int* line); c_ulong ERR_peek_last_error_line_data(const(char)** file,int* line, const(char)** data,int* flags); void ERR_clear_error(); char* ERR_error_string(c_ulong e,char* buf); void ERR_error_string_n(c_ulong e, char* buf, size_t len); const(char)* ERR_lib_error_string(c_ulong e); const(char)* ERR_func_error_string(c_ulong e); const(char)* ERR_reason_error_string(c_ulong e); void ERR_print_errors_cb(ExternC!(int function(const(char)* str, size_t len, void* u)) cb, void* u); version(OPENSSL_NO_FP_API) {} else { void ERR_print_errors_fp(FILE* fp); } version(OPENSSL_NO_BIO) {} else { void ERR_print_errors(BIO* bp); void ERR_add_error_data(int num, ...); } void ERR_load_strings(int lib,ERR_STRING_DATA str[]); void ERR_unload_strings(int lib,ERR_STRING_DATA str[]); void ERR_load_ERR_strings(); void ERR_load_crypto_strings(); void ERR_free_strings(); void ERR_remove_thread_state(const(CRYPTO_THREADID)* tid); version(OPENSSL_NO_DEPRECATED) {} else { void ERR_remove_state(c_ulong pid); /* if zero we look it up */ } ERR_STATE* ERR_get_state(); version(OPENSSL_NO_LHASH) {} else { LHASH_OF!(ERR_STRING_DATA) *ERR_get_string_table(); LHASH_OF!(ERR_STATE) *ERR_get_err_state_table(); void ERR_release_err_state_table(LHASH_OF!(ERR_STATE) **hash); } int ERR_get_next_error_library(); int ERR_set_mark(); int ERR_pop_to_mark(); /* Already defined in ossl_typ.h */ /* typedef st_ERR_FNS ERR_FNS; */ /* An application can use this function and provide the return value to loaded * modules that should use the application's ERR state/functionality */ const(ERR_FNS)* ERR_get_implementation(); /* A loaded module should call this function prior to any ERR operations using * the application's "ERR_FNS". */ int ERR_set_implementation(const(ERR_FNS)* fns);
D
/Users/ThiagoBevi/Developer/Teste_iOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Kingfisher.build/Objects-normal/x86_64/Box.o : /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/String+MD5.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/Deprecated.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/ImageSource/Source.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/ImageSource/Resource.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/Image.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/GIFAnimatedImage.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/Storage.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/DiskStorage.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/MemoryStorage.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/ImageCache.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/AuthenticationChallengeResponsable.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/Runtime.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/Delegate.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/SessionDelegate.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/ImageDownloaderDelegate.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/CallbackQueue.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/ImageProgressive.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/ImageDrawing.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/SessionDataTask.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/ImageTransition.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/KingfisherOptionsInfo.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/ImageDownloader.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/ImageSource/ImageDataProvider.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/Placeholder.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/KingfisherManager.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/ImagePrefetcher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Extensions/WKInterfaceImage+Kingfisher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Extensions/UIButton+Kingfisher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Extensions/NSButton+Kingfisher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Extensions/ImageView+Kingfisher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/Kingfisher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/ImageModifier.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/RequestModifier.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/RedirectHandler.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/Filter.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/CacheSerializer.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/FormatIndicatedCacheSerializer.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/KingfisherError.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/ImageDataProcessor.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/ImageProcessor.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Views/Indicator.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/SizeExtensions.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/ExtensionHelpers.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/ImageFormat.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/Result.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Views/AnimatedImageView.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/Box.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Accelerate.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/os.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Accelerate.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Target\ Support\ Files/Kingfisher/Kingfisher-umbrella.h /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Kingfisher.h /Users/ThiagoBevi/Developer/Teste_iOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Kingfisher.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/ThiagoBevi/Developer/Teste_iOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Kingfisher.build/Objects-normal/x86_64/Box~partial.swiftmodule : /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/String+MD5.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/Deprecated.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/ImageSource/Source.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/ImageSource/Resource.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/Image.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/GIFAnimatedImage.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/Storage.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/DiskStorage.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/MemoryStorage.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/ImageCache.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/AuthenticationChallengeResponsable.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/Runtime.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/Delegate.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/SessionDelegate.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/ImageDownloaderDelegate.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/CallbackQueue.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/ImageProgressive.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/ImageDrawing.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/SessionDataTask.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/ImageTransition.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/KingfisherOptionsInfo.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/ImageDownloader.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/ImageSource/ImageDataProvider.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/Placeholder.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/KingfisherManager.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/ImagePrefetcher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Extensions/WKInterfaceImage+Kingfisher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Extensions/UIButton+Kingfisher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Extensions/NSButton+Kingfisher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Extensions/ImageView+Kingfisher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/Kingfisher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/ImageModifier.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/RequestModifier.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/RedirectHandler.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/Filter.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/CacheSerializer.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/FormatIndicatedCacheSerializer.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/KingfisherError.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/ImageDataProcessor.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/ImageProcessor.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Views/Indicator.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/SizeExtensions.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/ExtensionHelpers.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/ImageFormat.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/Result.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Views/AnimatedImageView.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/Box.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Accelerate.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/os.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Accelerate.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Target\ Support\ Files/Kingfisher/Kingfisher-umbrella.h /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Kingfisher.h /Users/ThiagoBevi/Developer/Teste_iOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Kingfisher.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/ThiagoBevi/Developer/Teste_iOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Kingfisher.build/Objects-normal/x86_64/Box~partial.swiftdoc : /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/String+MD5.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/Deprecated.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/ImageSource/Source.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/ImageSource/Resource.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/Image.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/GIFAnimatedImage.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/Storage.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/DiskStorage.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/MemoryStorage.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/ImageCache.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/AuthenticationChallengeResponsable.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/Runtime.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/Delegate.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/SessionDelegate.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/ImageDownloaderDelegate.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/CallbackQueue.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/ImageProgressive.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/ImageDrawing.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/SessionDataTask.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/ImageTransition.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/KingfisherOptionsInfo.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/ImageDownloader.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/ImageSource/ImageDataProvider.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/Placeholder.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/KingfisherManager.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/ImagePrefetcher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Extensions/WKInterfaceImage+Kingfisher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Extensions/UIButton+Kingfisher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Extensions/NSButton+Kingfisher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Extensions/ImageView+Kingfisher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/Kingfisher.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/ImageModifier.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/RequestModifier.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/RedirectHandler.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/Filter.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/CacheSerializer.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Cache/FormatIndicatedCacheSerializer.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/General/KingfisherError.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Networking/ImageDataProcessor.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/ImageProcessor.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Views/Indicator.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/SizeExtensions.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/ExtensionHelpers.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Image/ImageFormat.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/Result.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Views/AnimatedImageView.swift /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Utility/Box.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Accelerate.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/os.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Accelerate.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Target\ Support\ Files/Kingfisher/Kingfisher-umbrella.h /Users/ThiagoBevi/Developer/Teste_iOS/Pods/Kingfisher/Sources/Kingfisher.h /Users/ThiagoBevi/Developer/Teste_iOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Kingfisher.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/WebSockets.build/Model/WebSocket+Error.swift.o : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Communication/WebSocket+Send.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/Frame.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Connection/WebSockets+Hash.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/Fragmentation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/FrameSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/FrameDeserializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/WebSocket+Error.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Communication/WebSocket+ControlFrames.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/WebSockets+Flags.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/WebSocketFormatErrors.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Connection/Headers+WebSockets.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Request+WebSockets.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/WebSocket.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Client/WebSocket+Client.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/HTTP.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 /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/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/WebSockets.build/WebSocket+Error~partial.swiftmodule : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Communication/WebSocket+Send.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/Frame.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Connection/WebSockets+Hash.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/Fragmentation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/FrameSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/FrameDeserializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/WebSocket+Error.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Communication/WebSocket+ControlFrames.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/WebSockets+Flags.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/WebSocketFormatErrors.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Connection/Headers+WebSockets.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Request+WebSockets.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/WebSocket.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Client/WebSocket+Client.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/HTTP.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 /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/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/WebSockets.build/WebSocket+Error~partial.swiftdoc : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Communication/WebSocket+Send.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/Frame.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Connection/WebSockets+Hash.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/Fragmentation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/FrameSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/FrameDeserializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/WebSocket+Error.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Communication/WebSocket+ControlFrames.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/WebSockets+Flags.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/WebSocketFormatErrors.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Connection/Headers+WebSockets.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Request+WebSockets.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/WebSocket.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Client/WebSocket+Client.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/HTTP.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 /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/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
import tales.streamcontainer, tales.isocontainer; private import std.file, std.string, std.stdio, std.path, std.regexp, std.stream, std.system, std.c.stdlib, std.gc; Stream openfile(char[] name) { return new File(name, FileMode.In); } // Intercamia el mapa inicial por el de debug /*void SwapStartMap(Iso map) { IsoEntry testmap = map["TESTMAP.PKB"]; IsoEntry startmap = map["CAP_I06_05.PKB"]; int extent, size; extent = testmap.dr.Extent; size = testmap.dr.Size; testmap.dr.Extent = startmap.dr.Extent; testmap.dr.Size = startmap.dr.Size; startmap.dr.Extent = extent; startmap.dr.Size = size; startmap.writedr(); testmap.writedr(); }*/ int main(char[][] args) { Iso iso = new Iso("c:\\juegos\\abyss\\abyss.iso"); Iso root = new Iso(iso["TO7ROOT.CVM"].open); Iso map = new Iso(iso["TO7MAP.CVM"].open); Iso mov = new Iso(iso["TO7MOV.CVM"].open); iso["SLUS_213.86"].replace("../SLUS_213.86"); map.swap("TESTMAP.PKB", "CAP_I06_05.PKB"); //map["TESTMAP.PKB"].replace(); //mov["AS_001.SFD"].replace("..\\videos\\AS_002_SUB.MPG"); //iso["SLUS_213.86"].replace("SLUS_213.86"); // /* writefln("S_TOA_LOGO.TM2"); root["S_TOA_LOGO.TM2"].replace("..\\..\\TO7ROOT\\S_TOA_LOGO\\S_TOA_LOGO.TM2"); writefln("_S_MENU.TM2"); root["_S_MENU.TM2"].replace("..\\..\\TO7ROOT\\_S_MENU\\_S_MENU.TM2"); */ /* Iso map = new Iso(iso["TO7MAP.CVM"].open); //for (int n = 0; n <= 7; n++) { for (int n = 5; n <= 5; n++) { writefln("CAP_I06_%02d.B", n); system(toStringz(format("comptoe.exe -s -c3 \"%s\\B\\CAP_I06_%02d.B\" \"%s\\temp\"", getcwd(), n, getcwd()))); map[format("CAP_I06_%02d.PKB", n)].replace("temp"); } */ //SwapStartMap(map); return 0; }
D
module gltf2.gltfenum; import std.string, std.conv, std.algorithm, std.range; void Enforce_glTF ( string err ) { throw new Exception(err); } void Enforce_glTF ( bool cond, string err ) { if ( !cond ) throw new Exception(err); } void Enforce_glTF(T)(T* ptr, string err) { if ( ptr is null ) throw new Exception(err); } // ----- enum ------------------------------------------------------------------ T To_glTFEnum(T)(ulong mem) { import std.traits; Enforce_glTF(EnumMembers!T.only.canFind(mem), "Value '%s' not a valid %s".format(mem, T.stringof)); return cast(T)mem; } enum glTFAssetType { Scene, Library }; enum glTFAttribute { Index, Normal, Position, TexCoord0 = 10, Colour0 = 20 }; enum glTFMode { Points = 0, Lines = 1, LineLoop = 2, LineStrip = 3, Triangles = 4, TriangleStrip = 5, TriangleFan = 6 }; auto glTFMode_Info ( glTFMode mode ) { struct Info { string name; } return Info(mode.to!string); } enum glTFType { Scalar, Vec2, Vec3, Vec4, Mat2, Mat3, Mat4 }; auto glTFType_Info ( glTFType type ) { immutable int[glTFType] To_Info = [ glTFType.Scalar: 1, glTFType.Vec2: 2, glTFType.Vec3: 3, glTFType.Vec4: 4, glTFType.Mat2: 4, glTFType.Mat3: 9, glTFType.Mat4: 16 ]; struct Info { string label; uint count; } return Info(type.to!string, To_Info[type]); } glTFType To_glTFType ( string u ) { switch ( u ) with ( glTFType ) { default: assert(false, "String '%s' not a valid type".format(u)); case "SCALAR": return Scalar; case "VEC2": return Vec2; case "VEC3": return Vec3; case "VEC4": return Vec4; case "MAT2": return Mat2; case "MAT3": return Mat3; case "MAT4": return Mat4; } } enum glTFFilterType { Nearest = 9728, Linear = 9729, NearestMipmapNearest = 9984, LinearMipmapNearest = 9985, NearestMipmapLinear = 9986, LinearMipmapLinear = 9987 } enum glTFWrapType { ClampToEdge = 33071, MirroredRepeat = 33648, Repeat = 10497 } enum glTFComponentType { Byte=5120, Ubyte=5121, Short=5122, Ushort=5123, Int=5124, Uint=5125, Float=5126 }; alias Scalar_To_glTFComponentType = To_glTFEnum!(glTFComponentType); auto glTFComponentType_Info ( glTFComponentType type ) { struct Info { string name; uint label; uint size; } final switch ( type ) with ( glTFComponentType ) { case Byte: return Info("Byte", 5120, 1); case Ubyte: return Info("Ubyte", 5121, 1); case Short: return Info("Short", 5122, 2); case Ushort: return Info("Ushort", 5123, 2); case Int: return Info("Int", 5124, 4); case Uint: return Info("Uint", 5125, 4); case Float: return Info("Float", 5126, 4); } } enum glTFInterpolation { Linear, Step, CubicSpline } glTFInterpolation String_To_glTFInterpolation ( string t ) { switch ( t ) { default: assert(false, t ~ " not valid glTFInterpolation"); case "LINEAR": return glTFInterpolation.Linear; case "STEP": return glTFInterpolation.Step; case "CUBICSPLINE": return glTFInterpolation.CubicSpline; } } enum glTFCameraType { Perspective, Orthographic }; auto String_To_glTFCameraType ( string str ) { switch ( str ) { default: assert(false, "Invalid glTFCameraType " ~ str ); case "": goto case "perspective"; // explicit fallthrough case "perspective": return glTFCameraType.Perspective; case "orthographic": return glTFCameraType.Orthographic; } } enum glTFBufferViewTarget { NonGPU = 0, Array = 34962, ElementArray = 34963 }; alias Scalar_To_glTFBufferViewTarget = To_glTFEnum!(glTFBufferViewTarget);
D
module cell.cell; import util.direct; import std.algorithm; import util.array; import std.exception; import std.math; import std.traits; import std.typecons; debug(cell) import std.stdio; debug(move) import std.stdio; debug(table) import std.stdio; debug(refer) import std.stdio; struct Cell { int row; int column; public: Cell opBinary(string op)(in Cell rhs)const if(op =="+"){ return Cell(row + rhs.row, column + rhs.column); } Cell opBinary(string op)(in Cell rhs)const if(op =="-"){ int minus_tobe_zero(int x){ return x<0?0:x; } auto r = minus_tobe_zero(row - rhs.row); auto c = minus_tobe_zero(column - rhs.column); return Cell(r,c); } Cell opBinary(string op)(in int rhs)const if(op =="/"){ return Cell(row/rhs, column/rhs); } Cell opBinary(string op)(in int rhs)const if(op =="*"){ return Cell(row*rhs, column*rhs); } unittest{ Cell a = Cell(5,5); Cell b = Cell(10,10); auto c = a-b; auto d = a+b; assert(c == Cell(0,0)); assert(d == Cell(15,15)); } static Cell invalid(){ return Cell(-1,-1); } int opCmp(in Cell rhs)const{ if(row == rhs.row) return column - rhs.column; else return row - rhs.row; } unittest{ Cell c = Cell(3,3); assert(c.opCmp(c) == 0); Cell a = Cell(1,3); Cell b = Cell(3,1); Cell d = Cell(3,4); Cell e = Cell(4,3); assert(a < c); assert(c > a); assert(d > c); assert(c == Cell(3,3)); } } pure Cell diff(in Cell a,in Cell b){ auto r = a.row - b.row; auto c = a.column - b.column; auto dr = (r<0)?-r:r; auto dc = (c<0)?-c:c; return Cell(dr,dc); } unittest{ Cell a = Cell(5,5); Cell b = Cell(10,10); auto c = diff(a,b); assert(c == Cell(5,5)); } void move(ref Cell cell,in Direct dir,int width=1){ final switch(dir){ case right: cell.column += width; break; case left: while(width--) if(cell.column != 0) --cell.column; break; case up: while(width--) if(cell.row != 0) --cell.row; break; case down: cell.row += width; break; } } pure Cell if_moved(in Cell c,in Direct dir,int width=1){ Cell result = c; final switch(dir){ case right: result.column += width; break; case left: while(width--) if(result.column != 0) --result.column; break; case up: while(width--) if(result.row != 0) --result.row; break; case down: result.row += width; break; } return result; } // test用 // 各方向向きにCellがいくつ連続しているかを返す pure int count_line(in Cell[] box,in Cell from,in Direct dir){ int result; Cell c = from; while(c.is_in(box)) { ++result; if(dir == left && c.column == 0 || dir == up && c.row == 0) break; c = c.if_moved(dir); } return result-1; // if(box is null) return -1; } // test用 // CellBOX になれる構造かどうかチェック bool is_box(in Cell[] box){ if(box.length == 1) return true; Cell[][int] row_table; Cell[][int] col_table; foreach(c; box) { row_table[c.row] ~= c; col_table[c.column] ~= c; } int[] all_row = row_table.keys.sort.dup; int[] all_col = col_table.keys.sort.dup; int[] width; foreach(leftside_cell; col_table[all_col[0]]) { width ~= box.count_line(leftside_cell,right); } int i; assert(width.length != 0); foreach(r; width){ if(i && r!=i) return false; i = r; } return true; } unittest{ Cell[] box =[Cell(2,2),Cell(3,3),Cell(2,3),Cell(3,2)]; assert(is_box(box)); box =[Cell(3,3)]; assert(is_box(box)); box =[Cell(3,3),Cell(3,4)]; assert(is_box(box)); box =[Cell(2,3),Cell(3,3)]; assert(is_box(box)); } // Cellで構成される集合 // 遅延して生成するものも含む interface CellStructure{ @property Cell top_left()const; @property Cell top_right()const; @property Cell bottom_left()const; @property Cell bottom_right()const; @property bool empty()const; void move(in Cell c); void move(in Direct,in int pop_cnt=1); void create_in(in Cell); void expand(in Direct,in int width=1); void remove(in Direct,in int width=1); void clear(); bool is_hold(in Cell c)const; const(Cell)[] get_cells()const; @property int numof_col()const; @property int numof_row()const; } import util.color; // 構造をTableに持たせたCellStructure interface CellContent : CellStructure{ @property int id()const; @property const(Cell[][Direct]) edge_line()const; bool require_create_in(in Cell); bool require_move(in Cell); bool require_move(in Direct,in int width=1); bool require_expand(in Direct,in int width=1); void require_remove(in Direct,in int width=1); bool is_to_spoil()const; bool is_registered()const; void remove_from_table(); void set_id(int); void set_color(in Color); @property Color box_color()const; const(Cell)[] get_cells()const; }
D
/Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/Objects-normal/x86_64/Product+CoreDataProperties.o : /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/Validate.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/AppDelegate.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/DerivedSources/CoreDataGenerated/BuyList/BuyList+CoreDataModel.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/ProductTableViewCell.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/Ext+UIApplication.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/Ext+UIViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/BaseViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/TotalViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/BuyTabBarViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/SettingsViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/CreateProductViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/BuyListViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/DerivedSources/CoreDataGenerated/BuyList/State+CoreDataProperties.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/DerivedSources/CoreDataGenerated/BuyList/Product+CoreDataProperties.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/DerivedSources/CoreDataGenerated/BuyList/State+CoreDataClass.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/DerivedSources/CoreDataGenerated/BuyList/Product+CoreDataClass.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Products/Debug-iphonesimulator/EmptyDataSet-Swift/EmptyDataSet_Swift.framework/Modules/EmptyDataSet_Swift.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/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Products/Debug-iphonesimulator/EmptyDataSet-Swift/EmptyDataSet_Swift.framework/Headers/EmptyDataSet-Swift-umbrella.h /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Products/Debug-iphonesimulator/EmptyDataSet-Swift/EmptyDataSet_Swift.framework/Headers/EmptyDataSet_Swift-Swift.h /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Products/Debug-iphonesimulator/EmptyDataSet-Swift/EmptyDataSet_Swift.framework/Modules/module.modulemap /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/Objects-normal/x86_64/Product+CoreDataProperties~partial.swiftmodule : /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/Validate.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/AppDelegate.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/DerivedSources/CoreDataGenerated/BuyList/BuyList+CoreDataModel.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/ProductTableViewCell.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/Ext+UIApplication.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/Ext+UIViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/BaseViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/TotalViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/BuyTabBarViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/SettingsViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/CreateProductViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/BuyListViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/DerivedSources/CoreDataGenerated/BuyList/State+CoreDataProperties.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/DerivedSources/CoreDataGenerated/BuyList/Product+CoreDataProperties.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/DerivedSources/CoreDataGenerated/BuyList/State+CoreDataClass.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/DerivedSources/CoreDataGenerated/BuyList/Product+CoreDataClass.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Products/Debug-iphonesimulator/EmptyDataSet-Swift/EmptyDataSet_Swift.framework/Modules/EmptyDataSet_Swift.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/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Products/Debug-iphonesimulator/EmptyDataSet-Swift/EmptyDataSet_Swift.framework/Headers/EmptyDataSet-Swift-umbrella.h /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Products/Debug-iphonesimulator/EmptyDataSet-Swift/EmptyDataSet_Swift.framework/Headers/EmptyDataSet_Swift-Swift.h /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Products/Debug-iphonesimulator/EmptyDataSet-Swift/EmptyDataSet_Swift.framework/Modules/module.modulemap /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/Objects-normal/x86_64/Product+CoreDataProperties~partial.swiftdoc : /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/Validate.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/AppDelegate.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/DerivedSources/CoreDataGenerated/BuyList/BuyList+CoreDataModel.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/ProductTableViewCell.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/Ext+UIApplication.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/Ext+UIViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/BaseViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/TotalViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/BuyTabBarViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/SettingsViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/CreateProductViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/BuyList/BuyListViewController.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/DerivedSources/CoreDataGenerated/BuyList/State+CoreDataProperties.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/DerivedSources/CoreDataGenerated/BuyList/Product+CoreDataProperties.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/DerivedSources/CoreDataGenerated/BuyList/State+CoreDataClass.swift /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Intermediates.noindex/RamonEvandro.build/Debug-iphonesimulator/ComprasUSA.build/DerivedSources/CoreDataGenerated/BuyList/Product+CoreDataClass.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Products/Debug-iphonesimulator/EmptyDataSet-Swift/EmptyDataSet_Swift.framework/Modules/EmptyDataSet_Swift.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/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Products/Debug-iphonesimulator/EmptyDataSet-Swift/EmptyDataSet_Swift.framework/Headers/EmptyDataSet-Swift-umbrella.h /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Products/Debug-iphonesimulator/EmptyDataSet-Swift/EmptyDataSet_Swift.framework/Headers/EmptyDataSet_Swift-Swift.h /Users/ramonhonorio/workspace/ios/fiap/BuyList/DerivedData/RamonEvandro/Build/Products/Debug-iphonesimulator/EmptyDataSet-Swift/EmptyDataSet_Swift.framework/Modules/module.modulemap
D
// REQUIRED_ARGS: -o- /* example output from druntime ---- ../../druntime/import/core/internal/arrayop.d(160): Error: static assert "Binary op `+=` not supported for element type string." ../../druntime/import/core/internal/arrayop.d(20): instantiated from here: `opsSupported!(true, string, "+=")` ../../druntime/import/object.d(3640): instantiated from here: `arrayOp!(string[], string[], "+=")` fail_compilation/fail_arrayop3b.d(16): instantiated from here: `_arrayOp!(string[], string[], "+=")` --- */ void test11376() { string[] s1; string[] s2; s2[] += s1[]; }
D
/Users/hdcui/blind-ecdsa/bld_sig/target/rls/debug/deps/bls12_381-309e4c977317a380.rmeta: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/lib.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/util.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/notes/design.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/notes/serialization.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/scalar.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp2.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/g1.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/g2.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp12.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp6.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/pairings.rs /Users/hdcui/blind-ecdsa/bld_sig/target/rls/debug/deps/bls12_381-309e4c977317a380.d: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/lib.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/util.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/notes/design.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/notes/serialization.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/scalar.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp2.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/g1.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/g2.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp12.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp6.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/pairings.rs /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/lib.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/util.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/notes/design.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/notes/serialization.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/scalar.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp2.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/g1.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/g2.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp12.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/fp6.rs: /Users/hdcui/.cargo/registry/src/github.com-1ecc6299db9ec823/bls12_381-0.1.1/src/pairings.rs:
D
instance DIA_PAL_9160_ORTO_EXIT(C_Info) { npc = pal_9160_orto; nr = 999; condition = dia_pal_9160_orto_exit_condition; information = dia_pal_9160_orto_exit_info; permanent = TRUE; description = Dialog_Ende; }; func int dia_pal_9160_orto_exit_condition() { return TRUE; }; func void dia_pal_9160_orto_exit_info() { AI_StopProcessInfos(self); }; instance DIA_PAL_9160_ORTO_MATTER(C_Info) { npc = pal_9160_orto; nr = 1; condition = dia_pal_9160_orto_matter_condition; information = dia_pal_9160_orto_matter_info; permanent = FALSE; important = TRUE; }; func int dia_pal_9160_orto_matter_condition() { return TRUE; }; func void dia_pal_9160_orto_matter_info() { AI_Output(self,other,"DIA_Pal_9160_Orto_Matter_01_00"); //Hej, chlape, kde ses tu vzal? AI_Output(other,self,"DIA_Pal_9160_Orto_Matter_01_01"); //Šel jsem přes horský průsmyk. Co, tě překvapilo? if((other.guild == GIL_SLD) || (other.guild == GIL_DJG)) { AI_Output(self,other,"DIA_Pal_9160_Orto_Matter_01_02"); //Jasně, že jo. Je to dlouho, co jsem viděl někoho nového. Hlavně ne žoldáka. (opovržlivě) } else if(other.guild == GIL_KDM) { AI_Output(self,other,"DIA_Pal_9160_Orto_Matter_01_03"); //Jasně, že jo. Je to dlouho, co jsem viděl někoho nového. Hlavně ne nekromanta. (s obavou) }; AI_Output(self,other,"DIA_Pal_9160_Orto_Matter_01_04"); //Je zajímavé, co přivedlo do pevnosti paladinů někoho, jako jsi ty? AI_Output(other,self,"DIA_Pal_9160_Orto_Matter_01_05"); //A to mě nemůžeš jen tak pustit bez těch keců? AI_Output(self,other,"DIA_Pal_9160_Orto_Matter_01_06"); //Hmmm... (s úsměvem) Nemusíš si se mnou povídat. AI_Output(self,other,"DIA_Pal_9160_Orto_Matter_01_08"); //Dobře, běž - akorát se postarej ať nenamíchneš naše chlapce! AI_Output(self,other,"DIA_Pal_9160_Orto_Matter_01_09"); //Jsou poslední dobou trošku nervózní. AI_Output(self,other,"DIA_Pal_9160_Orto_Matter_01_10"); //Jak sám uvidíš, další problémy zde nepotřebujeme. AI_Output(other,self,"DIA_Pal_9160_Orto_Matter_01_11"); //Budu se snažit. }; instance DIA_PAL_9160_ORTO_WHO(C_Info) { npc = pal_9160_orto; nr = 1; condition = dia_pal_9160_orto_who_condition; information = dia_pal_9160_orto_who_info; permanent = FALSE; description = "Kdo jsi?"; }; func int dia_pal_9160_orto_who_condition() { return TRUE; }; func void dia_pal_9160_orto_who_info() { AI_Output(other,self,"DIA_Pal_9160_Orto_Who_01_00"); //Kdo jsi? AI_Output(self,other,"DIA_Pal_9160_Orto_Who_01_01"); //Jmenuji se Orto. Jsem paladin krále a služebník Innose. AI_Output(other,self,"DIA_Pal_9160_Orto_Who_01_02"); //Co tady děláš? AI_Output(self,other,"DIA_Pal_9160_Orto_Who_01_03"); //Cha... Divná otázka ptát se paladina, jestli je ve službě králi spokojený? AI_Output(other,self,"DIA_Pal_9160_Orto_Who_01_04"); //Nemám tušení. Možná mě to povíš? AI_Output(self,other,"DIA_Pal_9160_Orto_Who_01_05"); //Unikátní osud paladina spočívá v bitvách za Innose a krále. Proto žiju a dýcháma! AI_Output(other,self,"DIA_Pal_9160_Orto_Who_01_06"); //Ale tady není nikdo, kdo by s tebou bojoval. AI_Output(self,other,"DIA_Pal_9160_Orto_Who_01_07"); //Bohužel máš pravdu... Velmi mě to trápí. A nejen mě. AI_Output(self,other,"DIA_Pal_9160_Orto_Who_01_08"); //Ta nečinnost a nuda je to nejhorší co může být. AI_Output(other,self,"DIA_Pal_9160_Orto_Who_01_10"); //Tak proč jsi tady a nejdeš do Hornického údolí? AI_Output(other,self,"DIA_Pal_9160_Orto_Who_01_11"); //Co vím tam se nikdo nenudí. AI_Output(self,other,"DIA_Pal_9160_Orto_Who_01_12"); //S potěšením bych šel, ale lord Varus zakázal opustit pevnost. AI_Output(self,other,"DIA_Pal_9160_Orto_Who_01_13"); //Tak tu jen tak sedíme a nic neděláme. }; instance DIA_Pal_9160_Orto_Map(C_Info) { npc = pal_9160_orto; nr = 1; condition = DIA_Pal_9160_Orto_Map_condition; information = DIA_Pal_9160_Orto_Map_info; permanent = FALSE; description = "A ty jsi kormidelník 'Esmeraldy'?"; }; func int DIA_Pal_9160_Orto_Map_condition() { if((MIS_SylvioCrew == LOG_Running) && (Npc_KnowsInfo(hero,dia_pal_9160_orto_who) == TRUE) && (GotoFortMap == TRUE)) { return TRUE; }; }; func void DIA_Pal_9160_Orto_Map_info() { B_GivePlayerXP(300); AI_Output(other,self,"DIA_Pal_9160_Orto_Map_01_00"); //A ty jsi kormidelník 'Esmeraldy'? AI_Output(self,other,"DIA_Pal_9160_Orto_Map_01_01"); //Ano, je to tak... (překvapeně) I když nevím, kde ses to dozvěděl? AI_Output(other,self,"DIA_Pal_9160_Orto_Map_01_02"); //Řekl mě to sám lord Hagen. AI_Output(self,other,"DIA_Pal_9160_Orto_Map_01_03"); //No, to je pochopitelné! A proč jsi o tom začal mluvit? AI_Output(other,self,"DIA_Pal_9160_Orto_Map_01_04"); //Potřebuju mapu, která by ukazovala cestu z ostrova na pevninu. AI_Output(other,self,"DIA_Pal_9160_Orto_Map_01_05"); //Koneckonců, možná takovou máš? AI_Output(self,other,"DIA_Pal_9160_Orto_Map_01_06"); //Přirozeně. Každej navigátor je na moři bez přesné mapy jako bez rukou. AI_Output(self,other,"DIA_Pal_9160_Orto_Map_01_07"); //Nicméně u sebe jí nemám, zůstala na lodi. AI_Output(other,self,"DIA_Pal_9160_Orto_Map_01_08"); //No co, měl jsem to vědět dřív! SeaMapIns = TRUE; B_LogEntry(Topic_SylvioCrew,"V paladinské pevnosti jsem jen marnil čas. Ortho nechal svou mapu na lodi! Nyní je třeba důkladně prohledat..."); }; instance DIA_PAL_9160_ORTO_FORT(C_Info) { npc = pal_9160_orto; nr = 1; condition = dia_pal_9160_orto_FORT_condition; information = dia_pal_9160_orto_FORT_info; permanent = FALSE; description = "Řekni mi něco o pevnosti."; }; func int dia_pal_9160_orto_FORT_condition() { if(Npc_KnowsInfo(hero,dia_pal_9160_orto_who)) { return TRUE; }; }; func void dia_pal_9160_orto_FORT_info() { AI_Output(other,self,"DIA_Pal_9160_Orto_FORT_01_00"); //Řekni mi něco o pevnosti. AI_Output(self,other,"DIA_Pal_9160_Orto_FORT_01_01"); //Byla založena králem Rhobarem I., k zajištění jižních hranic Khorinisu. AI_Output(self,other,"DIA_Pal_9160_Orto_FORT_01_02"); //Před válkou se skřety zde v podstatě žili rytíři a paladinové. AI_Output(self,other,"DIA_Pal_9160_Orto_FORT_01_03"); //Ale jakmile se nad Hornickým údolím rozzářila magická kopule, téměř celá posádka byla poslána zpět do Myrtany. AI_Output(self,other,"DIA_Pal_9160_Orto_FORT_01_04"); //A tak tady zůstal jen malý oddíl královských stráží a místní domobrana. }; instance DIA_PAL_9160_ORTO_HOWWAY(C_Info) { npc = pal_9160_orto; nr = 1; condition = dia_pal_9160_orto_HOWWAY_condition; information = dia_pal_9160_orto_HOWWAY_info; permanent = FALSE; description = "Jak ses sem dostal?!"; }; func int dia_pal_9160_orto_HOWWAY_condition() { if(Npc_KnowsInfo(hero,dia_pal_9160_orto_who)) { return TRUE; }; }; func void dia_pal_9160_orto_HOWWAY_info() { AI_Output(other,self,"DIA_Pal_9160_Orto_HOWWAY_01_00"); //Jak ses sem dostal? AI_Output(self,other,"DIA_Pal_9160_Orto_HOWWAY_01_01"); //Většinu z nás sem přivezli po moři, na lodi! Zbytek zůstal v Khorinisu. AI_Output(other,self,"DIA_Pal_9160_Orto_HOWWAY_01_02"); //A proč jste prostě nepřišli po souši? AI_Output(self,other,"DIA_Pal_9160_Orto_HOWWAY_01_03"); //Cesta po moři je mnohem kratší. Navíc vstup do pevnosti se nachází hned vedle Onarovi farmy s jeho žoldákama. AI_Output(other,self,"DIA_Pal_9160_Orto_HOWWAY_01_04"); //Máte z nich snad strach? AI_Output(self,other,"DIA_Pal_9160_Orto_HOWWAY_01_05"); //Ne, samozřejmě. (se smíchem) Královské paladiny jen stěží vyděsí obyčejní žoldáci! AI_Output(self,other,"DIA_Pal_9160_Orto_HOWWAY_01_06"); //Ale teď není vhodná doba bojovat s nima v otevřeném konfliktu. AI_Output(self,other,"DIA_Pal_9160_Orto_HOWWAY_01_07"); //Navíc, dokud se nevyjasní situace v Hornickém údolí, je nepravděpodobné, že dá lord Varus pokyn k útoku. }; instance DIA_PAL_9160_ORTO_VARUS(C_Info) { npc = pal_9160_orto; nr = 1; condition = dia_pal_9160_orto_varus_condition; information = dia_pal_9160_orto_varus_info; permanent = FALSE; description = "Lord Varus?!"; }; func int dia_pal_9160_orto_varus_condition() { if(Npc_KnowsInfo(hero,dia_pal_9160_orto_who)) { return TRUE; }; }; func void dia_pal_9160_orto_varus_info() { AI_Output(other,self,"DIA_Pal_9160_Orto_Varus_01_00"); //Lord Varus? AI_Output(self,other,"DIA_Pal_9160_Orto_Varus_01_01"); //Je to náš velitel. Osobnost, to bych ti mohl vyprávět. AI_Output(other,self,"DIA_Pal_9160_Orto_Varus_01_03"); //A kde ho můžu najít? AI_Output(self,other,"DIA_Pal_9160_Orto_Varus_01_04"); //V druhém podlaží domu uprostřed pevnosti. AI_Output(self,other,"DIA_Pal_9160_Orto_Varus_01_05"); //Ale nevím, jestli tě Glantz pustí. AI_Output(other,self,"DIA_Pal_9160_Orto_Varus_01_06"); //A kdo je Glantz? AI_Output(self,other,"DIA_Pal_9160_Orto_Varus_01_07"); //Strážce co stojí u vchodu. AI_Output(self,other,"DIA_Pal_9160_Orto_Varus_01_08"); //Jestli nebudeš mít důvod k setkání s Varusem, nepustí tě tam. }; instance DIA_PAL_9160_ORTO_HOW(C_Info) { npc = pal_9160_orto; nr = 1; condition = dia_pal_9160_orto_how_condition; information = dia_pal_9160_orto_how_info; permanent = TRUE; description = "Jak jde život?"; }; func int dia_pal_9160_orto_how_condition() { if(Npc_KnowsInfo(hero,dia_pal_9160_orto_who)) { return TRUE; }; }; func void dia_pal_9160_orto_how_info() { AI_Output(other,self,"DIA_Pal_9160_Orto_How_01_00"); //Jak jde život? if(VARUSAGREEDHUNTDONE == FALSE) { AI_Output(self,other,"DIA_Pal_9160_Orto_How_01_01"); //Mohlo by být o něco veseleji... AI_Output(self,other,"DIA_Pal_9160_Orto_How_01_02"); //Ale nejni... } else { AI_Output(self,other,"DIA_Pal_9160_Orto_How_01_03"); //Všechno je jednoduše úžasné, příteli! AI_Output(self,other,"DIA_Pal_9160_Orto_How_01_04"); //Nikdy mě nenapdalo, že lov je taková zajímavá práce. AI_Output(self,other,"DIA_Pal_9160_Orto_How_01_05"); //A je to lepší, než sedět pod borovicí a nudit se. AI_Output(self,other,"DIA_Pal_9160_Orto_How_01_06"); //Díky, že jsi přesvědšil Varuse! Jsem ti opravdu vděčný!... (směje se) }; }; instance DIA_PAL_9160_ORTO_HUNT(C_Info) { npc = pal_9160_orto; nr = 1; condition = dia_pal_9160_orto_hunt_condition; information = dia_pal_9160_orto_hunt_info; permanent = FALSE; description = "No, pokusím se ti najít nějakou zábavu."; }; func int dia_pal_9160_orto_hunt_condition() { if(Npc_KnowsInfo(hero,dia_pal_9160_orto_who)) { return TRUE; }; }; func void dia_pal_9160_orto_hunt_info() { AI_Output(other,self,"DIA_Pal_9160_Orto_Hunt_01_00"); //No, pokusím se ti najít nějakou zábavu. AI_Output(self,other,"DIA_Pal_9160_Orto_Hunt_01_02"); //A co chceš dělat? Bez svolení Varuse si nesmíme ani prdnout! AI_Output(self,other,"DIA_Pal_9160_Orto_Hunt_01_03"); //Ale je pravda, že tu je jedna možnost... AI_Output(other,self,"DIA_Pal_9160_Orto_Hunt_01_04"); //Jaká? AI_Output(self,other,"DIA_Pal_9160_Orto_Hunt_01_05"); //No, chtěl jsem s pár chlapama jít na druhý konec ostrova něco ulovit. AI_Output(self,other,"DIA_Pal_9160_Orto_Hunt_01_06"); //Jsou tam nějaká nebezpečná zvířata. AI_Output(other,self,"DIA_Pal_9160_Orto_Hunt_01_07"); //A v čem je problém? AI_Output(self,other,"DIA_Pal_9160_Orto_Hunt_01_08"); //Eh!... Varus nám to určitě nedovolí! AI_Output(other,self,"DIA_Pal_9160_Orto_Hunt_01_09"); //A jak to víš. Mluvil jsi s ním o tom? AI_Output(self,other,"DIA_Pal_9160_Orto_Hunt_01_10"); //Ty si ze mně utahuješ?... (nervózně) Ne, chlapče - to určitě zkoušet nebudu. AI_Output(self,other,"DIA_Pal_9160_Orto_Hunt_01_12"); //Ty prostě neznáš Varuse! Kdybys znal, neptal by ses tak hloupě. AI_Output(other,self,"DIA_Pal_9160_Orto_Hunt_01_14"); //Pak vám možná mohu pomoci. AI_Output(self,other,"DIA_Pal_9160_Orto_Hunt_01_15"); //Ty? Hmm... To není zase tak špatný nápad... AI_Output(self,other,"DIA_Pal_9160_Orto_Hunt_01_16"); //Ty bys mohl, nejsi členem posádky, takže ho nemusíš poslouchat... AI_Output(self,other,"DIA_Pal_9160_Orto_Hunt_01_17"); //Řekni, opravdu bys to pro mě udělal? Info_ClearChoices(dia_pal_9160_orto_hunt); Info_AddChoice(dia_pal_9160_orto_hunt,"Jenom jsem si z tebe vystřelil.",dia_pal_9160_orto_hunt_no); Info_AddChoice(dia_pal_9160_orto_hunt,"Ano, promluvím s Varusem.",dia_pal_9160_orto_hunt_ok); }; func void dia_pal_9160_orto_hunt_ok() { AI_Output(other,self,"DIA_Pal_9160_Orto_Hunt_Ok_01_00"); //Ano, promluvím s Varusem. AI_Output(self,other,"DIA_Pal_9160_Orto_Hunt_Ok_01_01"); //Díky chlape! Ještě chvíle toho nicnedělání a bylo by po mě! AI_Output(other,self,"DIA_Pal_9160_Orto_Hunt_Ok_01_05"); //Udělám co budu moci. MIS_ORTOHUNT = LOG_Running; Log_CreateTopic(TOPIC_ORTOHUNT,LOG_MISSION); Log_SetTopicStatus(TOPIC_ORTOHUNT,LOG_Running); B_LogEntry(TOPIC_ORTOHUNT,"Paladin Orto mě požádal, jestli bych nepromluvil s lordem Varusem o tom, aby Orto se svými druhy mohl jít lovit na druhý konec ostrova. Půjdu si pokecat s Varusem a uvidíme!"); Info_ClearChoices(dia_pal_9160_orto_hunt); }; func void dia_pal_9160_orto_hunt_no() { AI_Output(other,self,"DIA_Pal_9160_Orto_Hunt_No_01_00"); //Jenom jsem si z tebe vystřelil. AI_Output(self,other,"DIA_Pal_9160_Orto_Hunt_No_01_01"); //Pán je vtipálek... (podrážděně) Ale vlastně ti to nemůžu mít za zlé... AI_Output(self,other,"DIA_Pal_9160_Orto_Hunt_No_01_02"); //Nakonec je pravda, že to nejsou tvé problémy. AI_Output(self,other,"DIA_Pal_9160_Orto_Hunt_No_01_03"); //Takže na to jednoduše zapomeneme... Info_ClearChoices(dia_pal_9160_orto_hunt); }; instance DIA_PAL_9160_ORTO_HUNTDONE(C_Info) { npc = pal_9160_orto; nr = 1; condition = dia_pal_9160_orto_huntdone_condition; information = dia_pal_9160_orto_huntdone_info; permanent = FALSE; description = "Lord Varus nemá žádné námitky proti vašemu nápadu."; }; func int dia_pal_9160_orto_huntdone_condition() { if((MIS_ORTOHUNT == LOG_Running) && (VARUSAGREEDHUNT == TRUE)) { return TRUE; }; }; func void dia_pal_9160_orto_huntdone_info() { B_GivePlayerXP(150); AI_Output(other,self,"DIA_Pal_9160_Orto_HuntDone_01_01"); //Lord Varus nemá žádné námitky proti vašemu nápadu. AI_Output(self,other,"DIA_Pal_9160_Orto_HuntDone_01_02"); //Myslíš to vážně?!... (udiveně) AI_Output(other,self,"DIA_Pal_9160_Orto_HuntDone_01_03"); //Jasně že jo! Můžete na lov. AI_Output(self,other,"DIA_Pal_9160_Orto_HuntDone_01_04"); //Ou, díky chlape! Nevím, jak bych ti dostatečně poděkoval! AI_Output(self,other,"DIA_Pal_9160_Orto_HuntDone_01_05"); //No, možná mě něco napadlo... (směje se) AI_Output(self,other,"DIA_Pal_9160_Orto_HuntDone_01_06"); //Můžu ti ukázat, jak správně používat svou sílu v boji. AI_Output(self,other,"DIA_Pal_9160_Orto_HuntDone_01_07"); //Myslím, že se ti to bude hodit! MIS_ORTOHUNT = LOG_SUCCESS; VARUSAGREEDHUNTDONE = TRUE; Log_SetTopicStatus(TOPIC_ORTOHUNT,LOG_SUCCESS); B_LogEntry(TOPIC_ORTOHUNT,"Orto byl velmi vděčný, když slyšel, že Varus ho pustí na lov. Ukázal mi, jak lépa využiju sílu svých úderů!"); Info_ClearChoices(dia_pal_9160_orto_huntdone); Info_AddChoice(dia_pal_9160_orto_huntdone,"S potěšením ti budu naslouchat!",dia_pal_9160_orto_huntdone_teach); }; func void dia_pal_9160_orto_huntdone_teach() { AI_Output(other,self,"DIA_Pal_9160_Orto_HuntDone_Teach_01_00"); //Mám zrovna volný čas! AI_Output(self,other,"DIA_Pal_9160_Orto_HuntDone_Teach_01_01"); //Tak, poslouchej, je to docela jednoduché - když tvůj protivník zaůtočí, využíj sílu jeho útoku ve svůj prospěch. AI_Output(self,other,"DIA_Pal_9160_Orto_HuntDone_Teach_01_02"); //Týká se to zejména odrážení útoků. Donuť svého protivníka zaútočit tak abys získal výhodu. AI_Output(self,other,"DIA_Pal_9160_Orto_HuntDone_Teach_01_03"); //Udělej to - a budeš mít vždy navrch! Zapamatůj si to? AI_Output(other,self,"DIA_Pal_9160_Orto_HuntDone_Teach_01_04"); //Ano - děkuji za lekci. AI_Output(self,other,"DIA_Pal_9160_Orto_HuntDone_Teach_01_05"); //Já ti děkuju! (směje se) No a teď - na lov! B_RaiseAttribute_Bonus(other,ATR_STRENGTH,1); AI_StopProcessInfos(self); Npc_ExchangeRoutine(pal_9160_orto,"Hunt"); Npc_ExchangeRoutine(pal_9139_ritter,"Hunt"); Npc_ExchangeRoutine(pal_9140_ritter,"Hunt"); Npc_ExchangeRoutine(pal_9141_ritter,"Hunt"); Npc_ExchangeRoutine(pal_9142_ritter,"Hunt"); }; instance DIA_PAL_9160_ORTO_RAYNEHELP(C_Info) { npc = pal_9160_orto; nr = 1; condition = dia_pal_9160_orto_raynehelp_condition; information = dia_pal_9160_orto_raynehelp_info; permanent = FALSE; description = "Můžeš pomoci Rayneovi ve skladišti?"; }; func int dia_pal_9160_orto_raynehelp_condition() { if(MIS_RAYNEHELP == LOG_Running) { return TRUE; }; }; func void dia_pal_9160_orto_raynehelp_info() { AI_Output(other,self,"DIA_Pal_9160_Orto_RayneHelp_01_00"); //Můžeš pomoci Rayneovi ve skladišti? AI_Output(self,other,"DIA_Pal_9160_Orto_RayneHelp_01_01"); //Co?! Nebudu přece celej den trčet v tom páchnoucím skladu... AI_Output(self,other,"DIA_Pal_9160_Orto_RayneHelp_01_02"); //Takže promiň, ale nemůžu! AI_Output(other,self,"DIA_Pal_9160_Orto_RayneHelp_01_03"); //Myslel jsem si to... HELPCOUNTRAYNE = HELPCOUNTRAYNE + 1; if((HELPCOUNTRAYNE > 10) && (MAYTALKVARUSRAYNE == FALSE) && (MIS_RAYNEHELP == LOG_Running)) { MAYTALKVARUSRAYNE = TRUE; B_LogEntry(TOPIC_RAYNEHELP,"Zdá se, že jen marním čas - žádný z paladinů není nakloněn myšlence Rayneovi pomoct. Možná bych měl zvolit poněkud drastičtější přístup..."); }; }; instance DIA_PAL_9160_ORTO_PICKPOCKET(C_Info) { npc = pal_9160_orto; nr = 900; condition = dia_pal_9160_orto_pickpocket_condition; information = dia_pal_9160_orto_pickpocket_info; permanent = TRUE; description = PICKPOCKET_COMM; }; func int dia_pal_9160_orto_pickpocket_condition() { return C_Beklauen(100,150); }; func void dia_pal_9160_orto_pickpocket_info() { Info_ClearChoices(dia_pal_9160_orto_pickpocket); Info_AddChoice(dia_pal_9160_orto_pickpocket,Dialog_Back,dia_pal_9160_orto_pickpocket_back); Info_AddChoice(dia_pal_9160_orto_pickpocket,DIALOG_PICKPOCKET,dia_pal_9160_orto_pickpocket_doit); }; func void dia_pal_9160_orto_pickpocket_doit() { B_Beklauen(); Info_ClearChoices(dia_pal_9160_orto_pickpocket); }; func void dia_pal_9160_orto_pickpocket_back() { Info_ClearChoices(dia_pal_9160_orto_pickpocket); };
D